@soomo/react-text-annotator 3.1.0-staging.22 → 3.1.0-staging.24

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 (71) hide show
  1. package/dist/TextAnnotationPopup/TextAnnotationPopup.d.ts.map +1 -1
  2. package/dist/hooks/useAnnotationQuoteIdling.d.ts.map +1 -1
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/react-text-annotator.css +1 -31
  6. package/dist/react-text-annotator.es.js +245 -21
  7. package/dist/react-text-annotator.es.js.map +1 -1
  8. package/dist/tei/CETEIcean.d.ts +1 -0
  9. package/dist/tei/CETEIcean.d.ts.map +1 -1
  10. package/dist/tei/TEIAnnotator.d.ts.map +1 -1
  11. package/package.json +13 -12
  12. package/dist/react-text-annotator.es11.js +0 -490
  13. package/dist/react-text-annotator.es11.js.map +0 -1
  14. package/dist/react-text-annotator.es12.js +0 -85
  15. package/dist/react-text-annotator.es12.js.map +0 -1
  16. package/dist/react-text-annotator.es13.js +0 -48
  17. package/dist/react-text-annotator.es13.js.map +0 -1
  18. package/dist/react-text-annotator.es14.js +0 -28
  19. package/dist/react-text-annotator.es14.js.map +0 -1
  20. package/dist/react-text-annotator.es15.js +0 -1600
  21. package/dist/react-text-annotator.es15.js.map +0 -1
  22. package/dist/react-text-annotator.es16.js +0 -12
  23. package/dist/react-text-annotator.es16.js.map +0 -1
  24. package/dist/react-text-annotator.es18.js +0 -285
  25. package/dist/react-text-annotator.es18.js.map +0 -1
  26. package/dist/react-text-annotator.es19.js +0 -590
  27. package/dist/react-text-annotator.es19.js.map +0 -1
  28. package/dist/react-text-annotator.es2.js +0 -64
  29. package/dist/react-text-annotator.es2.js.map +0 -1
  30. package/dist/react-text-annotator.es20.js +0 -5
  31. package/dist/react-text-annotator.es20.js.map +0 -1
  32. package/dist/react-text-annotator.es21.js +0 -34
  33. package/dist/react-text-annotator.es21.js.map +0 -1
  34. package/dist/react-text-annotator.es22.js +0 -901
  35. package/dist/react-text-annotator.es22.js.map +0 -1
  36. package/dist/react-text-annotator.es23.js +0 -5
  37. package/dist/react-text-annotator.es23.js.map +0 -1
  38. package/dist/react-text-annotator.es24.js +0 -5
  39. package/dist/react-text-annotator.es24.js.map +0 -1
  40. package/dist/react-text-annotator.es25.js +0 -117
  41. package/dist/react-text-annotator.es25.js.map +0 -1
  42. package/dist/react-text-annotator.es26.js +0 -312
  43. package/dist/react-text-annotator.es26.js.map +0 -1
  44. package/dist/react-text-annotator.es27.js +0 -61
  45. package/dist/react-text-annotator.es27.js.map +0 -1
  46. package/dist/react-text-annotator.es28.js +0 -23
  47. package/dist/react-text-annotator.es28.js.map +0 -1
  48. package/dist/react-text-annotator.es29.js +0 -130
  49. package/dist/react-text-annotator.es29.js.map +0 -1
  50. package/dist/react-text-annotator.es3.js +0 -29
  51. package/dist/react-text-annotator.es3.js.map +0 -1
  52. package/dist/react-text-annotator.es30.js +0 -167
  53. package/dist/react-text-annotator.es30.js.map +0 -1
  54. package/dist/react-text-annotator.es31.js +0 -314
  55. package/dist/react-text-annotator.es31.js.map +0 -1
  56. package/dist/react-text-annotator.es32.js +0 -152
  57. package/dist/react-text-annotator.es32.js.map +0 -1
  58. package/dist/react-text-annotator.es33.js +0 -629
  59. package/dist/react-text-annotator.es33.js.map +0 -1
  60. package/dist/react-text-annotator.es4.js +0 -43
  61. package/dist/react-text-annotator.es4.js.map +0 -1
  62. package/dist/react-text-annotator.es5.js +0 -48
  63. package/dist/react-text-annotator.es5.js.map +0 -1
  64. package/dist/react-text-annotator.es6.js +0 -29
  65. package/dist/react-text-annotator.es6.js.map +0 -1
  66. package/dist/react-text-annotator.es7.js +0 -151
  67. package/dist/react-text-annotator.es7.js.map +0 -1
  68. package/dist/react-text-annotator.es8.js +0 -562
  69. package/dist/react-text-annotator.es8.js.map +0 -1
  70. package/dist/react-text-annotator.es9.js +0 -13
  71. package/dist/react-text-annotator.es9.js.map +0 -1
