unlayer-types 1.439.0 → 1.440.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/embed.d.ts +4 -0
- package/package.json +1 -1
package/embed.d.ts
CHANGED
|
@@ -3440,6 +3440,10 @@ declare module "packages/editor/src/state/types/callbacks" {
|
|
|
3440
3440
|
height?: number;
|
|
3441
3441
|
id?: number | string;
|
|
3442
3442
|
filename?: string;
|
|
3443
|
+
/** Abort the in-progress upload and silently reset the state back to its default ("Upload Image"), with no error shown. */
|
|
3444
|
+
abort?: boolean;
|
|
3445
|
+
/** Reset the upload state and show the "Upload Failed" state. Pass a string for a custom message. */
|
|
3446
|
+
error?: boolean | string;
|
|
3443
3447
|
}) => void) => void;
|
|
3444
3448
|
selectImage: (data: Record<string, any>, done: (result: {
|
|
3445
3449
|
url: string;
|
package/package.json
CHANGED