@ones-editor/editor 1.1.3-bate.5 → 1.1.3-bate.7

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.
@@ -196,7 +196,6 @@ export interface OnesEditorDocServer {
196
196
  buildResourceUrl: (resourceId: string, options?: BuildResourceUrlOptions) => string;
197
197
  getVersionHelper?: () => OnesEditorDocVersionHelper | undefined;
198
198
  getRemoteUsers: () => OnesEditorRemoteUsers;
199
- triggerReAuth?: () => void;
200
199
  }
201
200
  export interface OnesEditorDoc extends OnesEditorDocServer {
202
201
  registerCallback: (callbacks: OnesEditorDocCallbacks) => void;
@@ -223,6 +222,7 @@ export interface OnesEditorDoc extends OnesEditorDocServer {
223
222
  recognizeLink?: (link: string) => Promise<RecognizeLinkResult>;
224
223
  beginBatchUpdate: () => number;
225
224
  endBatchUpdate: () => number;
225
+ triggerReAuth?: () => void;
226
226
  }
227
227
  export interface OnesEditorDocHistoryData {
228
228
  user: {
@@ -41,6 +41,7 @@ export default class EditorDoc extends EventCallbacks<OnesEditorDocCallbacks> im
41
41
  broadcastMessage(data: unknown): void;
42
42
  getUser(): import("../doc").OnesEditorUser;
43
43
  getRemoteUsers(): import("../doc").OnesEditorRemoteUsers;
44
+ triggerReAuth(): void | undefined;
44
45
  destroy(): void;
45
46
  getServerMeta(): OnesEditorDocServerMeta;
46
47
  reset(doc: OnesEditorDoc): void;
@@ -32,5 +32,4 @@ export declare class LocalDoc extends EventCallbacks<OnesEditorDocCallbacks> imp
32
32
  getRemoteUsers(): RemoteUsers;
33
33
  setDoc(doc: DocObject): void;
34
34
  destroy(): void;
35
- triggerReAuth(): void;
36
35
  }
@@ -18,7 +18,6 @@ export declare class IframeKindEmbedDocCallbacks extends TypedEmitter implements
18
18
  }) => void;
19
19
  unRegister: () => void;
20
20
  onConnectReAuthError: () => void;
21
- private reAuth;
22
21
  private exit;
23
22
  }
24
23
  export {};
@@ -24,7 +24,7 @@ export declare class AuthConnection {
24
24
  logout(): Promise<void>;
25
25
  init(auth: AuthMessage): Promise<void>;
26
26
  handleAuthError(): Promise<void>;
27
- reauth: () => Promise<void>;
27
+ reAuth: () => Promise<void>;
28
28
  private emitPermissionError;
29
29
  private emitAuthRecover;
30
30
  private emitAuthError;
@@ -19,7 +19,6 @@ export default class ShareDBClient {
19
19
  onWriteConflictError(callback: (error: Error) => void): void;
20
20
  onMaxUsersError(callback: () => void): void;
21
21
  onRequestReloadError(callback: (error: Error) => void): void;
22
- triggerReAuth(): void;
23
22
  /**
24
23
  * 根据Id生成一个文档对象,如果文档不存在,则创建一个新的。
25
24
  * @param id 待获取的containerId
@@ -54,4 +53,5 @@ export default class ShareDBClient {
54
53
  createVersion(tag: string, publish: boolean): Promise<any>;
55
54
  recognizeLink(url: string): Promise<LinkDetails>;
56
55
  buildResourceUrl(resourceId: string, options?: BuildResourceUrlOptions): string;
56
+ reAuth(): void;
57
57
  }
@@ -75,6 +75,7 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
75
75
  onCreateComment(commentId: string, local: boolean): void;
76
76
  onUpdateComment(commentId: string, local: boolean): void;
77
77
  onCustomMessage(msg: unknown): void;
78
+ onAuthRecover(): void;
78
79
  addResources(resourceIds: string[]): Promise<string[]>;
79
80
  uploadResource(file: File, options?: UploadResourceOptions): Promise<UploadResourceResult>;
80
81
  buildResourceUrl(resourceId: string, options?: BuildResourceUrlOptions): string;