react-iiif-vault 1.5.0 → 1.5.2
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 +25 -7
- package/dist/bundle.global.js +19 -19
- package/dist/canvas-panel.cjs +5 -5
- package/dist/canvas-panel.d.cts +2 -2
- package/dist/canvas-panel.d.ts +2 -2
- package/dist/canvas-panel.js +1 -1
- package/dist/{chunk-LXMMN7PH.js → chunk-IWRMLB3G.js} +1 -1
- package/dist/chunk-XNDN34SQ.js +1 -0
- package/dist/{index-Cs7EchlV.d.cts → index-CMSk5Jbz.d.cts} +1 -1
- package/dist/{index-DZK6q9iO.d.ts → index-CWeYvmxZ.d.ts} +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +1 -1
- package/dist/{useRenderingStrategy-B03X9rQS.d.cts → useRenderingStrategy-BiuSDiXu.d.cts} +9 -2
- package/dist/{useRenderingStrategy-B03X9rQS.d.ts → useRenderingStrategy-BiuSDiXu.d.ts} +9 -2
- 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 +2 -2
- package/dist/chunk-PCXRCBVF.js +0 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ import React__default, { ReactNode, FC, ComponentType, RefObject, ForwardRefExot
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { AtlasProps, Preset, BoxStyle, ViewerMode } from '@atlas-viewer/atlas';
|
|
5
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,
|
|
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, ImageCandidate, 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 * as _iiif_helpers_vault from '@iiif/helpers/vault';
|
|
13
14
|
import { Vault, VaultOptions, NormalizedEntity, IIIFStore } from '@iiif/helpers/vault';
|
|
14
15
|
import { RegionParameter, RotationParameter, SizeParameter } from '@iiif/parser/image-3';
|
|
15
16
|
import * as polygon_editor from 'polygon-editor';
|
|
@@ -53,6 +54,7 @@ declare const RenderAnnotationPage: FC<{
|
|
|
53
54
|
type ImageWithOptionalService = {
|
|
54
55
|
id: string;
|
|
55
56
|
annotationId: string;
|
|
57
|
+
annotation: AnnotationNormalized;
|
|
56
58
|
type: 'Image';
|
|
57
59
|
service?: ImageService$1;
|
|
58
60
|
width?: number;
|
|
@@ -67,6 +69,7 @@ type ImageWithOptionalService = {
|
|
|
67
69
|
type SingleAudio = {
|
|
68
70
|
type: 'Sound';
|
|
69
71
|
annotationId: string;
|
|
72
|
+
annotation: AnnotationNormalized;
|
|
70
73
|
url: string;
|
|
71
74
|
format: string;
|
|
72
75
|
duration: number;
|
|
@@ -79,6 +82,7 @@ type SingleAudio = {
|
|
|
79
82
|
type SingleYouTubeVideo = {
|
|
80
83
|
type: 'VideoYouTube';
|
|
81
84
|
annotationId: string;
|
|
85
|
+
annotation: AnnotationNormalized;
|
|
82
86
|
url: string;
|
|
83
87
|
youTubeId: string;
|
|
84
88
|
duration: number;
|
|
@@ -88,6 +92,7 @@ type SingleYouTubeVideo = {
|
|
|
88
92
|
type SingleVideo = {
|
|
89
93
|
type: 'Video';
|
|
90
94
|
annotationId: string;
|
|
95
|
+
annotation: AnnotationNormalized;
|
|
91
96
|
url: string;
|
|
92
97
|
format: string;
|
|
93
98
|
duration: number;
|
|
@@ -138,6 +143,8 @@ type Single3DModelStrategy = {
|
|
|
138
143
|
model: ExternalWebResource;
|
|
139
144
|
choice?: ChoiceDescription;
|
|
140
145
|
annotations?: AnnotationPageDescription;
|
|
146
|
+
annotation: AnnotationNormalized;
|
|
147
|
+
annotationId: string;
|
|
141
148
|
};
|
|
142
149
|
declare function get3dStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
143
150
|
|
|
@@ -149,9 +156,10 @@ type TextualContentStrategy = {
|
|
|
149
156
|
};
|
|
150
157
|
type TextContent = {
|
|
151
158
|
type: 'Text';
|
|
152
|
-
annotationId: string;
|
|
153
159
|
text: InternationalString;
|
|
154
160
|
target: SupportedTarget | null;
|
|
161
|
+
annotationId: string;
|
|
162
|
+
annotation: AnnotationNormalized;
|
|
155
163
|
};
|
|
156
164
|
declare function getTextualContentStrategy(canvas: CanvasNormalized, paintables: Paintables): RenderingStrategy;
|
|
157
165
|
|
|
@@ -557,6 +565,7 @@ interface SequenceThumbnailsProps {
|
|
|
557
565
|
width: number;
|
|
558
566
|
height?: number;
|
|
559
567
|
};
|
|
568
|
+
dereference?: boolean;
|
|
560
569
|
classes?: {
|
|
561
570
|
container?: string;
|
|
562
571
|
row?: string;
|
|
@@ -577,8 +586,9 @@ interface SequenceThumbnailsProps {
|
|
|
577
586
|
figure?: boolean;
|
|
578
587
|
showLabel?: boolean;
|
|
579
588
|
fallback?: React.ReactNode;
|
|
589
|
+
scrollBehaviour?: ScrollBehavior;
|
|
580
590
|
}
|
|
581
|
-
declare function SequenceThumbnails({ flat, size, classes, showLabel, figure, fallback }: SequenceThumbnailsProps): react_jsx_runtime.JSX.Element;
|
|
591
|
+
declare function SequenceThumbnails({ scrollBehaviour, dereference, flat, size, classes, showLabel, figure, fallback }: SequenceThumbnailsProps): react_jsx_runtime.JSX.Element;
|
|
582
592
|
|
|
583
593
|
interface SingleCanvasThumbnailProps {
|
|
584
594
|
canvasId?: string;
|
|
@@ -1247,18 +1257,26 @@ declare const unknownResponse: UseRenderingStrategy[0];
|
|
|
1247
1257
|
declare const unsupportedStrategy: (reason: string) => UnknownStrategy;
|
|
1248
1258
|
declare const emptyStrategy: (width: number, height: number) => UseRenderingStrategy[0];
|
|
1249
1259
|
|
|
1250
|
-
|
|
1260
|
+
type CompatVault = {
|
|
1261
|
+
get: _iiif_helpers_vault.Vault['get'];
|
|
1262
|
+
setMetaValue: _iiif_helpers_vault.Vault['setMetaValue'];
|
|
1263
|
+
getResourceMeta: _iiif_helpers_vault.Vault['getResourceMeta'];
|
|
1264
|
+
load: _iiif_helpers_vault.Vault['load'];
|
|
1265
|
+
requestStatus: _iiif_helpers_vault.Vault['requestStatus'];
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables, vault: CompatVault): UnknownStrategy | MediaStrategy;
|
|
1251
1269
|
|
|
1252
1270
|
interface GetRenderStrategyOptions {
|
|
1253
1271
|
canvas: CanvasNormalized | null | undefined;
|
|
1254
1272
|
paintables: Paintables$1;
|
|
1255
1273
|
supports: string[];
|
|
1256
1274
|
loadImageService: ImageServiceLoaderType;
|
|
1257
|
-
vault
|
|
1275
|
+
vault?: CompatVault;
|
|
1258
1276
|
}
|
|
1259
1277
|
declare function getRenderingStrategy({ canvas, paintables, supports, loadImageService, vault, }: GetRenderStrategyOptions): RenderingStrategy;
|
|
1260
1278
|
|
|
1261
|
-
declare function getComplexTimelineStrategy(canvas: CanvasNormalized, paintables: Paintables, loadImageService: ImageServiceLoaderType, vault:
|
|
1279
|
+
declare function getComplexTimelineStrategy(canvas: CanvasNormalized, paintables: Paintables, loadImageService: ImageServiceLoaderType, vault: CompatVault): ComplexTimelineStrategy;
|
|
1262
1280
|
|
|
1263
1281
|
declare function useAnnotation(options?: {
|
|
1264
1282
|
id: string;
|