@ones-editor/editor 1.1.27 → 1.1.29-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.
@@ -2,4 +2,5 @@ export declare function blobToString(blob: Blob): Promise<string>;
2
2
  export declare function isClipboardEmpty(): Promise<boolean>;
3
3
  export declare function saveAs(resourceUrl: string, resourceId: string): void;
4
4
  export declare function blob2String(blob: Blob): Promise<string>;
5
+ export declare function getRandomFileName(mimeType: string, length?: number): string;
5
6
  export declare function getClipboardData(): Promise<DataTransfer>;
@@ -27,11 +27,11 @@ export declare class EditorInput implements OnesEditorInput {
27
27
  callbacks: EditorInputCallbacks;
28
28
  inputElement: HTMLInputElement;
29
29
  constructor(editor: OnesEditor, callbacks: EditorInputCallbacks);
30
- private isInCommandbar;
30
+ private isInCommandBar;
31
31
  destroy(): void;
32
32
  getInput(): HTMLInputElement;
33
33
  focus(): void;
34
- isInDisableScrollMask(target: HTMLElement): boolean;
34
+ isInDisableScrollMask(target: Node): boolean;
35
35
  handleWindowBlur: () => void;
36
36
  handleWindowFocus: () => void;
37
37
  handleDocumentClick: (event: MouseEvent) => void;
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  errorTips: string;
8
8
  errorSubTips: string;
9
9
  retry: string;
10
+ save: string;
10
11
  };
11
12
  };
12
13
  export default _default;
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  errorTips: string;
8
8
  errorSubTips: string;
9
9
  retry: string;
10
+ save: string;
10
11
  };
11
12
  };
12
13
  export default _default;
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  errorTips: string;
8
8
  errorSubTips: string;
9
9
  retry: string;
10
+ save: string;
10
11
  };
11
12
  };
12
13
  export default _default;