react-iiif-vault 1.0.11 → 1.1.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/dist/bundle.d.ts +1058 -0
- package/dist/bundle.global.js +227 -0
- package/dist/canvas-panel.cjs +46 -0
- package/dist/canvas-panel.d.cts +11 -0
- package/dist/canvas-panel.d.ts +11 -0
- package/dist/canvas-panel.js +1 -0
- package/dist/chunk-HEVA2EDS.js +47 -0
- package/dist/chunk-YSH2CIKG.js +1 -0
- package/dist/index-BZirmhnp.d.cts +188 -0
- package/dist/index-Cxs6aAuK.d.ts +188 -0
- package/dist/index.cjs +47 -0
- package/dist/index.d.cts +721 -0
- package/dist/index.d.ts +721 -0
- package/dist/index.js +1 -0
- package/dist/useRenderingStrategy-Xj9yQm4y.d.cts +145 -0
- package/dist/useRenderingStrategy-Xj9yQm4y.d.ts +145 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.cts +32 -0
- package/dist/utils.d.ts +32 -0
- package/dist/utils.js +1 -0
- package/package.json +67 -70
- package/.build/types/canvas-panel/Viewer.d.ts +0 -14
- package/.build/types/canvas-panel/context/overlays.d.ts +0 -3
- package/.build/types/canvas-panel/context/world-size.d.ts +0 -2
- package/.build/types/canvas-panel/index.d.ts +0 -46
- package/.build/types/canvas-panel/render/Annotation.d.ts +0 -8
- package/.build/types/canvas-panel/render/AnnotationPage.d.ts +0 -7
- package/.build/types/canvas-panel/render/Audio.d.ts +0 -11
- package/.build/types/canvas-panel/render/Canvas.d.ts +0 -34
- package/.build/types/canvas-panel/render/CanvasBackground.d.ts +0 -4
- package/.build/types/canvas-panel/render/DefaultCanvasFallback.d.ts +0 -6
- package/.build/types/canvas-panel/render/Image.d.ts +0 -16
- package/.build/types/canvas-panel/render/Model.d.ts +0 -7
- package/.build/types/canvas-panel/render/Video.d.ts +0 -12
- package/.build/types/canvas-panel/render/VideoYouTube.d.ts +0 -12
- package/.build/types/components/CanvasAnnotations.d.ts +0 -10
- package/.build/types/components/CombinedMetadata.d.ts +0 -4
- package/.build/types/components/Image.d.ts +0 -15
- package/.build/types/components/ManifestMetadata.d.ts +0 -4
- package/.build/types/components/Metadata.d.ts +0 -39
- package/.build/types/components/SequenceThumbnails.d.ts +0 -29
- package/.build/types/components/SingleCanvasThumbnail.d.ts +0 -20
- package/.build/types/context/AnnotationContext.d.ts +0 -5
- package/.build/types/context/AnnotationPageContext.d.ts +0 -5
- package/.build/types/context/CanvasContext.d.ts +0 -5
- package/.build/types/context/CollectionContext.d.ts +0 -5
- package/.build/types/context/ContextBridge.d.ts +0 -14
- package/.build/types/context/ImageServiceLoaderContext.d.ts +0 -4
- package/.build/types/context/ManifestContext.d.ts +0 -5
- package/.build/types/context/MediaContext.d.ts +0 -17
- package/.build/types/context/RangeContext.d.ts +0 -5
- package/.build/types/context/ResourceContext.d.ts +0 -15
- package/.build/types/context/VaultContext.d.ts +0 -14
- package/.build/types/context/ViewerPresetContext.d.ts +0 -3
- package/.build/types/context/VisibleCanvasContext.d.ts +0 -4
- package/.build/types/demo/demo.d.ts +0 -1
- package/.build/types/demo/media-controls.d.ts +0 -1
- package/.build/types/demo/viewer-controls.d.ts +0 -1
- package/.build/types/features/rendering-strategy/3d-strategy.d.ts +0 -12
- package/.build/types/features/rendering-strategy/audio-strategy.d.ts +0 -3
- package/.build/types/features/rendering-strategy/get-rendering-strategy.d.ts +0 -11
- package/.build/types/features/rendering-strategy/image-strategy.d.ts +0 -12
- package/.build/types/features/rendering-strategy/rendering-utils.d.ts +0 -12
- package/.build/types/features/rendering-strategy/resource-types.d.ts +0 -55
- package/.build/types/features/rendering-strategy/strategies.d.ts +0 -31
- package/.build/types/features/rendering-strategy/textual-content-strategy.d.ts +0 -16
- package/.build/types/features/rendering-strategy/video-strategy.d.ts +0 -3
- package/.build/types/future-helpers/ranges.d.ts +0 -7
- package/.build/types/future-helpers/sequences.d.ts +0 -8
- package/.build/types/hooks/useAnnotation.d.ts +0 -8
- package/.build/types/hooks/useAnnotationPage.d.ts +0 -8
- package/.build/types/hooks/useAnnotationPageManager.d.ts +0 -10
- package/.build/types/hooks/useAnnotationsAtTime.d.ts +0 -4
- package/.build/types/hooks/useCanvas.d.ts +0 -8
- package/.build/types/hooks/useCanvasClock.d.ts +0 -1
- package/.build/types/hooks/useCanvasSelector.d.ts +0 -0
- package/.build/types/hooks/useCanvasSubset.d.ts +0 -2
- package/.build/types/hooks/useCanvasTimeline.d.ts +0 -0
- package/.build/types/hooks/useCollection.d.ts +0 -8
- package/.build/types/hooks/useDispatch.d.ts +0 -2
- package/.build/types/hooks/useEnabledAnnotationPageIds.d.ts +0 -1
- package/.build/types/hooks/useEventListener.d.ts +0 -4
- package/.build/types/hooks/useExistingVault.d.ts +0 -2
- package/.build/types/hooks/useExternalCollection.d.ts +0 -13
- package/.build/types/hooks/useExternalManifest.d.ts +0 -13
- package/.build/types/hooks/useExternalResource.d.ts +0 -16
- package/.build/types/hooks/useImage.d.ts +0 -10
- package/.build/types/hooks/useImageService.d.ts +0 -9
- package/.build/types/hooks/useImageTile.d.ts +0 -11
- package/.build/types/hooks/useLoadImageService.d.ts +0 -6
- package/.build/types/hooks/useManifest.d.ts +0 -8
- package/.build/types/hooks/usePaintables.d.ts +0 -9
- package/.build/types/hooks/usePaintingAnnotations.d.ts +0 -5
- package/.build/types/hooks/useRange.d.ts +0 -8
- package/.build/types/hooks/useRenderingStrategy.d.ts +0 -15
- package/.build/types/hooks/useResourceEvents.d.ts +0 -3
- package/.build/types/hooks/useResources.d.ts +0 -1
- package/.build/types/hooks/useSearchService.d.ts +0 -2
- package/.build/types/hooks/useSimpleMediaPlayer.d.ts +0 -32
- package/.build/types/hooks/useStyleHelper.d.ts +0 -1
- package/.build/types/hooks/useStyles.d.ts +0 -3
- package/.build/types/hooks/useThumbnail.d.ts +0 -5
- package/.build/types/hooks/useVault.d.ts +0 -2
- package/.build/types/hooks/useVaultEffect.d.ts +0 -2
- package/.build/types/hooks/useVaultSelector.d.ts +0 -2
- package/.build/types/hooks/useVirtualAnnotationPage.d.ts +0 -14
- package/.build/types/hooks/useVirtualAnnotationPageContext.d.ts +0 -671
- package/.build/types/hooks/useVirtualCanvas.d.ts +0 -0
- package/.build/types/index.d.ts +0 -72
- package/.build/types/utility/flatten-annotation-page-ids.d.ts +0 -7
- package/.build/types/utility/i18n-utils.d.ts +0 -30
- package/.build/types/utils.d.ts +0 -2
- package/.build/types/viewers/SimpleViewerContext.d.ts +0 -6
- package/.build/types/viewers/SimpleViewerContext.hooks.d.ts +0 -19
- package/.build/types/viewers/SimpleViewerContext.types.d.ts +0 -46
- package/.build/types/viewers/SingleCanvasContext.d.ts +0 -1
- package/dist/bundle/cjs/index.js +0 -49
- package/dist/bundle/cjs/index.js.map +0 -1
- package/dist/bundle/esm/index.mjs +0 -3319
- package/dist/bundle/esm/index.mjs.map +0 -1
- package/dist/canvas-panel/cjs/canvas-panel.js +0 -47
- package/dist/canvas-panel/cjs/canvas-panel.js.map +0 -1
- package/dist/canvas-panel/esm/canvas-panel.mjs +0 -1858
- package/dist/canvas-panel/esm/canvas-panel.mjs.map +0 -1
- package/dist/index.umd.js +0 -393
- package/dist/index.umd.js.map +0 -1
- package/dist/react17/cjs/index.js +0 -49
- package/dist/react17/cjs/index.js.map +0 -1
- package/dist/react17/esm/index.mjs +0 -3319
- package/dist/react17/esm/index.mjs.map +0 -1
- package/dist/utils/cjs/utils.js +0 -2
- package/dist/utils/cjs/utils.js.map +0 -1
- package/dist/utils/esm/utils.mjs +0 -238
- package/dist/utils/esm/utils.mjs.map +0 -1
package/dist/bundle.d.ts
ADDED
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, FC, RefObject, ForwardRefExoticComponent, RefAttributes, FunctionComponent } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { AtlasProps, BoxStyle, ViewerMode, Preset } from '@atlas-viewer/atlas';
|
|
5
|
+
import { AnnotationPage, ImageService, ExternalWebResource, InternationalString, Reference, ImageSize, AuthProbeService2, Auth2LocationResource, Auth2SubstituteResource, AuthAccessService2, AuthAccessTokenService2, AuthAccessToken2, SearchServiceQueryParams, SearchServiceSearchResponse, SearchService as SearchService$1, SearchServiceAutocomplete, ContentResource, W3CAnnotationTarget, PointSelector, Annotation } from '@iiif/presentation-3';
|
|
6
|
+
import { AnnotationPageNormalized, CanvasNormalized, AnnotationNormalized, CollectionNormalized, ManifestNormalized, RangeNormalized } from '@iiif/presentation-3-normalized';
|
|
7
|
+
import * as _iiif_helpers from '@iiif/helpers';
|
|
8
|
+
import { ChoiceDescription, Paintables, SupportedTarget, BoxSelector as BoxSelector$1, TemporalBoxSelector as TemporalBoxSelector$1 } from '@iiif/helpers';
|
|
9
|
+
import { BoxSelector, TemporalBoxSelector, TemporalSelector } from '@iiif/helpers/annotation-targets';
|
|
10
|
+
export * from '@iiif/helpers/annotation-targets';
|
|
11
|
+
import { ImageCandidate, RegionParameter, RotationParameter, SizeParameter, ImageServiceLoader, ImageCandidateRequest } from '@atlas-viewer/iiif-image-api';
|
|
12
|
+
import { Vault, VaultOptions, NormalizedEntity, IIIFStore } from '@iiif/helpers/vault';
|
|
13
|
+
import * as zustand_vanilla from 'zustand/vanilla';
|
|
14
|
+
import { StoreApi } from 'zustand/vanilla';
|
|
15
|
+
import * as zustand from 'zustand';
|
|
16
|
+
import * as _iiif_helpers_painting_annotations from '@iiif/helpers/painting-annotations';
|
|
17
|
+
import { Paintables as Paintables$1 } from '@iiif/helpers/painting-annotations';
|
|
18
|
+
import { VaultZustandStore } from '@iiif/helpers/vault/store';
|
|
19
|
+
import * as _iiif_helpers_styles from '@iiif/helpers/styles';
|
|
20
|
+
|
|
21
|
+
declare function Viewer({ children, errorFallback, outerContainerProps, worldScale: _worldScale, ...props }: AtlasProps & {
|
|
22
|
+
height?: number | string;
|
|
23
|
+
width?: number | string;
|
|
24
|
+
resizeHash?: number;
|
|
25
|
+
containerProps?: any;
|
|
26
|
+
outerContainerProps?: any;
|
|
27
|
+
aspectRatio?: number;
|
|
28
|
+
errorFallback?: any;
|
|
29
|
+
worldScale?: number;
|
|
30
|
+
} & {
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare const RenderAnnotation: FC<{
|
|
35
|
+
id: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
style?: BoxStyle;
|
|
38
|
+
interactive?: boolean;
|
|
39
|
+
}>;
|
|
40
|
+
|
|
41
|
+
declare const RenderAnnotationPage: FC<{
|
|
42
|
+
page: AnnotationPage | AnnotationPageNormalized;
|
|
43
|
+
className?: string;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
type ImageWithOptionalService = {
|
|
47
|
+
id: string;
|
|
48
|
+
annotationId: string;
|
|
49
|
+
type: 'Image';
|
|
50
|
+
service?: ImageService;
|
|
51
|
+
width?: number;
|
|
52
|
+
height?: number;
|
|
53
|
+
sizes?: Array<{
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
}>;
|
|
57
|
+
target: BoxSelector | TemporalBoxSelector;
|
|
58
|
+
selector?: BoxSelector;
|
|
59
|
+
};
|
|
60
|
+
type SingleAudio = {
|
|
61
|
+
type: 'Sound';
|
|
62
|
+
annotationId: string;
|
|
63
|
+
url: string;
|
|
64
|
+
format: string;
|
|
65
|
+
duration: number;
|
|
66
|
+
target: TemporalSelector;
|
|
67
|
+
/**
|
|
68
|
+
* Which part of this audio should be used (cropping).
|
|
69
|
+
*/
|
|
70
|
+
selector: TemporalSelector;
|
|
71
|
+
};
|
|
72
|
+
type SingleYouTubeVideo = {
|
|
73
|
+
type: 'VideoYouTube';
|
|
74
|
+
annotationId: string;
|
|
75
|
+
url: string;
|
|
76
|
+
youTubeId: string;
|
|
77
|
+
duration: number;
|
|
78
|
+
target: TemporalSelector | TemporalBoxSelector;
|
|
79
|
+
selector: TemporalSelector | TemporalBoxSelector;
|
|
80
|
+
};
|
|
81
|
+
type SingleVideo = {
|
|
82
|
+
type: 'Video';
|
|
83
|
+
annotationId: string;
|
|
84
|
+
url: string;
|
|
85
|
+
format: string;
|
|
86
|
+
duration: number;
|
|
87
|
+
/**
|
|
88
|
+
* Where on the canvas should this section of video be painted.
|
|
89
|
+
*/
|
|
90
|
+
target: TemporalSelector | TemporalBoxSelector;
|
|
91
|
+
/**
|
|
92
|
+
* Which part of this video should be painted.
|
|
93
|
+
*/
|
|
94
|
+
selector: TemporalSelector | TemporalBoxSelector;
|
|
95
|
+
};
|
|
96
|
+
type AudioSequence = {
|
|
97
|
+
type: 'SoundSequence';
|
|
98
|
+
items: SingleAudio[];
|
|
99
|
+
};
|
|
100
|
+
type VideoSequence = {
|
|
101
|
+
type: 'VideoSequence';
|
|
102
|
+
items: SingleVideo[];
|
|
103
|
+
};
|
|
104
|
+
type AnnotationPageDescription = {
|
|
105
|
+
pages: AnnotationPageNormalized[];
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
type ImageServiceLoaderType = (imageService: any | undefined, { height, width }: {
|
|
109
|
+
height: number;
|
|
110
|
+
width: number;
|
|
111
|
+
}) => ImageService | undefined;
|
|
112
|
+
declare function useLoadImageService(): readonly [ImageServiceLoaderType, Record<string, string>];
|
|
113
|
+
|
|
114
|
+
type SingleImageStrategy = {
|
|
115
|
+
type: 'images';
|
|
116
|
+
image: ImageWithOptionalService;
|
|
117
|
+
images: Array<ImageWithOptionalService>;
|
|
118
|
+
choice?: ChoiceDescription;
|
|
119
|
+
annotations?: AnnotationPageDescription;
|
|
120
|
+
};
|
|
121
|
+
declare function getImageStrategy(canvas: CanvasNormalized, paintables: Paintables, loadImageService: ImageServiceLoaderType): RenderingStrategy;
|
|
122
|
+
|
|
123
|
+
type Single3DModelStrategy = {
|
|
124
|
+
type: '3d-model';
|
|
125
|
+
model: ExternalWebResource;
|
|
126
|
+
choice?: ChoiceDescription;
|
|
127
|
+
annotations?: AnnotationPageDescription;
|
|
128
|
+
};
|
|
129
|
+
declare function get3dStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
130
|
+
|
|
131
|
+
type TextualContentStrategy = {
|
|
132
|
+
type: 'textual-content';
|
|
133
|
+
items: {
|
|
134
|
+
annotationId: string;
|
|
135
|
+
text: InternationalString;
|
|
136
|
+
target: SupportedTarget | null;
|
|
137
|
+
}[];
|
|
138
|
+
choice?: ChoiceDescription;
|
|
139
|
+
annotations?: AnnotationPageDescription;
|
|
140
|
+
};
|
|
141
|
+
declare function getTextualContentStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
142
|
+
|
|
143
|
+
type MediaStrategy = {
|
|
144
|
+
type: 'media';
|
|
145
|
+
media: SingleAudio | SingleVideo | AudioSequence | VideoSequence | SingleYouTubeVideo;
|
|
146
|
+
choice?: ChoiceDescription;
|
|
147
|
+
annotations?: AnnotationPageDescription;
|
|
148
|
+
};
|
|
149
|
+
type ComplexTimelineStrategy = {
|
|
150
|
+
type: 'complex-timeline';
|
|
151
|
+
items: Array<ImageWithOptionalService | SingleAudio | SingleVideo>;
|
|
152
|
+
choice?: ChoiceDescription;
|
|
153
|
+
annotations?: AnnotationPageDescription;
|
|
154
|
+
};
|
|
155
|
+
type EmptyStrategy = {
|
|
156
|
+
type: 'empty';
|
|
157
|
+
image: null;
|
|
158
|
+
images: [];
|
|
159
|
+
height: number;
|
|
160
|
+
width: number;
|
|
161
|
+
annotations?: AnnotationPageDescription;
|
|
162
|
+
};
|
|
163
|
+
type UnknownStrategy = {
|
|
164
|
+
type: 'unknown';
|
|
165
|
+
reason?: string;
|
|
166
|
+
annotations?: AnnotationPageDescription;
|
|
167
|
+
};
|
|
168
|
+
type RenderingStrategy = SingleImageStrategy | MediaStrategy | ComplexTimelineStrategy | Single3DModelStrategy | TextualContentStrategy | UnknownStrategy | EmptyStrategy;
|
|
169
|
+
|
|
170
|
+
type StrategyActions = {
|
|
171
|
+
makeChoice: (id: string, options?: {
|
|
172
|
+
deselectOthers?: boolean;
|
|
173
|
+
deselect?: boolean;
|
|
174
|
+
}) => void;
|
|
175
|
+
};
|
|
176
|
+
type UseRenderingStrategy = [RenderingStrategy, StrategyActions];
|
|
177
|
+
type UseRenderingStrategyOptions = {
|
|
178
|
+
strategies?: Array<RenderingStrategy['type']>;
|
|
179
|
+
annotationPageManagerId?: string;
|
|
180
|
+
enableSingleAnnotation?: boolean;
|
|
181
|
+
defaultChoices?: string[];
|
|
182
|
+
};
|
|
183
|
+
declare function useRenderingStrategy(options?: UseRenderingStrategyOptions): UseRenderingStrategy;
|
|
184
|
+
|
|
185
|
+
type CanvasProps = {
|
|
186
|
+
x?: number;
|
|
187
|
+
y?: number;
|
|
188
|
+
onCreated?: any;
|
|
189
|
+
onChoiceChange?: (choice?: ChoiceDescription) => void;
|
|
190
|
+
registerActions?: (actions: StrategyActions) => void;
|
|
191
|
+
defaultChoices?: Array<{
|
|
192
|
+
id: string;
|
|
193
|
+
opacity?: number;
|
|
194
|
+
}>;
|
|
195
|
+
isStatic?: boolean;
|
|
196
|
+
keepCanvasScale?: boolean;
|
|
197
|
+
children?: ReactNode;
|
|
198
|
+
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
199
|
+
viewControlsDeps?: any[];
|
|
200
|
+
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
201
|
+
mediaControlsDeps?: any[];
|
|
202
|
+
strategies?: Array<RenderingStrategy['type']>;
|
|
203
|
+
backgroundStyle?: BoxStyle;
|
|
204
|
+
alwaysShowBackground?: boolean;
|
|
205
|
+
enableSizes?: boolean;
|
|
206
|
+
enableYouTube?: boolean;
|
|
207
|
+
ignoreSize?: boolean;
|
|
208
|
+
throwOnUnknown?: boolean;
|
|
209
|
+
onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
|
|
210
|
+
};
|
|
211
|
+
declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, viewControlsDeps, mediaControlsDeps, strategies, throwOnUnknown, backgroundStyle, alwaysShowBackground, keepCanvasScale, enableSizes, enableYouTube, onClickPaintingAnnotation, children, }: CanvasProps): react_jsx_runtime.JSX.Element | null;
|
|
212
|
+
|
|
213
|
+
declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, }: {
|
|
214
|
+
id: string;
|
|
215
|
+
image: ImageWithOptionalService;
|
|
216
|
+
thumbnail?: ImageCandidate;
|
|
217
|
+
isStatic?: boolean;
|
|
218
|
+
enableSizes?: boolean;
|
|
219
|
+
selector?: BoxSelector$1;
|
|
220
|
+
x?: number;
|
|
221
|
+
y?: number;
|
|
222
|
+
children?: ReactNode;
|
|
223
|
+
onClick?: (e: any) => void;
|
|
224
|
+
}): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare function CanvasBackground({ style }: {
|
|
227
|
+
style?: BoxStyle;
|
|
228
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
229
|
+
|
|
230
|
+
type SimpleViewerContext = {
|
|
231
|
+
items: Reference<'Canvas'>[];
|
|
232
|
+
sequence: number[][];
|
|
233
|
+
hasNext: boolean;
|
|
234
|
+
hasPrevious: boolean;
|
|
235
|
+
setSequenceIndex: (newId: number) => void;
|
|
236
|
+
setCurrentCanvasId: (newId: string) => void;
|
|
237
|
+
setCurrentCanvasIndex: (newId: number) => void;
|
|
238
|
+
currentSequenceIndex: number;
|
|
239
|
+
nextCanvas: () => void;
|
|
240
|
+
previousCanvas: () => void;
|
|
241
|
+
};
|
|
242
|
+
type SimpleViewerProps = {
|
|
243
|
+
vault?: Vault;
|
|
244
|
+
manifest: string;
|
|
245
|
+
pagingEnabled?: boolean;
|
|
246
|
+
children: ReactNode;
|
|
247
|
+
startCanvas?: string;
|
|
248
|
+
rangeId?: string;
|
|
249
|
+
};
|
|
250
|
+
type SimpleViewerReducerState = {
|
|
251
|
+
sequence: number[][];
|
|
252
|
+
availableCanvases: Reference<'Canvas'>[];
|
|
253
|
+
visibleCanvases: Reference<'Canvas'>[];
|
|
254
|
+
currentCanvas: string | null;
|
|
255
|
+
isPaged: boolean;
|
|
256
|
+
rangeId: string | null;
|
|
257
|
+
};
|
|
258
|
+
interface SimpleViewerActions {
|
|
259
|
+
setCurrentCanvasId(newId: string): void;
|
|
260
|
+
setCurrentCanvasIndex(newId: number): void;
|
|
261
|
+
nextCanvas(): void;
|
|
262
|
+
previousCanvas(): void;
|
|
263
|
+
setCurrentRange(newId: string): void;
|
|
264
|
+
clearRange(): void;
|
|
265
|
+
setPagingEnabled(isEnabled: boolean): void;
|
|
266
|
+
}
|
|
267
|
+
type SimpleViewerActionsType = {
|
|
268
|
+
[T in keyof SimpleViewerActions]: {
|
|
269
|
+
type: T;
|
|
270
|
+
payload: Parameters<SimpleViewerActions[T]>[0];
|
|
271
|
+
};
|
|
272
|
+
}[keyof SimpleViewerActions];
|
|
273
|
+
|
|
274
|
+
declare function AudioHTML({ media, children }: {
|
|
275
|
+
media: SingleAudio;
|
|
276
|
+
children: ReactNode;
|
|
277
|
+
}): react_jsx_runtime.JSX.Element;
|
|
278
|
+
declare function Audio({ media, mediaControlsDeps, children, }: {
|
|
279
|
+
media: SingleAudio;
|
|
280
|
+
mediaControlsDeps?: any[];
|
|
281
|
+
children: ReactNode;
|
|
282
|
+
}): null;
|
|
283
|
+
|
|
284
|
+
declare function VideoHTML({ element, media, playPause, }: {
|
|
285
|
+
element: RefObject<any>;
|
|
286
|
+
media: SingleVideo;
|
|
287
|
+
playPause: () => void;
|
|
288
|
+
}): react_jsx_runtime.JSX.Element;
|
|
289
|
+
declare function Video({ media, mediaControlsDeps, children, }: {
|
|
290
|
+
media: SingleVideo;
|
|
291
|
+
mediaControlsDeps?: any[];
|
|
292
|
+
children: ReactNode;
|
|
293
|
+
}): null;
|
|
294
|
+
|
|
295
|
+
declare function ModelHTML({ model }: {
|
|
296
|
+
model: any;
|
|
297
|
+
}): react_jsx_runtime.JSX.Element;
|
|
298
|
+
declare function Model({ model, name }: {
|
|
299
|
+
model: any;
|
|
300
|
+
name?: string;
|
|
301
|
+
}): null;
|
|
302
|
+
|
|
303
|
+
interface CanvasPanelProps {
|
|
304
|
+
manifest: string;
|
|
305
|
+
startCanvas?: string;
|
|
306
|
+
rangeId?: string;
|
|
307
|
+
pagingEnabled?: boolean;
|
|
308
|
+
header?: ReactNode;
|
|
309
|
+
children?: ReactNode;
|
|
310
|
+
mode?: ViewerMode;
|
|
311
|
+
reuseAtlas?: boolean;
|
|
312
|
+
height?: number;
|
|
313
|
+
spacing?: number;
|
|
314
|
+
components?: {
|
|
315
|
+
ViewerControls?: FC;
|
|
316
|
+
MediaControls?: FC;
|
|
317
|
+
};
|
|
318
|
+
canvasProps?: Omit<Partial<CanvasProps>, 'x'>;
|
|
319
|
+
annotations?: ReactNode;
|
|
320
|
+
}
|
|
321
|
+
type CanvasPanelType = ForwardRefExoticComponent<CanvasPanelProps & RefAttributes<SimpleViewerContext>> & {
|
|
322
|
+
RenderImage: typeof RenderImage;
|
|
323
|
+
RenderCanvas: typeof RenderCanvas;
|
|
324
|
+
RenderAnnotationPage: typeof RenderAnnotationPage;
|
|
325
|
+
RenderAnnotation: typeof RenderAnnotation;
|
|
326
|
+
Viewer: typeof Viewer;
|
|
327
|
+
CanvasBackground: typeof CanvasBackground;
|
|
328
|
+
Audio: typeof Audio;
|
|
329
|
+
Video: typeof Video;
|
|
330
|
+
Model: typeof Model;
|
|
331
|
+
AudioHTML: typeof AudioHTML;
|
|
332
|
+
VideoHTML: typeof VideoHTML;
|
|
333
|
+
ModelHTML: typeof ModelHTML;
|
|
334
|
+
};
|
|
335
|
+
declare const CanvasPanel: CanvasPanelType;
|
|
336
|
+
|
|
337
|
+
declare const CanvasAnnotations: React$1.ForwardRefExoticComponent<{
|
|
338
|
+
canvasId?: string | undefined;
|
|
339
|
+
} & React$1.RefAttributes<{
|
|
340
|
+
availablePageIds: string[];
|
|
341
|
+
enabledPageIds: string[];
|
|
342
|
+
setPageEnabled: (id: string, opt?: {
|
|
343
|
+
deselectOthers?: boolean | undefined;
|
|
344
|
+
}) => void;
|
|
345
|
+
setPageDisabled: (deselectId: string) => void;
|
|
346
|
+
}>>;
|
|
347
|
+
|
|
348
|
+
type FacetConfig = {
|
|
349
|
+
id: string;
|
|
350
|
+
label: InternationalString;
|
|
351
|
+
keys: string[];
|
|
352
|
+
values?: FacetConfigValue[];
|
|
353
|
+
};
|
|
354
|
+
type FacetConfigValue = {
|
|
355
|
+
id: string;
|
|
356
|
+
label: InternationalString;
|
|
357
|
+
values: string[];
|
|
358
|
+
key: string;
|
|
359
|
+
};
|
|
360
|
+
interface MetadataProps {
|
|
361
|
+
config?: FacetConfig[];
|
|
362
|
+
metadata?: Array<{
|
|
363
|
+
label: InternationalString;
|
|
364
|
+
value: InternationalString;
|
|
365
|
+
} | null>;
|
|
366
|
+
labelWidth?: number;
|
|
367
|
+
allowHtml?: boolean;
|
|
368
|
+
showEmptyMessage?: boolean;
|
|
369
|
+
separator?: string;
|
|
370
|
+
classes?: {
|
|
371
|
+
container?: string;
|
|
372
|
+
row?: string;
|
|
373
|
+
label?: string;
|
|
374
|
+
value?: string;
|
|
375
|
+
empty?: string;
|
|
376
|
+
};
|
|
377
|
+
emptyMessage?: string;
|
|
378
|
+
emptyValueFallback?: string;
|
|
379
|
+
emptyLabelFallback?: string;
|
|
380
|
+
tableHeader?: React.ReactNode;
|
|
381
|
+
tableFooter?: React.ReactNode;
|
|
382
|
+
emptyFallback?: React.ReactNode;
|
|
383
|
+
}
|
|
384
|
+
declare function Metadata({ metadata, config, labelWidth, showEmptyMessage, allowHtml, emptyFallback, classes, emptyMessage, emptyValueFallback, emptyLabelFallback, separator, tableFooter, tableHeader, }: MetadataProps): react_jsx_runtime.JSX.Element;
|
|
385
|
+
|
|
386
|
+
type CombinedMetadataProps = Omit<MetadataProps, 'metadata'>;
|
|
387
|
+
declare function CombinedMetadata(props: CombinedMetadataProps): react_jsx_runtime.JSX.Element;
|
|
388
|
+
|
|
389
|
+
interface ImageProps {
|
|
390
|
+
src: string | ImageService;
|
|
391
|
+
alt?: string;
|
|
392
|
+
size?: Partial<ImageSize>;
|
|
393
|
+
region?: RegionParameter;
|
|
394
|
+
className?: string;
|
|
395
|
+
style?: React.CSSProperties;
|
|
396
|
+
fetchImageService?: boolean;
|
|
397
|
+
quality?: string;
|
|
398
|
+
rotation?: number | RotationParameter;
|
|
399
|
+
format?: string;
|
|
400
|
+
}
|
|
401
|
+
declare function Image(props: ImageProps): react_jsx_runtime.JSX.Element | null;
|
|
402
|
+
|
|
403
|
+
type ManifestMetadataProps = Omit<MetadataProps, 'metadata'>;
|
|
404
|
+
declare function ManifestMetadata(props: ManifestMetadataProps): react_jsx_runtime.JSX.Element;
|
|
405
|
+
|
|
406
|
+
interface SequenceThumbnailsProps {
|
|
407
|
+
flat?: boolean;
|
|
408
|
+
size?: {
|
|
409
|
+
width: number;
|
|
410
|
+
height?: number;
|
|
411
|
+
};
|
|
412
|
+
classes?: {
|
|
413
|
+
container?: string;
|
|
414
|
+
row?: string;
|
|
415
|
+
item?: string;
|
|
416
|
+
figure?: string;
|
|
417
|
+
imageWrapper?: string;
|
|
418
|
+
img?: string;
|
|
419
|
+
label?: string;
|
|
420
|
+
selected?: {
|
|
421
|
+
row?: string;
|
|
422
|
+
item?: string;
|
|
423
|
+
figure?: string;
|
|
424
|
+
img?: string;
|
|
425
|
+
label?: string;
|
|
426
|
+
imageWrapper?: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
figure?: boolean;
|
|
430
|
+
showLabel?: boolean;
|
|
431
|
+
fallback?: React.ReactNode;
|
|
432
|
+
}
|
|
433
|
+
declare function SequenceThumbnails({ flat, size, classes, showLabel, figure, fallback }: SequenceThumbnailsProps): react_jsx_runtime.JSX.Element;
|
|
434
|
+
|
|
435
|
+
interface SingleCanvasThumbnailProps {
|
|
436
|
+
canvasId?: string;
|
|
437
|
+
size?: Partial<SizeParameter>;
|
|
438
|
+
visible?: boolean;
|
|
439
|
+
alt?: string;
|
|
440
|
+
dereference?: boolean;
|
|
441
|
+
figure?: boolean;
|
|
442
|
+
showLabel?: boolean;
|
|
443
|
+
classes?: {
|
|
444
|
+
figure?: string;
|
|
445
|
+
img?: string;
|
|
446
|
+
label?: string;
|
|
447
|
+
imageWrapper?: string;
|
|
448
|
+
};
|
|
449
|
+
placeholder?: React.ReactNode;
|
|
450
|
+
fallback?: React.ReactNode;
|
|
451
|
+
}
|
|
452
|
+
declare function SingleCanvasThumbnail(props: SingleCanvasThumbnailProps): react_jsx_runtime.JSX.Element;
|
|
453
|
+
|
|
454
|
+
declare function AnnotationContext({ annotation, children }: {
|
|
455
|
+
annotation: string;
|
|
456
|
+
children: ReactNode;
|
|
457
|
+
}): react_jsx_runtime.JSX.Element;
|
|
458
|
+
|
|
459
|
+
declare function AnnotationPageContext({ annotationPage, children }: {
|
|
460
|
+
annotationPage: string;
|
|
461
|
+
children: ReactNode;
|
|
462
|
+
}): react_jsx_runtime.JSX.Element;
|
|
463
|
+
|
|
464
|
+
declare function hasAuth(resource: any): boolean;
|
|
465
|
+
interface ProbeStore {
|
|
466
|
+
service?: AuthProbeService2;
|
|
467
|
+
status: 'unknown' | 'probing' | 'error' | 'success';
|
|
468
|
+
shouldRedirect: boolean;
|
|
469
|
+
redirectResource: Auth2LocationResource | null;
|
|
470
|
+
shouldSubstitute: boolean;
|
|
471
|
+
substituteResource: Auth2SubstituteResource | null;
|
|
472
|
+
error: string | null;
|
|
473
|
+
errorHeading: InternationalString | null;
|
|
474
|
+
errorNote: InternationalString | null;
|
|
475
|
+
shouldDisplayResource: boolean;
|
|
476
|
+
token: string | null;
|
|
477
|
+
probe: () => Promise<void>;
|
|
478
|
+
setToken: (token: string) => void;
|
|
479
|
+
}
|
|
480
|
+
interface AuthContextState {
|
|
481
|
+
currentAuth: number;
|
|
482
|
+
authItems: AuthAccessState[];
|
|
483
|
+
}
|
|
484
|
+
interface AuthContextCurrentActions {
|
|
485
|
+
login(): void;
|
|
486
|
+
logout(): void;
|
|
487
|
+
nextAuth(): void;
|
|
488
|
+
previousAuth(): void;
|
|
489
|
+
setAuth(index: number): void;
|
|
490
|
+
}
|
|
491
|
+
interface AuthContextActions {
|
|
492
|
+
addService(service: AuthAccessService2, probeId: string): void;
|
|
493
|
+
removeService(service: AuthAccessService2, probeId: string): void;
|
|
494
|
+
}
|
|
495
|
+
interface AuthAccessState {
|
|
496
|
+
id: string;
|
|
497
|
+
type: 'external' | 'kiosk' | 'active';
|
|
498
|
+
service: AuthAccessService2;
|
|
499
|
+
probeId: string;
|
|
500
|
+
isPending: boolean;
|
|
501
|
+
isLoggedIn: boolean;
|
|
502
|
+
canAuthenticate: boolean;
|
|
503
|
+
instances: number;
|
|
504
|
+
error?: string;
|
|
505
|
+
session: null | {
|
|
506
|
+
token: string;
|
|
507
|
+
expires: number;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
declare const createAuthStateStore: () => zustand_vanilla.StoreApi<AuthContextCurrentActions & AuthContextState & AuthContextActions>;
|
|
511
|
+
declare const createProbe: (service?: AuthProbeService2, token?: string) => zustand_vanilla.StoreApi<ProbeStore>;
|
|
512
|
+
declare function authDetailsForResource(resource: any): {
|
|
513
|
+
hasAuth?: boolean | undefined;
|
|
514
|
+
services: {
|
|
515
|
+
probe?: AuthProbeService2;
|
|
516
|
+
access?: AuthAccessService2;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
declare function makeAccessTokenRequest<T extends AuthAccessTokenService2>(service: T, { strict }?: {
|
|
520
|
+
strict?: boolean;
|
|
521
|
+
}): Promise<AuthAccessToken2>;
|
|
522
|
+
declare function makeAccessServiceRequest<T extends AuthAccessService2>(service: T): Promise<void>;
|
|
523
|
+
|
|
524
|
+
interface AuthState {
|
|
525
|
+
id: string;
|
|
526
|
+
type: 'external' | 'kiosk' | 'active';
|
|
527
|
+
service: AuthAccessService2;
|
|
528
|
+
probeId: string;
|
|
529
|
+
isPending: boolean;
|
|
530
|
+
isLoggedIn: boolean;
|
|
531
|
+
canAuthenticate: boolean;
|
|
532
|
+
instances: number;
|
|
533
|
+
error?: string;
|
|
534
|
+
session: null | {
|
|
535
|
+
token: string;
|
|
536
|
+
expires: number;
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
declare const AuthRContext: React$1.Context<StoreApi<AuthContextState & AuthContextCurrentActions & AuthContextActions> | null>;
|
|
540
|
+
declare const AuthReactContext: React$1.Context<(AuthContextState & AuthContextCurrentActions) | null>;
|
|
541
|
+
declare const AuthReactContextActions: React$1.Context<AuthContextActions | null>;
|
|
542
|
+
declare function AuthProvider({ children }: {
|
|
543
|
+
children: ReactNode;
|
|
544
|
+
}): react_jsx_runtime.JSX.Element;
|
|
545
|
+
declare function AuthProvider_Old({ children }: {
|
|
546
|
+
children: ReactNode;
|
|
547
|
+
}): react_jsx_runtime.JSX.Element;
|
|
548
|
+
declare function useAuthStore(): StoreApi<AuthContextState & AuthContextCurrentActions & AuthContextActions>;
|
|
549
|
+
declare function useAuthActions(): {
|
|
550
|
+
login: () => void;
|
|
551
|
+
logout: () => void;
|
|
552
|
+
nextAuth: () => void;
|
|
553
|
+
previousAuth: () => void;
|
|
554
|
+
setAuth: (index: number) => void;
|
|
555
|
+
addService: (service: AuthAccessService2, probeId: string) => void;
|
|
556
|
+
removeService: (service: AuthAccessService2, probeId: string) => void;
|
|
557
|
+
};
|
|
558
|
+
declare function useCurrentAuth(): AuthContextState & AuthContextCurrentActions & AuthContextActions;
|
|
559
|
+
declare function useAuthService(id: string): AuthAccessState | undefined;
|
|
560
|
+
declare function useAuthTokens(id?: string): string | undefined;
|
|
561
|
+
declare function useAuthToken(id: string): string | null;
|
|
562
|
+
declare function useCurrentAuth_old(): AuthContextState & AuthContextCurrentActions;
|
|
563
|
+
declare function useAuthService_old(id: string): AuthState | null;
|
|
564
|
+
declare function useAuthTokens_old(id?: string): string | null;
|
|
565
|
+
declare function useAuthToken_old(id?: string): string | null;
|
|
566
|
+
declare function useAuthActions_old(): AuthContextActions | null;
|
|
567
|
+
interface AuthProps<T, Extra> {
|
|
568
|
+
resource: T;
|
|
569
|
+
extra?: Extra;
|
|
570
|
+
children: (service: T) => ReactNode;
|
|
571
|
+
fallbackComponent?: FunctionComponent<any> | null;
|
|
572
|
+
loadingComponent?: FunctionComponent<any> | null;
|
|
573
|
+
errorComponent?: FunctionComponent<{
|
|
574
|
+
resource: T;
|
|
575
|
+
error: string;
|
|
576
|
+
heading: InternationalString | null;
|
|
577
|
+
note: InternationalString | null;
|
|
578
|
+
extra: Extra | undefined;
|
|
579
|
+
}> | null;
|
|
580
|
+
}
|
|
581
|
+
declare function Auth<Element, Extra = any>(props: AuthProps<Element, Extra>): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
582
|
+
|
|
583
|
+
declare function CanvasContext({ canvas, children }: {
|
|
584
|
+
canvas: string;
|
|
585
|
+
children: ReactNode;
|
|
586
|
+
}): react_jsx_runtime.JSX.Element;
|
|
587
|
+
|
|
588
|
+
declare function CollectionContext({ collection, children }: {
|
|
589
|
+
collection: string;
|
|
590
|
+
children: ReactNode;
|
|
591
|
+
}): react_jsx_runtime.JSX.Element;
|
|
592
|
+
|
|
593
|
+
declare function ManifestContext({ manifest, children }: {
|
|
594
|
+
manifest: string;
|
|
595
|
+
children: ReactNode;
|
|
596
|
+
}): react_jsx_runtime.JSX.Element;
|
|
597
|
+
|
|
598
|
+
type MediaPlayerState = {
|
|
599
|
+
isPlaying: boolean;
|
|
600
|
+
isMuted: boolean;
|
|
601
|
+
playRequested: boolean;
|
|
602
|
+
volume: number;
|
|
603
|
+
isFinished: boolean;
|
|
604
|
+
duration: number;
|
|
605
|
+
};
|
|
606
|
+
type MediaPlayerActions = {
|
|
607
|
+
play(): void;
|
|
608
|
+
pause(): void;
|
|
609
|
+
playPause(): void;
|
|
610
|
+
mute(): void;
|
|
611
|
+
unmute(): void;
|
|
612
|
+
toggleMute(): void;
|
|
613
|
+
setVolume(volume: number): void;
|
|
614
|
+
setDurationPercent(percent: number): void;
|
|
615
|
+
setTime(time: number): void;
|
|
616
|
+
};
|
|
617
|
+
declare function formatTime(time: number): string;
|
|
618
|
+
declare function useSimpleMediaPlayer(props: {
|
|
619
|
+
duration: number;
|
|
620
|
+
}): readonly [
|
|
621
|
+
{
|
|
622
|
+
element: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
623
|
+
currentTime: RefObject<HTMLDivElement>;
|
|
624
|
+
progress: RefObject<HTMLDivElement>;
|
|
625
|
+
},
|
|
626
|
+
MediaPlayerState,
|
|
627
|
+
MediaPlayerActions
|
|
628
|
+
];
|
|
629
|
+
|
|
630
|
+
declare function useMediaState(): MediaPlayerState;
|
|
631
|
+
declare function useMediaActions(): MediaPlayerActions;
|
|
632
|
+
declare function useMediaElements(): {
|
|
633
|
+
element: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
634
|
+
currentTime: RefObject<HTMLDivElement>;
|
|
635
|
+
progress: RefObject<HTMLDivElement>;
|
|
636
|
+
};
|
|
637
|
+
declare function MediaPlayerProvider({ actions, state, children, currentTime, progress, element, }: {
|
|
638
|
+
actions: MediaPlayerActions;
|
|
639
|
+
state: MediaPlayerState;
|
|
640
|
+
children: ReactNode;
|
|
641
|
+
currentTime: RefObject<HTMLDivElement>;
|
|
642
|
+
progress: RefObject<HTMLDivElement>;
|
|
643
|
+
element: RefObject<HTMLAudioElement | HTMLVideoElement>;
|
|
644
|
+
}): react_jsx_runtime.JSX.Element;
|
|
645
|
+
|
|
646
|
+
declare function RangeContext({ range, children }: {
|
|
647
|
+
range: string;
|
|
648
|
+
children: ReactNode;
|
|
649
|
+
}): react_jsx_runtime.JSX.Element;
|
|
650
|
+
|
|
651
|
+
type ResourceContextType = {
|
|
652
|
+
collection?: string;
|
|
653
|
+
manifest?: string;
|
|
654
|
+
range?: string;
|
|
655
|
+
canvas?: string;
|
|
656
|
+
annotation?: string;
|
|
657
|
+
annotationPage?: string;
|
|
658
|
+
};
|
|
659
|
+
declare const ResourceReactContext: React__default.Context<ResourceContextType>;
|
|
660
|
+
declare const useResourceContext: () => ResourceContextType;
|
|
661
|
+
declare function ResourceProvider({ value, children }: {
|
|
662
|
+
value: ResourceContextType;
|
|
663
|
+
children: ReactNode;
|
|
664
|
+
}): react_jsx_runtime.JSX.Element;
|
|
665
|
+
|
|
666
|
+
declare const ReactVaultContext: React__default.Context<{
|
|
667
|
+
vault: Vault | null;
|
|
668
|
+
setVaultInstance: (vault: Vault) => void;
|
|
669
|
+
}>;
|
|
670
|
+
declare function VaultProvider({ vault, vaultOptions, useGlobal, resources, children, }: {
|
|
671
|
+
vault?: Vault;
|
|
672
|
+
useGlobal?: boolean;
|
|
673
|
+
vaultOptions?: VaultOptions;
|
|
674
|
+
resources?: ResourceContextType;
|
|
675
|
+
children: ReactNode;
|
|
676
|
+
}): react_jsx_runtime.JSX.Element;
|
|
677
|
+
|
|
678
|
+
type SearchService = SearchService$1 & {
|
|
679
|
+
service: SearchServiceAutocomplete | SearchServiceAutocomplete[];
|
|
680
|
+
};
|
|
681
|
+
interface Search1Store {
|
|
682
|
+
service: SearchService | undefined;
|
|
683
|
+
lastQuery: SearchServiceQueryParams;
|
|
684
|
+
resources: SearchServiceSearchResponse['resources'];
|
|
685
|
+
loading: boolean;
|
|
686
|
+
error: boolean;
|
|
687
|
+
hasAutocomplete: boolean;
|
|
688
|
+
hasSearch: boolean;
|
|
689
|
+
errorMessage: string;
|
|
690
|
+
highlight: SearchServiceSearchResponse['resources'][number] | null;
|
|
691
|
+
search: (query: SearchServiceQueryParams, options?: {
|
|
692
|
+
headers?: HeadersInit;
|
|
693
|
+
}) => void;
|
|
694
|
+
clearSearch: () => void;
|
|
695
|
+
highlightResult: (id: string) => void;
|
|
696
|
+
nextResult: () => void;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
declare function useContextBridge(): {
|
|
700
|
+
VaultContext: {
|
|
701
|
+
vault: _iiif_helpers.Vault | null;
|
|
702
|
+
setVaultInstance: (vault: _iiif_helpers.Vault) => void;
|
|
703
|
+
};
|
|
704
|
+
ResourceContext: ResourceContextType;
|
|
705
|
+
SimpleViewerReactContext: SimpleViewerContext;
|
|
706
|
+
VisibleCanvasReactContext: string[];
|
|
707
|
+
AuthRContext: zustand.StoreApi<AuthContextState & AuthContextCurrentActions & AuthContextActions> | null;
|
|
708
|
+
SearchReactContext: zustand.StoreApi<Search1Store> | null;
|
|
709
|
+
};
|
|
710
|
+
declare function ContextBridge(props: {
|
|
711
|
+
bridge: ReturnType<typeof useContextBridge>;
|
|
712
|
+
children: ReactNode;
|
|
713
|
+
}): react_jsx_runtime.JSX.Element;
|
|
714
|
+
|
|
715
|
+
declare const VisibleCanvasReactContext: React__default.Context<string[]>;
|
|
716
|
+
declare function useVisibleCanvases(): CanvasNormalized[];
|
|
717
|
+
|
|
718
|
+
declare const ViewerPresetContext: React$1.Context<Preset | null | undefined>;
|
|
719
|
+
declare function useViewerPreset(): Preset | null | undefined;
|
|
720
|
+
|
|
721
|
+
declare const ImageServiceLoaderContext: React__default.Context<ImageServiceLoader>;
|
|
722
|
+
declare function useImageServiceLoader(): ImageServiceLoader;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Parse specific resource.
|
|
726
|
+
*
|
|
727
|
+
* This could be expanded to support pulling out more from the specific resource.
|
|
728
|
+
*
|
|
729
|
+
* @param resource
|
|
730
|
+
*/
|
|
731
|
+
declare function parseSpecificResource(resource: ContentResource): any[];
|
|
732
|
+
declare function getParsedTargetSelector(canvas: CanvasNormalized, target: W3CAnnotationTarget | W3CAnnotationTarget[]): [TemporalBoxSelector$1 | BoxSelector$1 | PointSelector | null, SupportedTarget['source']];
|
|
733
|
+
declare const emptyActions: {
|
|
734
|
+
makeChoice: () => void;
|
|
735
|
+
};
|
|
736
|
+
declare const unknownResponse: UseRenderingStrategy[0];
|
|
737
|
+
declare const unsupportedStrategy: (reason: string) => UseRenderingStrategy[0];
|
|
738
|
+
declare const emptyStrategy: (width: number, height: number) => UseRenderingStrategy[0];
|
|
739
|
+
|
|
740
|
+
declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
741
|
+
|
|
742
|
+
interface GetRenderStrategyOptions {
|
|
743
|
+
canvas: CanvasNormalized | null | undefined;
|
|
744
|
+
paintables: Paintables$1;
|
|
745
|
+
supports: string[];
|
|
746
|
+
loadImageService: ImageServiceLoaderType;
|
|
747
|
+
}
|
|
748
|
+
declare function getRenderingStrategy({ canvas, paintables, supports, loadImageService }: GetRenderStrategyOptions): RenderingStrategy;
|
|
749
|
+
|
|
750
|
+
declare function useAnnotation(options?: {
|
|
751
|
+
id: string;
|
|
752
|
+
}): AnnotationNormalized | undefined;
|
|
753
|
+
declare function useAnnotation<T>(options?: {
|
|
754
|
+
id: string;
|
|
755
|
+
selector: (annotation: AnnotationNormalized) => T;
|
|
756
|
+
}, deps?: any[]): T | undefined;
|
|
757
|
+
|
|
758
|
+
declare function useAnnotationPage(options?: {
|
|
759
|
+
id: string;
|
|
760
|
+
}): AnnotationPageNormalized | undefined;
|
|
761
|
+
declare function useAnnotationPage<T>(options?: {
|
|
762
|
+
id: string;
|
|
763
|
+
selector: (annotation: AnnotationPageNormalized) => T;
|
|
764
|
+
}, deps?: any[]): T | undefined;
|
|
765
|
+
|
|
766
|
+
declare function useAnnotationPageManager(resourceId?: string, options?: {
|
|
767
|
+
all?: boolean;
|
|
768
|
+
}): {
|
|
769
|
+
availablePageIds: string[];
|
|
770
|
+
enabledPageIds: string[];
|
|
771
|
+
setPageEnabled: (id: string, opt?: {
|
|
772
|
+
deselectOthers?: boolean;
|
|
773
|
+
}) => void;
|
|
774
|
+
setPageDisabled: (deselectId: string) => void;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
declare function useAnnotationsAtTime(time: number, options?: {
|
|
778
|
+
canvasId?: string;
|
|
779
|
+
}): AnnotationNormalized[];
|
|
780
|
+
|
|
781
|
+
declare function useCanvas(options?: {
|
|
782
|
+
id: string;
|
|
783
|
+
}): CanvasNormalized | undefined;
|
|
784
|
+
declare function useCanvas<T>(options?: {
|
|
785
|
+
id: string;
|
|
786
|
+
selector: (canvas: CanvasNormalized) => T;
|
|
787
|
+
}, deps?: any[]): T | undefined;
|
|
788
|
+
|
|
789
|
+
declare function useCanvasClock(canvasId?: string, autoplay?: boolean): void;
|
|
790
|
+
|
|
791
|
+
declare function useCanvasSubset(idsOrRefs?: Array<string | Reference>): Reference<'Canvas'>[];
|
|
792
|
+
|
|
793
|
+
declare function useCollection(options: {
|
|
794
|
+
id: string;
|
|
795
|
+
}): CollectionNormalized | undefined;
|
|
796
|
+
declare function useCollection<T>(options: {
|
|
797
|
+
id: string;
|
|
798
|
+
selector: (collection: CollectionNormalized) => T;
|
|
799
|
+
}, deps?: any[]): T | undefined;
|
|
800
|
+
|
|
801
|
+
declare function useDispatch(): VaultZustandStore['dispatch'];
|
|
802
|
+
|
|
803
|
+
type SupportedEvents = 'onClick';
|
|
804
|
+
declare function useEventListener<T>(resource: Reference, name: SupportedEvents, listener: (e: any, resource: T) => void, scope?: string[], deps?: any[]): void;
|
|
805
|
+
|
|
806
|
+
declare function useExistingVault(vault?: Vault): Vault;
|
|
807
|
+
|
|
808
|
+
type ResourceRequestOptions = {
|
|
809
|
+
noCache?: boolean;
|
|
810
|
+
};
|
|
811
|
+
declare function useExternalResource<T extends {
|
|
812
|
+
id: string;
|
|
813
|
+
}>(idOrRef: string | {
|
|
814
|
+
id: string;
|
|
815
|
+
type: string;
|
|
816
|
+
}, { noCache }?: ResourceRequestOptions): {
|
|
817
|
+
id: string;
|
|
818
|
+
requestId: string;
|
|
819
|
+
isLoaded: boolean;
|
|
820
|
+
error: any;
|
|
821
|
+
cached: boolean;
|
|
822
|
+
resource?: T;
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
declare function useExternalCollection(idOrRef: string | {
|
|
826
|
+
id: string;
|
|
827
|
+
type: string;
|
|
828
|
+
}, options?: ResourceRequestOptions): {
|
|
829
|
+
id: string;
|
|
830
|
+
requestId: string;
|
|
831
|
+
isLoaded: boolean;
|
|
832
|
+
cached?: boolean;
|
|
833
|
+
error: any;
|
|
834
|
+
manifest?: CollectionNormalized;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
declare function useExternalManifest(idOrRef: string | {
|
|
838
|
+
id: string;
|
|
839
|
+
type: string;
|
|
840
|
+
}, options?: ResourceRequestOptions): {
|
|
841
|
+
id: string;
|
|
842
|
+
requestId: string;
|
|
843
|
+
isLoaded: boolean;
|
|
844
|
+
cached?: boolean;
|
|
845
|
+
error: any;
|
|
846
|
+
manifest?: ManifestNormalized;
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
declare function useImage(service: ImageService | undefined, data?: {
|
|
850
|
+
size?: Partial<ImageSize>;
|
|
851
|
+
selector?: RegionParameter;
|
|
852
|
+
rotation?: number | RotationParameter;
|
|
853
|
+
format?: string;
|
|
854
|
+
region?: RegionParameter;
|
|
855
|
+
quality?: string;
|
|
856
|
+
}, deps?: any[]): string | null;
|
|
857
|
+
|
|
858
|
+
interface ImageServiceRequestOptions {
|
|
859
|
+
cacheKey?: string;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Returns the First image service on the current canvas.
|
|
863
|
+
*
|
|
864
|
+
* @note It is better to use the hook useRenderingStrategy for rendering.
|
|
865
|
+
*/
|
|
866
|
+
declare function useImageService({ cacheKey }?: ImageServiceRequestOptions): {
|
|
867
|
+
data: ImageService | undefined;
|
|
868
|
+
isFetching: boolean;
|
|
869
|
+
status: 'error' | 'success' | 'loading' | 'idle';
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
declare function useImageTile(): {
|
|
873
|
+
isLoading: boolean;
|
|
874
|
+
tile: {
|
|
875
|
+
id: string | undefined;
|
|
876
|
+
width: number | null | undefined;
|
|
877
|
+
height: number | null | undefined;
|
|
878
|
+
imageService: ImageService;
|
|
879
|
+
thumbnail: undefined;
|
|
880
|
+
} | null;
|
|
881
|
+
};
|
|
882
|
+
|
|
883
|
+
declare function useManifest(options?: {
|
|
884
|
+
id: string;
|
|
885
|
+
}): ManifestNormalized | undefined;
|
|
886
|
+
declare function useManifest<T>(options?: {
|
|
887
|
+
id: string;
|
|
888
|
+
selector: (manifest: ManifestNormalized) => T;
|
|
889
|
+
}, deps?: any[]): T | undefined;
|
|
890
|
+
|
|
891
|
+
declare function usePaintables(options?: {
|
|
892
|
+
defaultChoices?: string[];
|
|
893
|
+
enableSingleAnnotation?: boolean;
|
|
894
|
+
}, deps?: any[]): readonly [_iiif_helpers_painting_annotations.Paintables, {
|
|
895
|
+
makeChoice: (id: string, { deselectOthers, deselect }?: {
|
|
896
|
+
deselectOthers?: boolean;
|
|
897
|
+
deselect?: boolean;
|
|
898
|
+
}) => void;
|
|
899
|
+
}];
|
|
900
|
+
|
|
901
|
+
declare function usePaintingAnnotations(options?: {
|
|
902
|
+
canvasId?: string;
|
|
903
|
+
enableSingleAnnotation?: boolean;
|
|
904
|
+
}): AnnotationNormalized[];
|
|
905
|
+
|
|
906
|
+
declare function useRange(options?: {
|
|
907
|
+
id: string;
|
|
908
|
+
}): RangeNormalized | undefined;
|
|
909
|
+
declare function useRange<T>(options?: {
|
|
910
|
+
id: string;
|
|
911
|
+
selector: (range: RangeNormalized) => T;
|
|
912
|
+
}, deps?: any[]): T | undefined;
|
|
913
|
+
|
|
914
|
+
declare function useResourceEvents<T extends NormalizedEntity>(resource?: Reference, scope?: string[]): any;
|
|
915
|
+
|
|
916
|
+
declare function useResources<Type>(ids: string[], type: string): Type[];
|
|
917
|
+
|
|
918
|
+
declare function useSearchService(): SearchService$1 | undefined;
|
|
919
|
+
|
|
920
|
+
declare function useStyleHelper(): _iiif_helpers_styles.StyledHelper<_iiif_helpers_styles.StyleDefinition>;
|
|
921
|
+
|
|
922
|
+
declare function useStyles<Style extends Record<string, Record<string, any>>>(resource: undefined | Reference<any>): Style;
|
|
923
|
+
declare function useStyles<Style extends Record<string, any>>(resource: undefined | Reference<any>, scope: string): Style;
|
|
924
|
+
|
|
925
|
+
declare function useThumbnail(request: ImageCandidateRequest, dereference?: boolean, { canvasId, manifestId }?: {
|
|
926
|
+
canvasId?: string;
|
|
927
|
+
manifestId?: string;
|
|
928
|
+
}): ImageCandidate | undefined;
|
|
929
|
+
|
|
930
|
+
declare const useVault: () => Vault;
|
|
931
|
+
|
|
932
|
+
declare const useVaultEffect: (callback: (vault: Vault) => void, deps?: any[]) => void;
|
|
933
|
+
|
|
934
|
+
declare function useVaultSelector<T>(selector: (state: IIIFStore, vault: Vault) => T, deps?: any[]): T;
|
|
935
|
+
|
|
936
|
+
interface VaultActivatedAnnotation {
|
|
937
|
+
__vault?: Vault;
|
|
938
|
+
bindToVault(vault: Vault): void;
|
|
939
|
+
source: string | {
|
|
940
|
+
id: string;
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
declare function useVirtualAnnotationPage(): readonly [AnnotationPageNormalized | null, {
|
|
944
|
+
readonly addAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized, atIndex?: number) => void;
|
|
945
|
+
readonly removeAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized) => void;
|
|
946
|
+
}];
|
|
947
|
+
|
|
948
|
+
declare function useVirtualAnnotationPageContext(): [AnnotationPageNormalized | null, {
|
|
949
|
+
addAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized, atIndex?: number | undefined) => void;
|
|
950
|
+
removeAnnotation: (id: string | Annotation | VaultActivatedAnnotation | AnnotationNormalized) => void;
|
|
951
|
+
}];
|
|
952
|
+
declare function VirtualAnnotationProvider({ children }: {
|
|
953
|
+
children: any;
|
|
954
|
+
}): react_jsx_runtime.JSX.Element;
|
|
955
|
+
|
|
956
|
+
declare function flattenAnnotationPageIds({ canvas, manifest, all, canvases, }: {
|
|
957
|
+
manifest?: ManifestNormalized;
|
|
958
|
+
canvas?: CanvasNormalized;
|
|
959
|
+
canvases?: CanvasNormalized[];
|
|
960
|
+
all?: boolean;
|
|
961
|
+
}): string[];
|
|
962
|
+
|
|
963
|
+
declare function LanguageProvider(props: {
|
|
964
|
+
language: string;
|
|
965
|
+
children: ReactNode;
|
|
966
|
+
}): react_jsx_runtime.JSX.Element;
|
|
967
|
+
declare function useIIIFLanguage(): string;
|
|
968
|
+
type LanguageStringProps = {
|
|
969
|
+
[key: string]: any;
|
|
970
|
+
} & {
|
|
971
|
+
as?: string | React__default.FC<any>;
|
|
972
|
+
language: string;
|
|
973
|
+
viewingDirection?: 'rtl' | 'rtl';
|
|
974
|
+
};
|
|
975
|
+
declare function LanguageString({ as: Component, language, children, viewingDirection, ...props }: LanguageStringProps): react_jsx_runtime.JSX.Element;
|
|
976
|
+
declare const useClosestLanguage: (getLanguages: () => string[], deps?: any[]) => string | undefined;
|
|
977
|
+
declare function useLocaleString(inputText: InternationalString | string | null | undefined, defaultText?: string, separator?: string): readonly [string, string | undefined];
|
|
978
|
+
declare function useCreateLocaleString(): (inputText: InternationalString | string | null | undefined, defaultText?: string, separator?: string) => string;
|
|
979
|
+
type LocaleStringProps = {
|
|
980
|
+
as?: string | React__default.FC<any>;
|
|
981
|
+
defaultText?: string;
|
|
982
|
+
to?: string;
|
|
983
|
+
separator?: string;
|
|
984
|
+
enableDangerouslySetInnerHTML?: boolean;
|
|
985
|
+
children: InternationalString | string | null | undefined;
|
|
986
|
+
style?: React__default.CSSProperties;
|
|
987
|
+
extraProps?: any;
|
|
988
|
+
} & Record<string, any>;
|
|
989
|
+
declare function LocaleString({ as: Component, defaultText, enableDangerouslySetInnerHTML, children, separator, ...props }: LocaleStringProps): react_jsx_runtime.JSX.Element;
|
|
990
|
+
|
|
991
|
+
declare const SimpleViewerReactContext: React__default.Context<SimpleViewerContext>;
|
|
992
|
+
declare function InnerViewerProvider(props: SimpleViewerProps): react_jsx_runtime.JSX.Element | null;
|
|
993
|
+
declare function SimpleViewerProvider(props: SimpleViewerProps): react_jsx_runtime.JSX.Element;
|
|
994
|
+
declare function useSimpleViewer(): SimpleViewerContext;
|
|
995
|
+
|
|
996
|
+
declare function useCanvasSequence({ startCanvas, disablePaging }: {
|
|
997
|
+
startCanvas?: string;
|
|
998
|
+
disablePaging?: boolean;
|
|
999
|
+
}): {
|
|
1000
|
+
visibleItems: string[];
|
|
1001
|
+
cursor: number;
|
|
1002
|
+
items: {
|
|
1003
|
+
type: "Canvas";
|
|
1004
|
+
id: string;
|
|
1005
|
+
}[];
|
|
1006
|
+
sequence: number[][];
|
|
1007
|
+
hasPrevious: boolean;
|
|
1008
|
+
hasNext: boolean;
|
|
1009
|
+
setSequenceIndex: React$1.Dispatch<React$1.SetStateAction<number>>;
|
|
1010
|
+
setCanvasIndex: (index: number) => void;
|
|
1011
|
+
setCanvasId: (id: string) => void;
|
|
1012
|
+
next: () => void;
|
|
1013
|
+
previous: () => void;
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Get visible canvases from canvas ID
|
|
1018
|
+
*
|
|
1019
|
+
* This function returns a list of canvas references that should all be displayed
|
|
1020
|
+
* when the passed canvasId is visible. This should work for individual items,
|
|
1021
|
+
* 2-up paged view and continuous (scrolls).
|
|
1022
|
+
*
|
|
1023
|
+
* The options are listed below (from IIIF docs)
|
|
1024
|
+
*
|
|
1025
|
+
* - `unordered` - Valid on Collections, Manifests and Ranges. The Canvases included in resources that have this behavior
|
|
1026
|
+
* have no inherent order, and user interfaces should avoid implying an order to the user. Disjoint with individuals,
|
|
1027
|
+
* continuous, and paged.
|
|
1028
|
+
*
|
|
1029
|
+
* - `individuals` - Valid on Collections, Manifests, and Ranges. For Collections that have this behavior, each of the
|
|
1030
|
+
* included Manifests are distinct objects in the given order. For Manifests and Ranges, the included Canvases are
|
|
1031
|
+
* distinct views, and should not be presented in a page-turning interface. This is the default layout behavior if
|
|
1032
|
+
* not specified. Disjoint with unordered, continuous, and paged.
|
|
1033
|
+
*
|
|
1034
|
+
* - `continuous` Valid on Collections, Manifests and Ranges, which include Canvases that have at least height and
|
|
1035
|
+
* width dimensions. Canvases included in resources that have this behavior are partial views and an appropriate
|
|
1036
|
+
* rendering might display all of the Canvases virtually stitched together, such as a long scroll split into
|
|
1037
|
+
* sections. This behavior has no implication for audio resources. The viewingDirection of the Manifest will
|
|
1038
|
+
* determine the appropriate arrangement of the Canvases. Disjoint with unordered, individuals and paged.
|
|
1039
|
+
*
|
|
1040
|
+
* - `paged` Valid on Collections, Manifests and Ranges, which include Canvases that have at least height and width
|
|
1041
|
+
* dimensions. Canvases included in resources that have this behavior represent views that should be presented in
|
|
1042
|
+
* a page-turning interface if one is available. The first canvas is a single view (the first recto) and thus the
|
|
1043
|
+
* second canvas likely represents the back of the object in the first canvas. If this is not the case, see the
|
|
1044
|
+
* behavior value non-paged. Disjoint with unordered, individuals, continuous, facing-pages and non-paged.
|
|
1045
|
+
*
|
|
1046
|
+
*/
|
|
1047
|
+
declare function getVisibleCanvasesFromCanvasId(vault: Vault, manifestOrRange: ManifestNormalized | RangeNormalized, canvasId: string | null, preventPaged?: boolean): Reference<'Canvas'>[];
|
|
1048
|
+
declare function getManifestSequence(vault: Vault, manifestOrRange: ManifestNormalized | RangeNormalized, { disablePaging, skipNonPaged }?: {
|
|
1049
|
+
disablePaging?: boolean;
|
|
1050
|
+
skipNonPaged?: boolean;
|
|
1051
|
+
}): [Reference<'Canvas'>[], number[][]];
|
|
1052
|
+
|
|
1053
|
+
declare function findFirstCanvasFromRange(vault: Vault, range: RangeNormalized): null | Reference<'Canvas'>;
|
|
1054
|
+
declare function findAllCanvasesInRange(vault: Vault, range: RangeNormalized): Array<Reference<'Canvas'>>;
|
|
1055
|
+
declare function findManifestSelectedRange(vault: Vault, manifest: ManifestNormalized, canvasId: string): null | RangeNormalized;
|
|
1056
|
+
declare function findSelectedRange(vault: Vault, range: RangeNormalized, canvasId: string): null | RangeNormalized;
|
|
1057
|
+
|
|
1058
|
+
export { AnnotationContext, AnnotationPageContext, type AnnotationPageDescription, type AudioSequence, Auth, type AuthAccessState, type AuthContextActions, type AuthContextCurrentActions, type AuthContextState, AuthProvider, AuthProvider_Old, AuthRContext, AuthReactContext, AuthReactContextActions, type AuthState, CanvasAnnotations, CanvasContext, CanvasPanel, CollectionContext, CombinedMetadata, type ComplexTimelineStrategy, ContextBridge, type EmptyStrategy, Image, type ImageProps, ImageServiceLoaderContext, type ImageServiceLoaderType, type ImageServiceRequestOptions, type ImageWithOptionalService, InnerViewerProvider, LanguageProvider, LanguageString, LocaleString, ManifestContext, ManifestMetadata, type MediaPlayerActions, MediaPlayerProvider, type MediaPlayerState, type MediaStrategy, Metadata, type MetadataProps, type ProbeStore, RangeContext, ReactVaultContext, type RenderingStrategy, type ResourceContextType, ResourceProvider, ResourceReactContext, type ResourceRequestOptions, SequenceThumbnails, type SimpleViewerActions, type SimpleViewerActionsType, type SimpleViewerContext, type SimpleViewerProps, SimpleViewerProvider, SimpleViewerReactContext, type SimpleViewerReducerState, type Single3DModelStrategy, type SingleAudio, SingleCanvasThumbnail, type SingleImageStrategy, type SingleVideo, type SingleYouTubeVideo, type StrategyActions, type TextualContentStrategy, type UnknownStrategy, type UseRenderingStrategy, type UseRenderingStrategyOptions, type VaultActivatedAnnotation, VaultProvider, type VideoSequence, ViewerPresetContext, VirtualAnnotationProvider, VisibleCanvasReactContext, authDetailsForResource, createAuthStateStore, createProbe, emptyActions, emptyStrategy, findAllCanvasesInRange, findFirstCanvasFromRange, findManifestSelectedRange, findSelectedRange, flattenAnnotationPageIds, formatTime, get3dStrategy, getImageStrategy, getManifestSequence, getParsedTargetSelector, getRenderingStrategy, getTextualContentStrategy, getVideoStrategy, getVisibleCanvasesFromCanvasId, hasAuth, makeAccessServiceRequest, makeAccessTokenRequest, parseSpecificResource, unknownResponse, unsupportedStrategy, useAnnotation, useAnnotationPage, useAnnotationPageManager, useAnnotationsAtTime, useAuthActions, useAuthActions_old, useAuthService, useAuthService_old, useAuthStore, useAuthToken, useAuthToken_old, useAuthTokens, useAuthTokens_old, useCanvas, useCanvasClock, useCanvasSequence, useCanvasSubset, useClosestLanguage, useCollection, useContextBridge, useCreateLocaleString, useCurrentAuth, useCurrentAuth_old, useDispatch, useEventListener, useExistingVault, useExternalCollection, useExternalManifest, useExternalResource, useIIIFLanguage, useImage, useImageService, useImageServiceLoader, useImageTile, useLoadImageService, useLocaleString, useManifest, useMediaActions, useMediaElements, useMediaState, usePaintables, usePaintingAnnotations, useRange, useRenderingStrategy, useResourceContext, useResourceEvents, useResources, useSearchService, useSimpleMediaPlayer, useSimpleViewer, useStyleHelper, useStyles, useThumbnail, useVault, useVaultEffect, useVaultSelector, useViewerPreset, useVirtualAnnotationPage, useVirtualAnnotationPageContext, useVisibleCanvases };
|