@fileverse-dev/ddoc 2.0.3-patch-7 → 2.0.3-patch-9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +16997 -16893
- package/dist/package/components/editor-bubble-menu.d.ts +3 -1
- package/dist/package/extensions/resizable-media/media-paste-drop-plugin/media-paste-drop-plugin.d.ts +1 -1
- package/dist/package/extensions/resizable-media/resizable-media.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -6,6 +6,8 @@ export interface BubbleMenuItem {
|
|
6
6
|
command: () => void;
|
7
7
|
icon: any;
|
8
8
|
}
|
9
|
-
type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'
|
9
|
+
type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
10
|
+
onError?: (errorString: string) => void;
|
11
|
+
};
|
10
12
|
export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
11
13
|
export {};
|
package/dist/package/extensions/resizable-media/media-paste-drop-plugin/media-paste-drop-plugin.d.ts
CHANGED
@@ -9,4 +9,4 @@ export type UploadFnType = (image: File) => Promise<string>;
|
|
9
9
|
* If no upload function is provided, it reads the media file as DataURL and uses this in the new node.
|
10
10
|
* The function returns a new instance of the Plugin.
|
11
11
|
*/
|
12
|
-
export declare const getMediaPasteDropPlugin: (upload: UploadFnType) => Plugin<any>;
|
12
|
+
export declare const getMediaPasteDropPlugin: (upload: UploadFnType, onError: (error: string) => void) => Plugin<any>;
|
@@ -21,6 +21,7 @@ declare module '@tiptap/core' {
|
|
21
21
|
export interface MediaOptions {
|
22
22
|
HTMLAttributes: Record<string, any>;
|
23
23
|
uploadFn: UploadFnType;
|
24
|
+
onError?: (error: string) => void;
|
24
25
|
}
|
25
26
|
export declare const IMAGE_INPUT_REGEX: RegExp;
|
26
27
|
export declare const VIDEO_INPUT_REGEX: RegExp;
|