@ones-editor/editor 2.8.25-beta.6 → 2.8.25-beta.8

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.
@@ -15,6 +15,7 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
15
15
  private listType;
16
16
  private switcherItem;
17
17
  private switcherBar;
18
+ private noResolvedCommentTip;
18
19
  constructor(editor: OnesEditor, commentsProvider: OnesEditorCommentsProvider);
19
20
  private get commentOptions();
20
21
  destroy(): void;
@@ -30,6 +31,7 @@ export default class CommentsList extends TypedEmitter<CommentsListEvents> imple
30
31
  handleSwitchType: (bar: unknown, item: CommandItem) => void;
31
32
  handleSelectionOnComment: () => void;
32
33
  updateCommentCount: () => void;
34
+ updateNoResolvedCommentTip(): void;
33
35
  handleActiveItemChanged: (index: number, direction?: 'prev' | 'next') => void;
34
36
  handleItemLayoutUpdated: () => void;
35
37
  show(groupId?: string): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="lodash" />
2
- import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult } from '../../../../@ones-editor/core';
2
+ import { BlockElement, BlockPath, DocBlock, DocBlockTextAttributes, OnesEditor, OnesEditorBlockRenderer, OnesEditorBlockRenderResult, OnesEditorComment } from '../../../../@ones-editor/core';
3
3
  import { CommentListType } from '../types';
4
4
  export declare class OnesEditorCommentsRender implements OnesEditorBlockRenderer {
5
5
  private type;
@@ -10,6 +10,7 @@ export declare class OnesEditorCommentsRender implements OnesEditorBlockRenderer
10
10
  updateBlock(editor: OnesEditor, path: BlockPath, blockElement: BlockElement, blockData: DocBlock): void;
11
11
  getCommentStatus(editor: OnesEditor, commentId: string): "unknown" | "resolved" | "unresolved";
12
12
  renderCommentElement(editor: OnesEditor, key: string, commentId: string, classes: string[], textAttributes: Record<string, string>): void;
13
+ getComments(editor: OnesEditor): OnesEditorComment[];
13
14
  updateUnknownCommentsDelayed: import("lodash").DebouncedFunc<(editor: OnesEditor) => void>;
14
15
  changeType(editor: OnesEditor, type: CommentListType): void;
15
16
  }
@@ -24,6 +24,7 @@ declare const _default: {
24
24
  currentComment: string;
25
25
  resolvedComment: string;
26
26
  removedFromDoc: string;
27
+ noResolvedComment: string;
27
28
  };
28
29
  };
29
30
  export default _default;
@@ -24,6 +24,7 @@ declare const _default: {
24
24
  currentComment: string;
25
25
  resolvedComment: string;
26
26
  removedFromDoc: string;
27
+ noResolvedComment: string;
27
28
  };
28
29
  };
29
30
  export default _default;
@@ -24,6 +24,7 @@ declare const _default: {
24
24
  currentComment: string;
25
25
  resolvedComment: string;
26
26
  removedFromDoc: string;
27
+ noResolvedComment: string;
27
28
  };
28
29
  };
29
30
  export default _default;
@@ -253,6 +253,7 @@ export interface OnesEditorDoc extends OnesEditorDocServer {
253
253
  beginBatchUpdate: () => number;
254
254
  endBatchUpdate: () => number;
255
255
  triggerReAuth?: (auto?: boolean) => void;
256
+ rawData?: () => DocObject;
256
257
  }
257
258
  export interface OnesEditorDocHistoryData {
258
259
  user: {
@@ -10,6 +10,7 @@ export declare class LocalDoc extends EventCallbacks<OnesEditorDocCallbacks> imp
10
10
  beginBatchUpdate(): number;
11
11
  endBatchUpdate(): number;
12
12
  toJSON(): DocObject;
13
+ rawData(): DocObject;
13
14
  getContainerBlocks(containerId: string): DocBlock[];
14
15
  findContainerBlocks(containerId: string): DocBlock[];
15
16
  getBlockData(containerId: string, blockIndex: number): DocBlock;