@webstudio-is/sdk 0.118.0 → 0.119.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 -0
- package/lib/types/schema/props.d.ts +42 -0
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -209,9 +209,16 @@ var Prop = z5.union([
|
|
|
209
209
|
type: z5.literal("string[]"),
|
|
210
210
|
value: z5.array(z5.string())
|
|
211
211
|
}),
|
|
212
|
+
z5.object({
|
|
213
|
+
...baseProp,
|
|
214
|
+
type: z5.literal("parameter"),
|
|
215
|
+
// data source id
|
|
216
|
+
value: z5.string()
|
|
217
|
+
}),
|
|
212
218
|
z5.object({
|
|
213
219
|
...baseProp,
|
|
214
220
|
type: z5.literal("expression"),
|
|
221
|
+
// expression code
|
|
215
222
|
value: z5.string()
|
|
216
223
|
}),
|
|
217
224
|
z5.object({
|
|
@@ -167,6 +167,27 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
167
167
|
id: string;
|
|
168
168
|
instanceId: string;
|
|
169
169
|
required?: boolean | undefined;
|
|
170
|
+
}>, z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<"parameter">;
|
|
172
|
+
value: z.ZodString;
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
instanceId: z.ZodString;
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
value: string;
|
|
179
|
+
type: "parameter";
|
|
180
|
+
name: string;
|
|
181
|
+
id: string;
|
|
182
|
+
instanceId: string;
|
|
183
|
+
required?: boolean | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
value: string;
|
|
186
|
+
type: "parameter";
|
|
187
|
+
name: string;
|
|
188
|
+
id: string;
|
|
189
|
+
instanceId: string;
|
|
190
|
+
required?: boolean | undefined;
|
|
170
191
|
}>, z.ZodObject<{
|
|
171
192
|
type: z.ZodLiteral<"expression">;
|
|
172
193
|
value: z.ZodString;
|
|
@@ -399,6 +420,27 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
399
420
|
id: string;
|
|
400
421
|
instanceId: string;
|
|
401
422
|
required?: boolean | undefined;
|
|
423
|
+
}>, z.ZodObject<{
|
|
424
|
+
type: z.ZodLiteral<"parameter">;
|
|
425
|
+
value: z.ZodString;
|
|
426
|
+
id: z.ZodString;
|
|
427
|
+
instanceId: z.ZodString;
|
|
428
|
+
name: z.ZodString;
|
|
429
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
value: string;
|
|
432
|
+
type: "parameter";
|
|
433
|
+
name: string;
|
|
434
|
+
id: string;
|
|
435
|
+
instanceId: string;
|
|
436
|
+
required?: boolean | undefined;
|
|
437
|
+
}, {
|
|
438
|
+
value: string;
|
|
439
|
+
type: "parameter";
|
|
440
|
+
name: string;
|
|
441
|
+
id: string;
|
|
442
|
+
instanceId: string;
|
|
443
|
+
required?: boolean | undefined;
|
|
402
444
|
}>, z.ZodObject<{
|
|
403
445
|
type: z.ZodLiteral<"expression">;
|
|
404
446
|
value: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.119.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.119.0",
|
|
23
|
+
"@webstudio-is/fonts": "0.119.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",
|