- 05 May, 2022 7 commits
-
-
Robert Knight authored
This encourages reading of specific flags to be done via `flagEnabled`, which checks for usage of unknown flags.
-
Robert Knight authored
Rewrite the infrastructure that sends feature flags to annotator code, to support feature-flagging functionality in guest frames, instead of just the host frame. - Remove `FeaturesService` in the sidebar and move the logic for syncing feature flags from the sidebar to other frames into `FrameSyncService`. This is a better place since `FrameSyncService` knows when frames connect and thus when to send flags to them. The logic for monitoring for flag changes is very simple and doesn't needs its own service. - Within `FrameSyncService`, send "featureFlagsUpdated" notifications to both host frames and guest frames. - Convert the functions and global variables in `annotator/features.js` into a `FeatureFlags` class, which encapsulates storage of flags, access to them and notifying consumers when flags change. - Instantiate `FeatureFlags` instances in the host frame and guest frame and update the flags stored in them when "featureFlagsUpdated" events are received from the sidebar.
-
Robert Knight authored
-
Robert Knight authored
- Rename `getElement` => `findElementByTestId` for clarity - Eliminate unnecessary `context` blocks in `MarkdownEditor` tests - Narrow scope of `console.warn` suppression in `useArrowKeyNavigation` test - Explain why keyboard navigation tests do not use Enzyme
-
Robert Knight authored
Extract the arrow key navigation logic from `MarkdownEditor` into a reusable `useArrowKeyNavigation` navigation hook. This simplifies the MarkdownEditor component and will allow us to enable arrow key navigation more widely thoughout the application. A notable design choice is that the roving tab index state lives in the DOM rather than in Preact. This enables the Preact component-facing API to be very simple: a single hook call in the component that renders the container element (of the toolbar, menu bar etc.). It does mean however that the `tabIndex` state is not accessible to components. This works for the use cases where I have tested it, but we may need to revisit in future. If browsers add a native feature to handle this in future [1], the hook could handle testing for support and using it where available. - Create `useArrowKeyNavigation` navigation hook in `src/shared/keyboard-navigation.js` as a general method of adding arrow key navigation to a composite widget - Modify `MarkdownEditor` to use the `useArrowKeyNavigation` hook to handle arrow key navigation - Replace detailed tests for arrow key navigation in `MarkdownEditor` with more basic tests, as the `useArrowKeyNavigation` tests cover the general functionality in detail [1] eg. https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Focusgroup/explainer.md
-
Robert Knight authored
Enable the `ListenerCollection.add` method to know the specific type of event that a listener will receive, based on the event target and event name. This simplifies usage by removing the need to cast the argument in most cases. The implementation relies on the target having an `on${eventName}` property from which the event type can be extracted. If it doesn't, it will fall back to `Event`.
-
Robert Knight authored
This includes the results of RPC calls to the LMS app, which must now be explicitly cast to the expected result type.
-
- 03 May, 2022 7 commits
-
-
Lyza Danger Gardner authored
Use `AnnotationHeader` directly
-
Robert Knight authored
The issue has been fixed upstream, but we need to keep the workaround for old versions of PDF.js with Hypothesis embedded, that still exist on various websites.
-
Robert Knight authored
This comment was written prior to the change to draw highlights in an SVG in PDFs.
-
Robert Knight authored
Remove obsolete fallback for browsers that don't support mix-blend-mode. All of our current targets do, per https://caniuse.com/mdn-css_properties_mix-blend-mode.
-
Robert Knight authored
These are no longer needed as the visual highlights in PDFs are now created by SVG elements above the canvas, rather than by a background color in PDF.js's text layer. Removing these overrides fixes a cosmetic issue where overlapping text boxes in the selection layer could create different shades of blue (or whatever the selection color is) instead of blending into one, as shown in https://github.com/hypothesis/private-issues/issues/108#issuecomment-1115392598.
-
dependabot[bot] authored
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.12 to 8.4.13. - [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.4.12...8.4.13) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.5 to 10.4.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.4.5...10.4.6) --- updated-dependencies: - dependency-name: autoprefixer dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
- 02 May, 2022 22 commits
-
-
Lyza Danger Gardner authored
-
dependabot[bot] authored
Bumps [sass](https://github.com/sass/dart-sass) from 1.50.1 to 1.51.0. - [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.50.1...1.51.0) --- 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 [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.17.9 to 7.17.10. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.17.10/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@sentry/cli](https://github.com/getsentry/sentry-cli) from 2.0.3 to 2.0.4. - [Release notes](https://github.com/getsentry/sentry-cli/releases) - [Changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-cli/compare/2.0.3...2.0.4) --- updated-dependencies: - dependency-name: "@sentry/cli" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [core-js](https://github.com/zloirock/core-js) from 3.22.2 to 3.22.3. - [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.22.2...v3.22.3) --- 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 [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0. - [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.2.2...v10.0.0) --- updated-dependencies: - dependency-name: mocha dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.2.1 to 13.3.0. - [Release notes](https://github.com/rollup/plugins/releases) - [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md) - [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.3.0/packages/node-resolve) --- updated-dependencies: - dependency-name: "@rollup/plugin-node-resolve" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 6.19.6 to 6.19.7. - [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.19.6...6.19.7) --- updated-dependencies: - dependency-name: "@sentry/browser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 13.6.0 to 13.7.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/v13.6.0...v13.7.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 [@types/retry](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/retry) from 0.12.1 to 0.12.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/retry) --- updated-dependencies: - dependency-name: "@types/retry" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.6.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.11 to 7.17.10. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.17.10/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/preset-env" 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.1120.0 to 2.1125.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.1120.0...v2.1125.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 [express](https://github.com/expressjs/express) from 4.17.3 to 4.18.1. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.17.3...4.18.1) --- updated-dependencies: - dependency-name: express dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [rollup](https://github.com/rollup/rollup) from 2.70.2 to 2.71.1. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v2.70.2...v2.71.1) --- updated-dependencies: - dependency-name: rollup 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-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks) --- updated-dependencies: - dependency-name: eslint-plugin-react-hooks dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
Robert Knight authored
Simplify the `watch` utility by making it only support a single callback to get the watched value, along with an optional comparison function to use to compare the results. To watch multiple values the callback can return an array and use a shallow-equality comparison. In `FrameSyncService` the lengthy callback passed to `watch` was extracted into a separate function to make the `watch` call more readable.
-
Robert Knight authored
Feature flags are now sent to the host frame, which never changes, so there is no point in re-sending flags when guest frames change. In future we'll need to figure out how to communicate feature flags to guest frames and depending on whether the sidebar or host frame does this, the sidebar may once again need to react to guest frames changing.
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
- Make search icon alignment correct when input field is focused - Add a mostly-opaque background so that collisions with long group names are less jarring - Add a border when query applied but input not focused to make it more visible - Use `TextInput` for more consistent focus-ring treatment - Fix focus-ring overlap when input is visible
-
- 26 Apr, 2022 3 commits
-
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
- Convert `LaunchErrorPanel` - Convert `SidebarContentError` - Convert `SortMenu`
-
- 25 Apr, 2022 1 commit
-
-
dependabot[bot] authored
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 21.1.0 to 22.0.0. - [Release notes](https://github.com/rollup/plugins/releases) - [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md) - [Commits](https://github.com/rollup/plugins/commits/commonjs-v22.0.0/packages/commonjs) --- updated-dependencies: - dependency-name: "@rollup/plugin-commonjs" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
-