@annotorious/react 3.0.22 → 3.1.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 (33) hide show
  1. package/dist/annotorious-react.es11.js +3 -6
  2. package/dist/annotorious-react.es11.js.map +1 -1
  3. package/dist/annotorious-react.es12.js +7 -7
  4. package/dist/annotorious-react.es12.js.map +1 -1
  5. package/dist/annotorious-react.es13.js +154 -160
  6. package/dist/annotorious-react.es13.js.map +1 -1
  7. package/dist/annotorious-react.es16.js +3 -3
  8. package/dist/annotorious-react.es17.js +3 -3
  9. package/dist/annotorious-react.es17.js.map +1 -1
  10. package/dist/annotorious-react.es18.js +8 -2
  11. package/dist/annotorious-react.es18.js.map +1 -1
  12. package/dist/annotorious-react.es19.js +2 -33
  13. package/dist/annotorious-react.es19.js.map +1 -1
  14. package/dist/annotorious-react.es20.js +23 -396
  15. package/dist/annotorious-react.es20.js.map +1 -1
  16. package/dist/annotorious-react.es21.js +404 -127
  17. package/dist/annotorious-react.es21.js.map +1 -1
  18. package/dist/annotorious-react.es22.js +129 -2
  19. package/dist/annotorious-react.es22.js.map +1 -1
  20. package/dist/annotorious-react.es23.js +2 -2
  21. package/dist/annotorious-react.es24.js +2 -7
  22. package/dist/annotorious-react.es24.js.map +1 -1
  23. package/dist/annotorious-react.es25.js +7 -2
  24. package/dist/annotorious-react.es25.js.map +1 -1
  25. package/dist/annotorious-react.es26.js +2 -11
  26. package/dist/annotorious-react.es26.js.map +1 -1
  27. package/dist/annotorious-react.es27.js +9 -124
  28. package/dist/annotorious-react.es27.js.map +1 -1
  29. package/dist/annotorious-react.es28.js +112 -452
  30. package/dist/annotorious-react.es28.js.map +1 -1
  31. package/dist/annotorious-react.es29.js +469 -0
  32. package/dist/annotorious-react.es29.js.map +1 -0
  33. package/package.json +15 -15
