- 31 Aug, 2022 3 commits
-
-
Lyza Danger Gardner authored
-
dependabot[bot] authored
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.35.1 to 5.36.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.36.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
Sean Hammond authored
The same as we've done for all our other projects. The client only uses tox to serve its Sphinx documentation site (the site that's published to https://h.readthedocs.io/projects/client/en/latest/) locally. To test run: make docs and open http://localhost:8000/
-
- 30 Aug, 2022 13 commits
-
-
Robert Knight authored
This is not used directly by the client any more, although it is a still a transitive dependency of fetch-mock.
-
Robert Knight authored
None of the existing polyfills are used in any supported browsers, and going forwards we have tentatively agreed [1] to use regular imports for polyfills, instead of this extra machinery. This should make it easier to see where polyfills have come from, and the worse ergonomics (eg. of having to add an extra import, calling a standalone function instead of a method) haven't proven a major issue. [1] See discussion on https://github.com/hypothesis/client/pull/4722
-
dependabot[bot] authored
Bumps [sass](https://github.com/sass/dart-sass) from 1.54.5 to 1.54.6. - [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.54.5...1.54.6) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [katex](https://github.com/KaTeX/KaTeX) from 0.16.1 to 0.16.2. - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md) - [Commits](https://github.com/KaTeX/KaTeX/compare/v0.16.1...v0.16.2) --- updated-dependencies: - dependency-name: katex 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.1204.0 to 2.1205.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.1204.0...v2.1205.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>
-
Lyza Danger Gardner authored
5.4.0 has a breaking change of swapping out `Unstyled` components in favor of `Base` components. This is the only place an `Unstyled` component was actually used.
-
Robert Knight authored
These values were passed to various static methods of `Object` in the function body, and TypeScript complains if it can't be sure that the value is an object.
-
Robert Knight authored
TypeScript 4.8 complains if code attempts to destructure an argument that is marked as optional. The function arguments are still practically optional because they have a default value.
-
dependabot[bot] authored
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
-
Robert Knight authored
-
Robert Knight authored
Make it clear that we are testing for a property that the object does not have. Co-authored-by: Lyza Gardner <439947+lyzadanger@users.noreply.github.com>
-
Robert Knight authored
`hasOwnProperty` is unsafe if called on an object which may potentially have its own or an inherited property called "hasOwnProperty" or which has a null prototype. Add a polyfill for the modern alternative and remove the ESLint suppression. - Replace various uses of `hasOwnProperty` with `hasOwn` polyfill. In tests we can use `Object.hasOwn` directly, since tests only run in modern browsers. - Remove obsolete `Object.assign` polyfill in `parse-json-config.js`. IE 10/11 have been unsupported for long enough that I think we can stop worrying about it in the boot script.
-
Robert Knight authored
Remove a workaround that was needed for IE 11 and Edge Legacy, which are no longer supported.
-
- 29 Aug, 2022 10 commits
-
-
Lyza Danger Gardner authored
-
dependabot[bot] authored
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 16.2.0 to 17.0.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/v16.2.0...v17.0.0) --- updated-dependencies: - dependency-name: puppeteer dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [npm-packlist](https://github.com/npm/npm-packlist) from 5.1.1 to 5.1.3. - [Release notes](https://github.com/npm/npm-packlist/releases) - [Changelog](https://github.com/npm/npm-packlist/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/npm-packlist/compare/v5.1.1...v5.1.3) --- updated-dependencies: - dependency-name: npm-packlist dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [katex](https://github.com/KaTeX/KaTeX) from 0.16.0 to 0.16.1. - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md) - [Commits](https://github.com/KaTeX/KaTeX/compare/v0.16.0...v0.16.1) --- updated-dependencies: - dependency-name: katex 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/jsx-eslint/eslint-plugin-react) from 7.30.1 to 7.31.1. - [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases) - [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.30.1...v7.31.1) --- 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 [eslint](https://github.com/eslint/eslint) from 8.22.0 to 8.23.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.22.0...v8.23.0) --- updated-dependencies: - dependency-name: eslint 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.24.1 to 3.25.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.24.1...v3.25.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 [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.1199.0 to 2.1204.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.1199.0...v2.1204.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 [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) from 7.16.7 to 7.18.6. - [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.18.6/packages/babel-preset-typescript) --- updated-dependencies: - dependency-name: "@babel/preset-typescript" 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.18.10 to 7.18.13. - [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.18.13/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>
-
- 26 Aug, 2022 7 commits
-
-
Robert Knight authored
This fixes a warning about `$imports` and Babel's scope tracker, that was emitted when building the tests bundle.
-
Robert Knight authored
This serves as a test case for converting a non-JSX file with non-trivial types to TypeScript.
-
Robert Knight authored
This initial conversion serves as a test case for converting a JSX-using module to TypeScript syntax.
-
Robert Knight authored
Enable TypeScript in ESLint following the Quickstart at https://typescript-eslint.io/docs/. The @typescript-eslint parser appears to assume that files are modules by default, so directory-specific configs in dev-server/, scripts/ and src/ have been updated accordingly.
-
Robert Knight authored
-
Robert Knight authored
Support .ts and .tsx files in non-test code.
-
Robert Knight authored
Various annotator UI components use rem-based font sizes to try and make the annotator UI match the document. However various sites (eg. Stack Overflow, OpenStax) set the root font size to a value that results in the Hypothesis UI elements having unreadably small or excessively large text. Also for these sites the rem-size doesn't reflect the actual "default" font size of the page as perceived by the user. To resolve this, change the font sizes from using rem units to a value calculated from a `--hypothesis-font-size` CSS variable. This variable is set to match 1rem, but clamped to ensure that our UI text is always readable. Fixes https://github.com/hypothesis/client/issues/4615
-
- 25 Aug, 2022 2 commits
-
-
Robert Knight authored
Reword comment for readability Co-authored-by: Lyza Gardner <439947+lyzadanger@users.noreply.github.com>
-
Robert Knight authored
This fixes an issue where the `show` method could position the adder incorrectly if the emptiness of `annotationsForSelection` changed since the adder was previously displayed. This is because the size of the adder was outdated at the point when `show` calls `_calculateTarget` to determine the adder position. Re-rendering as soon as `annotationsForSelection` changes resolves this. Fixes #3293
-
- 24 Aug, 2022 2 commits
-
-
Lyza Danger Gardner authored
-
Robert Knight authored
Work around an issue on OpenStax pages where a `* { overflow: auto }` rule causes `<hypothesis-*>` elements to clip their contents. This issue prevented the adder toolbar from being shown when text was selected. I chose to use a `:host` rule here so that the rule could be colocated in the same stylesheet as the rest of the styles related to these elements. However this does mean that `!important` needs to be used for any rule that might conflict with a host page rule. See Stack Overflow links in comments. Fixes #4641
-
- 23 Aug, 2022 1 commit
-
-
dependabot[bot] authored
Bumps [@hypothesis/frontend-shared](https://github.com/hypothesis/frontend-shared) from 5.2.1 to 5.3.0. - [Release notes](https://github.com/hypothesis/frontend-shared/releases) - [Changelog](https://github.com/hypothesis/frontend-shared/blob/main/docs/releases.md) - [Commits](https://github.com/hypothesis/frontend-shared/compare/v5.2.1...v5.3.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>
-
- 22 Aug, 2022 2 commits
-
-
dependabot[bot] authored
Bumps [sass](https://github.com/sass/dart-sass) from 1.54.4 to 1.54.5. - [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.54.4...1.54.5) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
dependabot[bot] authored
Bumps [rollup](https://github.com/rollup/rollup) from 2.78.0 to 2.78.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.78.0...v2.78.1) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-