gatsby-matrix-theme 52.0.90 → 52.0.92

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,30 @@
1
+ ## [52.0.92](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.91...v52.0.92) (2025-03-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update theme ([b4c6ee1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/b4c6ee10a6afb75be26c7f3d9dfe9f96c1845543))
7
+ * update theme ([fbed797](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/fbed79700545e9451642d358943521645ac1e10a))
8
+
9
+ ## [52.0.91](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.90...v52.0.91) (2025-03-10)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * fix tests ([8973c69](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/8973c6982a702aa674b9e87dcdb778b1ebef8fcd))
15
+ * update core version ([62d8166](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/62d8166202d63f3ae307c04c8d12662405ddbb4f))
16
+ * update isPPC prop to showLinks ([f5259cc](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/f5259cca46437de3bebbe4d6bd98da9c96a8b7ae))
17
+ * update review credits and link lists to excpect a isPPC prop ([86e7317](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/86e7317e1e2b0e9aa390cdecbf17daac96ec174c))
18
+
19
+
20
+ ### Config
21
+
22
+ * update theme ([cb155aa](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/cb155aa817205fa7ba2954e0acd242d7387b675a))
23
+
24
+
25
+ * Merge branch 'tm-5295-ppc-page-improvements' into 'master' ([cfba719](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/cfba7192f3f302348d45a9c402103cb0c19b2825))
26
+ * Merge branch 'tm-5295-ppc-page-improvements' into 'master' ([052a885](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/052a885e6e47096d78e4a1215b165d83e3726abd))
27
+
1
28
  ## [52.0.90](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.89...v52.0.90) (2025-03-06)
2
29
 
3
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "52.0.90",
3
+ "version": "52.0.92",
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": "42.0.30",
28
+ "gatsby-core-theme": "43.0.2",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
@@ -6,12 +6,17 @@ import LinkList from 'gatsby-core-theme/src/components/molecules/link-list';
6
6
  import { getFirstModuleByName } from 'gatsby-core-theme/src/helpers/getters';
7
7
  import styles from './link-menu.module.scss';
8
8
 
9
- const LinkMenu = ({ section, listIcon = <FaChevronRight title="Right-pointing Arrow Icon" /> }) => {
9
+ const LinkMenu = ({
10
+ section,
11
+ listIcon = <FaChevronRight title="Right-pointing Arrow Icon" />,
12
+ showLinks,
13
+ }) => {
10
14
  const menuArray = getFirstModuleByName(section, 'menu');
15
+
11
16
  return (
12
17
  <div className={styles?.linkMenuContainer || ''}>
13
18
  <div className={styles?.linkMenuContent || ''}>
14
- <LinkList lists={menuArray} listIcon={listIcon} gtmClass="link-menu-gtm" />
19
+ <LinkList lists={menuArray} listIcon={listIcon} gtmClass="link-menu-gtm" showLinks={showLinks} />
15
20
  </div>
16
21
  </div>
17
22
  );
@@ -19,6 +24,7 @@ const LinkMenu = ({ section, listIcon = <FaChevronRight title="Right-pointing Ar
19
24
 
20
25
  LinkMenu.propTypes = {
21
26
  listIcon: PropTypes.element,
27
+ showLinks: PropTypes.bool,
22
28
  section: PropTypes.shape({
23
29
  modules: PropTypes.arrayOf(
24
30
  PropTypes.shape({
@@ -18,6 +18,7 @@ const ReviewCredits = ({
18
18
  clock = <Clock />,
19
19
  date,
20
20
  dateFormat = 'DD.MM.YYYY',
21
+ showLinks=true,
21
22
  editorialIcon = <IoOpenOutline size={18} />,
22
23
  editorialContent = (
23
24
  <div className={styles.content}>
@@ -79,7 +80,7 @@ const ReviewCredits = ({
79
80
  authorImageHeight={authorImageHeight}
80
81
  authorImageWidth={authorImageWidth}
81
82
  authorName={authorName}
82
- authorPath={authorLink}
83
+ authorPath={showLinks && authorLink}
83
84
  authorTitle={authorTitle}
84
85
  prefix={useTranslate(prefix, prefix) || getPrefixBasedOnPage}
85
86
  customStyles={`${styles.authorCommon || ''} ${styles.author || ''}`}
@@ -96,7 +97,7 @@ const ReviewCredits = ({
96
97
  authorImageHeight={authorImageHeight}
97
98
  authorImageWidth={authorImageWidth}
98
99
  authorName={reviewerName}
99
- authorPath={reviewerLink}
100
+ authorPath={showLinks && reviewerLink}
100
101
  authorTitle={reviewerTitle}
101
102
  isReviewer
102
103
  prefix={prefix}
@@ -182,6 +183,7 @@ ReviewCredits.propTypes = {
182
183
  authorImageWidth: PropTypes.number,
183
184
  clock: PropTypes.element,
184
185
  date: PropTypes.string,
186
+ showLinks: PropTypes.bool,
185
187
  dateFormat: PropTypes.string,
186
188
  editorialIcon: PropTypes.element,
187
189
  editorialContent: PropTypes.element,
@@ -309,6 +309,7 @@ export default function Header({ section, numOfStarsRating = 5, showAuthor }) {
309
309
  reviewer={page.reviewer_id && page?.reviewer}
310
310
  hasAuthorBox={hasAuthorBox}
311
311
  type={page?.template}
312
+ showLinks={page.template !== 'ppc'}
312
313
  />
313
314
  )
314
315
  : showAuthorComponent && (
@@ -42,6 +42,7 @@ function Body({ pageContext, children, serverData }) {
42
42
  const links = pageTypes[template]?.disableFooter || pageTypes[template]?.disableFooterLinks ? null : getMarketSection('links', pageContext);
43
43
 
44
44
  const isHomePage = pageContext?.page && pageContext?.page.path === '/';
45
+ const showLinks = pageContext?.page && pageContext?.page?.template !== 'ppc';
45
46
  const pageType = pageContext.page.relation_type;
46
47
  const is404 = pageContext.page.path.includes('404');
47
48
 
@@ -109,7 +110,7 @@ function Body({ pageContext, children, serverData }) {
109
110
 
110
111
  {links && !isContactUsPage && (
111
112
  <aside>
112
- <LinkMenu section={links} />
113
+ <LinkMenu section={links} showLinks={showLinks} />
113
114
  </aside>
114
115
  )}
115
116
  {showOpenGraph && <OpenGraph text="Del på" page={pageContext?.page} />}