@ones-editor/editor 3.0.3-beta.6 → 3.0.3-beta.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.
@@ -187,11 +187,11 @@ export interface OnesEditorDocVersionExtra {
187
187
  memo?: string;
188
188
  }
189
189
  export interface DocVersion {
190
+ versionIndex: number;
190
191
  version: number;
191
192
  tag?: string;
192
193
  published?: boolean;
193
194
  type?: 'major' | 'minor';
194
- minorVersions?: DocVersion[];
195
195
  authors?: {
196
196
  userId: string;
197
197
  displayName: string;
@@ -207,6 +207,7 @@ export interface DocVersion {
207
207
  tagId: string;
208
208
  extra?: OnesEditorDocVersionExtra;
209
209
  }
210
+ export declare function apiResultToDocVersions(versions: unknown): DocVersion[];
210
211
  export interface OnesEditorDocServerMeta {
211
212
  serverId?: string;
212
213
  docId?: string;
@@ -1,4 +1,4 @@
1
- import { BuildResourceUrlOptions, DocBlock, DocComment, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorDocRange, OnesEditorUser, OnesEditorUserPermission, UploadResourceOptions, UploadResourceResult } from '../../../@ones-editor/core';
1
+ import { BuildResourceUrlOptions, DocBlock, DocComment, DocVersion, OnesEditorDoc, OnesEditorDocCallbacks, OnesEditorDocRange, OnesEditorUser, OnesEditorUserPermission, UploadResourceOptions, UploadResourceResult } from '../../../@ones-editor/core';
2
2
  import { Op } from 'sharedb';
3
3
  export type { Op } from 'sharedb/lib/client';
4
4
  export type BlocksType = DocBlock[];
@@ -89,6 +89,7 @@ export interface ShareDBDocOptions {
89
89
  buildResourceUrl?: (doc: OnesEditorDoc, resourceId: string, options?: BuildResourceUrlOptions) => string;
90
90
  uploadResource?: (doc: OnesEditorDoc, file: File, options?: UploadResourceOptions) => Promise<UploadResourceResult>;
91
91
  onReady?: () => void;
92
+ onCopyVersionLink?: (ver: DocVersion) => void;
92
93
  }
93
94
  export interface EditorOp {
94
95
  c: string;