@fileverse-dev/ddoc 1.1.9 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +11126 -10899
- package/dist/index.umd.js +149 -84
- package/dist/packages/ddoc/components/editor-toolbar.d.ts +2 -2
- package/dist/packages/ddoc/components/editor-utils.d.ts +5 -0
- package/dist/packages/ddoc/extensions/resizable-media/resizable-media-menu-util.d.ts +16 -0
- package/package.json +1 -1
- package/dist/packages/ddoc/components/editor-bubble-menu.d.ts +0 -12
@@ -8,6 +8,11 @@ interface IEditorToolElement {
|
|
8
8
|
onClick: () => void;
|
9
9
|
isActive: boolean;
|
10
10
|
}
|
11
|
+
export declare const fonts: {
|
12
|
+
title: string;
|
13
|
+
value: string;
|
14
|
+
command: (editor: Editor) => void;
|
15
|
+
}[];
|
11
16
|
export declare const useEditorToolbar: ({ editor }: {
|
12
17
|
editor: Editor;
|
13
18
|
}) => {
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Attrs } from '@tiptap/pm/model';
|
2
|
+
|
3
|
+
interface ResizableMediaAttributes {
|
4
|
+
dataAlign: string;
|
5
|
+
dataFloat: null | string;
|
6
|
+
}
|
7
|
+
type Action = (updateAttributes: (o: ResizableMediaAttributes) => void) => void;
|
8
|
+
interface ResizableMediaAction {
|
9
|
+
tooltip: string;
|
10
|
+
icon?: string;
|
11
|
+
action?: Action;
|
12
|
+
isActive?: (attrs: Attrs) => boolean;
|
13
|
+
delete?: (d: () => void) => void;
|
14
|
+
}
|
15
|
+
export declare const resizableMediaActions: ResizableMediaAction[];
|
16
|
+
export {};
|
package/package.json
CHANGED
@@ -1,12 +0,0 @@
|
|
1
|
-
import { BubbleMenuProps } from '@tiptap/react';
|
2
|
-
import { FC } from 'react';
|
3
|
-
|
4
|
-
export interface BubbleMenuItem {
|
5
|
-
name: string;
|
6
|
-
isActive: () => boolean;
|
7
|
-
command: () => void;
|
8
|
-
icon: any;
|
9
|
-
}
|
10
|
-
type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'>;
|
11
|
-
export declare const EditorBubbleMenu: FC<EditorBubbleMenuProps>;
|
12
|
-
export {};
|