@fileverse-dev/ddoc 2.0.0 → 2.0.1-patch
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.
- package/dist/index.es.js +70614 -37064
- package/dist/package/components/editor-utils.d.ts +2 -1
- package/dist/package/extensions/footnote/footnote.d.ts +4 -0
- package/dist/package/extensions/mardown-paste-handler/index.d.ts +11 -1
- package/dist/package/hooks/use-visibility.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +9 -2
@@ -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
|
-
|
33
|
+
toolVisibility: IEditorTool;
|
33
34
|
setToolVisibility: React.Dispatch<React.SetStateAction<IEditorTool>>;
|
34
35
|
};
|
35
36
|
export declare const TextHighlighter: ({ editor, setVisibility, elementRef, }: {
|
@@ -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
|
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
|
-
|
21
|
+
toolVisibility: IEditorTool;
|
22
22
|
setToolVisibility: import('react').Dispatch<import('react').SetStateAction<IEditorTool>>;
|
23
23
|
};
|