gatsby-core-theme 42.0.21 → 42.0.23

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.23](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.22...v42.0.23) (2025-02-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * issue with authorbox missing link ([4d0d0f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4d0d0f095a8167276a629be404d9ff26f545fcab))
7
+
8
+ ## [42.0.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.21...v42.0.22) (2025-02-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update floating area to make cookies conditional ([951de15](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/951de1504a6c45dbdf97334880814ff9a8be9d4c))
14
+
15
+
16
+ ### Code Refactoring
17
+
18
+ * remove console logs ([12983ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/12983cae10e72c3672a1bfe743db4b50bec20901))
19
+
20
+
21
+ * Merge branch 'update-floating-area' into 'master' ([d949098](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d9490980a8c07186dc74edbe12bc02f7cb888e27))
22
+
1
23
  ## [42.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.20...v42.0.21) (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.21",
3
+ "version": "42.0.23",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react-hooks/rules-of-hooks */
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import { imagePrettyUrl, getAltText } from '~helpers/getters';
@@ -29,10 +30,18 @@ export default function AuthorDetails({
29
30
  />
30
31
  )}
31
32
  <div className={styles.information || ''}>
32
- <Link to={author?.profile_page_path} className={`${styles.name || ''} author-gtm`}>
33
- <span>{author?.name}</span>
34
- <FactCheckIcon width={verifiedIconWidth} height={verifiedIconHeight} color="#457BF9" />
35
- </Link>
33
+ {author?.profile_page_path ? (
34
+ <Link to={author?.profile_page_path} className={`${styles.name || ''} author-gtm`}>
35
+ <span>{author?.name}</span>
36
+ <FactCheckIcon width={verifiedIconWidth} height={verifiedIconHeight} color="#457BF9" />
37
+ </Link>
38
+ ) : (
39
+ <div to={author?.profile_page_path} className={`${styles.name || ''} author-gtm`}>
40
+ <span>{author?.name}</span>
41
+ <FactCheckIcon width={verifiedIconWidth} height={verifiedIconHeight} color="#457BF9" />
42
+ </div>
43
+ )}
44
+
36
45
  <div className={styles.ribbonAndExpert}>
37
46
  {author?.author_title && <p className={styles.title || ''}>{author?.author_title}</p>}
38
47
  {author?.ribbon_label && ribbon && (
@@ -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);
@@ -84,24 +85,26 @@ export default function FloatingArea({
84
85
  />
85
86
  </Suspense>
86
87
  )}
87
- {CookieConsent && (
88
- <CookieConsent
89
- market={pageContext?.page?.market}
90
- type={pageType}
91
- template={template}
92
- settingsCookie
93
- isPageHomepage={isPageHomepage}
94
- >
95
- <p>
96
- We use cookies in order to optimise our site and improve your
97
- experience with us. By using the site you consent to our
98
- <a href="/cookies" className="cookie-consent-gtm">
99
- Cookie Policy
100
- </a>
101
- .
102
- </p>
103
- </CookieConsent>
104
- )}
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
+ )}
105
108
  {FooterNavigation && (
106
109
  <Suspense fallback={<></>}>
107
110
  <FooterNavigation section={footerNavigationData} />
@@ -141,4 +144,5 @@ FloatingArea.propTypes = {
141
144
  }).isRequired,
142
145
  offsetTop: PropTypes.number,
143
146
  template: PropTypes.string,
147
+ showCookies: PropTypes.bool,
144
148
  };