unlayer-types 1.439.0 → 1.441.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.
Files changed (2) hide show
  1. package/embed.d.ts +4 -0
  2. 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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.439.0",
3
+ "version": "1.441.0",
4
4
  "license": "MIT"
5
5
  }