@measured/puck 0.10.1-canary.cc20c52 → 0.11.0-canary.4613df4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1109,7 +1109,8 @@ __export(core_exports, {
1109
1109
  IconButton: () => IconButton,
1110
1110
  Puck: () => Puck,
1111
1111
  Render: () => Render,
1112
- dropZoneContext: () => dropZoneContext
1112
+ dropZoneContext: () => dropZoneContext,
1113
+ resolveData: () => resolveData
1113
1114
  });
1114
1115
  module.exports = __toCommonJS(core_exports);
1115
1116
  init_react_import();
@@ -1214,11 +1215,11 @@ var Button = ({
1214
1215
 
1215
1216
  // components/DropZone/index.tsx
1216
1217
  init_react_import();
1217
- var import_react22 = require("react");
1218
+ var import_react23 = require("react");
1218
1219
 
1219
1220
  // components/DraggableComponent/index.tsx
1220
1221
  init_react_import();
1221
- var import_react19 = require("react");
1222
+ var import_react20 = require("react");
1222
1223
  var import_react_beautiful_dnd = require("react-beautiful-dnd");
1223
1224
 
1224
1225
  // css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
@@ -1526,7 +1527,7 @@ ChevronRight.propTypes = {
1526
1527
  ChevronRight.displayName = "ChevronRight";
1527
1528
  var chevron_right_default = ChevronRight;
1528
1529
 
1529
- // ../../node_modules/react-feather/dist/icons/copy.js
1530
+ // ../../node_modules/react-feather/dist/icons/chevron-up.js
1530
1531
  init_react_import();
1531
1532
  var import_react7 = __toESM(require("react"));
1532
1533
  var import_prop_types5 = __toESM(require_prop_types());
@@ -1576,7 +1577,7 @@ function _objectWithoutPropertiesLoose5(source, excluded) {
1576
1577
  }
1577
1578
  return target;
1578
1579
  }
1579
- var Copy = (0, import_react7.forwardRef)(function(_ref, ref) {
1580
+ var ChevronUp = (0, import_react7.forwardRef)(function(_ref, ref) {
1580
1581
  var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties5(_ref, ["color", "size"]);
1581
1582
  return /* @__PURE__ */ import_react7.default.createElement("svg", _extends5({
1582
1583
  ref,
@@ -1589,25 +1590,18 @@ var Copy = (0, import_react7.forwardRef)(function(_ref, ref) {
1589
1590
  strokeWidth: "2",
1590
1591
  strokeLinecap: "round",
1591
1592
  strokeLinejoin: "round"
1592
- }, rest), /* @__PURE__ */ import_react7.default.createElement("rect", {
1593
- x: "9",
1594
- y: "9",
1595
- width: "13",
1596
- height: "13",
1597
- rx: "2",
1598
- ry: "2"
1599
- }), /* @__PURE__ */ import_react7.default.createElement("path", {
1600
- d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
1593
+ }, rest), /* @__PURE__ */ import_react7.default.createElement("polyline", {
1594
+ points: "18 15 12 9 6 15"
1601
1595
  }));
1602
1596
  });
1603
- Copy.propTypes = {
1597
+ ChevronUp.propTypes = {
1604
1598
  color: import_prop_types5.default.string,
1605
1599
  size: import_prop_types5.default.oneOfType([import_prop_types5.default.string, import_prop_types5.default.number])
1606
1600
  };
1607
- Copy.displayName = "Copy";
1608
- var copy_default = Copy;
1601
+ ChevronUp.displayName = "ChevronUp";
1602
+ var chevron_up_default = ChevronUp;
1609
1603
 
1610
- // ../../node_modules/react-feather/dist/icons/globe.js
1604
+ // ../../node_modules/react-feather/dist/icons/copy.js
1611
1605
  init_react_import();
1612
1606
  var import_react8 = __toESM(require("react"));
1613
1607
  var import_prop_types6 = __toESM(require_prop_types());
@@ -1657,7 +1651,7 @@ function _objectWithoutPropertiesLoose6(source, excluded) {
1657
1651
  }
1658
1652
  return target;
1659
1653
  }
1660
- var Globe = (0, import_react8.forwardRef)(function(_ref, ref) {
1654
+ var Copy = (0, import_react8.forwardRef)(function(_ref, ref) {
1661
1655
  var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties6(_ref, ["color", "size"]);
1662
1656
  return /* @__PURE__ */ import_react8.default.createElement("svg", _extends6({
1663
1657
  ref,
@@ -1670,27 +1664,25 @@ var Globe = (0, import_react8.forwardRef)(function(_ref, ref) {
1670
1664
  strokeWidth: "2",
1671
1665
  strokeLinecap: "round",
1672
1666
  strokeLinejoin: "round"
1673
- }, rest), /* @__PURE__ */ import_react8.default.createElement("circle", {
1674
- cx: "12",
1675
- cy: "12",
1676
- r: "10"
1677
- }), /* @__PURE__ */ import_react8.default.createElement("line", {
1678
- x1: "2",
1679
- y1: "12",
1680
- x2: "22",
1681
- y2: "12"
1667
+ }, rest), /* @__PURE__ */ import_react8.default.createElement("rect", {
1668
+ x: "9",
1669
+ y: "9",
1670
+ width: "13",
1671
+ height: "13",
1672
+ rx: "2",
1673
+ ry: "2"
1682
1674
  }), /* @__PURE__ */ import_react8.default.createElement("path", {
1683
- d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"
1675
+ d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
1684
1676
  }));
1685
1677
  });
1686
- Globe.propTypes = {
1678
+ Copy.propTypes = {
1687
1679
  color: import_prop_types6.default.string,
1688
1680
  size: import_prop_types6.default.oneOfType([import_prop_types6.default.string, import_prop_types6.default.number])
1689
1681
  };
1690
- Globe.displayName = "Globe";
1691
- var globe_default = Globe;
1682
+ Copy.displayName = "Copy";
1683
+ var copy_default = Copy;
1692
1684
 
1693
- // ../../node_modules/react-feather/dist/icons/grid.js
1685
+ // ../../node_modules/react-feather/dist/icons/globe.js
1694
1686
  init_react_import();
1695
1687
  var import_react9 = __toESM(require("react"));
1696
1688
  var import_prop_types7 = __toESM(require_prop_types());
@@ -1740,7 +1732,7 @@ function _objectWithoutPropertiesLoose7(source, excluded) {
1740
1732
  }
1741
1733
  return target;
1742
1734
  }
1743
- var Grid = (0, import_react9.forwardRef)(function(_ref, ref) {
1735
+ var Globe = (0, import_react9.forwardRef)(function(_ref, ref) {
1744
1736
  var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties7(_ref, ["color", "size"]);
1745
1737
  return /* @__PURE__ */ import_react9.default.createElement("svg", _extends7({
1746
1738
  ref,
@@ -1753,22 +1745,105 @@ var Grid = (0, import_react9.forwardRef)(function(_ref, ref) {
1753
1745
  strokeWidth: "2",
1754
1746
  strokeLinecap: "round",
1755
1747
  strokeLinejoin: "round"
1756
- }, rest), /* @__PURE__ */ import_react9.default.createElement("rect", {
1748
+ }, rest), /* @__PURE__ */ import_react9.default.createElement("circle", {
1749
+ cx: "12",
1750
+ cy: "12",
1751
+ r: "10"
1752
+ }), /* @__PURE__ */ import_react9.default.createElement("line", {
1753
+ x1: "2",
1754
+ y1: "12",
1755
+ x2: "22",
1756
+ y2: "12"
1757
+ }), /* @__PURE__ */ import_react9.default.createElement("path", {
1758
+ d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"
1759
+ }));
1760
+ });
1761
+ Globe.propTypes = {
1762
+ color: import_prop_types7.default.string,
1763
+ size: import_prop_types7.default.oneOfType([import_prop_types7.default.string, import_prop_types7.default.number])
1764
+ };
1765
+ Globe.displayName = "Globe";
1766
+ var globe_default = Globe;
1767
+
1768
+ // ../../node_modules/react-feather/dist/icons/grid.js
1769
+ init_react_import();
1770
+ var import_react10 = __toESM(require("react"));
1771
+ var import_prop_types8 = __toESM(require_prop_types());
1772
+ function _extends8() {
1773
+ _extends8 = Object.assign || function(target) {
1774
+ for (var i = 1; i < arguments.length; i++) {
1775
+ var source = arguments[i];
1776
+ for (var key in source) {
1777
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1778
+ target[key] = source[key];
1779
+ }
1780
+ }
1781
+ }
1782
+ return target;
1783
+ };
1784
+ return _extends8.apply(this, arguments);
1785
+ }
1786
+ function _objectWithoutProperties8(source, excluded) {
1787
+ if (source == null)
1788
+ return {};
1789
+ var target = _objectWithoutPropertiesLoose8(source, excluded);
1790
+ var key, i;
1791
+ if (Object.getOwnPropertySymbols) {
1792
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1793
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
1794
+ key = sourceSymbolKeys[i];
1795
+ if (excluded.indexOf(key) >= 0)
1796
+ continue;
1797
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
1798
+ continue;
1799
+ target[key] = source[key];
1800
+ }
1801
+ }
1802
+ return target;
1803
+ }
1804
+ function _objectWithoutPropertiesLoose8(source, excluded) {
1805
+ if (source == null)
1806
+ return {};
1807
+ var target = {};
1808
+ var sourceKeys = Object.keys(source);
1809
+ var key, i;
1810
+ for (i = 0; i < sourceKeys.length; i++) {
1811
+ key = sourceKeys[i];
1812
+ if (excluded.indexOf(key) >= 0)
1813
+ continue;
1814
+ target[key] = source[key];
1815
+ }
1816
+ return target;
1817
+ }
1818
+ var Grid = (0, import_react10.forwardRef)(function(_ref, ref) {
1819
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties8(_ref, ["color", "size"]);
1820
+ return /* @__PURE__ */ import_react10.default.createElement("svg", _extends8({
1821
+ ref,
1822
+ xmlns: "http://www.w3.org/2000/svg",
1823
+ width: size,
1824
+ height: size,
1825
+ viewBox: "0 0 24 24",
1826
+ fill: "none",
1827
+ stroke: color,
1828
+ strokeWidth: "2",
1829
+ strokeLinecap: "round",
1830
+ strokeLinejoin: "round"
1831
+ }, rest), /* @__PURE__ */ import_react10.default.createElement("rect", {
1757
1832
  x: "3",
1758
1833
  y: "3",
1759
1834
  width: "7",
1760
1835
  height: "7"
1761
- }), /* @__PURE__ */ import_react9.default.createElement("rect", {
1836
+ }), /* @__PURE__ */ import_react10.default.createElement("rect", {
1762
1837
  x: "14",
1763
1838
  y: "3",
1764
1839
  width: "7",
1765
1840
  height: "7"
1766
- }), /* @__PURE__ */ import_react9.default.createElement("rect", {
1841
+ }), /* @__PURE__ */ import_react10.default.createElement("rect", {
1767
1842
  x: "14",
1768
1843
  y: "14",
1769
1844
  width: "7",
1770
1845
  height: "7"
1771
- }), /* @__PURE__ */ import_react9.default.createElement("rect", {
1846
+ }), /* @__PURE__ */ import_react10.default.createElement("rect", {
1772
1847
  x: "3",
1773
1848
  y: "14",
1774
1849
  width: "7",
@@ -1776,18 +1851,18 @@ var Grid = (0, import_react9.forwardRef)(function(_ref, ref) {
1776
1851
  }));
1777
1852
  });
1778
1853
  Grid.propTypes = {
1779
- color: import_prop_types7.default.string,
1780
- size: import_prop_types7.default.oneOfType([import_prop_types7.default.string, import_prop_types7.default.number])
1854
+ color: import_prop_types8.default.string,
1855
+ size: import_prop_types8.default.oneOfType([import_prop_types8.default.string, import_prop_types8.default.number])
1781
1856
  };
1782
1857
  Grid.displayName = "Grid";
1783
1858
  var grid_default = Grid;
1784
1859
 
1785
1860
  // ../../node_modules/react-feather/dist/icons/hash.js
1786
1861
  init_react_import();
1787
- var import_react10 = __toESM(require("react"));
1788
- var import_prop_types8 = __toESM(require_prop_types());
1789
- function _extends8() {
1790
- _extends8 = Object.assign || function(target) {
1862
+ var import_react11 = __toESM(require("react"));
1863
+ var import_prop_types9 = __toESM(require_prop_types());
1864
+ function _extends9() {
1865
+ _extends9 = Object.assign || function(target) {
1791
1866
  for (var i = 1; i < arguments.length; i++) {
1792
1867
  var source = arguments[i];
1793
1868
  for (var key in source) {
@@ -1798,12 +1873,12 @@ function _extends8() {
1798
1873
  }
1799
1874
  return target;
1800
1875
  };
1801
- return _extends8.apply(this, arguments);
1876
+ return _extends9.apply(this, arguments);
1802
1877
  }
1803
- function _objectWithoutProperties8(source, excluded) {
1878
+ function _objectWithoutProperties9(source, excluded) {
1804
1879
  if (source == null)
1805
1880
  return {};
1806
- var target = _objectWithoutPropertiesLoose8(source, excluded);
1881
+ var target = _objectWithoutPropertiesLoose9(source, excluded);
1807
1882
  var key, i;
1808
1883
  if (Object.getOwnPropertySymbols) {
1809
1884
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1818,7 +1893,7 @@ function _objectWithoutProperties8(source, excluded) {
1818
1893
  }
1819
1894
  return target;
1820
1895
  }
1821
- function _objectWithoutPropertiesLoose8(source, excluded) {
1896
+ function _objectWithoutPropertiesLoose9(source, excluded) {
1822
1897
  if (source == null)
1823
1898
  return {};
1824
1899
  var target = {};
@@ -1832,9 +1907,9 @@ function _objectWithoutPropertiesLoose8(source, excluded) {
1832
1907
  }
1833
1908
  return target;
1834
1909
  }
1835
- var Hash = (0, import_react10.forwardRef)(function(_ref, ref) {
1836
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties8(_ref, ["color", "size"]);
1837
- return /* @__PURE__ */ import_react10.default.createElement("svg", _extends8({
1910
+ var Hash = (0, import_react11.forwardRef)(function(_ref, ref) {
1911
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties9(_ref, ["color", "size"]);
1912
+ return /* @__PURE__ */ import_react11.default.createElement("svg", _extends9({
1838
1913
  ref,
1839
1914
  xmlns: "http://www.w3.org/2000/svg",
1840
1915
  width: size,
@@ -1845,22 +1920,22 @@ var Hash = (0, import_react10.forwardRef)(function(_ref, ref) {
1845
1920
  strokeWidth: "2",
1846
1921
  strokeLinecap: "round",
1847
1922
  strokeLinejoin: "round"
1848
- }, rest), /* @__PURE__ */ import_react10.default.createElement("line", {
1923
+ }, rest), /* @__PURE__ */ import_react11.default.createElement("line", {
1849
1924
  x1: "4",
1850
1925
  y1: "9",
1851
1926
  x2: "20",
1852
1927
  y2: "9"
1853
- }), /* @__PURE__ */ import_react10.default.createElement("line", {
1928
+ }), /* @__PURE__ */ import_react11.default.createElement("line", {
1854
1929
  x1: "4",
1855
1930
  y1: "15",
1856
1931
  x2: "20",
1857
1932
  y2: "15"
1858
- }), /* @__PURE__ */ import_react10.default.createElement("line", {
1933
+ }), /* @__PURE__ */ import_react11.default.createElement("line", {
1859
1934
  x1: "10",
1860
1935
  y1: "3",
1861
1936
  x2: "8",
1862
1937
  y2: "21"
1863
- }), /* @__PURE__ */ import_react10.default.createElement("line", {
1938
+ }), /* @__PURE__ */ import_react11.default.createElement("line", {
1864
1939
  x1: "16",
1865
1940
  y1: "3",
1866
1941
  x2: "14",
@@ -1868,18 +1943,18 @@ var Hash = (0, import_react10.forwardRef)(function(_ref, ref) {
1868
1943
  }));
1869
1944
  });
1870
1945
  Hash.propTypes = {
1871
- color: import_prop_types8.default.string,
1872
- size: import_prop_types8.default.oneOfType([import_prop_types8.default.string, import_prop_types8.default.number])
1946
+ color: import_prop_types9.default.string,
1947
+ size: import_prop_types9.default.oneOfType([import_prop_types9.default.string, import_prop_types9.default.number])
1873
1948
  };
1874
1949
  Hash.displayName = "Hash";
1875
1950
  var hash_default = Hash;
1876
1951
 
1877
1952
  // ../../node_modules/react-feather/dist/icons/layers.js
1878
1953
  init_react_import();
1879
- var import_react11 = __toESM(require("react"));
1880
- var import_prop_types9 = __toESM(require_prop_types());
1881
- function _extends9() {
1882
- _extends9 = Object.assign || function(target) {
1954
+ var import_react12 = __toESM(require("react"));
1955
+ var import_prop_types10 = __toESM(require_prop_types());
1956
+ function _extends10() {
1957
+ _extends10 = Object.assign || function(target) {
1883
1958
  for (var i = 1; i < arguments.length; i++) {
1884
1959
  var source = arguments[i];
1885
1960
  for (var key in source) {
@@ -1890,12 +1965,12 @@ function _extends9() {
1890
1965
  }
1891
1966
  return target;
1892
1967
  };
1893
- return _extends9.apply(this, arguments);
1968
+ return _extends10.apply(this, arguments);
1894
1969
  }
1895
- function _objectWithoutProperties9(source, excluded) {
1970
+ function _objectWithoutProperties10(source, excluded) {
1896
1971
  if (source == null)
1897
1972
  return {};
1898
- var target = _objectWithoutPropertiesLoose9(source, excluded);
1973
+ var target = _objectWithoutPropertiesLoose10(source, excluded);
1899
1974
  var key, i;
1900
1975
  if (Object.getOwnPropertySymbols) {
1901
1976
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1910,7 +1985,7 @@ function _objectWithoutProperties9(source, excluded) {
1910
1985
  }
1911
1986
  return target;
1912
1987
  }
1913
- function _objectWithoutPropertiesLoose9(source, excluded) {
1988
+ function _objectWithoutPropertiesLoose10(source, excluded) {
1914
1989
  if (source == null)
1915
1990
  return {};
1916
1991
  var target = {};
@@ -1924,9 +1999,9 @@ function _objectWithoutPropertiesLoose9(source, excluded) {
1924
1999
  }
1925
2000
  return target;
1926
2001
  }
1927
- var Layers = (0, import_react11.forwardRef)(function(_ref, ref) {
1928
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties9(_ref, ["color", "size"]);
1929
- return /* @__PURE__ */ import_react11.default.createElement("svg", _extends9({
2002
+ var Layers = (0, import_react12.forwardRef)(function(_ref, ref) {
2003
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties10(_ref, ["color", "size"]);
2004
+ return /* @__PURE__ */ import_react12.default.createElement("svg", _extends10({
1930
2005
  ref,
1931
2006
  xmlns: "http://www.w3.org/2000/svg",
1932
2007
  width: size,
@@ -1937,27 +2012,27 @@ var Layers = (0, import_react11.forwardRef)(function(_ref, ref) {
1937
2012
  strokeWidth: "2",
1938
2013
  strokeLinecap: "round",
1939
2014
  strokeLinejoin: "round"
1940
- }, rest), /* @__PURE__ */ import_react11.default.createElement("polygon", {
2015
+ }, rest), /* @__PURE__ */ import_react12.default.createElement("polygon", {
1941
2016
  points: "12 2 2 7 12 12 22 7 12 2"
1942
- }), /* @__PURE__ */ import_react11.default.createElement("polyline", {
2017
+ }), /* @__PURE__ */ import_react12.default.createElement("polyline", {
1943
2018
  points: "2 17 12 22 22 17"
1944
- }), /* @__PURE__ */ import_react11.default.createElement("polyline", {
2019
+ }), /* @__PURE__ */ import_react12.default.createElement("polyline", {
1945
2020
  points: "2 12 12 17 22 12"
1946
2021
  }));
1947
2022
  });
1948
2023
  Layers.propTypes = {
1949
- color: import_prop_types9.default.string,
1950
- size: import_prop_types9.default.oneOfType([import_prop_types9.default.string, import_prop_types9.default.number])
2024
+ color: import_prop_types10.default.string,
2025
+ size: import_prop_types10.default.oneOfType([import_prop_types10.default.string, import_prop_types10.default.number])
1951
2026
  };
1952
2027
  Layers.displayName = "Layers";
1953
2028
  var layers_default = Layers;
1954
2029
 
1955
2030
  // ../../node_modules/react-feather/dist/icons/link.js
1956
2031
  init_react_import();
1957
- var import_react12 = __toESM(require("react"));
1958
- var import_prop_types10 = __toESM(require_prop_types());
1959
- function _extends10() {
1960
- _extends10 = Object.assign || function(target) {
2032
+ var import_react13 = __toESM(require("react"));
2033
+ var import_prop_types11 = __toESM(require_prop_types());
2034
+ function _extends11() {
2035
+ _extends11 = Object.assign || function(target) {
1961
2036
  for (var i = 1; i < arguments.length; i++) {
1962
2037
  var source = arguments[i];
1963
2038
  for (var key in source) {
@@ -1968,12 +2043,12 @@ function _extends10() {
1968
2043
  }
1969
2044
  return target;
1970
2045
  };
1971
- return _extends10.apply(this, arguments);
2046
+ return _extends11.apply(this, arguments);
1972
2047
  }
1973
- function _objectWithoutProperties10(source, excluded) {
2048
+ function _objectWithoutProperties11(source, excluded) {
1974
2049
  if (source == null)
1975
2050
  return {};
1976
- var target = _objectWithoutPropertiesLoose10(source, excluded);
2051
+ var target = _objectWithoutPropertiesLoose11(source, excluded);
1977
2052
  var key, i;
1978
2053
  if (Object.getOwnPropertySymbols) {
1979
2054
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -1988,7 +2063,7 @@ function _objectWithoutProperties10(source, excluded) {
1988
2063
  }
1989
2064
  return target;
1990
2065
  }
1991
- function _objectWithoutPropertiesLoose10(source, excluded) {
2066
+ function _objectWithoutPropertiesLoose11(source, excluded) {
1992
2067
  if (source == null)
1993
2068
  return {};
1994
2069
  var target = {};
@@ -2002,9 +2077,9 @@ function _objectWithoutPropertiesLoose10(source, excluded) {
2002
2077
  }
2003
2078
  return target;
2004
2079
  }
2005
- var Link = (0, import_react12.forwardRef)(function(_ref, ref) {
2006
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties10(_ref, ["color", "size"]);
2007
- return /* @__PURE__ */ import_react12.default.createElement("svg", _extends10({
2080
+ var Link = (0, import_react13.forwardRef)(function(_ref, ref) {
2081
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties11(_ref, ["color", "size"]);
2082
+ return /* @__PURE__ */ import_react13.default.createElement("svg", _extends11({
2008
2083
  ref,
2009
2084
  xmlns: "http://www.w3.org/2000/svg",
2010
2085
  width: size,
@@ -2015,25 +2090,25 @@ var Link = (0, import_react12.forwardRef)(function(_ref, ref) {
2015
2090
  strokeWidth: "2",
2016
2091
  strokeLinecap: "round",
2017
2092
  strokeLinejoin: "round"
2018
- }, rest), /* @__PURE__ */ import_react12.default.createElement("path", {
2093
+ }, rest), /* @__PURE__ */ import_react13.default.createElement("path", {
2019
2094
  d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"
2020
- }), /* @__PURE__ */ import_react12.default.createElement("path", {
2095
+ }), /* @__PURE__ */ import_react13.default.createElement("path", {
2021
2096
  d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"
2022
2097
  }));
2023
2098
  });
2024
2099
  Link.propTypes = {
2025
- color: import_prop_types10.default.string,
2026
- size: import_prop_types10.default.oneOfType([import_prop_types10.default.string, import_prop_types10.default.number])
2100
+ color: import_prop_types11.default.string,
2101
+ size: import_prop_types11.default.oneOfType([import_prop_types11.default.string, import_prop_types11.default.number])
2027
2102
  };
2028
2103
  Link.displayName = "Link";
2029
2104
  var link_default = Link;
2030
2105
 
2031
2106
  // ../../node_modules/react-feather/dist/icons/list.js
2032
2107
  init_react_import();
2033
- var import_react13 = __toESM(require("react"));
2034
- var import_prop_types11 = __toESM(require_prop_types());
2035
- function _extends11() {
2036
- _extends11 = Object.assign || function(target) {
2108
+ var import_react14 = __toESM(require("react"));
2109
+ var import_prop_types12 = __toESM(require_prop_types());
2110
+ function _extends12() {
2111
+ _extends12 = Object.assign || function(target) {
2037
2112
  for (var i = 1; i < arguments.length; i++) {
2038
2113
  var source = arguments[i];
2039
2114
  for (var key in source) {
@@ -2044,12 +2119,12 @@ function _extends11() {
2044
2119
  }
2045
2120
  return target;
2046
2121
  };
2047
- return _extends11.apply(this, arguments);
2122
+ return _extends12.apply(this, arguments);
2048
2123
  }
2049
- function _objectWithoutProperties11(source, excluded) {
2124
+ function _objectWithoutProperties12(source, excluded) {
2050
2125
  if (source == null)
2051
2126
  return {};
2052
- var target = _objectWithoutPropertiesLoose11(source, excluded);
2127
+ var target = _objectWithoutPropertiesLoose12(source, excluded);
2053
2128
  var key, i;
2054
2129
  if (Object.getOwnPropertySymbols) {
2055
2130
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2064,7 +2139,7 @@ function _objectWithoutProperties11(source, excluded) {
2064
2139
  }
2065
2140
  return target;
2066
2141
  }
2067
- function _objectWithoutPropertiesLoose11(source, excluded) {
2142
+ function _objectWithoutPropertiesLoose12(source, excluded) {
2068
2143
  if (source == null)
2069
2144
  return {};
2070
2145
  var target = {};
@@ -2078,9 +2153,9 @@ function _objectWithoutPropertiesLoose11(source, excluded) {
2078
2153
  }
2079
2154
  return target;
2080
2155
  }
2081
- var List = (0, import_react13.forwardRef)(function(_ref, ref) {
2082
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties11(_ref, ["color", "size"]);
2083
- return /* @__PURE__ */ import_react13.default.createElement("svg", _extends11({
2156
+ var List = (0, import_react14.forwardRef)(function(_ref, ref) {
2157
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties12(_ref, ["color", "size"]);
2158
+ return /* @__PURE__ */ import_react14.default.createElement("svg", _extends12({
2084
2159
  ref,
2085
2160
  xmlns: "http://www.w3.org/2000/svg",
2086
2161
  width: size,
@@ -2091,32 +2166,32 @@ var List = (0, import_react13.forwardRef)(function(_ref, ref) {
2091
2166
  strokeWidth: "2",
2092
2167
  strokeLinecap: "round",
2093
2168
  strokeLinejoin: "round"
2094
- }, rest), /* @__PURE__ */ import_react13.default.createElement("line", {
2169
+ }, rest), /* @__PURE__ */ import_react14.default.createElement("line", {
2095
2170
  x1: "8",
2096
2171
  y1: "6",
2097
2172
  x2: "21",
2098
2173
  y2: "6"
2099
- }), /* @__PURE__ */ import_react13.default.createElement("line", {
2174
+ }), /* @__PURE__ */ import_react14.default.createElement("line", {
2100
2175
  x1: "8",
2101
2176
  y1: "12",
2102
2177
  x2: "21",
2103
2178
  y2: "12"
2104
- }), /* @__PURE__ */ import_react13.default.createElement("line", {
2179
+ }), /* @__PURE__ */ import_react14.default.createElement("line", {
2105
2180
  x1: "8",
2106
2181
  y1: "18",
2107
2182
  x2: "21",
2108
2183
  y2: "18"
2109
- }), /* @__PURE__ */ import_react13.default.createElement("line", {
2184
+ }), /* @__PURE__ */ import_react14.default.createElement("line", {
2110
2185
  x1: "3",
2111
2186
  y1: "6",
2112
2187
  x2: "3.01",
2113
2188
  y2: "6"
2114
- }), /* @__PURE__ */ import_react13.default.createElement("line", {
2189
+ }), /* @__PURE__ */ import_react14.default.createElement("line", {
2115
2190
  x1: "3",
2116
2191
  y1: "12",
2117
2192
  x2: "3.01",
2118
2193
  y2: "12"
2119
- }), /* @__PURE__ */ import_react13.default.createElement("line", {
2194
+ }), /* @__PURE__ */ import_react14.default.createElement("line", {
2120
2195
  x1: "3",
2121
2196
  y1: "18",
2122
2197
  x2: "3.01",
@@ -2124,18 +2199,18 @@ var List = (0, import_react13.forwardRef)(function(_ref, ref) {
2124
2199
  }));
2125
2200
  });
2126
2201
  List.propTypes = {
2127
- color: import_prop_types11.default.string,
2128
- size: import_prop_types11.default.oneOfType([import_prop_types11.default.string, import_prop_types11.default.number])
2202
+ color: import_prop_types12.default.string,
2203
+ size: import_prop_types12.default.oneOfType([import_prop_types12.default.string, import_prop_types12.default.number])
2129
2204
  };
2130
2205
  List.displayName = "List";
2131
2206
  var list_default = List;
2132
2207
 
2133
2208
  // ../../node_modules/react-feather/dist/icons/plus.js
2134
2209
  init_react_import();
2135
- var import_react14 = __toESM(require("react"));
2136
- var import_prop_types12 = __toESM(require_prop_types());
2137
- function _extends12() {
2138
- _extends12 = Object.assign || function(target) {
2210
+ var import_react15 = __toESM(require("react"));
2211
+ var import_prop_types13 = __toESM(require_prop_types());
2212
+ function _extends13() {
2213
+ _extends13 = Object.assign || function(target) {
2139
2214
  for (var i = 1; i < arguments.length; i++) {
2140
2215
  var source = arguments[i];
2141
2216
  for (var key in source) {
@@ -2146,12 +2221,12 @@ function _extends12() {
2146
2221
  }
2147
2222
  return target;
2148
2223
  };
2149
- return _extends12.apply(this, arguments);
2224
+ return _extends13.apply(this, arguments);
2150
2225
  }
2151
- function _objectWithoutProperties12(source, excluded) {
2226
+ function _objectWithoutProperties13(source, excluded) {
2152
2227
  if (source == null)
2153
2228
  return {};
2154
- var target = _objectWithoutPropertiesLoose12(source, excluded);
2229
+ var target = _objectWithoutPropertiesLoose13(source, excluded);
2155
2230
  var key, i;
2156
2231
  if (Object.getOwnPropertySymbols) {
2157
2232
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2166,7 +2241,7 @@ function _objectWithoutProperties12(source, excluded) {
2166
2241
  }
2167
2242
  return target;
2168
2243
  }
2169
- function _objectWithoutPropertiesLoose12(source, excluded) {
2244
+ function _objectWithoutPropertiesLoose13(source, excluded) {
2170
2245
  if (source == null)
2171
2246
  return {};
2172
2247
  var target = {};
@@ -2180,9 +2255,9 @@ function _objectWithoutPropertiesLoose12(source, excluded) {
2180
2255
  }
2181
2256
  return target;
2182
2257
  }
2183
- var Plus = (0, import_react14.forwardRef)(function(_ref, ref) {
2184
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties12(_ref, ["color", "size"]);
2185
- return /* @__PURE__ */ import_react14.default.createElement("svg", _extends12({
2258
+ var Plus = (0, import_react15.forwardRef)(function(_ref, ref) {
2259
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties13(_ref, ["color", "size"]);
2260
+ return /* @__PURE__ */ import_react15.default.createElement("svg", _extends13({
2186
2261
  ref,
2187
2262
  xmlns: "http://www.w3.org/2000/svg",
2188
2263
  width: size,
@@ -2193,12 +2268,12 @@ var Plus = (0, import_react14.forwardRef)(function(_ref, ref) {
2193
2268
  strokeWidth: "2",
2194
2269
  strokeLinecap: "round",
2195
2270
  strokeLinejoin: "round"
2196
- }, rest), /* @__PURE__ */ import_react14.default.createElement("line", {
2271
+ }, rest), /* @__PURE__ */ import_react15.default.createElement("line", {
2197
2272
  x1: "12",
2198
2273
  y1: "5",
2199
2274
  x2: "12",
2200
2275
  y2: "19"
2201
- }), /* @__PURE__ */ import_react14.default.createElement("line", {
2276
+ }), /* @__PURE__ */ import_react15.default.createElement("line", {
2202
2277
  x1: "5",
2203
2278
  y1: "12",
2204
2279
  x2: "19",
@@ -2206,18 +2281,18 @@ var Plus = (0, import_react14.forwardRef)(function(_ref, ref) {
2206
2281
  }));
2207
2282
  });
2208
2283
  Plus.propTypes = {
2209
- color: import_prop_types12.default.string,
2210
- size: import_prop_types12.default.oneOfType([import_prop_types12.default.string, import_prop_types12.default.number])
2284
+ color: import_prop_types13.default.string,
2285
+ size: import_prop_types13.default.oneOfType([import_prop_types13.default.string, import_prop_types13.default.number])
2211
2286
  };
2212
2287
  Plus.displayName = "Plus";
2213
2288
  var plus_default = Plus;
2214
2289
 
2215
2290
  // ../../node_modules/react-feather/dist/icons/sidebar.js
2216
2291
  init_react_import();
2217
- var import_react15 = __toESM(require("react"));
2218
- var import_prop_types13 = __toESM(require_prop_types());
2219
- function _extends13() {
2220
- _extends13 = Object.assign || function(target) {
2292
+ var import_react16 = __toESM(require("react"));
2293
+ var import_prop_types14 = __toESM(require_prop_types());
2294
+ function _extends14() {
2295
+ _extends14 = Object.assign || function(target) {
2221
2296
  for (var i = 1; i < arguments.length; i++) {
2222
2297
  var source = arguments[i];
2223
2298
  for (var key in source) {
@@ -2228,12 +2303,12 @@ function _extends13() {
2228
2303
  }
2229
2304
  return target;
2230
2305
  };
2231
- return _extends13.apply(this, arguments);
2306
+ return _extends14.apply(this, arguments);
2232
2307
  }
2233
- function _objectWithoutProperties13(source, excluded) {
2308
+ function _objectWithoutProperties14(source, excluded) {
2234
2309
  if (source == null)
2235
2310
  return {};
2236
- var target = _objectWithoutPropertiesLoose13(source, excluded);
2311
+ var target = _objectWithoutPropertiesLoose14(source, excluded);
2237
2312
  var key, i;
2238
2313
  if (Object.getOwnPropertySymbols) {
2239
2314
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2248,7 +2323,7 @@ function _objectWithoutProperties13(source, excluded) {
2248
2323
  }
2249
2324
  return target;
2250
2325
  }
2251
- function _objectWithoutPropertiesLoose13(source, excluded) {
2326
+ function _objectWithoutPropertiesLoose14(source, excluded) {
2252
2327
  if (source == null)
2253
2328
  return {};
2254
2329
  var target = {};
@@ -2262,9 +2337,9 @@ function _objectWithoutPropertiesLoose13(source, excluded) {
2262
2337
  }
2263
2338
  return target;
2264
2339
  }
2265
- var Sidebar = (0, import_react15.forwardRef)(function(_ref, ref) {
2266
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties13(_ref, ["color", "size"]);
2267
- return /* @__PURE__ */ import_react15.default.createElement("svg", _extends13({
2340
+ var Sidebar = (0, import_react16.forwardRef)(function(_ref, ref) {
2341
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties14(_ref, ["color", "size"]);
2342
+ return /* @__PURE__ */ import_react16.default.createElement("svg", _extends14({
2268
2343
  ref,
2269
2344
  xmlns: "http://www.w3.org/2000/svg",
2270
2345
  width: size,
@@ -2275,14 +2350,14 @@ var Sidebar = (0, import_react15.forwardRef)(function(_ref, ref) {
2275
2350
  strokeWidth: "2",
2276
2351
  strokeLinecap: "round",
2277
2352
  strokeLinejoin: "round"
2278
- }, rest), /* @__PURE__ */ import_react15.default.createElement("rect", {
2353
+ }, rest), /* @__PURE__ */ import_react16.default.createElement("rect", {
2279
2354
  x: "3",
2280
2355
  y: "3",
2281
2356
  width: "18",
2282
2357
  height: "18",
2283
2358
  rx: "2",
2284
2359
  ry: "2"
2285
- }), /* @__PURE__ */ import_react15.default.createElement("line", {
2360
+ }), /* @__PURE__ */ import_react16.default.createElement("line", {
2286
2361
  x1: "9",
2287
2362
  y1: "3",
2288
2363
  x2: "9",
@@ -2290,18 +2365,18 @@ var Sidebar = (0, import_react15.forwardRef)(function(_ref, ref) {
2290
2365
  }));
2291
2366
  });
2292
2367
  Sidebar.propTypes = {
2293
- color: import_prop_types13.default.string,
2294
- size: import_prop_types13.default.oneOfType([import_prop_types13.default.string, import_prop_types13.default.number])
2368
+ color: import_prop_types14.default.string,
2369
+ size: import_prop_types14.default.oneOfType([import_prop_types14.default.string, import_prop_types14.default.number])
2295
2370
  };
2296
2371
  Sidebar.displayName = "Sidebar";
2297
2372
  var sidebar_default = Sidebar;
2298
2373
 
2299
2374
  // ../../node_modules/react-feather/dist/icons/trash.js
2300
2375
  init_react_import();
2301
- var import_react16 = __toESM(require("react"));
2302
- var import_prop_types14 = __toESM(require_prop_types());
2303
- function _extends14() {
2304
- _extends14 = Object.assign || function(target) {
2376
+ var import_react17 = __toESM(require("react"));
2377
+ var import_prop_types15 = __toESM(require_prop_types());
2378
+ function _extends15() {
2379
+ _extends15 = Object.assign || function(target) {
2305
2380
  for (var i = 1; i < arguments.length; i++) {
2306
2381
  var source = arguments[i];
2307
2382
  for (var key in source) {
@@ -2312,12 +2387,12 @@ function _extends14() {
2312
2387
  }
2313
2388
  return target;
2314
2389
  };
2315
- return _extends14.apply(this, arguments);
2390
+ return _extends15.apply(this, arguments);
2316
2391
  }
2317
- function _objectWithoutProperties14(source, excluded) {
2392
+ function _objectWithoutProperties15(source, excluded) {
2318
2393
  if (source == null)
2319
2394
  return {};
2320
- var target = _objectWithoutPropertiesLoose14(source, excluded);
2395
+ var target = _objectWithoutPropertiesLoose15(source, excluded);
2321
2396
  var key, i;
2322
2397
  if (Object.getOwnPropertySymbols) {
2323
2398
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2332,7 +2407,7 @@ function _objectWithoutProperties14(source, excluded) {
2332
2407
  }
2333
2408
  return target;
2334
2409
  }
2335
- function _objectWithoutPropertiesLoose14(source, excluded) {
2410
+ function _objectWithoutPropertiesLoose15(source, excluded) {
2336
2411
  if (source == null)
2337
2412
  return {};
2338
2413
  var target = {};
@@ -2346,9 +2421,9 @@ function _objectWithoutPropertiesLoose14(source, excluded) {
2346
2421
  }
2347
2422
  return target;
2348
2423
  }
2349
- var Trash = (0, import_react16.forwardRef)(function(_ref, ref) {
2350
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties14(_ref, ["color", "size"]);
2351
- return /* @__PURE__ */ import_react16.default.createElement("svg", _extends14({
2424
+ var Trash = (0, import_react17.forwardRef)(function(_ref, ref) {
2425
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties15(_ref, ["color", "size"]);
2426
+ return /* @__PURE__ */ import_react17.default.createElement("svg", _extends15({
2352
2427
  ref,
2353
2428
  xmlns: "http://www.w3.org/2000/svg",
2354
2429
  width: size,
@@ -2359,25 +2434,25 @@ var Trash = (0, import_react16.forwardRef)(function(_ref, ref) {
2359
2434
  strokeWidth: "2",
2360
2435
  strokeLinecap: "round",
2361
2436
  strokeLinejoin: "round"
2362
- }, rest), /* @__PURE__ */ import_react16.default.createElement("polyline", {
2437
+ }, rest), /* @__PURE__ */ import_react17.default.createElement("polyline", {
2363
2438
  points: "3 6 5 6 21 6"
2364
- }), /* @__PURE__ */ import_react16.default.createElement("path", {
2439
+ }), /* @__PURE__ */ import_react17.default.createElement("path", {
2365
2440
  d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
2366
2441
  }));
2367
2442
  });
2368
2443
  Trash.propTypes = {
2369
- color: import_prop_types14.default.string,
2370
- size: import_prop_types14.default.oneOfType([import_prop_types14.default.string, import_prop_types14.default.number])
2444
+ color: import_prop_types15.default.string,
2445
+ size: import_prop_types15.default.oneOfType([import_prop_types15.default.string, import_prop_types15.default.number])
2371
2446
  };
2372
2447
  Trash.displayName = "Trash";
2373
2448
  var trash_default = Trash;
2374
2449
 
2375
2450
  // ../../node_modules/react-feather/dist/icons/type.js
2376
2451
  init_react_import();
2377
- var import_react17 = __toESM(require("react"));
2378
- var import_prop_types15 = __toESM(require_prop_types());
2379
- function _extends15() {
2380
- _extends15 = Object.assign || function(target) {
2452
+ var import_react18 = __toESM(require("react"));
2453
+ var import_prop_types16 = __toESM(require_prop_types());
2454
+ function _extends16() {
2455
+ _extends16 = Object.assign || function(target) {
2381
2456
  for (var i = 1; i < arguments.length; i++) {
2382
2457
  var source = arguments[i];
2383
2458
  for (var key in source) {
@@ -2388,12 +2463,12 @@ function _extends15() {
2388
2463
  }
2389
2464
  return target;
2390
2465
  };
2391
- return _extends15.apply(this, arguments);
2466
+ return _extends16.apply(this, arguments);
2392
2467
  }
2393
- function _objectWithoutProperties15(source, excluded) {
2468
+ function _objectWithoutProperties16(source, excluded) {
2394
2469
  if (source == null)
2395
2470
  return {};
2396
- var target = _objectWithoutPropertiesLoose15(source, excluded);
2471
+ var target = _objectWithoutPropertiesLoose16(source, excluded);
2397
2472
  var key, i;
2398
2473
  if (Object.getOwnPropertySymbols) {
2399
2474
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2408,7 +2483,7 @@ function _objectWithoutProperties15(source, excluded) {
2408
2483
  }
2409
2484
  return target;
2410
2485
  }
2411
- function _objectWithoutPropertiesLoose15(source, excluded) {
2486
+ function _objectWithoutPropertiesLoose16(source, excluded) {
2412
2487
  if (source == null)
2413
2488
  return {};
2414
2489
  var target = {};
@@ -2422,9 +2497,9 @@ function _objectWithoutPropertiesLoose15(source, excluded) {
2422
2497
  }
2423
2498
  return target;
2424
2499
  }
2425
- var Type = (0, import_react17.forwardRef)(function(_ref, ref) {
2426
- var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties15(_ref, ["color", "size"]);
2427
- return /* @__PURE__ */ import_react17.default.createElement("svg", _extends15({
2500
+ var Type = (0, import_react18.forwardRef)(function(_ref, ref) {
2501
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, _ref$size = _ref.size, size = _ref$size === void 0 ? 24 : _ref$size, rest = _objectWithoutProperties16(_ref, ["color", "size"]);
2502
+ return /* @__PURE__ */ import_react18.default.createElement("svg", _extends16({
2428
2503
  ref,
2429
2504
  xmlns: "http://www.w3.org/2000/svg",
2430
2505
  width: size,
@@ -2435,14 +2510,14 @@ var Type = (0, import_react17.forwardRef)(function(_ref, ref) {
2435
2510
  strokeWidth: "2",
2436
2511
  strokeLinecap: "round",
2437
2512
  strokeLinejoin: "round"
2438
- }, rest), /* @__PURE__ */ import_react17.default.createElement("polyline", {
2513
+ }, rest), /* @__PURE__ */ import_react18.default.createElement("polyline", {
2439
2514
  points: "4 7 4 4 20 4 20 7"
2440
- }), /* @__PURE__ */ import_react17.default.createElement("line", {
2515
+ }), /* @__PURE__ */ import_react18.default.createElement("line", {
2441
2516
  x1: "9",
2442
2517
  y1: "20",
2443
2518
  x2: "15",
2444
2519
  y2: "20"
2445
- }), /* @__PURE__ */ import_react17.default.createElement("line", {
2520
+ }), /* @__PURE__ */ import_react18.default.createElement("line", {
2446
2521
  x1: "12",
2447
2522
  y1: "4",
2448
2523
  x2: "12",
@@ -2450,18 +2525,18 @@ var Type = (0, import_react17.forwardRef)(function(_ref, ref) {
2450
2525
  }));
2451
2526
  });
2452
2527
  Type.propTypes = {
2453
- color: import_prop_types15.default.string,
2454
- size: import_prop_types15.default.oneOfType([import_prop_types15.default.string, import_prop_types15.default.number])
2528
+ color: import_prop_types16.default.string,
2529
+ size: import_prop_types16.default.oneOfType([import_prop_types16.default.string, import_prop_types16.default.number])
2455
2530
  };
2456
2531
  Type.displayName = "Type";
2457
2532
  var type_default = Type;
2458
2533
 
2459
2534
  // lib/use-modifier-held.ts
2460
2535
  init_react_import();
2461
- var import_react18 = require("react");
2536
+ var import_react19 = require("react");
2462
2537
  var useModifierHeld = (modifier) => {
2463
- const [modifierHeld, setModifierHeld] = (0, import_react18.useState)(false);
2464
- (0, import_react18.useEffect)(() => {
2538
+ const [modifierHeld, setModifierHeld] = (0, import_react19.useState)(false);
2539
+ (0, import_react19.useEffect)(() => {
2465
2540
  function downHandler({ key }) {
2466
2541
  if (key === modifier) {
2467
2542
  setModifierHeld(true);
@@ -2505,7 +2580,7 @@ var DraggableComponent = ({
2505
2580
  style
2506
2581
  }) => {
2507
2582
  const isModifierHeld = useModifierHeld("Alt");
2508
- (0, import_react19.useEffect)(onMount, []);
2583
+ (0, import_react20.useEffect)(onMount, []);
2509
2584
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2510
2585
  import_react_beautiful_dnd.Draggable,
2511
2586
  {
@@ -2549,13 +2624,13 @@ var DraggableComponent = ({
2549
2624
 
2550
2625
  // components/DroppableStrictMode/index.tsx
2551
2626
  init_react_import();
2552
- var import_react20 = require("react");
2627
+ var import_react21 = require("react");
2553
2628
  var import_react_beautiful_dnd2 = require("react-beautiful-dnd");
2554
2629
  var import_jsx_runtime3 = require("react/jsx-runtime");
2555
2630
  var DroppableStrictMode = (_a) => {
2556
2631
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
2557
- const [enabled, setEnabled] = (0, import_react20.useState)(false);
2558
- (0, import_react20.useEffect)(() => {
2632
+ const [enabled, setEnabled] = (0, import_react21.useState)(false);
2633
+ (0, import_react21.useEffect)(() => {
2559
2634
  const animation = requestAnimationFrame(() => setEnabled(true));
2560
2635
  return () => {
2561
2636
  cancelAnimationFrame(animation);
@@ -2589,11 +2664,13 @@ var setupZone = (data, zoneKey) => {
2589
2664
  };
2590
2665
 
2591
2666
  // lib/get-item.ts
2592
- var getItem = (selector, data) => {
2667
+ var getItem = (selector, data, dynamicProps = {}) => {
2593
2668
  if (!selector.zone || selector.zone === rootDroppableId) {
2594
- return data.content[selector.index];
2669
+ const item2 = data.content[selector.index];
2670
+ return __spreadProps(__spreadValues({}, item2), { props: dynamicProps[item2.props.id] || item2.props });
2595
2671
  }
2596
- return setupZone(data, selector.zone).zones[selector.zone][selector.index];
2672
+ const item = setupZone(data, selector.zone).zones[selector.zone][selector.index];
2673
+ return __spreadProps(__spreadValues({}, item), { props: dynamicProps[item.props.id] || item.props });
2597
2674
  };
2598
2675
 
2599
2676
  // lib/index.ts
@@ -2601,14 +2678,6 @@ init_react_import();
2601
2678
 
2602
2679
  // lib/filter.ts
2603
2680
  init_react_import();
2604
- var filter = (obj, validKeys) => {
2605
- return validKeys.reduce((acc, item) => {
2606
- if (typeof obj[item] !== "undefined") {
2607
- return __spreadProps(__spreadValues({}, acc), { [item]: obj[item] });
2608
- }
2609
- return acc;
2610
- }, {});
2611
- };
2612
2681
 
2613
2682
  // lib/reorder.ts
2614
2683
  init_react_import();
@@ -2634,7 +2703,7 @@ var styles_module_default2 = { "DropZone": "_DropZone_ou0z5_1", "DropZone-conten
2634
2703
 
2635
2704
  // components/DropZone/context.tsx
2636
2705
  init_react_import();
2637
- var import_react21 = require("react");
2706
+ var import_react22 = require("react");
2638
2707
  var import_use_debounce = require("use-debounce");
2639
2708
 
2640
2709
  // lib/get-zone-id.ts
@@ -2651,29 +2720,29 @@ var getZoneId = (zoneCompound) => {
2651
2720
 
2652
2721
  // components/DropZone/context.tsx
2653
2722
  var import_jsx_runtime4 = require("react/jsx-runtime");
2654
- var dropZoneContext = (0, import_react21.createContext)(null);
2723
+ var dropZoneContext = (0, import_react22.createContext)(null);
2655
2724
  var DropZoneProvider = ({
2656
2725
  children,
2657
2726
  value
2658
2727
  }) => {
2659
- const [hoveringArea, setHoveringArea] = (0, import_react21.useState)(null);
2660
- const [hoveringZone, setHoveringZone] = (0, import_react21.useState)(
2728
+ const [hoveringArea, setHoveringArea] = (0, import_react22.useState)(null);
2729
+ const [hoveringZone, setHoveringZone] = (0, import_react22.useState)(
2661
2730
  rootDroppableId
2662
2731
  );
2663
- const [hoveringComponent, setHoveringComponent] = (0, import_react21.useState)();
2732
+ const [hoveringComponent, setHoveringComponent] = (0, import_react22.useState)();
2664
2733
  const [hoveringAreaDb] = (0, import_use_debounce.useDebounce)(hoveringArea, 75, { leading: false });
2665
- const [areasWithZones, setAreasWithZones] = (0, import_react21.useState)(
2734
+ const [areasWithZones, setAreasWithZones] = (0, import_react22.useState)(
2666
2735
  {}
2667
2736
  );
2668
- const [activeZones, setActiveZones] = (0, import_react21.useState)({});
2737
+ const [activeZones, setActiveZones] = (0, import_react22.useState)({});
2669
2738
  const { dispatch = null } = value ? value : {};
2670
- const registerZoneArea = (0, import_react21.useCallback)(
2739
+ const registerZoneArea = (0, import_react22.useCallback)(
2671
2740
  (area) => {
2672
2741
  setAreasWithZones((latest) => __spreadProps(__spreadValues({}, latest), { [area]: true }));
2673
2742
  },
2674
2743
  [setAreasWithZones]
2675
2744
  );
2676
- const registerZone = (0, import_react21.useCallback)(
2745
+ const registerZone = (0, import_react22.useCallback)(
2677
2746
  (zoneCompound) => {
2678
2747
  if (!dispatch) {
2679
2748
  return;
@@ -2686,7 +2755,7 @@ var DropZoneProvider = ({
2686
2755
  },
2687
2756
  [setActiveZones, dispatch]
2688
2757
  );
2689
- const unregisterZone = (0, import_react21.useCallback)(
2758
+ const unregisterZone = (0, import_react22.useCallback)(
2690
2759
  (zoneCompound) => {
2691
2760
  if (!dispatch) {
2692
2761
  return;
@@ -2701,8 +2770,8 @@ var DropZoneProvider = ({
2701
2770
  },
2702
2771
  [setActiveZones, dispatch]
2703
2772
  );
2704
- const [pathData, setPathData] = (0, import_react21.useState)();
2705
- const registerPath = (0, import_react21.useCallback)(
2773
+ const [pathData, setPathData] = (0, import_react22.useState)();
2774
+ const registerPath = (0, import_react22.useCallback)(
2706
2775
  (selector) => {
2707
2776
  if (!(value == null ? void 0 : value.data)) {
2708
2777
  return;
@@ -2755,10 +2824,11 @@ var import_jsx_runtime5 = require("react/jsx-runtime");
2755
2824
  var getClassName3 = get_class_name_factory_default("DropZone", styles_module_default2);
2756
2825
  function DropZoneEdit({ zone, style }) {
2757
2826
  var _a;
2758
- const ctx = (0, import_react22.useContext)(dropZoneContext);
2827
+ const ctx = (0, import_react23.useContext)(dropZoneContext);
2759
2828
  const {
2760
2829
  // These all need setting via context
2761
2830
  data,
2831
+ dynamicProps = {},
2762
2832
  dispatch = () => null,
2763
2833
  config,
2764
2834
  itemSelector,
@@ -2772,12 +2842,12 @@ function DropZoneEdit({ zone, style }) {
2772
2842
  } = ctx || {};
2773
2843
  let content = data.content || [];
2774
2844
  let zoneCompound = rootDroppableId;
2775
- (0, import_react22.useEffect)(() => {
2845
+ (0, import_react23.useEffect)(() => {
2776
2846
  if (areaId && registerZoneArea) {
2777
2847
  registerZoneArea(areaId);
2778
2848
  }
2779
2849
  }, [areaId]);
2780
- (0, import_react22.useEffect)(() => {
2850
+ (0, import_react23.useEffect)(() => {
2781
2851
  if (ctx == null ? void 0 : ctx.registerZone) {
2782
2852
  ctx == null ? void 0 : ctx.registerZone(zoneCompound);
2783
2853
  }
@@ -2800,7 +2870,7 @@ function DropZoneEdit({ zone, style }) {
2800
2870
  const [draggedSourceArea] = getZoneId(draggedSourceId);
2801
2871
  const userIsDragging = !!draggedItem;
2802
2872
  const draggingOverArea = userIsDragging && zoneArea === draggedSourceArea;
2803
- const draggingNewComponent = draggedSourceId === "component-list";
2873
+ const draggingNewComponent = draggedSourceId == null ? void 0 : draggedSourceId.startsWith("component-list");
2804
2874
  if (!(ctx == null ? void 0 : ctx.config) || !ctx.setHoveringArea || !ctx.setHoveringZone || !ctx.setHoveringComponent || !ctx.setItemSelector || !ctx.registerPath || !ctx.dispatch) {
2805
2875
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { children: "DropZone requires context to work." });
2806
2876
  }
@@ -2860,7 +2930,7 @@ function DropZoneEdit({ zone, style }) {
2860
2930
  content.map((item, i) => {
2861
2931
  var _a2;
2862
2932
  const componentId = item.props.id;
2863
- const defaultedProps = __spreadProps(__spreadValues(__spreadValues({}, (_a2 = config.components[item.type]) == null ? void 0 : _a2.defaultProps), item.props), {
2933
+ const defaultedProps = __spreadProps(__spreadValues(__spreadValues({}, (_a2 = config.components[item.type]) == null ? void 0 : _a2.defaultProps), dynamicProps[item.props.id] || item.props), {
2864
2934
  editMode: true
2865
2935
  });
2866
2936
  const isSelected = (selectedItem == null ? void 0 : selectedItem.props.id) === componentId || false;
@@ -2989,7 +3059,7 @@ function DropZoneEdit({ zone, style }) {
2989
3059
  );
2990
3060
  }
2991
3061
  function DropZoneRender({ zone }) {
2992
- const ctx = (0, import_react22.useContext)(dropZoneContext);
3062
+ const ctx = (0, import_react23.useContext)(dropZoneContext);
2993
3063
  const { data, areaId = "root", config } = ctx || {};
2994
3064
  let zoneCompound = rootDroppableId;
2995
3065
  let content = (data == null ? void 0 : data.content) || [];
@@ -3016,7 +3086,7 @@ function DropZoneRender({ zone }) {
3016
3086
  }) });
3017
3087
  }
3018
3088
  function DropZone(props) {
3019
- const ctx = (0, import_react22.useContext)(dropZoneContext);
3089
+ const ctx = (0, import_react23.useContext)(dropZoneContext);
3020
3090
  if ((ctx == null ? void 0 : ctx.mode) === "edit") {
3021
3091
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DropZoneEdit, __spreadValues({}, props));
3022
3092
  }
@@ -3028,7 +3098,7 @@ init_react_import();
3028
3098
 
3029
3099
  // components/IconButton/IconButton.tsx
3030
3100
  init_react_import();
3031
- var import_react23 = require("react");
3101
+ var import_react24 = require("react");
3032
3102
 
3033
3103
  // css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css#css-module
3034
3104
  init_react_import();
@@ -3050,7 +3120,7 @@ var IconButton = ({
3050
3120
  fullWidth,
3051
3121
  title
3052
3122
  }) => {
3053
- const [loading, setLoading] = (0, import_react23.useState)(false);
3123
+ const [loading, setLoading] = (0, import_react24.useState)(false);
3054
3124
  const ElementType = href ? "a" : "button";
3055
3125
  const el = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
3056
3126
  ElementType,
@@ -3090,7 +3160,7 @@ var IconButton = ({
3090
3160
 
3091
3161
  // components/Puck/index.tsx
3092
3162
  init_react_import();
3093
- var import_react32 = require("react");
3163
+ var import_react34 = require("react");
3094
3164
  var import_react_beautiful_dnd5 = require("react-beautiful-dnd");
3095
3165
 
3096
3166
  // components/InputOrGroup/index.tsx
@@ -3108,7 +3178,7 @@ init_react_import();
3108
3178
 
3109
3179
  // css-module:/home/runner/work/puck/puck/packages/core/components/InputOrGroup/fields/ArrayField/styles.module.css#css-module
3110
3180
  init_react_import();
3111
- var styles_module_default4 = { "ArrayField": "_ArrayField_zp334_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_zp334_13", "ArrayField-addButton": "_ArrayField-addButton_zp334_17", "ArrayField--hasItems": "_ArrayField--hasItems_zp334_31", "ArrayFieldItem": "_ArrayFieldItem_zp334_45", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_zp334_53", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_zp334_58", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_zp334_72", "ArrayFieldItem-body": "_ArrayFieldItem-body_zp334_104", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_zp334_112", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_zp334_119", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_zp334_125", "ArrayFieldItem-action": "_ArrayFieldItem-action_zp334_125" };
3181
+ var styles_module_default4 = { "ArrayField": "_ArrayField_32vor_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_32vor_13", "ArrayField-addButton": "_ArrayField-addButton_32vor_17", "ArrayField--hasItems": "_ArrayField--hasItems_32vor_31", "ArrayFieldItem": "_ArrayFieldItem_32vor_45", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_32vor_53", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_32vor_58", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_32vor_72", "ArrayFieldItem-body": "_ArrayFieldItem-body_32vor_100", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_32vor_108", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_32vor_115", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_32vor_121", "ArrayFieldItem-action": "_ArrayFieldItem-action_32vor_121" };
3112
3182
 
3113
3183
  // components/InputOrGroup/fields/ArrayField/index.tsx
3114
3184
  var import_react_beautiful_dnd4 = require("react-beautiful-dnd");
@@ -3158,7 +3228,7 @@ var import_crypto = require("crypto");
3158
3228
  var generateId = (type) => `${type}-${(0, import_crypto.randomBytes)(20).toString("hex")}`;
3159
3229
 
3160
3230
  // components/InputOrGroup/fields/ArrayField/index.tsx
3161
- var import_react25 = require("react");
3231
+ var import_react26 = require("react");
3162
3232
 
3163
3233
  // components/DragIcon/index.tsx
3164
3234
  init_react_import();
@@ -3174,22 +3244,24 @@ var DragIcon = () => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { class
3174
3244
 
3175
3245
  // components/Puck/context.tsx
3176
3246
  init_react_import();
3177
- var import_react24 = require("react");
3247
+ var import_react25 = require("react");
3178
3248
  var defaultAppState = {
3179
3249
  data: { content: [], root: { title: "" } },
3180
3250
  ui: {
3181
3251
  leftSideBarVisible: true,
3182
3252
  arrayState: {},
3183
- itemSelector: null
3253
+ itemSelector: null,
3254
+ componentList: {}
3184
3255
  }
3185
3256
  };
3186
- var appContext = (0, import_react24.createContext)({
3257
+ var appContext = (0, import_react25.createContext)({
3187
3258
  state: defaultAppState,
3188
- dispatch: () => null
3259
+ dispatch: () => null,
3260
+ config: { components: {} }
3189
3261
  });
3190
3262
  var AppProvider = appContext.Provider;
3191
3263
  var useAppContext = () => {
3192
- const mainContext = (0, import_react24.useContext)(appContext);
3264
+ const mainContext = (0, import_react25.useContext)(appContext);
3193
3265
  const selectedItem = mainContext.state.ui.itemSelector ? getItem(mainContext.state.ui.itemSelector, mainContext.state.data) : void 0;
3194
3266
  return __spreadProps(__spreadValues({}, mainContext), {
3195
3267
  // Helpers
@@ -3216,7 +3288,7 @@ var ArrayField = ({
3216
3288
  name,
3217
3289
  label
3218
3290
  }) => {
3219
- const [arrayFieldId] = (0, import_react25.useState)(generateId("ArrayField"));
3291
+ const [arrayFieldId] = (0, import_react26.useState)(generateId("ArrayField"));
3220
3292
  const { state, setUi } = useAppContext();
3221
3293
  const arrayState = state.ui.arrayState[arrayFieldId] || {
3222
3294
  items: Array.from(value || []).map((v) => ({
@@ -3225,7 +3297,7 @@ var ArrayField = ({
3225
3297
  })),
3226
3298
  openId: ""
3227
3299
  };
3228
- const setArrayState = (0, import_react25.useCallback)(
3300
+ const setArrayState = (0, import_react26.useCallback)(
3229
3301
  (newArrayState, recordHistory = false) => {
3230
3302
  setUi(
3231
3303
  {
@@ -3238,7 +3310,7 @@ var ArrayField = ({
3238
3310
  },
3239
3311
  [arrayState]
3240
3312
  );
3241
- (0, import_react25.useEffect)(() => {
3313
+ (0, import_react26.useEffect)(() => {
3242
3314
  const newItems = Array.from(value || []).map((item, idx) => {
3243
3315
  var _a;
3244
3316
  return {
@@ -3248,7 +3320,7 @@ var ArrayField = ({
3248
3320
  });
3249
3321
  setArrayState({ items: newItems });
3250
3322
  }, [value]);
3251
- if (!field.arrayFields) {
3323
+ if (field.type !== "array" || !field.arrayFields) {
3252
3324
  return null;
3253
3325
  }
3254
3326
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: getClassNameInput(), children: [
@@ -3278,7 +3350,7 @@ var ArrayField = ({
3278
3350
  ref: provided.innerRef,
3279
3351
  className: getClassName6({
3280
3352
  isDraggingFrom: !!snapshot.draggingFromThisWith,
3281
- hasItems: value.length > 0
3353
+ hasItems: Array.isArray(value) && value.length > 0
3282
3354
  }),
3283
3355
  children: [
3284
3356
  Array.isArray(value) && value.length > 0 ? arrayState.items.map(({ _arrayId, data }, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
@@ -3433,7 +3505,7 @@ init_react_import();
3433
3505
 
3434
3506
  // components/ExternalInput/index.tsx
3435
3507
  init_react_import();
3436
- var import_react26 = require("react");
3508
+ var import_react27 = require("react");
3437
3509
 
3438
3510
  // css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
3439
3511
  init_react_import();
@@ -3447,10 +3519,11 @@ var ExternalInput = ({
3447
3519
  onChange,
3448
3520
  value = null
3449
3521
  }) => {
3450
- const [data, setData] = (0, import_react26.useState)([]);
3451
- const [isOpen, setOpen] = (0, import_react26.useState)(false);
3452
- const [selectedData, setSelectedData] = (0, import_react26.useState)(value);
3453
- const keys = (0, import_react26.useMemo)(() => {
3522
+ const { mapProp = (val) => val } = field.adaptor || {};
3523
+ const [data, setData] = (0, import_react27.useState)([]);
3524
+ const [isOpen, setOpen] = (0, import_react27.useState)(false);
3525
+ const [selectedData, setSelectedData] = (0, import_react27.useState)(value);
3526
+ const keys = (0, import_react27.useMemo)(() => {
3454
3527
  const validKeys = /* @__PURE__ */ new Set();
3455
3528
  for (const item of data) {
3456
3529
  for (const key of Object.keys(item)) {
@@ -3461,7 +3534,7 @@ var ExternalInput = ({
3461
3534
  }
3462
3535
  return Array.from(validKeys);
3463
3536
  }, [data]);
3464
- (0, import_react26.useEffect)(() => {
3537
+ (0, import_react27.useEffect)(() => {
3465
3538
  (() => __async(void 0, null, function* () {
3466
3539
  if (field.adaptor) {
3467
3540
  const listData = yield field.adaptor.fetchList(field.adaptorParams);
@@ -3524,9 +3597,9 @@ var ExternalInput = ({
3524
3597
  {
3525
3598
  style: { whiteSpace: "nowrap" },
3526
3599
  onClick: (e) => {
3527
- onChange(item);
3600
+ onChange(mapProp(item));
3528
3601
  setOpen(false);
3529
- setSelectedData(item);
3602
+ setSelectedData(mapProp(item));
3530
3603
  },
3531
3604
  children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("td", { children: item[key] }, key))
3532
3605
  },
@@ -3548,16 +3621,18 @@ var getClassName9 = get_class_name_factory_default("Input", styles_module_defaul
3548
3621
  var ExternalField = ({
3549
3622
  field,
3550
3623
  onChange,
3551
- readOnly,
3552
3624
  value,
3553
3625
  name,
3554
3626
  label
3555
3627
  }) => {
3556
- if (!field.adaptor) {
3628
+ if (field.type !== "external" || !field.adaptor) {
3557
3629
  return null;
3558
3630
  }
3559
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassName9(""), children: [
3560
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassName9("label"), children: name === "_data" ? "External content" : label || name }),
3631
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassName9(), children: [
3632
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassName9("label"), children: [
3633
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassName9("labelIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(link_default, { size: 16 }) }),
3634
+ label || name
3635
+ ] }),
3561
3636
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ExternalInput, { field, onChange, value })
3562
3637
  ] });
3563
3638
  };
@@ -3573,7 +3648,7 @@ var RadioField = ({
3573
3648
  value,
3574
3649
  name
3575
3650
  }) => {
3576
- if (!field.options) {
3651
+ if (field.type !== "radio" || !field.options) {
3577
3652
  return null;
3578
3653
  }
3579
3654
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: getClassName10(), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassName10("radioGroup"), children: [
@@ -3623,7 +3698,7 @@ var SelectField = ({
3623
3698
  value,
3624
3699
  name
3625
3700
  }) => {
3626
- if (!field.options) {
3701
+ if (field.type !== "select" || !field.options) {
3627
3702
  return null;
3628
3703
  }
3629
3704
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: getClassName11(), children: [
@@ -3740,49 +3815,99 @@ init_react_import();
3740
3815
 
3741
3816
  // css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css#css-module
3742
3817
  init_react_import();
3743
- var styles_module_default7 = { "ComponentList": "_ComponentList_bvy0z_1", "ComponentList-item": "_ComponentList-item_bvy0z_6", "ComponentList-itemIcon": "_ComponentList-itemIcon_bvy0z_24", "ComponentList--isDraggingFrom": "_ComponentList--isDraggingFrom_bvy0z_28" };
3818
+ var styles_module_default7 = { "ComponentList": "_ComponentList_3rdy2_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_3rdy2_6", "ComponentList-content": "_ComponentList-content_3rdy2_10", "ComponentList-title": "_ComponentList-title_3rdy2_18", "ComponentList-titleIcon": "_ComponentList-titleIcon_3rdy2_39", "ComponentListItem": "_ComponentListItem_3rdy2_43", "ComponentListItem-draggable": "_ComponentListItem-draggable_3rdy2_43", "ComponentListItemIcon": "_ComponentListItemIcon_3rdy2_61", "ComponentList--isDraggingFrom": "_ComponentList--isDraggingFrom_3rdy2_65" };
3744
3819
 
3745
3820
  // components/ComponentList/index.tsx
3746
3821
  var import_jsx_runtime17 = require("react/jsx-runtime");
3747
3822
  var getClassName14 = get_class_name_factory_default("ComponentList", styles_module_default7);
3748
- var ComponentList = ({ config }) => {
3749
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DroppableStrictMode_default, { droppableId: "component-list", isDropDisabled: true, children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3750
- "div",
3751
- __spreadProps(__spreadValues({}, provided.droppableProps), {
3752
- ref: provided.innerRef,
3753
- className: getClassName14({
3754
- isDraggingFrom: !!snapshot.draggingFromThisWith
3755
- }),
3756
- children: [
3757
- Object.keys(config.components).map((componentKey, i) => {
3758
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3759
- Draggable2,
3760
- {
3761
- id: componentKey,
3762
- index: i,
3763
- showShadow: true,
3764
- disableAnimations: true,
3765
- className: () => getClassName14("item"),
3766
- children: () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
3767
- componentKey,
3768
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: getClassName14("itemIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DragIcon, {}) })
3769
- ] })
3770
- },
3771
- componentKey
3772
- );
3773
- }),
3774
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { style: { display: "none" }, children: provided.placeholder })
3775
- ]
3776
- })
3823
+ var getClassNameItem2 = get_class_name_factory_default("ComponentListItem", styles_module_default7);
3824
+ var ComponentListItem = ({
3825
+ component,
3826
+ index,
3827
+ id
3828
+ }) => {
3829
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: getClassNameItem2(), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3830
+ Draggable2,
3831
+ {
3832
+ id,
3833
+ index,
3834
+ showShadow: true,
3835
+ disableAnimations: true,
3836
+ className: () => getClassNameItem2("draggable"),
3837
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
3838
+ component,
3839
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: getClassNameItem2("icon"), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DragIcon, {}) })
3840
+ ] })
3841
+ },
3842
+ component
3777
3843
  ) });
3778
3844
  };
3845
+ var ComponentList = ({
3846
+ children,
3847
+ title,
3848
+ id
3849
+ }) => {
3850
+ const { config, state, setUi } = useAppContext();
3851
+ const { expanded = true } = state.ui.componentList[id] || {};
3852
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: getClassName14({ isExpanded: expanded }), children: [
3853
+ title && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3854
+ "div",
3855
+ {
3856
+ className: getClassName14("title"),
3857
+ onClick: () => setUi({
3858
+ componentList: __spreadProps(__spreadValues({}, state.ui.componentList), {
3859
+ [id]: __spreadProps(__spreadValues({}, state.ui.componentList[id]), {
3860
+ expanded: !expanded
3861
+ })
3862
+ })
3863
+ }),
3864
+ title: expanded ? `Collapse${title ? ` ${title}` : ""}` : `Expand${title ? ` ${title}` : ""}`,
3865
+ children: [
3866
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: title }),
3867
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: getClassName14("titleIcon"), children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(chevron_up_default, { size: 12 }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(chevron_down_default, { size: 12 }) })
3868
+ ]
3869
+ }
3870
+ ),
3871
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: getClassName14("content"), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3872
+ DroppableStrictMode_default,
3873
+ {
3874
+ droppableId: `component-list${title ? `:${title}` : ""}`,
3875
+ isDropDisabled: true,
3876
+ children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3877
+ "div",
3878
+ __spreadProps(__spreadValues({}, provided.droppableProps), {
3879
+ ref: provided.innerRef,
3880
+ className: getClassName14({
3881
+ isDraggingFrom: !!snapshot.draggingFromThisWith
3882
+ }),
3883
+ children: [
3884
+ children || Object.keys(config.components).map((componentKey, i) => {
3885
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3886
+ ComponentListItem,
3887
+ {
3888
+ component: componentKey,
3889
+ index: i,
3890
+ id: componentKey
3891
+ },
3892
+ componentKey
3893
+ );
3894
+ }),
3895
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { style: { display: "none" }, children: provided.placeholder })
3896
+ ]
3897
+ })
3898
+ )
3899
+ }
3900
+ ) })
3901
+ ] });
3902
+ };
3903
+ ComponentList.Item = ComponentListItem;
3779
3904
 
3780
3905
  // lib/use-placeholder-style.ts
3781
3906
  init_react_import();
3782
- var import_react27 = require("react");
3907
+ var import_react28 = require("react");
3783
3908
  var usePlaceholderStyle = () => {
3784
3909
  const queryAttr = "data-rbd-drag-handle-draggable-id";
3785
- const [placeholderStyle, setPlaceholderStyle] = (0, import_react27.useState)();
3910
+ const [placeholderStyle, setPlaceholderStyle] = (0, import_react28.useState)();
3786
3911
  const onDragStartOrUpdate = (draggedItem) => {
3787
3912
  var _a;
3788
3913
  const draggableId = draggedItem.draggableId;
@@ -3837,7 +3962,7 @@ init_react_import();
3837
3962
 
3838
3963
  // css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
3839
3964
  init_react_import();
3840
- var styles_module_default9 = { "Heading": "_Heading_1bvy5_1", "Heading--xxxxl": "_Heading--xxxxl_1bvy5_13", "Heading--xxxl": "_Heading--xxxl_1bvy5_19", "Heading--xxl": "_Heading--xxl_1bvy5_23", "Heading--xl": "_Heading--xl_1bvy5_27", "Heading--l": "_Heading--l_1bvy5_31", "Heading--m": "_Heading--m_1bvy5_35", "Heading--s": "_Heading--s_1bvy5_39", "Heading--xs": "_Heading--xs_1bvy5_43" };
3965
+ var styles_module_default9 = { "Heading": "_Heading_7sjz7_1", "Heading--xxxxl": "_Heading--xxxxl_7sjz7_14", "Heading--xxxl": "_Heading--xxxl_7sjz7_20", "Heading--xxl": "_Heading--xxl_7sjz7_24", "Heading--xl": "_Heading--xl_7sjz7_28", "Heading--l": "_Heading--l_7sjz7_32", "Heading--m": "_Heading--m_7sjz7_36", "Heading--s": "_Heading--s_7sjz7_40", "Heading--xs": "_Heading--xs_7sjz7_44" };
3841
3966
 
3842
3967
  // components/Heading/index.tsx
3843
3968
  var import_jsx_runtime18 = require("react/jsx-runtime");
@@ -3857,7 +3982,7 @@ var Heading = ({ children, rank, size = "m" }) => {
3857
3982
 
3858
3983
  // lib/use-breadcrumbs.ts
3859
3984
  init_react_import();
3860
- var import_react28 = require("react");
3985
+ var import_react29 = require("react");
3861
3986
  var convertPathDataToBreadcrumbs = (selectedItem, pathData, data) => {
3862
3987
  const id = selectedItem ? selectedItem == null ? void 0 : selectedItem.props.id : "";
3863
3988
  const currentPathData = pathData && id && pathData[id] ? __spreadValues({}, pathData[id]) : { label: "Page", path: [] };
@@ -3907,8 +4032,8 @@ var useBreadcrumbs = (renderCount) => {
3907
4032
  state: { data },
3908
4033
  selectedItem
3909
4034
  } = useAppContext();
3910
- const dzContext = (0, import_react28.useContext)(dropZoneContext);
3911
- return (0, import_react28.useMemo)(() => {
4035
+ const dzContext = (0, import_react29.useContext)(dropZoneContext);
4036
+ return (0, import_react29.useMemo)(() => {
3912
4037
  const breadcrumbs = convertPathDataToBreadcrumbs(
3913
4038
  selectedItem,
3914
4039
  dzContext == null ? void 0 : dzContext.pathData,
@@ -3957,15 +4082,15 @@ init_react_import();
3957
4082
 
3958
4083
  // lib/use-puck-history.ts
3959
4084
  init_react_import();
3960
- var import_react30 = require("react");
4085
+ var import_react31 = require("react");
3961
4086
 
3962
4087
  // lib/use-action-history.ts
3963
4088
  init_react_import();
3964
- var import_react29 = require("react");
4089
+ var import_react30 = require("react");
3965
4090
  var EMPTY_HISTORY_INDEX = -1;
3966
4091
  function useActionHistory() {
3967
- const [histories, setHistories] = (0, import_react29.useState)([]);
3968
- const [currentHistoryIndex, setCurrentHistoryIndex] = (0, import_react29.useState)(EMPTY_HISTORY_INDEX);
4092
+ const [histories, setHistories] = (0, import_react30.useState)([]);
4093
+ const [currentHistoryIndex, setCurrentHistoryIndex] = (0, import_react30.useState)(EMPTY_HISTORY_INDEX);
3969
4094
  const currentHistory = histories[currentHistoryIndex];
3970
4095
  const canRewind = currentHistoryIndex > EMPTY_HISTORY_INDEX;
3971
4096
  const canForward = currentHistoryIndex < histories.length - 1;
@@ -4044,7 +4169,7 @@ function usePuckHistory({
4044
4169
  dispatch
4045
4170
  });
4046
4171
  }, DEBOUNCE_TIME);
4047
- (0, import_react30.useEffect)(() => {
4172
+ (0, import_react31.useEffect)(() => {
4048
4173
  historyEmitter.on(RECORD_DIFF, handleRecordDiff);
4049
4174
  return () => {
4050
4175
  historyEmitter.off(RECORD_DIFF, handleRecordDiff);
@@ -4389,7 +4514,7 @@ var scrollIntoView = (el) => {
4389
4514
  };
4390
4515
 
4391
4516
  // components/LayerTree/index.tsx
4392
- var import_react31 = require("react");
4517
+ var import_react32 = require("react");
4393
4518
 
4394
4519
  // lib/find-zones-for-area.ts
4395
4520
  init_react_import();
@@ -4427,7 +4552,7 @@ var LayerTree = ({
4427
4552
  label
4428
4553
  }) => {
4429
4554
  const zones = data.zones || {};
4430
- const ctx = (0, import_react31.useContext)(dropZoneContext);
4555
+ const ctx = (0, import_react32.useContext)(dropZoneContext);
4431
4556
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
4432
4557
  label && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: getClassName17("zoneTitle"), children: [
4433
4558
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName17("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(layers_default, { size: "16" }) }),
@@ -4550,8 +4675,98 @@ var flushZones = (appState) => {
4550
4675
  return appState;
4551
4676
  };
4552
4677
 
4553
- // components/Puck/index.tsx
4678
+ // lib/use-component-list.tsx
4679
+ init_react_import();
4680
+ var import_react33 = require("react");
4554
4681
  var import_jsx_runtime21 = require("react/jsx-runtime");
4682
+ var useComponentList = (config, ui) => {
4683
+ const [componentList, setComponentList] = (0, import_react33.useState)();
4684
+ (0, import_react33.useEffect)(() => {
4685
+ var _a, _b, _c;
4686
+ if (Object.keys(ui.componentList).length > 0) {
4687
+ const matchedComponents = [];
4688
+ let _componentList;
4689
+ _componentList = Object.entries(ui.componentList).map(
4690
+ ([categoryKey, category]) => {
4691
+ if (category.visible === false || !category.components) {
4692
+ return null;
4693
+ }
4694
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4695
+ ComponentList,
4696
+ {
4697
+ id: categoryKey,
4698
+ title: category.title || categoryKey,
4699
+ children: category.components.map((componentName, i) => {
4700
+ matchedComponents.push(componentName);
4701
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4702
+ ComponentList.Item,
4703
+ {
4704
+ component: componentName,
4705
+ index: i,
4706
+ id: `${categoryKey}::${componentName}`
4707
+ },
4708
+ componentName
4709
+ );
4710
+ })
4711
+ },
4712
+ categoryKey
4713
+ );
4714
+ }
4715
+ );
4716
+ const remainingComponents = Object.keys(config.components).filter(
4717
+ (component) => matchedComponents.indexOf(component) === -1
4718
+ );
4719
+ if (remainingComponents.length > 0 && !((_a = ui.componentList.other) == null ? void 0 : _a.components) && ((_b = ui.componentList.other) == null ? void 0 : _b.visible) !== false) {
4720
+ _componentList.push(
4721
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4722
+ ComponentList,
4723
+ {
4724
+ id: "other",
4725
+ title: ((_c = ui.componentList.other) == null ? void 0 : _c.title) || "Other",
4726
+ children: remainingComponents.map((componentName, i) => {
4727
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4728
+ ComponentList.Item,
4729
+ {
4730
+ component: componentName,
4731
+ index: i,
4732
+ id: `other::${componentName}`
4733
+ },
4734
+ componentName
4735
+ );
4736
+ })
4737
+ },
4738
+ "other"
4739
+ )
4740
+ );
4741
+ }
4742
+ setComponentList(_componentList);
4743
+ }
4744
+ }, [config.categories, ui.componentList]);
4745
+ return componentList;
4746
+ };
4747
+
4748
+ // lib/resolve-all-props.ts
4749
+ init_react_import();
4750
+ var resolveAllProps = (content, config) => __async(void 0, null, function* () {
4751
+ return yield Promise.all(
4752
+ content.map((item) => __async(void 0, null, function* () {
4753
+ const configForItem = config.components[item.type];
4754
+ if (configForItem.resolveProps) {
4755
+ const { props: resolvedProps, readOnly = {} } = yield configForItem.resolveProps(item.props);
4756
+ const { _meta: { readOnly: existingReadOnly = {} } = {} } = item.props || {};
4757
+ return __spreadProps(__spreadValues({}, item), {
4758
+ props: __spreadProps(__spreadValues({}, resolvedProps), {
4759
+ _meta: { readOnly: __spreadValues(__spreadValues({}, existingReadOnly), readOnly) }
4760
+ })
4761
+ });
4762
+ }
4763
+ return item;
4764
+ }))
4765
+ );
4766
+ });
4767
+
4768
+ // components/Puck/index.tsx
4769
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4555
4770
  var defaultPageFields = {
4556
4771
  title: { type: "text" }
4557
4772
  };
@@ -4563,7 +4778,7 @@ var PluginRenderer = ({
4563
4778
  renderMethod
4564
4779
  }) => {
4565
4780
  return plugins.filter((item) => item[renderMethod]).map((item) => item[renderMethod]).reduce(
4566
- (accChildren, Item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Item, { dispatch, state, children: accChildren }),
4781
+ (accChildren, Item) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Item, { dispatch, state, children: accChildren }),
4567
4782
  children
4568
4783
  );
4569
4784
  };
@@ -4573,27 +4788,60 @@ function Puck({
4573
4788
  onChange,
4574
4789
  onPublish,
4575
4790
  plugins = [],
4791
+ renderComponentList,
4576
4792
  renderHeader,
4577
4793
  renderHeaderActions,
4578
4794
  headerTitle,
4579
4795
  headerPath
4580
4796
  }) {
4581
4797
  var _a, _b;
4582
- const [reducer] = (0, import_react32.useState)(() => createReducer({ config }));
4798
+ const [dynamicProps, setDynamicProps] = (0, import_react34.useState)({});
4799
+ const [reducer] = (0, import_react34.useState)(() => createReducer({ config }));
4583
4800
  const initialAppState = __spreadProps(__spreadValues({}, defaultAppState), {
4584
- data: initialData
4801
+ data: initialData,
4802
+ ui: __spreadProps(__spreadValues({}, defaultAppState.ui), {
4803
+ // Store categories under componentList on state to allow render functions and plugins to modify
4804
+ componentList: config.categories ? Object.entries(config.categories).reduce(
4805
+ (acc, [categoryName, category]) => {
4806
+ return __spreadProps(__spreadValues({}, acc), {
4807
+ [categoryName]: {
4808
+ title: category.title,
4809
+ components: category.components,
4810
+ expanded: category.defaultExpanded,
4811
+ visible: category.visible
4812
+ }
4813
+ });
4814
+ },
4815
+ {}
4816
+ ) : {}
4817
+ })
4585
4818
  });
4586
- const [appState, dispatch] = (0, import_react32.useReducer)(
4819
+ const [appState, dispatch] = (0, import_react34.useReducer)(
4587
4820
  reducer,
4588
4821
  flushZones(initialAppState)
4589
4822
  );
4590
4823
  const { data, ui } = appState;
4824
+ (0, import_react34.useEffect)(() => {
4825
+ const flatContent = Object.keys(data.zones || {}).reduce(
4826
+ (acc, zone) => [...acc, ...data.zones[zone]],
4827
+ data.content
4828
+ );
4829
+ resolveAllProps(flatContent, config).then((dynamicContent) => {
4830
+ const newDynamicProps = dynamicContent.reduce(
4831
+ (acc, item) => {
4832
+ return __spreadProps(__spreadValues({}, acc), { [item.props.id]: item.props });
4833
+ },
4834
+ {}
4835
+ );
4836
+ setDynamicProps(newDynamicProps);
4837
+ });
4838
+ }, [data]);
4591
4839
  const { canForward, canRewind, rewind, forward } = usePuckHistory({
4592
4840
  appState,
4593
4841
  dispatch
4594
4842
  });
4595
4843
  const { itemSelector, leftSideBarVisible } = ui;
4596
- const setItemSelector = (0, import_react32.useCallback)(
4844
+ const setItemSelector = (0, import_react34.useCallback)(
4597
4845
  (newItemSelector) => {
4598
4846
  dispatch({
4599
4847
  type: "setUi",
@@ -4602,11 +4850,11 @@ function Puck({
4602
4850
  },
4603
4851
  []
4604
4852
  );
4605
- const selectedItem = itemSelector ? getItem(itemSelector, data) : null;
4606
- const Page = (0, import_react32.useCallback)(
4853
+ const selectedItem = itemSelector ? getItem(itemSelector, data, dynamicProps) : null;
4854
+ const Page = (0, import_react34.useCallback)(
4607
4855
  (pageProps) => {
4608
4856
  var _a2, _b2;
4609
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4857
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4610
4858
  PluginRenderer,
4611
4859
  {
4612
4860
  plugins,
@@ -4619,8 +4867,8 @@ function Puck({
4619
4867
  },
4620
4868
  [config.root]
4621
4869
  );
4622
- const PageFieldWrapper = (0, import_react32.useCallback)(
4623
- (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4870
+ const PageFieldWrapper = (0, import_react34.useCallback)(
4871
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4624
4872
  PluginRenderer,
4625
4873
  {
4626
4874
  plugins,
@@ -4632,8 +4880,8 @@ function Puck({
4632
4880
  ),
4633
4881
  []
4634
4882
  );
4635
- const ComponentFieldWrapper = (0, import_react32.useCallback)(
4636
- (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4883
+ const ComponentFieldWrapper = (0, import_react34.useCallback)(
4884
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4637
4885
  PluginRenderer,
4638
4886
  {
4639
4887
  plugins,
@@ -4645,16 +4893,34 @@ function Puck({
4645
4893
  ),
4646
4894
  []
4647
4895
  );
4896
+ const ComponentListWrapper = (0, import_react34.useCallback)((props) => {
4897
+ const children = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4898
+ PluginRenderer,
4899
+ {
4900
+ plugins,
4901
+ renderMethod: "renderComponentList",
4902
+ dispatch: props.dispatch,
4903
+ state: props.state,
4904
+ children: props.children
4905
+ }
4906
+ );
4907
+ return renderComponentList ? renderComponentList({
4908
+ children,
4909
+ dispatch,
4910
+ state: appState
4911
+ }) : children;
4912
+ }, []);
4648
4913
  const FieldWrapper = itemSelector ? ComponentFieldWrapper : PageFieldWrapper;
4649
4914
  const rootFields = ((_a = config.root) == null ? void 0 : _a.fields) || defaultPageFields;
4650
4915
  let fields = selectedItem ? ((_b = config.components[selectedItem.type]) == null ? void 0 : _b.fields) || {} : rootFields;
4651
- (0, import_react32.useEffect)(() => {
4916
+ (0, import_react34.useEffect)(() => {
4652
4917
  if (onChange)
4653
4918
  onChange(data);
4654
4919
  }, [data]);
4655
4920
  const { onDragStartOrUpdate, placeholderStyle } = usePlaceholderStyle();
4656
- const [draggedItem, setDraggedItem] = (0, import_react32.useState)();
4657
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "puck", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AppProvider, { value: { state: appState, dispatch }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4921
+ const [draggedItem, setDraggedItem] = (0, import_react34.useState)();
4922
+ const componentList = useComponentList(config, appState.ui);
4923
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "puck", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AppProvider, { value: { state: appState, dispatch, config }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4658
4924
  import_react_beautiful_dnd5.DragDropContext,
4659
4925
  {
4660
4926
  onDragUpdate: (update) => {
@@ -4670,10 +4936,11 @@ function Puck({
4670
4936
  if (!droppedItem.destination) {
4671
4937
  return;
4672
4938
  }
4673
- if (droppedItem.source.droppableId === "component-list" && droppedItem.destination) {
4939
+ if (droppedItem.source.droppableId.startsWith("component-list") && droppedItem.destination) {
4940
+ const [_, componentId] = droppedItem.draggableId.split("::");
4674
4941
  dispatch({
4675
4942
  type: "insert",
4676
- componentType: droppedItem.draggableId,
4943
+ componentType: componentId || droppedItem.draggableId,
4677
4944
  destinationIndex: droppedItem.destination.index,
4678
4945
  destinationZone: droppedItem.destination.droppableId
4679
4946
  });
@@ -4706,12 +4973,13 @@ function Puck({
4706
4973
  });
4707
4974
  }
4708
4975
  },
4709
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4976
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4710
4977
  DropZoneProvider,
4711
4978
  {
4712
4979
  value: {
4713
4980
  data,
4714
4981
  itemSelector,
4982
+ dynamicProps,
4715
4983
  setItemSelector,
4716
4984
  config,
4717
4985
  dispatch,
@@ -4720,8 +4988,8 @@ function Puck({
4720
4988
  mode: "edit",
4721
4989
  areaId: "root"
4722
4990
  },
4723
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(dropZoneContext.Consumer, { children: (ctx) => {
4724
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4991
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(dropZoneContext.Consumer, { children: (ctx) => {
4992
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4725
4993
  "div",
4726
4994
  {
4727
4995
  style: {
@@ -4737,7 +5005,7 @@ function Puck({
4737
5005
  right: 0
4738
5006
  },
4739
5007
  children: [
4740
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5008
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4741
5009
  "header",
4742
5010
  {
4743
5011
  style: {
@@ -4747,37 +5015,37 @@ function Puck({
4747
5015
  borderBottom: "1px solid var(--puck-color-grey-8)"
4748
5016
  },
4749
5017
  children: renderHeader ? renderHeader({
4750
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5018
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4751
5019
  Button,
4752
5020
  {
4753
5021
  onClick: () => {
4754
5022
  onPublish(data);
4755
5023
  },
4756
- icon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(globe_default, { size: "14px" }),
5024
+ icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(globe_default, { size: "14px" }),
4757
5025
  children: "Publish"
4758
5026
  }
4759
5027
  ),
4760
5028
  dispatch,
4761
5029
  state: appState
4762
- }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5030
+ }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4763
5031
  "div",
4764
5032
  {
4765
5033
  style: {
4766
5034
  display: "grid",
4767
5035
  padding: 16,
4768
5036
  gridTemplateAreas: '"left middle right"',
4769
- gridTemplateColumns: "288px auto 288px",
5037
+ gridTemplateColumns: "344px auto 344px",
4770
5038
  gridTemplateRows: "auto"
4771
5039
  },
4772
5040
  children: [
4773
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5041
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4774
5042
  "div",
4775
5043
  {
4776
5044
  style: {
4777
5045
  display: "flex",
4778
5046
  gap: 16
4779
5047
  },
4780
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5048
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4781
5049
  IconButton,
4782
5050
  {
4783
5051
  onClick: () => dispatch({
@@ -4787,12 +5055,12 @@ function Puck({
4787
5055
  }
4788
5056
  }),
4789
5057
  title: "Toggle left sidebar",
4790
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(sidebar_default, {})
5058
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(sidebar_default, {})
4791
5059
  }
4792
5060
  )
4793
5061
  }
4794
5062
  ),
4795
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5063
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4796
5064
  "div",
4797
5065
  {
4798
5066
  style: {
@@ -4800,19 +5068,19 @@ function Puck({
4800
5068
  justifyContent: "center",
4801
5069
  alignItems: "center"
4802
5070
  },
4803
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Heading, { rank: 2, size: "xs", children: [
5071
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Heading, { rank: 2, size: "xs", children: [
4804
5072
  headerTitle || data.root.title || "Page",
4805
- headerPath && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5073
+ headerPath && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4806
5074
  "small",
4807
5075
  {
4808
5076
  style: { fontWeight: 400, marginLeft: 4 },
4809
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("code", { children: headerPath })
5077
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("code", { children: headerPath })
4810
5078
  }
4811
5079
  )
4812
5080
  ] })
4813
5081
  }
4814
5082
  ),
4815
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5083
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4816
5084
  "div",
4817
5085
  {
4818
5086
  style: {
@@ -4821,14 +5089,14 @@ function Puck({
4821
5089
  justifyContent: "flex-end"
4822
5090
  },
4823
5091
  children: [
4824
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { style: { display: "flex" }, children: [
4825
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5092
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { style: { display: "flex" }, children: [
5093
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4826
5094
  IconButton,
4827
5095
  {
4828
5096
  title: "undo",
4829
5097
  disabled: !canRewind,
4830
5098
  onClick: rewind,
4831
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5099
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4832
5100
  chevron_left_default,
4833
5101
  {
4834
5102
  size: 21,
@@ -4837,13 +5105,13 @@ function Puck({
4837
5105
  )
4838
5106
  }
4839
5107
  ),
4840
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5108
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4841
5109
  IconButton,
4842
5110
  {
4843
5111
  title: "redo",
4844
5112
  disabled: !canForward,
4845
5113
  onClick: forward,
4846
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5114
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4847
5115
  chevron_right_default,
4848
5116
  {
4849
5117
  size: 21,
@@ -4857,13 +5125,13 @@ function Puck({
4857
5125
  state: appState,
4858
5126
  dispatch
4859
5127
  }),
4860
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5128
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4861
5129
  Button,
4862
5130
  {
4863
5131
  onClick: () => {
4864
5132
  onPublish(data);
4865
5133
  },
4866
- icon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(globe_default, { size: "14px" }),
5134
+ icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(globe_default, { size: "14px" }),
4867
5135
  children: "Publish"
4868
5136
  }
4869
5137
  )
@@ -4875,7 +5143,7 @@ function Puck({
4875
5143
  )
4876
5144
  }
4877
5145
  ),
4878
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5146
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4879
5147
  "div",
4880
5148
  {
4881
5149
  style: {
@@ -4887,9 +5155,9 @@ function Puck({
4887
5155
  flexDirection: "column"
4888
5156
  },
4889
5157
  children: [
4890
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SidebarSection, { title: "Components", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ComponentList, { config }) }),
4891
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SidebarSection, { title: "Outline", children: [
4892
- (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5158
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SidebarSection, { title: "Components", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ComponentListWrapper, { children: componentList ? componentList : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ComponentList, { id: "all" }) }) }),
5159
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(SidebarSection, { title: "Outline", children: [
5160
+ (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4893
5161
  LayerTree,
4894
5162
  {
4895
5163
  data,
@@ -4901,7 +5169,7 @@ function Puck({
4901
5169
  ),
4902
5170
  Object.entries(findZonesForArea(data, "root")).map(
4903
5171
  ([zoneKey, zone]) => {
4904
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5172
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4905
5173
  LayerTree,
4906
5174
  {
4907
5175
  data,
@@ -4919,7 +5187,7 @@ function Puck({
4919
5187
  ]
4920
5188
  }
4921
5189
  ),
4922
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5190
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4923
5191
  "div",
4924
5192
  {
4925
5193
  style: {
@@ -4932,7 +5200,7 @@ function Puck({
4932
5200
  onClick: () => setItemSelector(null),
4933
5201
  id: "puck-frame",
4934
5202
  children: [
4935
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5203
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4936
5204
  "div",
4937
5205
  {
4938
5206
  className: "puck-root",
@@ -4941,26 +5209,26 @@ function Puck({
4941
5209
  margin: 32,
4942
5210
  zoom: 0.75
4943
5211
  },
4944
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5212
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4945
5213
  "div",
4946
5214
  {
4947
5215
  style: {
4948
5216
  border: "1px solid var(--puck-color-grey-8)"
4949
5217
  },
4950
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5218
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4951
5219
  Page,
4952
5220
  __spreadProps(__spreadValues({
4953
5221
  dispatch,
4954
5222
  state: appState
4955
5223
  }, data.root), {
4956
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DropZone, { zone: rootDroppableId })
5224
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZone, { zone: rootDroppableId })
4957
5225
  })
4958
5226
  )
4959
5227
  }
4960
5228
  )
4961
5229
  }
4962
5230
  ),
4963
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5231
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4964
5232
  "div",
4965
5233
  {
4966
5234
  style: {
@@ -4973,7 +5241,7 @@ function Puck({
4973
5241
  ]
4974
5242
  }
4975
5243
  ),
4976
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5244
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4977
5245
  "div",
4978
5246
  {
4979
5247
  style: {
@@ -4985,49 +5253,25 @@ function Puck({
4985
5253
  flexDirection: "column",
4986
5254
  background: "var(--puck-color-white)"
4987
5255
  },
4988
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FieldWrapper, { dispatch, state: appState, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5256
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FieldWrapper, { dispatch, state: appState, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4989
5257
  SidebarSection,
4990
5258
  {
4991
5259
  noPadding: true,
4992
5260
  showBreadcrumbs: true,
4993
5261
  title: selectedItem ? selectedItem.type : "Page",
4994
5262
  children: Object.keys(fields).map((fieldName) => {
4995
- var _a2, _b2, _c, _d;
4996
5263
  const field = fields[fieldName];
4997
5264
  const onChange2 = (value) => {
4998
5265
  let currentProps;
4999
- let newProps;
5000
5266
  if (selectedItem) {
5001
5267
  currentProps = selectedItem.props;
5002
5268
  } else {
5003
5269
  currentProps = data.root;
5004
5270
  }
5005
- if (fieldName === "_data") {
5006
- if (!value) {
5007
- const _a3 = currentProps._meta || {}, { locked } = _a3, _meta = __objRest(_a3, ["locked"]);
5008
- newProps = __spreadProps(__spreadValues({}, currentProps), {
5009
- _data: void 0,
5010
- _meta
5011
- });
5012
- } else {
5013
- const changedFields = filter(
5014
- // filter out anything not supported by this component
5015
- value,
5016
- Object.keys(fields)
5017
- );
5018
- newProps = __spreadProps(__spreadValues(__spreadValues({}, currentProps), changedFields), {
5019
- _data: value,
5020
- // TODO perf - this is duplicative and will make payload larger
5021
- _meta: {
5022
- locked: Object.keys(changedFields)
5023
- }
5024
- });
5025
- }
5026
- } else {
5027
- newProps = __spreadProps(__spreadValues({}, currentProps), {
5028
- [fieldName]: value
5029
- });
5030
- }
5271
+ const _a2 = currentProps._meta || {}, { readOnly } = _a2, _meta = __objRest(_a2, ["readOnly"]);
5272
+ const newProps = __spreadProps(__spreadValues({}, currentProps), {
5273
+ [fieldName]: value
5274
+ });
5031
5275
  if (itemSelector) {
5032
5276
  dispatch({
5033
5277
  type: "replace",
@@ -5043,31 +5287,28 @@ function Puck({
5043
5287
  }
5044
5288
  };
5045
5289
  if (selectedItem && itemSelector) {
5046
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5290
+ const { readOnly = {} } = selectedItem.props._meta || {};
5291
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5047
5292
  InputOrGroup,
5048
5293
  {
5049
5294
  field,
5050
5295
  name: fieldName,
5051
5296
  label: field.label,
5052
- readOnly: ((_b2 = (_a2 = getItem(
5053
- itemSelector,
5054
- data
5055
- ).props._meta) == null ? void 0 : _a2.locked) == null ? void 0 : _b2.indexOf(fieldName)) > -1,
5297
+ readOnly: readOnly[fieldName],
5056
5298
  value: selectedItem.props[fieldName],
5057
5299
  onChange: onChange2
5058
5300
  },
5059
5301
  `${selectedItem.props.id}_${fieldName}`
5060
5302
  );
5061
5303
  } else {
5062
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5304
+ const { readOnly = {} } = data.root._meta || {};
5305
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5063
5306
  InputOrGroup,
5064
5307
  {
5065
5308
  field,
5066
5309
  name: fieldName,
5067
5310
  label: field.label,
5068
- readOnly: ((_d = (_c = data.root._meta) == null ? void 0 : _c.locked) == null ? void 0 : _d.indexOf(
5069
- fieldName
5070
- )) > -1,
5311
+ readOnly: readOnly[fieldName],
5071
5312
  value: data.root[fieldName],
5072
5313
  onChange: onChange2
5073
5314
  },
@@ -5091,13 +5332,29 @@ function Puck({
5091
5332
 
5092
5333
  // components/Render/index.tsx
5093
5334
  init_react_import();
5094
- var import_jsx_runtime22 = require("react/jsx-runtime");
5335
+ var import_jsx_runtime23 = require("react/jsx-runtime");
5095
5336
  function Render({ config, data }) {
5096
5337
  if (config.root) {
5097
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZoneProvider, { value: { data, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(config.root.render, __spreadProps(__spreadValues({}, data.root), { editMode: false, id: "puck-root", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZone, { zone: rootDroppableId }) })) });
5338
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropZoneProvider, { value: { data, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(config.root.render, __spreadProps(__spreadValues({}, data.root), { editMode: false, id: "puck-root", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropZone, { zone: rootDroppableId }) })) });
5098
5339
  }
5099
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZoneProvider, { value: { data, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZone, { zone: rootDroppableId }) });
5340
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropZoneProvider, { value: { data, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropZone, { zone: rootDroppableId }) });
5100
5341
  }
5342
+
5343
+ // lib/resolve-data.ts
5344
+ init_react_import();
5345
+ var resolveData = (data, config) => __async(void 0, null, function* () {
5346
+ const { zones = {} } = data;
5347
+ const zoneKeys = Object.keys(zones);
5348
+ const resolvedZones = {};
5349
+ for (let i = 0; i < zoneKeys.length; i++) {
5350
+ const zoneKey = zoneKeys[i];
5351
+ resolvedZones[zoneKey] = yield resolveAllProps(zones[zoneKey], config);
5352
+ }
5353
+ return __spreadProps(__spreadValues({}, data), {
5354
+ content: yield resolveAllProps(data.content, config),
5355
+ zones: resolvedZones
5356
+ });
5357
+ });
5101
5358
  // Annotate the CommonJS export names for ESM import in node:
5102
5359
  0 && (module.exports = {
5103
5360
  Button,
@@ -5107,7 +5364,8 @@ function Render({ config, data }) {
5107
5364
  IconButton,
5108
5365
  Puck,
5109
5366
  Render,
5110
- dropZoneContext
5367
+ dropZoneContext,
5368
+ resolveData
5111
5369
  });
5112
5370
  /*! Bundled license information:
5113
5371