@measured/puck 0.19.0 → 0.19.1-canary.083aa3d5

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.
@@ -525,7 +525,7 @@ function forRelatedZones(item, data, cb, path = []) {
525
525
 
526
526
  // lib/data/flatten-node.ts
527
527
  init_react_import();
528
- import { flatten as flatten2, unflatten } from "flat";
528
+ import flat from "flat";
529
529
 
530
530
  // lib/data/strip-slots.ts
531
531
  init_react_import();
@@ -534,6 +534,7 @@ var stripSlots = (data, config) => {
534
534
  };
535
535
 
536
536
  // lib/data/flatten-node.ts
537
+ var { flatten: flatten2, unflatten } = flat;
537
538
  var flattenNode = (node, config) => {
538
539
  return __spreadProps(__spreadValues({}, node), {
539
540
  props: flatten2(stripSlots(node, config).props)
@@ -697,7 +698,7 @@ var migrations = [
697
698
  const { indexes } = walkAppState(appState, config);
698
699
  const deletedCompounds = [];
699
700
  walkAppState(appState, config, (content, zoneCompound, zoneType) => {
700
- var _a2, _b;
701
+ var _a2, _b, _c;
701
702
  if (zoneType === "dropzone") {
702
703
  const [id, slotName] = zoneCompound.split(":");
703
704
  const nodeData = indexes.nodes[id].data;
@@ -705,7 +706,7 @@ var migrations = [
705
706
  const configForComponent = id === "root" ? config.root : config.components[componentType];
706
707
  if (((_b = (_a2 = configForComponent == null ? void 0 : configForComponent.fields) == null ? void 0 : _a2[slotName]) == null ? void 0 : _b.type) === "slot") {
707
708
  updatedItems[id] = __spreadProps(__spreadValues({}, nodeData), {
708
- props: __spreadProps(__spreadValues({}, nodeData.props), {
709
+ props: __spreadProps(__spreadValues(__spreadValues({}, nodeData.props), (_c = updatedItems[id]) == null ? void 0 : _c.props), {
709
710
  [slotName]: content
710
711
  })
711
712
  });
package/dist/index.js CHANGED
@@ -970,7 +970,7 @@ function mapSlots(item, map, config, recurseSlots = false) {
970
970
 
971
971
  // lib/data/flatten-node.ts
972
972
  init_react_import();
973
- var import_flat = require("flat");
973
+ var import_flat = __toESM(require("flat"));
974
974
 
975
975
  // lib/data/strip-slots.ts
976
976
  init_react_import();
@@ -979,13 +979,14 @@ var stripSlots = (data, config) => {
979
979
  };
980
980
 
981
981
  // lib/data/flatten-node.ts
982
+ var { flatten: flatten2, unflatten } = import_flat.default;
982
983
  var flattenNode = (node, config) => {
983
984
  return __spreadProps(__spreadValues({}, node), {
984
- props: (0, import_flat.flatten)(stripSlots(node, config).props)
985
+ props: flatten2(stripSlots(node, config).props)
985
986
  });
986
987
  };
987
988
  var expandNode = (node) => {
988
- const props = (0, import_flat.unflatten)(node.props);
989
+ const props = unflatten(node.props);
989
990
  return __spreadProps(__spreadValues({}, node), {
990
991
  props
991
992
  });
@@ -8785,7 +8786,7 @@ var migrations = [
8785
8786
  const { indexes } = walkAppState(appState, config);
8786
8787
  const deletedCompounds = [];
8787
8788
  walkAppState(appState, config, (content, zoneCompound, zoneType) => {
8788
- var _a2, _b;
8789
+ var _a2, _b, _c;
8789
8790
  if (zoneType === "dropzone") {
8790
8791
  const [id, slotName] = zoneCompound.split(":");
8791
8792
  const nodeData = indexes.nodes[id].data;
@@ -8793,7 +8794,7 @@ var migrations = [
8793
8794
  const configForComponent = id === "root" ? config.root : config.components[componentType];
8794
8795
  if (((_b = (_a2 = configForComponent == null ? void 0 : configForComponent.fields) == null ? void 0 : _a2[slotName]) == null ? void 0 : _b.type) === "slot") {
8795
8796
  updatedItems[id] = __spreadProps(__spreadValues({}, nodeData), {
8796
- props: __spreadProps(__spreadValues({}, nodeData.props), {
8797
+ props: __spreadProps(__spreadValues(__spreadValues({}, nodeData.props), (_c = updatedItems[id]) == null ? void 0 : _c.props), {
8797
8798
  [slotName]: content
8798
8799
  })
8799
8800
  });
package/dist/index.mjs CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  walkAppState,
26
26
  walkField,
27
27
  walkTree
28
- } from "./chunk-H4SMAS54.mjs";
28
+ } from "./chunk-LWL5LFI5.mjs";
29
29
 
30
30
  // ../../node_modules/classnames/index.js
31
31
  var require_classnames = __commonJS({
package/dist/rsc.js CHANGED
@@ -659,7 +659,7 @@ function forRelatedZones(item, data, cb, path = []) {
659
659
  }
660
660
 
661
661
  // lib/data/flatten-node.ts
662
- var import_flat = require("flat");
662
+ var import_flat = __toESM(require("flat"));
663
663
 
664
664
  // lib/data/strip-slots.ts
665
665
  var stripSlots = (data, config) => {
@@ -667,9 +667,10 @@ var stripSlots = (data, config) => {
667
667
  };
668
668
 
669
669
  // lib/data/flatten-node.ts
670
+ var { flatten: flatten2, unflatten } = import_flat.default;
670
671
  var flattenNode = (node, config) => {
671
672
  return __spreadProps(__spreadValues({}, node), {
672
- props: (0, import_flat.flatten)(stripSlots(node, config).props)
673
+ props: flatten2(stripSlots(node, config).props)
673
674
  });
674
675
  };
675
676
 
@@ -824,7 +825,7 @@ var migrations = [
824
825
  const { indexes } = walkAppState(appState, config);
825
826
  const deletedCompounds = [];
826
827
  walkAppState(appState, config, (content, zoneCompound, zoneType) => {
827
- var _a2, _b;
828
+ var _a2, _b, _c;
828
829
  if (zoneType === "dropzone") {
829
830
  const [id, slotName] = zoneCompound.split(":");
830
831
  const nodeData = indexes.nodes[id].data;
@@ -832,7 +833,7 @@ var migrations = [
832
833
  const configForComponent = id === "root" ? config.root : config.components[componentType];
833
834
  if (((_b = (_a2 = configForComponent == null ? void 0 : configForComponent.fields) == null ? void 0 : _a2[slotName]) == null ? void 0 : _b.type) === "slot") {
834
835
  updatedItems[id] = __spreadProps(__spreadValues({}, nodeData), {
835
- props: __spreadProps(__spreadValues({}, nodeData.props), {
836
+ props: __spreadProps(__spreadValues(__spreadValues({}, nodeData.props), (_c = updatedItems[id]) == null ? void 0 : _c.props), {
836
837
  [slotName]: content
837
838
  })
838
839
  });
package/dist/rsc.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  resolveAllData,
6
6
  transformProps,
7
7
  walkTree
8
- } from "./chunk-H4SMAS54.mjs";
8
+ } from "./chunk-LWL5LFI5.mjs";
9
9
 
10
10
  // rsc.tsx
11
11
  init_react_import();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.19.0",
3
+ "version": "0.19.1-canary.083aa3d5",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",