unlayer-types 1.157.0 → 1.169.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 +92 -1
- package/package.json +1 -1
package/embed.d.ts
CHANGED
@@ -539,6 +539,92 @@ declare module "editor/themes/types" {
|
|
539
539
|
color: ColorValue;
|
540
540
|
backgroundColor: ColorValue;
|
541
541
|
};
|
542
|
+
inboxPreview: {
|
543
|
+
container: {
|
544
|
+
borderColor: ColorValue;
|
545
|
+
};
|
546
|
+
leftPanel: {
|
547
|
+
deviceHeader: {
|
548
|
+
backgroundColor: ColorValue;
|
549
|
+
borderColor: ColorValue;
|
550
|
+
};
|
551
|
+
preview: {
|
552
|
+
backgroundColor: ColorValue;
|
553
|
+
borderColor: ColorValue;
|
554
|
+
};
|
555
|
+
zoomControls: {
|
556
|
+
backgroundColor: string;
|
557
|
+
boxShadowColor: string;
|
558
|
+
button: {
|
559
|
+
backgroundColor: ColorValue;
|
560
|
+
borderColor: ColorValue;
|
561
|
+
textColor: ColorValue;
|
562
|
+
':hover': {
|
563
|
+
backgroundColor: ColorValue;
|
564
|
+
};
|
565
|
+
':active': {
|
566
|
+
backgroundColor: ColorValue;
|
567
|
+
};
|
568
|
+
};
|
569
|
+
};
|
570
|
+
loading: {
|
571
|
+
spinnerBorder: ColorValue;
|
572
|
+
spinnerAccent: ColorValue;
|
573
|
+
textColor: ColorValue;
|
574
|
+
};
|
575
|
+
};
|
576
|
+
rightPanel: {
|
577
|
+
title: {
|
578
|
+
textColor: ColorValue;
|
579
|
+
};
|
580
|
+
syncButton: {
|
581
|
+
textColor: ColorValue;
|
582
|
+
};
|
583
|
+
description: {
|
584
|
+
textColor: ColorValue;
|
585
|
+
};
|
586
|
+
message: {
|
587
|
+
error: {
|
588
|
+
textColor: ColorValue;
|
589
|
+
};
|
590
|
+
};
|
591
|
+
gallery: {
|
592
|
+
tabs: {
|
593
|
+
backgroundColor: ColorValue;
|
594
|
+
borderColor: ColorValue;
|
595
|
+
textColor: ColorValue;
|
596
|
+
':active': {
|
597
|
+
backgroundColor: ColorValue;
|
598
|
+
borderColor: ColorValue;
|
599
|
+
};
|
600
|
+
};
|
601
|
+
preview: {
|
602
|
+
card: {
|
603
|
+
backgroundColor: ColorValue;
|
604
|
+
borderColor: ColorValue;
|
605
|
+
':selected': {
|
606
|
+
borderColor: ColorValue;
|
607
|
+
};
|
608
|
+
};
|
609
|
+
image: {
|
610
|
+
':selected': {
|
611
|
+
opacity: string;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
title: {
|
615
|
+
textColor: ColorValue;
|
616
|
+
};
|
617
|
+
subtitle: {
|
618
|
+
textColor: ColorValue;
|
619
|
+
};
|
620
|
+
icon: {
|
621
|
+
default: ColorValue;
|
622
|
+
selected: ColorValue;
|
623
|
+
};
|
624
|
+
};
|
625
|
+
};
|
626
|
+
};
|
627
|
+
};
|
542
628
|
};
|
543
629
|
};
|
544
630
|
export type ThemeVariant = 'primary' | 'secondary' | 'tertiary' | 'ai' | 'ai_outline' | 'danger';
|
@@ -1159,6 +1245,7 @@ declare module "state/types/types" {
|
|
1159
1245
|
label?: string;
|
1160
1246
|
value: string;
|
1161
1247
|
}, _meta: object, done: (result: {
|
1248
|
+
label?: string;
|
1162
1249
|
value: string;
|
1163
1250
|
}) => void) => void;
|
1164
1251
|
} | {
|
@@ -1266,7 +1353,7 @@ declare module "state/types/types" {
|
|
1266
1353
|
}
|
1267
1354
|
export type ImageSource = 'unsplash' | 'pixabay' | 'pexel' | 'user';
|
1268
1355
|
export interface Image {
|
1269
|
-
id: number;
|
1356
|
+
id: number | string;
|
1270
1357
|
location: string;
|
1271
1358
|
contentType: string;
|
1272
1359
|
size: number;
|
@@ -2268,12 +2355,14 @@ declare module "editor/hooks/useImageUploader" {
|
|
2268
2355
|
maxSize?: number | null;
|
2269
2356
|
onErrorChange?: (error: Error | null) => void;
|
2270
2357
|
onImageSelect?: (image?: {
|
2358
|
+
id?: string | number;
|
2271
2359
|
url: string;
|
2272
2360
|
width?: number;
|
2273
2361
|
height?: number;
|
2274
2362
|
size?: number;
|
2275
2363
|
}) => void;
|
2276
2364
|
onImageUpload?: (image: {
|
2365
|
+
id?: string | number;
|
2277
2366
|
url: string;
|
2278
2367
|
width?: number;
|
2279
2368
|
height?: number;
|
@@ -2348,11 +2437,13 @@ declare module "editor/components/common/ImageUploadButton" {
|
|
2348
2437
|
maxSize?: number;
|
2349
2438
|
onErrorChange?: (error: Error | null) => void;
|
2350
2439
|
onImageSelect?: (image?: {
|
2440
|
+
id?: string | number;
|
2351
2441
|
url: string;
|
2352
2442
|
width?: number;
|
2353
2443
|
height?: number;
|
2354
2444
|
}) => void;
|
2355
2445
|
onImageUpload?: (image: {
|
2446
|
+
id?: string | number;
|
2356
2447
|
url: string;
|
2357
2448
|
width?: number;
|
2358
2449
|
height?: number;
|
package/package.json
CHANGED