@fileverse-dev/ddoc 2.0.4-patch-2 → 2.0.4-patch-4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/index.es.js +4216 -4081
- package/dist/package/extensions/default-extension.d.ts +1 -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/package/extensions/superscriptOrdinal.d.ts +4 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { NodeType } from '@tiptap/pm/model';
|
2
2
|
import { InputRule } from '@tiptap/core';
|
3
3
|
|
4
|
-
export declare const defaultExtensions: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<any, any>)[];
|
4
|
+
export declare const defaultExtensions: (onError: (error: string) => void) => (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<any, any>)[];
|
5
5
|
export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
|
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;
|