unlayer-types 1.157.0 → 1.167.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 +6 -1
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -1159,6 +1159,7 @@ declare module "state/types/types" {
|
|
1159
1159
|
label?: string;
|
1160
1160
|
value: string;
|
1161
1161
|
}, _meta: object, done: (result: {
|
1162
|
+
label?: string;
|
1162
1163
|
value: string;
|
1163
1164
|
}) => void) => void;
|
1164
1165
|
} | {
|
@@ -1266,7 +1267,7 @@ declare module "state/types/types" {
|
|
1266
1267
|
}
|
1267
1268
|
export type ImageSource = 'unsplash' | 'pixabay' | 'pexel' | 'user';
|
1268
1269
|
export interface Image {
|
1269
|
-
id: number;
|
1270
|
+
id: number | string;
|
1270
1271
|
location: string;
|
1271
1272
|
contentType: string;
|
1272
1273
|
size: number;
|
@@ -2268,12 +2269,14 @@ declare module "editor/hooks/useImageUploader" {
|
|
2268
2269
|
maxSize?: number | null;
|
2269
2270
|
onErrorChange?: (error: Error | null) => void;
|
2270
2271
|
onImageSelect?: (image?: {
|
2272
|
+
id?: string | number;
|
2271
2273
|
url: string;
|
2272
2274
|
width?: number;
|
2273
2275
|
height?: number;
|
2274
2276
|
size?: number;
|
2275
2277
|
}) => void;
|
2276
2278
|
onImageUpload?: (image: {
|
2279
|
+
id?: string | number;
|
2277
2280
|
url: string;
|
2278
2281
|
width?: number;
|
2279
2282
|
height?: number;
|
@@ -2348,11 +2351,13 @@ declare module "editor/components/common/ImageUploadButton" {
|
|
2348
2351
|
maxSize?: number;
|
2349
2352
|
onErrorChange?: (error: Error | null) => void;
|
2350
2353
|
onImageSelect?: (image?: {
|
2354
|
+
id?: string | number;
|
2351
2355
|
url: string;
|
2352
2356
|
width?: number;
|
2353
2357
|
height?: number;
|
2354
2358
|
}) => void;
|
2355
2359
|
onImageUpload?: (image: {
|
2360
|
+
id?: string | number;
|
2356
2361
|
url: string;
|
2357
2362
|
width?: number;
|
2358
2363
|
height?: number;
|
package/package.json
CHANGED