react-iiif-vault 1.0.8 → 1.0.10
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 +1 -1
- package/.build/types/canvas-panel/index.d.ts +2 -1
- package/.build/types/canvas-panel/render/Audio.d.ts +1 -1
- package/.build/types/canvas-panel/render/Canvas.d.ts +2 -2
- package/.build/types/canvas-panel/render/CanvasBackground.d.ts +1 -1
- package/.build/types/canvas-panel/render/DefaultCanvasFallback.d.ts +1 -1
- package/.build/types/canvas-panel/render/Image.d.ts +1 -1
- package/.build/types/canvas-panel/render/Model.d.ts +1 -1
- package/.build/types/canvas-panel/render/Video.d.ts +1 -1
- package/.build/types/canvas-panel/render/VideoYouTube.d.ts +1 -1
- package/.build/types/components/CanvasAnnotations.d.ts +10 -0
- package/.build/types/components/CombinedMetadata.d.ts +4 -0
- package/.build/types/components/Image.d.ts +15 -0
- package/.build/types/components/ManifestMetadata.d.ts +4 -0
- package/.build/types/components/Metadata.d.ts +39 -0
- package/.build/types/components/SequenceThumbnails.d.ts +29 -0
- package/.build/types/components/SingleCanvasThumbnail.d.ts +20 -0
- package/.build/types/context/AnnotationContext.d.ts +1 -1
- package/.build/types/context/AnnotationPageContext.d.ts +1 -1
- package/.build/types/context/CanvasContext.d.ts +1 -1
- package/.build/types/context/CollectionContext.d.ts +1 -1
- package/.build/types/context/ContextBridge.d.ts +1 -1
- package/.build/types/context/ManifestContext.d.ts +1 -1
- package/.build/types/context/MediaContext.d.ts +1 -1
- package/.build/types/context/RangeContext.d.ts +1 -1
- package/.build/types/context/ResourceContext.d.ts +2 -2
- package/.build/types/context/VaultContext.d.ts +1 -1
- package/.build/types/demo/media-controls.d.ts +1 -1
- package/.build/types/demo/viewer-controls.d.ts +1 -1
- package/.build/types/features/rendering-strategy/3d-strategy.d.ts +1 -1
- package/.build/types/features/rendering-strategy/image-strategy.d.ts +1 -1
- package/.build/types/features/rendering-strategy/resource-types.d.ts +7 -7
- package/.build/types/features/rendering-strategy/strategies.d.ts +5 -5
- package/.build/types/features/rendering-strategy/textual-content-strategy.d.ts +1 -1
- package/.build/types/hooks/useEventListener.d.ts +1 -1
- package/.build/types/hooks/useExistingVault.d.ts +2 -1
- package/.build/types/hooks/useExternalResource.d.ts +1 -1
- package/.build/types/hooks/useImage.d.ts +10 -0
- package/.build/types/hooks/useLoadImageService.d.ts +1 -1
- package/.build/types/hooks/useRenderingStrategy.d.ts +3 -3
- package/.build/types/hooks/useSimpleMediaPlayer.d.ts +2 -2
- package/.build/types/hooks/useVirtualAnnotationPageContext.d.ts +81 -81
- package/.build/types/index.d.ts +8 -0
- package/.build/types/utility/i18n-utils.d.ts +8 -6
- package/.build/types/viewers/SimpleViewerContext.d.ts +2 -2
- package/.build/types/viewers/SimpleViewerContext.hooks.d.ts +2 -0
- package/.build/types/viewers/SimpleViewerContext.types.d.ts +8 -4
- package/README.md +495 -177
- package/dist/bundle/cjs/index.js +7 -6
- package/dist/bundle/cjs/index.js.map +1 -1
- package/dist/bundle/esm/index.mjs +2391 -1186
- package/dist/bundle/esm/index.mjs.map +1 -1
- package/dist/canvas-panel/cjs/canvas-panel.js +5 -5
- package/dist/canvas-panel/cjs/canvas-panel.js.map +1 -1
- package/dist/canvas-panel/esm/canvas-panel.mjs +596 -547
- package/dist/canvas-panel/esm/canvas-panel.mjs.map +1 -1
- package/dist/index.umd.js +78 -76
- package/dist/index.umd.js.map +1 -1
- package/dist/react17/cjs/index.js +7 -6
- package/dist/react17/cjs/index.js.map +1 -1
- package/dist/react17/esm/index.mjs +2391 -1186
- package/dist/react17/esm/index.mjs.map +1 -1
- package/dist/utils/cjs/utils.js +1 -1
- package/dist/utils/cjs/utils.js.map +1 -1
- package/dist/utils/esm/utils.mjs +21 -21
- package/dist/utils/esm/utils.mjs.map +1 -1
- package/package.json +24 -22
|
@@ -6,11 +6,11 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
6
6
|
id: string;
|
|
7
7
|
timeMode?: string | undefined;
|
|
8
8
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
9
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
10
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
11
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
12
9
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
13
10
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
11
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
12
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
13
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
14
14
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
15
15
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
16
16
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -18,12 +18,12 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
18
18
|
partOf?: ({
|
|
19
19
|
id: string;
|
|
20
20
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
21
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
22
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
23
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
24
21
|
rights?: string | null | undefined;
|
|
25
22
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
26
23
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
24
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
25
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
26
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
27
27
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
28
28
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
29
29
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -57,25 +57,25 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
57
57
|
width?: number | undefined;
|
|
58
58
|
duration?: number | undefined;
|
|
59
59
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
60
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
61
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
62
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
63
60
|
rights?: string | null | undefined;
|
|
64
61
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
65
62
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
66
63
|
accompanyingCanvas?: any | undefined;
|
|
67
64
|
placeholderCanvas?: any | undefined;
|
|
65
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
66
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
67
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
68
68
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
69
69
|
navDate?: string | null | undefined;
|
|
70
70
|
items?: {
|
|
71
71
|
id: string;
|
|
72
72
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
73
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
74
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
75
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
76
73
|
rights?: string | null | undefined;
|
|
77
74
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
78
75
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
76
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
77
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
78
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
79
79
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
80
80
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
81
81
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -90,14 +90,14 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
90
90
|
startIndex?: number | undefined;
|
|
91
91
|
partOf?: {
|
|
92
92
|
id: string;
|
|
93
|
-
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
94
|
-
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
95
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
96
93
|
type?: "AnnotationCollection" | undefined;
|
|
97
94
|
rights?: string | undefined;
|
|
98
95
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
99
96
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
100
97
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
98
|
+
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
99
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
100
|
+
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
101
101
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | undefined;
|
|
102
102
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
103
103
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -107,33 +107,33 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
107
107
|
logo?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
108
108
|
"@context"?: string | undefined;
|
|
109
109
|
total?: number | undefined;
|
|
110
|
-
first?: string | {
|
|
110
|
+
first?: NonNullable<string | {
|
|
111
111
|
type: "AnnotationPage";
|
|
112
112
|
items?: any[] | undefined;
|
|
113
113
|
"@context"?: string | undefined;
|
|
114
114
|
next?: string | undefined;
|
|
115
115
|
prev?: string | undefined;
|
|
116
116
|
startIndex?: number | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
last?: string | {
|
|
117
|
+
} | undefined> | undefined;
|
|
118
|
+
last?: NonNullable<string | {
|
|
119
119
|
type: "AnnotationPage";
|
|
120
120
|
items?: any[] | undefined;
|
|
121
121
|
"@context"?: string | undefined;
|
|
122
122
|
next?: string | undefined;
|
|
123
123
|
prev?: string | undefined;
|
|
124
124
|
startIndex?: number | undefined;
|
|
125
|
-
} | undefined;
|
|
125
|
+
} | undefined> | undefined;
|
|
126
126
|
}[] | undefined;
|
|
127
127
|
}[] | undefined;
|
|
128
128
|
annotations?: {
|
|
129
129
|
id: string;
|
|
130
130
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
131
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
132
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
133
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
134
131
|
rights?: string | null | undefined;
|
|
135
132
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
136
133
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
134
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
135
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
136
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
137
137
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
138
138
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
139
139
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -145,11 +145,11 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
145
145
|
id: string;
|
|
146
146
|
timeMode?: string | undefined;
|
|
147
147
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
148
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
149
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
150
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
151
148
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
152
149
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
150
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
151
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
152
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
153
153
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
154
154
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
155
155
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -157,12 +157,12 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
157
157
|
partOf?: ({
|
|
158
158
|
id: string;
|
|
159
159
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
160
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
161
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
162
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
163
160
|
rights?: string | null | undefined;
|
|
164
161
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
165
162
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
163
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
164
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
165
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
166
166
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
167
167
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
168
168
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -208,7 +208,7 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
208
208
|
motivation?: import("@iiif/presentation-3").AnyMotivation | import("@iiif/presentation-3").AnyMotivation[] | undefined;
|
|
209
209
|
rights?: string | string[] | undefined;
|
|
210
210
|
canonical?: string | undefined;
|
|
211
|
-
via?:
|
|
211
|
+
via?: string | (string[] & string) | undefined;
|
|
212
212
|
"@context"?: "http://www.w3.org/ns/anno.jsonld" | undefined;
|
|
213
213
|
bodyValue?: string | undefined;
|
|
214
214
|
stylesheet?: string | import("@iiif/presentation-3").Stylesheet | undefined;
|
|
@@ -223,14 +223,14 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
223
223
|
startIndex?: number | undefined;
|
|
224
224
|
partOf?: {
|
|
225
225
|
id: string;
|
|
226
|
-
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
227
|
-
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
228
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
229
226
|
type?: "AnnotationCollection" | undefined;
|
|
230
227
|
rights?: string | undefined;
|
|
231
228
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
232
229
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
233
230
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
231
|
+
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
232
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
233
|
+
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
234
234
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | undefined;
|
|
235
235
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
236
236
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -240,22 +240,22 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
240
240
|
logo?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
241
241
|
"@context"?: string | undefined;
|
|
242
242
|
total?: number | undefined;
|
|
243
|
-
first?: string | {
|
|
243
|
+
first?: NonNullable<string | {
|
|
244
244
|
type: "AnnotationPage";
|
|
245
245
|
items?: any[] | undefined;
|
|
246
246
|
"@context"?: string | undefined;
|
|
247
247
|
next?: string | undefined;
|
|
248
248
|
prev?: string | undefined;
|
|
249
249
|
startIndex?: number | undefined;
|
|
250
|
-
} | undefined;
|
|
251
|
-
last?: string | {
|
|
250
|
+
} | undefined> | undefined;
|
|
251
|
+
last?: NonNullable<string | {
|
|
252
252
|
type: "AnnotationPage";
|
|
253
253
|
items?: any[] | undefined;
|
|
254
254
|
"@context"?: string | undefined;
|
|
255
255
|
next?: string | undefined;
|
|
256
256
|
prev?: string | undefined;
|
|
257
257
|
startIndex?: number | undefined;
|
|
258
|
-
} | undefined;
|
|
258
|
+
} | undefined> | undefined;
|
|
259
259
|
}[] | undefined;
|
|
260
260
|
}[] | undefined;
|
|
261
261
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
@@ -264,12 +264,12 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
264
264
|
partOf?: ({
|
|
265
265
|
id: string;
|
|
266
266
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
267
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
268
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
269
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
270
267
|
rights?: string | null | undefined;
|
|
271
268
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
272
269
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
270
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
271
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
272
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
273
273
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
274
274
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
275
275
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -325,7 +325,7 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
325
325
|
motivation?: import("@iiif/presentation-3").AnyMotivation | import("@iiif/presentation-3").AnyMotivation[] | undefined;
|
|
326
326
|
rights?: string | string[] | undefined;
|
|
327
327
|
canonical?: string | undefined;
|
|
328
|
-
via?:
|
|
328
|
+
via?: string | (string[] & string) | undefined;
|
|
329
329
|
"@context"?: "http://www.w3.org/ns/anno.jsonld" | undefined;
|
|
330
330
|
bodyValue?: string | undefined;
|
|
331
331
|
stylesheet?: string | import("@iiif/presentation-3").Stylesheet | undefined;
|
|
@@ -338,11 +338,11 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
338
338
|
id: string;
|
|
339
339
|
timeMode?: string | undefined;
|
|
340
340
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
341
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
342
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
343
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
344
341
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
345
342
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
343
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
344
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
345
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
346
346
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
347
347
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
348
348
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -350,12 +350,12 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
350
350
|
partOf?: ({
|
|
351
351
|
id: string;
|
|
352
352
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
353
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
354
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
355
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
356
353
|
rights?: string | null | undefined;
|
|
357
354
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
358
355
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
356
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
357
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
358
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
359
359
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
360
360
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
361
361
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -389,25 +389,25 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
389
389
|
width?: number | undefined;
|
|
390
390
|
duration?: number | undefined;
|
|
391
391
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
392
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
393
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
394
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
395
392
|
rights?: string | null | undefined;
|
|
396
393
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
397
394
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
398
395
|
accompanyingCanvas?: any | undefined;
|
|
399
396
|
placeholderCanvas?: any | undefined;
|
|
397
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
398
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
399
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
400
400
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
401
401
|
navDate?: string | null | undefined;
|
|
402
402
|
items?: {
|
|
403
403
|
id: string;
|
|
404
404
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
405
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
406
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
407
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
408
405
|
rights?: string | null | undefined;
|
|
409
406
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
410
407
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
408
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
409
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
410
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
411
411
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
412
412
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
413
413
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -422,14 +422,14 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
422
422
|
startIndex?: number | undefined;
|
|
423
423
|
partOf?: {
|
|
424
424
|
id: string;
|
|
425
|
-
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
426
|
-
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
427
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
428
425
|
type?: "AnnotationCollection" | undefined;
|
|
429
426
|
rights?: string | undefined;
|
|
430
427
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
431
428
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
432
429
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
430
|
+
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
431
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
432
|
+
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
433
433
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | undefined;
|
|
434
434
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
435
435
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -439,33 +439,33 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
439
439
|
logo?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
440
440
|
"@context"?: string | undefined;
|
|
441
441
|
total?: number | undefined;
|
|
442
|
-
first?: string | {
|
|
442
|
+
first?: NonNullable<string | {
|
|
443
443
|
type: "AnnotationPage";
|
|
444
444
|
items?: any[] | undefined;
|
|
445
445
|
"@context"?: string | undefined;
|
|
446
446
|
next?: string | undefined;
|
|
447
447
|
prev?: string | undefined;
|
|
448
448
|
startIndex?: number | undefined;
|
|
449
|
-
} | undefined;
|
|
450
|
-
last?: string | {
|
|
449
|
+
} | undefined> | undefined;
|
|
450
|
+
last?: NonNullable<string | {
|
|
451
451
|
type: "AnnotationPage";
|
|
452
452
|
items?: any[] | undefined;
|
|
453
453
|
"@context"?: string | undefined;
|
|
454
454
|
next?: string | undefined;
|
|
455
455
|
prev?: string | undefined;
|
|
456
456
|
startIndex?: number | undefined;
|
|
457
|
-
} | undefined;
|
|
457
|
+
} | undefined> | undefined;
|
|
458
458
|
}[] | undefined;
|
|
459
459
|
}[] | undefined;
|
|
460
460
|
annotations?: {
|
|
461
461
|
id: string;
|
|
462
462
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
463
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
464
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
465
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
466
463
|
rights?: string | null | undefined;
|
|
467
464
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
468
465
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
466
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
467
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
468
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
469
469
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
470
470
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
471
471
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -477,11 +477,11 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
477
477
|
id: string;
|
|
478
478
|
timeMode?: string | undefined;
|
|
479
479
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
480
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
481
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
482
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
483
480
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
484
481
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
482
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
483
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
484
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
485
485
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
486
486
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
487
487
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -489,12 +489,12 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
489
489
|
partOf?: ({
|
|
490
490
|
id: string;
|
|
491
491
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
492
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
493
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
494
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
495
492
|
rights?: string | null | undefined;
|
|
496
493
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
497
494
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
495
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
496
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
497
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
498
498
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
499
499
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
500
500
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -540,7 +540,7 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
540
540
|
motivation?: import("@iiif/presentation-3").AnyMotivation | import("@iiif/presentation-3").AnyMotivation[] | undefined;
|
|
541
541
|
rights?: string | string[] | undefined;
|
|
542
542
|
canonical?: string | undefined;
|
|
543
|
-
via?:
|
|
543
|
+
via?: string | (string[] & string) | undefined;
|
|
544
544
|
"@context"?: "http://www.w3.org/ns/anno.jsonld" | undefined;
|
|
545
545
|
bodyValue?: string | undefined;
|
|
546
546
|
stylesheet?: string | import("@iiif/presentation-3").Stylesheet | undefined;
|
|
@@ -555,14 +555,14 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
555
555
|
startIndex?: number | undefined;
|
|
556
556
|
partOf?: {
|
|
557
557
|
id: string;
|
|
558
|
-
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
559
|
-
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
560
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
561
558
|
type?: "AnnotationCollection" | undefined;
|
|
562
559
|
rights?: string | undefined;
|
|
563
560
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
564
561
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
565
562
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
563
|
+
label?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
564
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
565
|
+
summary?: import("@iiif/presentation-3").InternationalString | undefined;
|
|
566
566
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | undefined;
|
|
567
567
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
568
568
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -572,22 +572,22 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
572
572
|
logo?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
573
573
|
"@context"?: string | undefined;
|
|
574
574
|
total?: number | undefined;
|
|
575
|
-
first?: string | {
|
|
575
|
+
first?: NonNullable<string | {
|
|
576
576
|
type: "AnnotationPage";
|
|
577
577
|
items?: any[] | undefined;
|
|
578
578
|
"@context"?: string | undefined;
|
|
579
579
|
next?: string | undefined;
|
|
580
580
|
prev?: string | undefined;
|
|
581
581
|
startIndex?: number | undefined;
|
|
582
|
-
} | undefined;
|
|
583
|
-
last?: string | {
|
|
582
|
+
} | undefined> | undefined;
|
|
583
|
+
last?: NonNullable<string | {
|
|
584
584
|
type: "AnnotationPage";
|
|
585
585
|
items?: any[] | undefined;
|
|
586
586
|
"@context"?: string | undefined;
|
|
587
587
|
next?: string | undefined;
|
|
588
588
|
prev?: string | undefined;
|
|
589
589
|
startIndex?: number | undefined;
|
|
590
|
-
} | undefined;
|
|
590
|
+
} | undefined> | undefined;
|
|
591
591
|
}[] | undefined;
|
|
592
592
|
}[] | undefined;
|
|
593
593
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
@@ -596,12 +596,12 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
596
596
|
partOf?: ({
|
|
597
597
|
id: string;
|
|
598
598
|
behavior?: import("@iiif/presentation-3").LiteralUnion<import("@iiif/presentation-3").SpecificationBehaviors>[] | undefined;
|
|
599
|
-
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
600
|
-
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
601
|
-
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
602
599
|
rights?: string | null | undefined;
|
|
603
600
|
provider?: import("@iiif/presentation-3").ResourceProvider[] | undefined;
|
|
604
601
|
thumbnail?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
602
|
+
label?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
603
|
+
metadata?: import("@iiif/presentation-3").MetadataItem[] | undefined;
|
|
604
|
+
summary?: import("@iiif/presentation-3").InternationalString | null | undefined;
|
|
605
605
|
requiredStatement?: import("@iiif/presentation-3").MetadataItem | null | undefined;
|
|
606
606
|
seeAlso?: import("@iiif/presentation-3").ContentResource[] | undefined;
|
|
607
607
|
service?: import("@iiif/presentation-3").Service[] | undefined;
|
|
@@ -657,7 +657,7 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
657
657
|
motivation?: import("@iiif/presentation-3").AnyMotivation | import("@iiif/presentation-3").AnyMotivation[] | undefined;
|
|
658
658
|
rights?: string | string[] | undefined;
|
|
659
659
|
canonical?: string | undefined;
|
|
660
|
-
via?:
|
|
660
|
+
via?: string | (string[] & string) | undefined;
|
|
661
661
|
"@context"?: "http://www.w3.org/ns/anno.jsonld" | undefined;
|
|
662
662
|
bodyValue?: string | undefined;
|
|
663
663
|
stylesheet?: string | import("@iiif/presentation-3").Stylesheet | undefined;
|
|
@@ -668,4 +668,4 @@ export declare function useVirtualAnnotationPageContext(): readonly [AnnotationP
|
|
|
668
668
|
}];
|
|
669
669
|
export declare function VirtualAnnotationProvider({ children }: {
|
|
670
670
|
children: any;
|
|
671
|
-
}): JSX.Element;
|
|
671
|
+
}): import("react/jsx-dev-runtime").JSX.Element;
|
package/.build/types/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export * from './canvas-panel';
|
|
2
|
+
export * from './components/CanvasAnnotations';
|
|
3
|
+
export * from './components/CombinedMetadata';
|
|
4
|
+
export * from './components/Image';
|
|
5
|
+
export * from './components/ManifestMetadata';
|
|
6
|
+
export * from './components/Metadata';
|
|
7
|
+
export * from './components/SequenceThumbnails';
|
|
8
|
+
export * from './components/SingleCanvasThumbnail';
|
|
2
9
|
export * from './context/AnnotationContext';
|
|
3
10
|
export * from './context/AnnotationPageContext';
|
|
4
11
|
export * from './context/CanvasContext';
|
|
@@ -34,6 +41,7 @@ export * from './hooks/useExistingVault';
|
|
|
34
41
|
export * from './hooks/useExternalCollection';
|
|
35
42
|
export * from './hooks/useExternalManifest';
|
|
36
43
|
export * from './hooks/useExternalResource';
|
|
44
|
+
export * from './hooks/useImage';
|
|
37
45
|
export * from './hooks/useImageService';
|
|
38
46
|
export * from './hooks/useImageTile';
|
|
39
47
|
export * from './hooks/useManifest';
|
|
@@ -3,26 +3,28 @@ import React, { ReactNode } from 'react';
|
|
|
3
3
|
export declare function LanguageProvider(props: {
|
|
4
4
|
language: string;
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): import("react/jsx-dev-runtime").JSX.Element;
|
|
7
7
|
export declare function useIIIFLanguage(): string;
|
|
8
|
-
|
|
8
|
+
type LanguageStringProps = {
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
} & {
|
|
11
11
|
as?: string | React.FC<any>;
|
|
12
12
|
language: string;
|
|
13
13
|
viewingDirection?: 'rtl' | 'rtl';
|
|
14
14
|
};
|
|
15
|
-
export declare function LanguageString({ as: Component, language, children, viewingDirection, ...props }: LanguageStringProps): JSX.Element;
|
|
15
|
+
export declare function LanguageString({ as: Component, language, children, viewingDirection, ...props }: LanguageStringProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
16
16
|
export declare const useClosestLanguage: (getLanguages: () => string[], deps?: any[]) => string | undefined;
|
|
17
|
-
export declare function useLocaleString(inputText: InternationalString | string | null | undefined, defaultText?: string): readonly [string, string | undefined];
|
|
17
|
+
export declare function useLocaleString(inputText: InternationalString | string | null | undefined, defaultText?: string, separator?: string): readonly [string, string | undefined];
|
|
18
18
|
export declare function useCreateLocaleString(): (inputText: InternationalString | string | null | undefined, defaultText?: string, separator?: string) => string;
|
|
19
|
-
|
|
19
|
+
type LocaleStringProps = {
|
|
20
20
|
as?: string | React.FC<any>;
|
|
21
21
|
defaultText?: string;
|
|
22
22
|
to?: string;
|
|
23
|
+
separator?: string;
|
|
23
24
|
enableDangerouslySetInnerHTML?: boolean;
|
|
24
25
|
children: InternationalString | string | null | undefined;
|
|
25
26
|
style?: React.CSSProperties;
|
|
26
27
|
extraProps?: any;
|
|
27
|
-
} & Record<string, any
|
|
28
|
+
} & Record<string, any>;
|
|
29
|
+
export declare function LocaleString({ as: Component, defaultText, enableDangerouslySetInnerHTML, children, separator, ...props }: LocaleStringProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
28
30
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SimpleViewerContext, SimpleViewerProps } from './SimpleViewerContext.types';
|
|
3
3
|
export declare const SimpleViewerReactContext: React.Context<SimpleViewerContext>;
|
|
4
|
-
export declare function InnerViewerProvider(props: SimpleViewerProps): JSX.Element | null;
|
|
5
|
-
export declare function SimpleViewerProvider(props: SimpleViewerProps): JSX.Element;
|
|
4
|
+
export declare function InnerViewerProvider(props: SimpleViewerProps): import("react/jsx-dev-runtime").JSX.Element | null;
|
|
5
|
+
export declare function SimpleViewerProvider(props: SimpleViewerProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
6
6
|
export declare function useSimpleViewer(): SimpleViewerContext;
|
|
@@ -9,6 +9,8 @@ export declare function useCanvasSequence({ startCanvas, disablePaging }: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}[];
|
|
11
11
|
sequence: number[][];
|
|
12
|
+
hasPrevious: boolean;
|
|
13
|
+
hasNext: boolean;
|
|
12
14
|
setSequenceIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
13
15
|
setCanvasIndex: (index: number) => void;
|
|
14
16
|
setCanvasId: (id: string) => void;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { Vault } from '@iiif/helpers/vault';
|
|
1
2
|
import { Reference } from '@iiif/presentation-3';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
|
-
export
|
|
4
|
+
export type SimpleViewerContext = {
|
|
4
5
|
items: Reference<'Canvas'>[];
|
|
5
6
|
sequence: number[][];
|
|
7
|
+
hasNext: boolean;
|
|
8
|
+
hasPrevious: boolean;
|
|
6
9
|
setSequenceIndex: (newId: number) => void;
|
|
7
10
|
setCurrentCanvasId: (newId: string) => void;
|
|
8
11
|
setCurrentCanvasIndex: (newId: number) => void;
|
|
@@ -10,14 +13,15 @@ export declare type SimpleViewerContext = {
|
|
|
10
13
|
nextCanvas: () => void;
|
|
11
14
|
previousCanvas: () => void;
|
|
12
15
|
};
|
|
13
|
-
export
|
|
16
|
+
export type SimpleViewerProps = {
|
|
17
|
+
vault?: Vault;
|
|
14
18
|
manifest: string;
|
|
15
19
|
pagingEnabled?: boolean;
|
|
16
20
|
children: ReactNode;
|
|
17
21
|
startCanvas?: string;
|
|
18
22
|
rangeId?: string;
|
|
19
23
|
};
|
|
20
|
-
export
|
|
24
|
+
export type SimpleViewerReducerState = {
|
|
21
25
|
sequence: number[][];
|
|
22
26
|
availableCanvases: Reference<'Canvas'>[];
|
|
23
27
|
visibleCanvases: Reference<'Canvas'>[];
|
|
@@ -34,7 +38,7 @@ export interface SimpleViewerActions {
|
|
|
34
38
|
clearRange(): void;
|
|
35
39
|
setPagingEnabled(isEnabled: boolean): void;
|
|
36
40
|
}
|
|
37
|
-
export
|
|
41
|
+
export type SimpleViewerActionsType = {
|
|
38
42
|
[T in keyof SimpleViewerActions]: {
|
|
39
43
|
type: T;
|
|
40
44
|
payload: Parameters<SimpleViewerActions[T]>[0];
|