react-iiif-vault 2.0.4 → 2.0.6

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
@@ -12,7 +12,7 @@ import * as polygon_editor from 'polygon-editor';
12
12
  import { RenderState, SlowState, InputShape, ValidTools, createHelper, PolygonEvents } from 'polygon-editor';
13
13
  import * as _iiif_helpers_vault from '@iiif/helpers/vault';
14
14
  import { Vault, VaultOptions, NormalizedEntity, IIIFStore } from '@iiif/helpers/vault';
15
- import { Reference, FragmentSelector, SvgSelector, AnnotationPage, ImageService as ImageService$1, ExternalWebResource, InternationalString, ImageSize, AuthProbeService2, Auth2LocationResource, Auth2SubstituteResource, AuthAccessService2, AuthAccessTokenService2, AuthAccessToken2, SearchServiceQueryParams, SearchServiceSearchResponse, SearchService as SearchService$1, SearchServiceAutocomplete, ContentResource, W3CAnnotationTarget, PointSelector, Annotation } from '@iiif/presentation-3';
15
+ import { Reference, FragmentSelector, SvgSelector, AnnotationPage, ImageService as ImageService$1, ExternalWebResource, InternationalString, MetadataItem, ImageSize, AuthProbeService2, Auth2LocationResource, Auth2SubstituteResource, AuthAccessService2, AuthAccessTokenService2, AuthAccessToken2, SearchServiceQueryParams, SearchServiceSearchResponse, SearchService as SearchService$1, SearchServiceAutocomplete, ContentResource, W3CAnnotationTarget, PointSelector, Annotation } from '@iiif/presentation-3';
16
16
  import * as zustand_vanilla from 'zustand/vanilla';
17
17
  import { StoreApi as StoreApi$1 } from 'zustand/vanilla';
18
18
  import { AnnotationPageNormalized, AnnotationNormalized, CanvasNormalized, CollectionNormalized, ManifestNormalized, RangeNormalized } from '@iiif/presentation-3-normalized';
@@ -616,6 +616,7 @@ type MediaStrategy = {
616
616
  media: SingleAudio | SingleVideo | AudioSequence | VideoSequence | SingleYouTubeVideo;
617
617
  choice?: ChoiceDescription;
618
618
  annotations?: AnnotationPageDescription;
619
+ noSpatial?: boolean;
619
620
  captions?: Array<{
620
621
  id: string;
621
622
  type: string;
@@ -1068,6 +1069,8 @@ interface MetadataProps {
1068
1069
  allowHtml?: boolean;
1069
1070
  showEmptyMessage?: boolean;
1070
1071
  separator?: string;
1072
+ customLabelRender?: (item: MetadataItem['label'], fallback: React.ReactNode) => React.ReactNode;
1073
+ customValueRender?: (item: MetadataItem, fallback: React.ReactNode) => React.ReactNode;
1071
1074
  classes?: {
1072
1075
  container?: string;
1073
1076
  row?: string;
@@ -1082,7 +1085,7 @@ interface MetadataProps {
1082
1085
  tableFooter?: React.ReactNode;
1083
1086
  emptyFallback?: React.ReactNode;
1084
1087
  }
1085
- declare function Metadata({ metadata, config, labelWidth, showEmptyMessage, allowHtml, emptyFallback, classes, emptyMessage, emptyValueFallback, emptyLabelFallback, separator, tableFooter, tableHeader, }: MetadataProps): react_jsx_runtime.JSX.Element;
1088
+ declare function Metadata({ metadata, config, labelWidth, showEmptyMessage, allowHtml, emptyFallback, classes, emptyMessage, emptyValueFallback, emptyLabelFallback, separator, tableFooter, tableHeader, customLabelRender, customValueRender, }: MetadataProps): react_jsx_runtime.JSX.Element;
1086
1089
 
1087
1090
  type CombinedMetadataProps = Omit<MetadataProps, 'metadata'>;
1088
1091
  declare function CombinedMetadata(props: CombinedMetadataProps): react_jsx_runtime.JSX.Element;
@@ -1686,7 +1689,7 @@ declare const unknownResponse: UseRenderingStrategy[0];
1686
1689
  declare const unsupportedStrategy: (reason: string) => UnknownStrategy;
1687
1690
  declare const emptyStrategy: (width: number, height: number) => UseRenderingStrategy[0];
1688
1691
 
1689
- declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables, vault: CompatVault): UnknownStrategy | MediaStrategy;
1692
+ declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables, vault: CompatVault, enforceSpatial?: boolean): UnknownStrategy | MediaStrategy;
1690
1693
 
1691
1694
  declare function useAnnotation(options?: {
1692
1695
  id: string;