@ones-editor/editor 2.8.25-beta.7 → 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.
@@ -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
  }
@@ -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;