@ones-editor/editor 0.0.3-beta.213 → 0.0.3-beta.215

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.
@@ -1,2 +1,2 @@
1
1
  import { OnesEditor } from '../../../../@ones-editor/core';
2
- export declare function activeComment(editor: OnesEditor, commentId: string): void;
2
+ export declare function activeComment(editor: OnesEditor, commentId: string, direction?: 'prev' | 'next'): void;
@@ -20,7 +20,7 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
20
20
  createList(): CommentGroupList;
21
21
  handleSelectionOnComment: () => void;
22
22
  updateCommentCount: () => void;
23
- handleActiveItemChanged: () => void;
23
+ handleActiveItemChanged: (index: number, direction?: 'prev' | 'next') => void;
24
24
  handleItemLayoutUpdated: () => void;
25
25
  show(groupId?: string): void;
26
26
  hide(): void;
@@ -4,7 +4,7 @@ import { CommentGroupItem } from './group-item';
4
4
  import ListBase from './list-base';
5
5
  import { CommentGroupItemHandlers } from './handler';
6
6
  export interface CommentGroupListEvents {
7
- activeItemChanged: (index: number) => void;
7
+ activeItemChanged: (index: number, direction?: 'prev' | 'next') => void;
8
8
  itemLayoutUpdated: () => void;
9
9
  selectionOnComment: () => void;
10
10
  commentCountChanged: () => void;
@@ -21,7 +21,7 @@ export default class CommentGroupList extends ListBase<CommentWithChildren, Comm
21
21
  insertItem(data: CommentWithChildren, options?: {
22
22
  active: boolean;
23
23
  }): CommentGroupItem | null;
24
- setActiveItem(index: number): void;
24
+ setActiveItem(index: number, direction?: 'prev' | 'next'): void;
25
25
  get activeIndex(): number;
26
26
  get activeItem(): CommentGroupItem | null;
27
27
  findGroupItem: (groupId: string) => CommentGroupItem | undefined;