@ones-editor/editor 2.8.23 → 2.8.25-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.
- package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +3 -1
- package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +3 -0
- package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +5 -1
- package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/comments-list.d.ts +8 -1
- package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/group-list.d.ts +5 -2
- package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
- package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -0
- package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +1 -0
- package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +2 -0
- package/@ones-editor/comments/src/comments-render/index.d.ts +8 -0
- package/@ones-editor/comments/src/constant/index.d.ts +2 -1
- package/@ones-editor/comments/src/index.d.ts +1 -0
- package/@ones-editor/comments/src/locale/en-us.d.ts +5 -0
- package/@ones-editor/comments/src/locale/ja-jp.d.ts +5 -0
- package/@ones-editor/comments/src/locale/zh-cn.d.ts +5 -0
- package/@ones-editor/comments/src/resolved-comments/index.d.ts +4 -0
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +14 -0
- package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +4 -0
- package/@ones-editor/comments/src/types.d.ts +5 -1
- package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
- package/@ones-editor/core/src/core/doc/doc.d.ts +8 -0
- package/@ones-editor/core/src/core/types.d.ts +1 -0
- package/@ones-editor/drawio-embed/src/config/drawio.d.ts +1 -1
- package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
- package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +2 -1
- package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +2 -1
- package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +3 -1
- package/@ones-editor/sharedb-doc/src/types.d.ts +1 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +1 -0
- package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +1 -0
- package/dist/comments/local-doc-comments-provider.d.ts +2 -1
- package/dist/comments/sharedb-doc-comments-provider.d.ts +3 -1
- package/dist/index.js +691 -136
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare class AddCommentToOldDocCommandProvider implements ReadonlyToolba
|
|
|
8
8
|
onCreateComment(commentId: string, local: boolean): Promise<void>;
|
|
9
9
|
onDeleteComment(commentId: string, local: boolean): Promise<void>;
|
|
10
10
|
onUpdateComment(commentId: string, local: boolean): Promise<void>;
|
|
11
|
+
onUpdateCommentResolver(commentId: string, local: boolean): void;
|
|
11
12
|
hideToolbar(editor: OnesEditor): void;
|
|
12
13
|
commands(editor: OnesEditor, blockElement: BlockElement, child: TextBlockContentChild | null): {
|
|
13
14
|
group: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
|
|
2
|
-
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment, OnesEditorDoc } from '../../@ones-editor/core';
|
|
2
|
+
import { DocCommentResolver, DocObject, LocalDoc, OnesEditor, OnesEditorComment, OnesEditorDoc } from '../../@ones-editor/core';
|
|
3
3
|
export default class LocalDocCommentsProvider implements OnesEditorCommentsProvider {
|
|
4
4
|
private editor;
|
|
5
5
|
private localDoc;
|
|
@@ -15,6 +15,7 @@ export default class LocalDocCommentsProvider implements OnesEditorCommentsProvi
|
|
|
15
15
|
localCreateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
16
16
|
localDeleteComment(commentId: string): void;
|
|
17
17
|
localUpdateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
18
|
+
localUpdateCommentResolver(commentId: string, resolver?: DocCommentResolver): void;
|
|
18
19
|
createCommentEditor(parent: HTMLElement, childDoc: LocalDoc): OnesEditor;
|
|
19
20
|
allowEdit(comment: OnesEditorComment): boolean;
|
|
20
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../../@ones-editor/comments';
|
|
2
|
-
import { DocObject, LocalDoc, OnesEditor, OnesEditorComment } from '../../@ones-editor/core';
|
|
2
|
+
import { DocCommentResolver, DocObject, LocalDoc, OnesEditor, OnesEditorComment } from '../../@ones-editor/core';
|
|
3
3
|
import { ShareDBDocCallbacks } from '../../@ones-editor/sharedb-doc';
|
|
4
4
|
export default class ShareDBDocCommentsProvider implements OnesEditorCommentsProvider, ShareDBDocCallbacks {
|
|
5
5
|
private editor;
|
|
@@ -12,9 +12,11 @@ export default class ShareDBDocCommentsProvider implements OnesEditorCommentsPro
|
|
|
12
12
|
localCreateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
13
13
|
localDeleteComment(commentId: string): void;
|
|
14
14
|
localUpdateComment(comment: OnesEditorComment, doc: DocObject): void;
|
|
15
|
+
localUpdateCommentResolver(commentId: string, resolver?: DocCommentResolver): void;
|
|
15
16
|
onCreateComment(commentId: string, local: boolean): void;
|
|
16
17
|
onDeleteComment(commentId: string, local: boolean): void;
|
|
17
18
|
onUpdateComment(commentId: string, local: boolean): void;
|
|
19
|
+
onUpdateCommentResolver(commentId: string, local: boolean): void;
|
|
18
20
|
addListener(callback: OnesEditorCommentsEvents): void;
|
|
19
21
|
removeListener(callback: OnesEditorCommentsEvents): void;
|
|
20
22
|
createCommentEditor(parent: HTMLElement, childDoc: LocalDoc): OnesEditor;
|