@webstudio-is/sdk 0.216.0 → 0.218.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.
@@ -105,8 +105,6 @@ export declare const Instance: z.ZodObject<{
105
105
  }>]>, "many">;
106
106
  }, "strip", z.ZodTypeAny, {
107
107
  type: "instance";
108
- id: string;
109
- component: string;
110
108
  children: ({
111
109
  value: string;
112
110
  type: "text";
@@ -118,12 +116,12 @@ export declare const Instance: z.ZodObject<{
118
116
  value: string;
119
117
  type: "expression";
120
118
  })[];
119
+ id: string;
120
+ component: string;
121
121
  label?: string | undefined;
122
122
  tag?: string | undefined;
123
123
  }, {
124
124
  type: "instance";
125
- id: string;
126
- component: string;
127
125
  children: ({
128
126
  value: string;
129
127
  type: "text";
@@ -135,6 +133,8 @@ export declare const Instance: z.ZodObject<{
135
133
  value: string;
136
134
  type: "expression";
137
135
  })[];
136
+ id: string;
137
+ component: string;
138
138
  label?: string | undefined;
139
139
  tag?: string | undefined;
140
140
  }>;
@@ -178,8 +178,6 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
178
178
  }>]>, "many">;
179
179
  }, "strip", z.ZodTypeAny, {
180
180
  type: "instance";
181
- id: string;
182
- component: string;
183
181
  children: ({
184
182
  value: string;
185
183
  type: "text";
@@ -191,12 +189,12 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
191
189
  value: string;
192
190
  type: "expression";
193
191
  })[];
192
+ id: string;
193
+ component: string;
194
194
  label?: string | undefined;
195
195
  tag?: string | undefined;
196
196
  }, {
197
197
  type: "instance";
198
- id: string;
199
- component: string;
200
198
  children: ({
201
199
  value: string;
202
200
  type: "text";
@@ -208,225 +206,9 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
208
206
  value: string;
209
207
  type: "expression";
210
208
  })[];
209
+ id: string;
210
+ component: string;
211
211
  label?: string | undefined;
212
212
  tag?: string | undefined;
213
213
  }>>;
214
214
  export type Instances = z.infer<typeof Instances>;
