@webstudio-is/sdk 0.117.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
CHANGED
|
@@ -152,13 +152,7 @@ var DataSource = z4.union([
|
|
|
152
152
|
name: z4.string(),
|
|
153
153
|
value: DataSourceVariableValue
|
|
154
154
|
}),
|
|
155
|
-
z4.
|
|
156
|
-
type: z4.literal("expression"),
|
|
157
|
-
id: DataSourceId,
|
|
158
|
-
scopeInstanceId: z4.optional(z4.string()),
|
|
159
|
-
name: z4.string(),
|
|
160
|
-
code: z4.string()
|
|
161
|
-
})
|
|
155
|
+
z4.never()
|
|
162
156
|
]);
|
|
163
157
|
var DataSources = z4.map(DataSourceId, DataSource);
|
|
164
158
|
|
|
@@ -217,13 +211,14 @@ var Prop = z5.union([
|
|
|
217
211
|
}),
|
|
218
212
|
z5.object({
|
|
219
213
|
...baseProp,
|
|
220
|
-
type: z5.literal("
|
|
214
|
+
type: z5.literal("parameter"),
|
|
221
215
|
// data source id
|
|
222
216
|
value: z5.string()
|
|
223
217
|
}),
|
|
224
218
|
z5.object({
|
|
225
219
|
...baseProp,
|
|
226
220
|
type: z5.literal("expression"),
|
|
221
|
+
// expression code
|
|
227
222
|
value: z5.string()
|
|
228
223
|
}),
|
|
229
224
|
z5.object({
|
|
@@ -138,25 +138,7 @@ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
|
|
|
138
138
|
name: string;
|
|
139
139
|
id: string;
|
|
140
140
|
scopeInstanceId?: string | undefined;
|
|
141
|
-
}>, z.
|
|
142
|
-
type: z.ZodLiteral<"expression">;
|
|
143
|
-
id: z.ZodString;
|
|
144
|
-
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
145
|
-
name: z.ZodString;
|
|
146
|
-
code: z.ZodString;
|
|
147
|
-
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
code: string;
|
|
149
|
-
type: "expression";
|
|
150
|
-
name: string;
|
|
151
|
-
id: string;
|
|
152
|
-
scopeInstanceId?: string | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
code: string;
|
|
155
|
-
type: "expression";
|
|
156
|
-
name: string;
|
|
157
|
-
id: string;
|
|
158
|
-
scopeInstanceId?: string | undefined;
|
|
159
|
-
}>]>;
|
|
141
|
+
}>, z.ZodNever]>;
|
|
160
142
|
export type DataSource = z.infer<typeof DataSource>;
|
|
161
143
|
export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
162
144
|
type: z.ZodLiteral<"variable">;
|
|
@@ -251,23 +233,5 @@ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<
|
|
|
251
233
|
name: string;
|
|
252
234
|
id: string;
|
|
253
235
|
scopeInstanceId?: string | undefined;
|
|
254
|
-
}>, z.
|
|
255
|
-
type: z.ZodLiteral<"expression">;
|
|
256
|
-
id: z.ZodString;
|
|
257
|
-
scopeInstanceId: z.ZodOptional<z.ZodString>;
|
|
258
|
-
name: z.ZodString;
|
|
259
|
-
code: z.ZodString;
|
|
260
|
-
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
code: string;
|
|
262
|
-
type: "expression";
|
|
263
|
-
name: string;
|
|
264
|
-
id: string;
|
|
265
|
-
scopeInstanceId?: string | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
code: string;
|
|
268
|
-
type: "expression";
|
|
269
|
-
name: string;
|
|
270
|
-
id: string;
|
|
271
|
-
scopeInstanceId?: string | undefined;
|
|
272
|
-
}>]>>;
|
|
236
|
+
}>, z.ZodNever]>>;
|
|
273
237
|
export type DataSources = z.infer<typeof DataSources>;
|
|
@@ -168,7 +168,7 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
168
168
|
instanceId: string;
|
|
169
169
|
required?: boolean | undefined;
|
|
170
170
|
}>, z.ZodObject<{
|
|
171
|
-
type: z.ZodLiteral<"
|
|
171
|
+
type: z.ZodLiteral<"parameter">;
|
|
172
172
|
value: z.ZodString;
|
|
173
173
|
id: z.ZodString;
|
|
174
174
|
instanceId: z.ZodString;
|
|
@@ -176,14 +176,14 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
176
176
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
value: string;
|
|
179
|
-
type: "
|
|
179
|
+
type: "parameter";
|
|
180
180
|
name: string;
|
|
181
181
|
id: string;
|
|
182
182
|
instanceId: string;
|
|
183
183
|
required?: boolean | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
value: string;
|
|
186
|
-
type: "
|
|
186
|
+
type: "parameter";
|
|
187
187
|
name: string;
|
|
188
188
|
id: string;
|
|
189
189
|
instanceId: string;
|
|
@@ -421,7 +421,7 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
421
421
|
instanceId: string;
|
|
422
422
|
required?: boolean | undefined;
|
|
423
423
|
}>, z.ZodObject<{
|
|
424
|
-
type: z.ZodLiteral<"
|
|
424
|
+
type: z.ZodLiteral<"parameter">;
|
|
425
425
|
value: z.ZodString;
|
|
426
426
|
id: z.ZodString;
|
|
427
427
|
instanceId: z.ZodString;
|
|
@@ -429,14 +429,14 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
429
429
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
430
430
|
}, "strip", z.ZodTypeAny, {
|
|
431
431
|
value: string;
|
|
432
|
-
type: "
|
|
432
|
+
type: "parameter";
|
|
433
433
|
name: string;
|
|
434
434
|
id: string;
|
|
435
435
|
instanceId: string;
|
|
436
436
|
required?: boolean | undefined;
|
|
437
437
|
}, {
|
|
438
438
|
value: string;
|
|
439
|
-
type: "
|
|
439
|
+
type: "parameter";
|
|
440
440
|
name: string;
|
|
441
441
|
id: string;
|
|
442
442
|
instanceId: string;
|
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",
|