@ones-editor/editor 2.3.0-beta.10 → 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.
@@ -10,7 +10,10 @@ export default class ErrorInfoBar {
10
10
  private _messageText;
11
11
  private _type;
12
12
  constructor(editor: OnesEditor);
13
- show(message: string, type: BarType): void;
13
+ show(message: string, options: {
14
+ type: BarType;
15
+ customMessage?: string;
16
+ }): void;
14
17
  hide(): void;
15
18
  visible(): boolean;
16
19
  destroy(): void;
@@ -1,7 +1,8 @@
1
- import { OnesEditor } from '../../@ones-editor/core';
1
+ import { ErrorHandler, OnesEditor, UploadResourceErrorDialogOptions } from '../../@ones-editor/core';
2
2
  import { AuthMessage } from '../../@ones-editor/sharedb-doc';
3
+ import { AlertDialog } from '../../@ones-editor/ui-base';
3
4
  import ErrorInfoBar from './error-info-bar';
4
- export default class DefaultErrorHandler {
5
+ export default class DefaultErrorHandler implements ErrorHandler {
5
6
  private _editor;
6
7
  private _errorInfoBar;
7
8
  private _dirtyFlag;
@@ -20,10 +21,13 @@ export default class DefaultErrorHandler {
20
21
  onConnectionError: (error: Error) => void;
21
22
  onDisconnected: (reason: string) => void;
22
23
  onUploadResourceError: (error: Error) => void;
24
+ onUploadResourceSuccess: () => void;
23
25
  onReady: () => void;
24
26
  setEditor(editor: OnesEditor): void;
25
27
  private handleError;
26
28
  private autoHide;
27
29
  get bar(): ErrorInfoBar;
30
+ showUploadResourceErrorDialog(options?: UploadResourceErrorDialogOptions): AlertDialog | null;
31
+ private hasPopup;
28
32
  destroy(): void;
29
33
  }
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from '../@ones-editor/table-block';
20
20
  export * from '../@ones-editor/code-block';
21
21
  export * from '../@ones-editor/input-handlers';
22
22
  export * from '../@ones-editor/ui';
23
+ export * from '../@ones-editor/ui-base';
23
24
  export * from '../@ones-editor/misc';
24
25
  export * from '../@ones-editor/versions';
25
26
  export * from '../@ones-editor/misc';