@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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  import type { JSONTemplate } from './design';
4
4
  import type { AICopilotDataType, AIFeatureType, AIProvider, Embed } from './editor';
5
+ import type { Image } from './features';
5
6
  import type { Locale } from './intl';
6
7
  import type { MergeTags } from './merge-tags';
7
8
 
@@ -241,6 +242,10 @@ export interface CallbackTypeMap<TDisplayMode extends DisplayMode | undefined =
241
242
  height?: number;
242
243
  id?: number | string;
243
244
  filename?: string;
245
+ /** Abort the in-progress upload and silently reset the state back to its default ("Upload Image"), with no error shown. */
246
+ abort?: boolean;
247
+ /** Reset the upload state and show the "Upload Failed" state. Pass a string for a custom message. */
248
+ error?: boolean | string;
244
249
  }) => void) => void;
245
250
  selectImage: (data: Record<string, any>, done: (result: {
246
251
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlayer/types",
3
- "version": "1.439.0",
3
+ "version": "1.441.0",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "types": "./dist/index.d.ts",