@webstudio-is/sdk 0.204.0 → 0.206.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/__generated__/normalize.css.js +247 -151
- package/lib/core-templates.js +5 -5
- package/lib/index.js +741 -307
- package/lib/types/__generated__/normalize.css.d.ts +2 -2
- package/lib/types/core-metas.d.ts +35 -0
- package/lib/types/css.d.ts +31 -0
- package/lib/types/css.test.d.ts +1 -0
- package/lib/types/expression.d.ts +7 -5
- package/lib/types/index.d.ts +3 -0
- package/lib/types/instances-utils.d.ts +3 -0
- package/lib/types/schema/animation-schema.d.ts +22925 -0
- package/lib/types/schema/component-meta.d.ts +3978 -379
- package/lib/types/schema/data-sources.d.ts +18 -18
- package/lib/types/schema/deployment.d.ts +4 -4
- package/lib/types/schema/pages.d.ts +13 -13
- package/lib/types/schema/prop-meta.d.ts +21 -0
- package/lib/types/schema/props.d.ts +16186 -0
- package/lib/types/schema/webstudio.d.ts +9386 -15
- package/package.json +6 -5
|
@@ -48,7 +48,7 @@ export declare const DataSourceVariableValue: z.ZodUnion<[z.ZodObject<{
|
|
|
48
48
|
export declare const DataSource: z.ZodUnion<[z.ZodObject<{
|
|
49
49
|
type: z.ZodLiteral<"variable">;
|
|
50
50
|
id: z.ZodString;
|
|
51
|
-
scopeInstanceId: z.ZodString
|
|
51
|
+
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
52
52
|
name: z.ZodString;
|
|
53
53
|
value: z.ZodUnion<[z.ZodObject<{
|
|
54
54
|
type: z.ZodLiteral<"number">;
|
|
@@ -116,7 +116,7 @@ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
|
|
|
116
116
|
type: "variable";
|
|
117
117
|
name: string;
|
|
118
118
|
id: string;
|
|
119
|
-
scopeInstanceId
|
|
119
|
+
scopeInstanceId?: string | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
value: {
|
|
122
122
|
value: number;
|
|
@@ -137,46 +137,46 @@ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
|
|
|
137
137
|
type: "variable";
|
|
138
138
|
name: string;
|
|
139
139
|
id: string;
|
|
140
|
-
scopeInstanceId
|
|
140
|
+
scopeInstanceId?: string | undefined;
|
|
141
141
|
}>, z.ZodObject<{
|
|
142
142
|
type: z.ZodLiteral<"parameter">;
|
|
143
143
|
id: z.ZodString;
|
|
144
|
-
scopeInstanceId: z.ZodString
|
|
144
|
+
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
145
145
|
name: z.ZodString;
|
|
146
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
147
|
type: "parameter";
|
|
148
148
|
name: string;
|
|
149
149
|
id: string;
|
|
150
|
-
scopeInstanceId
|
|
150
|
+
scopeInstanceId?: string | undefined;
|
|
151
151
|
}, {
|
|
152
152
|
type: "parameter";
|
|
153
153
|
name: string;
|
|
154
154
|
id: string;
|
|
155
|
-
scopeInstanceId
|
|
155
|
+
scopeInstanceId?: string | undefined;
|
|
156
156
|
}>, z.ZodObject<{
|
|
157
157
|
type: z.ZodLiteral<"resource">;
|
|
158
158
|
id: z.ZodString;
|
|
159
|
-
scopeInstanceId: z.ZodString
|
|
159
|
+
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
160
160
|
name: z.ZodString;
|
|
161
161
|
resourceId: z.ZodString;
|
|
162
162
|
}, "strip", z.ZodTypeAny, {
|
|
163
163
|
type: "resource";
|
|
164
164
|
name: string;
|
|
165
165
|
id: string;
|
|
166
|
-
scopeInstanceId: string;
|
|
167
166
|
resourceId: string;
|
|
167
|
+
scopeInstanceId?: string | undefined;
|
|
168
168
|
}, {
|
|
169
169
|
type: "resource";
|
|
170
170
|
name: string;
|
|
171
171
|
id: string;
|
|
172
|
-
scopeInstanceId: string;
|
|
173
172
|
resourceId: string;
|
|
173
|
+
scopeInstanceId?: string | undefined;
|
|
174
174
|
}>]>;
|
|
175
175
|
export type DataSource = z.infer<typeof DataSource>;
|
|
176
176
|
export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
177
177
|
type: z.ZodLiteral<"variable">;
|
|
178
178
|
id: z.ZodString;
|
|
179
|
-
scopeInstanceId: z.ZodString
|
|
179
|
+
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
180
180
|
name: z.ZodString;
|
|
181
181
|
value: z.ZodUnion<[z.ZodObject<{
|
|
182
182
|
type: z.ZodLiteral<"number">;
|
|
@@ -244,7 +244,7 @@ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<
|
|
|
244
244
|
type: "variable";
|
|
245
245
|
name: string;
|
|
246
246
|
id: string;
|
|
247
|
-
scopeInstanceId
|
|
247
|
+
scopeInstanceId?: string | undefined;
|
|
248
248
|
}, {
|
|
249
249
|
value: {
|
|
250
250
|
value: number;
|
|
@@ -265,39 +265,39 @@ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<
|
|
|
265
265
|
type: "variable";
|
|
266
266
|
name: string;
|
|
267
267
|
id: string;
|
|
268
|
-
scopeInstanceId
|
|
268
|
+
scopeInstanceId?: string | undefined;
|
|
269
269
|
}>, z.ZodObject<{
|
|
270
270
|
type: z.ZodLiteral<"parameter">;
|
|
271
271
|
id: z.ZodString;
|
|
272
|
-
scopeInstanceId: z.ZodString
|
|
272
|
+
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
273
273
|
name: z.ZodString;
|
|
274
274
|
}, "strip", z.ZodTypeAny, {
|
|
275
275
|
type: "parameter";
|
|
276
276
|
name: string;
|
|
277
277
|
id: string;
|
|
278
|
-
scopeInstanceId
|
|
278
|
+
scopeInstanceId?: string | undefined;
|
|
279
279
|
}, {
|
|
280
280
|
type: "parameter";
|
|
281
281
|
name: string;
|
|
282
282
|
id: string;
|
|
283
|
-
scopeInstanceId
|
|
283
|
+
scopeInstanceId?: string | undefined;
|
|
284
284
|
}>, z.ZodObject<{
|
|
285
285
|
type: z.ZodLiteral<"resource">;
|
|
286
286
|
id: z.ZodString;
|
|
287
|
-
scopeInstanceId: z.ZodString
|
|
287
|
+
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
288
288
|
name: z.ZodString;
|
|
289
289
|
resourceId: z.ZodString;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
291
|
type: "resource";
|
|
292
292
|
name: string;
|
|
293
293
|
id: string;
|
|
294
|
-
scopeInstanceId: string;
|
|
295
294
|
resourceId: string;
|
|
295
|
+
scopeInstanceId?: string | undefined;
|
|
296
296
|
}, {
|
|
297
297
|
type: "resource";
|
|
298
298
|
name: string;
|
|
299
299
|
id: string;
|
|
300
|
-
scopeInstanceId: string;
|
|
301
300
|
resourceId: string;
|
|
301
|
+
scopeInstanceId?: string | undefined;
|
|
302
302
|
}>]>>;
|
|
303
303
|
export type DataSources = z.infer<typeof DataSources>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Templates: z.ZodEnum<["
|
|
2
|
+
export declare const Templates: z.ZodEnum<["docker", "vercel", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>;
|
|
3
3
|
export type Templates = z.infer<typeof Templates>;
|
|
4
4
|
export declare const Deployment: z.ZodUnion<[z.ZodObject<{
|
|
5
5
|
destination: z.ZodLiteral<"static">;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
assetsDomain: z.ZodString;
|
|
8
|
-
templates: z.ZodArray<z.ZodEnum<["
|
|
8
|
+
templates: z.ZodArray<z.ZodEnum<["docker", "vercel", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>, "many">;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name: string;
|
|
11
11
|
destination: "static";
|
|
12
12
|
assetsDomain: string;
|
|
13
|
-
templates: ("
|
|
13
|
+
templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
|
|
14
14
|
}, {
|
|
15
15
|
name: string;
|
|
16
16
|
destination: "static";
|
|
17
17
|
assetsDomain: string;
|
|
18
|
-
templates: ("
|
|
18
|
+
templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
|
|
19
19
|
}>, z.ZodObject<{
|
|
20
20
|
destination: z.ZodOptional<z.ZodLiteral<"saas">>;
|
|
21
21
|
domains: z.ZodArray<z.ZodString, "many">;
|
|
@@ -34,7 +34,7 @@ declare const Page: z.ZodObject<{
|
|
|
34
34
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
35
35
|
history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
36
|
rootInstanceId: z.ZodString;
|
|
37
|
-
systemDataSourceId: z.ZodString
|
|
37
|
+
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
38
38
|
meta: z.ZodObject<{
|
|
39
39
|
description: z.ZodOptional<z.ZodString>;
|
|
40
40
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -118,8 +118,8 @@ declare const Page: z.ZodObject<{
|
|
|
118
118
|
title: string;
|
|
119
119
|
id: string;
|
|
120
120
|
rootInstanceId: string;
|
|
121
|
-
systemDataSourceId: string;
|
|
122
121
|
history?: string[] | undefined;
|
|
122
|
+
systemDataSourceId?: string | undefined;
|
|
123
123
|
marketplace?: {
|
|
124
124
|
include?: boolean | undefined;
|
|
125
125
|
category?: string | undefined;
|
|
@@ -146,8 +146,8 @@ declare const Page: z.ZodObject<{
|
|
|
146
146
|
title: string;
|
|
147
147
|
id: string;
|
|
148
148
|
rootInstanceId: string;
|
|
149
|
-
systemDataSourceId: string;
|
|
150
149
|
history?: string[] | undefined;
|
|
150
|
+
systemDataSourceId?: string | undefined;
|
|
151
151
|
marketplace?: {
|
|
152
152
|
include?: boolean | undefined;
|
|
153
153
|
category?: string | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
239
239
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
240
240
|
history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
241
241
|
rootInstanceId: z.ZodString;
|
|
242
|
-
systemDataSourceId: z.ZodString
|
|
242
|
+
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
243
243
|
meta: z.ZodObject<{
|
|
244
244
|
description: z.ZodOptional<z.ZodString>;
|
|
245
245
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -323,8 +323,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
323
323
|
title: string;
|
|
324
324
|
id: string;
|
|
325
325
|
rootInstanceId: string;
|
|
326
|
-
systemDataSourceId: string;
|
|
327
326
|
history?: string[] | undefined;
|
|
327
|
+
systemDataSourceId?: string | undefined;
|
|
328
328
|
marketplace?: {
|
|
329
329
|
include?: boolean | undefined;
|
|
330
330
|
category?: string | undefined;
|
|
@@ -351,8 +351,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
351
351
|
title: string;
|
|
352
352
|
id: string;
|
|
353
353
|
rootInstanceId: string;
|
|
354
|
-
systemDataSourceId: string;
|
|
355
354
|
history?: string[] | undefined;
|
|
355
|
+
systemDataSourceId?: string | undefined;
|
|
356
356
|
marketplace?: {
|
|
357
357
|
include?: boolean | undefined;
|
|
358
358
|
category?: string | undefined;
|
|
@@ -366,7 +366,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
366
366
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
367
367
|
history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
368
368
|
rootInstanceId: z.ZodString;
|
|
369
|
-
systemDataSourceId: z.ZodString
|
|
369
|
+
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
370
370
|
meta: z.ZodObject<{
|
|
371
371
|
description: z.ZodOptional<z.ZodString>;
|
|
372
372
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -450,8 +450,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
450
450
|
title: string;
|
|
451
451
|
id: string;
|
|
452
452
|
rootInstanceId: string;
|
|
453
|
-
systemDataSourceId: string;
|
|
454
453
|
history?: string[] | undefined;
|
|
454
|
+
systemDataSourceId?: string | undefined;
|
|
455
455
|
marketplace?: {
|
|
456
456
|
include?: boolean | undefined;
|
|
457
457
|
category?: string | undefined;
|
|
@@ -478,8 +478,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
478
478
|
title: string;
|
|
479
479
|
id: string;
|
|
480
480
|
rootInstanceId: string;
|
|
481
|
-
systemDataSourceId: string;
|
|
482
481
|
history?: string[] | undefined;
|
|
482
|
+
systemDataSourceId?: string | undefined;
|
|
483
483
|
marketplace?: {
|
|
484
484
|
include?: boolean | undefined;
|
|
485
485
|
category?: string | undefined;
|
|
@@ -534,8 +534,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
534
534
|
title: string;
|
|
535
535
|
id: string;
|
|
536
536
|
rootInstanceId: string;
|
|
537
|
-
systemDataSourceId: string;
|
|
538
537
|
history?: string[] | undefined;
|
|
538
|
+
systemDataSourceId?: string | undefined;
|
|
539
539
|
marketplace?: {
|
|
540
540
|
include?: boolean | undefined;
|
|
541
541
|
category?: string | undefined;
|
|
@@ -563,8 +563,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
563
563
|
title: string;
|
|
564
564
|
id: string;
|
|
565
565
|
rootInstanceId: string;
|
|
566
|
-
systemDataSourceId: string;
|
|
567
566
|
history?: string[] | undefined;
|
|
567
|
+
systemDataSourceId?: string | undefined;
|
|
568
568
|
marketplace?: {
|
|
569
569
|
include?: boolean | undefined;
|
|
570
570
|
category?: string | undefined;
|
|
@@ -613,8 +613,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
613
613
|
title: string;
|
|
614
614
|
id: string;
|
|
615
615
|
rootInstanceId: string;
|
|
616
|
-
systemDataSourceId: string;
|
|
617
616
|
history?: string[] | undefined;
|
|
617
|
+
systemDataSourceId?: string | undefined;
|
|
618
618
|
marketplace?: {
|
|
619
619
|
include?: boolean | undefined;
|
|
620
620
|
category?: string | undefined;
|
|
@@ -642,8 +642,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
642
642
|
title: string;
|
|
643
643
|
id: string;
|
|
644
644
|
rootInstanceId: string;
|
|
645
|
-
systemDataSourceId: string;
|
|
646
645
|
history?: string[] | undefined;
|
|
646
|
+
systemDataSourceId?: string | undefined;
|
|
647
647
|
marketplace?: {
|
|
648
648
|
include?: boolean | undefined;
|
|
649
649
|
category?: string | undefined;
|
|
@@ -430,5 +430,26 @@ export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
|
|
|
430
430
|
defaultValue?: string | undefined;
|
|
431
431
|
label?: string | undefined;
|
|
432
432
|
description?: string | undefined;
|
|
433
|
+
}>, z.ZodObject<{
|
|
434
|
+
control: z.ZodLiteral<"animationAction">;
|
|
435
|
+
type: z.ZodLiteral<"animationAction">;
|
|
436
|
+
defaultValue: z.ZodOptional<z.ZodUndefined>;
|
|
437
|
+
label: z.ZodOptional<z.ZodString>;
|
|
438
|
+
description: z.ZodOptional<z.ZodString>;
|
|
439
|
+
required: z.ZodBoolean;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
type: "animationAction";
|
|
442
|
+
required: boolean;
|
|
443
|
+
control: "animationAction";
|
|
444
|
+
defaultValue?: undefined;
|
|
445
|
+
label?: string | undefined;
|
|
446
|
+
description?: string | undefined;
|
|
447
|
+
}, {
|
|
448
|
+
type: "animationAction";
|
|
449
|
+
required: boolean;
|
|
450
|
+
control: "animationAction";
|
|
451
|
+
defaultValue?: undefined;
|
|
452
|
+
label?: string | undefined;
|
|
453
|
+
description?: string | undefined;
|
|
433
454
|
}>]>;
|
|
434
455
|
export type PropMeta = z.infer<typeof PropMeta>;
|