@ones-editor/editor 1.1.11 → 1.1.12-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.
@@ -1,3 +1,4 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
2
2
  import { DocCodeBlockData } from '../code-block-data';
3
3
  export declare function createCodeBlockHeader(editor: OnesEditor, block: BlockElement, codeData: DocCodeBlockData): void;
4
+ export declare function getCodeBlockHeader(block: BlockElement): HTMLElement;
@@ -6,4 +6,4 @@ export type BeforeCopyCallback = (editor: OnesEditor, event: ClipboardEvent, doc
6
6
  export declare function editorCopy(editor: OnesEditor, event: ClipboardEvent, beforeCopy?: BeforeCopyCallback): void;
7
7
  export declare function editorCopyDoc(editor: OnesEditor, doc: DocObject): void;
8
8
  export declare function editorCopyWithoutEvent(editor: OnesEditor, beforeCopy?: BeforeCopyCallback): void;
9
- export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): Promise<void>;
9
+ export declare function editorCopyBlock(editor: OnesEditor, block: BlockElement): void;
@@ -2,7 +2,8 @@ export declare function setClipboardDataByEvent(items: {
2
2
  type: string;
3
3
  data: string;
4
4
  }[], event: ClipboardEvent): Promise<boolean>;
5
+ export declare const copyTextToClipboard: (text: string) => Promise<boolean>;
5
6
  export declare function setClipboardData(items: {
6
7
  type: string;
7
8
  data: string | Blob;
8
- }[]): Promise<boolean>;
9
+ }[]): void;
@@ -1,4 +1,4 @@
1
- import { BlockElement, CommandItem, OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
1
+ import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../../@ones-editor/core';
2
2
  export declare class HeadingBlockCollapseButton implements OnesEditorCustom {
3
3
  private editor;
4
4
  constructor(editor: OnesEditor);
@@ -7,8 +7,5 @@ export declare class HeadingBlockCollapseButton implements OnesEditorCustom {
7
7
  handleHoverBlock: (hoveringBlock: BlockElement | null, oldHoveringBlock: BlockElement | null) => void;
8
8
  handleClick: (editor: OnesEditor, event: MouseEvent) => void;
9
9
  showCollapseButtons(): void;
10
- handleBeforeExecCommand: (editor: OnesEditor, command: CommandItem, option: {
11
- source: string;
12
- }) => void;
13
10
  destroy(): void;
14
11
  }