@webstudio-is/sdk 0.218.0 → 0.219.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.
package/lib/index.js CHANGED
@@ -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/schema/assets.ts
2
8
  import { z } from "zod";
3
9
  import { FontFormat, FontMeta } from "@webstudio-is/fonts";
@@ -911,10 +917,109 @@ import {
911
917
  PaintBrushIcon,
912
918
  SettingsIcon,
913
919
  AddTemplateInstanceIcon,
914
- HtmlElementIcon
920
+ BoxIcon
915
921
  } from "@webstudio-is/icons/svg";
916
922
 
917
923
  // src/__generated__/normalize.css.ts
924
+ var normalize_css_exports = {};
925
+ __export(normalize_css_exports, {
926
+ a: () => a,
927
+ address: () => address,
928
+ article: () => article,
929
+ aside: () => aside,
930
+ b: () => b,
931
+ body: () => body,
932
+ button: () => button,
933
+ checkbox: () => checkbox,
934
+ code: () => code,
935
+ div: () => div,
936
+ figure: () => figure,
937
+ footer: () => footer,
938
+ form: () => form,
939
+ h1: () => h1,
940
+ h2: () => h2,
941
+ h3: () => h3,
942
+ h4: () => h4,
943
+ h5: () => h5,
944
+ h6: () => h6,
945
+ header: () => header,
946
+ hr: () => hr,
947
+ html: () => html,
948
+ i: () => i,
949
+ img: () => img,
950
+ input: () => input,
951
+ kbd: () => kbd,
952
+ label: () => label,
953
+ legend: () => legend,
954
+ li: () => li,
955
+ main: () => main,
956
+ nav: () => nav,
957
+ ol: () => ol,
958
+ optgroup: () => optgroup,
959
+ p: () => p,
960
+ pre: () => pre,
961
+ progress: () => progress,
962
+ radio: () => radio,
963
+ samp: () => samp,
964
+ section: () => section,
965
+ select: () => select,
966
+ small: () => small,
967
+ span: () => span,
968
+ strong: () => strong,
969
+ sub: () => sub,
970
+ summary: () => summary,
971
+ sup: () => sup,
972
+ table: () => table,
973
+ textarea: () => textarea,
974
+ time: () => time,
975
+ ul: () => ul
976
+ });
977
+ var div = [
978
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
979
+ {
980
+ property: "border-top-width",
981
+ value: { type: "unit", unit: "px", value: 1 }
982
+ },
983
+ {
984
+ property: "border-right-width",
985
+ value: { type: "unit", unit: "px", value: 1 }
986
+ },
987
+ {
988
+ property: "border-bottom-width",
989
+ value: { type: "unit", unit: "px", value: 1 }
990
+ },
991
+ {
992
+ property: "border-left-width",
993
+ value: { type: "unit", unit: "px", value: 1 }
994
+ },
995
+ { property: "outline-width", value: { type: "unit", unit: "px", value: 1 } }
996
+ ];
997
+ var address = div;
998
+ var article = div;
999
+ var aside = div;
1000
+ var figure = div;
1001
+ var footer = div;
1002
+ var header = div;
1003
+ var main = div;
1004
+ var nav = div;
1005
+ var section = div;
1006
+ var form = div;
1007
+ var label = div;
1008
+ var time = div;
1009
+ var h1 = div;
1010
+ var h2 = div;
1011
+ var h3 = div;
1012
+ var h4 = div;
1013
+ var h5 = div;
1014
+ var h6 = div;
1015
+ var i = div;
1016
+ var img = div;
1017
+ var a = div;
1018
+ var li = div;
1019
+ var ul = div;
1020
+ var ol = div;
1021
+ var p = div;
1022
+ var span = div;
918
1023
  var html = [
919
1024
  { property: "display", value: { type: "keyword", value: "grid" } },
920
1025
  { property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
@@ -932,6 +1037,602 @@ var html = [
932
1037
  value: { type: "keyword", value: "preserve" }
933
1038
  }
934
1039
  ];
1040
+ var body = [
1041
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
1042
+ {
1043
+ property: "margin-right",
1044
+ value: { type: "unit", unit: "number", value: 0 }
1045
+ },
1046
+ {
1047
+ property: "margin-bottom",
1048
+ value: { type: "unit", unit: "number", value: 0 }
1049
+ },
1050
+ {
1051
+ property: "margin-left",
1052
+ value: { type: "unit", unit: "number", value: 0 }
1053
+ },
1054
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1055
+ {
1056
+ property: "border-top-width",
1057
+ value: { type: "unit", unit: "px", value: 1 }
1058
+ },
1059
+ {
1060
+ property: "border-right-width",
1061
+ value: { type: "unit", unit: "px", value: 1 }
1062
+ },
1063
+ {
1064
+ property: "border-bottom-width",
1065
+ value: { type: "unit", unit: "px", value: 1 }
1066
+ },
1067
+ {
1068
+ property: "border-left-width",
1069
+ value: { type: "unit", unit: "px", value: 1 }
1070
+ }
1071
+ ];
1072
+ var hr = [
1073
+ { property: "height", value: { type: "unit", unit: "number", value: 0 } },
1074
+ { property: "color", value: { type: "keyword", value: "inherit" } },
1075
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1076
+ {
1077
+ property: "border-top-width",
1078
+ value: { type: "unit", unit: "px", value: 1 }
1079
+ },
1080
+ {
1081
+ property: "border-right-width",
1082
+ value: { type: "unit", unit: "px", value: 1 }
1083
+ },
1084
+ {
1085
+ property: "border-bottom-width",
1086
+ value: { type: "unit", unit: "px", value: 1 }
1087
+ },
1088
+ {
1089
+ property: "border-left-width",
1090
+ value: { type: "unit", unit: "px", value: 1 }
1091
+ }
1092
+ ];
1093
+ var b = [
1094
+ {
1095
+ property: "font-weight",
1096
+ value: { type: "unit", unit: "number", value: 700 }
1097
+ },
1098
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1099
+ {
1100
+ property: "border-top-width",
1101
+ value: { type: "unit", unit: "px", value: 1 }
1102
+ },
1103
+ {
1104
+ property: "border-right-width",
1105
+ value: { type: "unit", unit: "px", value: 1 }
1106
+ },
1107
+ {
1108
+ property: "border-bottom-width",
1109
+ value: { type: "unit", unit: "px", value: 1 }
1110
+ },
1111
+ {
1112
+ property: "border-left-width",
1113
+ value: { type: "unit", unit: "px", value: 1 }
1114
+ }
1115
+ ];
1116
+ var strong = b;
1117
+ var code = [
1118
+ {
1119
+ property: "font-family",
1120
+ value: {
1121
+ type: "fontFamily",
1122
+ value: [
1123
+ "ui-monospace",
1124
+ "SFMono-Regular",
1125
+ "Consolas",
1126
+ "Liberation Mono",
1127
+ "Menlo",
1128
+ "monospace"
1129
+ ]
1130
+ }
1131
+ },
1132
+ { property: "font-size", value: { type: "unit", unit: "em", value: 1 } },
1133
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1134
+ {
1135
+ property: "border-top-width",
1136
+ value: { type: "unit", unit: "px", value: 1 }
1137
+ },
1138
+ {
1139
+ property: "border-right-width",
1140
+ value: { type: "unit", unit: "px", value: 1 }
1141
+ },
1142
+ {
1143
+ property: "border-bottom-width",
1144
+ value: { type: "unit", unit: "px", value: 1 }
1145
+ },
1146
+ {
1147
+ property: "border-left-width",
1148
+ value: { type: "unit", unit: "px", value: 1 }
1149
+ }
1150
+ ];
1151
+ var kbd = code;
1152
+ var samp = code;
1153
+ var pre = code;
1154
+ var small = [
1155
+ { property: "font-size", value: { type: "unit", unit: "%", value: 80 } },
1156
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1157
+ {
1158
+ property: "border-top-width",
1159
+ value: { type: "unit", unit: "px", value: 1 }
1160
+ },
1161
+ {
1162
+ property: "border-right-width",
1163
+ value: { type: "unit", unit: "px", value: 1 }
1164
+ },
1165
+ {
1166
+ property: "border-bottom-width",
1167
+ value: { type: "unit", unit: "px", value: 1 }
1168
+ },
1169
+ {
1170
+ property: "border-left-width",
1171
+ value: { type: "unit", unit: "px", value: 1 }
1172
+ }
1173
+ ];
1174
+ var sub = [
1175
+ { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
1176
+ {
1177
+ property: "line-height",
1178
+ value: { type: "unit", unit: "number", value: 0 }
1179
+ },
1180
+ { property: "position", value: { type: "keyword", value: "relative" } },
1181
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
1182
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1183
+ {
1184
+ property: "border-top-width",
1185
+ value: { type: "unit", unit: "px", value: 1 }
1186
+ },
1187
+ {
1188
+ property: "border-right-width",
1189
+ value: { type: "unit", unit: "px", value: 1 }
1190
+ },
1191
+ {
1192
+ property: "border-bottom-width",
1193
+ value: { type: "unit", unit: "px", value: 1 }
1194
+ },
1195
+ {
1196
+ property: "border-left-width",
1197
+ value: { type: "unit", unit: "px", value: 1 }
1198
+ },
1199
+ { property: "bottom", value: { type: "unit", unit: "em", value: -0.25 } }
1200
+ ];
1201
+ var sup = [
1202
+ { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
1203
+ {
1204
+ property: "line-height",
1205
+ value: { type: "unit", unit: "number", value: 0 }
1206
+ },
1207
+ { property: "position", value: { type: "keyword", value: "relative" } },
1208
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
1209
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1210
+ {
1211
+ property: "border-top-width",
1212
+ value: { type: "unit", unit: "px", value: 1 }
1213
+ },
1214
+ {
1215
+ property: "border-right-width",
1216
+ value: { type: "unit", unit: "px", value: 1 }
1217
+ },
1218
+ {
1219
+ property: "border-bottom-width",
1220
+ value: { type: "unit", unit: "px", value: 1 }
1221
+ },
1222
+ {
1223
+ property: "border-left-width",
1224
+ value: { type: "unit", unit: "px", value: 1 }
1225
+ },
1226
+ { property: "top", value: { type: "unit", unit: "em", value: -0.5 } }
1227
+ ];
1228
+ var table = [
1229
+ {
1230
+ property: "text-indent",
1231
+ value: { type: "unit", unit: "number", value: 0 }
1232
+ },
1233
+ {
1234
+ property: "border-top-width",
1235
+ value: { type: "unit", unit: "px", value: 1 }
1236
+ },
1237
+ {
1238
+ property: "border-right-width",
1239
+ value: { type: "unit", unit: "px", value: 1 }
1240
+ },
1241
+ {
1242
+ property: "border-bottom-width",
1243
+ value: { type: "unit", unit: "px", value: 1 }
1244
+ },
1245
+ {
1246
+ property: "border-left-width",
1247
+ value: { type: "unit", unit: "px", value: 1 }
1248
+ },
1249
+ {
1250
+ property: "border-top-color",
1251
+ value: { type: "keyword", value: "inherit" }
1252
+ },
1253
+ {
1254
+ property: "border-right-color",
1255
+ value: { type: "keyword", value: "inherit" }
1256
+ },
1257
+ {
1258
+ property: "border-bottom-color",
1259
+ value: { type: "keyword", value: "inherit" }
1260
+ },
1261
+ {
1262
+ property: "border-left-color",
1263
+ value: { type: "keyword", value: "inherit" }
1264
+ },
1265
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1266
+ ];
1267
+ var input = [
1268
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
1269
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
1270
+ {
1271
+ property: "line-height",
1272
+ value: { type: "unit", unit: "number", value: 1.15 }
1273
+ },
1274
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
1275
+ {
1276
+ property: "margin-right",
1277
+ value: { type: "unit", unit: "number", value: 0 }
1278
+ },
1279
+ {
1280
+ property: "margin-bottom",
1281
+ value: { type: "unit", unit: "number", value: 0 }
1282
+ },
1283
+ {
1284
+ property: "margin-left",
1285
+ value: { type: "unit", unit: "number", value: 0 }
1286
+ },
1287
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1288
+ {
1289
+ property: "border-top-width",
1290
+ value: { type: "unit", unit: "px", value: 1 }
1291
+ },
1292
+ {
1293
+ property: "border-right-width",
1294
+ value: { type: "unit", unit: "px", value: 1 }
1295
+ },
1296
+ {
1297
+ property: "border-bottom-width",
1298
+ value: { type: "unit", unit: "px", value: 1 }
1299
+ },
1300
+ {
1301
+ property: "border-left-width",
1302
+ value: { type: "unit", unit: "px", value: 1 }
1303
+ },
1304
+ { property: "border-top-style", value: { type: "keyword", value: "solid" } },
1305
+ {
1306
+ property: "border-right-style",
1307
+ value: { type: "keyword", value: "solid" }
1308
+ },
1309
+ {
1310
+ property: "border-bottom-style",
1311
+ value: { type: "keyword", value: "solid" }
1312
+ },
1313
+ { property: "border-left-style", value: { type: "keyword", value: "solid" } }
1314
+ ];
1315
+ var textarea = input;
1316
+ var optgroup = [
1317
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
1318
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
1319
+ {
1320
+ property: "line-height",
1321
+ value: { type: "unit", unit: "number", value: 1.15 }
1322
+ },
1323
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
1324
+ {
1325
+ property: "margin-right",
1326
+ value: { type: "unit", unit: "number", value: 0 }
1327
+ },
1328
+ {
1329
+ property: "margin-bottom",
1330
+ value: { type: "unit", unit: "number", value: 0 }
1331
+ },
1332
+ {
1333
+ property: "margin-left",
1334
+ value: { type: "unit", unit: "number", value: 0 }
1335
+ },
1336
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1337
+ {
1338
+ property: "border-top-width",
1339
+ value: { type: "unit", unit: "px", value: 1 }
1340
+ },
1341
+ {
1342
+ property: "border-right-width",
1343
+ value: { type: "unit", unit: "px", value: 1 }
1344
+ },
1345
+ {
1346
+ property: "border-bottom-width",
1347
+ value: { type: "unit", unit: "px", value: 1 }
1348
+ },
1349
+ {
1350
+ property: "border-left-width",
1351
+ value: { type: "unit", unit: "px", value: 1 }
1352
+ }
1353
+ ];
1354
+ var radio = [
1355
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
1356
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
1357
+ {
1358
+ property: "line-height",
1359
+ value: { type: "unit", unit: "number", value: 1.15 }
1360
+ },
1361
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
1362
+ {
1363
+ property: "margin-right",
1364
+ value: { type: "unit", unit: "number", value: 0 }
1365
+ },
1366
+ {
1367
+ property: "margin-bottom",
1368
+ value: { type: "unit", unit: "number", value: 0 }
1369
+ },
1370
+ {
1371
+ property: "margin-left",
1372
+ value: { type: "unit", unit: "number", value: 0 }
1373
+ },
1374
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1375
+ {
1376
+ property: "border-top-width",
1377
+ value: { type: "unit", unit: "px", value: 1 }
1378
+ },
1379
+ {
1380
+ property: "border-right-width",
1381
+ value: { type: "unit", unit: "px", value: 1 }
1382
+ },
1383
+ {
1384
+ property: "border-bottom-width",
1385
+ value: { type: "unit", unit: "px", value: 1 }
1386
+ },
1387
+ {
1388
+ property: "border-left-width",
1389
+ value: { type: "unit", unit: "px", value: 1 }
1390
+ },
1391
+ { property: "border-top-style", value: { type: "keyword", value: "none" } },
1392
+ { property: "border-right-style", value: { type: "keyword", value: "none" } },
1393
+ {
1394
+ property: "border-bottom-style",
1395
+ value: { type: "keyword", value: "none" }
1396
+ },
1397
+ { property: "border-left-style", value: { type: "keyword", value: "none" } }
1398
+ ];
1399
+ var checkbox = radio;
1400
+ var button = [
1401
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
1402
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
1403
+ {
1404
+ property: "line-height",
1405
+ value: { type: "unit", unit: "number", value: 1.15 }
1406
+ },
1407
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
1408
+ {
1409
+ property: "margin-right",
1410
+ value: { type: "unit", unit: "number", value: 0 }
1411
+ },
1412
+ {
1413
+ property: "margin-bottom",
1414
+ value: { type: "unit", unit: "number", value: 0 }
1415
+ },
1416
+ {
1417
+ property: "margin-left",
1418
+ value: { type: "unit", unit: "number", value: 0 }
1419
+ },
1420
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1421
+ {
1422
+ property: "border-top-width",
1423
+ value: { type: "unit", unit: "px", value: 1 }
1424
+ },
1425
+ {
1426
+ property: "border-right-width",
1427
+ value: { type: "unit", unit: "px", value: 1 }
1428
+ },
1429
+ {
1430
+ property: "border-bottom-width",
1431
+ value: { type: "unit", unit: "px", value: 1 }
1432
+ },
1433
+ {
1434
+ property: "border-left-width",
1435
+ value: { type: "unit", unit: "px", value: 1 }
1436
+ },
1437
+ { property: "border-top-style", value: { type: "keyword", value: "solid" } },
1438
+ {
1439
+ property: "border-right-style",
1440
+ value: { type: "keyword", value: "solid" }
1441
+ },
1442
+ {
1443
+ property: "border-bottom-style",
1444
+ value: { type: "keyword", value: "solid" }
1445
+ },
1446
+ { property: "border-left-style", value: { type: "keyword", value: "solid" } },
1447
+ { property: "text-transform", value: { type: "keyword", value: "none" } }
1448
+ ];
1449
+ var select = button;
1450
+ var legend = [
1451
+ {
1452
+ property: "padding-top",
1453
+ value: { type: "unit", unit: "number", value: 0 }
1454
+ },
1455
+ {
1456
+ property: "padding-right",
1457
+ value: { type: "unit", unit: "number", value: 0 }
1458
+ },
1459
+ {
1460
+ property: "padding-bottom",
1461
+ value: { type: "unit", unit: "number", value: 0 }
1462
+ },
1463
+ {
1464
+ property: "padding-left",
1465
+ value: { type: "unit", unit: "number", value: 0 }
1466
+ },
1467
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1468
+ {
1469
+ property: "border-top-width",
1470
+ value: { type: "unit", unit: "px", value: 1 }
1471
+ },
1472
+ {
1473
+ property: "border-right-width",
1474
+ value: { type: "unit", unit: "px", value: 1 }
1475
+ },
1476
+ {
1477
+ property: "border-bottom-width",
1478
+ value: { type: "unit", unit: "px", value: 1 }
1479
+ },
1480
+ {
1481
+ property: "border-left-width",
1482
+ value: { type: "unit", unit: "px", value: 1 }
1483
+ }
1484
+ ];
1485
+ var progress = [
1486
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
1487
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1488
+ {
1489
+ property: "border-top-width",
1490
+ value: { type: "unit", unit: "px", value: 1 }
1491
+ },
1492
+ {
1493
+ property: "border-right-width",
1494
+ value: { type: "unit", unit: "px", value: 1 }
1495
+ },
1496
+ {
1497
+ property: "border-bottom-width",
1498
+ value: { type: "unit", unit: "px", value: 1 }
1499
+ },
1500
+ {
1501
+ property: "border-left-width",
1502
+ value: { type: "unit", unit: "px", value: 1 }
1503
+ }
1504
+ ];
1505
+ var summary = [
1506
+ { property: "display", value: { type: "keyword", value: "list-item" } },
1507
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1508
+ {
1509
+ property: "border-top-width",
1510
+ value: { type: "unit", unit: "px", value: 1 }
1511
+ },
1512
+ {
1513
+ property: "border-right-width",
1514
+ value: { type: "unit", unit: "px", value: 1 }
1515
+ },
1516
+ {
1517
+ property: "border-bottom-width",
1518
+ value: { type: "unit", unit: "px", value: 1 }
1519
+ },
1520
+ {
1521
+ property: "border-left-width",
1522
+ value: { type: "unit", unit: "px", value: 1 }
1523
+ }
1524
+ ];
1525
+
1526
+ // src/runtime.ts
1527
+ var tagProperty = "data-ws-tag";
1528
+
1529
+ // src/__generated__/tags.ts
1530
+ var tags = [
1531
+ "a",
1532
+ "abbr",
1533
+ "address",
1534
+ "area",
1535
+ "article",
1536
+ "aside",
1537
+ "audio",
1538
+ "b",
1539
+ "bdi",
1540
+ "bdo",
1541
+ "blockquote",
1542
+ "body",
1543
+ "br",
1544
+ "button",
1545
+ "canvas",
1546
+ "caption",
1547
+ "cite",
1548
+ "code",
1549
+ "col",
1550
+ "colgroup",
1551
+ "data",
1552
+ "datalist",
1553
+ "dd",
1554
+ "del",
1555
+ "details",
1556
+ "dfn",
1557
+ "dialog",
1558
+ "div",
1559
+ "dl",
1560
+ "dt",
1561
+ "em",
1562
+ "embed",
1563
+ "fieldset",
1564
+ "figcaption",
1565
+ "figure",
1566
+ "footer",
1567
+ "form",
1568
+ "h1",
1569
+ "h2",
1570
+ "h3",
1571
+ "h4",
1572
+ "h5",
1573
+ "h6",
1574
+ "head",
1575
+ "header",
1576
+ "hgroup",
1577
+ "hr",
1578
+ "html",
1579
+ "i",
1580
+ "iframe",
1581
+ "img",
1582
+ "input",
1583
+ "ins",
1584
+ "kbd",
1585
+ "label",
1586
+ "legend",
1587
+ "li",
1588
+ "main",
1589
+ "map",
1590
+ "mark",
1591
+ "menu",
1592
+ "meter",
1593
+ "nav",
1594
+ "object",
1595
+ "ol",
1596
+ "optgroup",
1597
+ "option",
1598
+ "output",
1599
+ "p",
1600
+ "picture",
1601
+ "pre",
1602
+ "progress",
1603
+ "q",
1604
+ "rp",
1605
+ "rt",
1606
+ "ruby",
1607
+ "s",
1608
+ "samp",
1609
+ "search",
1610
+ "section",
1611
+ "select",
1612
+ "slot",
1613
+ "small",
1614
+ "source",
1615
+ "span",
1616
+ "strong",
1617
+ "sub",
1618
+ "summary",
1619
+ "sup",
1620
+ "table",
1621
+ "tbody",
1622
+ "td",
1623
+ "textarea",
1624
+ "tfoot",
1625
+ "th",
1626
+ "thead",
1627
+ "time",
1628
+ "tr",
1629
+ "track",
1630
+ "u",
1631
+ "ul",
1632
+ "var",
1633
+ "video",
1634
+ "wbr"
1635
+ ];
935
1636
 
936
1637
  // src/core-metas.ts
937
1638
  var rootComponent = "ws:root";
@@ -948,10 +1649,19 @@ var rootPropsMeta = {
948
1649
  var elementComponent = "ws:element";
949
1650
  var elementMeta = {
950
1651
  label: "Element",
951
- icon: HtmlElementIcon
1652
+ icon: BoxIcon,
1653
+ // convert [object Module] to [object Object] to enable structured cloning
1654
+ presetStyle: { ...normalize_css_exports }
952
1655
  };
953
1656
  var elementPropsMeta = {
954
- props: {}
1657
+ props: {
1658
+ [tagProperty]: {
1659
+ type: "string",
1660
+ control: "tag",
1661
+ required: true,
1662
+ options: tags
1663
+ }
1664
+ }
955
1665
  };
956
1666
  var portalComponent = "Slot";
957
1667
  var collectionComponent = "ws:collection";
@@ -1600,26 +2310,26 @@ var generateResources = ({
1600
2310
  `;
1601
2311
  generatedRequest += ` headers: [
1602
2312
  `;
1603
- for (const header of resource.headers) {
2313
+ for (const header2 of resource.headers) {
1604
2314
  const value = generateExpression({
1605
- expression: header.value,
2315
+ expression: header2.value,
1606
2316
  dataSources,
1607
2317
  usedDataSources,
1608
2318
  scope
1609
2319
  });
1610
- generatedRequest += ` { name: "${header.name}", value: ${value} },
2320
+ generatedRequest += ` { name: "${header2.name}", value: ${value} },
1611
2321
  `;
1612
2322
  }
1613
2323
  generatedRequest += ` ],
1614
2324
  `;
1615
2325
  if (resource.body !== void 0 && resource.body.length > 0) {
1616
- const body = generateExpression({
2326
+ const body2 = generateExpression({
1617
2327
  expression: resource.body,
1618
2328
  dataSources,
1619
2329
  usedDataSources,
1620
2330
  scope
1621
2331
  });
1622
- generatedRequest += ` body: ${body},
2332
+ generatedRequest += ` body: ${body2},
1623
2333
  `;
1624
2334
  }
1625
2335
  generatedRequest += ` }
@@ -2189,6 +2899,7 @@ export {
2189
2899
  scrollAnimationSchema,
2190
2900
  stateCategories,
2191
2901
  systemParameter,
2902
+ tags,
2192
2903
  transpileExpression,
2193
2904
  viewAnimationSchema
2194
2905
  };