@annotorious/react-manifold 3.7.19 → 3.7.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es3.js","sources":["../src/openseadragon/OpenSeadragonViewerManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useState } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es3.js","sources":["../src/openseadragon/OpenSeadragonViewerManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useState } from 'react';\nimport OpenSeadragon from 'openseadragon';\n\ninterface OSDViewerContextValue {\n\n viewers: Map<string, OpenSeadragon.Viewer>;\n\n setViewers: React.Dispatch<React.SetStateAction<Map<string, OpenSeadragon.Viewer>>>\n\n}\n\nexport const OSDViewerContext = createContext<OSDViewerContextValue>({\n\n viewers: undefined,\n\n setViewers: undefined,\n\n});\n\nexport const OSDViewerManifold = (props: { children: ReactNode }) => {\n\n const [viewers, setViewers] = useState(new Map<string, OpenSeadragon.Viewer>());\n\n return (\n <OSDViewerContext.Provider value={{ viewers, setViewers }}>\n {props.children}\n </OSDViewerContext.Provider>\n )\n\n}\n\nexport const useViewers = () => {\n const { viewers } = useContext(OSDViewerContext);\n return viewers;\n}"],"names":["OSDViewerContext","createContext","OSDViewerManifold","props","viewers","setViewers","useState","jsx","useViewers","useContext"],"mappings":";;AAWO,MAAMA,IAAmBC,EAAqC;AAAA,EAEnE,SAAS;AAAA,EAET,YAAY;AAEd,CAAC,GAEYC,IAAoB,CAACC,MAAmC;AAEnE,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAS,oBAAI,KAAmC;AAE9E,SACE,gBAAAC,EAACP,EAAiB,UAAjB,EAA0B,OAAO,EAAE,SAAAI,GAAS,YAAAC,KAC1C,UAAAF,EAAM,SAAA,CACT;AAGJ,GAEaK,IAAa,MAAM;AAC9B,QAAM,EAAE,SAAAJ,EAAA,IAAYK,EAAWT,CAAgB;AAC/C,SAAOI;AACT;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { default as OpenSeadragon } from 'openseadragon';
|
|
3
3
|
interface OSDViewerContextValue {
|
|
4
|
-
viewers: Map<string, Viewer>;
|
|
5
|
-
setViewers: React.Dispatch<React.SetStateAction<Map<string, Viewer>>>;
|
|
4
|
+
viewers: Map<string, OpenSeadragon.Viewer>;
|
|
5
|
+
setViewers: React.Dispatch<React.SetStateAction<Map<string, OpenSeadragon.Viewer>>>;
|
|
6
6
|
}
|
|
7
7
|
export declare const OSDViewerContext: import('react').Context<OSDViewerContextValue>;
|
|
8
8
|
export declare const OSDViewerManifold: (props: {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const useViewers: () => Map<string, Viewer>;
|
|
11
|
+
export declare const useViewers: () => Map<string, OpenSeadragon.Viewer>;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=OpenSeadragonViewerManifold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenSeadragonViewerManifold.d.ts","sourceRoot":"","sources":["../../src/openseadragon/OpenSeadragonViewerManifold.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuC,MAAM,OAAO,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"OpenSeadragonViewerManifold.d.ts","sourceRoot":"","sources":["../../src/openseadragon/OpenSeadragonViewerManifold.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuC,MAAM,OAAO,CAAC;AACvE,OAAO,aAAa,MAAM,eAAe,CAAC;AAE1C,UAAU,qBAAqB;IAE7B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAE3C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;CAEpF;AAED,eAAO,MAAM,gBAAgB,gDAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,OAAO;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAU/D,CAAA;AAED,eAAO,MAAM,UAAU,yCAGtB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/react-manifold",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.21",
|
|
4
4
|
"description": "A utility to manage multiple parallel Annotorious instances more efficiently",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"homepage": "https://annotorious.dev",
|
|
8
|
-
"
|
|
8
|
+
"keywords": [
|
|
9
|
+
"annotation",
|
|
10
|
+
"image annotation",
|
|
11
|
+
"multi image annotation",
|
|
12
|
+
"react image annotation",
|
|
13
|
+
"iiif",
|
|
14
|
+
"openseadragon",
|
|
15
|
+
"iiif annotation",
|
|
16
|
+
"openseadragon annotation",
|
|
17
|
+
"data annotation"
|
|
18
|
+
],
|
|
9
19
|
"repository": {
|
|
10
20
|
"type": "git",
|
|
11
21
|
"url": "git+https://github.com/annotorious/annotorious-react-manifold.git"
|
|
@@ -31,7 +41,7 @@
|
|
|
31
41
|
"test": "echo 'Skipping tests in @annotorious/annotorious-react-manifold package'"
|
|
32
42
|
},
|
|
33
43
|
"devDependencies": {
|
|
34
|
-
"@types/react": "^19.2.
|
|
44
|
+
"@types/react": "^19.2.14",
|
|
35
45
|
"@types/react-dom": "^19.2.3",
|
|
36
46
|
"@vitejs/plugin-react": "^4.7.0",
|
|
37
47
|
"typescript": "^5.9.3",
|
|
@@ -40,8 +50,8 @@
|
|
|
40
50
|
"vite-tsconfig-paths": "^5.1.4"
|
|
41
51
|
},
|
|
42
52
|
"peerDependencies": {
|
|
43
|
-
"@annotorious/react": "3.7.
|
|
44
|
-
"openseadragon": ">= ^4.0.0 || >= ^5.0.0",
|
|
53
|
+
"@annotorious/react": "3.7.21",
|
|
54
|
+
"openseadragon": ">= ^4.0.0 || >= ^5.0.0 || >= ^6.0.0",
|
|
45
55
|
"react": "^16.8.0 || >= ^17.x || >= ^18.x || >= ^19.x",
|
|
46
56
|
"react-dom": "^16.8.0 || >= ^17.x || >= ^18.x|| >= ^19.x"
|
|
47
57
|
}
|