react-iiif-vault 2.0.4 → 2.0.5
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 +4 -2
- package/dist/bundle.global.js +20 -20
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/package.json +1 -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';
|
|
@@ -1068,6 +1068,8 @@ interface MetadataProps {
|
|
|
1068
1068
|
allowHtml?: boolean;
|
|
1069
1069
|
showEmptyMessage?: boolean;
|
|
1070
1070
|
separator?: string;
|
|
1071
|
+
customLabelRender?: (item: MetadataItem['label'], fallback: React.ReactNode) => React.ReactNode;
|
|
1072
|
+
customValueRender?: (item: MetadataItem, fallback: React.ReactNode) => React.ReactNode;
|
|
1071
1073
|
classes?: {
|
|
1072
1074
|
container?: string;
|
|
1073
1075
|
row?: string;
|
|
@@ -1082,7 +1084,7 @@ interface MetadataProps {
|
|
|
1082
1084
|
tableFooter?: React.ReactNode;
|
|
1083
1085
|
emptyFallback?: React.ReactNode;
|
|
1084
1086
|
}
|
|
1085
|
-
declare function Metadata({ metadata, config, labelWidth, showEmptyMessage, allowHtml, emptyFallback, classes, emptyMessage, emptyValueFallback, emptyLabelFallback, separator, tableFooter, tableHeader, }: MetadataProps): react_jsx_runtime.JSX.Element;
|
|
1087
|
+
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
1088
|
|
|
1087
1089
|
type CombinedMetadataProps = Omit<MetadataProps, 'metadata'>;
|
|
1088
1090
|
declare function CombinedMetadata(props: CombinedMetadataProps): react_jsx_runtime.JSX.Element;
|