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