@measured/puck 0.21.0-canary.29ef7131 → 0.21.0-canary.304940ae

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
@@ -190,8 +190,8 @@ var require_fast_deep_equal = __commonJS({
190
190
  });
191
191
 
192
192
  // bundle/index.ts
193
- var bundle_exports = {};
194
- __export(bundle_exports, {
193
+ var index_exports = {};
194
+ __export(index_exports, {
195
195
  Action: () => Action,
196
196
  ActionBar: () => ActionBar,
197
197
  AutoField: () => AutoField,
@@ -216,7 +216,7 @@ __export(bundle_exports, {
216
216
  usePuck: () => usePuck,
217
217
  walkTree: () => walkTree
218
218
  });
219
- module.exports = __toCommonJS(bundle_exports);
219
+ module.exports = __toCommonJS(index_exports);
220
220
  init_react_import();
221
221
 
222
222
  // bundle/core.ts
@@ -1976,10 +1976,10 @@ var getChanged = (newItem, oldItem) => {
1976
1976
 
1977
1977
  // store/slices/permissions.ts
1978
1978
  var createPermissionsSlice = (set, get) => {
1979
- const resolvePermissions = (..._0) => __async(void 0, [..._0], function* (params = {}, force) {
1979
+ const resolvePermissions = (..._0) => __async(null, [..._0], function* (params = {}, force) {
1980
1980
  const { state, permissions, config } = get();
1981
1981
  const { cache: cache2, globalPermissions } = permissions;
1982
- const resolveDataForItem = (item2, force2 = false) => __async(void 0, null, function* () {
1982
+ const resolveDataForItem = (item2, force2 = false) => __async(null, null, function* () {
1983
1983
  var _a, _b, _c;
1984
1984
  const { config: config2, state: appState, setComponentLoading } = get();
1985
1985
  const componentConfig = item2.type === "root" ? config2.root : config2.components[item2.type];
@@ -2034,13 +2034,13 @@ var createPermissionsSlice = (set, get) => {
2034
2034
  if (item) {
2035
2035
  yield resolveDataForItem(item, force);
2036
2036
  } else if (type) {
2037
- flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(void 0, null, function* () {
2037
+ flattenData(state, config).filter((item2) => item2.type === type).map((item2) => __async(null, null, function* () {
2038
2038
  yield resolveDataForItem(item2, force);
2039
2039
  }));
2040
2040
  } else if (root) {
2041
2041
  resolveDataForRoot(force);
2042
2042
  } else {
2043
- flattenData(state, config).map((item2) => __async(void 0, null, function* () {
2043
+ flattenData(state, config).map((item2) => __async(null, null, function* () {
2044
2044
  yield resolveDataForItem(item2, force);
2045
2045
  }));
2046
2046
  }
@@ -2121,7 +2121,7 @@ var createFieldsSlice = (_set, _get) => {
2121
2121
  };
2122
2122
  var useRegisterFieldsSlice = (appStore, id) => {
2123
2123
  const resolveFields = (0, import_react7.useCallback)(
2124
- (reset) => __async(void 0, null, function* () {
2124
+ (reset) => __async(null, null, function* () {
2125
2125
  var _a, _b;
2126
2126
  const { fields, lastResolvedData } = appStore.getState().fields;
2127
2127
  const metadata = appStore.getState().metadata;
@@ -2192,7 +2192,7 @@ var useRegisterFieldsSlice = (appStore, id) => {
2192
2192
  init_react_import();
2193
2193
  var import_fast_equals2 = require("fast-equals");
2194
2194
  var cache = { lastChange: {} };
2195
- var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
2195
+ var resolveComponentData = (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
2196
2196
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
2197
2197
  const resolvedItem = __spreadValues({}, item);
2198
2198
  const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
@@ -2220,11 +2220,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
2220
2220
  let itemWithResolvedChildren = yield mapFields(
2221
2221
  resolvedItem,
2222
2222
  {
2223
- slot: (_02) => __async(void 0, [_02], function* ({ value }) {
2223
+ slot: (_02) => __async(null, [_02], function* ({ value }) {
2224
2224
  const content = value;
2225
2225
  return yield Promise.all(
2226
2226
  content.map(
2227
- (childItem) => __async(void 0, null, function* () {
2227
+ (childItem) => __async(null, null, function* () {
2228
2228
  return (yield resolveComponentData(
2229
2229
  childItem,
2230
2230
  config,
@@ -2414,7 +2414,7 @@ var createAppStore = (initialAppStore) => (0, import_zustand2.create)()(
2414
2414
  const selectedItem = state.ui.itemSelector ? getItem(state.ui.itemSelector, state) : null;
2415
2415
  return __spreadProps(__spreadValues({}, s), { state, selectedItem });
2416
2416
  }),
2417
- resolveComponentData: (componentData, trigger) => __async(void 0, null, function* () {
2417
+ resolveComponentData: (componentData, trigger) => __async(null, null, function* () {
2418
2418
  const { config, metadata, setComponentLoading, permissions } = get();
2419
2419
  const timeouts = {};
2420
2420
  return yield resolveComponentData(
@@ -2425,7 +2425,7 @@ var createAppStore = (initialAppStore) => (0, import_zustand2.create)()(
2425
2425
  const id = "id" in item.props ? item.props.id : "root";
2426
2426
  timeouts[id] = setComponentLoading(id, true, 50);
2427
2427
  },
2428
- (item) => __async(void 0, null, function* () {
2428
+ (item) => __async(null, null, function* () {
2429
2429
  const id = "id" in item.props ? item.props.id : "root";
2430
2430
  if ("type" in item) {
2431
2431
  yield permissions.refreshPermissions({ item });
@@ -2437,7 +2437,7 @@ var createAppStore = (initialAppStore) => (0, import_zustand2.create)()(
2437
2437
  trigger
2438
2438
  );
2439
2439
  }),
2440
- resolveAndCommitData: () => __async(void 0, null, function* () {
2440
+ resolveAndCommitData: () => __async(null, null, function* () {
2441
2441
  const { config, state, dispatch, resolveComponentData: resolveComponentData2 } = get();
2442
2442
  walkAppState(
2443
2443
  state,
@@ -3009,7 +3009,7 @@ var collisionStore = (0, import_vanilla.createStore)(() => ({
3009
3009
 
3010
3010
  // lib/dnd/collision/dynamic/index.ts
3011
3011
  var flushNext = "";
3012
- var createDynamicCollisionDetector = (dragAxis, midpointOffset = 0.05) => (input) => {
3012
+ var createDynamicCollisionDetector = (dragAxis, midpointOffset = 0.05) => ((input) => {
3013
3013
  var _a, _b, _c, _d, _e;
3014
3014
  const { dragOperation, droppable } = input;
3015
3015
  const { position } = dragOperation;
@@ -3102,7 +3102,7 @@ var createDynamicCollisionDetector = (dragAxis, midpointOffset = 0.05) => (input
3102
3102
  }
3103
3103
  collisionDebug(dragCenter, dropCenter, droppable.id.toString(), "hotpink");
3104
3104
  return null;
3105
- };
3105
+ });
3106
3106
 
3107
3107
  // components/Sortable/index.tsx
3108
3108
  var import_sortable = require("@dnd-kit/react/sortable");
@@ -3825,7 +3825,7 @@ var ExternalInput = ({
3825
3825
  }, [mappedData]);
3826
3826
  const [searchQuery, setSearchQuery] = (0, import_react17.useState)(field.initialQuery || "");
3827
3827
  const search = (0, import_react17.useCallback)(
3828
- (query, filters2) => __async(void 0, null, function* () {
3828
+ (query, filters2) => __async(null, null, function* () {
3829
3829
  setIsLoading(true);
3830
3830
  const cacheKey = `${id}-${query}-${JSON.stringify(filters2)}`;
3831
3831
  let listData;
@@ -4051,7 +4051,7 @@ var ExternalField = ({
4051
4051
  placeholder: ((_a = deprecatedField.adaptor) == null ? void 0 : _a.name) ? `Select from ${deprecatedField.adaptor.name}` : validField.placeholder || "Select data",
4052
4052
  mapProp: ((_b = deprecatedField.adaptor) == null ? void 0 : _b.mapProp) || validField.mapProp,
4053
4053
  mapRow: validField.mapRow,
4054
- fetchList: ((_c = deprecatedField.adaptor) == null ? void 0 : _c.fetchList) ? () => __async(void 0, null, function* () {
4054
+ fetchList: ((_c = deprecatedField.adaptor) == null ? void 0 : _c.fetchList) ? () => __async(null, null, function* () {
4055
4055
  return yield deprecatedField.adaptor.fetchList(
4056
4056
  deprecatedField.adaptorParams
4057
4057
  );
@@ -4427,6 +4427,7 @@ function AutoFieldInternal(props) {
4427
4427
  }
4428
4428
  return (_props) => null;
4429
4429
  }, [field.type]);
4430
+ const fieldKey = field.type === "custom" ? field.key : void 0;
4430
4431
  let FieldComponent = (0, import_react20.useMemo)(() => {
4431
4432
  if (field.type === "custom") {
4432
4433
  if (!field.render) {
@@ -4436,7 +4437,7 @@ function AutoFieldInternal(props) {
4436
4437
  } else if (field.type !== "slot") {
4437
4438
  return render[field.type];
4438
4439
  }
4439
- }, [field.type, render]);
4440
+ }, [field.type, fieldKey, render]);
4440
4441
  const { visible = true } = props.field;
4441
4442
  if (!visible) {
4442
4443
  return null;
@@ -5261,7 +5262,7 @@ var import_react27 = require("react");
5261
5262
  function useRenderedCallback(callback, deps) {
5262
5263
  const manager = (0, import_react26.useDragDropManager)();
5263
5264
  return (0, import_react27.useCallback)(
5264
- (...args) => __async(this, null, function* () {
5265
+ (...args) => __async(null, null, function* () {
5265
5266
  yield manager == null ? void 0 : manager.renderer.rendering;
5266
5267
  return callback(...args);
5267
5268
  }),
@@ -5466,8 +5467,9 @@ var Item = ({
5466
5467
  );
5467
5468
  };
5468
5469
  var SlotRender = (0, import_react31.forwardRef)(
5469
- function SlotRenderInternal({ className, style, content, config, metadata }, ref) {
5470
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className, style, ref, children: content.map((item) => {
5470
+ function SlotRenderInternal({ className, style, content, config, metadata, as }, ref) {
5471
+ const El = as != null ? as : "div";
5472
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(El, { className, style, ref, children: content.map((item) => {
5471
5473
  if (!config.components[item.type]) {
5472
5474
  return null;
5473
5475
  }
@@ -5690,7 +5692,7 @@ var InlineTextFieldInternal = ({
5690
5692
  ref.current.replaceChildren(value);
5691
5693
  }
5692
5694
  const cleanupPortal = registerOverlayPortal(ref.current);
5693
- const handleInput = (e) => __async(void 0, null, function* () {
5695
+ const handleInput = (e) => __async(null, null, function* () {
5694
5696
  var _a2;
5695
5697
  const appStore2 = appStoreApi.getState();
5696
5698
  const node = appStore2.state.indexes.nodes[componentId];
@@ -5982,7 +5984,8 @@ var DropZoneEdit = (0, import_react34.forwardRef)(
5982
5984
  style,
5983
5985
  className,
5984
5986
  minEmptyHeight: userMinEmptyHeight = 128,
5985
- collisionAxis
5987
+ collisionAxis,
5988
+ as
5986
5989
  }, userRef) {
5987
5990
  const ctx = (0, import_react34.useContext)(dropZoneContext);
5988
5991
  const appStoreApi = useAppStoreApi();
@@ -6125,8 +6128,9 @@ var DropZoneEdit = (0, import_react34.forwardRef)(
6125
6128
  userMinEmptyHeight,
6126
6129
  ref
6127
6130
  });
6131
+ const El = as != null ? as : "div";
6128
6132
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
6129
- "div",
6133
+ El,
6130
6134
  {
6131
6135
  className: `${getClassName18({
6132
6136
  isRootZone,
@@ -6189,7 +6193,7 @@ var DropZoneRenderItem = ({
6189
6193
  };
6190
6194
  var DropZoneRenderPure = (props) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DropZoneRender, __spreadValues({}, props));
6191
6195
  var DropZoneRender = (0, import_react34.forwardRef)(
6192
- function DropZoneRenderInternal({ className, style, zone }, ref) {
6196
+ function DropZoneRenderInternal({ className, style, zone, as }, ref) {
6193
6197
  const ctx = (0, import_react34.useContext)(dropZoneContext);
6194
6198
  const { areaId = "root" } = ctx || {};
6195
6199
  const { config, data, metadata } = (0, import_react34.useContext)(renderContext);
@@ -6202,13 +6206,14 @@ var DropZoneRender = (0, import_react34.forwardRef)(
6202
6206
  }
6203
6207
  }
6204
6208
  }, [content]);
6209
+ const El = as != null ? as : "div";
6205
6210
  if (!data || !config) {
6206
6211
  return null;
6207
6212
  }
6208
6213
  if (zoneCompound !== rootDroppableId) {
6209
6214
  content = setupZone(data, zoneCompound).zones[zoneCompound];
6210
6215
  }
6211
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className, style, ref, children: content.map((item) => {
6216
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(El, { className, style, ref, children: content.map((item) => {
6212
6217
  const Component = config.components[item.type];
6213
6218
  if (Component) {
6214
6219
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
@@ -6514,7 +6519,8 @@ var createNestedDroppablePlugin = ({ onChange }, id) => class NestedDroppablePlu
6514
6519
 
6515
6520
  // lib/insert-component.ts
6516
6521
  init_react_import();
6517
- var insertComponent = (componentType, zone, index, appStore) => __async(void 0, null, function* () {
6522
+ var insertComponent = (componentType, zone, index, appStore) => __async(null, null, function* () {
6523
+ const { getState } = appStore;
6518
6524
  const id = generateId(componentType);
6519
6525
  const insertActionData = {
6520
6526
  type: "insert",
@@ -6523,8 +6529,9 @@ var insertComponent = (componentType, zone, index, appStore) => __async(void 0,
6523
6529
  destinationZone: zone,
6524
6530
  id
6525
6531
  };
6526
- const { state, dispatch, resolveComponentData: resolveComponentData2 } = appStore;
6527
- const insertedState = insertAction(state, insertActionData, appStore);
6532
+ const stateBefore = getState().state;
6533
+ const insertedState = insertAction(stateBefore, insertActionData, getState());
6534
+ const dispatch = getState().dispatch;
6528
6535
  dispatch(__spreadProps(__spreadValues({}, insertActionData), {
6529
6536
  // Dispatch insert rather set, as user's may rely on this via onAction
6530
6537
  // We must always record history here so the insert is added to user history
@@ -6532,23 +6539,21 @@ var insertComponent = (componentType, zone, index, appStore) => __async(void 0,
6532
6539
  // entries on insert - one for the initial insert, and one when the data resolves
6533
6540
  recordHistory: true
6534
6541
  }));
6535
- const itemSelector = {
6536
- index,
6537
- zone
6538
- };
6542
+ const itemSelector = { index, zone };
6539
6543
  dispatch({ type: "setUi", ui: { itemSelector } });
6540
6544
  const itemData = getItem(itemSelector, insertedState);
6541
- if (itemData) {
6542
- const resolved = yield resolveComponentData2(itemData, "insert");
6543
- if (resolved.didChange) {
6544
- dispatch({
6545
- type: "replace",
6546
- destinationZone: itemSelector.zone,
6547
- destinationIndex: itemSelector.index,
6548
- data: resolved.node
6549
- });
6550
- }
6551
- }
6545
+ if (!itemData) return;
6546
+ const resolveComponentData2 = getState().resolveComponentData;
6547
+ const resolved = yield resolveComponentData2(itemData, "insert");
6548
+ if (!resolved.didChange) return;
6549
+ const latestItemSelector = getSelectorForId(getState().state, id);
6550
+ if (!latestItemSelector) return;
6551
+ dispatch({
6552
+ type: "replace",
6553
+ destinationZone: latestItemSelector.zone,
6554
+ destinationIndex: latestItemSelector.index,
6555
+ data: resolved.node
6556
+ });
6552
6557
  });
6553
6558
 
6554
6559
  // components/DragDropContext/index.tsx
@@ -6785,7 +6790,7 @@ var DragDropContextClient = ({
6785
6790
  thisPreview.componentType,
6786
6791
  thisPreview.zone,
6787
6792
  thisPreview.index,
6788
- appStore.getState()
6793
+ appStore
6789
6794
  );
6790
6795
  } else if (initialSelector.current) {
6791
6796
  dispatch({
@@ -7222,49 +7227,48 @@ var DefaultFields = ({
7222
7227
  }) => {
7223
7228
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children });
7224
7229
  };
7225
- var createOnChange = (fieldName, appStore) => (value, updatedUi) => __async(void 0, null, function* () {
7226
- let currentProps;
7230
+ var createOnChange = (fieldName, appStore) => (value, updatedUi) => __async(null, null, function* () {
7227
7231
  const { dispatch, state, selectedItem, resolveComponentData: resolveComponentData2 } = appStore.getState();
7228
7232
  const { data, ui } = state;
7229
7233
  const { itemSelector } = ui;
7230
7234
  const rootProps = data.root.props || data.root;
7231
- if (selectedItem) {
7232
- currentProps = selectedItem.props;
7233
- } else {
7234
- currentProps = rootProps;
7235
- }
7236
- const newProps = __spreadProps(__spreadValues({}, currentProps), {
7237
- [fieldName]: value
7238
- });
7235
+ const currentProps = selectedItem ? selectedItem.props : rootProps;
7236
+ const newProps = __spreadProps(__spreadValues({}, currentProps), { [fieldName]: value });
7239
7237
  if (selectedItem && itemSelector) {
7238
+ const resolved = yield resolveComponentData2(
7239
+ __spreadProps(__spreadValues({}, selectedItem), { props: newProps }),
7240
+ "replace"
7241
+ );
7242
+ const latestSelector = getSelectorForId(
7243
+ appStore.getState().state,
7244
+ selectedItem.props.id
7245
+ );
7246
+ if (!latestSelector) return;
7240
7247
  dispatch({
7241
7248
  type: "replace",
7242
- destinationIndex: itemSelector.index,
7243
- destinationZone: itemSelector.zone || rootDroppableId,
7244
- data: (yield resolveComponentData2(
7245
- __spreadProps(__spreadValues({}, selectedItem), { props: newProps }),
7249
+ destinationIndex: latestSelector.index,
7250
+ destinationZone: latestSelector.zone || rootDroppableId,
7251
+ data: resolved.node,
7252
+ ui: updatedUi
7253
+ });
7254
+ return;
7255
+ }
7256
+ if (data.root.props) {
7257
+ dispatch({
7258
+ type: "replaceRoot",
7259
+ root: (yield resolveComponentData2(
7260
+ __spreadProps(__spreadValues({}, data.root), { props: newProps }),
7246
7261
  "replace"
7247
7262
  )).node,
7248
- ui: updatedUi
7263
+ ui: __spreadValues(__spreadValues({}, ui), updatedUi),
7264
+ recordHistory: true
7249
7265
  });
7250
- } else {
7251
- if (data.root.props) {
7252
- dispatch({
7253
- type: "replaceRoot",
7254
- root: (yield resolveComponentData2(
7255
- __spreadProps(__spreadValues({}, data.root), { props: newProps }),
7256
- "replace"
7257
- )).node,
7258
- ui: __spreadValues(__spreadValues({}, ui), updatedUi),
7259
- recordHistory: true
7260
- });
7261
- } else {
7262
- dispatch({
7263
- type: "setData",
7264
- data: { root: newProps }
7265
- });
7266
- }
7266
+ return;
7267
7267
  }
7268
+ dispatch({
7269
+ type: "setData",
7270
+ data: { root: newProps }
7271
+ });
7268
7272
  });
7269
7273
  var FieldsChild = ({ fieldName }) => {
7270
7274
  const field = useAppStore((s) => s.fields.fields[fieldName]);
@@ -7591,7 +7595,7 @@ var CopyHostStyles = ({
7591
7595
  let elements = [];
7592
7596
  const hashes = {};
7593
7597
  const lookupEl = (el) => elements.findIndex((elementMap) => elementMap.original === el);
7594
- const mirrorEl = (el, inlineStyles = false) => __async(void 0, null, function* () {
7598
+ const mirrorEl = (el, inlineStyles = false) => __async(null, null, function* () {
7595
7599
  let mirror;
7596
7600
  if (el.nodeName === "LINK" && inlineStyles) {
7597
7601
  mirror = document.createElement("style");
@@ -7623,7 +7627,7 @@ var CopyHostStyles = ({
7623
7627
  }
7624
7628
  return mirror;
7625
7629
  });
7626
- const addEl = (el) => __async(void 0, null, function* () {
7630
+ const addEl = (el) => __async(null, null, function* () {
7627
7631
  const index = lookupEl(el);
7628
7632
  if (index > -1) {
7629
7633
  if (debug)
@@ -7696,7 +7700,7 @@ var CopyHostStyles = ({
7696
7700
  const parentBody = parentDocument.getElementsByTagName("body")[0];
7697
7701
  syncAttributes(parentBody, doc.body);
7698
7702
  Promise.all(
7699
- collectedStyles.map((styleNode, i) => __async(void 0, null, function* () {
7703
+ collectedStyles.map((styleNode, i) => __async(null, null, function* () {
7700
7704
  if (styleNode.nodeName === "LINK") {
7701
7705
  const linkHref = styleNode.href;
7702
7706
  if (hrefs.indexOf(linkHref) > -1) {
@@ -8771,7 +8775,7 @@ function createUsePuck() {
8771
8775
  }
8772
8776
  const result = (0, import_zustand6.useStore)(
8773
8777
  usePuckApi,
8774
- selector != null ? selector : (s) => s
8778
+ selector != null ? selector : ((s) => s)
8775
8779
  );
8776
8780
  return result;
8777
8781
  };
@@ -9349,7 +9353,12 @@ function PuckProvider({ children }) {
9349
9353
  });
9350
9354
  })
9351
9355
  );
9352
- const initialHistoryIndex = (_initialHistory == null ? void 0 : _initialHistory.index) || blendedHistories.length - 1;
9356
+ const initialHistoryIndex = (0, import_react60.useMemo)(() => {
9357
+ if ((_initialHistory == null ? void 0 : _initialHistory.index) !== void 0 && (_initialHistory == null ? void 0 : _initialHistory.index) >= 0 && (_initialHistory == null ? void 0 : _initialHistory.index) < blendedHistories.length) {
9358
+ return _initialHistory == null ? void 0 : _initialHistory.index;
9359
+ }
9360
+ return blendedHistories.length - 1;
9361
+ }, []);
9353
9362
  const initialAppState = blendedHistories[initialHistoryIndex].state;
9354
9363
  const loadedOverrides = useLoadedOverrides({
9355
9364
  overrides,
@@ -9735,7 +9744,7 @@ function resolveAllData(_0, _1) {
9735
9744
  return __async(this, arguments, function* (data, config, metadata = {}, onResolveStart, onResolveEnd) {
9736
9745
  var _a;
9737
9746
  const defaultedData = defaultData(data);
9738
- const resolveNode = (_node) => __async(this, null, function* () {
9747
+ const resolveNode = (_node) => __async(null, null, function* () {
9739
9748
  const node = toComponent(_node);
9740
9749
  onResolveStart == null ? void 0 : onResolveStart(node);
9741
9750
  const resolved = (yield resolveComponentData(
@@ -9756,13 +9765,13 @@ function resolveAllData(_0, _1) {
9756
9765
  onResolveEnd == null ? void 0 : onResolveEnd(toComponent(resolvedDeep));
9757
9766
  return resolvedDeep;
9758
9767
  });
9759
- const processContent = (content) => __async(this, null, function* () {
9768
+ const processContent = (content) => __async(null, null, function* () {
9760
9769
  return Promise.all(content.map(resolveNode));
9761
9770
  });
9762
- const processZones = () => __async(this, null, function* () {
9771
+ const processZones = () => __async(null, null, function* () {
9763
9772
  var _a2;
9764
9773
  const zones = (_a2 = data.zones) != null ? _a2 : {};
9765
- Object.entries(zones).forEach((_02) => __async(this, [_02], function* ([zoneKey, content]) {
9774
+ Object.entries(zones).forEach((_02) => __async(null, [_02], function* ([zoneKey, content]) {
9766
9775
  zones[zoneKey] = yield Promise.all(content.map(resolveNode));
9767
9776
  }));
9768
9777
  return zones;
@@ -9772,7 +9781,7 @@ function resolveAllData(_0, _1) {
9772
9781
  content: yield processContent(defaultedData.content),
9773
9782
  zones: yield processZones()
9774
9783
  };
9775
- Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(this, null, function* () {
9784
+ Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(null, null, function* () {
9776
9785
  const content = defaultedData.zones[zoneKey];
9777
9786
  dynamic.zones[zoneKey] = yield processContent(content);
9778
9787
  }), {});
@@ -9815,269 +9824,38 @@ classnames/index.js:
9815
9824
  *)
9816
9825
 
9817
9826
  lucide-react/dist/esm/shared/src/utils.js:
9818
- (**
9819
- * @license lucide-react v0.468.0 - ISC
9820
- *
9821
- * This source code is licensed under the ISC license.
9822
- * See the LICENSE file in the root directory of this source tree.
9823
- *)
9824
-
9825
9827
  lucide-react/dist/esm/defaultAttributes.js:
9826
- (**
9827
- * @license lucide-react v0.468.0 - ISC
9828
- *
9829
- * This source code is licensed under the ISC license.
9830
- * See the LICENSE file in the root directory of this source tree.
9831
- *)
9832
-
9833
9828
  lucide-react/dist/esm/Icon.js:
9834
- (**
9835
- * @license lucide-react v0.468.0 - ISC
9836
- *
9837
- * This source code is licensed under the ISC license.
9838
- * See the LICENSE file in the root directory of this source tree.
9839
- *)
9840
-
9841
9829
  lucide-react/dist/esm/createLucideIcon.js:
9842
- (**
9843
- * @license lucide-react v0.468.0 - ISC
9844
- *
9845
- * This source code is licensed under the ISC license.
9846
- * See the LICENSE file in the root directory of this source tree.
9847
- *)
9848
-
9849
9830
  lucide-react/dist/esm/icons/chevron-down.js:
9850
- (**
9851
- * @license lucide-react v0.468.0 - ISC
9852
- *
9853
- * This source code is licensed under the ISC license.
9854
- * See the LICENSE file in the root directory of this source tree.
9855
- *)
9856
-
9857
9831
  lucide-react/dist/esm/icons/chevron-right.js:
9858
- (**
9859
- * @license lucide-react v0.468.0 - ISC
9860
- *
9861
- * This source code is licensed under the ISC license.
9862
- * See the LICENSE file in the root directory of this source tree.
9863
- *)
9864
-
9865
9832
  lucide-react/dist/esm/icons/chevron-up.js:
9866
- (**
9867
- * @license lucide-react v0.468.0 - ISC
9868
- *
9869
- * This source code is licensed under the ISC license.
9870
- * See the LICENSE file in the root directory of this source tree.
9871
- *)
9872
-
9873
9833
  lucide-react/dist/esm/icons/circle-check-big.js:
9874
- (**
9875
- * @license lucide-react v0.468.0 - ISC
9876
- *
9877
- * This source code is licensed under the ISC license.
9878
- * See the LICENSE file in the root directory of this source tree.
9879
- *)
9880
-
9881
9834
  lucide-react/dist/esm/icons/copy.js:
9882
- (**
9883
- * @license lucide-react v0.468.0 - ISC
9884
- *
9885
- * This source code is licensed under the ISC license.
9886
- * See the LICENSE file in the root directory of this source tree.
9887
- *)
9888
-
9889
9835
  lucide-react/dist/esm/icons/corner-left-up.js:
9890
- (**
9891
- * @license lucide-react v0.468.0 - ISC
9892
- *
9893
- * This source code is licensed under the ISC license.
9894
- * See the LICENSE file in the root directory of this source tree.
9895
- *)
9896
-
9897
9836
  lucide-react/dist/esm/icons/ellipsis-vertical.js:
9898
- (**
9899
- * @license lucide-react v0.468.0 - ISC
9900
- *
9901
- * This source code is licensed under the ISC license.
9902
- * See the LICENSE file in the root directory of this source tree.
9903
- *)
9904
-
9905
9837
  lucide-react/dist/esm/icons/globe.js:
9906
- (**
9907
- * @license lucide-react v0.468.0 - ISC
9908
- *
9909
- * This source code is licensed under the ISC license.
9910
- * See the LICENSE file in the root directory of this source tree.
9911
- *)
9912
-
9913
9838
  lucide-react/dist/esm/icons/hash.js:
9914
- (**
9915
- * @license lucide-react v0.468.0 - ISC
9916
- *
9917
- * This source code is licensed under the ISC license.
9918
- * See the LICENSE file in the root directory of this source tree.
9919
- *)
9920
-
9921
9839
  lucide-react/dist/esm/icons/layers.js:
9922
- (**
9923
- * @license lucide-react v0.468.0 - ISC
9924
- *
9925
- * This source code is licensed under the ISC license.
9926
- * See the LICENSE file in the root directory of this source tree.
9927
- *)
9928
-
9929
9840
  lucide-react/dist/esm/icons/layout-grid.js:
9930
- (**
9931
- * @license lucide-react v0.468.0 - ISC
9932
- *
9933
- * This source code is licensed under the ISC license.
9934
- * See the LICENSE file in the root directory of this source tree.
9935
- *)
9936
-
9937
9841
  lucide-react/dist/esm/icons/link.js:
9938
- (**
9939
- * @license lucide-react v0.468.0 - ISC
9940
- *
9941
- * This source code is licensed under the ISC license.
9942
- * See the LICENSE file in the root directory of this source tree.
9943
- *)
9944
-
9945
9842
  lucide-react/dist/esm/icons/list.js:
9946
- (**
9947
- * @license lucide-react v0.468.0 - ISC
9948
- *
9949
- * This source code is licensed under the ISC license.
9950
- * See the LICENSE file in the root directory of this source tree.
9951
- *)
9952
-
9953
9843
  lucide-react/dist/esm/icons/lock-open.js:
9954
- (**
9955
- * @license lucide-react v0.468.0 - ISC
9956
- *
9957
- * This source code is licensed under the ISC license.
9958
- * See the LICENSE file in the root directory of this source tree.
9959
- *)
9960
-
9961
9844
  lucide-react/dist/esm/icons/lock.js:
9962
- (**
9963
- * @license lucide-react v0.468.0 - ISC
9964
- *
9965
- * This source code is licensed under the ISC license.
9966
- * See the LICENSE file in the root directory of this source tree.
9967
- *)
9968
-
9969
9845
  lucide-react/dist/esm/icons/monitor.js:
9970
- (**
9971
- * @license lucide-react v0.468.0 - ISC
9972
- *
9973
- * This source code is licensed under the ISC license.
9974
- * See the LICENSE file in the root directory of this source tree.
9975
- *)
9976
-
9977
9846
  lucide-react/dist/esm/icons/panel-left.js:
9978
- (**
9979
- * @license lucide-react v0.468.0 - ISC
9980
- *
9981
- * This source code is licensed under the ISC license.
9982
- * See the LICENSE file in the root directory of this source tree.
9983
- *)
9984
-
9985
9847
  lucide-react/dist/esm/icons/panel-right.js:
9986
- (**
9987
- * @license lucide-react v0.468.0 - ISC
9988
- *
9989
- * This source code is licensed under the ISC license.
9990
- * See the LICENSE file in the root directory of this source tree.
9991
- *)
9992
-
9993
9848
  lucide-react/dist/esm/icons/plus.js:
9994
- (**
9995
- * @license lucide-react v0.468.0 - ISC
9996
- *
9997
- * This source code is licensed under the ISC license.
9998
- * See the LICENSE file in the root directory of this source tree.
9999
- *)
10000
-
10001
9849
  lucide-react/dist/esm/icons/redo-2.js:
10002
- (**
10003
- * @license lucide-react v0.468.0 - ISC
10004
- *
10005
- * This source code is licensed under the ISC license.
10006
- * See the LICENSE file in the root directory of this source tree.
10007
- *)
10008
-
10009
9850
  lucide-react/dist/esm/icons/search.js:
10010
- (**
10011
- * @license lucide-react v0.468.0 - ISC
10012
- *
10013
- * This source code is licensed under the ISC license.
10014
- * See the LICENSE file in the root directory of this source tree.
10015
- *)
10016
-
10017
9851
  lucide-react/dist/esm/icons/sliders-horizontal.js:
10018
- (**
10019
- * @license lucide-react v0.468.0 - ISC
10020
- *
10021
- * This source code is licensed under the ISC license.
10022
- * See the LICENSE file in the root directory of this source tree.
10023
- *)
10024
-
10025
9852
  lucide-react/dist/esm/icons/smartphone.js:
10026
- (**
10027
- * @license lucide-react v0.468.0 - ISC
10028
- *
10029
- * This source code is licensed under the ISC license.
10030
- * See the LICENSE file in the root directory of this source tree.
10031
- *)
10032
-
10033
9853
  lucide-react/dist/esm/icons/tablet.js:
10034
- (**
10035
- * @license lucide-react v0.468.0 - ISC
10036
- *
10037
- * This source code is licensed under the ISC license.
10038
- * See the LICENSE file in the root directory of this source tree.
10039
- *)
10040
-
10041
9854
  lucide-react/dist/esm/icons/trash.js:
10042
- (**
10043
- * @license lucide-react v0.468.0 - ISC
10044
- *
10045
- * This source code is licensed under the ISC license.
10046
- * See the LICENSE file in the root directory of this source tree.
10047
- *)
10048
-
10049
9855
  lucide-react/dist/esm/icons/type.js:
10050
- (**
10051
- * @license lucide-react v0.468.0 - ISC
10052
- *
10053
- * This source code is licensed under the ISC license.
10054
- * See the LICENSE file in the root directory of this source tree.
10055
- *)
10056
-
10057
9856
  lucide-react/dist/esm/icons/undo-2.js:
10058
- (**
10059
- * @license lucide-react v0.468.0 - ISC
10060
- *
10061
- * This source code is licensed under the ISC license.
10062
- * See the LICENSE file in the root directory of this source tree.
10063
- *)
10064
-
10065
9857
  lucide-react/dist/esm/icons/zoom-in.js:
10066
- (**
10067
- * @license lucide-react v0.468.0 - ISC
10068
- *
10069
- * This source code is licensed under the ISC license.
10070
- * See the LICENSE file in the root directory of this source tree.
10071
- *)
10072
-
10073
9858
  lucide-react/dist/esm/icons/zoom-out.js:
10074
- (**
10075
- * @license lucide-react v0.468.0 - ISC
10076
- *
10077
- * This source code is licensed under the ISC license.
10078
- * See the LICENSE file in the root directory of this source tree.
10079
- *)
10080
-
10081
9859
  lucide-react/dist/esm/lucide-react.js:
10082
9860
  (**
10083
9861
  * @license lucide-react v0.468.0 - ISC