react-iiif-vault 2.0.18 → 4.0.0
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/README.md +77 -1
- package/dist/Image-CXsx26cA.d.ts +45 -0
- package/dist/Image-g-DyBvi0.d.cts +45 -0
- package/dist/ImageStrategy-BHLIi5gd.d.ts +55 -0
- package/dist/ImageStrategy-Be9YES5a.d.cts +55 -0
- package/dist/SimpleViewerContext.hooks-CTgfe0Gg.d.cts +617 -0
- package/dist/SimpleViewerContext.hooks-DYJSrd-U.d.ts +617 -0
- package/dist/SimpleViewerContext.types-CWf5OFM7.d.ts +51 -0
- package/dist/SimpleViewerContext.types-Df-cpBss.d.cts +51 -0
- package/dist/ViewerPresetContext-D7N6KH9p.d.ts +144 -0
- package/dist/ViewerPresetContext-DwFTIkDx.d.cts +144 -0
- package/dist/bundle.d.ts +290 -196
- package/dist/bundle.global.js +45 -74
- package/dist/canvas-panel/scene.cjs +1 -0
- package/dist/canvas-panel/scene.d.cts +133 -0
- package/dist/canvas-panel/scene.d.ts +133 -0
- package/dist/canvas-panel/scene.js +1 -0
- package/dist/canvas-panel.cjs +1 -47
- package/dist/canvas-panel.d.cts +10 -5
- package/dist/canvas-panel.d.ts +10 -5
- package/dist/canvas-panel.js +1 -1
- package/dist/chunk-3XPYQXUE.js +48 -0
- package/dist/chunk-6WG6RPHU.js +1 -0
- package/dist/chunk-DXC5VCRN.js +1 -0
- package/dist/chunk-DZ7DMQ3V.cjs +1 -0
- package/dist/chunk-HFC72RK6.js +1 -0
- package/dist/chunk-L2GTJVPY.js +1 -0
- package/dist/chunk-L576POBV.cjs +2 -0
- package/dist/chunk-LKWFF45D.cjs +1 -0
- package/dist/chunk-MEQI335A.js +2 -0
- package/dist/chunk-MIANDAMK.cjs +1 -0
- package/dist/chunk-ND2R7OTX.js +1 -0
- package/dist/chunk-R7HZTE2T.cjs +48 -0
- package/dist/chunk-WBVFSMED.cjs +1 -0
- package/dist/chunk-XULFR6E3.cjs +1 -0
- package/dist/chunk-YEU5T67O.js +1 -0
- package/dist/chunk-ZBGD3VEW.cjs +1 -0
- package/dist/chunk-ZEGT4BAR.cjs +1 -0
- package/dist/core.cjs +1 -0
- package/dist/core.d.cts +133 -0
- package/dist/core.d.ts +133 -0
- package/dist/core.js +1 -0
- package/dist/{index-DijgVxjb.d.ts → index-ClFUurPI.d.ts} +15 -69
- package/dist/{index-DHghDluJ.d.cts → index-QFlDahI_.d.cts} +15 -69
- package/dist/index.cjs +1 -49
- package/dist/index.d.cts +33 -1496
- package/dist/index.d.ts +33 -1496
- package/dist/index.js +1 -1
- package/dist/presentation-4.cjs +1 -0
- package/dist/presentation-4.d.cts +304 -0
- package/dist/presentation-4.d.ts +304 -0
- package/dist/presentation-4.js +1 -0
- package/dist/ranges-Cc2ppjFD.d.ts +689 -0
- package/dist/ranges-D-UBNcsJ.d.cts +689 -0
- package/dist/{useRenderingStrategy-CoKE915F.d.cts → useRenderingStrategy-Vubk-vUU.d.cts} +47 -24
- package/dist/{useRenderingStrategy-CoKE915F.d.ts → useRenderingStrategy-Vubk-vUU.d.ts} +47 -24
- package/dist/utils-DHWZGbVU.d.ts +54 -0
- package/dist/utils-De5WTLDh.d.cts +54 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +7 -5
- package/dist/utils.d.ts +7 -5
- package/dist/utils.js +1 -1
- package/package.json +54 -15
- package/dist/chunk-KUNXFW7A.js +0 -49
- package/dist/chunk-P7XHGETS.js +0 -1
- package/dist/utils-BKdiug6F.d.cts +0 -41
- package/dist/utils-CmwQWQLa.d.ts +0 -41
package/dist/index.d.ts
CHANGED
|
@@ -1,1497 +1,34 @@
|
|
|
1
1
|
export * from '@iiif/helpers/annotation-targets';
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
width: number;
|
|
36
|
-
height: number;
|
|
37
|
-
};
|
|
38
|
-
declare function RegionHighlight({ id, interactive, region, onClick, onHover, onSave, aspectRatio, maintainAspectRatio, disableCardinalControls, isEditing, style, }: {
|
|
39
|
-
id?: string;
|
|
40
|
-
region: RegionHighlightType;
|
|
41
|
-
isEditing: boolean;
|
|
42
|
-
onSave?: (annotation: RegionHighlightType) => void;
|
|
43
|
-
onClick?: (annotation: RegionHighlightType) => void;
|
|
44
|
-
onHover?: (annotation: RegionHighlightType) => void;
|
|
45
|
-
aspectRatio?: number;
|
|
46
|
-
maintainAspectRatio?: boolean;
|
|
47
|
-
disableCardinalControls?: boolean;
|
|
48
|
-
interactive?: boolean;
|
|
49
|
-
style?: BoxStyle;
|
|
50
|
-
}): react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
type ResizeWorldItemProps = JSX.IntrinsicElements['worldObject'] & {
|
|
53
|
-
handleSize?: number;
|
|
54
|
-
resizable?: boolean;
|
|
55
|
-
aspectRatio?: number;
|
|
56
|
-
onSave: (pos: Partial<{
|
|
57
|
-
x: number;
|
|
58
|
-
y: number;
|
|
59
|
-
width: number;
|
|
60
|
-
height: number;
|
|
61
|
-
}>) => void;
|
|
62
|
-
children?: ReactNode;
|
|
63
|
-
maintainAspectRatio?: boolean;
|
|
64
|
-
disableCardinalControls?: boolean;
|
|
65
|
-
};
|
|
66
|
-
declare function ResizeWorldItem({ handleSize: _handleSize, resizable, onSave, children, maintainAspectRatio, disableCardinalControls, aspectRatio, ...props }: ResizeWorldItemProps): react_jsx_runtime.JSX.Element;
|
|
67
|
-
|
|
68
|
-
declare function RenderAnnotationEditing({ theme, renderContextMenu, children, }: {
|
|
69
|
-
theme?: Partial<SVGTheme>;
|
|
70
|
-
renderContextMenu?: (options: RenderContextProps) => React.ReactNode;
|
|
71
|
-
children?: React.ReactNode;
|
|
72
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
73
|
-
declare function DefaultEditingTools(): react_jsx_runtime.JSX.Element | null;
|
|
74
|
-
|
|
75
|
-
interface CanvasStrategyProviderProps {
|
|
76
|
-
onChoiceChange?: (choice?: ChoiceDescription) => void;
|
|
77
|
-
strategies?: Array<RenderingStrategy['type']>;
|
|
78
|
-
registerActions?: (actions: StrategyActions) => void;
|
|
79
|
-
defaultChoices?: Array<{
|
|
80
|
-
id: string;
|
|
81
|
-
opacity?: number;
|
|
82
|
-
}>;
|
|
83
|
-
children: ReactNode;
|
|
84
|
-
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
85
|
-
viewControlsDeps?: any[];
|
|
86
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
87
|
-
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
88
|
-
complexTimelineControlsDeps?: any[];
|
|
89
|
-
mediaControlsDeps?: any[];
|
|
90
|
-
throwOnUnknown?: boolean;
|
|
91
|
-
}
|
|
92
|
-
declare function CanvasStrategyProvider({ strategies, registerActions, defaultChoices, onChoiceChange, mediaControlsDeps, renderMediaControls, renderViewerControls, viewControlsDeps, renderComplexTimelineControls, complexTimelineControlsDeps, throwOnUnknown, children, }: CanvasStrategyProviderProps): react_jsx_runtime.JSX.Element;
|
|
93
|
-
|
|
94
|
-
interface CanvasWorldObjectProps {
|
|
95
|
-
x?: number;
|
|
96
|
-
y?: number;
|
|
97
|
-
keepCanvasScale?: boolean;
|
|
98
|
-
children?: ReactNode;
|
|
99
|
-
renderContextMenu?: (options: RenderContextProps) => ReactNode;
|
|
100
|
-
}
|
|
101
|
-
declare function CanvasWorldObject({ x, y, keepCanvasScale, renderContextMenu, children, }: CanvasWorldObjectProps): react_jsx_runtime.JSX.Element | null;
|
|
102
|
-
|
|
103
|
-
declare function ThumbnailFallbackImage({ x, y }: {
|
|
104
|
-
x?: number;
|
|
105
|
-
y?: number;
|
|
106
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
107
|
-
|
|
108
|
-
declare function Render3DModelStrategy(): react_jsx_runtime.JSX.Element | null;
|
|
109
|
-
|
|
110
|
-
declare function RenderAccompanyingCanvas(): react_jsx_runtime.JSX.Element;
|
|
111
|
-
|
|
112
|
-
interface AnnotationStrategyProps {
|
|
113
|
-
children?: ReactNode;
|
|
114
|
-
}
|
|
115
|
-
declare function RenderAnnotationStrategy({ children }: AnnotationStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
116
|
-
|
|
117
|
-
interface RenderAudioStrategyProps {
|
|
118
|
-
as?: React.ComponentType<AudioComponentProps>;
|
|
119
|
-
}
|
|
120
|
-
declare function RenderAudioStrategy({ as: CustomAudio }: RenderAudioStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
121
|
-
|
|
122
|
-
declare function RenderComplexTimelineStrategy(): react_jsx_runtime.JSX.Element | null;
|
|
123
|
-
|
|
124
|
-
interface RenderEmptyStrategyProps {
|
|
125
|
-
backgroundStyle?: BoxStyle;
|
|
126
|
-
alwaysShowBackground?: boolean;
|
|
127
|
-
}
|
|
128
|
-
declare function RenderEmptyStrategy({ backgroundStyle, alwaysShowBackground }: RenderEmptyStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
129
|
-
|
|
130
|
-
interface ImageStrategyProps {
|
|
131
|
-
isStatic?: boolean;
|
|
132
|
-
enableSizes?: boolean;
|
|
133
|
-
enableAnnotations?: boolean;
|
|
134
|
-
onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
|
|
135
|
-
rotation?: number;
|
|
136
|
-
children?: ReactNode;
|
|
137
|
-
}
|
|
138
|
-
declare function RenderImageStrategy({ isStatic, enableSizes, enableAnnotations, onClickPaintingAnnotation, rotation, children, }: ImageStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
139
|
-
|
|
140
|
-
interface TextualContextStrategyProps {
|
|
141
|
-
onClickPaintingAnnotation?: (id: string, e: any) => void;
|
|
142
|
-
children?: ReactNode;
|
|
143
|
-
}
|
|
144
|
-
declare function RenderTextualContentStrategy({ onClickPaintingAnnotation, children }: TextualContextStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
145
|
-
|
|
146
|
-
interface RenderVideoStrategyProps {
|
|
147
|
-
as?: React__default.ComponentType<VideoComponentProps>;
|
|
148
|
-
}
|
|
149
|
-
declare function RenderVideoStrategy({ as: CustomVideo, }: RenderVideoStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
150
|
-
|
|
151
|
-
declare function RenderYouTubeStrategy(): react_jsx_runtime.JSX.Element | null;
|
|
152
|
-
|
|
153
|
-
declare const svgThemes: ({
|
|
154
|
-
name: string;
|
|
155
|
-
outer: {
|
|
156
|
-
borderWidth: number;
|
|
157
|
-
borderColor: string;
|
|
158
|
-
};
|
|
159
|
-
inner: {
|
|
160
|
-
borderWidth: number;
|
|
161
|
-
borderColor: string;
|
|
162
|
-
};
|
|
163
|
-
} | {
|
|
164
|
-
name: string;
|
|
165
|
-
outer: {
|
|
166
|
-
borderWidth: string;
|
|
167
|
-
borderColor: string;
|
|
168
|
-
};
|
|
169
|
-
inner: {
|
|
170
|
-
borderWidth: string;
|
|
171
|
-
borderColor: string;
|
|
172
|
-
};
|
|
173
|
-
} | {
|
|
174
|
-
name: string;
|
|
175
|
-
outer: {
|
|
176
|
-
borderWidth: string;
|
|
177
|
-
borderColor: string;
|
|
178
|
-
};
|
|
179
|
-
inner: {
|
|
180
|
-
borderWidth?: undefined;
|
|
181
|
-
borderColor?: undefined;
|
|
182
|
-
};
|
|
183
|
-
})[];
|
|
184
|
-
type HelperType = ReturnType<typeof useSvgEditor>['helper'];
|
|
185
|
-
type StateType = ReturnType<typeof useSvgEditor>['state'];
|
|
186
|
-
type SvgTheme = {
|
|
187
|
-
name?: string;
|
|
188
|
-
outer: BoxStyle;
|
|
189
|
-
inner: BoxStyle;
|
|
190
|
-
};
|
|
191
|
-
interface CreateCustomShapeProps {
|
|
192
|
-
image: {
|
|
193
|
-
width: number;
|
|
194
|
-
height: number;
|
|
195
|
-
};
|
|
196
|
-
shape?: any;
|
|
197
|
-
updateShape: any;
|
|
198
|
-
theme?: {
|
|
199
|
-
name?: string;
|
|
200
|
-
outer: BoxStyle;
|
|
201
|
-
inner: BoxStyle;
|
|
202
|
-
};
|
|
203
|
-
controlsHtmlId?: string;
|
|
204
|
-
renderControls?: (helper: HelperType, state: StateType, showShapes: boolean) => any;
|
|
205
|
-
}
|
|
206
|
-
declare function CreateCustomShape(props: CreateCustomShapeProps): null;
|
|
207
|
-
|
|
208
|
-
interface PolygonSelectorProps {
|
|
209
|
-
id: string;
|
|
210
|
-
polygon: InputShape;
|
|
211
|
-
annotationBucket?: string;
|
|
212
|
-
isHighlighted?: boolean;
|
|
213
|
-
updatePolygon?: (shape: InputShape) => void;
|
|
214
|
-
readOnly?: boolean;
|
|
215
|
-
theme?: SvgTheme;
|
|
216
|
-
controlsHtmlId?: string;
|
|
217
|
-
renderControls?: CreateCustomShapeProps['renderControls'];
|
|
218
|
-
}
|
|
219
|
-
declare function PolygonSelector(props: PolygonSelectorProps): react_jsx_runtime.JSX.Element | null;
|
|
220
|
-
|
|
221
|
-
declare const CanvasAnnotations: React$1.ForwardRefExoticComponent<{
|
|
222
|
-
canvasId?: string | undefined;
|
|
223
|
-
} & React$1.RefAttributes<{
|
|
224
|
-
availablePageIds: string[];
|
|
225
|
-
enabledPageIds: string[];
|
|
226
|
-
setPageEnabled: (id: string, opt?: {
|
|
227
|
-
deselectOthers?: boolean | undefined;
|
|
228
|
-
}) => void;
|
|
229
|
-
setPageDisabled: (deselectId: string) => void;
|
|
230
|
-
}>>;
|
|
231
|
-
|
|
232
|
-
type FacetConfig = {
|
|
233
|
-
id: string;
|
|
234
|
-
label: InternationalString;
|
|
235
|
-
keys: string[];
|
|
236
|
-
values?: FacetConfigValue[];
|
|
237
|
-
};
|
|
238
|
-
type FacetConfigValue = {
|
|
239
|
-
id: string;
|
|
240
|
-
label: InternationalString;
|
|
241
|
-
values: string[];
|
|
242
|
-
key: string;
|
|
243
|
-
};
|
|
244
|
-
interface MetadataProps {
|
|
245
|
-
config?: FacetConfig[];
|
|
246
|
-
metadata?: Array<{
|
|
247
|
-
label: InternationalString;
|
|
248
|
-
value: InternationalString;
|
|
249
|
-
} | null>;
|
|
250
|
-
labelWidth?: number;
|
|
251
|
-
allowHtml?: boolean;
|
|
252
|
-
showEmptyMessage?: boolean;
|
|
253
|
-
separator?: string;
|
|
254
|
-
customLabelRender?: (item: MetadataItem['label'], fallback: React.ReactNode) => React.ReactNode;
|
|
255
|
-
customValueRender?: (item: MetadataItem, fallback: React.ReactNode) => React.ReactNode;
|
|
256
|
-
classes?: {
|
|
257
|
-
container?: string;
|
|
258
|
-
row?: string;
|
|
259
|
-
label?: string;
|
|
260
|
-
value?: string;
|
|
261
|
-
empty?: string;
|
|
262
|
-
};
|
|
263
|
-
emptyMessage?: string;
|
|
264
|
-
emptyValueFallback?: string;
|
|
265
|
-
emptyLabelFallback?: string;
|
|
266
|
-
tableHeader?: React.ReactNode;
|
|
267
|
-
tableFooter?: React.ReactNode;
|
|
268
|
-
emptyFallback?: React.ReactNode;
|
|
269
|
-
}
|
|
270
|
-
declare function Metadata({ metadata, config, labelWidth, showEmptyMessage, allowHtml, emptyFallback, classes, emptyMessage, emptyValueFallback, emptyLabelFallback, separator, tableFooter, tableHeader, customLabelRender, customValueRender, }: MetadataProps): react_jsx_runtime.JSX.Element;
|
|
271
|
-
|
|
272
|
-
type CombinedMetadataProps = Omit<MetadataProps, 'metadata'>;
|
|
273
|
-
declare function CombinedMetadata(props: CombinedMetadataProps): react_jsx_runtime.JSX.Element;
|
|
274
|
-
|
|
275
|
-
interface ImageProps {
|
|
276
|
-
src: string | ImageService$1;
|
|
277
|
-
alt?: string;
|
|
278
|
-
size?: Partial<ImageSize>;
|
|
279
|
-
region?: RegionParameter;
|
|
280
|
-
className?: string;
|
|
281
|
-
style?: React.CSSProperties;
|
|
282
|
-
fetchImageService?: boolean;
|
|
283
|
-
quality?: string;
|
|
284
|
-
rotation?: number | RotationParameter;
|
|
285
|
-
format?: string;
|
|
286
|
-
}
|
|
287
|
-
declare function Image(props: ImageProps): react_jsx_runtime.JSX.Element | null;
|
|
288
|
-
|
|
289
|
-
interface ImageServiceProps {
|
|
290
|
-
src: string;
|
|
291
|
-
atlas?: AtlasProps;
|
|
292
|
-
errorFallback?: React__default.FC;
|
|
293
|
-
interactive?: boolean;
|
|
294
|
-
skipSizes?: boolean;
|
|
295
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
296
|
-
viewControlsDeps?: any[];
|
|
297
|
-
fluid?: boolean;
|
|
298
|
-
x?: number;
|
|
299
|
-
y?: number;
|
|
300
|
-
children?: React__default.ReactNode;
|
|
301
|
-
}
|
|
302
|
-
declare function ImageService({ src, errorFallback, interactive, skipSizes, children, renderViewerControls, viewControlsDeps, fluid, x, y, ...atlasProps }: ImageServiceProps & Omit<AtlasProps, 'children'>): react_jsx_runtime.JSX.Element | null;
|
|
303
|
-
|
|
304
|
-
type ManifestMetadataProps = Omit<MetadataProps, 'metadata'>;
|
|
305
|
-
declare function ManifestMetadata(props: ManifestMetadataProps): react_jsx_runtime.JSX.Element;
|
|
306
|
-
|
|
307
|
-
interface SequenceThumbnailsProps {
|
|
308
|
-
flat?: boolean;
|
|
309
|
-
size?: {
|
|
310
|
-
width: number;
|
|
311
|
-
height?: number;
|
|
312
|
-
};
|
|
313
|
-
dereference?: boolean;
|
|
314
|
-
classes?: {
|
|
315
|
-
container?: string;
|
|
316
|
-
row?: string;
|
|
317
|
-
item?: string;
|
|
318
|
-
figure?: string;
|
|
319
|
-
imageWrapper?: string;
|
|
320
|
-
img?: string;
|
|
321
|
-
label?: string;
|
|
322
|
-
selected?: {
|
|
323
|
-
row?: string;
|
|
324
|
-
item?: string;
|
|
325
|
-
figure?: string;
|
|
326
|
-
img?: string;
|
|
327
|
-
label?: string;
|
|
328
|
-
imageWrapper?: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
figure?: boolean;
|
|
332
|
-
showLabel?: boolean;
|
|
333
|
-
fallback?: React.ReactNode;
|
|
334
|
-
scrollBehaviour?: ScrollBehavior;
|
|
335
|
-
}
|
|
336
|
-
declare function SequenceThumbnails({ scrollBehaviour, dereference, flat, size, classes, showLabel, figure, fallback }: SequenceThumbnailsProps): react_jsx_runtime.JSX.Element;
|
|
337
|
-
|
|
338
|
-
interface SingleCanvasThumbnailProps {
|
|
339
|
-
canvasId?: string;
|
|
340
|
-
size?: Partial<SizeParameter>;
|
|
341
|
-
visible?: boolean;
|
|
342
|
-
alt?: string;
|
|
343
|
-
dereference?: boolean;
|
|
344
|
-
figure?: boolean;
|
|
345
|
-
showLabel?: boolean;
|
|
346
|
-
classes?: {
|
|
347
|
-
figure?: string;
|
|
348
|
-
img?: string;
|
|
349
|
-
label?: string;
|
|
350
|
-
imageWrapper?: string;
|
|
351
|
-
};
|
|
352
|
-
placeholder?: React.ReactNode;
|
|
353
|
-
fallback?: React.ReactNode;
|
|
354
|
-
}
|
|
355
|
-
declare function SingleCanvasThumbnail(props: SingleCanvasThumbnailProps): react_jsx_runtime.JSX.Element;
|
|
356
|
-
|
|
357
|
-
interface RenderSvgEditorControlsProps {
|
|
358
|
-
showShapes?: boolean;
|
|
359
|
-
classNames?: Partial<{
|
|
360
|
-
button: string;
|
|
361
|
-
}>;
|
|
362
|
-
enabled?: {
|
|
363
|
-
draw?: boolean;
|
|
364
|
-
pen?: boolean;
|
|
365
|
-
line?: boolean;
|
|
366
|
-
lineBox?: boolean;
|
|
367
|
-
box?: boolean;
|
|
368
|
-
triangle?: boolean;
|
|
369
|
-
hexagon?: boolean;
|
|
370
|
-
circle?: boolean;
|
|
371
|
-
delete?: boolean;
|
|
372
|
-
};
|
|
373
|
-
icons?: Partial<{
|
|
374
|
-
DrawIcon: ReactNode;
|
|
375
|
-
PenIcon: ReactNode;
|
|
376
|
-
LineIcon: ReactNode;
|
|
377
|
-
LineBoxIcon: ReactNode;
|
|
378
|
-
ShapesIcon: ReactNode;
|
|
379
|
-
BoxIcon: ReactNode;
|
|
380
|
-
TriangleIcon: ReactNode;
|
|
381
|
-
HexagonIcon: ReactNode;
|
|
382
|
-
CircleIcon: ReactNode;
|
|
383
|
-
DeleteForeverIcon: ReactNode;
|
|
384
|
-
PointerIcon: ReactNode;
|
|
385
|
-
HandIcon: ReactNode;
|
|
386
|
-
}>;
|
|
387
|
-
}
|
|
388
|
-
declare function RenderSvgEditorControls({ showShapes, enabled, classNames, icons, }: RenderSvgEditorControlsProps): react_jsx_runtime.JSX.Element;
|
|
389
|
-
|
|
390
|
-
declare function AnnotationContext({ annotation, children }: {
|
|
391
|
-
annotation: string;
|
|
392
|
-
children: ReactNode;
|
|
393
|
-
}): react_jsx_runtime.JSX.Element;
|
|
394
|
-
|
|
395
|
-
declare function AnnotationPageContext({ annotationPage, children }: {
|
|
396
|
-
annotationPage: string;
|
|
397
|
-
children: ReactNode;
|
|
398
|
-
}): react_jsx_runtime.JSX.Element;
|
|
399
|
-
|
|
400
|
-
interface AnnotationStyles {
|
|
401
|
-
id: number;
|
|
402
|
-
name: string;
|
|
403
|
-
creator?: {
|
|
404
|
-
id: number;
|
|
405
|
-
name: string;
|
|
406
|
-
};
|
|
407
|
-
createdAt: Date;
|
|
408
|
-
theme: {
|
|
409
|
-
default: AnnotationThemeDefinition;
|
|
410
|
-
hidden: AnnotationThemeDefinition;
|
|
411
|
-
highlighted: AnnotationThemeDefinition;
|
|
412
|
-
} & Record<string, AnnotationThemeDefinition>;
|
|
413
|
-
}
|
|
414
|
-
type AnnotationThemeDefinition = BoxStyle & {
|
|
415
|
-
hidden?: boolean;
|
|
416
|
-
interactive?: boolean;
|
|
417
|
-
hotspot?: boolean;
|
|
418
|
-
hotspotSize?: 'lg' | 'md' | 'sm';
|
|
419
|
-
};
|
|
420
|
-
declare function getDefaultAnnotationStyles(): AnnotationStyles['theme'];
|
|
421
|
-
declare function useAnnotationStyles(): {
|
|
422
|
-
default: AnnotationThemeDefinition;
|
|
423
|
-
hidden: AnnotationThemeDefinition;
|
|
424
|
-
highlighted: AnnotationThemeDefinition;
|
|
425
|
-
} & Record<string, AnnotationThemeDefinition>;
|
|
426
|
-
declare function AnnotationStyleProvider({ theme, children, }: {
|
|
427
|
-
theme?: AnnotationStyles['theme'];
|
|
428
|
-
children: React.ReactNode;
|
|
429
|
-
}): react_jsx_runtime.JSX.Element;
|
|
430
|
-
|
|
431
|
-
declare function hasAuth(resource: any): boolean;
|
|
432
|
-
interface ProbeStore {
|
|
433
|
-
service?: AuthProbeService2;
|
|
434
|
-
status: 'unknown' | 'probing' | 'error' | 'success';
|
|
435
|
-
shouldRedirect: boolean;
|
|
436
|
-
redirectResource: Auth2LocationResource | null;
|
|
437
|
-
shouldSubstitute: boolean;
|
|
438
|
-
substituteResource: Auth2SubstituteResource | null;
|
|
439
|
-
error: string | null;
|
|
440
|
-
errorHeading: InternationalString | null;
|
|
441
|
-
errorNote: InternationalString | null;
|
|
442
|
-
shouldDisplayResource: boolean;
|
|
443
|
-
token: string | null;
|
|
444
|
-
probe: () => Promise<void>;
|
|
445
|
-
setToken: (token: string) => void;
|
|
446
|
-
}
|
|
447
|
-
interface AuthContextState {
|
|
448
|
-
currentAuth: number;
|
|
449
|
-
authItems: AuthAccessState[];
|
|
450
|
-
}
|
|
451
|
-
interface AuthContextCurrentActions {
|
|
452
|
-
login(): void;
|
|
453
|
-
logout(): void;
|
|
454
|
-
nextAuth(): void;
|
|
455
|
-
previousAuth(): void;
|
|
456
|
-
setAuth(index: number): void;
|
|
457
|
-
}
|
|
458
|
-
interface AuthContextActions {
|
|
459
|
-
addService(service: AuthAccessService2, probeId: string): void;
|
|
460
|
-
removeService(service: AuthAccessService2, probeId: string): void;
|
|
461
|
-
}
|
|
462
|
-
interface AuthAccessState {
|
|
463
|
-
id: string;
|
|
464
|
-
type: 'external' | 'kiosk' | 'active';
|
|
465
|
-
service: AuthAccessService2;
|
|
466
|
-
probeId: string;
|
|
467
|
-
isPending: boolean;
|
|
468
|
-
isLoggedIn: boolean;
|
|
469
|
-
canAuthenticate: boolean;
|
|
470
|
-
instances: number;
|
|
471
|
-
error?: string;
|
|
472
|
-
session: null | {
|
|
473
|
-
token: string;
|
|
474
|
-
expires: number;
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
declare const createAuthStateStore: () => zustand_vanilla.StoreApi<AuthContextCurrentActions & AuthContextState & AuthContextActions>;
|
|
478
|
-
declare const createProbe: (service?: AuthProbeService2, token?: string) => zustand_vanilla.StoreApi<ProbeStore>;
|
|
479
|
-
declare function authDetailsForResource(resource: any): {
|
|
480
|
-
hasAuth?: boolean | undefined;
|
|
481
|
-
services: {
|
|
482
|
-
probe?: AuthProbeService2;
|
|
483
|
-
access?: AuthAccessService2;
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
declare function makeAccessTokenRequest<T extends AuthAccessTokenService2>(service: T, { strict }?: {
|
|
487
|
-
strict?: boolean;
|
|
488
|
-
}): Promise<AuthAccessToken2>;
|
|
489
|
-
declare function makeAccessServiceRequest<T extends AuthAccessService2>(service: T): Promise<void>;
|
|
490
|
-
|
|
491
|
-
interface AuthState {
|
|
492
|
-
id: string;
|
|
493
|
-
type: 'external' | 'kiosk' | 'active';
|
|
494
|
-
service: AuthAccessService2;
|
|
495
|
-
probeId: string;
|
|
496
|
-
isPending: boolean;
|
|
497
|
-
isLoggedIn: boolean;
|
|
498
|
-
canAuthenticate: boolean;
|
|
499
|
-
instances: number;
|
|
500
|
-
error?: string;
|
|
501
|
-
session: null | {
|
|
502
|
-
token: string;
|
|
503
|
-
expires: number;
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
declare const AuthRContext: React$1.Context<StoreApi<AuthContextState & AuthContextCurrentActions & AuthContextActions> | null>;
|
|
507
|
-
declare const AuthReactContext: React$1.Context<(AuthContextState & AuthContextCurrentActions) | null>;
|
|
508
|
-
declare const AuthReactContextActions: React$1.Context<AuthContextActions | null>;
|
|
509
|
-
declare function AuthProvider({ children }: {
|
|
510
|
-
children: ReactNode;
|
|
511
|
-
}): react_jsx_runtime.JSX.Element;
|
|
512
|
-
declare function useIsAuthEnabled(): boolean;
|
|
513
|
-
declare function useAuthStore(): StoreApi<AuthContextState & AuthContextCurrentActions & AuthContextActions>;
|
|
514
|
-
declare function useAuthActions(): {
|
|
515
|
-
login: () => void;
|
|
516
|
-
logout: () => void;
|
|
517
|
-
nextAuth: () => void;
|
|
518
|
-
previousAuth: () => void;
|
|
519
|
-
setAuth: (index: number) => void;
|
|
520
|
-
addService: (service: AuthAccessService2, probeId: string) => void;
|
|
521
|
-
removeService: (service: AuthAccessService2, probeId: string) => void;
|
|
522
|
-
};
|
|
523
|
-
declare function useCurrentAuth(): AuthContextState & AuthContextCurrentActions & AuthContextActions;
|
|
524
|
-
declare function useAuthService(id: string): AuthAccessState | undefined;
|
|
525
|
-
declare function useAuthTokens(id?: string): string | undefined;
|
|
526
|
-
declare function useAuthToken(id: string): string | null;
|
|
527
|
-
interface AuthProps<T, Extra> {
|
|
528
|
-
resource: T;
|
|
529
|
-
extra?: Extra;
|
|
530
|
-
children: (service: T) => ReactNode;
|
|
531
|
-
fallbackComponent?: FunctionComponent<any> | null;
|
|
532
|
-
loadingComponent?: FunctionComponent<any> | null;
|
|
533
|
-
errorComponent?: FunctionComponent<{
|
|
534
|
-
resource: T;
|
|
535
|
-
error: string;
|
|
536
|
-
heading: InternationalString | null;
|
|
537
|
-
note: InternationalString | null;
|
|
538
|
-
extra: Extra | undefined;
|
|
539
|
-
}> | null;
|
|
540
|
-
}
|
|
541
|
-
declare function Auth<Element, Extra = any>(props: AuthProps<Element, Extra>): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
542
|
-
|
|
543
|
-
declare function CanvasContext({ canvas, children }: {
|
|
544
|
-
canvas: string;
|
|
545
|
-
children: ReactNode;
|
|
546
|
-
}): react_jsx_runtime.JSX.Element;
|
|
547
|
-
|
|
548
|
-
declare function CollectionContext({ collection, children }: {
|
|
549
|
-
collection: string;
|
|
550
|
-
children: ReactNode;
|
|
551
|
-
}): react_jsx_runtime.JSX.Element;
|
|
552
|
-
|
|
553
|
-
type MediaPlayerState = {
|
|
554
|
-
isPlaying: boolean;
|
|
555
|
-
isMuted: boolean;
|
|
556
|
-
playRequested: boolean;
|
|
557
|
-
volume: number;
|
|
558
|
-
isFinished: boolean;
|
|
559
|
-
duration: number;
|
|
560
|
-
};
|
|
561
|
-
type MediaPlayerActions = {
|
|
562
|
-
play(): void;
|
|
563
|
-
pause(): void;
|
|
564
|
-
playPause(): void;
|
|
565
|
-
mute(): void;
|
|
566
|
-
unmute(): void;
|
|
567
|
-
toggleMute(): void;
|
|
568
|
-
setVolume(volume: number): void;
|
|
569
|
-
setDurationPercent(percent: number): void;
|
|
570
|
-
setTime(time: number | ((t: number) => number)): void;
|
|
571
|
-
};
|
|
572
|
-
declare function formatTime(time: number): string;
|
|
573
|
-
declare function useSimpleMediaPlayer(props: {
|
|
574
|
-
duration: number;
|
|
575
|
-
}): readonly [
|
|
576
|
-
{
|
|
577
|
-
element: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
578
|
-
currentTime: RefObject<HTMLDivElement>;
|
|
579
|
-
progress: RefObject<HTMLDivElement>;
|
|
580
|
-
},
|
|
581
|
-
MediaPlayerState,
|
|
582
|
-
MediaPlayerActions
|
|
583
|
-
];
|
|
584
|
-
|
|
585
|
-
interface ComplexTimelineStore extends MediaPlayerActions {
|
|
586
|
-
complexTimeline: ComplexTimelineStrategy;
|
|
587
|
-
visibleElements: Record<string, TimelineKeyframe | null>;
|
|
588
|
-
isReady: boolean;
|
|
589
|
-
isBuffering: boolean;
|
|
590
|
-
bufferMap: Record<string, boolean>;
|
|
591
|
-
isMuted: boolean;
|
|
592
|
-
playRequested: boolean;
|
|
593
|
-
isPlaying: boolean;
|
|
594
|
-
isFinished: boolean;
|
|
595
|
-
volume: number;
|
|
596
|
-
duration: number;
|
|
597
|
-
primeTime: number;
|
|
598
|
-
clockRunning: boolean;
|
|
599
|
-
clockStartTime: number;
|
|
600
|
-
currentPrime: TimelineKeyframe | null;
|
|
601
|
-
clockStartRequests: number;
|
|
602
|
-
startClock: () => void;
|
|
603
|
-
stopClock: () => void;
|
|
604
|
-
setElement: (id: string, element: HTMLVideoElement | HTMLAudioElement) => void;
|
|
605
|
-
removeElement: (id: string) => void;
|
|
606
|
-
applyKeyframes(newIdx: number, keyframes: TimelineKeyframe[]): void;
|
|
607
|
-
nextKeyframeIndex: number;
|
|
608
|
-
setProgressElement(div: HTMLDivElement): void;
|
|
609
|
-
setCurrentTimeElement(div: HTMLDivElement): void;
|
|
610
|
-
clearProgressElement(): void;
|
|
611
|
-
clearCurrentTimeElement(): void;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
declare function ComplexTimelineProvider({ children, store, }: {
|
|
615
|
-
children: React.ReactNode;
|
|
616
|
-
store: StoreApi$1<ComplexTimelineStore>;
|
|
617
|
-
}): react_jsx_runtime.JSX.Element;
|
|
618
|
-
declare function useComplexTimeline<T>(selector: (store: ComplexTimelineStore) => T): T;
|
|
619
|
-
|
|
620
|
-
interface StrategyContext {
|
|
621
|
-
strategy: RenderingStrategy;
|
|
622
|
-
choices: ChoiceDescription | null;
|
|
623
|
-
}
|
|
624
|
-
declare const StrategyReactContext: React$1.Context<StrategyContext | null>;
|
|
625
|
-
declare function useStrategy(): StrategyContext;
|
|
626
|
-
|
|
627
|
-
type SearchService = SearchService$1 & {
|
|
628
|
-
service: SearchServiceAutocomplete | SearchServiceAutocomplete[];
|
|
629
|
-
};
|
|
630
|
-
interface Search1Store {
|
|
631
|
-
service: SearchService | undefined;
|
|
632
|
-
lastQuery: SearchServiceQueryParams;
|
|
633
|
-
resources: SearchServiceSearchResponse['resources'];
|
|
634
|
-
loading: boolean;
|
|
635
|
-
error: boolean;
|
|
636
|
-
hasAutocomplete: boolean;
|
|
637
|
-
hasSearch: boolean;
|
|
638
|
-
errorMessage: string;
|
|
639
|
-
highlight: SearchServiceSearchResponse['resources'][number] | null;
|
|
640
|
-
search: (query: SearchServiceQueryParams, options?: {
|
|
641
|
-
headers?: HeadersInit;
|
|
642
|
-
}) => void;
|
|
643
|
-
clearSearch: () => void;
|
|
644
|
-
highlightResult: (id: string) => void;
|
|
645
|
-
nextResult: () => void;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
type ResourceContextType = {
|
|
649
|
-
collection?: string;
|
|
650
|
-
manifest?: string;
|
|
651
|
-
range?: string;
|
|
652
|
-
canvas?: string;
|
|
653
|
-
annotation?: string;
|
|
654
|
-
annotationPage?: string;
|
|
655
|
-
};
|
|
656
|
-
declare const ResourceReactContext: React__default.Context<ResourceContextType>;
|
|
657
|
-
declare const useResourceContext: () => ResourceContextType;
|
|
658
|
-
declare function ResourceProvider({ value, children }: {
|
|
659
|
-
value: ResourceContextType;
|
|
660
|
-
children: ReactNode;
|
|
661
|
-
}): react_jsx_runtime.JSX.Element;
|
|
662
|
-
|
|
663
|
-
declare function useCustomContextBridge(): Record<string, {
|
|
664
|
-
value: any;
|
|
665
|
-
Provider: React__default.Provider<any>;
|
|
666
|
-
}>;
|
|
667
|
-
declare function CustomContextBridge(props: Record<string, {
|
|
668
|
-
value: any;
|
|
669
|
-
Provider: React__default.Provider<any>;
|
|
670
|
-
}> & {
|
|
671
|
-
children: React__default.ReactNode;
|
|
672
|
-
}): React__default.ReactNode;
|
|
673
|
-
declare function CustomContextBridgeProvider(props: {
|
|
674
|
-
providers: Record<string, Context<any>>;
|
|
675
|
-
children: React__default.ReactNode;
|
|
676
|
-
}): react_jsx_runtime.JSX.Element;
|
|
677
|
-
declare function useContextBridge(): {
|
|
678
|
-
VaultContext: {
|
|
679
|
-
vault: _iiif_helpers.Vault | null;
|
|
680
|
-
setVaultInstance: (vault: _iiif_helpers.Vault) => void;
|
|
681
|
-
};
|
|
682
|
-
ResourceContext: ResourceContextType;
|
|
683
|
-
SimpleViewerReactContext: SimpleViewerContext;
|
|
684
|
-
VisibleCanvasReactContext: string[];
|
|
685
|
-
AuthRContext: zustand.StoreApi<AuthContextState & AuthContextCurrentActions & AuthContextActions> | null;
|
|
686
|
-
SearchReactContext: zustand.StoreApi<Search1Store> | null;
|
|
687
|
-
ReactEventContext: {
|
|
688
|
-
emitter: mitt.Emitter<Record<mitt.EventType, unknown>>;
|
|
689
|
-
};
|
|
690
|
-
ReactEmitterContext: mitt.Emitter<any>;
|
|
691
|
-
ContextBridgeReactContext: Record<string, React__default.Context<any>>;
|
|
692
|
-
StrategyReactContext: StrategyContext | null;
|
|
693
|
-
AtlasStoreReactContext: zustand.StoreApi<AtlasStore> | null;
|
|
694
|
-
ViewerIdentifierContext: string;
|
|
695
|
-
};
|
|
696
|
-
declare function ContextBridge(props: {
|
|
697
|
-
bridge: ReturnType<typeof useContextBridge>;
|
|
698
|
-
custom?: ReturnType<typeof useCustomContextBridge>;
|
|
699
|
-
children: ReactNode;
|
|
700
|
-
}): react_jsx_runtime.JSX.Element;
|
|
701
|
-
|
|
702
|
-
interface ControlsContext {
|
|
703
|
-
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
704
|
-
viewControlsDeps: any[];
|
|
705
|
-
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
706
|
-
mediaControlsDeps: any[];
|
|
707
|
-
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
708
|
-
complexTimelineControlsDeps: any[];
|
|
709
|
-
}
|
|
710
|
-
declare const ControlsReactContext: React$1.Context<ControlsContext | null>;
|
|
711
|
-
declare function useRenderControls(): ControlsContext;
|
|
712
|
-
|
|
713
|
-
interface EventContext {
|
|
714
|
-
emitter: Emitter<any>;
|
|
715
|
-
}
|
|
716
|
-
declare const defaultEmitter: Emitter<Record<EventType, unknown>>;
|
|
717
|
-
declare const ReactEventContext: React__default.Context<{
|
|
718
|
-
emitter: Emitter<Record<EventType, unknown>>;
|
|
719
|
-
}>;
|
|
720
|
-
declare function useEventEmitter<Events extends Record<EventType, unknown>>(): Emitter<Events>;
|
|
721
|
-
declare function EventsProvider({ emitter, children }: EventContext & {
|
|
722
|
-
children: React__default.ReactNode;
|
|
723
|
-
}): react_jsx_runtime.JSX.Element;
|
|
724
|
-
|
|
725
|
-
declare const ImageServiceLoaderContext: React__default.Context<ImageServiceLoader>;
|
|
726
|
-
declare function useImageServiceLoader(): ImageServiceLoader;
|
|
727
|
-
|
|
728
|
-
declare function ManifestContext({ manifest, children }: {
|
|
729
|
-
manifest: string;
|
|
730
|
-
children: ReactNode;
|
|
731
|
-
}): react_jsx_runtime.JSX.Element;
|
|
732
|
-
|
|
733
|
-
declare function useMediaState(): MediaPlayerState;
|
|
734
|
-
declare function useMediaActions(): MediaPlayerActions;
|
|
735
|
-
declare function useMediaElements(): {
|
|
736
|
-
element: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
737
|
-
currentTime: RefObject<HTMLDivElement>;
|
|
738
|
-
progress: RefObject<HTMLDivElement>;
|
|
739
|
-
};
|
|
740
|
-
declare function MediaPlayerProvider({ actions, state, children, currentTime, progress, element, }: {
|
|
741
|
-
actions: MediaPlayerActions;
|
|
742
|
-
state: MediaPlayerState;
|
|
743
|
-
children: ReactNode;
|
|
744
|
-
currentTime: RefObject<HTMLDivElement>;
|
|
745
|
-
progress: RefObject<HTMLDivElement>;
|
|
746
|
-
element: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
747
|
-
}): react_jsx_runtime.JSX.Element;
|
|
748
|
-
|
|
749
|
-
declare function RangeContext({ range, children }: {
|
|
750
|
-
range: string;
|
|
751
|
-
children: ReactNode;
|
|
752
|
-
}): react_jsx_runtime.JSX.Element;
|
|
753
|
-
|
|
754
|
-
type SelectorHelperEventTypes = 'click' | 'hover' | 'selector-updated' | 'highlight' | 'clear-highlight' | 'zoom-to' | 'event-listener' | 'remove-event-listener' | 'image-preview-request';
|
|
755
|
-
declare function SelectorControllerProvider({ children }: {
|
|
756
|
-
children: ReactNode;
|
|
757
|
-
}): react_jsx_runtime.JSX.Element;
|
|
758
|
-
declare function useSelectorEmitter(): mitt.Emitter<Record<mitt.EventType, unknown>>;
|
|
759
|
-
declare function useSelectorEvents(id: string): {
|
|
760
|
-
controller: {
|
|
761
|
-
withSelector(selectorId: string): {
|
|
762
|
-
on<T extends {
|
|
763
|
-
selectorId: string;
|
|
764
|
-
} = any>(type: SelectorHelperEventTypes, handler: Handler<T>): () => void;
|
|
765
|
-
emit<T_1 = any>(type: SelectorHelperEventTypes, event: T_1): void;
|
|
766
|
-
};
|
|
767
|
-
on<T_2 extends {
|
|
768
|
-
selectorId: string;
|
|
769
|
-
} = any>(type: SelectorHelperEventTypes, handler: Handler<T_2>): () => void;
|
|
770
|
-
emit<T_3 extends {
|
|
771
|
-
selectorId: string;
|
|
772
|
-
} = any>(type: SelectorHelperEventTypes, event: T_3): void;
|
|
773
|
-
};
|
|
774
|
-
onClick: (e?: {
|
|
775
|
-
x: number;
|
|
776
|
-
y: number;
|
|
777
|
-
width: number;
|
|
778
|
-
height: number;
|
|
779
|
-
}) => void;
|
|
780
|
-
onHover: (e?: {
|
|
781
|
-
x: number;
|
|
782
|
-
y: number;
|
|
783
|
-
width: number;
|
|
784
|
-
height: number;
|
|
785
|
-
}) => void;
|
|
786
|
-
isHighlighted: boolean;
|
|
787
|
-
};
|
|
788
|
-
declare function useSelectorController(): {
|
|
789
|
-
withSelector(selectorId: string): {
|
|
790
|
-
on<T extends {
|
|
791
|
-
selectorId: string;
|
|
792
|
-
} = any>(type: SelectorHelperEventTypes, handler: Handler<T>): () => void;
|
|
793
|
-
emit<T_1 = any>(type: SelectorHelperEventTypes, event: T_1): void;
|
|
794
|
-
};
|
|
795
|
-
on<T_2 extends {
|
|
796
|
-
selectorId: string;
|
|
797
|
-
} = any>(type: SelectorHelperEventTypes, handler: Handler<T_2>): () => void;
|
|
798
|
-
emit<T_3 extends {
|
|
799
|
-
selectorId: string;
|
|
800
|
-
} = any>(type: SelectorHelperEventTypes, event: T_3): void;
|
|
801
|
-
};
|
|
802
|
-
declare function useSelectorHelper(): {
|
|
803
|
-
withSelector(selectorId: string): {
|
|
804
|
-
highlight(): void;
|
|
805
|
-
clearHighlight(): void;
|
|
806
|
-
zoomTo(): void;
|
|
807
|
-
addEventListener(name: string, callback: () => void): () => void;
|
|
808
|
-
getImagePreview(): Promise<any>;
|
|
809
|
-
on<T extends {
|
|
810
|
-
selectorId: string;
|
|
811
|
-
} = any>(type: SelectorHelperEventTypes, handler: Handler<T>): () => void;
|
|
812
|
-
};
|
|
813
|
-
highlight(selectorId: string): void;
|
|
814
|
-
clearHighlight(selectorId: string): void;
|
|
815
|
-
zoomTo(selectorId: string): void;
|
|
816
|
-
addEventListener(selectorId: string, name: string, callback: () => void): () => void;
|
|
817
|
-
getImagePreview(selectorId: string): Promise<any>;
|
|
818
|
-
on<T_1 extends {
|
|
819
|
-
selectorId: string;
|
|
820
|
-
} = any>(type: SelectorHelperEventTypes, handler: Handler<T_1>): () => void;
|
|
821
|
-
};
|
|
822
|
-
|
|
823
|
-
declare const ReactVaultContext: React__default.Context<{
|
|
824
|
-
vault: Vault | null;
|
|
825
|
-
setVaultInstance: (vault: Vault) => void;
|
|
826
|
-
}>;
|
|
827
|
-
declare function VaultProvider({ vault, vaultOptions, useGlobal, resources, children, }: {
|
|
828
|
-
vault?: Vault;
|
|
829
|
-
useGlobal?: boolean;
|
|
830
|
-
vaultOptions?: VaultOptions;
|
|
831
|
-
resources?: ResourceContextType;
|
|
832
|
-
children: ReactNode;
|
|
833
|
-
}): react_jsx_runtime.JSX.Element;
|
|
834
|
-
|
|
835
|
-
declare const ViewerPresetContext: React$1.Context<Preset | null | undefined>;
|
|
836
|
-
declare function useViewerPreset(): Preset | null | undefined;
|
|
837
|
-
|
|
838
|
-
declare const VisibleCanvasReactContext: React__default.Context<string[]>;
|
|
839
|
-
declare function useVisibleCanvases(): CanvasNormalized[];
|
|
840
|
-
|
|
841
|
-
declare function getComplexTimelineStrategy(canvas: CanvasNormalized, paintables: Paintables, loadImageService: ImageServiceLoaderType, vault: CompatVault): ComplexTimelineStrategy;
|
|
842
|
-
|
|
843
|
-
declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables, vault: CompatVault, enforceSpatial?: boolean): UnknownStrategy | MediaStrategy;
|
|
844
|
-
|
|
845
|
-
declare function useAnnotation(options?: {
|
|
846
|
-
id: string;
|
|
847
|
-
}): AnnotationNormalized | undefined;
|
|
848
|
-
declare function useAnnotation<T>(options?: {
|
|
849
|
-
id: string;
|
|
850
|
-
selector: (annotation: AnnotationNormalized) => T;
|
|
851
|
-
}, deps?: any[]): T | undefined;
|
|
852
|
-
|
|
853
|
-
declare function useAnnotationPage(options?: {
|
|
854
|
-
id: string;
|
|
855
|
-
}): AnnotationPageNormalized | undefined;
|
|
856
|
-
declare function useAnnotationPage<T>(options?: {
|
|
857
|
-
id: string;
|
|
858
|
-
selector: (annotation: AnnotationPageNormalized) => T;
|
|
859
|
-
}, deps?: any[]): T | undefined;
|
|
860
|
-
|
|
861
|
-
declare function useAnnotationPageManager(resourceId?: string, options?: {
|
|
862
|
-
all?: boolean;
|
|
863
|
-
}): {
|
|
864
|
-
availablePageIds: string[];
|
|
865
|
-
enabledPageIds: string[];
|
|
866
|
-
setPageEnabled: (id: string, opt?: {
|
|
867
|
-
deselectOthers?: boolean;
|
|
868
|
-
}) => void;
|
|
869
|
-
setPageDisabled: (deselectId: string) => void;
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
declare function useAnnotationsAtTime(time: number, options?: {
|
|
873
|
-
canvasId?: string;
|
|
874
|
-
}): AnnotationNormalized[];
|
|
875
|
-
|
|
876
|
-
declare function useCanvas(options?: {
|
|
877
|
-
id: string;
|
|
878
|
-
}): CanvasNormalized | undefined;
|
|
879
|
-
declare function useCanvas<T>(options?: {
|
|
880
|
-
id: string;
|
|
881
|
-
selector: (canvas: CanvasNormalized) => T;
|
|
882
|
-
}, deps?: any[]): T | undefined;
|
|
883
|
-
|
|
884
|
-
declare function useCanvasChoices({ canvasId }?: {
|
|
885
|
-
canvasId?: string;
|
|
886
|
-
}): {
|
|
887
|
-
choices: Array<{
|
|
888
|
-
canvasId: string;
|
|
889
|
-
choice: ComplexChoice;
|
|
890
|
-
}>;
|
|
891
|
-
actions: {
|
|
892
|
-
makeChoice: (id: string, options?: {
|
|
893
|
-
deselectOthers?: boolean;
|
|
894
|
-
deselect?: boolean;
|
|
895
|
-
}) => void;
|
|
896
|
-
};
|
|
897
|
-
};
|
|
898
|
-
|
|
899
|
-
declare function useCanvasClock(canvasId?: string, autoplay?: boolean): void;
|
|
900
|
-
|
|
901
|
-
declare function useCanvasStartTime(): {
|
|
902
|
-
startTime: number;
|
|
903
|
-
endTime?: number | undefined;
|
|
904
|
-
} | null;
|
|
905
|
-
|
|
906
|
-
declare function useCanvasSubset(idsOrRefs?: Array<string | Reference>): Reference<'Canvas'>[];
|
|
907
|
-
|
|
908
|
-
declare function useCollection(options: {
|
|
909
|
-
id: string;
|
|
910
|
-
}): CollectionNormalized | undefined;
|
|
911
|
-
declare function useCollection<T>(options: {
|
|
912
|
-
id: string;
|
|
913
|
-
selector: (collection: CollectionNormalized) => T;
|
|
914
|
-
}, deps?: any[]): T | undefined;
|
|
915
|
-
|
|
916
|
-
declare function useCurrentAnnotationActions(): {
|
|
917
|
-
saveAnnotation: () => void;
|
|
918
|
-
cancelRequest: (requestId?: string | undefined) => void;
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
declare function useCurrentAnnotationMetadata({ requestId: customRequestId }?: {
|
|
922
|
-
requestId?: string;
|
|
923
|
-
}): readonly [Record<string, any>, (data: Record<string, any>) => void];
|
|
924
|
-
|
|
925
|
-
declare function useCurrentAnnotationRequest(): AnnotationRequest | null;
|
|
926
|
-
|
|
927
|
-
declare function useCurrentAnnotationTransition(options: {
|
|
928
|
-
requestId?: string | null;
|
|
929
|
-
onStart?: (type: string) => void;
|
|
930
|
-
onEnd?: (type: string, response: PolygonEvents['polygons.end-transition']['response']) => void;
|
|
931
|
-
onTransition?: (type: string) => void;
|
|
932
|
-
}): void;
|
|
933
|
-
|
|
934
|
-
declare function useDispatch(): VaultZustandStore['dispatch'];
|
|
935
|
-
|
|
936
|
-
type SupportedEvents = 'onClick';
|
|
937
|
-
declare function useEventListener<T>(resource: Reference, name: SupportedEvents, listener: (e: any, resource: T) => void, scope?: string[], deps?: any[]): void;
|
|
938
|
-
|
|
939
|
-
declare const ReactEmitterContext: React$1.Context<Emitter<any>>;
|
|
940
|
-
declare function EventEmitterProvider({ children, emitter, }: {
|
|
941
|
-
children: React.ReactNode;
|
|
942
|
-
emitter: Emitter<any>;
|
|
943
|
-
}): react_jsx_runtime.JSX.Element;
|
|
944
|
-
declare function useEmitter<Event extends Record<string | symbol, unknown>>(): Emitter<Event>;
|
|
945
|
-
declare function useEvent<Event extends Record<string | symbol, unknown>, Key extends keyof Event>(key: Key, listener: (data: Event[Key]) => void, deps?: any[]): void;
|
|
946
|
-
|
|
947
|
-
declare function useExistingVault(vault?: Vault): Vault;
|
|
948
|
-
|
|
949
|
-
type ResourceRequestOptions = {
|
|
950
|
-
noCache?: boolean;
|
|
951
|
-
};
|
|
952
|
-
declare function useExternalResource<T extends {
|
|
953
|
-
id: string;
|
|
954
|
-
}>(idOrRef: string | {
|
|
955
|
-
id: string;
|
|
956
|
-
type: string;
|
|
957
|
-
}, { noCache }?: ResourceRequestOptions): {
|
|
958
|
-
id: string;
|
|
959
|
-
requestId: string;
|
|
960
|
-
isLoaded: boolean;
|
|
961
|
-
error: any;
|
|
962
|
-
cached: boolean;
|
|
963
|
-
resource?: T;
|
|
964
|
-
};
|
|
965
|
-
|
|
966
|
-
declare function useExternalCollection(idOrRef: string | {
|
|
967
|
-
id: string;
|
|
968
|
-
type: string;
|
|
969
|
-
}, options?: ResourceRequestOptions): {
|
|
970
|
-
id: string;
|
|
971
|
-
requestId: string;
|
|
972
|
-
isLoaded: boolean;
|
|
973
|
-
cached?: boolean;
|
|
974
|
-
error: any;
|
|
975
|
-
manifest?: CollectionNormalized;
|
|
976
|
-
};
|
|
977
|
-
|
|
978
|
-
declare function useExternalManifest(idOrRef: string | {
|
|
979
|
-
id: string;
|
|
980
|
-
type: string;
|
|
981
|
-
}, options?: ResourceRequestOptions): {
|
|
982
|
-
id: string;
|
|
983
|
-
requestId: string;
|
|
984
|
-
isLoaded: boolean;
|
|
985
|
-
cached?: boolean;
|
|
986
|
-
error: any;
|
|
987
|
-
manifest?: ManifestNormalized;
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
declare function useImage(service: ImageService$1 | undefined, data?: {
|
|
991
|
-
size?: Partial<ImageSize>;
|
|
992
|
-
selector?: RegionParameter;
|
|
993
|
-
rotation?: number | RotationParameter;
|
|
994
|
-
format?: string;
|
|
995
|
-
region?: RegionParameter;
|
|
996
|
-
quality?: string;
|
|
997
|
-
}, deps?: any[]): string | null;
|
|
998
|
-
|
|
999
|
-
interface ImageServiceRequestOptions {
|
|
1000
|
-
cacheKey?: string;
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* Returns the First image service on the current canvas.
|
|
1004
|
-
*
|
|
1005
|
-
* @note It is better to use the hook useRenderingStrategy for rendering.
|
|
1006
|
-
*/
|
|
1007
|
-
declare function useImageService({ cacheKey }?: ImageServiceRequestOptions): {
|
|
1008
|
-
data: ImageService$1 | undefined;
|
|
1009
|
-
isFetching: boolean;
|
|
1010
|
-
status: 'error' | 'success' | 'loading' | 'idle';
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
declare function useImageTile(): {
|
|
1014
|
-
isLoading: boolean;
|
|
1015
|
-
tile: {
|
|
1016
|
-
id: string | undefined;
|
|
1017
|
-
width: number | null | undefined;
|
|
1018
|
-
height: number | null | undefined;
|
|
1019
|
-
imageService: ImageService$1;
|
|
1020
|
-
thumbnail: undefined;
|
|
1021
|
-
} | null;
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
|
-
declare function useManifest(options?: {
|
|
1025
|
-
id: string;
|
|
1026
|
-
}): ManifestNormalized | undefined;
|
|
1027
|
-
declare function useManifest<T>(options?: {
|
|
1028
|
-
id: string;
|
|
1029
|
-
selector: (manifest: ManifestNormalized) => T;
|
|
1030
|
-
}, deps?: any[]): T | undefined;
|
|
1031
|
-
|
|
1032
|
-
declare function usePaintables(options?: {
|
|
1033
|
-
defaultChoices?: string[];
|
|
1034
|
-
enableSingleAnnotation?: boolean;
|
|
1035
|
-
}, deps?: any[]): readonly [_iiif_helpers_painting_annotations.Paintables, {
|
|
1036
|
-
makeChoice: (id: string, { deselectOthers, deselect }?: {
|
|
1037
|
-
deselectOthers?: boolean;
|
|
1038
|
-
deselect?: boolean;
|
|
1039
|
-
}) => void;
|
|
1040
|
-
}];
|
|
1041
|
-
|
|
1042
|
-
declare function usePaintingAnnotations(options?: {
|
|
1043
|
-
canvasId?: string;
|
|
1044
|
-
enableSingleAnnotation?: boolean;
|
|
1045
|
-
}): AnnotationNormalized[];
|
|
1046
|
-
|
|
1047
|
-
declare function usePolygonHelper(render: (t: any, s: any, dt: number) => void): {
|
|
1048
|
-
currentShape: polygon_editor.InputShape | null;
|
|
1049
|
-
state: polygon_editor.SlowState;
|
|
1050
|
-
helper: {
|
|
1051
|
-
state: polygon_editor.RenderState;
|
|
1052
|
-
setState: (newState: Partial<polygon_editor.SlowState>) => void;
|
|
1053
|
-
emitter: mitt.Emitter<polygon_editor.PolygonEvents>;
|
|
1054
|
-
modifiers: {
|
|
1055
|
-
reset(): void;
|
|
1056
|
-
getForType(type: string | null): Record<string, string>;
|
|
1057
|
-
set(modifier: string): void;
|
|
1058
|
-
unset(modifier: string): void;
|
|
1059
|
-
};
|
|
1060
|
-
stamps: {
|
|
1061
|
-
set(selectedStamp: polygon_editor.InputShape | null): void;
|
|
1062
|
-
clear(): void;
|
|
1063
|
-
square(): void;
|
|
1064
|
-
triangle(): void;
|
|
1065
|
-
pentagon(): void;
|
|
1066
|
-
hexagon(): void;
|
|
1067
|
-
circle(): void;
|
|
1068
|
-
};
|
|
1069
|
-
history: {
|
|
1070
|
-
undo: () => void;
|
|
1071
|
-
redo: () => void;
|
|
1072
|
-
readonly canUndo: boolean;
|
|
1073
|
-
readonly canRedo: boolean;
|
|
1074
|
-
};
|
|
1075
|
-
key: {
|
|
1076
|
-
down(inputKey: string): boolean | undefined;
|
|
1077
|
-
up(inputKey: string): void;
|
|
1078
|
-
};
|
|
1079
|
-
setScale: (scale: number) => void;
|
|
1080
|
-
clock: {
|
|
1081
|
-
set: (renderFunc: polygon_editor.RenderFunc) => void;
|
|
1082
|
-
start: (renderFunc?: polygon_editor.RenderFunc | undefined, setStateFunc?: polygon_editor.SetState | undefined) => void;
|
|
1083
|
-
stop: () => void;
|
|
1084
|
-
step: (deltaTime?: number | undefined) => void;
|
|
1085
|
-
};
|
|
1086
|
-
pointer: (pointers: ([number, number] | [number, number, number, number, number, number])[]) => void;
|
|
1087
|
-
blur: () => void;
|
|
1088
|
-
pointerDown: () => void;
|
|
1089
|
-
pointerUp: () => void;
|
|
1090
|
-
setShape: (shape: polygon_editor.InputShape | null) => void;
|
|
1091
|
-
label: (type: string | null) => string;
|
|
1092
|
-
tools: {
|
|
1093
|
-
setTool: (tool: polygon_editor.ValidTools) => void;
|
|
1094
|
-
unsetTool: (tool: polygon_editor.ValidTools) => void;
|
|
1095
|
-
toggleTool: (tool: polygon_editor.ValidTools) => void;
|
|
1096
|
-
updateVisibility: (tool: polygon_editor.ValidTools) => void;
|
|
1097
|
-
setCanDelete(canDelete: boolean): void;
|
|
1098
|
-
setCanDeselect(canDeselect: boolean): void;
|
|
1099
|
-
lockToolSwitching(): void;
|
|
1100
|
-
unlockToolSwitching(): void;
|
|
1101
|
-
toggleToolSwitching(): void;
|
|
1102
|
-
shortcuts: {
|
|
1103
|
-
[k: string]: string;
|
|
1104
|
-
};
|
|
1105
|
-
getValidIntents(tool?: polygon_editor.ValidTools | undefined): {
|
|
1106
|
-
actions: polygon_editor.ActionIntent[];
|
|
1107
|
-
transitions: polygon_editor.TransitionIntent[];
|
|
1108
|
-
keys: polygon_editor.ActionIntent[];
|
|
1109
|
-
all: Record<string, string>;
|
|
1110
|
-
current: Record<string, string>;
|
|
1111
|
-
};
|
|
1112
|
-
getToolInfo(): {
|
|
1113
|
-
name: polygon_editor.ValidTools;
|
|
1114
|
-
cursor: string;
|
|
1115
|
-
selectionCount: number;
|
|
1116
|
-
pointCount: number;
|
|
1117
|
-
isOpen: boolean;
|
|
1118
|
-
};
|
|
1119
|
-
smartSelect(): void;
|
|
1120
|
-
clearSelection(): void;
|
|
1121
|
-
autoSelect(): void;
|
|
1122
|
-
};
|
|
1123
|
-
snap: {
|
|
1124
|
-
enabled: () => boolean;
|
|
1125
|
-
enable: () => void;
|
|
1126
|
-
disable: () => void;
|
|
1127
|
-
toggle: () => void;
|
|
1128
|
-
pointsEnabled: () => boolean;
|
|
1129
|
-
enablePoints: () => void;
|
|
1130
|
-
disablePoints: () => void;
|
|
1131
|
-
togglePoints: () => void;
|
|
1132
|
-
linesEnabled: () => boolean;
|
|
1133
|
-
enableLines: () => void;
|
|
1134
|
-
disableLines: () => void;
|
|
1135
|
-
toggleLines: () => void;
|
|
1136
|
-
intersectionsEnabled: () => boolean;
|
|
1137
|
-
enableIntersections: () => void;
|
|
1138
|
-
disableIntersections: () => void;
|
|
1139
|
-
toggleIntersections: () => void;
|
|
1140
|
-
gridEnabled: () => boolean;
|
|
1141
|
-
enableGrid: () => void;
|
|
1142
|
-
disableGrid: () => void;
|
|
1143
|
-
toggleGrid: () => void;
|
|
1144
|
-
parallelEnabled: () => boolean;
|
|
1145
|
-
enableParallel: () => void;
|
|
1146
|
-
disableParallel: () => void;
|
|
1147
|
-
toggleParallel: () => void;
|
|
1148
|
-
getThreshold: () => number;
|
|
1149
|
-
setThreshold: (threshold: number) => void;
|
|
1150
|
-
isActive: () => boolean;
|
|
1151
|
-
getSnapPoint: () => ([number, number] | [number, number, number, number, number, number]) | null;
|
|
1152
|
-
getActiveGuides: () => polygon_editor.SnapGuide[];
|
|
1153
|
-
getTargets: () => polygon_editor.SnapTarget[];
|
|
1154
|
-
};
|
|
1155
|
-
selectAllPoints: () => void;
|
|
1156
|
-
setBounds: (bounds: {
|
|
1157
|
-
x: number;
|
|
1158
|
-
y: number;
|
|
1159
|
-
width: number;
|
|
1160
|
-
height: number;
|
|
1161
|
-
} | null) => void;
|
|
1162
|
-
lockAspectRatio: () => void;
|
|
1163
|
-
unlockAspectRatio: () => void;
|
|
1164
|
-
};
|
|
1165
|
-
};
|
|
1166
|
-
|
|
1167
|
-
declare function useRange(options?: {
|
|
1168
|
-
id: string;
|
|
1169
|
-
}): RangeNormalized | undefined;
|
|
1170
|
-
declare function useRange<T>(options?: {
|
|
1171
|
-
id: string;
|
|
1172
|
-
selector: (range: RangeNormalized) => T;
|
|
1173
|
-
}, deps?: any[]): T | undefined;
|
|
1174
|
-
|
|
1175
|
-
declare function useStaticRenderingStrategy({ supports }?: {
|
|
1176
|
-
supports?: Array<RenderingStrategy['type']>;
|
|
1177
|
-
}): RenderingStrategy;
|
|
1178
|
-
|
|
1179
|
-
interface StylesheetStore {
|
|
1180
|
-
stylesheets: Record<string, string>;
|
|
1181
|
-
loading: string[];
|
|
1182
|
-
errors: Array<{
|
|
1183
|
-
url: string;
|
|
1184
|
-
error: Error;
|
|
1185
|
-
}>;
|
|
1186
|
-
loadStylesheet(url: string): Promise<string>;
|
|
1187
|
-
setStylesheet(value: string, url?: string): string;
|
|
1188
|
-
parseStylesheet(stylesheet: Annotation['stylesheet'] | null): Promise<null | {
|
|
1189
|
-
id: string;
|
|
1190
|
-
type: 'CssStylesheet';
|
|
1191
|
-
value: string;
|
|
1192
|
-
}>;
|
|
1193
|
-
}
|
|
1194
|
-
declare const useStylesheetStore: zustand.UseBoundStore<zustand.StoreApi<StylesheetStore>>;
|
|
1195
|
-
declare function useRemoteStylesheet(stylesheet?: Annotation['stylesheet'] | null): readonly [Record<string, string>, {
|
|
1196
|
-
readonly id: string;
|
|
1197
|
-
readonly stylesheets: Record<string, string>;
|
|
1198
|
-
readonly loading: string[];
|
|
1199
|
-
readonly errors: {
|
|
1200
|
-
url: string;
|
|
1201
|
-
error: Error;
|
|
1202
|
-
}[];
|
|
1203
|
-
}];
|
|
1204
|
-
|
|
1205
|
-
declare function useRequestAnnotation(opts?: {
|
|
1206
|
-
onSuccess?: (r: AnnotationResponse) => void;
|
|
1207
|
-
}): {
|
|
1208
|
-
id: number;
|
|
1209
|
-
busy: boolean;
|
|
1210
|
-
isPending: boolean;
|
|
1211
|
-
isActive: boolean;
|
|
1212
|
-
requestId: string | null;
|
|
1213
|
-
requestAnnotation: (request: AnnotationRequest, options?: Omit<AnnotationRequestOptions, 'requestId'>) => Promise<AnnotationResponse | null>;
|
|
1214
|
-
cancelRequest: () => void;
|
|
1215
|
-
completeRequest: () => void;
|
|
1216
|
-
reset: () => void;
|
|
1217
|
-
data: AnnotationResponse | null;
|
|
1218
|
-
};
|
|
1219
|
-
|
|
1220
|
-
declare function useResourceEvents<T extends NormalizedEntity>(resource?: Reference, scope?: string[]): any;
|
|
1221
|
-
|
|
1222
|
-
declare function useResources<Type>(ids: string[], type: string): Type[];
|
|
1223
|
-
|
|
1224
|
-
declare function useSearchService(): SearchService$1 | undefined;
|
|
1225
|
-
|
|
1226
|
-
declare function useStyleHelper(): _iiif_helpers_styles.StyledHelper<_iiif_helpers_styles.StyleDefinition>;
|
|
1227
|
-
|
|
1228
|
-
declare function useStyles<Style extends Record<string, Record<string, any>>>(resource: undefined | Reference<any>): Style;
|
|
1229
|
-
declare function useStyles<Style extends Record<string, any>>(resource: undefined | Reference<any>, scope: string): Style;
|
|
1230
|
-
|
|
1231
|
-
declare function useSvgEditorControls(): {
|
|
1232
|
-
completeRequest: (requestId?: string | undefined) => void;
|
|
1233
|
-
currentTool: polygon_editor.ValidTools;
|
|
1234
|
-
selectedStamp: polygon_editor.InputShape | null;
|
|
1235
|
-
switchTool: {
|
|
1236
|
-
draw(): void;
|
|
1237
|
-
pen(): void;
|
|
1238
|
-
line(): void;
|
|
1239
|
-
lineBox(): void;
|
|
1240
|
-
box(): void;
|
|
1241
|
-
triangle(): void;
|
|
1242
|
-
hexagon(): void;
|
|
1243
|
-
circle(): void;
|
|
1244
|
-
remove(): void;
|
|
1245
|
-
hand(): void;
|
|
1246
|
-
pointer(): void;
|
|
1247
|
-
};
|
|
1248
|
-
};
|
|
1249
|
-
|
|
1250
|
-
declare function getCroppedThumbnail(thumbnail: any, request: ImageCandidateRequest): ImageCandidate | undefined;
|
|
1251
|
-
declare function useThumbnail(request: ImageCandidateRequest, dereference?: boolean, { canvasId, manifestId }?: {
|
|
1252
|
-
canvasId?: string;
|
|
1253
|
-
manifestId?: string;
|
|
1254
|
-
}): ImageCandidate | undefined;
|
|
1255
|
-
|
|
1256
|
-
declare const useVault: () => Vault;
|
|
1257
|
-
|
|
1258
|
-
declare const useVaultEffect: (callback: (vault: Vault) => void, deps?: any[]) => void;
|
|
1259
|
-
|
|
1260
|
-
declare function useVaultSelector<T>(selector: (state: IIIFStore, vault: Vault) => T, deps?: any[]): T;
|
|
1261
|
-
|
|
1262
|
-
type Rect = {
|
|
1263
|
-
x: number;
|
|
1264
|
-
y: number;
|
|
1265
|
-
width: number;
|
|
1266
|
-
height: number;
|
|
1267
|
-
};
|
|
1268
|
-
type Transition = {
|
|
1269
|
-
from: Rect;
|
|
1270
|
-
to: Rect;
|
|
1271
|
-
};
|
|
1272
|
-
declare const DEFAULT_BEZIER: [number, number, number, number];
|
|
1273
|
-
declare const DEFAULT_POLL_INTERVAL = 16;
|
|
1274
|
-
type EasingPreset = 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'ease-in-cubic' | 'ease-out-cubic';
|
|
1275
|
-
declare const EASING_PRESETS: Record<EasingPreset, [number, number, number, number]>;
|
|
1276
|
-
declare function interpolateRect(a: Rect, b: Rect, t: number): Rect;
|
|
1277
|
-
declare function buildTransitions(initial: Rect, regions: Rect[]): Transition[];
|
|
1278
|
-
/**
|
|
1279
|
-
* Create a cubic-bezier easing function given control points [x1,y1,x2,y2].
|
|
1280
|
-
* Uses a numeric solve to invert x(t) -> t for a given x input.
|
|
1281
|
-
*/
|
|
1282
|
-
declare function cubicBezierEasing([x1, y1, x2, y2]: [number, number, number, number]): (x: number) => number;
|
|
1283
|
-
/**
|
|
1284
|
-
* Map a progress value to a step index and local t in [0,1].
|
|
1285
|
-
* If progress < 0 returns index -1 and t 0. If progress >= transitions.length returns index = transitions.length and t 0.
|
|
1286
|
-
*/
|
|
1287
|
-
declare function getStepFromProgress(progress: number, transitions: Transition[]): {
|
|
1288
|
-
index: number;
|
|
1289
|
-
t: number;
|
|
1290
|
-
};
|
|
1291
|
-
|
|
1292
|
-
type EasingInput = ((t: number) => number) | EasingPreset | [number, number, number, number];
|
|
1293
|
-
type UseViewportTourOptions = {
|
|
1294
|
-
initial: Rect;
|
|
1295
|
-
regions: Rect[];
|
|
1296
|
-
/** Provide either a numeric progress or a function that returns progress */
|
|
1297
|
-
progress?: number;
|
|
1298
|
-
getProgress?: () => number;
|
|
1299
|
-
enabled?: boolean;
|
|
1300
|
-
easing?: EasingInput;
|
|
1301
|
-
/** if true, report progress every tick; otherwise only when step index changes */
|
|
1302
|
-
reportEveryFrame?: boolean;
|
|
1303
|
-
pollInterval?: number;
|
|
1304
|
-
loop?: boolean;
|
|
1305
|
-
onEnter?: (index: number) => void;
|
|
1306
|
-
onExit?: (index: number) => void;
|
|
1307
|
-
onProgress?: (index: number, t: number) => void;
|
|
1308
|
-
/** optional callback to receive jump-to function for programmatic navigation */
|
|
1309
|
-
jumpTo?: (fn: (index: number) => void) => void;
|
|
1310
|
-
};
|
|
1311
|
-
declare function useViewportTour(options: UseViewportTourOptions): {
|
|
1312
|
-
transitions: Transition[];
|
|
1313
|
-
currentIndex: number;
|
|
1314
|
-
currentTransition: Transition | undefined;
|
|
1315
|
-
t: number;
|
|
1316
|
-
rect: Rect | undefined;
|
|
1317
|
-
jumpTo: (indexToJump: number) => void;
|
|
1318
|
-
};
|
|
1319
|
-
|
|
1320
|
-
type UseViewportScrollOptions = {
|
|
1321
|
-
axis?: 'y' | 'x';
|
|
1322
|
-
offset?: number;
|
|
1323
|
-
steps?: number;
|
|
1324
|
-
enabled?: boolean;
|
|
1325
|
-
};
|
|
1326
|
-
/**
|
|
1327
|
-
* Returns a progress value derived from scroll position of provided element.
|
|
1328
|
-
* The returned value is in range [0, steps].
|
|
1329
|
-
* Uses passive scroll listener + requestAnimationFrame for efficient updates.
|
|
1330
|
-
*/
|
|
1331
|
-
declare function useViewportScroll(ref: {
|
|
1332
|
-
current: HTMLElement | null;
|
|
1333
|
-
} | null, options?: UseViewportScrollOptions): number;
|
|
1334
|
-
|
|
1335
|
-
interface VaultActivatedAnnotation {
|
|
1336
|
-
__vault?: Vault;
|
|
1337
|
-
bindToVault(vault: Vault): void;
|
|
1338
|
-
source: string | {
|
|
1339
|
-
id: string;
|
|
1340
|
-
};
|
|
1341
|
-
}
|
|
1342
|
-
declare function useVirtualAnnotationPage(): readonly [AnnotationPageNormalized | null, {
|
|
1343
|
-
readonly addAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized, atIndex?: number) => void;
|
|
1344
|
-
readonly removeAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized) => void;
|
|
1345
|
-
}];
|
|
1346
|
-
|
|
1347
|
-
declare function useVirtualAnnotationPageContext(): [AnnotationPageNormalized | null, {
|
|
1348
|
-
addAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized, atIndex?: number | undefined) => void;
|
|
1349
|
-
removeAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized) => void;
|
|
1350
|
-
}];
|
|
1351
|
-
declare function VirtualAnnotationProvider({ children }: {
|
|
1352
|
-
children: any;
|
|
1353
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1354
|
-
|
|
1355
|
-
declare function flattenAnnotationPageIds({ canvas, manifest, all, canvases, }: {
|
|
1356
|
-
manifest?: ManifestNormalized;
|
|
1357
|
-
canvas?: CanvasNormalized;
|
|
1358
|
-
canvases?: CanvasNormalized[];
|
|
1359
|
-
all?: boolean;
|
|
1360
|
-
}): string[];
|
|
1361
|
-
|
|
1362
|
-
declare function TranslationProvider(props: {
|
|
1363
|
-
translations: Record<string, string>;
|
|
1364
|
-
children: ReactNode;
|
|
1365
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1366
|
-
declare function LanguageProvider(props: {
|
|
1367
|
-
language: string;
|
|
1368
|
-
children: ReactNode;
|
|
1369
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1370
|
-
declare function TransliterationProvider(props: {
|
|
1371
|
-
convert: null | ((input: string, targetLang: string) => string);
|
|
1372
|
-
children: ReactNode;
|
|
1373
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1374
|
-
declare function useTransliteration(): ((input: string, targetLang: string) => string) | null;
|
|
1375
|
-
declare function useIIIFLanguage(): string;
|
|
1376
|
-
declare function useTranslations(): Record<string, string>;
|
|
1377
|
-
type LanguageStringProps = {
|
|
1378
|
-
[key: string]: any;
|
|
1379
|
-
} & {
|
|
1380
|
-
as?: string | React__default.FC<any>;
|
|
1381
|
-
language: string;
|
|
1382
|
-
viewingDirection?: 'rtl' | 'rtl';
|
|
1383
|
-
};
|
|
1384
|
-
declare function LanguageString({ as: Component, language, children, viewingDirection, ...props }: LanguageStringProps): react_jsx_runtime.JSX.Element;
|
|
1385
|
-
declare const useClosestLanguage: (getLanguages: () => string[], deps?: any[]) => string | undefined;
|
|
1386
|
-
declare function useLocaleString(inputText: InternationalString | string | null | undefined, defaultText?: string, separator?: string, translations?: Record<string, string>): readonly [string, string | undefined];
|
|
1387
|
-
declare function useCreateLocaleString(): (inputText: InternationalString | string | null | undefined, defaultText?: string, separator?: string, translations?: Record<string, string>) => string;
|
|
1388
|
-
type LocaleStringProps = {
|
|
1389
|
-
as?: string | React__default.FC<any>;
|
|
1390
|
-
defaultText?: string;
|
|
1391
|
-
to?: string;
|
|
1392
|
-
separator?: string;
|
|
1393
|
-
enableDangerouslySetInnerHTML?: boolean;
|
|
1394
|
-
children: InternationalString | string | null | undefined;
|
|
1395
|
-
style?: React__default.CSSProperties;
|
|
1396
|
-
extraProps?: any;
|
|
1397
|
-
} & Record<string, any>;
|
|
1398
|
-
declare function LocaleString({ as: Component, defaultText, enableDangerouslySetInnerHTML, children, separator, ...props }: LocaleStringProps): react_jsx_runtime.JSX.Element;
|
|
1399
|
-
|
|
1400
|
-
declare function targetIntersects(a: {
|
|
1401
|
-
x: number;
|
|
1402
|
-
y: number;
|
|
1403
|
-
width: number;
|
|
1404
|
-
height: number;
|
|
1405
|
-
}, b: {
|
|
1406
|
-
x: number;
|
|
1407
|
-
y: number;
|
|
1408
|
-
width: number;
|
|
1409
|
-
height: number;
|
|
1410
|
-
}): boolean;
|
|
1411
|
-
|
|
1412
|
-
declare function annotationResponseToSelector(response: {
|
|
1413
|
-
polygon: AnnotationResponse['polygon'];
|
|
1414
|
-
boundingBox?: AnnotationResponse['boundingBox'];
|
|
1415
|
-
target?: AnnotationResponse['target'];
|
|
1416
|
-
}, on?: {
|
|
1417
|
-
width: number;
|
|
1418
|
-
height: number;
|
|
1419
|
-
} | null): SupportedSelector;
|
|
1420
|
-
|
|
1421
|
-
declare function isRectangle(points: InputShape['points']): boolean;
|
|
1422
|
-
|
|
1423
|
-
declare function isSvgSelector(t: SupportedSelector): t is SvgSelector;
|
|
1424
|
-
declare function isBoxSelector(t: SupportedSelector): t is BoxSelector;
|
|
1425
|
-
declare function seraliseSupportedSelector(selector: SupportedSelector, on?: {
|
|
1426
|
-
width: number;
|
|
1427
|
-
height: number;
|
|
1428
|
-
} | null): null | SvgSelector$1 | FragmentSelector;
|
|
1429
|
-
|
|
1430
|
-
declare const SimpleViewerReactContext: React__default.Context<SimpleViewerContext>;
|
|
1431
|
-
declare function InnerViewerProvider(props: SimpleViewerProps): react_jsx_runtime.JSX.Element | null;
|
|
1432
|
-
declare function SimpleViewerProvider(props: SimpleViewerProps): react_jsx_runtime.JSX.Element;
|
|
1433
|
-
declare function useSimpleViewer(): SimpleViewerContext;
|
|
1434
|
-
|
|
1435
|
-
declare function useCanvasSequence({ startCanvas, disablePaging }: {
|
|
1436
|
-
startCanvas?: string;
|
|
1437
|
-
disablePaging?: boolean;
|
|
1438
|
-
}): {
|
|
1439
|
-
visibleItems: string[];
|
|
1440
|
-
cursor: number;
|
|
1441
|
-
items: {
|
|
1442
|
-
type: "Canvas";
|
|
1443
|
-
id: string;
|
|
1444
|
-
}[];
|
|
1445
|
-
sequence: number[][];
|
|
1446
|
-
hasPrevious: boolean;
|
|
1447
|
-
hasNext: boolean;
|
|
1448
|
-
setSequenceIndex: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
1449
|
-
setCanvasIndex: (index: number) => void;
|
|
1450
|
-
setCanvasId: (id: string) => void;
|
|
1451
|
-
next: () => void;
|
|
1452
|
-
previous: () => void;
|
|
1453
|
-
};
|
|
1454
|
-
|
|
1455
|
-
declare function findFirstCanvasFromRange(vault: Vault, range: RangeNormalized): null | Reference<'Canvas'>;
|
|
1456
|
-
declare function findAllCanvasesInRange(vault: Vault, range: RangeNormalized): Array<Reference<'Canvas'>>;
|
|
1457
|
-
declare function findManifestSelectedRange(vault: Vault, manifest: ManifestNormalized, canvasId: string): null | RangeNormalized;
|
|
1458
|
-
declare function findSelectedRange(vault: Vault, range: RangeNormalized, canvasId: string): null | RangeNormalized;
|
|
1459
|
-
|
|
1460
|
-
/**
|
|
1461
|
-
* Get visible canvases from canvas ID
|
|
1462
|
-
*
|
|
1463
|
-
* This function returns a list of canvas references that should all be displayed
|
|
1464
|
-
* when the passed canvasId is visible. This should work for individual items,
|
|
1465
|
-
* 2-up paged view and continuous (scrolls).
|
|
1466
|
-
*
|
|
1467
|
-
* The options are listed below (from IIIF docs)
|
|
1468
|
-
*
|
|
1469
|
-
* - `unordered` - Valid on Collections, Manifests and Ranges. The Canvases included in resources that have this behavior
|
|
1470
|
-
* have no inherent order, and user interfaces should avoid implying an order to the user. Disjoint with individuals,
|
|
1471
|
-
* continuous, and paged.
|
|
1472
|
-
*
|
|
1473
|
-
* - `individuals` - Valid on Collections, Manifests, and Ranges. For Collections that have this behavior, each of the
|
|
1474
|
-
* included Manifests are distinct objects in the given order. For Manifests and Ranges, the included Canvases are
|
|
1475
|
-
* distinct views, and should not be presented in a page-turning interface. This is the default layout behavior if
|
|
1476
|
-
* not specified. Disjoint with unordered, continuous, and paged.
|
|
1477
|
-
*
|
|
1478
|
-
* - `continuous` Valid on Collections, Manifests and Ranges, which include Canvases that have at least height and
|
|
1479
|
-
* width dimensions. Canvases included in resources that have this behavior are partial views and an appropriate
|
|
1480
|
-
* rendering might display all of the Canvases virtually stitched together, such as a long scroll split into
|
|
1481
|
-
* sections. This behavior has no implication for audio resources. The viewingDirection of the Manifest will
|
|
1482
|
-
* determine the appropriate arrangement of the Canvases. Disjoint with unordered, individuals and paged.
|
|
1483
|
-
*
|
|
1484
|
-
* - `paged` Valid on Collections, Manifests and Ranges, which include Canvases that have at least height and width
|
|
1485
|
-
* dimensions. Canvases included in resources that have this behavior represent views that should be presented in
|
|
1486
|
-
* a page-turning interface if one is available. The first canvas is a single view (the first recto) and thus the
|
|
1487
|
-
* second canvas likely represents the back of the object in the first canvas. If this is not the case, see the
|
|
1488
|
-
* behavior value non-paged. Disjoint with unordered, individuals, continuous, facing-pages and non-paged.
|
|
1489
|
-
*
|
|
1490
|
-
*/
|
|
1491
|
-
declare function getVisibleCanvasesFromCanvasId(vault: Vault, manifestOrRange: ManifestNormalized | RangeNormalized, canvasId: string | null, preventPaged?: boolean): Reference<'Canvas'>[];
|
|
1492
|
-
declare function getManifestSequence(vault: Vault, manifestOrRange: ManifestNormalized | RangeNormalized, { disablePaging, skipNonPaged }?: {
|
|
1493
|
-
disablePaging?: boolean;
|
|
1494
|
-
skipNonPaged?: boolean;
|
|
1495
|
-
}): [Reference<'Canvas'>[], number[][]];
|
|
1496
|
-
|
|
1497
|
-
export { AnnotationContext, AnnotationPageContext, AnnotationRequest, AnnotationRequestOptions, AnnotationResponse, type AnnotationStrategyProps, AnnotationStyleProvider, type AnnotationStyles, type AnnotationThemeDefinition, AtlasStore, Auth, type AuthAccessState, type AuthContextActions, type AuthContextCurrentActions, type AuthContextState, AuthProvider, AuthRContext, AuthReactContext, AuthReactContextActions, type AuthState, CanvasAnnotations, CanvasContext, CanvasStrategyProvider, CanvasWorldObject, CollectionContext, CombinedMetadata, ComplexTimelineProvider, ComplexTimelineStrategy, ContextBridge, type ControlsContext, ControlsReactContext, CreateCustomShape, type CreateCustomShapeProps, CustomContextBridge, CustomContextBridgeProvider, DEFAULT_BEZIER, DEFAULT_POLL_INTERVAL, DefaultEditingTools, EASING_PRESETS, type EasingInput, type EasingPreset, EmptyStrategy, EventEmitterProvider, EventsProvider, Image, type ImageProps, ImageService, ImageServiceLoaderContext, ImageServiceLoaderType, type ImageServiceRequestOptions, type ImageStrategyProps, ImageWithOptionalService, InnerViewerProvider, LanguageProvider, LanguageString, LocaleString, ManifestContext, ManifestMetadata, type MediaPlayerActions, MediaPlayerProvider, type MediaPlayerState, MediaStrategy, Metadata, type MetadataProps, PolygonSelector, type PolygonSelectorProps, type ProbeStore, RangeContext, ReactEmitterContext, ReactEventContext, ReactVaultContext, type Rect, RegionHighlight, Render3DModelStrategy, RenderAccompanyingCanvas, RenderAnnotationEditing, RenderAnnotationStrategy, RenderAudioStrategy, RenderComplexTimelineStrategy, RenderContextProps, RenderEmptyStrategy, RenderImageStrategy, RenderSvgEditorControls, RenderTextualContentStrategy, RenderVideoStrategy, RenderYouTubeStrategy, RenderingStrategy, ResizeWorldItem, type ResourceContextType, ResourceProvider, ResourceReactContext, type ResourceRequestOptions, SVGTheme, SelectorControllerProvider, type SelectorHelperEventTypes, SequenceThumbnails, SimpleViewerContext, SimpleViewerProps, SimpleViewerProvider, SimpleViewerReactContext, SingleCanvasThumbnail, SingleImageStrategy, StrategyActions, type StrategyContext, StrategyReactContext, type SvgTheme, ThumbnailFallbackImage, TimelineKeyframe, type Transition, TranslationProvider, TransliterationProvider, UnknownStrategy, type UseViewportScrollOptions, type UseViewportTourOptions, type VaultActivatedAnnotation, VaultProvider, ViewerPresetContext, VirtualAnnotationProvider, VisibleCanvasReactContext, annotationResponseToSelector, authDetailsForResource, buildTransitions, createAuthStateStore, createProbe, cubicBezierEasing, defaultEmitter, findAllCanvasesInRange, findFirstCanvasFromRange, findManifestSelectedRange, findSelectedRange, flattenAnnotationPageIds, formatTime, getComplexTimelineStrategy, getCroppedThumbnail, getDefaultAnnotationStyles, getManifestSequence, getStepFromProgress, getVideoStrategy, getVisibleCanvasesFromCanvasId, hasAuth, interpolateRect, isBoxSelector, isRectangle, isSvgSelector, makeAccessServiceRequest, makeAccessTokenRequest, seraliseSupportedSelector, svgThemes, targetIntersects, useAnnotation, useAnnotationPage, useAnnotationPageManager, useAnnotationStyles, useAnnotationsAtTime, useAuthActions, useAuthService, useAuthStore, useAuthToken, useAuthTokens, useCanvas, useCanvasChoices, useCanvasClock, useCanvasSequence, useCanvasStartTime, useCanvasSubset, useClosestLanguage, useCollection, useComplexTimeline, useContextBridge, useCreateLocaleString, useCurrentAnnotationActions, useCurrentAnnotationMetadata, useCurrentAnnotationRequest, useCurrentAnnotationTransition, useCurrentAuth, useCustomContextBridge, useDispatch, useEmitter, useEvent, useEventEmitter, useEventListener, useExistingVault, useExternalCollection, useExternalManifest, useExternalResource, useIIIFLanguage, useImage, useImageService, useImageServiceLoader, useImageTile, useIsAuthEnabled, useLocaleString, useManifest, useMediaActions, useMediaElements, useMediaState, usePaintables, usePaintingAnnotations, usePolygonHelper, useRange, useRemoteStylesheet, useRenderControls, useRequestAnnotation, useResourceContext, useResourceEvents, useResources, useSearchService, useSelectorController, useSelectorEmitter, useSelectorEvents, useSelectorHelper, useSimpleMediaPlayer, useSimpleViewer, useStaticRenderingStrategy, useStrategy, useStyleHelper, useStyles, useStylesheetStore, useSvgEditor, useSvgEditorControls, useThumbnail, useTranslations, useTransliteration, useVault, useVaultEffect, useVaultSelector, useViewerPreset, useViewportScroll, useViewportTour, useVirtualAnnotationPage, useVirtualAnnotationPageContext, useVisibleCanvases };
|
|
2
|
+
export { PointSelector, SvgSelector, cachedParseCssToBoxStyleMap, convertBoxStyleToSelectorStyle, convertSelectorStyleToBoxStyle, expandTarget, expandTargets, getSelectorTransformAttributes, isImageApiSelector, isValidCanvasFragment, parseCssToBoxStyleMap, parseCssTransform, parseCssTransformOrigin, parseCssTransformStyle, parseRotation, parseSelector, parseWkt, polygonToBoundingBox, resolveSelectorStyle, serializeSupportedSelector, splitCanvasFragment } from '@iiif/helpers/annotation-targets';
|
|
3
|
+
export { A as AnnotationRequest, b as AnnotationRequestOptions, d as AnnotationResponse, c as AtlasStore, e as AtlasStoreEvents, j as AtlasStoreProvider, h as AtlasStoreReactContext, a as CanvasPanel, C as CanvasPanelProps, f as CreateAtlasStoreProps, R as RenderAnnotation, k as RenderAnnotationPage, l as RenderContextProps, S as SVGTheme, g as createAtlasStore, o as defaultSvgTheme, i as getAtlasStoreByName, p as polygonToTarget, r as requestToAnnotationResponse, n as useAtlasContextMenu, u as useAtlasStore, m as useContextMenuStore, q as useSvgEditor } from './index-ClFUurPI.js';
|
|
4
|
+
export { A as AnnotationStrategyProps, t as CanvasAnnotations, C as CanvasWorldObject, u as CombinedMetadata, K as ContextBridge, q as CreateCustomShape, p as CreateCustomShapeProps, G as CustomContextBridge, H as CustomContextBridgeProvider, D as DefaultEditingTools, w as Image, v as ImageProps, I as ImageService, _ as LanguageProvider, a3 as LanguageString, a7 as LocaleString, M as ManifestMetadata, y as Metadata, x as MetadataProps, r as PolygonSelector, P as PolygonSelectorProps, R as RegionHighlight, e as Render3DModelStrategy, f as RenderAccompanyingCanvas, d as RenderAnnotationEditing, g as RenderAnnotationStrategy, h as RenderAudioStrategy, j as RenderComplexTimelineStrategy, k as RenderEmptyStrategy, l as RenderImageStrategy, E as RenderSvgEditorControls, m as RenderTextualContentStrategy, n as RenderVideoStrategy, o as RenderYouTubeStrategy, c as ResizeWorldItem, z as SequenceThumbnails, B as SingleCanvasThumbnail, S as SvgTheme, T as ThumbnailFallbackImage, Z as TranslationProvider, $ as TransliterationProvider, a9 as annotationResponseToSelector, ac as findManifestSelectedRange, ad as findSelectedRange, Y as flattenAnnotationPageIds, a as isBoxSelector, i as isRectangle, b as isSvgSelector, ab as seraliseSupportedSelector, aa as serialiseSupportedSelector, s as svgThemes, a8 as targetIntersects, L as useCanvasChoices, a4 as useClosestLanguage, J as useContextBridge, a6 as useCreateLocaleString, N as useCurrentAnnotationActions, O as useCurrentAnnotationMetadata, Q as useCurrentAnnotationRequest, U as useCurrentAnnotationTransition, F as useCustomContextBridge, a1 as useIIIFLanguage, a5 as useLocaleString, V as usePolygonHelper, W as useRequestAnnotation, X as useSvgEditorControls, a2 as useTranslations, a0 as useTransliteration } from './ranges-Cc2ppjFD.js';
|
|
5
|
+
export { a as CanvasStrategyProvider, C as CanvasStrategyProviderProps, I as ImageStrategyProps } from './ImageStrategy-BHLIi5gd.js';
|
|
6
|
+
export { b0 as ActiveVault, A as AnnotationContext, e as AnnotationPageContext, j as AnnotationStyleProvider, f as AnnotationStyles, g as AnnotationThemeDefinition, x as Auth, aT as AuthAccessState, aS as AuthContextActions, aR as AuthContextCurrentActions, aQ as AuthContextState, o as AuthProvider, l as AuthRContext, m as AuthReactContext, n as AuthReactContextActions, k as AuthState, C as CanvasContext, y as CollectionContext, z as ControlsContext, B as ControlsReactContext, aA as DEFAULT_BEZIER, aB as DEFAULT_POLL_INTERVAL, aD as EASING_PRESETS, at as EasingInput, aC as EasingPreset, a9 as EventEmitterProvider, H as EventsProvider, I as ImageServiceLoaderContext, af as ImageServiceRequestOptions, aJ as InnerViewerProvider, M as ManifestContext, O as MediaPlayerProvider, aP as ProbeStore, P as RangeContext, a8 as ReactEmitterContext, F as ReactEventContext, a as ReactVaultContext, ay as Rect, Q as ResourceContextType, R as ResourceProvider, S as ResourceReactContext, ac as ResourceRequestOptions, W as SelectorControllerProvider, U as SelectorHelperEventTypes, aK as SimpleViewerProvider, aI as SimpleViewerReactContext, az as Transition, aw as UseViewportScrollOptions, au as UseViewportTourOptions, V as VaultActivatedAnnotation, a1 as VaultHooks, aZ as VaultProvider, d as VirtualAnnotationProvider, b as VisibleCanvasReactContext, aW as authDetailsForResource, aF as buildTransitions, aU as createAuthStateStore, aV as createProbe, a2 as createVaultHooks, aG as cubicBezierEasing, E as defaultEmitter, $ as getComplexTimelineStrategy, ar as getCroppedThumbnail, h as getDefaultAnnotationStyles, aH as getStepFromProgress, a0 as getVideoStrategy, aO as hasAuth, aE as interpolateRect, aY as makeAccessServiceRequest, aX as makeAccessTokenRequest, b1 as useActiveVault, a3 as useAnnotationPageManager, i as useAnnotationStyles, r as useAuthActions, t as useAuthService, q as useAuthStore, w as useAuthToken, v as useAuthTokens, a4 as useCanvasClock, aN as useCanvasSequence, a5 as useCanvasStartTime, aM as useContainerSequence, s as useCurrentAuth, a6 as useDispatch, aa as useEmitter, ab as useEvent, G as useEventEmitter, a7 as useEventListener, ad as useExternalResource, ae as useImage, ag as useImageService, J as useImageServiceLoader, ah as useImageTile, p as useIsAuthEnabled, L as useMediaActions, N as useMediaElements, K as useMediaState, ai as usePaintables, al as useRemoteStylesheet, D as useRenderControls, T as useResourceContext, am as useResourceEvents, an as useResources, ao as useSearchService, Z as useSelectorController, X as useSelectorEmitter, Y as useSelectorEvents, _ as useSelectorHelper, aL as useSimpleViewer, aj as useStaticRenderingStrategy, ap as useStyleHelper, aq as useStyles, ak as useStylesheetStore, as as useThumbnail, b2 as useVault, ax as useViewportScroll, av as useViewportTour, u as useVirtualAnnotationPage, c as useVirtualAnnotationPageContext, a$ as useVisibleCanvasContainers, a_ as useVisibleCanvases } from './SimpleViewerContext.hooks-DYJSrd-U.js';
|
|
7
|
+
export { C as ComplexTimelineProvider, e as MediaPlayerActions, M as MediaPlayerState, S as StrategyContext, b as StrategyReactContext, V as ViewerPresetContext, f as formatTime, a as useComplexTimeline, u as useComplexTimelineStore, g as useSimpleMediaPlayer, c as useStrategy, d as useViewerPreset } from './ViewerPresetContext-D7N6KH9p.js';
|
|
8
|
+
export { f as AnnotationPageDescription, A as AudioSequence, n as ChoiceEvents, C as ComplexTimelineStrategy, E as EmptyStrategy, k as ImageServiceLoaderType, I as ImageWithOptionalService, M as MediaStrategy, R as RenderingStrategy, S as Single3DModelStrategy, c as SingleAudio, a as SingleImageStrategy, e as SingleVideo, d as SingleYouTubeVideo, l as StrategyActions, i as TextContent, h as TextualContentStrategy, T as TimelineKeyframe, U as UnknownStrategy, m as UseRenderingStrategy, o as UseRenderingStrategyOptions, V as VideoSequence, g as get3dStrategy, b as getImageStrategy, j as getTextualContentStrategy, u as useLoadImageService, p as useRenderingStrategy } from './useRenderingStrategy-Vubk-vUU.js';
|
|
9
|
+
export { e as emptyActions, d as emptyStrategy, a as getMediaTemporalSelectors, b as getParsedTargetSelector, g as getRenderingStrategy, p as parseSpecificResource, u as unknownResponse, c as unsupportedStrategy } from './utils-DHWZGbVU.js';
|
|
10
|
+
export { useAnnotation, useAnnotationPage, useAnnotationsAtTime, useCanvas, useCanvasSubset, useCollection, useExistingVault, useExternalCollection, useExternalManifest, useManifest, usePaintingAnnotations, useRange, useSelectorForVault, useVaultEffect, useVaultSelector } from './core.js';
|
|
11
|
+
export { c as SimpleViewerActions, d as SimpleViewerActionsType, S as SimpleViewerContext, a as SimpleViewerProps, b as SimpleViewerReducerState } from './SimpleViewerContext.types-CWf5OFM7.js';
|
|
12
|
+
export { getManifestSequence, getVisibleCanvasesFromCanvasId } from '@iiif/helpers/sequences';
|
|
13
|
+
export * from '@iiif/parser/presentation-3/types';
|
|
14
|
+
export { ImageService as IIIFImageService, ResourceProvider as IIIFResourceProvider } from '@iiif/parser/presentation-3/types';
|
|
15
|
+
export * from '@iiif/parser/presentation-3-normalized/types';
|
|
16
|
+
export { Vault } from '@iiif/helpers/vault';
|
|
17
|
+
export { findAllCanvasesInRange, findFirstCanvasFromRange } from '@iiif/helpers/ranges';
|
|
18
|
+
import '@atlas-viewer/atlas';
|
|
19
|
+
import 'react';
|
|
20
|
+
import 'react/jsx-runtime';
|
|
21
|
+
import 'zustand';
|
|
22
|
+
import 'mitt';
|
|
23
|
+
import 'polygon-editor';
|
|
24
|
+
import 'zustand/vanilla';
|
|
25
|
+
import './Image-CXsx26cA.js';
|
|
26
|
+
import '@iiif/helpers';
|
|
27
|
+
import '@iiif/parser/image-3';
|
|
28
|
+
import '@iiif/helpers/vault-4';
|
|
29
|
+
import '@iiif/parser/presentation-4-normalized/types';
|
|
30
|
+
import '@iiif/helpers/image-service';
|
|
31
|
+
import '@iiif/helpers/vault/store';
|
|
32
|
+
import '@iiif/helpers/painting-annotations';
|
|
33
|
+
import '@iiif/helpers/styles';
|
|
34
|
+
import '@iiif/parser/presentation-4/types';
|