@knaw-huc/osd-iiif-viewer 0.4.0 → 0.5.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 (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -11
package/dist/index.js CHANGED
@@ -206,7 +206,7 @@ function Viewer(props) {
206
206
  useEffect(openTileSource, [tileSource, store, isContainerReady]);
207
207
  function openTileSource() {
208
208
  const viewer = store.getState().viewer;
209
- !viewer || !tileSource || viewer.open(tileSource);
209
+ !viewer || !tileSource || viewer.open({ tileSource });
210
210
  }
211
211
  useEffect(resizeViewerOnContainerResize, [store]);
212
212
  function resizeViewerOnContainerResize() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knaw-huc/osd-iiif-viewer",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/knaw-huc/osd-iiif-viewer.git"
@@ -30,8 +30,7 @@
30
30
  "peerDependencies": {
31
31
  "@iiif/helpers": "^1.5.9",
32
32
  "@iiif/presentation-3": "^2.2.3",
33
- "openseadragon": "^5.0.1",
34
- "@types/openseadragon": "^5.0.1",
33
+ "openseadragon": "^6.1.1",
35
34
  "react": ">=18",
36
35
  "react-dom": ">=18",
37
36
  "zustand": "^4.0.0 || ^5.0.0"
@@ -39,17 +38,11 @@
39
38
  "peerDependenciesMeta": {
40
39
  "@iiif/presentation-3": {
41
40
  "optional": true
42
- },
43
- "@types/openseadragon": {
44
- "optional": true
45
41
  }
46
42
  },
47
43
  "devDependencies": {
48
- "@iiif/helpers": "^1.5.9",
49
- "openseadragon": "^5.0.1",
50
- "@types/openseadragon": "^5.0.1",
51
- "zustand": "^5.0.0",
52
44
  "@eslint/js": "^9.39.1",
45
+ "@iiif/helpers": "^1.5.9",
53
46
  "@iiif/presentation-3": "^2.2.3",
54
47
  "@stylistic/eslint-plugin": "^4.0.0",
55
48
  "@types/node": "^24.10.1",
@@ -60,12 +53,14 @@
60
53
  "eslint-plugin-react-hooks": "^7.0.1",
61
54
  "eslint-plugin-react-refresh": "^0.4.24",
62
55
  "globals": "^16.5.0",
56
+ "openseadragon": "^6.1.1",
63
57
  "react": "^19.2.4",
64
58
  "react-dom": "^19.2.4",
65
59
  "typescript": "~5.9.3",
66
60
  "typescript-eslint": "^8.46.4",
67
61
  "vite": "^7.2.4",
68
62
  "vite-plugin-dts": "^4.5.4",
69
- "vitest": "^3.2.1"
63
+ "vitest": "^3.2.1",
64
+ "zustand": "^5.0.0"
70
65
  }
71
66
  }