@sprintup-cms/sdk 1.8.54 → 1.8.55

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.
@@ -1160,12 +1160,16 @@ function parseNavItems(html) {
1160
1160
  });
1161
1161
  }
1162
1162
  function CMSHeader({ nav }) {
1163
+ console.log("[v0] CMSHeader nav:", JSON.stringify(nav, null, 2));
1163
1164
  if (!nav) return null;
1164
1165
  const structuredBlock = nav.blocks?.[0]?.type === "__structured__" ? nav.blocks[0].content : null;
1166
+ console.log("[v0] CMSHeader sectionData:", nav.sectionData, "structuredBlock:", structuredBlock);
1165
1167
  const primary = nav.sectionData?.primary ?? structuredBlock?.primary ?? {};
1168
+ console.log("[v0] CMSHeader primary:", primary);
1166
1169
  const navItems = parseNavItems(primary.nav_items || "");
1167
1170
  const logoUrl = primary.logo_url || "";
1168
1171
  const logoAlt = primary.logo_alt || "";
1172
+ console.log("[v0] CMSHeader logoUrl:", logoUrl, "logoAlt:", logoAlt, "navItems:", navItems);
1169
1173
  if (!logoUrl && !logoAlt && navItems.length === 0) return null;
1170
1174
  return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "w-full border-b border-border bg-background/95 backdrop-blur sticky top-0 z-50", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto px-4 h-16 flex items-center justify-between gap-4", children: [
1171
1175
  /* @__PURE__ */ jsxRuntime.jsxs("a", { href: "/", className: "flex items-center gap-2 shrink-0", children: [
@@ -1203,8 +1207,10 @@ function parseLegalLinks(html) {
1203
1207
  });
1204
1208
  }
1205
1209
  function CMSFooter({ footer }) {
1210
+ console.log("[v0] CMSFooter footer:", JSON.stringify(footer, null, 2));
1206
1211
  if (!footer) return null;
1207
1212
  const structuredBlock = footer.blocks?.[0]?.type === "__structured__" ? footer.blocks[0].content : null;
1213
+ console.log("[v0] CMSFooter sectionData:", footer.sectionData, "structuredBlock:", structuredBlock);
1208
1214
  const sd = footer.sectionData ?? structuredBlock ?? {};
1209
1215
  const c = sd.content ?? {};
1210
1216
  const contact = sd.contact ?? {};