@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.
Files changed (47) hide show
  1. package/dist/TextAnnotationPopup/TextAnnotationPopup.d.ts.map +1 -1
  2. package/dist/hooks/index.d.ts +1 -1
  3. package/dist/hooks/index.d.ts.map +1 -1
  4. package/dist/hooks/useAnnotationQuoteIdling.d.ts +4 -0
  5. package/dist/hooks/useAnnotationQuoteIdling.d.ts.map +1 -0
  6. package/dist/react-text-annotator.es.js +2 -2
  7. package/dist/react-text-annotator.es11.js +5 -5
  8. package/dist/react-text-annotator.es12.js +3 -3
  9. package/dist/react-text-annotator.es16.js +3 -3
  10. package/dist/react-text-annotator.es19.js +25 -2
  11. package/dist/react-text-annotator.es19.js.map +1 -1
  12. package/dist/react-text-annotator.es20.js +2 -31
  13. package/dist/react-text-annotator.es20.js.map +1 -1
  14. package/dist/react-text-annotator.es21.js +20 -887
  15. package/dist/react-text-annotator.es21.js.map +1 -1
  16. package/dist/react-text-annotator.es22.js +898 -2
  17. package/dist/react-text-annotator.es22.js.map +1 -1
  18. package/dist/react-text-annotator.es23.js +114 -2
  19. package/dist/react-text-annotator.es23.js.map +1 -1
  20. package/dist/react-text-annotator.es24.js +302 -107
  21. package/dist/react-text-annotator.es24.js.map +1 -1
  22. package/dist/react-text-annotator.es25.js +39 -290
  23. package/dist/react-text-annotator.es25.js.map +1 -1
  24. package/dist/react-text-annotator.es26.js +17 -55
  25. package/dist/react-text-annotator.es26.js.map +1 -1
  26. package/dist/react-text-annotator.es27.js +2 -20
  27. package/dist/react-text-annotator.es27.js.map +1 -1
  28. package/dist/react-text-annotator.es28.js +2 -127
  29. package/dist/react-text-annotator.es28.js.map +1 -1
  30. package/dist/react-text-annotator.es29.js +107 -144
  31. package/dist/react-text-annotator.es29.js.map +1 -1
  32. package/dist/react-text-annotator.es30.js +156 -303
  33. package/dist/react-text-annotator.es30.js.map +1 -1
  34. package/dist/react-text-annotator.es31.js +308 -146
  35. package/dist/react-text-annotator.es31.js.map +1 -1
  36. package/dist/react-text-annotator.es32.js +130 -607
  37. package/dist/react-text-annotator.es32.js.map +1 -1
  38. package/dist/react-text-annotator.es33.js +629 -0
  39. package/dist/react-text-annotator.es33.js.map +1 -0
  40. package/dist/react-text-annotator.es5.js +32 -17
  41. package/dist/react-text-annotator.es5.js.map +1 -1
  42. package/dist/react-text-annotator.es7.js +11 -7
  43. package/dist/react-text-annotator.es7.js.map +1 -1
  44. package/dist/react-text-annotator.es9.js +3 -3
  45. package/package.json +3 -2
  46. package/dist/hooks/useAnnotationTargetIdling.d.ts +0 -4
  47. 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,EAKL,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,CA+I5D,CAAC;AAaF,mCAAmC;AACnC,kDAAkD;AAClD,eAAO,MAAM,kBAAkB,UAAW,wBAAwB,4CAOjE,CAAC"}
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"}
@@ -1,3 +1,3 @@
1
1
  export { useAnnouncePopupNavigation } from './useAnnouncePopupNavigation';
2
- export { useAnnotationTargetIdling } from './useAnnotationTargetIdling';
2
+ export { useAnnotationQuoteIdling } from './useAnnotationQuoteIdling';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -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,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
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,4 @@
1
+ export declare const useAnnotationQuoteIdling: (annotationId: string | undefined, options?: {
2
+ timeout: number;
3
+ }) => boolean;
4
+ //# sourceMappingURL=useAnnotationQuoteIdling.d.ts.map
@@ -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 { useAnnotationTargetIdling } from "./react-text-annotator.es5.js";
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
- useAnnotationTargetIdling,
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.es24.js";
2
- import * as utilities from "./react-text-annotator.es25.js";
3
- import { hideContent, defineCustomElement, tagName } from "./react-text-annotator.es25.js";
4
- import { addBehaviors, addBehavior, removeBehavior } from "./react-text-annotator.es26.js";
5
- import { learnElementNames, learnCustomElementNames } from "./react-text-annotator.es27.js";
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.es28.js";
4
- import { getComputedStyle, isHTMLElement, isElement, getOverflowAncestors, getNodeName, isLastTraversableNode, getParentNode, isWebKit } from "./react-text-annotator.es29.js";
5
- import { isTabbable, tabbable } from "./react-text-annotator.es30.js";
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.es32.js";
2
- import { createCoords, rectToClientRect, round, floor, max, min } from "./react-text-annotator.es31.js";
3
- import { getOverflowAncestors, isElement, getWindow, getFrameElement, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock } from "./react-text-annotator.es29.js";
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 jsxRuntime = { exports: {} };
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
- jsxRuntime as __module
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
- import { __exports as reactJsxRuntime_production_min } from "./react-text-annotator.es22.js";
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
- requireReactJsxRuntime_production_min as __require
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":["../../../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":["require$$0"],"mappings":";;;;;;;;;;;;;;;AASa,MAAI,IAAEA,gBAAiB,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAE,IAAE,OAAO,UAAU,gBAAe,IAAE,EAAE,mDAAmD,mBAAkB,IAAE,EAAC,KAAI,MAAG,KAAI,MAAG,QAAO,MAAG,UAAS,KAAE;AAClP,WAAS,EAAE,GAAE,GAAE,GAAE;AAAC,QAAI,GAAE,IAAE,IAAG,IAAE,MAAK,IAAE;AAAK,eAAS,MAAI,IAAE,KAAG;AAAG,eAAS,EAAE,QAAM,IAAE,KAAG,EAAE;AAAK,eAAS,EAAE,QAAM,IAAE,EAAE;AAAK,SAAI,KAAK,EAAE,GAAE,KAAK,GAAE,CAAC,KAAG,CAAC,EAAE,eAAe,CAAC,MAAI,EAAE,CAAC,IAAE,EAAE,CAAC;AAAG,QAAG,KAAG,EAAE,aAAa,MAAI,KAAK,IAAE,EAAE,cAAa,EAAE,YAAS,EAAE,CAAC,MAAI,EAAE,CAAC,IAAE,EAAE,CAAC;AAAG,WAAM,EAAC,UAAS,GAAE,MAAK,GAAE,KAAI,GAAE,KAAI,GAAE,OAAM,GAAE,QAAO,EAAE,QAAO;AAAA,EAAC;AAAC,4CAAiB;AAAE,iCAAW,MAAC;AAAE,iCAAA,OAAa;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"react-text-annotator.es20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}