@fileverse-dev/ddoc 2.1.0-patch-4 → 2.1.0-patch-5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/index.es.js +5687 -5671
- package/dist/package/components/editor-bubble-menu.d.ts +1 -0
- package/dist/package/components/editor-toolbar.d.ts +3 -1
- package/dist/package/components/editor-utils.d.ts +5 -2
- package/dist/package/types.d.ts +4 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -16,6 +16,7 @@ type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
|
16
16
|
setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
|
17
17
|
walletAddress?: string;
|
18
18
|
username?: string;
|
19
|
+
onInlineComment?: () => void;
|
19
20
|
};
|
20
21
|
export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
21
22
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { Editor } from '@tiptap/react';
|
3
3
|
|
4
|
-
declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, secureImageUploadUrl, }: {
|
4
|
+
declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, secureImageUploadUrl, onMarkdownExport, onMarkdownImport, }: {
|
5
5
|
editor: Editor;
|
6
6
|
onError?: (errorString: string) => void;
|
7
7
|
zoomLevel: string;
|
@@ -9,5 +9,7 @@ declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavb
|
|
9
9
|
isNavbarVisible: boolean;
|
10
10
|
setIsNavbarVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
11
11
|
secureImageUploadUrl?: string;
|
12
|
+
onMarkdownExport?: () => void;
|
13
|
+
onMarkdownImport?: () => void;
|
12
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
13
15
|
export default TiptapToolBar;
|
@@ -26,10 +26,12 @@ export declare const IMG_UPLOAD_SETTINGS: {
|
|
26
26
|
errorMsg: string;
|
27
27
|
};
|
28
28
|
};
|
29
|
-
export declare const useEditorToolbar: ({ editor, onError, secureImageUploadUrl, }: {
|
29
|
+
export declare const useEditorToolbar: ({ editor, onError, secureImageUploadUrl, onMarkdownExport, onMarkdownImport, }: {
|
30
30
|
editor: Editor;
|
31
31
|
onError?: (errorString: string) => void;
|
32
32
|
secureImageUploadUrl?: string;
|
33
|
+
onMarkdownExport?: () => void;
|
34
|
+
onMarkdownImport?: () => void;
|
33
35
|
}) => {
|
34
36
|
undoRedoTools: (IEditorToolElement | null)[];
|
35
37
|
toolbar: (IEditorToolElement | null)[];
|
@@ -69,7 +71,7 @@ export declare const LinkPopup: ({ elementRef, editor, setToolVisibility, bubble
|
|
69
71
|
setIsLinkPopupOpen?: Dispatch<SetStateAction<boolean>>;
|
70
72
|
onError?: (errorString: string) => void;
|
71
73
|
}) => import("react/jsx-runtime").JSX.Element;
|
72
|
-
export declare const InlineCommentPopup: ({ elementRef, editor, setIsCommentSectionOpen, setIsInlineCommentOpen, inlineCommentData, setInlineCommentData, }: {
|
74
|
+
export declare const InlineCommentPopup: ({ elementRef, editor, setIsCommentSectionOpen, setIsInlineCommentOpen, inlineCommentData, setInlineCommentData, onInlineComment, }: {
|
73
75
|
elementRef: React.RefObject<HTMLDivElement>;
|
74
76
|
editor: Editor;
|
75
77
|
setIsCommentSectionOpen: Dispatch<SetStateAction<boolean>>;
|
@@ -84,6 +86,7 @@ export declare const InlineCommentPopup: ({ elementRef, editor, setIsCommentSect
|
|
84
86
|
inlineCommentText?: string;
|
85
87
|
handleClick?: boolean;
|
86
88
|
}) => void;
|
89
|
+
onInlineComment?: () => void;
|
87
90
|
}) => import("react/jsx-runtime").JSX.Element;
|
88
91
|
export declare const ScriptsPopup: ({ elementRef, editor, }: {
|
89
92
|
elementRef: React.RefObject<HTMLDivElement>;
|
package/dist/package/types.d.ts
CHANGED
@@ -26,7 +26,7 @@ export interface DdocProps {
|
|
26
26
|
setZoomLevel: React.Dispatch<SetStateAction<string>>;
|
27
27
|
isNavbarVisible: boolean;
|
28
28
|
setIsNavbarVisible: React.Dispatch<SetStateAction<boolean>>;
|
29
|
-
|
29
|
+
editorCanvasClassNames?: string;
|
30
30
|
isCommentSectionOpen?: boolean;
|
31
31
|
collaborationId?: string;
|
32
32
|
isPreviewMode: boolean;
|
@@ -57,6 +57,9 @@ export interface DdocProps {
|
|
57
57
|
unFocused?: boolean;
|
58
58
|
isPresentationMode?: boolean;
|
59
59
|
setIsPresentationMode?: React.Dispatch<SetStateAction<boolean>>;
|
60
|
+
onInlineComment?: () => void;
|
61
|
+
onMarkdownExport?: () => void;
|
62
|
+
onMarkdownImport?: () => void;
|
60
63
|
sharedSlidesLink?: string;
|
61
64
|
}
|
62
65
|
export interface IEditorSelectionData {
|