react-iiif-vault 0.9.11 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/.build/types/canvas-panel/Viewer.d.ts +13 -0
  2. package/.build/types/canvas-panel/index.d.ts +18 -0
  3. package/.build/types/canvas-panel/render/Annotation.d.ts +8 -0
  4. package/.build/types/canvas-panel/render/AnnotationPage.d.ts +6 -0
  5. package/.build/types/canvas-panel/render/Audio.d.ts +6 -0
  6. package/.build/types/canvas-panel/render/Canvas.d.ts +23 -0
  7. package/.build/types/canvas-panel/render/DefaultCanvasFallback.d.ts +5 -0
  8. package/.build/types/canvas-panel/render/Image.d.ts +13 -0
  9. package/.build/types/canvas-panel/render/Model.d.ts +3 -0
  10. package/.build/types/canvas-panel/render/Video.d.ts +6 -0
  11. package/.build/types/context/AnnotationContext.d.ts +5 -0
  12. package/.build/types/context/CanvasContext.d.ts +5 -0
  13. package/.build/types/context/CollectionContext.d.ts +5 -0
  14. package/.build/types/context/ContextBridge.d.ts +22 -0
  15. package/.build/types/context/ImageServiceLoaderContext.d.ts +4 -0
  16. package/.build/types/context/ManifestContext.d.ts +5 -0
  17. package/.build/types/context/MediaContext.d.ts +17 -0
  18. package/.build/types/context/PortalContext.d.ts +7 -0
  19. package/.build/types/context/RangeContext.d.ts +5 -0
  20. package/.build/types/context/ResourceContext.d.ts +14 -0
  21. package/.build/types/context/VaultContext.d.ts +14 -0
  22. package/.build/types/context/ViewerPresetContext.d.ts +3 -0
  23. package/.build/types/context/VisibleCanvasContext.d.ts +4 -0
  24. package/.build/types/demo/demo.d.ts +1 -0
  25. package/.build/types/demo/media-controls.d.ts +1 -0
  26. package/.build/types/demo/viewer-controls.d.ts +1 -0
  27. package/.build/types/features/rendering-strategy/3d-strategy.d.ts +13 -0
  28. package/.build/types/features/rendering-strategy/audio-strategy.d.ts +3 -0
  29. package/.build/types/features/rendering-strategy/choice-types.d.ts +15 -0
  30. package/.build/types/features/rendering-strategy/image-strategy.d.ts +13 -0
  31. package/.build/types/features/rendering-strategy/rendering-utils.d.ts +21 -0
  32. package/.build/types/features/rendering-strategy/resource-types.d.ts +42 -0
  33. package/.build/types/features/rendering-strategy/selector-extensions.d.ts +53 -0
  34. package/.build/types/features/rendering-strategy/strategies.d.ts +22 -0
  35. package/.build/types/features/rendering-strategy/video-strategy.d.ts +3 -0
  36. package/.build/types/hooks/useAnnotation.d.ts +8 -0
  37. package/.build/types/hooks/useAnnotationPageManager.d.ts +10 -0
  38. package/.build/types/hooks/useAnnotationsAtTime.d.ts +4 -0
  39. package/.build/types/hooks/useCanvas.d.ts +8 -0
  40. package/.build/types/hooks/useCanvasClock.d.ts +1 -0
  41. package/.build/types/hooks/useCanvasSelector.d.ts +0 -0
  42. package/.build/types/hooks/useCanvasTimeline.d.ts +0 -0
  43. package/.build/types/hooks/useCollection.d.ts +8 -0
  44. package/.build/types/hooks/useDispatch.d.ts +2 -0
  45. package/.build/types/hooks/useEnabledAnnotationPageIds.d.ts +1 -0
  46. package/.build/types/hooks/useEventListener.d.ts +4 -0
  47. package/.build/types/hooks/useExistingVault.d.ts +1 -0
  48. package/.build/types/hooks/useExternalCollection.d.ts +13 -0
  49. package/.build/types/hooks/useExternalManifest.d.ts +13 -0
  50. package/.build/types/hooks/useExternalResource.d.ts +16 -0
  51. package/.build/types/hooks/useImageService.d.ts +9 -0
  52. package/.build/types/hooks/useImageTile.d.ts +11 -0
  53. package/.build/types/hooks/useLoadImageService.d.ts +6 -0
  54. package/.build/types/hooks/useManifest.d.ts +8 -0
  55. package/.build/types/hooks/usePaintables.d.ts +8 -0
  56. package/.build/types/hooks/usePaintingAnnotations.d.ts +4 -0
  57. package/.build/types/hooks/useRange.d.ts +8 -0
  58. package/.build/types/hooks/useRenderingStrategy.d.ts +14 -0
  59. package/.build/types/hooks/useResourceEvents.d.ts +3 -0
  60. package/.build/types/hooks/useResources.d.ts +1 -0
  61. package/.build/types/hooks/useSearchService.d.ts +2 -0
  62. package/.build/types/hooks/useSimpleMediaPlayer.d.ts +32 -0
  63. package/.build/types/hooks/useStyleHelper.d.ts +1 -0
  64. package/.build/types/hooks/useStyles.d.ts +3 -0
  65. package/.build/types/hooks/useThumbnail.d.ts +5 -0
  66. package/.build/types/hooks/useVault.d.ts +2 -0
  67. package/.build/types/hooks/useVaultEffect.d.ts +2 -0
  68. package/.build/types/hooks/useVaultSelector.d.ts +2 -0
  69. package/.build/types/hooks/useVirtualAnnotationPage.d.ts +13 -0
  70. package/.build/types/hooks/useVirtualAnnotationPageContext.d.ts +9 -0
  71. package/.build/types/hooks/useVirtualCanvas.d.ts +0 -0
  72. package/.build/types/index.d.ts +56 -0
  73. package/.build/types/utility/expand-target.d.ts +19 -0
  74. package/.build/types/utility/flatten-annotation-page-ids.d.ts +7 -0
  75. package/.build/types/utility/parse-selector.d.ts +7 -0
  76. package/.build/types/viewers/SimpleViewerContext.d.ts +18 -0
  77. package/.build/types/viewers/SingleCanvasContext.d.ts +1 -0
  78. package/dist/bundle/cjs/index.js +36 -0
  79. package/dist/bundle/cjs/index.js.map +1 -0
  80. package/dist/{esm → bundle/esm}/index.mjs +720 -790
  81. package/dist/bundle/esm/index.mjs.map +1 -0
  82. package/dist/canvas-panel/cjs/canvas-panel.js +36 -0
  83. package/dist/canvas-panel/cjs/canvas-panel.js.map +1 -0
  84. package/dist/canvas-panel/esm/canvas-panel.mjs +2024 -0
  85. package/dist/canvas-panel/esm/canvas-panel.mjs.map +1 -0
  86. package/dist/index.umd.js +121 -31744
  87. package/dist/index.umd.js.map +1 -0
  88. package/package.json +38 -28
  89. package/dist/cjs/index.js +0 -2538
  90. package/dist/index.d.ts +0 -619
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "react-iiif-vault",
3
- "version": "0.9.11",
4
- "main": "./dist/cjs/index.js",
5
- "module": "./dist/esm/index.mjs",
6
- "types": "./dist/index.d.ts",
3
+ "version": "0.9.12",
4
+ "main": "dist/bundle/cjs/index.js",
5
+ "module": "dist/bundle/esm/index.mjs",
6
+ "types": ".build/dist/index.d.ts",
7
7
  "files": [
8
+ ".build",
8
9
  "dist"
9
10
  ],
