gatsby-core-theme 43.0.0 → 43.0.2
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,20 @@
|
|
|
1
|
+
## [43.0.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v43.0.1...v43.0.2) (2025-03-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added prop for cookie in floating area ([24e95dc](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/24e95dc6b3a7155280574533df5b094882cff996))
|
|
7
|
+
|
|
8
|
+
## [43.0.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v43.0.0...v43.0.1) (2025-03-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update prop name ([ad55326](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ad553268d5c9c20a22863bd394b172f144206479))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
* Merge branch 'tm-5295-ppc-page-improvements' into 'master' ([86b861d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/86b861dc31035eb7beb001bcb35374f669050573))
|
|
17
|
+
|
|
1
18
|
# [43.0.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.32...v43.0.0) (2025-03-10)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -23,7 +23,8 @@ export default function FloatingArea({
|
|
|
23
23
|
pageContext,
|
|
24
24
|
template,
|
|
25
25
|
offsetTop = 400,
|
|
26
|
-
showCookies=true
|
|
26
|
+
showCookies=true,
|
|
27
|
+
customCookieContent
|
|
27
28
|
}) {
|
|
28
29
|
const showScroll = isSticky(offsetTop);
|
|
29
30
|
const [closedBanner, setClosedBanner] = useState(false);
|
|
@@ -95,14 +96,16 @@ export default function FloatingArea({
|
|
|
95
96
|
settingsCookie
|
|
96
97
|
isPageHomepage={isPageHomepage}
|
|
97
98
|
>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
{
|
|
100
|
+
customCookieContent || <p>
|
|
101
|
+
We use cookies in order to optimise our site and improve your
|
|
102
|
+
experience with us. By using the site you consent to our
|
|
103
|
+
<a href="/cookies" className="cookie-consent-gtm">
|
|
104
|
+
Cookie Policy
|
|
105
|
+
</a>
|
|
106
|
+
.
|
|
107
|
+
</p>
|
|
108
|
+
}
|
|
106
109
|
</CookieConsent>
|
|
107
110
|
)}
|
|
108
111
|
{FooterNavigation && (
|
|
@@ -145,4 +148,5 @@ FloatingArea.propTypes = {
|
|
|
145
148
|
offsetTop: PropTypes.number,
|
|
146
149
|
template: PropTypes.string,
|
|
147
150
|
showCookies: PropTypes.bool,
|
|
151
|
+
customCookieContent: PropTypes.node
|
|
148
152
|
};
|
|
@@ -22,7 +22,7 @@ const LinkList = ({
|
|
|
22
22
|
height,
|
|
23
23
|
width,
|
|
24
24
|
gtmClass = '',
|
|
25
|
-
|
|
25
|
+
showLinks = true,
|
|
26
26
|
}) => {
|
|
27
27
|
function renderLinkContent(item, index) {
|
|
28
28
|
const icon = listIcon[index];
|
|
@@ -74,7 +74,7 @@ const LinkList = ({
|
|
|
74
74
|
</a>
|
|
75
75
|
) : (
|
|
76
76
|
<Link
|
|
77
|
-
to={
|
|
77
|
+
to={showLinks && link}
|
|
78
78
|
title={item.title || item.name}
|
|
79
79
|
className={gtmClass || ''}
|
|
80
80
|
rel={item.nofollow ? 'nofollow' : ''}
|
|
@@ -138,7 +138,7 @@ LinkList.propTypes = {
|
|
|
138
138
|
width: PropTypes.number,
|
|
139
139
|
height: PropTypes.number,
|
|
140
140
|
gtmClass: PropTypes.string,
|
|
141
|
-
|
|
141
|
+
showLinks: PropTypes.bool
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
export default LinkList;
|