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 +22 -0
- package/gatsby-node.mjs +1 -6
- package/package.json +1 -1
- package/src/components/molecules/floating-area/index.js +25 -20
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
|
@@ -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 {
|
|
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
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
};
|