@ones-editor/editor 2.3.0-beta.11 → 2.3.0-beta.12

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.
@@ -778,3 +778,12 @@ export interface MobileClient {
778
778
  virtualViewportOffsetTop: number;
779
779
  isAndroidApp: boolean;
780
780
  }
781
+ export interface UploadResourceErrorDialogOptions {
782
+ id?: string;
783
+ allowRetry: boolean;
784
+ onOk: (dialog: unknown) => void;
785
+ onClose: () => void;
786
+ }
787
+ export interface ErrorHandler extends OnesEditorCustom {
788
+ showUploadResourceErrorDialog(options?: UploadResourceErrorDialogOptions): unknown;
789
+ }
@@ -10,9 +10,6 @@ declare const _default: {
10
10
  save: string;
11
11
  exit: string;
12
12
  error: {
13
- network: string;
14
- networkDisconnected: string;
15
- networkDisconnectedMessage: string;
16
13
  exitConfirm: string;
17
14
  exitMessage: string;
18
15
  };
@@ -10,9 +10,6 @@ declare const _default: {
10
10
  save: string;
11
11
  exit: string;
12
12
  error: {
13
- network: string;
14
- networkDisconnected: string;
15
- networkDisconnectedMessage: string;
16
13
  exitConfirm: string;
17
14
  exitMessage: string;
18
15
  };
@@ -10,9 +10,6 @@ declare const _default: {
10
10
  save: string;
11
11
  exit: string;
12
12
  error: {
13
- network: string;
14
- networkDisconnected: string;
15
- networkDisconnectedMessage: string;
16
13
  exitConfirm: string;
17
14
  exitMessage: string;
18
15
  };
@@ -84,6 +84,7 @@ export interface ShareDBDocOptions {
84
84
  onDisconnected?: (reason: string) => void;
85
85
  onConnectionError?: (error: Error) => void;
86
86
  onUploadResourceError?: (error: Error) => void;
87
+ onUploadResourceSuccess?: () => void;
87
88
  renewTokenFunc?: RenewTokenFunc;
88
89
  buildResourceUrl?: (doc: OnesEditorDoc, resourceId: string, options?: BuildResourceUrlOptions) => string;
89
90
  uploadResource?: (doc: OnesEditorDoc, file: File, options?: UploadResourceOptions) => Promise<UploadResourceResult>;