From 261abe6c902a9af3bb17539ac28e4a3d3068eaa9 Mon Sep 17 00:00:00 2001 From: Geoff Scholl Date: Fri, 18 Oct 2024 11:43:44 -0400 Subject: [PATCH 1/9] Improve ambiguous "more info" label (fixes #1074) (#1127) --- src/locales/cy-GB.json | 2 +- src/locales/en-GB.json | 2 +- src/locales/fr-FR.json | 2 +- src/locales/pl-PL.json | 2 +- src/locales/sv-SE.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/locales/cy-GB.json b/src/locales/cy-GB.json index 050e1a7c1..8ed674c6b 100644 --- a/src/locales/cy-GB.json +++ b/src/locales/cy-GB.json @@ -116,7 +116,7 @@ "$clickToZoomEnabled": "Cliciwch gyda'r llygoden i glosio", "$reducedMotion": "Lleihau symudiad (analluogi animeiddiadau)", "$preserveViewport": "Cadw'r lefel o glosio", - "$uvWebsite": "mwy o wybodaeth", + "$uvWebsite": "Mwy o wybodaeth am y Universal Viewer", "$custom": "dewisol", "$embedInstructions": "Er mwyn ymgorffori'r eitem hon ar eich gwefan, cop\u00efwch a gosodwch y cod isod.", "$height": "Hyd", diff --git a/src/locales/en-GB.json b/src/locales/en-GB.json index 49376532e..76efdbb4a 100644 --- a/src/locales/en-GB.json +++ b/src/locales/en-GB.json @@ -116,7 +116,7 @@ "$clickToZoomEnabled": "Mouse Click To Zoom", "$reducedMotion": "Reduce motion (disables animations)", "$preserveViewport": "Preserve Zoom", - "$uvWebsite": "more info", + "$uvWebsite": "More info about the Universal Viewer", "$custom": "custom", "$embedInstructions": "To embed this item in your own website, copy and paste the code below.", "$height": "Height", diff --git a/src/locales/fr-FR.json b/src/locales/fr-FR.json index 2b16422ad..1bcadc608 100644 --- a/src/locales/fr-FR.json +++ b/src/locales/fr-FR.json @@ -116,7 +116,7 @@ "$clickToZoomEnabled": "Cliquer pour zoomer", "$reducedMotion": "Réduire le mouvement (désactive les animations)", "$preserveViewport": "Conserver le zoom", - "$uvWebsite": "informations", + "$uvWebsite": "En savoir + sur le Universal Viewer", "$custom": "personnalisée", "$embedInstructions": "Pour afficher ce contenu sur votre site internet, copier-collez le code ci-dessous.", "$height": "Hauteur", diff --git a/src/locales/pl-PL.json b/src/locales/pl-PL.json index 861a9eee3..3ee119b0e 100644 --- a/src/locales/pl-PL.json +++ b/src/locales/pl-PL.json @@ -116,7 +116,7 @@ "$clickToZoomEnabled": "Przybliżenie przez kliknięcie myszą", "$reducedMotion": "Zmniejsz ruch (wyłącza animacje)", "$preserveViewport": "Zachowanie przybliżenia", - "$uvWebsite": "więcej informacji", + "$uvWebsite": "Więcej informacji o Universal Viewer", "$custom": "Ustawienia", "$embedInstructions": "Aby osadzić ten obiekt na własnej witrynie, skopiuj i wklej poniższy kod.", "$height": "Wysokość", diff --git a/src/locales/sv-SE.json b/src/locales/sv-SE.json index 73f124d5a..073092de9 100644 --- a/src/locales/sv-SE.json +++ b/src/locales/sv-SE.json @@ -116,7 +116,7 @@ "$clickToZoomEnabled": "Zooma med musklick", "$reducedMotion": "Minska rörelse (inaktiverar animationer)", "$preserveViewport": "Behåll zoomnivå", - "$uvWebsite": "mer info", + "$uvWebsite": "Mer information om Universal Viewer", "$custom": "Anpassad", "$embedInstructions": "För att bädda in det här objektet i din egen webbplats, kopiera och klistra koden nedan.", "$height": "Höjd", From 289a65839c7f96ef3cfa794886cddffde6eed050 Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:21:28 +0100 Subject: [PATCH 2/9] Add focus highlight to previous/next buttons in center panel (#1146) --- .../extensions/uv-pdf-extension/config/Config.ts | 5 ++++- .../extensions/uv-pdf-extension/config/config.json | 4 +++- .../OpenSeadragonCenterPanel.ts | 14 ++++++++++++-- .../uv-pdfcenterpanel-module/PDFCenterPanel.ts | 14 ++++++++++++-- 4 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts index 116e1e3a9..d95e2a544 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/Config.ts @@ -18,7 +18,10 @@ type PDFCenterPanelOptions = CenterPanelOptions & { usePdfJs: boolean; }; -type PDFCenterPanelContent = CenterPanelContent & {}; +type PDFCenterPanelContent = CenterPanelContent & { + next: string; + previous: string; +}; type PDFCenterPanel = { options: PDFCenterPanelOptions; diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json index 78797e4f8..57e13394f 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json @@ -199,7 +199,9 @@ }, "content": { "attribution": "$attribution", - "close": "$close" + "close": "$close", + "next": "$next", + "previous": "$previous" } }, "resourcesLeftPanel": { diff --git a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts index 5908db7f5..4910bb09b 100644 --- a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.ts @@ -506,7 +506,12 @@ export class OpenSeadragonCenterPanel extends CenterPanel< this.extension.helper.getViewingDirection() || ViewingDirection.LEFT_TO_RIGHT; - this.$prevButton = $(''); + this.$prevButton = $( + `` + ); if (this.extension.helper.isRightToLeft()) { this.$prevButton.prop("title", this.content.next); @@ -514,7 +519,12 @@ export class OpenSeadragonCenterPanel extends CenterPanel< this.$prevButton.prop("title", this.content.previous); } - this.$nextButton = $(''); + this.$nextButton = $( + `` + ); if (this.extension.helper.isRightToLeft()) { this.$nextButton.prop("title", this.content.previous); diff --git a/src/content-handlers/iiif/modules/uv-pdfcenterpanel-module/PDFCenterPanel.ts b/src/content-handlers/iiif/modules/uv-pdfcenterpanel-module/PDFCenterPanel.ts index cf2b97808..ec0fc4494 100644 --- a/src/content-handlers/iiif/modules/uv-pdfcenterpanel-module/PDFCenterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-pdfcenterpanel-module/PDFCenterPanel.ts @@ -52,8 +52,18 @@ export class PDFCenterPanel extends CenterPanel< this._$progress = $(''); this._canvas = this._$canvas[0]; this._ctx = this._canvas.getContext("2d"); - this._$prevButton = $(''); - this._$nextButton = $(''); + this._$prevButton = $( + `` + ); + this._$nextButton = $( + `` + ); this._$zoomInButton = $('
'); this._$zoomOutButton = $('
'); From bda2b8b86f6ed9cbef8093b03df39b03b1242f30 Mon Sep 17 00:00:00 2001 From: Nicolas Franck Date: Mon, 21 Oct 2024 14:23:07 +0200 Subject: [PATCH 3/9] Address range highlighting bug (Fixes #955) (#972) --- .../modules/uv-contentleftpanel-module/ContentLeftPanel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts index e6c57b45e..96d77efa0 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts @@ -102,7 +102,7 @@ export class ContentLeftPanel extends LeftPanel { this.collapseFull(); } - this.selectCurrentTreeNode(); + this.selectCurrentTreeNodeByCanvas(); this.updateTreeTabBySelection(); }); @@ -111,7 +111,7 @@ export class ContentLeftPanel extends LeftPanel { this.collapseFull(); } - this.selectCurrentTreeNode(); + this.selectCurrentTreeNodeByRange(); this.updateTreeTabBySelection(); }); From 24f30800a73ef6292c03aee2d45211a1acc14fce Mon Sep 17 00:00:00 2001 From: Jonathan Phillips <125897079+LlGC-jop@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:41:50 +0100 Subject: [PATCH 4/9] Add accessible name to imageButton.searchButton (fixes #1100) (#1128) --- .../iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts b/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts index eedb7f6e2..4fbc74d51 100644 --- a/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts @@ -136,6 +136,8 @@ export class FooterPanel extends BaseFooterPanel< this.$searchButton = $( '' ); + this.$searchButton.attr('aria-label', this.content.searchWithin); + this.$searchButton.attr('title', this.content.searchWithin); this.$searchTextContainer.append(this.$searchButton); // search results. From c4558d33e560b803faf00c55593d039846fc0ebc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:06:52 -0400 Subject: [PATCH 5/9] Bump typescript-tslint-plugin from 0.5.5 to 1.0.2 (#1121) Bumps [typescript-tslint-plugin](https://github.com/microsoft/typescript-tslint-plugin) from 0.5.5 to 1.0.2. - [Changelog](https://github.com/microsoft/typescript-tslint-plugin/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/typescript-tslint-plugin/commits) --- updated-dependencies: - dependency-name: typescript-tslint-plugin dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 09d0e2654..2813357ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,7 +77,7 @@ "typedoc": "^0.25.4", "typedoc-plugin-missing-exports": "^2.1.0", "typescript": "4.6.2", - "typescript-tslint-plugin": "^0.5.5", + "typescript-tslint-plugin": "^1.0.2", "url-loader": "4.1.1", "webpack": "^5.59.1", "webpack-bundle-analyzer": "^4.10.1", @@ -14596,9 +14596,9 @@ } }, "node_modules/typescript-tslint-plugin": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/typescript-tslint-plugin/-/typescript-tslint-plugin-0.5.5.tgz", - "integrity": "sha512-tR5igNQP+6FhxaPJYRlUBVsEl0n5cSuXRbg7L1y80mL4B1jUHb8uiIcbQBJ9zWyypJEdFYFUccpXxvMwZR8+AA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typescript-tslint-plugin/-/typescript-tslint-plugin-1.0.2.tgz", + "integrity": "sha512-M4IhSOCG/2snlD1nTRszQNDuV5ITe/GjHethOyC3Ugq9RFThyx4zjn8Mg/ij5ng/puoYmq1jnW90W1KWxonhxw==", "deprecated": "TSLint has been deprecated in favor of ESLint. This plugin has also been deprecated in favor of ESLint's tooling", "dev": true, "dependencies": { @@ -26597,9 +26597,9 @@ "dev": true }, "typescript-tslint-plugin": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/typescript-tslint-plugin/-/typescript-tslint-plugin-0.5.5.tgz", - "integrity": "sha512-tR5igNQP+6FhxaPJYRlUBVsEl0n5cSuXRbg7L1y80mL4B1jUHb8uiIcbQBJ9zWyypJEdFYFUccpXxvMwZR8+AA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/typescript-tslint-plugin/-/typescript-tslint-plugin-1.0.2.tgz", + "integrity": "sha512-M4IhSOCG/2snlD1nTRszQNDuV5ITe/GjHethOyC3Ugq9RFThyx4zjn8Mg/ij5ng/puoYmq1jnW90W1KWxonhxw==", "dev": true, "requires": { "minimatch": "^3.0.4", diff --git a/package.json b/package.json index 28de1bf5f..a182a7d84 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "typedoc": "^0.25.4", "typedoc-plugin-missing-exports": "^2.1.0", "typescript": "4.6.2", - "typescript-tslint-plugin": "^0.5.5", + "typescript-tslint-plugin": "^1.0.2", "url-loader": "4.1.1", "webpack": "^5.59.1", "webpack-bundle-analyzer": "^4.10.1", From 32c30b633b8f4008293a176be006b4ea45961b3c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:08:03 -0400 Subject: [PATCH 6/9] Bump source-map-loader from 4.0.1 to 5.0.0 (#1123) Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader) from 4.0.1 to 5.0.0. - [Release notes](https://github.com/webpack-contrib/source-map-loader/releases) - [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v4.0.1...v5.0.0) --- updated-dependencies: - dependency-name: source-map-loader dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 11 +++++------ package.json | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2813357ae..616d89e74 100644 --- a/package-lock.json +++ b/package-lock.json @@ -69,7 +69,7 @@ "prettier": "^1.19.1", "prettier-check": "^2.0.0", "puppeteer": "^23", - "source-map-loader": "^4.0.0", + "source-map-loader": "^5.0.0", "style-loader": "4.0.0", "ts-jest": "^29", "ts-loader": "9.5.1", @@ -13474,17 +13474,16 @@ } }, "node_modules/source-map-loader": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-4.0.1.tgz", - "integrity": "sha512-oqXpzDIByKONVY8g1NUPOTQhe0UTU5bWUl32GSkqK2LjJj0HmwTMVKxcUip0RgAYhY1mqgOxjbQM48a0mmeNfA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-5.0.0.tgz", + "integrity": "sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA==", "dev": true, "dependencies": { - "abab": "^2.0.6", "iconv-lite": "^0.6.3", "source-map-js": "^1.0.2" }, "engines": { - "node": ">= 14.15.0" + "node": ">= 18.12.0" }, "funding": { "type": "opencollective", diff --git a/package.json b/package.json index a182a7d84..e34b010de 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "prettier": "^1.19.1", "prettier-check": "^2.0.0", "puppeteer": "^23", - "source-map-loader": "^4.0.0", + "source-map-loader": "^5.0.0", "style-loader": "4.0.0", "ts-jest": "^29", "ts-loader": "9.5.1", From 8b8c80be6efc1b1e76373a7a8830b3cf8d550a2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:23:14 -0400 Subject: [PATCH 7/9] Bump react and @types/react (#1149) Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together. Updates `react` from 18.2.0 to 18.3.1 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v18.3.1/packages/react) Updates `@types/react` from 18.0.26 to 18.3.11 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: react dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 45 +++++++++++++++------------------------------ 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index 616d89e74..2fbb9f238 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2519,13 +2519,12 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "18.0.26", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz", - "integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==", + "version": "18.3.11", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.11.tgz", + "integrity": "sha512-r6QZ069rFTjrEYgFdOck1gK7FLVsgJE7tTz0pQBczlBNUhBNk0MQH4UbnFSwjpQLMkLzgqvBBa+qGpLje16eTQ==", "dev": true, "dependencies": { "@types/prop-types": "*", - "@types/scheduler": "*", "csstype": "^3.0.2" } }, @@ -2544,12 +2543,6 @@ "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, - "node_modules/@types/scheduler": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", - "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", - "dev": true - }, "node_modules/@types/send": { "version": "0.17.4", "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", @@ -12664,9 +12657,9 @@ } }, "node_modules/react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "dependencies": { "loose-envify": "^1.1.0" }, @@ -17760,13 +17753,12 @@ "dev": true }, "@types/react": { - "version": "18.0.26", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz", - "integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==", + "version": "18.3.11", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.11.tgz", + "integrity": "sha512-r6QZ069rFTjrEYgFdOck1gK7FLVsgJE7tTz0pQBczlBNUhBNk0MQH4UbnFSwjpQLMkLzgqvBBa+qGpLje16eTQ==", "dev": true, "requires": { "@types/prop-types": "*", - "@types/scheduler": "*", "csstype": "^3.0.2" } }, @@ -17785,12 +17777,6 @@ "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, - "@types/scheduler": { - "version": "0.16.2", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", - "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", - "dev": true - }, "@types/send": { "version": "0.17.4", "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", @@ -25200,9 +25186,9 @@ } }, "react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "requires": { "loose-envify": "^1.1.0" } @@ -25800,12 +25786,11 @@ "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" }, "source-map-loader": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-4.0.1.tgz", - "integrity": "sha512-oqXpzDIByKONVY8g1NUPOTQhe0UTU5bWUl32GSkqK2LjJj0HmwTMVKxcUip0RgAYhY1mqgOxjbQM48a0mmeNfA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-5.0.0.tgz", + "integrity": "sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA==", "dev": true, "requires": { - "abab": "^2.0.6", "iconv-lite": "^0.6.3", "source-map-js": "^1.0.2" }, From 97b1e24facefaff8c727e7135c8dbb0a3a4c60b7 Mon Sep 17 00:00:00 2001 From: Geoff Scholl Date: Mon, 21 Oct 2024 10:05:35 -0400 Subject: [PATCH 8/9] Enhance focus on close buttons (fixes #1079) (#1147) --- .../modules/uv-dialogues-module/css/styles.less | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less b/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less index 3d65f2695..311331af4 100644 --- a/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less +++ b/src/content-handlers/iiif/modules/uv-dialogues-module/css/styles.less @@ -508,6 +508,22 @@ } } + .btn.close { + padding: 0.5rem 1rem; /* Equivalent to Tailwind's px-4 py-2 */ + background-color: black; /* bg-black */ + color: white; /* text-white */ + white-space: nowrap; /* Prevent text from wrapping */ + + /* Remove default outline on focus */ + outline: none; + } + + /* Focus state styles */ + .btn.close:focus { + outline: none; + box-shadow: 0 0 0 4px rgba(37, 99, 235, 1), /* Darker blue (ring-blue-700 equivalent) */ + 0 0 0 6px white; /* Equivalent to ring-offset-2 (creates an offset ring) */ + } } @import 'mobile'; \ No newline at end of file From b74120a6e2208846b56a8619c41ae9729f4bcc5d Mon Sep 17 00:00:00 2001 From: Matthew Simpson Date: Mon, 21 Oct 2024 15:33:34 +0100 Subject: [PATCH 9/9] Replaced divs with label class with label element (fixes #1103) (#1152) --- .../iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts b/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts index 4fbc74d51..12c58b2a7 100644 --- a/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-searchfooterpanel-module/FooterPanel.ts @@ -179,7 +179,7 @@ export class FooterPanel extends BaseFooterPanel< this.$pagePositionMarker = $('
'); this.$searchResultsContainer.append(this.$pagePositionMarker); - this.$pagePositionLabel = $('
'); + this.$pagePositionLabel = $(''); this.$searchResultsContainer.append(this.$pagePositionLabel); this.$placemarkerDetails = $('
');