@webstudio-is/react-sdk 0.275.0 → 0.276.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/lib/types/props.d.ts +93 -93
- package/package.json +9 -8
package/lib/types/props.d.ts
CHANGED
|
@@ -7,101 +7,106 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
7
7
|
pages: Pages;
|
|
8
8
|
source: "canvas" | "prebuild";
|
|
9
9
|
}) => ({
|
|
10
|
+
id: string;
|
|
11
|
+
instanceId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
required?: boolean | undefined;
|
|
10
14
|
type: "number";
|
|
11
15
|
value: number;
|
|
16
|
+
} | {
|
|
12
17
|
id: string;
|
|
13
18
|
instanceId: string;
|
|
14
19
|
name: string;
|
|
15
20
|
required?: boolean | undefined;
|
|
16
|
-
} | {
|
|
17
21
|
type: "string";
|
|
18
22
|
value: string;
|
|
23
|
+
} | {
|
|
19
24
|
id: string;
|
|
20
25
|
instanceId: string;
|
|
21
26
|
name: string;
|
|
22
27
|
required?: boolean | undefined;
|
|
23
|
-
} | {
|
|
24
28
|
type: "boolean";
|
|
25
29
|
value: boolean;
|
|
30
|
+
} | {
|
|
26
31
|
id: string;
|
|
27
32
|
instanceId: string;
|
|
28
33
|
name: string;
|
|
29
34
|
required?: boolean | undefined;
|
|
30
|
-
} | {
|
|
31
35
|
type: "json";
|
|
32
36
|
value: unknown;
|
|
37
|
+
} | {
|
|
33
38
|
id: string;
|
|
34
39
|
instanceId: string;
|
|
35
40
|
name: string;
|
|
36
41
|
required?: boolean | undefined;
|
|
37
|
-
} | {
|
|
38
42
|
type: "asset";
|
|
39
43
|
value: string;
|
|
44
|
+
} | {
|
|
40
45
|
id: string;
|
|
41
46
|
instanceId: string;
|
|
42
47
|
name: string;
|
|
43
48
|
required?: boolean | undefined;
|
|
44
|
-
} | {
|
|
45
49
|
type: "page";
|
|
46
50
|
value: string | {
|
|
47
51
|
pageId: string;
|
|
48
52
|
instanceId: string;
|
|
49
53
|
};
|
|
54
|
+
} | {
|
|
50
55
|
id: string;
|
|
51
56
|
instanceId: string;
|
|
52
57
|
name: string;
|
|
53
58
|
required?: boolean | undefined;
|
|
54
|
-
} | {
|
|
55
59
|
type: "string[]";
|
|
56
60
|
value: string[];
|
|
61
|
+
} | {
|
|
57
62
|
id: string;
|
|
58
63
|
instanceId: string;
|
|
59
64
|
name: string;
|
|
60
65
|
required?: boolean | undefined;
|
|
61
|
-
} | {
|
|
62
66
|
type: "parameter";
|
|
63
67
|
value: string;
|
|
68
|
+
} | {
|
|
64
69
|
id: string;
|
|
65
70
|
instanceId: string;
|
|
66
71
|
name: string;
|
|
67
72
|
required?: boolean | undefined;
|
|
68
|
-
} | {
|
|
69
73
|
type: "resource";
|
|
70
74
|
value: string;
|
|
75
|
+
} | {
|
|
71
76
|
id: string;
|
|
72
77
|
instanceId: string;
|
|
73
78
|
name: string;
|
|
74
79
|
required?: boolean | undefined;
|
|
75
|
-
} | {
|
|
76
80
|
type: "expression";
|
|
77
81
|
value: string;
|
|
82
|
+
} | {
|
|
78
83
|
id: string;
|
|
79
84
|
instanceId: string;
|
|
80
85
|
name: string;
|
|
81
86
|
required?: boolean | undefined;
|
|
82
|
-
} | {
|
|
83
87
|
type: "action";
|
|
84
88
|
value: {
|
|
85
89
|
type: "execute";
|
|
86
90
|
args: string[];
|
|
87
91
|
code: string;
|
|
88
92
|
}[];
|
|
93
|
+
} | {
|
|
89
94
|
id: string;
|
|
90
95
|
instanceId: string;
|
|
91
96
|
name: string;
|
|
92
97
|
required?: boolean | undefined;
|
|
93
|
-
} | {
|
|
94
98
|
type: "animationAction";
|
|
95
99
|
value: {
|
|
96
100
|
type: "scroll";
|
|
101
|
+
source?: "closest" | "nearest" | "root" | undefined;
|
|
102
|
+
axis?: "block" | "inline" | "x" | "y" | undefined;
|
|
97
103
|
animations: {
|
|
104
|
+
name?: string | undefined;
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
enabled?: [string, boolean][] | undefined;
|
|
98
107
|
keyframes: {
|
|
108
|
+
offset?: number | undefined;
|
|
99
109
|
styles: Record<string, import("@webstudio-is/css-engine").ColorValue | {
|
|
100
|
-
type: "function";
|
|
101
|
-
name: string;
|
|
102
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
103
|
-
hidden?: boolean;
|
|
104
|
-
} | {
|
|
105
110
|
type: "image";
|
|
106
111
|
value: {
|
|
107
112
|
type: "asset";
|
|
@@ -159,11 +164,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
159
164
|
} | {
|
|
160
165
|
type: "tuple";
|
|
161
166
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
162
|
-
type: "function";
|
|
163
|
-
name: string;
|
|
164
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
165
|
-
hidden?: boolean;
|
|
166
|
-
} | {
|
|
167
167
|
type: "image";
|
|
168
168
|
value: {
|
|
169
169
|
type: "asset";
|
|
@@ -218,10 +218,16 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
218
218
|
hidden?: boolean | undefined;
|
|
219
219
|
} | undefined;
|
|
220
220
|
hidden?: boolean | undefined;
|
|
221
|
+
} | {
|
|
222
|
+
type: "function";
|
|
223
|
+
name: string;
|
|
224
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
225
|
+
hidden?: boolean;
|
|
221
226
|
})[];
|
|
222
227
|
hidden?: boolean | undefined;
|
|
223
228
|
} | {
|
|
224
229
|
type: "shadow";
|
|
230
|
+
hidden?: boolean | undefined;
|
|
225
231
|
position: "inset" | "outset";
|
|
226
232
|
offsetX: {
|
|
227
233
|
type: "unit";
|
|
@@ -285,7 +291,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
285
291
|
} | undefined;
|
|
286
292
|
hidden?: boolean | undefined;
|
|
287
293
|
};
|
|
288
|
-
hidden?: boolean | undefined;
|
|
289
294
|
blur?: {
|
|
290
295
|
type: "unit";
|
|
291
296
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -392,11 +397,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
392
397
|
} | {
|
|
393
398
|
type: "layers";
|
|
394
399
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
395
|
-
type: "function";
|
|
396
|
-
name: string;
|
|
397
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
398
|
-
hidden?: boolean;
|
|
399
|
-
} | {
|
|
400
400
|
type: "image";
|
|
401
401
|
value: {
|
|
402
402
|
type: "asset";
|
|
@@ -454,11 +454,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
454
454
|
} | {
|
|
455
455
|
type: "tuple";
|
|
456
456
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
457
|
-
type: "function";
|
|
458
|
-
name: string;
|
|
459
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
460
|
-
hidden?: boolean;
|
|
461
|
-
} | {
|
|
462
457
|
type: "image";
|
|
463
458
|
value: {
|
|
464
459
|
type: "asset";
|
|
@@ -513,10 +508,16 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
513
508
|
hidden?: boolean | undefined;
|
|
514
509
|
} | undefined;
|
|
515
510
|
hidden?: boolean | undefined;
|
|
511
|
+
} | {
|
|
512
|
+
type: "function";
|
|
513
|
+
name: string;
|
|
514
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
515
|
+
hidden?: boolean;
|
|
516
516
|
})[];
|
|
517
517
|
hidden?: boolean | undefined;
|
|
518
518
|
} | {
|
|
519
519
|
type: "shadow";
|
|
520
|
+
hidden?: boolean | undefined;
|
|
520
521
|
position: "inset" | "outset";
|
|
521
522
|
offsetX: {
|
|
522
523
|
type: "unit";
|
|
@@ -580,7 +581,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
580
581
|
} | undefined;
|
|
581
582
|
hidden?: boolean | undefined;
|
|
582
583
|
};
|
|
583
|
-
hidden?: boolean | undefined;
|
|
584
584
|
blur?: {
|
|
585
585
|
type: "unit";
|
|
586
586
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -684,6 +684,11 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
684
684
|
type: "invalid";
|
|
685
685
|
value: string;
|
|
686
686
|
hidden?: boolean | undefined;
|
|
687
|
+
} | {
|
|
688
|
+
type: "function";
|
|
689
|
+
name: string;
|
|
690
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
691
|
+
hidden?: boolean;
|
|
687
692
|
})[];
|
|
688
693
|
hidden?: boolean | undefined;
|
|
689
694
|
} | {
|
|
@@ -697,16 +702,20 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
697
702
|
type: "unset";
|
|
698
703
|
value: "";
|
|
699
704
|
hidden?: boolean | undefined;
|
|
705
|
+
} | {
|
|
706
|
+
type: "function";
|
|
707
|
+
name: string;
|
|
708
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
709
|
+
hidden?: boolean;
|
|
700
710
|
}>;
|
|
701
|
-
offset?: number | undefined;
|
|
702
711
|
}[];
|
|
703
712
|
timing: {
|
|
704
713
|
easing?: string | undefined;
|
|
705
|
-
fill?: "
|
|
714
|
+
fill?: "backwards" | "both" | "forwards" | "none" | undefined;
|
|
706
715
|
duration?: {
|
|
707
716
|
type: "unit";
|
|
708
717
|
value: number;
|
|
709
|
-
unit: "
|
|
718
|
+
unit: "ms" | "s";
|
|
710
719
|
} | {
|
|
711
720
|
type: "var";
|
|
712
721
|
value: string;
|
|
@@ -714,16 +723,16 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
714
723
|
delay?: {
|
|
715
724
|
type: "unit";
|
|
716
725
|
value: number;
|
|
717
|
-
unit: "
|
|
726
|
+
unit: "ms" | "s";
|
|
718
727
|
} | {
|
|
719
728
|
type: "var";
|
|
720
729
|
value: string;
|
|
721
730
|
} | undefined;
|
|
722
731
|
iterations?: number | "infinite" | undefined;
|
|
723
|
-
rangeStart?: ["
|
|
732
|
+
rangeStart?: ["end" | "start", {
|
|
724
733
|
type: "unit";
|
|
725
734
|
value: number;
|
|
726
|
-
unit: "
|
|
735
|
+
unit: "%" | "cap" | "ch" | "cm" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "em" | "ex" | "in" | "lh" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "mm" | "pc" | "pt" | "px" | "q" | "rcap" | "rch" | "rem" | "rex" | "rlh" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vb" | "vh" | "vi" | "vmax" | "vmin" | "vw";
|
|
727
736
|
} | {
|
|
728
737
|
type: "unparsed";
|
|
729
738
|
value: string;
|
|
@@ -731,10 +740,10 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
731
740
|
type: "var";
|
|
732
741
|
value: string;
|
|
733
742
|
}] | undefined;
|
|
734
|
-
rangeEnd?: ["
|
|
743
|
+
rangeEnd?: ["end" | "start", {
|
|
735
744
|
type: "unit";
|
|
736
745
|
value: number;
|
|
737
|
-
unit: "
|
|
746
|
+
unit: "%" | "cap" | "ch" | "cm" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "em" | "ex" | "in" | "lh" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "mm" | "pc" | "pt" | "px" | "q" | "rcap" | "rch" | "rem" | "rex" | "rlh" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vb" | "vh" | "vi" | "vmax" | "vmin" | "vw";
|
|
738
747
|
} | {
|
|
739
748
|
type: "unparsed";
|
|
740
749
|
value: string;
|
|
@@ -743,24 +752,20 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
743
752
|
value: string;
|
|
744
753
|
}] | undefined;
|
|
745
754
|
};
|
|
746
|
-
name?: string | undefined;
|
|
747
|
-
description?: string | undefined;
|
|
748
|
-
enabled?: [string, boolean][] | undefined;
|
|
749
755
|
}[];
|
|
750
|
-
source?: "closest" | "nearest" | "root" | undefined;
|
|
751
|
-
axis?: "block" | "x" | "y" | "inline" | undefined;
|
|
752
756
|
isPinned?: boolean | undefined;
|
|
753
757
|
debug?: boolean | undefined;
|
|
754
758
|
} | {
|
|
755
759
|
type: "view";
|
|
760
|
+
subject?: string | undefined;
|
|
761
|
+
axis?: "block" | "inline" | "x" | "y" | undefined;
|
|
756
762
|
animations: {
|
|
763
|
+
name?: string | undefined;
|
|
764
|
+
description?: string | undefined;
|
|
765
|
+
enabled?: [string, boolean][] | undefined;
|
|
757
766
|
keyframes: {
|
|
767
|
+
offset?: number | undefined;
|
|
758
768
|
styles: Record<string, import("@webstudio-is/css-engine").ColorValue | {
|
|
759
|
-
type: "function";
|
|
760
|
-
name: string;
|
|
761
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
762
|
-
hidden?: boolean;
|
|
763
|
-
} | {
|
|
764
769
|
type: "image";
|
|
765
770
|
value: {
|
|
766
771
|
type: "asset";
|
|
@@ -818,11 +823,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
818
823
|
} | {
|
|
819
824
|
type: "tuple";
|
|
820
825
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
821
|
-
type: "function";
|
|
822
|
-
name: string;
|
|
823
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
824
|
-
hidden?: boolean;
|
|
825
|
-
} | {
|
|
826
826
|
type: "image";
|
|
827
827
|
value: {
|
|
828
828
|
type: "asset";
|
|
@@ -877,10 +877,16 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
877
877
|
hidden?: boolean | undefined;
|
|
878
878
|
} | undefined;
|
|
879
879
|
hidden?: boolean | undefined;
|
|
880
|
+
} | {
|
|
881
|
+
type: "function";
|
|
882
|
+
name: string;
|
|
883
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
884
|
+
hidden?: boolean;
|
|
880
885
|
})[];
|
|
881
886
|
hidden?: boolean | undefined;
|
|
882
887
|
} | {
|
|
883
888
|
type: "shadow";
|
|
889
|
+
hidden?: boolean | undefined;
|
|
884
890
|
position: "inset" | "outset";
|
|
885
891
|
offsetX: {
|
|
886
892
|
type: "unit";
|
|
@@ -944,7 +950,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
944
950
|
} | undefined;
|
|
945
951
|
hidden?: boolean | undefined;
|
|
946
952
|
};
|
|
947
|
-
hidden?: boolean | undefined;
|
|
948
953
|
blur?: {
|
|
949
954
|
type: "unit";
|
|
950
955
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -1051,11 +1056,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1051
1056
|
} | {
|
|
1052
1057
|
type: "layers";
|
|
1053
1058
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
1054
|
-
type: "function";
|
|
1055
|
-
name: string;
|
|
1056
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1057
|
-
hidden?: boolean;
|
|
1058
|
-
} | {
|
|
1059
1059
|
type: "image";
|
|
1060
1060
|
value: {
|
|
1061
1061
|
type: "asset";
|
|
@@ -1113,11 +1113,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1113
1113
|
} | {
|
|
1114
1114
|
type: "tuple";
|
|
1115
1115
|
value: (import("@webstudio-is/css-engine").ColorValue | {
|
|
1116
|
-
type: "function";
|
|
1117
|
-
name: string;
|
|
1118
|
-
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1119
|
-
hidden?: boolean;
|
|
1120
|
-
} | {
|
|
1121
1116
|
type: "image";
|
|
1122
1117
|
value: {
|
|
1123
1118
|
type: "asset";
|
|
@@ -1172,10 +1167,16 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1172
1167
|
hidden?: boolean | undefined;
|
|
1173
1168
|
} | undefined;
|
|
1174
1169
|
hidden?: boolean | undefined;
|
|
1170
|
+
} | {
|
|
1171
|
+
type: "function";
|
|
1172
|
+
name: string;
|
|
1173
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1174
|
+
hidden?: boolean;
|
|
1175
1175
|
})[];
|
|
1176
1176
|
hidden?: boolean | undefined;
|
|
1177
1177
|
} | {
|
|
1178
1178
|
type: "shadow";
|
|
1179
|
+
hidden?: boolean | undefined;
|
|
1179
1180
|
position: "inset" | "outset";
|
|
1180
1181
|
offsetX: {
|
|
1181
1182
|
type: "unit";
|
|
@@ -1239,7 +1240,6 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1239
1240
|
} | undefined;
|
|
1240
1241
|
hidden?: boolean | undefined;
|
|
1241
1242
|
};
|
|
1242
|
-
hidden?: boolean | undefined;
|
|
1243
1243
|
blur?: {
|
|
1244
1244
|
type: "unit";
|
|
1245
1245
|
unit: "number" | import("@webstudio-is/css-engine").__Unit;
|
|
@@ -1343,6 +1343,11 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1343
1343
|
type: "invalid";
|
|
1344
1344
|
value: string;
|
|
1345
1345
|
hidden?: boolean | undefined;
|
|
1346
|
+
} | {
|
|
1347
|
+
type: "function";
|
|
1348
|
+
name: string;
|
|
1349
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1350
|
+
hidden?: boolean;
|
|
1346
1351
|
})[];
|
|
1347
1352
|
hidden?: boolean | undefined;
|
|
1348
1353
|
} | {
|
|
@@ -1356,16 +1361,20 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1356
1361
|
type: "unset";
|
|
1357
1362
|
value: "";
|
|
1358
1363
|
hidden?: boolean | undefined;
|
|
1364
|
+
} | {
|
|
1365
|
+
type: "function";
|
|
1366
|
+
name: string;
|
|
1367
|
+
args: import("@webstudio-is/css-engine").StyleValue;
|
|
1368
|
+
hidden?: boolean;
|
|
1359
1369
|
}>;
|
|
1360
|
-
offset?: number | undefined;
|
|
1361
1370
|
}[];
|
|
1362
1371
|
timing: {
|
|
1363
1372
|
easing?: string | undefined;
|
|
1364
|
-
fill?: "
|
|
1373
|
+
fill?: "backwards" | "both" | "forwards" | "none" | undefined;
|
|
1365
1374
|
duration?: {
|
|
1366
1375
|
type: "unit";
|
|
1367
1376
|
value: number;
|
|
1368
|
-
unit: "
|
|
1377
|
+
unit: "ms" | "s";
|
|
1369
1378
|
} | {
|
|
1370
1379
|
type: "var";
|
|
1371
1380
|
value: string;
|
|
@@ -1373,16 +1382,16 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1373
1382
|
delay?: {
|
|
1374
1383
|
type: "unit";
|
|
1375
1384
|
value: number;
|
|
1376
|
-
unit: "
|
|
1385
|
+
unit: "ms" | "s";
|
|
1377
1386
|
} | {
|
|
1378
1387
|
type: "var";
|
|
1379
1388
|
value: string;
|
|
1380
1389
|
} | undefined;
|
|
1381
1390
|
iterations?: number | "infinite" | undefined;
|
|
1382
|
-
rangeStart?: ["contain" | "cover" | "entry" | "
|
|
1391
|
+
rangeStart?: ["contain" | "cover" | "entry" | "entry-crossing" | "exit" | "exit-crossing", {
|
|
1383
1392
|
type: "unit";
|
|
1384
1393
|
value: number;
|
|
1385
|
-
unit: "
|
|
1394
|
+
unit: "%" | "cap" | "ch" | "cm" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "em" | "ex" | "in" | "lh" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "mm" | "pc" | "pt" | "px" | "q" | "rcap" | "rch" | "rem" | "rex" | "rlh" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vb" | "vh" | "vi" | "vmax" | "vmin" | "vw";
|
|
1386
1395
|
} | {
|
|
1387
1396
|
type: "unparsed";
|
|
1388
1397
|
value: string;
|
|
@@ -1390,10 +1399,10 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1390
1399
|
type: "var";
|
|
1391
1400
|
value: string;
|
|
1392
1401
|
}] | undefined;
|
|
1393
|
-
rangeEnd?: ["contain" | "cover" | "entry" | "
|
|
1402
|
+
rangeEnd?: ["contain" | "cover" | "entry" | "entry-crossing" | "exit" | "exit-crossing", {
|
|
1394
1403
|
type: "unit";
|
|
1395
1404
|
value: number;
|
|
1396
|
-
unit: "
|
|
1405
|
+
unit: "%" | "cap" | "ch" | "cm" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "em" | "ex" | "in" | "lh" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "mm" | "pc" | "pt" | "px" | "q" | "rcap" | "rch" | "rem" | "rex" | "rlh" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vb" | "vh" | "vi" | "vmax" | "vmin" | "vw";
|
|
1397
1406
|
} | {
|
|
1398
1407
|
type: "unparsed";
|
|
1399
1408
|
value: string;
|
|
@@ -1402,47 +1411,38 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
|
|
|
1402
1411
|
value: string;
|
|
1403
1412
|
}] | undefined;
|
|
1404
1413
|
};
|
|
1405
|
-
name?: string | undefined;
|
|
1406
|
-
description?: string | undefined;
|
|
1407
|
-
enabled?: [string, boolean][] | undefined;
|
|
1408
1414
|
}[];
|
|
1409
|
-
subject?: string | undefined;
|
|
1410
|
-
axis?: "block" | "x" | "y" | "inline" | undefined;
|
|
1411
1415
|
insetStart?: {
|
|
1416
|
+
type: "keyword";
|
|
1417
|
+
value: "auto";
|
|
1418
|
+
} | {
|
|
1412
1419
|
type: "unit";
|
|
1413
1420
|
value: number;
|
|
1414
|
-
unit: "
|
|
1421
|
+
unit: "%" | "cap" | "ch" | "cm" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "em" | "ex" | "in" | "lh" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "mm" | "pc" | "pt" | "px" | "q" | "rcap" | "rch" | "rem" | "rex" | "rlh" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vb" | "vh" | "vi" | "vmax" | "vmin" | "vw";
|
|
1415
1422
|
} | {
|
|
1416
1423
|
type: "unparsed";
|
|
1417
1424
|
value: string;
|
|
1418
1425
|
} | {
|
|
1419
1426
|
type: "var";
|
|
1420
1427
|
value: string;
|
|
1421
|
-
} | {
|
|
1422
|
-
type: "keyword";
|
|
1423
|
-
value: "auto";
|
|
1424
1428
|
} | undefined;
|
|
1425
1429
|
insetEnd?: {
|
|
1430
|
+
type: "keyword";
|
|
1431
|
+
value: "auto";
|
|
1432
|
+
} | {
|
|
1426
1433
|
type: "unit";
|
|
1427
1434
|
value: number;
|
|
1428
|
-
unit: "
|
|
1435
|
+
unit: "%" | "cap" | "ch" | "cm" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "em" | "ex" | "in" | "lh" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "mm" | "pc" | "pt" | "px" | "q" | "rcap" | "rch" | "rem" | "rex" | "rlh" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vb" | "vh" | "vi" | "vmax" | "vmin" | "vw";
|
|
1429
1436
|
} | {
|
|
1430
1437
|
type: "unparsed";
|
|
1431
1438
|
value: string;
|
|
1432
1439
|
} | {
|
|
1433
1440
|
type: "var";
|
|
1434
1441
|
value: string;
|
|
1435
|
-
} | {
|
|
1436
|
-
type: "keyword";
|
|
1437
|
-
value: "auto";
|
|
1438
1442
|
} | undefined;
|
|
1439
1443
|
isPinned?: boolean | undefined;
|
|
1440
1444
|
debug?: boolean | undefined;
|
|
1441
1445
|
};
|
|
1442
|
-
id: string;
|
|
1443
|
-
instanceId: string;
|
|
1444
|
-
name: string;
|
|
1445
|
-
required?: boolean | undefined;
|
|
1446
1446
|
})[];
|
|
1447
1447
|
export declare const idAttribute: "data-ws-id";
|
|
1448
1448
|
export declare const selectorIdAttribute: "data-ws-selector";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.276.0",
|
|
4
4
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
13
13
|
"strip-indent": "^4.0.0",
|
|
14
14
|
"type-fest": "^4.37.0",
|
|
15
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
15
16
|
"vitest": "^3.1.2",
|
|
16
17
|
"zod": "^4.4.3",
|
|
17
|
-
"@webstudio-is/template": "0.
|
|
18
|
+
"@webstudio-is/template": "0.276.0",
|
|
18
19
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
19
20
|
},
|
|
20
21
|
"peerDependencies": {
|
|
@@ -26,11 +27,11 @@
|
|
|
26
27
|
"change-case": "^5.4.4",
|
|
27
28
|
"html-tags": "^4.0.0",
|
|
28
29
|
"nanoid": "^5.1.5",
|
|
29
|
-
"@webstudio-is/
|
|
30
|
-
"@webstudio-is/
|
|
31
|
-
"@webstudio-is/
|
|
32
|
-
"@webstudio-is/
|
|
33
|
-
"@webstudio-is/
|
|
30
|
+
"@webstudio-is/fonts": "0.276.0",
|
|
31
|
+
"@webstudio-is/css-engine": "0.276.0",
|
|
32
|
+
"@webstudio-is/image": "0.276.0",
|
|
33
|
+
"@webstudio-is/sdk": "0.276.0",
|
|
34
|
+
"@webstudio-is/icons": "^0.276.0"
|
|
34
35
|
},
|
|
35
36
|
"exports": {
|
|
36
37
|
".": {
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"scripts": {
|
|
64
65
|
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
65
66
|
"dts": "tsc --project tsconfig.dts.json",
|
|
66
|
-
"typecheck": "
|
|
67
|
+
"typecheck": "tsc --noEmit",
|
|
67
68
|
"test": "vitest run"
|
|
68
69
|
}
|
|
69
70
|
}
|