react-iiif-vault 0.9.3 → 0.9.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/cjs/index.js +1527 -1
- package/dist/esm/index.mjs +1462 -1
- package/dist/index.d.ts +38 -8
- package/dist/index.umd.js +1541 -2
- package/package.json +15 -15
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { Vault, VaultOptions, ReduxStore, NormalizedEntity, IIIFStore } from '@i
|
|
|
3
3
|
import * as _iiif_vault__ from '@iiif/vault/*';
|
|
4
4
|
import { CanvasNormalized, InternationalString, ImageService, AnnotationPageNormalized, ContentResource, IIIFExternalWebResource, SpecificResource, AnnotationNormalized, CollectionNormalized, Reference, ManifestNormalized, RangeNormalized, SearchService, Annotation, ExternalWebResource, W3CAnnotationTarget, Selector } from '@iiif/presentation-3';
|
|
5
5
|
import { ImageServiceLoader, ImageCandidateRequest, ImageCandidate } from '@atlas-viewer/iiif-image-api';
|
|
6
|
-
import { QueryOptions } from 'react-query';
|
|
7
6
|
import * as _iiif_vault_helpers from '@iiif/vault-helpers';
|
|
8
7
|
|
|
9
8
|
declare const AnnotationContext: React.FC<{
|
|
@@ -301,23 +300,54 @@ declare function useEventListener<T>(resource: Reference, name: SupportedEvents,
|
|
|
301
300
|
|
|
302
301
|
declare function useExistingVault(): any;
|
|
303
302
|
|
|
304
|
-
declare
|
|
303
|
+
declare type ResourceRequestOptions = {
|
|
304
|
+
noCache?: boolean;
|
|
305
|
+
};
|
|
306
|
+
declare function useExternalResource<T extends {
|
|
307
|
+
id: string;
|
|
308
|
+
}>(idOrRef: string | {
|
|
309
|
+
id: string;
|
|
310
|
+
type: string;
|
|
311
|
+
}, { noCache }?: ResourceRequestOptions): {
|
|
312
|
+
id: string;
|
|
313
|
+
requestId: string;
|
|
314
|
+
isLoaded: boolean;
|
|
315
|
+
error: any;
|
|
316
|
+
cached: boolean;
|
|
317
|
+
resource?: T;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
declare function useExternalCollection(idOrRef: string | {
|
|
321
|
+
id: string;
|
|
322
|
+
type: string;
|
|
323
|
+
}, options?: ResourceRequestOptions): {
|
|
305
324
|
id: string;
|
|
325
|
+
requestId: string;
|
|
306
326
|
isLoaded: boolean;
|
|
307
|
-
|
|
327
|
+
cached?: boolean;
|
|
328
|
+
error: any;
|
|
329
|
+
manifest?: CollectionNormalized;
|
|
308
330
|
};
|
|
309
331
|
|
|
310
|
-
declare
|
|
332
|
+
declare function useExternalManifest(idOrRef: string | {
|
|
311
333
|
id: string;
|
|
334
|
+
type: string;
|
|
335
|
+
}, options?: ResourceRequestOptions): {
|
|
336
|
+
id: string;
|
|
337
|
+
requestId: string;
|
|
312
338
|
isLoaded: boolean;
|
|
339
|
+
cached?: boolean;
|
|
313
340
|
error: any;
|
|
314
|
-
manifest?: ManifestNormalized
|
|
341
|
+
manifest?: ManifestNormalized;
|
|
315
342
|
};
|
|
316
343
|
|
|
317
|
-
|
|
344
|
+
interface ImageServiceRequestOptions {
|
|
345
|
+
cacheKey?: string;
|
|
346
|
+
}
|
|
347
|
+
declare function useImageService({ cacheKey }?: ImageServiceRequestOptions): {
|
|
318
348
|
data: ImageService | undefined;
|
|
319
349
|
isFetching: boolean;
|
|
320
|
-
status: 'error' | 'success' | 'loading';
|
|
350
|
+
status: 'error' | 'success' | 'loading' | 'idle';
|
|
321
351
|
};
|
|
322
352
|
|
|
323
353
|
declare function useImageTile(): {
|
|
@@ -441,4 +471,4 @@ declare const SimpleViewerProvider: FC<{
|
|
|
441
471
|
}>;
|
|
442
472
|
declare function useSimpleViewer(): SimpleViewerContext;
|
|
443
473
|
|
|
444
|
-
export { AnnotationContext, AnnotationPageDescription, AudioSequence, BoxSelector, CanvasContext, ChoiceDescription, CollectionContext, ComplexChoice, ComplexTimelineStrategy, ContextBridge, ImageServiceLoaderContext, ImageServiceLoaderType, ImageWithOptionalService, ManifestContext, MediaStrategy, Paintables, ParsedSelector, PointSelector, RangeContext, ReactVaultContext, RenderingStrategy, ResourceContextType, ResourceProvider, ResourceReactContext, SimpleViewerProvider, SimpleViewerReactContext, SingleAudio, SingleChoice, SingleImageStrategy, SingleVideo, StrategyActions, SupportedSelector, SupportedSelectors, SupportedTarget, TemporalBoxSelector, TemporalSelector, UnknownStrategy, UseRenderingStrategy, UseRenderingStrategyOptions, VaultActivatedAnnotation, VaultProvider, VideoSequence, VisibleCanvasReactContext, emptyActions, expandTarget, flattenAnnotationPageIds, getImageStrategy, getPaintables, parseSelector, parseSpecificResource, unknownResponse, unsupportedStrategy, useAnnotation, useAnnotationPageManager, useAnnotationsAtTime, useCanvas, useCanvasClock, useCollection, useContextBridge, useDispatch, useEventListener, useExistingVault, useExternalCollection, useExternalManifest, useImageService, useImageServiceLoader, useImageTile, useLoadImageService, useManifest, usePaintables, usePaintingAnnotations, useRange, useRenderingStrategy, useResourceContext, useResourceEvents, useResources, useSearchService, useSimpleViewer, useStyleHelper, useStyles, useThumbnail, useVault, useVaultEffect, useVaultSelector, useVirtualAnnotationPage, useVisibleCanvases };
|
|
474
|
+
export { AnnotationContext, AnnotationPageDescription, AudioSequence, BoxSelector, CanvasContext, ChoiceDescription, CollectionContext, ComplexChoice, ComplexTimelineStrategy, ContextBridge, ImageServiceLoaderContext, ImageServiceLoaderType, ImageServiceRequestOptions, ImageWithOptionalService, ManifestContext, MediaStrategy, Paintables, ParsedSelector, PointSelector, RangeContext, ReactVaultContext, RenderingStrategy, ResourceContextType, ResourceProvider, ResourceReactContext, ResourceRequestOptions, SimpleViewerProvider, SimpleViewerReactContext, SingleAudio, SingleChoice, SingleImageStrategy, SingleVideo, StrategyActions, SupportedSelector, SupportedSelectors, SupportedTarget, TemporalBoxSelector, TemporalSelector, UnknownStrategy, UseRenderingStrategy, UseRenderingStrategyOptions, VaultActivatedAnnotation, VaultProvider, VideoSequence, VisibleCanvasReactContext, emptyActions, expandTarget, flattenAnnotationPageIds, getImageStrategy, getPaintables, parseSelector, parseSpecificResource, unknownResponse, unsupportedStrategy, useAnnotation, useAnnotationPageManager, useAnnotationsAtTime, useCanvas, useCanvasClock, useCollection, useContextBridge, useDispatch, useEventListener, useExistingVault, useExternalCollection, useExternalManifest, useExternalResource, useImageService, useImageServiceLoader, useImageTile, useLoadImageService, useManifest, usePaintables, usePaintingAnnotations, useRange, useRenderingStrategy, useResourceContext, useResourceEvents, useResources, useSearchService, useSimpleViewer, useStyleHelper, useStyles, useThumbnail, useVault, useVaultEffect, useVaultSelector, useVirtualAnnotationPage, useVisibleCanvases };
|