@measured/puck 0.16.1-canary.31c1f9b → 0.16.1-canary.71974f3

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.mjs CHANGED
@@ -138,7 +138,7 @@ var get_class_name_factory_default = getClassNameFactory;
138
138
 
139
139
  // css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css#css-module
140
140
  init_react_import();
141
- var styles_module_default = { "ActionBar": "_ActionBar_fp58q_1", "ActionBar-actionsLabel": "_ActionBar-actionsLabel_fp58q_16", "ActionBar-group": "_ActionBar-group_fp58q_29", "ActionBar-action": "_ActionBar-action_fp58q_16" };
141
+ var styles_module_default = { "ActionBar": "_ActionBar_1xlbj_1", "ActionBar-actionsLabel": "_ActionBar-actionsLabel_1xlbj_16", "ActionBar-group": "_ActionBar-group_1xlbj_29", "ActionBar-action": "_ActionBar-action_1xlbj_16" };
142
142
 
143
143
  // components/ActionBar/index.tsx
144
144
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -2388,13 +2388,8 @@ var isIos = () => [
2388
2388
  ].includes(navigator.platform) || // iPad on iOS 13 detection
2389
2389
  navigator.userAgent.includes("Mac") && "ontouchend" in document;
2390
2390
 
2391
- // components/DefaultOverride/index.tsx
2392
- init_react_import();
2393
- import { Fragment as Fragment9, jsx as jsx22 } from "react/jsx-runtime";
2394
- var DefaultOverride = ({ children }) => /* @__PURE__ */ jsx22(Fragment9, { children });
2395
-
2396
2391
  // components/DraggableComponent/index.tsx
2397
- import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
2392
+ import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
2398
2393
  var getClassName17 = get_class_name_factory_default("DraggableComponent", styles_module_default11);
2399
2394
  var space = 8;
2400
2395
  var actionsOverlayTop = space * 6.5;
