@ones-editor/editor 2.1.7 → 2.1.8-beta.2
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/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +1 -1
- package/@ones-editor/core/src/core/types.d.ts +2 -0
- package/@ones-editor/sharedb-doc/src/versions/sharedb-server.d.ts +1 -1
- package/@ones-editor/sharedb-doc/src/versions/simple-client.d.ts +1 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/index.d.ts +2 -2
- package/@ones-editor/ui/src/tooltips/index.d.ts +21 -9
- package/@ones-editor/versions/src/constant/index.d.ts +1 -0
- package/@ones-editor/versions/src/history-render/index.d.ts +15 -1
- package/@ones-editor/versions/src/history-tooltip/index.d.ts +10 -0
- package/@ones-editor/versions/src/types.d.ts +4 -0
- package/@ones-editor/versions/src/utils/block-text.d.ts +3 -1
- package/@ones-editor/versions/src/utils/index.d.ts +1 -0
- package/@ones-editor/versions/src/version-dialog/index.d.ts +1 -0
- package/dist/index.js +677 -242
- package/package.json +1 -1
|
@@ -9,4 +9,5 @@ export declare class EditorBlockRenderers implements OnesEditorBlockRenderers {
|
|
|
9
9
|
renderText(path: BlockPath, attributes: DocBlockTextAttributes): OnesEditorBlockRenderResult;
|
|
10
10
|
renderBlock(editor: OnesEditor, path: BlockPath, blockData: DocBlock): OnesEditorBlockRenderResult;
|
|
11
11
|
updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
|
|
12
|
+
renderChildContainer(editor: OnesEditor, path: BlockPath, containerId: string): OnesEditorBlockRenderResult;
|
|
12
13
|
}
|
|
@@ -265,7 +265,7 @@ export interface OnesEditorHistoryDataParseHandler {
|
|
|
265
265
|
onUpdateComment: (commentId: string, local: boolean) => void;
|
|
266
266
|
}
|
|
267
267
|
export interface OnesEditorDocVersionHelper {
|
|
268
|
-
getVersions: () => Promise<DocVersion[]>;
|
|
268
|
+
getVersions: (showPublished?: boolean) => Promise<DocVersion[]>;
|
|
269
269
|
getVersion: (ver: number) => Promise<DocObject>;
|
|
270
270
|
getLatestVersion: () => Promise<DocObject>;
|
|
271
271
|
getHistoryData: (version: number, from?: number) => Promise<{
|
|
@@ -400,12 +400,14 @@ export interface OnesEditorBlockRenderer {
|
|
|
400
400
|
renderBox?: (editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
401
401
|
renderText?: (editor: OnesEditor, path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
402
402
|
renderBlock?: (editor: OnesEditor, path: BlockPath, blockData: DocBlock) => OnesEditorBlockRenderResult;
|
|
403
|
+
renderChildContainer?: (editor: OnesEditor, path: BlockPath, containerId: string) => OnesEditorBlockRenderResult;
|
|
403
404
|
updateBlock?: (editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock) => void;
|
|
404
405
|
}
|
|
405
406
|
export interface OnesEditorBlockRenderers {
|
|
406
407
|
renderBox: (path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
407
408
|
renderText: (path: BlockPath, attributes: DocBlockTextAttributes) => OnesEditorBlockRenderResult;
|
|
408
409
|
renderBlock: (editor: OnesEditor, path: BlockPath, blockData: DocBlock) => OnesEditorBlockRenderResult;
|
|
410
|
+
renderChildContainer: (editor: OnesEditor, path: BlockPath, containerId: string) => OnesEditorBlockRenderResult;
|
|
409
411
|
updateBlock: (editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock) => void;
|
|
410
412
|
registerRender: (decorator: OnesEditorBlockRenderer) => void;
|
|
411
413
|
}
|
|
@@ -10,7 +10,7 @@ export default class ShareDBServer extends EventCallbacks<ShareDBDocCallbacks> i
|
|
|
10
10
|
buildResourceUrl(resourceId: string, options?: BuildResourceUrlOptions): string;
|
|
11
11
|
getRemoteUsers(): RemoteUsers;
|
|
12
12
|
getVersionHelper(): OnesEditorDocVersionHelper;
|
|
13
|
-
getVersions(): Promise<DocVersion[]>;
|
|
13
|
+
getVersions(showPublished?: boolean): Promise<DocVersion[]>;
|
|
14
14
|
getVersion(ver: number): Promise<DocObject>;
|
|
15
15
|
getLatestVersion(): Promise<DocObject>;
|
|
16
16
|
getHistoryData(version: number, from?: number | undefined): Promise<{
|
|
@@ -11,7 +11,7 @@ export default class ShareDBSimpleClient {
|
|
|
11
11
|
getBaseURL(): string;
|
|
12
12
|
getBase64BaseURL(): string;
|
|
13
13
|
request<T = unknown>(url: string, opt?: any): Promise<AxiosResponse<any, T>>;
|
|
14
|
-
getVersions(): Promise<DocVersion[]>;
|
|
14
|
+
getVersions(showPublished: boolean): Promise<DocVersion[]>;
|
|
15
15
|
getVersion(ver: number): Promise<EditorDoc>;
|
|
16
16
|
getLatestVersion(): Promise<EditorDoc>;
|
|
17
17
|
getVersionOps(version: number, from?: number): Promise<{
|