- 30 Sep, 2021 7 commits
-
-
Robert Knight authored
The Guest implementation no longer has any logic which is specific to a particular document type (PDF, HTML etc.). These details are now all handled by the Integration implementation returned by `createIntegration`. This commit refactors the Guest tests to use a single Integration fake instead of using different fakes to simulate HTML and PDF documents.
-
Robert Knight authored
-
Robert Knight authored
Move the logic for determining which document type/viewer integration to create out of the annotator entry point and Guest and into a `createIntegration` factory method in annotator/integrations/index.js This reduces the number of places that need to change when we add new integrations, and puts the logic for determining whether a particular integration can be used in the current environment alongside the corresponding implementation.
-
Lyza Danger Gardner authored
Because of the sometimes-arcane nature of grid layouts, it is sometimes necessary to apply definite width values on grid areas (versus `auto`) to prevent content from escaping. This fixes a situation in which very long unbroken quoted excerpts could blow out the column width in the Notebook. See https://css-tricks.com/preventing-a-grid-blowout/
-
Robert Knight authored
This was created to simulate a scenario in VitalSource's book reader, but they changed their reader so that it no longer uses a tall frame.
-
Robert Knight authored
This is a prerequisite for moving to a modern ES-module oriented module bundler such as Rollup. There is one remaining import ('preact/debug') which was not converted because that is conditional, and top-level `import` statements can't be conditional. That might need to use either `import(...)` or a different approach.
-
Robert Knight authored
This required adapting pattern library import paths due to changes in https://github.com/hypothesis/frontend-shared/pull/200.
-
- 29 Sep, 2021 2 commits
-
-
Robert Knight authored
-
Robert Knight authored
Remove logic that is no longer required with the current Hypothesis client and PDF.js version. See https://github.com/hypothesis/browser-extension/pull/658.
-
- 28 Sep, 2021 1 commit
-
-
Eduardo Sanz García authored
`String.protoype.substr` is a deprecated method (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr). It is recommended to be replaced by `String.prototype.substring` method (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring).
-
- 27 Sep, 2021 13 commits
-
-
Lyza Danger Gardner authored
The pattern library no longer serves by default at `/ui-playground`, so we need to set a `baseURL`.
-
dependabot[bot] authored
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.1 to 9.1.2. - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md) - [Commits](https://github.com/mochajs/mocha/compare/v9.1.1...v9.1.2) --- updated-dependencies: - dependency-name: mocha dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 6.12.0 to 6.13.2. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/6.12.0...6.13.2) --- updated-dependencies: - dependency-name: "@sentry/browser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.3.4 to 10.3.6. - [Release notes](https://github.com/postcss/autoprefixer/releases) - [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/autoprefixer/compare/10.3.4...10.3.6) --- updated-dependencies: - dependency-name: autoprefixer dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.3.2 to 2.3.3. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/2.3.2...2.3.3) --- updated-dependencies: - dependency-name: dompurify dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.991.0 to 2.995.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.991.0...v2.995.0) --- updated-dependencies: - dependency-name: aws-sdk dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [terser](https://github.com/terser/terser) from 5.8.0 to 5.9.0. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/compare/v5.8.0...v5.9.0) --- updated-dependencies: - dependency-name: terser dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.10.0 to 18.11.1. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](https://github.com/octokit/rest.js/compare/v18.10.0...v18.11.1) --- updated-dependencies: - dependency-name: "@octokit/rest" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [sass](https://github.com/sass/dart-sass) from 1.41.1 to 1.42.1. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.41.1...1.42.1) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 10.2.0 to 10.4.0. - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md) - [Commits](https://github.com/puppeteer/puppeteer/compare/v10.2.0...v10.4.0) --- updated-dependencies: - dependency-name: puppeteer dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [core-js](https://github.com/zloirock/core-js) from 3.18.0 to 3.18.1. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v3.18.0...v3.18.1) --- updated-dependencies: - dependency-name: core-js dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.25.3 to 7.26.0. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.3...v7.26.0) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.6 to 8.3.8. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.3.6...8.3.8) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
- 22 Sep, 2021 4 commits
-
-
Eduardo Sanz García authored
-
Eduardo Sanz García authored
I used these commands (Mac version): ``` % ag -0 -l '@.+Object' | xargs -0 sed -ri '' -e '/@/s/(.*{.*)Object(.*})/\1object\2/' % ag -0 -l '@.+object\.' | xargs -0 sed -ri '' -e '/@/s/object\.</Record</' % ag -0 -l '@.+object<' | xargs -0 sed -ri '' -e '/@/s/object</Record</' ```
-
-
dependabot[bot] authored
Bumps [prettier](https://github.com/prettier/prettier) from 2.4.0 to 2.4.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.4.0...2.4.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
- 20 Sep, 2021 7 commits
-
-
dependabot[bot] authored
Bumps [core-js](https://github.com/zloirock/core-js) from 3.17.3 to 3.18.0. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v3.17.3...v3.18.0) --- updated-dependencies: - dependency-name: core-js dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.25.1 to 7.25.3. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.25.1...v7.25.3) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@hypothesis/frontend-shared](https://github.com/hypothesis/frontend-shared) from 3.9.0 to 3.10.0. - [Release notes](https://github.com/hypothesis/frontend-shared/releases) - [Changelog](https://github.com/hypothesis/frontend-shared/blob/main/CHANGELOG.md) - [Commits](https://github.com/hypothesis/frontend-shared/compare/v3.9.0...v3.10.0) --- updated-dependencies: - dependency-name: "@hypothesis/frontend-shared" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.3.1 to 2.3.2. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/2.3.1...2.3.2) --- updated-dependencies: - dependency-name: dompurify dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [terser](https://github.com/terser/terser) from 5.7.2 to 5.8.0. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/compare/v5.7.2...v5.8.0) --- updated-dependencies: - dependency-name: terser dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.987.0 to 2.991.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.987.0...v2.991.0) --- updated-dependencies: - dependency-name: aws-sdk dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [sass](https://github.com/sass/dart-sass) from 1.39.2 to 1.41.1. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.39.2...1.41.1) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
- 16 Sep, 2021 3 commits
-
-
Eduardo authored
* check that the iframe's `src` element is not 'about:blank'. * use EventTarget class and fake DOM element for tests * fix typos
-
Eduardo Sanz García authored
I removed the `/* istanbul ignore test */` and created a facade to emulate and iframe for testing.
-
Eduardo Sanz García authored
In certain situations, the logic to check when the iframe's document is ready didn't work as expected. The reason for that is that browsers create an initial blank document before the actual document loads. This blank document has a `readyState` of 'complete' in Safari and Chrome and of 'uninitialized' in Firefox. This blank document can be mistaken by the final document. I was able to reproduce a situation where the Hypothesis client was injected into the blank document. Then, the blank document was replaced by the actual document and the Hypothesis client was not not longer embedded. In addition, this commit: * renames `frame` to `iframe` (only in the test) * renames `_handledFrames` to _annotatableFrames` * removes `isAccessible` (no longer neede)
-
- 15 Sep, 2021 3 commits
-
-
Robert Knight authored
Add commas for readability Co-authored-by: Lyza Gardner <439947+lyzadanger@users.noreply.github.com>
-
Robert Knight authored
When the sidebar is closed or there is not enough room to show the sidebar alongside the PDF content, reserve space for the sidebar's toolbar and bucket bar. This fixes an issue where the sidebar's controls would overlap the document's scrollbar, making scrolling the PDF less convenient, especially in long documents. This also removes the need for some CSS overrides that reposition elements in PDF.js's toolbar. By ensuring that the `<body>` does not overlap the sidebar controls, the PDF.js toolbar which is contained within the body doesn't either. Fixes #3759
-
Robert Knight authored
This is no longer needed after the `Record<K, V>` => `Map<K, V>` change.
-