@measured/puck 0.21.0-canary.b6ed9789 → 0.21.0-canary.b818cb1f

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.
@@ -138,7 +138,7 @@ var walkField = ({
138
138
  return map({
139
139
  value: mappedContent,
140
140
  parentId: id,
141
- propName: propKey,
141
+ propName: propPath,
142
142
  field: fields[propKey],
143
143
  propPath
144
144
  });
@@ -295,8 +295,7 @@ init_react_import();
295
295
  var defaultViewports = [
296
296
  { width: 360, height: "auto", icon: "Smartphone", label: "Small" },
297
297
  { width: 768, height: "auto", icon: "Tablet", label: "Medium" },
298
- { width: 1280, height: "auto", icon: "Monitor", label: "Large" },
299
- { width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
298
+ { width: 1280, height: "auto", icon: "Monitor", label: "Large" }
300
299
  ];
301
300
 
302
301
  // store/default-app-state.ts
@@ -318,8 +317,7 @@ var defaultAppState = {
318
317
  options: [],
319
318
  controlsVisible: true
320
319
  },
321
- field: { focus: null },
322
- plugin: { current: null }
320
+ field: { focus: null }
323
321
  },
324
322
  indexes: {
325
323
  nodes: {},
@@ -683,19 +681,19 @@ init_react_import();
683
681
 
684
682
  // lib/get-changed.ts
685
683
  init_react_import();
686
- import fdeq from "fast-deep-equal";
684
+ import { deepEqual } from "fast-equals";
687
685
  var getChanged = (newItem, oldItem) => {
688
686
  return newItem ? Object.keys(newItem.props || {}).reduce((acc, item) => {
689
687
  const newItemProps = (newItem == null ? void 0 : newItem.props) || {};
690
688
  const oldItemProps = (oldItem == null ? void 0 : oldItem.props) || {};
691
689
  return __spreadProps(__spreadValues({}, acc), {
692
- [item]: !fdeq(oldItemProps[item], newItemProps[item])
690
+ [item]: !deepEqual(oldItemProps[item], newItemProps[item])
693
691
  });
694
692
  }, {}) : {};
695
693
  };
696
694
 
697
695
  // lib/resolve-component-data.ts
698
- import fdeq2 from "fast-deep-equal";
696
+ import { deepEqual as deepEqual2 } from "fast-equals";
699
697
  var cache = { lastChange: {} };
700
698
  var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
701
699
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
@@ -704,7 +702,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
704
702
  const id = "id" in item.props ? item.props.id : "root";
705
703
  if (shouldRunResolver) {
706
704
  const { item: oldItem = null, resolved = {} } = cache.lastChange[id] || {};
707
- if (item && fdeq2(item, oldItem)) {
705
+ if (trigger !== "force" && item && deepEqual2(item, oldItem)) {
708
706
  return { node: resolved, didChange: false };
709
707
  }
710
708
  const changed = getChanged(item, oldItem);
@@ -754,7 +752,7 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
754
752
  };
755
753
  return {
756
754
  node: itemWithResolvedChildren,
757
- didChange: !fdeq2(item, itemWithResolvedChildren)
755
+ didChange: !deepEqual2(item, itemWithResolvedChildren)
758
756
  };
759
757
  });
760
758
 
@@ -960,6 +958,7 @@ export {
960
958
  useSlots,
961
959
  SlotRenderPure,
962
960
  SlotRender,
961
+ toComponent,
963
962
  migrate,
964
963
  transformProps,
965
964
  resolveAllData