@annotorious/react-manifold 3.0.0-rc.19.1 → 3.0.0-rc.20
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/AnnotoriousManifoldInstance.d.ts.map +1 -1
- package/dist/annotorious-react-manifold.es10.js +7 -8
- package/dist/annotorious-react-manifold.es10.js.map +1 -1
- package/dist/annotorious-react-manifold.es11.js +16 -7
- package/dist/annotorious-react-manifold.es11.js.map +1 -1
- package/dist/annotorious-react-manifold.es12.js +2 -16
- package/dist/annotorious-react-manifold.es12.js.map +1 -1
- package/dist/annotorious-react-manifold.es13.js +30 -2
- package/dist/annotorious-react-manifold.es13.js.map +1 -1
- package/dist/annotorious-react-manifold.es14.js +590 -21
- package/dist/annotorious-react-manifold.es14.js.map +1 -1
- package/dist/annotorious-react-manifold.es15.js +2 -599
- package/dist/annotorious-react-manifold.es15.js.map +1 -1
- package/dist/annotorious-react-manifold.es16.js +2 -2
- package/dist/annotorious-react-manifold.es17.js +6 -2
- package/dist/annotorious-react-manifold.es17.js.map +1 -1
- package/dist/annotorious-react-manifold.es18.js +2 -6
- package/dist/annotorious-react-manifold.es18.js.map +1 -1
- package/dist/annotorious-react-manifold.es19.js +30 -2
- package/dist/annotorious-react-manifold.es19.js.map +1 -1
- package/dist/annotorious-react-manifold.es2.js +12 -13
- package/dist/annotorious-react-manifold.es2.js.map +1 -1
- package/dist/annotorious-react-manifold.es20.js +590 -21
- package/dist/annotorious-react-manifold.es20.js.map +1 -1
- package/dist/annotorious-react-manifold.es21.js +2 -599
- package/dist/annotorious-react-manifold.es21.js.map +1 -1
- package/dist/annotorious-react-manifold.es22.js +2 -2
- package/dist/annotorious-react-manifold.es22.js.map +1 -1
- package/dist/annotorious-react-manifold.es4.js +2 -3
- package/dist/annotorious-react-manifold.es4.js.map +1 -1
- package/dist/annotorious-react-manifold.es6.js +3 -4
- package/dist/annotorious-react-manifold.es6.js.map +1 -1
- package/dist/annotorious-react-manifold.es7.js +3 -3
- package/dist/annotorious-react-manifold.es8.js +14 -14
- package/dist/annotorious-react-manifold.es8.js.map +1 -1
- package/dist/annotorious-react-manifold.es9.js +13 -1385
- package/dist/annotorious-react-manifold.es9.js.map +1 -1
- package/dist/synchronizeInstances.d.ts.map +1 -1
- package/package.json +9 -6
- package/dist/annotorious-react-manifold.es23.js +0 -5
- package/dist/annotorious-react-manifold.es23.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotoriousManifoldInstance.d.ts","sourceRoot":"","sources":["../src/AnnotoriousManifoldInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,SAAS,EACV,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,EAAE,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU;IAEnH,UAAU,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAE9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,OAAO,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErD,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAE7D,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD,OAAO,IAAI,IAAI,CAAC;IAEhB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IAEjE,UAAU,CAAC,YAAY,EAAE,MA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AAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD,OAAO,IAAI,IAAI,CAAC;IAEhB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IAEjE,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAErD,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAEzC,cAAc,IAAI,CAAC,EAAE,CAAC;IAEtB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IAEtD,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAExC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAE5E;AAED,eAAO,MAAM,sBAAsB;QAAuD,MAAM;4BAClF,IAAI,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,KACvC,4BAA4B,CAAC,EAAE,CAAC,CA+FlC,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
let a = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, o) => (o &= 63, o < 36 ? r += o.toString(36) : o < 62 ? r += (o - 26).toString(36).toUpperCase() : o > 62 ? r += "-" : r += "_", r), "");
|
|
7
|
-
a();
|
|
1
|
+
import { createContext as t, useContext as n } from "react";
|
|
2
|
+
const r = t({ viewer: null, setViewer: null }), s = () => {
|
|
3
|
+
const { viewer: e } = n(r);
|
|
4
|
+
return e;
|
|
5
|
+
};
|
|
8
6
|
export {
|
|
9
|
-
|
|
7
|
+
r as OpenSeadragonAnnotatorContext,
|
|
8
|
+
s as useViewer
|
|
10
9
|
};
|
|
11
10
|
//# sourceMappingURL=annotorious-react-manifold.es10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es10.js","sources":["../../annotorious-react/dist/annotorious-react.
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es10.js","sources":["../../annotorious-react/dist/annotorious-react.es10.js"],"sourcesContent":["import { j as c } from \"./annotorious-react.es13.js\";\nimport { createContext as w, useState as u, useContext as a, useEffect as i } from \"react\";\nimport { createOSDAnnotator as g } from \"./annotorious-react.es16.js\";\nimport { AnnotoriousContext as m } from \"./annotorious-react.es2.js\";\nconst s = w({ viewer: null, setViewer: null }), S = (e) => {\n const { children: E, tool: r, ...d } = e, [o, f] = u(), { anno: t, setAnno: l } = a(m);\n return i(() => {\n if (o) {\n const n = g(o, d);\n return e.drawingEnabled !== void 0 && n.setDrawingEnabled(e.drawingEnabled), e.filter && n.setFilter(e.filter), e.style && n.setStyle(e.style), e.tool && n.setDrawingTool(e.tool), l(n), () => {\n n.destroy(), l(void 0);\n };\n }\n }, [o]), i(() => {\n t && t.setDrawingEnabled(e.drawingEnabled);\n }, [e.drawingEnabled]), i(() => {\n t && t.setFilter(e.filter);\n }, [e.filter]), i(() => {\n t && t.setStyle(e.style);\n }, [e.style]), i(() => {\n t && t.setDrawingTool(r);\n }, [r]), /* @__PURE__ */ c.jsx(s.Provider, { value: { viewer: o, setViewer: f }, children: e.children });\n}, A = () => {\n const { viewer: e } = a(s);\n return e;\n};\nexport {\n S as OpenSeadragonAnnotator,\n s as OpenSeadragonAnnotatorContext,\n A as useViewer\n};\n//# sourceMappingURL=annotorious-react.es10.js.map\n"],"names":["s","w","A","a"],"mappings":";AAIK,MAACA,IAAIC,EAAE,EAAE,QAAQ,MAAM,WAAW,KAAM,CAAA,GAkB1CC,IAAI,MAAM;AACX,QAAM,EAAE,QAAQ,EAAG,IAAGC,EAAEH,CAAC;AACzB,SAAO;AACT;"}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as f } from "./annotorious-react-manifold.es17.js";
|
|
2
|
+
import { forwardRef as m, useRef as p, useContext as u, useEffect as c, useImperativeHandle as d } from "react";
|
|
3
|
+
import l from "openseadragon";
|
|
4
|
+
import { OpenSeadragonAnnotatorContext as v } from "./annotorious-react-manifold.es10.js";
|
|
5
|
+
const N = m((n, s) => {
|
|
6
|
+
const { className: a, options: t } = n, r = p(null), { viewer: i, setViewer: e } = u(v);
|
|
7
|
+
return c(() => {
|
|
8
|
+
if (r.current) {
|
|
9
|
+
const o = l({ ...t, element: r.current });
|
|
10
|
+
return e && e(o), () => {
|
|
11
|
+
o.destroy(), e && e(void 0);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}, [JSON.stringify(t)]), d(s, () => i), /* @__PURE__ */ f.jsx("div", { className: a, ref: r });
|
|
15
|
+
});
|
|
6
16
|
export {
|
|
7
|
-
|
|
8
|
-
s as useViewer
|
|
17
|
+
N as OpenSeadragonViewer
|
|
9
18
|
};
|
|
10
19
|
//# sourceMappingURL=annotorious-react-manifold.es11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es11.js","sources":["../../annotorious-react/dist/annotorious-react.
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es11.js","sources":["../../annotorious-react/dist/annotorious-react.es12.js"],"sourcesContent":["import { j as m } from \"./annotorious-react.es13.js\";\nimport { forwardRef as a, useRef as u, useContext as p, useEffect as c, useImperativeHandle as d } from \"react\";\nimport l from \"openseadragon\";\nimport { OpenSeadragonAnnotatorContext as x } from \"./annotorious-react.es10.js\";\nconst O = a((n, s) => {\n const { className: i, options: t } = n, r = u(null), { viewer: f, setViewer: e } = p(x);\n return c(() => {\n if (r.current) {\n const o = l({ ...t, element: r.current });\n return e && e(o), () => {\n o.destroy(), e && e(void 0);\n };\n }\n }, [JSON.stringify(t)]), d(s, () => f), /* @__PURE__ */ m.jsx(\"div\", { className: i, ref: r });\n});\nexport {\n O as OpenSeadragonViewer\n};\n//# sourceMappingURL=annotorious-react.es12.js.map\n"],"names":["O","a","s","i","u","f","p","x","c","l","d","m"],"mappings":";;;;AAIK,MAACA,IAAIC,EAAE,CAAC,GAAGC,MAAM;AACpB,QAAM,EAAE,WAAWC,GAAG,SAAS,MAAM,GAAG,IAAIC,EAAE,IAAI,GAAG,EAAE,QAAQC,GAAG,WAAW,MAAMC,EAAEC,CAAC;AACtF,SAAOC,EAAE,MAAM;AACb,QAAI,EAAE,SAAS;AACb,YAAM,IAAIC,EAAE,EAAE,GAAG,GAAG,SAAS,EAAE,QAAO,CAAE;AACxC,aAAO,KAAK,EAAE,CAAC,GAAG,MAAM;AACtB,UAAE,QAAO,GAAI,KAAK,EAAE,MAAM;AAAA,MAClC;AAAA,IACK;AAAA,EACL,GAAK,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,GAAGC,EAAER,GAAG,MAAMG,CAAC,GAAmB,gBAAAM,EAAE,IAAI,OAAO,EAAE,WAAWR,GAAG,KAAK,EAAC,CAAE;AAC/F,CAAC;"}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { forwardRef as m, useRef as p, useContext as u, useEffect as c, useImperativeHandle as d } from "react";
|
|
3
|
-
import l from "openseadragon";
|
|
4
|
-
import { OpenSeadragonAnnotatorContext as v } from "./annotorious-react-manifold.es11.js";
|
|
5
|
-
const N = m((n, s) => {
|
|
6
|
-
const { className: i, options: t } = n, r = p(null), { viewer: a, setViewer: e } = u(v);
|
|
7
|
-
return c(() => {
|
|
8
|
-
if (r.current) {
|
|
9
|
-
const o = l({ ...t, element: r.current });
|
|
10
|
-
return e && e(o), () => {
|
|
11
|
-
o.destroy(), e && e(void 0);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
}, [JSON.stringify(t)]), d(s, () => a), /* @__PURE__ */ f.jsx("div", { className: i, ref: r });
|
|
15
|
-
});
|
|
1
|
+
var e = { exports: {} };
|
|
16
2
|
export {
|
|
17
|
-
|
|
3
|
+
e as __module
|
|
18
4
|
};
|
|
19
5
|
//# sourceMappingURL=annotorious-react-manifold.es12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es12.js","sources":[
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es12.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as t } from "./annotorious-react-manifold.es15.js";
|
|
2
|
+
import R from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var p;
|
|
13
|
+
function v() {
|
|
14
|
+
if (p)
|
|
15
|
+
return t;
|
|
16
|
+
p = 1;
|
|
17
|
+
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function i(o, r, u) {
|
|
19
|
+
var e, n = {}, _ = null, f = null;
|
|
20
|
+
u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
21
|
+
for (e in r)
|
|
22
|
+
c.call(r, e) && !y.hasOwnProperty(e) && (n[e] = r[e]);
|
|
23
|
+
if (o && o.defaultProps)
|
|
24
|
+
for (e in r = o.defaultProps, r)
|
|
25
|
+
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
+
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: d.current };
|
|
27
|
+
}
|
|
28
|
+
return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
|
|
29
|
+
}
|
|
2
30
|
export {
|
|
3
|
-
|
|
31
|
+
v as __require
|
|
4
32
|
};
|
|
5
33
|
//# sourceMappingURL=annotorious-react-manifold.es13.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es13.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es13.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["f","require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":";;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,GAAiBC,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEJ,EAAE,mDAAmD,mBAAkBK,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,IAAGC,IAAE,MAAKC,IAAE;AAAK,IAASJ,MAAT,WAAaG,IAAE,KAAGH,IAAYD,EAAE,QAAX,WAAiBI,IAAE,KAAGJ,EAAE,MAAcA,EAAE,QAAX,WAAiBK,IAAEL,EAAE;AAAK,SAAIE,KAAKF;AAAE,MAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE;AAAa,WAAIG,KAAKF,IAAED,EAAE,cAAaC;AAAE,QAASG,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKK,GAAE,KAAIK,GAAE,KAAIC,GAAE,OAAMF,GAAE,QAAOP,EAAE,QAAO;AAAA,EAAC;AAAC,SAAAU,aAAiB,GAAEA,EAAW,MAACR,GAAEQ,EAAA,OAAaR;;","x_google_ignoreList":[0]}
|