@measured/puck 0.21.0-canary.74d9a160 → 0.21.0-canary.8416d520

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.
@@ -295,7 +295,8 @@ 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" }
298
+ { width: 1280, height: "auto", icon: "Monitor", label: "Large" },
299
+ { width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
299
300
  ];
300
301
 
301
302
  // store/default-app-state.ts
@@ -317,7 +318,8 @@ var defaultAppState = {
317
318
  options: [],
318
319
  controlsVisible: true
319
320
  },
320
- field: { focus: null }
321
+ field: { focus: null },
322
+ plugin: { current: null }
321
323
  },
322
324
  indexes: {
323
325
  nodes: {},
@@ -695,7 +697,7 @@ var getChanged = (newItem, oldItem) => {
695
697
  // lib/resolve-component-data.ts
696
698
  import { deepEqual as deepEqual2 } from "fast-equals";
697
699
  var cache = { lastChange: {} };
698
- var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
700
+ var resolveComponentData = (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
699
701
  const configForItem = "type" in item && item.type !== "root" ? config.components[item.type] : config.root;
700
702
  const resolvedItem = __spreadValues({}, item);
701
703
  const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
@@ -723,11 +725,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
723
725
  let itemWithResolvedChildren = yield mapFields(
724
726
  resolvedItem,
725
727
  {
726
- slot: (_02) => __async(void 0, [_02], function* ({ value }) {
728
+ slot: (_02) => __async(null, [_02], function* ({ value }) {
727
729
  const content = value;
728
730
  return yield Promise.all(
729
731
  content.map(
730
- (childItem) => __async(void 0, null, function* () {
732
+ (childItem) => __async(null, null, function* () {
731
733
  return (yield resolveComponentData(
732
734
  childItem,
733
735
  config,
@@ -770,7 +772,7 @@ function resolveAllData(_0, _1) {
770
772
  return __async(this, arguments, function* (data, config, metadata = {}, onResolveStart, onResolveEnd) {
771
773
  var _a;
772
774
  const defaultedData = defaultData(data);
773
- const resolveNode = (_node) => __async(this, null, function* () {
775
+ const resolveNode = (_node) => __async(null, null, function* () {
774
776
  const node = toComponent(_node);
775
777
  onResolveStart == null ? void 0 : onResolveStart(node);
776
778
  const resolved = (yield resolveComponentData(
@@ -791,13 +793,13 @@ function resolveAllData(_0, _1) {
791
793
  onResolveEnd == null ? void 0 : onResolveEnd(toComponent(resolvedDeep));
792
794
  return resolvedDeep;
793
795
  });
794
- const processContent = (content) => __async(this, null, function* () {
796
+ const processContent = (content) => __async(null, null, function* () {
795
797
  return Promise.all(content.map(resolveNode));
796
798
  });
797
- const processZones = () => __async(this, null, function* () {
799
+ const processZones = () => __async(null, null, function* () {
798
800
  var _a2;
799
801
  const zones = (_a2 = data.zones) != null ? _a2 : {};
800
- Object.entries(zones).forEach((_02) => __async(this, [_02], function* ([zoneKey, content]) {
802
+ Object.entries(zones).forEach((_02) => __async(null, [_02], function* ([zoneKey, content]) {
801
803
  zones[zoneKey] = yield Promise.all(content.map(resolveNode));
802
804
  }));
803
805
  return zones;
@@ -807,7 +809,7 @@ function resolveAllData(_0, _1) {
807
809
  content: yield processContent(defaultedData.content),
808
810
  zones: yield processZones()
809
811
  };
810
- Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(this, null, function* () {
812
+ Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(null, null, function* () {
811
813
  const content = defaultedData.zones[zoneKey];
812
814
  dynamic.zones[zoneKey] = yield processContent(content);
813
815
  }), {});