@unlayer/types 1.438.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/dist/editor/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/editor/types.d.ts
CHANGED
|
@@ -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;
|