@soomo/react-text-annotator 3.1.0-staging.20 → 3.1.0-staging.21

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 (38) hide show
  1. package/dist/TextAnnotator.d.ts +4 -4
  2. package/dist/TextAnnotator.d.ts.map +1 -1
  3. package/dist/react-text-annotator.es11.js +5 -5
  4. package/dist/react-text-annotator.es12.js +78 -1593
  5. package/dist/react-text-annotator.es12.js.map +1 -1
  6. package/dist/react-text-annotator.es13.js +45 -9
  7. package/dist/react-text-annotator.es13.js.map +1 -1
  8. package/dist/react-text-annotator.es14.js +28 -0
  9. package/dist/react-text-annotator.es14.js.map +1 -0
  10. package/dist/react-text-annotator.es15.js +1537 -222
  11. package/dist/react-text-annotator.es15.js.map +1 -1
  12. package/dist/react-text-annotator.es16.js +8 -586
  13. package/dist/react-text-annotator.es16.js.map +1 -1
  14. package/dist/react-text-annotator.es18.js +274 -37
  15. package/dist/react-text-annotator.es18.js.map +1 -1
  16. package/dist/react-text-annotator.es19.js +581 -19
  17. package/dist/react-text-annotator.es19.js.map +1 -1
  18. package/dist/react-text-annotator.es21.js +1 -1
  19. package/dist/react-text-annotator.es22.js +1 -1
  20. package/dist/react-text-annotator.es23.js +2 -114
  21. package/dist/react-text-annotator.es23.js.map +1 -1
  22. package/dist/react-text-annotator.es24.js +2 -309
  23. package/dist/react-text-annotator.es24.js.map +1 -1
  24. package/dist/react-text-annotator.es25.js +109 -53
  25. package/dist/react-text-annotator.es25.js.map +1 -1
  26. package/dist/react-text-annotator.es26.js +306 -17
  27. package/dist/react-text-annotator.es26.js.map +1 -1
  28. package/dist/react-text-annotator.es27.js +58 -2
  29. package/dist/react-text-annotator.es27.js.map +1 -1
  30. package/dist/react-text-annotator.es28.js +20 -2
  31. package/dist/react-text-annotator.es28.js.map +1 -1
  32. package/dist/react-text-annotator.es4.js +2 -2
  33. package/dist/react-text-annotator.es5.js +1 -1
  34. package/dist/react-text-annotator.es6.js.map +1 -1
  35. package/dist/react-text-annotator.es7.js +4 -4
  36. package/package.json +1 -1
  37. package/dist/react-text-annotator.es17.js +0 -85
  38. package/dist/react-text-annotator.es17.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"react-text-annotator.es13.js","sources":["../src/TextAnnotationPopup/isMobile.ts"],"sourcesContent":["// https://stackoverflow.com/questions/21741841/detecting-ios-android-operating-system\nexport const isMobile = () => {\n // @ts-ignore\n var userAgent: string = navigator.userAgent || navigator.vendor || window.opera;\n\n if (/android/i.test(userAgent)) \n return true;\n\n // @ts-ignore\n // Note: as of recently, this NO LONGER DETECTS FIREFOX ON iOS!\n // This means FF/iOS will behave like on the desktop, and loose\n // selection handlebars after the popup opens.\n if (/iPad|iPhone/.test(userAgent) && !window.MSStream)\n return true;\n\n return false;\n}"],"names":[],"mappings":"AACO,MAAM,WAAW,MAAM;AAE5B,MAAI,YAAoB,UAAU,aAAa,UAAU,UAAU,OAAO;AAEtE,MAAA,WAAW,KAAK,SAAS;AACpB,WAAA;AAMT,MAAI,cAAc,KAAK,SAAS,KAAK,CAAC,OAAO;AACpC,WAAA;AAEF,SAAA;AACT;"}
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]}
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
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]}