@fileverse-dev/ddoc 3.0.93-bug-fix-1 → 3.0.93-bug-fix-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.
@@ -5,6 +5,7 @@ import { Editor } from '@tiptap/react';
5
5
  import { default as React, SetStateAction } from 'react';
6
6
  import { IComment } from './extensions/comment';
7
7
  import { CollaborationProps } from './sync-local/types';
8
+ import { EditorChangeMetadata } from './editor-change-metadata';
8
9
 
9
10
  export type { CollaborationProps, CollabConnectionConfig, CollabSessionMeta, CollabServices, CollabCallbacks, CollabState, CollabError, CollabErrorCode, CollabStatus, } from './sync-local/types';
10
11
  export declare const DdocEditorProps: EditorProps;
@@ -138,7 +139,7 @@ export interface DdocProps extends CommentAccountProps {
138
139
  renderNavbar?: ({ editor }: {
139
140
  editor: JSONContent;
140
141
  }) => JSX.Element;
141
- onChange?: (updatedDocContent: Data['editorJSONData'], updateChunk: string) => void;
142
+ onChange?: (updatedDocContent: string | JSONContent, updateChunk: string, meta?: EditorChangeMetadata) => void;
142
143
  onCollaboratorChange?: (collaborators: undefined | IDocCollabUsers[]) => void;
143
144
  onTextSelection?: (data: IEditorSelectionData) => void;
144
145
  onCommentInteraction?: (data: IEditorSelectionData) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.93-bug-fix-1",
5
+ "version": "3.0.93-bug-fix-2",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {