@webstudio-is/sdk 0.197.0 → 0.199.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/core-templates.js +224 -0
- package/lib/index.js +156 -0
- package/lib/types/core-metas.d.ts +748 -0
- package/lib/types/core-templates.d.ts +6 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/schema/assets.d.ts +50 -50
- package/lib/types/schema/breakpoints.d.ts +8 -8
- package/lib/types/schema/component-meta.d.ts +46 -46
- package/lib/types/schema/data-sources.d.ts +12 -12
- package/lib/types/schema/embed-template.d.ts +56 -56
- package/lib/types/schema/instances.d.ts +4 -4
- package/lib/types/schema/pages.d.ts +48 -48
- package/lib/types/schema/prop-meta.d.ts +2 -2
- package/lib/types/schema/props.d.ts +44 -44
- package/lib/types/schema/resources.d.ts +12 -12
- package/lib/types/schema/style-sources.d.ts +6 -6
- package/lib/types/schema/styles.d.ts +74 -74
- package/lib/types/schema/webstudio.d.ts +336 -336
- package/package.json +13 -7
|
@@ -84,6 +84,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
85
|
type: "instance";
|
|
86
86
|
id: string;
|
|
87
|
+
component: string;
|
|
87
88
|
children: ({
|
|
88
89
|
value: string;
|
|
89
90
|
type: "text";
|
|
@@ -95,11 +96,11 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
95
96
|
value: string;
|
|
96
97
|
type: "expression";
|
|
97
98
|
})[];
|
|
98
|
-
component: string;
|
|
99
99
|
label?: string | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
type: "instance";
|
|
102
102
|
id: string;
|
|
103
|
+
component: string;
|
|
103
104
|
children: ({
|
|
104
105
|
value: string;
|
|
105
106
|
type: "text";
|
|
@@ -111,7 +112,6 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
111
112
|
value: string;
|
|
112
113
|
type: "expression";
|
|
113
114
|
})[];
|
|
114
|
-
component: string;
|
|
115
115
|
label?: string | undefined;
|
|
116
116
|
}>, "many">;
|
|
117
117
|
assets: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -172,9 +172,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
172
172
|
createdAt: z.ZodString;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
type: "font";
|
|
175
|
-
id: string;
|
|
176
175
|
name: string;
|
|
177
|
-
format: "ttf" | "woff" | "woff2";
|
|
178
176
|
meta: ({
|
|
179
177
|
family: string;
|
|
180
178
|
style: "normal" | "italic" | "oblique";
|
|
@@ -200,15 +198,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
200
198
|
max: number;
|
|
201
199
|
}>>;
|
|
202
200
|
} | undefined);
|
|
201
|
+
description: string | null;
|
|
202
|
+
id: string;
|
|
203
|
+
format: "ttf" | "woff" | "woff2";
|
|
203
204
|
projectId: string;
|
|
204
205
|
size: number;
|
|
205
|
-
description: string | null;
|
|
206
206
|
createdAt: string;
|
|
207
207
|
}, {
|
|
208
208
|
type: "font";
|
|
209
|
-
id: string;
|
|
210
209
|
name: string;
|
|
211
|
-
format: "ttf" | "woff" | "woff2";
|
|
212
210
|
meta: ({
|
|
213
211
|
family: string;
|
|
214
212
|
style: "normal" | "italic" | "oblique";
|
|
@@ -234,9 +232,11 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
234
232
|
max: number;
|
|
235
233
|
}>>;
|
|
236
234
|
} | undefined);
|
|
235
|
+
description: string | null;
|
|
236
|
+
id: string;
|
|
237
|
+
format: "ttf" | "woff" | "woff2";
|
|
237
238
|
projectId: string;
|
|
238
239
|
size: number;
|
|
239
|
-
description: string | null;
|
|
240
240
|
createdAt: string;
|
|
241
241
|
}>, z.ZodObject<{
|
|
242
242
|
format: z.ZodString;
|
|
@@ -244,11 +244,11 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
244
244
|
width: z.ZodNumber;
|
|
245
245
|
height: z.ZodNumber;
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
-
width: number;
|
|
248
247
|
height: number;
|
|
249
|
-
}, {
|
|
250
248
|
width: number;
|
|
249
|
+
}, {
|
|
251
250
|
height: number;
|
|
251
|
+
width: number;
|
|
252
252
|
}>;
|
|
253
253
|
type: z.ZodLiteral<"image">;
|
|
254
254
|
id: z.ZodString;
|
|
@@ -259,29 +259,29 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
259
259
|
createdAt: z.ZodString;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
261
|
type: "image";
|
|
262
|
-
id: string;
|
|
263
262
|
name: string;
|
|
264
|
-
format: string;
|
|
265
263
|
meta: {
|
|
266
|
-
width: number;
|
|
267
264
|
height: number;
|
|
265
|
+
width: number;
|
|
268
266
|
};
|
|
267
|
+
description: string | null;
|
|
268
|
+
id: string;
|
|
269
|
+
format: string;
|
|
269
270
|
projectId: string;
|
|
270
271
|
size: number;
|
|
271
|
-
description: string | null;
|
|
272
272
|
createdAt: string;
|
|
273
273
|
}, {
|
|
274
274
|
type: "image";
|
|
275
|
-
id: string;
|
|
276
275
|
name: string;
|
|
277
|
-
format: string;
|
|
278
276
|
meta: {
|
|
279
|
-
width: number;
|
|
280
277
|
height: number;
|
|
278
|
+
width: number;
|
|
281
279
|
};
|
|
280
|
+
description: string | null;
|
|
281
|
+
id: string;
|
|
282
|
+
format: string;
|
|
282
283
|
projectId: string;
|
|
283
284
|
size: number;
|
|
284
|
-
description: string | null;
|
|
285
285
|
createdAt: string;
|
|
286
286
|
}>]>, "many">;
|
|
287
287
|
dataSources: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -353,8 +353,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
353
353
|
value?: unknown;
|
|
354
354
|
};
|
|
355
355
|
type: "variable";
|
|
356
|
-
id: string;
|
|
357
356
|
name: string;
|
|
357
|
+
id: string;
|
|
358
358
|
scopeInstanceId?: string | undefined;
|
|
359
359
|
}, {
|
|
360
360
|
value: {
|
|
@@ -374,8 +374,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
374
374
|
value?: unknown;
|
|
375
375
|
};
|
|
376
376
|
type: "variable";
|
|
377
|
-
id: string;
|
|
378
377
|
name: string;
|
|
378
|
+
id: string;
|
|
379
379
|
scopeInstanceId?: string | undefined;
|
|
380
380
|
}>, z.ZodObject<{
|
|
381
381
|
type: z.ZodLiteral<"parameter">;
|
|
@@ -384,13 +384,13 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
384
384
|
name: z.ZodString;
|
|
385
385
|
}, "strip", z.ZodTypeAny, {
|
|
386
386
|
type: "parameter";
|
|
387
|
-
id: string;
|
|
388
387
|
name: string;
|
|
388
|
+
id: string;
|
|
389
389
|
scopeInstanceId?: string | undefined;
|
|
390
390
|
}, {
|
|
391
391
|
type: "parameter";
|
|
392
|
-
id: string;
|
|
393
392
|
name: string;
|
|
393
|
+
id: string;
|
|
394
394
|
scopeInstanceId?: string | undefined;
|
|
395
395
|
}>, z.ZodObject<{
|
|
396
396
|
type: z.ZodLiteral<"resource">;
|
|
@@ -400,14 +400,14 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
400
400
|
resourceId: z.ZodString;
|
|
401
401
|
}, "strip", z.ZodTypeAny, {
|
|
402
402
|
type: "resource";
|
|
403
|
-
id: string;
|
|
404
403
|
name: string;
|
|
404
|
+
id: string;
|
|
405
405
|
resourceId: string;
|
|
406
406
|
scopeInstanceId?: string | undefined;
|
|
407
407
|
}, {
|
|
408
408
|
type: "resource";
|
|
409
|
-
id: string;
|
|
410
409
|
name: string;
|
|
410
|
+
id: string;
|
|
411
411
|
resourceId: string;
|
|
412
412
|
scopeInstanceId?: string | undefined;
|
|
413
413
|
}>]>, "many">;
|
|
@@ -429,10 +429,10 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
429
429
|
}>, "many">;
|
|
430
430
|
body: z.ZodOptional<z.ZodString>;
|
|
431
431
|
}, "strip", z.ZodTypeAny, {
|
|
432
|
-
id: string;
|
|
433
432
|
name: string;
|
|
434
|
-
method: "get" | "post" | "put" | "delete";
|
|
435
433
|
url: string;
|
|
434
|
+
id: string;
|
|
435
|
+
method: "get" | "post" | "put" | "delete";
|
|
436
436
|
headers: {
|
|
437
437
|
value: string;
|
|
438
438
|
name: string;
|
|
@@ -440,10 +440,10 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
440
440
|
control?: "system" | "graphql" | undefined;
|
|
441
441
|
body?: string | undefined;
|
|
442
442
|
}, {
|
|
443
|
-
id: string;
|
|
444
443
|
name: string;
|
|
445
|
-
method: "get" | "post" | "put" | "delete";
|
|
446
444
|
url: string;
|
|
445
|
+
id: string;
|
|
446
|
+
method: "get" | "post" | "put" | "delete";
|
|
447
447
|
headers: {
|
|
448
448
|
value: string;
|
|
449
449
|
name: string;
|
|
@@ -461,15 +461,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
461
461
|
}, "strip", z.ZodTypeAny, {
|
|
462
462
|
value: number;
|
|
463
463
|
type: "number";
|
|
464
|
-
id: string;
|
|
465
464
|
name: string;
|
|
465
|
+
id: string;
|
|
466
466
|
instanceId: string;
|
|
467
467
|
required?: boolean | undefined;
|
|
468
468
|
}, {
|
|
469
469
|
value: number;
|
|
470
470
|
type: "number";
|
|
471
|
-
id: string;
|
|
472
471
|
name: string;
|
|
472
|
+
id: string;
|
|
473
473
|
instanceId: string;
|
|
474
474
|
required?: boolean | undefined;
|
|
475
475
|
}>, z.ZodObject<{
|
|
@@ -482,15 +482,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
483
|
value: string;
|
|
484
484
|
type: "string";
|
|
485
|
-
id: string;
|
|
486
485
|
name: string;
|
|
486
|
+
id: string;
|
|
487
487
|
instanceId: string;
|
|
488
488
|
required?: boolean | undefined;
|
|
489
489
|
}, {
|
|
490
490
|
value: string;
|
|
491
491
|
type: "string";
|
|
492
|
-
id: string;
|
|
493
492
|
name: string;
|
|
493
|
+
id: string;
|
|
494
494
|
instanceId: string;
|
|
495
495
|
required?: boolean | undefined;
|
|
496
496
|
}>, z.ZodObject<{
|
|
@@ -503,15 +503,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
504
|
value: boolean;
|
|
505
505
|
type: "boolean";
|
|
506
|
-
id: string;
|
|
507
506
|
name: string;
|
|
507
|
+
id: string;
|
|
508
508
|
instanceId: string;
|
|
509
509
|
required?: boolean | undefined;
|
|
510
510
|
}, {
|
|
511
511
|
value: boolean;
|
|
512
512
|
type: "boolean";
|
|
513
|
-
id: string;
|
|
514
513
|
name: string;
|
|
514
|
+
id: string;
|
|
515
515
|
instanceId: string;
|
|
516
516
|
required?: boolean | undefined;
|
|
517
517
|
}>, z.ZodObject<{
|
|
@@ -523,15 +523,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
523
523
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
524
524
|
}, "strip", z.ZodTypeAny, {
|
|
525
525
|
type: "json";
|
|
526
|
-
id: string;
|
|
527
526
|
name: string;
|
|
527
|
+
id: string;
|
|
528
528
|
instanceId: string;
|
|
529
529
|
value?: unknown;
|
|
530
530
|
required?: boolean | undefined;
|
|
531
531
|
}, {
|
|
532
532
|
type: "json";
|
|
533
|
-
id: string;
|
|
534
533
|
name: string;
|
|
534
|
+
id: string;
|
|
535
535
|
instanceId: string;
|
|
536
536
|
value?: unknown;
|
|
537
537
|
required?: boolean | undefined;
|
|
@@ -545,15 +545,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
545
545
|
}, "strip", z.ZodTypeAny, {
|
|
546
546
|
value: string;
|
|
547
547
|
type: "asset";
|
|
548
|
-
id: string;
|
|
549
548
|
name: string;
|
|
549
|
+
id: string;
|
|
550
550
|
instanceId: string;
|
|
551
551
|
required?: boolean | undefined;
|
|
552
552
|
}, {
|
|
553
553
|
value: string;
|
|
554
554
|
type: "asset";
|
|
555
|
-
id: string;
|
|
556
555
|
name: string;
|
|
556
|
+
id: string;
|
|
557
557
|
instanceId: string;
|
|
558
558
|
required?: boolean | undefined;
|
|
559
559
|
}>, z.ZodObject<{
|
|
@@ -581,8 +581,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
581
581
|
pageId: string;
|
|
582
582
|
} | undefined);
|
|
583
583
|
type: "page";
|
|
584
|
-
id: string;
|
|
585
584
|
name: string;
|
|
585
|
+
id: string;
|
|
586
586
|
instanceId: string;
|
|
587
587
|
required?: boolean | undefined;
|
|
588
588
|
}, {
|
|
@@ -594,8 +594,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
594
594
|
pageId: string;
|
|
595
595
|
} | undefined);
|
|
596
596
|
type: "page";
|
|
597
|
-
id: string;
|
|
598
597
|
name: string;
|
|
598
|
+
id: string;
|
|
599
599
|
instanceId: string;
|
|
600
600
|
required?: boolean | undefined;
|
|
601
601
|
}>, z.ZodObject<{
|
|
@@ -608,15 +608,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
value: string[];
|
|
610
610
|
type: "string[]";
|
|
611
|
-
id: string;
|
|
612
611
|
name: string;
|
|
612
|
+
id: string;
|
|
613
613
|
instanceId: string;
|
|
614
614
|
required?: boolean | undefined;
|
|
615
615
|
}, {
|
|
616
616
|
value: string[];
|
|
617
617
|
type: "string[]";
|
|
618
|
-
id: string;
|
|
619
618
|
name: string;
|
|
619
|
+
id: string;
|
|
620
620
|
instanceId: string;
|
|
621
621
|
required?: boolean | undefined;
|
|
622
622
|
}>, z.ZodObject<{
|
|
@@ -629,15 +629,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
629
629
|
}, "strip", z.ZodTypeAny, {
|
|
630
630
|
value: string;
|
|
631
631
|
type: "parameter";
|
|
632
|
-
id: string;
|
|
633
632
|
name: string;
|
|
633
|
+
id: string;
|
|
634
634
|
instanceId: string;
|
|
635
635
|
required?: boolean | undefined;
|
|
636
636
|
}, {
|
|
637
637
|
value: string;
|
|
638
638
|
type: "parameter";
|
|
639
|
-
id: string;
|
|
640
639
|
name: string;
|
|
640
|
+
id: string;
|
|
641
641
|
instanceId: string;
|
|
642
642
|
required?: boolean | undefined;
|
|
643
643
|
}>, z.ZodObject<{
|
|
@@ -650,15 +650,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
650
650
|
}, "strip", z.ZodTypeAny, {
|
|
651
651
|
value: string;
|
|
652
652
|
type: "resource";
|
|
653
|
-
id: string;
|
|
654
653
|
name: string;
|
|
654
|
+
id: string;
|
|
655
655
|
instanceId: string;
|
|
656
656
|
required?: boolean | undefined;
|
|
657
657
|
}, {
|
|
658
658
|
value: string;
|
|
659
659
|
type: "resource";
|
|
660
|
-
id: string;
|
|
661
660
|
name: string;
|
|
661
|
+
id: string;
|
|
662
662
|
instanceId: string;
|
|
663
663
|
required?: boolean | undefined;
|
|
664
664
|
}>, z.ZodObject<{
|
|
@@ -671,15 +671,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
671
671
|
}, "strip", z.ZodTypeAny, {
|
|
672
672
|
value: string;
|
|
673
673
|
type: "expression";
|
|
674
|
-
id: string;
|
|
675
674
|
name: string;
|
|
675
|
+
id: string;
|
|
676
676
|
instanceId: string;
|
|
677
677
|
required?: boolean | undefined;
|
|
678
678
|
}, {
|
|
679
679
|
value: string;
|
|
680
680
|
type: "expression";
|
|
681
|
-
id: string;
|
|
682
681
|
name: string;
|
|
682
|
+
id: string;
|
|
683
683
|
instanceId: string;
|
|
684
684
|
required?: boolean | undefined;
|
|
685
685
|
}>, z.ZodObject<{
|
|
@@ -708,8 +708,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
708
708
|
args: string[];
|
|
709
709
|
}[];
|
|
710
710
|
type: "action";
|
|
711
|
-
id: string;
|
|
712
711
|
name: string;
|
|
712
|
+
id: string;
|
|
713
713
|
instanceId: string;
|
|
714
714
|
required?: boolean | undefined;
|
|
715
715
|
}, {
|
|
@@ -719,8 +719,8 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
719
719
|
args: string[];
|
|
720
720
|
}[];
|
|
721
721
|
type: "action";
|
|
722
|
-
id: string;
|
|
723
722
|
name: string;
|
|
723
|
+
id: string;
|
|
724
724
|
instanceId: string;
|
|
725
725
|
required?: boolean | undefined;
|
|
726
726
|
}>]>, "many">;
|
|
@@ -730,23 +730,23 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
730
730
|
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
731
731
|
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
732
732
|
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
id: string;
|
|
734
733
|
label: string;
|
|
734
|
+
id: string;
|
|
735
735
|
minWidth?: number | undefined;
|
|
736
736
|
maxWidth?: number | undefined;
|
|
737
737
|
}, {
|
|
738
|
-
id: string;
|
|
739
738
|
label: string;
|
|
739
|
+
id: string;
|
|
740
740
|
minWidth?: number | undefined;
|
|
741
741
|
maxWidth?: number | undefined;
|
|
742
742
|
}>, {
|
|
743
|
-
id: string;
|
|
744
743
|
label: string;
|
|
744
|
+
id: string;
|
|
745
745
|
minWidth?: number | undefined;
|
|
746
746
|
maxWidth?: number | undefined;
|
|
747
747
|
}, {
|
|
748
|
-
id: string;
|
|
749
748
|
label: string;
|
|
749
|
+
id: string;
|
|
750
750
|
minWidth?: number | undefined;
|
|
751
751
|
maxWidth?: number | undefined;
|
|
752
752
|
}>, "many">;
|
|
@@ -766,12 +766,12 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
766
766
|
name: z.ZodString;
|
|
767
767
|
}, "strip", z.ZodTypeAny, {
|
|
768
768
|
type: "token";
|
|
769
|
-
id: string;
|
|
770
769
|
name: string;
|
|
770
|
+
id: string;
|
|
771
771
|
}, {
|
|
772
772
|
type: "token";
|
|
773
|
-
id: string;
|
|
774
773
|
name: string;
|
|
774
|
+
id: string;
|
|
775
775
|
}>, z.ZodObject<{
|
|
776
776
|
type: z.ZodLiteral<"local">;
|
|
777
777
|
id: z.ZodString;
|
|
@@ -808,9 +808,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
808
808
|
hidden?: boolean | undefined;
|
|
809
809
|
} | {
|
|
810
810
|
type: "rgb";
|
|
811
|
-
b: number;
|
|
812
811
|
r: number;
|
|
813
812
|
g: number;
|
|
813
|
+
b: number;
|
|
814
814
|
alpha: number;
|
|
815
815
|
hidden?: boolean | undefined;
|
|
816
816
|
} | {
|
|
@@ -836,9 +836,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
836
836
|
hidden?: boolean | undefined;
|
|
837
837
|
} | {
|
|
838
838
|
type: "rgb";
|
|
839
|
-
b: number;
|
|
840
839
|
r: number;
|
|
841
840
|
g: number;
|
|
841
|
+
b: number;
|
|
842
842
|
alpha: number;
|
|
843
843
|
hidden?: boolean | undefined;
|
|
844
844
|
} | undefined;
|
|
@@ -869,9 +869,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
869
869
|
hidden?: boolean | undefined;
|
|
870
870
|
} | {
|
|
871
871
|
type: "rgb";
|
|
872
|
-
b: number;
|
|
873
872
|
r: number;
|
|
874
873
|
g: number;
|
|
874
|
+
b: number;
|
|
875
875
|
alpha: number;
|
|
876
876
|
hidden?: boolean | undefined;
|
|
877
877
|
} | {
|
|
@@ -897,9 +897,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
897
897
|
hidden?: boolean | undefined;
|
|
898
898
|
} | {
|
|
899
899
|
type: "rgb";
|
|
900
|
-
b: number;
|
|
901
900
|
r: number;
|
|
902
901
|
g: number;
|
|
902
|
+
b: number;
|
|
903
903
|
alpha: number;
|
|
904
904
|
hidden?: boolean | undefined;
|
|
905
905
|
} | undefined;
|
|
@@ -937,9 +937,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
937
937
|
hidden?: boolean | undefined;
|
|
938
938
|
} | {
|
|
939
939
|
type: "rgb";
|
|
940
|
-
b: number;
|
|
941
940
|
r: number;
|
|
942
941
|
g: number;
|
|
942
|
+
b: number;
|
|
943
943
|
alpha: number;
|
|
944
944
|
hidden?: boolean | undefined;
|
|
945
945
|
} | {
|
|
@@ -965,9 +965,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
965
965
|
hidden?: boolean | undefined;
|
|
966
966
|
} | {
|
|
967
967
|
type: "rgb";
|
|
968
|
-
b: number;
|
|
969
968
|
r: number;
|
|
970
969
|
g: number;
|
|
970
|
+
b: number;
|
|
971
971
|
alpha: number;
|
|
972
972
|
hidden?: boolean | undefined;
|
|
973
973
|
} | undefined;
|
|
@@ -998,9 +998,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
998
998
|
hidden?: boolean | undefined;
|
|
999
999
|
} | {
|
|
1000
1000
|
type: "rgb";
|
|
1001
|
-
b: number;
|
|
1002
1001
|
r: number;
|
|
1003
1002
|
g: number;
|
|
1003
|
+
b: number;
|
|
1004
1004
|
alpha: number;
|
|
1005
1005
|
hidden?: boolean | undefined;
|
|
1006
1006
|
} | {
|
|
@@ -1026,9 +1026,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1026
1026
|
hidden?: boolean | undefined;
|
|
1027
1027
|
} | {
|
|
1028
1028
|
type: "rgb";
|
|
1029
|
-
b: number;
|
|
1030
1029
|
r: number;
|
|
1031
1030
|
g: number;
|
|
1031
|
+
b: number;
|
|
1032
1032
|
alpha: number;
|
|
1033
1033
|
hidden?: boolean | undefined;
|
|
1034
1034
|
} | undefined;
|
|
@@ -1055,9 +1055,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1055
1055
|
type: "unset";
|
|
1056
1056
|
hidden?: boolean | undefined;
|
|
1057
1057
|
};
|
|
1058
|
+
state?: string | undefined;
|
|
1058
1059
|
styleSourceId: string;
|
|
1059
1060
|
breakpointId: string;
|
|
1060
|
-
state?: string | undefined;
|
|
1061
1061
|
listed?: boolean | undefined;
|
|
1062
1062
|
property: import("@webstudio-is/css-engine").StyleProperty;
|
|
1063
1063
|
}, z.ZodTypeDef, {
|
|
@@ -1086,9 +1086,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1086
1086
|
hidden?: boolean | undefined;
|
|
1087
1087
|
} | {
|
|
1088
1088
|
type: "rgb";
|
|
1089
|
-
b: number;
|
|
1090
1089
|
r: number;
|
|
1091
1090
|
g: number;
|
|
1091
|
+
b: number;
|
|
1092
1092
|
alpha: number;
|
|
1093
1093
|
hidden?: boolean | undefined;
|
|
1094
1094
|
} | {
|
|
@@ -1114,9 +1114,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1114
1114
|
hidden?: boolean | undefined;
|
|
1115
1115
|
} | {
|
|
1116
1116
|
type: "rgb";
|
|
1117
|
-
b: number;
|
|
1118
1117
|
r: number;
|
|
1119
1118
|
g: number;
|
|
1119
|
+
b: number;
|
|
1120
1120
|
alpha: number;
|
|
1121
1121
|
hidden?: boolean | undefined;
|
|
1122
1122
|
} | undefined;
|
|
@@ -1147,9 +1147,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1147
1147
|
hidden?: boolean | undefined;
|
|
1148
1148
|
} | {
|
|
1149
1149
|
type: "rgb";
|
|
1150
|
-
b: number;
|
|
1151
1150
|
r: number;
|
|
1152
1151
|
g: number;
|
|
1152
|
+
b: number;
|
|
1153
1153
|
alpha: number;
|
|
1154
1154
|
hidden?: boolean | undefined;
|
|
1155
1155
|
} | {
|
|
@@ -1175,9 +1175,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1175
1175
|
hidden?: boolean | undefined;
|
|
1176
1176
|
} | {
|
|
1177
1177
|
type: "rgb";
|
|
1178
|
-
b: number;
|
|
1179
1178
|
r: number;
|
|
1180
1179
|
g: number;
|
|
1180
|
+
b: number;
|
|
1181
1181
|
alpha: number;
|
|
1182
1182
|
hidden?: boolean | undefined;
|
|
1183
1183
|
} | undefined;
|
|
@@ -1215,9 +1215,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1215
1215
|
hidden?: boolean | undefined;
|
|
1216
1216
|
} | {
|
|
1217
1217
|
type: "rgb";
|
|
1218
|
-
b: number;
|
|
1219
1218
|
r: number;
|
|
1220
1219
|
g: number;
|
|
1220
|
+
b: number;
|
|
1221
1221
|
alpha: number;
|
|
1222
1222
|
hidden?: boolean | undefined;
|
|
1223
1223
|
} | {
|
|
@@ -1243,9 +1243,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1243
1243
|
hidden?: boolean | undefined;
|
|
1244
1244
|
} | {
|
|
1245
1245
|
type: "rgb";
|
|
1246
|
-
b: number;
|
|
1247
1246
|
r: number;
|
|
1248
1247
|
g: number;
|
|
1248
|
+
b: number;
|
|
1249
1249
|
alpha: number;
|
|
1250
1250
|
hidden?: boolean | undefined;
|
|
1251
1251
|
} | undefined;
|
|
@@ -1276,9 +1276,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1276
1276
|
hidden?: boolean | undefined;
|
|
1277
1277
|
} | {
|
|
1278
1278
|
type: "rgb";
|
|
1279
|
-
b: number;
|
|
1280
1279
|
r: number;
|
|
1281
1280
|
g: number;
|
|
1281
|
+
b: number;
|
|
1282
1282
|
alpha: number;
|
|
1283
1283
|
hidden?: boolean | undefined;
|
|
1284
1284
|
} | {
|
|
@@ -1304,9 +1304,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1304
1304
|
hidden?: boolean | undefined;
|
|
1305
1305
|
} | {
|
|
1306
1306
|
type: "rgb";
|
|
1307
|
-
b: number;
|
|
1308
1307
|
r: number;
|
|
1309
1308
|
g: number;
|
|
1309
|
+
b: number;
|
|
1310
1310
|
alpha: number;
|
|
1311
1311
|
hidden?: boolean | undefined;
|
|
1312
1312
|
} | undefined;
|
|
@@ -1333,46 +1333,13 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1333
1333
|
type: "unset";
|
|
1334
1334
|
hidden?: boolean | undefined;
|
|
1335
1335
|
};
|
|
1336
|
+
state?: string | undefined;
|
|
1336
1337
|
styleSourceId: string;
|
|
1337
1338
|
breakpointId: string;
|
|
1338
|
-
state?: string | undefined;
|
|
1339
1339
|
listed?: boolean | undefined;
|
|
1340
1340
|
property: import("@webstudio-is/css-engine").StyleProperty;
|
|
1341
1341
|
}>, "many">;
|
|
1342
1342
|
}, "strip", z.ZodTypeAny, {
|
|
1343
|
-
dataSources: ({
|
|
1344
|
-
value: {
|
|
1345
|
-
value: number;
|
|
1346
|
-
type: "number";
|
|
1347
|
-
} | {
|
|
1348
|
-
value: string;
|
|
1349
|
-
type: "string";
|
|
1350
|
-
} | {
|
|
1351
|
-
value: boolean;
|
|
1352
|
-
type: "boolean";
|
|
1353
|
-
} | {
|
|
1354
|
-
value: string[];
|
|
1355
|
-
type: "string[]";
|
|
1356
|
-
} | {
|
|
1357
|
-
type: "json";
|
|
1358
|
-
value?: unknown;
|
|
1359
|
-
};
|
|
1360
|
-
type: "variable";
|
|
1361
|
-
id: string;
|
|
1362
|
-
name: string;
|
|
1363
|
-
scopeInstanceId?: string | undefined;
|
|
1364
|
-
} | {
|
|
1365
|
-
type: "parameter";
|
|
1366
|
-
id: string;
|
|
1367
|
-
name: string;
|
|
1368
|
-
scopeInstanceId?: string | undefined;
|
|
1369
|
-
} | {
|
|
1370
|
-
type: "resource";
|
|
1371
|
-
id: string;
|
|
1372
|
-
name: string;
|
|
1373
|
-
resourceId: string;
|
|
1374
|
-
scopeInstanceId?: string | undefined;
|
|
1375
|
-
})[];
|
|
1376
1343
|
children: ({
|
|
1377
1344
|
value: string;
|
|
1378
1345
|
type: "text";
|
|
@@ -1384,116 +1351,39 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1384
1351
|
value: string;
|
|
1385
1352
|
type: "expression";
|
|
1386
1353
|
})[];
|
|
1387
|
-
|
|
1388
|
-
|
|
1354
|
+
props: ({
|
|
1355
|
+
value: number;
|
|
1356
|
+
type: "number";
|
|
1357
|
+
name: string;
|
|
1389
1358
|
id: string;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
type: "id";
|
|
1397
|
-
} | {
|
|
1398
|
-
value: string;
|
|
1399
|
-
type: "expression";
|
|
1400
|
-
})[];
|
|
1401
|
-
component: string;
|
|
1402
|
-
label?: string | undefined;
|
|
1403
|
-
}[];
|
|
1404
|
-
assets: ({
|
|
1405
|
-
type: "font";
|
|
1359
|
+
instanceId: string;
|
|
1360
|
+
required?: boolean | undefined;
|
|
1361
|
+
} | {
|
|
1362
|
+
value: string;
|
|
1363
|
+
type: "string";
|
|
1364
|
+
name: string;
|
|
1406
1365
|
id: string;
|
|
1366
|
+
instanceId: string;
|
|
1367
|
+
required?: boolean | undefined;
|
|
1368
|
+
} | {
|
|
1369
|
+
value: boolean;
|
|
1370
|
+
type: "boolean";
|
|
1407
1371
|
name: string;
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
style: "normal" | "italic" | "oblique";
|
|
1412
|
-
weight: number;
|
|
1413
|
-
} | {
|
|
1414
|
-
family: string;
|
|
1415
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
1416
|
-
name: string;
|
|
1417
|
-
min: number;
|
|
1418
|
-
default: number;
|
|
1419
|
-
max: number;
|
|
1420
|
-
}>>;
|
|
1421
|
-
}) & ({
|
|
1422
|
-
family: string;
|
|
1423
|
-
style: "normal" | "italic" | "oblique";
|
|
1424
|
-
weight: number;
|
|
1425
|
-
} | {
|
|
1426
|
-
family: string;
|
|
1427
|
-
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
1428
|
-
name: string;
|
|
1429
|
-
min: number;
|
|
1430
|
-
default: number;
|
|
1431
|
-
max: number;
|
|
1432
|
-
}>>;
|
|
1433
|
-
} | undefined);
|
|
1434
|
-
projectId: string;
|
|
1435
|
-
size: number;
|
|
1436
|
-
description: string | null;
|
|
1437
|
-
createdAt: string;
|
|
1372
|
+
id: string;
|
|
1373
|
+
instanceId: string;
|
|
1374
|
+
required?: boolean | undefined;
|
|
1438
1375
|
} | {
|
|
1439
|
-
type: "
|
|
1376
|
+
type: "json";
|
|
1377
|
+
name: string;
|
|
1440
1378
|
id: string;
|
|
1379
|
+
instanceId: string;
|
|
1380
|
+
value?: unknown;
|
|
1381
|
+
required?: boolean | undefined;
|
|
1382
|
+
} | {
|
|
1383
|
+
value: string;
|
|
1384
|
+
type: "asset";
|
|
1441
1385
|
name: string;
|
|
1442
|
-
format: string;
|
|
1443
|
-
meta: {
|
|
1444
|
-
width: number;
|
|
1445
|
-
height: number;
|
|
1446
|
-
};
|
|
1447
|
-
projectId: string;
|
|
1448
|
-
size: number;
|
|
1449
|
-
description: string | null;
|
|
1450
|
-
createdAt: string;
|
|
1451
|
-
})[];
|
|
1452
|
-
resources: {
|
|
1453
|
-
id: string;
|
|
1454
|
-
name: string;
|
|
1455
|
-
method: "get" | "post" | "put" | "delete";
|
|
1456
|
-
url: string;
|
|
1457
|
-
headers: {
|
|
1458
|
-
value: string;
|
|
1459
|
-
name: string;
|
|
1460
|
-
}[];
|
|
1461
|
-
control?: "system" | "graphql" | undefined;
|
|
1462
|
-
body?: string | undefined;
|
|
1463
|
-
}[];
|
|
1464
|
-
props: ({
|
|
1465
|
-
value: number;
|
|
1466
|
-
type: "number";
|
|
1467
|
-
id: string;
|
|
1468
|
-
name: string;
|
|
1469
|
-
instanceId: string;
|
|
1470
|
-
required?: boolean | undefined;
|
|
1471
|
-
} | {
|
|
1472
|
-
value: string;
|
|
1473
|
-
type: "string";
|
|
1474
|
-
id: string;
|
|
1475
|
-
name: string;
|
|
1476
|
-
instanceId: string;
|
|
1477
|
-
required?: boolean | undefined;
|
|
1478
|
-
} | {
|
|
1479
|
-
value: boolean;
|
|
1480
|
-
type: "boolean";
|
|
1481
|
-
id: string;
|
|
1482
|
-
name: string;
|
|
1483
|
-
instanceId: string;
|
|
1484
|
-
required?: boolean | undefined;
|
|
1485
|
-
} | {
|
|
1486
|
-
type: "json";
|
|
1487
|
-
id: string;
|
|
1488
|
-
name: string;
|
|
1489
|
-
instanceId: string;
|
|
1490
|
-
value?: unknown;
|
|
1491
|
-
required?: boolean | undefined;
|
|
1492
|
-
} | {
|
|
1493
|
-
value: string;
|
|
1494
|
-
type: "asset";
|
|
1495
1386
|
id: string;
|
|
1496
|
-
name: string;
|
|
1497
1387
|
instanceId: string;
|
|
1498
1388
|
required?: boolean | undefined;
|
|
1499
1389
|
} | {
|
|
@@ -1505,36 +1395,36 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1505
1395
|
pageId: string;
|
|
1506
1396
|
} | undefined);
|
|
1507
1397
|
type: "page";
|
|
1508
|
-
id: string;
|
|
1509
1398
|
name: string;
|
|
1399
|
+
id: string;
|
|
1510
1400
|
instanceId: string;
|
|
1511
1401
|
required?: boolean | undefined;
|
|
1512
1402
|
} | {
|
|
1513
1403
|
value: string[];
|
|
1514
1404
|
type: "string[]";
|
|
1515
|
-
id: string;
|
|
1516
1405
|
name: string;
|
|
1406
|
+
id: string;
|
|
1517
1407
|
instanceId: string;
|
|
1518
1408
|
required?: boolean | undefined;
|
|
1519
1409
|
} | {
|
|
1520
1410
|
value: string;
|
|
1521
1411
|
type: "parameter";
|
|
1522
|
-
id: string;
|
|
1523
1412
|
name: string;
|
|
1413
|
+
id: string;
|
|
1524
1414
|
instanceId: string;
|
|
1525
1415
|
required?: boolean | undefined;
|
|
1526
1416
|
} | {
|
|
1527
1417
|
value: string;
|
|
1528
1418
|
type: "resource";
|
|
1529
|
-
id: string;
|
|
1530
1419
|
name: string;
|
|
1420
|
+
id: string;
|
|
1531
1421
|
instanceId: string;
|
|
1532
1422
|
required?: boolean | undefined;
|
|
1533
1423
|
} | {
|
|
1534
1424
|
value: string;
|
|
1535
1425
|
type: "expression";
|
|
1536
|
-
id: string;
|
|
1537
1426
|
name: string;
|
|
1427
|
+
id: string;
|
|
1538
1428
|
instanceId: string;
|
|
1539
1429
|
required?: boolean | undefined;
|
|
1540
1430
|
} | {
|
|
@@ -1544,28 +1434,10 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1544
1434
|
args: string[];
|
|
1545
1435
|
}[];
|
|
1546
1436
|
type: "action";
|
|
1547
|
-
id: string;
|
|
1548
1437
|
name: string;
|
|
1549
|
-
instanceId: string;
|
|
1550
|
-
required?: boolean | undefined;
|
|
1551
|
-
})[];
|
|
1552
|
-
breakpoints: {
|
|
1553
1438
|
id: string;
|
|
1554
|
-
label: string;
|
|
1555
|
-
minWidth?: number | undefined;
|
|
1556
|
-
maxWidth?: number | undefined;
|
|
1557
|
-
}[];
|
|
1558
|
-
styleSourceSelections: {
|
|
1559
|
-
values: string[];
|
|
1560
1439
|
instanceId: string;
|
|
1561
|
-
|
|
1562
|
-
styleSources: ({
|
|
1563
|
-
type: "token";
|
|
1564
|
-
id: string;
|
|
1565
|
-
name: string;
|
|
1566
|
-
} | {
|
|
1567
|
-
type: "local";
|
|
1568
|
-
id: string;
|
|
1440
|
+
required?: boolean | undefined;
|
|
1569
1441
|
})[];
|
|
1570
1442
|
styles: {
|
|
1571
1443
|
value: {
|
|
@@ -1593,9 +1465,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1593
1465
|
hidden?: boolean | undefined;
|
|
1594
1466
|
} | {
|
|
1595
1467
|
type: "rgb";
|
|
1596
|
-
b: number;
|
|
1597
1468
|
r: number;
|
|
1598
1469
|
g: number;
|
|
1470
|
+
b: number;
|
|
1599
1471
|
alpha: number;
|
|
1600
1472
|
hidden?: boolean | undefined;
|
|
1601
1473
|
} | {
|
|
@@ -1621,9 +1493,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1621
1493
|
hidden?: boolean | undefined;
|
|
1622
1494
|
} | {
|
|
1623
1495
|
type: "rgb";
|
|
1624
|
-
b: number;
|
|
1625
1496
|
r: number;
|
|
1626
1497
|
g: number;
|
|
1498
|
+
b: number;
|
|
1627
1499
|
alpha: number;
|
|
1628
1500
|
hidden?: boolean | undefined;
|
|
1629
1501
|
} | undefined;
|
|
@@ -1654,9 +1526,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1654
1526
|
hidden?: boolean | undefined;
|
|
1655
1527
|
} | {
|
|
1656
1528
|
type: "rgb";
|
|
1657
|
-
b: number;
|
|
1658
1529
|
r: number;
|
|
1659
1530
|
g: number;
|
|
1531
|
+
b: number;
|
|
1660
1532
|
alpha: number;
|
|
1661
1533
|
hidden?: boolean | undefined;
|
|
1662
1534
|
} | {
|
|
@@ -1682,9 +1554,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1682
1554
|
hidden?: boolean | undefined;
|
|
1683
1555
|
} | {
|
|
1684
1556
|
type: "rgb";
|
|
1685
|
-
b: number;
|
|
1686
1557
|
r: number;
|
|
1687
1558
|
g: number;
|
|
1559
|
+
b: number;
|
|
1688
1560
|
alpha: number;
|
|
1689
1561
|
hidden?: boolean | undefined;
|
|
1690
1562
|
} | undefined;
|
|
@@ -1722,9 +1594,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1722
1594
|
hidden?: boolean | undefined;
|
|
1723
1595
|
} | {
|
|
1724
1596
|
type: "rgb";
|
|
1725
|
-
b: number;
|
|
1726
1597
|
r: number;
|
|
1727
1598
|
g: number;
|
|
1599
|
+
b: number;
|
|
1728
1600
|
alpha: number;
|
|
1729
1601
|
hidden?: boolean | undefined;
|
|
1730
1602
|
} | {
|
|
@@ -1750,9 +1622,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1750
1622
|
hidden?: boolean | undefined;
|
|
1751
1623
|
} | {
|
|
1752
1624
|
type: "rgb";
|
|
1753
|
-
b: number;
|
|
1754
1625
|
r: number;
|
|
1755
1626
|
g: number;
|
|
1627
|
+
b: number;
|
|
1756
1628
|
alpha: number;
|
|
1757
1629
|
hidden?: boolean | undefined;
|
|
1758
1630
|
} | undefined;
|
|
@@ -1783,9 +1655,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1783
1655
|
hidden?: boolean | undefined;
|
|
1784
1656
|
} | {
|
|
1785
1657
|
type: "rgb";
|
|
1786
|
-
b: number;
|
|
1787
1658
|
r: number;
|
|
1788
1659
|
g: number;
|
|
1660
|
+
b: number;
|
|
1789
1661
|
alpha: number;
|
|
1790
1662
|
hidden?: boolean | undefined;
|
|
1791
1663
|
} | {
|
|
@@ -1811,9 +1683,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1811
1683
|
hidden?: boolean | undefined;
|
|
1812
1684
|
} | {
|
|
1813
1685
|
type: "rgb";
|
|
1814
|
-
b: number;
|
|
1815
1686
|
r: number;
|
|
1816
1687
|
g: number;
|
|
1688
|
+
b: number;
|
|
1817
1689
|
alpha: number;
|
|
1818
1690
|
hidden?: boolean | undefined;
|
|
1819
1691
|
} | undefined;
|
|
@@ -1840,60 +1712,16 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1840
1712
|
type: "unset";
|
|
1841
1713
|
hidden?: boolean | undefined;
|
|
1842
1714
|
};
|
|
1715
|
+
state?: string | undefined;
|
|
1843
1716
|
styleSourceId: string;
|
|
1844
1717
|
breakpointId: string;
|
|
1845
|
-
state?: string | undefined;
|
|
1846
1718
|
listed?: boolean | undefined;
|
|
1847
1719
|
property: import("@webstudio-is/css-engine").StyleProperty;
|
|
1848
1720
|
}[];
|
|
1849
|
-
}, {
|
|
1850
|
-
dataSources: ({
|
|
1851
|
-
value: {
|
|
1852
|
-
value: number;
|
|
1853
|
-
type: "number";
|
|
1854
|
-
} | {
|
|
1855
|
-
value: string;
|
|
1856
|
-
type: "string";
|
|
1857
|
-
} | {
|
|
1858
|
-
value: boolean;
|
|
1859
|
-
type: "boolean";
|
|
1860
|
-
} | {
|
|
1861
|
-
value: string[];
|
|
1862
|
-
type: "string[]";
|
|
1863
|
-
} | {
|
|
1864
|
-
type: "json";
|
|
1865
|
-
value?: unknown;
|
|
1866
|
-
};
|
|
1867
|
-
type: "variable";
|
|
1868
|
-
id: string;
|
|
1869
|
-
name: string;
|
|
1870
|
-
scopeInstanceId?: string | undefined;
|
|
1871
|
-
} | {
|
|
1872
|
-
type: "parameter";
|
|
1873
|
-
id: string;
|
|
1874
|
-
name: string;
|
|
1875
|
-
scopeInstanceId?: string | undefined;
|
|
1876
|
-
} | {
|
|
1877
|
-
type: "resource";
|
|
1878
|
-
id: string;
|
|
1879
|
-
name: string;
|
|
1880
|
-
resourceId: string;
|
|
1881
|
-
scopeInstanceId?: string | undefined;
|
|
1882
|
-
})[];
|
|
1883
|
-
children: ({
|
|
1884
|
-
value: string;
|
|
1885
|
-
type: "text";
|
|
1886
|
-
placeholder?: boolean | undefined;
|
|
1887
|
-
} | {
|
|
1888
|
-
value: string;
|
|
1889
|
-
type: "id";
|
|
1890
|
-
} | {
|
|
1891
|
-
value: string;
|
|
1892
|
-
type: "expression";
|
|
1893
|
-
})[];
|
|
1894
1721
|
instances: {
|
|
1895
1722
|
type: "instance";
|
|
1896
1723
|
id: string;
|
|
1724
|
+
component: string;
|
|
1897
1725
|
children: ({
|
|
1898
1726
|
value: string;
|
|
1899
1727
|
type: "text";
|
|
@@ -1905,14 +1733,11 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1905
1733
|
value: string;
|
|
1906
1734
|
type: "expression";
|
|
1907
1735
|
})[];
|
|
1908
|
-
component: string;
|
|
1909
1736
|
label?: string | undefined;
|
|
1910
1737
|
}[];
|
|
1911
1738
|
assets: ({
|
|
1912
1739
|
type: "font";
|
|
1913
|
-
id: string;
|
|
1914
1740
|
name: string;
|
|
1915
|
-
format: "ttf" | "woff" | "woff2";
|
|
1916
1741
|
meta: ({
|
|
1917
1742
|
family: string;
|
|
1918
1743
|
style: "normal" | "italic" | "oblique";
|
|
@@ -1938,29 +1763,64 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1938
1763
|
max: number;
|
|
1939
1764
|
}>>;
|
|
1940
1765
|
} | undefined);
|
|
1766
|
+
description: string | null;
|
|
1767
|
+
id: string;
|
|
1768
|
+
format: "ttf" | "woff" | "woff2";
|
|
1941
1769
|
projectId: string;
|
|
1942
1770
|
size: number;
|
|
1943
|
-
description: string | null;
|
|
1944
1771
|
createdAt: string;
|
|
1945
1772
|
} | {
|
|
1946
1773
|
type: "image";
|
|
1947
|
-
id: string;
|
|
1948
1774
|
name: string;
|
|
1949
|
-
format: string;
|
|
1950
1775
|
meta: {
|
|
1951
|
-
width: number;
|
|
1952
1776
|
height: number;
|
|
1777
|
+
width: number;
|
|
1953
1778
|
};
|
|
1779
|
+
description: string | null;
|
|
1780
|
+
id: string;
|
|
1781
|
+
format: string;
|
|
1954
1782
|
projectId: string;
|
|
1955
1783
|
size: number;
|
|
1956
|
-
description: string | null;
|
|
1957
1784
|
createdAt: string;
|
|
1958
1785
|
})[];
|
|
1959
|
-
|
|
1786
|
+
dataSources: ({
|
|
1787
|
+
value: {
|
|
1788
|
+
value: number;
|
|
1789
|
+
type: "number";
|
|
1790
|
+
} | {
|
|
1791
|
+
value: string;
|
|
1792
|
+
type: "string";
|
|
1793
|
+
} | {
|
|
1794
|
+
value: boolean;
|
|
1795
|
+
type: "boolean";
|
|
1796
|
+
} | {
|
|
1797
|
+
value: string[];
|
|
1798
|
+
type: "string[]";
|
|
1799
|
+
} | {
|
|
1800
|
+
type: "json";
|
|
1801
|
+
value?: unknown;
|
|
1802
|
+
};
|
|
1803
|
+
type: "variable";
|
|
1804
|
+
name: string;
|
|
1960
1805
|
id: string;
|
|
1806
|
+
scopeInstanceId?: string | undefined;
|
|
1807
|
+
} | {
|
|
1808
|
+
type: "parameter";
|
|
1809
|
+
name: string;
|
|
1810
|
+
id: string;
|
|
1811
|
+
scopeInstanceId?: string | undefined;
|
|
1812
|
+
} | {
|
|
1813
|
+
type: "resource";
|
|
1814
|
+
name: string;
|
|
1815
|
+
id: string;
|
|
1816
|
+
resourceId: string;
|
|
1817
|
+
scopeInstanceId?: string | undefined;
|
|
1818
|
+
})[];
|
|
1819
|
+
resources: {
|
|
1961
1820
|
name: string;
|
|
1962
|
-
method: "get" | "post" | "put" | "delete";
|
|
1963
1821
|
url: string;
|
|
1822
|
+
id: string;
|
|
1823
|
+
method: "get" | "post" | "put" | "delete";
|
|
1964
1824
|
headers: {
|
|
1965
1825
|
value: string;
|
|
1966
1826
|
name: string;
|
|
@@ -1968,39 +1828,69 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1968
1828
|
control?: "system" | "graphql" | undefined;
|
|
1969
1829
|
body?: string | undefined;
|
|
1970
1830
|
}[];
|
|
1831
|
+
breakpoints: {
|
|
1832
|
+
label: string;
|
|
1833
|
+
id: string;
|
|
1834
|
+
minWidth?: number | undefined;
|
|
1835
|
+
maxWidth?: number | undefined;
|
|
1836
|
+
}[];
|
|
1837
|
+
styleSourceSelections: {
|
|
1838
|
+
values: string[];
|
|
1839
|
+
instanceId: string;
|
|
1840
|
+
}[];
|
|
1841
|
+
styleSources: ({
|
|
1842
|
+
type: "token";
|
|
1843
|
+
name: string;
|
|
1844
|
+
id: string;
|
|
1845
|
+
} | {
|
|
1846
|
+
type: "local";
|
|
1847
|
+
id: string;
|
|
1848
|
+
})[];
|
|
1849
|
+
}, {
|
|
1850
|
+
children: ({
|
|
1851
|
+
value: string;
|
|
1852
|
+
type: "text";
|
|
1853
|
+
placeholder?: boolean | undefined;
|
|
1854
|
+
} | {
|
|
1855
|
+
value: string;
|
|
1856
|
+
type: "id";
|
|
1857
|
+
} | {
|
|
1858
|
+
value: string;
|
|
1859
|
+
type: "expression";
|
|
1860
|
+
})[];
|
|
1971
1861
|
props: ({
|
|
1972
1862
|
value: number;
|
|
1973
1863
|
type: "number";
|
|
1974
|
-
id: string;
|
|
1975
1864
|
name: string;
|
|
1865
|
+
id: string;
|
|
1976
1866
|
instanceId: string;
|
|
1977
1867
|
required?: boolean | undefined;
|
|
1978
1868
|
} | {
|
|
1979
1869
|
value: string;
|
|
1980
1870
|
type: "string";
|
|
1981
|
-
id: string;
|
|
1982
1871
|
name: string;
|
|
1872
|
+
id: string;
|
|
1983
1873
|
instanceId: string;
|
|
1984
1874
|
required?: boolean | undefined;
|
|
1985
1875
|
} | {
|
|
1986
1876
|
value: boolean;
|
|
1987
1877
|
type: "boolean";
|
|
1988
|
-
id: string;
|
|
1989
1878
|
name: string;
|
|
1879
|
+
id: string;
|
|
1990
1880
|
instanceId: string;
|
|
1991
1881
|
required?: boolean | undefined;
|
|
1992
1882
|
} | {
|
|
1993
1883
|
type: "json";
|
|
1994
|
-
id: string;
|
|
1995
1884
|
name: string;
|
|
1885
|
+
id: string;
|
|
1996
1886
|
instanceId: string;
|
|
1997
1887
|
value?: unknown;
|
|
1998
1888
|
required?: boolean | undefined;
|
|
1999
1889
|
} | {
|
|
2000
1890
|
value: string;
|
|
2001
1891
|
type: "asset";
|
|
2002
|
-
id: string;
|
|
2003
1892
|
name: string;
|
|
1893
|
+
id: string;
|
|
2004
1894
|
instanceId: string;
|
|
2005
1895
|
required?: boolean | undefined;
|
|
2006
1896
|
} | {
|
|
@@ -2012,36 +1902,36 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2012
1902
|
pageId: string;
|
|
2013
1903
|
} | undefined);
|
|
2014
1904
|
type: "page";
|
|
2015
|
-
id: string;
|
|
2016
1905
|
name: string;
|
|
1906
|
+
id: string;
|
|
2017
1907
|
instanceId: string;
|
|
2018
1908
|
required?: boolean | undefined;
|
|
2019
1909
|
} | {
|
|
2020
1910
|
value: string[];
|
|
2021
1911
|
type: "string[]";
|
|
2022
|
-
id: string;
|
|
2023
1912
|
name: string;
|
|
1913
|
+
id: string;
|
|
2024
1914
|
instanceId: string;
|
|
2025
1915
|
required?: boolean | undefined;
|
|
2026
1916
|
} | {
|
|
2027
1917
|
value: string;
|
|
2028
1918
|
type: "parameter";
|
|
2029
|
-
id: string;
|
|
2030
1919
|
name: string;
|
|
1920
|
+
id: string;
|
|
2031
1921
|
instanceId: string;
|
|
2032
1922
|
required?: boolean | undefined;
|
|
2033
1923
|
} | {
|
|
2034
1924
|
value: string;
|
|
2035
1925
|
type: "resource";
|
|
2036
|
-
id: string;
|
|
2037
1926
|
name: string;
|
|
1927
|
+
id: string;
|
|
2038
1928
|
instanceId: string;
|
|
2039
1929
|
required?: boolean | undefined;
|
|
2040
1930
|
} | {
|
|
2041
1931
|
value: string;
|
|
2042
1932
|
type: "expression";
|
|
2043
|
-
id: string;
|
|
2044
1933
|
name: string;
|
|
1934
|
+
id: string;
|
|
2045
1935
|
instanceId: string;
|
|
2046
1936
|
required?: boolean | undefined;
|
|
2047
1937
|
} | {
|
|
@@ -2051,28 +1941,10 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2051
1941
|
args: string[];
|
|
2052
1942
|
}[];
|
|
2053
1943
|
type: "action";
|
|
2054
|
-
id: string;
|
|
2055
1944
|
name: string;
|
|
2056
|
-
instanceId: string;
|
|
2057
|
-
required?: boolean | undefined;
|
|
2058
|
-
})[];
|
|
2059
|
-
breakpoints: {
|
|
2060
1945
|
id: string;
|
|
2061
|
-
label: string;
|
|
2062
|
-
minWidth?: number | undefined;
|
|
2063
|
-
maxWidth?: number | undefined;
|
|
2064
|
-
}[];
|
|
2065
|
-
styleSourceSelections: {
|
|
2066
|
-
values: string[];
|
|
2067
1946
|
instanceId: string;
|
|
2068
|
-
|
|
2069
|
-
styleSources: ({
|
|
2070
|
-
type: "token";
|
|
2071
|
-
id: string;
|
|
2072
|
-
name: string;
|
|
2073
|
-
} | {
|
|
2074
|
-
type: "local";
|
|
2075
|
-
id: string;
|
|
1947
|
+
required?: boolean | undefined;
|
|
2076
1948
|
})[];
|
|
2077
1949
|
styles: {
|
|
2078
1950
|
value: {
|
|
@@ -2100,9 +1972,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2100
1972
|
hidden?: boolean | undefined;
|
|
2101
1973
|
} | {
|
|
2102
1974
|
type: "rgb";
|
|
2103
|
-
b: number;
|
|
2104
1975
|
r: number;
|
|
2105
1976
|
g: number;
|
|
1977
|
+
b: number;
|
|
2106
1978
|
alpha: number;
|
|
2107
1979
|
hidden?: boolean | undefined;
|
|
2108
1980
|
} | {
|
|
@@ -2128,9 +2000,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2128
2000
|
hidden?: boolean | undefined;
|
|
2129
2001
|
} | {
|
|
2130
2002
|
type: "rgb";
|
|
2131
|
-
b: number;
|
|
2132
2003
|
r: number;
|
|
2133
2004
|
g: number;
|
|
2005
|
+
b: number;
|
|
2134
2006
|
alpha: number;
|
|
2135
2007
|
hidden?: boolean | undefined;
|
|
2136
2008
|
} | undefined;
|
|
@@ -2161,9 +2033,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2161
2033
|
hidden?: boolean | undefined;
|
|
2162
2034
|
} | {
|
|
2163
2035
|
type: "rgb";
|
|
2164
|
-
b: number;
|
|
2165
2036
|
r: number;
|
|
2166
2037
|
g: number;
|
|
2038
|
+
b: number;
|
|
2167
2039
|
alpha: number;
|
|
2168
2040
|
hidden?: boolean | undefined;
|
|
2169
2041
|
} | {
|
|
@@ -2189,9 +2061,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2189
2061
|
hidden?: boolean | undefined;
|
|
2190
2062
|
} | {
|
|
2191
2063
|
type: "rgb";
|
|
2192
|
-
b: number;
|
|
2193
2064
|
r: number;
|
|
2194
2065
|
g: number;
|
|
2066
|
+
b: number;
|
|
2195
2067
|
alpha: number;
|
|
2196
2068
|
hidden?: boolean | undefined;
|
|
2197
2069
|
} | undefined;
|
|
@@ -2229,9 +2101,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2229
2101
|
hidden?: boolean | undefined;
|
|
2230
2102
|
} | {
|
|
2231
2103
|
type: "rgb";
|
|
2232
|
-
b: number;
|
|
2233
2104
|
r: number;
|
|
2234
2105
|
g: number;
|
|
2106
|
+
b: number;
|
|
2235
2107
|
alpha: number;
|
|
2236
2108
|
hidden?: boolean | undefined;
|
|
2237
2109
|
} | {
|
|
@@ -2257,9 +2129,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2257
2129
|
hidden?: boolean | undefined;
|
|
2258
2130
|
} | {
|
|
2259
2131
|
type: "rgb";
|
|
2260
|
-
b: number;
|
|
2261
2132
|
r: number;
|
|
2262
2133
|
g: number;
|
|
2134
|
+
b: number;
|
|
2263
2135
|
alpha: number;
|
|
2264
2136
|
hidden?: boolean | undefined;
|
|
2265
2137
|
} | undefined;
|
|
@@ -2290,9 +2162,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2290
2162
|
hidden?: boolean | undefined;
|
|
2291
2163
|
} | {
|
|
2292
2164
|
type: "rgb";
|
|
2293
|
-
b: number;
|
|
2294
2165
|
r: number;
|
|
2295
2166
|
g: number;
|
|
2167
|
+
b: number;
|
|
2296
2168
|
alpha: number;
|
|
2297
2169
|
hidden?: boolean | undefined;
|
|
2298
2170
|
} | {
|
|
@@ -2318,9 +2190,9 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2318
2190
|
hidden?: boolean | undefined;
|
|
2319
2191
|
} | {
|
|
2320
2192
|
type: "rgb";
|
|
2321
|
-
b: number;
|
|
2322
2193
|
r: number;
|
|
2323
2194
|
g: number;
|
|
2195
|
+
b: number;
|
|
2324
2196
|
alpha: number;
|
|
2325
2197
|
hidden?: boolean | undefined;
|
|
2326
2198
|
} | undefined;
|
|
@@ -2347,12 +2219,140 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2347
2219
|
type: "unset";
|
|
2348
2220
|
hidden?: boolean | undefined;
|
|
2349
2221
|
};
|
|
2222
|
+
state?: string | undefined;
|
|
2350
2223
|
styleSourceId: string;
|
|
2351
2224
|
breakpointId: string;
|
|
2352
|
-
state?: string | undefined;
|
|
2353
2225
|
listed?: boolean | undefined;
|
|
2354
2226
|
property: import("@webstudio-is/css-engine").StyleProperty;
|
|
2355
2227
|
}[];
|
|
2228
|
+
instances: {
|
|
2229
|
+
type: "instance";
|
|
2230
|
+
id: string;
|
|
2231
|
+
component: string;
|
|
2232
|
+
children: ({
|
|
2233
|
+
value: string;
|
|
2234
|
+
type: "text";
|
|
2235
|
+
placeholder?: boolean | undefined;
|
|
2236
|
+
} | {
|
|
2237
|
+
value: string;
|
|
2238
|
+
type: "id";
|
|
2239
|
+
} | {
|
|
2240
|
+
value: string;
|
|
2241
|
+
type: "expression";
|
|
2242
|
+
})[];
|
|
2243
|
+
label?: string | undefined;
|
|
2244
|
+
}[];
|
|
2245
|
+
assets: ({
|
|
2246
|
+
type: "font";
|
|
2247
|
+
name: string;
|
|
2248
|
+
meta: ({
|
|
2249
|
+
family: string;
|
|
2250
|
+
style: "normal" | "italic" | "oblique";
|
|
2251
|
+
weight: number;
|
|
2252
|
+
} | {
|
|
2253
|
+
family: string;
|
|
2254
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
2255
|
+
name: string;
|
|
2256
|
+
min: number;
|
|
2257
|
+
default: number;
|
|
2258
|
+
max: number;
|
|
2259
|
+
}>>;
|
|
2260
|
+
}) & ({
|
|
2261
|
+
family: string;
|
|
2262
|
+
style: "normal" | "italic" | "oblique";
|
|
2263
|
+
weight: number;
|
|
2264
|
+
} | {
|
|
2265
|
+
family: string;
|
|
2266
|
+
variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
|
|
2267
|
+
name: string;
|
|
2268
|
+
min: number;
|
|
2269
|
+
default: number;
|
|
2270
|
+
max: number;
|
|
2271
|
+
}>>;
|
|
2272
|
+
} | undefined);
|
|
2273
|
+
description: string | null;
|
|
2274
|
+
id: string;
|
|
2275
|
+
format: "ttf" | "woff" | "woff2";
|
|
2276
|
+
projectId: string;
|
|
2277
|
+
size: number;
|
|
2278
|
+
createdAt: string;
|
|
2279
|
+
} | {
|
|
2280
|
+
type: "image";
|
|
2281
|
+
name: string;
|
|
2282
|
+
meta: {
|
|
2283
|
+
height: number;
|
|
2284
|
+
width: number;
|
|
2285
|
+
};
|
|
2286
|
+
description: string | null;
|
|
2287
|
+
id: string;
|
|
2288
|
+
format: string;
|
|
2289
|
+
projectId: string;
|
|
2290
|
+
size: number;
|
|
2291
|
+
createdAt: string;
|
|
2292
|
+
})[];
|
|
2293
|
+
dataSources: ({
|
|
2294
|
+
value: {
|
|
2295
|
+
value: number;
|
|
2296
|
+
type: "number";
|
|
2297
|
+
} | {
|
|
2298
|
+
value: string;
|
|
2299
|
+
type: "string";
|
|
2300
|
+
} | {
|
|
2301
|
+
value: boolean;
|
|
2302
|
+
type: "boolean";
|
|
2303
|
+
} | {
|
|
2304
|
+
value: string[];
|
|
2305
|
+
type: "string[]";
|
|
2306
|
+
} | {
|
|
2307
|
+
type: "json";
|
|
2308
|
+
value?: unknown;
|
|
2309
|
+
};
|
|
2310
|
+
type: "variable";
|
|
2311
|
+
name: string;
|
|
2312
|
+
id: string;
|
|
2313
|
+
scopeInstanceId?: string | undefined;
|
|
2314
|
+
} | {
|
|
2315
|
+
type: "parameter";
|
|
2316
|
+
name: string;
|
|
2317
|
+
id: string;
|
|
2318
|
+
scopeInstanceId?: string | undefined;
|
|
2319
|
+
} | {
|
|
2320
|
+
type: "resource";
|
|
2321
|
+
name: string;
|
|
2322
|
+
id: string;
|
|
2323
|
+
resourceId: string;
|
|
2324
|
+
scopeInstanceId?: string | undefined;
|
|
2325
|
+
})[];
|
|
2326
|
+
resources: {
|
|
2327
|
+
name: string;
|
|
2328
|
+
url: string;
|
|
2329
|
+
id: string;
|
|
2330
|
+
method: "get" | "post" | "put" | "delete";
|
|
2331
|
+
headers: {
|
|
2332
|
+
value: string;
|
|
2333
|
+
name: string;
|
|
2334
|
+
}[];
|
|
2335
|
+
control?: "system" | "graphql" | undefined;
|
|
2336
|
+
body?: string | undefined;
|
|
2337
|
+
}[];
|
|
2338
|
+
breakpoints: {
|
|
2339
|
+
label: string;
|
|
2340
|
+
id: string;
|
|
2341
|
+
minWidth?: number | undefined;
|
|
2342
|
+
maxWidth?: number | undefined;
|
|
2343
|
+
}[];
|
|
2344
|
+
styleSourceSelections: {
|
|
2345
|
+
values: string[];
|
|
2346
|
+
instanceId: string;
|
|
2347
|
+
}[];
|
|
2348
|
+
styleSources: ({
|
|
2349
|
+
type: "token";
|
|
2350
|
+
name: string;
|
|
2351
|
+
id: string;
|
|
2352
|
+
} | {
|
|
2353
|
+
type: "local";
|
|
2354
|
+
id: string;
|
|
2355
|
+
})[];
|
|
2356
2356
|
}>;
|
|
2357
2357
|
export type WebstudioFragment = z.infer<typeof WebstudioFragment>;
|
|
2358
2358
|
/**
|