@ones-editor/editor 2.8.25-beta.3 → 2.8.25-beta.5
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/comments.d.ts +4 -0
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +2 -2
- package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +4 -1
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +85 -28
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnesEditor } from '../../../../@ones-editor/core';
|
|
2
|
+
import CommentsList, { MobileCommentsList, MiniCommentsList } from '../comments-list';
|
|
2
3
|
import { CommentRoot, OnesEditorCommentsProvider } from '../types';
|
|
3
4
|
export default class OnesEditorComments {
|
|
4
5
|
private editor;
|
|
@@ -9,6 +10,9 @@ export default class OnesEditorComments {
|
|
|
9
10
|
constructor(editor: OnesEditor, provider: OnesEditorCommentsProvider);
|
|
10
11
|
get commentProvider(): OnesEditorCommentsProvider;
|
|
11
12
|
get isMobile(): boolean;
|
|
13
|
+
getCommentList(): CommentsList | null;
|
|
14
|
+
getMobileCommentList(): MobileCommentsList | null;
|
|
15
|
+
getMiniCommentList(): MiniCommentsList;
|
|
12
16
|
destroy(): void;
|
|
13
17
|
private showComment;
|
|
14
18
|
showCommentList: (groupId?: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocObject, OnesEditor, OnesEditorComment, OnesEditorDocRange, SelectionRange } from '../../../../@ones-editor/core';
|
|
1
|
+
import { DocCommentResolver, DocObject, OnesEditor, OnesEditorComment, OnesEditorDocRange, SelectionRange } from '../../../../@ones-editor/core';
|
|
2
2
|
export interface AddCommentToOldVersionBody {
|
|
3
3
|
avatarUrl: string;
|
|
4
4
|
containerId: string;
|
|
@@ -14,4 +14,4 @@ export declare function addCommentToOldVersion(editor: OnesEditor, version: numb
|
|
|
14
14
|
export declare function replyCommentToOldVersion(editor: OnesEditor, version: number, comment: OnesEditorComment, commentDoc: DocObject): Promise<unknown>;
|
|
15
15
|
export declare function updateCommentToOldDoc(editor: OnesEditor, version: number, commentId: string, commentDoc: DocObject): Promise<unknown>;
|
|
16
16
|
export declare function deleteCommentFromOldDoc(editor: OnesEditor, version: number, commentId: string): Promise<unknown>;
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function updateCommentResolverToOldDoc(editor: OnesEditor, version: number, commentId: string, resolver?: DocCommentResolver): Promise<unknown>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { DocObject } from '../../../../@ones-editor/core';
|
|
2
|
-
|
|
2
|
+
type CommentIds = Set<string>;
|
|
3
|
+
export declare function getBlockCommentsFromDoc(doc: DocObject): Map<string, CommentIds>;
|
|
4
|
+
export declare function getBlocksByCommentId(doc: DocObject, commentId: string): string[];
|
|
5
|
+
export {};
|