@webstudio-is/react-sdk 0.191.4 → 0.191.5

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.
@@ -0,0 +1,748 @@
1
+ import type { WsComponentMeta } from "./components/component-meta";
2
+ export declare const rootComponent = "ws:root";
3
+ export declare const portalComponent = "Slot";
4
+ export declare const collectionComponent = "ws:collection";
5
+ export declare const descendantComponent = "ws:descendant";
6
+ export declare const blockTemplateComponent = "ws:block-template";
7
+ export declare const blockTemplateMeta: WsComponentMeta;
8
+ export declare const blockComponent = "ws:block";
9
+ export declare const coreMetas: {
10
+ "ws:root": WsComponentMeta;
11
+ "ws:collection": WsComponentMeta;
12
+ "ws:descendant": WsComponentMeta;
13
+ "ws:block": WsComponentMeta;
14
+ "ws:block-template": WsComponentMeta;
15
+ };
16
+ export declare const corePropsMetas: {
17
+ "ws:root": {
18
+ props: Record<string, {
19
+ type: "number";
20
+ required: boolean;
21
+ control: "number";
22
+ defaultValue?: number | undefined;
23
+ label?: string | undefined;
24
+ description?: string | undefined;
25
+ } | {
26
+ type: "number";
27
+ required: boolean;
28
+ control: "range";
29
+ defaultValue?: number | undefined;
30
+ label?: string | undefined;
31
+ description?: string | undefined;
32
+ } | {
33
+ type: "string";
34
+ required: boolean;
35
+ control: "text";
36
+ defaultValue?: string | undefined;
37
+ rows?: number | undefined;
38
+ label?: string | undefined;
39
+ description?: string | undefined;
40
+ } | {
41
+ type: "string";
42
+ required: boolean;
43
+ language: "html" | "markdown";
44
+ control: "code";
45
+ defaultValue?: string | undefined;
46
+ label?: string | undefined;
47
+ description?: string | undefined;
48
+ } | {
49
+ type: "string";
50
+ required: boolean;
51
+ control: "codetext";
52
+ defaultValue?: string | undefined;
53
+ label?: string | undefined;
54
+ description?: string | undefined;
55
+ } | {
56
+ type: "string";
57
+ required: boolean;
58
+ control: "color";
59
+ defaultValue?: string | undefined;
60
+ label?: string | undefined;
61
+ description?: string | undefined;
62
+ } | {
63
+ type: "boolean";
64
+ required: boolean;
65
+ control: "boolean";
66
+ defaultValue?: boolean | undefined;
67
+ label?: string | undefined;
68
+ description?: string | undefined;
69
+ } | {
70
+ options: string[];
71
+ type: "string";
72
+ required: boolean;
73
+ control: "radio";
74
+ defaultValue?: string | undefined;
75
+ label?: string | undefined;
76
+ description?: string | undefined;
77
+ } | {
78
+ options: string[];
79
+ type: "string";
80
+ required: boolean;
81
+ control: "inline-radio";
82
+ defaultValue?: string | undefined;
83
+ label?: string | undefined;
84
+ description?: string | undefined;
85
+ } | {
86
+ options: string[];
87
+ type: "string";
88
+ required: boolean;
89
+ control: "select";
90
+ defaultValue?: string | undefined;
91
+ label?: string | undefined;
92
+ description?: string | undefined;
93
+ } | {
94
+ options: string[];
95
+ type: "string[]";
96
+ required: boolean;
97
+ control: "check";
98
+ defaultValue?: string[] | undefined;
99
+ label?: string | undefined;
100
+ description?: string | undefined;
101
+ } | {
102
+ options: string[];
103
+ type: "string[]";
104
+ required: boolean;
105
+ control: "inline-check";
106
+ defaultValue?: string[] | undefined;
107
+ label?: string | undefined;
108
+ description?: string | undefined;
109
+ } | {
110
+ options: string[];
111
+ type: "string[]";
112
+ required: boolean;
113
+ control: "multi-select";
114
+ defaultValue?: string[] | undefined;
115
+ label?: string | undefined;
116
+ description?: string | undefined;
117
+ } | {
118
+ type: "string";
119
+ required: boolean;
120
+ control: "file";
121
+ defaultValue?: string | undefined;
122
+ accept?: string | undefined;
123
+ label?: string | undefined;
124
+ description?: string | undefined;
125
+ } | {
126
+ type: "string";
127
+ required: boolean;
128
+ control: "url";
129
+ defaultValue?: string | undefined;
130
+ label?: string | undefined;
131
+ description?: string | undefined;
132
+ } | {
133
+ type: "json";
134
+ required: boolean;
135
+ control: "json";
136
+ defaultValue?: unknown;
137
+ label?: string | undefined;
138
+ description?: string | undefined;
139
+ } | {
140
+ type: "string";
141
+ required: boolean;
142
+ control: "date";
143
+ defaultValue?: string | undefined;
144
+ label?: string | undefined;
145
+ description?: string | undefined;
146
+ } | {
147
+ type: "action";
148
+ required: boolean;
149
+ control: "action";
150
+ defaultValue?: undefined;
151
+ label?: string | undefined;
152
+ description?: string | undefined;
153
+ } | {
154
+ type: "string";
155
+ required: boolean;
156
+ control: "textContent";
157
+ defaultValue?: string | undefined;
158
+ label?: string | undefined;
159
+ description?: string | undefined;
160
+ }>;
161
+ initialProps?: string[] | undefined;
162
+ };
163
+ "ws:collection": {
164
+ props: Record<string, {
165
+ type: "number";
166
+ required: boolean;
167
+ control: "number";
168
+ defaultValue?: number | undefined;
169
+ label?: string | undefined;
170
+ description?: string | undefined;
171
+ } | {
172
+ type: "number";
173
+ required: boolean;
174
+ control: "range";
175
+ defaultValue?: number | undefined;
176
+ label?: string | undefined;
177
+ description?: string | undefined;
178
+ } | {
179
+ type: "string";
180
+ required: boolean;
181
+ control: "text";
182
+ defaultValue?: string | undefined;
183
+ rows?: number | undefined;
184
+ label?: string | undefined;
185
+ description?: string | undefined;
186
+ } | {
187
+ type: "string";
188
+ required: boolean;
189
+ language: "html" | "markdown";
190
+ control: "code";
191
+ defaultValue?: string | undefined;
192
+ label?: string | undefined;
193
+ description?: string | undefined;
194
+ } | {
195
+ type: "string";
196
+ required: boolean;
197
+ control: "codetext";
198
+ defaultValue?: string | undefined;
199
+ label?: string | undefined;
200
+ description?: string | undefined;
201
+ } | {
202
+ type: "string";
203
+ required: boolean;
204
+ control: "color";
205
+ defaultValue?: string | undefined;
206
+ label?: string | undefined;
207
+ description?: string | undefined;
208
+ } | {
209
+ type: "boolean";
210
+ required: boolean;
211
+ control: "boolean";
212
+ defaultValue?: boolean | undefined;
213
+ label?: string | undefined;
214
+ description?: string | undefined;
215
+ } | {
216
+ options: string[];
217
+ type: "string";
218
+ required: boolean;
219
+ control: "radio";
220
+ defaultValue?: string | undefined;
221
+ label?: string | undefined;
222
+ description?: string | undefined;
223
+ } | {
224
+ options: string[];
225
+ type: "string";
226
+ required: boolean;
227
+ control: "inline-radio";
228
+ defaultValue?: string | undefined;
229
+ label?: string | undefined;
230
+ description?: string | undefined;
231
+ } | {
232
+ options: string[];
233
+ type: "string";
234
+ required: boolean;
235
+ control: "select";
236
+ defaultValue?: string | undefined;
237
+ label?: string | undefined;
238
+ description?: string | undefined;
239
+ } | {
240
+ options: string[];
241
+ type: "string[]";
242
+ required: boolean;
243
+ control: "check";
244
+ defaultValue?: string[] | undefined;
245
+ label?: string | undefined;
246
+ description?: string | undefined;
247
+ } | {
248
+ options: string[];
249
+ type: "string[]";
250
+ required: boolean;
251
+ control: "inline-check";
252
+ defaultValue?: string[] | undefined;
253
+ label?: string | undefined;
254
+ description?: string | undefined;
255
+ } | {
256
+ options: string[];
257
+ type: "string[]";
258
+ required: boolean;
259
+ control: "multi-select";
260
+ defaultValue?: string[] | undefined;
261
+ label?: string | undefined;
262
+ description?: string | undefined;
263
+ } | {
264
+ type: "string";
265
+ required: boolean;
266
+ control: "file";
267
+ defaultValue?: string | undefined;
268
+ accept?: string | undefined;
269
+ label?: string | undefined;
270
+ description?: string | undefined;
271
+ } | {
272
+ type: "string";
273
+ required: boolean;
274
+ control: "url";
275
+ defaultValue?: string | undefined;
276
+ label?: string | undefined;
277
+ description?: string | undefined;
278
+ } | {
279
+ type: "json";
280
+ required: boolean;
281
+ control: "json";
282
+ defaultValue?: unknown;
283
+ label?: string | undefined;
284
+ description?: string | undefined;
285
+ } | {
286
+ type: "string";
287
+ required: boolean;
288
+ control: "date";
289
+ defaultValue?: string | undefined;
290
+ label?: string | undefined;
291
+ description?: string | undefined;
292
+ } | {
293
+ type: "action";
294
+ required: boolean;
295
+ control: "action";
296
+ defaultValue?: undefined;
297
+ label?: string | undefined;
298
+ description?: string | undefined;
299
+ } | {
300
+ type: "string";
301
+ required: boolean;
302
+ control: "textContent";
303
+ defaultValue?: string | undefined;
304
+ label?: string | undefined;
305
+ description?: string | undefined;
306
+ }>;
307
+ initialProps?: string[] | undefined;
308
+ };
309
+ "ws:descendant": {
310
+ props: Record<string, {
311
+ type: "number";
312
+ required: boolean;
313
+ control: "number";
314
+ defaultValue?: number | undefined;
315
+ label?: string | undefined;
316
+ description?: string | undefined;
317
+ } | {
318
+ type: "number";
319
+ required: boolean;
320
+ control: "range";
321
+ defaultValue?: number | undefined;
322
+ label?: string | undefined;
323
+ description?: string | undefined;
324
+ } | {
325
+ type: "string";
326
+ required: boolean;
327
+ control: "text";
328
+ defaultValue?: string | undefined;
329
+ rows?: number | undefined;
330
+ label?: string | undefined;
331
+ description?: string | undefined;
332
+ } | {
333
+ type: "string";
334
+ required: boolean;
335
+ language: "html" | "markdown";
336
+ control: "code";
337
+ defaultValue?: string | undefined;
338
+ label?: string | undefined;
339
+ description?: string | undefined;
340
+ } | {
341
+ type: "string";
342
+ required: boolean;
343
+ control: "codetext";
344
+ defaultValue?: string | undefined;
345
+ label?: string | undefined;
346
+ description?: string | undefined;
347
+ } | {
348
+ type: "string";
349
+ required: boolean;
350
+ control: "color";
351
+ defaultValue?: string | undefined;
352
+ label?: string | undefined;
353
+ description?: string | undefined;
354
+ } | {
355
+ type: "boolean";
356
+ required: boolean;
357
+ control: "boolean";
358
+ defaultValue?: boolean | undefined;
359
+ label?: string | undefined;
360
+ description?: string | undefined;
361
+ } | {
362
+ options: string[];
363
+ type: "string";
364
+ required: boolean;
365
+ control: "radio";
366
+ defaultValue?: string | undefined;
367
+ label?: string | undefined;
368
+ description?: string | undefined;
369
+ } | {
370
+ options: string[];
371
+ type: "string";
372
+ required: boolean;
373
+ control: "inline-radio";
374
+ defaultValue?: string | undefined;
375
+ label?: string | undefined;
376
+ description?: string | undefined;
377
+ } | {
378
+ options: string[];
379
+ type: "string";
380
+ required: boolean;
381
+ control: "select";
382
+ defaultValue?: string | undefined;
383
+ label?: string | undefined;
384
+ description?: string | undefined;
385
+ } | {
386
+ options: string[];
387
+ type: "string[]";
388
+ required: boolean;
389
+ control: "check";
390
+ defaultValue?: string[] | undefined;
391
+ label?: string | undefined;
392
+ description?: string | undefined;
393
+ } | {
394
+ options: string[];
395
+ type: "string[]";
396
+ required: boolean;
397
+ control: "inline-check";
398
+ defaultValue?: string[] | undefined;
399
+ label?: string | undefined;
400
+ description?: string | undefined;
401
+ } | {
402
+ options: string[];
403
+ type: "string[]";
404
+ required: boolean;
405
+ control: "multi-select";
406
+ defaultValue?: string[] | undefined;
407
+ label?: string | undefined;
408
+ description?: string | undefined;
409
+ } | {
410
+ type: "string";
411
+ required: boolean;
412
+ control: "file";
413
+ defaultValue?: string | undefined;
414
+ accept?: string | undefined;
415
+ label?: string | undefined;
416
+ description?: string | undefined;
417
+ } | {
418
+ type: "string";
419
+ required: boolean;
420
+ control: "url";
421
+ defaultValue?: string | undefined;
422
+ label?: string | undefined;
423
+ description?: string | undefined;
424
+ } | {
425
+ type: "json";
426
+ required: boolean;
427
+ control: "json";
428
+ defaultValue?: unknown;
429
+ label?: string | undefined;
430
+ description?: string | undefined;
431
+ } | {
432
+ type: "string";
433
+ required: boolean;
434
+ control: "date";
435
+ defaultValue?: string | undefined;
436
+ label?: string | undefined;
437
+ description?: string | undefined;
438
+ } | {
439
+ type: "action";
440
+ required: boolean;
441
+ control: "action";
442
+ defaultValue?: undefined;
443
+ label?: string | undefined;
444
+ description?: string | undefined;
445
+ } | {
446
+ type: "string";
447
+ required: boolean;
448
+ control: "textContent";
449
+ defaultValue?: string | undefined;
450
+ label?: string | undefined;
451
+ description?: string | undefined;
452
+ }>;
453
+ initialProps?: string[] | undefined;
454
+ };
455
+ "ws:block": {
456
+ props: Record<string, {
457
+ type: "number";
458
+ required: boolean;
459
+ control: "number";
460
+ defaultValue?: number | undefined;
461
+ label?: string | undefined;
462
+ description?: string | undefined;
463
+ } | {
464
+ type: "number";
465
+ required: boolean;
466
+ control: "range";
467
+ defaultValue?: number | undefined;
468
+ label?: string | undefined;
469
+ description?: string | undefined;
470
+ } | {
471
+ type: "string";
472
+ required: boolean;
473
+ control: "text";
474
+ defaultValue?: string | undefined;
475
+ rows?: number | undefined;
476
+ label?: string | undefined;
477
+ description?: string | undefined;
478
+ } | {
479
+ type: "string";
480
+ required: boolean;
481
+ language: "html" | "markdown";
482
+ control: "code";
483
+ defaultValue?: string | undefined;
484
+ label?: string | undefined;
485
+ description?: string | undefined;
486
+ } | {
487
+ type: "string";
488
+ required: boolean;
489
+ control: "codetext";
490
+ defaultValue?: string | undefined;
491
+ label?: string | undefined;
492
+ description?: string | undefined;
493
+ } | {
494
+ type: "string";
495
+ required: boolean;
496
+ control: "color";
497
+ defaultValue?: string | undefined;
498
+ label?: string | undefined;
499
+ description?: string | undefined;
500
+ } | {
501
+ type: "boolean";
502
+ required: boolean;
503
+ control: "boolean";
504
+ defaultValue?: boolean | undefined;
505
+ label?: string | undefined;
506
+ description?: string | undefined;
507
+ } | {
508
+ options: string[];
509
+ type: "string";
510
+ required: boolean;
511
+ control: "radio";
512
+ defaultValue?: string | undefined;
513
+ label?: string | undefined;
514
+ description?: string | undefined;
515
+ } | {
516
+ options: string[];
517
+ type: "string";
518
+ required: boolean;
519
+ control: "inline-radio";
520
+ defaultValue?: string | undefined;
521
+ label?: string | undefined;
522
+ description?: string | undefined;
523
+ } | {
524
+ options: string[];
525
+ type: "string";
526
+ required: boolean;
527
+ control: "select";
528
+ defaultValue?: string | undefined;
529
+ label?: string | undefined;
530
+ description?: string | undefined;
531
+ } | {
532
+ options: string[];
533
+ type: "string[]";
534
+ required: boolean;
535
+ control: "check";
536
+ defaultValue?: string[] | undefined;
537
+ label?: string | undefined;
538
+ description?: string | undefined;
539
+ } | {
540
+ options: string[];
541
+ type: "string[]";
542
+ required: boolean;
543
+ control: "inline-check";
544
+ defaultValue?: string[] | undefined;
545
+ label?: string | undefined;
546
+ description?: string | undefined;
547
+ } | {
548
+ options: string[];
549
+ type: "string[]";
550
+ required: boolean;
551
+ control: "multi-select";
552
+ defaultValue?: string[] | undefined;
553
+ label?: string | undefined;
554
+ description?: string | undefined;
555
+ } | {
556
+ type: "string";
557
+ required: boolean;
558
+ control: "file";
559
+ defaultValue?: string | undefined;
560
+ accept?: string | undefined;
561
+ label?: string | undefined;
562
+ description?: string | undefined;
563
+ } | {
564
+ type: "string";
565
+ required: boolean;
566
+ control: "url";
567
+ defaultValue?: string | undefined;
568
+ label?: string | undefined;
569
+ description?: string | undefined;
570
+ } | {
571
+ type: "json";
572
+ required: boolean;
573
+ control: "json";
574
+ defaultValue?: unknown;
575
+ label?: string | undefined;
576
+ description?: string | undefined;
577
+ } | {
578
+ type: "string";
579
+ required: boolean;
580
+ control: "date";
581
+ defaultValue?: string | undefined;
582
+ label?: string | undefined;
583
+ description?: string | undefined;
584
+ } | {
585
+ type: "action";
586
+ required: boolean;
587
+ control: "action";
588
+ defaultValue?: undefined;
589
+ label?: string | undefined;
590
+ description?: string | undefined;
591
+ } | {
592
+ type: "string";
593
+ required: boolean;
594
+ control: "textContent";
595
+ defaultValue?: string | undefined;
596
+ label?: string | undefined;
597
+ description?: string | undefined;
598
+ }>;
599
+ initialProps?: string[] | undefined;
600
+ };
601
+ "ws:block-template": {
602
+ props: Record<string, {
603
+ type: "number";
604
+ required: boolean;
605
+ control: "number";
606
+ defaultValue?: number | undefined;
607
+ label?: string | undefined;
608
+ description?: string | undefined;
609
+ } | {
610
+ type: "number";
611
+ required: boolean;
612
+ control: "range";
613
+ defaultValue?: number | undefined;
614
+ label?: string | undefined;
615
+ description?: string | undefined;
616
+ } | {
617
+ type: "string";
618
+ required: boolean;
619
+ control: "text";
620
+ defaultValue?: string | undefined;
621
+ rows?: number | undefined;
622
+ label?: string | undefined;
623
+ description?: string | undefined;
624
+ } | {
625
+ type: "string";
626
+ required: boolean;
627
+ language: "html" | "markdown";
628
+ control: "code";
629
+ defaultValue?: string | undefined;
630
+ label?: string | undefined;
631
+ description?: string | undefined;
632
+ } | {
633
+ type: "string";
634
+ required: boolean;
635
+ control: "codetext";
636
+ defaultValue?: string | undefined;
637
+ label?: string | undefined;
638
+ description?: string | undefined;
639
+ } | {
640
+ type: "string";
641
+ required: boolean;
642
+ control: "color";
643
+ defaultValue?: string | undefined;
644
+ label?: string | undefined;
645
+ description?: string | undefined;
646
+ } | {
647
+ type: "boolean";
648
+ required: boolean;
649
+ control: "boolean";
650
+ defaultValue?: boolean | undefined;
651
+ label?: string | undefined;
652
+ description?: string | undefined;
653
+ } | {
654
+ options: string[];
655
+ type: "string";
656
+ required: boolean;
657
+ control: "radio";
658
+ defaultValue?: string | undefined;
659
+ label?: string | undefined;
660
+ description?: string | undefined;
661
+ } | {
662
+ options: string[];
663
+ type: "string";
664
+ required: boolean;
665
+ control: "inline-radio";
666
+ defaultValue?: string | undefined;
667
+ label?: string | undefined;
668
+ description?: string | undefined;
669
+ } | {
670
+ options: string[];
671
+ type: "string";
672
+ required: boolean;
673
+ control: "select";
674
+ defaultValue?: string | undefined;
675
+ label?: string | undefined;
676
+ description?: string | undefined;
677
+ } | {
678
+ options: string[];
679
+ type: "string[]";
680
+ required: boolean;
681
+ control: "check";
682
+ defaultValue?: string[] | undefined;
683
+ label?: string | undefined;
684
+ description?: string | undefined;
685
+ } | {
686
+ options: string[];
687
+ type: "string[]";
688
+ required: boolean;
689
+ control: "inline-check";
690
+ defaultValue?: string[] | undefined;
691
+ label?: string | undefined;
692
+ description?: string | undefined;
693
+ } | {
694
+ options: string[];
695
+ type: "string[]";
696
+ required: boolean;
697
+ control: "multi-select";
698
+ defaultValue?: string[] | undefined;
699
+ label?: string | undefined;
700
+ description?: string | undefined;
701
+ } | {
702
+ type: "string";
703
+ required: boolean;
704
+ control: "file";
705
+ defaultValue?: string | undefined;
706
+ accept?: string | undefined;
707
+ label?: string | undefined;
708
+ description?: string | undefined;
709
+ } | {
710
+ type: "string";
711
+ required: boolean;
712
+ control: "url";
713
+ defaultValue?: string | undefined;
714
+ label?: string | undefined;
715
+ description?: string | undefined;
716
+ } | {
717
+ type: "json";
718
+ required: boolean;
719
+ control: "json";
720
+ defaultValue?: unknown;
721
+ label?: string | undefined;
722
+ description?: string | undefined;
723
+ } | {
724
+ type: "string";
725
+ required: boolean;
726
+ control: "date";
727
+ defaultValue?: string | undefined;
728
+ label?: string | undefined;
729
+ description?: string | undefined;
730
+ } | {
731
+ type: "action";
732
+ required: boolean;
733
+ control: "action";
734
+ defaultValue?: undefined;
735
+ label?: string | undefined;
736
+ description?: string | undefined;
737
+ } | {
738
+ type: "string";
739
+ required: boolean;
740
+ control: "textContent";
741
+ defaultValue?: string | undefined;
742
+ label?: string | undefined;
743
+ description?: string | undefined;
744
+ }>;
745
+ initialProps?: string[] | undefined;
746
+ };
747
+ };
748
+ export declare const isCoreComponent: (component: string) => component is "ws:root" | "ws:collection" | "ws:descendant" | "ws:block-template" | "ws:block";