react-iiif-vault 0.9.21 → 1.0.0

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.
Files changed (66) hide show
  1. package/.build/types/canvas-panel/Viewer.d.ts +2 -1
  2. package/.build/types/canvas-panel/context/overlays.d.ts +3 -0
  3. package/.build/types/canvas-panel/context/world-size.d.ts +2 -0
  4. package/.build/types/canvas-panel/index.d.ts +35 -12
  5. package/.build/types/canvas-panel/render/AnnotationPage.d.ts +2 -1
  6. package/.build/types/canvas-panel/render/Audio.d.ts +6 -1
  7. package/.build/types/canvas-panel/render/Canvas.d.ts +10 -4
  8. package/.build/types/canvas-panel/render/DefaultCanvasFallback.d.ts +3 -2
  9. package/.build/types/canvas-panel/render/Image.d.ts +4 -1
  10. package/.build/types/canvas-panel/render/Model.d.ts +5 -1
  11. package/.build/types/canvas-panel/render/Video.d.ts +9 -3
  12. package/.build/types/canvas-panel/render/VideoYouTube.d.ts +12 -0
  13. package/.build/types/context/ContextBridge.d.ts +2 -2
  14. package/.build/types/context/VaultContext.d.ts +1 -1
  15. package/.build/types/context/VisibleCanvasContext.d.ts +1 -1
  16. package/.build/types/features/rendering-strategy/3d-strategy.d.ts +2 -3
  17. package/.build/types/features/rendering-strategy/audio-strategy.d.ts +2 -2
  18. package/.build/types/features/rendering-strategy/image-strategy.d.ts +2 -3
  19. package/.build/types/features/rendering-strategy/rendering-utils.d.ts +3 -16
  20. package/.build/types/features/rendering-strategy/resource-types.d.ts +13 -3
  21. package/.build/types/features/rendering-strategy/strategies.d.ts +3 -3
  22. package/.build/types/features/rendering-strategy/textual-content-strategy.d.ts +3 -4
  23. package/.build/types/features/rendering-strategy/video-strategy.d.ts +2 -2
  24. package/.build/types/future-helpers/ranges.d.ts +3 -2
  25. package/.build/types/future-helpers/sequences.d.ts +3 -2
  26. package/.build/types/hooks/useAnnotation.d.ts +1 -1
  27. package/.build/types/hooks/useAnnotationPage.d.ts +1 -1
  28. package/.build/types/hooks/useAnnotationsAtTime.d.ts +1 -1
  29. package/.build/types/hooks/useCanvas.d.ts +1 -1
  30. package/.build/types/hooks/useCanvasSubset.d.ts +1 -1
  31. package/.build/types/hooks/useCollection.d.ts +1 -1
  32. package/.build/types/hooks/useDispatch.d.ts +2 -2
  33. package/.build/types/hooks/useExternalCollection.d.ts +1 -1
  34. package/.build/types/hooks/useExternalManifest.d.ts +1 -1
  35. package/.build/types/hooks/useManifest.d.ts +1 -1
  36. package/.build/types/hooks/usePaintables.d.ts +1 -1
  37. package/.build/types/hooks/usePaintingAnnotations.d.ts +1 -1
  38. package/.build/types/hooks/useRange.d.ts +1 -1
  39. package/.build/types/hooks/useResourceEvents.d.ts +1 -1
  40. package/.build/types/hooks/useStyleHelper.d.ts +1 -1
  41. package/.build/types/hooks/useVault.d.ts +1 -1
  42. package/.build/types/hooks/useVaultEffect.d.ts +1 -1
  43. package/.build/types/hooks/useVaultSelector.d.ts +1 -1
  44. package/.build/types/hooks/useVirtualAnnotationPage.d.ts +3 -2
  45. package/.build/types/hooks/useVirtualAnnotationPageContext.d.ts +665 -3
  46. package/.build/types/index.d.ts +2 -3
  47. package/.build/types/utility/flatten-annotation-page-ids.d.ts +1 -1
  48. package/.build/types/utility/i18n-utils.d.ts +28 -0
  49. package/.build/types/viewers/SimpleViewerContext.hooks.d.ts +4 -1
  50. package/dist/bundle/cjs/index.js +87 -5
  51. package/dist/bundle/cjs/index.js.map +1 -1
  52. package/dist/bundle/esm/index.mjs +5310 -2795
  53. package/dist/bundle/esm/index.mjs.map +1 -1
  54. package/dist/canvas-panel/cjs/canvas-panel.js +86 -5
  55. package/dist/canvas-panel/cjs/canvas-panel.js.map +1 -1
  56. package/dist/canvas-panel/esm/canvas-panel.mjs +5156 -2365
  57. package/dist/canvas-panel/esm/canvas-panel.mjs.map +1 -1
  58. package/dist/index.umd.js +287 -31
  59. package/dist/index.umd.js.map +1 -1
  60. package/dist/react17/cjs/index.js +87 -5
  61. package/dist/react17/cjs/index.js.map +1 -1
  62. package/dist/react17/esm/index.mjs +5310 -2800
  63. package/dist/react17/esm/index.mjs.map +1 -1
  64. package/package.json +21 -28
  65. package/.build/types/context/PortalContext.d.ts +0 -8
  66. package/.build/types/features/rendering-strategy/choice-types.d.ts +0 -15
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { AtlasProps } from '@atlas-viewer/atlas';
3
- export declare function Viewer({ children, errorFallback, outerContainerProps, ...props }: AtlasProps & {
3
+ export declare function Viewer({ children, errorFallback, outerContainerProps, worldScale: _worldScale, ...props }: AtlasProps & {
4
4
  height?: number | string;
5
5
  width?: number | string;
6
6
  resizeHash?: number;
@@ -8,6 +8,7 @@ export declare function Viewer({ children, errorFallback, outerContainerProps, .
8
8
  outerContainerProps?: any;
9
9
  aspectRatio?: number;
10
10
  errorFallback?: any;
11
+ worldScale?: number;
11
12
  } & {
12
13
  children: ReactNode;
13
14
  }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const SetOverlaysReactContext: import("react").Context<(key: string, element: any | null, props?: any) => void>;
2
+ export declare const SetPortalReactContext: import("react").Context<(key: string, element: any | null, props?: any) => void>;
3
+ export declare function useOverlay(type: 'portal' | 'overlay' | 'none', key: string, element: any, props: any, deps?: any[]): void;
@@ -0,0 +1,2 @@
1
+ export declare const WorldSizeContext: import("react").Context<(canvasId: string, size: number) => void>;
2
+ export declare function useWorldSize(size: number): void;
@@ -1,20 +1,43 @@
1
+ import { FC, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
1
2
  import { Viewer } from './Viewer';
2
- import { RenderCanvas } from './render/Canvas';
3
+ import { RenderAnnotation } from './render/Annotation';
4
+ import { RenderAnnotationPage } from './render/AnnotationPage';
5
+ import { CanvasProps, RenderCanvas } from './render/Canvas';
3
6
  import { RenderImage } from './render/Image';
4
7
  import { CanvasBackground } from './render/CanvasBackground';
5
- export declare const CanvasPanel: {
8
+ import { SimpleViewerContext } from '../viewers/SimpleViewerContext.types';
9
+ import { Audio, AudioHTML } from './render/Audio';
10
+ import { Video, VideoHTML } from './render/Video';
11
+ import { Model, ModelHTML } from './render/Model';
12
+ interface CanvasPanelProps {
13
+ manifest: string;
14
+ startCanvas?: string;
15
+ rangeId?: string;
16
+ pagingEnabled?: boolean;
17
+ header?: ReactNode;
18
+ children?: ReactNode;
19
+ height?: number;
20
+ spacing?: number;
21
+ components?: {
22
+ ViewerControls?: FC;
23
+ MediaControls?: FC;
24
+ };
25
+ canvasProps?: Omit<Partial<CanvasProps>, 'x'>;
26
+ annotations?: ReactNode;
27
+ }
28
+ declare type CanvasPanelType = ForwardRefExoticComponent<CanvasPanelProps & RefAttributes<SimpleViewerContext>> & {
6
29
  RenderImage: typeof RenderImage;
7
30
  RenderCanvas: typeof RenderCanvas;
8
- RenderAnnotationPage: import("react").FC<{
9
- page: import("@iiif/presentation-3").AnnotationPageNormalized | import("@iiif/presentation-3").AnnotationPage;
10
- className?: string | undefined;
11
- }>;
12
- RenderAnnotation: import("react").FC<{
13
- id: string;
14
- className?: string | undefined;
15
- style?: import("@atlas-viewer/atlas/*").BoxStyle | undefined;
16
- interactive?: boolean | undefined;
17
- }>;
31
+ RenderAnnotationPage: typeof RenderAnnotationPage;
32
+ RenderAnnotation: typeof RenderAnnotation;
18
33
  Viewer: typeof Viewer;
19
34
  CanvasBackground: typeof CanvasBackground;
35
+ Audio: typeof Audio;
36
+ Video: typeof Video;
37
+ Model: typeof Model;
38
+ AudioHTML: typeof AudioHTML;
39
+ VideoHTML: typeof VideoHTML;
40
+ ModelHTML: typeof ModelHTML;
20
41
  };
42
+ export declare const CanvasPanel: CanvasPanelType;
43
+ export {};
@@ -1,4 +1,5 @@
1
- import { AnnotationPage, AnnotationPageNormalized } from '@iiif/presentation-3';
1
+ import { AnnotationPage } from '@iiif/presentation-3';
2
+ import { AnnotationPageNormalized } from '@iiif/presentation-3-normalized';
2
3
  import { FC } from 'react';
3
4
  export declare const RenderAnnotationPage: FC<{
4
5
  page: AnnotationPage | AnnotationPageNormalized;
@@ -1,6 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { SingleAudio } from '../../features/rendering-strategy/resource-types';
3
- export declare function Audio({ media, children }: {
3
+ export declare function AudioHTML({ media, children }: {
4
4
  media: SingleAudio;
5
5
  children: ReactNode;
6
6
  }): JSX.Element;
7
+ export declare function Audio({ media, mediaControlsDeps, children, }: {
8
+ media: SingleAudio;
9
+ mediaControlsDeps?: any[];
10
+ children: ReactNode;
11
+ }): null;
@@ -1,11 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { BoxStyle } from '@atlas-viewer/atlas';
3
- import { ChoiceDescription } from '../../features/rendering-strategy/choice-types';
4
3
  import { StrategyActions } from '../../hooks/useRenderingStrategy';
5
4
  import { EmptyStrategy, MediaStrategy, RenderingStrategy } from '../../features/rendering-strategy/strategies';
6
5
  import { SingleImageStrategy } from '../../features/rendering-strategy/image-strategy';
7
6
  import { ImageWithOptionalService } from '../../features/rendering-strategy/resource-types';
8
- declare type CanvasProps = {
7
+ import { ChoiceDescription } from '@iiif/helpers';
8
+ export declare type CanvasProps = {
9
9
  x?: number;
10
10
  y?: number;
11
11
  onCreated?: any;
@@ -16,13 +16,19 @@ declare type CanvasProps = {
16
16
  opacity?: number;
17
17
  }>;
18
18
  isStatic?: boolean;
19
+ keepCanvasScale?: boolean;
19
20
  children?: ReactNode;
20
21
  renderViewerControls?: (strategy: SingleImageStrategy | EmptyStrategy) => ReactNode;
22
+ viewControlsDeps?: any[];
21
23
  renderMediaControls?: (strategy: MediaStrategy) => ReactNode;
24
+ mediaControlsDeps?: any[];
22
25
  strategies?: Array<RenderingStrategy['type']>;
23
26
  backgroundStyle?: BoxStyle;
24
27
  alwaysShowBackground?: boolean;
28
+ enableSizes?: boolean;
29
+ enableYouTube?: boolean;
30
+ ignoreSize?: boolean;
31
+ throwOnUnknown?: boolean;
25
32
  onClickPaintingAnnotation?: (id: string, image: ImageWithOptionalService, e: any) => void;
26
33
  };
27
- export declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, strategies, backgroundStyle, alwaysShowBackground, onClickPaintingAnnotation, children, }: CanvasProps): JSX.Element | null;
28
- export {};
34
+ export declare function RenderCanvas({ x, y, onChoiceChange, registerActions, defaultChoices, isStatic, renderViewerControls, renderMediaControls, viewControlsDeps, mediaControlsDeps, strategies, throwOnUnknown, backgroundStyle, alwaysShowBackground, keepCanvasScale, enableSizes, enableYouTube, onClickPaintingAnnotation, children, }: CanvasProps): JSX.Element | null;
@@ -1,5 +1,6 @@
1
- export declare function DefaultCanvasFallback({ width, style, height }: {
1
+ import { FallbackProps } from 'react-error-boundary';
2
+ export declare function DefaultCanvasFallback({ width, style, height, error, resetErrorBoundary, }: {
2
3
  width?: number;
3
4
  height?: number;
4
5
  style?: any;
5
- }): JSX.Element;
6
+ } & FallbackProps): JSX.Element;
@@ -1,11 +1,14 @@
1
1
  import { ImageCandidate } from '@atlas-viewer/iiif-image-api';
2
2
  import { ReactNode } from 'react';
3
3
  import { ImageWithOptionalService } from '../../features/rendering-strategy/resource-types';
4
- export declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, onClick, }: {
4
+ import { BoxSelector } from '@iiif/helpers';
5
+ export declare function RenderImage({ id, image, thumbnail, isStatic, x, y, children, selector, onClick, enableSizes, }: {
5
6
  id: string;
6
7
  image: ImageWithOptionalService;
7
8
  thumbnail?: ImageCandidate;
8
9
  isStatic?: boolean;
10
+ enableSizes?: boolean;
11
+ selector?: BoxSelector;
9
12
  x?: number;
10
13
  y?: number;
11
14
  children?: ReactNode;
@@ -1,3 +1,7 @@
1
- export declare function Model({ model }: {
1
+ export declare function ModelHTML({ model }: {
2
2
  model: any;
3
3
  }): JSX.Element;
4
+ export declare function Model({ model, name }: {
5
+ model: any;
6
+ name?: string;
7
+ }): null;
@@ -1,6 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, RefObject } from 'react';
2
2
  import { SingleVideo } from '../../features/rendering-strategy/resource-types';
3
- export declare function Video({ media, children }: {
3
+ export declare function VideoHTML({ element, media, playPause, }: {
4
+ element: RefObject<any>;
4
5
  media: SingleVideo;
5
- children: ReactNode;
6
+ playPause: () => void;
6
7
  }): JSX.Element;
8
+ export declare function Video({ media, mediaControlsDeps, children, }: {
9
+ media: SingleVideo;
10
+ mediaControlsDeps?: any[];
11
+ children: ReactNode;
12
+ }): null;
@@ -0,0 +1,12 @@
1
+ import { SingleYouTubeVideo } from '../../features/rendering-strategy/resource-types';
2
+ import { ReactNode, RefObject } from 'react';
3
+ export declare function VideoYouTubeHTML({ element, media, playPause, }: {
4
+ element: RefObject<any>;
5
+ media: SingleYouTubeVideo;
6
+ playPause: () => void;
7
+ }): JSX.Element | null;
8
+ export declare function VideoYouTube({ media, mediaControlsDeps, children, }: {
9
+ media: SingleYouTubeVideo;
10
+ mediaControlsDeps?: any[];
11
+ children: ReactNode;
12
+ }): null;
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare function useContextBridge(): {
3
3
  VaultContext: {
4
- vault: import("@iiif/vault/*").Vault | null;
5
- setVaultInstance: (vault: import("@iiif/vault/*").Vault) => void;
4
+ vault: import("@iiif/helpers/vault").Vault | null;
5
+ setVaultInstance: (vault: import("@iiif/helpers/vault").Vault) => void;
6
6
  };
7
7
  ResourceContext: import("./ResourceContext").ResourceContextType;
8
8
  SimpleViewerReactContext: import("..").SimpleViewerContext;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { Vault, VaultOptions } from '@iiif/vault';
2
+ import { Vault, VaultOptions } from '@iiif/helpers/vault';
3
3
  import { ResourceContextType } from './ResourceContext';
4
4
  export declare const ReactVaultContext: React.Context<{
5
5
  vault: Vault | null;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { CanvasNormalized } from '@iiif/presentation-3';
2
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
3
3
  export declare const VisibleCanvasReactContext: React.Context<string[]>;
4
4
  export declare function useVisibleCanvases(): CanvasNormalized[];
@@ -1,9 +1,8 @@
1
- import { CanvasNormalized } from '@iiif/presentation-3';
2
- import { Paintables } from './rendering-utils';
1
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
3
2
  import { AnnotationPageDescription } from './resource-types';
4
- import { ChoiceDescription } from './choice-types';
5
3
  import { ExternalWebResource } from '@iiif/presentation-3';
6
4
  import { RenderingStrategy } from './strategies';
5
+ import { ChoiceDescription, Paintables } from '@iiif/helpers';
7
6
  export declare type Single3DModelStrategy = {
8
7
  type: '3d-model';
9
8
  model: ExternalWebResource;
@@ -1,3 +1,3 @@
1
- import { CanvasNormalized } from '@iiif/presentation-3';
2
- import { Paintables } from './rendering-utils';
1
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
2
+ import { Paintables } from '@iiif/helpers';
3
3
  export declare function getAudioStrategy(canvas: CanvasNormalized, paintables: Paintables): import("./strategies").RenderingStrategy;
@@ -1,8 +1,7 @@
1
- import { CanvasNormalized } from '@iiif/presentation-3';
1
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
2
2
  import { ImageServiceLoaderType } from '../../hooks/useLoadImageService';
3
3
  import { AnnotationPageDescription, ImageWithOptionalService } from './resource-types';
4
- import { Paintables } from './rendering-utils';
5
- import { ChoiceDescription } from './choice-types';
4
+ import { ChoiceDescription, Paintables } from '@iiif/helpers';
6
5
  export declare type SingleImageStrategy = {
7
6
  type: 'images';
8
7
  image: ImageWithOptionalService;
@@ -1,21 +1,8 @@
1
- import { AnnotationNormalized, CanvasNormalized, ContentResource, IIIFExternalWebResource, PointSelector, SpecificResource, W3CAnnotationTarget } from '@iiif/presentation-3';
2
- import { Vault } from '@iiif/vault';
3
- import { ChoiceDescription } from './choice-types';
1
+ import { ContentResource, PointSelector, W3CAnnotationTarget } from '@iiif/presentation-3';
2
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
4
3
  import { UseRenderingStrategy } from '../../hooks/useRenderingStrategy';
5
- import { BoxSelector, SupportedTarget, TemporalBoxSelector } from '@iiif/vault-helpers';
4
+ import { BoxSelector, SupportedTarget, TemporalBoxSelector } from '@iiif/helpers';
6
5
  export declare function parseSpecificResource(resource: ContentResource): any[];
7
- export interface Paintables {
8
- choice: ChoiceDescription | null;
9
- types: string[];
10
- items: Array<{
11
- annotationId: string;
12
- type: string;
13
- resource: IIIFExternalWebResource | SpecificResource;
14
- target: any;
15
- selector: any;
16
- }>;
17
- }
18
- export declare function getPaintables(vault: Vault, paintingAnnotations: AnnotationNormalized[], enabledChoices: string[]): Paintables;
19
6
  export declare function getParsedTargetSelector(canvas: CanvasNormalized, target: W3CAnnotationTarget | W3CAnnotationTarget[]): [TemporalBoxSelector | BoxSelector | PointSelector | null, SupportedTarget['source']];
20
7
  export declare const emptyActions: {
21
8
  makeChoice: () => void;
@@ -1,5 +1,6 @@
1
- import { AnnotationPageNormalized, ImageService } from '@iiif/presentation-3';
2
- import { BoxSelector, TemporalBoxSelector, TemporalSelector } from '@iiif/vault-helpers/annotation-targets';
1
+ import { ImageService } from '@iiif/presentation-3';
2
+ import { AnnotationPageNormalized } from '@iiif/presentation-3-normalized';
3
+ import { BoxSelector, TemporalBoxSelector, TemporalSelector } from '@iiif/helpers/annotation-targets';
3
4
  export declare type ImageWithOptionalService = {
4
5
  id: string;
5
6
  annotationId: string;
@@ -12,7 +13,7 @@ export declare type ImageWithOptionalService = {
12
13
  height: number;
13
14
  }>;
14
15
  target: BoxSelector | TemporalBoxSelector;
15
- selector: BoxSelector;
16
+ selector?: BoxSelector;
16
17
  };
17
18
  export declare type SingleAudio = {
18
19
  type: 'Sound';
@@ -23,6 +24,15 @@ export declare type SingleAudio = {
23
24
  target: TemporalSelector;
24
25
  selector: TemporalSelector;
25
26
  };
27
+ export declare type SingleYouTubeVideo = {
28
+ type: 'VideoYouTube';
29
+ annotationId: string;
30
+ url: string;
31
+ youTubeId: string;
32
+ duration: number;
33
+ target: TemporalSelector | TemporalBoxSelector;
34
+ selector: TemporalSelector | TemporalBoxSelector;
35
+ };
26
36
  export declare type SingleVideo = {
27
37
  type: 'Video';
28
38
  annotationId: string;
@@ -1,11 +1,11 @@
1
- import { AnnotationPageDescription, AudioSequence, ImageWithOptionalService, SingleAudio, SingleVideo, VideoSequence } from './resource-types';
2
- import { ChoiceDescription } from './choice-types';
1
+ import { ChoiceDescription } from '@iiif/helpers';
2
+ import { AnnotationPageDescription, AudioSequence, ImageWithOptionalService, SingleAudio, SingleVideo, SingleYouTubeVideo, VideoSequence } from './resource-types';
3
3
  import { SingleImageStrategy } from './image-strategy';
4
4
  import { Single3DModelStrategy } from './3d-strategy';
5
5
  import { TextualContentStrategy } from './textual-content-strategy';
6
6
  export declare type MediaStrategy = {
7
7
  type: 'media';
8
- media: SingleAudio | SingleVideo | AudioSequence | VideoSequence;
8
+ media: SingleAudio | SingleVideo | AudioSequence | VideoSequence | SingleYouTubeVideo;
9
9
  choice?: ChoiceDescription;
10
10
  annotations?: AnnotationPageDescription;
11
11
  };
@@ -1,9 +1,8 @@
1
- import { CanvasNormalized, InternationalString } from '@iiif/presentation-3';
2
- import { ChoiceDescription } from './choice-types';
1
+ import { InternationalString } from '@iiif/presentation-3';
2
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
3
3
  import { AnnotationPageDescription } from './resource-types';
4
- import { Paintables } from './rendering-utils';
5
4
  import { RenderingStrategy } from './strategies';
6
- import { SupportedTarget } from '@iiif/vault-helpers';
5
+ import { ChoiceDescription, Paintables, SupportedTarget } from '@iiif/helpers';
7
6
  export declare type TextualContentStrategy = {
8
7
  type: 'textual-content';
9
8
  items: {
@@ -1,3 +1,3 @@
1
- import { CanvasNormalized } from '@iiif/presentation-3';
2
- import { Paintables } from './rendering-utils';
1
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
2
+ import { Paintables } from '@iiif/helpers';
3
3
  export declare function getVideoStrategy(canvas: CanvasNormalized, paintables: Paintables): import("./strategies").RenderingStrategy;
@@ -1,5 +1,6 @@
1
- import { Vault } from '@iiif/vault';
2
- import { ManifestNormalized, RangeNormalized, Reference } from '@iiif/presentation-3';
1
+ import { Vault } from '@iiif/helpers/vault';
2
+ import { ManifestNormalized, RangeNormalized } from '@iiif/presentation-3-normalized';
3
+ import { Reference } from '@iiif/presentation-3';
3
4
  export declare function findFirstCanvasFromRange(vault: Vault, range: RangeNormalized): null | Reference<'Canvas'>;
4
5
  export declare function findAllCanvasesInRange(vault: Vault, range: RangeNormalized): Array<Reference<'Canvas'>>;
5
6
  export declare function findManifestSelectedRange(vault: Vault, manifest: ManifestNormalized, canvasId: string): null | RangeNormalized;
@@ -1,5 +1,6 @@
1
- import { ManifestNormalized, RangeNormalized, Reference } from '@iiif/presentation-3';
2
- import { Vault } from '@iiif/vault';
1
+ import { ManifestNormalized, RangeNormalized } from '@iiif/presentation-3-normalized';
2
+ import { Reference } from '@iiif/presentation-3';
3
+ import { Vault } from '@iiif/helpers/vault';
3
4
  export declare function getVisibleCanvasesFromCanvasId(vault: Vault, manifestOrRange: ManifestNormalized | RangeNormalized, canvasId: string | null, preventPaged?: boolean): Reference<'Canvas'>[];
4
5
  export declare function getManifestSequence(vault: Vault, manifestOrRange: ManifestNormalized | RangeNormalized, { disablePaging, skipNonPaged }?: {
5
6
  disablePaging?: boolean;
@@ -1,4 +1,4 @@
1
- import { AnnotationNormalized } from '@iiif/presentation-3';
1
+ import { AnnotationNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useAnnotation(options?: {
3
3
  id: string;
4
4
  }): AnnotationNormalized | undefined;
@@ -1,4 +1,4 @@
1
- import { AnnotationPageNormalized } from '@iiif/presentation-3';
1
+ import { AnnotationPageNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useAnnotationPage(options?: {
3
3
  id: string;
4
4
  }): AnnotationPageNormalized | undefined;
@@ -1,4 +1,4 @@
1
- import { AnnotationNormalized } from '@iiif/presentation-3';
1
+ import { AnnotationNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useAnnotationsAtTime(time: number, options?: {
3
3
  canvasId?: string;
4
4
  }): AnnotationNormalized[];
@@ -1,4 +1,4 @@
1
- import { CanvasNormalized } from '@iiif/presentation-3';
1
+ import { CanvasNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useCanvas(options?: {
3
3
  id: string;
4
4
  }): CanvasNormalized | undefined;
@@ -1,2 +1,2 @@
1
1
  import { Reference } from '@iiif/presentation-3';
2
- export declare function useCanvasSubset(idsOrRefs?: Array<string | Reference>): Reference<"Canvas">[];
2
+ export declare function useCanvasSubset(idsOrRefs?: Array<string | Reference>): Reference<'Canvas'>[];
@@ -1,4 +1,4 @@
1
- import { CollectionNormalized } from '@iiif/presentation-3';
1
+ import { CollectionNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useCollection(options: {
3
3
  id: string;
4
4
  }): CollectionNormalized | undefined;
@@ -1,2 +1,2 @@
1
- import { ReduxStore } from '@iiif/vault';
2
- export declare function useDispatch(): ReduxStore['dispatch'];
1
+ import { VaultZustandStore } from '@iiif/helpers/vault/store';
2
+ export declare function useDispatch(): VaultZustandStore['dispatch'];
@@ -1,4 +1,4 @@
1
- import { CollectionNormalized } from '@iiif/presentation-3';
1
+ import { CollectionNormalized } from '@iiif/presentation-3-normalized';
2
2
  import { ResourceRequestOptions } from './useExternalResource';
3
3
  export declare function useExternalCollection(idOrRef: string | {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { ManifestNormalized } from '@iiif/presentation-3';
1
+ import { ManifestNormalized } from '@iiif/presentation-3-normalized';
2
2
  import { ResourceRequestOptions } from './useExternalResource';
3
3
  export declare function useExternalManifest(idOrRef: string | {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { ManifestNormalized } from '@iiif/presentation-3';
1
+ import { ManifestNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useManifest(options?: {
3
3
  id: string;
4
4
  }): ManifestNormalized | undefined;
@@ -1,7 +1,7 @@
1
1
  export declare function usePaintables(options?: {
2
2
  defaultChoices?: string[];
3
3
  enableSingleAnnotation?: boolean;
4
- }, deps?: any[]): readonly [import("../features/rendering-strategy/rendering-utils").Paintables, {
4
+ }, deps?: any[]): readonly [import("@iiif/helpers/painting-annotations").Paintables, {
5
5
  makeChoice: (id: string, { deselectOthers, deselect }?: {
6
6
  deselectOthers?: boolean | undefined;
7
7
  deselect?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { AnnotationNormalized } from '@iiif/presentation-3';
1
+ import { AnnotationNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function usePaintingAnnotations(options?: {
3
3
  canvasId?: string;
4
4
  enableSingleAnnotation?: boolean;
@@ -1,4 +1,4 @@
1
- import { RangeNormalized } from '@iiif/presentation-3';
1
+ import { RangeNormalized } from '@iiif/presentation-3-normalized';
2
2
  export declare function useRange(options?: {
3
3
  id: string;
4
4
  }): RangeNormalized | undefined;
@@ -1,3 +1,3 @@
1
- import { NormalizedEntity } from '@iiif/vault';
1
+ import { NormalizedEntity } from '@iiif/helpers/vault';
2
2
  import { Reference } from '@iiif/presentation-3';
3
3
  export declare function useResourceEvents<T extends NormalizedEntity>(resource?: Reference, scope?: string[]): any;
@@ -1 +1 @@
1
- export declare function useStyleHelper(): import("@iiif/vault-helpers/styles").StyledHelper<import("@iiif/vault-helpers/styles").StyleDefinition>;
1
+ export declare function useStyleHelper(): import("@iiif/helpers/styles").StyledHelper<import("@iiif/helpers/styles").StyleDefinition>;
@@ -1,2 +1,2 @@
1
- import { Vault } from '@iiif/vault';
1
+ import { Vault } from '@iiif/helpers/vault';
2
2
  export declare const useVault: () => Vault;
@@ -1,2 +1,2 @@
1
- import { Vault } from '@iiif/vault';
1
+ import { Vault } from '@iiif/helpers/vault';
2
2
  export declare const useVaultEffect: (callback: (vault: Vault) => void, deps?: any[]) => void;
@@ -1,2 +1,2 @@
1
- import { IIIFStore, Vault } from '@iiif/vault';
1
+ import { IIIFStore, Vault } from '@iiif/helpers/vault';
2
2
  export declare function useVaultSelector<T>(selector: (state: IIIFStore, vault: Vault) => T, deps?: any[]): T;
@@ -1,5 +1,6 @@
1
- import { Annotation, AnnotationNormalized, AnnotationPageNormalized } from '@iiif/presentation-3';
2
- import { Vault } from '@iiif/vault';
1
+ import { Annotation } from '@iiif/presentation-3';
2
+ import { AnnotationNormalized, AnnotationPageNormalized } from '@iiif/presentation-3-normalized';
3
+ import { Vault } from '@iiif/helpers/vault';
3
4
  export interface VaultActivatedAnnotation {
4
5
  __vault?: Vault;
5
6
  bindToVault(vault: Vault): void;