react-iiif-vault 1.4.0 → 1.5.1
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 +150 -18
- package/dist/bundle.global.js +30 -28
- package/dist/canvas-panel.cjs +7 -7
- package/dist/canvas-panel.d.cts +2 -3
- package/dist/canvas-panel.d.ts +2 -3
- package/dist/canvas-panel.js +1 -1
- package/dist/chunk-IWRMLB3G.js +48 -0
- package/dist/chunk-XNDN34SQ.js +1 -0
- package/dist/{index-BAYQ0qVx.d.cts → index-CMSk5Jbz.d.cts} +5 -5
- package/dist/{index-CnXzAuQK.d.ts → index-CWeYvmxZ.d.ts} +5 -5
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +128 -18
- package/dist/index.d.ts +128 -18
- package/dist/index.js +1 -1
- package/dist/{useRenderingStrategy-DkjxMKJV.d.cts → useRenderingStrategy-BiuSDiXu.d.cts} +16 -3
- package/dist/{useRenderingStrategy-DkjxMKJV.d.ts → useRenderingStrategy-BiuSDiXu.d.ts} +16 -3
- package/dist/utils-C-h4SU3S.d.ts +41 -0
- package/dist/utils-CvRzsfRK.d.cts +41 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +7 -32
- package/dist/utils.d.ts +7 -32
- package/dist/utils.js +1 -1
- package/package.json +4 -5
- package/dist/chunk-7KUFVAUD.js +0 -48
- package/dist/chunk-CCTBCLBV.js +0 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -2,22 +2,24 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { ReactNode, FC, ComponentType, RefObject, ForwardRefExoticComponent, RefAttributes, FunctionComponent, Context } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { AtlasProps, Preset, BoxStyle, ViewerMode } 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,
|
|
5
|
+
import { AnnotationPage, ImageService as ImageService$1, 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, AnnotationNormalized, CanvasNormalized, CollectionNormalized, ManifestNormalized, RangeNormalized } from '@iiif/presentation-3-normalized';
|
|
7
7
|
import * as _iiif_helpers from '@iiif/helpers';
|
|
8
|
-
import { ChoiceDescription, Paintables, SupportedTarget, ComplexChoice, BoxSelector as BoxSelector$1, TemporalBoxSelector as TemporalBoxSelector$1
|
|
8
|
+
import { ChoiceDescription, Paintables, SupportedTarget, ComplexChoice, ImageCandidate, BoxSelector as BoxSelector$1, TemporalBoxSelector as TemporalBoxSelector$1 } from '@iiif/helpers';
|
|
9
9
|
import { BoxSelector, TemporalBoxSelector, TemporalSelector } from '@iiif/helpers/annotation-targets';
|
|
10
10
|
export * from '@iiif/helpers/annotation-targets';
|
|
11
11
|
import * as mitt from 'mitt';
|
|
12
12
|
import { Emitter, EventType, Handler } from 'mitt';
|
|
13
|
-
import
|
|
13
|
+
import * as _iiif_helpers_vault from '@iiif/helpers/vault';
|
|
14
14
|
import { Vault, VaultOptions, NormalizedEntity, IIIFStore } from '@iiif/helpers/vault';
|
|
15
|
+
import { RegionParameter, RotationParameter, SizeParameter } from '@iiif/parser/image-3';
|
|
15
16
|
import * as polygon_editor from 'polygon-editor';
|
|
16
17
|
import { RenderState, InputShape, SlowState } from 'polygon-editor';
|
|
17
18
|
import * as zustand_vanilla from 'zustand/vanilla';
|
|
18
19
|
import { StoreApi } from 'zustand/vanilla';
|
|
19
20
|
import * as zustand from 'zustand';
|
|
20
21
|
import { StoreApi as StoreApi$1 } from 'zustand';
|
|
22
|
+
import { ImageServiceLoader, ImageCandidateRequest, ImageCandidate as ImageCandidate$1 } from '@iiif/helpers/image-service';
|
|
21
23
|
import * as _iiif_helpers_painting_annotations from '@iiif/helpers/painting-annotations';
|
|
22
24
|
import { Paintables as Paintables$1 } from '@iiif/helpers/painting-annotations';
|
|
23
25
|
import { VaultZustandStore } from '@iiif/helpers/vault/store';
|
|
@@ -52,8 +54,9 @@ declare const RenderAnnotationPage: FC<{
|
|
|
52
54
|
type ImageWithOptionalService = {
|
|
53
55
|
id: string;
|
|
54
56
|
annotationId: string;
|
|
57
|
+
annotation: AnnotationNormalized;
|
|
55
58
|
type: 'Image';
|
|
56
|
-
service?: ImageService;
|
|
59
|
+
service?: ImageService$1;
|
|
57
60
|
width?: number;
|
|
58
61
|
height?: number;
|
|
59
62
|
sizes?: Array<{
|
|
@@ -66,6 +69,7 @@ type ImageWithOptionalService = {
|
|
|
66
69
|
type SingleAudio = {
|
|
67
70
|
type: 'Sound';
|
|
68
71
|
annotationId: string;
|
|
72
|
+
annotation: AnnotationNormalized;
|
|
69
73
|
url: string;
|
|
70
74
|
format: string;
|
|
71
75
|
duration: number;
|
|
@@ -78,6 +82,7 @@ type SingleAudio = {
|
|
|
78
82
|
type SingleYouTubeVideo = {
|
|
79
83
|
type: 'VideoYouTube';
|
|
80
84
|
annotationId: string;
|
|
85
|
+
annotation: AnnotationNormalized;
|
|
81
86
|
url: string;
|
|
82
87
|
youTubeId: string;
|
|
83
88
|
duration: number;
|
|
@@ -87,6 +92,7 @@ type SingleYouTubeVideo = {
|
|
|
87
92
|
type SingleVideo = {
|
|
88
93
|
type: 'Video';
|
|
89
94
|
annotationId: string;
|
|
95
|
+
annotation: AnnotationNormalized;
|
|
90
96
|
url: string;
|
|
91
97
|
format: string;
|
|
92
98
|
duration: number;
|
|
@@ -114,8 +120,14 @@ type AnnotationPageDescription = {
|
|
|
114
120
|
type ImageServiceLoaderType = (imageService: any | undefined, { height, width }: {
|
|
115
121
|
height: number;
|
|
116
122
|
width: number;
|
|
117
|
-
}) => ImageService | undefined;
|
|
118
|
-
declare function useLoadImageService(): readonly [ImageServiceLoaderType, Record<string,
|
|
123
|
+
}) => ImageService$1 | undefined;
|
|
124
|
+
declare function useLoadImageService(): readonly [ImageServiceLoaderType, Record<string, {
|
|
125
|
+
status: "error" | "loading" | "done";
|
|
126
|
+
service: ImageService$1 | null;
|
|
127
|
+
error?: boolean | undefined;
|
|
128
|
+
errorMesage?: string | undefined;
|
|
129
|
+
real?: boolean | undefined;
|
|
130
|
+
}>];
|
|
119
131
|
|
|
120
132
|
type SingleImageStrategy = {
|
|
121
133
|
type: 'images';
|
|
@@ -131,6 +143,8 @@ type Single3DModelStrategy = {
|
|
|
131
143
|
model: ExternalWebResource;
|
|
132
144
|
choice?: ChoiceDescription;
|
|
133
145
|
annotations?: AnnotationPageDescription;
|
|
146
|
+
annotation: AnnotationNormalized;
|
|
147
|
+
annotationId: string;
|
|
134
148
|
};
|
|
135
149
|
declare function get3dStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
136
150
|
|
|
@@ -142,9 +156,10 @@ type TextualContentStrategy = {
|
|
|
142
156
|
};
|
|
143
157
|
type TextContent = {
|
|
144
158
|
type: 'Text';
|
|
145
|
-
annotationId: string;
|
|
146
159
|
text: InternationalString;
|
|
147
160
|
target: SupportedTarget | null;
|
|
161
|
+
annotationId: string;
|
|
162
|
+
annotation: AnnotationNormalized;
|
|
148
163
|
};
|
|
149
164
|
declare function getTextualContentStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
150
165
|
|
|
@@ -271,6 +286,7 @@ type CanvasProps = {
|
|
|
271
286
|
viewControlsDeps?: any[];
|
|
272
287
|
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
273
288
|
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
289
|
+
complexTimelineControlsDeps?: any[];
|
|
274
290
|
mediaControlsDeps?: any[];
|
|
275
291
|
strategies?: Array<RenderingStrategy['type']>;
|
|
276
292
|
backgroundStyle?: BoxStyle;
|
|
@@ -285,7 +301,7 @@ type CanvasProps = {
|
|
|
285
301
|
Audio?: React__default.ComponentType<AudioComponentProps>;
|
|
286
302
|
};
|
|
287
303
|
};
|
|
288
|
-
declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, renderComplexTimelineControls, viewControlsDeps, mediaControlsDeps, strategies, throwOnUnknown, backgroundStyle, alwaysShowBackground, keepCanvasScale, enableSizes, enableYouTube, onClickPaintingAnnotation, components, children, }: CanvasProps): react_jsx_runtime.JSX.Element
|
|
304
|
+
declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, renderComplexTimelineControls, complexTimelineControlsDeps, viewControlsDeps, mediaControlsDeps, strategies, throwOnUnknown, backgroundStyle, alwaysShowBackground, keepCanvasScale, enableSizes, enableYouTube, onClickPaintingAnnotation, components, children, }: CanvasProps): react_jsx_runtime.JSX.Element;
|
|
289
305
|
|
|
290
306
|
declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, }: {
|
|
291
307
|
id: string;
|
|
@@ -399,6 +415,81 @@ type CanvasPanelType = ForwardRefExoticComponent<CanvasPanelProps & RefAttribute
|
|
|
399
415
|
};
|
|
400
416
|
declare const CanvasPanel: CanvasPanelType;
|
|
401
417
|
|
|
418
|
+
interface CanvasStrategyProviderProps {
|
|
419
|
+
onChoiceChange?: (choice?: ChoiceDescription) => void;
|
|
420
|
+
strategies?: Array<RenderingStrategy['type']>;
|
|
421
|
+
registerActions?: (actions: StrategyActions) => void;
|
|
422
|
+
defaultChoices?: Array<{
|
|
423
|
+
id: string;
|
|
424
|
+
opacity?: number;
|
|
425
|
+
}>;
|
|
426
|
+
children: ReactNode;
|
|
427
|
+
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
428
|
+
viewControlsDeps?: any[];
|
|
429
|
+
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
430
|
+
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
431
|
+
complexTimelineControlsDeps?: any[];
|
|
432
|
+
mediaControlsDeps?: any[];
|
|
433
|
+
throwOnUnknown?: boolean;
|
|
434
|
+
}
|
|
435
|
+
declare function CanvasStrategyProvider({ strategies, registerActions, defaultChoices, onChoiceChange, mediaControlsDeps, renderMediaControls, renderViewerControls, viewControlsDeps, renderComplexTimelineControls, complexTimelineControlsDeps, throwOnUnknown, children, }: CanvasStrategyProviderProps): react_jsx_runtime.JSX.Element;
|
|
436
|
+
|
|
437
|
+
interface CanvasWorldObjectProps {
|
|
438
|
+
x?: number;
|
|
439
|
+
y?: number;
|
|
440
|
+
keepCanvasScale?: boolean;
|
|
441
|
+
children?: ReactNode;
|
|
442
|
+
}
|
|
443
|
+
declare function CanvasWorldObject({ x, y, keepCanvasScale, children }: CanvasWorldObjectProps): react_jsx_runtime.JSX.Element | null;
|
|
444
|
+
|
|
445
|
+
declare function ThumbnailFallbackImage({ x, y }: {
|
|
446
|
+
x?: number;
|
|
447
|
+
y?: number;
|
|
448
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
449
|
+
|
|
450
|
+
interface RenderEmptyStrategyProps {
|
|
451
|
+
backgroundStyle?: BoxStyle;
|
|
452
|
+
alwaysShowBackground?: boolean;
|
|
453
|
+
}
|
|
454
|
+
declare function RenderEmptyStrategy({ backgroundStyle, alwaysShowBackground }: RenderEmptyStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
455
|
+
|
|
456
|
+
declare function RenderComplexTimelineStrategy(): react_jsx_runtime.JSX.Element | null;
|
|
457
|
+
|
|
458
|
+
interface TextualContextStrategyProps {
|
|
459
|
+
onClickPaintingAnnotation?: (id: string, e: any) => void;
|
|
460
|
+
children?: ReactNode;
|
|
461
|
+
}
|
|
462
|
+
declare function RenderTextualContentStrategy({ onClickPaintingAnnotation, children }: TextualContextStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
463
|
+
|
|
464
|
+
interface ImageStrategyProps {
|
|
465
|
+
isStatic?: boolean;
|
|
466
|
+
enableSizes?: boolean;
|
|
467
|
+
onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
|
|
468
|
+
children?: ReactNode;
|
|
469
|
+
}
|
|
470
|
+
declare function RenderImageStrategy({ isStatic, enableSizes, onClickPaintingAnnotation, children, }: ImageStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
471
|
+
|
|
472
|
+
declare function Render3DModelStrategy(): react_jsx_runtime.JSX.Element | null;
|
|
473
|
+
|
|
474
|
+
interface AnnotationStrategyProps {
|
|
475
|
+
children?: ReactNode;
|
|
476
|
+
}
|
|
477
|
+
declare function RenderAnnotationStrategy({ children }: AnnotationStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
478
|
+
|
|
479
|
+
interface RenderAudioStrategyProps {
|
|
480
|
+
as?: React.ComponentType<AudioComponentProps>;
|
|
481
|
+
}
|
|
482
|
+
declare function RenderAudioStrategy({ as: CustomAudio }: RenderAudioStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
483
|
+
|
|
484
|
+
declare function RenderAccompanyingCanvas(): react_jsx_runtime.JSX.Element;
|
|
485
|
+
|
|
486
|
+
interface RenderVideoStrategyProps {
|
|
487
|
+
as?: React__default.ComponentType<VideoComponentProps>;
|
|
488
|
+
}
|
|
489
|
+
declare function RenderVideoStrategy({ as: CustomVideo }: RenderVideoStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
490
|
+
|
|
491
|
+
declare function RenderYouTubeStrategy(): react_jsx_runtime.JSX.Element | null;
|
|
492
|
+
|
|
402
493
|
declare const CanvasAnnotations: React$1.ForwardRefExoticComponent<{
|
|
403
494
|
canvasId?: string | undefined;
|
|
404
495
|
} & React$1.RefAttributes<{
|
|
@@ -452,7 +543,7 @@ type CombinedMetadataProps = Omit<MetadataProps, 'metadata'>;
|
|
|
452
543
|
declare function CombinedMetadata(props: CombinedMetadataProps): react_jsx_runtime.JSX.Element;
|
|
453
544
|
|
|
454
545
|
interface ImageProps {
|
|
455
|
-
src: string | ImageService;
|
|
546
|
+
src: string | ImageService$1;
|
|
456
547
|
alt?: string;
|
|
457
548
|
size?: Partial<ImageSize>;
|
|
458
549
|
region?: RegionParameter;
|
|
@@ -687,6 +778,21 @@ interface PolygonSelectorProps {
|
|
|
687
778
|
}
|
|
688
779
|
declare function PolygonSelector(props: PolygonSelectorProps): react_jsx_runtime.JSX.Element | null;
|
|
689
780
|
|
|
781
|
+
interface ImageServiceProps {
|
|
782
|
+
src: string;
|
|
783
|
+
atlas?: AtlasProps;
|
|
784
|
+
errorFallback?: React__default.FC;
|
|
785
|
+
interactive?: boolean;
|
|
786
|
+
skipSizes?: boolean;
|
|
787
|
+
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
788
|
+
viewControlsDeps?: any[];
|
|
789
|
+
fluid?: boolean;
|
|
790
|
+
x?: number;
|
|
791
|
+
y?: number;
|
|
792
|
+
children?: React__default.ReactNode;
|
|
793
|
+
}
|
|
794
|
+
declare function ImageService({ src, errorFallback, interactive, skipSizes, children, renderViewerControls, viewControlsDeps, fluid, x, y, ...atlasProps }: ImageServiceProps & Omit<AtlasProps, 'children'>): react_jsx_runtime.JSX.Element | null;
|
|
795
|
+
|
|
690
796
|
declare function AnnotationContext({ annotation, children }: {
|
|
691
797
|
annotation: string;
|
|
692
798
|
children: ReactNode;
|
|
@@ -1115,6 +1221,24 @@ declare function AnnotationStyleProvider({ theme, children, }: {
|
|
|
1115
1221
|
children: React.ReactNode;
|
|
1116
1222
|
}): react_jsx_runtime.JSX.Element;
|
|
1117
1223
|
|
|
1224
|
+
interface StrategyContext {
|
|
1225
|
+
strategy: RenderingStrategy;
|
|
1226
|
+
choices: ChoiceDescription | null;
|
|
1227
|
+
}
|
|
1228
|
+
declare const StrategyReactContext: React$1.Context<StrategyContext | null>;
|
|
1229
|
+
declare function useStrategy(): StrategyContext;
|
|
1230
|
+
|
|
1231
|
+
interface ControlsContext {
|
|
1232
|
+
renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
|
|
1233
|
+
viewControlsDeps: any[];
|
|
1234
|
+
renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
|
|
1235
|
+
mediaControlsDeps: any[];
|
|
1236
|
+
renderComplexTimelineControls?: (strategy: ComplexTimelineStrategy) => ReactNode;
|
|
1237
|
+
complexTimelineControlsDeps: any[];
|
|
1238
|
+
}
|
|
1239
|
+
declare const ControlsReactContext: React$1.Context<ControlsContext | null>;
|
|
1240
|
+
declare function useRenderControls(): ControlsContext;
|
|
1241
|
+
|
|
1118
1242
|
/**
|
|
1119
1243
|
* Parse specific resource.
|
|
1120
1244
|
*
|
|
@@ -1131,18 +1255,26 @@ declare const unknownResponse: UseRenderingStrategy[0];
|
|
|
1131
1255
|
declare const unsupportedStrategy: (reason: string) => UnknownStrategy;
|
|
1132
1256
|
declare const emptyStrategy: (width: number, height: number) => UseRenderingStrategy[0];
|
|
1133
1257
|
|
|
1134
|
-
|
|
1258
|
+
type CompatVault = {
|
|
1259
|
+
get: _iiif_helpers_vault.Vault['get'];
|
|
1260
|
+
setMetaValue: _iiif_helpers_vault.Vault['setMetaValue'];
|
|
1261
|
+
getResourceMeta: _iiif_helpers_vault.Vault['getResourceMeta'];
|
|
1262
|
+
load: _iiif_helpers_vault.Vault['load'];
|
|
1263
|
+
requestStatus: _iiif_helpers_vault.Vault['requestStatus'];
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables, vault: CompatVault): UnknownStrategy | MediaStrategy;
|
|
1135
1267
|
|
|
1136
1268
|
interface GetRenderStrategyOptions {
|
|
1137
1269
|
canvas: CanvasNormalized | null | undefined;
|
|
1138
1270
|
paintables: Paintables$1;
|
|
1139
1271
|
supports: string[];
|
|
1140
1272
|
loadImageService: ImageServiceLoaderType;
|
|
1141
|
-
vault
|
|
1273
|
+
vault?: CompatVault;
|
|
1142
1274
|
}
|
|
1143
1275
|
declare function getRenderingStrategy({ canvas, paintables, supports, loadImageService, vault, }: GetRenderStrategyOptions): RenderingStrategy;
|
|
1144
1276
|
|
|
1145
|
-
declare function getComplexTimelineStrategy(canvas: CanvasNormalized, paintables: Paintables, loadImageService: ImageServiceLoaderType, vault:
|
|
1277
|
+
declare function getComplexTimelineStrategy(canvas: CanvasNormalized, paintables: Paintables, loadImageService: ImageServiceLoaderType, vault: CompatVault): ComplexTimelineStrategy;
|
|
1146
1278
|
|
|
1147
1279
|
declare function useAnnotation(options?: {
|
|
1148
1280
|
id: string;
|
|
@@ -1263,7 +1395,7 @@ declare function useExternalManifest(idOrRef: string | {
|
|
|
1263
1395
|
manifest?: ManifestNormalized;
|
|
1264
1396
|
};
|
|
1265
1397
|
|
|
1266
|
-
declare function useImage(service: ImageService | undefined, data?: {
|
|
1398
|
+
declare function useImage(service: ImageService$1 | undefined, data?: {
|
|
1267
1399
|
size?: Partial<ImageSize>;
|
|
1268
1400
|
selector?: RegionParameter;
|
|
1269
1401
|
rotation?: number | RotationParameter;
|
|
@@ -1281,7 +1413,7 @@ interface ImageServiceRequestOptions {
|
|
|
1281
1413
|
* @note It is better to use the hook useRenderingStrategy for rendering.
|
|
1282
1414
|
*/
|
|
1283
1415
|
declare function useImageService({ cacheKey }?: ImageServiceRequestOptions): {
|
|
1284
|
-
data: ImageService | undefined;
|
|
1416
|
+
data: ImageService$1 | undefined;
|
|
1285
1417
|
isFetching: boolean;
|
|
1286
1418
|
status: 'error' | 'success' | 'loading' | 'idle';
|
|
1287
1419
|
};
|
|
@@ -1292,7 +1424,7 @@ declare function useImageTile(): {
|
|
|
1292
1424
|
id: string | undefined;
|
|
1293
1425
|
width: number | null | undefined;
|
|
1294
1426
|
height: number | null | undefined;
|
|
1295
|
-
imageService: ImageService;
|
|
1427
|
+
imageService: ImageService$1;
|
|
1296
1428
|
thumbnail: undefined;
|
|
1297
1429
|
} | null;
|
|
1298
1430
|
};
|
|
@@ -1342,7 +1474,7 @@ declare function useStyles<Style extends Record<string, any>>(resource: undefine
|
|
|
1342
1474
|
declare function useThumbnail(request: ImageCandidateRequest, dereference?: boolean, { canvasId, manifestId }?: {
|
|
1343
1475
|
canvasId?: string;
|
|
1344
1476
|
manifestId?: string;
|
|
1345
|
-
}): ImageCandidate | undefined;
|
|
1477
|
+
}): ImageCandidate$1 | undefined;
|
|
1346
1478
|
|
|
1347
1479
|
declare const useVault: () => Vault;
|
|
1348
1480
|
|
|
@@ -1533,4 +1665,4 @@ declare function findAllCanvasesInRange(vault: Vault, range: RangeNormalized): A
|
|
|
1533
1665
|
declare function findManifestSelectedRange(vault: Vault, manifest: ManifestNormalized, canvasId: string): null | RangeNormalized;
|
|
1534
1666
|
declare function findSelectedRange(vault: Vault, range: RangeNormalized, canvasId: string): null | RangeNormalized;
|
|
1535
1667
|
|
|
1536
|
-
export { AnnotationContext, AnnotationPageContext, type AnnotationPageDescription, AnnotationStyleProvider, type AnnotationStyles, type AnnotationThemeDefinition, type AudioSequence, Auth, type AuthAccessState, type AuthContextActions, type AuthContextCurrentActions, type AuthContextState, AuthProvider, AuthRContext, AuthReactContext, AuthReactContextActions, type AuthState, CanvasAnnotations, CanvasContext, CanvasPanel, type ChoiceEvents, CollectionContext, CombinedMetadata, ComplexTimelineProvider, type ComplexTimelineStrategy, ContextBridge, CreateCustomShape, type CreateCustomShapeProps, CustomContextBridge, CustomContextBridgeProvider, type EmptyStrategy, EventsProvider, 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, PolygonSelector, type PolygonSelectorProps, type ProbeStore, RangeContext, ReactEventContext, ReactVaultContext, RenderSvgEditorControls, type RenderingStrategy, type ResourceContextType, ResourceProvider, ResourceReactContext, type ResourceRequestOptions, SelectorControllerProvider, type SelectorHelperEventTypes, 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 SvgTheme, type TextContent, type TextualContentStrategy, type TimelineKeyframe, TranslationProvider, TransliterationProvider, type UnknownStrategy, type UseRenderingStrategy, type UseRenderingStrategyOptions, type VaultActivatedAnnotation, VaultProvider, type VideoSequence, ViewerPresetContext, VirtualAnnotationProvider, VisibleCanvasReactContext, authDetailsForResource, createAuthStateStore, createProbe, defaultEmitter, emptyActions, emptyStrategy, findAllCanvasesInRange, findFirstCanvasFromRange, findManifestSelectedRange, findSelectedRange, flattenAnnotationPageIds, formatTime, get3dStrategy, getComplexTimelineStrategy, getDefaultAnnotationStyles, getImageStrategy, getManifestSequence, getParsedTargetSelector, getRenderingStrategy, getTextualContentStrategy, getVideoStrategy, getVisibleCanvasesFromCanvasId, hasAuth, makeAccessServiceRequest, makeAccessTokenRequest, parseSpecificResource, svgThemes, unknownResponse, unsupportedStrategy, useAnnotation, useAnnotationPage, useAnnotationPageManager, useAnnotationStyles, useAnnotationsAtTime, useAuthActions, useAuthService, useAuthStore, useAuthToken, useAuthTokens, useCanvas, useCanvasChoices, useCanvasClock, useCanvasSequence, useCanvasStartTime, useCanvasSubset, useClosestLanguage, useCollection, useComplexTimeline, useContextBridge, useCreateLocaleString, useCurrentAuth, useCustomContextBridge, useDispatch, useEventEmitter, useEventListener, useExistingVault, useExternalCollection, useExternalManifest, useExternalResource, useIIIFLanguage, useImage, useImageService, useImageServiceLoader, useImageTile, useIsAuthEnabled, useLoadImageService, useLocaleString, useManifest, useMediaActions, useMediaElements, useMediaState, usePaintables, usePaintingAnnotations, usePolygonHelper, useRange, useRenderingStrategy, useResourceContext, useResourceEvents, useResources, useSearchService, useSelectorController, useSelectorEmitter, useSelectorEvents, useSelectorHelper, useSimpleMediaPlayer, useSimpleViewer, useStyleHelper, useStyles, useSvgEditor, useThumbnail, useTranslations, useTransliteration, useVault, useVaultEffect, useVaultSelector, useViewerPreset, useVirtualAnnotationPage, useVirtualAnnotationPageContext, useVisibleCanvases };
|
|
1668
|
+
export { AnnotationContext, AnnotationPageContext, type AnnotationPageDescription, type AnnotationStrategyProps, AnnotationStyleProvider, type AnnotationStyles, type AnnotationThemeDefinition, type AudioSequence, Auth, type AuthAccessState, type AuthContextActions, type AuthContextCurrentActions, type AuthContextState, AuthProvider, AuthRContext, AuthReactContext, AuthReactContextActions, type AuthState, CanvasAnnotations, CanvasContext, CanvasPanel, CanvasStrategyProvider, CanvasWorldObject, type ChoiceEvents, CollectionContext, CombinedMetadata, ComplexTimelineProvider, type ComplexTimelineStrategy, ContextBridge, type ControlsContext, ControlsReactContext, CreateCustomShape, type CreateCustomShapeProps, CustomContextBridge, CustomContextBridgeProvider, type EmptyStrategy, EventsProvider, Image, type ImageProps, ImageService, ImageServiceLoaderContext, type ImageServiceLoaderType, type ImageServiceRequestOptions, type ImageStrategyProps, type ImageWithOptionalService, InnerViewerProvider, LanguageProvider, LanguageString, LocaleString, ManifestContext, ManifestMetadata, type MediaPlayerActions, MediaPlayerProvider, type MediaPlayerState, type MediaStrategy, Metadata, type MetadataProps, PolygonSelector, type PolygonSelectorProps, type ProbeStore, RangeContext, ReactEventContext, ReactVaultContext, Render3DModelStrategy, RenderAccompanyingCanvas, RenderAnnotationStrategy, RenderAudioStrategy, RenderComplexTimelineStrategy, RenderEmptyStrategy, RenderImageStrategy, RenderSvgEditorControls, RenderTextualContentStrategy, RenderVideoStrategy, RenderYouTubeStrategy, type RenderingStrategy, type ResourceContextType, ResourceProvider, ResourceReactContext, type ResourceRequestOptions, SelectorControllerProvider, type SelectorHelperEventTypes, 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 StrategyContext, StrategyReactContext, type SvgTheme, type TextContent, type TextualContentStrategy, ThumbnailFallbackImage, type TimelineKeyframe, TranslationProvider, TransliterationProvider, type UnknownStrategy, type UseRenderingStrategy, type UseRenderingStrategyOptions, type VaultActivatedAnnotation, VaultProvider, type VideoSequence, ViewerPresetContext, VirtualAnnotationProvider, VisibleCanvasReactContext, authDetailsForResource, createAuthStateStore, createProbe, defaultEmitter, emptyActions, emptyStrategy, findAllCanvasesInRange, findFirstCanvasFromRange, findManifestSelectedRange, findSelectedRange, flattenAnnotationPageIds, formatTime, get3dStrategy, getComplexTimelineStrategy, getDefaultAnnotationStyles, getImageStrategy, getManifestSequence, getParsedTargetSelector, getRenderingStrategy, getTextualContentStrategy, getVideoStrategy, getVisibleCanvasesFromCanvasId, hasAuth, makeAccessServiceRequest, makeAccessTokenRequest, parseSpecificResource, svgThemes, unknownResponse, unsupportedStrategy, useAnnotation, useAnnotationPage, useAnnotationPageManager, useAnnotationStyles, useAnnotationsAtTime, useAuthActions, useAuthService, useAuthStore, useAuthToken, useAuthTokens, useCanvas, useCanvasChoices, useCanvasClock, useCanvasSequence, useCanvasStartTime, useCanvasSubset, useClosestLanguage, useCollection, useComplexTimeline, useContextBridge, useCreateLocaleString, useCurrentAuth, useCustomContextBridge, useDispatch, useEventEmitter, useEventListener, useExistingVault, useExternalCollection, useExternalManifest, useExternalResource, useIIIFLanguage, useImage, useImageService, useImageServiceLoader, useImageTile, useIsAuthEnabled, useLoadImageService, useLocaleString, useManifest, useMediaActions, useMediaElements, useMediaState, usePaintables, usePaintingAnnotations, usePolygonHelper, useRange, useRenderControls, useRenderingStrategy, useResourceContext, useResourceEvents, useResources, useSearchService, useSelectorController, useSelectorEmitter, useSelectorEvents, useSelectorHelper, useSimpleMediaPlayer, useSimpleViewer, useStrategy, useStyleHelper, useStyles, useSvgEditor, useThumbnail, useTranslations, useTransliteration, useVault, useVaultEffect, useVaultSelector, useViewerPreset, useVirtualAnnotationPage, useVirtualAnnotationPageContext, useVisibleCanvases };
|