215
- export declare const MatcherRelation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
216
- export type MatcherRelation = z.infer<typeof MatcherRelation>;
217
- export declare const MatcherOperation: z.ZodObject<{
218
- $eq: z.ZodOptional<z.ZodString>;
219
- $neq: z.ZodOptional<z.ZodString>;
220
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
222
- }, "strip", z.ZodTypeAny, {
223
- $eq?: string | undefined;
224
- $neq?: string | undefined;
225
- $in?: string[] | undefined;
226
- $nin?: string[] | undefined;
227
- }, {
228
- $eq?: string | undefined;
229
- $neq?: string | undefined;
230
- $in?: string[] | undefined;
231
- $nin?: string[] | undefined;
232
- }>;
233
- export type MatcherOperation = z.infer<typeof MatcherOperation>;
234
- export declare const Matcher: z.ZodObject<{
235
- relation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
236
- component: z.ZodOptional<z.ZodObject<{
237
- $eq: z.ZodOptional<z.ZodString>;
238
- $neq: z.ZodOptional<z.ZodString>;
239
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
- }, "strip", z.ZodTypeAny, {
242
- $eq?: string | undefined;
243
- $neq?: string | undefined;
244
- $in?: string[] | undefined;
245
- $nin?: string[] | undefined;
246
- }, {
247
- $eq?: string | undefined;
248
- $neq?: string | undefined;
249
- $in?: string[] | undefined;
250
- $nin?: string[] | undefined;
251
- }>>;
252
- tag: z.ZodOptional<z.ZodObject<{
253
- $eq: z.ZodOptional<z.ZodString>;
254
- $neq: z.ZodOptional<z.ZodString>;
255
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
257
- }, "strip", z.ZodTypeAny, {
258
- $eq?: string | undefined;
259
- $neq?: string | undefined;
260
- $in?: string[] | undefined;
261
- $nin?: string[] | undefined;
262
- }, {
263
- $eq?: string | undefined;
264
- $neq?: string | undefined;
265
- $in?: string[] | undefined;
266
- $nin?: string[] | undefined;
267
- }>>;
268
- text: z.ZodOptional<z.ZodLiteral<false>>;
269
- }, "strip", z.ZodTypeAny, {
270
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
271
- tag?: {
272
- $eq?: string | undefined;
273
- $neq?: string | undefined;
274
- $in?: string[] | undefined;
275
- $nin?: string[] | undefined;
276
- } | undefined;
277
- text?: false | undefined;
278
- component?: {
279
- $eq?: string | undefined;
280
- $neq?: string | undefined;
281
- $in?: string[] | undefined;
282
- $nin?: string[] | undefined;
283
- } | undefined;
284
- }, {
285
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
286
- tag?: {
287
- $eq?: string | undefined;
288
- $neq?: string | undefined;
289
- $in?: string[] | undefined;
290
- $nin?: string[] | undefined;
291
- } | undefined;
292
- text?: false | undefined;
293
- component?: {
294
- $eq?: string | undefined;
295
- $neq?: string | undefined;
296
- $in?: string[] | undefined;
297
- $nin?: string[] | undefined;
298
- } | undefined;
299
- }>;
300
- export type Matcher = z.infer<typeof Matcher>;
301
- export declare const Matchers: z.ZodUnion<[z.ZodObject<{
302
- relation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
303
- component: z.ZodOptional<z.ZodObject<{
304
- $eq: z.ZodOptional<z.ZodString>;
305
- $neq: z.ZodOptional<z.ZodString>;
306
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
307
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
308
- }, "strip", z.ZodTypeAny, {
309
- $eq?: string | undefined;
310
- $neq?: string | undefined;
311
- $in?: string[] | undefined;
312
- $nin?: string[] | undefined;
313
- }, {
314
- $eq?: string | undefined;
315
- $neq?: string | undefined;
316
- $in?: string[] | undefined;
317
- $nin?: string[] | undefined;
318
- }>>;
319
- tag: z.ZodOptional<z.ZodObject<{
320
- $eq: z.ZodOptional<z.ZodString>;
321
- $neq: z.ZodOptional<z.ZodString>;
322
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
323
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
324
- }, "strip", z.ZodTypeAny, {
325
- $eq?: string | undefined;
326
- $neq?: string | undefined;
327
- $in?: string[] | undefined;
328
- $nin?: string[] | undefined;
329
- }, {
330
- $eq?: string | undefined;
331
- $neq?: string | undefined;
332
- $in?: string[] | undefined;
333
- $nin?: string[] | undefined;
334
- }>>;
335
- text: z.ZodOptional<z.ZodLiteral<false>>;
336
- }, "strip", z.ZodTypeAny, {
337
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
338
- tag?: {
339
- $eq?: string | undefined;
340
- $neq?: string | undefined;
341
- $in?: string[] | undefined;
342
- $nin?: string[] | undefined;
343
- } | undefined;
344
- text?: false | undefined;
345
- component?: {
346
- $eq?: string | undefined;
347
- $neq?: string | undefined;
348
- $in?: string[] | undefined;
349
- $nin?: string[] | undefined;
350
- } | undefined;
351
- }, {
352
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
353
- tag?: {
354
- $eq?: string | undefined;
355
- $neq?: string | undefined;
356
- $in?: string[] | undefined;
357
- $nin?: string[] | undefined;
358
- } | undefined;
359
- text?: false | undefined;
360
- component?: {
361
- $eq?: string | undefined;
362
- $neq?: string | undefined;
363
- $in?: string[] | undefined;
364
- $nin?: string[] | undefined;
365
- } | undefined;
366
- }>, z.ZodArray<z.ZodObject<{
367
- relation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
368
- component: z.ZodOptional<z.ZodObject<{
369
- $eq: z.ZodOptional<z.ZodString>;
370
- $neq: z.ZodOptional<z.ZodString>;
371
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
373
- }, "strip", z.ZodTypeAny, {
374
- $eq?: string | undefined;
375
- $neq?: string | undefined;
376
- $in?: string[] | undefined;
377
- $nin?: string[] | undefined;
378
- }, {
379
- $eq?: string | undefined;
380
- $neq?: string | undefined;
381
- $in?: string[] | undefined;
382
- $nin?: string[] | undefined;
383
- }>>;
384
- tag: z.ZodOptional<z.ZodObject<{
385
- $eq: z.ZodOptional<z.ZodString>;
386
- $neq: z.ZodOptional<z.ZodString>;
387
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
388
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
389
- }, "strip", z.ZodTypeAny, {
390
- $eq?: string | undefined;
391
- $neq?: string | undefined;
392
- $in?: string[] | undefined;
393
- $nin?: string[] | undefined;
394
- }, {
395
- $eq?: string | undefined;
396
- $neq?: string | undefined;
397
- $in?: string[] | undefined;
398
- $nin?: string[] | undefined;
399
- }>>;
400
- text: z.ZodOptional<z.ZodLiteral<false>>;
401
- }, "strip", z.ZodTypeAny, {
402
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
403
- tag?: {
404
- $eq?: string | undefined;
405
- $neq?: string | undefined;
406
- $in?: string[] | undefined;
407
- $nin?: string[] | undefined;
408
- } | undefined;
409
- text?: false | undefined;
410
- component?: {
411
- $eq?: string | undefined;
412
- $neq?: string | undefined;
413
- $in?: string[] | undefined;
414
- $nin?: string[] | undefined;
415
- } | undefined;
416
- }, {
417
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
418
- tag?: {
419
- $eq?: string | undefined;
420
- $neq?: string | undefined;
421
- $in?: string[] | undefined;
422
- $nin?: string[] | undefined;
423
- } | undefined;
424
- text?: false | undefined;
425
- component?: {
426
- $eq?: string | undefined;
427
- $neq?: string | undefined;
428
- $in?: string[] | undefined;
429
- $nin?: string[] | undefined;
430
- } | undefined;
431
- }>, "many">]>;
432
- export type Matchers = z.infer<typeof Matchers>;
@@ -12,13 +12,13 @@ export declare const Folder: z.ZodObject<{
12
12
  children: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  name: string;
15
- id: string;
16
15
  children: string[];
16
+ id: string;
17
17
  slug: string;
18
18
  }, {
19
19
  name: string;
20
- id: string;
21
20
  children: string[];
21
+ id: string;
22
22
  slug: string;
23
23
  }>;
