gatsby-core-theme 42.0.20 → 42.0.22

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/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## [42.0.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.21...v42.0.22) (2025-02-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update floating area to make cookies conditional ([951de15](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/951de1504a6c45dbdf97334880814ff9a8be9d4c))
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * remove console logs ([12983ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/12983cae10e72c3672a1bfe743db4b50bec20901))
12
+
13
+
14
+ * Merge branch 'update-floating-area' into 'master' ([d949098](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d9490980a8c07186dc74edbe12bc02f7cb888e27))
15
+
16
+ ## [42.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.20...v42.0.21) (2025-02-24)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * issue with floating nav ([7903c92](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7903c92b35f4fbc33e0eee2dffbc1f9e4aa28896))
22
+
1
23
  ## [42.0.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.19...v42.0.20) (2025-02-24)
2
24
 
3
25
 
package/gatsby-node.mjs CHANGED
@@ -83,12 +83,7 @@ function createArchivePage(
83
83
  }
84
84
  if (!archivePages) {
85
85
  console.log(`Archive for ${pageObject.path} broken`);
86
- }
87
-
88
- console.log('=================');
89
- console.log(pageObject.path);
90
-
91
-
86
+ }
92
87
 
93
88
  if (archiveModule.pagination_type !== "load_more") {
94
89
  const numOfColumns = archiveModule.desktop_num_of_columns;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "42.0.20",
3
+ "version": "42.0.22",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -9,7 +9,7 @@ import isSticky from "~hooks/stickyOnScroll";
9
9
  import { TrackingKeys } from "~constants/tracking-api";
10
10
  import { mainSettings } from "../../../constants/site-settings/main";
11
11
  import styles from "./floating-area.module.scss";
12
- import { layout } from "../../../constants/site-settings/navigation";
12
+ import { pageTypes } from "../../../constants/site-settings/navigation";
13
13
  import { trackerLinkActive } from "~helpers/tracker.mjs";
14
14
 
15
15
  const showOperatorBanner = (operator, pageTemplate) =>
@@ -23,6 +23,7 @@ export default function FloatingArea({
23
23
  pageContext,
24
24
  template,
25
25
  offsetTop = 400,
26
+ showCookies=true
26
27
  }) {
27
28
  const showScroll = isSticky(offsetTop);
28
29
  const [closedBanner, setClosedBanner] = useState(false);
@@ -58,7 +59,8 @@ export default function FloatingArea({
58
59
  : null;
59
60
 
60
61
  const FooterNavigation =
61
- layout[pageTemplate]?.footerNavigation &&
62
+ (pageTypes?.[pageTemplate]?.footerNavigation ||
63
+ pageTypes.default?.footerNavigation) &&
62
64
  footerNavigationData &&
63
65
  footerNavigationData?.modules?.length > 0
64
66
  ? lazy(() =>
@@ -83,24 +85,26 @@ export default function FloatingArea({
83
85
  />
84
86
  </Suspense>
85
87
  )}
86
- {CookieConsent && (
87
- <CookieConsent
88
- market={pageContext?.page?.market}
89
- type={pageType}
90
- template={template}
91
- settingsCookie
92
- isPageHomepage={isPageHomepage}
93
- >
94
- <p>
95
- We use cookies in order to optimise our site and improve your
96
- experience with us. By using the site you consent to our
97
- <a href="/cookies" className="cookie-consent-gtm">
98
- Cookie Policy
99
- </a>
100
- .
101
- </p>
102
- </CookieConsent>
103
- )}
88
+
89
+ {CookieConsent &&
90
+ showCookies && (
91
+ <CookieConsent
92
+ market={pageContext?.page?.market}
93
+ type={pageType}
94
+ template={template}
95
+ settingsCookie
96
+ isPageHomepage={isPageHomepage}
97
+ >
98
+ <p>
99
+ We use cookies in order to optimise our site and improve your
100
+ experience with us. By using the site you consent to our
101
+ <a href="/cookies" className="cookie-consent-gtm">
102
+ Cookie Policy
103
+ </a>
104
+ .
105
+ </p>
106
+ </CookieConsent>
107
+ )}
104
108
  {FooterNavigation && (
105
109
  <Suspense fallback={<></>}>
106
110
  <FooterNavigation section={footerNavigationData} />
@@ -140,4 +144,5 @@ FloatingArea.propTypes = {
140
144
  }).isRequired,
141
145
  offsetTop: PropTypes.number,
142
146
  template: PropTypes.string,
147
+ showCookies: PropTypes.bool,
143
148
  };