gatsby-core-theme 44.26.2 → 44.27.0

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,19 @@
1
+ # [44.27.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.2...v44.27.0) (2026-06-16)
2
+
3
+
4
+ * Merge branch 'footer-license-showlogo' into 'master' ([c09fb0a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c09fb0a077c5372c959537c1e323ca5d0060e3e2))
5
+ * Merge branch 'factcheck-author' into 'master' ([2c4321b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2c4321bb766f1dd94b9601e16984f5dedf7576f4))
6
+ * Merge branch 'footer-template-three' into 'master' ([c93f045](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c93f0457c738b7e3ea3f8d87471bc26fb1d7c248))
7
+ * Merge branch 'license-props' into 'master' ([7e603e7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7e603e734b51074540ba2b1abc43689760def874))
8
+
9
+
10
+ ### Features
11
+
12
+ * factcheck author ([adad452](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/adad4520a230a421f895db852f821c3656a0549d))
13
+ * handle license props ([ceb68dd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ceb68dd6610a6b31c9129198faface4d4f684021))
14
+ * showlogo prop in footer license ([c9e82ed](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c9e82ed0ddf575b6ec26eb00d3e1fd7cecf3fc4e))
15
+ * update footer template three ([f6ed16d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f6ed16d933647736fbced15959a115654b03df57))
16
+
1
17
  ## [44.26.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.1...v44.26.2) (2026-06-15)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.26.2",
3
+ "version": "44.27.0",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -6,14 +6,14 @@ import AuthorDescription from '../description';
6
6
  import FactCheck from './fact-check';
7
7
  import Expertion from './expertion';
8
8
 
