@ones-editor/editor 1.1.0-beta.10 → 1.1.0-beta.11

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,6 +1,6 @@
1
1
  import { TypedEmitter } from 'tiny-typed-emitter';
2
2
  import { BlockElement, OnesEditor, OnesEditorDocCallbacks } from '../../../@ones-editor/core';
3
- export type ChildBlockAction = 'text-change' | 'data-change';
3
+ export type ChildBlockAction = 'text-change' | 'data-change' | 'insert' | 'remove';
4
4
  export interface ChildBlockEvents {
5
5
  change: (editor: OnesEditor, parentBlock: BlockElement, childBlock: BlockElement, action: ChildBlockAction) => void;
6
6
  }
@@ -10,5 +10,7 @@ export declare class ChildBlockEventTracker extends TypedEmitter<ChildBlockEvent
10
10
  handleChild(containerId: string, blockIndex: number, action: ChildBlockAction): void;
11
11
  onUpdateBlockData(containerId: string, blockIndex: number): void;
12
12
  onUpdateBlockText(containerId: string, blockIndex: number): void;
13
+ onInsertBlock(containerId: string, blockIndex: number): void;
14
+ onDeleteBlock(containerId: string, blockIndex: number): void;
13
15
  destroy(): void;
14
16
  }
@@ -4,6 +4,7 @@ export declare class RootContainer {
4
4
  private editor;
5
5
  rootContainer: ContainerElement;
6
6
  resizeObserver: ResizeObserver;
7
+ private isMoved;
7
8
  constructor(editor: OnesEditor, rootContainer: ContainerElement);
8
9
  private bindEvents;
9
10
  private unbindEvents;
@@ -16,6 +17,8 @@ export declare class RootContainer {
16
17
  handleMouseDown: (event: MouseEvent) => void;
17
18
  handleMouseMove: (event: MouseEvent) => void;
18
19
  handleMouseUp: (event: MouseEvent) => void;
20
+ handleCaptureClick: (event: MouseEvent) => void;
21
+ handleCaptureDbClick: (event: MouseEvent) => void;
19
22
  reload(): void;
20
23
  }
21
24
  export declare function createRootContainer(editor: OnesEditor): RootContainer;