@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.
@@ -1,3 +1,9 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
1
7
  // src/core-templates.tsx
2
8
  import {
3
9
  $,
@@ -13,11 +19,109 @@ import {
13
19
  ListViewIcon,
14
20
  PaintBrushIcon,
15
21
  SettingsIcon,
16
- AddTemplateInstanceIcon,
17
- HtmlElementIcon
22
+ AddTemplateInstanceIcon
18
23
  } from "@webstudio-is/icons/svg";
19
24
 
20
25
  // src/__generated__/normalize.css.ts
26
+ var normalize_css_exports = {};
27
+ __export(normalize_css_exports, {
28
+ a: () => a,
29
+ address: () => address,
30
+ article: () => article,
31
+ aside: () => aside,
32
+ b: () => b,
33
+ body: () => body,
34
+ button: () => button,
35
+ checkbox: () => checkbox,
36
+ code: () => code,
37
+ div: () => div,
38
+ figure: () => figure,
39
+ footer: () => footer,
40
+ form: () => form,
41
+ h1: () => h1,
42
+ h2: () => h2,
43
+ h3: () => h3,
44
+ h4: () => h4,
45
+ h5: () => h5,
46
+ h6: () => h6,
47
+ header: () => header,
48
+ hr: () => hr,
49
+ html: () => html,
50
+ i: () => i,
51
+ img: () => img,
52
+ input: () => input,
53
+ kbd: () => kbd,
54
+ label: () => label,
55
+ legend: () => legend,
56
+ li: () => li,
57
+ main: () => main,
58
+ nav: () => nav,
59
+ ol: () => ol,
60
+ optgroup: () => optgroup,
61
+ p: () => p,
62
+ pre: () => pre,
63
+ progress: () => progress,
64
+ radio: () => radio,
65
+ samp: () => samp,
66
+ section: () => section,
67
+ select: () => select,
68
+ small: () => small,
69
+ span: () => span,
70
+ strong: () => strong,
71
+ sub: () => sub,
72
+ summary: () => summary,
73
+ sup: () => sup,
74
+ table: () => table,
75
+ textarea: () => textarea,
76
+ time: () => time,
77
+ ul: () => ul
78
+ });
79
+ var div = [
80
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
81
+ {
82
+ property: "border-top-width",
83
+ value: { type: "unit", unit: "px", value: 1 }
84
+ },
85
+ {
86
+ property: "border-right-width",
87
+ value: { type: "unit", unit: "px", value: 1 }
88
+ },
89
+ {
90
+ property: "border-bottom-width",
91
+ value: { type: "unit", unit: "px", value: 1 }
92
+ },
93
+ {
94
+ property: "border-left-width",
95
+ value: { type: "unit", unit: "px", value: 1 }
96
+ },
97
+ { property: "outline-width", value: { type: "unit", unit: "px", value: 1 } }
98
+ ];
99
+ var address = div;
100
+ var article = div;
101
+ var aside = div;
102
+ var figure = div;
103
+ var footer = div;
104
+ var header = div;
105
+ var main = div;
106
+ var nav = div;
107
+ var section = div;
108
+ var form = div;
109
+ var label = div;
110
+ var time = div;
111
+ var h1 = div;
112
+ var h2 = div;
113
+ var h3 = div;
114
+ var h4 = div;
115
+ var h5 = div;
116
+ var h6 = div;
117
+ var i = div;
118
+ var img = div;
119
+ var a = div;
120
+ var li = div;
121
+ var ul = div;
122
+ var ol = div;
123
+ var p = div;
124
+ var span = div;
21
125
  var html = [
22
126
  { property: "display", value: { type: "keyword", value: "grid" } },
23
127
  { property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
@@ -35,6 +139,602 @@ var html = [
35
139
  value: { type: "keyword", value: "preserve" }
36
140
  }
37
141
  ];
142
+ var body = [
143
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
144
+ {
145
+ property: "margin-right",
146
+ value: { type: "unit", unit: "number", value: 0 }
147
+ },
148
+ {
149
+ property: "margin-bottom",
150
+ value: { type: "unit", unit: "number", value: 0 }
151
+ },
152
+ {
153
+ property: "margin-left",
154
+ value: { type: "unit", unit: "number", value: 0 }
155
+ },
156
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
157
+ {
158
+ property: "border-top-width",
159
+ value: { type: "unit", unit: "px", value: 1 }
160
+ },
161
+ {
162
+ property: "border-right-width",
163
+ value: { type: "unit", unit: "px", value: 1 }
164
+ },
165
+ {
166
+ property: "border-bottom-width",
167
+ value: { type: "unit", unit: "px", value: 1 }
168
+ },
169
+ {
170
+ property: "border-left-width",
171
+ value: { type: "unit", unit: "px", value: 1 }
172
+ }
173
+ ];
174
+ var hr = [
175
+ { property: "height", value: { type: "unit", unit: "number", value: 0 } },
176
+ { property: "color", value: { type: "keyword", value: "inherit" } },
177
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
178
+ {
179
+ property: "border-top-width",
180
+ value: { type: "unit", unit: "px", value: 1 }
181
+ },
182
+ {
183
+ property: "border-right-width",
184
+ value: { type: "unit", unit: "px", value: 1 }
185
+ },
186
+ {
187
+ property: "border-bottom-width",
188
+ value: { type: "unit", unit: "px", value: 1 }
189
+ },
190
+ {
191
+ property: "border-left-width",
192
+ value: { type: "unit", unit: "px", value: 1 }
193
+ }
194
+ ];
195
+ var b = [
196
+ {
197
+ property: "font-weight",
198
+ value: { type: "unit", unit: "number", value: 700 }
199
+ },
200
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
201
+ {
202
+ property: "border-top-width",
203
+ value: { type: "unit", unit: "px", value: 1 }
204
+ },
205
+ {
206
+ property: "border-right-width",
207
+ value: { type: "unit", unit: "px", value: 1 }
208
+ },
209
+ {
210
+ property: "border-bottom-width",
211
+ value: { type: "unit", unit: "px", value: 1 }
212
+ },
213
+ {
214
+ property: "border-left-width",
215
+ value: { type: "unit", unit: "px", value: 1 }
216
+ }
217
+ ];
218
+ var strong = b;
219
+ var code = [
220
+ {
221
+ property: "font-family",
222
+ value: {
223
+ type: "fontFamily",
224
+ value: [
225
+ "ui-monospace",
226
+ "SFMono-Regular",
227
+ "Consolas",
228
+ "Liberation Mono",
229
+ "Menlo",
230
+ "monospace"
231
+ ]
232
+ }
233
+ },
234
+ { property: "font-size", value: { type: "unit", unit: "em", value: 1 } },
235
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
236
+ {
237
+ property: "border-top-width",
238
+ value: { type: "unit", unit: "px", value: 1 }
239
+ },
240
+ {
241
+ property: "border-right-width",
242
+ value: { type: "unit", unit: "px", value: 1 }
243
+ },
244
+ {
245
+ property: "border-bottom-width",
246
+ value: { type: "unit", unit: "px", value: 1 }
247
+ },
248
+ {
249
+ property: "border-left-width",
250
+ value: { type: "unit", unit: "px", value: 1 }
251
+ }
252
+ ];
253
+ var kbd = code;
254
+ var samp = code;
255
+ var pre = code;
256
+ var small = [
257
+ { property: "font-size", value: { type: "unit", unit: "%", value: 80 } },
258
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
259
+ {
260
+ property: "border-top-width",
261
+ value: { type: "unit", unit: "px", value: 1 }
262
+ },
263
+ {
264
+ property: "border-right-width",
265
+ value: { type: "unit", unit: "px", value: 1 }
266
+ },
267
+ {
268
+ property: "border-bottom-width",
269
+ value: { type: "unit", unit: "px", value: 1 }
270
+ },
271
+ {
272
+ property: "border-left-width",
273
+ value: { type: "unit", unit: "px", value: 1 }
274
+ }
275
+ ];
276
+ var sub = [
277
+ { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
278
+ {
279
+ property: "line-height",
280
+ value: { type: "unit", unit: "number", value: 0 }
281
+ },
282
+ { property: "position", value: { type: "keyword", value: "relative" } },
283
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
284
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
285
+ {
286
+ property: "border-top-width",
287
+ value: { type: "unit", unit: "px", value: 1 }
288
+ },
289
+ {
290
+ property: "border-right-width",
291
+ value: { type: "unit", unit: "px", value: 1 }
292
+ },
293
+ {
294
+ property: "border-bottom-width",
295
+ value: { type: "unit", unit: "px", value: 1 }
296
+ },
297
+ {
298
+ property: "border-left-width",
299
+ value: { type: "unit", unit: "px", value: 1 }
300
+ },
301
+ { property: "bottom", value: { type: "unit", unit: "em", value: -0.25 } }
302
+ ];
303
+ var sup = [
304
+ { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
305
+ {
306
+ property: "line-height",
307
+ value: { type: "unit", unit: "number", value: 0 }
308
+ },
309
+ { property: "position", value: { type: "keyword", value: "relative" } },
310
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
311
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
312
+ {
313
+ property: "border-top-width",
314
+ value: { type: "unit", unit: "px", value: 1 }
315
+ },
316
+ {
317
+ property: "border-right-width",
318
+ value: { type: "unit", unit: "px", value: 1 }
319
+ },
320
+ {
321
+ property: "border-bottom-width",
322
+ value: { type: "unit", unit: "px", value: 1 }
323
+ },
324
+ {
325
+ property: "border-left-width",
326
+ value: { type: "unit", unit: "px", value: 1 }
327
+ },
328
+ { property: "top", value: { type: "unit", unit: "em", value: -0.5 } }
329
+ ];
330
+ var table = [
331
+ {
332
+ property: "text-indent",
333
+ value: { type: "unit", unit: "number", value: 0 }
334
+ },
335
+ {
336
+ property: "border-top-width",
337
+ value: { type: "unit", unit: "px", value: 1 }
338
+ },
339
+ {
340
+ property: "border-right-width",
341
+ value: { type: "unit", unit: "px", value: 1 }
342
+ },
343
+ {
344
+ property: "border-bottom-width",
345
+ value: { type: "unit", unit: "px", value: 1 }
346
+ },
347
+ {
348
+ property: "border-left-width",
349
+ value: { type: "unit", unit: "px", value: 1 }
350
+ },
351
+ {
352
+ property: "border-top-color",
353
+ value: { type: "keyword", value: "inherit" }
354
+ },
355
+ {
356
+ property: "border-right-color",
357
+ value: { type: "keyword", value: "inherit" }
358
+ },
359
+ {
360
+ property: "border-bottom-color",
361
+ value: { type: "keyword", value: "inherit" }
362
+ },
363
+ {
364
+ property: "border-left-color",
365
+ value: { type: "keyword", value: "inherit" }
366
+ },
367
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
368
+ ];
369
+ var input = [
370
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
371
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
372
+ {
373
+ property: "line-height",
374
+ value: { type: "unit", unit: "number", value: 1.15 }
375
+ },
376
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
377
+ {
378
+ property: "margin-right",
379
+ value: { type: "unit", unit: "number", value: 0 }
380
+ },
381
+ {
382
+ property: "margin-bottom",
383
+ value: { type: "unit", unit: "number", value: 0 }
384
+ },
385
+ {
386
+ property: "margin-left",
387
+ value: { type: "unit", unit: "number", value: 0 }
388
+ },
389
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
390
+ {
391
+ property: "border-top-width",
392
+ value: { type: "unit", unit: "px", value: 1 }
393
+ },
394
+ {
395
+ property: "border-right-width",
396
+ value: { type: "unit", unit: "px", value: 1 }
397
+ },
398
+ {
399
+ property: "border-bottom-width",
400
+ value: { type: "unit", unit: "px", value: 1 }
401
+ },
402
+ {
403
+ property: "border-left-width",
404
+ value: { type: "unit", unit: "px", value: 1 }
405
+ },
406
+ { property: "border-top-style", value: { type: "keyword", value: "solid" } },
407
+ {
408
+ property: "border-right-style",
409
+ value: { type: "keyword", value: "solid" }
410
+ },
411
+ {
412
+ property: "border-bottom-style",
413
+ value: { type: "keyword", value: "solid" }
414
+ },
415
+ { property: "border-left-style", value: { type: "keyword", value: "solid" } }
416
+ ];
417
+ var textarea = input;
418
+ var optgroup = [
419
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
420
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
421
+ {
422
+ property: "line-height",
423
+ value: { type: "unit", unit: "number", value: 1.15 }
424
+ },
425
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
426
+ {
427
+ property: "margin-right",
428
+ value: { type: "unit", unit: "number", value: 0 }
429
+ },
430
+ {
431
+ property: "margin-bottom",
432
+ value: { type: "unit", unit: "number", value: 0 }
433
+ },
434
+ {
435
+ property: "margin-left",
436
+ value: { type: "unit", unit: "number", value: 0 }
437
+ },
438
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
439
+ {
440
+ property: "border-top-width",
441
+ value: { type: "unit", unit: "px", value: 1 }
442
+ },
443
+ {
444
+ property: "border-right-width",
445
+ value: { type: "unit", unit: "px", value: 1 }
446
+ },
447
+ {
448
+ property: "border-bottom-width",
449
+ value: { type: "unit", unit: "px", value: 1 }
450
+ },
451
+ {
452
+ property: "border-left-width",
453
+ value: { type: "unit", unit: "px", value: 1 }
454
+ }
455
+ ];
456
+ var radio = [
457
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
458
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
459
+ {
460
+ property: "line-height",
461
+ value: { type: "unit", unit: "number", value: 1.15 }
462
+ },
463
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
464
+ {
465
+ property: "margin-right",
466
+ value: { type: "unit", unit: "number", value: 0 }
467
+ },
468
+ {
469
+ property: "margin-bottom",
470
+ value: { type: "unit", unit: "number", value: 0 }
471
+ },
472
+ {
473
+ property: "margin-left",
474
+ value: { type: "unit", unit: "number", value: 0 }
475
+ },
476
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
477
+ {
478
+ property: "border-top-width",
479
+ value: { type: "unit", unit: "px", value: 1 }
480
+ },
481
+ {
482
+ property: "border-right-width",
483
+ value: { type: "unit", unit: "px", value: 1 }
484
+ },
485
+ {
486
+ property: "border-bottom-width",
487
+ value: { type: "unit", unit: "px", value: 1 }
488
+ },
489
+ {
490
+ property: "border-left-width",
491
+ value: { type: "unit", unit: "px", value: 1 }
492
+ },
493
+ { property: "border-top-style", value: { type: "keyword", value: "none" } },
494
+ { property: "border-right-style", value: { type: "keyword", value: "none" } },
495
+ {
496
+ property: "border-bottom-style",
497
+ value: { type: "keyword", value: "none" }
498
+ },
499
+ { property: "border-left-style", value: { type: "keyword", value: "none" } }
500
+ ];
501
+ var checkbox = radio;
502
+ var button = [
503
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
504
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
505
+ {
506
+ property: "line-height",
507
+ value: { type: "unit", unit: "number", value: 1.15 }
508
+ },
509
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
510
+ {
511
+ property: "margin-right",
512
+ value: { type: "unit", unit: "number", value: 0 }
513
+ },
514
+ {
515
+ property: "margin-bottom",
516
+ value: { type: "unit", unit: "number", value: 0 }
517
+ },
518
+ {
519
+ property: "margin-left",
520
+ value: { type: "unit", unit: "number", value: 0 }
521
+ },
522
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
523
+ {
524
+ property: "border-top-width",
525
+ value: { type: "unit", unit: "px", value: 1 }
526
+ },
527
+ {
528
+ property: "border-right-width",
529
+ value: { type: "unit", unit: "px", value: 1 }
530
+ },
531
+ {
532
+ property: "border-bottom-width",
533
+ value: { type: "unit", unit: "px", value: 1 }
534
+ },
535
+ {
536
+ property: "border-left-width",
537
+ value: { type: "unit", unit: "px", value: 1 }
538
+ },
539
+ { property: "border-top-style", value: { type: "keyword", value: "solid" } },
540
+ {
541
+ property: "border-right-style",
542
+ value: { type: "keyword", value: "solid" }
543
+ },
544
+ {
545
+ property: "border-bottom-style",
546
+ value: { type: "keyword", value: "solid" }
547
+ },
548
+ { property: "border-left-style", value: { type: "keyword", value: "solid" } },
549
+ { property: "text-transform", value: { type: "keyword", value: "none" } }
550
+ ];
551
+ var select = button;
552
+ var legend = [
553
+ {
554
+ property: "padding-top",
555
+ value: { type: "unit", unit: "number", value: 0 }
556
+ },
557
+ {
558
+ property: "padding-right",
559
+ value: { type: "unit", unit: "number", value: 0 }
560
+ },
561
+ {
562
+ property: "padding-bottom",
563
+ value: { type: "unit", unit: "number", value: 0 }
564
+ },
565
+ {
566
+ property: "padding-left",
567
+ value: { type: "unit", unit: "number", value: 0 }
568
+ },
569
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
570
+ {
571
+ property: "border-top-width",
572
+ value: { type: "unit", unit: "px", value: 1 }
573
+ },
574
+ {
575
+ property: "border-right-width",
576
+ value: { type: "unit", unit: "px", value: 1 }
577
+ },
578
+ {
579
+ property: "border-bottom-width",
580
+ value: { type: "unit", unit: "px", value: 1 }
581
+ },
582
+ {
583
+ property: "border-left-width",
584
+ value: { type: "unit", unit: "px", value: 1 }
585
+ }
586
+ ];
587
+ var progress = [
588
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
589
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
590
+ {
591
+ property: "border-top-width",
592
+ value: { type: "unit", unit: "px", value: 1 }
593
+ },
594
+ {
595
+ property: "border-right-width",
596
+ value: { type: "unit", unit: "px", value: 1 }
597
+ },
598
+ {
599
+ property: "border-bottom-width",
600
+ value: { type: "unit", unit: "px", value: 1 }
601
+ },
602
+ {
603
+ property: "border-left-width",
604
+ value: { type: "unit", unit: "px", value: 1 }
605
+ }
606
+ ];
607
+ var summary = [
608
+ { property: "display", value: { type: "keyword", value: "list-item" } },
609
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
610
+ {
611
+ property: "border-top-width",
612
+ value: { type: "unit", unit: "px", value: 1 }
613
+ },
614
+ {
615
+ property: "border-right-width",
616
+ value: { type: "unit", unit: "px", value: 1 }
617
+ },
618
+ {
619
+ property: "border-bottom-width",
620
+ value: { type: "unit", unit: "px", value: 1 }
621
+ },
622
+ {
623
+ property: "border-left-width",
624
+ value: { type: "unit", unit: "px", value: 1 }
625
+ }
626
+ ];
627
+
628
+ // src/runtime.ts
629
+ var tagProperty = "data-ws-tag";
630
+
631
+ // src/__generated__/tags.ts
632
+ var tags = [
633
+ "div",
634
+ "span",
635
+ "a",
636
+ "abbr",
637
+ "address",
638
+ "area",
639
+ "article",
640
+ "aside",
641
+ "audio",
642
+ "b",
643
+ "bdi",
644
+ "bdo",
645
+ "blockquote",
646
+ "body",
647
+ "br",
648
+ "button",
649
+ "canvas",
650
+ "caption",
651
+ "cite",
652
+ "code",
653
+ "col",
654
+ "colgroup",
655
+ "data",
656
+ "datalist",
657
+ "dd",
658
+ "del",
659
+ "details",
660
+ "dfn",
661
+ "dialog",
662
+ "dl",
663
+ "dt",
664
+ "em",
665
+ "embed",
666
+ "fieldset",
667
+ "figcaption",
668
+ "figure",
669
+ "footer",
670
+ "form",
671
+ "h1",
672
+ "h2",
673
+ "h3",
674
+ "h4",
675
+ "h5",
676
+ "h6",
677
+ "head",
678
+ "header",
679
+ "hgroup",
680
+ "hr",
681
+ "html",
682
+ "i",
683
+ "iframe",
684
+ "img",
685
+ "input",
686
+ "ins",
687
+ "kbd",
688
+ "label",
689
+ "legend",
690
+ "li",
691
+ "main",
692
+ "map",
693
+ "mark",
694
+ "menu",
695
+ "meter",
696
+ "nav",
697
+ "object",
698
+ "ol",
699
+ "optgroup",
700
+ "option",
701
+ "output",
702
+ "p",
703
+ "picture",
704
+ "pre",
705
+ "progress",
706
+ "q",
707
+ "rp",
708
+ "rt",
709
+ "ruby",
710
+ "s",
711
+ "samp",
712
+ "search",
713
+ "section",
714
+ "select",
715
+ "slot",
716
+ "small",
717
+ "source",
718
+ "strong",
719
+ "sub",
720
+ "summary",
721
+ "sup",
722
+ "table",
723
+ "tbody",
724
+ "td",
725
+ "textarea",
726
+ "tfoot",
727
+ "th",
728
+ "thead",
729
+ "time",
730
+ "tr",
731
+ "track",
732
+ "u",
733
+ "ul",
734
+ "var",
735
+ "video",
736
+ "wbr"
737
+ ];
38
738
 
39
739
  // src/core-metas.ts
40
740
  var rootComponent = "ws:root";
@@ -45,16 +745,20 @@ var rootMeta = {
45
745
  html
46
746
  }
47
747
  };
48
- var rootPropsMeta = {
49
- props: {}
50
- };
51
748
  var elementComponent = "ws:element";
52
749
  var elementMeta = {
53
750
  label: "Element",
54
- icon: HtmlElementIcon
55
- };
56
- var elementPropsMeta = {
57
- props: {}
751
+ // convert [object Module] to [object Object] to enable structured cloning
752
+ presetStyle: { ...normalize_css_exports },
753
+ initialProps: [tagProperty, "id", "class"],
754
+ props: {
755
+ [tagProperty]: {
756
+ type: "string",
757
+ control: "tag",
758
+ required: true,
759
+ options: tags
760
+ }
761
+ }
58
762
  };
59
763
  var collectionComponent = "ws:collection";
60
764
  var collectionMeta = {
@@ -63,17 +767,15 @@ var collectionMeta = {
63
767
  contentModel: {
64
768
  category: "instance",
65
769
  children: ["instance"]
66
- }
67
- };
68
- var collectionPropsMeta = {
770
+ },
771
+ initialProps: ["data"],
69
772
  props: {
70
773
  data: {
71
774
  required: true,
72
775
  control: "json",
73
776
  type: "json"
74
777
  }
75
- },
76
- initialProps: ["data"]
778
+ }
77
779
  };
78
780
  var descendantComponent = "ws:descendant";
79
781
  var descendantMeta = {
@@ -84,9 +786,8 @@ var descendantMeta = {
84
786
  children: []
85
787
  },
86
788
  // @todo infer possible presets
87
- presetStyle: {}
88
- };
89
- var descendantPropsMeta = {
789
+ presetStyle: {},
790
+ initialProps: ["selector"],
90
791
  props: {
91
792
  selector: {
92
793
  required: true,
@@ -111,8 +812,7 @@ var descendantPropsMeta = {
111
812
  " hr"
112
813
  ]
113
814
  }
114
- },
115
- initialProps: ["selector"]
815
+ }
116
816
  };
117
817
  var blockComponent = "ws:block";
118
818
  var blockTemplateComponent = "ws:block-template";
@@ -123,9 +823,6 @@ var blockTemplateMeta = {
123
823
  children: ["instance"]
124
824
  }
125
825
  };
