@ones-editor/editor 0.0.7-beta.21 → 0.0.7-beta.23

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.
@@ -12,6 +12,8 @@ export default class OnesEditorComments {
12
12
  destroy(): void;
13
13
  private showComment;
14
14
  showCommentList: (groupId?: string) => void;
15
+ setFirstEditingCommentActive(): void;
16
+ isEditing(): boolean;
15
17
  mount(containers: CommentRoot): void;
16
18
  private handleCommentListClose;
17
19
  private handleOnSelectComment;
@@ -18,6 +18,8 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
18
18
  onDeleteComment(commentId: string, local: boolean): void;
19
19
  onUpdateComment(commentId: string, local: boolean): void;
20
20
  createList(): CommentGroupList;
21
+ isEditing(): boolean;
22
+ setFirstEditingCommentActive(): void;
21
23
  handleSelectionOnComment: () => void;
22
24
  updateCommentCount: () => void;
23
25
  handleActiveItemChanged: (index: number, direction?: 'prev' | 'next') => void;
@@ -35,6 +35,7 @@ export declare class CommentGroupItem extends TypedEmitter<CommentGroupItemEvent
35
35
  deleteMainComment(commentId: OnesEditorComment['id']): void;
36
36
  handleReadonlyChanged: (editor: OnesEditor) => void;
37
37
  edit(): void;
38
+ getCommentEditor: () => import("../comment-editor").CommentEditor;
38
39
  destroy(): void;
39
40
  private handleResize;
40
41
  }
@@ -21,6 +21,10 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
21
21
  insertItem(data: CommentWithChildren, options?: {
22
22
  active: boolean;
23
23
  }): CommentGroupItem | null;
24
+ private findFirstEditingComment;
25
+ isEditing(): boolean;
26
+ closeEditing: (groupId: string) => void;
27
+ setFirstEditingCommentActive: () => void;
24
28
  setActiveItem(index: number, direction?: 'prev' | 'next'): void;
25
29
  get activeIndex(): number;
26
30
  get activeItem(): CommentGroupItem | null;
@@ -29,6 +33,7 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
29
33
  handleDeleteComment(commentId: string): void;
30
34
  handleUpdateComment(comment: OnesEditorComment): void;
31
35
  handleContainerClick: (event: MouseEvent) => void;
36
+ handleDocumentClick: (event: MouseEvent) => void;
32
37
  handleSelectionChanged: () => void;
33
38
  handleEditorResize: () => void;
34
39
  handleDocChanged: () => void;
@@ -14,7 +14,7 @@ export declare class CommentGroupItemHandlers {
14
14
  private handleCommentItemReply;
15
15
  private handleCommentItemMore;
16
16
  private handleCommentItemOk;
17
- private handleCommentItemCancel;
17
+ handleCommentItemCancel: (groupItem: CommentGroupItem, commentId: string | null) => void;
18
18
  handleCommentItemEdit: (commentItem: CommentItem) => void;
19
19
  handleCommentItemDelete: (commentItem: CommentItem) => void;
20
20
  execute: (element: HTMLElement, groupItem: CommentGroupItem, commentId: string | null, itemIndex: number) => void;
@@ -23,6 +23,7 @@ export declare class MobileCommentsList extends TypedEmitter<MobileCommentsListE
23
23
  private hidePullInfo;
24
24
  private handleReachBottom;
25
25
  private handleReachTop;
26
+ isEditing(): boolean;
26
27
  show: (groupId?: string) => void;
27
28
  hide: () => void;
28
29
  destroy(): void;