Skip to content

Commit

Permalink
Image API helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Jan 4, 2025
1 parent 0e447a0 commit d296bf8
Show file tree
Hide file tree
Showing 25 changed files with 4,594 additions and 1,680 deletions.
1,334 changes: 1,334 additions & 0 deletions __tests__/image-service.tests.ts

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions __tests__/vault/vault-fixtures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,11 @@ describe('vault', () => {
"Description",
],
},
"value": {},
"value": {
"none": [
"",
],
},
},
{
"label": {
Expand All @@ -697,7 +701,11 @@ describe('vault', () => {
},
},
{
"label": {},
"label": {
"none": [
"",
],
},
"value": {
"none": [
"<a href="http://digital.nls.uk/128693590">View in our digital gallery</a>",
Expand Down
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@
"default": "./dist/search1.js"
}
},
"./image-service": {
"require": {
"types": "./dist/image-service.d.ts",
"default": "./dist/image-service.cjs"
},
"import": {
"types": "./dist/image-service.d.ts",
"default": "./dist/image-service.js"
}
},
"./nav-date": {
"require": {
"types": "./dist/nav-date.d.ts",
Expand Down Expand Up @@ -244,8 +254,7 @@
"svg-arc-to-cubic-bezier": "^3.2.0"
},
"peerDependencies": {
"@iiif/parser": "^2.1.2",
"@atlas-viewer/iiif-image-api": "^2.2.0"
"@iiif/parser": "^2.1.7"
},
"overrides": {
"@iiif/parser": {
Expand All @@ -255,7 +264,7 @@
"devDependencies": {
"@types/jsdom": "^21.1.3",
"@types/svg-arc-to-cubic-bezier": "^3.2.0",
"@vitejs/plugin-react": "^4.1.0",
"@vitejs/plugin-react": "^4.3.4",
"happy-dom": "^12.6.0",
"jsdom": "^22.1.0",
"mitt": "^3.0.1",
Expand Down
Loading

0 comments on commit d296bf8

Please sign in to comment.