- 15 Mar, 2021 12 commits
-
-
dependabot[bot] authored
Bumps [@hypothesis/frontend-shared](https://github.com/hypothesis/frontend-shared) from 1.9.0 to 1.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/commits/v1.10.0) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [chai](https://github.com/chaijs/chai) from 4.3.3 to 4.3.4. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](https://github.com/chaijs/chai/compare/4.3.3...v4.3.4) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [katex](https://github.com/KaTeX/KaTeX) from 0.12.0 to 0.13.0. - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/master/CHANGELOG.md) - [Commits](https://github.com/KaTeX/KaTeX/compare/v0.12.0...v0.13.0) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.7 to 8.2.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.2.7...8.2.8) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.3.4 to 18.3.5. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](https://github.com/octokit/rest.js/compare/v18.3.4...v18.3.5) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [preact](https://github.com/preactjs/preact) from 10.5.12 to 10.5.13. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.5.12...10.5.13) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [mocha](https://github.com/mochajs/mocha) from 8.3.1 to 8.3.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/v8.3.1...v8.3.2) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 6.2.1 to 6.2.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.2.1...6.2.2) Signed-off-by: dependabot[bot] <support@github.com>
-
Kyle Keating authored
-
Robert Knight authored
Add a test for what happens if a search is canceled and the in-flight request ends up failing.
-
Robert Knight authored
-
Robert Knight authored
Make the code easier to follow and update by modernizing it to ES6+ and linking to relevant Hypothesis API documentation. - Replace `self` with arrow-functions + `this` - Replace promise chains with async/await - Document the type of the `query` param to search requests - Add links to relevant Hypothesis API documentation
-
- 12 Mar, 2021 4 commits
-
-
Robert Knight authored
Reduce the perceived loading time in the notebook by fetching annotations in, roughly, the reverse chronological order in which they are displayed. By default `SearchClient` fetches annotations by ascending creation date. This makes sense in the sidebar as it typically correlates, roughly, with the order in which the sidebar presents annotations by default (document location order). For the notebook however this is suboptimal. - Add `sortBy` and `sortOrder` options to `SearchClient` and `loadAnnotations` to control fetch order, with the defaults remaining the same as before (`created`, `asc`). - In `NotebookView` set `sortBy` to `updated` and `sortOrder` to desc to fetch annotations in reverse chronological order.
-
Eduardo Sanz García authored
Following on @robertknight [suggestion](https://github.com/hypothesis/client/pull/3035#pullrequestreview-599668554) I created a tiny utility to make easier to unregister event listeners.
-
Robert Knight authored
Avoid the need to customize various inline styles of the `<hypothesis-banner>` element by positioning it at the top of the DOM as the first child of `document.body`. As a result it naturally pushes the PDF.js UI down. The only change we need to make to PDF.js's UI is to adjust the size of the `#outerContainer` element so that it does not overflow the bottom of the viewport. Aside from making styling simpler, making the banner's DOM position better match its visual position may help with reading order for screen readers. Related to this the banner is currently missing useful semantic information for a11y purposes. I also removed the banner resizing handling for the moment on the basis that it isn't that important.
-
Robert Knight authored
For consistency with the rest of the UI elements rendered by the annotator code, move the warning banner at the top of the PDF into shadow DOM. This is also another step towards not needing to load any global CSS (eg. our CSS reset) into the host page. - Change the container element for the banner from `<div>` to `<hypothesis-banner>` to match other `<hypothesis-*>` UI container elements - Move the `WarningBanner` component into `components/WarningBanner.js` and rename the CSS classes to match
-
- 10 Mar, 2021 2 commits
-
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
Add `open` prop to allow components to do their own state management of a `Menu`'s open/closed state.
-
- 09 Mar, 2021 8 commits
-
-
Eduardo Sanz García authored
On touch devices every touch event should eventually result on a click event, as explained [here](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Supporting_both_TouchEvent_and_MouseEvent#event_order). However, this is not true for mobile Safari versions < 13 (2019). Because we still rely on listening to touchstart events, we decided to sandbox the shadow DOMs, by stopping the propagation of click and touchstart at that level. This prevents the bubbling of these events outside the shadow DOM and better isolates the pieces of the application that should not interact with the host page.
-
Eduardo Sanz García authored
This was never an issue because the parent elements are destroyed, however for completeness is better to add it. In addition, I modified the test so that all the elements created are added to a single parent container who is deleted after each test.
-
Robert Knight authored
-
Robert Knight authored
When no `contentContainer` has been specified in Sidebar's config, avoid setting it when calling the `BucketBar` constructor. This leaves the responsibility of determining how to observe whole-document scrolling up to the BucketBar.
-
Robert Knight authored
During code review it was suggested that "content container" might be confused to mean the content of the bucket bar.
-
Robert Knight authored
In current usage of the `BucketBar` we only ever have a single scrollable container to observe. Simplify the `BucketBar` API to pass in this element directly rather than a selector and add associated tests.
-
Robert Knight authored
Prop-types checks are now globally disabled because we're using JSDoc + TS instead.
-
dependabot[bot] authored
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] <support@github.com>
-
- 08 Mar, 2021 14 commits
-
-
Robert Knight authored
Components no longer have a `propTypes` property.
-
Robert Knight authored
We no longer set `propTypes` on components.
-
Robert Knight authored
This enables checking by TypeScript
-
Robert Knight authored
Prop-types checking has been replaced by JSDoc + TypeScript.
-
Robert Knight authored
Prop-types checking has been replaced by static checking done by TypeScript.
-
Robert Knight authored
Detecting a Preact/React functional component that does not use `propTypes` is impossible to do with 100% accuracy. `function Foo() { return 'Hello' }` is a perfectly valid component with no obvious Preact/React features. Fortunately because of the way this helper is used, we can make do with an imperfect check. If `mockImportedComponents` mocks something which is not really a component, that mock will be overridden with a real mock later.
-
dependabot[bot] authored
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.854.0 to 2.858.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.854.0...v2.858.0) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.6 to 8.2.7. - [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.2.6...8.2.7) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [exorcist](https://github.com/thlorenz/exorcist) from 1.0.1 to 2.0.0. - [Release notes](https://github.com/thlorenz/exorcist/releases) - [Commits](https://github.com/thlorenz/exorcist/compare/v1.0.1...v2.0.0) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.2.4 to 10.2.5. - [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.2.4...10.2.5) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.3.1 to 18.3.4. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](https://github.com/octokit/rest.js/compare/v18.3.1...v18.3.4) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.2 to 4.2.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.2...v4.2.3) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha) from 8.0.0 to 8.1.0. - [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases) - [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md) - [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/8.0.0...8.1.0) Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [axe-core](https://github.com/dequelabs/axe-core) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/dequelabs/axe-core/releases) - [Changelog](https://github.com/dequelabs/axe-core/blob/develop/CHANGELOG.md) - [Commits](https://github.com/dequelabs/axe-core/compare/v4.1.2...v4.1.3) Signed-off-by: dependabot[bot] <support@github.com>
-