@soomo/react-text-annotator 3.0.0-staging.34 → 3.0.0-staging.36
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/react-text-annotator.es11.js +1 -1
- package/dist/react-text-annotator.es12.js +5 -5
- package/dist/react-text-annotator.es13.js +2 -51
- package/dist/react-text-annotator.es13.js.map +1 -1
- package/dist/react-text-annotator.es14.js +30 -146
- package/dist/react-text-annotator.es14.js.map +1 -1
- package/dist/react-text-annotator.es15.js +898 -2
- package/dist/react-text-annotator.es15.js.map +1 -1
- package/dist/react-text-annotator.es16.js +49 -29
- package/dist/react-text-annotator.es16.js.map +1 -1
- package/dist/react-text-annotator.es17.js +145 -896
- package/dist/react-text-annotator.es17.js.map +1 -1
- package/dist/react-text-annotator.es18.js +114 -2
- package/dist/react-text-annotator.es18.js.map +1 -1
- package/dist/react-text-annotator.es19.js +309 -2
- package/dist/react-text-annotator.es19.js.map +1 -1
- package/dist/react-text-annotator.es20.js +53 -109
- package/dist/react-text-annotator.es20.js.map +1 -1
- package/dist/react-text-annotator.es21.js +17 -306
- package/dist/react-text-annotator.es21.js.map +1 -1
- package/dist/react-text-annotator.es22.js +2 -58
- package/dist/react-text-annotator.es22.js.map +1 -1
- package/dist/react-text-annotator.es23.js +2 -20
- package/dist/react-text-annotator.es23.js.map +1 -1
- package/dist/react-text-annotator.es7.js +3 -3
- package/dist/react-text-annotator.es9.js +2 -2
- package/package.json +2 -2
|
@@ -1,61 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
if (bhvs.namespaces) {
|
|
3
|
-
for (let prefix of Object.keys(bhvs.namespaces)) {
|
|
4
|
-
if (!this.namespaces.has(bhvs.namespaces[prefix]) && !Array.from(this.namespaces.values()).includes(prefix)) {
|
|
5
|
-
this.namespaces.set(bhvs.namespaces[prefix], prefix);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
for (let prefix of this.namespaces.values()) {
|
|
10
|
-
if (bhvs[prefix]) {
|
|
11
|
-
for (let b of Object.keys(bhvs[prefix])) {
|
|
12
|
-
this.behaviors[`${prefix}:${b}`] = bhvs[prefix][b];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
if (bhvs["functions"]) {
|
|
17
|
-
for (let fn of Object.keys(bhvs["functions"])) {
|
|
18
|
-
this.utilities[fn] = bhvs["functions"][fn].bind(this.utilities);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
if (bhvs["handlers"]) {
|
|
22
|
-
console.log("Behavior handlers are no longer used.");
|
|
23
|
-
}
|
|
24
|
-
if (bhvs["fallbacks"]) {
|
|
25
|
-
console.log("Fallback behaviors are no longer used.");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function addBehavior(ns, element, b) {
|
|
29
|
-
let p;
|
|
30
|
-
if (ns === Object(ns)) {
|
|
31
|
-
for (let prefix of Object.keys(ns)) {
|
|
32
|
-
if (!this.namespaces.has(ns[prefix])) {
|
|
33
|
-
this.namespaces.set(ns[prefix], prefix);
|
|
34
|
-
p = prefix;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
} else {
|
|
38
|
-
p = ns;
|
|
39
|
-
}
|
|
40
|
-
this.behaviors[`${p}:${element}`] = b;
|
|
41
|
-
}
|
|
42
|
-
function removeBehavior(ns, element) {
|
|
43
|
-
let p;
|
|
44
|
-
if (ns === Object(ns)) {
|
|
45
|
-
for (let prefix of Object.keys(ns)) {
|
|
46
|
-
if (!this.namespaces.has(ns[prefix])) {
|
|
47
|
-
this.namespaces.set(ns[prefix], prefix);
|
|
48
|
-
p = prefix;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
} else {
|
|
52
|
-
p = ns;
|
|
53
|
-
}
|
|
54
|
-
delete this.behaviors[`${p}:${element}`];
|
|
55
|
-
}
|
|
1
|
+
var reactJsxRuntime_production_min = {};
|
|
56
2
|
export {
|
|
57
|
-
|
|
58
|
-
addBehaviors,
|
|
59
|
-
removeBehavior
|
|
3
|
+
reactJsxRuntime_production_min as __exports
|
|
60
4
|
};
|
|
61
5
|
//# sourceMappingURL=react-text-annotator.es22.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-text-annotator.es22.js","sources":[
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es22.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const root = XML_dom.documentElement;
|
|
3
|
-
let i = 1;
|
|
4
|
-
let qname = function(e) {
|
|
5
|
-
if (!namespaces.has(e.namespaceURI ? e.namespaceURI : "")) {
|
|
6
|
-
namespaces.set(e.namespaceURI, "ns" + i++);
|
|
7
|
-
}
|
|
8
|
-
return namespaces.get(e.namespaceURI ? e.namespaceURI : "") + ":" + e.localName;
|
|
9
|
-
};
|
|
10
|
-
const els = new Set(
|
|
11
|
-
Array.from(root.querySelectorAll("*"), qname)
|
|
12
|
-
);
|
|
13
|
-
els.add(qname(root));
|
|
14
|
-
return els;
|
|
15
|
-
}
|
|
16
|
-
function learnCustomElementNames(HTML_dom) {
|
|
17
|
-
return new Set(Array.from(HTML_dom.querySelectorAll("*[data-origname]"), (e) => e.localName.replace(/(\w+)-.+/, "$1:") + e.getAttribute("data-origname")));
|
|
18
|
-
}
|
|
1
|
+
var reactJsxRuntime_development = {};
|
|
19
2
|
export {
|
|
20
|
-
|
|
21
|
-
learnElementNames
|
|
3
|
+
reactJsxRuntime_development as __exports
|
|
22
4
|
};
|
|
23
5
|
//# sourceMappingURL=react-text-annotator.es23.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-text-annotator.es23.js","sources":[
|
|
1
|
+
{"version":3,"file":"react-text-annotator.es23.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __module as jsxRuntime } from "./react-text-annotator.
|
|
2
|
-
import { __require as requireReactJsxRuntime_production_min } from "./react-text-annotator.
|
|
3
|
-
import { __require as requireReactJsxRuntime_development } from "./react-text-annotator.
|
|
1
|
+
import { __module as jsxRuntime } from "./react-text-annotator.es13.js";
|
|
2
|
+
import { __require as requireReactJsxRuntime_production_min } from "./react-text-annotator.es14.js";
|
|
3
|
+
import { __require as requireReactJsxRuntime_development } from "./react-text-annotator.es15.js";
|
|
4
4
|
if (process.env.NODE_ENV === "production") {
|
|
5
5
|
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
6
6
|
} else {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useLayoutEffect, useEffect } from "react";
|
|
3
|
-
import { getDocument, isReactEvent, getTarget, isRootElement, contains, isEventTargetWithin } from "./react-text-annotator.
|
|
4
|
-
import { isElement, getOverflowAncestors, isLastTraversableNode, getParentNode, isHTMLElement, getComputedStyle } from "./react-text-annotator.
|
|
3
|
+
import { getDocument, isReactEvent, getTarget, isRootElement, contains, isEventTargetWithin } from "./react-text-annotator.es16.js";
|
|
4
|
+
import { isElement, getOverflowAncestors, isLastTraversableNode, getParentNode, isHTMLElement, getComputedStyle } from "./react-text-annotator.es17.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import { useFloating as useFloating$1 } from "./react-text-annotator.es10.js";
|
|
7
7
|
import { flip, inline, offset, shift } from "./react-text-annotator.es10.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soomo/react-text-annotator",
|
|
3
|
-
"version": "3.0.0-staging.
|
|
3
|
+
"version": "3.0.0-staging.36",
|
|
4
4
|
"description": "Recogito Text Annotator React bindings",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@annotorious/core": "^3.0.0-rc.31",
|
|
49
49
|
"@annotorious/react": "^3.0.0-rc.31",
|
|
50
50
|
"@floating-ui/react": "^0.26.20",
|
|
51
|
-
"@soomo/text-annotator": "3.0.0-staging.
|
|
51
|
+
"@soomo/text-annotator": "3.0.0-staging.36",
|
|
52
52
|
"@recogito/text-annotator-tei": "3.0.0-rc.39",
|
|
53
53
|
"CETEIcean": "^1.9.3"
|
|
54
54
|
}
|