@amplifyup/sdk 0.1.18 → 0.1.19

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.
@@ -2586,6 +2586,31 @@ function AmplifyRenderer({
2586
2586
  pageConfig.layout?.header !== false;
2587
2587
  pageConfig.layout?.footer !== false;
2588
2588
  const renderNode = (node) => {
2589
+ const zoneIdFromProps = node.componentId === "AmplifyZone" ? String(node.props?.zoneId || "") : "";
2590
+ if (node.componentId === "AmplifyZone") {
2591
+ const contentSlot = node.slots?.find((s) => s.slotId === "content") || node.slots?.[0];
2592
+ const children = Array.isArray(contentSlot?.children) ? contentSlot.children : [];
2593
+ return /* @__PURE__ */ jsx(
2594
+ "div",
2595
+ {
2596
+ "data-node-id": node.id,
2597
+ "data-amplifyup-node": "",
2598
+ "data-amplifyup-component": "AmplifyZone",
2599
+ "data-amplifyup-zone": zoneIdFromProps || void 0,
2600
+ "data-zone-id": zoneIdFromProps || void 0,
2601
+ children: /* @__PURE__ */ jsx(
2602
+ "div",
2603
+ {
2604
+ "data-slot-id": "content",
2605
+ "data-amplifyup-slot": "content",
2606
+ "data-parent-node-id": node.id,
2607
+ "data-parent-component-id": "AmplifyZone",
2608
+ children: children.filter(Boolean).map((child) => /* @__PURE__ */ jsx(Fragment$1, { children: renderNode(child) }, child.id))
2609
+ }
2610
+ )
2611
+ }
2612
+ );
2613
+ }
2589
2614
  let slotChildren = {};
2590
2615
  console.log(`[AmplifyRenderer] Rendering node ${node.id} (${node.componentId})`, {
2591
2616
  hasSlots: !!(node.slots && node.slots.length > 0),