gatsby-matrix-theme 53.15.1 → 53.16.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,20 @@
1
+ ## [53.16.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.16.0...v53.16.1) (2026-04-27)
2
+
3
+
4
+ ### Config
5
+
6
+ * update gatsby theme version ([cb17576](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/cb17576365336964626b93761947dd4b8f793141))
7
+
8
+ # [53.16.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.15.1...v53.16.0) (2026-04-23)
9
+
10
+
11
+ * Merge branch 'en-455-verification' into 'master' ([34f17af](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/34f17afb21bd8c35ad58d2ae73214c691b5c62de))
12
+
13
+
14
+ ### Features
15
+
16
+ * verification badge on operator cards ([727331f](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/727331f2e8e6942f1188032e6e233f936b5805dd))
17
+
1
18
  ## [53.15.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.15.0...v53.15.1) (2026-04-15)
2
19
 
3
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.15.1",
3
+ "version": "53.16.1",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -26,7 +26,7 @@
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "@gigmedia/enigma-utils": "^1.20.0",
28
28
  "gatsby": "^5.11.0",
29
- "gatsby-core-theme": "^44.22.0",
29
+ "gatsby-core-theme": "^44.22.3",
30
30
  "gatsby-plugin-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
32
32
  "gatsby-transformer-sharp": "^5.11.0",
@@ -15,10 +15,12 @@ import styles from './template-one.module.scss';
15
15
  import Bonus from '~molecules/bonus-box/template-one';
16
16
  import { TrackingKeys } from '~constants/tracking-api';
17
17
  import VariableComponent from '../variables';
18
+ import VerificationBadge from '../../../verification-badge/template-one';
18
19
 
19
20
  const VerifyIcon = lazy(() => import('~images/icons/verify'));
20
21
 
