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 +6 -3
- package/dist/bundle.global.js +24 -24
- package/dist/canvas-panel.cjs +6 -6
- 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-FBET7GLW.js +1 -0
- package/dist/{chunk-SNWQWQTN.js → chunk-MUASBCAU.js} +1 -1
- package/dist/{index-Btmqi4an.d.cts → index-Bxw5USbW.d.cts} +1 -1
- package/dist/{index-Cxmpcndt.d.ts → index-kvJxjxZG.d.ts} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +1 -1
- package/dist/{useRenderingStrategy-CHg8UC3-.d.cts → useRenderingStrategy-Bg8-k9-n.d.cts} +1 -0
- package/dist/{useRenderingStrategy-CHg8UC3-.d.ts → useRenderingStrategy-Bg8-k9-n.d.ts} +1 -0
- package/dist/{utils-B4O1xptf.d.ts → utils-CHozUicY.d.ts} +1 -1
- package/dist/{utils-C0dpk-mp.d.cts → utils-CMAqRpk_.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 +1 -1
- package/dist/chunk-223VJXTE.js +0 -1
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;
|