gatsby-core-theme 44.8.2 → 44.9.1

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,34 @@
1
+ ## [44.9.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.0...v44.9.1) (2025-11-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update anchor module ([c984cbe](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c984cbe971a50f67b331860803a120562d7ebc26))
7
+
8
+
9
+ * Merge branch 'custom-anchor' into 'master' ([1797bc0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1797bc0614708b1f025c6240c765e197e0babd8f))
10
+
11
+ # [44.9.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.8.2...v44.9.0) (2025-11-24)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * cleanup ([26b25f2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/26b25f2a5ddd5aa2cdd302aaa7b1e443cc890615))
17
+
18
+
19
+ * Merge branch 'EN-255/author-box-template' into 'master' ([2c48951](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2c489514cabd4102942dbde1f8e53c722bc7cf31))
20
+ * Merge branch 'EN-246/bonus-customclass' into 'master' ([7e9b107](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7e9b1079be7f7433416d1e9729b587fa8cae1728))
21
+
22
+
23
+ ### Features
24
+
25
+ * add custom class to template one ([743cd7b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/743cd7b9cda355af8221e765e74f351e5bfab94a))
26
+ * author box christmas ([659e691](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/659e6914c5a366bf3fdf1781fe520d6fa813cb77))
27
+ * bonus custom class ([6be9faa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6be9faae2c48ca09da79800cbcddf7bea892333e))
28
+ * pass page template prop ([f2eb70d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f2eb70d46adfda9c81b7558ea61a5be359a7e08c))
29
+ * send page data ([00227f6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/00227f6fc2137405750c09ec43d931a0c2992126))
30
+ * send template prop ([ce302d1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ce302d1e8a05257b08885a680860ffb2e0775573))
31
+
1
32
  ## [44.8.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.8.1...v44.8.2) (2025-11-20)
2
33
 
3
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.8.2",
3
+ "version": "44.9.1",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -6,11 +6,11 @@ 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 = '' }) {
9
+ export default function AuthorBox({ author, reviewer, readingTime, date = '', template }) {
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
- <AuthorDetails author={author} template="templateThree" />
13
+ <AuthorDetails author={author} pageTemplate={template} template="templateThree" />
14
14
  <AuthorDescription author={author} />
15
15
  <Expertion expertise={author?.expertise} />
16
16
  <FactCheck author={author} reviewer={reviewer} readingTime={readingTime} date={date} />
@@ -26,4 +26,5 @@ AuthorBox.propTypes = {
26
26
  reviewer: PropTypes.shape({}),
27
27
  readingTime: PropTypes.number,
28
28
  date: PropTypes.string,
29
+ template: PropTypes.string,
29
30
  };
@@ -26,11 +26,12 @@ export default function Bonus({
26
26
  ctaIcon = <FaArrowRight fontSize={20} title="Right-pointing Arrow Icon" />,
27
27
  modulePosition,
28
28
  showRibbon = false,
29
+ customClass='',
29
30
  }) {
30
31
 
31
32
  const { logo, bonus, name } = operator || {};
32
33
  return (
33
- <div className={`${styles.operatorBanner || ""}`}>
34
+ <div className={`${styles.operatorBanner || ""} ${customClass && styles[customClass]}`}>
34
35
  <div className={styles.container}>
35
36
  {showRibbon && <Ribbons item={operator.ribbons} />}
36
37
  <div>
@@ -121,4 +122,5 @@ Bonus.propTypes = {
121
122
  ctaIcon: PropTypes.elementType,
122
123
  modulePosition: PropTypes.number,
123
124
  showRibbon: PropTypes.bool,
125
+ customClass: PropTypes.string
124
126
  };
@@ -79,6 +79,7 @@ const Main = ({
79
79
  date={page.updated_at ? page.updated_at : page.created_at}
80
80
  readingTime={page.reading_time}
81
81
  reviewer={page.reviewer_id && page.reviewer}
82
+ template={page?.template}
82
83
  />
83
84
  )}
84
85
  {pathPrefixes && (
@@ -23,6 +23,7 @@ function Anchor({
23
23
  rightButtonIcon = <IoIosArrowForward />,
24
24
  hasAdmin = false,
25
25
  offset = 132,
26
+ customClass = '',
26
27
  }) {
27
28
  const [scrollX, setScrollX] = useState(0);
28
29
  const [scrollEnd, setScrollEnd] = useState(false);
@@ -128,7 +129,7 @@ function Anchor({
128
129
  ));
129
130
 
130
131
  return (
131
- <div className={styles.containerAnchor || ""} ref={anchorContainerRef}>
132
+ <div className={`${styles.containerAnchor || ""} ${customClass && customClass || ""}`} ref={anchorContainerRef}>
132
133
  {showTitle && (
133
134
  <div className={`${styles.anchorTitle || ""}`}>
134
135
  <span>{useTranslate("anchor_title", "Table of Contents")}</span>
@@ -192,6 +193,7 @@ Anchor.propTypes = {
192
193
  setShowButtons: PropTypes.bool,
193
194
  hasAdmin: PropTypes.bool,
194
195
  offset: PropTypes.number,
196
+ customClass: PropTypes.string,
195
197
  };
196
198
 
197
199
  export default Anchor;