@ones-editor/editor 1.1.6 → 1.1.7

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,8 +1,9 @@
1
1
  import { TypedEmitter } from 'tiny-typed-emitter';
2
- import { BlockElement, OnesEditor, OnesEditorDocCallbacks } from '../../../@ones-editor/core';
2
+ import { BlockElement, BlockPathComponent, OnesEditor, OnesEditorDocCallbacks } from '../../../@ones-editor/core';
3
3
  export type ChildBlockAction = 'text-change' | 'data-change' | 'insert' | 'remove';
4
4
  export interface ChildBlockEvents {
5
- change: (editor: OnesEditor, parentBlock: BlockElement, childBlock: BlockElement, action: ChildBlockAction) => void;
5
+ change: (editor: OnesEditor, target: BlockPathComponent, parentBlock: BlockElement, childBlock: BlockElement, action: ChildBlockAction) => void;
6
+ insert: (editor: OnesEditor, target: BlockPathComponent) => void;
6
7
  }
7
8
  export declare class ChildBlockEventTracker extends TypedEmitter<ChildBlockEvents> implements OnesEditorDocCallbacks {
8
9
  private editor;
@@ -1,4 +1,4 @@
1
- import { BlockElement, OnesEditor } from '../../../@ones-editor/core';
1
+ import { BlockElement, BlockPathComponent, OnesEditor } from '../../../@ones-editor/core';
2
2
  export * from './event-tracker';
3
- export declare function trackChildBlockEvent(editor: OnesEditor, callback: (editor: OnesEditor, parentBlock: BlockElement, childBlock: BlockElement) => void): void;
4
- export declare function untrackChildBlockEvent(editor: OnesEditor, callback: (editor: OnesEditor, parentBlock: BlockElement, childBlock: BlockElement) => void): void;
3
+ export declare function trackChildBlockEvent(editor: OnesEditor, callback: (editor: OnesEditor, target: BlockPathComponent, parentBlock?: BlockElement, childBlock?: BlockElement) => void): void;
4
+ export declare function untrackChildBlockEvent(editor: OnesEditor, callback: (editor: OnesEditor, target: BlockPathComponent, parentBlock?: BlockElement, childBlock?: BlockElement) => void): void;
@@ -30,6 +30,7 @@ export declare class EditorInput implements OnesEditorInput {
30
30
  destroy(): void;
31
31
  getInput(): HTMLInputElement;
32
32
  focus(): void;
33
+ handleWindowBlur: () => void;
33
34
  handleDocumentClick: (event: MouseEvent) => void;
34
35
  handleDocumentSelectionChange: () => void;
35
36
  handleEditorSelectionChanged: () => void;
@@ -1,3 +1,7 @@
1
- import { OnesEditor, SimpleBlockPosition } from '../../types';
1
+ import { BlockElement, OnesEditor, SimpleBlockPosition } from '../../types';
2
2
  export declare function editorGetPageUpPos(editor: OnesEditor): SimpleBlockPosition | null;
3
3
  export declare function editorGetPageDownPos(editor: OnesEditor): SimpleBlockPosition | null;
4
+ export declare function pageDownSelect(editor: OnesEditor, block: BlockElement): boolean;
5
+ export declare function pageUpSelect(editor: OnesEditor, block: BlockElement): boolean;
6
+ export declare function editorPageDownScroll(editor: OnesEditor): Promise<void>;
7
+ export declare function editorPageUpScroll(editor: OnesEditor): Promise<void>;
@@ -1,3 +1,3 @@
1
- import { OnesEditor, BlockElement } from '../../../../../@ones-editor/core';
2
- export declare function handleChartDebounceUpdate(editor: OnesEditor, parentBlock: BlockElement): void;
1
+ import { OnesEditor, BlockElement, BlockPathComponent } from '../../../../../@ones-editor/core';
2
+ export declare function handleChartDebounceUpdate(editor: OnesEditor, target?: BlockPathComponent, parentBlock?: BlockElement): void;
3
3
  export declare function handleChartUpdate(editor: OnesEditor, parentBlock: BlockElement): void;