@webstudio-is/sdk 0.219.0 → 0.221.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.
@@ -5062,895 +5062,54 @@ export type PresetStyleDecl = Simplify<Omit<z.infer<typeof PresetStyleDecl>, "pr
5062
5062
  property: CssProperty;
5063
5063
  }>;
5064
5064
  export type PresetStyle<Tag extends HtmlTags = HtmlTags> = Partial<Record<Tag, PresetStyleDecl[]>>;
5065
- declare const WsComponentPropsMeta: z.ZodObject<{
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<{
5091
- control: z.ZodLiteral<"number">;
5092
- type: z.ZodLiteral<"number">;
5093
- defaultValue: z.ZodOptional<z.ZodNumber>;
5094
- label: z.ZodOptional<z.ZodString>;
5095
- description: z.ZodOptional<z.ZodString>;
5096
- required: z.ZodBoolean;
5097
- }, "strip", z.ZodTypeAny, {
5098
- type: "number";
5099
- required: boolean;
5100
- control: "number";
5101
- label?: string | undefined;
5102
- defaultValue?: number | undefined;
5103
- description?: string | undefined;
5104
- }, {
5105
- type: "number";
5106
- required: boolean;
5107
- control: "number";
5108
- label?: string | undefined;
5109
- defaultValue?: number | undefined;
5110
- description?: string | undefined;
5111
- }>, z.ZodObject<{
5112
- control: z.ZodLiteral<"range">;
5113
- type: z.ZodLiteral<"number">;
5114
- defaultValue: z.ZodOptional<z.ZodNumber>;
5115
- label: z.ZodOptional<z.ZodString>;
5116
- description: z.ZodOptional<z.ZodString>;
5117
- required: z.ZodBoolean;
5118
- }, "strip", z.ZodTypeAny, {
5119
- type: "number";
5120
- required: boolean;
5121
- control: "range";
5122
- label?: string | undefined;
5123
- defaultValue?: number | undefined;
5124
- description?: string | undefined;
5125
- }, {
5126
- type: "number";
5127
- required: boolean;
5128
- control: "range";
5129
- label?: string | undefined;
5130
- defaultValue?: number | undefined;
5131
- description?: string | undefined;
5132
- }>, z.ZodObject<{
5133
- control: z.ZodLiteral<"text">;
5134
- type: z.ZodLiteral<"string">;
5135
- defaultValue: z.ZodOptional<z.ZodString>;
5136
- rows: z.ZodOptional<z.ZodNumber>;
5137
- label: z.ZodOptional<z.ZodString>;
5138
- description: z.ZodOptional<z.ZodString>;
5139
- required: z.ZodBoolean;
5140
- }, "strip", z.ZodTypeAny, {
5141
- type: "string";
5142
- required: boolean;
5143
- control: "text";
5144
- label?: string | undefined;
5145
- defaultValue?: string | undefined;
5146
- description?: string | undefined;
5147
- rows?: number | undefined;
5148
- }, {
5149
- type: "string";
5150
- required: boolean;
5151
- control: "text";
5152
- label?: string | undefined;
5153
- defaultValue?: string | undefined;
5154
- description?: string | undefined;
5155
- rows?: number | undefined;
5156
- }>, z.ZodObject<{
5157
- control: z.ZodLiteral<"resource">;
5158
- type: z.ZodLiteral<"resource">;
5159
- defaultValue: z.ZodOptional<z.ZodString>;
5160
- label: z.ZodOptional<z.ZodString>;
5161
- description: z.ZodOptional<z.ZodString>;
5162
- required: z.ZodBoolean;
5163
- }, "strip", z.ZodTypeAny, {
5164
- type: "resource";
5165
- required: boolean;
5166
- control: "resource";
5167
- label?: string | undefined;
5168
- defaultValue?: string | undefined;
5169
- description?: string | undefined;
5170
- }, {
5171
- type: "resource";
5172
- required: boolean;
5173
- control: "resource";
5174
- label?: string | undefined;
5175
- defaultValue?: string | undefined;
5176
- description?: string | undefined;
5177
- }>, z.ZodObject<{
5178
- control: z.ZodLiteral<"code">;
5179
- type: z.ZodLiteral<"string">;
5180
- language: z.ZodUnion<[z.ZodLiteral<"html">, z.ZodLiteral<"markdown">]>;
5181
- defaultValue: z.ZodOptional<z.ZodString>;
5182
- label: z.ZodOptional<z.ZodString>;
5183
- description: z.ZodOptional<z.ZodString>;
5184
- required: z.ZodBoolean;
5185
- }, "strip", z.ZodTypeAny, {
5186
- type: "string";
5187
- required: boolean;
5188
- control: "code";
5189
- language: "html" | "markdown";
5190
- label?: string | undefined;
5191
- defaultValue?: string | undefined;
5192
- description?: string | undefined;
5193
- }, {
5194
- type: "string";
5195
- required: boolean;
5196
- control: "code";
5197
- language: "html" | "markdown";
5198
- label?: string | undefined;
5199
- defaultValue?: string | undefined;
5200
- description?: string | undefined;
5201
- }>, z.ZodObject<{
5202
- control: z.ZodLiteral<"codetext">;
5203
- type: z.ZodLiteral<"string">;
5204
- defaultValue: z.ZodOptional<z.ZodString>;
5205
- label: z.ZodOptional<z.ZodString>;
5206
- description: z.ZodOptional<z.ZodString>;
5207
- required: z.ZodBoolean;
5208
- }, "strip", z.ZodTypeAny, {
5209
- type: "string";
5210
- required: boolean;
5211
- control: "codetext";
5212
- label?: string | undefined;
5213
- defaultValue?: string | undefined;
5214
- description?: string | undefined;
5215
- }, {
5216
- type: "string";
5217
- required: boolean;
5218
- control: "codetext";
5219
- label?: string | undefined;
5220
- defaultValue?: string | undefined;
5221
- description?: string | undefined;
5222
- }>, z.ZodObject<{
5223
- control: z.ZodLiteral<"color">;
5224
- type: z.ZodLiteral<"string">;
5225
- defaultValue: z.ZodOptional<z.ZodString>;
5226
- label: z.ZodOptional<z.ZodString>;
5227
- description: z.ZodOptional<z.ZodString>;
5228
- required: z.ZodBoolean;
5229
- }, "strip", z.ZodTypeAny, {
5230
- type: "string";
5231
- required: boolean;
5232
- control: "color";
5233
- label?: string | undefined;
5234
- defaultValue?: string | undefined;
5235
- description?: string | undefined;
5236
- }, {
5237
- type: "string";
5238
- required: boolean;
5239
- control: "color";
5240
- label?: string | undefined;
5241
- defaultValue?: string | undefined;
5242
- description?: string | undefined;
5243
- }>, z.ZodObject<{
5244
- control: z.ZodLiteral<"boolean">;
5245
- type: z.ZodLiteral<"boolean">;
5246
- defaultValue: z.ZodOptional<z.ZodBoolean>;
5247
- label: z.ZodOptional<z.ZodString>;
5248
- description: z.ZodOptional<z.ZodString>;
5249
- required: z.ZodBoolean;
5065
+ export declare const componentCategories: readonly ["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "other", "hidden", "internal"];
5066
+ export declare const ComponentState: z.ZodObject<{
5067
+ selector: z.ZodString;
5068
+ label: z.ZodString;
5069
+ }, "strip", z.ZodTypeAny, {
5070
+ selector: string;
5071
+ label: string;
5072
+ }, {
5073
+ selector: string;
5074
+ label: string;
5075
+ }>;
5076
+ export type ComponentState = z.infer<typeof ComponentState>;
5077
+ export declare const ContentModel: z.ZodObject<{
5078
+ category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
5079
+ /**
5080
+ * enforce direct children of category or components
5081
+ */
5082
+ children: z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">;
5083
+ /**
5084
+ * enforce descendants of category or components
5085
+ */
5086
+ descendants: z.ZodOptional<z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">>;
5087
+ }, "strip", z.ZodTypeAny, {
5088
+ category: "none" | "instance";
5089
+ children: ("instance" | "rich-text" | (string & {}))[];
5090
+ descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5091
+ }, {
5092
+ category: "none" | "instance";
5093
+ children: ("instance" | "rich-text" | (string & {}))[];
5094
+ descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5095
+ }>;
5096
+ export type ContentModel = z.infer<typeof ContentModel>;
5097
+ export declare const WsComponentMeta: z.ZodObject<{
5098
+ category: z.ZodOptional<z.ZodEnum<["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "other", "hidden", "internal"]>>;
5099
+ contentModel: z.ZodOptional<z.ZodObject<{
5100
+ category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
5101
+ /**
5102
+ * enforce direct children of category or components
5103
+ */
5104
+ children: z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">;
5105
+ /**
5106
+ * enforce descendants of category or components
5107
+ */
5108
+ descendants: z.ZodOptional<z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">>;
5250
5109
  }, "strip", z.ZodTypeAny, {
5251
- type: "boolean";
5252
- required: boolean;
5253
- control: "boolean";
5254
- label?: string | undefined;
5255
- defaultValue?: boolean | undefined;
5256
- description?: string | undefined;
5257
- }, {
5258
- type: "boolean";
5259
- required: boolean;
5260
- control: "boolean";
5261
- label?: string | undefined;
5262
- defaultValue?: boolean | undefined;
5263
- description?: string | undefined;
5264
- }>, z.ZodObject<{
5265
- control: z.ZodLiteral<"radio">;
5266
- type: z.ZodLiteral<"string">;
5267
- defaultValue: z.ZodOptional<z.ZodString>;
5268
- options: z.ZodArray<z.ZodString, "many">;
5269
- label: z.ZodOptional<z.ZodString>;
5270
- description: z.ZodOptional<z.ZodString>;
5271
- required: z.ZodBoolean;
5272
- }, "strip", z.ZodTypeAny, {
5273
- options: string[];
5274
- type: "string";
5275
- required: boolean;
5276
- control: "radio";
5277
- label?: string | undefined;
5278
- defaultValue?: string | undefined;
5279
- description?: string | undefined;
5280
- }, {
5281
- options: string[];
5282
- type: "string";
5283
- required: boolean;
5284
- control: "radio";
5285
- label?: string | undefined;
5286
- defaultValue?: string | undefined;
5287
- description?: string | undefined;
5288
- }>, z.ZodObject<{
5289
- control: z.ZodLiteral<"inline-radio">;
5290
- type: z.ZodLiteral<"string">;
5291
- defaultValue: z.ZodOptional<z.ZodString>;
5292
- options: z.ZodArray<z.ZodString, "many">;
5293
- label: z.ZodOptional<z.ZodString>;
5294
- description: z.ZodOptional<z.ZodString>;
5295
- required: z.ZodBoolean;
5296
- }, "strip", z.ZodTypeAny, {
5297
- options: string[];
5298
- type: "string";
5299
- required: boolean;
5300
- control: "inline-radio";
5301
- label?: string | undefined;
5302
- defaultValue?: string | undefined;
5303
- description?: string | undefined;
5304
- }, {
5305
- options: string[];
5306
- type: "string";
5307
- required: boolean;
5308
- control: "inline-radio";
5309
- label?: string | undefined;
5310
- defaultValue?: string | undefined;
5311
- description?: string | undefined;
5312
- }>, z.ZodObject<{
5313
- control: z.ZodLiteral<"select">;
5314
- type: z.ZodLiteral<"string">;
5315
- defaultValue: z.ZodOptional<z.ZodString>;
5316
- options: z.ZodArray<z.ZodString, "many">;
5317
- label: z.ZodOptional<z.ZodString>;
5318
- description: z.ZodOptional<z.ZodString>;
5319
- required: z.ZodBoolean;
5320
- }, "strip", z.ZodTypeAny, {
5321
- options: string[];
5322
- type: "string";
5323
- required: boolean;
5324
- control: "select";
5325
- label?: string | undefined;
5326
- defaultValue?: string | undefined;
5327
- description?: string | undefined;
5328
- }, {
5329
- options: string[];
5330
- type: "string";
5331
- required: boolean;
5332
- control: "select";
5333
- label?: string | undefined;
5334
- defaultValue?: string | undefined;
5335
- description?: string | undefined;
5336
- }>, z.ZodObject<{
5337
- control: z.ZodLiteral<"multi-select">;
5338
- type: z.ZodLiteral<"string[]">;
5339
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5340
- options: z.ZodArray<z.ZodString, "many">;
5341
- label: z.ZodOptional<z.ZodString>;
5342
- description: z.ZodOptional<z.ZodString>;
5343
- required: z.ZodBoolean;
5344
- }, "strip", z.ZodTypeAny, {
5345
- options: string[];
5346
- type: "string[]";
5347
- required: boolean;
5348
- control: "multi-select";
5349
- label?: string | undefined;
5350
- defaultValue?: string[] | undefined;
5351
- description?: string | undefined;
5352
- }, {
5353
- options: string[];
5354
- type: "string[]";
5355
- required: boolean;
5356
- control: "multi-select";
5357
- label?: string | undefined;
5358
- defaultValue?: string[] | undefined;
5359
- description?: string | undefined;
5360
- }>, z.ZodObject<{
5361
- control: z.ZodLiteral<"check">;
5362
- type: z.ZodLiteral<"string[]">;
5363
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5364
- options: z.ZodArray<z.ZodString, "many">;
5365
- label: z.ZodOptional<z.ZodString>;
5366
- description: z.ZodOptional<z.ZodString>;
5367
- required: z.ZodBoolean;
5368
- }, "strip", z.ZodTypeAny, {
5369
- options: string[];
5370
- type: "string[]";
5371
- required: boolean;
5372
- control: "check";
5373
- label?: string | undefined;
5374
- defaultValue?: string[] | undefined;
5375
- description?: string | undefined;
5376
- }, {
5377
- options: string[];
5378
- type: "string[]";
5379
- required: boolean;
5380
- control: "check";
5381
- label?: string | undefined;
5382
- defaultValue?: string[] | undefined;
5383
- description?: string | undefined;
5384
- }>, z.ZodObject<{
5385
- control: z.ZodLiteral<"inline-check">;
5386
- type: z.ZodLiteral<"string[]">;
5387
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5388
- options: z.ZodArray<z.ZodString, "many">;
5389
- label: z.ZodOptional<z.ZodString>;
5390
- description: z.ZodOptional<z.ZodString>;
5391
- required: z.ZodBoolean;
5392
- }, "strip", z.ZodTypeAny, {
5393
- options: string[];
5394
- type: "string[]";
5395
- required: boolean;
5396
- control: "inline-check";
5397
- label?: string | undefined;
5398
- defaultValue?: string[] | undefined;
5399
- description?: string | undefined;
5400
- }, {
5401
- options: string[];
5402
- type: "string[]";
5403
- required: boolean;
5404
- control: "inline-check";
5405
- label?: string | undefined;
5406
- defaultValue?: string[] | undefined;
5407
- description?: string | undefined;
5408
- }>, z.ZodObject<{
5409
- control: z.ZodLiteral<"file">;
5410
- type: z.ZodLiteral<"string">;
5411
- defaultValue: z.ZodOptional<z.ZodString>;
5412
- accept: z.ZodOptional<z.ZodString>;
5413
- label: z.ZodOptional<z.ZodString>;
5414
- description: z.ZodOptional<z.ZodString>;
5415
- required: z.ZodBoolean;
5416
- }, "strip", z.ZodTypeAny, {
5417
- type: "string";
5418
- required: boolean;
5419
- control: "file";
5420
- label?: string | undefined;
5421
- defaultValue?: string | undefined;
5422
- description?: string | undefined;
5423
- accept?: string | undefined;
5424
- }, {
5425
- type: "string";
5426
- required: boolean;
5427
- control: "file";
5428
- label?: string | undefined;
5429
- defaultValue?: string | undefined;
5430
- description?: string | undefined;
5431
- accept?: string | undefined;
5432
- }>, z.ZodObject<{
5433
- control: z.ZodLiteral<"url">;
5434
- type: z.ZodLiteral<"string">;
5435
- defaultValue: z.ZodOptional<z.ZodString>;
5436
- label: z.ZodOptional<z.ZodString>;
5437
- description: z.ZodOptional<z.ZodString>;
5438
- required: z.ZodBoolean;
5439
- }, "strip", z.ZodTypeAny, {
5440
- type: "string";
5441
- required: boolean;
5442
- control: "url";
5443
- label?: string | undefined;
5444
- defaultValue?: string | undefined;
5445
- description?: string | undefined;
5446
- }, {
5447
- type: "string";
5448
- required: boolean;
5449
- control: "url";
5450
- label?: string | undefined;
5451
- defaultValue?: string | undefined;
5452
- description?: string | undefined;
5453
- }>, z.ZodObject<{
5454
- control: z.ZodLiteral<"json">;
5455
- type: z.ZodLiteral<"json">;
5456
- defaultValue: z.ZodOptional<z.ZodUnknown>;
5457
- label: z.ZodOptional<z.ZodString>;
5458
- description: z.ZodOptional<z.ZodString>;
5459
- required: z.ZodBoolean;
5460
- }, "strip", z.ZodTypeAny, {
5461
- type: "json";
5462
- required: boolean;
5463
- control: "json";
5464
- label?: string | undefined;
5465
- defaultValue?: unknown;
5466
- description?: string | undefined;
5467
- }, {
5468
- type: "json";
5469
- required: boolean;
5470
- control: "json";
5471
- label?: string | undefined;
5472
- defaultValue?: unknown;
5473
- description?: string | undefined;
5474
- }>, z.ZodObject<{
5475
- control: z.ZodLiteral<"date">;
5476
- type: z.ZodLiteral<"string">;
5477
- defaultValue: z.ZodOptional<z.ZodString>;
5478
- label: z.ZodOptional<z.ZodString>;
5479
- description: z.ZodOptional<z.ZodString>;
5480
- required: z.ZodBoolean;
5481
- }, "strip", z.ZodTypeAny, {
5482
- type: "string";
5483
- required: boolean;
5484
- control: "date";
5485
- label?: string | undefined;
5486
- defaultValue?: string | undefined;
5487
- description?: string | undefined;
5488
- }, {
5489
- type: "string";
5490
- required: boolean;
5491
- control: "date";
5492
- label?: string | undefined;
5493
- defaultValue?: string | undefined;
5494
- description?: string | undefined;
5495
- }>, z.ZodObject<{
5496
- control: z.ZodLiteral<"action">;
5497
- type: z.ZodLiteral<"action">;
5498
- defaultValue: z.ZodOptional<z.ZodUndefined>;
5499
- label: z.ZodOptional<z.ZodString>;
5500
- description: z.ZodOptional<z.ZodString>;
5501
- required: z.ZodBoolean;
5502
- }, "strip", z.ZodTypeAny, {
5503
- type: "action";
5504
- required: boolean;
5505
- control: "action";
5506
- label?: string | undefined;
5507
- defaultValue?: undefined;
5508
- description?: string | undefined;
5509
- }, {
5510
- type: "action";
5511
- required: boolean;
5512
- control: "action";
5513
- label?: string | undefined;
5514
- defaultValue?: undefined;
5515
- description?: string | undefined;
5516
- }>, z.ZodObject<{
5517
- control: z.ZodLiteral<"textContent">;
5518
- type: z.ZodLiteral<"string">;
5519
- defaultValue: z.ZodOptional<z.ZodString>;
5520
- label: z.ZodOptional<z.ZodString>;
5521
- description: z.ZodOptional<z.ZodString>;
5522
- required: z.ZodBoolean;
5523
- }, "strip", z.ZodTypeAny, {
5524
- type: "string";
5525
- required: boolean;
5526
- control: "textContent";
5527
- label?: string | undefined;
5528
- defaultValue?: string | undefined;
5529
- description?: string | undefined;
5530
- }, {
5531
- type: "string";
5532
- required: boolean;
5533
- control: "textContent";
5534
- label?: string | undefined;
5535
- defaultValue?: string | undefined;
5536
- description?: string | undefined;
5537
- }>, z.ZodObject<{
5538
- control: z.ZodLiteral<"animationAction">;
5539
- type: z.ZodLiteral<"animationAction">;
5540
- defaultValue: z.ZodOptional<z.ZodUndefined>;
5541
- label: z.ZodOptional<z.ZodString>;
5542
- description: z.ZodOptional<z.ZodString>;
5543
- required: z.ZodBoolean;
5544
- }, "strip", z.ZodTypeAny, {
5545
- type: "animationAction";
5546
- required: boolean;
5547
- control: "animationAction";
5548
- label?: string | undefined;
5549
- defaultValue?: undefined;
5550
- description?: string | undefined;
5551
- }, {
5552
- type: "animationAction";
5553
- required: boolean;
5554
- control: "animationAction";
5555
- label?: string | undefined;
5556
- defaultValue?: undefined;
5557
- description?: string | undefined;
5558
- }>]>>;
5559
- initialProps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5560
- }, "strip", z.ZodTypeAny, {
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
- } | {
5570
- type: "number";
5571
- required: boolean;
5572
- control: "number";
5573
- label?: string | undefined;
5574
- defaultValue?: number | undefined;
5575
- description?: string | undefined;
5576
- } | {
5577
- type: "number";
5578
- required: boolean;
5579
- control: "range";
5580
- label?: string | undefined;
5581
- defaultValue?: number | undefined;
5582
- description?: string | undefined;
5583
- } | {
5584
- type: "string";
5585
- required: boolean;
5586
- control: "text";
5587
- label?: string | undefined;
5588
- defaultValue?: string | undefined;
5589
- description?: string | undefined;
5590
- rows?: number | undefined;
5591
- } | {
5592
- type: "resource";
5593
- required: boolean;
5594
- control: "resource";
5595
- label?: string | undefined;
5596
- defaultValue?: string | undefined;
5597
- description?: string | undefined;
5598
- } | {
5599
- type: "string";
5600
- required: boolean;
5601
- control: "code";
5602
- language: "html" | "markdown";
5603
- label?: string | undefined;
5604
- defaultValue?: string | undefined;
5605
- description?: string | undefined;
5606
- } | {
5607
- type: "string";
5608
- required: boolean;
5609
- control: "codetext";
5610
- label?: string | undefined;
5611
- defaultValue?: string | undefined;
5612
- description?: string | undefined;
5613
- } | {
5614
- type: "string";
5615
- required: boolean;
5616
- control: "color";
5617
- label?: string | undefined;
5618
- defaultValue?: string | undefined;
5619
- description?: string | undefined;
5620
- } | {
5621
- type: "boolean";
5622
- required: boolean;
5623
- control: "boolean";
5624
- label?: string | undefined;
5625
- defaultValue?: boolean | undefined;
5626
- description?: string | undefined;
5627
- } | {
5628
- options: string[];
5629
- type: "string";
5630
- required: boolean;
5631
- control: "radio";
5632
- label?: string | undefined;
5633
- defaultValue?: string | undefined;
5634
- description?: string | undefined;
5635
- } | {
5636
- options: string[];
5637
- type: "string";
5638
- required: boolean;
5639
- control: "inline-radio";
5640
- label?: string | undefined;
5641
- defaultValue?: string | undefined;
5642
- description?: string | undefined;
5643
- } | {
5644
- options: string[];
5645
- type: "string";
5646
- required: boolean;
5647
- control: "select";
5648
- label?: string | undefined;
5649
- defaultValue?: string | undefined;
5650
- description?: string | undefined;
5651
- } | {
5652
- options: string[];
5653
- type: "string[]";
5654
- required: boolean;
5655
- control: "check";
5656
- label?: string | undefined;
5657
- defaultValue?: string[] | undefined;
5658
- description?: string | undefined;
5659
- } | {
5660
- options: string[];
5661
- type: "string[]";
5662
- required: boolean;
5663
- control: "inline-check";
5664
- label?: string | undefined;
5665
- defaultValue?: string[] | undefined;
5666
- description?: string | undefined;
5667
- } | {
5668
- options: string[];
5669
- type: "string[]";
5670
- required: boolean;
5671
- control: "multi-select";
5672
- label?: string | undefined;
5673
- defaultValue?: string[] | undefined;
5674
- description?: string | undefined;
5675
- } | {
5676
- type: "string";
5677
- required: boolean;
5678
- control: "file";
5679
- label?: string | undefined;
5680
- defaultValue?: string | undefined;
5681
- description?: string | undefined;
5682
- accept?: string | undefined;
5683
- } | {
5684
- type: "string";
5685
- required: boolean;
5686
- control: "url";
5687
- label?: string | undefined;
5688
- defaultValue?: string | undefined;
5689
- description?: string | undefined;
5690
- } | {
5691
- type: "json";
5692
- required: boolean;
5693
- control: "json";
5694
- label?: string | undefined;
5695
- defaultValue?: unknown;
5696
- description?: string | undefined;
5697
- } | {
5698
- type: "string";
5699
- required: boolean;
5700
- control: "date";
5701
- label?: string | undefined;
5702
- defaultValue?: string | undefined;
5703
- description?: string | undefined;
5704
- } | {
5705
- type: "action";
5706
- required: boolean;
5707
- control: "action";
5708
- label?: string | undefined;
5709
- defaultValue?: undefined;
5710
- description?: string | undefined;
5711
- } | {
5712
- type: "string";
5713
- required: boolean;
5714
- control: "textContent";
5715
- label?: string | undefined;
5716
- defaultValue?: string | undefined;
5717
- description?: string | undefined;
5718
- } | {
5719
- type: "animationAction";
5720
- required: boolean;
5721
- control: "animationAction";
5722
- label?: string | undefined;
5723
- defaultValue?: undefined;
5724
- description?: string | undefined;
5725
- }>;
5726
- initialProps?: string[] | undefined;
5727
- }, {
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
- } | {
5737
- type: "number";
5738
- required: boolean;
5739
- control: "number";
5740
- label?: string | undefined;
5741
- defaultValue?: number | undefined;
5742
- description?: string | undefined;
5743
- } | {
5744
- type: "number";
5745
- required: boolean;
5746
- control: "range";
5747
- label?: string | undefined;
5748
- defaultValue?: number | undefined;
5749
- description?: string | undefined;
5750
- } | {
5751
- type: "string";
5752
- required: boolean;
5753
- control: "text";
5754
- label?: string | undefined;
5755
- defaultValue?: string | undefined;
5756
- description?: string | undefined;
5757
- rows?: number | undefined;
5758
- } | {
5759
- type: "resource";
5760
- required: boolean;
5761
- control: "resource";
5762
- label?: string | undefined;
5763
- defaultValue?: string | undefined;
5764
- description?: string | undefined;
5765
- } | {
5766
- type: "string";
5767
- required: boolean;
5768
- control: "code";
5769
- language: "html" | "markdown";
5770
- label?: string | undefined;
5771
- defaultValue?: string | undefined;
5772
- description?: string | undefined;
5773
- } | {
5774
- type: "string";
5775
- required: boolean;
5776
- control: "codetext";
5777
- label?: string | undefined;
5778
- defaultValue?: string | undefined;
5779
- description?: string | undefined;
5780
- } | {
5781
- type: "string";
5782
- required: boolean;
5783
- control: "color";
5784
- label?: string | undefined;
5785
- defaultValue?: string | undefined;
5786
- description?: string | undefined;
5787
- } | {
5788
- type: "boolean";
5789
- required: boolean;
5790
- control: "boolean";
5791
- label?: string | undefined;
5792
- defaultValue?: boolean | undefined;
5793
- description?: string | undefined;
5794
- } | {
5795
- options: string[];
5796
- type: "string";
5797
- required: boolean;
5798
- control: "radio";
5799
- label?: string | undefined;
5800
- defaultValue?: string | undefined;
5801
- description?: string | undefined;
5802
- } | {
5803
- options: string[];
5804
- type: "string";
5805
- required: boolean;
5806
- control: "inline-radio";
5807
- label?: string | undefined;
5808
- defaultValue?: string | undefined;
5809
- description?: string | undefined;
5810
- } | {
5811
- options: string[];
5812
- type: "string";
5813
- required: boolean;
5814
- control: "select";
5815
- label?: string | undefined;
5816
- defaultValue?: string | undefined;
5817
- description?: string | undefined;
5818
- } | {
5819
- options: string[];
5820
- type: "string[]";
5821
- required: boolean;
5822
- control: "check";
5823
- label?: string | undefined;
5824
- defaultValue?: string[] | undefined;
5825
- description?: string | undefined;
5826
- } | {
5827
- options: string[];
5828
- type: "string[]";
5829
- required: boolean;
5830
- control: "inline-check";
5831
- label?: string | undefined;
5832
- defaultValue?: string[] | undefined;
5833
- description?: string | undefined;
5834
- } | {
5835
- options: string[];
5836
- type: "string[]";
5837
- required: boolean;
5838
- control: "multi-select";
5839
- label?: string | undefined;
5840
- defaultValue?: string[] | undefined;
5841
- description?: string | undefined;
5842
- } | {
5843
- type: "string";
5844
- required: boolean;
5845
- control: "file";
5846
- label?: string | undefined;
5847
- defaultValue?: string | undefined;
5848
- description?: string | undefined;
5849
- accept?: string | undefined;
5850
- } | {
5851
- type: "string";
5852
- required: boolean;
5853
- control: "url";
5854
- label?: string | undefined;
5855
- defaultValue?: string | undefined;
5856
- description?: string | undefined;
5857
- } | {
5858
- type: "json";
5859
- required: boolean;
5860
- control: "json";
5861
- label?: string | undefined;
5862
- defaultValue?: unknown;
5863
- description?: string | undefined;
5864
- } | {
5865
- type: "string";
5866
- required: boolean;
5867
- control: "date";
5868
- label?: string | undefined;
5869
- defaultValue?: string | undefined;
5870
- description?: string | undefined;
5871
- } | {
5872
- type: "action";
5873
- required: boolean;
5874
- control: "action";
5875
- label?: string | undefined;
5876
- defaultValue?: undefined;
5877
- description?: string | undefined;
5878
- } | {
5879
- type: "string";
5880
- required: boolean;
5881
- control: "textContent";
5882
- label?: string | undefined;
5883
- defaultValue?: string | undefined;
5884
- description?: string | undefined;
5885
- } | {
5886
- type: "animationAction";
5887
- required: boolean;
5888
- control: "animationAction";
5889
- label?: string | undefined;
5890
- defaultValue?: undefined;
5891
- description?: string | undefined;
5892
- }>;
5893
- initialProps?: string[] | undefined;
5894
- }>;
5895
- export type WsComponentPropsMeta = z.infer<typeof WsComponentPropsMeta>;
5896
- export declare const componentCategories: readonly ["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "hidden", "internal"];
5897
- export declare const stateCategories: readonly ["states", "component-states"];
5898
- export declare const ComponentState: z.ZodObject<{
5899
- category: z.ZodOptional<z.ZodEnum<["states", "component-states"]>>;
5900
- selector: z.ZodString;
5901
- label: z.ZodString;
5902
- }, "strip", z.ZodTypeAny, {
5903
- selector: string;
5904
- label: string;
5905
- category?: "states" | "component-states" | undefined;
5906
- }, {
5907
- selector: string;
5908
- label: string;
5909
- category?: "states" | "component-states" | undefined;
5910
- }>;
5911
- export type ComponentState = z.infer<typeof ComponentState>;
5912
- export declare const defaultStates: ComponentState[];
5913
- export declare const ContentModel: z.ZodObject<{
5914
- category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
5915
- /**
5916
- * enforce direct children of category or components
5917
- */
5918
- children: z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">;
5919
- /**
5920
- * enforce descendants of category or components
5921
- */
5922
- descendants: z.ZodOptional<z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">>;
5923
- }, "strip", z.ZodTypeAny, {
5924
- category: "none" | "instance";
5925
- children: ("instance" | "rich-text" | (string & {}))[];
5926
- descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5927
- }, {
5928
- category: "none" | "instance";
5929
- children: ("instance" | "rich-text" | (string & {}))[];
5930
- descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5931
- }>;
5932
- export type ContentModel = z.infer<typeof ContentModel>;
5933
- export declare const WsComponentMeta: z.ZodObject<{
5934
- category: z.ZodOptional<z.ZodEnum<["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "hidden", "internal"]>>;
5935
- /**
5936
- * a property used as textual placeholder when no content specified while in builder
5937
- * also signals to not insert components inside unless dropped explicitly
5938
- */
5939
- placeholder: z.ZodOptional<z.ZodString>;
5940
- contentModel: z.ZodOptional<z.ZodObject<{
5941
- category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
5942
- /**
5943
- * enforce direct children of category or components
5944
- */
5945
- children: z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">;
5946
- /**
5947
- * enforce descendants of category or components
5948
- */
5949
- descendants: z.ZodOptional<z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">>;
5950
- }, "strip", z.ZodTypeAny, {
5951
- category: "none" | "instance";
5952
- children: ("instance" | "rich-text" | (string & {}))[];
5953
- descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5110
+ category: "none" | "instance";
5111
+ children: ("instance" | "rich-text" | (string & {}))[];
5112
+ descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5954
5113
  }, {
5955
5114
  category: "none" | "instance";
5956
5115
  children: ("instance" | "rich-text" | (string & {}))[];
@@ -5959,7 +5118,7 @@ export declare const WsComponentMeta: z.ZodObject<{
5959
5118
  indexWithinAncestor: z.ZodOptional<z.ZodString>;
5960
5119
  label: z.ZodOptional<z.ZodString>;
5961
5120
  description: z.ZodOptional<z.ZodString>;
5962
- icon: z.ZodString;
5121
+ icon: z.ZodOptional<z.ZodString>;
5963
5122
  presetStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
5964
5123
  state: z.ZodOptional<z.ZodString>;
5965
5124
  property: z.ZodString;
@@ -11017,37 +10176,522 @@ export declare const WsComponentMeta: z.ZodObject<{
11017
10176
  state?: string | undefined;
11018
10177
  }>, "many">>>;
11019
10178
  states: z.ZodOptional<z.ZodArray<z.ZodObject<{
11020
- category: z.ZodOptional<z.ZodEnum<["states", "component-states"]>>;
11021
10179
  selector: z.ZodString;
11022
10180
  label: z.ZodString;
11023
10181
  }, "strip", z.ZodTypeAny, {
11024
- selector: string;
11025
- label: string;
11026
- category?: "states" | "component-states" | undefined;
10182
+ selector: string;
10183
+ label: string;
10184
+ }, {
10185
+ selector: string;
10186
+ label: string;
10187
+ }>, "many">>;
10188
+ order: z.ZodOptional<z.ZodNumber>;
10189
+ initialProps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10190
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
10191
+ control: z.ZodLiteral<"tag">;
10192
+ type: z.ZodLiteral<"string">;
10193
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
10194
+ options: z.ZodArray<z.ZodString, "many">;
10195
+ label: z.ZodOptional<z.ZodString>;
10196
+ description: z.ZodOptional<z.ZodString>;
10197
+ required: z.ZodBoolean;
10198
+ }, "strip", z.ZodTypeAny, {
10199
+ options: string[];
10200
+ type: "string";
10201
+ required: boolean;
10202
+ control: "tag";
10203
+ label?: string | undefined;
10204
+ defaultValue?: undefined;
10205
+ description?: string | undefined;
10206
+ }, {
10207
+ options: string[];
10208
+ type: "string";
10209
+ required: boolean;
10210
+ control: "tag";
10211
+ label?: string | undefined;
10212
+ defaultValue?: undefined;
10213
+ description?: string | undefined;
10214
+ }>, z.ZodObject<{
10215
+ control: z.ZodLiteral<"number">;
10216
+ type: z.ZodLiteral<"number">;
10217
+ defaultValue: z.ZodOptional<z.ZodNumber>;
10218
+ label: z.ZodOptional<z.ZodString>;
10219
+ description: z.ZodOptional<z.ZodString>;
10220
+ required: z.ZodBoolean;
10221
+ }, "strip", z.ZodTypeAny, {
10222
+ type: "number";
10223
+ required: boolean;
10224
+ control: "number";
10225
+ label?: string | undefined;
10226
+ defaultValue?: number | undefined;
10227
+ description?: string | undefined;
10228
+ }, {
10229
+ type: "number";
10230
+ required: boolean;
10231
+ control: "number";
10232
+ label?: string | undefined;
10233
+ defaultValue?: number | undefined;
10234
+ description?: string | undefined;
10235
+ }>, z.ZodObject<{
10236
+ control: z.ZodLiteral<"range">;
10237
+ type: z.ZodLiteral<"number">;
10238
+ defaultValue: z.ZodOptional<z.ZodNumber>;
10239
+ label: z.ZodOptional<z.ZodString>;
10240
+ description: z.ZodOptional<z.ZodString>;
10241
+ required: z.ZodBoolean;
10242
+ }, "strip", z.ZodTypeAny, {
10243
+ type: "number";
10244
+ required: boolean;
10245
+ control: "range";
10246
+ label?: string | undefined;
10247
+ defaultValue?: number | undefined;
10248
+ description?: string | undefined;
10249
+ }, {
10250
+ type: "number";
10251
+ required: boolean;
10252
+ control: "range";
10253
+ label?: string | undefined;
10254
+ defaultValue?: number | undefined;
10255
+ description?: string | undefined;
10256
+ }>, z.ZodObject<{
10257
+ control: z.ZodLiteral<"text">;
10258
+ type: z.ZodLiteral<"string">;
10259
+ defaultValue: z.ZodOptional<z.ZodString>;
10260
+ rows: z.ZodOptional<z.ZodNumber>;
10261
+ label: z.ZodOptional<z.ZodString>;
10262
+ description: z.ZodOptional<z.ZodString>;
10263
+ required: z.ZodBoolean;
10264
+ }, "strip", z.ZodTypeAny, {
10265
+ type: "string";
10266
+ required: boolean;
10267
+ control: "text";
10268
+ label?: string | undefined;
10269
+ defaultValue?: string | undefined;
10270
+ description?: string | undefined;
10271
+ rows?: number | undefined;
10272
+ }, {
10273
+ type: "string";
10274
+ required: boolean;
10275
+ control: "text";
10276
+ label?: string | undefined;
10277
+ defaultValue?: string | undefined;
10278
+ description?: string | undefined;
10279
+ rows?: number | undefined;
10280
+ }>, z.ZodObject<{
10281
+ control: z.ZodLiteral<"resource">;
10282
+ type: z.ZodLiteral<"resource">;
10283
+ defaultValue: z.ZodOptional<z.ZodString>;
10284
+ label: z.ZodOptional<z.ZodString>;
10285
+ description: z.ZodOptional<z.ZodString>;
10286
+ required: z.ZodBoolean;
10287
+ }, "strip", z.ZodTypeAny, {
10288
+ type: "resource";
10289
+ required: boolean;
10290
+ control: "resource";
10291
+ label?: string | undefined;
10292
+ defaultValue?: string | undefined;
10293
+ description?: string | undefined;
10294
+ }, {
10295
+ type: "resource";
10296
+ required: boolean;
10297
+ control: "resource";
10298
+ label?: string | undefined;
10299
+ defaultValue?: string | undefined;
10300
+ description?: string | undefined;
10301
+ }>, z.ZodObject<{
10302
+ control: z.ZodLiteral<"code">;
10303
+ type: z.ZodLiteral<"string">;
10304
+ language: z.ZodUnion<[z.ZodLiteral<"html">, z.ZodLiteral<"markdown">]>;
10305
+ defaultValue: z.ZodOptional<z.ZodString>;
10306
+ label: z.ZodOptional<z.ZodString>;
10307
+ description: z.ZodOptional<z.ZodString>;
10308
+ required: z.ZodBoolean;
10309
+ }, "strip", z.ZodTypeAny, {
10310
+ type: "string";
10311
+ required: boolean;
10312
+ control: "code";
10313
+ language: "html" | "markdown";
10314
+ label?: string | undefined;
10315
+ defaultValue?: string | undefined;
10316
+ description?: string | undefined;
10317
+ }, {
10318
+ type: "string";
10319
+ required: boolean;
10320
+ control: "code";
10321
+ language: "html" | "markdown";
10322
+ label?: string | undefined;
10323
+ defaultValue?: string | undefined;
10324
+ description?: string | undefined;
10325
+ }>, z.ZodObject<{
10326
+ control: z.ZodLiteral<"codetext">;
10327
+ type: z.ZodLiteral<"string">;
10328
+ defaultValue: z.ZodOptional<z.ZodString>;
10329
+ label: z.ZodOptional<z.ZodString>;
10330
+ description: z.ZodOptional<z.ZodString>;
10331
+ required: z.ZodBoolean;
10332
+ }, "strip", z.ZodTypeAny, {
10333
+ type: "string";
10334
+ required: boolean;
10335
+ control: "codetext";
10336
+ label?: string | undefined;
10337
+ defaultValue?: string | undefined;
10338
+ description?: string | undefined;
10339
+ }, {
10340
+ type: "string";
10341
+ required: boolean;
10342
+ control: "codetext";
10343
+ label?: string | undefined;
10344
+ defaultValue?: string | undefined;
10345
+ description?: string | undefined;
10346
+ }>, z.ZodObject<{
10347
+ control: z.ZodLiteral<"color">;
10348
+ type: z.ZodLiteral<"string">;
10349
+ defaultValue: z.ZodOptional<z.ZodString>;
10350
+ label: z.ZodOptional<z.ZodString>;
10351
+ description: z.ZodOptional<z.ZodString>;
10352
+ required: z.ZodBoolean;
10353
+ }, "strip", z.ZodTypeAny, {
10354
+ type: "string";
10355
+ required: boolean;
10356
+ control: "color";
10357
+ label?: string | undefined;
10358
+ defaultValue?: string | undefined;
10359
+ description?: string | undefined;
10360
+ }, {
10361
+ type: "string";
10362
+ required: boolean;
10363
+ control: "color";
10364
+ label?: string | undefined;
10365
+ defaultValue?: string | undefined;
10366
+ description?: string | undefined;
10367
+ }>, z.ZodObject<{
10368
+ control: z.ZodLiteral<"boolean">;
10369
+ type: z.ZodLiteral<"boolean">;
10370
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
10371
+ label: z.ZodOptional<z.ZodString>;
10372
+ description: z.ZodOptional<z.ZodString>;
10373
+ required: z.ZodBoolean;
10374
+ }, "strip", z.ZodTypeAny, {
10375
+ type: "boolean";
10376
+ required: boolean;
10377
+ control: "boolean";
10378
+ label?: string | undefined;
10379
+ defaultValue?: boolean | undefined;
10380
+ description?: string | undefined;
10381
+ }, {
10382
+ type: "boolean";
10383
+ required: boolean;
10384
+ control: "boolean";
10385
+ label?: string | undefined;
10386
+ defaultValue?: boolean | undefined;
10387
+ description?: string | undefined;
10388
+ }>, z.ZodObject<{
10389
+ control: z.ZodLiteral<"radio">;
10390
+ type: z.ZodLiteral<"string">;
10391
+ defaultValue: z.ZodOptional<z.ZodString>;
10392
+ options: z.ZodArray<z.ZodString, "many">;
10393
+ label: z.ZodOptional<z.ZodString>;
10394
+ description: z.ZodOptional<z.ZodString>;
10395
+ required: z.ZodBoolean;
10396
+ }, "strip", z.ZodTypeAny, {
10397
+ options: string[];
10398
+ type: "string";
10399
+ required: boolean;
10400
+ control: "radio";
10401
+ label?: string | undefined;
10402
+ defaultValue?: string | undefined;
10403
+ description?: string | undefined;
10404
+ }, {
10405
+ options: string[];
10406
+ type: "string";
10407
+ required: boolean;
10408
+ control: "radio";
10409
+ label?: string | undefined;
10410
+ defaultValue?: string | undefined;
10411
+ description?: string | undefined;
10412
+ }>, z.ZodObject<{
10413
+ control: z.ZodLiteral<"inline-radio">;
10414
+ type: z.ZodLiteral<"string">;
10415
+ defaultValue: z.ZodOptional<z.ZodString>;
10416
+ options: z.ZodArray<z.ZodString, "many">;
10417
+ label: z.ZodOptional<z.ZodString>;
10418
+ description: z.ZodOptional<z.ZodString>;
10419
+ required: z.ZodBoolean;
10420
+ }, "strip", z.ZodTypeAny, {
10421
+ options: string[];
10422
+ type: "string";
10423
+ required: boolean;
10424
+ control: "inline-radio";
10425
+ label?: string | undefined;
10426
+ defaultValue?: string | undefined;
10427
+ description?: string | undefined;
10428
+ }, {
10429
+ options: string[];
10430
+ type: "string";
10431
+ required: boolean;
10432
+ control: "inline-radio";
10433
+ label?: string | undefined;
10434
+ defaultValue?: string | undefined;
10435
+ description?: string | undefined;
10436
+ }>, z.ZodObject<{
10437
+ control: z.ZodLiteral<"select">;
10438
+ type: z.ZodLiteral<"string">;
10439
+ defaultValue: z.ZodOptional<z.ZodString>;
10440
+ options: z.ZodArray<z.ZodString, "many">;
10441
+ label: z.ZodOptional<z.ZodString>;
10442
+ description: z.ZodOptional<z.ZodString>;
10443
+ required: z.ZodBoolean;
10444
+ }, "strip", z.ZodTypeAny, {
10445
+ options: string[];
10446
+ type: "string";
10447
+ required: boolean;
10448
+ control: "select";
10449
+ label?: string | undefined;
10450
+ defaultValue?: string | undefined;
10451
+ description?: string | undefined;
10452
+ }, {
10453
+ options: string[];
10454
+ type: "string";
10455
+ required: boolean;
10456
+ control: "select";
10457
+ label?: string | undefined;
10458
+ defaultValue?: string | undefined;
10459
+ description?: string | undefined;
10460
+ }>, z.ZodObject<{
10461
+ control: z.ZodLiteral<"multi-select">;
10462
+ type: z.ZodLiteral<"string[]">;
10463
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10464
+ options: z.ZodArray<z.ZodString, "many">;
10465
+ label: z.ZodOptional<z.ZodString>;
10466
+ description: z.ZodOptional<z.ZodString>;
10467
+ required: z.ZodBoolean;
10468
+ }, "strip", z.ZodTypeAny, {
10469
+ options: string[];
10470
+ type: "string[]";
10471
+ required: boolean;
10472
+ control: "multi-select";
10473
+ label?: string | undefined;
10474
+ defaultValue?: string[] | undefined;
10475
+ description?: string | undefined;
10476
+ }, {
10477
+ options: string[];
10478
+ type: "string[]";
10479
+ required: boolean;
10480
+ control: "multi-select";
10481
+ label?: string | undefined;
10482
+ defaultValue?: string[] | undefined;
10483
+ description?: string | undefined;
10484
+ }>, z.ZodObject<{
10485
+ control: z.ZodLiteral<"check">;
10486
+ type: z.ZodLiteral<"string[]">;
10487
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10488
+ options: z.ZodArray<z.ZodString, "many">;
10489
+ label: z.ZodOptional<z.ZodString>;
10490
+ description: z.ZodOptional<z.ZodString>;
10491
+ required: z.ZodBoolean;
10492
+ }, "strip", z.ZodTypeAny, {
10493
+ options: string[];
10494
+ type: "string[]";
10495
+ required: boolean;
10496
+ control: "check";
10497
+ label?: string | undefined;
10498
+ defaultValue?: string[] | undefined;
10499
+ description?: string | undefined;
10500
+ }, {
10501
+ options: string[];
10502
+ type: "string[]";
10503
+ required: boolean;
10504
+ control: "check";
10505
+ label?: string | undefined;
10506
+ defaultValue?: string[] | undefined;
10507
+ description?: string | undefined;
10508
+ }>, z.ZodObject<{
10509
+ control: z.ZodLiteral<"inline-check">;
10510
+ type: z.ZodLiteral<"string[]">;
10511
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10512
+ options: z.ZodArray<z.ZodString, "many">;
10513
+ label: z.ZodOptional<z.ZodString>;
10514
+ description: z.ZodOptional<z.ZodString>;
10515
+ required: z.ZodBoolean;
10516
+ }, "strip", z.ZodTypeAny, {
10517
+ options: string[];
10518
+ type: "string[]";
10519
+ required: boolean;
10520
+ control: "inline-check";
10521
+ label?: string | undefined;
10522
+ defaultValue?: string[] | undefined;
10523
+ description?: string | undefined;
10524
+ }, {
10525
+ options: string[];
10526
+ type: "string[]";
10527
+ required: boolean;
10528
+ control: "inline-check";
10529
+ label?: string | undefined;
10530
+ defaultValue?: string[] | undefined;
10531
+ description?: string | undefined;
10532
+ }>, z.ZodObject<{
10533
+ control: z.ZodLiteral<"file">;
10534
+ type: z.ZodLiteral<"string">;
10535
+ defaultValue: z.ZodOptional<z.ZodString>;
10536
+ accept: z.ZodOptional<z.ZodString>;
10537
+ label: z.ZodOptional<z.ZodString>;
10538
+ description: z.ZodOptional<z.ZodString>;
10539
+ required: z.ZodBoolean;
10540
+ }, "strip", z.ZodTypeAny, {
10541
+ type: "string";
10542
+ required: boolean;
10543
+ control: "file";
10544
+ label?: string | undefined;
10545
+ defaultValue?: string | undefined;
10546
+ description?: string | undefined;
10547
+ accept?: string | undefined;
11027
10548
  }, {
11028
- selector: string;
11029
- label: string;
11030
- category?: "states" | "component-states" | undefined;
11031
- }>, "many">>;
11032
- order: z.ZodOptional<z.ZodNumber>;
10549
+ type: "string";
10550
+ required: boolean;
10551
+ control: "file";
10552
+ label?: string | undefined;
10553
+ defaultValue?: string | undefined;
10554
+ description?: string | undefined;
10555
+ accept?: string | undefined;
10556
+ }>, z.ZodObject<{
10557
+ control: z.ZodLiteral<"url">;
10558
+ type: z.ZodLiteral<"string">;
10559
+ defaultValue: z.ZodOptional<z.ZodString>;
10560
+ label: z.ZodOptional<z.ZodString>;
10561
+ description: z.ZodOptional<z.ZodString>;
10562
+ required: z.ZodBoolean;
10563
+ }, "strip", z.ZodTypeAny, {
10564
+ type: "string";
10565
+ required: boolean;
10566
+ control: "url";
10567
+ label?: string | undefined;
10568
+ defaultValue?: string | undefined;
10569
+ description?: string | undefined;
10570
+ }, {
10571
+ type: "string";
10572
+ required: boolean;
10573
+ control: "url";
10574
+ label?: string | undefined;
10575
+ defaultValue?: string | undefined;
10576
+ description?: string | undefined;
10577
+ }>, z.ZodObject<{
10578
+ control: z.ZodLiteral<"json">;
10579
+ type: z.ZodLiteral<"json">;
10580
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
10581
+ label: z.ZodOptional<z.ZodString>;
10582
+ description: z.ZodOptional<z.ZodString>;
10583
+ required: z.ZodBoolean;
10584
+ }, "strip", z.ZodTypeAny, {
10585
+ type: "json";
10586
+ required: boolean;
10587
+ control: "json";
10588
+ label?: string | undefined;
10589
+ defaultValue?: unknown;
10590
+ description?: string | undefined;
10591
+ }, {
10592
+ type: "json";
10593
+ required: boolean;
10594
+ control: "json";
10595
+ label?: string | undefined;
10596
+ defaultValue?: unknown;
10597
+ description?: string | undefined;
10598
+ }>, z.ZodObject<{
10599
+ control: z.ZodLiteral<"date">;
10600
+ type: z.ZodLiteral<"string">;
10601
+ defaultValue: z.ZodOptional<z.ZodString>;
10602
+ label: z.ZodOptional<z.ZodString>;
10603
+ description: z.ZodOptional<z.ZodString>;
10604
+ required: z.ZodBoolean;
10605
+ }, "strip", z.ZodTypeAny, {
10606
+ type: "string";
10607
+ required: boolean;
10608
+ control: "date";
10609
+ label?: string | undefined;
10610
+ defaultValue?: string | undefined;
10611
+ description?: string | undefined;
10612
+ }, {
10613
+ type: "string";
10614
+ required: boolean;
10615
+ control: "date";
10616
+ label?: string | undefined;
10617
+ defaultValue?: string | undefined;
10618
+ description?: string | undefined;
10619
+ }>, z.ZodObject<{
10620
+ control: z.ZodLiteral<"action">;
10621
+ type: z.ZodLiteral<"action">;
10622
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
10623
+ label: z.ZodOptional<z.ZodString>;
10624
+ description: z.ZodOptional<z.ZodString>;
10625
+ required: z.ZodBoolean;
10626
+ }, "strip", z.ZodTypeAny, {
10627
+ type: "action";
10628
+ required: boolean;
10629
+ control: "action";
10630
+ label?: string | undefined;
10631
+ defaultValue?: undefined;
10632
+ description?: string | undefined;
10633
+ }, {
10634
+ type: "action";
10635
+ required: boolean;
10636
+ control: "action";
10637
+ label?: string | undefined;
10638
+ defaultValue?: undefined;
10639
+ description?: string | undefined;
10640
+ }>, z.ZodObject<{
10641
+ control: z.ZodLiteral<"textContent">;
10642
+ type: z.ZodLiteral<"string">;
10643
+ defaultValue: z.ZodOptional<z.ZodString>;
10644
+ label: z.ZodOptional<z.ZodString>;
10645
+ description: z.ZodOptional<z.ZodString>;
10646
+ required: z.ZodBoolean;
10647
+ }, "strip", z.ZodTypeAny, {
10648
+ type: "string";
10649
+ required: boolean;
10650
+ control: "textContent";
10651
+ label?: string | undefined;
10652
+ defaultValue?: string | undefined;
10653
+ description?: string | undefined;
10654
+ }, {
10655
+ type: "string";
10656
+ required: boolean;
10657
+ control: "textContent";
10658
+ label?: string | undefined;
10659
+ defaultValue?: string | undefined;
10660
+ description?: string | undefined;
10661
+ }>, z.ZodObject<{
10662
+ control: z.ZodLiteral<"animationAction">;
10663
+ type: z.ZodLiteral<"animationAction">;
10664
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
10665
+ label: z.ZodOptional<z.ZodString>;
10666
+ description: z.ZodOptional<z.ZodString>;
10667
+ required: z.ZodBoolean;
10668
+ }, "strip", z.ZodTypeAny, {
10669
+ type: "animationAction";
10670
+ required: boolean;
10671
+ control: "animationAction";
10672
+ label?: string | undefined;
10673
+ defaultValue?: undefined;
10674
+ description?: string | undefined;
10675
+ }, {
10676
+ type: "animationAction";
10677
+ required: boolean;
10678
+ control: "animationAction";
10679
+ label?: string | undefined;
10680
+ defaultValue?: undefined;
10681
+ description?: string | undefined;
10682
+ }>]>>>;
11033
10683
  }, "strip", z.ZodTypeAny, {
11034
- icon: string;
11035
10684
  order?: number | undefined;
11036
10685
  label?: string | undefined;
11037
10686
  description?: string | undefined;
11038
- states?: {
11039
- selector: string;
11040
- label: string;
11041
- category?: "states" | "component-states" | undefined;
11042
- }[] | undefined;
11043
- category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11044
- placeholder?: string | undefined;
10687
+ category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "other" | "internal" | undefined;
11045
10688
  contentModel?: {
11046
10689
  category: "none" | "instance";
11047
10690
  children: ("instance" | "rich-text" | (string & {}))[];
11048
10691
  descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
11049
10692
  } | undefined;
11050
10693
  indexWithinAncestor?: string | undefined;
10694
+ icon?: string | undefined;
11051
10695
  presetStyle?: Record<string, {
11052
10696
  value: {
11053
10697
  value: {
@@ -11654,24 +11298,188 @@ export declare const WsComponentMeta: z.ZodObject<{
11654
11298
  property: string;
11655
11299
  state?: string | undefined;
11656
11300
  }[]> | undefined;
11301
+ states?: {
11302
+ selector: string;
11303
+ label: string;
11304
+ }[] | undefined;
11305
+ initialProps?: string[] | undefined;
11306
+ props?: Record<string, {
11307
+ options: string[];
11308
+ type: "string";
11309
+ required: boolean;
11310
+ control: "tag";
11311
+ label?: string | undefined;
11312
+ defaultValue?: undefined;
11313
+ description?: string | undefined;
11314
+ } | {
11315
+ type: "number";
11316
+ required: boolean;
11317
+ control: "number";
11318
+ label?: string | undefined;
11319
+ defaultValue?: number | undefined;
11320
+ description?: string | undefined;
11321
+ } | {
11322
+ type: "number";
11323
+ required: boolean;
11324
+ control: "range";
11325
+ label?: string | undefined;
11326
+ defaultValue?: number | undefined;
11327
+ description?: string | undefined;
11328
+ } | {
11329
+ type: "string";
11330
+ required: boolean;
11331
+ control: "text";
11332
+ label?: string | undefined;
11333
+ defaultValue?: string | undefined;
11334
+ description?: string | undefined;
11335
+ rows?: number | undefined;
11336
+ } | {
11337
+ type: "resource";
11338
+ required: boolean;
11339
+ control: "resource";
11340
+ label?: string | undefined;
11341
+ defaultValue?: string | undefined;
11342
+ description?: string | undefined;
11343
+ } | {
11344
+ type: "string";
11345
+ required: boolean;
11346
+ control: "code";
11347
+ language: "html" | "markdown";
11348
+ label?: string | undefined;
11349
+ defaultValue?: string | undefined;
11350
+ description?: string | undefined;
11351
+ } | {
11352
+ type: "string";
11353
+ required: boolean;
11354
+ control: "codetext";
11355
+ label?: string | undefined;
11356
+ defaultValue?: string | undefined;
11357
+ description?: string | undefined;
11358
+ } | {
11359
+ type: "string";
11360
+ required: boolean;
11361
+ control: "color";
11362
+ label?: string | undefined;
11363
+ defaultValue?: string | undefined;
11364
+ description?: string | undefined;
11365
+ } | {
11366
+ type: "boolean";
11367
+ required: boolean;
11368
+ control: "boolean";
11369
+ label?: string | undefined;
11370
+ defaultValue?: boolean | undefined;
11371
+ description?: string | undefined;
11372
+ } | {
11373
+ options: string[];
11374
+ type: "string";
11375
+ required: boolean;
11376
+ control: "radio";
11377
+ label?: string | undefined;
11378
+ defaultValue?: string | undefined;
11379
+ description?: string | undefined;
11380
+ } | {
11381
+ options: string[];
11382
+ type: "string";
11383
+ required: boolean;
11384
+ control: "inline-radio";
11385
+ label?: string | undefined;
11386
+ defaultValue?: string | undefined;
11387
+ description?: string | undefined;
11388
+ } | {
11389
+ options: string[];
11390
+ type: "string";
11391
+ required: boolean;
11392
+ control: "select";
11393
+ label?: string | undefined;
11394
+ defaultValue?: string | undefined;
11395
+ description?: string | undefined;
11396
+ } | {
11397
+ options: string[];
11398
+ type: "string[]";
11399
+ required: boolean;
11400
+ control: "check";
11401
+ label?: string | undefined;
11402
+ defaultValue?: string[] | undefined;
11403
+ description?: string | undefined;
11404
+ } | {
11405
+ options: string[];
11406
+ type: "string[]";
11407
+ required: boolean;
11408
+ control: "inline-check";
11409
+ label?: string | undefined;
11410
+ defaultValue?: string[] | undefined;
11411
+ description?: string | undefined;
11412
+ } | {
11413
+ options: string[];
11414
+ type: "string[]";
11415
+ required: boolean;
11416
+ control: "multi-select";
11417
+ label?: string | undefined;
11418
+ defaultValue?: string[] | undefined;
11419
+ description?: string | undefined;
11420
+ } | {
11421
+ type: "string";
11422
+ required: boolean;
11423
+ control: "file";
11424
+ label?: string | undefined;
11425
+ defaultValue?: string | undefined;
11426
+ description?: string | undefined;
11427
+ accept?: string | undefined;
11428
+ } | {
11429
+ type: "string";
11430
+ required: boolean;
11431
+ control: "url";
11432
+ label?: string | undefined;
11433
+ defaultValue?: string | undefined;
11434
+ description?: string | undefined;
11435
+ } | {
11436
+ type: "json";
11437
+ required: boolean;
11438
+ control: "json";
11439
+ label?: string | undefined;
11440
+ defaultValue?: unknown;
11441
+ description?: string | undefined;
11442
+ } | {
11443
+ type: "string";
11444
+ required: boolean;
11445
+ control: "date";
11446
+ label?: string | undefined;
11447
+ defaultValue?: string | undefined;
11448
+ description?: string | undefined;
11449
+ } | {
11450
+ type: "action";
11451
+ required: boolean;
11452
+ control: "action";
11453
+ label?: string | undefined;
11454
+ defaultValue?: undefined;
11455
+ description?: string | undefined;
11456
+ } | {
11457
+ type: "string";
11458
+ required: boolean;
11459
+ control: "textContent";
11460
+ label?: string | undefined;
11461
+ defaultValue?: string | undefined;
11462
+ description?: string | undefined;
11463
+ } | {
11464
+ type: "animationAction";
11465
+ required: boolean;
11466
+ control: "animationAction";
11467
+ label?: string | undefined;
11468
+ defaultValue?: undefined;
11469
+ description?: string | undefined;
11470
+ }> | undefined;
11657
11471
  }, {
11658
- icon: string;
11659
11472
  order?: number | undefined;
11660
11473
  label?: string | undefined;
11661
11474
  description?: string | undefined;
11662
- states?: {
11663
- selector: string;
11664
- label: string;
11665
- category?: "states" | "component-states" | undefined;
11666
- }[] | undefined;
11667
- category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11668
- placeholder?: string | undefined;
11475
+ category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "other" | "internal" | undefined;
11669
11476
  contentModel?: {
11670
11477
  category: "none" | "instance";
11671
11478
  children: ("instance" | "rich-text" | (string & {}))[];
11672
11479
  descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
11673
11480
  } | undefined;
11674
11481
  indexWithinAncestor?: string | undefined;
11482
+ icon?: string | undefined;
11675
11483
  presetStyle?: Record<string, {
11676
11484
  value: {
11677
11485
  value: {
@@ -12278,8 +12086,177 @@ export declare const WsComponentMeta: z.ZodObject<{
12278
12086
  property: string;
12279
12087
  state?: string | undefined;
12280
12088
  }[]> | undefined;
12089
+ states?: {
12090
+ selector: string;
12091
+ label: string;
12092
+ }[] | undefined;
12093
+ initialProps?: string[] | undefined;
12094
+ props?: Record<string, {
12095
+ options: string[];
12096
+ type: "string";
12097
+ required: boolean;
12098
+ control: "tag";
12099
+ label?: string | undefined;
12100
+ defaultValue?: undefined;
12101
+ description?: string | undefined;
12102
+ } | {
12103
+ type: "number";
12104
+ required: boolean;
12105
+ control: "number";
12106
+ label?: string | undefined;
12107
+ defaultValue?: number | undefined;
12108
+ description?: string | undefined;
12109
+ } | {
12110
+ type: "number";
12111
+ required: boolean;
12112
+ control: "range";
12113
+ label?: string | undefined;
12114
+ defaultValue?: number | undefined;
12115
+ description?: string | undefined;
12116
+ } | {
12117
+ type: "string";
12118
+ required: boolean;
12119
+ control: "text";
12120
+ label?: string | undefined;
12121
+ defaultValue?: string | undefined;
12122
+ description?: string | undefined;
12123
+ rows?: number | undefined;
12124
+ } | {
12125
+ type: "resource";
12126
+ required: boolean;
12127
+ control: "resource";
12128
+ label?: string | undefined;
12129
+ defaultValue?: string | undefined;
12130
+ description?: string | undefined;
12131
+ } | {
12132
+ type: "string";
12133
+ required: boolean;
12134
+ control: "code";
12135
+ language: "html" | "markdown";
12136
+ label?: string | undefined;
12137
+ defaultValue?: string | undefined;
12138
+ description?: string | undefined;
12139
+ } | {
12140
+ type: "string";
12141
+ required: boolean;
12142
+ control: "codetext";
12143
+ label?: string | undefined;
12144
+ defaultValue?: string | undefined;
12145
+ description?: string | undefined;
12146
+ } | {
12147
+ type: "string";
12148
+ required: boolean;
12149
+ control: "color";
12150
+ label?: string | undefined;
12151
+ defaultValue?: string | undefined;
12152
+ description?: string | undefined;
12153
+ } | {
12154
+ type: "boolean";
12155
+ required: boolean;
12156
+ control: "boolean";
12157
+ label?: string | undefined;
12158
+ defaultValue?: boolean | undefined;
12159
+ description?: string | undefined;
12160
+ } | {
12161
+ options: string[];
12162
+ type: "string";
12163
+ required: boolean;
12164
+ control: "radio";
12165
+ label?: string | undefined;
12166
+ defaultValue?: string | undefined;
12167
+ description?: string | undefined;
12168
+ } | {
12169
+ options: string[];
12170
+ type: "string";
12171
+ required: boolean;
12172
+ control: "inline-radio";
12173
+ label?: string | undefined;
12174
+ defaultValue?: string | undefined;
12175
+ description?: string | undefined;
12176
+ } | {
12177
+ options: string[];
12178
+ type: "string";
12179
+ required: boolean;
12180
+ control: "select";
12181
+ label?: string | undefined;
12182
+ defaultValue?: string | undefined;
12183
+ description?: string | undefined;
12184
+ } | {
12185
+ options: string[];
12186
+ type: "string[]";
12187
+ required: boolean;
12188
+ control: "check";
12189
+ label?: string | undefined;
12190
+ defaultValue?: string[] | undefined;
12191
+ description?: string | undefined;
12192
+ } | {
12193
+ options: string[];
12194
+ type: "string[]";
12195
+ required: boolean;
12196
+ control: "inline-check";
12197
+ label?: string | undefined;
12198
+ defaultValue?: string[] | undefined;
12199
+ description?: string | undefined;
12200
+ } | {
12201
+ options: string[];
12202
+ type: "string[]";
12203
+ required: boolean;
12204
+ control: "multi-select";
12205
+ label?: string | undefined;
12206
+ defaultValue?: string[] | undefined;
12207
+ description?: string | undefined;
12208
+ } | {
12209
+ type: "string";
12210
+ required: boolean;
12211
+ control: "file";
12212
+ label?: string | undefined;
12213
+ defaultValue?: string | undefined;
12214
+ description?: string | undefined;
12215
+ accept?: string | undefined;
12216
+ } | {
12217
+ type: "string";
12218
+ required: boolean;
12219
+ control: "url";
12220
+ label?: string | undefined;
12221
+ defaultValue?: string | undefined;
12222
+ description?: string | undefined;
12223
+ } | {
12224
+ type: "json";
12225
+ required: boolean;
12226
+ control: "json";
12227
+ label?: string | undefined;
12228
+ defaultValue?: unknown;
12229
+ description?: string | undefined;
12230
+ } | {
12231
+ type: "string";
12232
+ required: boolean;
12233
+ control: "date";
12234
+ label?: string | undefined;
12235
+ defaultValue?: string | undefined;
12236
+ description?: string | undefined;
12237
+ } | {
12238
+ type: "action";
12239
+ required: boolean;
12240
+ control: "action";
12241
+ label?: string | undefined;
12242
+ defaultValue?: undefined;
12243
+ description?: string | undefined;
12244
+ } | {
12245
+ type: "string";
12246
+ required: boolean;
12247
+ control: "textContent";
12248
+ label?: string | undefined;
12249
+ defaultValue?: string | undefined;
12250
+ description?: string | undefined;
12251
+ } | {
12252
+ type: "animationAction";
12253
+ required: boolean;
12254
+ control: "animationAction";
12255
+ label?: string | undefined;
12256
+ defaultValue?: undefined;
12257
+ description?: string | undefined;
12258
+ }> | undefined;
12281
12259
  }>;
12282
12260
  export type WsComponentMeta = Omit<z.infer<typeof WsComponentMeta>, "presetStyle"> & {
12283
12261
  presetStyle?: PresetStyle;
12284
12262
  };
12285
- export {};