@measured/puck 0.20.3-canary.d855fa8c → 0.21.0-canary.1df9ddeb

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.
@@ -24,7 +24,7 @@ import {
24
24
  walkAppState,
25
25
  walkField,
26
26
  walkTree
27
- } from "./chunk-OOLYDXKW.mjs";
27
+ } from "./chunk-X7YZ3YE7.mjs";
28
28
 
29
29
  // ../../node_modules/classnames/index.js
30
30
  var require_classnames = __commonJS({
@@ -88,6 +88,42 @@ var require_classnames = __commonJS({
88
88
  }
89
89
  });
90
90
 
91
+ // ../../node_modules/fast-deep-equal/index.js
92
+ var require_fast_deep_equal = __commonJS({
93
+ "../../node_modules/fast-deep-equal/index.js"(exports, module) {
94
+ "use strict";
95
+ init_react_import();
96
+ module.exports = function equal(a, b) {
97
+ if (a === b) return true;
98
+ if (a && b && typeof a == "object" && typeof b == "object") {
99
+ if (a.constructor !== b.constructor) return false;
100
+ var length, i, keys;
101
+ if (Array.isArray(a)) {
102
+ length = a.length;
103
+ if (length != b.length) return false;
104
+ for (i = length; i-- !== 0; )
105
+ if (!equal(a[i], b[i])) return false;
106
+ return true;
107
+ }
108
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
109
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
110
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
111
+ keys = Object.keys(a);
112
+ length = keys.length;
113
+ if (length !== Object.keys(b).length) return false;
114
+ for (i = length; i-- !== 0; )
115
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
116
+ for (i = length; i-- !== 0; ) {
117
+ var key = keys[i];
118
+ if (!equal(a[key], b[key])) return false;
119
+ }
120
+ return true;
121
+ }
122
+ return a !== a && b !== b;
123
+ };
124
+ }
125
+ });
126
+
91
127
  // types/API/Overrides.ts
92
128
  init_react_import();
93
129
  var overrideKeys = [
@@ -768,7 +804,9 @@ var keyCodeMap = {
768
804
  KeyW: "w",
769
805
  KeyX: "x",
770
806
  KeyY: "y",
771
- KeyZ: "z"
807
+ KeyZ: "z",
808
+ Delete: "delete",
809
+ Backspace: "backspace"
772
810
  };
773
811
  var useHotkeyStore = create()(
774
812
  subscribeWithSelector((set) => ({
@@ -792,8 +830,10 @@ var monitorHotkeys = (doc) => {
792
830
  ([key2, value]) => value === !!combo[key2]
793
831
  );
794
832
  if (conditionMet) {
795
- e.preventDefault();
796
- cb();
833
+ const handled = cb(e);
834
+ if (handled !== false) {
835
+ e.preventDefault();
836
+ }
797
837
  }
798
838
  });
799
839
  if (key !== "meta" && key !== "ctrl" && key !== "shift") {
@@ -816,6 +856,10 @@ var monitorHotkeys = (doc) => {
816
856
  useHotkeyStore.getState().reset();
817
857
  }
818
858
  };
859
+ const onBlur = () => {
860
+ useHotkeyStore.getState().reset();
861
+ };
862
+ window.addEventListener("blur", onBlur);
819
863
  doc.addEventListener("keydown", onKeyDown);
820
864
  doc.addEventListener("keyup", onKeyUp);
821
865
  doc.addEventListener("visibilitychange", onVisibilityChanged);
@@ -823,6 +867,7 @@ var monitorHotkeys = (doc) => {
823
867
  doc.removeEventListener("keydown", onKeyDown);
824
868
  doc.removeEventListener("keyup", onKeyUp);
825
869
  doc.removeEventListener("visibilitychange", onVisibilityChanged);
870
+ window.removeEventListener("blur", onBlur);
826
871
  };
827
872
  };
828
873
  var useMonitorHotkeys = () => {
@@ -1017,7 +1062,7 @@ var flattenData = (state, config) => {
1017
1062
  (content) => content,
1018
1063
  (item) => {
1019
1064
  data.push(item);
1020
- return null;
1065
+ return item;
1021
1066
  }
1022
1067
  );
1023
1068
  return data;
@@ -1173,6 +1218,7 @@ var useRegisterFieldsSlice = (appStore, id) => {
1173
1218
  (reset) => __async(void 0, null, function* () {
1174
1219
  var _a, _b;
1175
1220
  const { fields, lastResolvedData } = appStore.getState().fields;
1221
+ const metadata = appStore.getState().metadata;
1176
1222
  const nodes = appStore.getState().state.indexes.nodes;
1177
1223
  const node = nodes[id || "root"];
1178
1224
  const componentData = node == null ? void 0 : node.data;
@@ -1202,6 +1248,7 @@ var useRegisterFieldsSlice = (appStore, id) => {
1202
1248
  changed,
1203
1249
  fields: defaultFields2,
1204
1250
  lastFields,
1251
+ metadata: __spreadValues(__spreadValues({}, metadata), componentConfig.metadata),
1205
1252
  lastData,
1206
1253
  appState: makeStatePublic(state),
1207
1254
  parent
@@ -5632,26 +5679,26 @@ var registerOverlayPortal = (el, opts = {}) => {
5632
5679
  capture: true
5633
5680
  });
5634
5681
  };
5635
- if (disableDragOnFocus) {
5636
- el.addEventListener("focus", onFocus, { capture: true });
5637
- el.addEventListener("blur", onBlur, { capture: true });
5638
- } else if (disableDrag) {
5682
+ if (disableDrag) {
5639
5683
  el.addEventListener("pointerdown", stopPropagation, {
5640
5684
  capture: true
5641
5685
  });
5686
+ } else if (disableDragOnFocus) {
5687
+ el.addEventListener("focus", onFocus, { capture: true });
5688
+ el.addEventListener("blur", onBlur, { capture: true });
5642
5689
  }
5643
5690
  el.setAttribute("data-puck-overlay-portal", "true");
5644
5691
  return () => {
5645
5692
  el.removeEventListener("mouseover", stopPropagation, {
5646
5693
  capture: true
5647
5694
  });
5648
- if (disableDragOnFocus) {
5649
- el.removeEventListener("focus", onFocus, { capture: true });
5650
- el.removeEventListener("blur", onFocus, { capture: true });
5651
- } else if (disableDrag) {
5695
+ if (disableDrag) {
5652
5696
  el.removeEventListener("pointerdown", stopPropagation, {
5653
5697
  capture: true
5654
5698
  });
5699
+ } else if (disableDragOnFocus) {
5700
+ el.removeEventListener("focus", onFocus, { capture: true });
5701
+ el.removeEventListener("blur", onBlur, { capture: true });
5655
5702
  }
5656
5703
  el.removeAttribute("data-puck-overlay-portal");
5657
5704
  };
@@ -5659,7 +5706,7 @@ var registerOverlayPortal = (el, opts = {}) => {
5659
5706
 
5660
5707
  // css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css#css-module
5661
5708
  init_react_import();
5662
- var styles_module_default13 = { "InlineTextField": "_InlineTextField_1xph6_1" };
5709
+ var styles_module_default13 = { "InlineTextField": "_InlineTextField_104qp_1" };
5663
5710
 
5664
5711
  // lib/data/set-deep.ts
5665
5712
  init_react_import();
@@ -6419,7 +6466,7 @@ function useGetPuck() {
6419
6466
  init_react_import();
6420
6467
  import {
6421
6468
  createContext as createContext8,
6422
- useCallback as useCallback20,
6469
+ useCallback as useCallback21,
6423
6470
  useContext as useContext13,
6424
6471
  useEffect as useEffect29,
6425
6472
  useMemo as useMemo20,
@@ -7979,12 +8026,73 @@ var usePreviewModeHotkeys = () => {
7979
8026
  useHotkey({ ctrl: true, i: true }, toggleInteractive);
7980
8027
  };
7981
8028
 
8029
+ // lib/use-delete-hotkeys.ts
8030
+ init_react_import();
8031
+ import { useCallback as useCallback17 } from "react";
8032
+ var isElementVisible = (element) => {
8033
+ let current = element;
8034
+ while (current && current !== document.body) {
8035
+ const style = window.getComputedStyle(current);
8036
+ if (style.display === "none" || style.visibility === "hidden" || style.opacity === "0" || current.getAttribute("aria-hidden") === "true" || current.hasAttribute("hidden")) {
8037
+ return false;
8038
+ }
8039
+ current = current.parentElement;
8040
+ }
8041
+ return true;
8042
+ };
8043
+ var shouldBlockDeleteHotkey = (e) => {
8044
+ var _a;
8045
+ if (e == null ? void 0 : e.defaultPrevented) return true;
8046
+ const origin = ((_a = e == null ? void 0 : e.composedPath) == null ? void 0 : _a.call(e)[0]) || (e == null ? void 0 : e.target) || document.activeElement;
8047
+ if (origin instanceof HTMLElement) {
8048
+ const tag = origin.tagName.toLowerCase();
8049
+ if (tag === "input" || tag === "textarea" || tag === "select") return true;
8050
+ if (origin.isContentEditable) return true;
8051
+ const role = origin.getAttribute("role");
8052
+ if (role === "textbox" || role === "combobox" || role === "searchbox" || role === "listbox" || role === "grid") {
8053
+ return true;
8054
+ }
8055
+ }
8056
+ const modal = document.querySelector(
8057
+ 'dialog[open], [aria-modal="true"], [role="dialog"], [role="alertdialog"]'
8058
+ );
8059
+ if (modal && isElementVisible(modal)) {
8060
+ return true;
8061
+ }
8062
+ return false;
8063
+ };
8064
+ var useDeleteHotkeys = () => {
8065
+ const appStore = useAppStoreApi();
8066
+ const deleteSelectedComponent = useCallback17(
8067
+ (e) => {
8068
+ var _a;
8069
+ if (shouldBlockDeleteHotkey(e)) {
8070
+ return false;
8071
+ }
8072
+ const { state, dispatch, permissions, selectedItem } = appStore.getState();
8073
+ const sel = (_a = state.ui) == null ? void 0 : _a.itemSelector;
8074
+ if (!(sel == null ? void 0 : sel.zone) || !selectedItem) return true;
8075
+ if (!permissions.getPermissions({ item: selectedItem }).delete)
8076
+ return true;
8077
+ dispatch({
8078
+ type: "remove",
8079
+ index: sel.index,
8080
+ zone: sel.zone
8081
+ });
8082
+ return true;
8083
+ },
8084
+ [appStore]
8085
+ );
8086
+ useHotkey({ delete: true }, deleteSelectedComponent);
8087
+ useHotkey({ backspace: true }, deleteSelectedComponent);
8088
+ };
8089
+
7982
8090
  // components/Puck/index.tsx
7983
- import fdeq from "fast-deep-equal";
8091
+ var import_fast_deep_equal = __toESM(require_fast_deep_equal());
7984
8092
 
7985
8093
  // components/Puck/components/Header/index.tsx
7986
8094
  init_react_import();
7987
- import { memo as memo4, useCallback as useCallback17, useMemo as useMemo19, useState as useState23 } from "react";
8095
+ import { memo as memo4, useCallback as useCallback18, useMemo as useMemo19, useState as useState23 } from "react";
7988
8096
 
7989
8097
  // components/MenuBar/index.tsx
7990
8098
  init_react_import();
@@ -8111,7 +8219,7 @@ var HeaderInner = () => {
8111
8219
  const rightSideBarVisible = useAppStore(
8112
8220
  (s) => s.state.ui.rightSideBarVisible
8113
8221
  );
8114
- const toggleSidebars = useCallback17(
8222
+ const toggleSidebars = useCallback18(
8115
8223
  (sidebar) => {
8116
8224
  const widerViewport = window.matchMedia("(min-width: 638px)").matches;
8117
8225
  const sideBarVisible = sidebar === "left" ? leftSideBarVisible : rightSideBarVisible;
@@ -8221,7 +8329,7 @@ init_react_import();
8221
8329
 
8222
8330
  // components/Puck/components/ResizeHandle/index.tsx
8223
8331
  init_react_import();
8224
- import { useCallback as useCallback18, useRef as useRef10 } from "react";
8332
+ import { useCallback as useCallback19, useRef as useRef10 } from "react";
8225
8333
 
8226
8334
  // css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css#css-module
8227
8335
  init_react_import();
@@ -8242,7 +8350,7 @@ var ResizeHandle = ({
8242
8350
  const isDragging = useRef10(false);
8243
8351
  const startX = useRef10(0);
8244
8352
  const startWidth = useRef10(0);
8245
- const handleMouseMove = useCallback18(
8353
+ const handleMouseMove = useCallback19(
8246
8354
  (e) => {
8247
8355
  if (!isDragging.current) return;
8248
8356
  const delta = e.clientX - startX.current;
@@ -8253,7 +8361,7 @@ var ResizeHandle = ({
8253
8361
  },
8254
8362
  [onResize, position]
8255
8363
  );
8256
- const handleMouseUp = useCallback18(() => {
8364
+ const handleMouseUp = useCallback19(() => {
8257
8365
  var _a;
8258
8366
  if (!isDragging.current) return;
8259
8367
  isDragging.current = false;
@@ -8269,7 +8377,7 @@ var ResizeHandle = ({
8269
8377
  onResizeEnd(finalWidth);
8270
8378
  resetAutoZoom();
8271
8379
  }, [onResizeEnd]);
8272
- const handleMouseDown = useCallback18(
8380
+ const handleMouseDown = useCallback19(
8273
8381
  (e) => {
8274
8382
  var _a;
8275
8383
  isDragging.current = true;
@@ -8329,7 +8437,7 @@ var Sidebar = ({
8329
8437
 
8330
8438
  // lib/use-sidebar-resize.ts
8331
8439
  init_react_import();
8332
- import { useCallback as useCallback19, useEffect as useEffect28, useRef as useRef11, useState as useState24 } from "react";
8440
+ import { useCallback as useCallback20, useEffect as useEffect28, useRef as useRef11, useState as useState24 } from "react";
8333
8441
  function useSidebarResize(position, dispatch) {
8334
8442
  const [width, setWidth] = useState24(null);
8335
8443
  const sidebarRef = useRef11(null);
@@ -8366,7 +8474,7 @@ function useSidebarResize(position, dispatch) {
8366
8474
  setWidth(storeWidth);
8367
8475
  }
8368
8476
  }, [storeWidth]);
8369
- const handleResizeEnd = useCallback19(
8477
+ const handleResizeEnd = useCallback20(
8370
8478
  (width2) => {
8371
8479
  dispatch({
8372
8480
  type: "setUi",
@@ -8537,7 +8645,7 @@ function PuckProvider({ children }) {
8537
8645
  );
8538
8646
  return __spreadValues(__spreadValues({}, pluginFieldTransforms), fieldTransforms);
8539
8647
  }, [fieldTransforms, plugins]);
8540
- const generateAppStore = useCallback20(
8648
+ const generateAppStore = useCallback21(
8541
8649
  (state) => {
8542
8650
  return {
8543
8651
  state,
@@ -8586,7 +8694,7 @@ function PuckProvider({ children }) {
8586
8694
  (s) => s.state.data,
8587
8695
  (data) => {
8588
8696
  if (onChange) {
8589
- if (fdeq(data, previousData.current)) return;
8697
+ if ((0, import_fast_deep_equal.default)(data, previousData.current)) return;
8590
8698
  onChange(data);
8591
8699
  previousData.current = data;
8592
8700
  }
@@ -8666,6 +8774,7 @@ function PuckLayout({ children }) {
8666
8774
  }, []);
8667
8775
  const ready = useAppStore((s) => s.status === "READY");
8668
8776
  useMonitorHotkeys();
8777
+ useDeleteHotkeys();
8669
8778
  useEffect29(() => {
8670
8779
  if (ready && iframe.enabled) {
8671
8780
  const frameDoc = getFrame();
@@ -681,19 +681,19 @@ init_react_import();
681
681
 
682
682
  // lib/get-changed.ts
683
683
  init_react_import();
684
- import fdeq from "fast-deep-equal";
684
+ import { deepEqual } from "fast-equals";
685
685
  var getChanged = (newItem, oldItem) => {
686
686
  return newItem ? Object.keys(newItem.props || {}).reduce((acc, item) => {
687
687
  const newItemProps = (newItem == null ? void 0 : newItem.props) || {};
688
688
  const oldItemProps = (oldItem == null ? void 0 : oldItem.props) || {};
689
689
  return __spreadProps(__spreadValues({}, acc), {
690
- [item]: !fdeq(oldItemProps[item], newItemProps[item])
690
+ [item]: !deepEqual(oldItemProps[item], newItemProps[item])
691
691
  });
692
692
  }, {}) : {};
693
693
  };
694
694
 
695
695
  // lib/resolve-component-data.ts
696
- import fdeq2 from "fast-deep-equal";
696
+ import { deepEqual as deepEqual2 } from "fast-equals";
697
697
  var cache = { lastChange: {} };
698
698
  var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
699
699
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
@@ -702,7 +702,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
702
702
  const id = "id" in item.props ? item.props.id : "root";
703
703
  if (shouldRunResolver) {
704
704
  const { item: oldItem = null, resolved = {} } = cache.lastChange[id] || {};
705
- if (trigger !== "force" && item && fdeq2(item, oldItem)) {
705
+ if (trigger !== "force" && item && deepEqual2(item, oldItem)) {
706
706
  return { node: resolved, didChange: false };
707
707
  }
708
708
  const changed = getChanged(item, oldItem);
@@ -752,7 +752,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
752
752
  };
753
753
  return {
754
754
  node: itemWithResolvedChildren,
755
- didChange: !fdeq2(item, itemWithResolvedChildren)
755
+ didChange: !deepEqual2(item, itemWithResolvedChildren)
756
756
  };
757
757
  });
758
758
 
package/dist/index.css CHANGED
@@ -1331,16 +1331,17 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1331
1331
  }
1332
1332
 
1333
1333
  /* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
1334
- ._InlineTextField_1xph6_1 {
1334
+ ._InlineTextField_104qp_1 {
1335
1335
  cursor: text;
1336
1336
  display: inline-block;
1337
1337
  white-space: pre-wrap;
1338
+ text-decoration: inherit;
1338
1339
  }
1339
- [data-dnd-dragging] ._InlineTextField_1xph6_1 {
1340
+ [data-dnd-dragging] ._InlineTextField_104qp_1 {
1340
1341
  cursor: none;
1341
1342
  caret-color: transparent;
1342
1343
  }
1343
- [data-dnd-dragging] ._InlineTextField_1xph6_1::selection {
1344
+ [data-dnd-dragging] ._InlineTextField_104qp_1::selection {
1344
1345
  display: none;
1345
1346
  }
1346
1347
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-JdJYB16L.mjs';
2
- export { a7 as Adaptor, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, Z as ComponentDataMap, X as ComponentDataOptionalId, _ as Content, ab as CustomField, aa as CustomFieldRender, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, Y as MappedItem, a1 as NumberField, a6 as ObjectField, x as OverrideKey, G as PuckComponent, ad as PuckContext, a4 as RadioField, J as RootConfig, T as RootData, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, q as Viewport, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-JdJYB16L.mjs';
1
+ import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-Ctf3FZQI.mjs';
2
+ export { a7 as Adaptor, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, Z as ComponentDataMap, X as ComponentDataOptionalId, _ as Content, ab as CustomField, aa as CustomFieldRender, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, Y as MappedItem, a1 as NumberField, a6 as ObjectField, x as OverrideKey, G as PuckComponent, ad as PuckContext, a4 as RadioField, J as RootConfig, T as RootData, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, q as Viewport, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Ctf3FZQI.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-JdJYB16L.js';
2
- export { a7 as Adaptor, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, Z as ComponentDataMap, X as ComponentDataOptionalId, _ as Content, ab as CustomField, aa as CustomFieldRender, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, Y as MappedItem, a1 as NumberField, a6 as ObjectField, x as OverrideKey, G as PuckComponent, ad as PuckContext, a4 as RadioField, J as RootConfig, T as RootData, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, q as Viewport, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-JdJYB16L.js';
1
+ import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as Field, i as FieldProps, D as DropZoneProps, j as Data, k as OnAction, l as InitialHistory, n as ItemSelector } from './walk-tree-Ctf3FZQI.js';
2
+ export { a7 as Adaptor, a5 as ArrayField, B as ArrayState, ak as AsFieldProps, N as BaseData, $ as BaseField, Z as ComponentDataMap, X as ComponentDataOptionalId, _ as Content, ab as CustomField, aa as CustomFieldRender, ah as DefaultComponentProps, K as DefaultComponents, ae as DefaultRootFieldProps, ag as DefaultRootProps, af as DefaultRootRenderProps, o as Direction, p as DragAxis, a9 as ExternalField, a8 as ExternalFieldWithAdaptor, L as ExtractConfigParams, am as ExtractField, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, z as ItemWithId, Y as MappedItem, a1 as NumberField, a6 as ObjectField, x as OverrideKey, G as PuckComponent, ad as PuckContext, a4 as RadioField, J as RootConfig, T as RootData, Q as RootDataWithoutProps, a3 as SelectField, S as Slot, E as SlotComponent, ac as SlotField, a0 as TextField, a2 as TextareaField, q as Viewport, al as WithChildren, ai as WithId, aj as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-Ctf3FZQI.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
5
  import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';