@makeswift/runtime 0.2.16 → 0.2.18

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 (158) 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 +222 -217
  78. package/dist/index.cjs.js.map +1 -1
  79. package/dist/index.es.js +17 -12
  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/next/preview-mode.d.ts.map +1 -1
  130. package/dist/types/src/prop-controllers/copy/backgrounds.d.ts +1 -54
  131. package/dist/types/src/prop-controllers/copy/backgrounds.d.ts.map +1 -1
  132. package/dist/types/src/prop-controllers/copy/grid.d.ts +1 -1
  133. package/dist/types/src/prop-controllers/copy/grid.d.ts.map +1 -1
  134. package/dist/types/src/prop-controllers/copy/image.d.ts +1 -1
  135. package/dist/types/src/prop-controllers/copy/image.d.ts.map +1 -1
  136. package/dist/types/src/prop-controllers/copy/link.d.ts +1 -1
  137. package/dist/types/src/prop-controllers/copy/link.d.ts.map +1 -1
  138. package/dist/types/src/prop-controllers/copy/navigation-links.d.ts +1 -1
  139. package/dist/types/src/prop-controllers/copy/navigation-links.d.ts.map +1 -1
  140. package/dist/types/src/prop-controllers/copy/responsive-color.d.ts +1 -1
  141. package/dist/types/src/prop-controllers/copy/responsive-color.d.ts.map +1 -1
  142. package/dist/types/src/prop-controllers/copy/shadows.d.ts +1 -1
  143. package/dist/types/src/prop-controllers/copy/shadows.d.ts.map +1 -1
  144. package/dist/types/src/state/react-page.d.ts.map +1 -1
  145. package/package.json +1 -1
  146. package/dist/Image.cjs2.js.map +0 -1
  147. package/dist/color.cjs.js +0 -8
  148. package/dist/color.cjs.js.map +0 -1
  149. package/dist/color.es.js +0 -6
  150. package/dist/color.es.js.map +0 -1
  151. package/dist/image.cjs.js +0 -282
  152. package/dist/image.cjs.js.map +0 -1
  153. package/dist/image.es.js +0 -240
  154. package/dist/image.es.js.map +0 -1
  155. package/dist/shape.cjs.js +0 -20
  156. package/dist/shape.cjs.js.map +0 -1
  157. package/dist/shape.es.js +0 -14
  158. 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;
@@ -927,11 +926,17 @@ if (window.parent !== window) {
927
926
  } else {
928
927
  const originalFetch = window.fetch
929
928
 
930
- window.fetch = function patchedFetch(input, init) {
931
- return originalFetch.call(this, input, {
932
- ...init,
933
- headers: { ...init?.headers, [headerName]: secret },
934
- })
929
+ window.fetch = function patchedFetch(resource, options) {
930
+ const request = new Request(resource, options)
931
+
932
+ if (new URL(request.url).origin !== window.location.origin) {
933
+ return originalFetch.call(this, resource, options)
934
+ }
935
+
936
+ return originalFetch.call(
937
+ this,
938
+ new Request(request, { headers: { [headerName]: secret } }),
939
+ )
935
940
  }
936
941
  }
937
942
  }
@@ -1002,7 +1007,7 @@ class Document$1 extends NextDocument__default["default"] {
1002
1007
  });
1003
1008
  }
1004
1009
  }
1005
- const version = "0.2.16";
1010
+ const version = "0.2.18";
1006
1011
  function isErrorWithMessage(error) {
1007
1012
  return typeof error === "object" && error !== null && "message" in error && typeof error.message === "string";
1008
1013
  }
