react-iiif-vault 2.0.1 → 2.0.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 +15 -4
- package/dist/bundle.global.js +20 -20
- 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-223VJXTE.js +1 -0
- package/dist/chunk-CX7UL3H3.js +48 -0
- package/dist/{index-CawyvZZf.d.cts → index-Btmqi4an.d.cts} +11 -3
- package/dist/{index-yy_738ck.d.ts → index-Cxmpcndt.d.ts} +11 -3
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +1 -1
- package/dist/{useRenderingStrategy-PvoNjiMV.d.cts → useRenderingStrategy-CHg8UC3-.d.cts} +3 -1
- package/dist/{useRenderingStrategy-PvoNjiMV.d.ts → useRenderingStrategy-CHg8UC3-.d.ts} +3 -1
- package/dist/{utils-DyrEcegR.d.ts → utils-B4O1xptf.d.ts} +1 -1
- package/dist/{utils-BVhGgVd5.d.cts → utils-C0dpk-mp.d.cts} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-5VWTU5L4.js +0 -48
- package/dist/chunk-OTG27VBE.js +0 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -480,11 +480,18 @@ declare const RenderAnnotation: FC<{
|
|
|
480
480
|
className?: string;
|
|
481
481
|
style?: BoxStyle;
|
|
482
482
|
interactive?: boolean;
|
|
483
|
+
targetId?: string;
|
|
484
|
+
ignoreTargetId?: boolean;
|
|
483
485
|
}>;
|
|
484
486
|
|
|
485
487
|
declare const RenderAnnotationPage: FC<{
|
|
486
|
-
page:
|
|
488
|
+
page: {
|
|
489
|
+
id: string;
|
|
490
|
+
type: string;
|
|
491
|
+
} | AnnotationPage | AnnotationPageNormalized;
|
|
487
492
|
className?: string;
|
|
493
|
+
targetId?: string;
|
|
494
|
+
ignoreTargetId?: boolean;
|
|
488
495
|
}>;
|
|
489
496
|
|
|
490
497
|
type ImageWithOptionalService = {
|
|
@@ -501,6 +508,7 @@ type ImageWithOptionalService = {
|
|
|
501
508
|
}>;
|
|
502
509
|
target: BoxSelector | TemporalBoxSelector;
|
|
503
510
|
selector?: BoxSelector;
|
|
511
|
+
annotationPages?: AnnotationPageNormalized[];
|
|
504
512
|
};
|
|
505
513
|
type SingleAudio = {
|
|
506
514
|
type: 'Sound';
|
|
@@ -623,11 +631,12 @@ type ComplexTimelineStrategy = {
|
|
|
623
631
|
duration: number;
|
|
624
632
|
choice?: ChoiceDescription;
|
|
625
633
|
annotations?: AnnotationPageDescription;
|
|
634
|
+
highlights: Array<any>;
|
|
626
635
|
};
|
|
627
636
|
interface TimelineKeyframe {
|
|
628
637
|
id: string;
|
|
629
638
|
type: 'enter' | 'exit' | 'change';
|
|
630
|
-
resourceType: 'image' | 'audio' | 'video' | 'text';
|
|
639
|
+
resourceType: 'image' | 'audio' | 'video' | 'text' | 'highlight';
|
|
631
640
|
timeDelta?: number;
|
|
632
641
|
isPrime?: boolean;
|
|
633
642
|
time: number;
|
|
@@ -747,12 +756,13 @@ declare function CanvasBackground({ style }: {
|
|
|
747
756
|
style?: BoxStyle;
|
|
748
757
|
}): react_jsx_runtime.JSX.Element | null;
|
|
749
758
|
|
|
750
|
-
declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, }: {
|
|
759
|
+
declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, enableAnnotations, }: {
|
|
751
760
|
id: string;
|
|
752
761
|
image: ImageWithOptionalService;
|
|
753
762
|
thumbnail?: ImageCandidate;
|
|
754
763
|
isStatic?: boolean;
|
|
755
764
|
enableSizes?: boolean;
|
|
765
|
+
enableAnnotations?: boolean;
|
|
756
766
|
selector?: BoxSelector$1;
|
|
757
767
|
x?: number;
|
|
758
768
|
y?: number;
|
|
@@ -901,10 +911,11 @@ declare function RenderEmptyStrategy({ backgroundStyle, alwaysShowBackground }:
|
|
|
901
911
|
interface ImageStrategyProps {
|
|
902
912
|
isStatic?: boolean;
|
|
903
913
|
enableSizes?: boolean;
|
|
914
|
+
enableAnnotations?: boolean;
|
|
904
915
|
onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
|
|
905
916
|
children?: ReactNode;
|
|
906
917
|
}
|
|
907
|
-
declare function RenderImageStrategy({ isStatic, enableSizes, onClickPaintingAnnotation, children, }: ImageStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
918
|
+
declare function RenderImageStrategy({ isStatic, enableSizes, enableAnnotations, onClickPaintingAnnotation, children, }: ImageStrategyProps): react_jsx_runtime.JSX.Element | null;
|
|
908
919
|
|
|
909
920
|
interface TextualContextStrategyProps {
|
|
910
921
|
onClickPaintingAnnotation?: (id: string, e: any) => void;
|