@ones-editor/editor 0.0.3-beta.98 → 0.0.3-beta.99

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.
@@ -1,4 +1,4 @@
1
1
  import { ComplexKindBlock } from '../../../@ones-editor/core';
2
2
  import './columns-styles.scss';
3
- declare const DetailsBlock: ComplexKindBlock;
4
- export default DetailsBlock;
3
+ declare const ColumnBlock: ComplexKindBlock;
4
+ export default ColumnBlock;
@@ -150,6 +150,9 @@ export interface OnesEditorRemoteUsers extends TypedEmitter<RemoteUsersEvents> {
150
150
  getFixedUserColor: (userId: string, type: 'flag' | 'selection') => string;
151
151
  destroy: () => void;
152
152
  }
153
+ export interface OnesEditorDocVersionExtra {
154
+ memo?: string;
155
+ }
153
156
  export interface DocVersion {
154
157
  version: number;
155
158
  tag?: string;
@@ -168,6 +171,8 @@ export interface DocVersion {
168
171
  userId: string;
169
172
  displayName: string;
170
173
  };
174
+ tagId: string;
175
+ extra?: OnesEditorDocVersionExtra;
171
176
  }
172
177
  export interface OnesEditorDocServerMeta {
173
178
  serverId?: string;
@@ -238,6 +243,7 @@ export interface OnesEditorDocVersionHelper {
238
243
  revertVersion: (ver: number) => Promise<void>;
239
244
  createVersion: (tag: string, publish: boolean) => Promise<DocVersion>;
240
245
  parseHistoryData: (historyData: OnesEditorDocHistoryData, handler: OnesEditorHistoryDataParseHandler) => void;
246
+ updateVersionExtra: (version: number, tagId: string, extra: OnesEditorDocVersionExtra) => Promise<void>;
241
247
  }
242
248
  export interface OnesEditorComment {
243
249
  id: string;
@@ -135,6 +135,7 @@ export interface CommandItem {
135
135
  subText?: string;
136
136
  defaultCheckedChildren?: string[];
137
137
  disableTooltip?: boolean;
138
+ disableReason?: string;
138
139
  setCloseable?: (closeable: Closeable) => void;
139
140
  beforePopup?: (parent: unknown) => void;
140
141
  }
@@ -10,7 +10,7 @@ declare const _default: {
10
10
  tooltip: string;
11
11
  };
12
12
  };
13
- image: string;
13
+ abstract: string;
14
14
  };
15
15
  };
16
16
  export default _default;
@@ -1,3 +1,4 @@
1
- export * from './image-downloader';
2
1
  export * from './image';
3
2
  export * from './title';
3
+ export * from './is-secure-env';
4
+ export * from './image-downloader';
@@ -0,0 +1 @@
1
+ export declare function isSecureEnv(): boolean;
@@ -1,4 +1,4 @@
1
- import { BuildResourceUrlOptions, DocVersion } from '../../../../@ones-editor/core';
1
+ import { BuildResourceUrlOptions, DocVersion, OnesEditorDocVersionExtra } from '../../../../@ones-editor/core';
2
2
  import { Doc } from 'sharedb/lib/client';
3
3
  import { Event } from 'reconnecting-websocket';
4
4
  import type { AxiosResponse } from 'axios';
@@ -46,6 +46,7 @@ export default class ShareDBClient {
46
46
  doc: EditorDoc;
47
47
  ops: EditorOp[];
48
48
  }>;
49
+ updateVersionExtra(version: number, tagId: string, extra: OnesEditorDocVersionExtra): Promise<void>;
49
50
  revertVersion(ver: number): Promise<void>;
50
51
  createVersion(tag: string, publish: boolean): Promise<any>;
51
52
  recognizeLink(url: string): Promise<LinkDetails>;
@@ -1,4 +1,4 @@
1
- import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
1
+ import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionExtra, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
2
2
  import { Doc } from 'sharedb/lib/client';
3
3
  import { LocalPresence } from 'sharedb/lib/sharedb';
4
4
  import RemoteCaretsHandler from './remote-caret-handler';
@@ -96,6 +96,7 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
96
96
  doc: DocObject;
97
97
  versionData: unknown;
98
98
  }>;
99
+ updateVersionExtra(version: number, tagId: string, extra: OnesEditorDocVersionExtra): Promise<void>;
99
100
  revertVersion(ver: number): Promise<void>;
100
101
  createVersion(tag: string, publish: boolean): Promise<DocVersion>;
101
102
  recognizeLink(url: string): Promise<import("../types").LinkDetails>;