react-iiif-vault 0.9.10 → 0.9.13
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.
- package/.build/types/canvas-panel/Viewer.d.ts +13 -0
- package/.build/types/canvas-panel/index.d.ts +18 -0
- package/.build/types/canvas-panel/render/Annotation.d.ts +8 -0
- package/.build/types/canvas-panel/render/AnnotationPage.d.ts +6 -0
- package/.build/types/canvas-panel/render/Audio.d.ts +6 -0
- package/.build/types/canvas-panel/render/Canvas.d.ts +23 -0
- package/.build/types/canvas-panel/render/DefaultCanvasFallback.d.ts +5 -0
- package/.build/types/canvas-panel/render/Image.d.ts +13 -0
- package/.build/types/canvas-panel/render/Model.d.ts +3 -0
- package/.build/types/canvas-panel/render/Video.d.ts +6 -0
- package/.build/types/context/AnnotationContext.d.ts +5 -0
- package/.build/types/context/CanvasContext.d.ts +5 -0
- package/.build/types/context/CollectionContext.d.ts +5 -0
- package/.build/types/context/ContextBridge.d.ts +22 -0
- package/.build/types/context/ImageServiceLoaderContext.d.ts +4 -0
- package/.build/types/context/ManifestContext.d.ts +5 -0
- package/.build/types/context/MediaContext.d.ts +17 -0
- package/.build/types/context/PortalContext.d.ts +7 -0
- package/.build/types/context/RangeContext.d.ts +5 -0
- package/.build/types/context/ResourceContext.d.ts +14 -0
- package/.build/types/context/VaultContext.d.ts +14 -0
- package/.build/types/context/ViewerPresetContext.d.ts +3 -0
- package/.build/types/context/VisibleCanvasContext.d.ts +4 -0
- package/.build/types/demo/demo.d.ts +1 -0
- package/.build/types/demo/media-controls.d.ts +1 -0
- package/.build/types/demo/viewer-controls.d.ts +1 -0
- package/.build/types/features/rendering-strategy/3d-strategy.d.ts +13 -0
- package/.build/types/features/rendering-strategy/audio-strategy.d.ts +3 -0
- package/.build/types/features/rendering-strategy/choice-types.d.ts +15 -0
- package/.build/types/features/rendering-strategy/image-strategy.d.ts +13 -0
- package/.build/types/features/rendering-strategy/rendering-utils.d.ts +21 -0
- package/.build/types/features/rendering-strategy/resource-types.d.ts +42 -0
- package/.build/types/features/rendering-strategy/strategies.d.ts +22 -0
- package/.build/types/features/rendering-strategy/video-strategy.d.ts +3 -0
- package/.build/types/hooks/useAnnotation.d.ts +8 -0
- package/.build/types/hooks/useAnnotationPageManager.d.ts +10 -0
- package/.build/types/hooks/useAnnotationsAtTime.d.ts +4 -0
- package/.build/types/hooks/useCanvas.d.ts +8 -0
- package/.build/types/hooks/useCanvasClock.d.ts +1 -0
- package/.build/types/hooks/useCanvasSelector.d.ts +0 -0
- package/.build/types/hooks/useCanvasTimeline.d.ts +0 -0
- package/.build/types/hooks/useCollection.d.ts +8 -0
- package/.build/types/hooks/useDispatch.d.ts +2 -0
- package/.build/types/hooks/useEnabledAnnotationPageIds.d.ts +1 -0
- package/.build/types/hooks/useEventListener.d.ts +4 -0
- package/.build/types/hooks/useExistingVault.d.ts +1 -0
- package/.build/types/hooks/useExternalCollection.d.ts +13 -0
- package/.build/types/hooks/useExternalManifest.d.ts +13 -0
- package/.build/types/hooks/useExternalResource.d.ts +16 -0
- package/.build/types/hooks/useImageService.d.ts +9 -0
- package/.build/types/hooks/useImageTile.d.ts +11 -0
- package/.build/types/hooks/useLoadImageService.d.ts +6 -0
- package/.build/types/hooks/useManifest.d.ts +8 -0
- package/.build/types/hooks/usePaintables.d.ts +8 -0
- package/.build/types/hooks/usePaintingAnnotations.d.ts +4 -0
- package/.build/types/hooks/useRange.d.ts +8 -0
- package/.build/types/hooks/useRenderingStrategy.d.ts +14 -0
- package/.build/types/hooks/useResourceEvents.d.ts +3 -0
- package/.build/types/hooks/useResources.d.ts +1 -0
- package/.build/types/hooks/useSearchService.d.ts +2 -0
- package/.build/types/hooks/useSimpleMediaPlayer.d.ts +32 -0
- package/.build/types/hooks/useStyleHelper.d.ts +1 -0
- package/.build/types/hooks/useStyles.d.ts +3 -0
- package/.build/types/hooks/useThumbnail.d.ts +5 -0
- package/.build/types/hooks/useVault.d.ts +2 -0
- package/.build/types/hooks/useVaultEffect.d.ts +2 -0
- package/.build/types/hooks/useVaultSelector.d.ts +2 -0
- package/.build/types/hooks/useVirtualAnnotationPage.d.ts +13 -0
- package/.build/types/hooks/useVirtualAnnotationPageContext.d.ts +9 -0
- package/.build/types/hooks/useVirtualCanvas.d.ts +0 -0
- package/.build/types/index.d.ts +54 -0
- package/.build/types/utility/flatten-annotation-page-ids.d.ts +7 -0
- package/.build/types/viewers/SimpleViewerContext.d.ts +18 -0
- package/.build/types/viewers/SingleCanvasContext.d.ts +1 -0
- package/dist/bundle/cjs/index.js +36 -0
- package/dist/bundle/cjs/index.js.map +1 -0
- package/dist/{esm → bundle/esm}/index.mjs +740 -791
- package/dist/bundle/esm/index.mjs.map +1 -0
- package/dist/canvas-panel/cjs/canvas-panel.js +36 -0
- package/dist/canvas-panel/cjs/canvas-panel.js.map +1 -0
- package/dist/canvas-panel/esm/canvas-panel.mjs +2043 -0
- package/dist/canvas-panel/esm/canvas-panel.mjs.map +1 -0
- package/dist/index.umd.js +121 -31742
- package/dist/index.umd.js.map +1 -0
- package/package.json +38 -28
- package/dist/cjs/index.js +0 -2536
- package/dist/index.d.ts +0 -615
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-iiif-vault",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"main": "
|
|
5
|
-
"module": "
|
|
6
|
-
"types": "
|
|
3
|
+
"version": "0.9.13",
|
|
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 &&
|
|
30
|
-
"prepublishOnly": "tsc -p ./tsconfig.types.json --declaration --emitDeclarationOnly &&
|
|
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.
|
|
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.
|
|
42
|
-
"@atlas-viewer/iiif-image-api": "
|
|
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": "
|
|
45
|
-
"@iiif/presentation-3": "
|
|
46
|
-
"@iiif/vault": "
|
|
47
|
-
"@iiif/vault-helpers": "
|
|
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
|
-
"
|
|
53
|
-
"
|
|
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": "
|
|
72
|
-
"react-
|
|
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
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
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"
|