@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.
@@ -1,6 +1,6 @@
1
1
  import { Editor } from '@tiptap/react';
2
2
 
3
- declare const EditorToolBar: ({ editor }: {
3
+ declare const TiptapToolBar: ({ editor }: {
4
4
  editor: Editor;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
6
- export default EditorToolBar;
6
+ export default TiptapToolBar;
@@ -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
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "1.1.9",
5
+ "version": "1.2.1",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -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 {};