@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.
- package/dist/package/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/package/types.d.ts
CHANGED
|
@@ -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:
|
|
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;
|