@ones-editor/editor 2.8.17 → 2.8.19

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.
@@ -3,3 +3,8 @@ export declare function toBase64URL(data: Uint8Array): string;
3
3
  export declare function fromBase64(data: string): string;
4
4
  export declare function fromBase64ToUint8Array(data: string): Uint8Array;
5
5
  export declare function fromBase64ToBlob(data: string): Blob;
6
+ export declare function dataURLToBlob(dataURL: string): {
7
+ blob: Blob;
8
+ mimeString: string;
9
+ };
10
+ export declare function stringToBase64DataUrl(data: string, type: string): string;
@@ -2,6 +2,7 @@ import { CloneBlockResultInfo, DocObject, OnesEditor, OnesEditorCustom, OnesEdit
2
2
  export declare class ImagePasteHandler implements OnesEditorInputHandler, OnesEditorCustom {
3
3
  private editor;
4
4
  constructor(editor: OnesEditor);
5
+ handleBeforePasteDoc(editor: OnesEditor, doc: DocObject): Promise<boolean>;
5
6
  handleAfterPasteDoc(editor: OnesEditor, doc: DocObject, cloneDocResult: CloneBlockResultInfo): Promise<boolean>;
6
7
  destroy(): void;
7
8
  }
@@ -4,6 +4,12 @@ declare const _default: {
4
4
  redo: string;
5
5
  insert: string;
6
6
  findReplace: string;
7
+ image: string;
8
+ link: string;
9
+ quote: string;
10
+ checkList: string;
11
+ orderedList: string;
12
+ unorderedList: string;
7
13
  };
8
14
  };
9
15
  export default _default;
@@ -4,6 +4,12 @@ declare const _default: {
4
4
  redo: string;
5
5
  insert: string;
6
6
  findReplace: string;
7
+ image: string;
8
+ link: string;
9
+ quote: string;
10
+ checkList: string;
11
+ orderedList: string;
12
+ unorderedList: string;
7
13
  };
8
14
  };
9
15
  export default _default;
@@ -4,6 +4,12 @@ declare const _default: {
4
4
  redo: string;
5
5
  insert: string;
6
6
  findReplace: string;
7
+ image: string;
8
+ link: string;
9
+ quote: string;
10
+ checkList: string;
11
+ orderedList: string;
12
+ unorderedList: string;
7
13
  };
8
14
  };
9
15
  export default _default;