@annotorious/react 3.0.17 → 3.0.19
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.es11.js +3 -3
- package/dist/annotorious-react.es13.js +2 -2
- package/dist/annotorious-react.es16.js +1 -1
- package/dist/annotorious-react.es18.js +2 -129
- package/dist/annotorious-react.es18.js.map +1 -1
- package/dist/annotorious-react.es19.js +26 -2
- package/dist/annotorious-react.es19.js.map +1 -1
- package/dist/annotorious-react.es20.js +597 -17
- package/dist/annotorious-react.es20.js.map +1 -1
- package/dist/annotorious-react.es21.js +127 -604
- package/dist/annotorious-react.es21.js.map +1 -1
- package/dist/annotorious-react.es8.js +18 -18
- package/dist/annotorious-react.es8.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/openseadragon/OpenSeadragonAnnotator.d.ts +4 -1
- package/dist/openseadragon/OpenSeadragonAnnotator.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __module as e } from "./annotorious-react.
|
|
2
|
-
import { __require as r } from "./annotorious-react.
|
|
3
|
-
import { __require as o } from "./annotorious-react.
|
|
1
|
+
import { __module as e } from "./annotorious-react.es18.js";
|
|
2
|
+
import { __require as r } from "./annotorious-react.es19.js";
|
|
3
|
+
import { __require as o } from "./annotorious-react.es20.js";
|
|
4
4
|
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
5
|
var m = e.exports;
|
|
6
6
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import { useLayoutEffect as q, useEffect as Q } from "react";
|
|
3
|
-
import { getComputedStyle as Z, isElement as I } from "./annotorious-react.
|
|
4
|
-
import { getOverflowAncestors as Re } from "./annotorious-react.
|
|
3
|
+
import { getComputedStyle as Z, isElement as I } from "./annotorious-react.es21.js";
|
|
4
|
+
import { getOverflowAncestors as Re } from "./annotorious-react.es21.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import { useFloating as z } from "./annotorious-react.es15.js";
|
|
7
7
|
import { arrow as xe, flip as Ee, inline as we, offset as Ce, shift as Se } from "./annotorious-react.es15.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { offset as it, shift as nt, flip as ot, inline as st, arrow as rt, computePosition as ct } from "./annotorious-react.es28.js";
|
|
2
2
|
import { createCoords as y, rectToClientRect as G, round as H, floor as D, max as E, min as z } from "./annotorious-react.es27.js";
|
|
3
|
-
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as U, getComputedStyle as b, getDocumentElement as R, isHTMLElement as O, isWebKit as J, isTopLayer as M, getNodeName as S, isOverflowElement as _, getNodeScroll as A, getParentNode as W, isLastTraversableNode as N, isTableElement as lt, isContainingBlock as Q, getContainingBlock as ft } from "./annotorious-react.
|
|
3
|
+
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as U, getComputedStyle as b, getDocumentElement as R, isHTMLElement as O, isWebKit as J, isTopLayer as M, getNodeName as S, isOverflowElement as _, getNodeScroll as A, getParentNode as W, isLastTraversableNode as N, isTableElement as lt, isContainingBlock as Q, getContainingBlock as ft } from "./annotorious-react.es21.js";
|
|
4
4
|
function Y(t) {
|
|
5
5
|
const e = b(t);
|
|
6
6
|
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
@@ -1,132 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
return typeof window < "u";
|
|
3
|
-
}
|
|
4
|
-
function f(n) {
|
|
5
|
-
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
6
|
-
}
|
|
7
|
-
function i(n) {
|
|
8
|
-
var t;
|
|
9
|
-
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
10
|
-
}
|
|
11
|
-
function E(n) {
|
|
12
|
-
var t;
|
|
13
|
-
return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
|
14
|
-
}
|
|
15
|
-
function p(n) {
|
|
16
|
-
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
|
|
17
|
-
}
|
|
18
|
-
function m(n) {
|
|
19
|
-
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
|
|
20
|
-
}
|
|
21
|
-
function w(n) {
|
|
22
|
-
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
|
|
23
|
-
}
|
|
24
|
-
function a(n) {
|
|
25
|
-
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
|
26
|
-
}
|
|
27
|
-
function y(n) {
|
|
28
|
-
const {
|
|
29
|
-
overflow: t,
|
|
30
|
-
overflowX: e,
|
|
31
|
-
overflowY: o,
|
|
32
|
-
display: r
|
|
33
|
-
} = b(n);
|
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
|
35
|
-
}
|
|
36
|
-
function D(n) {
|
|
37
|
-
return ["table", "td", "th"].includes(f(n));
|
|
38
|
-
}
|
|
39
|
-
function N(n) {
|
|
40
|
-
return [":popover-open", ":modal"].some((t) => {
|
|
41
|
-
try {
|
|
42
|
-
return n.matches(t);
|
|
43
|
-
} catch {
|
|
44
|
-
return !1;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function T(n) {
|
|
49
|
-
const t = v(), e = m(n) ? b(n) : n;
|
|
50
|
-
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
51
|
-
}
|
|
52
|
-
function k(n) {
|
|
53
|
-
let t = l(n);
|
|
54
|
-
for (; w(t) && !g(t); ) {
|
|
55
|
-
if (T(t))
|
|
56
|
-
return t;
|
|
57
|
-
if (N(t))
|
|
58
|
-
return null;
|
|
59
|
-
t = l(t);
|
|
60
|
-
}
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
function v() {
|
|
64
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
65
|
-
}
|
|
66
|
-
function g(n) {
|
|
67
|
-
return ["html", "body", "#document"].includes(f(n));
|
|
68
|
-
}
|
|
69
|
-
function b(n) {
|
|
70
|
-
return i(n).getComputedStyle(n);
|
|
71
|
-
}
|
|
72
|
-
function C(n) {
|
|
73
|
-
return m(n) ? {
|
|
74
|
-
scrollLeft: n.scrollLeft,
|
|
75
|
-
scrollTop: n.scrollTop
|
|
76
|
-
} : {
|
|
77
|
-
scrollLeft: n.scrollX,
|
|
78
|
-
scrollTop: n.scrollY
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function l(n) {
|
|
82
|
-
if (f(n) === "html")
|
|
83
|
-
return n;
|
|
84
|
-
const t = (
|
|
85
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
86
|
-
n.assignedSlot || // DOM Element detected.
|
|
87
|
-
n.parentNode || // ShadowRoot detected.
|
|
88
|
-
a(n) && n.host || // Fallback.
|
|
89
|
-
E(n)
|
|
90
|
-
);
|
|
91
|
-
return a(t) ? t.host : t;
|
|
92
|
-
}
|
|
93
|
-
function h(n) {
|
|
94
|
-
const t = l(n);
|
|
95
|
-
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
|
96
|
-
}
|
|
97
|
-
function d(n, t, e) {
|
|
98
|
-
var o;
|
|
99
|
-
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
100
|
-
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), u = i(r);
|
|
101
|
-
if (S) {
|
|
102
|
-
const s = L(u);
|
|
103
|
-
return t.concat(u, u.visualViewport || [], y(r) ? r : [], s && e ? d(s) : []);
|
|
104
|
-
}
|
|
105
|
-
return t.concat(r, d(r, [], e));
|
|
106
|
-
}
|
|
107
|
-
function L(n) {
|
|
108
|
-
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
109
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
110
2
|
export {
|
|
111
|
-
|
|
112
|
-
k as getContainingBlock,
|
|
113
|
-
E as getDocumentElement,
|
|
114
|
-
L as getFrameElement,
|
|
115
|
-
h as getNearestOverflowAncestor,
|
|
116
|
-
f as getNodeName,
|
|
117
|
-
C as getNodeScroll,
|
|
118
|
-
d as getOverflowAncestors,
|
|
119
|
-
l as getParentNode,
|
|
120
|
-
i as getWindow,
|
|
121
|
-
T as isContainingBlock,
|
|
122
|
-
m as isElement,
|
|
123
|
-
w as isHTMLElement,
|
|
124
|
-
g as isLastTraversableNode,
|
|
125
|
-
p as isNode,
|
|
126
|
-
y as isOverflowElement,
|
|
127
|
-
a as isShadowRoot,
|
|
128
|
-
D as isTableElement,
|
|
129
|
-
N as isTopLayer,
|
|
130
|
-
v as isWebKit
|
|
3
|
+
e as __module
|
|
131
4
|
};
|
|
132
5
|
//# sourceMappingURL=annotorious-react.es18.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es18.js","sources":[
|
|
1
|
+
{"version":3,"file":"annotorious-react.es18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as t } from "./annotorious-react.es22.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) return t;
|
|
15
|
+
p = 1;
|
|
16
|
+
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function i(o, r, u) {
|
|
18
|
+
var e, n = {}, _ = null, f = null;
|
|
19
|
+
u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
20
|
+
for (e in r) c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
|
|
21
|
+
if (o && o.defaultProps) for (e in r = o.defaultProps, r) n[e] === void 0 && (n[e] = r[e]);
|
|
22
|
+
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
|
|
23
|
+
}
|
|
24
|
+
return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
|
|
25
|
+
}
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v as __require
|
|
4
28
|
};
|
|
5
29
|
//# sourceMappingURL=annotorious-react.es19.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"annotorious-react.es19.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,EAAE,CAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE,aAAa,MAAIG,KAAKF,IAAED,EAAE,cAAaC,EAAE,CAASG,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]}
|