10
11
  "contributors": [
@@ -12,49 +13,55 @@
12
13
  ],
13
14
  "exports": {
14
15
  ".": {
15
- "require": "./dist/cjs/index.js",
16
- "import": "./dist/esm/index.mjs",
16
+ "require": "./dist/bundle/cjs/index.js",
17
+ "import": "./dist/bundle/esm/index.mjs",
17
18
  "default": "./dist/index.umd.js"
19
+ },
20
+ "./canvas-panel": {
21
+ "require": "./dist/canvas-panel/cjs/canvas-panel.js",
22
+ "import": "./dist/canvas-panel/esm/canvas-panel.mjs"
18
23
  }
19
24
  },
20
25
  "typesVersions": {
21
26
  "*": {
22
27
  "*": [
23
- "dist/index.d.ts"
28
+ ".build/dist/index.d.ts"
29
+ ],
30
+ "canvas-panel": [
31
+ ".build/dist/canvas-panel/index.d.ts"
24
32
  ]
25
33
  }
26
34
  },
27
35
  "scripts": {
28
36
  "start": "vite",
29
- "build": "tsc -p ./tsconfig.types.json --declaration --emitDeclarationOnly && rollup -c",
30
- "prepublishOnly": "tsc -p ./tsconfig.types.json --declaration --emitDeclarationOnly && rollup -c",
31
- "test": "vitest"
37
+ "build": "tsc -p ./tsconfig.types.json --declaration --emitDeclarationOnly && node vite/build.mjs",
38
+ "prepublishOnly": "tsc -p ./tsconfig.types.json --declaration --emitDeclarationOnly && node vite/build.mjs",
39
+ "test": "vitest",
40
+ "upgrade-deps": "yarn upgrade @atlas-viewer/iiif-image-api @iiif/parser @iiif/presentation-2 @iiif/presentation-3 @iiif/vault @iiif/vault-helpers"
32
41
  },
