@fileverse-dev/ddoc 2.0.0 → 2.0.1-patch

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,9 +27,10 @@ export declare const useEditorToolbar: ({ editor, onError, }: {
27
27
  }) => {
28
28
  undoRedoTools: (IEditorToolElement | null)[];
29
29
  toolbar: (IEditorToolElement | null)[];
30
+ markdownOptions: (IEditorToolElement | null)[];
30
31
  bottomToolbar: (IEditorToolElement | null)[];
31
32
  toolRef: React.RefObject<HTMLDivElement>;
32
- toolVisibilty: IEditorTool;
33
+ toolVisibility: IEditorTool;
33
34
  setToolVisibility: React.Dispatch<React.SetStateAction<IEditorTool>>;
34
35
  };
35
36
  export declare const TextHighlighter: ({ editor, setVisibility, elementRef, }: {
@@ -0,0 +1,4 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ export declare const Footnote: Node<any, any>;
4
+ export declare const FootnoteRef: Node<any, any>;
@@ -1,4 +1,14 @@
1
- import { Extension } from '@tiptap/core';
1
+ import { Extension, Command } from '@tiptap/core';
2
2
 
3
+ declare module '@tiptap/core' {
4
+ interface Commands {
5
+ uploadMarkdownFile: {
6
+ uploadMarkdownFile: () => Command;
7
+ };
8
+ exportMarkdownFile: {
9
+ exportMarkdownFile: () => Command;
10
+ };
11
+ }
12
+ }
3
13
  declare const MarkdownPasteHandler: Extension<any, any>;
4
14
  export default MarkdownPasteHandler;
@@ -11,13 +11,13 @@ export declare enum IEditorTool {
11
11
  TEXT_COLOR_PICKER = 9,
12
12
  LINK_POPUP = 10
13
13
  }
14
- export default function useComponentVisibilty(initialIsVisible: boolean): {
14
+ export default function useComponentVisibility(initialIsVisible: boolean): {
15
15
  ref: import('react').RefObject<HTMLDivElement>;
16
16
  isComponentVisible: boolean;
17
17
  setIsComponentVisible: import('react').Dispatch<import('react').SetStateAction<boolean>>;
18
18
  };
19
19
  export declare function useEditorToolVisiibility(initialIsVisible: IEditorTool): {
20
20
  ref: import('react').RefObject<HTMLDivElement>;
21
- toolVisibilty: IEditorTool;
21
+ toolVisibility: IEditorTool;
22
22
  setToolVisibility: import('react').Dispatch<import('react').SetStateAction<IEditorTool>>;
23
23
  };