@fileverse-dev/ddoc 2.0.3-sync-patch-10 → 2.0.3-sync-patch-11

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,9 @@ export interface DdocProps {
32
32
  setWordCount?: React.Dispatch<SetStateAction<number>>;
33
33
  collaborationKey?: string;
34
34
  yjsUpdate?: string;
35
+ onDisconnectionDueToSyncError?: (syncError: {
36
+ message: string;
37
+ }) => void;
35
38
  }
36
39
  export interface IEditorSelectionData {
37
40
  from: number;
@@ -1,6 +1,6 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, onTextSelection, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey, yjsUpdate, }: Partial<DdocProps>) => {
3
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, ensResolutionUrl, onError, setCharacterCount, setWordCount, collaborationKey, yjsUpdate, onDisconnectionDueToSyncError, }: Partial<DdocProps>) => {
4
4
  editor: import('@tiptap/core').Editor | null;
5
5
  isContentLoading: boolean;
6
6
  ref: import('react').RefObject<HTMLDivElement>;