@webstudio-is/sdk 0.209.0 → 0.212.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.
@@ -5064,6 +5064,30 @@ export type PresetStyleDecl = Simplify<Omit<z.infer<typeof PresetStyleDecl>, "pr
5064
5064
  export type PresetStyle<Tag extends HtmlTags = HtmlTags> = Partial<Record<Tag, PresetStyleDecl[]>>;
5065
5065
  declare const WsComponentPropsMeta: z.ZodObject<{
5066
5066
  props: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
5067
+ control: z.ZodLiteral<"tag">;
5068
+ type: z.ZodLiteral<"string">;
5069
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
5070
+ options: z.ZodArray<z.ZodString, "many">;
5071
+ label: z.ZodOptional<z.ZodString>;
5072
+ description: z.ZodOptional<z.ZodString>;
5073
+ required: z.ZodBoolean;
5074
+ }, "strip", z.ZodTypeAny, {
5075
+ options: string[];
5076
+ type: "string";
5077
+ required: boolean;
5078
+ control: "tag";
5079
+ label?: string | undefined;
5080
+ defaultValue?: undefined;
5081
+ description?: string | undefined;
5082
+ }, {
5083
+ options: string[];
5084
+ type: "string";
5085
+ required: boolean;
5086
+ control: "tag";
5087
+ label?: string | undefined;
5088
+ defaultValue?: undefined;
5089
+ description?: string | undefined;
5090
+ }>, z.ZodObject<{
5067
5091
  control: z.ZodLiteral<"number">;
5068
5092
  type: z.ZodLiteral<"number">;
5069
5093
  defaultValue: z.ZodOptional<z.ZodNumber>;
@@ -5535,6 +5559,14 @@ declare const WsComponentPropsMeta: z.ZodObject<{
5535
5559
  initialProps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5536
5560
  }, "strip", z.ZodTypeAny, {
5537
5561
  props: Record<string, {
5562
+ options: string[];
5563
+ type: "string";
5564
+ required: boolean;
5565
+ control: "tag";
5566
+ label?: string | undefined;
5567
+ defaultValue?: undefined;
5568
+ description?: string | undefined;
5569
+ } | {
5538
5570
  type: "number";
5539
5571
  required: boolean;
5540
5572
  control: "number";
@@ -5694,6 +5726,14 @@ declare const WsComponentPropsMeta: z.ZodObject<{
5694
5726
  initialProps?: string[] | undefined;
5695
5727
  }, {
5696
5728
  props: Record<string, {
5729
+ options: string[];
5730
+ type: "string";
5731
+ required: boolean;
5732
+ control: "tag";
5733
+ label?: string | undefined;
5734
+ defaultValue?: undefined;
5735
+ description?: string | undefined;
5736
+ } | {
5697
5737
  type: "number";
5698
5738
  required: boolean;
5699
5739
  control: "number";
@@ -5853,7 +5893,7 @@ declare const WsComponentPropsMeta: z.ZodObject<{
5853
5893
  initialProps?: string[] | undefined;
5854
5894
  }>;
5855
5895
  export type WsComponentPropsMeta = z.infer<typeof WsComponentPropsMeta>;
5856
- export declare const componentCategories: readonly ["general", "typography", "media", "data", "forms", "localization", "radix", "xml", "hidden", "internal"];
5896
+ export declare const componentCategories: readonly ["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "hidden", "internal"];
5857
5897
  export declare const stateCategories: readonly ["states", "component-states"];
5858
5898
  export declare const ComponentState: z.ZodObject<{
5859
5899
  category: z.ZodOptional<z.ZodEnum<["states", "component-states"]>>;
@@ -5871,7 +5911,7 @@ export declare const ComponentState: z.ZodObject<{
5871
5911
  export type ComponentState = z.infer<typeof ComponentState>;
5872
5912
  export declare const defaultStates: ComponentState[];
5873
5913
  export declare const WsComponentMeta: z.ZodObject<{
5874
- category: z.ZodOptional<z.ZodEnum<["general", "typography", "media", "data", "forms", "localization", "radix", "xml", "hidden", "internal"]>>;
5914
+ category: z.ZodOptional<z.ZodEnum<["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "hidden", "internal"]>>;
5875
5915
  type: z.ZodEnum<["container", "control", "embed", "rich-text-child"]>;
5876
5916
  /**
5877
5917
  * a property used as textual placeholder when no content specified while in builder
@@ -5915,14 +5955,14 @@ export declare const WsComponentMeta: z.ZodObject<{
5915
5955
  text: z.ZodOptional<z.ZodLiteral<false>>;
5916
5956
  }, "strip", z.ZodTypeAny, {
5917
5957
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
5918
- text?: false | undefined;
5919
- component?: {
5958
+ tag?: {
5920
5959
  $eq?: string | undefined;
5921
5960
  $neq?: string | undefined;
5922
5961
  $in?: string[] | undefined;
5923
5962
  $nin?: string[] | undefined;
5924
5963
  } | undefined;
5925
- tag?: {
5964
+ text?: false | undefined;
5965
+ component?: {
5926
5966
  $eq?: string | undefined;
5927
5967
  $neq?: string | undefined;
5928
5968
  $in?: string[] | undefined;
@@ -5930,14 +5970,14 @@ export declare const WsComponentMeta: z.ZodObject<{
5930
5970
  } | undefined;
5931
5971
  }, {
5932
5972
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
5933
- text?: false | undefined;
5934
- component?: {
5973
+ tag?: {
5935
5974
  $eq?: string | undefined;
5936
5975
  $neq?: string | undefined;
5937
5976
  $in?: string[] | undefined;
5938
5977
  $nin?: string[] | undefined;
5939
5978
  } | undefined;
5940
- tag?: {
5979
+ text?: false | undefined;
5980
+ component?: {
5941
5981
  $eq?: string | undefined;
5942
5982
  $neq?: string | undefined;
5943
5983
  $in?: string[] | undefined;
@@ -5980,14 +6020,14 @@ export declare const WsComponentMeta: z.ZodObject<{
5980
6020
  text: z.ZodOptional<z.ZodLiteral<false>>;
5981
6021
  }, "strip", z.ZodTypeAny, {
5982
6022
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
5983
- text?: false | undefined;
5984
- component?: {
6023
+ tag?: {
5985
6024
  $eq?: string | undefined;
5986
6025
  $neq?: string | undefined;
5987
6026
  $in?: string[] | undefined;
5988
6027
  $nin?: string[] | undefined;
5989
6028
  } | undefined;
5990
- tag?: {
6029
+ text?: false | undefined;
6030
+ component?: {
5991
6031
  $eq?: string | undefined;
5992
6032
  $neq?: string | undefined;
5993
6033
  $in?: string[] | undefined;
@@ -5995,14 +6035,14 @@ export declare const WsComponentMeta: z.ZodObject<{
5995
6035
  } | undefined;
5996
6036
  }, {
5997
6037
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
5998
- text?: false | undefined;
5999
- component?: {
6038
+ tag?: {
6000
6039
  $eq?: string | undefined;
6001
6040
  $neq?: string | undefined;
6002
6041
  $in?: string[] | undefined;
6003
6042
  $nin?: string[] | undefined;
6004
6043
  } | undefined;
6005
- tag?: {
6044
+ text?: false | undefined;
6045
+ component?: {
6006
6046
  $eq?: string | undefined;
6007
6047
  $neq?: string | undefined;
6008
6048
  $in?: string[] | undefined;
@@ -11095,17 +11135,17 @@ export declare const WsComponentMeta: z.ZodObject<{
11095
11135
  label: string;
11096
11136
  category?: "states" | "component-states" | undefined;
11097
11137
  }[] | undefined;
11098
- category?: "hidden" | "data" | "media" | "general" | "typography" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11138
+ category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11099
11139
  constraints?: {
11100
11140
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
11101
- text?: false | undefined;
11102
- component?: {
11141
+ tag?: {
11103
11142
  $eq?: string | undefined;
11104
11143
  $neq?: string | undefined;
11105
11144
  $in?: string[] | undefined;
11106
11145
  $nin?: string[] | undefined;
11107
11146
  } | undefined;
11108
- tag?: {
11147
+ text?: false | undefined;
11148
+ component?: {
11109
11149
  $eq?: string | undefined;
11110
11150
  $neq?: string | undefined;
11111
11151
  $in?: string[] | undefined;
@@ -11113,14 +11153,14 @@ export declare const WsComponentMeta: z.ZodObject<{
11113
11153
  } | undefined;
11114
11154
  } | {
11115
11155
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
11116
- text?: false | undefined;
11117
- component?: {
11156
+ tag?: {
11118
11157
  $eq?: string | undefined;
11119
11158
  $neq?: string | undefined;
11120
11159
  $in?: string[] | undefined;
11121
11160
  $nin?: string[] | undefined;
11122
11161
  } | undefined;
11123
- tag?: {
11162
+ text?: false | undefined;
11163
+ component?: {
11124
11164
  $eq?: string | undefined;
11125
11165
  $neq?: string | undefined;
11126
11166
  $in?: string[] | undefined;
@@ -11746,17 +11786,17 @@ export declare const WsComponentMeta: z.ZodObject<{
11746
11786
  label: string;
11747
11787
  category?: "states" | "component-states" | undefined;
11748
11788
  }[] | undefined;
11749
- category?: "hidden" | "data" | "media" | "general" | "typography" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11789
+ category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11750
11790
  constraints?: {
11751
11791
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
11752
- text?: false | undefined;
11753
- component?: {
11792
+ tag?: {
11754
11793
  $eq?: string | undefined;
11755
11794
  $neq?: string | undefined;
11756
11795
  $in?: string[] | undefined;
11757
11796
  $nin?: string[] | undefined;
11758
11797
  } | undefined;
11759
- tag?: {
11798
+ text?: false | undefined;
11799
+ component?: {
11760
11800
  $eq?: string | undefined;
11761
11801
  $neq?: string | undefined;
11762
11802
  $in?: string[] | undefined;
@@ -11764,14 +11804,14 @@ export declare const WsComponentMeta: z.ZodObject<{
11764
11804
  } | undefined;
11765
11805
  } | {
11766
11806
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
11767
- text?: false | undefined;
11768
- component?: {
11807
+ tag?: {
11769
11808
  $eq?: string | undefined;
11770
11809
  $neq?: string | undefined;
11771
11810
  $in?: string[] | undefined;
11772
11811
  $nin?: string[] | undefined;
11773
11812
  } | undefined;
11774
- tag?: {
11813
+ text?: false | undefined;
11814
+ component?: {
11775
11815
  $eq?: string | undefined;
11776
11816
  $neq?: string | undefined;
11777
11817
  $in?: string[] | undefined;
@@ -70,6 +70,7 @@ export declare const Instance: z.ZodObject<{
70
70
  type: z.ZodLiteral<"instance">;
71
71
  id: z.ZodString;
72
72
  component: z.ZodString;
73
+ tag: z.ZodOptional<z.ZodString>;
73
74
  label: z.ZodOptional<z.ZodString>;
74
75
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
75
76
  type: z.ZodLiteral<"id">;
@@ -118,6 +119,7 @@ export declare const Instance: z.ZodObject<{
118
119
  type: "expression";
119
120
  })[];
120
121
  label?: string | undefined;
122
+ tag?: string | undefined;
121
123
  }, {
122
124
  type: "instance";
123
125
  id: string;
@@ -134,12 +136,14 @@ export declare const Instance: z.ZodObject<{
134
136
  type: "expression";
135
137
  })[];
136
138
  label?: string | undefined;
139
+ tag?: string | undefined;
137
140
  }>;
138
141
  export type Instance = z.infer<typeof Instance>;
139
142
  export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
140
143
  type: z.ZodLiteral<"instance">;
141
144
  id: z.ZodString;
142
145
  component: z.ZodString;
146
+ tag: z.ZodOptional<z.ZodString>;
143
147
  label: z.ZodOptional<z.ZodString>;
144
148
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
145
149
  type: z.ZodLiteral<"id">;
@@ -188,6 +192,7 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
188
192
  type: "expression";
189
193
  })[];
190
194
  label?: string | undefined;
195
+ tag?: string | undefined;
191
196
  }, {
192
197
  type: "instance";
193
198
  id: string;
@@ -204,6 +209,7 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
204
209
  type: "expression";
205
210
  })[];
206
211
  label?: string | undefined;
212
+ tag?: string | undefined;
207
213
  }>>;
208
214
  export type Instances = z.infer<typeof Instances>;
209
215
  export declare const MatcherRelation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
@@ -262,14 +268,14 @@ export declare const Matcher: z.ZodObject<{
262
268
  text: z.ZodOptional<z.ZodLiteral<false>>;
263
269
  }, "strip", z.ZodTypeAny, {
264
270
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
265
- text?: false | undefined;
266
- component?: {
271
+ tag?: {
267
272
  $eq?: string | undefined;
268
273
  $neq?: string | undefined;
269
274
  $in?: string[] | undefined;
270
275
  $nin?: string[] | undefined;
271
276
  } | undefined;
272
- tag?: {
277
+ text?: false | undefined;
278
+ component?: {
273
279
  $eq?: string | undefined;
274
280
  $neq?: string | undefined;
275
281
  $in?: string[] | undefined;
@@ -277,14 +283,14 @@ export declare const Matcher: z.ZodObject<{
277
283
  } | undefined;
278
284
  }, {
279
285
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
280
- text?: false | undefined;
281
- component?: {
286
+ tag?: {
282
287
  $eq?: string | undefined;
283
288
  $neq?: string | undefined;
284
289
  $in?: string[] | undefined;
285
290
  $nin?: string[] | undefined;
286
291
  } | undefined;
287
- tag?: {
292
+ text?: false | undefined;
293
+ component?: {
288
294
  $eq?: string | undefined;
289
295
  $neq?: string | undefined;
290
296
  $in?: string[] | undefined;
@@ -329,14 +335,14 @@ export declare const Matchers: z.ZodUnion<[z.ZodObject<{
329
335
  text: z.ZodOptional<z.ZodLiteral<false>>;
330
336
  }, "strip", z.ZodTypeAny, {
331
337
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
332
- text?: false | undefined;
333
- component?: {
338
+ tag?: {
334
339
  $eq?: string | undefined;
335
340
  $neq?: string | undefined;
336
341
  $in?: string[] | undefined;
337
342
  $nin?: string[] | undefined;
338
343
  } | undefined;
339
- tag?: {
344
+ text?: false | undefined;
345
+ component?: {
340
346
  $eq?: string | undefined;
341
347
  $neq?: string | undefined;
342
348
  $in?: string[] | undefined;
@@ -344,14 +350,14 @@ export declare const Matchers: z.ZodUnion<[z.ZodObject<{
344
350
  } | undefined;
345
351
  }, {
346
352
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
347
- text?: false | undefined;
348
- component?: {
353
+ tag?: {
349
354
  $eq?: string | undefined;
350
355
  $neq?: string | undefined;
351
356
  $in?: string[] | undefined;
352
357
  $nin?: string[] | undefined;
353
358
  } | undefined;
354
- tag?: {
359
+ text?: false | undefined;
360
+ component?: {
355
361
  $eq?: string | undefined;
356
362
  $neq?: string | undefined;
357
363
  $in?: string[] | undefined;
@@ -394,14 +400,14 @@ export declare const Matchers: z.ZodUnion<[z.ZodObject<{
394
400
  text: z.ZodOptional<z.ZodLiteral<false>>;
395
401
  }, "strip", z.ZodTypeAny, {
396
402
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
397
- text?: false | undefined;
398
- component?: {
403
+ tag?: {
399
404
  $eq?: string | undefined;
400
405
  $neq?: string | undefined;
401
406
  $in?: string[] | undefined;
402
407
  $nin?: string[] | undefined;
403
408
  } | undefined;
404
- tag?: {
409
+ text?: false | undefined;
410
+ component?: {
405
411
  $eq?: string | undefined;
406
412
  $neq?: string | undefined;
407
413
  $in?: string[] | undefined;
@@ -409,14 +415,14 @@ export declare const Matchers: z.ZodUnion<[z.ZodObject<{
409
415
  } | undefined;
410
416
  }, {
411
417
  relation: "ancestor" | "parent" | "self" | "child" | "descendant";
412
- text?: false | undefined;
413
- component?: {
418
+ tag?: {
414
419
  $eq?: string | undefined;
415
420
  $neq?: string | undefined;
416
421
  $in?: string[] | undefined;
417
422
  $nin?: string[] | undefined;
418
423
  } | undefined;
419
- tag?: {
424
+ text?: false | undefined;
425
+ component?: {
420
426
  $eq?: string | undefined;
421
427
  $neq?: string | undefined;
422
428
  $in?: string[] | undefined;
@@ -27,6 +27,7 @@ export declare const PageTitle: z.ZodEffects<z.ZodString, string, string>;
27
27
  export declare const documentTypes: readonly ["html", "xml"];
28
28
  export declare const HomePagePath: z.ZodEffects<z.ZodString, "", string>;
29
29
  export declare const PagePath: 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>;
30
+ export declare const OldPagePath: 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>;
30
31
  declare const Page: z.ZodObject<{
31
32
  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>;
32
33
  id: z.ZodString;
@@ -1,5 +1,29 @@
1
1
  import { z } from "zod";
2
2
  export declare const PropMeta: z.ZodUnion<[z.ZodObject<{
3
+ control: z.ZodLiteral<"tag">;
4
+ type: z.ZodLiteral<"string">;
5
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
6
+ options: z.ZodArray<z.ZodString, "many">;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ required: z.ZodBoolean;
10
+ }, "strip", z.ZodTypeAny, {
11
+ options: string[];
12
+ type: "string";
13
+ required: boolean;
14
+ control: "tag";
15
+ label?: string | undefined;
16
+ defaultValue?: undefined;
17
+ description?: string | undefined;
18
+ }, {
19
+ options: string[];
20
+ type: "string";
21
+ required: boolean;
22
+ control: "tag";
23
+ label?: string | undefined;
24
+ defaultValue?: undefined;
25
+ description?: string | undefined;
26
+ }>, z.ZodObject<{
3
27
  control: z.ZodLiteral<"number">;
4
28
  type: z.ZodLiteral<"number">;
5
29
  defaultValue: z.ZodOptional<z.ZodNumber>;