@ones-editor/editor 2.1.0-beta.4 → 2.1.1-beta.1

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.
@@ -5,8 +5,6 @@ export declare class AddCommentToOldDocCommandProvider implements ReadonlyToolba
5
5
  private version;
6
6
  private localCreatedComments;
7
7
  constructor(editor: OnesEditor, version: number);
8
- getTextCommands(editor: OnesEditor, range: SelectionRange): CommandItem[];
9
- executeCommand(editor: OnesEditor, command: CommandItem, options: ReadonlyCommandOptions): void;
10
8
  onCreateComment(commentId: string, local: boolean): Promise<void>;
11
9
  onDeleteComment(commentId: string, local: boolean): Promise<void>;
12
10
  onUpdateComment(commentId: string, local: boolean): Promise<void>;
@@ -16,7 +14,10 @@ export declare class AddCommentToOldDocCommandProvider implements ReadonlyToolba
16
14
  commands: {
17
15
  id: string;
18
16
  name: string;
17
+ icon: string;
19
18
  }[];
20
19
  executeCommand: (editor: OnesEditor, block: BlockElement, item: CommandItem, child: TextBlockContentChild | null) => void;
21
20
  } | undefined;
21
+ getTextCommands(editor: OnesEditor, range: SelectionRange): CommandItem[];
22
+ executeCommand(editor: OnesEditor, command: CommandItem, options: ReadonlyCommandOptions): void;
22
23
  }
@@ -24,7 +24,6 @@ export declare class ReadonlyToolbar implements OnesEditorCustom {
24
24
  handleDocumentMouseUp: () => void;
25
25
  handleSelectionChange: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
26
26
  private handleHoveringBlockChildChange;
27
- groupCommands: (allCommands: CommandItem[]) => CommandItem[];
28
27
  showTextToolbar(reason: string): void;
29
28
  showObjectToolbar(event: MouseEvent | null): void;
30
29
  }