@recogito/text-annotator 4.2.2 → 4.2.3
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/state/spatial-tree.d.ts +5 -5
- package/dist/state/text-annotation-store.d.ts +5 -1
- package/dist/text-annotator-options.d.ts +1 -1
- package/dist/text-annotator.es.js +456 -458
- package/dist/text-annotator.es.js.map +1 -1
- package/dist/text-annotator.umd.js +2 -2
- package/dist/text-annotator.umd.js.map +1 -1
- package/dist/utils/annotation/revive-annotation.d.ts +2 -2
- package/package.json +2 -2
|
@@ -9,5 +9,5 @@ import type { RevivedTextAnnotationLike, RevivedTextAnnotationTargetLike, Revive
|
|
|
9
9
|
* @returns the revived selector
|
|
10
10
|
*/
|
|
11
11
|
export declare const reviveTextSelector: <T extends TextSelector>(selector: T, container: HTMLElement) => RevivedTextSelector;
|
|
12
|
-
export declare const reviveTarget: <T extends TextAnnotationTargetLike>(target: T, container: HTMLElement, reviveFn?: (arg: T["selector"][number], container: HTMLElement) => RevivedTextSelectorLike) => RevivedTextAnnotationTargetLike<T>;
|
|
13
|
-
export declare const reviveAnnotation: <T extends TextAnnotationLike>(annotation: T, container: HTMLElement, reviveFn?: (arg: T["target"]["selector"][number], container: HTMLElement) => RevivedTextSelectorLike) => RevivedTextAnnotationLike<T>;
|
|
12
|
+
export declare const reviveTarget: <T extends TextAnnotationTargetLike>(target: T, container: HTMLElement, reviveFn?: (arg: T["selector"][number], container: HTMLElement) => RevivedTextSelectorLike | RevivedTextSelectorLike[]) => RevivedTextAnnotationTargetLike<T>;
|
|
13
|
+
export declare const reviveAnnotation: <T extends TextAnnotationLike>(annotation: T, container: HTMLElement, reviveFn?: (arg: T["target"]["selector"][number], container: HTMLElement) => RevivedTextSelectorLike | RevivedTextSelectorLike[]) => RevivedTextAnnotationLike<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recogito/text-annotator",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "A JavaScript text annotation library",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vitest": "^4.1.8"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@annotorious/core": "^3.8.
|
|
38
|
+
"@annotorious/core": "^3.8.6",
|
|
39
39
|
"colord": "^2.9.3",
|
|
40
40
|
"debounce": "^3.0.0",
|
|
41
41
|
"dequal": "^2.0.3",
|