@@ -2403,7 +2398,7 @@ var actionsRight = space;
2403
2398
  var DefaultActionBar = ({
2404
2399
  label,
2405
2400
  children
2406
- }) => /* @__PURE__ */ jsx23(ActionBar, { label, children: /* @__PURE__ */ jsx23(ActionBar.Group, { children: /* @__PURE__ */ jsx23(DefaultOverride, { children }) }) });
2401
+ }) => /* @__PURE__ */ jsx22(ActionBar, { label, children: /* @__PURE__ */ jsx22(ActionBar.Group, { children }) });
2407
2402
  var DraggableComponent = ({
2408
2403
  children,
2409
2404
  id,
@@ -2443,7 +2438,7 @@ var DraggableComponent = ({
2443
2438
  const permissions = getPermissions({
2444
2439
  item: selectedItem
2445
2440
  });
2446
- return /* @__PURE__ */ jsx23(
2441
+ return /* @__PURE__ */ jsx22(
2447
2442
  El,
2448
2443
  {
2449
2444
  draggableId: id,
@@ -2473,15 +2468,15 @@ var DraggableComponent = ({
2473
2468
  onClick,
2474
2469
  children: [
2475
2470
  debug,
2476
- isLoading && /* @__PURE__ */ jsx23("div", { className: getClassName17("loadingOverlay"), children: /* @__PURE__ */ jsx23(Loader, {}) }),
2477
- isSelected && /* @__PURE__ */ jsx23(
2471
+ isLoading && /* @__PURE__ */ jsx22("div", { className: getClassName17("loadingOverlay"), children: /* @__PURE__ */ jsx22(Loader, {}) }),
2472
+ isSelected && /* @__PURE__ */ jsx22(
2478
2473
  "div",
2479
2474
  {
2480
2475
  className: getClassName17("actionsOverlay"),
2481
2476
  style: {
2482
2477
  top: actionsOverlayTop / zoomConfig.zoom
2483
2478
  },
2484
- children: /* @__PURE__ */ jsx23(
2479
+ children: /* @__PURE__ */ jsx22(
2485
2480
  "div",
2486
2481
  {
2487
2482
  className: getClassName17("actions"),
@@ -2491,15 +2486,15 @@ var DraggableComponent = ({
2491
2486
  right: actionsRight / zoomConfig.zoom
2492
2487
  },
2493
2488
  children: /* @__PURE__ */ jsxs11(CustomActionBar, { label, children: [
2494
- permissions.duplicate && /* @__PURE__ */ jsx23(ActionBar.Action, { onClick: onDuplicate, label: "Duplicate", children: /* @__PURE__ */ jsx23(Copy, { size: 16 }) }),
2495
- permissions.delete && /* @__PURE__ */ jsx23(ActionBar.Action, { onClick: onDelete, label: "Delete", children: /* @__PURE__ */ jsx23(Trash, { size: 16 }) })
2489
+ permissions.duplicate && /* @__PURE__ */ jsx22(ActionBar.Action, { onClick: onDuplicate, label: "Duplicate", children: /* @__PURE__ */ jsx22(Copy, { size: 16 }) }),
2490
+ permissions.delete && /* @__PURE__ */ jsx22(ActionBar.Action, { onClick: onDelete, label: "Delete", children: /* @__PURE__ */ jsx22(Trash, { size: 16 }) })
2496
2491
  ] })
2497
2492
  }
2498
2493
  )
2499
2494
  }
2500
2495
  ),
2501
- /* @__PURE__ */ jsx23("div", { className: getClassName17("overlay") }),
2502
- /* @__PURE__ */ jsx23("div", { className: getClassName17("contents"), children })
2496
+ /* @__PURE__ */ jsx22("div", { className: getClassName17("overlay") }),
2497
+ /* @__PURE__ */ jsx22("div", { className: getClassName17("contents"), children })
2503
2498
  ]
2504
2499
  })
2505
2500
  )
@@ -2534,7 +2529,7 @@ var getZoneId = (zoneCompound) => {
2534
2529
  };
2535
2530
 
2536
2531
  // components/DropZone/context.tsx
2537
- import { Fragment as Fragment10, jsx as jsx24 } from "react/jsx-runtime";
2532
+ import { Fragment as Fragment9, jsx as jsx23 } from "react/jsx-runtime";
2538
2533
  var dropZoneContext = createContext3(null);
2539
2534
  var DropZoneProvider = ({
2540
2535
  children,
@@ -2612,7 +2607,7 @@ var DropZoneProvider = ({
2612
2607
  [value, setPathData]
2613
2608
  );
2614
2609
  const [zoneWillDrag, setZoneWillDrag] = useState13("");
2615
- return /* @__PURE__ */ jsx24(Fragment10, { children: value && /* @__PURE__ */ jsx24(
2610
+ return /* @__PURE__ */ jsx23(Fragment9, { children: value && /* @__PURE__ */ jsx23(
2616
2611
  dropZoneContext.Provider,
2617
2612
  {
2618
2613
  value: __spreadValues({
@@ -2638,7 +2633,7 @@ var DropZoneProvider = ({
2638
2633
  };
2639
2634
 
2640
2635
  // components/DropZone/index.tsx
2641
- import { Fragment as Fragment11, jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
2636
+ import { Fragment as Fragment10, jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
2642
2637
  var getClassName18 = get_class_name_factory_default("DropZone", styles_module_default12);
2643
2638
  function DropZoneEdit({ zone, allow, disallow, style }) {
2644
2639
  var _a;
@@ -2693,7 +2688,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2693
2688
  const draggingOverArea = userIsDragging && zoneArea === draggedSourceArea;
2694
2689
  const draggingNewComponent = draggedSourceId == null ? void 0 : draggedSourceId.startsWith("component-list");
2695
2690
  if (!(ctx == null ? void 0 : ctx.config) || !ctx.setHoveringArea || !ctx.setHoveringZone || !ctx.setHoveringComponent || !ctx.setItemSelector || !ctx.registerPath || !ctx.dispatch) {
2696
- return /* @__PURE__ */ jsx25("div", { children: "DropZone requires context to work." });
2691
+ return /* @__PURE__ */ jsx24("div", { children: "DropZone requires context to work." });
2697
2692
  }
2698
2693
  const {
2699
2694
  hoveringArea = "root",
@@ -2734,7 +2729,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2734
2729
  }
2735
2730
  const selectedItem = itemSelector ? getItem(itemSelector, data) : null;
2736
2731
  const isAreaSelected = selectedItem && zoneArea === selectedItem.props.id;
2737
- return /* @__PURE__ */ jsx25(
2732
+ return /* @__PURE__ */ jsx24(
2738
2733
  "div",
2739
2734
  {
2740
2735
  className: getClassName18({
@@ -2751,7 +2746,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2751
2746
  onMouseUp: () => {
2752
2747
  setZoneWillDrag("");
2753
2748
  },
2754
- children: /* @__PURE__ */ jsx25(
2749
+ children: /* @__PURE__ */ jsx24(
2755
2750
  Droppable,
2756
2751
  {
2757
2752
  droppableId: zoneCompound,
@@ -2806,13 +2801,13 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2806
2801
  className: getClassName18("item"),
2807
2802
  style: { zIndex: isDragging ? 1 : void 0 },
2808
2803
  children: [
2809
- /* @__PURE__ */ jsx25(
2804
+ /* @__PURE__ */ jsx24(
2810
2805
  DropZoneProvider,
2811
2806
  {
2812
2807
  value: __spreadProps(__spreadValues({}, ctx), {
2813
2808
  areaId: componentId
2814
2809
  }),
2815
- children: /* @__PURE__ */ jsx25(
2810
+ children: /* @__PURE__ */ jsx24(
2816
2811
  DraggableComponent,
2817
2812
  {
2818
2813
  label,
@@ -2880,12 +2875,12 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2880
2875
  style: {
2881
2876
  pointerEvents: userIsDragging && draggingNewComponent ? "all" : void 0
2882
2877
  },
2883
- children: /* @__PURE__ */ jsx25("div", { className: getClassName18("renderWrapper"), children: /* @__PURE__ */ jsx25(Render2, __spreadValues({}, defaultedProps)) })
2878
+ children: /* @__PURE__ */ jsx24("div", { className: getClassName18("renderWrapper"), children: /* @__PURE__ */ jsx24(Render2, __spreadValues({}, defaultedProps)) })
2884
2879
  }
2885
2880
  )
2886
2881
  }
2887
2882
  ),
2888
- userIsDragging && /* @__PURE__ */ jsx25(
2883
+ userIsDragging && /* @__PURE__ */ jsx24(
2889
2884
  "div",
2890
2885
  {
2891
2886
  className: getClassName18("hitbox"),
@@ -2902,7 +2897,7 @@ function DropZoneEdit({ zone, allow, disallow, style }) {
2902
2897
  );
2903
2898
  }),
2904
2899
  provided == null ? void 0 : provided.placeholder,
2905
- (snapshot == null ? void 0 : snapshot.isDraggingOver) && /* @__PURE__ */ jsx25(
2900
+ (snapshot == null ? void 0 : snapshot.isDraggingOver) && /* @__PURE__ */ jsx24(
2906
2901
  "div",
2907
2902
  {
2908
2903
  "data-puck-placeholder": true,
@@ -2934,14 +2929,14 @@ function DropZoneRender({ zone }) {
2934
2929
  zoneCompound = `${areaId}:${zone}`;
2935
2930
  content = setupZone(data, zoneCompound).zones[zoneCompound];
2936
2931
  }
2937
- return /* @__PURE__ */ jsx25(Fragment11, { children: content.map((item) => {
2932
+ return /* @__PURE__ */ jsx24(Fragment10, { children: content.map((item) => {
2938
2933
  const Component = config.components[item.type];
2939
2934
  if (Component) {
2940
- return /* @__PURE__ */ jsx25(
2935
+ return /* @__PURE__ */ jsx24(
2941
2936
  DropZoneProvider,
2942
2937
  {
2943
2938
  value: { data, config, areaId: item.props.id },
2944
- children: /* @__PURE__ */ jsx25(
2939
+ children: /* @__PURE__ */ jsx24(
2945
2940
  Component.render,
2946
2941
  __spreadProps(__spreadValues({}, item.props), {
2947
2942
  puck: { renderDropZone: DropZone }
@@ -2957,9 +2952,9 @@ function DropZoneRender({ zone }) {
2957
2952
  function DropZone(props) {
2958
2953
  const ctx = useContext3(dropZoneContext);
2959
2954
  if ((ctx == null ? void 0 : ctx.mode) === "edit") {
2960
- return /* @__PURE__ */ jsx25(DropZoneEdit, __spreadValues({}, props));
2955
+ return /* @__PURE__ */ jsx24(DropZoneEdit, __spreadValues({}, props));
2961
2956
  }
2962
- return /* @__PURE__ */ jsx25(DropZoneRender, __spreadValues({}, props));
2957
+ return /* @__PURE__ */ jsx24(DropZoneRender, __spreadValues({}, props));
2963
2958
  }
2964
2959
 
2965
2960
  // components/Puck/index.tsx
@@ -3107,7 +3102,7 @@ var useBreadcrumbs = (renderCount) => {
3107
3102
  };
3108
3103
 
3109
3104
  // components/SidebarSection/index.tsx
3110
- import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
3105
+ import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
3111
3106
  var getClassName19 = get_class_name_factory_default("SidebarSection", styles_module_default13);
3112
3107
  var SidebarSection = ({
3113
3108
  children,
@@ -3126,9 +3121,9 @@ var SidebarSection = ({
3126
3121
  className: getClassName19({ noBorderTop, noPadding }),
3127
3122
  style: { background },
3128
3123
  children: [
3129
- /* @__PURE__ */ jsx26("div", { className: getClassName19("title"), children: /* @__PURE__ */ jsxs13("div", { className: getClassName19("breadcrumbs"), children: [
3124
+ /* @__PURE__ */ jsx25("div", { className: getClassName19("title"), children: /* @__PURE__ */ jsxs13("div", { className: getClassName19("breadcrumbs"), children: [
3130
3125
  showBreadcrumbs ? breadcrumbs.map((breadcrumb, i) => /* @__PURE__ */ jsxs13("div", { className: getClassName19("breadcrumb"), children: [
3131
- /* @__PURE__ */ jsx26(
3126
+ /* @__PURE__ */ jsx25(
3132
3127
  "button",
3133
3128
  {
3134
3129
  type: "button",
@@ -3137,12 +3132,12 @@ var SidebarSection = ({
3137
3132
  children: breadcrumb.label
3138
3133
  }
3139
3134
  ),
3140
- /* @__PURE__ */ jsx26(ChevronRight, { size: 16 })
3135
+ /* @__PURE__ */ jsx25(ChevronRight, { size: 16 })
3141
3136
  ] }, i)) : null,
3142
- /* @__PURE__ */ jsx26("div", { className: getClassName19("heading"), children: /* @__PURE__ */ jsx26(Heading, { rank: "2", size: "xs", children: title }) })
3137
+ /* @__PURE__ */ jsx25("div", { className: getClassName19("heading"), children: /* @__PURE__ */ jsx25(Heading, { rank: "2", size: "xs", children: title }) })
3143
3138
  ] }) }),
3144
- /* @__PURE__ */ jsx26("div", { className: getClassName19("content"), children }),
3145
- isLoading && /* @__PURE__ */ jsx26("div", { className: getClassName19("loadingOverlay"), children: /* @__PURE__ */ jsx26(Loader, { size: 32 }) })
3139
+ /* @__PURE__ */ jsx25("div", { className: getClassName19("content"), children }),
3140
+ isLoading && /* @__PURE__ */ jsx25("div", { className: getClassName19("loadingOverlay"), children: /* @__PURE__ */ jsx25(Loader, { size: 32 }) })
3146
3141
  ]
3147
3142
  }
3148
3143
  );
@@ -3523,7 +3518,7 @@ init_react_import();
3523
3518
  var styles_module_default14 = { "MenuBar": "_MenuBar_8pf8c_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_8pf8c_14", "MenuBar-inner": "_MenuBar-inner_8pf8c_29", "MenuBar-history": "_MenuBar-history_8pf8c_45" };
3524
3519
 
3525
3520
  // components/MenuBar/index.tsx
3526
- import { Fragment as Fragment12, jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
3521
+ import { Fragment as Fragment11, jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
3527
3522
  var getClassName20 = get_class_name_factory_default("MenuBar", styles_module_default14);
3528
3523
  function MenuBar({
3529
3524
  appState,
@@ -3537,7 +3532,7 @@ function MenuBar({
3537
3532
  history: { back, forward, historyStore }
3538
3533
  } = useAppContext();
3539
3534
  const { hasFuture = false, hasPast = false } = historyStore || {};
3540
- return /* @__PURE__ */ jsx27(
3535
+ return /* @__PURE__ */ jsx26(
3541
3536
  "div",
3542
3537
  {
3543
3538
  className: getClassName20({ menuOpen }),
@@ -3553,10 +3548,10 @@ function MenuBar({
3553
3548
  },
3554
3549
  children: /* @__PURE__ */ jsxs14("div", { className: getClassName20("inner"), children: [
3555
3550
  /* @__PURE__ */ jsxs14("div", { className: getClassName20("history"), children: [
3556
- /* @__PURE__ */ jsx27(IconButton, { title: "undo", disabled: !hasPast, onClick: back, children: /* @__PURE__ */ jsx27(Undo2, { size: 21 }) }),
3557
- /* @__PURE__ */ jsx27(IconButton, { title: "redo", disabled: !hasFuture, onClick: forward, children: /* @__PURE__ */ jsx27(Redo2, { size: 21 }) })
3551
+ /* @__PURE__ */ jsx26(IconButton, { title: "undo", disabled: !hasPast, onClick: back, children: /* @__PURE__ */ jsx26(Undo2, { size: 21 }) }),
3552
+ /* @__PURE__ */ jsx26(IconButton, { title: "redo", disabled: !hasFuture, onClick: forward, children: /* @__PURE__ */ jsx26(Redo2, { size: 21 }) })
3558
3553
  ] }),
3559
- /* @__PURE__ */ jsx27(Fragment12, { children: renderHeaderActions && renderHeaderActions({
3554
+ /* @__PURE__ */ jsx26(Fragment11, { children: renderHeaderActions && renderHeaderActions({
3560
3555
  state: appState,
3561
3556
  dispatch
3562
3557
  }) })
@@ -3578,7 +3573,7 @@ var styles_module_default16 = { "PuckFields": "_PuckFields_jp3lw_1", "PuckFields
3578
3573
 
3579
3574
  // components/Puck/components/Fields/index.tsx
3580
3575
  import { useCallback as useCallback7, useEffect as useEffect13, useMemo as useMemo6, useState as useState15 } from "react";
3581
- import { Fragment as Fragment13, jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
3576
+ import { Fragment as Fragment12, jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
3582
3577
  var getClassName21 = get_class_name_factory_default("PuckFields", styles_module_default16);
3583
3578
  var defaultPageFields = {
3584
3579
  title: { type: "text" }
@@ -3586,7 +3581,7 @@ var defaultPageFields = {
3586
3581
  var DefaultFields = ({
3587
3582
  children
3588
3583
  }) => {
3589
- return /* @__PURE__ */ jsx28(Fragment13, { children });
3584
+ return /* @__PURE__ */ jsx27(Fragment12, { children });
3590
3585
  };
3591
3586
  var useResolvedFields = () => {
3592
3587
  var _a;
@@ -3673,7 +3668,7 @@ var Fields = () => {
3673
3668
  e.preventDefault();
3674
3669
  },
3675
3670
  children: [
3676
- /* @__PURE__ */ jsx28(Wrapper, { isLoading, itemSelector, children: Object.keys(fields).map((fieldName) => {
3671
+ /* @__PURE__ */ jsx27(Wrapper, { isLoading, itemSelector, children: Object.keys(fields).map((fieldName) => {
3677
3672
  const field = fields[fieldName];
3678
3673
  if (!(field == null ? void 0 : field.type)) return null;
3679
3674
  const onChange = (value, updatedUi) => {
@@ -3743,7 +3738,7 @@ var Fields = () => {
3743
3738
  const { edit } = getPermissions({
3744
3739
  item: selectedItem
3745
3740
  });
3746
- return /* @__PURE__ */ jsx28(
3741
+ return /* @__PURE__ */ jsx27(
3747
3742
  AutoFieldPrivate,
3748
3743
  {
3749
3744
  field,
@@ -3760,7 +3755,7 @@ var Fields = () => {
3760
3755
  const { edit } = getPermissions({
3761
3756
  root: true
3762
3757
  });
3763
- return /* @__PURE__ */ jsx28(
3758
+ return /* @__PURE__ */ jsx27(
3764
3759
  AutoFieldPrivate,
3765
3760
  {
3766
3761
  field,
@@ -3774,7 +3769,7 @@ var Fields = () => {
3774
3769
  );
3775
3770
  }
3776
3771
  }) }),
3777
- isLoading && /* @__PURE__ */ jsx28("div", { className: getClassName21("loadingOverlay"), children: /* @__PURE__ */ jsx28("div", { className: getClassName21("loadingOverlayInner"), children: /* @__PURE__ */ jsx28(Loader, { size: 16 }) }) })
3772
+ isLoading && /* @__PURE__ */ jsx27("div", { className: getClassName21("loadingOverlay"), children: /* @__PURE__ */ jsx27("div", { className: getClassName21("loadingOverlayInner"), children: /* @__PURE__ */ jsx27(Loader, { size: 16 }) }) })
3778
3773
  ]
3779
3774
  }
3780
3775
  );
@@ -3795,7 +3790,7 @@ init_react_import();
3795
3790
  var styles_module_default17 = { "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" };
3796
3791
 
3797
3792
  // components/ComponentList/index.tsx
3798
- import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
3793
+ import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
3799
3794
  var getClassName22 = get_class_name_factory_default("ComponentList", styles_module_default17);
3800
3795
  var ComponentListItem = ({
3801
3796
  name,
@@ -3806,7 +3801,7 @@ var ComponentListItem = ({
3806
3801
  const canInsert = getPermissions({
3807
3802
  type: name
3808
3803
  }).insert;
3809
- return /* @__PURE__ */ jsx29(
3804
+ return /* @__PURE__ */ jsx28(
3810
3805
  Drawer.Item,
3811
3806
  {
3812
3807
  label,
@@ -3839,14 +3834,14 @@ var ComponentList = ({
3839
3834
  }),
3840
3835
  title: expanded ? `Collapse${title ? ` ${title}` : ""}` : `Expand${title ? ` ${title}` : ""}`,
3841
3836
  children: [
3842
- /* @__PURE__ */ jsx29("div", { children: title }),
3843
- /* @__PURE__ */ jsx29("div", { className: getClassName22("titleIcon"), children: expanded ? /* @__PURE__ */ jsx29(ChevronUp, { size: 12 }) : /* @__PURE__ */ jsx29(ChevronDown, { size: 12 }) })
3837
+ /* @__PURE__ */ jsx28("div", { children: title }),
3838
+ /* @__PURE__ */ jsx28("div", { className: getClassName22("titleIcon"), children: expanded ? /* @__PURE__ */ jsx28(ChevronUp, { size: 12 }) : /* @__PURE__ */ jsx28(ChevronDown, { size: 12 }) })
3844
3839
  ]
3845
3840
  }
3846
3841
  ),
3847
- /* @__PURE__ */ jsx29("div", { className: getClassName22("content"), children: /* @__PURE__ */ jsx29(Drawer, { droppableId: title, children: children || Object.keys(config.components).map((componentKey, i) => {
3842
+ /* @__PURE__ */ jsx28("div", { className: getClassName22("content"), children: /* @__PURE__ */ jsx28(Drawer, { droppableId: title, children: children || Object.keys(config.components).map((componentKey, i) => {
3848
3843
  var _a;
3849
- return /* @__PURE__ */ jsx29(
3844
+ return /* @__PURE__ */ jsx28(
3850
3845
  ComponentListItem,
3851
3846
  {
3852
3847
  label: (_a = config.components[componentKey]["label"]) != null ? _a : componentKey,
@@ -3861,7 +3856,7 @@ var ComponentList = ({
3861
3856
  ComponentList.Item = ComponentListItem;
3862
3857
 
3863
3858
  // lib/use-component-list.tsx
3864
- import { jsx as jsx30 } from "react/jsx-runtime";
3859
+ import { jsx as jsx29 } from "react/jsx-runtime";
3865
3860
  var useComponentList = (config, ui) => {
3866
3861
  const [componentList, setComponentList] = useState16();
3867
3862
  useEffect14(() => {
@@ -3874,7 +3869,7 @@ var useComponentList = (config, ui) => {
3874
3869
  if (category.visible === false || !category.components) {
3875
3870
  return null;
3876
3871
  }
3877
- return /* @__PURE__ */ jsx30(
3872
+ return /* @__PURE__ */ jsx29(
3878
3873
  ComponentList,
3879
3874
  {
3880
3875
  id: categoryKey,
@@ -3883,7 +3878,7 @@ var useComponentList = (config, ui) => {
3883
3878
  var _a2;
3884
3879
  matchedComponents.push(componentName);
3885
3880
  const componentConf = config.components[componentName] || {};
3886
- return /* @__PURE__ */ jsx30(
3881
+ return /* @__PURE__ */ jsx29(
3887
3882
  ComponentList.Item,
3888
3883
  {
3889
3884
  label: (_a2 = componentConf["label"]) != null ? _a2 : componentName,
@@ -3903,7 +3898,7 @@ var useComponentList = (config, ui) => {
3903
3898
  );
3904
3899
  if (remainingComponents.length > 0 && !((_a = ui.componentList.other) == null ? void 0 : _a.components) && ((_b = ui.componentList.other) == null ? void 0 : _b.visible) !== false) {
3905
3900
  _componentList.push(
3906
- /* @__PURE__ */ jsx30(
3901
+ /* @__PURE__ */ jsx29(
3907
3902
  ComponentList,
3908
3903
  {
3909
3904
  id: "other",
@@ -3911,7 +3906,7 @@ var useComponentList = (config, ui) => {
3911
3906
  children: remainingComponents.map((componentName, i) => {
3912
3907
  var _a2;
3913
3908
  const componentConf = config.components[componentName] || {};
3914
- return /* @__PURE__ */ jsx30(
3909
+ return /* @__PURE__ */ jsx29(
3915
3910
  ComponentList.Item,
3916
3911
  {
3917
3912
  name: componentName,
@@ -3934,12 +3929,12 @@ var useComponentList = (config, ui) => {
3934
3929
 
3935
3930
  // components/Puck/components/Components/index.tsx
3936
3931
  import { useMemo as useMemo7 } from "react";
3937
- import { jsx as jsx31 } from "react/jsx-runtime";
3932
+ import { jsx as jsx30 } from "react/jsx-runtime";
3938
3933
  var Components = () => {
3939
3934
  const { config, state, overrides } = useAppContext();
3940
3935
  const componentList = useComponentList(config, state.ui);
3941
3936
  const Wrapper = useMemo7(() => overrides.components || "div", [overrides]);
3942
- return /* @__PURE__ */ jsx31(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ jsx31(ComponentList, { id: "all" }) });
3937
+ return /* @__PURE__ */ jsx30(Wrapper, { children: componentList ? componentList : /* @__PURE__ */ jsx30(ComponentList, { id: "all" }) });
3943
3938
  };
3944
3939
 
3945
3940
  // components/Puck/components/Preview/index.tsx
@@ -3957,7 +3952,7 @@ import {
3957
3952
  } from "react";
3958
3953
  import hash from "object-hash";
3959
3954
  import { createPortal as createPortal2 } from "react-dom";
3960
- import { Fragment as Fragment14, jsx as jsx32 } from "react/jsx-runtime";
3955
+ import { Fragment as Fragment13, jsx as jsx31 } from "react/jsx-runtime";
3961
3956
  var styleSelector = 'style, link[rel="stylesheet"]';
3962
3957
  var collectStyles = (doc) => {
3963
3958
  const collected = [];
@@ -4157,7 +4152,7 @@ var CopyHostStyles = ({
4157
4152
  observer.disconnect();
4158
4153
  };
4159
4154
  }, []);
4160
- return /* @__PURE__ */ jsx32(Fragment14, { children });
4155
+ return /* @__PURE__ */ jsx31(Fragment13, { children });
4161
4156
  };
4162
4157
  var autoFrameContext = createContext4({});
4163
4158
  var useFrame = () => useContext5(autoFrameContext);
@@ -4189,7 +4184,7 @@ function AutoFrame(_a) {
4189
4184
  setMountTarget((_a2 = ref.current.contentDocument) == null ? void 0 : _a2.getElementById("frame-root"));
4190
4185
  }
4191
4186
  }, [ref, loaded]);
4192
- return /* @__PURE__ */ jsx32(
4187
+ return /* @__PURE__ */ jsx31(
4193
4188
  "iframe",
4194
4189
  __spreadProps(__spreadValues({}, props), {
4195
4190
  className,
@@ -4199,7 +4194,7 @@ function AutoFrame(_a) {
4199
4194
  onLoad: () => {
4200
4195
  setLoaded(true);
4201
4196
  },
4202
- children: /* @__PURE__ */ jsx32(autoFrameContext.Provider, { value: ctx, children: loaded && mountTarget && /* @__PURE__ */ jsx32(CopyHostStyles, { debug, onStylesLoaded, children: createPortal2(children, mountTarget) }) })
4197
+ children: /* @__PURE__ */ jsx31(autoFrameContext.Provider, { value: ctx, children: loaded && mountTarget && /* @__PURE__ */ jsx31(CopyHostStyles, { debug, onStylesLoaded, children: createPortal2(children, mountTarget) }) })
4203
4198
  })
4204
4199
  );
4205
4200
  }
@@ -4211,7 +4206,7 @@ init_react_import();
4211
4206
  var styles_module_default18 = { "PuckPreview": "_PuckPreview_rxwlr_1", "PuckPreview-frame": "_PuckPreview-frame_rxwlr_5" };
4212
4207
 
4213
4208
  // components/Puck/components/Preview/index.tsx
4214
- import { Fragment as Fragment15, jsx as jsx33 } from "react/jsx-runtime";
4209
+ import { Fragment as Fragment14, jsx as jsx32 } from "react/jsx-runtime";
4215
4210
  var getClassName23 = get_class_name_factory_default("PuckPreview", styles_module_default18);
4216
4211
  var Preview = ({ id = "puck-preview" }) => {
4217
4212
  const { config, dispatch, state, setStatus, iframe, overrides } = useAppContext();
@@ -4220,13 +4215,13 @@ var Preview = ({ id = "puck-preview" }) => {
4220
4215
  var _a, _b;
4221
4216
  return ((_a = config.root) == null ? void 0 : _a.render) ? (_b = config.root) == null ? void 0 : _b.render(__spreadValues({
4222
4217
  id: "puck-root"
4223
- }, pageProps)) : /* @__PURE__ */ jsx33(Fragment15, { children: pageProps.children });
4218
+ }, pageProps)) : /* @__PURE__ */ jsx32(Fragment14, { children: pageProps.children });
4224
4219
  },
4225
4220
  [config.root]
4226
4221
  );
4227
4222
  const Frame = useMemo8(() => overrides.iframe, [overrides]);
4228
4223
  const rootProps = state.data.root.props || state.data.root;
4229
- return /* @__PURE__ */ jsx33(
4224
+ return /* @__PURE__ */ jsx32(
4230
4225
  "div",
4231
4226
  {
4232
4227
  className: getClassName23(),
@@ -4234,7 +4229,7 @@ var Preview = ({ id = "puck-preview" }) => {
4234
4229
  onClick: () => {
4235
4230
  dispatch({ type: "setUi", ui: __spreadProps(__spreadValues({}, state.ui), { itemSelector: null }) });
4236
4231
  },
4237
- children: iframe.enabled ? /* @__PURE__ */ jsx33(
4232
+ children: iframe.enabled ? /* @__PURE__ */ jsx32(
4238
4233
  AutoFrame_default,
4239
4234
  {
4240
4235
  id: "preview-frame",
@@ -4243,27 +4238,27 @@ var Preview = ({ id = "puck-preview" }) => {
4243
4238
  onStylesLoaded: () => {
4244
4239
  setStatus("READY");
4245
4240
  },
4246
- children: /* @__PURE__ */ jsx33(autoFrameContext.Consumer, { children: ({ document: document2 }) => {
4247
- const inner = /* @__PURE__ */ jsx33(
4241
+ children: /* @__PURE__ */ jsx32(autoFrameContext.Consumer, { children: ({ document: document2 }) => {
4242
+ const inner = /* @__PURE__ */ jsx32(
4248
4243
  Page,
4249
4244
  __spreadProps(__spreadValues({}, rootProps), {
4250
4245
  puck: { renderDropZone: DropZone, isEditing: true },
4251
4246
  editMode: true,
4252
- children: /* @__PURE__ */ jsx33(DropZone, { zone: rootDroppableId })
4247
+ children: /* @__PURE__ */ jsx32(DropZone, { zone: rootDroppableId })
4253
4248
  })
4254
4249
  );
4255
4250
  if (Frame) {
4256
- return /* @__PURE__ */ jsx33(Frame, { document: document2, children: inner });
4251
+ return /* @__PURE__ */ jsx32(Frame, { document: document2, children: inner });
4257
4252
  }
4258
4253
  return inner;
4259
4254
  } })
4260
4255
  }
4261
- ) : /* @__PURE__ */ jsx33("div", { id: "preview-frame", className: getClassName23("frame"), children: /* @__PURE__ */ jsx33(
4256
+ ) : /* @__PURE__ */ jsx32("div", { id: "preview-frame", className: getClassName23("frame"), children: /* @__PURE__ */ jsx32(
4262
4257
  Page,
4263
4258
  __spreadProps(__spreadValues({}, rootProps), {
4264
4259
  puck: { renderDropZone: DropZone, isEditing: true },
4265
4260
  editMode: true,
4266
- children: /* @__PURE__ */ jsx33(DropZone, { zone: rootDroppableId })
4261
+ children: /* @__PURE__ */ jsx32(DropZone, { zone: rootDroppableId })
4267
4262
  })
4268
4263
  ) })
4269
4264
  }
@@ -4327,7 +4322,7 @@ var isChildOfZone = (item, maybeChild, ctx) => {
4327
4322
  };
4328
4323
 
4329
4324
  // components/LayerTree/index.tsx
4330
- import { Fragment as Fragment16, jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
4325
+ import { Fragment as Fragment15, jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
4331
4326
  var getClassName24 = get_class_name_factory_default("LayerTree", styles_module_default19);
4332
4327
  var getClassNameLayer = get_class_name_factory_default("Layer", styles_module_default19);
4333
4328
  var LayerTree = ({
@@ -4341,14 +4336,14 @@ var LayerTree = ({
4341
4336
  }) => {
4342
4337
  const zones = data.zones || {};
4343
4338
  const ctx = useContext6(dropZoneContext);
4344
- return /* @__PURE__ */ jsxs17(Fragment16, { children: [
4339
+ return /* @__PURE__ */ jsxs17(Fragment15, { children: [
4345
4340
  label && /* @__PURE__ */ jsxs17("div", { className: getClassName24("zoneTitle"), children: [
4346
- /* @__PURE__ */ jsx34("div", { className: getClassName24("zoneIcon"), children: /* @__PURE__ */ jsx34(Layers, { size: "16" }) }),
4341
+ /* @__PURE__ */ jsx33("div", { className: getClassName24("zoneIcon"), children: /* @__PURE__ */ jsx33(Layers, { size: "16" }) }),
4347
4342
  " ",
4348
4343
  label
4349
4344
  ] }),
4350
4345
  /* @__PURE__ */ jsxs17("ul", { className: getClassName24(), children: [
4351
- zoneContent.length === 0 && /* @__PURE__ */ jsx34("div", { className: getClassName24("helper"), children: "No items" }),
4346
+ zoneContent.length === 0 && /* @__PURE__ */ jsx33("div", { className: getClassName24("helper"), children: "No items" }),
4352
4347
  zoneContent.map((item, i) => {
4353
4348
  var _a;
4354
4349
  const isSelected = (itemSelector == null ? void 0 : itemSelector.index) === i && (itemSelector.zone === zone || itemSelector.zone === rootDroppableId && !zone);
@@ -4376,7 +4371,7 @@ var LayerTree = ({
4376
4371
  childIsSelected
4377
4372
  }),
4378
4373
  children: [
4379
- /* @__PURE__ */ jsx34("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ jsxs17(
4374
+ /* @__PURE__ */ jsx33("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ jsxs17(
4380
4375
  "button",
4381
4376
  {
4382
4377
  type: "button",
@@ -4409,22 +4404,22 @@ var LayerTree = ({
4409
4404
  setHoveringComponent(null);
4410
4405
  },
4411
4406
  children: [
4412
- containsZone && /* @__PURE__ */ jsx34(
4407
+ containsZone && /* @__PURE__ */ jsx33(
4413
4408
  "div",
4414
4409
  {
4415
4410
  className: getClassNameLayer("chevron"),
4416
4411
  title: isSelected ? "Collapse" : "Expand",
4417
- children: /* @__PURE__ */ jsx34(ChevronDown, { size: "12" })
4412
+ children: /* @__PURE__ */ jsx33(ChevronDown, { size: "12" })
4418
4413
  }
4419
4414
  ),
4420
4415
  /* @__PURE__ */ jsxs17("div", { className: getClassNameLayer("title"), children: [
4421
- /* @__PURE__ */ jsx34("div", { className: getClassNameLayer("icon"), children: item.type === "Text" || item.type === "Heading" ? /* @__PURE__ */ jsx34(Type, { size: "16" }) : /* @__PURE__ */ jsx34(LayoutGrid, { size: "16" }) }),
4422
- /* @__PURE__ */ jsx34("div", { className: getClassNameLayer("name"), children: label2 })
4416
+ /* @__PURE__ */ jsx33("div", { className: getClassNameLayer("icon"), children: item.type === "Text" || item.type === "Heading" ? /* @__PURE__ */ jsx33(Type, { size: "16" }) : /* @__PURE__ */ jsx33(LayoutGrid, { size: "16" }) }),
4417
+ /* @__PURE__ */ jsx33("div", { className: getClassNameLayer("name"), children: label2 })
4423
4418
  ] })
4424
4419
  ]
4425
4420
  }
4426
4421
  ) }),
4427
- containsZone && Object.keys(zonesForItem).map((zoneKey, idx) => /* @__PURE__ */ jsx34("div", { className: getClassNameLayer("zones"), children: /* @__PURE__ */ jsx34(
4422
+ containsZone && Object.keys(zonesForItem).map((zoneKey, idx) => /* @__PURE__ */ jsx33("div", { className: getClassNameLayer("zones"), children: /* @__PURE__ */ jsx33(
4428
4423
  LayerTree,
4429
4424
  {
4430
4425
  config,
@@ -4447,7 +4442,7 @@ var LayerTree = ({
4447
4442
 
4448
4443
  // components/Puck/components/Outline/index.tsx
4449
4444
  import { useCallback as useCallback9, useMemo as useMemo9 } from "react";
4450
- import { Fragment as Fragment17, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
4445
+ import { Fragment as Fragment16, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
4451
4446
  var Outline = () => {
4452
4447
  const { dispatch, state, overrides, config } = useAppContext();
4453
4448
  const { data, ui } = state;
@@ -4462,8 +4457,8 @@ var Outline = () => {
4462
4457
  []
4463
4458
  );
4464
4459
  const Wrapper = useMemo9(() => overrides.outline || "div", [overrides]);
4465
- return /* @__PURE__ */ jsx35(Wrapper, { children: /* @__PURE__ */ jsx35(dropZoneContext.Consumer, { children: (ctx) => /* @__PURE__ */ jsxs18(Fragment17, { children: [
4466
- (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ jsx35(
4460
+ return /* @__PURE__ */ jsx34(Wrapper, { children: /* @__PURE__ */ jsx34(dropZoneContext.Consumer, { children: (ctx) => /* @__PURE__ */ jsxs18(Fragment16, { children: [
4461
+ (ctx == null ? void 0 : ctx.activeZones) && (ctx == null ? void 0 : ctx.activeZones[rootDroppableId]) && /* @__PURE__ */ jsx34(
4467
4462
  LayerTree,
4468
4463
  {
4469
4464
  config,
@@ -4476,7 +4471,7 @@ var Outline = () => {
4476
4471
  ),
4477
4472
  Object.entries(findZonesForArea(data, "root")).map(
4478
4473
  ([zoneKey, zone]) => {
4479
- return /* @__PURE__ */ jsx35(
4474
+ return /* @__PURE__ */ jsx34(
4480
4475
  LayerTree,
4481
4476
  {
4482
4477
  config,
@@ -4739,11 +4734,11 @@ init_react_import();
4739
4734
  var styles_module_default20 = { "ViewportControls": "_ViewportControls_g1wgg_1", "ViewportControls-divider": "_ViewportControls-divider_g1wgg_15", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_g1wgg_21", "ViewportButton--isActive": "_ViewportButton--isActive_g1wgg_34", "ViewportButton-inner": "_ViewportButton-inner_g1wgg_34" };
4740
4735
 
4741
4736
  // components/ViewportControls/index.tsx
4742
- import { jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
4737
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
4743
4738
  var icons = {
4744
- Smartphone: /* @__PURE__ */ jsx36(Smartphone, { size: 16 }),
4745
- Tablet: /* @__PURE__ */ jsx36(Tablet, { size: 16 }),
4746
- Monitor: /* @__PURE__ */ jsx36(Monitor, { size: 16 })
4739
+ Smartphone: /* @__PURE__ */ jsx35(Smartphone, { size: 16 }),
4740
+ Tablet: /* @__PURE__ */ jsx35(Tablet, { size: 16 }),
4741
+ Monitor: /* @__PURE__ */ jsx35(Monitor, { size: 16 })
4747
4742
  };
4748
4743
  var getClassName25 = get_class_name_factory_default("ViewportControls", styles_module_default20);
4749
4744
  var getClassNameButton = get_class_name_factory_default("ViewportButton", styles_module_default20);
@@ -4759,7 +4754,7 @@ var ViewportButton = ({
4759
4754
  useEffect16(() => {
4760
4755
  setIsActive(width === state.ui.viewports.current.width);
4761
4756
  }, [width, state.ui.viewports.current.width]);
4762
- return /* @__PURE__ */ jsx36("span", { className: getClassNameButton({ isActive }), children: /* @__PURE__ */ jsx36(
4757
+ return /* @__PURE__ */ jsx35("span", { className: getClassNameButton({ isActive }), children: /* @__PURE__ */ jsx35(
4763
4758
  IconButton,
4764
4759
  {
4765
4760
  title,
@@ -4768,7 +4763,7 @@ var ViewportButton = ({
4768
4763
  e.stopPropagation();
4769
4764
  onClick({ width, height });
4770
4765
  },
4771
- children: /* @__PURE__ */ jsx36("span", { className: getClassNameButton("inner"), children })
4766
+ children: /* @__PURE__ */ jsx35("span", { className: getClassNameButton("inner"), children })
4772
4767
  }
4773
4768
  ) });
4774
4769
  };
@@ -4805,7 +4800,7 @@ var ViewportControls = ({
4805
4800
  [autoZoom]
4806
4801
  );
4807
4802
  return /* @__PURE__ */ jsxs19("div", { className: getClassName25(), children: [
4808
- viewports.map((viewport, i) => /* @__PURE__ */ jsx36(
4803
+ viewports.map((viewport, i) => /* @__PURE__ */ jsx35(
4809
4804
  ViewportButton,
4810
4805
  {
4811
4806
  height: viewport.height,
@@ -4816,8 +4811,8 @@ var ViewportControls = ({
4816
4811
  },
4817
4812
  i
4818
4813
  )),
4819
- /* @__PURE__ */ jsx36("div", { className: getClassName25("divider") }),
4820
- /* @__PURE__ */ jsx36(
4814
+ /* @__PURE__ */ jsx35("div", { className: getClassName25("divider") }),
4815
+ /* @__PURE__ */ jsx35(
4821
4816
  IconButton,
4822
4817
  {
4823
4818
  title: "Zoom viewport out",
@@ -4831,10 +4826,10 @@ var ViewportControls = ({
4831
4826
  )].value
4832
4827
  );
4833
4828
  },
4834
- children: /* @__PURE__ */ jsx36(ZoomOut, { size: 16 })
4829
+ children: /* @__PURE__ */ jsx35(ZoomOut, { size: 16 })
4835
4830
  }
4836
4831
  ),
4837
- /* @__PURE__ */ jsx36(
4832
+ /* @__PURE__ */ jsx35(
4838
4833
  IconButton,
4839
4834
  {
4840
4835
  title: "Zoom viewport in",
@@ -4848,11 +4843,11 @@ var ViewportControls = ({
4848
4843
  )].value
4849
4844
  );
4850
4845
  },
4851
- children: /* @__PURE__ */ jsx36(ZoomIn, { size: 16 })
4846
+ children: /* @__PURE__ */ jsx35(ZoomIn, { size: 16 })
4852
4847
  }
4853
4848
  ),
4854
- /* @__PURE__ */ jsx36("div", { className: getClassName25("divider") }),
4855
- /* @__PURE__ */ jsx36(
4849
+ /* @__PURE__ */ jsx35("div", { className: getClassName25("divider") }),
4850
+ /* @__PURE__ */ jsx35(
4856
4851
  "select",
4857
4852
  {
4858
4853
  className: getClassName25("zoomSelect"),
@@ -4860,7 +4855,7 @@ var ViewportControls = ({
4860
4855
  onChange: (e) => {
4861
4856
  onZoom(parseFloat(e.currentTarget.value));
4862
4857
  },
4863
- children: zoomOptions.map((option) => /* @__PURE__ */ jsx36(
4858
+ children: zoomOptions.map((option) => /* @__PURE__ */ jsx35(
4864
4859
  "option",
4865
4860
  {
4866
4861
  value: option.value,
@@ -4908,7 +4903,7 @@ var getZoomConfig = (uiViewport, frame, zoom) => {
4908
4903
  };
4909
4904
 
4910
4905
  // components/Puck/components/Canvas/index.tsx
4911
- import { Fragment as Fragment18, jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
4906
+ import { Fragment as Fragment17, jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
4912
4907
  var getClassName26 = get_class_name_factory_default("PuckCanvas", styles_module_default21);
4913
4908
  var ZOOM_ON_CHANGE = true;
4914
4909
  var Canvas = () => {
@@ -4918,7 +4913,7 @@ var Canvas = () => {
4918
4913
  const frameRef = useRef3(null);
4919
4914
  const [showTransition, setShowTransition] = useState20(false);
4920
4915
  const defaultRender = useMemo11(() => {
4921
- const PuckDefault = ({ children }) => /* @__PURE__ */ jsx37(Fragment18, { children });
4916
+ const PuckDefault = ({ children }) => /* @__PURE__ */ jsx36(Fragment17, { children });
4922
4917
  return PuckDefault;
4923
4918
  }, []);
4924
4919
  const CustomPreview = useMemo11(
@@ -4992,7 +4987,7 @@ var Canvas = () => {
4992
4987
  recordHistory: true
4993
4988
  }),
4994
4989
  children: [
4995
- ui.viewports.controlsVisible && iframe.enabled && /* @__PURE__ */ jsx37("div", { className: getClassName26("controls"), children: /* @__PURE__ */ jsx37(
4990
+ ui.viewports.controlsVisible && iframe.enabled && /* @__PURE__ */ jsx36("div", { className: getClassName26("controls"), children: /* @__PURE__ */ jsx36(
4996
4991
  ViewportControls,
4997
4992
  {
4998
4993
  autoZoom: zoomConfig.autoZoom,
@@ -5018,7 +5013,7 @@ var Canvas = () => {
5018
5013
  }
5019
5014
  ) }),
5020
5015
  /* @__PURE__ */ jsxs20("div", { className: getClassName26("inner"), ref: frameRef, children: [
5021
- /* @__PURE__ */ jsx37(
5016
+ /* @__PURE__ */ jsx36(
5022
5017
  "div",
5023
5018
  {
5024
5019
  className: getClassName26("root"),
@@ -5030,10 +5025,10 @@ var Canvas = () => {
5030
5025
  overflow: iframe.enabled ? void 0 : "auto"
5031
5026
  },
5032
5027
  suppressHydrationWarning: true,
5033
- children: /* @__PURE__ */ jsx37(CustomPreview, { children: /* @__PURE__ */ jsx37(Preview, {}) })
5028
+ children: /* @__PURE__ */ jsx36(CustomPreview, { children: /* @__PURE__ */ jsx36(Preview, {}) })
5034
5029
  }
5035
5030
  ),
5036
- /* @__PURE__ */ jsx37("div", { className: getClassName26("loader"), children: /* @__PURE__ */ jsx37(Loader, { size: 24 }) })
5031
+ /* @__PURE__ */ jsx36("div", { className: getClassName26("loader"), children: /* @__PURE__ */ jsx36(Loader, { size: 24 }) })
5037
5032
  ] })
5038
5033
  ]
5039
5034
  }
@@ -5121,6 +5116,11 @@ var useLoadedOverrides = ({
5121
5116
  }, [plugins, overrides]);
5122
5117
  };
5123
5118
 
5119
+ // components/DefaultOverride/index.tsx
5120
+ init_react_import();
5121
+ import { Fragment as Fragment18, jsx as jsx37 } from "react/jsx-runtime";
5122
+ var DefaultOverride = ({ children }) => /* @__PURE__ */ jsx37(Fragment18, { children });
5123
+
5124
5124
  // components/Puck/index.tsx
5125
5125
  import { Fragment as Fragment19, jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
5126
5126
  var getClassName27 = get_class_name_factory_default("Puck", styles_module_default15);