@knaw-huc/osd-iiif-viewer 0.1.4 → 0.1.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/README.md CHANGED
@@ -10,7 +10,7 @@ Current features (WIP):
10
10
 
11
11
  ## Minimal example
12
12
  ```tsx
13
- import {useEffect} from 'react';
13
+ import { useEffect } from 'react';
14
14
  import {
15
15
  Viewer,
16
16
  ViewerProvider,
@@ -32,13 +32,13 @@ function View() {
32
32
  loadManifest('/manifest.json');
33
33
  }, [loadManifest]);
34
34
 
35
- if (!manifest.data) {
35
+ if (manifest.isLoading || manifest.error) {
36
36
  return null;
37
37
  }
38
38
 
39
39
  return (
40
- <div style={{width: '100%', height: '100vh'}}>
41
- <Viewerer/>
40
+ <div style={{ width: '100%', height: '100vh' }}>
41
+ <Viewer/>
42
42
  </div>
43
43
  );
44
44
  }
package/dist/index.d.ts CHANGED
@@ -8,4 +8,8 @@ export { useViewerReady } from './useViewerReady';
8
8
  export { useViewerStore } from './useViewerStore';
9
9
  export { useManifest, useLoadManifest } from './manifest/useManifest';
10
10
  export { useCanvas } from './manifest/useCanvas';
11
- export type { ViewerManifest, ViewerCanvas, ViewerRange, ViewerMetadata } from './manifest/model';
11
+ export { useVault } from './manifest/useVault';
12
+ export { findTileSource } from './manifest/findTileSource';
13
+ export { findThumbnail } from './manifest/findThumbnail';
14
+ export { getImageServiceId } from './manifest/getImageServiceId';
15
+ export { getAnnotationPageIds } from './manifest/getAnnotationPageIds.ts';