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