21
22
  const TemplateOne = ({
23
+ showVerificationBadge = false,
22
24
  showRibbon = false,
23
25
  item,
24
26
  useOneStarRating = true,
@@ -32,7 +34,11 @@ const TemplateOne = ({
32
34
  authorTemplateTwo = true,
33
35
  sellingPointsIcon = <FaCheck title="Check Icon" />,
34
36
  showBonusForAll = false,
35
- verifyIcon = <Suspense fallback={<></>}><VerifyIcon /></Suspense>,
37
+ verifyIcon = (
38
+ <Suspense fallback={<></>}>
39
+ <VerifyIcon />
40
+ </Suspense>
41
+ ),
36
42
  showOperatorCta = true,
37
43
  operatorLogoWidth = 88,
38
44
  operatorLogoHeight = 88,
@@ -44,7 +50,7 @@ const TemplateOne = ({
44
50
  itemPosition,
45
51
  ctaIcon = <FaArrowRight title="Right-pointing Arrow Icon" />,
46
52
  hideTnc = false,
47
- moduleStyle
53
+ moduleStyle,
48
54
  }) => {
49
55
  const ribbons = item?.relation?.ribbons || [];
50
56
  const { relation, path } = item;
@@ -89,17 +95,8 @@ const TemplateOne = ({
89
95
  {showSellingPoints && !!sellingPoints?.length && (
90
96
  <SellingPoints sellingPoints={sellingPoints} limit={3} icon={sellingPointsIcon} />
91
97
  )}
92
- {showBonusForAll ? (
93
- <BonusTemplate
94
- moduleName={TrackingKeys?.CARDS}
95
- item={relation}
96
- tracker="main"
97
- pageTemplate={page?.template}
98
- modulePosition={modulePosition}
99
- itemPosition={itemPosition}
100
- />
101
- ) : (
102
- !isInactive && (
98
+ <div className={styles.bonusAndVerification}>
99
+ {showBonusForAll ? (
103
100
  <BonusTemplate
104
101
  moduleName={TrackingKeys?.CARDS}
105
102
  item={relation}
@@ -108,8 +105,20 @@ const TemplateOne = ({
108
105
  modulePosition={modulePosition}
109
106
  itemPosition={itemPosition}
110
107
  />
111
- )
112
- )}
108
+ ) : (
109
+ !isInactive && (
110
+ <BonusTemplate
111
+ moduleName={TrackingKeys?.CARDS}
112
+ item={relation}
113
+ tracker="main"
114
+ pageTemplate={page?.template}
115
+ modulePosition={modulePosition}
116
+ itemPosition={itemPosition}
117
+ />
118
+ )
119
+ )}
120
+ {showVerificationBadge && relation?.status === 'active' && <VerificationBadge />}
121
+ </div>
113
122
  </div>
114
123
  <div className={styles?.cardFooter || ''}>
115
124
  {hasVariableComponent && (
@@ -157,9 +166,7 @@ const TemplateOne = ({
157
166
  }`}
158
167
  >
159
168
  {paymentMethods?.slice(0, 4).map((deposit) => {
160
- const logo =
161
- deposit?.logo?.filename ||
162
- deposit?.logo
169
+ const logo = deposit?.logo?.filename || deposit?.logo;
163
170
  if (!logo) return;
164
171
  return (
165
172
  <li key={`${deposit.id}-${deposit.name}`}>
@@ -178,9 +185,7 @@ const TemplateOne = ({
178
185
  {paymentMethods?.length > 4 && <li>{`+${paymentMethods?.length - 4}`}</li>}
179
186
  </ul>
180
187
  )}
181
- {!hideTnc && (
182
- <TncTemplate operator={item?.relation} isFixed/>
183
- )}
188
+ {!hideTnc && <TncTemplate operator={item?.relation} isFixed />}
184
189
  </div>
185
190
  </div>
186
191
  </div>
@@ -188,6 +193,7 @@ const TemplateOne = ({
188
193
  };
189
194
 
190
195
  TemplateOne.propTypes = {
196
+ showVerificationBadge: PropTypes.bool,
191
197
  item: PropTypes.shape({
192
198
  relation: PropTypes.shape({
193
199
  ribbons: PropTypes.arrayOf(PropTypes.string),
@@ -19,7 +19,7 @@
19
19
  line-height: 2.2rem;
20
20
 
21
21
  // > span::before {
22
- // color: #ffdb20;
22
+ // color: #ffdb20;
23
23
  // }
24
24
 
25
25
  > span:nth-child(2) {
@@ -67,12 +67,12 @@
67
67
  font-size: 1rem;
68
68
  font-weight: 400;
69
69
  line-height: 1.5rem;
70
-
71
- > div{
70
+
71
+ > div {
72
72
  max-height: 45px;
73
73
  overflow: auto;
74
74
  padding-right: 1.6rem;
75
-
75
+
76
76
  &::-webkit-scrollbar {
77
77
  -webkit-appearance: none;
78
78
  width: 0.4rem;
@@ -85,7 +85,7 @@
85
85
  background: var(--color-52);
86
86
  border-radius: 2px;
87
87
  }
88
-
88
+
89
89
  a {
90
90
  font-size: 1rem;
91
91
  font-weight: 400;
@@ -174,3 +174,9 @@
174
174
  }
175
175
  }
176
176
  }
177
+ .bonusAndVerification {
178
+ @include flex-direction(var(--bonus-and-verification-direction, column));
179
+ align-items: var(--bonus-and-verification-align, center);
180
+ justify-content: var(--bonus-and-verification-justify, flex-start);
181
+ gap: var(--bonus-and-verification-gap, 0.8rem);
182
+ }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import React, { lazy, Suspense } from 'react';
2
+ import React from 'react';
3
3
  import {
4
4
  Title,
5
5
  Description,
@@ -8,10 +8,9 @@ import {
8
8
  ArgsTable,
9
9
  } from '@storybook/addon-docs/blocks';
10
10
  import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
11
+ import VerifyIcon from '~images/icons/verify';
11
12
  import TemplateOne from '.';
12
13
 
13
- const VerifyIcon = lazy(() => import('~images/icons/verify'));
14
-
15
14
  const operatorData = getSampleOperatorCards();
16
15
 
17
16
  export default {
@@ -34,7 +33,7 @@ export default {
34
33
  verifyIcon: {
35
34
  name: 'verifyIcon',
36
35
  type: { name: 'element', required: false },
37
- defaultValue: <Suspense fallback={<></>}><VerifyIcon /></Suspense>,
36
+ defaultValue: <VerifyIcon />,
38
37
  description: 'verify icon',
39
38
  },
40
39
  page: {