126
- var blockTemplatePropsMeta = {
127
- props: {}
128
- };
129
826
  var blockMeta = {
130
827
  label: "Content Block",
131
828
  icon: ContentBlockIcon,
@@ -134,9 +831,6 @@ var blockMeta = {
134
831
  children: [blockTemplateComponent, "instance"]
135
832
  }
136
833
  };
137
- var blockPropsMeta = {
138
- props: {}
139
- };
140
834
  var coreMetas = {
141
835
  [rootComponent]: rootMeta,
142
836
  [elementComponent]: elementMeta,
@@ -145,17 +839,15 @@ var coreMetas = {
145
839
  [blockComponent]: blockMeta,
146
840
  [blockTemplateComponent]: blockTemplateMeta
147
841
  };
148
- var corePropsMetas = {
149
- [rootComponent]: rootPropsMeta,
150
- [elementComponent]: elementPropsMeta,
151
- [collectionComponent]: collectionPropsMeta,
152
- [descendantComponent]: descendantPropsMeta,
153
- [blockComponent]: blockPropsMeta,
154
- [blockTemplateComponent]: blockTemplatePropsMeta
155
- };
156
842
 
157
843
  // src/core-templates.tsx
158
844
  import { jsx, jsxs } from "react/jsx-runtime";
845
+ var elementMeta2 = {
846
+ category: "general",
847
+ order: 0,
848
+ description: "An HTML element is a core building block for web pages, structuring and displaying content like text, images, and links.",
849
+ template: /* @__PURE__ */ jsx(ws.element, {})
850
+ };
159
851
  var collectionItem = new Parameter("collectionItem");
160
852
  var collectionMeta2 = {
161
853
  category: "data",
@@ -218,6 +910,7 @@ var blockMeta2 = {
218
910
  ] })
219
911
  };
220
912
  var coreTemplates = {
913
+ [elementComponent]: elementMeta2,
221
914
  [collectionComponent]: collectionMeta2,
222
915
  [descendantComponent]: descendantMeta2,
223
916
  [blockComponent]: blockMeta2