@soomo/react-text-annotator 3.1.0-staging.18 → 3.1.0-staging.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/TextAnnotationPopup/TextAnnotationPopup.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAnnotationQuoteIdling.d.ts +4 -0
- package/dist/hooks/useAnnotationQuoteIdling.d.ts.map +1 -0
- package/dist/react-text-annotator.es.js +2 -2
- package/dist/react-text-annotator.es11.js +5 -5
- package/dist/react-text-annotator.es12.js +3 -3
- package/dist/react-text-annotator.es16.js +3 -3
- package/dist/react-text-annotator.es19.js +25 -2
- package/dist/react-text-annotator.es19.js.map +1 -1
- package/dist/react-text-annotator.es20.js +2 -31
- package/dist/react-text-annotator.es20.js.map +1 -1
- package/dist/react-text-annotator.es21.js +20 -887
- package/dist/react-text-annotator.es21.js.map +1 -1
- package/dist/react-text-annotator.es22.js +898 -2
- package/dist/react-text-annotator.es22.js.map +1 -1
- package/dist/react-text-annotator.es23.js +114 -2
- package/dist/react-text-annotator.es23.js.map +1 -1
- package/dist/react-text-annotator.es24.js +302 -107
- package/dist/react-text-annotator.es24.js.map +1 -1
- package/dist/react-text-annotator.es25.js +39 -290
- package/dist/react-text-annotator.es25.js.map +1 -1
- package/dist/react-text-annotator.es26.js +17 -55
- package/dist/react-text-annotator.es26.js.map +1 -1
- package/dist/react-text-annotator.es27.js +2 -20
- package/dist/react-text-annotator.es27.js.map +1 -1
- package/dist/react-text-annotator.es28.js +2 -127
- package/dist/react-text-annotator.es28.js.map +1 -1
- package/dist/react-text-annotator.es29.js +107 -144
- package/dist/react-text-annotator.es29.js.map +1 -1
- package/dist/react-text-annotator.es30.js +156 -303
- package/dist/react-text-annotator.es30.js.map +1 -1
- package/dist/react-text-annotator.es31.js +308 -146
- package/dist/react-text-annotator.es31.js.map +1 -1
- package/dist/react-text-annotator.es32.js +130 -607
- package/dist/react-text-annotator.es32.js.map +1 -1
- package/dist/react-text-annotator.es33.js +629 -0
- package/dist/react-text-annotator.es33.js.map +1 -0
- package/dist/react-text-annotator.es5.js +32 -17
- package/dist/react-text-annotator.es5.js.map +1 -1
- package/dist/react-text-annotator.es7.js +11 -7
- package/dist/react-text-annotator.es7.js.map +1 -1
- package/dist/react-text-annotator.es9.js +3 -3
- package/package.json +3 -2
- package/dist/hooks/useAnnotationTargetIdling.d.ts +0 -4
- package/dist/hooks/useAnnotationTargetIdling.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextAnnotationPopup.d.ts","sourceRoot":"","sources":["../../src/TextAnnotationPopup/TextAnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAqD,MAAM,OAAO,CAAC;AAEhG,OAAO,
|
|
1
|
+
{"version":3,"file":"TextAnnotationPopup.d.ts","sourceRoot":"","sources":["../../src/TextAnnotationPopup/TextAnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAqD,MAAM,OAAO,CAAC;AAEhG,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAKL,kBAAkB,EAUnB,MAAM,oBAAoB,CAAC;AAK5B,OAAO,2BAA2B,CAAC;AAEnC,UAAU,wBAAwB;IAEhC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,UAAU,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC;IAEzD,KAAK,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,CAAC;CAE1D;AAED,MAAM,WAAW,+BAA+B;IAE9C,UAAU,EAAE,cAAc,CAAC;IAE3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;CAEtC;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAmJ5D,CAAC;AAaF,mCAAmC;AACnC,kDAAkD;AAClD,eAAO,MAAM,kBAAkB,UAAW,wBAAwB,4CAOjE,CAAC"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnnotationQuoteIdling.d.ts","sourceRoot":"","sources":["../../src/hooks/useAnnotationQuoteIdling.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,wBAAwB,iBACrB,MAAM,GAAG,SAAS,YACvB;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,YA8C7B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CETEIcean } from "./react-text-annotator.es2.js";
|
|
2
2
|
import { TEIAnnotator } from "./react-text-annotator.es3.js";
|
|
3
3
|
import { useAnnouncePopupNavigation } from "./react-text-annotator.es4.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useAnnotationQuoteIdling } from "./react-text-annotator.es5.js";
|
|
5
5
|
import { TextAnnotator } from "./react-text-annotator.es6.js";
|
|
6
6
|
import { TextAnnotationPopup, TextAnnotatorPopup } from "./react-text-annotator.es7.js";
|
|
7
7
|
import { Origin, UserSelectAction, createBody } from "@annotorious/core";
|
|
@@ -18,7 +18,7 @@ export {
|
|
|
18
18
|
UserSelectAction,
|
|
19
19
|
W3CTextFormat,
|
|
20
20
|
createBody,
|
|
21
|
-
|
|
21
|
+
useAnnotationQuoteIdling,
|
|
22
22
|
useAnnouncePopupNavigation
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=react-text-annotator.es.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import defaultBehaviors from "./react-text-annotator.
|
|
2
|
-
import * as utilities from "./react-text-annotator.
|
|
3
|
-
import { hideContent, defineCustomElement, tagName } from "./react-text-annotator.
|
|
4
|
-
import { addBehaviors, addBehavior, removeBehavior } from "./react-text-annotator.
|
|
5
|
-
import { learnElementNames, learnCustomElementNames } from "./react-text-annotator.
|
|
1
|
+
import defaultBehaviors from "./react-text-annotator.es23.js";
|
|
2
|
+
import * as utilities from "./react-text-annotator.es24.js";
|
|
3
|
+
import { hideContent, defineCustomElement, tagName } from "./react-text-annotator.es24.js";
|
|
4
|
+
import { addBehaviors, addBehavior, removeBehavior } from "./react-text-annotator.es25.js";
|
|
5
|
+
import { learnElementNames, learnCustomElementNames } from "./react-text-annotator.es26.js";
|
|
6
6
|
class CETEI {
|
|
7
7
|
constructor(options) {
|
|
8
8
|
this.options = options ? options : {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useLayoutEffect, useEffect, useRef } from "react";
|
|
3
|
-
import { isTypeableCombobox, getDocument, activeElement, contains, isVirtualClick, isVirtualPointerEvent, isSafari, stopEvent, getTarget, isReactEvent, isRootElement, isEventTargetWithin } from "./react-text-annotator.
|
|
4
|
-
import { getComputedStyle, isHTMLElement, isElement, getOverflowAncestors, getNodeName, isLastTraversableNode, getParentNode, isWebKit } from "./react-text-annotator.
|
|
5
|
-
import { isTabbable, tabbable } from "./react-text-annotator.
|
|
3
|
+
import { isTypeableCombobox, getDocument, activeElement, contains, isVirtualClick, isVirtualPointerEvent, isSafari, stopEvent, getTarget, isReactEvent, isRootElement, isEventTargetWithin } from "./react-text-annotator.es29.js";
|
|
4
|
+
import { getComputedStyle, isHTMLElement, isElement, getOverflowAncestors, getNodeName, isLastTraversableNode, getParentNode, isWebKit } from "./react-text-annotator.es30.js";
|
|
5
|
+
import { isTabbable, tabbable } from "./react-text-annotator.es31.js";
|
|
6
6
|
import * as ReactDOM from "react-dom";
|
|
7
7
|
import { useFloating as useFloating$1 } from "./react-text-annotator.es15.js";
|
|
8
8
|
import { arrow, flip, inline, offset, shift } from "./react-text-annotator.es15.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { offset as offset$1, shift as shift$1, flip as flip$1, inline as inline$1, computePosition as computePosition$1, arrow as arrow$1 } from "./react-text-annotator.
|
|
2
|
-
import { createCoords, rectToClientRect, round, floor, max, min } from "./react-text-annotator.
|
|
3
|
-
import { getOverflowAncestors, isElement, getWindow, getFrameElement, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock } from "./react-text-annotator.
|
|
1
|
+
import { offset as offset$1, shift as shift$1, flip as flip$1, inline as inline$1, computePosition as computePosition$1, arrow as arrow$1 } from "./react-text-annotator.es33.js";
|
|
2
|
+
import { createCoords, rectToClientRect, round, floor, max, min } from "./react-text-annotator.es32.js";
|
|
3
|
+
import { getOverflowAncestors, isElement, getWindow, getFrameElement, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock } from "./react-text-annotator.es30.js";
|
|
4
4
|
function getCssDimensions(element) {
|
|
5
5
|
const css = getComputedStyle(element);
|
|
6
6
|
let width = parseFloat(css.width) || 0;
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
var
|
|
1
|
+
var has = Object.prototype.hasOwnProperty;
|
|
2
|
+
function dequal(foo, bar) {
|
|
3
|
+
var ctor, len;
|
|
4
|
+
if (foo === bar) return true;
|
|
5
|
+
if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
|
|
6
|
+
if (ctor === Date) return foo.getTime() === bar.getTime();
|
|
7
|
+
if (ctor === RegExp) return foo.toString() === bar.toString();
|
|
8
|
+
if (ctor === Array) {
|
|
9
|
+
if ((len = foo.length) === bar.length) {
|
|
10
|
+
while (len-- && dequal(foo[len], bar[len])) ;
|
|
11
|
+
}
|
|
12
|
+
return len === -1;
|
|
13
|
+
}
|
|
14
|
+
if (!ctor || typeof foo === "object") {
|
|
15
|
+
len = 0;
|
|
16
|
+
for (ctor in foo) {
|
|
17
|
+
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
|
|
18
|
+
if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
|
|
19
|
+
}
|
|
20
|
+
return Object.keys(bar).length === len;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return foo !== foo && bar !== bar;
|
|
24
|
+
}
|
|
2
25
|
export {
|
|
3
|
-
|
|
26
|
+
dequal
|
|
4
27
|
};
|
|
5
28
|
//# sourceMappingURL=react-text-annotator.es19.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-text-annotator.es19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es19.js","sources":["../../../node_modules/dequal/lite/index.mjs"],"sourcesContent":["var has = Object.prototype.hasOwnProperty;\n\nexport function dequal(foo, bar) {\n\tvar ctor, len;\n\tif (foo === bar) return true;\n\n\tif (foo && bar && (ctor=foo.constructor) === bar.constructor) {\n\t\tif (ctor === Date) return foo.getTime() === bar.getTime();\n\t\tif (ctor === RegExp) return foo.toString() === bar.toString();\n\n\t\tif (ctor === Array) {\n\t\t\tif ((len=foo.length) === bar.length) {\n\t\t\t\twhile (len-- && dequal(foo[len], bar[len]));\n\t\t\t}\n\t\t\treturn len === -1;\n\t\t}\n\n\t\tif (!ctor || typeof foo === 'object') {\n\t\t\tlen = 0;\n\t\t\tfor (ctor in foo) {\n\t\t\t\tif (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;\n\t\t\t\tif (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;\n\t\t\t}\n\t\t\treturn Object.keys(bar).length === len;\n\t\t}\n\t}\n\n\treturn foo !== foo && bar !== bar;\n}\n"],"names":[],"mappings":"AAAA,IAAI,MAAM,OAAO,UAAU;AAEpB,SAAS,OAAO,KAAK,KAAK;AAChC,MAAI,MAAM;AACV,MAAI,QAAQ,IAAK,QAAO;AAExB,MAAI,OAAO,QAAQ,OAAK,IAAI,iBAAiB,IAAI,aAAa;AAC7D,QAAI,SAAS,KAAM,QAAO,IAAI,QAAS,MAAK,IAAI,QAAS;AACzD,QAAI,SAAS,OAAQ,QAAO,IAAI,SAAU,MAAK,IAAI,SAAU;AAE7D,QAAI,SAAS,OAAO;AACnB,WAAK,MAAI,IAAI,YAAY,IAAI,QAAQ;AACpC,eAAO,SAAS,OAAO,IAAI,GAAG,GAAG,IAAI,GAAG,CAAC,EAAE;AAAA,MAC/C;AACG,aAAO,QAAQ;AAAA,IAClB;AAEE,QAAI,CAAC,QAAQ,OAAO,QAAQ,UAAU;AACrC,YAAM;AACN,WAAK,QAAQ,KAAK;AACjB,YAAI,IAAI,KAAK,KAAK,IAAI,KAAK,EAAE,OAAO,CAAC,IAAI,KAAK,KAAK,IAAI,EAAG,QAAO;AACjE,YAAI,EAAE,QAAQ,QAAQ,CAAC,OAAO,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,EAAG,QAAO;AAAA,MAChE;AACG,aAAO,OAAO,KAAK,GAAG,EAAE,WAAW;AAAA,IACtC;AAAA,EACA;AAEC,SAAO,QAAQ,OAAO,QAAQ;AAC/B;","x_google_ignoreList":[0]}
|
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import React__default 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 hasRequiredReactJsxRuntime_production_min;
|
|
13
|
-
function requireReactJsxRuntime_production_min() {
|
|
14
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
15
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
16
|
-
var f = React__default, 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: true, ref: true, __self: true, __source: true };
|
|
17
|
-
function q(c, a, g) {
|
|
18
|
-
var b, d = {}, e = null, h = null;
|
|
19
|
-
void 0 !== g && (e = "" + g);
|
|
20
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
21
|
-
void 0 !== a.ref && (h = a.ref);
|
|
22
|
-
for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
23
|
-
if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
|
|
24
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
25
|
-
}
|
|
26
|
-
reactJsxRuntime_production_min.Fragment = l;
|
|
27
|
-
reactJsxRuntime_production_min.jsx = q;
|
|
28
|
-
reactJsxRuntime_production_min.jsxs = q;
|
|
29
|
-
return reactJsxRuntime_production_min;
|
|
30
|
-
}
|
|
1
|
+
var jsxRuntime = { exports: {} };
|
|
31
2
|
export {
|
|
32
|
-
|
|
3
|
+
jsxRuntime as __module
|
|
33
4
|
};
|
|
34
5
|
//# sourceMappingURL=react-text-annotator.es20.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-text-annotator.es20.js","sources":[
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|