@sprintup-cms/sdk 1.8.51 → 1.8.53
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.
- package/dist/next/index.cjs +6 -5
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +6 -5
- package/dist/next/index.js.map +1 -1
- package/package.json +1 -1
package/dist/next/index.js
CHANGED
|
@@ -1155,7 +1155,7 @@ function parseNavItems(html) {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
function CMSHeader({ nav }) {
|
|
1157
1157
|
if (!nav) return null;
|
|
1158
|
-
const primary = nav.sections?.primary ?? nav.content?.primary ?? nav.primary ?? {};
|
|
1158
|
+
const primary = nav.sectionData?.primary ?? nav.sections?.primary ?? nav.content?.primary ?? nav.primary ?? {};
|
|
1159
1159
|
const navItems = parseNavItems(primary.nav_items || "");
|
|
1160
1160
|
const logoUrl = primary.logo_url || "";
|
|
1161
1161
|
const logoAlt = primary.logo_alt || "";
|
|
@@ -1197,10 +1197,11 @@ function parseLegalLinks(html) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
function CMSFooter({ footer }) {
|
|
1199
1199
|
if (!footer) return null;
|
|
1200
|
-
const
|
|
1201
|
-
const
|
|
1202
|
-
const
|
|
1203
|
-
const
|
|
1200
|
+
const sd = footer.sectionData ?? {};
|
|
1201
|
+
const c = sd.content ?? footer.sections?.content ?? footer.content?.content ?? footer.content ?? {};
|
|
1202
|
+
const contact = sd.contact ?? footer.sections?.contact ?? footer.content?.contact ?? footer.contact ?? {};
|
|
1203
|
+
const social = sd.social ?? footer.sections?.social ?? footer.content?.social ?? footer.social ?? {};
|
|
1204
|
+
const legal = sd.legal ?? footer.sections?.legal ?? footer.content?.legal ?? footer.legal ?? {};
|
|
1204
1205
|
const columns = parseFooterColumns(c.columns || "");
|
|
1205
1206
|
const legalLinks = parseLegalLinks(legal.legal_links || "");
|
|
1206
1207
|
const hasSocial = social.facebook || social.twitter || social.instagram || social.linkedin || social.youtube;
|