@makeswift/runtime 0.2.16 → 0.2.17

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.
Files changed (157) hide show
  1. package/dist/Box.cjs.js +2 -3
  2. package/dist/Box.cjs.js.map +1 -1
  3. package/dist/Box.es.js +2 -3
  4. package/dist/Box.es.js.map +1 -1
  5. package/dist/Button.cjs.js +2 -3
  6. package/dist/Button.cjs.js.map +1 -1
  7. package/dist/Button.es.js +2 -3
  8. package/dist/Button.es.js.map +1 -1
  9. package/dist/Carousel.cjs.js +3 -4
  10. package/dist/Carousel.cjs.js.map +1 -1
  11. package/dist/Carousel.es.js +3 -4
  12. package/dist/Carousel.es.js.map +1 -1
  13. package/dist/Countdown.cjs.js +2 -3
  14. package/dist/Countdown.cjs.js.map +1 -1
  15. package/dist/Countdown.es.js +2 -3
  16. package/dist/Countdown.es.js.map +1 -1
  17. package/dist/Divider.cjs.js +2 -3
  18. package/dist/Divider.cjs.js.map +1 -1
  19. package/dist/Divider.es.js +2 -3
  20. package/dist/Divider.es.js.map +1 -1
  21. package/dist/Embed.cjs.js +2 -3
  22. package/dist/Embed.cjs.js.map +1 -1
  23. package/dist/Embed.es.js +2 -3
  24. package/dist/Embed.es.js.map +1 -1
  25. package/dist/Form.cjs.js +2 -3
  26. package/dist/Form.cjs.js.map +1 -1
  27. package/dist/Form.es.js +2 -3
  28. package/dist/Form.es.js.map +1 -1
  29. package/dist/{Image.cjs2.js → Image.cjs.js} +3 -4
  30. package/dist/{Image.es2.js.map → Image.cjs.js.map} +1 -1
  31. package/dist/{Image.es2.js → Image.es.js} +3 -4
  32. package/dist/Image.es.js.map +1 -0
  33. package/dist/Navigation.cjs.js +3 -4
  34. package/dist/Navigation.cjs.js.map +1 -1
  35. package/dist/Navigation.es.js +3 -4
  36. package/dist/Navigation.es.js.map +1 -1
  37. package/dist/Root.cjs.js +2 -3
  38. package/dist/Root.cjs.js.map +1 -1
  39. package/dist/Root.es.js +2 -3
  40. package/dist/Root.es.js.map +1 -1
  41. package/dist/SocialLinks.cjs.js +2 -3
  42. package/dist/SocialLinks.cjs.js.map +1 -1
  43. package/dist/SocialLinks.es.js +2 -3
  44. package/dist/SocialLinks.es.js.map +1 -1
  45. package/dist/Text.cjs.js +2 -3
  46. package/dist/Text.cjs.js.map +1 -1
  47. package/dist/Text.es.js +2 -3
  48. package/dist/Text.es.js.map +1 -1
  49. package/dist/Video.cjs.js +2 -3
  50. package/dist/Video.cjs.js.map +1 -1
  51. package/dist/Video.es.js +2 -3
  52. package/dist/Video.es.js.map +1 -1
  53. package/dist/builder.cjs.js +3 -2
  54. package/dist/builder.cjs.js.map +1 -1
  55. package/dist/builder.es.js +3 -2
  56. package/dist/builder.es.js.map +1 -1
  57. package/dist/combobox.cjs.js +8 -0
  58. package/dist/combobox.cjs.js.map +1 -0
  59. package/dist/combobox.es.js +6 -0
  60. package/dist/combobox.es.js.map +1 -0
  61. package/dist/components.cjs.js +3 -4
  62. package/dist/components.cjs.js.map +1 -1
  63. package/dist/components.es.js +3 -4
  64. package/dist/components.es.js.map +1 -1
  65. package/dist/control-serialization.cjs.js +148 -147
  66. package/dist/control-serialization.cjs.js.map +1 -1
  67. package/dist/control-serialization.es.js +3 -2
  68. package/dist/control-serialization.es.js.map +1 -1
  69. package/dist/control.cjs.js +437 -0
  70. package/dist/control.cjs.js.map +1 -0
  71. package/dist/control.es.js +426 -0
  72. package/dist/control.es.js.map +1 -0
  73. package/dist/controls.cjs.js +26 -19
  74. package/dist/controls.cjs.js.map +1 -1
  75. package/dist/controls.es.js +4 -5
  76. package/dist/controls.es.js.map +1 -1
  77. package/dist/index.cjs.js +211 -212
  78. package/dist/index.cjs.js.map +1 -1
  79. package/dist/index.es.js +6 -7
  80. package/dist/index.es.js.map +1 -1
  81. package/dist/main.cjs.js +1 -2
  82. package/dist/main.cjs.js.map +1 -1
  83. package/dist/main.es.js +1 -2
  84. package/dist/main.es.js.map +1 -1
  85. package/dist/next.cjs.js +2 -3
  86. package/dist/next.cjs.js.map +1 -1
  87. package/dist/next.es.js +2 -3
  88. package/dist/next.es.js.map +1 -1
  89. package/dist/prop-controllers.cjs.js +1 -2
  90. package/dist/prop-controllers.cjs.js.map +1 -1
  91. package/dist/prop-controllers.es.js +1 -2
  92. package/dist/prop-controllers.es.js.map +1 -1
  93. package/dist/react-builder-preview.cjs.js +2 -3
  94. package/dist/react-builder-preview.cjs.js.map +1 -1
  95. package/dist/react-builder-preview.es.js +3 -4
  96. package/dist/react-builder-preview.es.js.map +1 -1
  97. package/dist/react-page.cjs.js +32 -358
  98. package/dist/react-page.cjs.js.map +1 -1
  99. package/dist/react-page.es.js +11 -337
  100. package/dist/react-page.es.js.map +1 -1
  101. package/dist/react.cjs.js +2 -3
  102. package/dist/react.cjs.js.map +1 -1
  103. package/dist/react.es.js +2 -3
  104. package/dist/react.es.js.map +1 -1
  105. package/dist/slot.cjs.js +359 -3
  106. package/dist/slot.cjs.js.map +1 -1
  107. package/dist/slot.es.js +310 -2
  108. package/dist/slot.es.js.map +1 -1
  109. package/dist/text-input.cjs.js +0 -6
  110. package/dist/text-input.cjs.js.map +1 -1
  111. package/dist/text-input.es.js +1 -5
  112. package/dist/text-input.es.js.map +1 -1
  113. package/dist/types/src/controls/color.d.ts +2 -0
  114. package/dist/types/src/controls/color.d.ts.map +1 -1
  115. package/dist/types/src/controls/control.d.ts +3 -0
  116. package/dist/types/src/controls/control.d.ts.map +1 -1
  117. package/dist/types/src/controls/image.d.ts +2 -0
  118. package/dist/types/src/controls/image.d.ts.map +1 -1
  119. package/dist/types/src/controls/link.d.ts +2 -0
  120. package/dist/types/src/controls/link.d.ts.map +1 -1
  121. package/dist/types/src/controls/list.d.ts +2 -0
  122. package/dist/types/src/controls/list.d.ts.map +1 -1
  123. package/dist/types/src/controls/shape.d.ts +2 -0
  124. package/dist/types/src/controls/shape.d.ts.map +1 -1
  125. package/dist/types/src/controls/slot.d.ts +2 -1
  126. package/dist/types/src/controls/slot.d.ts.map +1 -1
  127. package/dist/types/src/controls/style.d.ts +2 -0
  128. package/dist/types/src/controls/style.d.ts.map +1 -1
  129. package/dist/types/src/prop-controllers/copy/backgrounds.d.ts +1 -54
  130. package/dist/types/src/prop-controllers/copy/backgrounds.d.ts.map +1 -1
  131. package/dist/types/src/prop-controllers/copy/grid.d.ts +1 -1
  132. package/dist/types/src/prop-controllers/copy/grid.d.ts.map +1 -1
  133. package/dist/types/src/prop-controllers/copy/image.d.ts +1 -1
  134. package/dist/types/src/prop-controllers/copy/image.d.ts.map +1 -1
  135. package/dist/types/src/prop-controllers/copy/link.d.ts +1 -1
  136. package/dist/types/src/prop-controllers/copy/link.d.ts.map +1 -1
  137. package/dist/types/src/prop-controllers/copy/navigation-links.d.ts +1 -1
  138. package/dist/types/src/prop-controllers/copy/navigation-links.d.ts.map +1 -1
  139. package/dist/types/src/prop-controllers/copy/responsive-color.d.ts +1 -1
  140. package/dist/types/src/prop-controllers/copy/responsive-color.d.ts.map +1 -1
  141. package/dist/types/src/prop-controllers/copy/shadows.d.ts +1 -1
  142. package/dist/types/src/prop-controllers/copy/shadows.d.ts.map +1 -1
  143. package/dist/types/src/state/react-page.d.ts.map +1 -1
  144. package/package.json +1 -1
  145. package/dist/Image.cjs2.js.map +0 -1
  146. package/dist/color.cjs.js +0 -8
  147. package/dist/color.cjs.js.map +0 -1
  148. package/dist/color.es.js +0 -6
  149. package/dist/color.es.js.map +0 -1
  150. package/dist/image.cjs.js +0 -282
  151. package/dist/image.cjs.js.map +0 -1
  152. package/dist/image.es.js +0 -240
  153. package/dist/image.es.js.map +0 -1
  154. package/dist/shape.cjs.js +0 -20
  155. package/dist/shape.cjs.js.map +0 -1
  156. package/dist/shape.es.js +0 -14
  157. package/dist/shape.es.js.map +0 -1
