@webstudio-is/sdk 0.140.0 → 0.141.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 +2 -1
- package/lib/types/schema/pages.d.ts +19 -15
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -71,7 +71,8 @@ var commonPageFields = {
|
|
|
71
71
|
).optional()
|
|
72
72
|
}),
|
|
73
73
|
rootInstanceId: z2.string(),
|
|
74
|
-
|
|
74
|
+
// @todo make required after releasing migration
|
|
75
|
+
systemDataSourceId: z2.optional(z2.string())
|
|
75
76
|
};
|
|
76
77
|
var HomePagePath = z2.string().refine((path) => path === "", "Home page path must be empty");
|
|
77
78
|
var HomePage = z2.object({
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export type System = {
|
|
3
|
+
params: Record<string, string | undefined>;
|
|
4
|
+
search: Record<string, string | undefined>;
|
|
5
|
+
};
|
|
2
6
|
export declare const FolderName: z.ZodEffects<z.ZodString, string, string>;
|
|
3
7
|
export declare const Folder: z.ZodObject<{
|
|
4
8
|
id: z.ZodString;
|
|
@@ -73,7 +77,7 @@ declare const Page: z.ZodObject<{
|
|
|
73
77
|
}[] | undefined;
|
|
74
78
|
}>;
|
|
75
79
|
rootInstanceId: z.ZodString;
|
|
76
|
-
|
|
80
|
+
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
77
81
|
}, "strip", z.ZodTypeAny, {
|
|
78
82
|
path: string;
|
|
79
83
|
name: string;
|
|
@@ -94,7 +98,7 @@ declare const Page: z.ZodObject<{
|
|
|
94
98
|
id: string;
|
|
95
99
|
title: string;
|
|
96
100
|
rootInstanceId: string;
|
|
97
|
-
|
|
101
|
+
systemDataSourceId?: string | undefined;
|
|
98
102
|
}, {
|
|
99
103
|
path: string;
|
|
100
104
|
name: string;
|
|
@@ -115,7 +119,7 @@ declare const Page: z.ZodObject<{
|
|
|
115
119
|
id: string;
|
|
116
120
|
title: string;
|
|
117
121
|
rootInstanceId: string;
|
|
118
|
-
|
|
122
|
+
systemDataSourceId?: string | undefined;
|
|
119
123
|
}>;
|
|
120
124
|
declare const ProjectMeta: z.ZodObject<{
|
|
121
125
|
siteName: z.ZodOptional<z.ZodString>;
|
|
@@ -241,7 +245,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
241
245
|
}[] | undefined;
|
|
242
246
|
}>;
|
|
243
247
|
rootInstanceId: z.ZodString;
|
|
244
|
-
|
|
248
|
+
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
245
249
|
}, "strip", z.ZodTypeAny, {
|
|
246
250
|
path: string;
|
|
247
251
|
name: string;
|
|
@@ -262,7 +266,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
262
266
|
id: string;
|
|
263
267
|
title: string;
|
|
264
268
|
rootInstanceId: string;
|
|
265
|
-
|
|
269
|
+
systemDataSourceId?: string | undefined;
|
|
266
270
|
}, {
|
|
267
271
|
path: string;
|
|
268
272
|
name: string;
|
|
@@ -283,7 +287,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
283
287
|
id: string;
|
|
284
288
|
title: string;
|
|
285
289
|
rootInstanceId: string;
|
|
286
|
-
|
|
290
|
+
systemDataSourceId?: string | undefined;
|
|
287
291
|
}>;
|
|
288
292
|
pages: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
289
293
|
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>;
|
|
@@ -337,7 +341,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
337
341
|
}[] | undefined;
|
|
338
342
|
}>;
|
|
339
343
|
rootInstanceId: z.ZodString;
|
|
340
|
-
|
|
344
|
+
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
341
345
|
}, "strip", z.ZodTypeAny, {
|
|
342
346
|
path: string;
|
|
343
347
|
name: string;
|
|
@@ -358,7 +362,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
358
362
|
id: string;
|
|
359
363
|
title: string;
|
|
360
364
|
rootInstanceId: string;
|
|
361
|
-
|
|
365
|
+
systemDataSourceId?: string | undefined;
|
|
362
366
|
}, {
|
|
363
367
|
path: string;
|
|
364
368
|
name: string;
|
|
@@ -379,7 +383,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
379
383
|
id: string;
|
|
380
384
|
title: string;
|
|
381
385
|
rootInstanceId: string;
|
|
382
|
-
|
|
386
|
+
systemDataSourceId?: string | undefined;
|
|
383
387
|
}>, "many">, {
|
|
384
388
|
path: string;
|
|
385
389
|
name: string;
|
|
@@ -400,7 +404,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
400
404
|
id: string;
|
|
401
405
|
title: string;
|
|
402
406
|
rootInstanceId: string;
|
|
403
|
-
|
|
407
|
+
systemDataSourceId?: string | undefined;
|
|
404
408
|
}[], {
|
|
405
409
|
path: string;
|
|
406
410
|
name: string;
|
|
@@ -421,7 +425,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
421
425
|
id: string;
|
|
422
426
|
title: string;
|
|
423
427
|
rootInstanceId: string;
|
|
424
|
-
|
|
428
|
+
systemDataSourceId?: string | undefined;
|
|
425
429
|
}[]>;
|
|
426
430
|
folders: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
427
431
|
id: z.ZodString;
|
|
@@ -470,7 +474,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
470
474
|
id: string;
|
|
471
475
|
title: string;
|
|
472
476
|
rootInstanceId: string;
|
|
473
|
-
|
|
477
|
+
systemDataSourceId?: string | undefined;
|
|
474
478
|
};
|
|
475
479
|
pages: {
|
|
476
480
|
path: string;
|
|
@@ -492,7 +496,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
492
496
|
id: string;
|
|
493
497
|
title: string;
|
|
494
498
|
rootInstanceId: string;
|
|
495
|
-
|
|
499
|
+
systemDataSourceId?: string | undefined;
|
|
496
500
|
}[];
|
|
497
501
|
folders: {
|
|
498
502
|
name: string;
|
|
@@ -534,7 +538,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
534
538
|
id: string;
|
|
535
539
|
title: string;
|
|
536
540
|
rootInstanceId: string;
|
|
537
|
-
|
|
541
|
+
systemDataSourceId?: string | undefined;
|
|
538
542
|
};
|
|
539
543
|
pages: {
|
|
540
544
|
path: string;
|
|
@@ -556,7 +560,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
556
560
|
id: string;
|
|
557
561
|
title: string;
|
|
558
562
|
rootInstanceId: string;
|
|
559
|
-
|
|
563
|
+
systemDataSourceId?: string | undefined;
|
|
560
564
|
}[];
|
|
561
565
|
folders: {
|
|
562
566
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.141.0",
|
|
4
4
|
"description": "Webstudio project data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "^3.22.4",
|
|
22
|
-
"@webstudio-is/css-engine": "0.
|
|
23
|
-
"@webstudio-is/fonts": "0.
|
|
22
|
+
"@webstudio-is/css-engine": "0.141.0",
|
|
23
|
+
"@webstudio-is/fonts": "0.141.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@jest/globals": "^29.7.0",
|