gatsby-matrix-theme 53.26.1 → 53.26.3

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.26.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.26.2...v53.26.3) (2026-07-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update core version ([1222557](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/12225571451c60373caaca6c043c7490b5553423))
7
+
8
+ ## [53.26.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.26.1...v53.26.2) (2026-07-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * render coupon CTA as button when nested to avoid hydration flash ([63a24b5](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/63a24b59a6fa479c87b9a9ef58316dfd501aca13))
14
+
15
+
16
+ * Merge branch 'feat/coupon-cta-as-button-nested' into 'master' ([8b352a1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/8b352a138a5fcbd6050213957094015f364949c6))
17
+
1
18
  ## [53.26.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.26.0...v53.26.1) (2026-07-08)
2
19
 
3
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.26.1",
3
+ "version": "53.26.3",
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.31.0",
29
+ "gatsby-core-theme": "44.31.1",
30
30
  "gatsby-plugin-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
32
32
  "gatsby-transformer-sharp": "^5.11.0",
@@ -22,6 +22,7 @@ const Coupon = ({
22
22
  shortCode,
23
23
  // CTA / redirect behaviour (opt-in)
24
24
  actLikeCta = false,
25
+ ctaAsButton = false,
25
26
  operator = null,
26
27
  tracker = 'main',
27
28
  moduleName = null,
@@ -112,6 +113,12 @@ const Coupon = ({
112
113
  redirectTimer.current = setTimeout(() => {
113
114
  isPending.current = false;
114
115
 
116
+ if (ctaAsButton) {
117
+ if (prettyLink) window.open(prettyLink, '_blank');
118
+ setCopySuccess(false);
119
+ return;
120
+ }
121
+
115
122
  const anchor = ctaRef.current;
116
123
  if (!anchor) return;
117
124
 
@@ -165,7 +172,7 @@ const Coupon = ({
165
172
  {!templateOne && showprefix && (
166
173
  <span className={styles.prefix}>{prefixLabel}</span>
167
174
  )}
168
- {ctaEnabled ? (
175
+ {ctaEnabled && !ctaAsButton ? (
169
176
  <a
170
177
  ref={ctaRef}
171
178
  href={prettyLink}
@@ -188,6 +195,14 @@ const Coupon = ({
188
195
  type="button"
189
196
  className={couponClass}
190
197
  disabled={inactive || isBet365}
198
+ {...(ctaEnabled
199
+ ? getCtaDataAttributes(operator, {
200
+ tracker,
201
+ moduleName,
202
+ modulePosition,
203
+ itemPosition
204
+ })
205
+ : {})}
191
206
  >
192
207
  {couponContent}
193
208
  </button>
@@ -208,6 +223,7 @@ Coupon.propTypes = {
208
223
  defaultTranslation: PropTypes.string,
209
224
  shortCode: PropTypes.string,
210
225
  actLikeCta: PropTypes.bool,
226
+ ctaAsButton: PropTypes.bool,
211
227
  operator: PropTypes.shape({
212
228
  name: PropTypes.string,
213
229
  short_name: PropTypes.string,