package/dist/index.cjs.js CHANGED
@@ -45,13 +45,12 @@ var client = require("@apollo/client");
45
45
  var batchHttp = require("@apollo/client/link/batch-http");
46
46
  var slate = require("slate");
47
47
  var graphql = require("./graphql.cjs.js");
48
- var image = require("./image.cjs.js");
49
- var shape = require("./shape.cjs.js");
48
+ var slot = require("./slot.cjs.js");
49
+ var control = require("./control.cjs.js");
50
50
  var jsxRuntime = require("react/jsx-runtime");
51
51
  var styled = require("styled-components");
52
52
  var textInput = require("./text-input.cjs.js");
53
- var color = require("./color.cjs.js");
54
- var slot = require("./slot.cjs.js");
53
+ var combobox = require("./combobox.cjs.js");
55
54
  var css = require("@emotion/css");
56
55
  var ColorHelper = require("color");
57
56
  var scrollIntoView = require("scroll-into-view-if-needed");
@@ -341,13 +340,13 @@ async function introspect(element, client2, store) {
341
340
  reactPage.getTableIds(descriptor, props[propName]).forEach((tableId) => tableIds.add(tableId));
342
341
  reactPage.getPageIds(descriptor, props[propName]).forEach((pageId) => pageIds.add(pageId));
343
342
  reactPage.getElementChildren(descriptor, props[propName]).forEach((child) => remaining.push(child));
344
- if (descriptor.type === shape.ShapeControlType) {
343
+ if (descriptor.type === control.ShapeControlType) {
345
344
  const prop = props[propName];
346
345
  if (prop == null)
347
346
  return;
348
347
  getResourcesFromElementDescriptors(descriptor.config.type, prop);
349
348
  }
350
- if (descriptor.type === shape.ListControlType) {
349
+ if (descriptor.type === control.ListControlType) {
351
350
  const prop = props[propName];
352
351
  if (prop == null)
353
352
  return;
@@ -355,13 +354,13 @@ async function introspect(element, client2, store) {
355
354
  getResourcesFromElementDescriptors({ propName: descriptor.config.type }, { propName: item.value });
356
355
  });
357
356
  }
358
- if (descriptor.type === image.Types.Shape) {
357
+ if (descriptor.type === slot.Types.Shape) {
359
358
  const prop = props[propName];
360
359
  if (prop == null)
361
360
  return;
362
361
  getResourcesFromElementDescriptors(descriptor.options.type, prop);
363
362
  }
364
- if (descriptor.type === image.Types.List) {
363
+ if (descriptor.type === slot.Types.List) {
365
364
  const prop = props[propName];
366
365
  if (prop == null)
367
366
  return;
@@ -1002,7 +1001,7 @@ class Document$1 extends NextDocument__default["default"] {
1002
1001
  });
1003
1002
  }
1004
1003
  }
1005
- const version = "0.2.16";
1004
+ const version = "0.2.17";
1006
1005
  function isErrorWithMessage(error) {
1007
1006
  return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
1008
1007
  }
@@ -1350,10 +1349,10 @@ function registerComponent$c(runtime) {
1350
1349
  type: MakeswiftComponentType.Box,
1351
1350
  label: "Box",
1352
1351
  props: {
1353
- id: image.ElementID(),
1354
- backgrounds: image.Backgrounds(),
1355
- width: image.Width(),
1356
- height: image.ResponsiveIconRadioGroup({
1352
+ id: slot.ElementID(),
1353
+ backgrounds: slot.Backgrounds(),
1354
+ width: slot.Width(),
1355
+ height: slot.ResponsiveIconRadioGroup({
1357
1356
  label: "Height",
1358
1357
  options: [
1359
1358
  { value: "auto", label: "Auto", icon: "HeightAuto16" },
@@ -1361,7 +1360,7 @@ function registerComponent$c(runtime) {
1361
1360
  ],
1362
1361
  defaultValue: "auto"
1363
1362
  }),
1364
- verticalAlign: image.ResponsiveIconRadioGroup({
1363
+ verticalAlign: slot.ResponsiveIconRadioGroup({
1365
1364
  label: "Align items",
1366
1365
  options: [
1367
1366
  { value: "flex-start", label: "Top", icon: "VerticalAlignStart16" },
@@ -1375,8 +1374,8 @@ function registerComponent$c(runtime) {
1375
1374
  ],
1376
1375
  defaultValue: "flex-start"
1377
1376
  }),
1378
- margin: image.Margin(),
1379
- padding: image.Padding({
1377
+ margin: slot.Margin(),
1378
+ padding: slot.Padding({
1380
1379
  preset: [
1381
1380
  {
1382
1381
  deviceId: "desktop",
@@ -1389,16 +1388,16 @@ function registerComponent$c(runtime) {
1389
1388
  }
1390
1389
  ]
1391
1390
  }),
1392
- border: image.Border(),
1393
- borderRadius: image.BorderRadius(),
1394
- boxShadow: image.Shadows(),
1395
- rowGap: image.GapY((props) => ({
1391
+ border: slot.Border(),
1392
+ borderRadius: slot.BorderRadius(),
1393
+ boxShadow: slot.Shadows(),
1394
+ rowGap: slot.GapY((props) => ({
1396
1395
  hidden: props.children == null
1397
1396
  })),
1398
- columnGap: image.GapX((props) => ({
1397
+ columnGap: slot.GapX((props) => ({
1399
1398
  hidden: props.children == null
1400
1399
  })),
1401
- boxAnimateType: image.ResponsiveSelect({
1400
+ boxAnimateType: slot.ResponsiveSelect({
1402
1401
  label: "Animate box in",
1403
1402
  labelOrientation: "vertical",
1404
1403
  options: [
@@ -1414,7 +1413,7 @@ function registerComponent$c(runtime) {
1414
1413
  ],
1415
1414
  defaultValue: "none"
1416
1415
  }),
1417
- boxAnimateDuration: image.ResponsiveNumber((props, device) => ({
1416
+ boxAnimateDuration: slot.ResponsiveNumber((props, device) => ({
1418
1417
  label: "Box duration",
1419
1418
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1420
1419
  min: 0.1,
@@ -1422,7 +1421,7 @@ function registerComponent$c(runtime) {
1422
1421
  suffix: "s",
1423
1422
  hidden: isHiddenBasedOnBoxAnimation(props, device)
1424
1423
  })),
1425
- boxAnimateDelay: image.ResponsiveNumber((props, device) => ({
1424
+ boxAnimateDelay: slot.ResponsiveNumber((props, device) => ({
1426
1425
  label: "Box delay",
1427
1426
  defaultValue: DEFAULT_BOX_ANIMATE_DELAY,
1428
1427
  min: 0,
@@ -1430,7 +1429,7 @@ function registerComponent$c(runtime) {
1430
1429
  suffix: "s",
1431
1430
  hidden: isHiddenBasedOnBoxAnimation(props, device)
1432
1431
  })),
1433
- itemAnimateType: image.ResponsiveSelect({
1432
+ itemAnimateType: slot.ResponsiveSelect({
1434
1433
  label: "Animate items in",
1435
1434
  labelOrientation: "vertical",
1436
1435
  options: [
@@ -1446,7 +1445,7 @@ function registerComponent$c(runtime) {
1446
1445
  ],
1447
1446
  defaultValue: "none"
1448
1447
  }),
1449
- itemAnimateDuration: image.ResponsiveNumber((props, device) => ({
1448
+ itemAnimateDuration: slot.ResponsiveNumber((props, device) => ({
1450
1449
  label: "Items duration",
1451
1450
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1452
1451
  min: 0.1,
@@ -1454,7 +1453,7 @@ function registerComponent$c(runtime) {
1454
1453
  suffix: "s",
1455
1454
  hidden: isHiddenBasedOnItemAnimation(props, device)
1456
1455
  })),
1457
- itemAnimateDelay: image.ResponsiveNumber((props, device) => ({
1456
+ itemAnimateDelay: slot.ResponsiveNumber((props, device) => ({
1458
1457
  label: "Items delay",
1459
1458
  defaultValue: DEFAULT_ITEM_ANIMATE_DELAY,
1460
1459
  min: 0,
@@ -1462,7 +1461,7 @@ function registerComponent$c(runtime) {
1462
1461
  suffix: "s",
1463
1462
  hidden: isHiddenBasedOnItemAnimation(props, device)
1464
1463
  })),
1465
- itemStaggerDuration: image.ResponsiveNumber((props, device) => ({
1464
+ itemStaggerDuration: slot.ResponsiveNumber((props, device) => ({
1466
1465
  label: "Stagger",
1467
1466
  min: 0,
1468
1467
  step: 0.05,
@@ -1470,11 +1469,11 @@ function registerComponent$c(runtime) {
1470
1469
  defaultValue: DEFAULT_ITEM_STAGGER_DURATION,
1471
1470
  hidden: isHiddenBasedOnItemAnimation(props, device)
1472
1471
  })),
1473
- hidePlaceholder: image.Checkbox((props) => ({
1472
+ hidePlaceholder: slot.Checkbox((props) => ({
1474
1473
  label: "Hide placeholder",
1475
1474
  hidden: props.children != null
1476
1475
  })),
1477
- children: image.Grid()
1476
+ children: slot.Grid()
1478
1477
  }
1479
1478
  });
1480
1479
  }
@@ -1485,9 +1484,9 @@ function registerComponent$b(runtime) {
1485
1484
  type: MakeswiftComponentType.Button,
1486
1485
  label: "Button",
1487
1486
  props: {
1488
- id: image.ElementID(),
1489
- children: image.TextInput({ placeholder: "Button text" }),
1490
- link: image.Link({
1487
+ id: slot.ElementID(),
1488
+ children: slot.TextInput({ placeholder: "Button text" }),
1489
+ link: slot.Link({
1491
1490
  defaultValue: {
1492
1491
  type: "OPEN_PAGE",
1493
1492
  payload: {
@@ -1496,7 +1495,7 @@ function registerComponent$b(runtime) {
1496
1495
  }
1497
1496
  }
1498
1497
  }),
1499
- variant: image.ResponsiveSelect({
1498
+ variant: slot.ResponsiveSelect({
1500
1499
  label: "Style",
1501
1500
  labelOrientation: "horizontal",
1502
1501
  options: [
@@ -1510,7 +1509,7 @@ function registerComponent$b(runtime) {
1510
1509
  ],
1511
1510
  defaultValue: "flat"
1512
1511
  }),
1513
- shape: image.ResponsiveIconRadioGroup({
1512
+ shape: slot.ResponsiveIconRadioGroup({
1514
1513
  label: "Shape",
1515
1514
  options: [
1516
1515
  { label: "Pill", value: "pill", icon: "ButtonPill16" },
@@ -1519,7 +1518,7 @@ function registerComponent$b(runtime) {
1519
1518
  ],
1520
1519
  defaultValue: "rounded"
1521
1520
  }),
1522
- size: image.ResponsiveIconRadioGroup({
1521
+ size: slot.ResponsiveIconRadioGroup({
1523
1522
  label: "Size",
1524
1523
  options: [
1525
1524
  { label: "Small", value: "small", icon: "SizeSmall16" },
@@ -1528,19 +1527,19 @@ function registerComponent$b(runtime) {
1528
1527
  ],
1529
1528
  defaultValue: "medium"
1530
1529
  }),
1531
- color: image.ResponsiveColor((props, device) => {
1530
+ color: slot.ResponsiveColor((props, device) => {
1532
1531
  var _a;
1533
1532
  const variant = props.variant;
1534
1533
  const hidden = ((_a = findDeviceOverride(variant, device)) == null ? void 0 : _a.value) === "clear";
1535
1534
  return { placeholder: "black", hidden };
1536
1535
  }),
1537
- textColor: image.ResponsiveColor({
1536
+ textColor: slot.ResponsiveColor({
1538
1537
  label: "Text color",
1539
1538
  placeholder: "white"
1540
1539
  }),
1541
- textStyle: image.TextStyle(),
1542
- width: image.Width(),
1543
- margin: image.Margin()
1540
+ textStyle: slot.TextStyle(),
1541
+ width: slot.Width(),
1542
+ margin: slot.Margin()
1544
1543
  }
1545
1544
  });
1546
1545
  }
@@ -1552,17 +1551,17 @@ function registerComponent$a(runtime) {
1552
1551
  label: "Carousel",
1553
1552
  icon: "Carousel40",
1554
1553
  props: {
1555
- id: image.ElementID(),
1556
- images: image.Images({
1554
+ id: slot.ElementID(),
1555
+ images: slot.Images({
1557
1556
  preset: [
1558
1557
  { key: uuid__default["default"](), props: {} },
1559
1558
  { key: uuid__default["default"](), props: {} },
1560
1559
  { key: uuid__default["default"](), props: {} }
1561
1560
  ]
1562
1561
  }),
1563
- width: image.Width({ defaultValue: { value: 400, unit: "px" } }),
1564
- margin: image.Margin(),
1565
- pageSize: image.ResponsiveNumber((props) => {
1562
+ width: slot.Width({ defaultValue: { value: 400, unit: "px" } }),
1563
+ margin: slot.Margin(),
1564
+ pageSize: slot.ResponsiveNumber((props) => {
1566
1565
  var _a;
1567
1566
  const images = props.images;
1568
1567
  const imagesLength = (_a = images == null ? void 0 : images.length) != null ? _a : 0;
@@ -1574,7 +1573,7 @@ function registerComponent$a(runtime) {
1574
1573
  step: 1
1575
1574
  };
1576
1575
  }),
1577
- step: image.ResponsiveNumber((props, device) => {
1576
+ step: slot.ResponsiveNumber((props, device) => {
1578
1577
  var _a, _b;
1579
1578
  const pageSize = props.pageSize;
1580
1579
  const pageSizeValue = (_b = (_a = findDeviceOverride(pageSize, device)) == null ? void 0 : _a.value) != null ? _b : 1;
@@ -1586,7 +1585,7 @@ function registerComponent$a(runtime) {
1586
1585
  step: 1
1587
1586
  };
1588
1587
  }),
1589
- slideAlignment: image.ResponsiveIconRadioGroup({
1588
+ slideAlignment: slot.ResponsiveIconRadioGroup({
1590
1589
  label: "Alignment",
1591
1590
  options: [
1592
1591
  { label: "Top", value: "flex-start", icon: "VerticalAlignStart16" },
@@ -1595,13 +1594,13 @@ function registerComponent$a(runtime) {
1595
1594
  ],
1596
1595
  defaultValue: "center"
1597
1596
  }),
1598
- gap: image.GapX({
1597
+ gap: slot.GapX({
1599
1598
  label: "Gap",
1600
1599
  step: 5,
1601
1600
  defaultValue: { value: 0, unit: "px" }
1602
1601
  }),
1603
- autoplay: image.Checkbox({ label: "Autoplay" }),
1604
- delay: image.Number((props) => ({
1602
+ autoplay: slot.Checkbox({ label: "Autoplay" }),
1603
+ delay: slot.Number((props) => ({
1605
1604
  label: "Delay",
1606
1605
  preset: 5,
1607
1606
  min: 1,
@@ -1609,8 +1608,8 @@ function registerComponent$a(runtime) {
1609
1608
  suffix: "seconds",
1610
1609
  hidden: !props.autoplay
1611
1610
  })),
1612
- showArrows: image.Checkbox({ preset: true, label: "Show arrows" }),
1613
- arrowPosition: image.ResponsiveIconRadioGroup((props) => ({
1611
+ showArrows: slot.Checkbox({ preset: true, label: "Show arrows" }),
1612
+ arrowPosition: slot.ResponsiveIconRadioGroup((props) => ({
1614
1613
  label: "Arrow position",
1615
1614
  options: [
1616
1615
  { label: "Inside", value: "inside", icon: "ArrowInside16" },
@@ -1620,24 +1619,24 @@ function registerComponent$a(runtime) {
1620
1619
  defaultValue: "inside",
1621
1620
  hidden: props.showArrows === false
1622
1621
  })),
1623
- arrowColor: image.ResponsiveColor((props) => ({
1622
+ arrowColor: slot.ResponsiveColor((props) => ({
1624
1623
  label: "Arrow color",
1625
1624
  placeholder: "black",
1626
1625
  hidden: props.showArrows === false
1627
1626
  })),
1628
- arrowBackground: image.ResponsiveColor((props) => ({
1627
+ arrowBackground: slot.ResponsiveColor((props) => ({
1629
1628
  label: "Arrow background",
1630
1629
  placeholder: "white",
1631
1630
  hidden: props.showArrows === false
1632
1631
  })),
1633
- showDots: image.Checkbox({ preset: true, label: "Show dots" }),
1634
- dotColor: image.ResponsiveColor((props) => ({
1632
+ showDots: slot.Checkbox({ preset: true, label: "Show dots" }),
1633
+ dotColor: slot.ResponsiveColor((props) => ({
1635
1634
  label: "Dot color",
1636
1635
  placeholder: "black",
1637
1636
  hidden: props.showDots === false
1638
1637
  })),
1639
- slideBorder: image.Border(),
1640
- slideBorderRadius: image.BorderRadius()
1638
+ slideBorder: slot.Border(),
1639
+ slideBorderRadius: slot.BorderRadius()
1641
1640
  }
1642
1641
  });
1643
1642
  }
@@ -1649,11 +1648,11 @@ function registerComponent$9(runtime) {
1649
1648
  label: "Countdown",
1650
1649
  icon: "Countdown40",
1651
1650
  props: {
1652
- id: image.ElementID(),
1653
- date: image.Date(() => ({
1651
+ id: slot.ElementID(),
1652
+ date: slot.Date(() => ({
1654
1653
  preset: new Date(Date.now() + 1e3 * 60 * 60 * 24 * 2).toISOString()
1655
1654
  })),
1656
- variant: image.ResponsiveIconRadioGroup({
1655
+ variant: slot.ResponsiveIconRadioGroup({
1657
1656
  label: "Style",
1658
1657
  options: [
1659
1658
  { label: "Filled", value: "filled", icon: "CountdownSolid16" },
@@ -1672,7 +1671,7 @@ function registerComponent$9(runtime) {
1672
1671
  ],
1673
1672
  defaultValue: "filled"
1674
1673
  }),
1675
- shape: image.ResponsiveIconRadioGroup({
1674
+ shape: slot.ResponsiveIconRadioGroup({
1676
1675
  label: "Shape",
1677
1676
  options: [
1678
1677
  { label: "Pill", value: "pill", icon: "ButtonPill16" },
@@ -1681,7 +1680,7 @@ function registerComponent$9(runtime) {
1681
1680
  ],
1682
1681
  defaultValue: "rounded"
1683
1682
  }),
1684
- size: image.ResponsiveIconRadioGroup({
1683
+ size: slot.ResponsiveIconRadioGroup({
1685
1684
  label: "Size",
1686
1685
  options: [
1687
1686
  { label: "Small", value: "small", icon: "SizeSmall16" },
@@ -1690,7 +1689,7 @@ function registerComponent$9(runtime) {
1690
1689
  ],
1691
1690
  defaultValue: "medium"
1692
1691
  }),
1693
- gap: image.GapX({
1692
+ gap: slot.GapX({
1694
1693
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
1695
1694
  label: "Gap",
1696
1695
  step: 1,
@@ -1698,29 +1697,29 @@ function registerComponent$9(runtime) {
1698
1697
  max: 100,
1699
1698
  defaultValue: { value: 0, unit: "px" }
1700
1699
  }),
1701
- numberFont: image.Font({ label: "Number font" }),
1702
- numberColor: image.ResponsiveColor({
1700
+ numberFont: slot.Font({ label: "Number font" }),
1701
+ numberColor: slot.ResponsiveColor({
1703
1702
  label: "Number color",
1704
1703
  placeholder: "white"
1705
1704
  }),
1706
- blockColor: image.ResponsiveColor({
1705
+ blockColor: slot.ResponsiveColor({
1707
1706
  label: "Block color",
1708
1707
  placeholder: "black"
1709
1708
  }),
1710
- labelFont: image.Font({ label: "Label font" }),
1711
- labelColor: image.ResponsiveColor({
1709
+ labelFont: slot.Font({ label: "Label font" }),
1710
+ labelColor: slot.ResponsiveColor({
1712
1711
  label: "Label color",
1713
1712
  placeholder: "black"
1714
1713
  }),
1715
- width: image.Width({ defaultValue: { value: 560, unit: "px" } }),
1716
- margin: image.Margin(),
1717
- daysLabel: image.TextInput({ label: "Days label", placeholder: "Days" }),
1718
- hoursLabel: image.TextInput({ label: "Hours label", placeholder: "Hours" }),
1719
- minutesLabel: image.TextInput({
1714
+ width: slot.Width({ defaultValue: { value: 560, unit: "px" } }),
1715
+ margin: slot.Margin(),
1716
+ daysLabel: slot.TextInput({ label: "Days label", placeholder: "Days" }),
1717
+ hoursLabel: slot.TextInput({ label: "Hours label", placeholder: "Hours" }),
1718
+ minutesLabel: slot.TextInput({
1720
1719
  label: "Minutes label",
1721
1720
  placeholder: "Minutes"
1722
1721
  }),
1723
- secondsLabel: image.TextInput({
1722
+ secondsLabel: slot.TextInput({
1724
1723
  label: "Seconds label",
1725
1724
  placeholder: "Seconds"
1726
1725
  })
@@ -1735,8 +1734,8 @@ function registerComponent$8(runtime) {
1735
1734
  label: "Divider",
1736
1735
  icon: "Divider40",
1737
1736
  props: {
1738
- id: image.ElementID(),
1739
- variant: image.ResponsiveSelect({
1737
+ id: slot.ElementID(),
1738
+ variant: slot.ResponsiveSelect({
1740
1739
  label: "Style",
1741
1740
  labelOrientation: "horizontal",
1742
1741
  options: [
@@ -1747,14 +1746,14 @@ function registerComponent$8(runtime) {
1747
1746
  ],
1748
1747
  defaultValue: "solid"
1749
1748
  }),
1750
- thickness: image.ResponsiveLength({
1749
+ thickness: slot.ResponsiveLength({
1751
1750
  label: "Height",
1752
1751
  defaultValue: { value: 1, unit: "px" },
1753
1752
  options: [{ value: "px", label: "Pixels", icon: "Px16" }]
1754
1753
  }),
1755
- color: image.ResponsiveColor({ placeholder: "black" }),
1756
- width: image.Width({ defaultValue: { value: 100, unit: "%" } }),
1757
- margin: image.Margin()
1754
+ color: slot.ResponsiveColor({ placeholder: "black" }),
1755
+ width: slot.Width({ defaultValue: { value: 100, unit: "%" } }),
1756
+ margin: slot.Margin()
1758
1757
  }
1759
1758
  });
1760
1759
  }
@@ -1766,10 +1765,10 @@ function registerComponent$7(runtime) {
1766
1765
  label: "Embed",
1767
1766
  icon: "Code40",
1768
1767
  props: {
1769
- id: image.ElementID(),
1770
- html: image.TextArea({ label: "Code", rows: 20 }),
1771
- width: image.Width({}),
1772
- margin: image.Margin()
1768
+ id: slot.ElementID(),
1769
+ html: slot.TextArea({ label: "Code", rows: 20 }),
1770
+ width: slot.Width({}),
1771
+ margin: slot.Margin()
1773
1772
  }
1774
1773
  });
1775
1774
  }
@@ -1805,10 +1804,10 @@ function registerComponent$6(runtime) {
1805
1804
  label: "Form",
1806
1805
  icon: "Form40",
1807
1806
  props: {
1808
- id: image.ElementID(),
1809
- tableId: image.Table(),
1810
- fields: image.TableFormFields(),
1811
- submitLink: image.Link((props) => ({
1807
+ id: slot.ElementID(),
1808
+ tableId: slot.Table(),
1809
+ fields: slot.TableFormFields(),
1810
+ submitLink: slot.Link((props) => ({
1812
1811
  label: "Redirect to",
1813
1812
  options: [
1814
1813
  { value: "OPEN_PAGE", label: "Open page" },
@@ -1816,13 +1815,13 @@ function registerComponent$6(runtime) {
1816
1815
  ],
1817
1816
  hidden: props.tableId == null
1818
1817
  })),
1819
- gap: image.GapY((props) => ({
1818
+ gap: slot.GapY((props) => ({
1820
1819
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
1821
1820
  label: "Gap",
1822
1821
  defaultValue: { value: 0, unit: "px" },
1823
1822
  hidden: props.tableId == null
1824
1823
  })),
1825
- shape: image.ResponsiveIconRadioGroup((props) => ({
1824
+ shape: slot.ResponsiveIconRadioGroup((props) => ({
1826
1825
  label: "Shape",
1827
1826
  options: [
1828
1827
  { label: "Pill", value: Shapes.PILL, icon: "ButtonPill16" },
@@ -1832,7 +1831,7 @@ function registerComponent$6(runtime) {
1832
1831
  defaultValue: Shapes.ROUNDED,
1833
1832
  hidden: props.tableId == null
1834
1833
  })),
1835
- size: image.ResponsiveIconRadioGroup((props) => ({
1834
+ size: slot.ResponsiveIconRadioGroup((props) => ({
1836
1835
  label: "Size",
1837
1836
  options: [
1838
1837
  { label: "Small", value: Sizes.SMALL, icon: "SizeSmall16" },
@@ -1842,7 +1841,7 @@ function registerComponent$6(runtime) {
1842
1841
  defaultValue: Sizes.MEDIUM,
1843
1842
  hidden: (props == null ? void 0 : props.tableId) == null
1844
1843
  })),
1845
- contrast: image.ResponsiveIconRadioGroup((props) => ({
1844
+ contrast: slot.ResponsiveIconRadioGroup((props) => ({
1846
1845
  label: "Color",
1847
1846
  options: [
1848
1847
  { label: "Light mode", value: Contrasts.LIGHT, icon: "Sun16" },
@@ -1851,8 +1850,8 @@ function registerComponent$6(runtime) {
1851
1850
  defaultValue: Contrasts.LIGHT,
1852
1851
  hidden: props.tableId == null
1853
1852
  })),
1854
- labelTextStyle: image.TextStyle({ label: "Label text style" }),
1855
- labelTextColor: image.ResponsiveColor((props, device) => {
1853
+ labelTextStyle: slot.TextStyle({ label: "Label text style" }),
1854
+ labelTextColor: slot.ResponsiveColor((props, device) => {
1856
1855
  const hidden = props.tableId == null;
1857
1856
  const responsiveContrast = props.contrast;
1858
1857
  const contrast = findDeviceOverride(responsiveContrast, device);
@@ -1862,23 +1861,23 @@ function registerComponent$6(runtime) {
1862
1861
  placeholder: (contrast == null ? void 0 : contrast.value) === Contrasts.DARK ? "rgba(255,255,255,0.95)" : "rgba(0,0,0,0.8)"
1863
1862
  };
1864
1863
  }),
1865
- submitTextStyle: image.TextStyle({ label: "Button text style" }),
1866
- brandColor: image.ResponsiveColor((props) => ({
1864
+ submitTextStyle: slot.TextStyle({ label: "Button text style" }),
1865
+ brandColor: slot.ResponsiveColor((props) => ({
1867
1866
  label: "Button color",
1868
1867
  placeholder: "black",
1869
1868
  hidden: props.tableId == null
1870
1869
  })),
1871
- submitTextColor: image.ResponsiveColor((props) => ({
1870
+ submitTextColor: slot.ResponsiveColor((props) => ({
1872
1871
  label: "Button text color",
1873
1872
  placeholder: "white",
1874
1873
  hidden: props.tableId == null
1875
1874
  })),
1876
- submitLabel: image.TextInput((props) => ({
1875
+ submitLabel: slot.TextInput((props) => ({
1877
1876
  label: "Button label",
1878
1877
  placeholder: "Submit",
1879
1878
  hidden: props.tableId == null
1880
1879
  })),
1881
- submitVariant: image.ResponsiveSelect((props) => ({
1880
+ submitVariant: slot.ResponsiveSelect((props) => ({
1882
1881
  label: "Button style",
1883
1882
  options: [
1884
1883
  { value: "flat", label: "Flat" },
@@ -1892,11 +1891,11 @@ function registerComponent$6(runtime) {
1892
1891
  defaultValue: "flat",
1893
1892
  hidden: props.tableId == null
1894
1893
  })),
1895
- submitWidth: image.ResponsiveLength((props) => ({
1894
+ submitWidth: slot.ResponsiveLength((props) => ({
1896
1895
  label: "Button width",
1897
1896
  hidden: props.tableId == null
1898
1897
  })),
1899
- submitAlignment: image.ResponsiveIconRadioGroup((props) => ({
1898
+ submitAlignment: slot.ResponsiveIconRadioGroup((props) => ({
1900
1899
  label: "Button alignment",
1901
1900
  options: [
1902
1901
  { label: "Left", value: Alignments.LEFT, icon: "AlignLeft16" },
@@ -1906,32 +1905,32 @@ function registerComponent$6(runtime) {
1906
1905
  defaultValue: Alignments.CENTER,
1907
1906
  hidden: props.tableId == null
1908
1907
  })),
1909
- width: image.Width({
1908
+ width: slot.Width({
1910
1909
  preset: [{ deviceId: "desktop", value: { value: 550, unit: "px" } }],
1911
1910
  defaultValue: { value: 100, unit: "%" }
1912
1911
  }),
1913
- margin: image.Margin()
1912
+ margin: slot.Margin()
1914
1913
  }
1915
1914
  });
1916
1915
  }
1917
1916
  function registerComponent$5(runtime) {
1918
1917
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic__default["default"](() => patch(Promise.resolve().then(function() {
1919
- return require("./Image.cjs2.js");
1918
+ return require("./Image.cjs.js");
1920
1919
  })))), {
1921
1920
  type: MakeswiftComponentType.Image,
1922
1921
  label: "Image",
1923
1922
  props: {
1924
- id: image.ElementID(),
1925
- file: image.Image(),
1926
- altText: image.TextInput({ label: "Alt text" }),
1927
- link: image.Link({ label: "On click" }),
1928
- width: image.Width(),
1929
- margin: image.Margin(),
1930
- padding: image.Padding(),
1931
- border: image.Border(),
1932
- borderRadius: image.BorderRadius(),
1933
- boxShadow: image.Shadows(),
1934
- opacity: image.ResponsiveOpacity()
1923
+ id: slot.ElementID(),
1924
+ file: slot.Image(),
1925
+ altText: slot.TextInput({ label: "Alt text" }),
1926
+ link: slot.Link({ label: "On click" }),
1927
+ width: slot.Width(),
1928
+ margin: slot.Margin(),
1929
+ padding: slot.Padding(),
1930
+ border: slot.Border(),
1931
+ borderRadius: slot.BorderRadius(),
1932
+ boxShadow: slot.Shadows(),
1933
+ opacity: slot.ResponsiveOpacity()
1935
1934
  }
1936
1935
  });
1937
1936
  }
@@ -1943,21 +1942,21 @@ function registerComponent$4(runtime) {
1943
1942
  label: "Navigation",
1944
1943
  icon: "Navigation40",
1945
1944
  props: {
1946
- id: image.ElementID(),
1947
- links: image.NavigationLinks(),
1948
- linkTextStyle: image.TextStyle((props) => {
1945
+ id: slot.ElementID(),
1946
+ links: slot.NavigationLinks(),
1947
+ linkTextStyle: slot.TextStyle((props) => {
1949
1948
  const links = props.links;
1950
1949
  return {
1951
1950
  label: "Link text style",
1952
1951
  hidden: links == null || links.length === 0
1953
1952
  };
1954
1953
  }),
1955
- showLogo: image.Checkbox({ preset: true, label: "Show logo" }),
1956
- logoFile: image.Image((props) => ({
1954
+ showLogo: slot.Checkbox({ preset: true, label: "Show logo" }),
1955
+ logoFile: slot.Image((props) => ({
1957
1956
  label: "Logo",
1958
1957
  hidden: props.showLogo === false
1959
1958
  })),
1960
- logoWidth: image.ResponsiveLength((props) => ({
1959
+ logoWidth: slot.ResponsiveLength((props) => ({
1961
1960
  preset: [{ deviceId: "desktop", value: { value: 100, unit: "px" } }],
1962
1961
  label: "Logo width",
1963
1962
  min: 0,
@@ -1965,15 +1964,15 @@ function registerComponent$4(runtime) {
1965
1964
  options: [{ value: "px", label: "Pixels", icon: "Px16" }],
1966
1965
  hidden: props.showLogo === false
1967
1966
  })),
1968
- logoAltText: image.TextInput((props) => ({
1967
+ logoAltText: slot.TextInput((props) => ({
1969
1968
  label: "Logo alt text",
1970
1969
  hidden: props.showLogo === false
1971
1970
  })),
1972
- logoLink: image.Link((props) => ({
1971
+ logoLink: slot.Link((props) => ({
1973
1972
  label: "Logo on click",
1974
1973
  hidden: props.showLogo === false
1975
1974
  })),
1976
- alignment: image.ResponsiveIconRadioGroup({
1975
+ alignment: slot.ResponsiveIconRadioGroup({
1977
1976
  label: "Alignment",
1978
1977
  options: [
1979
1978
  { label: "Left", value: "flex-start", icon: "AlignLeft16" },
@@ -1982,7 +1981,7 @@ function registerComponent$4(runtime) {
1982
1981
  ],
1983
1982
  defaultValue: "flex-end"
1984
1983
  }),
1985
- gutter: image.GapX({
1984
+ gutter: slot.GapX({
1986
1985
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
1987
1986
  label: "Link gap",
1988
1987
  min: 0,
@@ -1990,14 +1989,14 @@ function registerComponent$4(runtime) {
1990
1989
  step: 1,
1991
1990
  defaultValue: { value: 0, unit: "px" }
1992
1991
  }),
1993
- mobileMenuAnimation: image.ResponsiveSelect({
1992
+ mobileMenuAnimation: slot.ResponsiveSelect({
1994
1993
  label: "Mobile menu",
1995
1994
  options: [
1996
1995
  { value: "coverRight", label: "Cover from right" },
1997
1996
  { value: "coverLeft", label: "Cover from left" }
1998
1997
  ]
1999
1998
  }),
2000
- mobileMenuOpenIconColor: image.ResponsiveColor((props, device) => {
1999
+ mobileMenuOpenIconColor: slot.ResponsiveColor((props, device) => {
2001
2000
  const mobileMenuAnimation = props.mobileMenuAnimation;
2002
2001
  const hidden = !findDeviceOverride(mobileMenuAnimation, device);
2003
2002
  return {
@@ -2006,7 +2005,7 @@ function registerComponent$4(runtime) {
2006
2005
  hidden
2007
2006
  };
2008
2007
  }),
2009
- mobileMenuCloseIconColor: image.ResponsiveColor((props, device) => {
2008
+ mobileMenuCloseIconColor: slot.ResponsiveColor((props, device) => {
2010
2009
  const mobileMenuAnimation = props.mobileMenuAnimation;
2011
2010
  const hidden = !findDeviceOverride(mobileMenuAnimation, device);
2012
2011
  return {
@@ -2015,7 +2014,7 @@ function registerComponent$4(runtime) {
2015
2014
  hidden
2016
2015
  };
2017
2016
  }),
2018
- mobileMenuBackgroundColor: image.ResponsiveColor((props, device) => {
2017
+ mobileMenuBackgroundColor: slot.ResponsiveColor((props, device) => {
2019
2018
  const mobileMenuAnimation = props.mobileMenuAnimation;
2020
2019
  const hidden = !findDeviceOverride(mobileMenuAnimation, device);
2021
2020
  return {
@@ -2024,8 +2023,8 @@ function registerComponent$4(runtime) {
2024
2023
  hidden
2025
2024
  };
2026
2025
  }),
2027
- width: image.Width({ defaultValue: { value: 100, unit: "%" } }),
2028
- margin: image.Margin()
2026
+ width: slot.Width({ defaultValue: { value: 100, unit: "%" } }),
2027
+ margin: slot.Margin()
2029
2028
  }
2030
2029
  });
2031
2030
  }
@@ -2037,10 +2036,10 @@ function registerComponent$3(runtime) {
2037
2036
  label: "Page",
2038
2037
  hidden: true,
2039
2038
  props: {
2040
- children: image.Grid(),
2041
- backgrounds: image.Backgrounds(),
2042
- rowGap: image.GapY(),
2043
- columnGap: image.GapX()
2039
+ children: slot.Grid(),
2040
+ backgrounds: slot.Backgrounds(),
2041
+ rowGap: slot.GapY(),
2042
+ columnGap: slot.GapX()
2044
2043
  }
2045
2044
  });
2046
2045
  }
@@ -2052,8 +2051,8 @@ function registerComponent$2(runtime) {
2052
2051
  label: "Social Links",
2053
2052
  icon: "SocialLinks40",
2054
2053
  props: {
2055
- id: image.ElementID(),
2056
- links: image.SocialLinks({
2054
+ id: slot.ElementID(),
2055
+ links: slot.SocialLinks({
2057
2056
  preset: {
2058
2057
  links: [
2059
2058
  {
@@ -2072,7 +2071,7 @@ function registerComponent$2(runtime) {
2072
2071
  openInNewTab: false
2073
2072
  }
2074
2073
  }),
2075
- shape: image.ResponsiveIconRadioGroup((props) => {
2074
+ shape: slot.ResponsiveIconRadioGroup((props) => {
2076
2075
  const links = props.links;
2077
2076
  return {
2078
2077
  label: "Shape",
@@ -2086,7 +2085,7 @@ function registerComponent$2(runtime) {
2086
2085
  hidden: links == null || links.links.length === 0
2087
2086
  };
2088
2087
  }),
2089
- size: image.ResponsiveIconRadioGroup((props) => {
2088
+ size: slot.ResponsiveIconRadioGroup((props) => {
2090
2089
  const links = props.links;
2091
2090
  return {
2092
2091
  label: "Size",
@@ -2099,7 +2098,7 @@ function registerComponent$2(runtime) {
2099
2098
  hidden: links == null || links.links.length === 0
2100
2099
  };
2101
2100
  }),
2102
- hoverStyle: image.ResponsiveSelect((props) => {
2101
+ hoverStyle: slot.ResponsiveSelect((props) => {
2103
2102
  const links = props.links;
2104
2103
  const hidden = links == null || links.links.length === 0;
2105
2104
  return {
@@ -2115,7 +2114,7 @@ function registerComponent$2(runtime) {
2115
2114
  hidden
2116
2115
  };
2117
2116
  }),
2118
- fill: image.ResponsiveColor((props) => {
2117
+ fill: slot.ResponsiveColor((props) => {
2119
2118
  const links = props.links;
2120
2119
  const hidden = links == null || links.links.length === 0;
2121
2120
  return {
@@ -2123,7 +2122,7 @@ function registerComponent$2(runtime) {
2123
2122
  hidden
2124
2123
  };
2125
2124
  }),
2126
- backgroundColor: image.ResponsiveColor((props) => {
2125
+ backgroundColor: slot.ResponsiveColor((props) => {
2127
2126
  const links = props.links;
2128
2127
  const hidden = links == null || links.links.length === 0;
2129
2128
  return {
@@ -2131,7 +2130,7 @@ function registerComponent$2(runtime) {
2131
2130
  hidden
2132
2131
  };
2133
2132
  }),
2134
- alignment: image.ResponsiveIconRadioGroup({
2133
+ alignment: slot.ResponsiveIconRadioGroup({
2135
2134
  label: "Alignment",
2136
2135
  options: [
2137
2136
  { label: "flex-start", value: "flex-start", icon: "AlignLeft16" },
@@ -2140,7 +2139,7 @@ function registerComponent$2(runtime) {
2140
2139
  ],
2141
2140
  defaultValue: "center"
2142
2141
  }),
2143
- gutter: image.GapX({
2142
+ gutter: slot.GapX({
2144
2143
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
2145
2144
  label: "Link gap",
2146
2145
  min: 0,
@@ -2148,8 +2147,8 @@ function registerComponent$2(runtime) {
2148
2147
  step: 1,
2149
2148
  defaultValue: { value: 0, unit: "px" }
2150
2149
  }),
2151
- width: image.Width({ defaultValue: { value: 100, unit: "%" } }),
2152
- margin: image.Margin({
2150
+ width: slot.Width({ defaultValue: { value: 100, unit: "%" } }),
2151
+ margin: slot.Margin({
2153
2152
  preset: [
2154
2153
  {
2155
2154
  deviceId: "desktop",
@@ -2172,8 +2171,8 @@ function registerComponent$1(runtime) {
2172
2171
  type: MakeswiftComponentType.Text,
2173
2172
  label: "Text",
2174
2173
  props: {
2175
- id: image.ElementID(),
2176
- text: image.RichText(() => ({
2174
+ id: slot.ElementID(),
2175
+ text: slot.RichText(() => ({
2177
2176
  preset: {
2178
2177
  document: {
2179
2178
  nodes: [
@@ -2216,11 +2215,11 @@ function registerComponent$1(runtime) {
2216
2215
  }
2217
2216
  }
2218
2217
  })),
2219
- width: image.Width({
2218
+ width: slot.Width({
2220
2219
  preset: [{ deviceId: "desktop", value: { value: 700, unit: "px" } }],
2221
2220
  defaultValue: { value: 100, unit: "%" }
2222
2221
  }),
2223
- margin: image.Margin({
2222
+ margin: slot.Margin({
2224
2223
  preset: [
2225
2224
  {
2226
2225
  deviceId: "desktop",
@@ -2244,11 +2243,11 @@ function registerComponent(runtime) {
2244
2243
  label: "Video",
2245
2244
  icon: "Video40",
2246
2245
  props: {
2247
- id: image.ElementID(),
2248
- video: image.Video({ preset: { controls: true } }),
2249
- width: image.Width({ defaultValue: { value: 560, unit: "px" } }),
2250
- margin: image.Margin(),
2251
- borderRadius: image.BorderRadius()
2246
+ id: slot.ElementID(),
2247
+ video: slot.Video({ preset: { controls: true } }),
2248
+ width: slot.Width({ defaultValue: { value: 560, unit: "px" } }),
2249
+ margin: slot.Margin(),
2250
+ borderRadius: slot.BorderRadius()
2252
2251
  }
2253
2252
  });
2254
2253
  }
@@ -2338,11 +2337,11 @@ function isNonNullable(value) {
2338
2337
  return value != null;
2339
2338
  }
2340
2339
  function mapSideColor(swatches, _c) {
2341
- var _d = _c, { color: color2 } = _d, restOfSide = __objRest(_d, ["color"]);
2340
+ var _d = _c, { color } = _d, restOfSide = __objRest(_d, ["color"]);
2342
2341
  return __spreadProps(__spreadValues({}, restOfSide), {
2343
- color: color2 && {
2344
- alpha: color2.alpha,
2345
- swatch: swatches.find((s) => s && s.id === color2.swatchId)
2342
+ color: color && {
2343
+ alpha: color.alpha,
2344
+ swatch: swatches.find((s) => s && s.id === color.swatchId)
2346
2345
  }
2347
2346
  });
2348
2347
  }
@@ -2372,14 +2371,14 @@ function useBorder(value) {
2372
2371
  });
2373
2372
  });
2374
2373
  }
2375
- function useResponsiveColor(color2) {
2376
- const swatchIds = color2 == null ? [] : [...Array.from(new Set(color2.map(({ value: v }) => v && v.swatchId).filter(isNonNullable)))];
2374
+ function useResponsiveColor(color) {
2375
+ const swatchIds = color == null ? [] : [...Array.from(new Set(color.map(({ value: v }) => v && v.swatchId).filter(isNonNullable)))];
2377
2376
  const skip = swatchIds.length === 0;
2378
2377
  const { error, data = {} } = useQuery(SWATCHES_BY_ID, { skip, variables: { ids: swatchIds } });
2379
- if (color2 == null || error != null)
2378
+ if (color == null || error != null)
2380
2379
  return null;
2381
2380
  const { swatches = [] } = data;
2382
- return color2.map((_a) => {
2381
+ return color.map((_a) => {
2383
2382
  var _b = _a, { value: v } = _b, rest = __objRest(_b, ["value"]);
2384
2383
  const { swatchId, alpha } = v;
2385
2384
  const swatch = swatches.find((s) => s && s.id === swatchId);
@@ -2423,8 +2422,8 @@ function responsiveWidth(widthData, defaultValue = "100%") {
2423
2422
  width: typeof width === "object" ? `${width.value}${width.unit}` : width
2424
2423
  })));
2425
2424
  }
2426
- function colorToString(color2) {
2427
- return color2 && color2.swatch ? `hsla(${color2.swatch.hue},${color2.swatch.saturation}%,${color2.swatch.lightness}%,${color2.alpha})` : "";
2425
+ function colorToString(color) {
2426
+ return color && color.swatch ? `hsla(${color.swatch.hue},${color.swatch.saturation}%,${color.swatch.lightness}%,${color.alpha})` : "";
2428
2427
  }
2429
2428
  function murmur2(str) {
2430
2429
  var h = 0;
@@ -2699,7 +2698,7 @@ function useStyle(style) {
2699
2698
  }
2700
2699
  function useStyleControlCssObject(style, controlDefinition) {
2701
2700
  const { properties } = controlDefinition.config;
2702
- return __spreadValues(__spreadValues({}, properties.includes(image.StyleControlProperty.Width) && {
2701
+ return __spreadValues(__spreadValues({}, properties.includes(slot.StyleControlProperty.Width) && {
2703
2702
  maxWidth: "100%"
2704
2703
  }), responsiveStyle([
2705
2704
  style == null ? void 0 : style.width,
@@ -2710,29 +2709,29 @@ function useStyleControlCssObject(style, controlDefinition) {
2710
2709
  style == null ? void 0 : style.textStyle
2711
2710
  ], ([width, margin, padding, border, borderRadius, textStyle]) => {
2712
2711
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
2713
- return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, properties.includes(image.StyleControlProperty.Width) && {
2712
+ return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, properties.includes(slot.StyleControlProperty.Width) && {
2714
2713
  width: (_a = widthToString(width)) != null ? _a : "100%"
2715
- }), properties.includes(image.StyleControlProperty.Margin) && {
2714
+ }), properties.includes(slot.StyleControlProperty.Margin) && {
2716
2715
  marginTop: (_b = marginToString(margin == null ? void 0 : margin.marginTop)) != null ? _b : 0,
2717
2716
  marginRight: (_c = marginToString(margin == null ? void 0 : margin.marginRight)) != null ? _c : "auto",
2718
2717
  marginBottom: (_d = marginToString(margin == null ? void 0 : margin.marginBottom)) != null ? _d : 0,
2719
2718
  marginLeft: (_e2 = marginToString(margin == null ? void 0 : margin.marginLeft)) != null ? _e2 : "auto"
2720
- }), properties.includes(image.StyleControlProperty.Padding) && {
2719
+ }), properties.includes(slot.StyleControlProperty.Padding) && {
2721
2720
  paddingTop: (_f = paddingToString(padding == null ? void 0 : padding.paddingTop)) != null ? _f : 0,
2722
2721
  paddingRight: (_g = paddingToString(padding == null ? void 0 : padding.paddingRight)) != null ? _g : 0,
2723
2722
  paddingBottom: (_h = paddingToString(padding == null ? void 0 : padding.paddingBottom)) != null ? _h : 0,
2724
2723
  paddingLeft: (_i = paddingToString(padding == null ? void 0 : padding.paddingLeft)) != null ? _i : 0
2725
- }), properties.includes(image.StyleControlProperty.Border) && {
2724
+ }), properties.includes(slot.StyleControlProperty.Border) && {
2726
2725
  borderTop: (_j = borderSideToString(border == null ? void 0 : border.borderTop)) != null ? _j : "0 solid black",
2727
2726
  borderRight: (_k = borderSideToString(border == null ? void 0 : border.borderRight)) != null ? _k : "0 solid black",
2728
2727
  borderBottom: (_l = borderSideToString(border == null ? void 0 : border.borderBottom)) != null ? _l : "0 solid black",
2729
2728
  borderLeft: (_m = borderSideToString(border == null ? void 0 : border.borderLeft)) != null ? _m : "0 solid black"
2730
- }), properties.includes(image.StyleControlProperty.BorderRadius) && {
2729
+ }), properties.includes(slot.StyleControlProperty.BorderRadius) && {
2731
2730
  borderTopLeftRadius: (_n = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderTopLeftRadius)) != null ? _n : 0,
2732
2731
  borderTopRightRadius: (_o = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderTopRightRadius)) != null ? _o : 0,
2733
2732
  borderBottomRightRadius: (_p = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderBottomRightRadius)) != null ? _p : 0,
2734
2733
  borderBottomLeftRadius: (_q = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderBottomLeftRadius)) != null ? _q : 0
2735
- }), properties.includes(image.StyleControlProperty.TextStyle) && __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, (textStyle == null ? void 0 : textStyle.fontFamily) && { fontFamily: textStyle.fontFamily }), (textStyle == null ? void 0 : textStyle.letterSpacing) && { letterSpacing: textStyle.letterSpacing }), (textStyle == null ? void 0 : textStyle.fontSize) && { fontSize: fontSizeToString(textStyle.fontSize) }), (textStyle == null ? void 0 : textStyle.fontWeight) && { fontWeight: textStyle.fontWeight }), {
2734
+ }), properties.includes(slot.StyleControlProperty.TextStyle) && __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, (textStyle == null ? void 0 : textStyle.fontFamily) && { fontFamily: textStyle.fontFamily }), (textStyle == null ? void 0 : textStyle.letterSpacing) && { letterSpacing: textStyle.letterSpacing }), (textStyle == null ? void 0 : textStyle.fontSize) && { fontSize: fontSizeToString(textStyle.fontSize) }), (textStyle == null ? void 0 : textStyle.fontWeight) && { fontWeight: textStyle.fontWeight }), {
2736
2735
  textTransform: (_r = textStyle == null ? void 0 : textStyle.textTransform) != null ? _r : [],
2737
2736
  fontStyle: (_s = textStyle == null ? void 0 : textStyle.fontStyle) != null ? _s : []
2738
2737
  }));
@@ -2757,8 +2756,8 @@ function useStyleControlCssObject(style, controlDefinition) {
2757
2756
  function borderSideToString(borderSide) {
2758
2757
  if (borderSide == null)
2759
2758
  return null;
2760
- const { width, color: color2, style: style2 } = borderSide;
2761
- return `${width != null ? width : 0}px ${style2} ${color2 != null ? colorToString(color2) : "black"}`;
2759
+ const { width, color, style: style2 } = borderSide;
2760
+ return `${width != null ? width : 0}px ${style2} ${color != null ? colorToString(color) : "black"}`;
2762
2761
  }
2763
2762
  function borderRadiusToString(borderRadius) {
2764
2763
  if (borderRadius == null)
@@ -2809,9 +2808,9 @@ function useComboboxControlValue(data) {
2809
2808
  }
2810
2809
  function useImageControlValue(data, definition) {
2811
2810
  var _a;
2812
- const format = (_a = definition.config.format) != null ? _a : image.ImageControlValueFormat.URL;
2811
+ const format = (_a = definition.config.format) != null ? _a : slot.ImageControlValueFormat.URL;
2813
2812
  const file = useFile(data);
2814
- if (format === image.ImageControlValueFormat.URL) {
2813
+ if (format === slot.ImageControlValueFormat.URL) {
2815
2814
  return file == null ? void 0 : file.publicUrl;
2816
2815
  }
2817
2816
  if (file == null || file.dimensions == null)
@@ -2958,37 +2957,37 @@ function ControlValue({
2958
2957
  parameters: [data, definition],
2959
2958
  children: (value) => children(value)
2960
2959
  }, definition.type);
2961
- case color.ColorControlType:
2960
+ case slot.ColorControlType:
2962
2961
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2963
2962
  hook: useColorValue,
2964
2963
  parameters: [data, definition],
2965
2964
  children: (value) => children(value)
2966
2965
  }, definition.type);
2967
- case image.ImageControlType:
2966
+ case slot.ImageControlType:
2968
2967
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2969
2968
  hook: useImageControlValue,
2970
2969
  parameters: [data, definition],
2971
2970
  children: (value) => children(value)
2972
2971
  }, definition.type);
2973
- case textInput.LinkControlType:
2972
+ case control.LinkControlType:
2974
2973
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2975
2974
  hook: useLinkControlValue,
2976
2975
  parameters: [data, definition],
2977
2976
  children: (value) => children(value)
2978
2977
  }, definition.type);
2979
- case shape.ComboboxControlType:
2978
+ case combobox.ComboboxControlType:
2980
2979
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2981
2980
  hook: useComboboxControlValue,
2982
2981
  parameters: [data],
2983
2982
  children: (value) => children(value)
2984
2983
  }, definition.type);
2985
- case shape.ShapeControlType:
2984
+ case control.ShapeControlType:
2986
2985
  return /* @__PURE__ */ jsxRuntime.jsx(ShapeControlValue, {
2987
2986
  definition,
2988
2987
  data,
2989
2988
  children: (value) => children(value)
2990
2989
  });
2991
- case shape.ListControlType:
2990
+ case control.ListControlType:
2992
2991
  return /* @__PURE__ */ jsxRuntime.jsx(ListControlValue, {
2993
2992
  definition,
2994
2993
  data,
@@ -3010,16 +3009,16 @@ const getIndexes = (spans, index) => {
3010
3009
  }
3011
3010
  return [rowIndex, remainder];
3012
3011
  };
3013
- function useSlot(data, control) {
3012
+ function useSlot(data, control2) {
3014
3013
  if (data == null || data.elements.length === 0) {
3015
3014
  return /* @__PURE__ */ jsxRuntime.jsx(Slot.Placeholder, {
3016
- control
3015
+ control: control2
3017
3016
  });
3018
3017
  }
3019
3018
  return /* @__PURE__ */ jsxRuntime.jsx(Slot, {
3020
- control,
3019
+ control: control2,
3021
3020
  children: data.elements.map((element, i) => /* @__PURE__ */ jsxRuntime.jsx(Slot.Item, {
3022
- control,
3021
+ control: control2,
3023
3022
  grid: data.columns,
3024
3023
  index: i,
3025
3024
  children: /* @__PURE__ */ jsxRuntime.jsx(Element, {
@@ -3031,7 +3030,7 @@ function useSlot(data, control) {
3031
3030
  function Slot(_f) {
3032
3031
  var _g = _f, {
3033
3032
  as,
3034
- control,
3033
+ control: control2,
3035
3034
  children,
3036
3035
  className
3037
3036
  } = _g, restOfProps = __objRest(_g, [
@@ -3048,13 +3047,13 @@ function Slot(_f) {
3048
3047
  width: "100%"
3049
3048
  });
3050
3049
  React.useEffect(() => {
3051
- if (element == null || control == null)
3050
+ if (element == null || control2 == null)
3052
3051
  return;
3053
3052
  return pollBoxModel({
3054
3053
  element,
3055
- onBoxModelChange: (boxModel) => control.changeContainerBoxModel(boxModel)
3054
+ onBoxModelChange: (boxModel) => control2.changeContainerBoxModel(boxModel)
3056
3055
  });
3057
- }, [element, control]);
3056
+ }, [element, control2]);
3058
3057
  return /* @__PURE__ */ jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, restOfProps), {
3059
3058
  ref: setElement,
3060
3059
  className: css.cx(baseClassName, className),
@@ -3066,7 +3065,7 @@ Slot.Item = SlotItem;
3066
3065
  function SlotItem(_h) {
3067
3066
  var _i = _h, {
3068
3067
  as,
3069
- control,
3068
+ control: control2,
3070
3069
  grid,
3071
3070
  index,
3072
3071
  children,
@@ -3098,13 +3097,13 @@ function SlotItem(_h) {
3098
3097
  };
3099
3098
  })));
3100
3099
  React.useEffect(() => {
3101
- if (element == null || control == null)
3100
+ if (element == null || control2 == null)
3102
3101
  return;
3103
3102
  return pollBoxModel({
3104
3103
  element,
3105
- onBoxModelChange: (boxModel) => control.changeItemBoxModel(index, boxModel)
3104
+ onBoxModelChange: (boxModel) => control2.changeItemBoxModel(index, boxModel)
3106
3105
  });
3107
- }, [element, control, index]);
3106
+ }, [element, control2, index]);
3108
3107
  return /* @__PURE__ */ jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, restOfProps), {
3109
3108
  ref: setElement,
3110
3109
  className: css.cx(baseClassName, className),
@@ -3112,17 +3111,17 @@ function SlotItem(_h) {
3112
3111
  }));
3113
3112
  }
3114
3113
  function SlotPlaceholder({
3115
- control
3114
+ control: control2
3116
3115
  }) {
3117
3116
  const [element, setElement] = React.useState(null);
3118
3117
  React.useEffect(() => {
3119
- if (element == null || control == null)
3118
+ if (element == null || control2 == null)
3120
3119
  return;
3121
3120
  return pollBoxModel({
3122
3121
  element,
3123
- onBoxModelChange: (boxModel) => control.changeContainerBoxModel(boxModel)
3122
+ onBoxModelChange: (boxModel) => control2.changeContainerBoxModel(boxModel)
3124
3123
  });
3125
- }, [element, control]);
3124
+ }, [element, control2]);
3126
3125
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
3127
3126
  ref: setElement,
3128
3127
  className: useStyle({
@@ -3178,7 +3177,7 @@ function useDeviceMode() {
3178
3177
  function useWidth(value, descriptor, props) {
3179
3178
  const deviceMode = useDeviceMode();
3180
3179
  const options = React.useMemo(() => typeof descriptor.options === "function" ? descriptor.options(props, deviceMode) : descriptor.options, [props, deviceMode]);
3181
- return React.useMemo(() => options.format === image.WidthControlValueFormats.ClassName ? css.css(responsiveWidth(value, options.defaultValue)) : value, [value, options.defaultValue, options.format]);
3180
+ return React.useMemo(() => options.format === slot.WidthControlValueFormats.ClassName ? css.css(responsiveWidth(value, options.defaultValue)) : value, [value, options.defaultValue, options.format]);
3182
3181
  }
3183
3182
  function PropsValue({
3184
3183
  element,
@@ -3202,12 +3201,12 @@ function PropsValue({
3202
3201
  case textInput.TextInputControlType:
3203
3202
  case textInput.TextAreaControlType:
3204
3203
  case textInput.SelectControlType:
3205
- case color.ColorControlType:
3206
- case image.ImageControlType:
3207
- case shape.ComboboxControlType:
3208
- case shape.ShapeControlType:
3209
- case shape.ListControlType:
3210
- case textInput.LinkControlType:
3204
+ case slot.ColorControlType:
3205
+ case slot.ImageControlType:
3206
+ case combobox.ComboboxControlType:
3207
+ case control.ShapeControlType:
3208
+ case control.ListControlType:
3209
+ case control.LinkControlType:
3211
3210
  return /* @__PURE__ */ jsxRuntime.jsx(ControlValue, {
3212
3211
  definition: descriptor,
3213
3212
  data: props[propName],
@@ -3215,7 +3214,7 @@ function PropsValue({
3215
3214
  [propName]: value
3216
3215
  }))
3217
3216
  });
3218
- case image.StyleControlType:
3217
+ case slot.StyleControlType:
3219
3218
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3220
3219
  hook: useFormattedStyle,
3221
3220
  parameters: [props[propName], descriptor],
@@ -3224,16 +3223,16 @@ function PropsValue({
3224
3223
  }))
3225
3224
  }, descriptor.type);
3226
3225
  case slot.SlotControlType: {
3227
- const control = (_a2 = propControllers == null ? void 0 : propControllers[propName]) != null ? _a2 : null;
3226
+ const control2 = (_a2 = propControllers == null ? void 0 : propControllers[propName]) != null ? _a2 : null;
3228
3227
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3229
3228
  hook: useSlot,
3230
- parameters: [props[propName], control],
3229
+ parameters: [props[propName], control2],
3231
3230
  children: (value) => renderFn(__spreadProps(__spreadValues({}, propsValue), {
3232
3231
  [propName]: value
3233
3232
  }))
3234
3233
  }, descriptor.type);
3235
3234
  }
3236
- case image.Types.Width:
3235
+ case slot.Types.Width:
3237
3236
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3238
3237
  hook: useWidth,
3239
3238
  parameters: [props[propName], descriptor, props],
@@ -3241,7 +3240,7 @@ function PropsValue({
3241
3240
  [propName]: value
3242
3241
  }))
3243
3242
  }, descriptor.type);
3244
- case image.Types.ResponsiveColor:
3243
+ case slot.Types.ResponsiveColor:
3245
3244
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3246
3245
  hook: useResponsiveColor,
3247
3246
  parameters: [props[propName]],