@recogito/text-annotator 3.0.0-rc.1 → 3.0.0-rc.10

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.
@@ -1,3 +1,3 @@
1
- import type { TextAnnotationStore } from 'src/state';
1
+ import { type TextAnnotationStore } from '../state';
2
2
  import type { TextAnnotation } from '../model/TextAnnotation';
3
3
  export declare const scrollIntoView: (container: HTMLElement, store: TextAnnotationStore) => (annotation: TextAnnotation) => boolean;
@@ -1,9 +1,10 @@
1
- import type { DrawingStyle, ViewportState } from '@annotorious/core';
1
+ import type { DrawingStyle, Filter, ViewportState } from '@annotorious/core';
2
2
  import type { TextAnnotation } from '../model';
3
3
  import type { TextAnnotatorState } from '../state';
4
4
  import { type HighlightPainter } from './HighlightPainter';
5
5
  export declare const createHighlightLayer: (container: HTMLElement, state: TextAnnotatorState, viewport: ViewportState) => {
6
6
  redraw: () => number;
7
7
  setDrawingStyle: (style: DrawingStyle | ((a: TextAnnotation, selected?: boolean) => DrawingStyle)) => void;
8
+ setFilter: (filter?: Filter) => void;
8
9
  setPainter: (painter: HighlightPainter) => HighlightPainter;
9
10
  };
@@ -4,6 +4,6 @@ export * from './state';
4
4
  export * from './presence/PresencePainterOptions';
5
5
  export * from './TextAnnotator';
6
6
  export * from './TextAnnotatorOptions';
7
- export * from '@annotorious/core/src/model';
8
- import { Origin as _Origin } from '@annotorious/core/src/state';
9
- export declare const Origin: typeof _Origin;
7
+ export type { Filter } from '@annotorious/core';
8
+ import { Origin as _Origin } from '@annotorious/core';
9
+ export { _Origin as Origin };
@@ -0,0 +1,4 @@
1
+ export declare const getContext: (range: Range, container: HTMLElement, length?: number, offsetReferenceSelector?: string) => {
2
+ prefix: string;
3
+ suffix: string;
4
+ };
@@ -1 +1 @@
1
- html,body{overscroll-behavior-y:none}.r6o-annotatable,.r6o-annotatable *{position:relative}.r6o-annotatable.hovered{cursor:pointer}.r6o-highlight-layer{height:100vh;left:0;position:fixed;top:0;pointer-events:none;width:100vw}*::selection,::selection{background:rgba(0,128,255,.18)}::-moz-selection{background:rgba(0,128,255,.18)}
1
+ html,body{overscroll-behavior-y:none}.r6o-annotatable{-webkit-tap-highlight-color:transparent}.r6o-annotatable,.r6o-annotatable *{position:relative}.r6o-annotatable.hovered{cursor:pointer}.r6o-highlight-layer{left:0;position:fixed;top:0;bottom:0;width:100vw;pointer-events:none}*::selection,::selection{background:#0080ff2e}::-moz-selection{background:#0080ff2e}