@fileverse-dev/ddoc 2.0.9-patch-4 → 2.0.9-patch-5
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BubbleMenuProps } from '@tiptap/react';
|
1
|
+
import { BubbleMenuProps, Editor } from '@tiptap/react';
|
2
2
|
import { default as React } from 'react';
|
3
3
|
|
4
4
|
export interface BubbleMenuItem {
|
@@ -14,6 +14,7 @@ type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
|
14
14
|
setIsCommentSectionOpen?: (isOpen: boolean) => void;
|
15
15
|
inlineCommentData?: InlineCommentData;
|
16
16
|
setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
|
17
|
+
editor: Editor;
|
17
18
|
};
|
18
19
|
export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
19
20
|
export {};
|
@@ -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,
|
4
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, }: Partial<DdocProps>) => {
|
5
5
|
editor: import('@tiptap/core').Editor | null;
|
6
6
|
isContentLoading: boolean;
|
7
7
|
ref: import('react').RefObject<HTMLDivElement>;
|