@fileverse-dev/ddoc 2.0.3-patch-8 → 2.0.3-patch-10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 {};
@@ -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;