@fileverse-dev/ddoc 2.1.0-patch-3 → 2.1.0-patch-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, 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, isNavbarVisible, setIsNavbarVis
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>;
@@ -26,6 +26,7 @@ export interface DdocProps {
26
26
  setZoomLevel: React.Dispatch<SetStateAction<string>>;
27
27
  isNavbarVisible: boolean;
28
28
  setIsNavbarVisible: React.Dispatch<SetStateAction<boolean>>;
29
+ editorCanvasClassNames?: string;
29
30
  isCommentSectionOpen?: boolean;
30
31
  collaborationId?: string;
31
32
  isPreviewMode: boolean;
@@ -56,6 +57,9 @@ export interface DdocProps {
56
57
  unFocused?: boolean;
57
58
  isPresentationMode?: boolean;
58
59
  setIsPresentationMode?: React.Dispatch<SetStateAction<boolean>>;
60
+ onInlineComment?: () => void;
61
+ onMarkdownExport?: () => void;
62
+ onMarkdownImport?: () => void;
59
63
  sharedSlidesLink?: string;
60
64
  }
61
65
  export interface IEditorSelectionData {