@webstudio-is/sdk 0.116.0 → 0.118.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.object({
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
 
@@ -215,12 +209,6 @@ var Prop = z5.union([
215
209
  type: z5.literal("string[]"),
216
210
  value: z5.array(z5.string())
217
211
  }),
218
- z5.object({
219
- ...baseProp,
220
- type: z5.literal("dataSource"),
221
- // data source id
222
- value: z5.string()
223
- }),
224
212
  z5.object({
225
213
  ...baseProp,
226
214
  type: z5.literal("expression"),
@@ -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.ZodObject<{
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.ZodObject<{
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>;
@@ -167,27 +167,6 @@ 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<"dataSource">;
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: "dataSource";
180
- name: string;
181
- id: string;
182
- instanceId: string;
183
- required?: boolean | undefined;
184
- }, {
185
- value: string;
186
- type: "dataSource";
187
- name: string;
188
- id: string;
189
- instanceId: string;
190
- required?: boolean | undefined;
191
170
  }>, z.ZodObject<{
192
171
  type: z.ZodLiteral<"expression">;
193
172
  value: z.ZodString;
@@ -420,27 +399,6 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
420
399
  id: string;
421
400
  instanceId: string;
422
401
  required?: boolean | undefined;
423
- }>, z.ZodObject<{
424
- type: z.ZodLiteral<"dataSource">;
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: "dataSource";
433
- name: string;
434
- id: string;
435
- instanceId: string;
436
- required?: boolean | undefined;
437
- }, {
438
- value: string;
439
- type: "dataSource";
440
- name: string;
441
- id: string;
442
- instanceId: string;
443
- required?: boolean | undefined;
444
402
  }>, z.ZodObject<{
445
403
  type: z.ZodLiteral<"expression">;
446
404
  value: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk",
3
- "version": "0.116.0",
3
+ "version": "0.118.0",
4
4
  "description": "Webstudio site 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.21.4",
22
- "@webstudio-is/css-engine": "0.116.0",
23
- "@webstudio-is/fonts": "0.116.0"
22
+ "@webstudio-is/css-engine": "0.118.0",
23
+ "@webstudio-is/fonts": "0.118.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@jest/globals": "^29.7.0",