@ones-editor/editor 2.2.5-beta.1 → 2.2.6-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.
package/dist/types.d.ts CHANGED
@@ -16,6 +16,7 @@ import { MentionOptions } from '../@ones-editor/mention';
16
16
  import { MathjaxOptions } from '../@ones-editor/mathjax';
17
17
  import { LinkOptions } from '../@ones-editor/ui/src/link-popup';
18
18
  import { EditorConfigLayoutOptions } from '../@ones-editor/layout-block/src/types';
19
+ import { AuthMessage } from '../@ones-editor/sharedb-doc';
19
20
  export interface RemoteCaretsOptions {
20
21
  onUserChanged?: (editor: OnesEditor, users: OnesEditorUser[]) => void;
21
22
  }
@@ -66,7 +67,6 @@ export interface CreateOnesEditorOptions {
66
67
  applyContentPlaceholder?: (editor: OnesEditor) => boolean;
67
68
  };
68
69
  onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
69
- onMaxUsersError?: () => void;
70
70
  user: {
71
71
  userId: string;
72
72
  displayName: string;
@@ -86,6 +86,18 @@ export interface CreateOnesEditorOptions {
86
86
  componentsOptions?: EditorComponentOptions;
87
87
  buildResourceUrl?: (resourceId: string, options?: BuildResourceUrlOptions) => string;
88
88
  uploadResource?: (file: File, options?: UploadResourceOptions) => Promise<UploadResourceResult>;
89
+ onMaxUsersError?: () => void;
90
+ onRenewingToken?: (count: number) => void;
91
+ onRenewedToken?: (auth: AuthMessage) => void;
92
+ onRenewTokenError?: (error: Error) => void;
93
+ onReauthing?: () => void;
94
+ onReauthError?: (error: Error) => void;
95
+ onReauthRecovered?: (auth: AuthMessage) => void;
96
+ onDirtyTimeoutError?: () => void;
97
+ onClean?: () => void;
98
+ onConnectionError?: (error: Error) => void;
99
+ onDisconnected?: (reason: string) => void;
100
+ onUnknownError?: (error: Error) => void;
89
101
  }
90
102
  export interface CreateLocalEditorOptions {
91
103
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.2.5-beta.1",
3
+ "version": "2.2.6-beta.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",