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 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: AnnotationPage | AnnotationPageNormalized;
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;