gatsby-matrix-theme 53.6.0 → 53.7.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,26 @@
1
+ # [53.7.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.6.0...v53.7.0) (2025-11-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add color logic ([c5c6481](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/c5c6481b4d798c9ef61dc4ef61957f91c55f2d52))
7
+ * links test ([34dacd8](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/34dacd8e7e23c07a65c0907c6a2504eadf0c9ade))
8
+ * update core theme version ([3f0c5de](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/3f0c5deac6428d1073a9bf4edc2b8e593d5ccfcc))
9
+
10
+
11
+ * Merge branch 'test-links' into 'master' ([b249be4](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/b249be41d7c53b01e34777af5488ff36e6dabb33))
12
+ * Merge branch 'linksmenu-customclass' into 'master' ([da45b6a](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/da45b6af4cdad48775891c7cc3fd50ccdef2db40))
13
+ * Merge branch 'en-244/christmas-card' into 'master' ([28cc73b](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/28cc73bcbabab1d6767016871469d82bcb42e722))
14
+ * Merge branch 'en-155-update-color-logic-link' into 'master' ([409792a](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/409792a1c609cdcae0f7e3a3a2b5fa65f9b1fae7))
15
+ * Merge branch 'EN-262/links-template-prop' into 'master' ([0735c24](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/0735c24e2652e86b1d3929fc82ec339862c3c9d5))
16
+
17
+
18
+ ### Features
19
+
20
+ * add custom class to links ([ea23683](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/ea23683c47062ea2d47187f5378b8edc54bdd52f))
21
+ * christmas card style ([e655dc2](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/e655dc2a78392ad9f88e34b4f942b7b832f16996))
22
+ * pass template prop to links ([2caa172](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/2caa1724a6d6a363e8fe70775accaa1150dcbb0c))
23
+
1
24
  # [53.6.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.5.2...v53.6.0) (2025-11-24)
2
25
 
3
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.6.0",
3
+ "version": "53.7.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.9.0",
28
+ "gatsby-core-theme": "44.9.1",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
@@ -10,13 +10,15 @@ const LinkMenu = ({
10
10
  section,
11
11
  listIcon = <FaChevronRight title="Right-pointing Arrow Icon" />,
12
12
  showLinks=true,
13
+ template,
14
+ customClass='',
13
15
  }) => {
14
16
  const menuArray = getFirstModuleByName(section, 'menu');
15
17
 
16
18
  return (
17
- <div className={styles?.linkMenuContainer || ''}>
19
+ <div className={`${styles?.linkMenuContainer || ''} ${customClass && styles[customClass]} `}>
18
20
  <div className={styles?.linkMenuContent || ''}>
19
- <LinkList lists={menuArray} listIcon={listIcon} gtmClass="link-menu-gtm" showLinks={showLinks} />
21
+ <LinkList lists={menuArray} listIcon={listIcon} template={template} gtmClass="link-menu-gtm" showLinks={showLinks} />
20
22
  </div>
21
23
  </div>
22
24
  );
@@ -32,6 +34,8 @@ LinkMenu.propTypes = {
32
34
  })
33
35
  ),
34
36
  }).isRequired,
37
+ template: PropTypes.string,
38
+ customClass: PropTypes.string
35
39
  };
36
40
 
37
41
  export default LinkMenu;
@@ -24,6 +24,24 @@ export default {
24
24
  defaultValue: { summary: '' },
25
25
  },
26
26
  },
27
+ template: {
28
+ name: 'template',
29
+ type: { name: 'string' },
30
+ description: 'Template variant passed to the LinkList component.',
31
+ table: {
32
+ type: { summary: 'string' },
33
+ defaultValue: { summary: '' },
34
+ },
35
+ },
36
+ customClass: {
37
+ name: 'customClass',
38
+ type: { name: 'string' },
39
+ description: 'Custom class applied to outer container.',
40
+ table: {
41
+ type: { summary: 'string' },
42
+ defaultValue: { summary: '' },
43
+ },
44
+ },
27
45
  },
28
46
  parameters: {
29
47
  docs: {
@@ -44,6 +62,7 @@ export default {
44
62
  };
45
63
 
46
64
  const Template = (args) => <LinkMenu {...args} />;
65
+
47
66
  export const Default = Template.bind({});
48
67
  Default.args = {
49
68
  section: {
@@ -93,4 +112,6 @@ Default.args = {
93
112
  },
94
113
  ],
95
114
  },
115
+ template: 'default',
116
+ customClass: '',
96
117
  };
@@ -48,7 +48,7 @@ export default function index({ module, page, seeMoreButtonDown = false, moduleP
48
48
  }
49
49
  return null;
50
50
  }
51
- case 'template_two': {
51
+ case 'template_two' || 'template_two_christmas': {
52
52
  return (
53
53
  <Suspense fallback={<></>}>
54
54
  <SrcollLayoutComponent module={module} page={page} modulePosition={modulePosition} />
@@ -327,11 +327,13 @@ const Modules = ({ module, pageContext, index, exclOperator, serverData, moduleP
327
327
  mainSettings.colors.primary.background.toLowerCase()
328
328
  ) {
329
329
  fontColor['--module-font-color'] = mainSettings.colors.primary.text;
330
+ fontColor['--module-font-color-link'] = mainSettings.colors.primary.link;
330
331
  } else if (
331
332
  module.background_color?.toLowerCase() ===
332
333
  mainSettings.colors.secondary.background.toLowerCase()
333
334
  ) {
334
335
  fontColor['--module-font-color'] = mainSettings.colors.secondary.text.toLowerCase();
336
+ fontColor['--module-font-color-link'] = mainSettings.colors.secondary.link;
335
337
  }
336
338
  }
337
339
  const style = {};
@@ -126,7 +126,7 @@ function Body({ pageContext, children, serverData }) {
126
126
 
127
127
  {!isPPC && links && !isContactUsPage && (
128
128
  <aside>
129
- <LinkMenu section={links} />
129
+ <LinkMenu section={links} template={template} />
130
130
  </aside>
131
131
  )}
132
132
  {showOpenGraph && <OpenGraph text="Del på" page={pageContext?.page} />}