@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.
- package/README.md +1 -0
- package/dist/index.es.js +5340 -5322
- package/dist/package/types.d.ts +2 -0
- package/dist/package/use-ddoc-editor.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/package/types.d.ts
CHANGED
@@ -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>;
|