@recogito/text-annotator 3.0.0-rc.23 → 3.0.0-rc.25
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/src/index.d.ts +1 -6
- package/dist/src/utils/cancelSingleClickEvents.d.ts +6 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/text-annotator.es.js +355 -336
- 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/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Origin as _Origin, PointerSelectAction as _PointerSelectAction } from '@annotorious/core';
|
|
2
1
|
export * from './highlight';
|
|
3
2
|
export * from './model';
|
|
4
3
|
export * from './state';
|
|
@@ -7,8 +6,4 @@ export * from './presence/PresencePainterOptions';
|
|
|
7
6
|
export * from './TextAnnotator';
|
|
8
7
|
export * from './TextAnnotatorOptions';
|
|
9
8
|
export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Color, Filter, FormatAdapter, HoverState, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, ParseResult, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
|
|
10
|
-
export
|
|
11
|
-
export declare const createBody: (annotation: import('@annotorious/core').Annotation, payload: {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}, created?: Date, creator?: import('@annotorious/core').User) => import('@annotorious/core').AnnotationBody;
|
|
14
|
-
export declare const Origin: typeof _Origin;
|
|
9
|
+
export { createBody, Origin, PointerSelectAction } from '@annotorious/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calls .preventDefault() on click events in annotable areas, in order
|
|
3
|
+
* to prevent problematic default browser behavior. (Specifically: keep
|
|
4
|
+
* Chrome Android from triggering word selection on single click.)
|
|
5
|
+
*/
|
|
6
|
+
export declare const cancelSingleClickEvents: (container: HTMLElement) => void;
|