@webstudio-is/sdk 0.111.1-1b465d6.0 → 0.112.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 +7 -1
- package/lib/types/schema/pages.d.ts +102 -0
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -45,7 +45,13 @@ var commonPageFields = {
|
|
|
45
45
|
description: z2.string().optional(),
|
|
46
46
|
title: z2.string().optional(),
|
|
47
47
|
excludePageFromSearch: z2.boolean().optional(),
|
|
48
|
-
socialImageAssetId: z2.string().optional()
|
|
48
|
+
socialImageAssetId: z2.string().optional(),
|
|
49
|
+
custom: z2.array(
|
|
50
|
+
z2.object({
|
|
51
|
+
property: z2.string(),
|
|
52
|
+
content: z2.string()
|
|
53
|
+
})
|
|
54
|
+
).optional()
|
|
49
55
|
}),
|
|
50
56
|
rootInstanceId: z2.string()
|
|
51
57
|
};
|
|
@@ -14,16 +14,34 @@ declare const Page: z.ZodObject<{
|
|
|
14
14
|
title: z.ZodOptional<z.ZodString>;
|
|
15
15
|
excludePageFromSearch: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
socialImageAssetId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
property: z.ZodString;
|
|
19
|
+
content: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
property: string;
|
|
22
|
+
content: string;
|
|
23
|
+
}, {
|
|
24
|
+
property: string;
|
|
25
|
+
content: string;
|
|
26
|
+
}>, "many">>;
|
|
17
27
|
}, "strip", z.ZodTypeAny, {
|
|
18
28
|
description?: string | undefined;
|
|
19
29
|
title?: string | undefined;
|
|
20
30
|
excludePageFromSearch?: boolean | undefined;
|
|
21
31
|
socialImageAssetId?: string | undefined;
|
|
32
|
+
custom?: {
|
|
33
|
+
property: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}[] | undefined;
|
|
22
36
|
}, {
|
|
23
37
|
description?: string | undefined;
|
|
24
38
|
title?: string | undefined;
|
|
25
39
|
excludePageFromSearch?: boolean | undefined;
|
|
26
40
|
socialImageAssetId?: string | undefined;
|
|
41
|
+
custom?: {
|
|
42
|
+
property: string;
|
|
43
|
+
content: string;
|
|
44
|
+
}[] | undefined;
|
|
27
45
|
}>;
|
|
28
46
|
rootInstanceId: z.ZodString;
|
|
29
47
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -34,6 +52,10 @@ declare const Page: z.ZodObject<{
|
|
|
34
52
|
title?: string | undefined;
|
|
35
53
|
excludePageFromSearch?: boolean | undefined;
|
|
36
54
|
socialImageAssetId?: string | undefined;
|
|
55
|
+
custom?: {
|
|
56
|
+
property: string;
|
|
57
|
+
content: string;
|
|
58
|
+
}[] | undefined;
|
|
37
59
|
};
|
|
38
60
|
id: string;
|
|
39
61
|
title: string;
|
|
@@ -46,6 +68,10 @@ declare const Page: z.ZodObject<{
|
|
|
46
68
|
title?: string | undefined;
|
|
47
69
|
excludePageFromSearch?: boolean | undefined;
|
|
48
70
|
socialImageAssetId?: string | undefined;
|
|
71
|
+
custom?: {
|
|
72
|
+
property: string;
|
|
73
|
+
content: string;
|
|
74
|
+
}[] | undefined;
|
|
49
75
|
};
|
|
50
76
|
id: string;
|
|
51
77
|
title: string;
|
|
@@ -90,16 +116,34 @@ export declare const Pages: z.ZodObject<{
|
|
|
90
116
|
title: z.ZodOptional<z.ZodString>;
|
|
91
117
|
excludePageFromSearch: z.ZodOptional<z.ZodBoolean>;
|
|
92
118
|
socialImageAssetId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
120
|
+
property: z.ZodString;
|
|
121
|
+
content: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
property: string;
|
|
124
|
+
content: string;
|
|
125
|
+
}, {
|
|
126
|
+
property: string;
|
|
127
|
+
content: string;
|
|
128
|
+
}>, "many">>;
|
|
93
129
|
}, "strip", z.ZodTypeAny, {
|
|
94
130
|
description?: string | undefined;
|
|
95
131
|
title?: string | undefined;
|
|
96
132
|
excludePageFromSearch?: boolean | undefined;
|
|
97
133
|
socialImageAssetId?: string | undefined;
|
|
134
|
+
custom?: {
|
|
135
|
+
property: string;
|
|
136
|
+
content: string;
|
|
137
|
+
}[] | undefined;
|
|
98
138
|
}, {
|
|
99
139
|
description?: string | undefined;
|
|
100
140
|
title?: string | undefined;
|
|
101
141
|
excludePageFromSearch?: boolean | undefined;
|
|
102
142
|
socialImageAssetId?: string | undefined;
|
|
143
|
+
custom?: {
|
|
144
|
+
property: string;
|
|
145
|
+
content: string;
|
|
146
|
+
}[] | undefined;
|
|
103
147
|
}>;
|
|
104
148
|
rootInstanceId: z.ZodString;
|
|
105
149
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -110,6 +154,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
110
154
|
title?: string | undefined;
|
|
111
155
|
excludePageFromSearch?: boolean | undefined;
|
|
112
156
|
socialImageAssetId?: string | undefined;
|
|
157
|
+
custom?: {
|
|
158
|
+
property: string;
|
|
159
|
+
content: string;
|
|
160
|
+
}[] | undefined;
|
|
113
161
|
};
|
|
114
162
|
id: string;
|
|
115
163
|
title: string;
|
|
@@ -122,6 +170,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
122
170
|
title?: string | undefined;
|
|
123
171
|
excludePageFromSearch?: boolean | undefined;
|
|
124
172
|
socialImageAssetId?: string | undefined;
|
|
173
|
+
custom?: {
|
|
174
|
+
property: string;
|
|
175
|
+
content: string;
|
|
176
|
+
}[] | undefined;
|
|
125
177
|
};
|
|
126
178
|
id: string;
|
|
127
179
|
title: string;
|
|
@@ -137,16 +189,34 @@ export declare const Pages: z.ZodObject<{
|
|
|
137
189
|
title: z.ZodOptional<z.ZodString>;
|
|
138
190
|
excludePageFromSearch: z.ZodOptional<z.ZodBoolean>;
|
|
139
191
|
socialImageAssetId: z.ZodOptional<z.ZodString>;
|
|
192
|
+
custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
property: z.ZodString;
|
|
194
|
+
content: z.ZodString;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
property: string;
|
|
197
|
+
content: string;
|
|
198
|
+
}, {
|
|
199
|
+
property: string;
|
|
200
|
+
content: string;
|
|
201
|
+
}>, "many">>;
|
|
140
202
|
}, "strip", z.ZodTypeAny, {
|
|
141
203
|
description?: string | undefined;
|
|
142
204
|
title?: string | undefined;
|
|
143
205
|
excludePageFromSearch?: boolean | undefined;
|
|
144
206
|
socialImageAssetId?: string | undefined;
|
|
207
|
+
custom?: {
|
|
208
|
+
property: string;
|
|
209
|
+
content: string;
|
|
210
|
+
}[] | undefined;
|
|
145
211
|
}, {
|
|
146
212
|
description?: string | undefined;
|
|
147
213
|
title?: string | undefined;
|
|
148
214
|
excludePageFromSearch?: boolean | undefined;
|
|
149
215
|
socialImageAssetId?: string | undefined;
|
|
216
|
+
custom?: {
|
|
217
|
+
property: string;
|
|
218
|
+
content: string;
|
|
219
|
+
}[] | undefined;
|
|
150
220
|
}>;
|
|
151
221
|
rootInstanceId: z.ZodString;
|
|
152
222
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -157,6 +227,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
157
227
|
title?: string | undefined;
|
|
158
228
|
excludePageFromSearch?: boolean | undefined;
|
|
159
229
|
socialImageAssetId?: string | undefined;
|
|
230
|
+
custom?: {
|
|
231
|
+
property: string;
|
|
232
|
+
content: string;
|
|
233
|
+
}[] | undefined;
|
|
160
234
|
};
|
|
161
235
|
id: string;
|
|
162
236
|
title: string;
|
|
@@ -169,6 +243,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
169
243
|
title?: string | undefined;
|
|
170
244
|
excludePageFromSearch?: boolean | undefined;
|
|
171
245
|
socialImageAssetId?: string | undefined;
|
|
246
|
+
custom?: {
|
|
247
|
+
property: string;
|
|
248
|
+
content: string;
|
|
249
|
+
}[] | undefined;
|
|
172
250
|
};
|
|
173
251
|
id: string;
|
|
174
252
|
title: string;
|
|
@@ -181,6 +259,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
181
259
|
title?: string | undefined;
|
|
182
260
|
excludePageFromSearch?: boolean | undefined;
|
|
183
261
|
socialImageAssetId?: string | undefined;
|
|
262
|
+
custom?: {
|
|
263
|
+
property: string;
|
|
264
|
+
content: string;
|
|
265
|
+
}[] | undefined;
|
|
184
266
|
};
|
|
185
267
|
id: string;
|
|
186
268
|
title: string;
|
|
@@ -193,6 +275,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
193
275
|
title?: string | undefined;
|
|
194
276
|
excludePageFromSearch?: boolean | undefined;
|
|
195
277
|
socialImageAssetId?: string | undefined;
|
|
278
|
+
custom?: {
|
|
279
|
+
property: string;
|
|
280
|
+
content: string;
|
|
281
|
+
}[] | undefined;
|
|
196
282
|
};
|
|
197
283
|
id: string;
|
|
198
284
|
title: string;
|
|
@@ -207,6 +293,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
207
293
|
title?: string | undefined;
|
|
208
294
|
excludePageFromSearch?: boolean | undefined;
|
|
209
295
|
socialImageAssetId?: string | undefined;
|
|
296
|
+
custom?: {
|
|
297
|
+
property: string;
|
|
298
|
+
content: string;
|
|
299
|
+
}[] | undefined;
|
|
210
300
|
};
|
|
211
301
|
id: string;
|
|
212
302
|
title: string;
|
|
@@ -220,6 +310,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
220
310
|
title?: string | undefined;
|
|
221
311
|
excludePageFromSearch?: boolean | undefined;
|
|
222
312
|
socialImageAssetId?: string | undefined;
|
|
313
|
+
custom?: {
|
|
314
|
+
property: string;
|
|
315
|
+
content: string;
|
|
316
|
+
}[] | undefined;
|
|
223
317
|
};
|
|
224
318
|
id: string;
|
|
225
319
|
title: string;
|
|
@@ -239,6 +333,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
239
333
|
title?: string | undefined;
|
|
240
334
|
excludePageFromSearch?: boolean | undefined;
|
|
241
335
|
socialImageAssetId?: string | undefined;
|
|
336
|
+
custom?: {
|
|
337
|
+
property: string;
|
|
338
|
+
content: string;
|
|
339
|
+
}[] | undefined;
|
|
242
340
|
};
|
|
243
341
|
id: string;
|
|
244
342
|
title: string;
|
|
@@ -252,6 +350,10 @@ export declare const Pages: z.ZodObject<{
|
|
|
252
350
|
title?: string | undefined;
|
|
253
351
|
excludePageFromSearch?: boolean | undefined;
|
|
254
352
|
socialImageAssetId?: string | undefined;
|
|
353
|
+
custom?: {
|
|
354
|
+
property: string;
|
|
355
|
+
content: string;
|
|
356
|
+
}[] | undefined;
|
|
255
357
|
};
|
|
256
358
|
id: string;
|
|
257
359
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
4
4
|
"description": "Webstudio site data schema",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "^3.21.4",
|
|
22
|
-
"@webstudio-is/css-engine": "0.
|
|
23
|
-
"@webstudio-is/fonts": "0.
|
|
22
|
+
"@webstudio-is/css-engine": "0.112.0",
|
|
23
|
+
"@webstudio-is/fonts": "0.112.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@jest/globals": "^29.7.0",
|
|
27
|
-
"@webstudio-is/
|
|
28
|
-
"@webstudio-is/
|
|
27
|
+
"@webstudio-is/jest-config": "1.0.7",
|
|
28
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"typecheck": "tsc",
|