@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.
Files changed (38) hide show
  1. package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +3 -1
  2. package/@ones-editor/comments/src/comments-helper/get-comment-from-selection.d.ts +3 -0
  3. package/@ones-editor/comments/src/comments-helper/get-comments-from-doc.d.ts +5 -1
  4. package/@ones-editor/comments/src/comments-helper/old-version-comment.d.ts +1 -0
  5. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +8 -1
  6. package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
  7. package/@ones-editor/comments/src/comments-list/group-list.d.ts +5 -2
  8. package/@ones-editor/comments/src/comments-list/handler.d.ts +1 -0
  9. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -1
  10. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -0
  11. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +1 -0
  12. package/@ones-editor/comments/src/comments-render/get-block-comments.d.ts +2 -0
  13. package/@ones-editor/comments/src/comments-render/index.d.ts +8 -0
  14. package/@ones-editor/comments/src/constant/index.d.ts +2 -1
  15. package/@ones-editor/comments/src/index.d.ts +1 -0
  16. package/@ones-editor/comments/src/locale/en-us.d.ts +5 -0
  17. package/@ones-editor/comments/src/locale/ja-jp.d.ts +5 -0
  18. package/@ones-editor/comments/src/locale/zh-cn.d.ts +5 -0
  19. package/@ones-editor/comments/src/resolved-comments/index.d.ts +4 -0
  20. package/@ones-editor/comments/src/resolved-comments/resolved-comment-editor.d.ts +14 -0
  21. package/@ones-editor/comments/src/resolved-comments/resolved-comment-list.d.ts +4 -0
  22. package/@ones-editor/comments/src/types.d.ts +5 -1
  23. package/@ones-editor/core/src/core/block-renderers/block-renderers.d.ts +1 -0
  24. package/@ones-editor/core/src/core/doc/doc.d.ts +8 -0
  25. package/@ones-editor/core/src/core/types.d.ts +1 -0
  26. package/@ones-editor/drawio-embed/src/config/drawio.d.ts +1 -1
  27. package/@ones-editor/drawio-embed/types/index.d.ts +1 -1
  28. package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +2 -1
  29. package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +2 -1
  30. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +3 -1
  31. package/@ones-editor/sharedb-doc/src/types.d.ts +1 -0
  32. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  33. package/@ones-editor/ui/src/readonly-toolbar/add-comment-to-old-doc.d.ts +1 -0
  34. package/@ones-editor/versions/src/version-dialog/history-handler.d.ts +1 -0
  35. package/dist/comments/local-doc-comments-provider.d.ts +2 -1
  36. package/dist/comments/sharedb-doc-comments-provider.d.ts +3 -1
  37. package/dist/index.js +691 -136
  38. 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;
@@ -15,5 +15,6 @@ export declare class HistoryParseHandler implements OnesEditorHistoryDataParseHa
15
15
  onDeleteComment(): void;
16
16
  onDeleteContainer(): void;
17
17
  onUpdateComment(): void;
18
+ onUpdateCommentResolver(commentId: string, local: boolean): void;
18
19
  }
19
20
  export {};
@@ -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;