@@ -1,132 +1,409 @@
1
- function c() {
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 e;
9
- return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
10
- }
11
- function E(n) {
12
- var e;
13
- return (e = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.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: e,
30
- overflowX: t,
31
- overflowY: o,
32
- display: r
33
- } = b(n);
34
- return /auto|scroll|overlay|hidden|clip/.test(e + o + t) && !["inline", "contents"].includes(r);
35
- }
36
- function k(n) {
37
- return ["table", "td", "th"].includes(f(n));
38
- }
39
- function N(n) {
40
- return [":popover-open", ":modal"].some((e) => {
41
- try {
42
- return n.matches(e);
43
- } catch {
44
- return !1;
45
- }
46
- });
47
- }
48
- function T(n) {
49
- const e = L(), t = m(n) ? b(n) : n;
50
- return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (t.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (t.contain || "").includes(o));
51
- }
52
- function C(n) {
53
- let e = l(n);
54
- for (; w(e) && !g(e); ) {
55
- if (T(e))
56
- return e;
57
- if (N(e))
1
+ import { __exports as _ } from "./annotorious-react.es24.js";
2
+ import we from "react";
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.development.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and 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 ue;
13
+ function he() {
14
+ return ue ? _ : (ue = 1, process.env.NODE_ENV !== "production" && function() {
15
+ function s(e) {
16
+ if (e == null) return null;
17
+ if (typeof e == "function")
18
+ return e.$$typeof === me ? null : e.displayName || e.name || null;
19
+ if (typeof e == "string") return e;
20
+ switch (e) {
21
+ case j:
22
+ return "Fragment";
23
+ case ge:
24
+ return "Portal";
25
+ case K:
26
+ return "Profiler";
27
+ case H:
28
+ return "StrictMode";
29
+ case A:
30
+ return "Suspense";
31
+ case R:
32
+ return "SuspenseList";
33
+ }
34
+ if (typeof e == "object")
35
+ switch (typeof e.tag == "number" && console.error(
36
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
37
+ ), e.$$typeof) {
38
+ case q:
39
+ return (e.displayName || "Context") + ".Provider";
40
+ case X:
41
+ return (e._context.displayName || "Context") + ".Consumer";
42
+ case S:
43
+ var r = e.render;
44
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
45
+ case k:
46
+ return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
47
+ case p:
48
+ r = e._payload, e = e._init;
49
+ try {
50
+ return s(e(r));
51
+ } catch {
52
+ }
53
+ }
58
54
  return null;
59
- e = l(e);
60
- }
61
- return null;
62
- }
63
- function L() {
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 R(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 e = (
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(e) ? e.host : e;
92
- }
93
- function h(n) {
94
- const e = l(n);
95
- return g(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(e) && y(e) ? e : h(e);
96
- }
97
- function d(n, e, t) {
98
- var o;
99
- e === void 0 && (e = []), t === void 0 && (t = !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 = D(u);
103
- return e.concat(u, u.visualViewport || [], y(r) ? r : [], s && t ? d(s) : []);
104
- }
105
- return e.concat(r, d(r, [], t));
106
- }
107
- function D(n) {
108
- return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
55
+ }
56
+ function M(e) {
57
+ return "" + e;
58
+ }
59
+ function W(e) {
60
+ try {
61
+ M(e);
62
+ var r = !1;
63
+ } catch {
64
+ r = !0;
65
+ }
66
+ if (r) {
67
+ r = console;
68
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
69
+ return t.call(
70
+ r,
71
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
72
+ n
73
+ ), M(e);
74
+ }
75
+ }
76
+ function $() {
77
+ }
78
+ function le() {
79
+ if (v === 0) {
80
+ Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
81
+ var e = {
82
+ configurable: !0,
83
+ enumerable: !0,
84
+ value: $,
85
+ writable: !0
86
+ };
87
+ Object.defineProperties(console, {
88
+ info: e,
89
+ log: e,
90
+ warn: e,
91
+ error: e,
92
+ group: e,
93
+ groupCollapsed: e,
94
+ groupEnd: e
95
+ });
96
+ }
97
+ v++;
98
+ }
99
+ function fe() {
100
+ if (v--, v === 0) {
101
+ var e = { configurable: !0, enumerable: !0, writable: !0 };
102
+ Object.defineProperties(console, {
103
+ log: E({}, e, { value: Z }),
104
+ info: E({}, e, { value: F }),
105
+ warn: E({}, e, { value: I }),
106
+ error: E({}, e, { value: L }),
107
+ group: E({}, e, { value: Q }),
108
+ groupCollapsed: E({}, e, { value: D }),
109
+ groupEnd: E({}, e, { value: ee })
110
+ });
111
+ }
112
+ 0 > v && console.error(
113
+ "disabledDepth fell below zero. This is a bug in React. Please file an issue."
114
+ );
115
+ }
116
+ function y(e) {
117
+ if (x === void 0)
118
+ try {
119
+ throw Error();
120
+ } catch (t) {
121
+ var r = t.stack.trim().match(/\n( *(at )?)/);
122
+ x = r && r[1] || "", re = -1 < t.stack.indexOf(`
123
+ at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
124
+ }
125
+ return `
126
+ ` + x + e + re;
127
+ }
128
+ function U(e, r) {
129
+ if (!e || P) return "";
130
+ var t = Y.get(e);
131
+ if (t !== void 0) return t;
132
+ P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
133
+ var n = null;
134
+ n = d.H, d.H = null, le();
135
+ try {
136
+ var u = {
137
+ DetermineComponentFrameRoot: function() {
138
+ try {
139
+ if (r) {
140
+ var i = function() {
141
+ throw Error();
142
+ };
143
+ if (Object.defineProperty(i.prototype, "props", {
144
+ set: function() {
145
+ throw Error();
146
+ }
147
+ }), typeof Reflect == "object" && Reflect.construct) {
148
+ try {
149
+ Reflect.construct(i, []);
150
+ } catch (c) {
151
+ var w = c;
152
+ }
153
+ Reflect.construct(e, [], i);
154
+ } else {
155
+ try {
156
+ i.call();
157
+ } catch (c) {
158
+ w = c;
159
+ }
160
+ e.call(i.prototype);
161
+ }
162
+ } else {
163
+ try {
164
+ throw Error();
165
+ } catch (c) {
166
+ w = c;
167
+ }
168
+ (i = e()) && typeof i.catch == "function" && i.catch(function() {
169
+ });
170
+ }
171
+ } catch (c) {
172
+ if (c && w && typeof c.stack == "string")
173
+ return [c.stack, w.stack];
174
+ }
175
+ return [null, null];
176
+ }
177
+ };
178
+ u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
179
+ var a = Object.getOwnPropertyDescriptor(
180
+ u.DetermineComponentFrameRoot,
181
+ "name"
182
+ );
183
+ a && a.configurable && Object.defineProperty(
184
+ u.DetermineComponentFrameRoot,
185
+ "name",
186
+ { value: "DetermineComponentFrameRoot" }
187
+ );
188
+ var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
189
+ if (f && g) {
190
+ var l = f.split(`
191
+ `), b = g.split(`
192
+ `);
193
+ for (o = a = 0; a < l.length && !l[a].includes(
194
+ "DetermineComponentFrameRoot"
195
+ ); )
196
+ a++;
197
+ for (; o < b.length && !b[o].includes(
198
+ "DetermineComponentFrameRoot"
199
+ ); )
200
+ o++;
201
+ if (a === l.length || o === b.length)
202
+ for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
203
+ o--;
204
+ for (; 1 <= a && 0 <= o; a--, o--)
205
+ if (l[a] !== b[o]) {
206
+ if (a !== 1 || o !== 1)
207
+ do
208
+ if (a--, o--, 0 > o || l[a] !== b[o]) {
209
+ var m = `
210
+ ` + l[a].replace(
211
+ " at new ",
212
+ " at "
213
+ );
214
+ return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
215
+ }
216
+ while (1 <= a && 0 <= o);
217
+ break;
218
+ }
219
+ }
220
+ } finally {
221
+ P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
222
+ }
223
+ return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
224
+ }
225
+ function T(e) {
226
+ if (e == null) return "";
227
+ if (typeof e == "function") {
228
+ var r = e.prototype;
229
+ return U(
230
+ e,
231
+ !(!r || !r.isReactComponent)
232
+ );
233
+ }
234
+ if (typeof e == "string") return y(e);
235
+ switch (e) {
236
+ case A:
237
+ return y("Suspense");
238
+ case R:
239
+ return y("SuspenseList");
240
+ }
241
+ if (typeof e == "object")
242
+ switch (e.$$typeof) {
243
+ case S:
244
+ return e = U(e.render, !1), e;
245
+ case k:
246
+ return T(e.type);
247
+ case p:
248
+ r = e._payload, e = e._init;
249
+ try {
250
+ return T(e(r));
251
+ } catch {
252
+ }
253
+ }
254
+ return "";
255
+ }
256
+ function C() {
257
+ var e = d.A;
258
+ return e === null ? null : e.getOwner();
259
+ }
260
+ function ce(e) {
261
+ if (J.call(e, "key")) {
262
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
263
+ if (r && r.isReactWarning) return !1;
264
+ }
265
+ return e.key !== void 0;
266
+ }
267
+ function se(e, r) {
268
+ function t() {
269
+ te || (te = !0, console.error(
270
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
271
+ r
272
+ ));
273
+ }
274
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
275
+ get: t,
276
+ configurable: !0
277
+ });
278
+ }
279
+ function ie() {
280
+ var e = s(this.type);
281
+ return oe[e] || (oe[e] = !0, console.error(
282
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
283
+ )), e = this.props.ref, e !== void 0 ? e : null;
284
+ }
285
+ function de(e, r, t, n, u, a) {
286
+ return t = a.ref, e = {
287
+ $$typeof: O,
288
+ type: e,
289
+ key: r,
290
+ props: a,
291
+ _owner: u
292
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
293
+ enumerable: !1,
294
+ get: ie
295
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
296
+ configurable: !1,
297
+ enumerable: !1,
298
+ writable: !0,
299
+ value: 0
300
+ }), Object.defineProperty(e, "_debugInfo", {
301
+ configurable: !1,
302
+ enumerable: !1,
303
+ writable: !0,
304
+ value: null
305
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
306
+ }
307
+ function z(e, r, t, n, u, a) {
308
+ if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ve || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
309
+ var o = r.children;
310
+ if (o !== void 0)
311
+ if (n)
312
+ if (N(o)) {
313
+ for (n = 0; n < o.length; n++)
314
+ V(o[n], e);
315
+ Object.freeze && Object.freeze(o);
316
+ } else
317
+ console.error(
318
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
319
+ );
320
+ else V(o, e);
321
+ } else
322
+ o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
323
+ "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
324
+ n,
325
+ o
326
+ );
327
+ if (J.call(r, "key")) {
328
+ o = s(e);
329
+ var f = Object.keys(r).filter(function(l) {
330
+ return l !== "key";
331
+ });
332
+ n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
333
+ `A props object containing a "key" prop is being spread into JSX:
334
+ let props = %s;
335
+ <%s {...props} />
336
+ React keys must be passed directly to JSX without using spread:
337
+ let props = %s;
338
+ <%s key={someKey} {...props} />`,
339
+ n,
340
+ o,
341
+ f,
342
+ o
343
+ ), ne[o + n] = !0);
344
+ }
345
+ if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
346
+ t = {};
347
+ for (var g in r)
348
+ g !== "key" && (t[g] = r[g]);
349
+ } else t = r;
350
+ return o && se(
351
+ t,
352
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
353
+ ), de(e, o, a, u, C(), t);
354
+ }
355
+ function V(e, r) {
356
+ if (typeof e == "object" && e && e.$$typeof !== ye) {
357
+ if (N(e))
358
+ for (var t = 0; t < e.length; t++) {
359
+ var n = e[t];
360
+ h(n) && G(n, r);
361
+ }
362
+ else if (h(e))
363
+ e._store && (e._store.validated = 1);
364
+ else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
365
+ for (; !(e = t.next()).done; )
366
+ h(e.value) && G(e.value, r);
367
+ }
368
+ }
369
+ function h(e) {
370
+ return typeof e == "object" && e !== null && e.$$typeof === O;
371
+ }
372
+ function G(e, r) {
373
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
374
+ ae[r] = !0;
375
+ var t = "";
376
+ e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
377
+ var n = d.getCurrentStack;
378
+ d.getCurrentStack = function() {
379
+ var u = T(e.type);
380
+ return n && (u += n() || ""), u;
381
+ }, console.error(
382
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
383
+ r,
384
+ t
385
+ ), d.getCurrentStack = n;
386
+ }
387
+ }
388
+ function Ee(e) {
389
+ var r = "", t = C();
390
+ return t && (t = s(t.type)) && (r = `
391
+
392
+ Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
393
+
394
+ Check the top-level render call using <` + e + ">."), r;
395
+ }
396
+ var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
397
+ $.__reactDisabledLog = !0;
398
+ var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
399
+ _.Fragment = j, _.jsx = function(e, r, t, n, u) {
400
+ return z(e, r, t, !1, n, u);
401
+ }, _.jsxs = function(e, r, t, n, u) {
402
+ return z(e, r, t, !0, n, u);
403
+ };
404
+ }(), _);
109
405
  }
110
406
  export {
111
- b as getComputedStyle,
112
- C as getContainingBlock,
113
- E as getDocumentElement,
114
- D as getFrameElement,
115
- h as getNearestOverflowAncestor,
116
- f as getNodeName,
117
- R 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
- k as isTableElement,
129
- N as isTopLayer,
130
- L as isWebKit
407
+ he as __require
131
408
  };
132
409
  //# sourceMappingURL=annotorious-react.es21.js.map