@@ -1350,10 +1355,10 @@ function registerComponent$c(runtime) {
1350
1355
  type: MakeswiftComponentType.Box,
1351
1356
  label: "Box",
1352
1357
  props: {
1353
- id: image.ElementID(),
1354
- backgrounds: image.Backgrounds(),
1355
- width: image.Width(),
1356
- height: image.ResponsiveIconRadioGroup({
1358
+ id: slot.ElementID(),
1359
+ backgrounds: slot.Backgrounds(),
1360
+ width: slot.Width(),
1361
+ height: slot.ResponsiveIconRadioGroup({
1357
1362
  label: "Height",
1358
1363
  options: [
1359
1364
  { value: "auto", label: "Auto", icon: "HeightAuto16" },
@@ -1361,7 +1366,7 @@ function registerComponent$c(runtime) {
1361
1366
  ],
1362
1367
  defaultValue: "auto"
1363
1368
  }),
1364
- verticalAlign: image.ResponsiveIconRadioGroup({
1369
+ verticalAlign: slot.ResponsiveIconRadioGroup({
1365
1370
  label: "Align items",
1366
1371
  options: [
1367
1372
  { value: "flex-start", label: "Top", icon: "VerticalAlignStart16" },
@@ -1375,8 +1380,8 @@ function registerComponent$c(runtime) {
1375
1380
  ],
1376
1381
  defaultValue: "flex-start"
1377
1382
  }),
1378
- margin: image.Margin(),
1379
- padding: image.Padding({
1383
+ margin: slot.Margin(),
1384
+ padding: slot.Padding({
1380
1385
  preset: [
1381
1386
  {
1382
1387
  deviceId: "desktop",
@@ -1389,16 +1394,16 @@ function registerComponent$c(runtime) {
1389
1394
  }
1390
1395
  ]
1391
1396
  }),
1392
- border: image.Border(),
1393
- borderRadius: image.BorderRadius(),
1394
- boxShadow: image.Shadows(),
1395
- rowGap: image.GapY((props) => ({
1397
+ border: slot.Border(),
1398
+ borderRadius: slot.BorderRadius(),
1399
+ boxShadow: slot.Shadows(),
1400
+ rowGap: slot.GapY((props) => ({
1396
1401
  hidden: props.children == null
1397
1402
  })),
1398
- columnGap: image.GapX((props) => ({
1403
+ columnGap: slot.GapX((props) => ({
1399
1404
  hidden: props.children == null
1400
1405
  })),
1401
- boxAnimateType: image.ResponsiveSelect({
1406
+ boxAnimateType: slot.ResponsiveSelect({
1402
1407
  label: "Animate box in",
1403
1408
  labelOrientation: "vertical",
1404
1409
  options: [
@@ -1414,7 +1419,7 @@ function registerComponent$c(runtime) {
1414
1419
  ],
1415
1420
  defaultValue: "none"
1416
1421
  }),
1417
- boxAnimateDuration: image.ResponsiveNumber((props, device) => ({
1422
+ boxAnimateDuration: slot.ResponsiveNumber((props, device) => ({
1418
1423
  label: "Box duration",
1419
1424
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1420
1425
  min: 0.1,
@@ -1422,7 +1427,7 @@ function registerComponent$c(runtime) {
1422
1427
  suffix: "s",
1423
1428
  hidden: isHiddenBasedOnBoxAnimation(props, device)
1424
1429
  })),
1425
- boxAnimateDelay: image.ResponsiveNumber((props, device) => ({
1430
+ boxAnimateDelay: slot.ResponsiveNumber((props, device) => ({
1426
1431
  label: "Box delay",
1427
1432
  defaultValue: DEFAULT_BOX_ANIMATE_DELAY,
1428
1433
  min: 0,
@@ -1430,7 +1435,7 @@ function registerComponent$c(runtime) {
1430
1435
  suffix: "s",
1431
1436
  hidden: isHiddenBasedOnBoxAnimation(props, device)
1432
1437
  })),
1433
- itemAnimateType: image.ResponsiveSelect({
1438
+ itemAnimateType: slot.ResponsiveSelect({
1434
1439
  label: "Animate items in",
1435
1440
  labelOrientation: "vertical",
1436
1441
  options: [
@@ -1446,7 +1451,7 @@ function registerComponent$c(runtime) {
1446
1451
  ],
1447
1452
  defaultValue: "none"
1448
1453
  }),
1449
- itemAnimateDuration: image.ResponsiveNumber((props, device) => ({
1454
+ itemAnimateDuration: slot.ResponsiveNumber((props, device) => ({
1450
1455
  label: "Items duration",
1451
1456
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1452
1457
  min: 0.1,
@@ -1454,7 +1459,7 @@ function registerComponent$c(runtime) {
1454
1459
  suffix: "s",
1455
1460
  hidden: isHiddenBasedOnItemAnimation(props, device)
1456
1461
  })),
1457
- itemAnimateDelay: image.ResponsiveNumber((props, device) => ({
1462
+ itemAnimateDelay: slot.ResponsiveNumber((props, device) => ({
1458
1463
  label: "Items delay",
1459
1464
  defaultValue: DEFAULT_ITEM_ANIMATE_DELAY,
1460
1465
  min: 0,
@@ -1462,7 +1467,7 @@ function registerComponent$c(runtime) {
1462
1467
  suffix: "s",
1463
1468
  hidden: isHiddenBasedOnItemAnimation(props, device)
1464
1469
  })),
1465
- itemStaggerDuration: image.ResponsiveNumber((props, device) => ({
1470
+ itemStaggerDuration: slot.ResponsiveNumber((props, device) => ({
1466
1471
  label: "Stagger",
1467
1472
  min: 0,
1468
1473
  step: 0.05,
@@ -1470,11 +1475,11 @@ function registerComponent$c(runtime) {
1470
1475
  defaultValue: DEFAULT_ITEM_STAGGER_DURATION,
1471
1476
  hidden: isHiddenBasedOnItemAnimation(props, device)
1472
1477
  })),
1473
- hidePlaceholder: image.Checkbox((props) => ({
1478
+ hidePlaceholder: slot.Checkbox((props) => ({
1474
1479
  label: "Hide placeholder",
1475
1480
  hidden: props.children != null
1476
1481
  })),
1477
- children: image.Grid()
1482
+ children: slot.Grid()
1478
1483
  }
1479
1484
  });
1480
1485
  }
@@ -1485,9 +1490,9 @@ function registerComponent$b(runtime) {
1485
1490
  type: MakeswiftComponentType.Button,
1486
1491
  label: "Button",
1487
1492
  props: {
1488
- id: image.ElementID(),
1489
- children: image.TextInput({ placeholder: "Button text" }),
1490
- link: image.Link({
1493
+ id: slot.ElementID(),
1494
+ children: slot.TextInput({ placeholder: "Button text" }),
1495
+ link: slot.Link({
1491
1496
  defaultValue: {
1492
1497
  type: "OPEN_PAGE",
1493
1498
  payload: {
@@ -1496,7 +1501,7 @@ function registerComponent$b(runtime) {
1496
1501
  }
1497
1502
  }
1498
1503
  }),
1499
- variant: image.ResponsiveSelect({
1504
+ variant: slot.ResponsiveSelect({
1500
1505
  label: "Style",
1501
1506
  labelOrientation: "horizontal",
1502
1507
  options: [
@@ -1510,7 +1515,7 @@ function registerComponent$b(runtime) {
1510
1515
  ],
1511
1516
  defaultValue: "flat"
1512
1517
  }),
1513
- shape: image.ResponsiveIconRadioGroup({
1518
+ shape: slot.ResponsiveIconRadioGroup({
1514
1519
  label: "Shape",
1515
1520
  options: [
1516
1521
  { label: "Pill", value: "pill", icon: "ButtonPill16" },
@@ -1519,7 +1524,7 @@ function registerComponent$b(runtime) {
1519
1524
  ],
1520
1525
  defaultValue: "rounded"
1521
1526
  }),
1522
- size: image.ResponsiveIconRadioGroup({
1527
+ size: slot.ResponsiveIconRadioGroup({
1523
1528
  label: "Size",
1524
1529
  options: [
1525
1530
  { label: "Small", value: "small", icon: "SizeSmall16" },
@@ -1528,19 +1533,19 @@ function registerComponent$b(runtime) {
1528
1533
  ],
1529
1534
  defaultValue: "medium"
1530
1535
  }),
1531
- color: image.ResponsiveColor((props, device) => {
1536
+ color: slot.ResponsiveColor((props, device) => {
1532
1537
  var _a;
1533
1538
  const variant = props.variant;
1534
1539
  const hidden = ((_a = findDeviceOverride(variant, device)) == null ? void 0 : _a.value) === "clear";
1535
1540
  return { placeholder: "black", hidden };
1536
1541
  }),
1537
- textColor: image.ResponsiveColor({
1542
+ textColor: slot.ResponsiveColor({
1538
1543
  label: "Text color",
1539
1544
  placeholder: "white"
1540
1545
  }),
1541
- textStyle: image.TextStyle(),
1542
- width: image.Width(),
1543
- margin: image.Margin()
1546
+ textStyle: slot.TextStyle(),
1547
+ width: slot.Width(),
1548
+ margin: slot.Margin()
1544
1549
  }
1545
1550
  });
1546
1551
  }
@@ -1552,17 +1557,17 @@ function registerComponent$a(runtime) {
1552
1557
  label: "Carousel",
1553
1558
  icon: "Carousel40",
1554
1559
  props: {
1555
- id: image.ElementID(),
1556
- images: image.Images({
1560
+ id: slot.ElementID(),
1561
+ images: slot.Images({
1557
1562
  preset: [
1558
1563
  { key: uuid__default["default"](), props: {} },
1559
1564
  { key: uuid__default["default"](), props: {} },
1560
1565
  { key: uuid__default["default"](), props: {} }
1561
1566
  ]
1562
1567
  }),
1563
- width: image.Width({ defaultValue: { value: 400, unit: "px" } }),
1564
- margin: image.Margin(),
1565
- pageSize: image.ResponsiveNumber((props) => {
1568
+ width: slot.Width({ defaultValue: { value: 400, unit: "px" } }),
1569
+ margin: slot.Margin(),
1570
+ pageSize: slot.ResponsiveNumber((props) => {
1566
1571
  var _a;
1567
1572
  const images = props.images;
1568
1573
  const imagesLength = (_a = images == null ? void 0 : images.length) != null ? _a : 0;
@@ -1574,7 +1579,7 @@ function registerComponent$a(runtime) {
1574
1579
  step: 1
1575
1580
  };
1576
1581
  }),
1577
- step: image.ResponsiveNumber((props, device) => {
1582
+ step: slot.ResponsiveNumber((props, device) => {
1578
1583
  var _a, _b;
1579
1584
  const pageSize = props.pageSize;
1580
1585
  const pageSizeValue = (_b = (_a = findDeviceOverride(pageSize, device)) == null ? void 0 : _a.value) != null ? _b : 1;
@@ -1586,7 +1591,7 @@ function registerComponent$a(runtime) {
1586
1591
  step: 1
1587
1592
  };
1588
1593
  }),
1589
- slideAlignment: image.ResponsiveIconRadioGroup({
1594
+ slideAlignment: slot.ResponsiveIconRadioGroup({
1590
1595
  label: "Alignment",
1591
1596
  options: [
1592
1597
  { label: "Top", value: "flex-start", icon: "VerticalAlignStart16" },
@@ -1595,13 +1600,13 @@ function registerComponent$a(runtime) {
1595
1600
  ],
1596
1601
  defaultValue: "center"
1597
1602
  }),
1598
- gap: image.GapX({
1603
+ gap: slot.GapX({
1599
1604
  label: "Gap",
1600
1605
  step: 5,
1601
1606
  defaultValue: { value: 0, unit: "px" }
1602
1607
  }),
1603
- autoplay: image.Checkbox({ label: "Autoplay" }),
1604
- delay: image.Number((props) => ({
1608
+ autoplay: slot.Checkbox({ label: "Autoplay" }),
1609
+ delay: slot.Number((props) => ({
1605
1610
  label: "Delay",
1606
1611
  preset: 5,
1607
1612
  min: 1,
@@ -1609,8 +1614,8 @@ function registerComponent$a(runtime) {
1609
1614
  suffix: "seconds",
1610
1615
  hidden: !props.autoplay
1611
1616
  })),
1612
- showArrows: image.Checkbox({ preset: true, label: "Show arrows" }),
1613
- arrowPosition: image.ResponsiveIconRadioGroup((props) => ({
1617
+ showArrows: slot.Checkbox({ preset: true, label: "Show arrows" }),
1618
+ arrowPosition: slot.ResponsiveIconRadioGroup((props) => ({
1614
1619
  label: "Arrow position",
1615
1620
  options: [
1616
1621
  { label: "Inside", value: "inside", icon: "ArrowInside16" },
@@ -1620,24 +1625,24 @@ function registerComponent$a(runtime) {
1620
1625
  defaultValue: "inside",
1621
1626
  hidden: props.showArrows === false
1622
1627
  })),
1623
- arrowColor: image.ResponsiveColor((props) => ({
1628
+ arrowColor: slot.ResponsiveColor((props) => ({
1624
1629
  label: "Arrow color",
1625
1630
  placeholder: "black",
1626
1631
  hidden: props.showArrows === false
1627
1632
  })),
1628
- arrowBackground: image.ResponsiveColor((props) => ({
1633
+ arrowBackground: slot.ResponsiveColor((props) => ({
1629
1634
  label: "Arrow background",
1630
1635
  placeholder: "white",
1631
1636
  hidden: props.showArrows === false
1632
1637
  })),
1633
- showDots: image.Checkbox({ preset: true, label: "Show dots" }),
1634
- dotColor: image.ResponsiveColor((props) => ({
1638
+ showDots: slot.Checkbox({ preset: true, label: "Show dots" }),
1639
+ dotColor: slot.ResponsiveColor((props) => ({
1635
1640
  label: "Dot color",
1636
1641
  placeholder: "black",
1637
1642
  hidden: props.showDots === false
1638
1643
  })),
1639
- slideBorder: image.Border(),
1640
- slideBorderRadius: image.BorderRadius()
1644
+ slideBorder: slot.Border(),
1645
+ slideBorderRadius: slot.BorderRadius()
1641
1646
  }
1642
1647
  });
1643
1648
  }
@@ -1649,11 +1654,11 @@ function registerComponent$9(runtime) {
1649
1654
  label: "Countdown",
1650
1655
  icon: "Countdown40",
1651
1656
  props: {
1652
- id: image.ElementID(),
1653
- date: image.Date(() => ({
1657
+ id: slot.ElementID(),
1658
+ date: slot.Date(() => ({
1654
1659
  preset: new Date(Date.now() + 1e3 * 60 * 60 * 24 * 2).toISOString()
1655
1660
  })),
1656
- variant: image.ResponsiveIconRadioGroup({
1661
+ variant: slot.ResponsiveIconRadioGroup({
1657
1662
  label: "Style",
1658
1663
  options: [
1659
1664
  { label: "Filled", value: "filled", icon: "CountdownSolid16" },
@@ -1672,7 +1677,7 @@ function registerComponent$9(runtime) {
1672
1677
  ],
1673
1678
  defaultValue: "filled"
1674
1679
  }),
1675
- shape: image.ResponsiveIconRadioGroup({
1680
+ shape: slot.ResponsiveIconRadioGroup({
1676
1681
  label: "Shape",
1677
1682
  options: [
1678
1683
  { label: "Pill", value: "pill", icon: "ButtonPill16" },
@@ -1681,7 +1686,7 @@ function registerComponent$9(runtime) {
1681
1686
  ],
1682
1687
  defaultValue: "rounded"
1683
1688
  }),
1684
- size: image.ResponsiveIconRadioGroup({
1689
+ size: slot.ResponsiveIconRadioGroup({
1685
1690
  label: "Size",
1686
1691
  options: [
1687
1692
  { label: "Small", value: "small", icon: "SizeSmall16" },
@@ -1690,7 +1695,7 @@ function registerComponent$9(runtime) {
1690
1695
  ],
1691
1696
  defaultValue: "medium"
1692
1697
  }),
1693
- gap: image.GapX({
1698
+ gap: slot.GapX({
1694
1699
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
1695
1700
  label: "Gap",
1696
1701
  step: 1,
@@ -1698,29 +1703,29 @@ function registerComponent$9(runtime) {
1698
1703
  max: 100,
1699
1704
  defaultValue: { value: 0, unit: "px" }
1700
1705
  }),
1701
- numberFont: image.Font({ label: "Number font" }),
1702
- numberColor: image.ResponsiveColor({
1706
+ numberFont: slot.Font({ label: "Number font" }),
1707
+ numberColor: slot.ResponsiveColor({
1703
1708
  label: "Number color",
1704
1709
  placeholder: "white"
1705
1710
  }),
1706
- blockColor: image.ResponsiveColor({
1711
+ blockColor: slot.ResponsiveColor({
1707
1712
  label: "Block color",
1708
1713
  placeholder: "black"
1709
1714
  }),
1710
- labelFont: image.Font({ label: "Label font" }),
1711
- labelColor: image.ResponsiveColor({
1715
+ labelFont: slot.Font({ label: "Label font" }),
1716
+ labelColor: slot.ResponsiveColor({
1712
1717
  label: "Label color",
1713
1718
  placeholder: "black"
1714
1719
  }),
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({
1720
+ width: slot.Width({ defaultValue: { value: 560, unit: "px" } }),
1721
+ margin: slot.Margin(),
1722
+ daysLabel: slot.TextInput({ label: "Days label", placeholder: "Days" }),
1723
+ hoursLabel: slot.TextInput({ label: "Hours label", placeholder: "Hours" }),
1724
+ minutesLabel: slot.TextInput({
1720
1725
  label: "Minutes label",
1721
1726
  placeholder: "Minutes"
1722
1727
  }),
1723
- secondsLabel: image.TextInput({
1728
+ secondsLabel: slot.TextInput({
1724
1729
  label: "Seconds label",
1725
1730
  placeholder: "Seconds"
1726
1731
  })
@@ -1735,8 +1740,8 @@ function registerComponent$8(runtime) {
1735
1740
  label: "Divider",
1736
1741
  icon: "Divider40",
1737
1742
  props: {
1738
- id: image.ElementID(),
1739
- variant: image.ResponsiveSelect({
1743
+ id: slot.ElementID(),
1744
+ variant: slot.ResponsiveSelect({
1740
1745
  label: "Style",
1741
1746
  labelOrientation: "horizontal",
1742
1747
  options: [
@@ -1747,14 +1752,14 @@ function registerComponent$8(runtime) {
1747
1752
  ],
1748
1753
  defaultValue: "solid"
1749
1754
  }),
1750
- thickness: image.ResponsiveLength({
1755
+ thickness: slot.ResponsiveLength({
1751
1756
  label: "Height",
1752
1757
  defaultValue: { value: 1, unit: "px" },
1753
1758
  options: [{ value: "px", label: "Pixels", icon: "Px16" }]
1754
1759
  }),
1755
- color: image.ResponsiveColor({ placeholder: "black" }),
1756
- width: image.Width({ defaultValue: { value: 100, unit: "%" } }),
1757
- margin: image.Margin()
1760
+ color: slot.ResponsiveColor({ placeholder: "black" }),
1761
+ width: slot.Width({ defaultValue: { value: 100, unit: "%" } }),
1762
+ margin: slot.Margin()
1758
1763
  }
1759
1764
  });
1760
1765
  }
@@ -1766,10 +1771,10 @@ function registerComponent$7(runtime) {
1766
1771
  label: "Embed",
1767
1772
  icon: "Code40",
1768
1773
  props: {
1769
- id: image.ElementID(),
1770
- html: image.TextArea({ label: "Code", rows: 20 }),
1771
- width: image.Width({}),
1772
- margin: image.Margin()
1774
+ id: slot.ElementID(),
1775
+ html: slot.TextArea({ label: "Code", rows: 20 }),
1776
+ width: slot.Width({}),
1777
+ margin: slot.Margin()
1773
1778
  }
1774
1779
  });
1775
1780
  }
@@ -1805,10 +1810,10 @@ function registerComponent$6(runtime) {
1805
1810
  label: "Form",
1806
1811
  icon: "Form40",
1807
1812
  props: {
1808
- id: image.ElementID(),
1809
- tableId: image.Table(),
1810
- fields: image.TableFormFields(),
1811
- submitLink: image.Link((props) => ({
1813
+ id: slot.ElementID(),
1814
+ tableId: slot.Table(),
1815
+ fields: slot.TableFormFields(),
1816
+ submitLink: slot.Link((props) => ({
1812
1817
  label: "Redirect to",
1813
1818
  options: [
1814
1819
  { value: "OPEN_PAGE", label: "Open page" },
@@ -1816,13 +1821,13 @@ function registerComponent$6(runtime) {
1816
1821
  ],
1817
1822
  hidden: props.tableId == null
1818
1823
  })),
1819
- gap: image.GapY((props) => ({
1824
+ gap: slot.GapY((props) => ({
1820
1825
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
1821
1826
  label: "Gap",
1822
1827
  defaultValue: { value: 0, unit: "px" },
1823
1828
  hidden: props.tableId == null
1824
1829
  })),
1825
- shape: image.ResponsiveIconRadioGroup((props) => ({
1830
+ shape: slot.ResponsiveIconRadioGroup((props) => ({
1826
1831
  label: "Shape",
1827
1832
  options: [
1828
1833
  { label: "Pill", value: Shapes.PILL, icon: "ButtonPill16" },
@@ -1832,7 +1837,7 @@ function registerComponent$6(runtime) {
1832
1837
  defaultValue: Shapes.ROUNDED,
1833
1838
  hidden: props.tableId == null
1834
1839
  })),
1835
- size: image.ResponsiveIconRadioGroup((props) => ({
1840
+ size: slot.ResponsiveIconRadioGroup((props) => ({
1836
1841
  label: "Size",
1837
1842
  options: [
1838
1843
  { label: "Small", value: Sizes.SMALL, icon: "SizeSmall16" },
@@ -1842,7 +1847,7 @@ function registerComponent$6(runtime) {
1842
1847
  defaultValue: Sizes.MEDIUM,
1843
1848
  hidden: (props == null ? void 0 : props.tableId) == null
1844
1849
  })),
1845
- contrast: image.ResponsiveIconRadioGroup((props) => ({
1850
+ contrast: slot.ResponsiveIconRadioGroup((props) => ({
1846
1851
  label: "Color",
1847
1852
  options: [
1848
1853
  { label: "Light mode", value: Contrasts.LIGHT, icon: "Sun16" },
@@ -1851,8 +1856,8 @@ function registerComponent$6(runtime) {
1851
1856
  defaultValue: Contrasts.LIGHT,
1852
1857
  hidden: props.tableId == null
1853
1858
  })),
1854
- labelTextStyle: image.TextStyle({ label: "Label text style" }),
1855
- labelTextColor: image.ResponsiveColor((props, device) => {
1859
+ labelTextStyle: slot.TextStyle({ label: "Label text style" }),
1860
+ labelTextColor: slot.ResponsiveColor((props, device) => {
1856
1861
  const hidden = props.tableId == null;
1857
1862
  const responsiveContrast = props.contrast;
1858
1863
  const contrast = findDeviceOverride(responsiveContrast, device);
@@ -1862,23 +1867,23 @@ function registerComponent$6(runtime) {
1862
1867
  placeholder: (contrast == null ? void 0 : contrast.value) === Contrasts.DARK ? "rgba(255,255,255,0.95)" : "rgba(0,0,0,0.8)"
1863
1868
  };
1864
1869
  }),
1865
- submitTextStyle: image.TextStyle({ label: "Button text style" }),
1866
- brandColor: image.ResponsiveColor((props) => ({
1870
+ submitTextStyle: slot.TextStyle({ label: "Button text style" }),
1871
+ brandColor: slot.ResponsiveColor((props) => ({
1867
1872
  label: "Button color",
1868
1873
  placeholder: "black",
1869
1874
  hidden: props.tableId == null
1870
1875
  })),
1871
- submitTextColor: image.ResponsiveColor((props) => ({
1876
+ submitTextColor: slot.ResponsiveColor((props) => ({
1872
1877
  label: "Button text color",
1873
1878
  placeholder: "white",
1874
1879
  hidden: props.tableId == null
1875
1880
  })),
1876
- submitLabel: image.TextInput((props) => ({
1881
+ submitLabel: slot.TextInput((props) => ({
1877
1882
  label: "Button label",
1878
1883
  placeholder: "Submit",
1879
1884
  hidden: props.tableId == null
1880
1885
  })),
1881
- submitVariant: image.ResponsiveSelect((props) => ({
1886
+ submitVariant: slot.ResponsiveSelect((props) => ({
1882
1887
  label: "Button style",
1883
1888
  options: [
1884
1889
  { value: "flat", label: "Flat" },
@@ -1892,11 +1897,11 @@ function registerComponent$6(runtime) {
1892
1897
  defaultValue: "flat",
1893
1898
  hidden: props.tableId == null
1894
1899
  })),
1895
- submitWidth: image.ResponsiveLength((props) => ({
1900
+ submitWidth: slot.ResponsiveLength((props) => ({
1896
1901
  label: "Button width",
1897
1902
  hidden: props.tableId == null
1898
1903
  })),
1899
- submitAlignment: image.ResponsiveIconRadioGroup((props) => ({
1904
+ submitAlignment: slot.ResponsiveIconRadioGroup((props) => ({
1900
1905
  label: "Button alignment",
1901
1906
  options: [
1902
1907
  { label: "Left", value: Alignments.LEFT, icon: "AlignLeft16" },
@@ -1906,32 +1911,32 @@ function registerComponent$6(runtime) {
1906
1911
  defaultValue: Alignments.CENTER,
1907
1912
  hidden: props.tableId == null
1908
1913
  })),
1909
- width: image.Width({
1914
+ width: slot.Width({
1910
1915
  preset: [{ deviceId: "desktop", value: { value: 550, unit: "px" } }],
1911
1916
  defaultValue: { value: 100, unit: "%" }
1912
1917
  }),
1913
- margin: image.Margin()
1918
+ margin: slot.Margin()
1914
1919
  }
1915
1920
  });
1916
1921
  }
1917
1922
  function registerComponent$5(runtime) {
1918
1923
  return runtime.registerComponent(forwardNextDynamicRef((patch) => dynamic__default["default"](() => patch(Promise.resolve().then(function() {
1919
- return require("./Image.cjs2.js");
1924
+ return require("./Image.cjs.js");
1920
1925
  })))), {
1921
1926
  type: MakeswiftComponentType.Image,
1922
1927
  label: "Image",
1923
1928
  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()
1929
+ id: slot.ElementID(),
1930
+ file: slot.Image(),
1931
+ altText: slot.TextInput({ label: "Alt text" }),
1932
+ link: slot.Link({ label: "On click" }),
1933
+ width: slot.Width(),
1934
+ margin: slot.Margin(),
1935
+ padding: slot.Padding(),
1936
+ border: slot.Border(),
1937
+ borderRadius: slot.BorderRadius(),
1938
+ boxShadow: slot.Shadows(),
1939
+ opacity: slot.ResponsiveOpacity()
1935
1940
  }
1936
1941
  });
1937
1942
  }
@@ -1943,21 +1948,21 @@ function registerComponent$4(runtime) {
1943
1948
  label: "Navigation",
1944
1949
  icon: "Navigation40",
1945
1950
  props: {
1946
- id: image.ElementID(),
1947
- links: image.NavigationLinks(),
1948
- linkTextStyle: image.TextStyle((props) => {
1951
+ id: slot.ElementID(),
1952
+ links: slot.NavigationLinks(),
1953
+ linkTextStyle: slot.TextStyle((props) => {
1949
1954
  const links = props.links;
1950
1955
  return {
1951
1956
  label: "Link text style",
1952
1957
  hidden: links == null || links.length === 0
1953
1958
  };
1954
1959
  }),
1955
- showLogo: image.Checkbox({ preset: true, label: "Show logo" }),
1956
- logoFile: image.Image((props) => ({
1960
+ showLogo: slot.Checkbox({ preset: true, label: "Show logo" }),
1961
+ logoFile: slot.Image((props) => ({
1957
1962
  label: "Logo",
1958
1963
  hidden: props.showLogo === false
1959
1964
  })),
1960
- logoWidth: image.ResponsiveLength((props) => ({
1965
+ logoWidth: slot.ResponsiveLength((props) => ({
1961
1966
  preset: [{ deviceId: "desktop", value: { value: 100, unit: "px" } }],
1962
1967
  label: "Logo width",
1963
1968
  min: 0,
@@ -1965,15 +1970,15 @@ function registerComponent$4(runtime) {
1965
1970
  options: [{ value: "px", label: "Pixels", icon: "Px16" }],
1966
1971
  hidden: props.showLogo === false
1967
1972
  })),
1968
- logoAltText: image.TextInput((props) => ({
1973
+ logoAltText: slot.TextInput((props) => ({
1969
1974
  label: "Logo alt text",
1970
1975
  hidden: props.showLogo === false
1971
1976
  })),
1972
- logoLink: image.Link((props) => ({
1977
+ logoLink: slot.Link((props) => ({
1973
1978
  label: "Logo on click",
1974
1979
  hidden: props.showLogo === false
1975
1980
  })),
1976
- alignment: image.ResponsiveIconRadioGroup({
1981
+ alignment: slot.ResponsiveIconRadioGroup({
1977
1982
  label: "Alignment",
1978
1983
  options: [
1979
1984
  { label: "Left", value: "flex-start", icon: "AlignLeft16" },
@@ -1982,7 +1987,7 @@ function registerComponent$4(runtime) {
1982
1987
  ],
1983
1988
  defaultValue: "flex-end"
1984
1989
  }),
1985
- gutter: image.GapX({
1990
+ gutter: slot.GapX({
1986
1991
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
1987
1992
  label: "Link gap",
1988
1993
  min: 0,
@@ -1990,14 +1995,14 @@ function registerComponent$4(runtime) {
1990
1995
  step: 1,
1991
1996
  defaultValue: { value: 0, unit: "px" }
1992
1997
  }),
1993
- mobileMenuAnimation: image.ResponsiveSelect({
1998
+ mobileMenuAnimation: slot.ResponsiveSelect({
1994
1999
  label: "Mobile menu",
1995
2000
  options: [
1996
2001
  { value: "coverRight", label: "Cover from right" },
1997
2002
  { value: "coverLeft", label: "Cover from left" }
1998
2003
  ]
1999
2004
  }),
2000
- mobileMenuOpenIconColor: image.ResponsiveColor((props, device) => {
2005
+ mobileMenuOpenIconColor: slot.ResponsiveColor((props, device) => {
2001
2006
  const mobileMenuAnimation = props.mobileMenuAnimation;
2002
2007
  const hidden = !findDeviceOverride(mobileMenuAnimation, device);
2003
2008
  return {
@@ -2006,7 +2011,7 @@ function registerComponent$4(runtime) {
2006
2011
  hidden
2007
2012
  };
2008
2013
  }),
2009
- mobileMenuCloseIconColor: image.ResponsiveColor((props, device) => {
2014
+ mobileMenuCloseIconColor: slot.ResponsiveColor((props, device) => {
2010
2015
  const mobileMenuAnimation = props.mobileMenuAnimation;
2011
2016
  const hidden = !findDeviceOverride(mobileMenuAnimation, device);
2012
2017
  return {
@@ -2015,7 +2020,7 @@ function registerComponent$4(runtime) {
2015
2020
  hidden
2016
2021
  };
2017
2022
  }),
2018
- mobileMenuBackgroundColor: image.ResponsiveColor((props, device) => {
2023
+ mobileMenuBackgroundColor: slot.ResponsiveColor((props, device) => {
2019
2024
  const mobileMenuAnimation = props.mobileMenuAnimation;
2020
2025
  const hidden = !findDeviceOverride(mobileMenuAnimation, device);
2021
2026
  return {
@@ -2024,8 +2029,8 @@ function registerComponent$4(runtime) {
2024
2029
  hidden
2025
2030
  };
2026
2031
  }),
2027
- width: image.Width({ defaultValue: { value: 100, unit: "%" } }),
2028
- margin: image.Margin()
2032
+ width: slot.Width({ defaultValue: { value: 100, unit: "%" } }),
2033
+ margin: slot.Margin()
2029
2034
  }
2030
2035
  });
2031
2036
  }
@@ -2037,10 +2042,10 @@ function registerComponent$3(runtime) {
2037
2042
  label: "Page",
2038
2043
  hidden: true,
2039
2044
  props: {
2040
- children: image.Grid(),
2041
- backgrounds: image.Backgrounds(),
2042
- rowGap: image.GapY(),
2043
- columnGap: image.GapX()
2045
+ children: slot.Grid(),
2046
+ backgrounds: slot.Backgrounds(),
2047
+ rowGap: slot.GapY(),
2048
+ columnGap: slot.GapX()
2044
2049
  }
2045
2050
  });
2046
2051
  }
@@ -2052,8 +2057,8 @@ function registerComponent$2(runtime) {
2052
2057
  label: "Social Links",
2053
2058
  icon: "SocialLinks40",
2054
2059
  props: {
2055
- id: image.ElementID(),
2056
- links: image.SocialLinks({
2060
+ id: slot.ElementID(),
2061
+ links: slot.SocialLinks({
2057
2062
  preset: {
2058
2063
  links: [
2059
2064
  {
@@ -2072,7 +2077,7 @@ function registerComponent$2(runtime) {
2072
2077
  openInNewTab: false
2073
2078
  }
2074
2079
  }),
2075
- shape: image.ResponsiveIconRadioGroup((props) => {
2080
+ shape: slot.ResponsiveIconRadioGroup((props) => {
2076
2081
  const links = props.links;
2077
2082
  return {
2078
2083
  label: "Shape",
@@ -2086,7 +2091,7 @@ function registerComponent$2(runtime) {
2086
2091
  hidden: links == null || links.links.length === 0
2087
2092
  };
2088
2093
  }),
2089
- size: image.ResponsiveIconRadioGroup((props) => {
2094
+ size: slot.ResponsiveIconRadioGroup((props) => {
2090
2095
  const links = props.links;
2091
2096
  return {
2092
2097
  label: "Size",
@@ -2099,7 +2104,7 @@ function registerComponent$2(runtime) {
2099
2104
  hidden: links == null || links.links.length === 0
2100
2105
  };
2101
2106
  }),
2102
- hoverStyle: image.ResponsiveSelect((props) => {
2107
+ hoverStyle: slot.ResponsiveSelect((props) => {
2103
2108
  const links = props.links;
2104
2109
  const hidden = links == null || links.links.length === 0;
2105
2110
  return {
@@ -2115,7 +2120,7 @@ function registerComponent$2(runtime) {
2115
2120
  hidden
2116
2121
  };
2117
2122
  }),
2118
- fill: image.ResponsiveColor((props) => {
2123
+ fill: slot.ResponsiveColor((props) => {
2119
2124
  const links = props.links;
2120
2125
  const hidden = links == null || links.links.length === 0;
2121
2126
  return {
@@ -2123,7 +2128,7 @@ function registerComponent$2(runtime) {
2123
2128
  hidden
2124
2129
  };
2125
2130
  }),
2126
- backgroundColor: image.ResponsiveColor((props) => {
2131
+ backgroundColor: slot.ResponsiveColor((props) => {
2127
2132
  const links = props.links;
2128
2133
  const hidden = links == null || links.links.length === 0;
2129
2134
  return {
@@ -2131,7 +2136,7 @@ function registerComponent$2(runtime) {
2131
2136
  hidden
2132
2137
  };
2133
2138
  }),
2134
- alignment: image.ResponsiveIconRadioGroup({
2139
+ alignment: slot.ResponsiveIconRadioGroup({
2135
2140
  label: "Alignment",
2136
2141
  options: [
2137
2142
  { label: "flex-start", value: "flex-start", icon: "AlignLeft16" },
@@ -2140,7 +2145,7 @@ function registerComponent$2(runtime) {
2140
2145
  ],
2141
2146
  defaultValue: "center"
2142
2147
  }),
2143
- gutter: image.GapX({
2148
+ gutter: slot.GapX({
2144
2149
  preset: [{ deviceId: "desktop", value: { value: 10, unit: "px" } }],
2145
2150
  label: "Link gap",
2146
2151
  min: 0,
@@ -2148,8 +2153,8 @@ function registerComponent$2(runtime) {
2148
2153
  step: 1,
2149
2154
  defaultValue: { value: 0, unit: "px" }
2150
2155
  }),
2151
- width: image.Width({ defaultValue: { value: 100, unit: "%" } }),
2152
- margin: image.Margin({
2156
+ width: slot.Width({ defaultValue: { value: 100, unit: "%" } }),
2157
+ margin: slot.Margin({
2153
2158
  preset: [
2154
2159
  {
2155
2160
  deviceId: "desktop",
@@ -2172,8 +2177,8 @@ function registerComponent$1(runtime) {
2172
2177
  type: MakeswiftComponentType.Text,
2173
2178
  label: "Text",
2174
2179
  props: {
2175
- id: image.ElementID(),
2176
- text: image.RichText(() => ({
2180
+ id: slot.ElementID(),
2181
+ text: slot.RichText(() => ({
2177
2182
  preset: {
2178
2183
  document: {
2179
2184
  nodes: [
@@ -2216,11 +2221,11 @@ function registerComponent$1(runtime) {
2216
2221
  }
2217
2222
  }
2218
2223
  })),
2219
- width: image.Width({
2224
+ width: slot.Width({
2220
2225
  preset: [{ deviceId: "desktop", value: { value: 700, unit: "px" } }],
2221
2226
  defaultValue: { value: 100, unit: "%" }
2222
2227
  }),
2223
- margin: image.Margin({
2228
+ margin: slot.Margin({
2224
2229
  preset: [
2225
2230
  {
2226
2231
  deviceId: "desktop",
@@ -2244,11 +2249,11 @@ function registerComponent(runtime) {
2244
2249
  label: "Video",
2245
2250
  icon: "Video40",
2246
2251
  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()
2252
+ id: slot.ElementID(),
2253
+ video: slot.Video({ preset: { controls: true } }),
2254
+ width: slot.Width({ defaultValue: { value: 560, unit: "px" } }),
2255
+ margin: slot.Margin(),
2256
+ borderRadius: slot.BorderRadius()
2252
2257
  }
2253
2258
  });
2254
2259
  }
@@ -2338,11 +2343,11 @@ function isNonNullable(value) {
2338
2343
  return value != null;
2339
2344
  }
2340
2345
  function mapSideColor(swatches, _c) {
2341
- var _d = _c, { color: color2 } = _d, restOfSide = __objRest(_d, ["color"]);
2346
+ var _d = _c, { color } = _d, restOfSide = __objRest(_d, ["color"]);
2342
2347
  return __spreadProps(__spreadValues({}, restOfSide), {
2343
- color: color2 && {
2344
- alpha: color2.alpha,
2345
- swatch: swatches.find((s) => s && s.id === color2.swatchId)
2348
+ color: color && {
2349
+ alpha: color.alpha,
2350
+ swatch: swatches.find((s) => s && s.id === color.swatchId)
2346
2351
  }
2347
2352
  });
2348
2353
  }
@@ -2372,14 +2377,14 @@ function useBorder(value) {
2372
2377
  });
2373
2378
  });
2374
2379
  }
2375
- function useResponsiveColor(color2) {
2376
- const swatchIds = color2 == null ? [] : [...Array.from(new Set(color2.map(({ value: v }) => v && v.swatchId).filter(isNonNullable)))];
2380
+ function useResponsiveColor(color) {
2381
+ const swatchIds = color == null ? [] : [...Array.from(new Set(color.map(({ value: v }) => v && v.swatchId).filter(isNonNullable)))];
2377
2382
  const skip = swatchIds.length === 0;
2378
2383
  const { error, data = {} } = useQuery(SWATCHES_BY_ID, { skip, variables: { ids: swatchIds } });
2379
- if (color2 == null || error != null)
2384
+ if (color == null || error != null)
2380
2385
  return null;
2381
2386
  const { swatches = [] } = data;
2382
- return color2.map((_a) => {
2387
+ return color.map((_a) => {
2383
2388
  var _b = _a, { value: v } = _b, rest = __objRest(_b, ["value"]);
2384
2389
  const { swatchId, alpha } = v;
2385
2390
  const swatch = swatches.find((s) => s && s.id === swatchId);
@@ -2423,8 +2428,8 @@ function responsiveWidth(widthData, defaultValue = "100%") {
2423
2428
  width: typeof width === "object" ? `${width.value}${width.unit}` : width
2424
2429
  })));
2425
2430
  }
2426
- function colorToString(color2) {
2427
- return color2 && color2.swatch ? `hsla(${color2.swatch.hue},${color2.swatch.saturation}%,${color2.swatch.lightness}%,${color2.alpha})` : "";
2431
+ function colorToString(color) {
2432
+ return color && color.swatch ? `hsla(${color.swatch.hue},${color.swatch.saturation}%,${color.swatch.lightness}%,${color.alpha})` : "";
2428
2433
  }
2429
2434
  function murmur2(str) {
2430
2435
  var h = 0;
@@ -2699,7 +2704,7 @@ function useStyle(style) {
2699
2704
  }
2700
2705
  function useStyleControlCssObject(style, controlDefinition) {
2701
2706
  const { properties } = controlDefinition.config;
2702
- return __spreadValues(__spreadValues({}, properties.includes(image.StyleControlProperty.Width) && {
2707
+ return __spreadValues(__spreadValues({}, properties.includes(slot.StyleControlProperty.Width) && {
2703
2708
  maxWidth: "100%"
2704
2709
  }), responsiveStyle([
2705
2710
  style == null ? void 0 : style.width,
@@ -2710,29 +2715,29 @@ function useStyleControlCssObject(style, controlDefinition) {
2710
2715
  style == null ? void 0 : style.textStyle
2711
2716
  ], ([width, margin, padding, border, borderRadius, textStyle]) => {
2712
2717
  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) && {
2718
+ return __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, properties.includes(slot.StyleControlProperty.Width) && {
2714
2719
  width: (_a = widthToString(width)) != null ? _a : "100%"
2715
- }), properties.includes(image.StyleControlProperty.Margin) && {
2720
+ }), properties.includes(slot.StyleControlProperty.Margin) && {
2716
2721
  marginTop: (_b = marginToString(margin == null ? void 0 : margin.marginTop)) != null ? _b : 0,
2717
2722
  marginRight: (_c = marginToString(margin == null ? void 0 : margin.marginRight)) != null ? _c : "auto",
2718
2723
  marginBottom: (_d = marginToString(margin == null ? void 0 : margin.marginBottom)) != null ? _d : 0,
2719
2724
  marginLeft: (_e2 = marginToString(margin == null ? void 0 : margin.marginLeft)) != null ? _e2 : "auto"
2720
- }), properties.includes(image.StyleControlProperty.Padding) && {
2725
+ }), properties.includes(slot.StyleControlProperty.Padding) && {
2721
2726
  paddingTop: (_f = paddingToString(padding == null ? void 0 : padding.paddingTop)) != null ? _f : 0,
2722
2727
  paddingRight: (_g = paddingToString(padding == null ? void 0 : padding.paddingRight)) != null ? _g : 0,
2723
2728
  paddingBottom: (_h = paddingToString(padding == null ? void 0 : padding.paddingBottom)) != null ? _h : 0,
2724
2729
  paddingLeft: (_i = paddingToString(padding == null ? void 0 : padding.paddingLeft)) != null ? _i : 0
2725
- }), properties.includes(image.StyleControlProperty.Border) && {
2730
+ }), properties.includes(slot.StyleControlProperty.Border) && {
2726
2731
  borderTop: (_j = borderSideToString(border == null ? void 0 : border.borderTop)) != null ? _j : "0 solid black",
2727
2732
  borderRight: (_k = borderSideToString(border == null ? void 0 : border.borderRight)) != null ? _k : "0 solid black",
2728
2733
  borderBottom: (_l = borderSideToString(border == null ? void 0 : border.borderBottom)) != null ? _l : "0 solid black",
2729
2734
  borderLeft: (_m = borderSideToString(border == null ? void 0 : border.borderLeft)) != null ? _m : "0 solid black"
2730
- }), properties.includes(image.StyleControlProperty.BorderRadius) && {
2735
+ }), properties.includes(slot.StyleControlProperty.BorderRadius) && {
2731
2736
  borderTopLeftRadius: (_n = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderTopLeftRadius)) != null ? _n : 0,
2732
2737
  borderTopRightRadius: (_o = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderTopRightRadius)) != null ? _o : 0,
2733
2738
  borderBottomRightRadius: (_p = borderRadiusToString(borderRadius == null ? void 0 : borderRadius.borderBottomRightRadius)) != null ? _p : 0,
2734
2739
  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 }), {
2740
+ }), 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
2741
  textTransform: (_r = textStyle == null ? void 0 : textStyle.textTransform) != null ? _r : [],
2737
2742
  fontStyle: (_s = textStyle == null ? void 0 : textStyle.fontStyle) != null ? _s : []
2738
2743
  }));
@@ -2757,8 +2762,8 @@ function useStyleControlCssObject(style, controlDefinition) {
2757
2762
  function borderSideToString(borderSide) {
2758
2763
  if (borderSide == null)
2759
2764
  return null;
2760
- const { width, color: color2, style: style2 } = borderSide;
2761
- return `${width != null ? width : 0}px ${style2} ${color2 != null ? colorToString(color2) : "black"}`;
2765
+ const { width, color, style: style2 } = borderSide;
2766
+ return `${width != null ? width : 0}px ${style2} ${color != null ? colorToString(color) : "black"}`;
2762
2767
  }
2763
2768
  function borderRadiusToString(borderRadius) {
2764
2769
  if (borderRadius == null)
@@ -2809,9 +2814,9 @@ function useComboboxControlValue(data) {
2809
2814
  }
2810
2815
  function useImageControlValue(data, definition) {
2811
2816
  var _a;
2812
- const format = (_a = definition.config.format) != null ? _a : image.ImageControlValueFormat.URL;
2817
+ const format = (_a = definition.config.format) != null ? _a : slot.ImageControlValueFormat.URL;
2813
2818
  const file = useFile(data);
2814
- if (format === image.ImageControlValueFormat.URL) {
2819
+ if (format === slot.ImageControlValueFormat.URL) {
2815
2820
  return file == null ? void 0 : file.publicUrl;
2816
2821
  }
2817
2822
  if (file == null || file.dimensions == null)
@@ -2958,37 +2963,37 @@ function ControlValue({
2958
2963
  parameters: [data, definition],
2959
2964
  children: (value) => children(value)
2960
2965
  }, definition.type);
2961
- case color.ColorControlType:
2966
+ case slot.ColorControlType:
2962
2967
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2963
2968
  hook: useColorValue,
2964
2969
  parameters: [data, definition],
2965
2970
  children: (value) => children(value)
2966
2971
  }, definition.type);
2967
- case image.ImageControlType:
2972
+ case slot.ImageControlType:
2968
2973
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2969
2974
  hook: useImageControlValue,
2970
2975
  parameters: [data, definition],
2971
2976
  children: (value) => children(value)
2972
2977
  }, definition.type);
2973
- case textInput.LinkControlType:
2978
+ case control.LinkControlType:
2974
2979
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2975
2980
  hook: useLinkControlValue,
2976
2981
  parameters: [data, definition],
2977
2982
  children: (value) => children(value)
2978
2983
  }, definition.type);
2979
- case shape.ComboboxControlType:
2984
+ case combobox.ComboboxControlType:
2980
2985
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
2981
2986
  hook: useComboboxControlValue,
2982
2987
  parameters: [data],
2983
2988
  children: (value) => children(value)
2984
2989
  }, definition.type);
2985
- case shape.ShapeControlType:
2990
+ case control.ShapeControlType:
2986
2991
  return /* @__PURE__ */ jsxRuntime.jsx(ShapeControlValue, {
2987
2992
  definition,
2988
2993
  data,
2989
2994
  children: (value) => children(value)
2990
2995
  });
2991
- case shape.ListControlType:
2996
+ case control.ListControlType:
2992
2997
  return /* @__PURE__ */ jsxRuntime.jsx(ListControlValue, {
2993
2998
  definition,
2994
2999
  data,
@@ -3010,16 +3015,16 @@ const getIndexes = (spans, index) => {
3010
3015
  }
3011
3016
  return [rowIndex, remainder];
3012
3017
  };
3013
- function useSlot(data, control) {
3018
+ function useSlot(data, control2) {
3014
3019
  if (data == null || data.elements.length === 0) {
3015
3020
  return /* @__PURE__ */ jsxRuntime.jsx(Slot.Placeholder, {
3016
- control
3021
+ control: control2
3017
3022
  });
3018
3023
  }
3019
3024
  return /* @__PURE__ */ jsxRuntime.jsx(Slot, {
3020
- control,
3025
+ control: control2,
3021
3026
  children: data.elements.map((element, i) => /* @__PURE__ */ jsxRuntime.jsx(Slot.Item, {
3022
- control,
3027
+ control: control2,
3023
3028
  grid: data.columns,
3024
3029
  index: i,
3025
3030
  children: /* @__PURE__ */ jsxRuntime.jsx(Element, {
@@ -3031,7 +3036,7 @@ function useSlot(data, control) {
3031
3036
  function Slot(_f) {
3032
3037
  var _g = _f, {
3033
3038
  as,
3034
- control,
3039
+ control: control2,
3035
3040
  children,
3036
3041
  className
3037
3042
  } = _g, restOfProps = __objRest(_g, [
@@ -3048,13 +3053,13 @@ function Slot(_f) {
3048
3053
  width: "100%"
3049
3054
  });
3050
3055
  React.useEffect(() => {
3051
- if (element == null || control == null)
3056
+ if (element == null || control2 == null)
3052
3057
  return;
3053
3058
  return pollBoxModel({
3054
3059
  element,
3055
- onBoxModelChange: (boxModel) => control.changeContainerBoxModel(boxModel)
3060
+ onBoxModelChange: (boxModel) => control2.changeContainerBoxModel(boxModel)
3056
3061
  });
3057
- }, [element, control]);
3062
+ }, [element, control2]);
3058
3063
  return /* @__PURE__ */ jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, restOfProps), {
3059
3064
  ref: setElement,
3060
3065
  className: css.cx(baseClassName, className),
@@ -3066,7 +3071,7 @@ Slot.Item = SlotItem;
3066
3071
  function SlotItem(_h) {
3067
3072
  var _i = _h, {
3068
3073
  as,
3069
- control,
3074
+ control: control2,
3070
3075
  grid,
3071
3076
  index,
3072
3077
  children,
@@ -3098,13 +3103,13 @@ function SlotItem(_h) {
3098
3103
  };
3099
3104
  })));
3100
3105
  React.useEffect(() => {
3101
- if (element == null || control == null)
3106
+ if (element == null || control2 == null)
3102
3107
  return;
3103
3108
  return pollBoxModel({
3104
3109
  element,
3105
- onBoxModelChange: (boxModel) => control.changeItemBoxModel(index, boxModel)
3110
+ onBoxModelChange: (boxModel) => control2.changeItemBoxModel(index, boxModel)
3106
3111
  });
3107
- }, [element, control, index]);
3112
+ }, [element, control2, index]);
3108
3113
  return /* @__PURE__ */ jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, restOfProps), {
3109
3114
  ref: setElement,
3110
3115
  className: css.cx(baseClassName, className),
@@ -3112,17 +3117,17 @@ function SlotItem(_h) {
3112
3117
  }));
3113
3118
  }
3114
3119
  function SlotPlaceholder({
3115
- control
3120
+ control: control2
3116
3121
  }) {
3117
3122
  const [element, setElement] = React.useState(null);
3118
3123
  React.useEffect(() => {
3119
- if (element == null || control == null)
3124
+ if (element == null || control2 == null)
3120
3125
  return;
3121
3126
  return pollBoxModel({
3122
3127
  element,
3123
- onBoxModelChange: (boxModel) => control.changeContainerBoxModel(boxModel)
3128
+ onBoxModelChange: (boxModel) => control2.changeContainerBoxModel(boxModel)
3124
3129
  });
3125
- }, [element, control]);
3130
+ }, [element, control2]);
3126
3131
  return /* @__PURE__ */ jsxRuntime.jsx("div", {
3127
3132
  ref: setElement,
3128
3133
  className: useStyle({
@@ -3178,7 +3183,7 @@ function useDeviceMode() {
3178
3183
  function useWidth(value, descriptor, props) {
3179
3184
  const deviceMode = useDeviceMode();
3180
3185
  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]);
3186
+ return React.useMemo(() => options.format === slot.WidthControlValueFormats.ClassName ? css.css(responsiveWidth(value, options.defaultValue)) : value, [value, options.defaultValue, options.format]);
3182
3187
  }
3183
3188
  function PropsValue({
3184
3189
  element,
@@ -3202,12 +3207,12 @@ function PropsValue({
3202
3207
  case textInput.TextInputControlType:
3203
3208
  case textInput.TextAreaControlType:
3204
3209
  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:
3210
+ case slot.ColorControlType:
3211
+ case slot.ImageControlType:
3212
+ case combobox.ComboboxControlType:
3213
+ case control.ShapeControlType:
3214
+ case control.ListControlType:
3215
+ case control.LinkControlType:
3211
3216
  return /* @__PURE__ */ jsxRuntime.jsx(ControlValue, {
3212
3217
  definition: descriptor,
3213
3218
  data: props[propName],
@@ -3215,7 +3220,7 @@ function PropsValue({
3215
3220
  [propName]: value
3216
3221
  }))
3217
3222
  });
3218
- case image.StyleControlType:
3223
+ case slot.StyleControlType:
3219
3224
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3220
3225
  hook: useFormattedStyle,
3221
3226
  parameters: [props[propName], descriptor],
@@ -3224,16 +3229,16 @@ function PropsValue({
3224
3229
  }))
3225
3230
  }, descriptor.type);
3226
3231
  case slot.SlotControlType: {
3227
- const control = (_a2 = propControllers == null ? void 0 : propControllers[propName]) != null ? _a2 : null;
3232
+ const control2 = (_a2 = propControllers == null ? void 0 : propControllers[propName]) != null ? _a2 : null;
3228
3233
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3229
3234
  hook: useSlot,
3230
- parameters: [props[propName], control],
3235
+ parameters: [props[propName], control2],
3231
3236
  children: (value) => renderFn(__spreadProps(__spreadValues({}, propsValue), {
3232
3237
  [propName]: value
3233
3238
  }))
3234
3239
  }, descriptor.type);
3235
3240
  }
3236
- case image.Types.Width:
3241
+ case slot.Types.Width:
3237
3242
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3238
3243
  hook: useWidth,
3239
3244
  parameters: [props[propName], descriptor, props],
@@ -3241,7 +3246,7 @@ function PropsValue({
3241
3246
  [propName]: value
3242
3247
  }))
3243
3248
  }, descriptor.type);
3244
- case image.Types.ResponsiveColor:
3249
+ case slot.Types.ResponsiveColor:
3245
3250
  return /* @__PURE__ */ jsxRuntime.jsx(RenderHook, {
3246
3251
  hook: useResponsiveColor,
3247
3252
  parameters: [props[propName]],