@@ -1,48 +0,0 @@
1
- function* range(minimum, maximum) {
2
- for (let number = minimum; number <= maximum; number++) {
3
- yield number;
4
- }
5
- }
6
- function randomInteger(minimum, maximum) {
7
- return Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
8
- }
9
- function randomIntegerWithout(minimum, maximum, excludedValue) {
10
- const number = randomInteger(minimum, maximum - 1);
11
- return number >= excludedValue ? number + 1 : number;
12
- }
13
- function makeCallable(generator) {
14
- const iterator = generator();
15
- function random() {
16
- return iterator.next().value;
17
- }
18
- random[Symbol.iterator] = function* () {
19
- while (true) {
20
- yield random();
21
- }
22
- };
23
- return random;
24
- }
25
- function exhaustiveUniqueRandom(minimum, maximum) {
26
- return makeCallable(function* () {
27
- let unconsumedValues = [...range(minimum, maximum)];
28
- while (true) {
29
- while (unconsumedValues.length > 1) {
30
- yield unconsumedValues.splice(
31
- randomInteger(0, unconsumedValues.length - 1),
32
- 1
33
- )[0];
34
- }
35
- const [previousValue] = unconsumedValues;
36
- yield previousValue;
37
- unconsumedValues = [...range(minimum, maximum)];
38
- yield unconsumedValues.splice(
39
- randomIntegerWithout(0, unconsumedValues.length - 1, previousValue - minimum),
40
- 1
41
- )[0];
42
- }
43
- });
44
- }
45
- export {
46
- exhaustiveUniqueRandom
47
- };
48
- //# sourceMappingURL=react-text-annotator.es13.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-text-annotator.es13.js","sources":["../../../node_modules/unique-random/index.js"],"sourcesContent":["function * range(minimum, maximum) {\n\tfor (let number = minimum; number <= maximum; number++) {\n\t\tyield number;\n\t}\n}\n\nfunction randomInteger(minimum, maximum) {\n\treturn Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;\n}\n\nfunction randomIntegerWithout(minimum, maximum, excludedValue) {\n\tconst number = randomInteger(minimum, maximum - 1);\n\n\treturn number >= excludedValue ? number + 1 : number;\n}\n\nfunction makeCallable(generator) {\n\tconst iterator = generator();\n\n\tfunction random() {\n\t\treturn iterator.next().value;\n\t}\n\n\trandom[Symbol.iterator] = function * () {\n\t\twhile (true) {\n\t\t\tyield random();\n\t\t}\n\t};\n\n\treturn random;\n}\n\nexport function consecutiveUniqueRandom(minimum, maximum) {\n\treturn makeCallable(function * () {\n\t\tif (minimum === maximum) {\n\t\t\twhile (true) {\n\t\t\t\tyield minimum;\n\t\t\t}\n\t\t}\n\n\t\tlet previousValue = randomInteger(minimum, maximum);\n\t\tyield previousValue;\n\n\t\twhile (true) {\n\t\t\tpreviousValue = randomIntegerWithout(minimum, maximum, previousValue);\n\t\t\tyield previousValue;\n\t\t}\n\t});\n}\n\nexport function exhaustiveUniqueRandom(minimum, maximum) {\n\treturn makeCallable(function * () {\n\t\tif (minimum === maximum) {\n\t\t\twhile (true) {\n\t\t\t\tyield minimum;\n\t\t\t}\n\t\t}\n\n\t\tlet unconsumedValues = [...range(minimum, maximum)];\n\n\t\twhile (true) {\n\t\t\twhile (unconsumedValues.length > 1) {\n\t\t\t\tyield unconsumedValues.splice(\n\t\t\t\t\trandomInteger(0, unconsumedValues.length - 1),\n\t\t\t\t\t1,\n\t\t\t\t)[0];\n\t\t\t}\n\n\t\t\tconst [previousValue] = unconsumedValues;\n\n\t\t\tyield previousValue;\n\n\t\t\tunconsumedValues = [...range(minimum, maximum)];\n\n\t\t\tyield unconsumedValues.splice(\n\t\t\t\trandomIntegerWithout(0, unconsumedValues.length - 1, previousValue - minimum),\n\t\t\t\t1,\n\t\t\t)[0];\n\t\t}\n\t});\n}\n"],"names":[],"mappings":"AAAA,UAAW,MAAM,SAAS,SAAS;AAClC,WAAS,SAAS,SAAS,UAAU,SAAS,UAAU;AACvD,UAAM;AAAA,EACR;AACA;AAEA,SAAS,cAAc,SAAS,SAAS;AACxC,SAAO,KAAK,MAAM,KAAK,OAAM,KAAM,UAAU,UAAU,EAAE,IAAI;AAC9D;AAEA,SAAS,qBAAqB,SAAS,SAAS,eAAe;AAC9D,QAAM,SAAS,cAAc,SAAS,UAAU,CAAC;AAEjD,SAAO,UAAU,gBAAgB,SAAS,IAAI;AAC/C;AAEA,SAAS,aAAa,WAAW;AAChC,QAAM,WAAW,UAAW;AAE5B,WAAS,SAAS;AACjB,WAAO,SAAS,KAAI,EAAG;AAAA,EACzB;AAEC,SAAO,OAAO,QAAQ,IAAI,aAAc;AACvC,WAAO,MAAM;AACZ,YAAM,OAAQ;AAAA,IACjB;AAAA,EACE;AAED,SAAO;AACR;AAoBO,SAAS,uBAAuB,SAAS,SAAS;AACxD,SAAO,aAAa,aAAc;AAOjC,QAAI,mBAAmB,CAAC,GAAG,MAAM,SAAS,OAAO,CAAC;AAElD,WAAO,MAAM;AACZ,aAAO,iBAAiB,SAAS,GAAG;AACnC,cAAM,iBAAiB;AAAA,UACtB,cAAc,GAAG,iBAAiB,SAAS,CAAC;AAAA,UAC5C;AAAA,QACA,EAAC,CAAC;AAAA,MACP;AAEG,YAAM,CAAC,aAAa,IAAI;AAExB,YAAM;AAEN,yBAAmB,CAAC,GAAG,MAAM,SAAS,OAAO,CAAC;AAE9C,YAAM,iBAAiB;AAAA,QACtB,qBAAqB,GAAG,iBAAiB,SAAS,GAAG,gBAAgB,OAAO;AAAA,QAC5E;AAAA,MACA,EAAC,CAAC;AAAA,IACN;AAAA,EACA,CAAE;AACF;","x_google_ignoreList":[0]}
@@ -1,28 +0,0 @@
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
- }
25
- export {
26
- dequal
27
- };
28
- //# sourceMappingURL=react-text-annotator.es14.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-text-annotator.es14.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]}