@measured/puck 0.21.0-canary.74d9a160 → 0.21.0-canary.79a26849

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.
@@ -695,7 +695,7 @@ var getChanged = (newItem, oldItem) => {
695
695
  // lib/resolve-component-data.ts
696
696
  import { deepEqual as deepEqual2 } from "fast-equals";
697
697
  var cache = { lastChange: {} };
698
- var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], function* (item, config, metadata = {}, onResolveStart, onResolveEnd, trigger = "replace") {
698
+ var resolveComponentData = (_0, _1, ..._2) => __async(null, [_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;
700
700
  const resolvedItem = __spreadValues({}, item);
701
701
  const shouldRunResolver = (configForItem == null ? void 0 : configForItem.resolveData) && item.props;
@@ -723,11 +723,11 @@ var resolveComponentData = (_0, _1, ..._2) => __async(void 0, [_0, _1, ..._2], f
723
723
  let itemWithResolvedChildren = yield mapFields(
724
724
  resolvedItem,
725
725
  {
726
- slot: (_02) => __async(void 0, [_02], function* ({ value }) {
726
+ slot: (_02) => __async(null, [_02], function* ({ value }) {
727
727
  const content = value;
728
728
  return yield Promise.all(
729
729
  content.map(
730
- (childItem) => __async(void 0, null, function* () {
730
+ (childItem) => __async(null, null, function* () {
731
731
  return (yield resolveComponentData(
732
732
  childItem,
733
733
  config,
@@ -770,7 +770,7 @@ function resolveAllData(_0, _1) {
770
770
  return __async(this, arguments, function* (data, config, metadata = {}, onResolveStart, onResolveEnd) {
771
771
  var _a;
772
772
  const defaultedData = defaultData(data);
773
- const resolveNode = (_node) => __async(this, null, function* () {
773
+ const resolveNode = (_node) => __async(null, null, function* () {
774
774
  const node = toComponent(_node);
775
775
  onResolveStart == null ? void 0 : onResolveStart(node);
776
776
  const resolved = (yield resolveComponentData(
@@ -791,13 +791,13 @@ function resolveAllData(_0, _1) {
791
791
  onResolveEnd == null ? void 0 : onResolveEnd(toComponent(resolvedDeep));
792
792
  return resolvedDeep;
793
793
  });
794
- const processContent = (content) => __async(this, null, function* () {
794
+ const processContent = (content) => __async(null, null, function* () {
795
795
  return Promise.all(content.map(resolveNode));
796
796
  });
797
- const processZones = () => __async(this, null, function* () {
797
+ const processZones = () => __async(null, null, function* () {
798
798
  var _a2;
799
799
  const zones = (_a2 = data.zones) != null ? _a2 : {};
800
- Object.entries(zones).forEach((_02) => __async(this, [_02], function* ([zoneKey, content]) {
800
+ Object.entries(zones).forEach((_02) => __async(null, [_02], function* ([zoneKey, content]) {
801
801
  zones[zoneKey] = yield Promise.all(content.map(resolveNode));
802
802
  }));
803
803
  return zones;
@@ -807,7 +807,7 @@ function resolveAllData(_0, _1) {
807
807
  content: yield processContent(defaultedData.content),
808
808
  zones: yield processZones()
809
809
  };
810
- Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(this, null, function* () {
810
+ Object.keys((_a = defaultedData.zones) != null ? _a : {}).forEach((zoneKey) => __async(null, null, function* () {
811
811
  const content = defaultedData.zones[zoneKey];
812
812
  dynamic.zones[zoneKey] = yield processContent(content);
813
813
  }), {});
@@ -914,8 +914,9 @@ var Item = ({
914
914
  );
915
915
  };
916
916
  var SlotRender = forwardRef(
917
- function SlotRenderInternal({ className, style, content, config, metadata }, ref) {
918
- return /* @__PURE__ */ jsx("div", { className, style, ref, children: content.map((item) => {
917
+ function SlotRenderInternal({ className, style, content, config, metadata, as }, ref) {
918
+ const El = as != null ? as : "div";
919
+ return /* @__PURE__ */ jsx(El, { className, style, ref, children: content.map((item) => {
919
920
  if (!config.components[item.type]) {
920
921
  return null;
921
922
  }