9
- export default function AuthorBox({ author, reviewer, readingTime, date = '', template }) {
9
+ export default function AuthorBox({ author, reviewer, readingTime, date = '', template, factCheck = true }) {
10
10
  return (
11
11
  <div className={styles.container || ''} id="authorbox">
12
12
  {author?.ribbon_label && <div className={styles.ribbon || ''}>{author?.ribbon_label}</div>}
13
13
  <AuthorDetails author={author} pageTemplate={template} template="templateThree" />
14
14
  <AuthorDescription author={author} />
15
15
  <Expertion expertise={author?.expertise} />
16
- <FactCheck author={author} reviewer={reviewer} readingTime={readingTime} date={date} />
16
+ {factCheck && <FactCheck author={author} reviewer={reviewer} readingTime={readingTime} date={date} />}
17
17
  </div>
18
18
  );
19
19
  }
@@ -27,4 +27,5 @@ AuthorBox.propTypes = {
27
27
  readingTime: PropTypes.number,
28
28
  date: PropTypes.string,
29
29
  template: PropTypes.string,
30
+ factCheck: PropTypes.bool
30
31
  };
@@ -6,22 +6,41 @@ import LazyImage from '../../../../hooks/lazy-image';
6
6
  import styles from './license.module.scss';
7
7
  import useTranslate from '~hooks/useTranslate/useTranslate';
8
8
 
9
- const FooterLicense = ({ gamblingText, socialIcons, template, logo, securityIcon, imgWidth, imgHeight }) => (
9
+ const FooterLicense = ({
10
+ gamblingText,
11
+ socialIcons,
12
+ template,
13
+ logo,
14
+ securityIcon,
15
+ imgWidth,
16
+ imgHeight,
17
+ showSecurityBlock = true,
18
+ showLogo = true,
19
+ defaultImgWidth = 182,
20
+ defaultImgHeight = 48,
21
+ }) => {
22
+ const securityText = useTranslate('licensed_casinos', 'We only list licensed casinos');
23
+
24
+ return (
10
25
  <div className={`${styles?.license || ''} ${styles[template] ? styles[template] || '' : ''}`}>
11
- <div className={styles.logo}>
12
- <LazyImage
13
- alt="Site footer logo"
14
- width={imgWidth || 182}
15
- height={imgHeight || 48}
16
- src={logo}
17
- />
18
- </div>
19
- <div className={styles?.security || ''}>
20
- {securityIcon}
21
- <span className={styles?.securityText || ''}>
22
- {useTranslate('licensed_casinos', 'We only list licensed casinos')}
23
- </span>
24
- </div>
26
+ {showLogo && (
27
+ <div className={styles.logo}>
28
+ <LazyImage
29
+ alt="Site footer logo"
30
+ width={imgWidth ?? defaultImgWidth}
31
+ height={imgHeight ?? defaultImgHeight}
32
+ src={logo}
33
+ />
34
+ </div>
35
+ )}
36
+ {showSecurityBlock && (
37
+ <div className={styles?.security || ''}>
38
+ {securityIcon}
39
+ <span className={styles?.securityText || ''}>
40
+ {securityText}
41
+ </span>
42
+ </div>
43
+ )}
25
44
  {socialIcons && (
26
45
  <div className={styles?.socialIcons || ''}>
27
46
  <LinkList
@@ -41,7 +60,8 @@ const FooterLicense = ({ gamblingText, socialIcons, template, logo, securityIcon
41
60
  />
42
61
  )}
43
62
  </div>
44
- );
63
+ );
64
+ };
45
65
 
46
66
  FooterLicense.propTypes = {
47
67
  gamblingText: PropTypes.string,
@@ -51,6 +71,10 @@ FooterLicense.propTypes = {
51
71
  securityIcon: PropTypes.element,
52
72
  imgWidth: PropTypes.number,
53
73
  imgHeight: PropTypes.number,
74
+ showSecurityBlock: PropTypes.bool,
75
+ showLogo: PropTypes.bool,
76
+ defaultImgWidth: PropTypes.number,
77
+ defaultImgHeight: PropTypes.number,
54
78
  };
55
79
 
56
80
  export default FooterLicense;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
5
  import AsSeenOn from '../../../../atoms/footer/as-seen-on';
6
+ import LazyImage from '~hooks/lazy-image';
6
7
  import LinkList from '../../../link-list';
7
8
  import { copyrightText } from '../../../../../helpers/getters';
8
9
  import Disclaimer from '../../../../atoms/disclaimer';
@@ -30,7 +31,8 @@ const TemplateThree = ({
30
31
  dmcaHeight,
31
32
  securityIcon,
32
33
  copyrightCustomText,
33
- customClass=''
34
+ customClass = '',
35
+ verificationBadge = null,
34
36
  }) => {
35
37
  if (footerMenu !== null && footerMenu.children.length) {
36
38
  footerMenu.children.splice(footerMenuLimit);
@@ -84,8 +86,16 @@ const TemplateThree = ({
84
86
  <p className={styles.copyrightText}>{copyrightCustomText || copyrightText()}</p>
85
87
  )}
86
88
 
87
- {(footerLogos || hasDisclaimer) && (
89
+ {(footerLogos || hasDisclaimer || verificationBadge) && (
88
90
  <div className={styles?.logos || ''}>
91
+ {verificationBadge?.src && (
92
+ <LazyImage
93
+ src={verificationBadge.src}
94
+ width={verificationBadge.width}
95
+ height={verificationBadge.height}
96
+ alt={verificationBadge.alt || ''}
97
+ />
98
+ )}
89
99
  {footerLogos && (
90
100
  <LinkList
91
101
  showListTitle={false}
@@ -139,5 +149,11 @@ TemplateThree.propTypes = {
139
149
  securityIcon: PropTypes.element,
140
150
  copyrightCustomText: PropTypes.string,
141
151
  footerMenuLimit: PropTypes.number,
142
- customClass: PropTypes.string
152
+ customClass: PropTypes.string,
153
+ verificationBadge: PropTypes.shape({
154
+ src: PropTypes.string,
155
+ alt: PropTypes.string,
156
+ width: PropTypes.number,
157
+ height: PropTypes.number,
158
+ }),
143
159
  };