@ones-editor/editor 2.8.28-beta.1 → 2.8.28-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.
@@ -32,6 +32,7 @@ export declare class CommentItem {
32
32
  private handleEditorReadonlyChange;
33
33
  private handleFocus;
34
34
  private handleDocChanged;
35
+ private handleClickLink;
35
36
  getCommentEditor: () => CommentEditor;
36
37
  reloadDoc(): void;
37
38
  edit(): void;
@@ -15,7 +15,7 @@ export default class OnesEditorComments {
15
15
  getMiniCommentList(): MiniCommentsList;
16
16
  destroy(): void;
17
17
  private showComment;
18
- showCommentList: (groupId?: string) => void;
18
+ showCommentList: (groupId?: string, type?: 'current' | 'resolved') => void;
19
19
  setFirstEditingCommentActive(): void;
20
20
  isEditing(includeEmpty?: boolean): boolean;
21
21
  mount(containers: CommentRoot): void;
@@ -1,7 +1,7 @@
1
1
  import { OnesEditor, CommandItem } from '../../../../@ones-editor/core';
2
2
  import { TypedEmitter } from 'tiny-typed-emitter';
3
3
  import { FixedToolbar } from '../../../../@ones-editor/ui-base';
4
- import { OnesEditorCommentsEvents, OnesEditorCommentsProvider } from '../types';
4
+ import { OnesEditorCommentsEvents, OnesEditorCommentsProvider, CommentListType } from '../types';
5
5
  import CommentGroupList from './group-list';
6
6
  interface CommentsListEvents {
7
7
  onSelectComment: () => void;
@@ -29,6 +29,7 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
29
29
  isEditing(includeEmpty?: boolean): boolean;
30
30
  setFirstEditingCommentActive(): void;
31
31
  handleSwitchType: (bar: unknown, item: CommandItem) => void;
32
+ setListType(type: CommentListType): void;
32
33
  handleSelectionOnComment: () => void;
33
34
  updateCommentCount: () => void;
34
35
  updateNoResolvedCommentTip(): void;
@@ -26,6 +26,7 @@ declare const _default: {
26
26
  removedFromDoc: string;
27
27
  noResolvedComment: string;
28
28
  resolveComment: string;
29
+ commentHasAlreadyRemoved: string;
29
30
  };
30
31
  };
31
32
  export default _default;
@@ -26,6 +26,7 @@ declare const _default: {
26
26
  removedFromDoc: string;
27
27
  noResolvedComment: string;
28
28
  resolveComment: string;
29
+ commentHasAlreadyRemoved: string;
29
30
  };
30
31
  };
31
32
  export default _default;
@@ -26,6 +26,7 @@ declare const _default: {
26
26
  removedFromDoc: string;
27
27
  noResolvedComment: string;
28
28
  resolveComment: string;
29
+ commentHasAlreadyRemoved: string;
29
30
  };
30
31
  };
31
32
  export default _default;