@annotorious/react-manifold 3.0.0-rc.18 → 3.0.0-rc.19.1
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/annotorious-react-manifold.es10.js +8 -30
- package/dist/annotorious-react-manifold.es10.js.map +1 -1
- package/dist/annotorious-react-manifold.es11.js +7 -2
- package/dist/annotorious-react-manifold.es11.js.map +1 -1
- package/dist/annotorious-react-manifold.es12.js +16 -2
- package/dist/annotorious-react-manifold.es12.js.map +1 -1
- package/dist/annotorious-react-manifold.es13.js +5 -0
- package/dist/annotorious-react-manifold.es13.js.map +1 -0
- package/dist/annotorious-react-manifold.es14.js +33 -0
- package/dist/annotorious-react-manifold.es14.js.map +1 -0
- package/dist/annotorious-react-manifold.es15.js +602 -0
- package/dist/annotorious-react-manifold.es15.js.map +1 -0
- package/dist/annotorious-react-manifold.es16.js +5 -0
- package/dist/annotorious-react-manifold.es16.js.map +1 -0
- package/dist/annotorious-react-manifold.es17.js +5 -0
- package/dist/annotorious-react-manifold.es17.js.map +1 -0
- package/dist/annotorious-react-manifold.es18.js +9 -0
- package/dist/annotorious-react-manifold.es18.js.map +1 -0
- package/dist/annotorious-react-manifold.es19.js +5 -0
- package/dist/annotorious-react-manifold.es19.js.map +1 -0
- package/dist/annotorious-react-manifold.es2.js +14 -12
- package/dist/annotorious-react-manifold.es2.js.map +1 -1
- package/dist/annotorious-react-manifold.es20.js +33 -0
- package/dist/annotorious-react-manifold.es20.js.map +1 -0
- package/dist/annotorious-react-manifold.es21.js +602 -0
- package/dist/annotorious-react-manifold.es21.js.map +1 -0
- package/dist/annotorious-react-manifold.es22.js +5 -0
- package/dist/annotorious-react-manifold.es22.js.map +1 -0
- package/dist/annotorious-react-manifold.es23.js +5 -0
- package/dist/annotorious-react-manifold.es23.js.map +1 -0
- package/dist/annotorious-react-manifold.es4.js +7 -6
- package/dist/annotorious-react-manifold.es4.js.map +1 -1
- package/dist/annotorious-react-manifold.es6.js +4 -3
- package/dist/annotorious-react-manifold.es6.js.map +1 -1
- package/dist/annotorious-react-manifold.es7.js +4 -4
- package/dist/annotorious-react-manifold.es7.js.map +1 -1
- package/dist/annotorious-react-manifold.es8.js +46 -2
- package/dist/annotorious-react-manifold.es8.js.map +1 -1
- package/dist/annotorious-react-manifold.es9.js +1350 -563
- package/dist/annotorious-react-manifold.es9.js.map +1 -1
- package/dist/openseadragon/OpenSeadragonViewerManifold.d.ts +1 -0
- package/dist/openseadragon/OpenSeadragonViewerManifold.d.ts.map +1 -1
- package/package.json +8 -8
- package/LICENSE +0 -28
- package/README.md +0 -7
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
}
|
|
1
|
+
const n = [];
|
|
2
|
+
for (let t = 0; t < 256; ++t)
|
|
3
|
+
n.push((t + 256).toString(16).slice(1));
|
|
4
|
+
typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
5
|
+
var p = /* @__PURE__ */ ((t) => (t.LOCAL = "LOCAL", t.REMOTE = "REMOTE", t))(p || {});
|
|
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();
|
|
30
8
|
export {
|
|
31
|
-
|
|
9
|
+
p as Origin
|
|
32
10
|
};
|
|
33
11
|
//# sourceMappingURL=annotorious-react-manifold.es10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es10.js","sources":["
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es10.js","sources":["../../annotorious-react/dist/annotorious-react.es8.js"],"sourcesContent":["var f = /* @__PURE__ */ ((t) => (t.EDIT = \"EDIT\", t.SELECT = \"SELECT\", t.NONE = \"NONE\", t))(f || {});\nlet c;\nconst p = new Uint8Array(16);\nfunction g() {\n if (!c && (c = typeof crypto < \"u\" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !c))\n throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");\n return c(p);\n}\nconst o = [];\nfor (let t = 0; t < 256; ++t)\n o.push((t + 256).toString(16).slice(1));\nfunction y(t, r = 0) {\n return o[t[r + 0]] + o[t[r + 1]] + o[t[r + 2]] + o[t[r + 3]] + \"-\" + o[t[r + 4]] + o[t[r + 5]] + \"-\" + o[t[r + 6]] + o[t[r + 7]] + \"-\" + o[t[r + 8]] + o[t[r + 9]] + \"-\" + o[t[r + 10]] + o[t[r + 11]] + o[t[r + 12]] + o[t[r + 13]] + o[t[r + 14]] + o[t[r + 15]];\n}\nconst m = typeof crypto < \"u\" && crypto.randomUUID && crypto.randomUUID.bind(crypto), i = {\n randomUUID: m\n};\nfunction U(t, r, e) {\n if (i.randomUUID && !r && !t)\n return i.randomUUID();\n t = t || {};\n const a = t.random || (t.rng || g)();\n if (a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, r) {\n e = e || 0;\n for (let n = 0; n < 16; ++n)\n r[e + n] = a[n];\n return r;\n }\n return y(a);\n}\nconst b = (t, r, e, a) => ({\n id: U(),\n annotation: t.id,\n created: e || /* @__PURE__ */ new Date(),\n creator: a,\n ...r\n});\nvar h = /* @__PURE__ */ ((t) => (t.LOCAL = \"LOCAL\", t.REMOTE = \"REMOTE\", t))(h || {});\nlet E = (t) => crypto.getRandomValues(new Uint8Array(t)), R = (t, r, e) => {\n let a = (2 << Math.log(t.length - 1) / Math.LN2) - 1, n = -~(1.6 * a * r / t.length);\n return (d = r) => {\n let s = \"\";\n for (; ; ) {\n let l = e(n), u = n;\n for (; u--; )\n if (s += t[l[u] & a] || \"\", s.length === d)\n return s;\n }\n };\n}, w = (t, r = 21) => R(t, r, E), C = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, e) => (e &= 63, e < 36 ? r += e.toString(36) : e < 62 ? r += (e - 26).toString(36).toUpperCase() : e > 62 ? r += \"-\" : r += \"_\", r), \"\");\nconst A = () => ({ isGuest: !0, id: w(\"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_\", 20)() }), D = [\n \"#ff7c00\",\n // orange\n \"#1ac938\",\n // green\n \"#e8000b\",\n // red\n \"#8b2be2\",\n // purple\n \"#9f4800\",\n // brown\n \"#f14cc1\",\n // pink\n \"#ffc400\",\n // khaki\n \"#00d7ff\",\n // cyan\n \"#023eff\"\n // blue\n], I = () => {\n const t = [...D];\n return { assignRandomColor: () => {\n const r = Math.floor(Math.random() * t.length), e = t[r];\n return t.splice(r, 1), e;\n }, releaseColor: (r) => t.push(r) };\n};\nC();\nexport {\n h as Origin,\n f as PointerSelectAction,\n A as createAnonymousGuest,\n b as createBody,\n I as defaultColorProvider\n};\n//# sourceMappingURL=annotorious-react.es8.js.map\n"],"names":["o","h","C","e"],"mappings":"AAQA,MAAMA,IAAI,CAAA;AACV,SAAS,IAAI,GAAG,IAAI,KAAK,EAAE;AACzB,EAAAA,EAAE,MAAM,IAAI,KAAK,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;AAI9B,OAAO,SAAS,OAAO,OAAO,cAAc,OAAO,WAAW,KAAK,MAAM;AAuBhF,IAACC,IAAqB,kBAAC,OAAO,EAAE,QAAQ,SAAS,EAAE,SAAS,UAAU,IAAIA,KAAK,CAAA,CAAE;AACjF,IAW+BC,IAAI,CAAC,IAAI,OAAO,OAAO,gBAAgB,IAAI,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAAGC,OAAOA,KAAK,IAAIA,IAAI,KAAK,KAAKA,EAAE,SAAS,EAAE,IAAIA,IAAI,KAAK,MAAMA,IAAI,IAAI,SAAS,EAAE,EAAE,YAAW,IAAKA,IAAI,KAAK,KAAK,MAAM,KAAK,KAAK,IAAI,EAAE;AA2B9OD,EAAG;"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
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
|
+
};
|
|
2
6
|
export {
|
|
3
|
-
|
|
7
|
+
r as OpenSeadragonAnnotatorContext,
|
|
8
|
+
s as useViewer
|
|
4
9
|
};
|
|
5
10
|
//# sourceMappingURL=annotorious-react-manifold.es11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es11.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es11.js","sources":["../../annotorious-react/dist/annotorious-react.es9.js"],"sourcesContent":["import { j as c } from \"./annotorious-react.es12.js\";\nimport { createContext as w, useState as u, useContext as a, useEffect as i } from \"react\";\nimport { createOSDAnnotator as g } from \"./annotorious-react.es15.js\";\nimport { AnnotoriousContext as m } from \"./annotorious-react.es2.js\";\nconst s = w({ viewer: null, setViewer: null }), S = (e) => {\n const { children: x, 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.es9.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,5 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as f } from "./annotorious-react-manifold.es18.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.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
|
+
});
|
|
2
16
|
export {
|
|
3
|
-
|
|
17
|
+
N as OpenSeadragonViewer
|
|
4
18
|
};
|
|
5
19
|
//# sourceMappingURL=annotorious-react-manifold.es12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es12.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es12.js","sources":["../../annotorious-react/dist/annotorious-react.es11.js"],"sourcesContent":["import { j as m } from \"./annotorious-react.es12.js\";\nimport { forwardRef as a, useRef as p, useContext as u, useEffect as c, useImperativeHandle as d } from \"react\";\nimport l from \"openseadragon\";\nimport { OpenSeadragonAnnotatorContext as x } from \"./annotorious-react.es9.js\";\nconst O = a((n, s) => {\n const { className: i, options: t } = n, r = p(null), { viewer: f, setViewer: e } = u(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.es11.js.map\n"],"names":["O","a","s","p","f","u","x","c","l","d","m"],"mappings":";;;;AAIK,MAACA,IAAIC,EAAE,CAAC,GAAGC,MAAM;AACpB,QAAM,EAAE,WAAW,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,EAAEP,GAAG,MAAME,CAAC,GAAmB,gBAAAM,EAAE,IAAI,OAAO,EAAE,WAAW,GAAG,KAAK,EAAC,CAAE;AAC/F,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es13.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __exports as t } from "./annotorious-react-manifold.es16.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
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
v as __require
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=annotorious-react-manifold.es14.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es14.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]}
|