@ones-editor/editor 2.8.25-beta.7 → 2.8.25-beta.9
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/comments/src/comments-list/group-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments-render/index.d.ts +2 -1
- package/@ones-editor/core/src/core/doc/doc.d.ts +1 -0
- package/@ones-editor/core/src/local-doc/index.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +35 -9
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ export declare class CommentGroupItem extends TypedEmitter<CommentGroupItemEvent
|
|
|
36
36
|
deleteMainComment(commentId: OnesEditorComment['id']): void;
|
|
37
37
|
handleReadonlyChanged: (editor: OnesEditor) => void;
|
|
38
38
|
edit(): void;
|
|
39
|
+
setCreatingComment(creating: boolean): void;
|
|
39
40
|
getCommentEditor: () => import("../comment-editor").CommentEditor;
|
|
40
41
|
destroy(): void;
|
|
41
42
|
private handleResize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
|
|
2
|
+
import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult, OnesEditorComment } from '../../../../@ones-editor/core';
|
|
3
3
|
import { CommentListType } from '../types';
|
|
4
4
|
export declare class OnesEditorCommentsRender implements OnesEditorBlockRenderer {
|
|
5
5
|
private type;
|
|
@@ -10,6 +10,7 @@ export declare class OnesEditorCommentsRender implements OnesEditorBlockRenderer
|
|
|
10
10
|
updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
|
|
11
11
|
getCommentStatus(editor: OnesEditor, commentId: string): "unknown" | "resolved" | "unresolved";
|
|
12
12
|
renderCommentElement(editor: OnesEditor, key: string, commentId: string, classes: string[], textAttributes: Record<string, string>): void;
|
|
13
|
+
getComments(editor: OnesEditor): OnesEditorComment[];
|
|
13
14
|
updateUnknownCommentsDelayed: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
|
|
14
15
|
changeType(editor: OnesEditor, type: CommentListType): void;
|
|
15
16
|
}
|
|
@@ -253,6 +253,7 @@ export interface OnesEditorDoc extends OnesEditorDocServer {
|
|
|
253
253
|
beginBatchUpdate: () => number;
|
|
254
254
|
endBatchUpdate: () => number;
|
|
255
255
|
triggerReAuth?: (auto?: boolean) => void;
|
|
256
|
+
rawData?: () => DocObject;
|
|
256
257
|
}
|
|
257
258
|
export interface OnesEditorDocHistoryData {
|
|
258
259
|
user: {
|
|
@@ -10,6 +10,7 @@ export declare class LocalDoc extends EventCallbacks<OnesEditorDocCallbacks> imp
|
|
|
10
10
|
beginBatchUpdate(): number;
|
|
11
11
|
endBatchUpdate(): number;
|
|
12
12
|
toJSON(): DocObject;
|
|
13
|
+
rawData(): DocObject;
|
|
13
14
|
getContainerBlocks(containerId: string): DocBlock[];
|
|
14
15
|
findContainerBlocks(containerId: string): DocBlock[];
|
|
15
16
|
getBlockData(containerId: string, blockIndex: number): DocBlock;
|