gatsby-matrix-theme 53.4.2 → 53.5.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,38 @@
1
+ # [53.5.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.4.3...v53.5.0) (2025-11-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add gtm classes ([be1e620](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/be1e62046eb485d2db4f44672306cae68596f601))
7
+ * add gtmClass default for pretty link ([0ec9331](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/0ec9331d2a018aff99ab2ae5399e9524fd2cdeb5))
8
+ * revert back ([504d7cf](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/504d7cf55957e5af405d71b0849c452eac8dae24))
9
+
10
+
11
+ ### Config
12
+
13
+ * update theme ([dcf62f4](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/dcf62f40b7e32272bb9620822cfa9cdec4e730e3))
14
+
15
+
16
+ * Merge branch 'en-142/themeoptions-relation-keys' into 'master' ([9387373](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/9387373cc0c986579d4e90ff8b00671e13da081a))
17
+ * Merge branch 'operator-details-update' into 'master' ([fd29dba](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/fd29dbae4b67a264ccac7d864449e5d9ae0ed694))
18
+
19
+
20
+ ### Features
21
+
22
+ * additional relation keys from themeoptions ([8dcdc0d](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/8dcdc0d7228ecdbd0b6368c7809418c941e66947))
23
+
24
+ ## [53.4.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.4.2...v53.4.3) (2025-11-17)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * article card image ([61f5f87](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/61f5f87806f7d92e2c8028b76d5a2f6132df3779))
30
+ * update deploy ([519902b](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/519902bc778d8d877a7a5abe02079f9d03f6e024))
31
+
32
+
33
+ * Merge branch 'fix/article-card-images' into 'master' ([2125329](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/212532940abda3922cc20acf4cf07b39253e6372))
34
+ * Merge branch 'update-deploy' into 'master' ([2991459](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/299145996314631207b873fd10a0c1e4e9e7940b))
35
+
1
36
  ## [53.4.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.4.1...v53.4.2) (2025-11-13)
2
37
 
3
38
 
package/gatsby-config.js CHANGED
@@ -6,7 +6,7 @@ require('dotenv').config({
6
6
  path: `.env.${activeEnv}`,
7
7
  });
8
8
 
9
- module.exports = {
9
+ module.exports = (themeOptions = {}) => ({
10
10
  flags: {
11
11
  DEV_SSR: false,
12
12
  },
@@ -16,10 +16,11 @@ module.exports = {
16
16
  options: {
17
17
  siteName: process.env.GATSBY_SITE_NAME,
18
18
  preconnectLinks: [getDomain(process.env.IMAGE_CDN_URL)],
19
+ ...themeOptions,
19
20
  },
20
21
  },
21
22
  `gatsby-plugin-image`,
22
23
  `gatsby-plugin-sharp`,
23
24
  `gatsby-transformer-sharp`,
24
25
  ],
25
- };
26
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.4.2",
3
+ "version": "53.5.0",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^5.11.0",
28
- "gatsby-core-theme": "44.7.1",
28
+ "gatsby-core-theme": "44.8.0",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
2
  /* eslint-disable camelcase */
3
- import React from 'react';
3
+ import React, { useMemo } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import Link from 'gatsby-core-theme/src/hooks/link';
6
6
  import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
@@ -22,19 +22,17 @@ const ArticleCard = ({
22
22
  verifyIcon = '',
23
23
  showImageAsLink = true,
24
24
  }) => {
25
- const { title, path, banner, reading_time } = item;
25
+ const { title, path, banner, reading_time, relation } = item;
26
26
  const defaultImg = (
27
27
  <LazyImage width={width} height={height} src="/images/default-article.jpg" alt={title} />
28
28
  );
29
-
29
+ const logo = useMemo(() => {
30
+ if (banner) return imagePrettyUrl(banner, width, height);
31
+ if (relation?.logo?.filename) return imagePrettyUrl(relation?.logo?.filename, width, height);
32
+ return undefined;
33
+ }, [banner, relation, height, width]);
30
34
  const imageElement = (
31
- <LazyImage
32
- width={width}
33
- height={height}
34
- defaultImg={defaultImg}
35
- src={banner ? imagePrettyUrl(banner, width, height) : undefined}
36
- alt={title}
37
- />
35
+ <LazyImage width={width} height={height} defaultImg={defaultImg} src={logo} alt={title} />
38
36
  );
39
37
  return (
40
38
  <div className={styles.article || ''}>
@@ -79,6 +77,13 @@ ArticleCard.propTypes = {
79
77
  path: PropTypes.string,
80
78
  banner: PropTypes.string,
81
79
  reading_time: PropTypes.string,
80
+ relation: PropTypes.shape({
81
+ logo: PropTypes.shape({
82
+ alt: PropTypes.string,
83
+ color: PropTypes.string,
84
+ filename: PropTypes.string,
85
+ }),
86
+ }),
82
87
  }).isRequired,
83
88
  width: PropTypes.number,
84
89
  height: PropTypes.number,
@@ -88,7 +93,7 @@ ArticleCard.propTypes = {
88
93
  showAuthorAsLink: PropTypes.bool,
89
94
  readingTime: PropTypes.bool,
90
95
  verifyIcon: PropTypes.string,
91
- showImageAsLink: PropTypes.bool
96
+ showImageAsLink: PropTypes.bool,
92
97
  };
93
98
 
94
99
  export default ArticleCard;
@@ -68,7 +68,7 @@ const OperatorDetails = ({
68
68
  moduleName={moduleName}
69
69
  tracker={trackerType}
70
70
  clickedElement={clickedElement}
71
- className={classStyle}
71
+ className={`${classStyle}`}
72
72
  modulePosition={modulePosition}
73
73
  itemPosition={itemPosition}
74
74
  >
@@ -82,7 +82,7 @@ const OperatorDetails = ({
82
82
 
83
83
  return (
84
84
  <div className={`${styles.operatorDetails} ${costumeStyle}`}>
85
- <Tag classStyle="Logo cta">
85
+ <Tag classStyle="logo-cta-gtm">
86
86
  <LazyImage
87
87
  src={imagePrettyUrl(image?.filename, imageWidth, imageHeight)}
88
88
  alt={getAltText(image, itemName)}