@webstudio-is/sdk 0.218.0 → 0.220.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,59 @@ 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", "hidden", "internal"];
5066
+ export declare const stateCategories: readonly ["states", "component-states"];
5067
+ export declare const ComponentState: z.ZodObject<{
5068
+ category: z.ZodOptional<z.ZodEnum<["states", "component-states"]>>;
5069
+ selector: z.ZodString;
5070
+ label: z.ZodString;
5071
+ }, "strip", z.ZodTypeAny, {
5072
+ selector: string;
5073
+ label: string;
5074
+ category?: "states" | "component-states" | undefined;
5075
+ }, {
5076
+ selector: string;
5077
+ label: string;
5078
+ category?: "states" | "component-states" | undefined;
5079
+ }>;
5080
+ export type ComponentState = z.infer<typeof ComponentState>;
5081
+ export declare const defaultStates: ComponentState[];
5082
+ export declare const ContentModel: z.ZodObject<{
5083
+ category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
5084
+ /**
5085
+ * enforce direct children of category or components
5086
+ */
5087
+ children: z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">;
5088
+ /**
5089
+ * enforce descendants of category or components
5090
+ */
5091
+ descendants: z.ZodOptional<z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">>;
5092
+ }, "strip", z.ZodTypeAny, {
5093
+ category: "none" | "instance";
5094
+ children: ("instance" | "rich-text" | (string & {}))[];
5095
+ descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5096
+ }, {
5097
+ category: "none" | "instance";
5098
+ children: ("instance" | "rich-text" | (string & {}))[];
5099
+ descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5100
+ }>;
5101
+ export type ContentModel = z.infer<typeof ContentModel>;
5102
+ export declare const WsComponentMeta: z.ZodObject<{
5103
+ category: z.ZodOptional<z.ZodEnum<["general", "typography", "media", "animations", "data", "forms", "localization", "radix", "xml", "hidden", "internal"]>>;
5104
+ contentModel: z.ZodOptional<z.ZodObject<{
5105
+ category: z.ZodUnion<[z.ZodLiteral<"instance">, z.ZodLiteral<"none">]>;
5106
+ /**
5107
+ * enforce direct children of category or components
5108
+ */
5109
+ children: z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">;
5110
+ /**
5111
+ * enforce descendants of category or components
5112
+ */
5113
+ descendants: z.ZodOptional<z.ZodArray<z.ZodType<"instance" | "rich-text" | (string & {}), z.ZodTypeDef, "instance" | "rich-text" | (string & {})>, "many">>;
5250
5114
  }, "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;
5115
+ category: "none" | "instance";
5116
+ children: ("instance" | "rich-text" | (string & {}))[];
5117
+ descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
5954
5118
  }, {
5955
5119
  category: "none" | "instance";
5956
5120
  children: ("instance" | "rich-text" | (string & {}))[];
@@ -5959,7 +5123,7 @@ export declare const WsComponentMeta: z.ZodObject<{
5959
5123
  indexWithinAncestor: z.ZodOptional<z.ZodString>;
5960
5124
  label: z.ZodOptional<z.ZodString>;
5961
5125
  description: z.ZodOptional<z.ZodString>;
5962
- icon: z.ZodString;
5126
+ icon: z.ZodOptional<z.ZodString>;
5963
5127
  presetStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
5964
5128
  state: z.ZodOptional<z.ZodString>;
5965
5129
  property: z.ZodString;
@@ -11021,17 +10185,510 @@ export declare const WsComponentMeta: z.ZodObject<{
11021
10185
  selector: z.ZodString;
11022
10186
  label: z.ZodString;
11023
10187
  }, "strip", z.ZodTypeAny, {
11024
- selector: string;
11025
- label: string;
11026
- category?: "states" | "component-states" | undefined;
10188
+ selector: string;
10189
+ label: string;
10190
+ category?: "states" | "component-states" | undefined;
10191
+ }, {
10192
+ selector: string;
10193
+ label: string;
10194
+ category?: "states" | "component-states" | undefined;
10195
+ }>, "many">>;
10196
+ order: z.ZodOptional<z.ZodNumber>;
10197
+ initialProps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10198
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
10199
+ control: z.ZodLiteral<"tag">;
10200
+ type: z.ZodLiteral<"string">;
10201
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
10202
+ options: z.ZodArray<z.ZodString, "many">;
10203
+ label: z.ZodOptional<z.ZodString>;
10204
+ description: z.ZodOptional<z.ZodString>;
10205
+ required: z.ZodBoolean;
10206
+ }, "strip", z.ZodTypeAny, {
10207
+ options: string[];
10208
+ type: "string";
10209
+ required: boolean;
10210
+ control: "tag";
10211
+ label?: string | undefined;
10212
+ defaultValue?: undefined;
10213
+ description?: string | undefined;
10214
+ }, {
10215
+ options: string[];
10216
+ type: "string";
10217
+ required: boolean;
10218
+ control: "tag";
10219
+ label?: string | undefined;
10220
+ defaultValue?: undefined;
10221
+ description?: string | undefined;
10222
+ }>, z.ZodObject<{
10223
+ control: z.ZodLiteral<"number">;
10224
+ type: z.ZodLiteral<"number">;
10225
+ defaultValue: z.ZodOptional<z.ZodNumber>;
10226
+ label: z.ZodOptional<z.ZodString>;
10227
+ description: z.ZodOptional<z.ZodString>;
10228
+ required: z.ZodBoolean;
10229
+ }, "strip", z.ZodTypeAny, {
10230
+ type: "number";
10231
+ required: boolean;
10232
+ control: "number";
10233
+ label?: string | undefined;
10234
+ defaultValue?: number | undefined;
10235
+ description?: string | undefined;
10236
+ }, {
10237
+ type: "number";
10238
+ required: boolean;
10239
+ control: "number";
10240
+ label?: string | undefined;
10241
+ defaultValue?: number | undefined;
10242
+ description?: string | undefined;
10243
+ }>, z.ZodObject<{
10244
+ control: z.ZodLiteral<"range">;
10245
+ type: z.ZodLiteral<"number">;
10246
+ defaultValue: z.ZodOptional<z.ZodNumber>;
10247
+ label: z.ZodOptional<z.ZodString>;
10248
+ description: z.ZodOptional<z.ZodString>;
10249
+ required: z.ZodBoolean;
10250
+ }, "strip", z.ZodTypeAny, {
10251
+ type: "number";
10252
+ required: boolean;
10253
+ control: "range";
10254
+ label?: string | undefined;
10255
+ defaultValue?: number | undefined;
10256
+ description?: string | undefined;
10257
+ }, {
10258
+ type: "number";
10259
+ required: boolean;
10260
+ control: "range";
10261
+ label?: string | undefined;
10262
+ defaultValue?: number | undefined;
10263
+ description?: string | undefined;
10264
+ }>, z.ZodObject<{
10265
+ control: z.ZodLiteral<"text">;
10266
+ type: z.ZodLiteral<"string">;
10267
+ defaultValue: z.ZodOptional<z.ZodString>;
10268
+ rows: z.ZodOptional<z.ZodNumber>;
10269
+ label: z.ZodOptional<z.ZodString>;
10270
+ description: z.ZodOptional<z.ZodString>;
10271
+ required: z.ZodBoolean;
10272
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10281
+ type: "string";
10282
+ required: boolean;
10283
+ control: "text";
10284
+ label?: string | undefined;
10285
+ defaultValue?: string | undefined;
10286
+ description?: string | undefined;
10287
+ rows?: number | undefined;
10288
+ }>, z.ZodObject<{
10289
+ control: z.ZodLiteral<"resource">;
10290
+ type: z.ZodLiteral<"resource">;
10291
+ defaultValue: z.ZodOptional<z.ZodString>;
10292
+ label: z.ZodOptional<z.ZodString>;
10293
+ description: z.ZodOptional<z.ZodString>;
10294
+ required: z.ZodBoolean;
10295
+ }, "strip", z.ZodTypeAny, {
10296
+ type: "resource";
10297
+ required: boolean;
10298
+ control: "resource";
10299
+ label?: string | undefined;
10300
+ defaultValue?: string | undefined;
10301
+ description?: string | undefined;
10302
+ }, {
10303
+ type: "resource";
10304
+ required: boolean;
10305
+ control: "resource";
10306
+ label?: string | undefined;
10307
+ defaultValue?: string | undefined;
10308
+ description?: string | undefined;
10309
+ }>, z.ZodObject<{
10310
+ control: z.ZodLiteral<"code">;
10311
+ type: z.ZodLiteral<"string">;
10312
+ language: z.ZodUnion<[z.ZodLiteral<"html">, z.ZodLiteral<"markdown">]>;
10313
+ defaultValue: z.ZodOptional<z.ZodString>;
10314
+ label: z.ZodOptional<z.ZodString>;
10315
+ description: z.ZodOptional<z.ZodString>;
10316
+ required: z.ZodBoolean;
10317
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10326
+ type: "string";
10327
+ required: boolean;
10328
+ control: "code";
10329
+ language: "html" | "markdown";
10330
+ label?: string | undefined;
10331
+ defaultValue?: string | undefined;
10332
+ description?: string | undefined;
10333
+ }>, z.ZodObject<{
10334
+ control: z.ZodLiteral<"codetext">;
10335
+ type: z.ZodLiteral<"string">;
10336
+ defaultValue: z.ZodOptional<z.ZodString>;
10337
+ label: z.ZodOptional<z.ZodString>;
10338
+ description: z.ZodOptional<z.ZodString>;
10339
+ required: z.ZodBoolean;
10340
+ }, "strip", z.ZodTypeAny, {
10341
+ type: "string";
10342
+ required: boolean;
10343
+ control: "codetext";
10344
+ label?: string | undefined;
10345
+ defaultValue?: string | undefined;
10346
+ description?: string | undefined;
10347
+ }, {
10348
+ type: "string";
10349
+ required: boolean;
10350
+ control: "codetext";
10351
+ label?: string | undefined;
10352
+ defaultValue?: string | undefined;
10353
+ description?: string | undefined;
10354
+ }>, z.ZodObject<{
10355
+ control: z.ZodLiteral<"color">;
10356
+ type: z.ZodLiteral<"string">;
10357
+ defaultValue: z.ZodOptional<z.ZodString>;
10358
+ label: z.ZodOptional<z.ZodString>;
10359
+ description: z.ZodOptional<z.ZodString>;
10360
+ required: z.ZodBoolean;
10361
+ }, "strip", z.ZodTypeAny, {
10362
+ type: "string";
10363
+ required: boolean;
10364
+ control: "color";
10365
+ label?: string | undefined;
10366
+ defaultValue?: string | undefined;
10367
+ description?: string | undefined;
10368
+ }, {
10369
+ type: "string";
10370
+ required: boolean;
10371
+ control: "color";
10372
+ label?: string | undefined;
10373
+ defaultValue?: string | undefined;
10374
+ description?: string | undefined;
10375
+ }>, z.ZodObject<{
10376
+ control: z.ZodLiteral<"boolean">;
10377
+ type: z.ZodLiteral<"boolean">;
10378
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
10379
+ label: z.ZodOptional<z.ZodString>;
10380
+ description: z.ZodOptional<z.ZodString>;
10381
+ required: z.ZodBoolean;
10382
+ }, "strip", z.ZodTypeAny, {
10383
+ type: "boolean";
10384
+ required: boolean;
10385
+ control: "boolean";
10386
+ label?: string | undefined;
10387
+ defaultValue?: boolean | undefined;
10388
+ description?: string | undefined;
10389
+ }, {
10390
+ type: "boolean";
10391
+ required: boolean;
10392
+ control: "boolean";
10393
+ label?: string | undefined;
10394
+ defaultValue?: boolean | undefined;
10395
+ description?: string | undefined;
10396
+ }>, z.ZodObject<{
10397
+ control: z.ZodLiteral<"radio">;
10398
+ type: z.ZodLiteral<"string">;
10399
+ defaultValue: z.ZodOptional<z.ZodString>;
10400
+ options: z.ZodArray<z.ZodString, "many">;
10401
+ label: z.ZodOptional<z.ZodString>;
10402
+ description: z.ZodOptional<z.ZodString>;
10403
+ required: z.ZodBoolean;
10404
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10413
+ options: string[];
10414
+ type: "string";
10415
+ required: boolean;
10416
+ control: "radio";
10417
+ label?: string | undefined;
10418
+ defaultValue?: string | undefined;
10419
+ description?: string | undefined;
10420
+ }>, z.ZodObject<{
10421
+ control: z.ZodLiteral<"inline-radio">;
10422
+ type: z.ZodLiteral<"string">;
10423
+ defaultValue: z.ZodOptional<z.ZodString>;
10424
+ options: z.ZodArray<z.ZodString, "many">;
10425
+ label: z.ZodOptional<z.ZodString>;
10426
+ description: z.ZodOptional<z.ZodString>;
10427
+ required: z.ZodBoolean;
10428
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10437
+ options: string[];
10438
+ type: "string";
10439
+ required: boolean;
10440
+ control: "inline-radio";
10441
+ label?: string | undefined;
10442
+ defaultValue?: string | undefined;
10443
+ description?: string | undefined;
10444
+ }>, z.ZodObject<{
10445
+ control: z.ZodLiteral<"select">;
10446
+ type: z.ZodLiteral<"string">;
10447
+ defaultValue: z.ZodOptional<z.ZodString>;
10448
+ options: z.ZodArray<z.ZodString, "many">;
10449
+ label: z.ZodOptional<z.ZodString>;
10450
+ description: z.ZodOptional<z.ZodString>;
10451
+ required: z.ZodBoolean;
10452
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10461
+ options: string[];
10462
+ type: "string";
10463
+ required: boolean;
10464
+ control: "select";
10465
+ label?: string | undefined;
10466
+ defaultValue?: string | undefined;
10467
+ description?: string | undefined;
10468
+ }>, z.ZodObject<{
10469
+ control: z.ZodLiteral<"multi-select">;
10470
+ type: z.ZodLiteral<"string[]">;
10471
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10472
+ options: z.ZodArray<z.ZodString, "many">;
10473
+ label: z.ZodOptional<z.ZodString>;
10474
+ description: z.ZodOptional<z.ZodString>;
10475
+ required: z.ZodBoolean;
10476
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10485
+ options: string[];
10486
+ type: "string[]";
10487
+ required: boolean;
10488
+ control: "multi-select";
10489
+ label?: string | undefined;
10490
+ defaultValue?: string[] | undefined;
10491
+ description?: string | undefined;
10492
+ }>, z.ZodObject<{
10493
+ control: z.ZodLiteral<"check">;
10494
+ type: z.ZodLiteral<"string[]">;
10495
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10496
+ options: z.ZodArray<z.ZodString, "many">;
10497
+ label: z.ZodOptional<z.ZodString>;
10498
+ description: z.ZodOptional<z.ZodString>;
10499
+ required: z.ZodBoolean;
10500
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10509
+ options: string[];
10510
+ type: "string[]";
10511
+ required: boolean;
10512
+ control: "check";
10513
+ label?: string | undefined;
10514
+ defaultValue?: string[] | undefined;
10515
+ description?: string | undefined;
10516
+ }>, z.ZodObject<{
10517
+ control: z.ZodLiteral<"inline-check">;
10518
+ type: z.ZodLiteral<"string[]">;
10519
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10520
+ options: z.ZodArray<z.ZodString, "many">;
10521
+ label: z.ZodOptional<z.ZodString>;
10522
+ description: z.ZodOptional<z.ZodString>;
10523
+ required: z.ZodBoolean;
10524
+ }, "strip", z.ZodTypeAny, {
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;
11027
10532
  }, {
11028
- selector: string;
11029
- label: string;
11030
- category?: "states" | "component-states" | undefined;
11031
- }>, "many">>;
11032
- order: z.ZodOptional<z.ZodNumber>;
10533
+ options: string[];
10534
+ type: "string[]";
10535
+ required: boolean;
10536
+ control: "inline-check";
10537
+ label?: string | undefined;
10538
+ defaultValue?: string[] | undefined;
10539
+ description?: string | undefined;
10540
+ }>, z.ZodObject<{
10541
+ control: z.ZodLiteral<"file">;
10542
+ type: z.ZodLiteral<"string">;
10543
+ defaultValue: z.ZodOptional<z.ZodString>;
10544
+ accept: z.ZodOptional<z.ZodString>;
10545
+ label: z.ZodOptional<z.ZodString>;
10546
+ description: z.ZodOptional<z.ZodString>;
10547
+ required: z.ZodBoolean;
10548
+ }, "strip", z.ZodTypeAny, {
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
+ }, {
10557
+ type: "string";
10558
+ required: boolean;
10559
+ control: "file";
10560
+ label?: string | undefined;
10561
+ defaultValue?: string | undefined;
10562
+ description?: string | undefined;
10563
+ accept?: string | undefined;
10564
+ }>, z.ZodObject<{
10565
+ control: z.ZodLiteral<"url">;
10566
+ type: z.ZodLiteral<"string">;
10567
+ defaultValue: z.ZodOptional<z.ZodString>;
10568
+ label: z.ZodOptional<z.ZodString>;
10569
+ description: z.ZodOptional<z.ZodString>;
10570
+ required: z.ZodBoolean;
10571
+ }, "strip", z.ZodTypeAny, {
10572
+ type: "string";
10573
+ required: boolean;
10574
+ control: "url";
10575
+ label?: string | undefined;
10576
+ defaultValue?: string | undefined;
10577
+ description?: string | undefined;
10578
+ }, {
10579
+ type: "string";
10580
+ required: boolean;
10581
+ control: "url";
10582
+ label?: string | undefined;
10583
+ defaultValue?: string | undefined;
10584
+ description?: string | undefined;
10585
+ }>, z.ZodObject<{
10586
+ control: z.ZodLiteral<"json">;
10587
+ type: z.ZodLiteral<"json">;
10588
+ defaultValue: z.ZodOptional<z.ZodUnknown>;
10589
+ label: z.ZodOptional<z.ZodString>;
10590
+ description: z.ZodOptional<z.ZodString>;
10591
+ required: z.ZodBoolean;
10592
+ }, "strip", z.ZodTypeAny, {
10593
+ type: "json";
10594
+ required: boolean;
10595
+ control: "json";
10596
+ label?: string | undefined;
10597
+ defaultValue?: unknown;
10598
+ description?: string | undefined;
10599
+ }, {
10600
+ type: "json";
10601
+ required: boolean;
10602
+ control: "json";
10603
+ label?: string | undefined;
10604
+ defaultValue?: unknown;
10605
+ description?: string | undefined;
10606
+ }>, z.ZodObject<{
10607
+ control: z.ZodLiteral<"date">;
10608
+ type: z.ZodLiteral<"string">;
10609
+ defaultValue: z.ZodOptional<z.ZodString>;
10610
+ label: z.ZodOptional<z.ZodString>;
10611
+ description: z.ZodOptional<z.ZodString>;
10612
+ required: z.ZodBoolean;
10613
+ }, "strip", z.ZodTypeAny, {
10614
+ type: "string";
10615
+ required: boolean;
10616
+ control: "date";
10617
+ label?: string | undefined;
10618
+ defaultValue?: string | undefined;
10619
+ description?: string | undefined;
10620
+ }, {
10621
+ type: "string";
10622
+ required: boolean;
10623
+ control: "date";
10624
+ label?: string | undefined;
10625
+ defaultValue?: string | undefined;
10626
+ description?: string | undefined;
10627
+ }>, z.ZodObject<{
10628
+ control: z.ZodLiteral<"action">;
10629
+ type: z.ZodLiteral<"action">;
10630
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
10631
+ label: z.ZodOptional<z.ZodString>;
10632
+ description: z.ZodOptional<z.ZodString>;
10633
+ required: z.ZodBoolean;
10634
+ }, "strip", z.ZodTypeAny, {
10635
+ type: "action";
10636
+ required: boolean;
10637
+ control: "action";
10638
+ label?: string | undefined;
10639
+ defaultValue?: undefined;
10640
+ description?: string | undefined;
10641
+ }, {
10642
+ type: "action";
10643
+ required: boolean;
10644
+ control: "action";
10645
+ label?: string | undefined;
10646
+ defaultValue?: undefined;
10647
+ description?: string | undefined;
10648
+ }>, z.ZodObject<{
10649
+ control: z.ZodLiteral<"textContent">;
10650
+ type: z.ZodLiteral<"string">;
10651
+ defaultValue: z.ZodOptional<z.ZodString>;
10652
+ label: z.ZodOptional<z.ZodString>;
10653
+ description: z.ZodOptional<z.ZodString>;
10654
+ required: z.ZodBoolean;
10655
+ }, "strip", z.ZodTypeAny, {
10656
+ type: "string";
10657
+ required: boolean;
10658
+ control: "textContent";
10659
+ label?: string | undefined;
10660
+ defaultValue?: string | undefined;
10661
+ description?: string | undefined;
10662
+ }, {
10663
+ type: "string";
10664
+ required: boolean;
10665
+ control: "textContent";
10666
+ label?: string | undefined;
10667
+ defaultValue?: string | undefined;
10668
+ description?: string | undefined;
10669
+ }>, z.ZodObject<{
10670
+ control: z.ZodLiteral<"animationAction">;
10671
+ type: z.ZodLiteral<"animationAction">;
10672
+ defaultValue: z.ZodOptional<z.ZodUndefined>;
10673
+ label: z.ZodOptional<z.ZodString>;
10674
+ description: z.ZodOptional<z.ZodString>;
10675
+ required: z.ZodBoolean;
10676
+ }, "strip", z.ZodTypeAny, {
10677
+ type: "animationAction";
10678
+ required: boolean;
10679
+ control: "animationAction";
10680
+ label?: string | undefined;
10681
+ defaultValue?: undefined;
10682
+ description?: string | undefined;
10683
+ }, {
10684
+ type: "animationAction";
10685
+ required: boolean;
10686
+ control: "animationAction";
10687
+ label?: string | undefined;
10688
+ defaultValue?: undefined;
10689
+ description?: string | undefined;
10690
+ }>]>>>;
11033
10691
  }, "strip", z.ZodTypeAny, {
11034
- icon: string;
11035
10692
  order?: number | undefined;
11036
10693
  label?: string | undefined;
11037
10694
  description?: string | undefined;
@@ -11041,13 +10698,13 @@ export declare const WsComponentMeta: z.ZodObject<{
11041
10698
  category?: "states" | "component-states" | undefined;
11042
10699
  }[] | undefined;
11043
10700
  category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11044
- placeholder?: string | undefined;
11045
10701
  contentModel?: {
11046
10702
  category: "none" | "instance";
11047
10703
  children: ("instance" | "rich-text" | (string & {}))[];
11048
10704
  descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
11049
10705
  } | undefined;
11050
10706
  indexWithinAncestor?: string | undefined;
10707
+ icon?: string | undefined;
11051
10708
  presetStyle?: Record<string, {
11052
10709
  value: {
11053
10710
  value: {
@@ -11654,8 +11311,173 @@ export declare const WsComponentMeta: z.ZodObject<{
11654
11311
  property: string;
11655
11312
  state?: string | undefined;
11656
11313
  }[]> | undefined;
11314
+ initialProps?: string[] | undefined;
11315
+ props?: Record<string, {
11316
+ options: string[];
11317
+ type: "string";
11318
+ required: boolean;
11319
+ control: "tag";
11320
+ label?: string | undefined;
11321
+ defaultValue?: undefined;
11322
+ description?: string | undefined;
11323
+ } | {
11324
+ type: "number";
11325
+ required: boolean;
11326
+ control: "number";
11327
+ label?: string | undefined;
11328
+ defaultValue?: number | undefined;
11329
+ description?: string | undefined;
11330
+ } | {
11331
+ type: "number";
11332
+ required: boolean;
11333
+ control: "range";
11334
+ label?: string | undefined;
11335
+ defaultValue?: number | undefined;
11336
+ description?: string | undefined;
11337
+ } | {
11338
+ type: "string";
11339
+ required: boolean;
11340
+ control: "text";
11341
+ label?: string | undefined;
11342
+ defaultValue?: string | undefined;
11343
+ description?: string | undefined;
11344
+ rows?: number | undefined;
11345
+ } | {
11346
+ type: "resource";
11347
+ required: boolean;
11348
+ control: "resource";
11349
+ label?: string | undefined;
11350
+ defaultValue?: string | undefined;
11351
+ description?: string | undefined;
11352
+ } | {
11353
+ type: "string";
11354
+ required: boolean;
11355
+ control: "code";
11356
+ language: "html" | "markdown";
11357
+ label?: string | undefined;
11358
+ defaultValue?: string | undefined;
11359
+ description?: string | undefined;
11360
+ } | {
11361
+ type: "string";
11362
+ required: boolean;
11363
+ control: "codetext";
11364
+ label?: string | undefined;
11365
+ defaultValue?: string | undefined;
11366
+ description?: string | undefined;
11367
+ } | {
11368
+ type: "string";
11369
+ required: boolean;
11370
+ control: "color";
11371
+ label?: string | undefined;
11372
+ defaultValue?: string | undefined;
11373
+ description?: string | undefined;
11374
+ } | {
11375
+ type: "boolean";
11376
+ required: boolean;
11377
+ control: "boolean";
11378
+ label?: string | undefined;
11379
+ defaultValue?: boolean | undefined;
11380
+ description?: string | undefined;
11381
+ } | {
11382
+ options: string[];
11383
+ type: "string";
11384
+ required: boolean;
11385
+ control: "radio";
11386
+ label?: string | undefined;
11387
+ defaultValue?: string | undefined;
11388
+ description?: string | undefined;
11389
+ } | {
11390
+ options: string[];
11391
+ type: "string";
11392
+ required: boolean;
11393
+ control: "inline-radio";
11394
+ label?: string | undefined;
11395
+ defaultValue?: string | undefined;
11396
+ description?: string | undefined;
11397
+ } | {
11398
+ options: string[];
11399
+ type: "string";
11400
+ required: boolean;
11401
+ control: "select";
11402
+ label?: string | undefined;
11403
+ defaultValue?: string | undefined;
11404
+ description?: string | undefined;
11405
+ } | {
11406
+ options: string[];
11407
+ type: "string[]";
11408
+ required: boolean;
11409
+ control: "check";
11410
+ label?: string | undefined;
11411
+ defaultValue?: string[] | undefined;
11412
+ description?: string | undefined;
11413
+ } | {
11414
+ options: string[];
11415
+ type: "string[]";
11416
+ required: boolean;
11417
+ control: "inline-check";
11418
+ label?: string | undefined;
11419
+ defaultValue?: string[] | undefined;
11420
+ description?: string | undefined;
11421
+ } | {
11422
+ options: string[];
11423
+ type: "string[]";
11424
+ required: boolean;
11425
+ control: "multi-select";
11426
+ label?: string | undefined;
11427
+ defaultValue?: string[] | undefined;
11428
+ description?: string | undefined;
11429
+ } | {
11430
+ type: "string";
11431
+ required: boolean;
11432
+ control: "file";
11433
+ label?: string | undefined;
11434
+ defaultValue?: string | undefined;
11435
+ description?: string | undefined;
11436
+ accept?: string | undefined;
11437
+ } | {
11438
+ type: "string";
11439
+ required: boolean;
11440
+ control: "url";
11441
+ label?: string | undefined;
11442
+ defaultValue?: string | undefined;
11443
+ description?: string | undefined;
11444
+ } | {
11445
+ type: "json";
11446
+ required: boolean;
11447
+ control: "json";
11448
+ label?: string | undefined;
11449
+ defaultValue?: unknown;
11450
+ description?: string | undefined;
11451
+ } | {
11452
+ type: "string";
11453
+ required: boolean;
11454
+ control: "date";
11455
+ label?: string | undefined;
11456
+ defaultValue?: string | undefined;
11457
+ description?: string | undefined;
11458
+ } | {
11459
+ type: "action";
11460
+ required: boolean;
11461
+ control: "action";
11462
+ label?: string | undefined;
11463
+ defaultValue?: undefined;
11464
+ description?: string | undefined;
11465
+ } | {
11466
+ type: "string";
11467
+ required: boolean;
11468
+ control: "textContent";
11469
+ label?: string | undefined;
11470
+ defaultValue?: string | undefined;
11471
+ description?: string | undefined;
11472
+ } | {
11473
+ type: "animationAction";
11474
+ required: boolean;
11475
+ control: "animationAction";
11476
+ label?: string | undefined;
11477
+ defaultValue?: undefined;
11478
+ description?: string | undefined;
11479
+ }> | undefined;
11657
11480
  }, {
11658
- icon: string;
11659
11481
  order?: number | undefined;
11660
11482
  label?: string | undefined;
11661
11483
  description?: string | undefined;
@@ -11665,13 +11487,13 @@ export declare const WsComponentMeta: z.ZodObject<{
11665
11487
  category?: "states" | "component-states" | undefined;
11666
11488
  }[] | undefined;
11667
11489
  category?: "hidden" | "data" | "media" | "general" | "typography" | "animations" | "forms" | "localization" | "radix" | "xml" | "internal" | undefined;
11668
- placeholder?: string | undefined;
11669
11490
  contentModel?: {
11670
11491
  category: "none" | "instance";
11671
11492
  children: ("instance" | "rich-text" | (string & {}))[];
11672
11493
  descendants?: ("instance" | "rich-text" | (string & {}))[] | undefined;
11673
11494
  } | undefined;
11674
11495
  indexWithinAncestor?: string | undefined;
11496
+ icon?: string | undefined;
11675
11497
  presetStyle?: Record<string, {
11676
11498
  value: {
11677
11499
  value: {
@@ -12278,8 +12100,173 @@ export declare const WsComponentMeta: z.ZodObject<{
12278
12100
  property: string;
12279
12101
  state?: string | undefined;
12280
12102
  }[]> | undefined;
12103
+ initialProps?: string[] | undefined;
12104
+ props?: Record<string, {
12105
+ options: string[];
12106
+ type: "string";
12107
+ required: boolean;
12108
+ control: "tag";
12109
+ label?: string | undefined;
12110
+ defaultValue?: undefined;
12111
+ description?: string | undefined;
12112
+ } | {
12113
+ type: "number";
12114
+ required: boolean;
12115
+ control: "number";
12116
+ label?: string | undefined;
12117
+ defaultValue?: number | undefined;
12118
+ description?: string | undefined;
12119
+ } | {
12120
+ type: "number";
12121
+ required: boolean;
12122
+ control: "range";
12123
+ label?: string | undefined;
12124
+ defaultValue?: number | undefined;
12125
+ description?: string | undefined;
12126
+ } | {
12127
+ type: "string";
12128
+ required: boolean;
12129
+ control: "text";
12130
+ label?: string | undefined;
12131
+ defaultValue?: string | undefined;
12132
+ description?: string | undefined;
12133
+ rows?: number | undefined;
12134
+ } | {
12135
+ type: "resource";
12136
+ required: boolean;
12137
+ control: "resource";
12138
+ label?: string | undefined;
12139
+ defaultValue?: string | undefined;
12140
+ description?: string | undefined;
12141
+ } | {
12142
+ type: "string";
12143
+ required: boolean;
12144
+ control: "code";
12145
+ language: "html" | "markdown";
12146
+ label?: string | undefined;
12147
+ defaultValue?: string | undefined;
12148
+ description?: string | undefined;
12149
+ } | {
12150
+ type: "string";
12151
+ required: boolean;
12152
+ control: "codetext";
12153
+ label?: string | undefined;
12154
+ defaultValue?: string | undefined;
12155
+ description?: string | undefined;
12156
+ } | {
12157
+ type: "string";
12158
+ required: boolean;
12159
+ control: "color";
12160
+ label?: string | undefined;
12161
+ defaultValue?: string | undefined;
12162
+ description?: string | undefined;
12163
+ } | {
12164
+ type: "boolean";
12165
+ required: boolean;
12166
+ control: "boolean";
12167
+ label?: string | undefined;
12168
+ defaultValue?: boolean | undefined;
12169
+ description?: string | undefined;
12170
+ } | {
12171
+ options: string[];
12172
+ type: "string";
12173
+ required: boolean;
12174
+ control: "radio";
12175
+ label?: string | undefined;
12176
+ defaultValue?: string | undefined;
12177
+ description?: string | undefined;
12178
+ } | {
12179
+ options: string[];
12180
+ type: "string";
12181
+ required: boolean;
12182
+ control: "inline-radio";
12183
+ label?: string | undefined;
12184
+ defaultValue?: string | undefined;
12185
+ description?: string | undefined;
12186
+ } | {
12187
+ options: string[];
12188
+ type: "string";
12189
+ required: boolean;
12190
+ control: "select";
12191
+ label?: string | undefined;
12192
+ defaultValue?: string | undefined;
12193
+ description?: string | undefined;
12194
+ } | {
12195
+ options: string[];
12196
+ type: "string[]";
12197
+ required: boolean;
12198
+ control: "check";
12199
+ label?: string | undefined;
12200
+ defaultValue?: string[] | undefined;
12201
+ description?: string | undefined;
12202
+ } | {
12203
+ options: string[];
12204
+ type: "string[]";
12205
+ required: boolean;
12206
+ control: "inline-check";
12207
+ label?: string | undefined;
12208
+ defaultValue?: string[] | undefined;
12209
+ description?: string | undefined;
12210
+ } | {
12211
+ options: string[];
12212
+ type: "string[]";
12213
+ required: boolean;
12214
+ control: "multi-select";
12215
+ label?: string | undefined;
12216
+ defaultValue?: string[] | undefined;
12217
+ description?: string | undefined;
12218
+ } | {
12219
+ type: "string";
12220
+ required: boolean;
12221
+ control: "file";
12222
+ label?: string | undefined;
12223
+ defaultValue?: string | undefined;
12224
+ description?: string | undefined;
12225
+ accept?: string | undefined;
12226
+ } | {
12227
+ type: "string";
12228
+ required: boolean;
12229
+ control: "url";
12230
+ label?: string | undefined;
12231
+ defaultValue?: string | undefined;
12232
+ description?: string | undefined;
12233
+ } | {
12234
+ type: "json";
12235
+ required: boolean;
12236
+ control: "json";
12237
+ label?: string | undefined;
12238
+ defaultValue?: unknown;
12239
+ description?: string | undefined;
12240
+ } | {
12241
+ type: "string";
12242
+ required: boolean;
12243
+ control: "date";
12244
+ label?: string | undefined;
12245
+ defaultValue?: string | undefined;
12246
+ description?: string | undefined;
12247
+ } | {
12248
+ type: "action";
12249
+ required: boolean;
12250
+ control: "action";
12251
+ label?: string | undefined;
12252
+ defaultValue?: undefined;
12253
+ description?: string | undefined;
12254
+ } | {
12255
+ type: "string";
12256
+ required: boolean;
12257
+ control: "textContent";
12258
+ label?: string | undefined;
12259
+ defaultValue?: string | undefined;
12260
+ description?: string | undefined;
12261
+ } | {
12262
+ type: "animationAction";
12263
+ required: boolean;
12264
+ control: "animationAction";
12265
+ label?: string | undefined;
12266
+ defaultValue?: undefined;
12267
+ description?: string | undefined;
12268
+ }> | undefined;
12281
12269
  }>;
12282
12270
  export type WsComponentMeta = Omit<z.infer<typeof WsComponentMeta>, "presetStyle"> & {
12283
12271
  presetStyle?: PresetStyle;
12284
12272
  };
12285
- export {};