@fileverse-dev/ddoc 2.0.3-patch-2 → 2.0.3-patch-4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +22127 -21537
- package/dist/package/components/editor-utils.d.ts +7 -1
- package/dist/package/hooks/use-visibility.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
@@ -51,12 +51,18 @@ export declare const EditorList: ({ elementRef, editor, setToolVisibility, }: {
|
|
51
51
|
editor: Editor;
|
52
52
|
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
53
53
|
}) => import("react/jsx-runtime").JSX.Element;
|
54
|
-
export declare const LinkPopup: ({ elementRef, editor, setToolVisibility, bubbleMenu, setIsLinkPopupOpen, }: {
|
54
|
+
export declare const LinkPopup: ({ elementRef, editor, setToolVisibility, bubbleMenu, setIsLinkPopupOpen, onError, }: {
|
55
55
|
elementRef: React.RefObject<HTMLDivElement>;
|
56
56
|
editor: Editor;
|
57
57
|
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
58
58
|
bubbleMenu?: boolean;
|
59
59
|
setIsLinkPopupOpen?: Dispatch<SetStateAction<boolean>>;
|
60
|
+
onError?: (errorString: string) => void;
|
61
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
62
|
+
export declare const ScriptsPopup: ({ elementRef, editor, setToolVisibility, }: {
|
63
|
+
elementRef: React.RefObject<HTMLDivElement>;
|
64
|
+
editor: Editor;
|
65
|
+
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
60
66
|
}) => import("react/jsx-runtime").JSX.Element;
|
61
67
|
export declare const TextColor: ({ editor, setVisibility, elementRef, }: {
|
62
68
|
editor: Editor;
|
@@ -9,7 +9,8 @@ export declare enum IEditorTool {
|
|
9
9
|
LIST = 7,
|
10
10
|
TEXT_FORMATING = 8,
|
11
11
|
TEXT_COLOR_PICKER = 9,
|
12
|
-
LINK_POPUP = 10
|
12
|
+
LINK_POPUP = 10,
|
13
|
+
SCRIPTS = 11
|
13
14
|
}
|
14
15
|
export default function useComponentVisibility(initialIsVisible: boolean): {
|
15
16
|
ref: import('react').RefObject<HTMLDivElement>;
|