33
42
  "license": "MIT",
34
43
  "resolutions": {
35
- "@atlas-viewer/iiif-image-api": "^2.0.3",
44
+ "@atlas-viewer/iiif-image-api": "^2.0.5",
36
45
  "@iiif/vault": "^0.9.18",
37
46
  "@iiif/parser": "^1.0.10",
38
47
  "@iiif/presentation-3": "^1.0.5"
39
48
  },
40
49
  "dependencies": {
41
- "@atlas-viewer/atlas": "^2.0.0-alpha.11",
42
- "@atlas-viewer/iiif-image-api": "^2.*",
50
+ "@atlas-viewer/atlas": "^2.0.0-alpha.15",
51
+ "@atlas-viewer/iiif-image-api": "2.*",
43
52
  "@iiif/parser": ">=v1.0.10",
44
- "@iiif/presentation-2": "^1.*",
45
- "@iiif/presentation-3": "^1.*",
46
- "@iiif/vault": "^0.*",
47
- "@iiif/vault-helpers": "^0.*",
53
+ "@iiif/presentation-2": "1.*",
54
+ "@iiif/presentation-3": "1.*",
55
+ "@iiif/vault": ">=0.9.18",
56
+ "@iiif/vault-helpers": ">=0.9.7",
48
57
  "react": "^16.10.2 || ^17.0.2 || ^18.2.0",
49
58
  "react-dom": "^16.10.2 || ^17.0.2 || ^18.2.0",
50
59
  "react-error-boundary": "^3.1.4",
51
60
  "redux": "^4.2.0",
52
- "rollup": "^2.72.1",
53
- "typescript": "^4.6.2",
54
- "use-sync-external-store": "^1.1.0"
61
+ "typescript": "^4.7.4",
62
+ "use-sync-external-store": "^1.2.0"
55
63
  },
56
64
  "devDependencies": {
57
- "@rollup/plugin-replace": "^4.0.0",
58
65
  "@testing-library/react": "^12.1.4",
59
66
  "@testing-library/react-hooks": "^7.0.2",
60
67
  "@types/react": "^18.0.14",
@@ -63,19 +70,22 @@
63
70
  "@typescript-eslint/eslint-plugin": "^5.22.0",
64
71
  "@typescript-eslint/parser": "^5.22.0",
65
72
  "@vitejs/plugin-react": "^1.3.2",
73
+ "chalk": "^5.0.1",
66
74
  "eslint": "^8.11.0",
67
75
  "eslint-plugin-json": "^3.1.0",
68
76
  "eslint-plugin-prettier": "^4.0.0",
69
77
  "happy-dom": "^3.2.2",
70
78
  "prettier": "^2.6.2",
71
- "react": "^16.10.2 || ^17.0.2 || ^18.2.0",
72
- "react-dom": "^16.10.2 || ^17.0.2 || ^18.2.0",
79
+ "react-16": "npm:react@16",
80
+ "react-17": "npm:react@17",
81
+ "react-18": "npm:react@18",
82
+ "react-dom-16": "npm:react-dom@16",
83
+ "react-dom-17": "npm:react-dom@17",
84
+ "react-dom-18": "npm:react-dom@18",
73
85
  "react-use": "^17.3.2",
74
- "redux": "^4.2.0",
75
- "rollup-library-template": "^1.0.4",
76
- "tslib": "^2.3.1",
77
- "vite": "^2.9.9",
78
- "vitest": "^0.12.6"
86
+ "tslib": "^2.4.0",
87
+ "vite": "^2.9.14",
88
+ "vitest": "^0.18.0"
79
89
  },
80
90
  "publishConfig": {
81
91
  "access": "public"