@ones-editor/editor 0.0.3-beta.67 → 0.0.3-beta.69

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,5 +1,5 @@
1
1
  import { OnesEditorDocRange } from '../../doc';
2
- import { OnesEditor, SelectionRange, SelectedBlock, ContainerElement } from '../../types';
2
+ import { OnesEditor, SelectionRange, SelectedBlock, ContainerElement, SimpleSelectionRange } from '../../types';
3
3
  import { EditorSimpleBlockPosition } from '../editor-position';
4
4
  interface SimpleRangeOptions {
5
5
  anchor: EditorSimpleBlockPosition;
@@ -26,5 +26,6 @@ export default class EditorSimpleSelectionRange implements SelectionRange {
26
26
  getFocusedPos(): EditorSimpleBlockPosition;
27
27
  clone(): EditorSimpleSelectionRange;
28
28
  toDocRange(): OnesEditorDocRange;
29
+ static from(editor: OnesEditor, other: SimpleSelectionRange): EditorSimpleSelectionRange;
29
30
  }
30
31
  export {};
@@ -27,4 +27,5 @@ export declare function getElementOffset(el: Element): {
27
27
  };
28
28
  export declare function findTarget(event: Event, cssSelector: string): Element | null;
29
29
  export declare function findEventTargetBlock(event: Event): Element | null;
30
+ export declare function isElementVisible(element: Element | null): boolean;
30
31
  export {};