@measured/puck 0.15.0-canary.e0448f0 → 0.15.0-canary.e2cd445

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8084,7 +8084,7 @@ var require_react_dom_development = __commonJS({
8084
8084
  var HostPortal = 4;
8085
8085
  var HostComponent = 5;
8086
8086
  var HostText = 6;
8087
- var Fragment18 = 7;
8087
+ var Fragment19 = 7;
8088
8088
  var Mode = 8;
8089
8089
  var ContextConsumer = 9;
8090
8090
  var ContextProvider = 10;
@@ -9240,7 +9240,7 @@ var require_react_dom_development = __commonJS({
9240
9240
  return "DehydratedFragment";
9241
9241
  case ForwardRef:
9242
9242
  return getWrappedName$1(type, type.render, "ForwardRef");
9243
- case Fragment18:
9243
+ case Fragment19:
9244
9244
  return "Fragment";
9245
9245
  case HostComponent:
9246
9246
  return type;
@@ -18911,7 +18911,7 @@ var require_react_dom_development = __commonJS({
18911
18911
  }
18912
18912
  }
18913
18913
  function updateFragment2(returnFiber, current2, fragment, lanes, key) {
18914
- if (current2 === null || current2.tag !== Fragment18) {
18914
+ if (current2 === null || current2.tag !== Fragment19) {
18915
18915
  var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
18916
18916
  created.return = returnFiber;
18917
18917
  return created;
@@ -19314,7 +19314,7 @@ var require_react_dom_development = __commonJS({
19314
19314
  if (child.key === key) {
19315
19315
  var elementType = element.type;
19316
19316
  if (elementType === REACT_FRAGMENT_TYPE) {
19317
- if (child.tag === Fragment18) {
19317
+ if (child.tag === Fragment19) {
19318
19318
  deleteRemainingChildren(returnFiber, child.sibling);
19319
19319
  var existing = useFiber(child, element.props.children);
19320
19320
  existing.return = returnFiber;
@@ -23489,7 +23489,7 @@ var require_react_dom_development = __commonJS({
23489
23489
  var _resolvedProps2 = workInProgress2.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
23490
23490
  return updateForwardRef(current2, workInProgress2, type, _resolvedProps2, renderLanes2);
23491
23491
  }
23492
- case Fragment18:
23492
+ case Fragment19:
23493
23493
  return updateFragment(current2, workInProgress2, renderLanes2);
23494
23494
  case Mode:
23495
23495
  return updateMode(current2, workInProgress2, renderLanes2);
@@ -23762,7 +23762,7 @@ var require_react_dom_development = __commonJS({
23762
23762
  case SimpleMemoComponent:
23763
23763
  case FunctionComponent:
23764
23764
  case ForwardRef:
23765
- case Fragment18:
23765
+ case Fragment19:
23766
23766
  case Mode:
23767
23767
  case Profiler:
23768
23768
  case ContextConsumer:
@@ -28021,7 +28021,7 @@ var require_react_dom_development = __commonJS({
28021
28021
  return fiber;
28022
28022
  }
28023
28023
  function createFiberFromFragment(elements, mode, lanes, key) {
28024
- var fiber = createFiber(Fragment18, elements, key, mode);
28024
+ var fiber = createFiber(Fragment19, elements, key, mode);
28025
28025
  fiber.lanes = lanes;
28026
28026
  return fiber;
28027
28027
  }
@@ -29151,7 +29151,7 @@ __export(core_exports, {
29151
29151
  DropZone: () => DropZone,
29152
29152
  DropZoneProvider: () => DropZoneProvider,
29153
29153
  FieldLabel: () => FieldLabel,
29154
- FieldLabelInternal: () => FieldLabelInternal3,
29154
+ FieldLabelInternal: () => FieldLabelInternal2,
29155
29155
  IconButton: () => IconButton,
29156
29156
  Puck: () => Puck,
29157
29157
  Render: () => Render,
@@ -29207,7 +29207,7 @@ var get_class_name_factory_default = getClassNameFactory;
29207
29207
 
29208
29208
  // css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css#css-module
29209
29209
  init_react_import();
29210
- var styles_module_default = { "Input": "_Input_1t4qc_1", "Input-label": "_Input-label_1t4qc_26", "Input-labelIcon": "_Input-labelIcon_1t4qc_34", "Input-disabledIcon": "_Input-disabledIcon_1t4qc_41", "Input-input": "_Input-input_1t4qc_46", "Input--readOnly": "_Input--readOnly_1t4qc_90", "Input-radioGroupItems": "_Input-radioGroupItems_1t4qc_102", "Input-radio": "_Input-radio_1t4qc_102", "Input-radioInner": "_Input-radioInner_1t4qc_119", "Input-radioInput": "_Input-radioInput_1t4qc_164" };
29210
+ var styles_module_default = { "Input": "_Input_1qi5b_1", "Input-label": "_Input-label_1qi5b_26", "Input-labelIcon": "_Input-labelIcon_1qi5b_34", "Input-disabledIcon": "_Input-disabledIcon_1qi5b_41", "Input-input": "_Input-input_1qi5b_46", "Input--readOnly": "_Input--readOnly_1qi5b_90", "Input-radioGroupItems": "_Input-radioGroupItems_1qi5b_101", "Input-radio": "_Input-radio_1qi5b_101", "Input-radioInner": "_Input-radioInner_1qi5b_118", "Input-radioInput": "_Input-radioInput_1qi5b_163" };
29211
29211
 
29212
29212
  // components/AutoField/index.tsx
29213
29213
  var import_react11 = require("react");
@@ -29220,7 +29220,7 @@ init_react_import();
29220
29220
 
29221
29221
  // css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ArrayField/styles.module.css#css-module
29222
29222
  init_react_import();
29223
- var styles_module_default2 = { "ArrayField": "_ArrayField_1lr58_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_1lr58_13", "ArrayField-addButton": "_ArrayField-addButton_1lr58_18", "ArrayField--hasItems": "_ArrayField--hasItems_1lr58_33", "ArrayFieldItem": "_ArrayFieldItem_1lr58_63", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_1lr58_71", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_1lr58_81", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_1lr58_97", "ArrayField--addDisabled": "_ArrayField--addDisabled_1lr58_128", "ArrayFieldItem-body": "_ArrayFieldItem-body_1lr58_164", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_1lr58_173", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_1lr58_180", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_1lr58_186" };
29223
+ var styles_module_default2 = { "ArrayField": "_ArrayField_1go19_5", "ArrayField--isDraggingFrom": "_ArrayField--isDraggingFrom_1go19_13", "ArrayField-addButton": "_ArrayField-addButton_1go19_18", "ArrayField--hasItems": "_ArrayField--hasItems_1go19_33", "ArrayFieldItem": "_ArrayFieldItem_1go19_63", "ArrayFieldItem--isDragging": "_ArrayFieldItem--isDragging_1go19_71", "ArrayFieldItem--isExpanded": "_ArrayFieldItem--isExpanded_1go19_81", "ArrayFieldItem-summary": "_ArrayFieldItem-summary_1go19_97", "ArrayField--addDisabled": "_ArrayField--addDisabled_1go19_128", "ArrayFieldItem-body": "_ArrayFieldItem-body_1go19_164", "ArrayFieldItem-fieldset": "_ArrayFieldItem-fieldset_1go19_173", "ArrayFieldItem-rhs": "_ArrayFieldItem-rhs_1go19_181", "ArrayFieldItem-actions": "_ArrayFieldItem-actions_1go19_187" };
29224
29224
 
29225
29225
  // ../../node_modules/lucide-react/dist/esm/lucide-react.js
29226
29226
  init_react_import();
@@ -29284,12 +29284,6 @@ var ChevronDown = createLucideIcon("ChevronDown", [
29284
29284
  ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
29285
29285
  ]);
29286
29286
 
29287
- // ../../node_modules/lucide-react/dist/esm/icons/chevron-left.js
29288
- init_react_import();
29289
- var ChevronLeft = createLucideIcon("ChevronLeft", [
29290
- ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
29291
- ]);
29292
-
29293
29287
  // ../../node_modules/lucide-react/dist/esm/icons/chevron-right.js
29294
29288
  init_react_import();
29295
29289
  var ChevronRight = createLucideIcon("ChevronRight", [
@@ -29409,6 +29403,13 @@ var Plus = createLucideIcon("Plus", [
29409
29403
  ["path", { d: "M12 5v14", key: "s699le" }]
29410
29404
  ]);
29411
29405
 
29406
+ // ../../node_modules/lucide-react/dist/esm/icons/redo-2.js
29407
+ init_react_import();
29408
+ var Redo2 = createLucideIcon("Redo2", [
29409
+ ["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
29410
+ ["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13", key: "19mnr4" }]
29411
+ ]);
29412
+
29412
29413
  // ../../node_modules/lucide-react/dist/esm/icons/search.js
29413
29414
  init_react_import();
29414
29415
  var Search = createLucideIcon("Search", [
@@ -29460,6 +29461,13 @@ var Type = createLucideIcon("Type", [
29460
29461
  ["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
29461
29462
  ]);
29462
29463
 
29464
+ // ../../node_modules/lucide-react/dist/esm/icons/undo-2.js
29465
+ init_react_import();
29466
+ var Undo2 = createLucideIcon("Undo2", [
29467
+ ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
29468
+ ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11", key: "llx8ln" }]
29469
+ ]);
29470
+
29463
29471
  // ../../node_modules/lucide-react/dist/esm/icons/unlock.js
29464
29472
  init_react_import();
29465
29473
  var Unlock = createLucideIcon("Unlock", [
@@ -29495,10 +29503,65 @@ var import_react3 = require("react");
29495
29503
  init_react_import();
29496
29504
  var IconButton_module_default = { "IconButton": "_IconButton_swpni_1", "IconButton--disabled": "_IconButton--disabled_swpni_20", "IconButton-title": "_IconButton-title_swpni_33" };
29497
29505
 
29498
- // components/IconButton/IconButton.tsx
29499
- var import_react_spinners = require("react-spinners");
29506
+ // components/Loader/index.tsx
29507
+ init_react_import();
29508
+
29509
+ // lib/index.ts
29510
+ init_react_import();
29511
+
29512
+ // lib/filter.ts
29513
+ init_react_import();
29514
+
29515
+ // lib/reorder.ts
29516
+ init_react_import();
29517
+ var reorder = (list, startIndex, endIndex) => {
29518
+ const result = Array.from(list);
29519
+ const [removed] = result.splice(startIndex, 1);
29520
+ result.splice(endIndex, 0, removed);
29521
+ return result;
29522
+ };
29523
+
29524
+ // lib/replace.ts
29525
+ init_react_import();
29526
+ var replace = (list, index, newItem) => {
29527
+ const result = Array.from(list);
29528
+ result.splice(index, 1);
29529
+ result.splice(index, 0, newItem);
29530
+ return result;
29531
+ };
29532
+
29533
+ // css-module:/home/runner/work/puck/puck/packages/core/components/Loader/styles.module.css#css-module
29534
+ init_react_import();
29535
+ var styles_module_default3 = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
29536
+
29537
+ // components/Loader/index.tsx
29500
29538
  var import_jsx_runtime = require("react/jsx-runtime");
29501
- var getClassName = get_class_name_factory_default("IconButton", IconButton_module_default);
29539
+ var getClassName = get_class_name_factory_default("Loader", styles_module_default3);
29540
+ var Loader = (_a) => {
29541
+ var _b = _a, {
29542
+ color,
29543
+ size = 16
29544
+ } = _b, props = __objRest(_b, [
29545
+ "color",
29546
+ "size"
29547
+ ]);
29548
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
29549
+ "span",
29550
+ __spreadValues({
29551
+ className: getClassName(),
29552
+ style: {
29553
+ width: size,
29554
+ height: size,
29555
+ color
29556
+ },
29557
+ "aria-label": "loading"
29558
+ }, props)
29559
+ );
29560
+ };
29561
+
29562
+ // components/IconButton/IconButton.tsx
29563
+ var import_jsx_runtime2 = require("react/jsx-runtime");
29564
+ var getClassName2 = get_class_name_factory_default("IconButton", IconButton_module_default);
29502
29565
  var IconButton = ({
29503
29566
  children,
29504
29567
  href,
@@ -29513,10 +29576,10 @@ var IconButton = ({
29513
29576
  }) => {
29514
29577
  const [loading, setLoading] = (0, import_react3.useState)(false);
29515
29578
  const ElementType = href ? "a" : "button";
29516
- const el = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
29579
+ const el = /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
29517
29580
  ElementType,
29518
29581
  {
29519
- className: getClassName({
29582
+ className: getClassName2({
29520
29583
  primary: variant === "primary",
29521
29584
  secondary: variant === "secondary",
29522
29585
  disabled,
@@ -29538,11 +29601,11 @@ var IconButton = ({
29538
29601
  href,
29539
29602
  title,
29540
29603
  children: [
29541
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: getClassName("title"), children: title }),
29604
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: getClassName2("title"), children: title }),
29542
29605
  children,
29543
- loading && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
29606
+ loading && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
29544
29607
  "\xA0\xA0",
29545
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_spinners.ClipLoader, { "aria-label": "Loading", color: "inherit", size: "14px" })
29608
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Loader, { size: 14 })
29546
29609
  ] })
29547
29610
  ]
29548
29611
  }
@@ -29550,30 +29613,6 @@ var IconButton = ({
29550
29613
  return el;
29551
29614
  };
29552
29615
 
29553
- // lib/index.ts
29554
- init_react_import();
29555
-
29556
- // lib/filter.ts
29557
- init_react_import();
29558
-
29559
- // lib/reorder.ts
29560
- init_react_import();
29561
- var reorder = (list, startIndex, endIndex) => {
29562
- const result = Array.from(list);
29563
- const [removed] = result.splice(startIndex, 1);
29564
- result.splice(endIndex, 0, removed);
29565
- return result;
29566
- };
29567
-
29568
- // lib/replace.ts
29569
- init_react_import();
29570
- var replace = (list, index, newItem) => {
29571
- const result = Array.from(list);
29572
- result.splice(index, 1);
29573
- result.splice(index, 0, newItem);
29574
- return result;
29575
- };
29576
-
29577
29616
  // components/Droppable/index.tsx
29578
29617
  init_react_import();
29579
29618
  var import_dnd = require("@measured/dnd");
@@ -29621,7 +29660,7 @@ var defaultViewports = [
29621
29660
 
29622
29661
  // components/Puck/context.tsx
29623
29662
  var import_ua_parser_js = require("ua-parser-js");
29624
- var import_jsx_runtime2 = require("react/jsx-runtime");
29663
+ var import_jsx_runtime3 = require("react/jsx-runtime");
29625
29664
  var defaultAppState = {
29626
29665
  data: { content: [], root: { props: {} } },
29627
29666
  ui: {
@@ -29691,7 +29730,7 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
29691
29730
  setSafariFallbackMode(true);
29692
29731
  }
29693
29732
  }, []);
29694
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
29733
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
29695
29734
  appContext.Provider,
29696
29735
  {
29697
29736
  value: __spreadProps(__spreadValues({}, value), {
@@ -29722,7 +29761,7 @@ function useAppContext() {
29722
29761
  }
29723
29762
 
29724
29763
  // components/Droppable/index.tsx
29725
- var import_jsx_runtime3 = require("react/jsx-runtime");
29764
+ var import_jsx_runtime4 = require("react/jsx-runtime");
29726
29765
  var defaultProvided = {
29727
29766
  droppableProps: {
29728
29767
  "data-rfd-droppable-context-id": "",
@@ -29737,17 +29776,17 @@ var defaultSnapshot = {
29737
29776
  draggingFromThisWith: null,
29738
29777
  isUsingPlaceholder: false
29739
29778
  };
29740
- var DefaultDroppable = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: children(defaultProvided, defaultSnapshot) });
29779
+ var DefaultDroppable = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: children(defaultProvided, defaultSnapshot) });
29741
29780
  var Droppable = (props) => {
29742
29781
  const { status } = useAppContext();
29743
29782
  const El = status !== "LOADING" ? import_dnd.Droppable : DefaultDroppable;
29744
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(El, __spreadValues({}, props));
29783
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(El, __spreadValues({}, props));
29745
29784
  };
29746
29785
 
29747
29786
  // components/Draggable/index.tsx
29748
29787
  init_react_import();
29749
29788
  var import_dnd2 = require("@measured/dnd");
29750
- var import_jsx_runtime4 = require("react/jsx-runtime");
29789
+ var import_jsx_runtime5 = require("react/jsx-runtime");
29751
29790
  var defaultProvided2 = {
29752
29791
  draggableProps: {
29753
29792
  "data-rfd-draggable-context-id": "",
@@ -29771,7 +29810,7 @@ var defaultRubric = {
29771
29810
  type: "",
29772
29811
  source: { droppableId: "", index: 0 }
29773
29812
  };
29774
- var DefaultDraggable = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: children(defaultProvided2, defaultSnapshot2, defaultRubric) });
29813
+ var DefaultDraggable = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: children(defaultProvided2, defaultSnapshot2, defaultRubric) });
29775
29814
  var Draggable = ({
29776
29815
  className,
29777
29816
  children,
@@ -29783,10 +29822,10 @@ var Draggable = ({
29783
29822
  }) => {
29784
29823
  const { status } = useAppContext();
29785
29824
  const El = status !== "LOADING" ? import_dnd2.Draggable : DefaultDraggable;
29786
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(El, { draggableId: id, index, isDragDisabled, children: (provided, snapshot) => {
29825
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(El, { draggableId: id, index, isDragDisabled, children: (provided, snapshot) => {
29787
29826
  var _a;
29788
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
29789
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
29827
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
29828
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
29790
29829
  "div",
29791
29830
  __spreadProps(__spreadValues(__spreadValues({
29792
29831
  className: className && className(provided, snapshot),
@@ -29798,7 +29837,7 @@ var Draggable = ({
29798
29837
  children: children(provided, snapshot)
29799
29838
  })
29800
29839
  ),
29801
- showShadow && snapshot.isDragging && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
29840
+ showShadow && snapshot.isDragging && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
29802
29841
  "div",
29803
29842
  {
29804
29843
  className: className && className(provided, snapshot),
@@ -29818,27 +29857,27 @@ init_react_import();
29818
29857
 
29819
29858
  // css-module:/home/runner/work/puck/puck/packages/core/components/DragIcon/styles.module.css#css-module
29820
29859
  init_react_import();
29821
- var styles_module_default3 = { "DragIcon": "_DragIcon_1p5wn_1" };
29860
+ var styles_module_default4 = { "DragIcon": "_DragIcon_1p5wn_1" };
29822
29861
 
29823
29862
  // components/DragIcon/index.tsx
29824
- var import_jsx_runtime5 = require("react/jsx-runtime");
29825
- var getClassName2 = get_class_name_factory_default("DragIcon", styles_module_default3);
29826
- var DragIcon = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: getClassName2(), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 20 20", width: "12", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" }) }) });
29863
+ var import_jsx_runtime6 = require("react/jsx-runtime");
29864
+ var getClassName3 = get_class_name_factory_default("DragIcon", styles_module_default4);
29865
+ var DragIcon = () => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: getClassName3(), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { viewBox: "0 0 20 20", width: "12", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" }) }) });
29827
29866
 
29828
29867
  // components/DragDropContext/index.tsx
29829
29868
  init_react_import();
29830
29869
  var import_dnd3 = require("@measured/dnd");
29831
- var import_jsx_runtime6 = require("react/jsx-runtime");
29832
- var DefaultDragDropContext = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children });
29870
+ var import_jsx_runtime7 = require("react/jsx-runtime");
29871
+ var DefaultDragDropContext = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children });
29833
29872
  var DragDropContext = (props) => {
29834
29873
  const { status } = useAppContext();
29835
29874
  const El = status !== "LOADING" ? import_dnd3.DragDropContext : DefaultDragDropContext;
29836
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(El, __spreadValues({}, props));
29875
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(El, __spreadValues({}, props));
29837
29876
  };
29838
29877
 
29839
29878
  // components/AutoField/fields/ArrayField/index.tsx
29840
- var import_jsx_runtime7 = require("react/jsx-runtime");
29841
- var getClassName3 = get_class_name_factory_default("ArrayField", styles_module_default2);
29879
+ var import_jsx_runtime8 = require("react/jsx-runtime");
29880
+ var getClassName4 = get_class_name_factory_default("ArrayField", styles_module_default2);
29842
29881
  var getClassNameItem = get_class_name_factory_default("ArrayFieldItem", styles_module_default2);
29843
29882
  var ArrayField = ({
29844
29883
  field,
@@ -29848,7 +29887,7 @@ var ArrayField = ({
29848
29887
  label,
29849
29888
  readOnly,
29850
29889
  id,
29851
- Label = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", __spreadValues({}, props))
29890
+ Label = (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", __spreadValues({}, props))
29852
29891
  }) => {
29853
29892
  const { state, setUi, selectedItem } = useAppContext();
29854
29893
  const readOnlyFields = (selectedItem == null ? void 0 : selectedItem.readOnly) || {};
@@ -29911,14 +29950,14 @@ var ArrayField = ({
29911
29950
  return null;
29912
29951
  }
29913
29952
  const addDisabled = field.max !== void 0 && localState.arrayState.items.length >= field.max || readOnly;
29914
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
29953
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
29915
29954
  Label,
29916
29955
  {
29917
29956
  label: label || name,
29918
- icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(List, { size: 16 }),
29957
+ icon: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(List, { size: 16 }),
29919
29958
  el: "div",
29920
29959
  readOnly,
29921
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
29960
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
29922
29961
  DragDropContext,
29923
29962
  {
29924
29963
  onDragEnd: (event) => {
@@ -29945,12 +29984,12 @@ var ArrayField = ({
29945
29984
  });
29946
29985
  }
29947
29986
  },
29948
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Droppable, { droppableId: "array", isDropDisabled: readOnly, children: (provided, snapshot) => {
29949
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
29987
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Droppable, { droppableId: "array", isDropDisabled: readOnly, children: (provided, snapshot) => {
29988
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
29950
29989
  "div",
29951
29990
  __spreadProps(__spreadValues({}, provided.droppableProps), {
29952
29991
  ref: provided.innerRef,
29953
- className: getClassName3({
29992
+ className: getClassName4({
29954
29993
  isDraggingFrom: !!snapshot.draggingFromThisWith,
29955
29994
  hasItems: Array.isArray(value) && value.length > 0,
29956
29995
  addDisabled
@@ -29967,7 +30006,7 @@ var ArrayField = ({
29967
30006
  localState.arrayState.items.map((item, i) => {
29968
30007
  const { _arrayId = `${id}-${i}`, _originalIndex = i } = item;
29969
30008
  const data = Array.from(localState.value || [])[i] || {};
29970
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
30009
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
29971
30010
  Draggable,
29972
30011
  {
29973
30012
  id: _arrayId,
@@ -29978,8 +30017,8 @@ var ArrayField = ({
29978
30017
  readOnly
29979
30018
  }),
29980
30019
  isDragDisabled: readOnly || !hovering,
29981
- children: () => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
29982
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
30020
+ children: () => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
30021
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
29983
30022
  "div",
29984
30023
  {
29985
30024
  onClick: () => {
@@ -30000,8 +30039,8 @@ var ArrayField = ({
30000
30039
  className: getClassNameItem("summary"),
30001
30040
  children: [
30002
30041
  field.getItemSummary ? field.getItemSummary(data, i) : `Item #${_originalIndex}`,
30003
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: getClassNameItem("rhs"), children: [
30004
- !readOnly && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassNameItem("actions"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassNameItem("action"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
30042
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: getClassNameItem("rhs"), children: [
30043
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: getClassNameItem("actions"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: getClassNameItem("action"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
30005
30044
  IconButton,
30006
30045
  {
30007
30046
  type: "button",
@@ -30024,20 +30063,20 @@ var ArrayField = ({
30024
30063
  );
30025
30064
  },
30026
30065
  title: "Delete",
30027
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Trash, { size: 16 })
30066
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Trash, { size: 16 })
30028
30067
  }
30029
30068
  ) }) }),
30030
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DragIcon, {}) })
30069
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DragIcon, {}) })
30031
30070
  ] })
30032
30071
  ]
30033
30072
  }
30034
30073
  ),
30035
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: getClassNameItem("body"), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("fieldset", { className: getClassNameItem("fieldset"), children: Object.keys(field.arrayFields).map(
30074
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: getClassNameItem("body"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("fieldset", { className: getClassNameItem("fieldset"), children: Object.keys(field.arrayFields).map(
30036
30075
  (fieldName) => {
30037
30076
  const subField = field.arrayFields[fieldName];
30038
30077
  const subFieldName = `${name}[${i}].${fieldName}`;
30039
30078
  const wildcardFieldName = `${name}[*].${fieldName}`;
30040
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
30079
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
30041
30080
  AutoFieldPrivate,
30042
30081
  {
30043
30082
  name: subFieldName,
@@ -30065,11 +30104,11 @@ var ArrayField = ({
30065
30104
  );
30066
30105
  }),
30067
30106
  provided.placeholder,
30068
- !addDisabled && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
30107
+ !addDisabled && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
30069
30108
  "button",
30070
30109
  {
30071
30110
  type: "button",
30072
- className: getClassName3("addButton"),
30111
+ className: getClassName4("addButton"),
30073
30112
  onClick: () => {
30074
30113
  const existingValue = value || [];
30075
30114
  const newValue = [
@@ -30079,7 +30118,7 @@ var ArrayField = ({
30079
30118
  const newArrayState = regenerateArrayState(newValue);
30080
30119
  onChange(newValue, mapArrayStateToUi(newArrayState));
30081
30120
  },
30082
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Plus, { size: 21 })
30121
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Plus, { size: 21 })
30083
30122
  }
30084
30123
  )
30085
30124
  ]
@@ -30094,8 +30133,8 @@ var ArrayField = ({
30094
30133
 
30095
30134
  // components/AutoField/fields/DefaultField/index.tsx
30096
30135
  init_react_import();
30097
- var import_jsx_runtime8 = require("react/jsx-runtime");
30098
- var getClassName4 = get_class_name_factory_default("Input", styles_module_default);
30136
+ var import_jsx_runtime9 = require("react/jsx-runtime");
30137
+ var getClassName5 = get_class_name_factory_default("Input", styles_module_default);
30099
30138
  var DefaultField = ({
30100
30139
  field,
30101
30140
  onChange,
@@ -30106,19 +30145,19 @@ var DefaultField = ({
30106
30145
  Label,
30107
30146
  id
30108
30147
  }) => {
30109
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
30148
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
30110
30149
  Label,
30111
30150
  {
30112
30151
  label: label || name,
30113
- icon: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
30114
- field.type === "text" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Type, { size: 16 }),
30115
- field.type === "number" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Hash, { size: 16 })
30152
+ icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
30153
+ field.type === "text" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Type, { size: 16 }),
30154
+ field.type === "number" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Hash, { size: 16 })
30116
30155
  ] }),
30117
30156
  readOnly,
30118
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
30157
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
30119
30158
  "input",
30120
30159
  {
30121
- className: getClassName4("input"),
30160
+ className: getClassName5("input"),
30122
30161
  autoComplete: "off",
30123
30162
  type: field.type,
30124
30163
  name,
@@ -30151,7 +30190,7 @@ var import_react8 = require("react");
30151
30190
 
30152
30191
  // css-module:/home/runner/work/puck/puck/packages/core/components/ExternalInput/styles.module.css#css-module
30153
30192
  init_react_import();
30154
- var styles_module_default4 = { "ExternalInput-actions": "_ExternalInput-actions_19obq_1", "ExternalInput-button": "_ExternalInput-button_19obq_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_19obq_25", "ExternalInput-detachButton": "_ExternalInput-detachButton_19obq_32", "ExternalInputModal": "_ExternalInputModal_19obq_74", "ExternalInputModal-grid": "_ExternalInputModal-grid_19obq_84", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_19obq_95", "ExternalInputModal-filters": "_ExternalInputModal-filters_19obq_100", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_19obq_119", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_19obq_128", "ExternalInputModal-table": "_ExternalInputModal-table_19obq_128", "ExternalInputModal-thead": "_ExternalInputModal-thead_19obq_144", "ExternalInputModal-th": "_ExternalInputModal-th_19obq_144", "ExternalInputModal-td": "_ExternalInputModal-td_19obq_159", "ExternalInputModal-tr": "_ExternalInputModal-tr_19obq_164", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_19obq_171", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_19obq_197", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_19obq_201", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_19obq_218", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_19obq_222", "ExternalInputModal-search": "_ExternalInputModal-search_19obq_222", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_19obq_259", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_19obq_284", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_19obq_294", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_19obq_308", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_19obq_321", "ExternalInputModal-footer": "_ExternalInputModal-footer_19obq_325" };
30193
+ var styles_module_default5 = { "ExternalInput-actions": "_ExternalInput-actions_19obq_1", "ExternalInput-button": "_ExternalInput-button_19obq_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_19obq_25", "ExternalInput-detachButton": "_ExternalInput-detachButton_19obq_32", "ExternalInputModal": "_ExternalInputModal_19obq_74", "ExternalInputModal-grid": "_ExternalInputModal-grid_19obq_84", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_19obq_95", "ExternalInputModal-filters": "_ExternalInputModal-filters_19obq_100", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_19obq_119", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_19obq_128", "ExternalInputModal-table": "_ExternalInputModal-table_19obq_128", "ExternalInputModal-thead": "_ExternalInputModal-thead_19obq_144", "ExternalInputModal-th": "_ExternalInputModal-th_19obq_144", "ExternalInputModal-td": "_ExternalInputModal-td_19obq_159", "ExternalInputModal-tr": "_ExternalInputModal-tr_19obq_164", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_19obq_171", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_19obq_197", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_19obq_201", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_19obq_218", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_19obq_222", "ExternalInputModal-search": "_ExternalInputModal-search_19obq_222", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_19obq_259", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_19obq_284", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_19obq_294", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_19obq_308", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_19obq_321", "ExternalInputModal-footer": "_ExternalInputModal-footer_19obq_325" };
30155
30194
 
30156
30195
  // components/Modal/index.tsx
30157
30196
  init_react_import();
@@ -30159,12 +30198,12 @@ var import_react6 = require("react");
30159
30198
 
30160
30199
  // css-module:/home/runner/work/puck/puck/packages/core/components/Modal/styles.module.css#css-module
30161
30200
  init_react_import();
30162
- var styles_module_default5 = { "Modal": "_Modal_ikbaj_1", "Modal--isOpen": "_Modal--isOpen_ikbaj_15", "Modal-inner": "_Modal-inner_ikbaj_19" };
30201
+ var styles_module_default6 = { "Modal": "_Modal_ikbaj_1", "Modal--isOpen": "_Modal--isOpen_ikbaj_15", "Modal-inner": "_Modal-inner_ikbaj_19" };
30163
30202
 
30164
30203
  // components/Modal/index.tsx
30165
30204
  var import_react_dom = __toESM(require_react_dom());
30166
- var import_jsx_runtime9 = require("react/jsx-runtime");
30167
- var getClassName5 = get_class_name_factory_default("Modal", styles_module_default5);
30205
+ var import_jsx_runtime10 = require("react/jsx-runtime");
30206
+ var getClassName6 = get_class_name_factory_default("Modal", styles_module_default6);
30168
30207
  var Modal = ({
30169
30208
  children,
30170
30209
  onClose,
@@ -30175,13 +30214,13 @@ var Modal = ({
30175
30214
  setRootEl(document.getElementById("puck-portal-root"));
30176
30215
  }, []);
30177
30216
  if (!rootEl) {
30178
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", {});
30217
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", {});
30179
30218
  }
30180
30219
  return (0, import_react_dom.createPortal)(
30181
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: getClassName5({ isOpen }), onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
30220
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: getClassName6({ isOpen }), onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
30182
30221
  "div",
30183
30222
  {
30184
- className: getClassName5("inner"),
30223
+ className: getClassName6("inner"),
30185
30224
  onClick: (e) => e.stopPropagation(),
30186
30225
  children
30187
30226
  }
@@ -30195,17 +30234,17 @@ init_react_import();
30195
30234
 
30196
30235
  // css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
30197
30236
  init_react_import();
30198
- var styles_module_default6 = { "Heading": "_Heading_qxrry_1", "Heading--xxxxl": "_Heading--xxxxl_qxrry_12", "Heading--xxxl": "_Heading--xxxl_qxrry_18", "Heading--xxl": "_Heading--xxl_qxrry_22", "Heading--xl": "_Heading--xl_qxrry_26", "Heading--l": "_Heading--l_qxrry_30", "Heading--m": "_Heading--m_qxrry_34", "Heading--s": "_Heading--s_qxrry_38", "Heading--xs": "_Heading--xs_qxrry_42" };
30237
+ var styles_module_default7 = { "Heading": "_Heading_qxrry_1", "Heading--xxxxl": "_Heading--xxxxl_qxrry_12", "Heading--xxxl": "_Heading--xxxl_qxrry_18", "Heading--xxl": "_Heading--xxl_qxrry_22", "Heading--xl": "_Heading--xl_qxrry_26", "Heading--l": "_Heading--l_qxrry_30", "Heading--m": "_Heading--m_qxrry_34", "Heading--s": "_Heading--s_qxrry_38", "Heading--xs": "_Heading--xs_qxrry_42" };
30199
30238
 
30200
30239
  // components/Heading/index.tsx
30201
- var import_jsx_runtime10 = require("react/jsx-runtime");
30202
- var getClassName6 = get_class_name_factory_default("Heading", styles_module_default6);
30240
+ var import_jsx_runtime11 = require("react/jsx-runtime");
30241
+ var getClassName7 = get_class_name_factory_default("Heading", styles_module_default7);
30203
30242
  var Heading = ({ children, rank, size = "m" }) => {
30204
30243
  const Tag = rank ? `h${rank}` : "span";
30205
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
30244
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
30206
30245
  Tag,
30207
30246
  {
30208
- className: getClassName6({
30247
+ className: getClassName7({
30209
30248
  [size]: true
30210
30249
  }),
30211
30250
  children
@@ -30213,9 +30252,6 @@ var Heading = ({ children, rank, size = "m" }) => {
30213
30252
  );
30214
30253
  };
30215
30254
 
30216
- // components/ExternalInput/index.tsx
30217
- var import_react_spinners3 = require("react-spinners");
30218
-
30219
30255
  // components/Button/index.ts
30220
30256
  init_react_import();
30221
30257
 
@@ -30228,9 +30264,8 @@ init_react_import();
30228
30264
  var Button_module_default = { "Button": "_Button_1t64k_1", "Button--medium": "_Button--medium_1t64k_29", "Button--large": "_Button--large_1t64k_37", "Button-icon": "_Button-icon_1t64k_44", "Button--primary": "_Button--primary_1t64k_48", "Button--secondary": "_Button--secondary_1t64k_67", "Button--flush": "_Button--flush_1t64k_84", "Button--disabled": "_Button--disabled_1t64k_88", "Button--fullWidth": "_Button--fullWidth_1t64k_95", "Button-spinner": "_Button-spinner_1t64k_100" };
30229
30265
 
30230
30266
  // components/Button/Button.tsx
30231
- var import_react_spinners2 = require("react-spinners");
30232
- var import_jsx_runtime11 = require("react/jsx-runtime");
30233
- var getClassName7 = get_class_name_factory_default("Button", Button_module_default);
30267
+ var import_jsx_runtime12 = require("react/jsx-runtime");
30268
+ var getClassName8 = get_class_name_factory_default("Button", Button_module_default);
30234
30269
  var Button = ({
30235
30270
  children,
30236
30271
  href,
@@ -30248,10 +30283,10 @@ var Button = ({
30248
30283
  const [loading, setLoading] = (0, import_react7.useState)(loadingProp);
30249
30284
  (0, import_react7.useEffect)(() => setLoading(loadingProp), [loadingProp]);
30250
30285
  const ElementType = href ? "a" : type ? "button" : "span";
30251
- const el = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
30286
+ const el = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
30252
30287
  ElementType,
30253
30288
  {
30254
- className: getClassName7({
30289
+ className: getClassName8({
30255
30290
  primary: variant === "primary",
30256
30291
  secondary: variant === "secondary",
30257
30292
  disabled,
@@ -30273,9 +30308,9 @@ var Button = ({
30273
30308
  rel: newTab ? "noreferrer" : void 0,
30274
30309
  href,
30275
30310
  children: [
30276
- icon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: getClassName7("icon"), children: icon }),
30311
+ icon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassName8("icon"), children: icon }),
30277
30312
  children,
30278
- loading && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: getClassName7("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_spinners2.ClipLoader, { "aria-label": "loading", color: "inherit", size: "14px" }) })
30313
+ loading && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassName8("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Loader, { size: 14 }) })
30279
30314
  ]
30280
30315
  }
30281
30316
  );
@@ -30283,9 +30318,9 @@ var Button = ({
30283
30318
  };
30284
30319
 
30285
30320
  // components/ExternalInput/index.tsx
30286
- var import_jsx_runtime12 = require("react/jsx-runtime");
30287
- var getClassName8 = get_class_name_factory_default("ExternalInput", styles_module_default4);
30288
- var getClassNameModal = get_class_name_factory_default("ExternalInputModal", styles_module_default4);
30321
+ var import_jsx_runtime13 = require("react/jsx-runtime");
30322
+ var getClassName9 = get_class_name_factory_default("ExternalInput", styles_module_default5);
30323
+ var getClassNameModal = get_class_name_factory_default("ExternalInputModal", styles_module_default5);
30289
30324
  var dataCache = {};
30290
30325
  var ExternalInput = ({
30291
30326
  field,
@@ -30336,40 +30371,40 @@ var ExternalInput = ({
30336
30371
  (0, import_react8.useEffect)(() => {
30337
30372
  search(searchQuery, filters);
30338
30373
  }, []);
30339
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
30374
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
30340
30375
  "div",
30341
30376
  {
30342
- className: getClassName8({
30377
+ className: getClassName9({
30343
30378
  dataSelected: !!value,
30344
30379
  modalVisible: isOpen
30345
30380
  }),
30346
30381
  id,
30347
30382
  children: [
30348
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassName8("actions"), children: [
30349
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30383
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassName9("actions"), children: [
30384
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30350
30385
  "button",
30351
30386
  {
30352
30387
  type: "button",
30353
30388
  onClick: () => setOpen(true),
30354
- className: getClassName8("button"),
30355
- children: value ? field.getItemSummary ? field.getItemSummary(value) : "External item" : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
30356
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Link, { size: "16" }),
30357
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: field.placeholder })
30389
+ className: getClassName9("button"),
30390
+ children: value ? field.getItemSummary ? field.getItemSummary(value) : "External item" : /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
30391
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Link, { size: "16" }),
30392
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: field.placeholder })
30358
30393
  ] })
30359
30394
  }
30360
30395
  ),
30361
- value && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30396
+ value && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30362
30397
  "button",
30363
30398
  {
30364
- className: getClassName8("detachButton"),
30399
+ className: getClassName9("detachButton"),
30365
30400
  onClick: () => {
30366
30401
  onChange(null);
30367
30402
  },
30368
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Unlock, { size: 16 })
30403
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Unlock, { size: 16 })
30369
30404
  }
30370
30405
  )
30371
30406
  ] }),
30372
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Modal, { onClose: () => setOpen(false), isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
30407
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Modal, { onClose: () => setOpen(false), isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
30373
30408
  "form",
30374
30409
  {
30375
30410
  className: getClassNameModal({
@@ -30383,11 +30418,11 @@ var ExternalInput = ({
30383
30418
  search(searchQuery, filters);
30384
30419
  },
30385
30420
  children: [
30386
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameModal("masthead"), children: field.showSearch ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassNameModal("searchForm"), children: [
30387
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("label", { className: getClassNameModal("search"), children: [
30388
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: getClassNameModal("searchIconText"), children: "Search" }),
30389
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameModal("searchIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Search, { size: "18" }) }),
30390
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30421
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: getClassNameModal("masthead"), children: field.showSearch ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassNameModal("searchForm"), children: [
30422
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("label", { className: getClassNameModal("search"), children: [
30423
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: getClassNameModal("searchIconText"), children: "Search" }),
30424
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: getClassNameModal("searchIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Search, { size: "18" }) }),
30425
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30391
30426
  "input",
30392
30427
  {
30393
30428
  className: getClassNameModal("searchInput"),
@@ -30402,9 +30437,9 @@ var ExternalInput = ({
30402
30437
  }
30403
30438
  )
30404
30439
  ] }),
30405
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassNameModal("searchActions"), children: [
30406
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button, { type: "submit", loading: isLoading, fullWidth: true, children: "Search" }),
30407
- hasFilterFields && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameModal("searchActionIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30440
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassNameModal("searchActions"), children: [
30441
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button, { type: "submit", loading: isLoading, fullWidth: true, children: "Search" }),
30442
+ hasFilterFields && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: getClassNameModal("searchActionIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30408
30443
  IconButton,
30409
30444
  {
30410
30445
  title: "Toggle filters",
@@ -30413,15 +30448,15 @@ var ExternalInput = ({
30413
30448
  e.stopPropagation();
30414
30449
  setFiltersToggled(!filtersToggled);
30415
30450
  },
30416
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SlidersHorizontal, { size: 20 })
30451
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(SlidersHorizontal, { size: 20 })
30417
30452
  }
30418
30453
  ) })
30419
30454
  ] })
30420
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Heading, { rank: 2, size: "xs", children: field.placeholder || "Select data" }) }),
30421
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassNameModal("grid"), children: [
30422
- hasFilterFields && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameModal("filters"), children: hasFilterFields && Object.keys(filterFields).map((fieldName) => {
30455
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Heading, { rank: 2, size: "xs", children: field.placeholder || "Select data" }) }),
30456
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassNameModal("grid"), children: [
30457
+ hasFilterFields && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: getClassNameModal("filters"), children: hasFilterFields && Object.keys(filterFields).map((fieldName) => {
30423
30458
  const filterField = filterFields[fieldName];
30424
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30459
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30425
30460
  AutoFieldPrivate,
30426
30461
  {
30427
30462
  field: filterField,
@@ -30438,9 +30473,9 @@ var ExternalInput = ({
30438
30473
  fieldName
30439
30474
  );
30440
30475
  }) }),
30441
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassNameModal("tableWrapper"), children: [
30442
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("table", { className: getClassNameModal("table"), children: [
30443
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("thead", { className: getClassNameModal("thead"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("tr", { className: getClassNameModal("tr"), children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30476
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassNameModal("tableWrapper"), children: [
30477
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("table", { className: getClassNameModal("table"), children: [
30478
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("thead", { className: getClassNameModal("thead"), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tr", { className: getClassNameModal("tr"), children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30444
30479
  "th",
30445
30480
  {
30446
30481
  className: getClassNameModal("th"),
@@ -30449,8 +30484,8 @@ var ExternalInput = ({
30449
30484
  },
30450
30485
  key
30451
30486
  )) }) }),
30452
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("tbody", { className: getClassNameModal("tbody"), children: mappedData.map((item, i) => {
30453
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
30487
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tbody", { className: getClassNameModal("tbody"), children: mappedData.map((item, i) => {
30488
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30454
30489
  "tr",
30455
30490
  {
30456
30491
  style: { whiteSpace: "nowrap" },
@@ -30459,16 +30494,16 @@ var ExternalInput = ({
30459
30494
  onChange(mapProp(data[i]));
30460
30495
  setOpen(false);
30461
30496
  },
30462
- children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("td", { className: getClassNameModal("td"), children: item[key] }, key))
30497
+ children: keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("td", { className: getClassNameModal("td"), children: item[key] }, key))
30463
30498
  },
30464
30499
  i
30465
30500
  );
30466
30501
  }) })
30467
30502
  ] }),
30468
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: getClassNameModal("loadingBanner"), children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_spinners3.ClipLoader, { size: 24, "aria-label": "Loading" }) })
30503
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: getClassNameModal("loadingBanner"), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Loader, { size: 24 }) })
30469
30504
  ] })
30470
30505
  ] }),
30471
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: getClassNameModal("footer"), children: [
30506
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: getClassNameModal("footer"), children: [
30472
30507
  mappedData.length,
30473
30508
  " result",
30474
30509
  mappedData.length === 1 ? "" : "s"
@@ -30482,7 +30517,7 @@ var ExternalInput = ({
30482
30517
  };
30483
30518
 
30484
30519
  // components/AutoField/fields/ExternalField/index.tsx
30485
- var import_jsx_runtime13 = require("react/jsx-runtime");
30520
+ var import_jsx_runtime14 = require("react/jsx-runtime");
30486
30521
  var ExternalField = ({
30487
30522
  field,
30488
30523
  onChange,
@@ -30505,7 +30540,7 @@ var ExternalField = ({
30505
30540
  if (field.type !== "external") {
30506
30541
  return null;
30507
30542
  }
30508
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Label, { label: label || name, icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Link, { size: 16 }), el: "div", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
30543
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Label, { label: label || name, icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Link, { size: 16 }), el: "div", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
30509
30544
  ExternalInput,
30510
30545
  {
30511
30546
  name,
@@ -30529,8 +30564,8 @@ var ExternalField = ({
30529
30564
 
30530
30565
  // components/AutoField/fields/RadioField/index.tsx
30531
30566
  init_react_import();
30532
- var import_jsx_runtime14 = require("react/jsx-runtime");
30533
- var getClassName9 = get_class_name_factory_default("Input", styles_module_default);
30567
+ var import_jsx_runtime15 = require("react/jsx-runtime");
30568
+ var getClassName10 = get_class_name_factory_default("Input", styles_module_default);
30534
30569
  var RadioField = ({
30535
30570
  field,
30536
30571
  onChange,
@@ -30544,23 +30579,23 @@ var RadioField = ({
30544
30579
  if (field.type !== "radio" || !field.options) {
30545
30580
  return null;
30546
30581
  }
30547
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
30582
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
30548
30583
  Label,
30549
30584
  {
30550
- icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CheckCircle, { size: 16 }),
30585
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CheckCircle, { size: 16 }),
30551
30586
  label: label || name,
30552
30587
  readOnly,
30553
30588
  el: "div",
30554
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: getClassName9("radioGroupItems"), id, children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
30589
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassName10("radioGroupItems"), id, children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
30555
30590
  "label",
30556
30591
  {
30557
- className: getClassName9("radio"),
30592
+ className: getClassName10("radio"),
30558
30593
  children: [
30559
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
30594
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
30560
30595
  "input",
30561
30596
  {
30562
30597
  type: "radio",
30563
- className: getClassName9("radioInput"),
30598
+ className: getClassName10("radioInput"),
30564
30599
  value: option.value,
30565
30600
  name,
30566
30601
  onChange: (e) => {
@@ -30574,7 +30609,7 @@ var RadioField = ({
30574
30609
  checked: value === option.value
30575
30610
  }
30576
30611
  ),
30577
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: getClassName9("radioInner"), children: option.label || option.value })
30612
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassName10("radioInner"), children: option.label || option.value })
30578
30613
  ]
30579
30614
  },
30580
30615
  option.label + option.value
@@ -30585,8 +30620,8 @@ var RadioField = ({
30585
30620
 
30586
30621
  // components/AutoField/fields/SelectField/index.tsx
30587
30622
  init_react_import();
30588
- var import_jsx_runtime15 = require("react/jsx-runtime");
30589
- var getClassName10 = get_class_name_factory_default("Input", styles_module_default);
30623
+ var import_jsx_runtime16 = require("react/jsx-runtime");
30624
+ var getClassName11 = get_class_name_factory_default("Input", styles_module_default);
30590
30625
  var SelectField = ({
30591
30626
  field,
30592
30627
  onChange,
@@ -30600,17 +30635,17 @@ var SelectField = ({
30600
30635
  if (field.type !== "select" || !field.options) {
30601
30636
  return null;
30602
30637
  }
30603
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
30638
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
30604
30639
  Label,
30605
30640
  {
30606
30641
  label: label || name,
30607
- icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChevronDown, { size: 16 }),
30642
+ icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ChevronDown, { size: 16 }),
30608
30643
  readOnly,
30609
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
30644
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
30610
30645
  "select",
30611
30646
  {
30612
30647
  id,
30613
- className: getClassName10("input"),
30648
+ className: getClassName11("input"),
30614
30649
  disabled: readOnly,
30615
30650
  onChange: (e) => {
30616
30651
  if (e.currentTarget.value === "true" || e.currentTarget.value === "false") {
@@ -30620,7 +30655,7 @@ var SelectField = ({
30620
30655
  onChange(e.currentTarget.value);
30621
30656
  },
30622
30657
  value,
30623
- children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
30658
+ children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
30624
30659
  "option",
30625
30660
  {
30626
30661
  label: option.label,
@@ -30636,8 +30671,8 @@ var SelectField = ({
30636
30671
 
30637
30672
  // components/AutoField/fields/TextareaField/index.tsx
30638
30673
  init_react_import();
30639
- var import_jsx_runtime16 = require("react/jsx-runtime");
30640
- var getClassName11 = get_class_name_factory_default("Input", styles_module_default);
30674
+ var import_jsx_runtime17 = require("react/jsx-runtime");
30675
+ var getClassName12 = get_class_name_factory_default("Input", styles_module_default);
30641
30676
  var TextareaField = ({
30642
30677
  onChange,
30643
30678
  readOnly,
@@ -30647,11 +30682,11 @@ var TextareaField = ({
30647
30682
  Label,
30648
30683
  id
30649
30684
  }) => {
30650
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Label, { label: label || name, icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Type, { size: 16 }), readOnly, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
30685
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Label, { label: label || name, icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Type, { size: 16 }), readOnly, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
30651
30686
  "textarea",
30652
30687
  {
30653
30688
  id,
30654
- className: getClassName11("input"),
30689
+ className: getClassName12("input"),
30655
30690
  autoComplete: "off",
30656
30691
  name,
30657
30692
  value: typeof value === "undefined" ? "" : value,
@@ -30671,11 +30706,11 @@ init_react_import();
30671
30706
 
30672
30707
  // css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css#css-module
30673
30708
  init_react_import();
30674
- var styles_module_default7 = { "ObjectField": "_ObjectField_15j63_5", "ObjectField-fieldset": "_ObjectField-fieldset_15j63_13" };
30709
+ var styles_module_default8 = { "ObjectField": "_ObjectField_1ua3y_5", "ObjectField-fieldset": "_ObjectField-fieldset_1ua3y_13" };
30675
30710
 
30676
30711
  // components/AutoField/fields/ObjectField/index.tsx
30677
- var import_jsx_runtime17 = require("react/jsx-runtime");
30678
- var getClassName12 = get_class_name_factory_default("ObjectField", styles_module_default7);
30712
+ var import_jsx_runtime18 = require("react/jsx-runtime");
30713
+ var getClassName13 = get_class_name_factory_default("ObjectField", styles_module_default8);
30679
30714
  var ObjectField = ({
30680
30715
  field,
30681
30716
  onChange,
@@ -30692,18 +30727,18 @@ var ObjectField = ({
30692
30727
  }
30693
30728
  const readOnlyFields = (selectedItem == null ? void 0 : selectedItem.readOnly) || {};
30694
30729
  const data = value || {};
30695
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
30730
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
30696
30731
  Label,
30697
30732
  {
30698
30733
  label: label || name,
30699
- icon: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(MoreVertical, { size: 16 }),
30734
+ icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MoreVertical, { size: 16 }),
30700
30735
  el: "div",
30701
30736
  readOnly,
30702
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: getClassName12(), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("fieldset", { className: getClassName12("fieldset"), children: Object.keys(field.objectFields).map((fieldName) => {
30737
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: getClassName13(), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("fieldset", { className: getClassName13("fieldset"), children: Object.keys(field.objectFields).map((fieldName) => {
30703
30738
  const subField = field.objectFields[fieldName];
30704
30739
  const subFieldName = `${name}.${fieldName}`;
30705
30740
  const wildcardFieldName = `${name}.${fieldName}`;
30706
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
30741
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
30707
30742
  AutoFieldPrivate,
30708
30743
  {
30709
30744
  name: subFieldName,
@@ -30747,8 +30782,8 @@ var useSafeId = () => {
30747
30782
  };
30748
30783
 
30749
30784
  // components/AutoField/index.tsx
30750
- var import_jsx_runtime18 = require("react/jsx-runtime");
30751
- var getClassName13 = get_class_name_factory_default("Input", styles_module_default);
30785
+ var import_jsx_runtime19 = require("react/jsx-runtime");
30786
+ var getClassName14 = get_class_name_factory_default("Input", styles_module_default);
30752
30787
  var FieldLabel = ({
30753
30788
  children,
30754
30789
  icon,
@@ -30758,16 +30793,16 @@ var FieldLabel = ({
30758
30793
  className
30759
30794
  }) => {
30760
30795
  const El = el;
30761
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(El, { className, children: [
30762
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: getClassName13("label"), children: [
30763
- icon ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: getClassName13("labelIcon"), children: icon }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {}),
30796
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(El, { className, children: [
30797
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: getClassName14("label"), children: [
30798
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassName14("labelIcon"), children: icon }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {}),
30764
30799
  label,
30765
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: getClassName13("disabledIcon"), title: "Read-only", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Lock, { size: "12" }) })
30800
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassName14("disabledIcon"), title: "Read-only", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Lock, { size: "12" }) })
30766
30801
  ] }),
30767
30802
  children
30768
30803
  ] });
30769
30804
  };
30770
- var FieldLabelInternal3 = ({
30805
+ var FieldLabelInternal2 = ({
30771
30806
  children,
30772
30807
  icon,
30773
30808
  label,
@@ -30780,14 +30815,14 @@ var FieldLabelInternal3 = ({
30780
30815
  [overrides]
30781
30816
  );
30782
30817
  if (!label) {
30783
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children });
30818
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children });
30784
30819
  }
30785
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
30820
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
30786
30821
  Wrapper,
30787
30822
  {
30788
30823
  label,
30789
30824
  icon,
30790
- className: getClassName13({ readOnly }),
30825
+ className: getClassName14({ readOnly }),
30791
30826
  readOnly,
30792
30827
  el,
30793
30828
  children
@@ -30797,7 +30832,7 @@ var FieldLabelInternal3 = ({
30797
30832
  function AutoFieldInternal(props) {
30798
30833
  var _a, _b, _c, _d, _e, _f, _g, _h;
30799
30834
  const { overrides } = useAppContext();
30800
- const { field, label = field.label, id, Label = FieldLabelInternal3 } = props;
30835
+ const { field, label = field.label, id, Label = FieldLabelInternal2 } = props;
30801
30836
  const defaultId = useSafeId();
30802
30837
  const resolvedId = id || defaultId;
30803
30838
  const defaultFields = {
@@ -30831,11 +30866,11 @@ function AutoFieldInternal(props) {
30831
30866
  return null;
30832
30867
  }
30833
30868
  const CustomField = field.render;
30834
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: getClassName13(), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CustomField, __spreadValues({}, mergedProps)) });
30869
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassName14(), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CustomField, __spreadValues({}, mergedProps)) });
30835
30870
  }
30836
30871
  const children = defaultFields[field.type](mergedProps);
30837
30872
  const Render2 = render[field.type];
30838
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Render2, __spreadProps(__spreadValues({}, mergedProps), { children }));
30873
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Render2, __spreadProps(__spreadValues({}, mergedProps), { children }));
30839
30874
  }
30840
30875
  function AutoFieldPrivate(props) {
30841
30876
  const { value, onChange } = props;
@@ -30858,11 +30893,11 @@ function AutoFieldPrivate(props) {
30858
30893
  value: localValue,
30859
30894
  onChange: onChangeLocal
30860
30895
  };
30861
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AutoFieldInternal, __spreadValues(__spreadValues({}, props), localProps));
30896
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AutoFieldInternal, __spreadValues(__spreadValues({}, props), localProps));
30862
30897
  }
30863
- var DefaultLabel = (props) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", __spreadValues({}, props));
30898
+ var DefaultLabel = (props) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadValues({}, props));
30864
30899
  function AutoField(props) {
30865
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AutoFieldInternal, __spreadProps(__spreadValues({}, props), { Label: DefaultLabel }));
30900
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AutoFieldInternal, __spreadProps(__spreadValues({}, props), { Label: DefaultLabel }));
30866
30901
  }
30867
30902
 
30868
30903
  // components/Drawer/index.tsx
@@ -30870,13 +30905,13 @@ init_react_import();
30870
30905
 
30871
30906
  // css-module:/home/runner/work/puck/puck/packages/core/components/Drawer/styles.module.css#css-module
30872
30907
  init_react_import();
30873
- var styles_module_default8 = { "Drawer": "_Drawer_6zh0b_1", "DrawerItem-default": "_DrawerItem-default_6zh0b_5", "DrawerItem-draggableWrapper": "_DrawerItem-draggableWrapper_6zh0b_5", "DrawerItem": "_DrawerItem_6zh0b_5", "DrawerItem-draggable": "_DrawerItem-draggable_6zh0b_5", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_6zh0b_31", "DrawerItem-name": "_DrawerItem-name_6zh0b_47" };
30908
+ var styles_module_default9 = { "Drawer": "_Drawer_6zh0b_1", "DrawerItem-default": "_DrawerItem-default_6zh0b_5", "DrawerItem-draggableWrapper": "_DrawerItem-draggableWrapper_6zh0b_5", "DrawerItem": "_DrawerItem_6zh0b_5", "DrawerItem-draggable": "_DrawerItem-draggable_6zh0b_5", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_6zh0b_31", "DrawerItem-name": "_DrawerItem-name_6zh0b_47" };
30874
30909
 
30875
30910
  // components/Drawer/index.tsx
30876
30911
  var import_react12 = require("react");
30877
- var import_jsx_runtime19 = require("react/jsx-runtime");
30878
- var getClassName14 = get_class_name_factory_default("Drawer", styles_module_default8);
30879
- var getClassNameItem2 = get_class_name_factory_default("DrawerItem", styles_module_default8);
30912
+ var import_jsx_runtime20 = require("react/jsx-runtime");
30913
+ var getClassName15 = get_class_name_factory_default("Drawer", styles_module_default9);
30914
+ var getClassNameItem2 = get_class_name_factory_default("DrawerItem", styles_module_default9);
30880
30915
  var drawerContext = (0, import_react12.createContext)({
30881
30916
  droppableId: ""
30882
30917
  });
@@ -30884,7 +30919,7 @@ var DrawerDraggable = ({
30884
30919
  children,
30885
30920
  id,
30886
30921
  index
30887
- }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
30922
+ }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
30888
30923
  Draggable,
30889
30924
  {
30890
30925
  id,
@@ -30906,29 +30941,30 @@ var DrawerItem = ({
30906
30941
  const ctx = (0, import_react12.useContext)(drawerContext);
30907
30942
  const resolvedId = `${ctx.droppableId}::${id || name}`;
30908
30943
  const CustomInner = (0, import_react12.useMemo)(
30909
- () => children || (({ children: children2, name: name2 }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
30944
+ () => children || (({ children: children2, name: name2 }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
30910
30945
  [children]
30911
30946
  );
30912
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DrawerDraggable, { id: resolvedId, index, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CustomInner, { name, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: getClassNameItem2("draggable"), children: [
30913
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassNameItem2("name"), children: label != null ? label : name }),
30914
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: getClassNameItem2("icon"), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DragIcon, {}) })
30947
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DrawerDraggable, { id: resolvedId, index, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CustomInner, { name, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: getClassNameItem2("draggable"), children: [
30948
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassNameItem2("name"), children: label != null ? label : name }),
30949
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassNameItem2("icon"), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DragIcon, {}) })
30915
30950
  ] }) }) }) });
30916
30951
  };
30917
30952
  var Drawer = ({
30918
30953
  children,
30919
- droppableId = "component-list",
30954
+ droppableId: _droppableId = "default",
30920
30955
  direction = "vertical"
30921
30956
  }) => {
30922
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(drawerContext.Provider, { value: { droppableId }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Droppable, { droppableId, isDropDisabled: true, direction, children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
30957
+ const droppableId = `component-list:${_droppableId}`;
30958
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(drawerContext.Provider, { value: { droppableId }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Droppable, { droppableId, isDropDisabled: true, direction, children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
30923
30959
  "div",
30924
30960
  __spreadProps(__spreadValues({}, provided.droppableProps), {
30925
30961
  ref: provided.innerRef,
30926
- className: getClassName14({
30962
+ className: getClassName15({
30927
30963
  isDraggingFrom: !!snapshot.draggingFromThisWith
30928
30964
  }),
30929
30965
  children: [
30930
30966
  children,
30931
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { style: { display: "none" }, children: provided.placeholder })
30967
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { style: { display: "none" }, children: provided.placeholder })
30932
30968
  ]
30933
30969
  })
30934
30970
  ) }) });
@@ -30946,7 +30982,7 @@ var import_dnd4 = require("@measured/dnd");
30946
30982
 
30947
30983
  // css-module:/home/runner/work/puck/puck/packages/core/components/DraggableComponent/styles.module.css#css-module
30948
30984
  init_react_import();
30949
- var styles_module_default9 = { "DraggableComponent": "_DraggableComponent_59z7f_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_59z7f_11", "DraggableComponent-contents": "_DraggableComponent-contents_59z7f_16", "DraggableComponent-overlay": "_DraggableComponent-overlay_59z7f_29", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_59z7f_49", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_59z7f_65", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_59z7f_71", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_59z7f_76", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_59z7f_81", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_59z7f_97", "DraggableComponent-actions": "_DraggableComponent-actions_59z7f_97", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_59z7f_127", "DraggableComponent-action": "_DraggableComponent-action_59z7f_97" };
30985
+ var styles_module_default10 = { "DraggableComponent": "_DraggableComponent_59z7f_1", "DraggableComponent--isDragging": "_DraggableComponent--isDragging_59z7f_11", "DraggableComponent-contents": "_DraggableComponent-contents_59z7f_16", "DraggableComponent-overlay": "_DraggableComponent-overlay_59z7f_29", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_59z7f_49", "DraggableComponent--isLocked": "_DraggableComponent--isLocked_59z7f_65", "DraggableComponent--forceHover": "_DraggableComponent--forceHover_59z7f_71", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_59z7f_76", "DraggableComponent--indicativeHover": "_DraggableComponent--indicativeHover_59z7f_81", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_59z7f_97", "DraggableComponent-actions": "_DraggableComponent-actions_59z7f_97", "DraggableComponent-actionsLabel": "_DraggableComponent-actionsLabel_59z7f_127", "DraggableComponent-action": "_DraggableComponent-action_59z7f_97" };
30950
30986
 
30951
30987
  // lib/use-modifier-held.ts
30952
30988
  init_react_import();
@@ -30987,9 +31023,8 @@ var isIos = () => [
30987
31023
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
30988
31024
 
30989
31025
  // components/DraggableComponent/index.tsx
30990
- var import_react_spinners4 = require("react-spinners");
30991
- var import_jsx_runtime20 = require("react/jsx-runtime");
30992
- var getClassName15 = get_class_name_factory_default("DraggableComponent", styles_module_default9);
31026
+ var import_jsx_runtime21 = require("react/jsx-runtime");
31027
+ var getClassName16 = get_class_name_factory_default("DraggableComponent", styles_module_default10);
30993
31028
  var space = 8;
30994
31029
  var actionsOverlayTop = space * 6.5;
30995
31030
  var actionsTop = -(actionsOverlayTop - 8);
@@ -31027,19 +31062,19 @@ var DraggableComponent = ({
31027
31062
  setDisableSecondaryAnimation(true);
31028
31063
  }
31029
31064
  }, []);
31030
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
31065
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
31031
31066
  El,
31032
31067
  {
31033
31068
  draggableId: id,
31034
31069
  index,
31035
31070
  isDragDisabled,
31036
31071
  disableSecondaryAnimation,
31037
- children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
31072
+ children: (provided, snapshot) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
31038
31073
  "div",
31039
31074
  __spreadProps(__spreadValues(__spreadValues({
31040
31075
  ref: provided.innerRef
31041
31076
  }, provided.draggableProps), provided.dragHandleProps), {
31042
- className: getClassName15({
31077
+ className: getClassName16({
31043
31078
  isSelected,
31044
31079
  isModifierHeld,
31045
31080
  isDragging: snapshot.isDragging,
@@ -31057,34 +31092,34 @@ var DraggableComponent = ({
31057
31092
  onClick,
31058
31093
  children: [
31059
31094
  debug,
31060
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName15("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react_spinners4.ClipLoader, { "aria-label": "loading", size: 16, color: "inherit" }) }),
31061
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
31095
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName16("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loader, {}) }),
31096
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
31062
31097
  "div",
31063
31098
  {
31064
- className: getClassName15("actionsOverlay"),
31099
+ className: getClassName16("actionsOverlay"),
31065
31100
  style: {
31066
31101
  top: actionsOverlayTop / zoomConfig.zoom
31067
31102
  },
31068
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
31103
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
31069
31104
  "div",
31070
31105
  {
31071
- className: getClassName15("actions"),
31106
+ className: getClassName16("actions"),
31072
31107
  style: {
31073
31108
  transform: `scale(${1 / zoomConfig.zoom}`,
31074
31109
  top: actionsTop / zoomConfig.zoom,
31075
31110
  right: actionsRight / zoomConfig.zoom
31076
31111
  },
31077
31112
  children: [
31078
- label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName15("actionsLabel"), children: label }),
31079
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { className: getClassName15("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Copy, { size: 16 }) }),
31080
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { className: getClassName15("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Trash, { size: 16 }) })
31113
+ label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName16("actionsLabel"), children: label }),
31114
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", { className: getClassName16("action"), onClick: onDuplicate, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Copy, { size: 16 }) }),
31115
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", { className: getClassName16("action"), onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Trash, { size: 16 }) })
31081
31116
  ]
31082
31117
  }
31083
31118
  )
31084
31119
  }
31085
31120
  ),
31086
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName15("overlay") }),
31087
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName15("contents"), children })
31121
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName16("overlay") }),
31122
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: getClassName16("contents"), children })
31088
31123
  ]
31089
31124
  })
31090
31125
  )
@@ -31095,7 +31130,7 @@ var DraggableComponent = ({
31095
31130
 
31096
31131
  // css-module:/home/runner/work/puck/puck/packages/core/components/DropZone/styles.module.css#css-module
31097
31132
  init_react_import();
31098
- var styles_module_default10 = { "DropZone": "_DropZone_djoti_1", "DropZone-content": "_DropZone-content_djoti_10", "DropZone--userIsDragging": "_DropZone--userIsDragging_djoti_15", "DropZone--draggingOverArea": "_DropZone--draggingOverArea_djoti_19", "DropZone--draggingNewComponent": "_DropZone--draggingNewComponent_djoti_20", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_djoti_26", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_djoti_27", "DropZone--isDisabled": "_DropZone--isDisabled_djoti_28", "DropZone--isRootZone": "_DropZone--isRootZone_djoti_29", "DropZone--hasChildren": "_DropZone--hasChildren_djoti_30", "DropZone--isDestination": "_DropZone--isDestination_djoti_40", "DropZone-item": "_DropZone-item_djoti_52", "DropZone-hitbox": "_DropZone-hitbox_djoti_56" };
31133
+ var styles_module_default11 = { "DropZone": "_DropZone_djoti_1", "DropZone-content": "_DropZone-content_djoti_10", "DropZone--userIsDragging": "_DropZone--userIsDragging_djoti_15", "DropZone--draggingOverArea": "_DropZone--draggingOverArea_djoti_19", "DropZone--draggingNewComponent": "_DropZone--draggingNewComponent_djoti_20", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_djoti_26", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_djoti_27", "DropZone--isDisabled": "_DropZone--isDisabled_djoti_28", "DropZone--isRootZone": "_DropZone--isRootZone_djoti_29", "DropZone--hasChildren": "_DropZone--hasChildren_djoti_30", "DropZone--isDestination": "_DropZone--isDestination_djoti_40", "DropZone-item": "_DropZone-item_djoti_52", "DropZone-hitbox": "_DropZone-hitbox_djoti_56" };
31099
31134
 
31100
31135
  // components/DropZone/context.tsx
31101
31136
  init_react_import();
@@ -31115,7 +31150,7 @@ var getZoneId = (zoneCompound) => {
31115
31150
  };
31116
31151
 
31117
31152
  // components/DropZone/context.tsx
31118
- var import_jsx_runtime21 = require("react/jsx-runtime");
31153
+ var import_jsx_runtime22 = require("react/jsx-runtime");
31119
31154
  var dropZoneContext = (0, import_react15.createContext)(null);
31120
31155
  var DropZoneProvider = ({
31121
31156
  children,
@@ -31193,7 +31228,7 @@ var DropZoneProvider = ({
31193
31228
  [value, setPathData]
31194
31229
  );
31195
31230
  const [zoneWillDrag, setZoneWillDrag] = (0, import_react15.useState)("");
31196
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: value && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
31231
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: value && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31197
31232
  dropZoneContext.Provider,
31198
31233
  {
31199
31234
  value: __spreadValues({
@@ -31219,8 +31254,8 @@ var DropZoneProvider = ({
31219
31254
  };
31220
31255
 
31221
31256
  // components/DropZone/index.tsx
31222
- var import_jsx_runtime22 = require("react/jsx-runtime");
31223
- var getClassName16 = get_class_name_factory_default("DropZone", styles_module_default10);
31257
+ var import_jsx_runtime23 = require("react/jsx-runtime");
31258
+ var getClassName17 = get_class_name_factory_default("DropZone", styles_module_default11);
31224
31259
  function DropZoneEdit({ zone, allow, disallow, style }) {
31225
31260
  var _a;
31226
31261
  const appContext2 = useAppContext();
@@ -31274,7 +31309,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
31274
31309
  const draggingOverArea = userIsDragging && zoneArea === draggedSourceArea;
31275
31310
  const draggingNewComponent = draggedSourceId == null ? void 0 : draggedSourceId.startsWith("component-list");
31276
31311
  if (!(ctx == null ? void 0 : ctx.config) || !ctx.setHoveringArea || !ctx.setHoveringZone || !ctx.setHoveringComponent || !ctx.setItemSelector || !ctx.registerPath || !ctx.dispatch) {
31277
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: "DropZone requires context to work." });
31312
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: "DropZone requires context to work." });
31278
31313
  }
31279
31314
  const {
31280
31315
  hoveringArea = "root",
@@ -31315,10 +31350,10 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
31315
31350
  }
31316
31351
  const selectedItem = itemSelector ? getItem(itemSelector, data) : null;
31317
31352
  const isAreaSelected = selectedItem && zoneArea === selectedItem.props.id;
31318
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31353
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31319
31354
  "div",
31320
31355
  {
31321
- className: getClassName16({
31356
+ className: getClassName17({
31322
31357
  isRootZone,
31323
31358
  userIsDragging,
31324
31359
  draggingOverArea,
@@ -31332,17 +31367,17 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
31332
31367
  onMouseUp: () => {
31333
31368
  setZoneWillDrag("");
31334
31369
  },
31335
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31370
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31336
31371
  Droppable,
31337
31372
  {
31338
31373
  droppableId: zoneCompound,
31339
31374
  direction: "vertical",
31340
31375
  isDropDisabled: !isEnabled,
31341
31376
  children: (provided, snapshot) => {
31342
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
31377
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
31343
31378
  "div",
31344
31379
  __spreadProps(__spreadValues({}, (provided || { droppableProps: {} }).droppableProps), {
31345
- className: getClassName16("content"),
31380
+ className: getClassName17("content"),
31346
31381
  ref: provided == null ? void 0 : provided.innerRef,
31347
31382
  style,
31348
31383
  id: zoneCompound,
@@ -31355,32 +31390,37 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
31355
31390
  content.map((item, i) => {
31356
31391
  var _a2, _b, _c;
31357
31392
  const componentId = item.props.id;
31393
+ const puckProps = {
31394
+ renderDropZone: DropZone,
31395
+ isEditing: true
31396
+ };
31358
31397
  const defaultedProps = __spreadProps(__spreadValues(__spreadValues({}, (_a2 = config.components[item.type]) == null ? void 0 : _a2.defaultProps), item.props), {
31359
- puck: { renderDropZone: DropZone },
31398
+ puck: puckProps,
31360
31399
  editMode: true
31400
+ // DEPRECATED
31361
31401
  });
31362
31402
  const isSelected = (selectedItem == null ? void 0 : selectedItem.props.id) === componentId || false;
31363
31403
  const isDragging = ((draggedItem == null ? void 0 : draggedItem.draggableId) || "draggable-").split(
31364
31404
  "draggable-"
31365
31405
  )[1] === componentId;
31366
31406
  const containsZone = areasWithZones ? areasWithZones[componentId] : false;
31367
- const Render2 = config.components[item.type] ? config.components[item.type].render : () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { style: { padding: 48, textAlign: "center" }, children: [
31407
+ const Render2 = config.components[item.type] ? config.components[item.type].render : () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { style: { padding: 48, textAlign: "center" }, children: [
31368
31408
  "No configuration for ",
31369
31409
  item.type
31370
31410
  ] });
31371
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
31411
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
31372
31412
  "div",
31373
31413
  {
31374
- className: getClassName16("item"),
31414
+ className: getClassName17("item"),
31375
31415
  style: { zIndex: isDragging ? 1 : void 0 },
31376
31416
  children: [
31377
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31417
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31378
31418
  DropZoneProvider,
31379
31419
  {
31380
31420
  value: __spreadProps(__spreadValues({}, ctx), {
31381
31421
  areaId: componentId
31382
31422
  }),
31383
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31423
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31384
31424
  DraggableComponent,
31385
31425
  {
31386
31426
  label: (_b = config.components[item.type]["label"]) != null ? _b : item.type.toString(),
@@ -31447,15 +31487,15 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
31447
31487
  style: {
31448
31488
  pointerEvents: userIsDragging && draggingNewComponent ? "all" : void 0
31449
31489
  },
31450
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: getClassName16("renderWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Render2, __spreadValues({}, defaultedProps)) })
31490
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName17("renderWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Render2, __spreadValues({}, defaultedProps)) })
31451
31491
  }
31452
31492
  )
31453
31493
  }
31454
31494
  ),
31455
- userIsDragging && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31495
+ userIsDragging && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31456
31496
  "div",
31457
31497
  {
31458
- className: getClassName16("hitbox"),
31498
+ className: getClassName17("hitbox"),
31459
31499
  onMouseOver: (e) => {
31460
31500
  e.stopPropagation();
31461
31501
  setHoveringArea(zoneArea);
@@ -31469,7 +31509,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
31469
31509
  );
31470
31510
  }),
31471
31511
  provided == null ? void 0 : provided.placeholder,
31472
- (snapshot == null ? void 0 : snapshot.isDraggingOver) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31512
+ (snapshot == null ? void 0 : snapshot.isDraggingOver) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31473
31513
  "div",
31474
31514
  {
31475
31515
  "data-puck-placeholder": true,
@@ -31501,14 +31541,14 @@ function DropZoneRender({ zone }) {
31501
31541
  zoneCompound = `${areaId}:${zone}`;
31502
31542
  content = setupZone(data, zoneCompound).zones[zoneCompound];
31503
31543
  }
31504
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: content.map((item) => {
31544
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: content.map((item) => {
31505
31545
  const Component = config.components[item.type];
31506
31546
  if (Component) {
31507
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31547
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31508
31548
  DropZoneProvider,
31509
31549
  {
31510
31550
  value: { data, config, areaId: item.props.id },
31511
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
31551
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31512
31552
  Component.render,
31513
31553
  __spreadProps(__spreadValues({}, item.props), {
31514
31554
  puck: { renderDropZone: DropZone }
@@ -31524,9 +31564,9 @@ function DropZoneRender({ zone }) {
31524
31564
  function DropZone(props) {
31525
31565
  const ctx = (0, import_react16.useContext)(dropZoneContext);
31526
31566
  if ((ctx == null ? void 0 : ctx.mode) === "edit") {
31527
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZoneEdit, __spreadValues({}, props));
31567
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropZoneEdit, __spreadValues({}, props));
31528
31568
  }
31529
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropZoneRender, __spreadValues({}, props));
31569
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DropZoneRender, __spreadValues({}, props));
31530
31570
  }
31531
31571
 
31532
31572
  // components/Puck/index.tsx
@@ -31599,7 +31639,7 @@ init_react_import();
31599
31639
 
31600
31640
  // css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css#css-module
31601
31641
  init_react_import();
31602
- var styles_module_default11 = { "SidebarSection": "_SidebarSection_125qe_1", "SidebarSection-title": "_SidebarSection-title_125qe_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_125qe_20", "SidebarSection-content": "_SidebarSection-content_125qe_24", "SidebarSection--noPadding": "_SidebarSection--noPadding_125qe_28", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_125qe_41", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_125qe_70", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_125qe_41", "SidebarSection-heading": "_SidebarSection-heading_125qe_82", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_125qe_86" };
31642
+ var styles_module_default12 = { "SidebarSection": "_SidebarSection_125qe_1", "SidebarSection-title": "_SidebarSection-title_125qe_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_125qe_20", "SidebarSection-content": "_SidebarSection-content_125qe_24", "SidebarSection--noPadding": "_SidebarSection--noPadding_125qe_28", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_125qe_41", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_125qe_70", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_125qe_41", "SidebarSection-heading": "_SidebarSection-heading_125qe_82", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_125qe_86" };
31603
31643
 
31604
31644
  // lib/use-breadcrumbs.ts
31605
31645
  init_react_import();
@@ -31668,9 +31708,8 @@ var useBreadcrumbs = (renderCount) => {
31668
31708
  };
31669
31709
 
31670
31710
  // components/SidebarSection/index.tsx
31671
- var import_react_spinners5 = require("react-spinners");
31672
- var import_jsx_runtime23 = require("react/jsx-runtime");
31673
- var getClassName17 = get_class_name_factory_default("SidebarSection", styles_module_default11);
31711
+ var import_jsx_runtime24 = require("react/jsx-runtime");
31712
+ var getClassName18 = get_class_name_factory_default("SidebarSection", styles_module_default12);
31674
31713
  var SidebarSection = ({
31675
31714
  children,
31676
31715
  title,
@@ -31682,28 +31721,28 @@ var SidebarSection = ({
31682
31721
  }) => {
31683
31722
  const { setUi } = useAppContext();
31684
31723
  const breadcrumbs = useBreadcrumbs(1);
31685
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
31724
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
31686
31725
  "div",
31687
31726
  {
31688
- className: getClassName17({ noBorderTop, noPadding }),
31727
+ className: getClassName18({ noBorderTop, noPadding }),
31689
31728
  style: { background },
31690
31729
  children: [
31691
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName17("title"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getClassName17("breadcrumbs"), children: [
31692
- showBreadcrumbs ? breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getClassName17("breadcrumb"), children: [
31693
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
31730
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: getClassName18("title"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: getClassName18("breadcrumbs"), children: [
31731
+ showBreadcrumbs ? breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: getClassName18("breadcrumb"), children: [
31732
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
31694
31733
  "button",
31695
31734
  {
31696
- className: getClassName17("breadcrumbLabel"),
31735
+ className: getClassName18("breadcrumbLabel"),
31697
31736
  onClick: () => setUi({ itemSelector: breadcrumb.selector }),
31698
31737
  children: breadcrumb.label
31699
31738
  }
31700
31739
  ),
31701
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronRight, { size: 16 })
31740
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChevronRight, { size: 16 })
31702
31741
  ] }, i)) : null,
31703
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName17("heading"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Heading, { rank: 2, size: "xs", children: title }) })
31742
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: getClassName18("heading"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Heading, { rank: 2, size: "xs", children: title }) })
31704
31743
  ] }) }),
31705
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName17("content"), children }),
31706
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName17("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_spinners5.ClipLoader, { "aria-label": "loading" }) })
31744
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: getClassName18("content"), children }),
31745
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: getClassName18("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader, { size: 32 }) })
31707
31746
  ]
31708
31747
  }
31709
31748
  );
@@ -32269,11 +32308,11 @@ init_react_import();
32269
32308
 
32270
32309
  // css-module:/home/runner/work/puck/puck/packages/core/components/MenuBar/styles.module.css#css-module
32271
32310
  init_react_import();
32272
- var styles_module_default12 = { "MenuBar": "_MenuBar_8pf8c_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_8pf8c_14", "MenuBar-inner": "_MenuBar-inner_8pf8c_29", "MenuBar-history": "_MenuBar-history_8pf8c_45" };
32311
+ var styles_module_default13 = { "MenuBar": "_MenuBar_8pf8c_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_8pf8c_14", "MenuBar-inner": "_MenuBar-inner_8pf8c_29", "MenuBar-history": "_MenuBar-history_8pf8c_45" };
32273
32312
 
32274
32313
  // components/MenuBar/index.tsx
32275
- var import_jsx_runtime24 = require("react/jsx-runtime");
32276
- var getClassName18 = get_class_name_factory_default("MenuBar", styles_module_default12);
32314
+ var import_jsx_runtime25 = require("react/jsx-runtime");
32315
+ var getClassName19 = get_class_name_factory_default("MenuBar", styles_module_default13);
32277
32316
  var MenuBar = ({
32278
32317
  appState,
32279
32318
  data = { content: [], root: {} },
@@ -32287,10 +32326,10 @@ var MenuBar = ({
32287
32326
  history: { back, forward, historyStore }
32288
32327
  } = useAppContext();
32289
32328
  const { hasFuture = false, hasPast = false } = historyStore || {};
32290
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
32329
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
32291
32330
  "div",
32292
32331
  {
32293
- className: getClassName18({ menuOpen }),
32332
+ className: getClassName19({ menuOpen }),
32294
32333
  onClick: (event) => {
32295
32334
  var _a;
32296
32335
  const element = event.target;
@@ -32301,24 +32340,24 @@ var MenuBar = ({
32301
32340
  setMenuOpen(false);
32302
32341
  }
32303
32342
  },
32304
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: getClassName18("inner"), children: [
32305
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: getClassName18("history"), children: [
32306
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconButton, { title: "undo", disabled: !hasPast, onClick: back, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
32307
- ChevronLeft,
32343
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getClassName19("inner"), children: [
32344
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getClassName19("history"), children: [
32345
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(IconButton, { title: "undo", disabled: !hasPast, onClick: back, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
32346
+ Undo2,
32308
32347
  {
32309
32348
  size: 21,
32310
32349
  stroke: hasPast ? "var(--puck-color-black)" : "var(--puck-color-grey-08)"
32311
32350
  }
32312
32351
  ) }),
32313
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconButton, { title: "redo", disabled: !hasFuture, onClick: forward, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
32314
- ChevronRight,
32352
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(IconButton, { title: "redo", disabled: !hasFuture, onClick: forward, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
32353
+ Redo2,
32315
32354
  {
32316
32355
  size: 21,
32317
32356
  stroke: hasFuture ? "var(--puck-color-black)" : "var(--puck-color-grey-08)"
32318
32357
  }
32319
32358
  ) })
32320
32359
  ] }),
32321
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: renderHeaderActions && renderHeaderActions({
32360
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: renderHeaderActions && renderHeaderActions({
32322
32361
  state: appState,
32323
32362
  dispatch
32324
32363
  }) })
@@ -32329,31 +32368,26 @@ var MenuBar = ({
32329
32368
 
32330
32369
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/styles.module.css#css-module
32331
32370
  init_react_import();
32332
- var styles_module_default13 = { "Puck": "_Puck_mowzv_19", "Puck-layout": "_Puck-layout_mowzv_29", "Puck--mounted": "_Puck--mounted_mowzv_41", "Puck--leftSideBarVisible": "_Puck--leftSideBarVisible_mowzv_45", "Puck--rightSideBarVisible": "_Puck--rightSideBarVisible_mowzv_51", "Puck-mounted": "_Puck-mounted_mowzv_64", "Puck-header": "_Puck-header_mowzv_105", "Puck-headerInner": "_Puck-headerInner_mowzv_114", "Puck-headerToggle": "_Puck-headerToggle_mowzv_124", "Puck-rightSideBarToggle": "_Puck-rightSideBarToggle_mowzv_131", "Puck-leftSideBarToggle": "_Puck-leftSideBarToggle_mowzv_132", "Puck-headerTitle": "_Puck-headerTitle_mowzv_136", "Puck-headerPath": "_Puck-headerPath_mowzv_140", "Puck-headerTools": "_Puck-headerTools_mowzv_147", "Puck-menuButton": "_Puck-menuButton_mowzv_153", "Puck--menuOpen": "_Puck--menuOpen_mowzv_158", "Puck-leftSideBar": "_Puck-leftSideBar_mowzv_132", "Puck-rightSideBar": "_Puck-rightSideBar_mowzv_131", "Puck-portal": "_Puck-portal_mowzv_186" };
32371
+ var styles_module_default14 = { "Puck": "_Puck_1g88c_19", "Puck-portal": "_Puck-portal_1g88c_24", "PuckLayout": "_PuckLayout_1g88c_31", "PuckLayout-inner": "_PuckLayout-inner_1g88c_39", "PuckLayout--mounted": "_PuckLayout--mounted_1g88c_51", "PuckLayout--leftSideBarVisible": "_PuckLayout--leftSideBarVisible_1g88c_55", "PuckLayout--rightSideBarVisible": "_PuckLayout--rightSideBarVisible_1g88c_61", "PuckLayout-mounted": "_PuckLayout-mounted_1g88c_75", "PuckLayout-header": "_PuckLayout-header_1g88c_116", "PuckLayout-headerInner": "_PuckLayout-headerInner_1g88c_125", "PuckLayout-headerToggle": "_PuckLayout-headerToggle_1g88c_135", "PuckLayout-rightSideBarToggle": "_PuckLayout-rightSideBarToggle_1g88c_142", "PuckLayout-leftSideBarToggle": "_PuckLayout-leftSideBarToggle_1g88c_143", "PuckLayout-headerTitle": "_PuckLayout-headerTitle_1g88c_147", "PuckLayout-headerPath": "_PuckLayout-headerPath_1g88c_151", "PuckLayout-headerTools": "_PuckLayout-headerTools_1g88c_158", "PuckLayout-menuButton": "_PuckLayout-menuButton_1g88c_164", "PuckLayout--menuOpen": "_PuckLayout--menuOpen_1g88c_169", "PuckLayout-leftSideBar": "_PuckLayout-leftSideBar_1g88c_143", "PuckLayout-rightSideBar": "_PuckLayout-rightSideBar_1g88c_142" };
32333
32372
 
32334
32373
  // components/Puck/components/Fields/index.tsx
32335
32374
  init_react_import();
32336
- var import_react_spinners6 = require("react-spinners");
32337
32375
 
32338
32376
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Fields/styles.module.css#css-module
32339
32377
  init_react_import();
32340
- var styles_module_default14 = { "PuckFields": "_PuckFields_1o0if_1", "PuckFields--isLoading": "_PuckFields--isLoading_1o0if_6", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_1o0if_10" };
32378
+ var styles_module_default15 = { "PuckFields": "_PuckFields_gmb17_1", "PuckFields--isLoading": "_PuckFields--isLoading_gmb17_5", "PuckFields-loadingOverlay": "_PuckFields-loadingOverlay_gmb17_9", "PuckFields-loadingOverlayInner": "_PuckFields-loadingOverlayInner_gmb17_24" };
32341
32379
 
32342
32380
  // components/Puck/components/Fields/index.tsx
32343
32381
  var import_react20 = require("react");
32344
- var import_jsx_runtime25 = require("react/jsx-runtime");
32345
- var getClassName19 = get_class_name_factory_default("PuckFields", styles_module_default14);
32382
+ var import_jsx_runtime26 = require("react/jsx-runtime");
32383
+ var getClassName20 = get_class_name_factory_default("PuckFields", styles_module_default15);
32346
32384
  var defaultPageFields = {
32347
32385
  title: { type: "text" }
32348
32386
  };
32349
32387
  var DefaultFields = ({
32350
- children,
32351
- isLoading
32388
+ children
32352
32389
  }) => {
32353
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getClassName19({ isLoading }), children: [
32354
- children,
32355
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: getClassName19("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_spinners6.ClipLoader, { "aria-label": "loading" }) })
32356
- ] });
32390
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children });
32357
32391
  };
32358
32392
  var useResolvedFields = () => {
32359
32393
  var _a;
@@ -32433,109 +32467,112 @@ var Fields = () => {
32433
32467
  const isLoading = fieldsResolving || componentResolving;
32434
32468
  const rootProps = data.root.props || data.root;
32435
32469
  const Wrapper = (0, import_react20.useMemo)(() => overrides.fields || DefaultFields, [overrides]);
32436
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
32470
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
32437
32471
  "form",
32438
32472
  {
32439
- className: getClassName19(),
32473
+ className: getClassName20(),
32440
32474
  onSubmit: (e) => {
32441
32475
  e.preventDefault();
32442
32476
  },
32443
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Wrapper, { isLoading, itemSelector, children: Object.keys(fields).map((fieldName) => {
32444
- const field = fields[fieldName];
32445
- if (!(field == null ? void 0 : field.type))
32446
- return null;
32447
- const onChange = (value, updatedUi) => {
32448
- var _a2, _b2;
32449
- let currentProps;
32450
- if (selectedItem) {
32451
- currentProps = selectedItem.props;
32452
- } else {
32453
- currentProps = rootProps;
32454
- }
32455
- const newProps = __spreadProps(__spreadValues({}, currentProps), {
32456
- [fieldName]: value
32457
- });
32458
- if (itemSelector) {
32459
- const replaceActionData = {
32460
- type: "replace",
32461
- destinationIndex: itemSelector.index,
32462
- destinationZone: itemSelector.zone || rootDroppableId,
32463
- data: __spreadProps(__spreadValues({}, selectedItem), { props: newProps })
32464
- };
32465
- const replacedData = replaceAction(data, replaceActionData);
32466
- const setActionData = {
32467
- type: "set",
32468
- state: {
32469
- data: __spreadValues(__spreadValues({}, data), replacedData),
32470
- ui: __spreadValues(__spreadValues({}, ui), updatedUi)
32471
- }
32472
- };
32473
- if ((_a2 = config.components[selectedItem.type]) == null ? void 0 : _a2.resolveData) {
32474
- resolveData(setAction(state, setActionData));
32477
+ children: [
32478
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Wrapper, { isLoading, itemSelector, children: Object.keys(fields).map((fieldName) => {
32479
+ const field = fields[fieldName];
32480
+ if (!(field == null ? void 0 : field.type))
32481
+ return null;
32482
+ const onChange = (value, updatedUi) => {
32483
+ var _a2, _b2;
32484
+ let currentProps;
32485
+ if (selectedItem) {
32486
+ currentProps = selectedItem.props;
32475
32487
  } else {
32476
- dispatch(__spreadProps(__spreadValues({}, setActionData), {
32477
- recordHistory: true
32478
- }));
32488
+ currentProps = rootProps;
32479
32489
  }
32480
- } else {
32481
- if (data.root.props) {
32482
- if ((_b2 = config.root) == null ? void 0 : _b2.resolveData) {
32483
- resolveData({
32484
- ui: __spreadValues(__spreadValues({}, ui), updatedUi),
32485
- data: __spreadProps(__spreadValues({}, data), {
32486
- root: { props: newProps }
32487
- })
32488
- });
32490
+ const newProps = __spreadProps(__spreadValues({}, currentProps), {
32491
+ [fieldName]: value
32492
+ });
32493
+ if (itemSelector) {
32494
+ const replaceActionData = {
32495
+ type: "replace",
32496
+ destinationIndex: itemSelector.index,
32497
+ destinationZone: itemSelector.zone || rootDroppableId,
32498
+ data: __spreadProps(__spreadValues({}, selectedItem), { props: newProps })
32499
+ };
32500
+ const replacedData = replaceAction(data, replaceActionData);
32501
+ const setActionData = {
32502
+ type: "set",
32503
+ state: {
32504
+ data: __spreadValues(__spreadValues({}, data), replacedData),
32505
+ ui: __spreadValues(__spreadValues({}, ui), updatedUi)
32506
+ }
32507
+ };
32508
+ if ((_a2 = config.components[selectedItem.type]) == null ? void 0 : _a2.resolveData) {
32509
+ resolveData(setAction(state, setActionData));
32489
32510
  } else {
32490
- dispatch({
32491
- type: "set",
32492
- state: {
32511
+ dispatch(__spreadProps(__spreadValues({}, setActionData), {
32512
+ recordHistory: true
32513
+ }));
32514
+ }
32515
+ } else {
32516
+ if (data.root.props) {
32517
+ if ((_b2 = config.root) == null ? void 0 : _b2.resolveData) {
32518
+ resolveData({
32493
32519
  ui: __spreadValues(__spreadValues({}, ui), updatedUi),
32494
32520
  data: __spreadProps(__spreadValues({}, data), {
32495
32521
  root: { props: newProps }
32496
32522
  })
32497
- },
32498
- recordHistory: true
32523
+ });
32524
+ } else {
32525
+ dispatch({
32526
+ type: "set",
32527
+ state: {
32528
+ ui: __spreadValues(__spreadValues({}, ui), updatedUi),
32529
+ data: __spreadProps(__spreadValues({}, data), {
32530
+ root: { props: newProps }
32531
+ })
32532
+ },
32533
+ recordHistory: true
32534
+ });
32535
+ }
32536
+ } else {
32537
+ dispatch({
32538
+ type: "setData",
32539
+ data: { root: newProps }
32499
32540
  });
32500
32541
  }
32501
- } else {
32502
- dispatch({
32503
- type: "setData",
32504
- data: { root: newProps }
32505
- });
32506
32542
  }
32543
+ };
32544
+ if (selectedItem && itemSelector) {
32545
+ const { readOnly = {} } = selectedItem;
32546
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
32547
+ AutoFieldPrivate,
32548
+ {
32549
+ field,
32550
+ name: fieldName,
32551
+ id: `${selectedItem.props.id}_${fieldName}`,
32552
+ readOnly: readOnly[fieldName],
32553
+ value: selectedItem.props[fieldName],
32554
+ onChange
32555
+ },
32556
+ `${selectedItem.props.id}_${fieldName}`
32557
+ );
32558
+ } else {
32559
+ const { readOnly = {} } = data.root;
32560
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
32561
+ AutoFieldPrivate,
32562
+ {
32563
+ field,
32564
+ name: fieldName,
32565
+ id: `root_${fieldName}`,
32566
+ readOnly: readOnly[fieldName],
32567
+ value: rootProps[fieldName],
32568
+ onChange
32569
+ },
32570
+ `page_${fieldName}`
32571
+ );
32507
32572
  }
32508
- };
32509
- if (selectedItem && itemSelector) {
32510
- const { readOnly = {} } = selectedItem;
32511
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
32512
- AutoFieldPrivate,
32513
- {
32514
- field,
32515
- name: fieldName,
32516
- id: `${selectedItem.props.id}_${fieldName}`,
32517
- readOnly: readOnly[fieldName],
32518
- value: selectedItem.props[fieldName],
32519
- onChange
32520
- },
32521
- `${selectedItem.props.id}_${fieldName}`
32522
- );
32523
- } else {
32524
- const { readOnly = {} } = data.root;
32525
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
32526
- AutoFieldPrivate,
32527
- {
32528
- field,
32529
- name: fieldName,
32530
- id: `root_${fieldName}`,
32531
- readOnly: readOnly[fieldName],
32532
- value: rootProps[fieldName],
32533
- onChange
32534
- },
32535
- `page_${fieldName}`
32536
- );
32537
- }
32538
- }) })
32573
+ }) }),
32574
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: getClassName20("loadingOverlay"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: getClassName20("loadingOverlayInner"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Loader, { size: 16 }) }) })
32575
+ ]
32539
32576
  }
32540
32577
  );
32541
32578
  };
@@ -32552,18 +32589,18 @@ init_react_import();
32552
32589
 
32553
32590
  // css-module:/home/runner/work/puck/puck/packages/core/components/ComponentList/styles.module.css#css-module
32554
32591
  init_react_import();
32555
- var styles_module_default15 = { "ComponentList": "_ComponentList_odh9d_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_odh9d_5", "ComponentList-content": "_ComponentList-content_odh9d_9", "ComponentList-title": "_ComponentList-title_odh9d_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_odh9d_53" };
32592
+ var styles_module_default16 = { "ComponentList": "_ComponentList_odh9d_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_odh9d_5", "ComponentList-content": "_ComponentList-content_odh9d_9", "ComponentList-title": "_ComponentList-title_odh9d_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_odh9d_53" };
32556
32593
 
32557
32594
  // components/ComponentList/index.tsx
32558
- var import_jsx_runtime26 = require("react/jsx-runtime");
32559
- var getClassName20 = get_class_name_factory_default("ComponentList", styles_module_default15);
32595
+ var import_jsx_runtime27 = require("react/jsx-runtime");
32596
+ var getClassName21 = get_class_name_factory_default("ComponentList", styles_module_default16);
32560
32597
  var ComponentListItem = ({
32561
32598
  name,
32562
32599
  label,
32563
32600
  index
32564
32601
  }) => {
32565
32602
  const { overrides } = useAppContext();
32566
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Drawer.Item, { label, name, index, children: overrides.componentItem });
32603
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Drawer.Item, { label, name, index, children: overrides.componentItem });
32567
32604
  };
32568
32605
  var ComponentList = ({
32569
32606
  children,
@@ -32572,11 +32609,11 @@ var ComponentList = ({
32572
32609
  }) => {
32573
32610
  const { config, state, setUi } = useAppContext();
32574
32611
  const { expanded = true } = state.ui.componentList[id] || {};
32575
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: getClassName20({ isExpanded: expanded }), children: [
32576
- title && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
32612
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getClassName21({ isExpanded: expanded }), children: [
32613
+ title && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
32577
32614
  "button",
32578
32615
  {
32579
- className: getClassName20("title"),
32616
+ className: getClassName21("title"),
32580
32617
  onClick: () => setUi({
32581
32618
  componentList: __spreadProps(__spreadValues({}, state.ui.componentList), {
32582
32619
  [id]: __spreadProps(__spreadValues({}, state.ui.componentList[id]), {
@@ -32586,14 +32623,14 @@ var ComponentList = ({
32586
32623
  }),
32587
32624
  title: expanded ? `Collapse${title ? ` ${title}` : ""}` : `Expand${title ? ` ${title}` : ""}`,
32588
32625
  children: [
32589
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: title }),
32590
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: getClassName20("titleIcon"), children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChevronUp, { size: 12 }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChevronDown, { size: 12 }) })
32626
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: title }),
32627
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassName21("titleIcon"), children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronUp, { size: 12 }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronDown, { size: 12 }) })
32591
32628
  ]
32592
32629
  }
32593
32630
  ),
32594
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: getClassName20("content"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Drawer, { droppableId: `component-list${title ? `:${title}` : ""}`, children: children || Object.keys(config.components).map((componentKey, i) => {
32631
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassName21("content"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Drawer, { droppableId: title, children: children || Object.keys(config.components).map((componentKey, i) => {
32595
32632
  var _a;
32596
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
32633
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32597
32634
  ComponentListItem,
32598
32635
  {
32599
32636
  label: (_a = config.components[componentKey]["label"]) != null ? _a : componentKey,
@@ -32608,7 +32645,7 @@ var ComponentList = ({
32608
32645
  ComponentList.Item = ComponentListItem;
32609
32646
 
32610
32647
  // lib/use-component-list.tsx
32611
- var import_jsx_runtime27 = require("react/jsx-runtime");
32648
+ var import_jsx_runtime28 = require("react/jsx-runtime");
32612
32649
  var useComponentList = (config, ui) => {
32613
32650
  const [componentList, setComponentList] = (0, import_react21.useState)();
32614
32651
  (0, import_react21.useEffect)(() => {
@@ -32621,7 +32658,7 @@ var useComponentList = (config, ui) => {
32621
32658
  if (category.visible === false || !category.components) {
32622
32659
  return null;
32623
32660
  }
32624
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32661
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
32625
32662
  ComponentList,
32626
32663
  {
32627
32664
  id: categoryKey,
@@ -32630,7 +32667,7 @@ var useComponentList = (config, ui) => {
32630
32667
  var _a2;
32631
32668
  matchedComponents.push(componentName);
32632
32669
  const componentConf = config.components[componentName] || {};
32633
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32670
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
32634
32671
  ComponentList.Item,
32635
32672
  {
32636
32673
  label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
@@ -32650,7 +32687,7 @@ var useComponentList = (config, ui) => {
32650
32687
  );
32651
32688
  if (remainingComponents.length > 0 && !((_a = ui.componentList.other) == null ? void 0 : _a.components) && ((_b = ui.componentList.other) == null ? void 0 : _b.visible) !== false) {
32652
32689
  _componentList.push(
32653
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32690
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
32654
32691
  ComponentList,
32655
32692
  {
32656
32693
  id: "other",
@@ -32658,7 +32695,7 @@ var useComponentList = (config, ui) => {
32658
32695
  children: remainingComponents.map((componentName, i) => {
32659
32696
  var _a2;
32660
32697
  const componentConf = config.components[componentName] || {};
32661
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
32698
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
32662
32699
  ComponentList.Item,
32663
32700
  {
32664
32701
  name: componentName,
@@ -32681,12 +32718,12 @@ var useComponentList = (config, ui) => {
32681
32718
 
32682
32719
  // components/Puck/components/Components/index.tsx
32683
32720
  var import_react22 = require("react");
32684
- var import_jsx_runtime28 = require("react/jsx-runtime");
32721
+ var import_jsx_runtime29 = require("react/jsx-runtime");
32685
32722
  var Components = () => {
32686
32723
  const { config, state, overrides } = useAppContext();
32687
32724
  const componentList = useComponentList(config, state.ui);
32688
32725
  const Wrapper = (0, import_react22.useMemo)(() => overrides.components || "div", [overrides]);
32689
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ComponentList, { id: "all" }) });
32726
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ComponentList, { id: "all" }) });
32690
32727
  };
32691
32728
 
32692
32729
  // components/Puck/components/Preview/index.tsx
@@ -32698,7 +32735,7 @@ init_react_import();
32698
32735
  var import_react23 = __toESM(require("react"));
32699
32736
  var import_react_frame_component = __toESM(require("react-frame-component"));
32700
32737
  var import_object_hash = __toESM(require("object-hash"));
32701
- var import_jsx_runtime29 = require("react/jsx-runtime");
32738
+ var import_jsx_runtime30 = require("react/jsx-runtime");
32702
32739
  var styleSelector = 'style, link[rel="stylesheet"]';
32703
32740
  var collectStyles = (doc) => {
32704
32741
  const collected = [];
@@ -32889,12 +32926,12 @@ var CopyHostStyles = ({
32889
32926
  observer.disconnect();
32890
32927
  };
32891
32928
  }, []);
32892
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children });
32929
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children });
32893
32930
  };
32894
32931
  var AutoFrameComponent = import_react23.default.forwardRef(
32895
32932
  function(_a, ref) {
32896
32933
  var _b = _a, { children, debug, onStylesLoaded } = _b, props = __objRest(_b, ["children", "debug", "onStylesLoaded"]);
32897
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_frame_component.default, __spreadProps(__spreadValues({}, props), { ref, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CopyHostStyles, { debug, onStylesLoaded, children }) }));
32934
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_frame_component.default, __spreadProps(__spreadValues({}, props), { ref, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(CopyHostStyles, { debug, onStylesLoaded, children }) }));
32898
32935
  }
32899
32936
  );
32900
32937
  AutoFrameComponent.displayName = "AutoFrameComponent";
@@ -32902,11 +32939,11 @@ var AutoFrame_default = AutoFrameComponent;
32902
32939
 
32903
32940
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Preview/styles.module.css#css-module
32904
32941
  init_react_import();
32905
- var styles_module_default16 = { "PuckPreview": "_PuckPreview_rxwlr_1", "PuckPreview-frame": "_PuckPreview-frame_rxwlr_5" };
32942
+ var styles_module_default17 = { "PuckPreview": "_PuckPreview_rxwlr_1", "PuckPreview-frame": "_PuckPreview-frame_rxwlr_5" };
32906
32943
 
32907
32944
  // components/Puck/components/Preview/index.tsx
32908
- var import_jsx_runtime30 = require("react/jsx-runtime");
32909
- var getClassName21 = get_class_name_factory_default("PuckPreview", styles_module_default16);
32945
+ var import_jsx_runtime31 = require("react/jsx-runtime");
32946
+ var getClassName22 = get_class_name_factory_default("PuckPreview", styles_module_default17);
32910
32947
  var Preview = ({ id = "puck-preview" }) => {
32911
32948
  const { config, dispatch, state, setStatus, iframe } = useAppContext();
32912
32949
  const Page = (0, import_react24.useCallback)(
@@ -32916,34 +32953,35 @@ var Preview = ({ id = "puck-preview" }) => {
32916
32953
  id: "puck-root"
32917
32954
  }, pageProps), {
32918
32955
  editMode: true,
32919
- puck: { renderDropZone: DropZone }
32920
- })) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: pageProps.children });
32956
+ // DEPRECATED
32957
+ puck: { renderDropZone: DropZone, isEditing: true }
32958
+ })) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: pageProps.children });
32921
32959
  },
32922
32960
  [config.root]
32923
32961
  );
32924
32962
  const rootProps = state.data.root.props || state.data.root;
32925
32963
  const ref = (0, import_react24.useRef)(null);
32926
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
32964
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
32927
32965
  "div",
32928
32966
  {
32929
- className: getClassName21(),
32967
+ className: getClassName22(),
32930
32968
  id,
32931
32969
  onClick: () => {
32932
32970
  dispatch({ type: "setUi", ui: __spreadProps(__spreadValues({}, state.ui), { itemSelector: null }) });
32933
32971
  },
32934
- children: iframe.enabled ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
32972
+ children: iframe.enabled ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
32935
32973
  AutoFrame_default,
32936
32974
  {
32937
32975
  id: "preview-frame",
32938
- className: getClassName21("frame"),
32976
+ className: getClassName22("frame"),
32939
32977
  "data-rfd-iframe": true,
32940
32978
  ref,
32941
32979
  onStylesLoaded: () => {
32942
32980
  setStatus("READY");
32943
32981
  },
32944
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Page, __spreadProps(__spreadValues({ dispatch, state }, rootProps), { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DropZone, { zone: rootDroppableId }) }))
32982
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Page, __spreadProps(__spreadValues({ dispatch, state }, rootProps), { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DropZone, { zone: rootDroppableId }) }))
32945
32983
  }
32946
- ) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { id: "preview-frame", className: getClassName21("frame"), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Page, __spreadProps(__spreadValues({ dispatch, state }, rootProps), { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DropZone, { zone: rootDroppableId }) })) })
32984
+ ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { id: "preview-frame", className: getClassName22("frame"), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Page, __spreadProps(__spreadValues({ dispatch, state }, rootProps), { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DropZone, { zone: rootDroppableId }) })) })
32947
32985
  }
32948
32986
  );
32949
32987
  };
@@ -32977,7 +33015,7 @@ init_react_import();
32977
33015
 
32978
33016
  // css-module:/home/runner/work/puck/puck/packages/core/components/LayerTree/styles.module.css#css-module
32979
33017
  init_react_import();
32980
- var styles_module_default17 = { "LayerTree": "_LayerTree_1pgw8_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_1pgw8_11", "LayerTree-helper": "_LayerTree-helper_1pgw8_17", "Layer": "_Layer_1pgw8_1", "Layer-inner": "_Layer-inner_1pgw8_29", "Layer--containsZone": "_Layer--containsZone_1pgw8_35", "Layer-clickable": "_Layer-clickable_1pgw8_39", "Layer--isSelected": "_Layer--isSelected_1pgw8_61", "Layer-chevron": "_Layer-chevron_1pgw8_77", "Layer--childIsSelected": "_Layer--childIsSelected_1pgw8_78", "Layer-zones": "_Layer-zones_1pgw8_82", "Layer-title": "_Layer-title_1pgw8_96", "Layer-name": "_Layer-name_1pgw8_105", "Layer-icon": "_Layer-icon_1pgw8_111", "Layer-zoneIcon": "_Layer-zoneIcon_1pgw8_116" };
33018
+ var styles_module_default18 = { "LayerTree": "_LayerTree_1pgw8_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_1pgw8_11", "LayerTree-helper": "_LayerTree-helper_1pgw8_17", "Layer": "_Layer_1pgw8_1", "Layer-inner": "_Layer-inner_1pgw8_29", "Layer--containsZone": "_Layer--containsZone_1pgw8_35", "Layer-clickable": "_Layer-clickable_1pgw8_39", "Layer--isSelected": "_Layer--isSelected_1pgw8_61", "Layer-chevron": "_Layer-chevron_1pgw8_77", "Layer--childIsSelected": "_Layer--childIsSelected_1pgw8_78", "Layer-zones": "_Layer-zones_1pgw8_82", "Layer-title": "_Layer-title_1pgw8_96", "Layer-name": "_Layer-name_1pgw8_105", "Layer-icon": "_Layer-icon_1pgw8_111", "Layer-zoneIcon": "_Layer-zoneIcon_1pgw8_116" };
32981
33019
 
32982
33020
  // lib/scroll-into-view.ts
32983
33021
  init_react_import();
@@ -33005,9 +33043,9 @@ var isChildOfZone = (item, maybeChild, ctx) => {
33005
33043
  };
33006
33044
 
33007
33045
  // components/LayerTree/index.tsx
33008
- var import_jsx_runtime31 = require("react/jsx-runtime");
33009
- var getClassName22 = get_class_name_factory_default("LayerTree", styles_module_default17);
33010
- var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default17);
33046
+ var import_jsx_runtime32 = require("react/jsx-runtime");
33047
+ var getClassName23 = get_class_name_factory_default("LayerTree", styles_module_default18);
33048
+ var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default18);
33011
33049
  var LayerTree = ({
33012
33050
  data,
33013
33051
  config,
@@ -33019,14 +33057,14 @@ var LayerTree = ({
33019
33057
  }) => {
33020
33058
  const zones = data.zones || {};
33021
33059
  const ctx = (0, import_react25.useContext)(dropZoneContext);
33022
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
33023
- label && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: getClassName22("zoneTitle"), children: [
33024
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getClassName22("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Layers, { size: "16" }) }),
33060
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
33061
+ label && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: getClassName23("zoneTitle"), children: [
33062
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassName23("zoneIcon"), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Layers, { size: "16" }) }),
33025
33063
  " ",
33026
33064
  label
33027
33065
  ] }),
33028
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("ul", { className: getClassName22(), children: [
33029
- zoneContent.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getClassName22("helper"), children: "No items" }),
33066
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("ul", { className: getClassName23(), children: [
33067
+ zoneContent.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassName23("helper"), children: "No items" }),
33030
33068
  zoneContent.map((item, i) => {
33031
33069
  var _a;
33032
33070
  const isSelected = (itemSelector == null ? void 0 : itemSelector.index) === i && (itemSelector.zone === zone || itemSelector.zone === rootDroppableId && !zone);
@@ -33042,7 +33080,7 @@ var LayerTree = ({
33042
33080
  const selectedItem = itemSelector && data ? getItem(itemSelector, data) : null;
33043
33081
  const isHovering = hoveringComponent === item.props.id;
33044
33082
  const childIsSelected = isChildOfZone(item, selectedItem, ctx);
33045
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
33083
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
33046
33084
  "li",
33047
33085
  {
33048
33086
  className: getClassNameLayer({
@@ -33052,7 +33090,7 @@ var LayerTree = ({
33052
33090
  childIsSelected
33053
33091
  }),
33054
33092
  children: [
33055
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
33093
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
33056
33094
  "button",
33057
33095
  {
33058
33096
  className: getClassNameLayer("clickable"),
@@ -33084,22 +33122,22 @@ var LayerTree = ({
33084
33122
  setHoveringComponent(null);
33085
33123
  },
33086
33124
  children: [
33087
- containsZone && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
33125
+ containsZone && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
33088
33126
  "div",
33089
33127
  {
33090
33128
  className: getClassNameLayer("chevron"),
33091
33129
  title: isSelected ? "Collapse" : "Expand",
33092
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronDown, { size: "12" })
33130
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronDown, { size: "12" })
33093
33131
  }
33094
33132
  ),
33095
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: getClassNameLayer("title"), children: [
33096
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getClassNameLayer("icon"), children: item.type === "Text" || item.type === "Heading" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Type, { size: "16" }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LayoutGrid, { size: "16" }) }),
33097
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getClassNameLayer("name"), children: (_a = config.components[item.type]["label"]) != null ? _a : item.type })
33133
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: getClassNameLayer("title"), children: [
33134
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassNameLayer("icon"), children: item.type === "Text" || item.type === "Heading" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Type, { size: "16" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LayoutGrid, { size: "16" }) }),
33135
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassNameLayer("name"), children: (_a = config.components[item.type]["label"]) != null ? _a : item.type })
33098
33136
  ] })
33099
33137
  ]
33100
33138
  }
33101
33139
  ) }),
33102
- containsZone && Object.keys(zonesForItem).map((zoneKey, idx) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: getClassNameLayer("zones"), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
33140
+ containsZone && Object.keys(zonesForItem).map((zoneKey, idx) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: getClassNameLayer("zones"), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
33103
33141
  LayerTree,
33104
33142
  {
33105
33143
  config,
@@ -33122,7 +33160,7 @@ var LayerTree = ({
33122
33160
 
33123
33161
  // components/Puck/components/Outline/index.tsx
33124
33162
  var import_react26 = require("react");
33125
- var import_jsx_runtime32 = require("react/jsx-runtime");
33163
+ var import_jsx_runtime33 = require("react/jsx-runtime");
33126
33164
  var Outline = () => {
33127
33165
  const { dispatch, state, overrides, config } = useAppContext();
33128
33166
  const { data, ui } = state;
@@ -33137,8 +33175,8 @@ var Outline = () => {
33137
33175
  []
33138
33176
  );
33139
33177
  const Wrapper = (0, import_react26.useMemo)(() => overrides.outline || "div", [overrides]);
33140
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(dropZoneContext.Consumer, { children: (ctx) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
33141
- (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
33178
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(dropZoneContext.Consumer, { children: (ctx) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
33179
+ (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33142
33180
  LayerTree,
33143
33181
  {
33144
33182
  config,
@@ -33151,7 +33189,7 @@ var Outline = () => {
33151
33189
  ),
33152
33190
  Object.entries(findZonesForArea(data, "root")).map(
33153
33191
  ([zoneKey, zone]) => {
33154
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
33192
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33155
33193
  LayerTree,
33156
33194
  {
33157
33195
  config,
@@ -33409,17 +33447,17 @@ var import_react28 = require("react");
33409
33447
 
33410
33448
  // css-module:/home/runner/work/puck/puck/packages/core/components/ViewportControls/styles.module.css#css-module
33411
33449
  init_react_import();
33412
- var styles_module_default18 = { "ViewportControls": "_ViewportControls_3zdvn_1", "ViewportControls-divider": "_ViewportControls-divider_3zdvn_15", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_3zdvn_21", "ViewportButton--isActive": "_ViewportButton--isActive_3zdvn_33", "ViewportButton-inner": "_ViewportButton-inner_3zdvn_33" };
33450
+ var styles_module_default19 = { "ViewportControls": "_ViewportControls_3zdvn_1", "ViewportControls-divider": "_ViewportControls-divider_3zdvn_15", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_3zdvn_21", "ViewportButton--isActive": "_ViewportButton--isActive_3zdvn_33", "ViewportButton-inner": "_ViewportButton-inner_3zdvn_33" };
33413
33451
 
33414
33452
  // components/ViewportControls/index.tsx
33415
- var import_jsx_runtime33 = require("react/jsx-runtime");
33453
+ var import_jsx_runtime34 = require("react/jsx-runtime");
33416
33454
  var icons = {
33417
- Smartphone: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Smartphone, { size: 16 }),
33418
- Tablet: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Tablet, { size: 16 }),
33419
- Monitor: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Monitor, { size: 16 })
33455
+ Smartphone: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Smartphone, { size: 16 }),
33456
+ Tablet: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Tablet, { size: 16 }),
33457
+ Monitor: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Monitor, { size: 16 })
33420
33458
  };
33421
- var getClassName23 = get_class_name_factory_default("ViewportControls", styles_module_default18);
33422
- var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default18);
33459
+ var getClassName24 = get_class_name_factory_default("ViewportControls", styles_module_default19);
33460
+ var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default19);
33423
33461
  var ViewportButton = ({
33424
33462
  children,
33425
33463
  height = "auto",
@@ -33432,7 +33470,7 @@ var ViewportButton = ({
33432
33470
  (0, import_react28.useEffect)(() => {
33433
33471
  setIsActive(width === state.ui.viewports.current.width);
33434
33472
  }, [width, state.ui.viewports.current.width]);
33435
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: getClassNameButton({ isActive }), children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33473
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: getClassNameButton({ isActive }), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33436
33474
  IconButton,
33437
33475
  {
33438
33476
  title,
@@ -33441,7 +33479,7 @@ var ViewportButton = ({
33441
33479
  e.stopPropagation();
33442
33480
  onClick({ width, height });
33443
33481
  },
33444
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: getClassNameButton("inner"), children })
33482
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: getClassNameButton("inner"), children })
33445
33483
  }
33446
33484
  ) });
33447
33485
  };
@@ -33477,8 +33515,8 @@ var ViewportControls = ({
33477
33515
  ].filter((a) => a.value <= autoZoom).sort((a, b) => a.value > b.value ? 1 : -1),
33478
33516
  [autoZoom]
33479
33517
  );
33480
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: getClassName23(), children: [
33481
- viewports.map((viewport, i) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33518
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName24(), children: [
33519
+ viewports.map((viewport, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33482
33520
  ViewportButton,
33483
33521
  {
33484
33522
  height: viewport.height,
@@ -33489,8 +33527,8 @@ var ViewportControls = ({
33489
33527
  },
33490
33528
  i
33491
33529
  )),
33492
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: getClassName23("divider") }),
33493
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33530
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName24("divider") }),
33531
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33494
33532
  IconButton,
33495
33533
  {
33496
33534
  title: "Zoom viewport out",
@@ -33504,10 +33542,10 @@ var ViewportControls = ({
33504
33542
  )].value
33505
33543
  );
33506
33544
  },
33507
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ZoomOut, { size: 16 })
33545
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ZoomOut, { size: 16 })
33508
33546
  }
33509
33547
  ),
33510
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33548
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33511
33549
  IconButton,
33512
33550
  {
33513
33551
  title: "Zoom viewport in",
@@ -33521,19 +33559,19 @@ var ViewportControls = ({
33521
33559
  )].value
33522
33560
  );
33523
33561
  },
33524
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ZoomIn, { size: 16 })
33562
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ZoomIn, { size: 16 })
33525
33563
  }
33526
33564
  ),
33527
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: getClassName23("divider") }),
33528
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33565
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName24("divider") }),
33566
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33529
33567
  "select",
33530
33568
  {
33531
- className: getClassName23("zoomSelect"),
33569
+ className: getClassName24("zoomSelect"),
33532
33570
  value: zoom.toString(),
33533
33571
  onChange: (e) => {
33534
33572
  onZoom(parseFloat(e.currentTarget.value));
33535
33573
  },
33536
- children: zoomOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
33574
+ children: zoomOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33537
33575
  "option",
33538
33576
  {
33539
33577
  value: option.value,
@@ -33548,7 +33586,7 @@ var ViewportControls = ({
33548
33586
 
33549
33587
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css#css-module
33550
33588
  init_react_import();
33551
- var styles_module_default19 = { "PuckCanvas": "_PuckCanvas_6zd4y_1", "PuckCanvas-controls": "_PuckCanvas-controls_6zd4y_16", "PuckCanvas-inner": "_PuckCanvas-inner_6zd4y_21", "PuckCanvas-root": "_PuckCanvas-root_6zd4y_32", "PuckCanvas--ready": "_PuckCanvas--ready_6zd4y_56" };
33589
+ var styles_module_default20 = { "PuckCanvas": "_PuckCanvas_6zd4y_1", "PuckCanvas-controls": "_PuckCanvas-controls_6zd4y_16", "PuckCanvas-inner": "_PuckCanvas-inner_6zd4y_21", "PuckCanvas-root": "_PuckCanvas-root_6zd4y_32", "PuckCanvas--ready": "_PuckCanvas--ready_6zd4y_56" };
33552
33590
 
33553
33591
  // lib/get-zoom-config.ts
33554
33592
  init_react_import();
@@ -33581,8 +33619,8 @@ var getZoomConfig = (uiViewport, frame, zoom) => {
33581
33619
  };
33582
33620
 
33583
33621
  // components/Puck/components/Canvas/index.tsx
33584
- var import_jsx_runtime34 = require("react/jsx-runtime");
33585
- var getClassName24 = get_class_name_factory_default("PuckCanvas", styles_module_default19);
33622
+ var import_jsx_runtime35 = require("react/jsx-runtime");
33623
+ var getClassName25 = get_class_name_factory_default("PuckCanvas", styles_module_default20);
33586
33624
  var ZOOM_ON_CHANGE = true;
33587
33625
  var Canvas = () => {
33588
33626
  const { status, iframe } = useAppContext();
@@ -33591,7 +33629,7 @@ var Canvas = () => {
33591
33629
  const frameRef = (0, import_react29.useRef)(null);
33592
33630
  const [showTransition, setShowTransition] = (0, import_react29.useState)(false);
33593
33631
  const defaultRender = (0, import_react29.useMemo)(() => {
33594
- const PuckDefault = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children });
33632
+ const PuckDefault = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children });
33595
33633
  return PuckDefault;
33596
33634
  }, []);
33597
33635
  const CustomPreview = (0, import_react29.useMemo)(
@@ -33640,10 +33678,10 @@ var Canvas = () => {
33640
33678
  observer.disconnect();
33641
33679
  };
33642
33680
  }, []);
33643
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
33681
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
33644
33682
  "div",
33645
33683
  {
33646
- className: getClassName24({
33684
+ className: getClassName25({
33647
33685
  ready: status === "READY" || !iframe.enabled
33648
33686
  }),
33649
33687
  onClick: () => dispatch({
@@ -33652,7 +33690,7 @@ var Canvas = () => {
33652
33690
  recordHistory: true
33653
33691
  }),
33654
33692
  children: [
33655
- ui.viewports.controlsVisible && iframe.enabled && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName24("controls"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33693
+ ui.viewports.controlsVisible && iframe.enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("controls"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
33656
33694
  ViewportControls,
33657
33695
  {
33658
33696
  autoZoom: zoomConfig.autoZoom,
@@ -33677,10 +33715,10 @@ var Canvas = () => {
33677
33715
  }
33678
33716
  }
33679
33717
  ) }),
33680
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName24("inner"), ref: frameRef, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
33718
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("inner"), ref: frameRef, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
33681
33719
  "div",
33682
33720
  {
33683
- className: getClassName24("root"),
33721
+ className: getClassName25("root"),
33684
33722
  style: {
33685
33723
  width: iframe.enabled ? ui.viewports.current.width : "100%",
33686
33724
  height: zoomConfig.rootHeight,
@@ -33689,7 +33727,7 @@ var Canvas = () => {
33689
33727
  overflow: iframe.enabled ? void 0 : "auto"
33690
33728
  },
33691
33729
  suppressHydrationWarning: true,
33692
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Preview, {}) })
33730
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Preview, {}) })
33693
33731
  }
33694
33732
  ) })
33695
33733
  ]
@@ -33698,8 +33736,9 @@ var Canvas = () => {
33698
33736
  };
33699
33737
 
33700
33738
  // components/Puck/index.tsx
33701
- var import_jsx_runtime35 = require("react/jsx-runtime");
33702
- var getClassName25 = get_class_name_factory_default("Puck", styles_module_default13);
33739
+ var import_jsx_runtime36 = require("react/jsx-runtime");
33740
+ var getClassName26 = get_class_name_factory_default("Puck", styles_module_default14);
33741
+ var getLayoutClassName = get_class_name_factory_default("PuckLayout", styles_module_default14);
33703
33742
  function Puck({
33704
33743
  children,
33705
33744
  config,
@@ -33853,7 +33892,7 @@ function Puck({
33853
33892
  };
33854
33893
  }, []);
33855
33894
  const defaultRender = (0, import_react30.useMemo)(() => {
33856
- const PuckDefault = ({ children: children2 }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: children2 });
33895
+ const PuckDefault = ({ children: children2 }) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: children2 });
33857
33896
  return PuckDefault;
33858
33897
  }, []);
33859
33898
  const defaultHeaderRender = (0, import_react30.useMemo)(() => {
@@ -33864,7 +33903,7 @@ function Puck({
33864
33903
  const RenderHeader = (_a2) => {
33865
33904
  var _b = _a2, { actions } = _b, props = __objRest(_b, ["actions"]);
33866
33905
  const Comp = renderHeader;
33867
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Comp, __spreadProps(__spreadValues({}, props), { dispatch, state: appState, children: actions }));
33906
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Comp, __spreadProps(__spreadValues({}, props), { dispatch, state: appState, children: actions }));
33868
33907
  };
33869
33908
  return RenderHeader;
33870
33909
  }
@@ -33877,7 +33916,7 @@ function Puck({
33877
33916
  );
33878
33917
  const RenderHeader = (props) => {
33879
33918
  const Comp = renderHeaderActions;
33880
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Comp, __spreadProps(__spreadValues({}, props), { dispatch, state: appState }));
33919
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Comp, __spreadProps(__spreadValues({}, props), { dispatch, state: appState }));
33881
33920
  };
33882
33921
  return RenderHeader;
33883
33922
  }
@@ -33902,157 +33941,179 @@ function Puck({
33902
33941
  (0, import_react30.useEffect)(() => {
33903
33942
  setMounted(true);
33904
33943
  }, []);
33905
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "Puck", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
33906
- AppProvider,
33907
- {
33908
- value: {
33909
- state: appState,
33910
- dispatch,
33911
- config,
33912
- componentState,
33913
- resolveData,
33914
- plugins,
33915
- overrides: loadedOverrides,
33916
- history,
33917
- viewports,
33918
- iframe
33919
- },
33920
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
33921
- DragDropContext,
33922
- {
33923
- autoScrollerOptions: { disabled: dnd == null ? void 0 : dnd.disableAutoScroll },
33924
- onDragUpdate: (update) => {
33925
- setDraggedItem(__spreadValues(__spreadValues({}, draggedItem), update));
33926
- onDragStartOrUpdate(update);
33927
- },
33928
- onBeforeDragStart: (start) => {
33929
- onDragStartOrUpdate(start);
33930
- setItemSelector(null);
33931
- dispatch({ type: "setUi", ui: { isDragging: true } });
33932
- },
33933
- onDragEnd: (droppedItem) => {
33934
- setDraggedItem(void 0);
33935
- dispatch({ type: "setUi", ui: { isDragging: false } });
33936
- if (!droppedItem.destination) {
33937
- return;
33938
- }
33939
- if (droppedItem.source.droppableId.startsWith("component-list") && droppedItem.destination) {
33940
- const [_, componentType] = droppedItem.draggableId.split("::");
33941
- dispatch({
33942
- type: "insert",
33943
- componentType: componentType || droppedItem.draggableId,
33944
- destinationIndex: droppedItem.destination.index,
33945
- destinationZone: droppedItem.destination.droppableId
33946
- });
33947
- setItemSelector({
33948
- index: droppedItem.destination.index,
33949
- zone: droppedItem.destination.droppableId
33950
- });
33951
- return;
33952
- } else {
33953
- const { source, destination } = droppedItem;
33954
- if (source.droppableId === destination.droppableId) {
33944
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: `Puck ${getClassName26()}`, children: [
33945
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
33946
+ AppProvider,
33947
+ {
33948
+ value: {
33949
+ state: appState,
33950
+ dispatch,
33951
+ config,
33952
+ componentState,
33953
+ resolveData,
33954
+ plugins,
33955
+ overrides: loadedOverrides,
33956
+ history,
33957
+ viewports,
33958
+ iframe
33959
+ },
33960
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
33961
+ DragDropContext,
33962
+ {
33963
+ autoScrollerOptions: { disabled: dnd == null ? void 0 : dnd.disableAutoScroll },
33964
+ onDragUpdate: (update) => {
33965
+ setDraggedItem(__spreadValues(__spreadValues({}, draggedItem), update));
33966
+ onDragStartOrUpdate(update);
33967
+ },
33968
+ onBeforeDragStart: (start) => {
33969
+ onDragStartOrUpdate(start);
33970
+ setItemSelector(null);
33971
+ dispatch({ type: "setUi", ui: { isDragging: true } });
33972
+ },
33973
+ onDragEnd: (droppedItem) => {
33974
+ setDraggedItem(void 0);
33975
+ dispatch({ type: "setUi", ui: { isDragging: false } });
33976
+ if (!droppedItem.destination) {
33977
+ return;
33978
+ }
33979
+ if (droppedItem.source.droppableId.startsWith("component-list") && droppedItem.destination) {
33980
+ const [_, componentType] = droppedItem.draggableId.split("::");
33955
33981
  dispatch({
33956
- type: "reorder",
33957
- sourceIndex: source.index,
33958
- destinationIndex: destination.index,
33959
- destinationZone: destination.droppableId
33982
+ type: "insert",
33983
+ componentType: componentType || droppedItem.draggableId,
33984
+ destinationIndex: droppedItem.destination.index,
33985
+ destinationZone: droppedItem.destination.droppableId
33960
33986
  });
33987
+ setItemSelector({
33988
+ index: droppedItem.destination.index,
33989
+ zone: droppedItem.destination.droppableId
33990
+ });
33991
+ return;
33961
33992
  } else {
33962
- dispatch({
33963
- type: "move",
33964
- sourceZone: source.droppableId,
33965
- sourceIndex: source.index,
33966
- destinationIndex: destination.index,
33967
- destinationZone: destination.droppableId
33993
+ const { source, destination } = droppedItem;
33994
+ if (source.droppableId === destination.droppableId) {
33995
+ dispatch({
33996
+ type: "reorder",
33997
+ sourceIndex: source.index,
33998
+ destinationIndex: destination.index,
33999
+ destinationZone: destination.droppableId
34000
+ });
34001
+ } else {
34002
+ dispatch({
34003
+ type: "move",
34004
+ sourceZone: source.droppableId,
34005
+ sourceIndex: source.index,
34006
+ destinationIndex: destination.index,
34007
+ destinationZone: destination.droppableId
34008
+ });
34009
+ }
34010
+ setItemSelector({
34011
+ index: destination.index,
34012
+ zone: destination.droppableId
33968
34013
  });
33969
34014
  }
33970
- setItemSelector({
33971
- index: destination.index,
33972
- zone: destination.droppableId
33973
- });
33974
- }
33975
- },
33976
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
33977
- DropZoneProvider,
33978
- {
33979
- value: {
33980
- data,
33981
- itemSelector,
33982
- setItemSelector,
33983
- config,
33984
- dispatch,
33985
- draggedItem,
33986
- placeholderStyle,
33987
- mode: "edit",
33988
- areaId: "root"
33989
- },
33990
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomPuck, { children: children || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
33991
- "div",
33992
- {
33993
- className: getClassName25({
33994
- leftSideBarVisible,
33995
- menuOpen,
33996
- mounted,
33997
- rightSideBarVisible
33998
- }),
33999
- children: [
34000
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getClassName25("layout"), children: [
34001
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34015
+ },
34016
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34017
+ DropZoneProvider,
34018
+ {
34019
+ value: {
34020
+ data,
34021
+ itemSelector,
34022
+ setItemSelector,
34023
+ config,
34024
+ dispatch,
34025
+ draggedItem,
34026
+ placeholderStyle,
34027
+ mode: "edit",
34028
+ areaId: "root"
34029
+ },
34030
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomPuck, { children: children || /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34031
+ "div",
34032
+ {
34033
+ className: getLayoutClassName({
34034
+ leftSideBarVisible,
34035
+ menuOpen,
34036
+ mounted,
34037
+ rightSideBarVisible
34038
+ }),
34039
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: getLayoutClassName("inner"), children: [
34040
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34002
34041
  CustomHeader,
34003
34042
  {
34004
- actions: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34043
+ actions: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34005
34044
  Button,
34006
34045
  {
34007
34046
  onClick: () => {
34008
34047
  onPublish && onPublish(data);
34009
34048
  },
34010
- icon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Globe, { size: "14px" }),
34049
+ icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Globe, { size: "14px" }),
34011
34050
  children: "Publish"
34012
34051
  }
34013
34052
  ) }) }),
34014
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("header", { className: getClassName25("header"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getClassName25("headerInner"), children: [
34015
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getClassName25("headerToggle"), children: [
34016
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34017
- IconButton,
34053
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("header", { className: getLayoutClassName("header"), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: getLayoutClassName("headerInner"), children: [
34054
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: getLayoutClassName("headerToggle"), children: [
34055
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34056
+ "div",
34018
34057
  {
34019
- onClick: () => {
34020
- toggleSidebars("left");
34021
- },
34022
- title: "Toggle left sidebar",
34023
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(PanelLeft, { focusable: "false" })
34058
+ className: getLayoutClassName(
34059
+ "leftSideBarToggle"
34060
+ ),
34061
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34062
+ IconButton,
34063
+ {
34064
+ onClick: () => {
34065
+ toggleSidebars("left");
34066
+ },
34067
+ title: "Toggle left sidebar",
34068
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PanelLeft, { focusable: "false" })
34069
+ }
34070
+ )
34024
34071
  }
34025
- ) }),
34026
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34027
- IconButton,
34072
+ ),
34073
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34074
+ "div",
34028
34075
  {
34029
- onClick: () => {
34030
- toggleSidebars("right");
34031
- },
34032
- title: "Toggle right sidebar",
34033
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(PanelRight, { focusable: "false" })
34076
+ className: getLayoutClassName(
34077
+ "rightSideBarToggle"
34078
+ ),
34079
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34080
+ IconButton,
34081
+ {
34082
+ onClick: () => {
34083
+ toggleSidebars("right");
34084
+ },
34085
+ title: "Toggle right sidebar",
34086
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PanelRight, { focusable: "false" })
34087
+ }
34088
+ )
34034
34089
  }
34035
- ) })
34090
+ )
34036
34091
  ] }),
34037
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Heading, { rank: 2, size: "xs", children: [
34092
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: getLayoutClassName("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Heading, { rank: 2, size: "xs", children: [
34038
34093
  headerTitle || rootProps.title || "Page",
34039
- headerPath && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
34094
+ headerPath && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
34040
34095
  " ",
34041
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("code", { className: getClassName25("headerPath"), children: headerPath })
34096
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34097
+ "code",
34098
+ {
34099
+ className: getLayoutClassName("headerPath"),
34100
+ children: headerPath
34101
+ }
34102
+ )
34042
34103
  ] })
34043
34104
  ] }) }),
34044
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getClassName25("headerTools"), children: [
34045
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34105
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: getLayoutClassName("headerTools"), children: [
34106
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: getLayoutClassName("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34046
34107
  IconButton,
34047
34108
  {
34048
34109
  onClick: () => {
34049
34110
  return setMenuOpen(!menuOpen);
34050
34111
  },
34051
34112
  title: "Toggle menu bar",
34052
- children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ChevronDown, { focusable: "false" })
34113
+ children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ChevronDown, { focusable: "false" })
34053
34114
  }
34054
34115
  ) }),
34055
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34116
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34056
34117
  MenuBar,
34057
34118
  {
34058
34119
  appState,
@@ -34060,13 +34121,13 @@ function Puck({
34060
34121
  dispatch,
34061
34122
  onPublish,
34062
34123
  menuOpen,
34063
- renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34124
+ renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CustomHeaderActions, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34064
34125
  Button,
34065
34126
  {
34066
34127
  onClick: () => {
34067
34128
  onPublish && onPublish(data);
34068
34129
  },
34069
- icon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Globe, { size: "14px" }),
34130
+ icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Globe, { size: "14px" }),
34070
34131
  children: "Publish"
34071
34132
  }
34072
34133
  ) }),
@@ -34077,38 +34138,32 @@ function Puck({
34077
34138
  ] }) })
34078
34139
  }
34079
34140
  ),
34080
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: getClassName25("leftSideBar"), children: [
34081
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Components, {}) }),
34082
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Outline, {}) })
34141
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: getLayoutClassName("leftSideBar"), children: [
34142
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SidebarSection, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Components, {}) }),
34143
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SidebarSection, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Outline, {}) })
34083
34144
  ] }),
34084
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Canvas, {}),
34085
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: getClassName25("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34145
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Canvas, {}),
34146
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: getLayoutClassName("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34086
34147
  SidebarSection,
34087
34148
  {
34088
34149
  noPadding: true,
34089
34150
  noBorderTop: true,
34090
34151
  showBreadcrumbs: true,
34091
34152
  title: selectedItem ? (_a = config.components[selectedItem.type]["label"]) != null ? _a : selectedItem.type : "Page",
34092
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Fields, {})
34153
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Fields, {})
34093
34154
  }
34094
34155
  ) })
34095
- ] }),
34096
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
34097
- "div",
34098
- {
34099
- id: "puck-portal-root",
34100
- className: getClassName25("portal")
34101
- }
34102
- )
34103
- ]
34104
- }
34105
- ) })
34106
- }
34107
- )
34108
- }
34109
- )
34110
- }
34111
- ) });
34156
+ ] })
34157
+ }
34158
+ ) })
34159
+ }
34160
+ )
34161
+ }
34162
+ )
34163
+ }
34164
+ ),
34165
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { id: "puck-portal-root", className: getClassName26("portal") })
34166
+ ] });
34112
34167
  }
34113
34168
  Puck.Components = Components;
34114
34169
  Puck.Fields = Fields;
@@ -34117,7 +34172,7 @@ Puck.Preview = Preview;
34117
34172
 
34118
34173
  // components/Render/index.tsx
34119
34174
  init_react_import();
34120
- var import_jsx_runtime36 = require("react/jsx-runtime");
34175
+ var import_jsx_runtime37 = require("react/jsx-runtime");
34121
34176
  function Render({
34122
34177
  config,
34123
34178
  data
@@ -34130,20 +34185,21 @@ function Render({
34130
34185
  const rootProps = defaultedData.root.props || defaultedData.root;
34131
34186
  const title = (rootProps == null ? void 0 : rootProps.title) || "";
34132
34187
  if ((_a = config.root) == null ? void 0 : _a.render) {
34133
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DropZoneProvider, { value: { data: defaultedData, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
34188
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropZoneProvider, { value: { data: defaultedData, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
34134
34189
  config.root.render,
34135
34190
  __spreadProps(__spreadValues({}, rootProps), {
34136
34191
  puck: {
34137
- renderDropZone: DropZone
34192
+ renderDropZone: DropZone,
34193
+ isEditing: false
34138
34194
  },
34139
34195
  title,
34140
34196
  editMode: false,
34141
34197
  id: "puck-root",
34142
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DropZone, { zone: rootDroppableId })
34198
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropZone, { zone: rootDroppableId })
34143
34199
  })
34144
34200
  ) });
34145
34201
  }
34146
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DropZoneProvider, { value: { data: defaultedData, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DropZone, { zone: rootDroppableId }) });
34202
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropZoneProvider, { value: { data: defaultedData, config, mode: "render" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropZone, { zone: rootDroppableId }) });
34147
34203
  }
34148
34204
 
34149
34205
  // lib/migrate.ts
@@ -34378,14 +34434,6 @@ lucide-react/dist/esm/icons/chevron-down.js:
34378
34434
  * See the LICENSE file in the root directory of this source tree.
34379
34435
  *)
34380
34436
 
34381
- lucide-react/dist/esm/icons/chevron-left.js:
34382
- (**
34383
- * @license lucide-react v0.298.0 - ISC
34384
- *
34385
- * This source code is licensed under the ISC license.
34386
- * See the LICENSE file in the root directory of this source tree.
34387
- *)
34388
-
34389
34437
  lucide-react/dist/esm/icons/chevron-right.js:
34390
34438
  (**
34391
34439
  * @license lucide-react v0.298.0 - ISC
@@ -34506,6 +34554,14 @@ lucide-react/dist/esm/icons/plus.js:
34506
34554
  * See the LICENSE file in the root directory of this source tree.
34507
34555
  *)
34508
34556
 
34557
+ lucide-react/dist/esm/icons/redo-2.js:
34558
+ (**
34559
+ * @license lucide-react v0.298.0 - ISC
34560
+ *
34561
+ * This source code is licensed under the ISC license.
34562
+ * See the LICENSE file in the root directory of this source tree.
34563
+ *)
34564
+
34509
34565
  lucide-react/dist/esm/icons/search.js:
34510
34566
  (**
34511
34567
  * @license lucide-react v0.298.0 - ISC
@@ -34554,6 +34610,14 @@ lucide-react/dist/esm/icons/type.js:
34554
34610
  * See the LICENSE file in the root directory of this source tree.
34555
34611
  *)
34556
34612
 
34613
+ lucide-react/dist/esm/icons/undo-2.js:
34614
+ (**
34615
+ * @license lucide-react v0.298.0 - ISC
34616
+ *
34617
+ * This source code is licensed under the ISC license.
34618
+ * See the LICENSE file in the root directory of this source tree.
34619
+ *)
34620
+
34557
34621
  lucide-react/dist/esm/icons/unlock.js:
34558
34622
  (**
34559
34623
  * @license lucide-react v0.298.0 - ISC