@fileverse-dev/ddoc 2.1.0-patch-11 → 2.1.0-patch-12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,6 +62,8 @@ export interface DdocProps {
62
62
  onMarkdownImport?: () => void;
63
63
  sharedSlidesLink?: string;
64
64
  documentName?: string;
65
+ setHasInvalidContent?: React.Dispatch<SetStateAction<boolean>>;
66
+ onInvalidContentError?: (e: unknown) => void;
65
67
  }
66
68
  export interface IEditorSelectionData {
67
69
  from: number;
@@ -1,7 +1,7 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
3
  import * as Y from 'yjs';
4
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, zoomLevel, }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, zoomLevel, setHasInvalidContent, onInvalidContentError, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/core').Editor | null;
6
6
  isContentLoading: boolean;
7
7
  ref: import('react').RefObject<HTMLDivElement>;