@webstudio-is/sdk 0.163.0 → 0.168.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/index.js
CHANGED
|
@@ -56,6 +56,8 @@ var commonPageFields = {
|
|
|
56
56
|
name: PageName,
|
|
57
57
|
title: PageTitle,
|
|
58
58
|
history: z2.optional(z2.array(z2.string())),
|
|
59
|
+
rootInstanceId: z2.string(),
|
|
60
|
+
systemDataSourceId: z2.string(),
|
|
59
61
|
meta: z2.object({
|
|
60
62
|
description: z2.string().optional(),
|
|
61
63
|
title: z2.string().optional(),
|
|
@@ -73,8 +75,13 @@ var commonPageFields = {
|
|
|
73
75
|
})
|
|
74
76
|
).optional()
|
|
75
77
|
}),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
marketplace: z2.optional(
|
|
79
|
+
z2.object({
|
|
80
|
+
include: z2.optional(z2.boolean()),
|
|
81
|
+
category: z2.optional(z2.string()),
|
|
82
|
+
thumbnailAssetId: z2.optional(z2.string())
|
|
83
|
+
})
|
|
84
|
+
)
|
|
78
85
|
};
|
|
79
86
|
var HomePagePath = z2.string().refine((path) => path === "", "Home page path must be empty");
|
|
80
87
|
var HomePage = z2.object({
|
|
@@ -140,7 +147,8 @@ var Pages = z2.object({
|
|
|
140
147
|
import { z as z3 } from "zod";
|
|
141
148
|
var TextChild = z3.object({
|
|
142
149
|
type: z3.literal("text"),
|
|
143
|
-
value: z3.string()
|
|
150
|
+
value: z3.string(),
|
|
151
|
+
placeholder: z3.boolean().optional()
|
|
144
152
|
});
|
|
145
153
|
var InstanceId = z3.string();
|
|
146
154
|
var IdChild = z3.object({
|
|
@@ -479,8 +487,9 @@ var lintExpression = ({
|
|
|
479
487
|
const addError = (message) => {
|
|
480
488
|
return (node) => {
|
|
481
489
|
diagnostics.push({
|
|
482
|
-
|
|
483
|
-
|
|
490
|
+
// tune error position after wrapping expression with parentheses
|
|
491
|
+
from: node.start - 1,
|
|
492
|
+
to: node.end - 1,
|
|
484
493
|
severity: "error",
|
|
485
494
|
message
|
|
486
495
|
});
|
|
@@ -496,7 +505,7 @@ var lintExpression = ({
|
|
|
496
505
|
return diagnostics;
|
|
497
506
|
}
|
|
498
507
|
try {
|
|
499
|
-
const root = parseExpressionAt(expression
|
|
508
|
+
const root = parseExpressionAt(`(${expression})`, 0, {
|
|
500
509
|
ecmaVersion: "latest",
|
|
501
510
|
// support parsing import to forbid explicitly
|
|
502
511
|
sourceType: "module"
|
|
@@ -561,10 +570,13 @@ var lintExpression = ({
|
|
|
561
570
|
} catch (error) {
|
|
562
571
|
const castedError = error;
|
|
563
572
|
diagnostics.push({
|
|
564
|
-
|
|
565
|
-
|
|
573
|
+
// tune error position after wrapping expression with parentheses
|
|
574
|
+
from: castedError.pos - 1,
|
|
575
|
+
to: castedError.pos - 1,
|
|
566
576
|
severity: "error",
|
|
567
|
-
|
|
577
|
+
// trim auto generated error location
|
|
578
|
+
// to not conflict with tuned position
|
|
579
|
+
message: castedError.message.replaceAll(/\s+\(\d+:\d+\)$/g, "")
|
|
568
580
|
});
|
|
569
581
|
}
|
|
570
582
|
return diagnostics;
|
|
@@ -5,6 +5,7 @@ export declare const findTreeInstanceIds: (instances: Map<string, {
|
|
|
5
5
|
children: ({
|
|
6
6
|
value: string;
|
|
7
7
|
type: "text";
|
|
8
|
+
placeholder?: boolean | undefined;
|
|
8
9
|
} | {
|
|
9
10
|
value: string;
|
|
10
11
|
type: "id";
|
|
@@ -21,6 +22,7 @@ export declare const findTreeInstanceIdsExcludingSlotDescendants: (instances: Ma
|
|
|
21
22
|
children: ({
|
|
22
23
|
value: string;
|
|
23
24
|
type: "text";
|
|
25
|
+
placeholder?: boolean | undefined;
|
|
24
26
|
} | {
|
|
25
27
|
value: string;
|
|
26
28
|
type: "id";
|
|
@@ -2,12 +2,15 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const TextChild: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"text">;
|
|
4
4
|
value: z.ZodString;
|
|
5
|
+
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
5
6
|
}, "strip", z.ZodTypeAny, {
|
|
6
7
|
value: string;
|
|
7
8
|
type: "text";
|
|
9
|
+
placeholder?: boolean | undefined;
|
|
8
10
|
}, {
|
|
9
11
|
value: string;
|
|
10
12
|
type: "text";
|
|
13
|
+
placeholder?: boolean | undefined;
|
|
11
14
|
}>;
|
|
12
15
|
export type TextChild = z.infer<typeof TextChild>;
|
|
13
16
|
export declare const IdChild: z.ZodObject<{
|
|
@@ -44,12 +47,15 @@ export declare const InstanceChild: z.ZodUnion<[z.ZodObject<{
|
|
|
44
47
|
}>, z.ZodObject<{
|
|
45
48
|
type: z.ZodLiteral<"text">;
|
|
46
49
|
value: z.ZodString;
|
|
50
|
+
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
47
51
|
}, "strip", z.ZodTypeAny, {
|
|
48
52
|
value: string;
|
|
49
53
|
type: "text";
|
|
54
|
+
placeholder?: boolean | undefined;
|
|
50
55
|
}, {
|
|
51
56
|
value: string;
|
|
52
57
|
type: "text";
|
|
58
|
+
placeholder?: boolean | undefined;
|
|
53
59
|
}>, z.ZodObject<{
|
|
54
60
|
type: z.ZodLiteral<"expression">;
|
|
55
61
|
value: z.ZodString;
|
|
@@ -77,12 +83,15 @@ export declare const Instance: z.ZodObject<{
|
|
|
77
83
|
}>, z.ZodObject<{
|
|
78
84
|
type: z.ZodLiteral<"text">;
|
|
79
85
|
value: z.ZodString;
|
|
86
|
+
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
80
87
|
}, "strip", z.ZodTypeAny, {
|
|
81
88
|
value: string;
|
|
82
89
|
type: "text";
|
|
90
|
+
placeholder?: boolean | undefined;
|
|
83
91
|
}, {
|
|
84
92
|
value: string;
|
|
85
93
|
type: "text";
|
|
94
|
+
placeholder?: boolean | undefined;
|
|
86
95
|
}>, z.ZodObject<{
|
|
87
96
|
type: z.ZodLiteral<"expression">;
|
|
88
97
|
value: z.ZodString;
|
|
@@ -99,6 +108,7 @@ export declare const Instance: z.ZodObject<{
|
|
|
99
108
|
children: ({
|
|
100
109
|
value: string;
|
|
101
110
|
type: "text";
|
|
111
|
+
placeholder?: boolean | undefined;
|
|
102
112
|
} | {
|
|
103
113
|
value: string;
|
|
104
114
|
type: "id";
|
|
@@ -114,6 +124,7 @@ export declare const Instance: z.ZodObject<{
|
|
|
114
124
|
children: ({
|
|
115
125
|
value: string;
|
|
116
126
|
type: "text";
|
|
127
|
+
placeholder?: boolean | undefined;
|
|
117
128
|
} | {
|
|
118
129
|
value: string;
|
|
119
130
|
type: "id";
|
|
@@ -142,12 +153,15 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
142
153
|
}>, z.ZodObject<{
|
|
143
154
|
type: z.ZodLiteral<"text">;
|
|
144
155
|
value: z.ZodString;
|
|
156
|
+
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
145
157
|
}, "strip", z.ZodTypeAny, {
|
|
146
158
|
value: string;
|
|
147
159
|
type: "text";
|
|
160
|
+
placeholder?: boolean | undefined;
|
|
148
161
|
}, {
|
|
149
162
|
value: string;
|
|
150
163
|
type: "text";
|
|
164
|
+
placeholder?: boolean | undefined;
|
|
151
165
|
}>, z.ZodObject<{
|
|
152
166
|
type: z.ZodLiteral<"expression">;
|
|
153
167
|
value: z.ZodString;
|
|
@@ -164,6 +178,7 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
164
178
|
children: ({
|
|
165
179
|
value: string;
|
|
166
180
|
type: "text";
|
|
181
|
+
placeholder?: boolean | undefined;
|
|
167
182
|
} | {
|
|
168
183
|
value: string;
|
|
169
184
|
type: "id";
|
|
@@ -179,6 +194,7 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
179
194
|
children: ({
|
|
180
195
|
value: string;
|
|
181
196
|
type: "text";
|
|
197
|
+
placeholder?: boolean | undefined;
|
|
182
198
|
} | {
|
|
183
199
|
value: string;
|
|
184
200
|
type: "id";
|
|
@@ -33,6 +33,8 @@ declare const Page: z.ZodObject<{
|
|
|
33
33
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
34
34
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
35
35
|
history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
|
+
rootInstanceId: z.ZodString;
|
|
37
|
+
systemDataSourceId: z.ZodString;
|
|
36
38
|
meta: z.ZodObject<{
|
|
37
39
|
description: z.ZodOptional<z.ZodString>;
|
|
38
40
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -82,8 +84,19 @@ declare const Page: z.ZodObject<{
|
|
|
82
84
|
content: string;
|
|
83
85
|
}[] | undefined;
|
|
84
86
|
}>;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
marketplace: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
include: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
category: z.ZodOptional<z.ZodString>;
|
|
90
|
+
thumbnailAssetId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
include?: boolean | undefined;
|
|
93
|
+
category?: string | undefined;
|
|
94
|
+
thumbnailAssetId?: string | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
include?: boolean | undefined;
|
|
97
|
+
category?: string | undefined;
|
|
98
|
+
thumbnailAssetId?: string | undefined;
|
|
99
|
+
}>>;
|
|
87
100
|
}, "strip", z.ZodTypeAny, {
|
|
88
101
|
path: string;
|
|
89
102
|
id: string;
|
|
@@ -107,6 +120,11 @@ declare const Page: z.ZodObject<{
|
|
|
107
120
|
rootInstanceId: string;
|
|
108
121
|
systemDataSourceId: string;
|
|
109
122
|
history?: string[] | undefined;
|
|
123
|
+
marketplace?: {
|
|
124
|
+
include?: boolean | undefined;
|
|
125
|
+
category?: string | undefined;
|
|
126
|
+
thumbnailAssetId?: string | undefined;
|
|
127
|
+
} | undefined;
|
|
110
128
|
}, {
|
|
111
129
|
path: string;
|
|
112
130
|
id: string;
|
|
@@ -130,6 +148,11 @@ declare const Page: z.ZodObject<{
|
|
|
130
148
|
rootInstanceId: string;
|
|
131
149
|
systemDataSourceId: string;
|
|
132
150
|
history?: string[] | undefined;
|
|
151
|
+
marketplace?: {
|
|
152
|
+
include?: boolean | undefined;
|
|
153
|
+
category?: string | undefined;
|
|
154
|
+
thumbnailAssetId?: string | undefined;
|
|
155
|
+
} | undefined;
|
|
133
156
|
}>;
|
|
134
157
|
declare const ProjectMeta: z.ZodObject<{
|
|
135
158
|
siteName: z.ZodOptional<z.ZodString>;
|
|
@@ -215,6 +238,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
215
238
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
216
239
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
217
240
|
history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
241
|
+
rootInstanceId: z.ZodString;
|
|
242
|
+
systemDataSourceId: z.ZodString;
|
|
218
243
|
meta: z.ZodObject<{
|
|
219
244
|
description: z.ZodOptional<z.ZodString>;
|
|
220
245
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -264,8 +289,19 @@ export declare const Pages: z.ZodObject<{
|
|
|
264
289
|
content: string;
|
|
265
290
|
}[] | undefined;
|
|
266
291
|
}>;
|
|
267
|
-
|
|
268
|
-
|
|
292
|
+
marketplace: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
include: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
category: z.ZodOptional<z.ZodString>;
|
|
295
|
+
thumbnailAssetId: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
include?: boolean | undefined;
|
|
298
|
+
category?: string | undefined;
|
|
299
|
+
thumbnailAssetId?: string | undefined;
|
|
300
|
+
}, {
|
|
301
|
+
include?: boolean | undefined;
|
|
302
|
+
category?: string | undefined;
|
|
303
|
+
thumbnailAssetId?: string | undefined;
|
|
304
|
+
}>>;
|
|
269
305
|
}, "strip", z.ZodTypeAny, {
|
|
270
306
|
path: string;
|
|
271
307
|
id: string;
|
|
@@ -289,6 +325,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
289
325
|
rootInstanceId: string;
|
|
290
326
|
systemDataSourceId: string;
|
|
291
327
|
history?: string[] | undefined;
|
|
328
|
+
marketplace?: {
|
|
329
|
+
include?: boolean | undefined;
|
|
330
|
+
category?: string | undefined;
|
|
331
|
+
thumbnailAssetId?: string | undefined;
|
|
332
|
+
} | undefined;
|
|
292
333
|
}, {
|
|
293
334
|
path: string;
|
|
294
335
|
id: string;
|
|
@@ -312,6 +353,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
312
353
|
rootInstanceId: string;
|
|
313
354
|
systemDataSourceId: string;
|
|
314
355
|
history?: string[] | undefined;
|
|
356
|
+
marketplace?: {
|
|
357
|
+
include?: boolean | undefined;
|
|
358
|
+
category?: string | undefined;
|
|
359
|
+
thumbnailAssetId?: string | undefined;
|
|
360
|
+
} | undefined;
|
|
315
361
|
}>;
|
|
316
362
|
pages: z.ZodArray<z.ZodObject<{
|
|
317
363
|
path: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
@@ -319,6 +365,8 @@ export declare const Pages: z.ZodObject<{
|
|
|
319
365
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
320
366
|
title: z.ZodEffects<z.ZodString, string, string>;
|
|
321
367
|
history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
368
|
+
rootInstanceId: z.ZodString;
|
|
369
|
+
systemDataSourceId: z.ZodString;
|
|
322
370
|
meta: z.ZodObject<{
|
|
323
371
|
description: z.ZodOptional<z.ZodString>;
|
|
324
372
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -368,8 +416,19 @@ export declare const Pages: z.ZodObject<{
|
|
|
368
416
|
content: string;
|
|
369
417
|
}[] | undefined;
|
|
370
418
|
}>;
|
|
371
|
-
|
|
372
|
-
|
|
419
|
+
marketplace: z.ZodOptional<z.ZodObject<{
|
|
420
|
+
include: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
category: z.ZodOptional<z.ZodString>;
|
|
422
|
+
thumbnailAssetId: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
include?: boolean | undefined;
|
|
425
|
+
category?: string | undefined;
|
|
426
|
+
thumbnailAssetId?: string | undefined;
|
|
427
|
+
}, {
|
|
428
|
+
include?: boolean | undefined;
|
|
429
|
+
category?: string | undefined;
|
|
430
|
+
thumbnailAssetId?: string | undefined;
|
|
431
|
+
}>>;
|
|
373
432
|
}, "strip", z.ZodTypeAny, {
|
|
374
433
|
path: string;
|
|
375
434
|
id: string;
|
|
@@ -393,6 +452,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
393
452
|
rootInstanceId: string;
|
|
394
453
|
systemDataSourceId: string;
|
|
395
454
|
history?: string[] | undefined;
|
|
455
|
+
marketplace?: {
|
|
456
|
+
include?: boolean | undefined;
|
|
457
|
+
category?: string | undefined;
|
|
458
|
+
thumbnailAssetId?: string | undefined;
|
|
459
|
+
} | undefined;
|
|
396
460
|
}, {
|
|
397
461
|
path: string;
|
|
398
462
|
id: string;
|
|
@@ -416,6 +480,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
416
480
|
rootInstanceId: string;
|
|
417
481
|
systemDataSourceId: string;
|
|
418
482
|
history?: string[] | undefined;
|
|
483
|
+
marketplace?: {
|
|
484
|
+
include?: boolean | undefined;
|
|
485
|
+
category?: string | undefined;
|
|
486
|
+
thumbnailAssetId?: string | undefined;
|
|
487
|
+
} | undefined;
|
|
419
488
|
}>, "many">;
|
|
420
489
|
folders: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
421
490
|
id: z.ZodString;
|
|
@@ -467,6 +536,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
467
536
|
rootInstanceId: string;
|
|
468
537
|
systemDataSourceId: string;
|
|
469
538
|
history?: string[] | undefined;
|
|
539
|
+
marketplace?: {
|
|
540
|
+
include?: boolean | undefined;
|
|
541
|
+
category?: string | undefined;
|
|
542
|
+
thumbnailAssetId?: string | undefined;
|
|
543
|
+
} | undefined;
|
|
470
544
|
};
|
|
471
545
|
pages: {
|
|
472
546
|
path: string;
|
|
@@ -491,6 +565,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
491
565
|
rootInstanceId: string;
|
|
492
566
|
systemDataSourceId: string;
|
|
493
567
|
history?: string[] | undefined;
|
|
568
|
+
marketplace?: {
|
|
569
|
+
include?: boolean | undefined;
|
|
570
|
+
category?: string | undefined;
|
|
571
|
+
thumbnailAssetId?: string | undefined;
|
|
572
|
+
} | undefined;
|
|
494
573
|
}[];
|
|
495
574
|
folders: {
|
|
496
575
|
id: string;
|
|
@@ -536,6 +615,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
536
615
|
rootInstanceId: string;
|
|
537
616
|
systemDataSourceId: string;
|
|
538
617
|
history?: string[] | undefined;
|
|
618
|
+
marketplace?: {
|
|
619
|
+
include?: boolean | undefined;
|
|
620
|
+
category?: string | undefined;
|
|
621
|
+
thumbnailAssetId?: string | undefined;
|
|
622
|
+
} | undefined;
|
|
539
623
|
};
|
|
540
624
|
pages: {
|
|
541
625
|
path: string;
|
|
@@ -560,6 +644,11 @@ export declare const Pages: z.ZodObject<{
|
|
|
560
644
|
rootInstanceId: string;
|
|
561
645
|
systemDataSourceId: string;
|
|
562
646
|
history?: string[] | undefined;
|
|
647
|
+
marketplace?: {
|
|
648
|
+
include?: boolean | undefined;
|
|
649
|
+
category?: string | undefined;
|
|
650
|
+
thumbnailAssetId?: string | undefined;
|
|
651
|
+
} | undefined;
|
|
563
652
|
}[];
|
|
564
653
|
folders: {
|
|
565
654
|
id: string;
|
|
@@ -394,6 +394,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
394
394
|
type: "guaranteedInvalid";
|
|
395
395
|
})[];
|
|
396
396
|
};
|
|
397
|
+
hidden?: boolean | undefined;
|
|
397
398
|
}, z.ZodTypeDef, {
|
|
398
399
|
type: "function";
|
|
399
400
|
name: string;
|
|
@@ -610,6 +611,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
610
611
|
type: "guaranteedInvalid";
|
|
611
612
|
})[];
|
|
612
613
|
};
|
|
614
|
+
hidden?: boolean | undefined;
|
|
613
615
|
}>]>, "many">;
|
|
614
616
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
615
617
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -867,6 +869,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
867
869
|
type: "guaranteedInvalid";
|
|
868
870
|
})[];
|
|
869
871
|
};
|
|
872
|
+
hidden?: boolean | undefined;
|
|
870
873
|
})[];
|
|
871
874
|
type: "tuple";
|
|
872
875
|
hidden?: boolean | undefined;
|
|
@@ -1095,6 +1098,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1095
1098
|
type: "guaranteedInvalid";
|
|
1096
1099
|
})[];
|
|
1097
1100
|
};
|
|
1101
|
+
hidden?: boolean | undefined;
|
|
1098
1102
|
}, z.ZodTypeDef, {
|
|
1099
1103
|
type: "function";
|
|
1100
1104
|
name: string;
|
|
@@ -1311,6 +1315,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1311
1315
|
type: "guaranteedInvalid";
|
|
1312
1316
|
})[];
|
|
1313
1317
|
};
|
|
1318
|
+
hidden?: boolean | undefined;
|
|
1314
1319
|
}>]>, "many">;
|
|
1315
1320
|
}, "strip", z.ZodTypeAny, {
|
|
1316
1321
|
value: ({
|
|
@@ -1588,6 +1593,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1588
1593
|
type: "guaranteedInvalid";
|
|
1589
1594
|
})[];
|
|
1590
1595
|
};
|
|
1596
|
+
hidden?: boolean | undefined;
|
|
1591
1597
|
} | {
|
|
1592
1598
|
value: {
|
|
1593
1599
|
value: string;
|
|
@@ -1832,6 +1838,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
1832
1838
|
type: "guaranteedInvalid";
|
|
1833
1839
|
})[];
|
|
1834
1840
|
};
|
|
1841
|
+
hidden?: boolean | undefined;
|
|
1835
1842
|
})[];
|
|
1836
1843
|
type: "tuple";
|
|
1837
1844
|
hidden?: boolean | undefined;
|
|
@@ -2169,6 +2176,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2169
2176
|
type: "guaranteedInvalid";
|
|
2170
2177
|
})[];
|
|
2171
2178
|
};
|
|
2179
|
+
hidden?: boolean | undefined;
|
|
2172
2180
|
}, z.ZodTypeDef, {
|
|
2173
2181
|
type: "function";
|
|
2174
2182
|
name: string;
|
|
@@ -2385,6 +2393,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2385
2393
|
type: "guaranteedInvalid";
|
|
2386
2394
|
})[];
|
|
2387
2395
|
};
|
|
2396
|
+
hidden?: boolean | undefined;
|
|
2388
2397
|
}>]>, "many">;
|
|
2389
2398
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2390
2399
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2642,6 +2651,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2642
2651
|
type: "guaranteedInvalid";
|
|
2643
2652
|
})[];
|
|
2644
2653
|
};
|
|
2654
|
+
hidden?: boolean | undefined;
|
|
2645
2655
|
})[];
|
|
2646
2656
|
type: "tuple";
|
|
2647
2657
|
hidden?: boolean | undefined;
|
|
@@ -2861,6 +2871,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
2861
2871
|
type: "guaranteedInvalid";
|
|
2862
2872
|
})[];
|
|
2863
2873
|
};
|
|
2874
|
+
hidden?: boolean | undefined;
|
|
2864
2875
|
}, z.ZodTypeDef, {
|
|
2865
2876
|
type: "function";
|
|
2866
2877
|
name: string;
|
|
@@ -3077,6 +3088,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
3077
3088
|
type: "guaranteedInvalid";
|
|
3078
3089
|
})[];
|
|
3079
3090
|
};
|
|
3091
|
+
hidden?: boolean | undefined;
|
|
3080
3092
|
}>, z.ZodObject<{
|
|
3081
3093
|
type: z.ZodLiteral<"guaranteedInvalid">;
|
|
3082
3094
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3492,6 +3504,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
3492
3504
|
type: "guaranteedInvalid";
|
|
3493
3505
|
})[];
|
|
3494
3506
|
};
|
|
3507
|
+
hidden?: boolean | undefined;
|
|
3495
3508
|
}, z.ZodTypeDef, {
|
|
3496
3509
|
type: "function";
|
|
3497
3510
|
name: string;
|
|
@@ -3708,6 +3721,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
3708
3721
|
type: "guaranteedInvalid";
|
|
3709
3722
|
})[];
|
|
3710
3723
|
};
|
|
3724
|
+
hidden?: boolean | undefined;
|
|
3711
3725
|
}>]>, "many">;
|
|
3712
3726
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
3713
3727
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3965,6 +3979,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
3965
3979
|
type: "guaranteedInvalid";
|
|
3966
3980
|
})[];
|
|
3967
3981
|
};
|
|
3982
|
+
hidden?: boolean | undefined;
|
|
3968
3983
|
})[];
|
|
3969
3984
|
type: "tuple";
|
|
3970
3985
|
hidden?: boolean | undefined;
|
|
@@ -4193,6 +4208,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4193
4208
|
type: "guaranteedInvalid";
|
|
4194
4209
|
})[];
|
|
4195
4210
|
};
|
|
4211
|
+
hidden?: boolean | undefined;
|
|
4196
4212
|
}, z.ZodTypeDef, {
|
|
4197
4213
|
type: "function";
|
|
4198
4214
|
name: string;
|
|
@@ -4409,6 +4425,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4409
4425
|
type: "guaranteedInvalid";
|
|
4410
4426
|
})[];
|
|
4411
4427
|
};
|
|
4428
|
+
hidden?: boolean | undefined;
|
|
4412
4429
|
}>]>, "many">;
|
|
4413
4430
|
}, "strip", z.ZodTypeAny, {
|
|
4414
4431
|
value: ({
|
|
@@ -4686,6 +4703,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4686
4703
|
type: "guaranteedInvalid";
|
|
4687
4704
|
})[];
|
|
4688
4705
|
};
|
|
4706
|
+
hidden?: boolean | undefined;
|
|
4689
4707
|
} | {
|
|
4690
4708
|
value: {
|
|
4691
4709
|
value: string;
|
|
@@ -4930,6 +4948,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
4930
4948
|
type: "guaranteedInvalid";
|
|
4931
4949
|
})[];
|
|
4932
4950
|
};
|
|
4951
|
+
hidden?: boolean | undefined;
|
|
4933
4952
|
})[];
|
|
4934
4953
|
type: "tuple";
|
|
4935
4954
|
hidden?: boolean | undefined;
|
|
@@ -5267,6 +5286,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
5267
5286
|
type: "guaranteedInvalid";
|
|
5268
5287
|
})[];
|
|
5269
5288
|
};
|
|
5289
|
+
hidden?: boolean | undefined;
|
|
5270
5290
|
}, z.ZodTypeDef, {
|
|
5271
5291
|
type: "function";
|
|
5272
5292
|
name: string;
|
|
@@ -5483,6 +5503,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
5483
5503
|
type: "guaranteedInvalid";
|
|
5484
5504
|
})[];
|
|
5485
5505
|
};
|
|
5506
|
+
hidden?: boolean | undefined;
|
|
5486
5507
|
}>]>, "many">;
|
|
5487
5508
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
5488
5509
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5740,6 +5761,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
5740
5761
|
type: "guaranteedInvalid";
|
|
5741
5762
|
})[];
|
|
5742
5763
|
};
|
|
5764
|
+
hidden?: boolean | undefined;
|
|
5743
5765
|
})[];
|
|
5744
5766
|
type: "tuple";
|
|
5745
5767
|
hidden?: boolean | undefined;
|
|
@@ -5959,6 +5981,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
5959
5981
|
type: "guaranteedInvalid";
|
|
5960
5982
|
})[];
|
|
5961
5983
|
};
|
|
5984
|
+
hidden?: boolean | undefined;
|
|
5962
5985
|
}, z.ZodTypeDef, {
|
|
5963
5986
|
type: "function";
|
|
5964
5987
|
name: string;
|
|
@@ -6175,6 +6198,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
6175
6198
|
type: "guaranteedInvalid";
|
|
6176
6199
|
})[];
|
|
6177
6200
|
};
|
|
6201
|
+
hidden?: boolean | undefined;
|
|
6178
6202
|
}>, z.ZodObject<{
|
|
6179
6203
|
type: z.ZodLiteral<"guaranteedInvalid">;
|
|
6180
6204
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6526,6 +6550,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
6526
6550
|
type: "guaranteedInvalid";
|
|
6527
6551
|
})[];
|
|
6528
6552
|
};
|
|
6553
|
+
hidden?: boolean | undefined;
|
|
6529
6554
|
} | {
|
|
6530
6555
|
value: {
|
|
6531
6556
|
value: string;
|
|
@@ -6770,6 +6795,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
6770
6795
|
type: "guaranteedInvalid";
|
|
6771
6796
|
})[];
|
|
6772
6797
|
};
|
|
6798
|
+
hidden?: boolean | undefined;
|
|
6773
6799
|
})[];
|
|
6774
6800
|
type: "tuple";
|
|
6775
6801
|
hidden?: boolean | undefined;
|
|
@@ -7001,6 +7027,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
7001
7027
|
type: "guaranteedInvalid";
|
|
7002
7028
|
})[];
|
|
7003
7029
|
};
|
|
7030
|
+
hidden?: boolean | undefined;
|
|
7004
7031
|
} | {
|
|
7005
7032
|
value: {
|
|
7006
7033
|
value: string;
|
|
@@ -7245,6 +7272,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
7245
7272
|
type: "guaranteedInvalid";
|
|
7246
7273
|
})[];
|
|
7247
7274
|
};
|
|
7275
|
+
hidden?: boolean | undefined;
|
|
7248
7276
|
})[];
|
|
7249
7277
|
type: "tuple";
|
|
7250
7278
|
hidden?: boolean | undefined;
|
|
@@ -7495,6 +7523,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
7495
7523
|
type: "guaranteedInvalid";
|
|
7496
7524
|
})[];
|
|
7497
7525
|
};
|
|
7526
|
+
hidden?: boolean | undefined;
|
|
7498
7527
|
} | {
|
|
7499
7528
|
value: {
|
|
7500
7529
|
value: string;
|
|
@@ -7930,6 +7959,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
7930
7959
|
type: "guaranteedInvalid";
|
|
7931
7960
|
})[];
|
|
7932
7961
|
};
|
|
7962
|
+
hidden?: boolean | undefined;
|
|
7933
7963
|
} | {
|
|
7934
7964
|
value: {
|
|
7935
7965
|
value: string;
|
|
@@ -8174,6 +8204,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
8174
8204
|
type: "guaranteedInvalid";
|
|
8175
8205
|
})[];
|
|
8176
8206
|
};
|
|
8207
|
+
hidden?: boolean | undefined;
|
|
8177
8208
|
})[];
|
|
8178
8209
|
type: "tuple";
|
|
8179
8210
|
hidden?: boolean | undefined;
|
|
@@ -8408,6 +8439,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
8408
8439
|
type: "guaranteedInvalid";
|
|
8409
8440
|
})[];
|
|
8410
8441
|
};
|
|
8442
|
+
hidden?: boolean | undefined;
|
|
8411
8443
|
} | {
|
|
8412
8444
|
value: {
|
|
8413
8445
|
value: string;
|
|
@@ -8652,6 +8684,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
8652
8684
|
type: "guaranteedInvalid";
|
|
8653
8685
|
})[];
|
|
8654
8686
|
};
|
|
8687
|
+
hidden?: boolean | undefined;
|
|
8655
8688
|
})[];
|
|
8656
8689
|
type: "tuple";
|
|
8657
8690
|
hidden?: boolean | undefined;
|
|
@@ -8904,6 +8937,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
8904
8937
|
type: "guaranteedInvalid";
|
|
8905
8938
|
})[];
|
|
8906
8939
|
};
|
|
8940
|
+
hidden?: boolean | undefined;
|
|
8907
8941
|
} | {
|
|
8908
8942
|
value: {
|
|
8909
8943
|
value: string;
|
|
@@ -9148,6 +9182,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
9148
9182
|
type: "guaranteedInvalid";
|
|
9149
9183
|
})[];
|
|
9150
9184
|
};
|
|
9185
|
+
hidden?: boolean | undefined;
|
|
9151
9186
|
})[];
|
|
9152
9187
|
type: "tuple";
|
|
9153
9188
|
hidden?: boolean | undefined;
|
|
@@ -9379,6 +9414,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
9379
9414
|
type: "guaranteedInvalid";
|
|
9380
9415
|
})[];
|
|
9381
9416
|
};
|
|
9417
|
+
hidden?: boolean | undefined;
|
|
9382
9418
|
} | {
|
|
9383
9419
|
value: {
|
|
9384
9420
|
value: string;
|
|
@@ -9623,6 +9659,7 @@ declare const StyleDeclRaw: z.ZodObject<{
|
|
|
9623
9659
|
type: "guaranteedInvalid";
|
|
9624
9660
|
})[];
|
|
9625
9661
|
};
|
|
9662
|
+
hidden?: boolean | undefined;
|
|
9626
9663
|
})[];
|
|
9627
9664
|
type: "tuple";
|
|
9628
9665
|
hidden?: boolean | undefined;
|
|
@@ -9881,6 +9918,7 @@ export declare const StyleDecl: z.ZodType<{
|
|
|
9881
9918
|
type: "guaranteedInvalid";
|
|
9882
9919
|
})[];
|
|
9883
9920
|
};
|
|
9921
|
+
hidden?: boolean | undefined;
|
|
9884
9922
|
} | {
|
|
9885
9923
|
value: {
|
|
9886
9924
|
value: string;
|
|
@@ -10316,6 +10354,7 @@ export declare const StyleDecl: z.ZodType<{
|
|
|
10316
10354
|
type: "guaranteedInvalid";
|
|
10317
10355
|
})[];
|
|
10318
10356
|
};
|
|
10357
|
+
hidden?: boolean | undefined;
|
|
10319
10358
|
} | {
|
|
10320
10359
|
value: {
|
|
10321
10360
|
value: string;
|
|
@@ -10754,6 +10793,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
10754
10793
|
type: "guaranteedInvalid";
|
|
10755
10794
|
})[];
|
|
10756
10795
|
};
|
|
10796
|
+
hidden?: boolean | undefined;
|
|
10757
10797
|
} | {
|
|
10758
10798
|
value: {
|
|
10759
10799
|
value: string;
|
|
@@ -11189,6 +11229,7 @@ export declare const Styles: z.ZodMap<z.ZodString, z.ZodType<{
|
|
|
11189
11229
|
type: "guaranteedInvalid";
|
|
11190
11230
|
})[];
|
|
11191
11231
|
};
|
|
11232
|
+
hidden?: boolean | undefined;
|
|
11192
11233
|
} | {
|
|
11193
11234
|
value: {
|
|
11194
11235
|
value: string;
|
|
@@ -26,12 +26,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
26
26
|
}>, z.ZodObject<{
|
|
27
27
|
type: z.ZodLiteral<"text">;
|
|
28
28
|
value: z.ZodString;
|
|
29
|
+
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
29
30
|
}, "strip", z.ZodTypeAny, {
|
|
30
31
|
value: string;
|
|
31
32
|
type: "text";
|
|
33
|
+
placeholder?: boolean | undefined;
|
|
32
34
|
}, {
|
|
33
35
|
value: string;
|
|
34
36
|
type: "text";
|
|
37
|
+
placeholder?: boolean | undefined;
|
|
35
38
|
}>, z.ZodObject<{
|
|
36
39
|
type: z.ZodLiteral<"expression">;
|
|
37
40
|
value: z.ZodString;
|
|
@@ -59,12 +62,15 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
59
62
|
}>, z.ZodObject<{
|
|
60
63
|
type: z.ZodLiteral<"text">;
|
|
61
64
|
value: z.ZodString;
|
|
65
|
+
placeholder: z.ZodOptional<z.ZodBoolean>;
|
|
62
66
|
}, "strip", z.ZodTypeAny, {
|
|
63
67
|
value: string;
|
|
64
68
|
type: "text";
|
|
69
|
+
placeholder?: boolean | undefined;
|
|
65
70
|
}, {
|
|
66
71
|
value: string;
|
|
67
72
|
type: "text";
|
|
73
|
+
placeholder?: boolean | undefined;
|
|
68
74
|
}>, z.ZodObject<{
|
|
69
75
|
type: z.ZodLiteral<"expression">;
|
|
70
76
|
value: z.ZodString;
|
|
@@ -81,6 +87,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
81
87
|
children: ({
|
|
82
88
|
value: string;
|
|
83
89
|
type: "text";
|
|
90
|
+
placeholder?: boolean | undefined;
|
|
84
91
|
} | {
|
|
85
92
|
value: string;
|
|
86
93
|
type: "id";
|
|
@@ -96,6 +103,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
96
103
|
children: ({
|
|
97
104
|
value: string;
|
|
98
105
|
type: "text";
|
|
106
|
+
placeholder?: boolean | undefined;
|
|
99
107
|
} | {
|
|
100
108
|
value: string;
|
|
101
109
|
type: "id";
|
|
@@ -990,6 +998,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
990
998
|
type: "guaranteedInvalid";
|
|
991
999
|
})[];
|
|
992
1000
|
};
|
|
1001
|
+
hidden?: boolean | undefined;
|
|
993
1002
|
} | {
|
|
994
1003
|
value: {
|
|
995
1004
|
value: string;
|
|
@@ -1425,6 +1434,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1425
1434
|
type: "guaranteedInvalid";
|
|
1426
1435
|
})[];
|
|
1427
1436
|
};
|
|
1437
|
+
hidden?: boolean | undefined;
|
|
1428
1438
|
} | {
|
|
1429
1439
|
value: {
|
|
1430
1440
|
value: string;
|
|
@@ -1661,6 +1671,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1661
1671
|
children: ({
|
|
1662
1672
|
value: string;
|
|
1663
1673
|
type: "text";
|
|
1674
|
+
placeholder?: boolean | undefined;
|
|
1664
1675
|
} | {
|
|
1665
1676
|
value: string;
|
|
1666
1677
|
type: "id";
|
|
@@ -1674,6 +1685,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
1674
1685
|
children: ({
|
|
1675
1686
|
value: string;
|
|
1676
1687
|
type: "text";
|
|
1688
|
+
placeholder?: boolean | undefined;
|
|
1677
1689
|
} | {
|
|
1678
1690
|
value: string;
|
|
1679
1691
|
type: "id";
|
|
@@ -2080,6 +2092,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2080
2092
|
type: "guaranteedInvalid";
|
|
2081
2093
|
})[];
|
|
2082
2094
|
};
|
|
2095
|
+
hidden?: boolean | undefined;
|
|
2083
2096
|
} | {
|
|
2084
2097
|
value: {
|
|
2085
2098
|
value: string;
|
|
@@ -2316,6 +2329,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2316
2329
|
children: ({
|
|
2317
2330
|
value: string;
|
|
2318
2331
|
type: "text";
|
|
2332
|
+
placeholder?: boolean | undefined;
|
|
2319
2333
|
} | {
|
|
2320
2334
|
value: string;
|
|
2321
2335
|
type: "id";
|
|
@@ -2329,6 +2343,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2329
2343
|
children: ({
|
|
2330
2344
|
value: string;
|
|
2331
2345
|
type: "text";
|
|
2346
|
+
placeholder?: boolean | undefined;
|
|
2332
2347
|
} | {
|
|
2333
2348
|
value: string;
|
|
2334
2349
|
type: "id";
|
|
@@ -2735,6 +2750,7 @@ export declare const WebstudioFragment: z.ZodObject<{
|
|
|
2735
2750
|
type: "guaranteedInvalid";
|
|
2736
2751
|
})[];
|
|
2737
2752
|
};
|
|
2753
|
+
hidden?: boolean | undefined;
|
|
2738
2754
|
} | {
|
|
2739
2755
|
value: {
|
|
2740
2756
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.168.0",
|
|
4
4
|
"description": "Webstudio project data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"acorn-walk": "^8.3.2",
|
|
22
22
|
"type-fest": "^4.3.1",
|
|
23
23
|
"zod": "^3.22.4",
|
|
24
|
-
"@webstudio-is/css-engine": "0.
|
|
25
|
-
"@webstudio-is/fonts": "0.
|
|
24
|
+
"@webstudio-is/css-engine": "0.168.0",
|
|
25
|
+
"@webstudio-is/fonts": "0.168.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@jest/globals": "^29.7.0",
|