24
24
  export type Folder = z.infer<typeof Folder>;
@@ -494,23 +494,23 @@ export declare const Pages: z.ZodObject<{
494
494
  children: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
495
495
  }, "strip", z.ZodTypeAny, {
496
496
  name: string;
497
- id: string;
498
497
  children: string[];
498
+ id: string;
499
499
  slug: string;
500
500
  }, {
501
501
  name: string;
502
- id: string;
503
502
  children: string[];
503
+ id: string;
504
504
  slug: string;
505
505
  }>, "many">, {
506
506
  name: string;
507
- id: string;
508
507
  children: string[];
508
+ id: string;
509
509
  slug: string;
510
510
  }[], {
511
511
  name: string;
512
- id: string;
513
512
  children: string[];
513
+ id: string;
514
514
  slug: string;
515
515
  }[]>;
516
516
  }, "strip", z.ZodTypeAny, {
@@ -574,8 +574,8 @@ export declare const Pages: z.ZodObject<{
574
574
  }[];
575
575
  folders: {
576
576
  name: string;
577
- id: string;
578
577
  children: string[];
578
+ id: string;
579
579
  slug: string;
580
580
  }[];
581
581
  meta?: {
@@ -653,8 +653,8 @@ export declare const Pages: z.ZodObject<{
653
653
  }[];
654
654
  folders: {
655
655
  name: string;
656
- id: string;
657
656
  children: string[];
657
+ id: string;
658
658
  slug: string;
659
659
  }[];
660
660
  meta?: {
@@ -84,8 +84,6 @@ export declare const WebstudioFragment: z.ZodObject<{
84
84
  }>]>, "many">;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  type: "instance";
87
- id: string;
88
- component: string;
89
87
  children: ({
90
88
  value: string;
91
89
  type: "text";
@@ -97,12 +95,12 @@ export declare const WebstudioFragment: z.ZodObject<{
97
95
  value: string;
98
96
  type: "expression";
99
97
  })[];
98
+ id: string;
99
+ component: string;
100
100
  label?: string | undefined;
101
101
  tag?: string | undefined;
102
102
  }, {
103
103
  type: "instance";
104
- id: string;
105
- component: string;
106
104
  children: ({
107
105
  value: string;
108
106
  type: "text";
@@ -114,6 +112,8 @@ export declare const WebstudioFragment: z.ZodObject<{
114
112
  value: string;
115
113
  type: "expression";
116
114
  })[];
115
+ id: string;
116
+ component: string;
117
117
  label?: string | undefined;
118
118
  tag?: string | undefined;
119
119
  }>, "many">;
@@ -20398,17 +20398,6 @@ export declare const WebstudioFragment: z.ZodObject<{
20398
20398
  property: import("@webstudio-is/css-engine").StyleProperty;
20399
20399
  }>, "many">;
20400
20400
  }, "strip", z.ZodTypeAny, {
20401
- children: ({
20402
- value: string;
20403
- type: "text";
20404
- placeholder?: boolean | undefined;
20405
- } | {
20406
- value: string;
20407
- type: "id";
20408
- } | {
20409
- value: string;
20410
- type: "expression";
20411
- })[];
20412
20401
  props: ({
20413
20402
  value: number;
20414
20403
  type: "number";
@@ -21829,6 +21818,17 @@ export declare const WebstudioFragment: z.ZodObject<{
21829
21818
  instanceId: string;
21830
21819
  required?: boolean | undefined;
21831
21820
  })[];
21821
+ children: ({
21822
+ value: string;
21823
+ type: "text";
21824
+ placeholder?: boolean | undefined;
21825
+ } | {
21826
+ value: string;
21827
+ type: "id";
21828
+ } | {
21829
+ value: string;
21830
+ type: "expression";
21831
+ })[];
21832
21832
  styles: {
21833
21833
  value: {
21834
21834
  value: {
@@ -22440,8 +22440,6 @@ export declare const WebstudioFragment: z.ZodObject<{
22440
22440
  }[];
22441
22441
  instances: {
22442
22442
  type: "instance";
22443
- id: string;
22444
- component: string;
22445
22443
  children: ({
22446
22444
  value: string;
22447
22445
  type: "text";
@@ -22453,6 +22451,8 @@ export declare const WebstudioFragment: z.ZodObject<{
22453
22451
  value: string;
22454
22452
  type: "expression";
22455
22453
  })[];
22454
+ id: string;
22455
+ component: string;
22456
22456
  label?: string | undefined;
22457
22457
  tag?: string | undefined;
22458
22458
  }[];
@@ -22556,17 +22556,6 @@ export declare const WebstudioFragment: z.ZodObject<{
22556
22556
  id: string;
22557
22557
  })[];
22558
22558
  }, {
22559
- children: ({
22560
- value: string;
22561
- type: "text";
22562
- placeholder?: boolean | undefined;
22563
- } | {
22564
- value: string;
22565
- type: "id";
22566
- } | {
22567
- value: string;
22568
- type: "expression";
22569
- })[];
22570
22559
  props: ({
22571
22560
  value: number;
22572
22561
  type: "number";
@@ -23987,6 +23976,17 @@ export declare const WebstudioFragment: z.ZodObject<{
23987
23976
  instanceId: string;
23988
23977
  required?: boolean | undefined;
23989
23978
  })[];
23979
+ children: ({
23980
+ value: string;
23981
+ type: "text";
23982
+ placeholder?: boolean | undefined;
23983
+ } | {
23984
+ value: string;
23985
+ type: "id";
23986
+ } | {
23987
+ value: string;
23988
+ type: "expression";
23989
+ })[];
23990
23990
  styles: {
23991
23991
  value: {
23992
23992
  value: {
@@ -24598,8 +24598,6 @@ export declare const WebstudioFragment: z.ZodObject<{
24598
24598
  }[];
24599
24599
  instances: {
24600
24600
  type: "instance";
24601
- id: string;
24602
- component: string;
24603
24601
  children: ({
24604
24602
  value: string;
24605
24603
  type: "text";
@@ -24611,6 +24609,8 @@ export declare const WebstudioFragment: z.ZodObject<{
24611
24609
  value: string;
24612
24610
  type: "expression";
24613
24611
  })[];
24612
+ id: string;
24613
+ component: string;
24614
24614
  label?: string | undefined;
24615
24615
  tag?: string | undefined;
24616
24616
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk",
3
- "version": "0.216.0",
3
+ "version": "0.218.0",
4
4
  "description": "Webstudio project data schema",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -40,15 +40,15 @@
40
40
  "reserved-identifiers": "^1.0.0",
41
41
  "type-fest": "^4.37.0",
42
42
  "zod": "^3.24.2",
43
- "@webstudio-is/css-engine": "0.216.0",
44
- "@webstudio-is/fonts": "0.216.0",
45
- "@webstudio-is/icons": "0.216.0"
43
+ "@webstudio-is/css-engine": "0.218.0",
44
+ "@webstudio-is/fonts": "0.218.0",
45
+ "@webstudio-is/icons": "0.218.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "html-tags": "^4.0.0",
49
49
  "vitest": "^3.0.8",
50
50
  "@webstudio-is/css-data": "0.0.0",
51
- "@webstudio-is/template": "0.216.0",
51
+ "@webstudio-is/template": "0.218.0",
52
52
  "@webstudio-is/tsconfig": "1.0.7"
53
53
  },
54
54
  "scripts": {