@webstudio-is/sdk 0.235.0 → 0.237.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
@@ -382,6 +382,7 @@ var durationUnitValueSchema = z6.union([
382
382
  value: z6.string()
383
383
  })
384
384
  ]);
385
+ var iterationsUnitValueSchema = z6.union([z6.number(), z6.literal("infinite")]);
385
386
  var insetUnitValueSchema = z6.union([
386
387
  rangeUnitValueSchema,
387
388
  z6.object({
@@ -403,7 +404,9 @@ var keyframeEffectOptionsSchema = z6.object({
403
404
  z6.literal("both")
404
405
  ]).optional(),
405
406
  // FillMode
406
- duration: durationUnitValueSchema.optional()
407
+ duration: durationUnitValueSchema.optional(),
408
+ delay: durationUnitValueSchema.optional(),
409
+ iterations: iterationsUnitValueSchema.optional()
407
410
  });
408
411
  var scrollNamedRangeSchema = z6.union([
409
412
  z6.literal("start"),
@@ -985,24 +988,7 @@ __export(normalize_css_exports, {
985
988
  ul: () => ul
986
989
  });
987
990
  var div = [
988
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
989
- {
990
- property: "border-top-width",
991
- value: { type: "unit", unit: "px", value: 1 }
992
- },
993
- {
994
- property: "border-right-width",
995
- value: { type: "unit", unit: "px", value: 1 }
996
- },
997
- {
998
- property: "border-bottom-width",
999
- value: { type: "unit", unit: "px", value: 1 }
1000
- },
1001
- {
1002
- property: "border-left-width",
1003
- value: { type: "unit", unit: "px", value: 1 }
1004
- },
1005
- { property: "outline-width", value: { type: "unit", unit: "px", value: 1 } }
991
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1006
992
  ];
1007
993
  var address = div;
1008
994
  var article = div;
@@ -1062,22 +1048,6 @@ var body = [
1062
1048
  value: { type: "unit", unit: "number", value: 0 }
1063
1049
  },
1064
1050
  { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1065
- {
1066
- property: "border-top-width",
1067
- value: { type: "unit", unit: "px", value: 1 }
1068
- },
1069
- {
1070
- property: "border-right-width",
1071
- value: { type: "unit", unit: "px", value: 1 }
1072
- },
1073
- {
1074
- property: "border-bottom-width",
1075
- value: { type: "unit", unit: "px", value: 1 }
1076
- },
1077
- {
1078
- property: "border-left-width",
1079
- value: { type: "unit", unit: "px", value: 1 }
1080
- },
1081
1051
  {
1082
1052
  property: "-webkit-font-smoothing",
1083
1053
  value: { type: "keyword", value: "antialiased" }
@@ -1097,23 +1067,7 @@ var b = [
1097
1067
  property: "font-weight",
1098
1068
  value: { type: "unit", unit: "number", value: 700 }
1099
1069
  },
1100
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1101
- {
1102
- property: "border-top-width",
1103
- value: { type: "unit", unit: "px", value: 1 }
1104
- },
1105
- {
1106
- property: "border-right-width",
1107
- value: { type: "unit", unit: "px", value: 1 }
1108
- },
1109
- {
1110
- property: "border-bottom-width",
1111
- value: { type: "unit", unit: "px", value: 1 }
1112
- },
1113
- {
1114
- property: "border-left-width",
1115
- value: { type: "unit", unit: "px", value: 1 }
1116
- }
1070
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1117
1071
  ];
1118
1072
  var strong = b;
1119
1073
  var code = [
@@ -1132,46 +1086,14 @@ var code = [
1132
1086
  }
1133
1087
  },
1134
1088
  { property: "font-size", value: { type: "unit", unit: "em", value: 1 } },
1135
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1136
- {
1137
- property: "border-top-width",
1138
- value: { type: "unit", unit: "px", value: 1 }
1139
- },
1140
- {
1141
- property: "border-right-width",
1142
- value: { type: "unit", unit: "px", value: 1 }
1143
- },
1144
- {
1145
- property: "border-bottom-width",
1146
- value: { type: "unit", unit: "px", value: 1 }
1147
- },
1148
- {
1149
- property: "border-left-width",
1150
- value: { type: "unit", unit: "px", value: 1 }
1151
- }
1089
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1152
1090
  ];
1153
1091
  var kbd = code;
1154
1092
  var samp = code;
1155
1093
  var pre = code;
1156
1094
  var small = [
1157
1095
  { property: "font-size", value: { type: "unit", unit: "%", value: 80 } },
1158
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1159
- {
1160
- property: "border-top-width",
1161
- value: { type: "unit", unit: "px", value: 1 }
1162
- },
1163
- {
1164
- property: "border-right-width",
1165
- value: { type: "unit", unit: "px", value: 1 }
1166
- },
1167
- {
1168
- property: "border-bottom-width",
1169
- value: { type: "unit", unit: "px", value: 1 }
1170
- },
1171
- {
1172
- property: "border-left-width",
1173
- value: { type: "unit", unit: "px", value: 1 }
1174
- }
1096
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1175
1097
  ];
1176
1098
  var sub = [
1177
1099
  { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
@@ -1182,22 +1104,6 @@ var sub = [
1182
1104
  { property: "position", value: { type: "keyword", value: "relative" } },
1183
1105
  { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
1184
1106
  { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1185
- {
1186
- property: "border-top-width",
1187
- value: { type: "unit", unit: "px", value: 1 }
1188
- },
1189
- {
1190
- property: "border-right-width",
1191
- value: { type: "unit", unit: "px", value: 1 }
1192
- },
1193
- {
1194
- property: "border-bottom-width",
1195
- value: { type: "unit", unit: "px", value: 1 }
1196
- },
1197
- {
1198
- property: "border-left-width",
1199
- value: { type: "unit", unit: "px", value: 1 }
1200
- },
1201
1107
  { property: "bottom", value: { type: "unit", unit: "em", value: -0.25 } }
1202
1108
  ];
1203
1109
  var sup = [
@@ -1209,22 +1115,6 @@ var sup = [
1209
1115
  { property: "position", value: { type: "keyword", value: "relative" } },
1210
1116
  { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
1211
1117
  { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1212
- {
1213
- property: "border-top-width",
1214
- value: { type: "unit", unit: "px", value: 1 }
1215
- },
1216
- {
1217
- property: "border-right-width",
1218
- value: { type: "unit", unit: "px", value: 1 }
1219
- },
1220
- {
1221
- property: "border-bottom-width",
1222
- value: { type: "unit", unit: "px", value: 1 }
1223
- },
1224
- {
1225
- property: "border-left-width",
1226
- value: { type: "unit", unit: "px", value: 1 }
1227
- },
1228
1118
  { property: "top", value: { type: "unit", unit: "em", value: -0.5 } }
1229
1119
  ];
1230
1120
  var table = [
@@ -1232,22 +1122,6 @@ var table = [
1232
1122
  property: "text-indent",
1233
1123
  value: { type: "unit", unit: "number", value: 0 }
1234
1124
  },
1235
- {
1236
- property: "border-top-width",
1237
- value: { type: "unit", unit: "px", value: 1 }
1238
- },
1239
- {
1240
- property: "border-right-width",
1241
- value: { type: "unit", unit: "px", value: 1 }
1242
- },
1243
- {
1244
- property: "border-bottom-width",
1245
- value: { type: "unit", unit: "px", value: 1 }
1246
- },
1247
- {
1248
- property: "border-left-width",
1249
- value: { type: "unit", unit: "px", value: 1 }
1250
- },
1251
1125
  {
1252
1126
  property: "border-top-color",
1253
1127
  value: { type: "keyword", value: "inherit" }
@@ -1287,22 +1161,6 @@ var input = [
1287
1161
  value: { type: "unit", unit: "number", value: 0 }
1288
1162
  },
1289
1163
  { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1290
- {
1291
- property: "border-top-width",
1292
- value: { type: "unit", unit: "px", value: 1 }
1293
- },
1294
- {
1295
- property: "border-right-width",
1296
- value: { type: "unit", unit: "px", value: 1 }
1297
- },
1298
- {
1299
- property: "border-bottom-width",
1300
- value: { type: "unit", unit: "px", value: 1 }
1301
- },
1302
- {
1303
- property: "border-left-width",
1304
- value: { type: "unit", unit: "px", value: 1 }
1305
- },
1306
1164
  { property: "border-top-style", value: { type: "keyword", value: "solid" } },
1307
1165
  {
1308
1166
  property: "border-right-style",
@@ -1335,23 +1193,7 @@ var optgroup = [
1335
1193
  property: "margin-left",
1336
1194
  value: { type: "unit", unit: "number", value: 0 }
1337
1195
  },
1338
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1339
- {
1340
- property: "border-top-width",
1341
- value: { type: "unit", unit: "px", value: 1 }
1342
- },
1343
- {
1344
- property: "border-right-width",
1345
- value: { type: "unit", unit: "px", value: 1 }
1346
- },
1347
- {
1348
- property: "border-bottom-width",
1349
- value: { type: "unit", unit: "px", value: 1 }
1350
- },
1351
- {
1352
- property: "border-left-width",
1353
- value: { type: "unit", unit: "px", value: 1 }
1354
- }
1196
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1355
1197
  ];
1356
1198
  var radio = [
1357
1199
  { property: "font-family", value: { type: "keyword", value: "inherit" } },
@@ -1374,22 +1216,6 @@ var radio = [
1374
1216
  value: { type: "unit", unit: "number", value: 0 }
1375
1217
  },
1376
1218
  { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1377
- {
1378
- property: "border-top-width",
1379
- value: { type: "unit", unit: "px", value: 1 }
1380
- },
1381
- {
1382
- property: "border-right-width",
1383
- value: { type: "unit", unit: "px", value: 1 }
1384
- },
1385
- {
1386
- property: "border-bottom-width",
1387
- value: { type: "unit", unit: "px", value: 1 }
1388
- },
1389
- {
1390
- property: "border-left-width",
1391
- value: { type: "unit", unit: "px", value: 1 }
1392
- },
1393
1219
  { property: "border-top-style", value: { type: "keyword", value: "none" } },
1394
1220
  { property: "border-right-style", value: { type: "keyword", value: "none" } },
1395
1221
  {
@@ -1420,22 +1246,6 @@ var button = [
1420
1246
  value: { type: "unit", unit: "number", value: 0 }
1421
1247
  },
1422
1248
  { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1423
- {
1424
- property: "border-top-width",
1425
- value: { type: "unit", unit: "px", value: 1 }
1426
- },
1427
- {
1428
- property: "border-right-width",
1429
- value: { type: "unit", unit: "px", value: 1 }
1430
- },
1431
- {
1432
- property: "border-bottom-width",
1433
- value: { type: "unit", unit: "px", value: 1 }
1434
- },
1435
- {
1436
- property: "border-left-width",
1437
- value: { type: "unit", unit: "px", value: 1 }
1438
- },
1439
1249
  { property: "border-top-style", value: { type: "keyword", value: "solid" } },
1440
1250
  {
1441
1251
  property: "border-right-style",
@@ -1466,63 +1276,15 @@ var legend = [
1466
1276
  property: "padding-left",
1467
1277
  value: { type: "unit", unit: "number", value: 0 }
1468
1278
  },
1469
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1470
- {
1471
- property: "border-top-width",
1472
- value: { type: "unit", unit: "px", value: 1 }
1473
- },
1474
- {
1475
- property: "border-right-width",
1476
- value: { type: "unit", unit: "px", value: 1 }
1477
- },
1478
- {
1479
- property: "border-bottom-width",
1480
- value: { type: "unit", unit: "px", value: 1 }
1481
- },
1482
- {
1483
- property: "border-left-width",
1484
- value: { type: "unit", unit: "px", value: 1 }
1485
- }
1279
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1486
1280
  ];
1487
1281
  var progress = [
1488
1282
  { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
1489
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1490
- {
1491
- property: "border-top-width",
1492
- value: { type: "unit", unit: "px", value: 1 }
1493
- },
1494
- {
1495
- property: "border-right-width",
1496
- value: { type: "unit", unit: "px", value: 1 }
1497
- },
1498
- {
1499
- property: "border-bottom-width",
1500
- value: { type: "unit", unit: "px", value: 1 }
1501
- },
1502
- {
1503
- property: "border-left-width",
1504
- value: { type: "unit", unit: "px", value: 1 }
1505
- }
1283
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1506
1284
  ];
1507
1285
  var summary = [
1508
1286
  { property: "display", value: { type: "keyword", value: "list-item" } },
1509
- { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
1510
- {
1511
- property: "border-top-width",
1512
- value: { type: "unit", unit: "px", value: 1 }
1513
- },
1514
- {
1515
- property: "border-right-width",
1516
- value: { type: "unit", unit: "px", value: 1 }
1517
- },
1518
- {
1519
- property: "border-bottom-width",
1520
- value: { type: "unit", unit: "px", value: 1 }
1521
- },
1522
- {
1523
- property: "border-left-width",
1524
- value: { type: "unit", unit: "px", value: 1 }
1525
- }
1287
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
1526
1288
  ];
1527
1289
 
1528
1290
  // src/runtime.ts
@@ -22,5 +22,5 @@ export * from "./page-meta-generator";
22
22
  export * from "./url-pattern";
23
23
  export * from "./css";
24
24
  export * from "./__generated__/tags";
25
- export type { AnimationAction, AnimationActionScroll, AnimationActionView, AnimationKeyframe, KeyframeStyles, RangeUnit, RangeUnitValue, ScrollNamedRange, ScrollRangeValue, ViewNamedRange, ViewRangeValue, ScrollAnimation, ViewAnimation, InsetUnitValue, DurationUnitValue, TimeUnit, } from "./schema/animation-schema";
25
+ export type { AnimationAction, AnimationActionScroll, AnimationActionView, AnimationKeyframe, KeyframeStyles, RangeUnit, RangeUnitValue, ScrollNamedRange, ScrollRangeValue, ViewNamedRange, ViewRangeValue, ScrollAnimation, ViewAnimation, InsetUnitValue, DurationUnitValue, IterationsUnitValue, TimeUnit, } from "./schema/animation-schema";
26
26
  export { animationActionSchema, scrollAnimationSchema, viewAnimationSchema, rangeUnitValueSchema, animationKeyframeSchema, insetUnitValueSchema, durationUnitValueSchema, RANGE_UNITS, } from "./schema/animation-schema";