gatsby-matrix-theme 52.0.27 → 52.0.28

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.
Files changed (26) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +2 -2
  3. package/src/components/atoms/cards/comparison-table/table/index.js +1 -0
  4. package/src/components/atoms/cards/operator-card/template-four/index.js +2 -0
  5. package/src/components/atoms/cards/operator-card/template-one/index.js +3 -0
  6. package/src/components/atoms/cards/operator-card/template-three/index.js +4 -3
  7. package/src/components/atoms/cards/operator-card/template-two/index.js +1 -0
  8. package/src/components/atoms/cards/popup-card/index.js +1 -1
  9. package/src/components/atoms/recommended-operators/index.js +8 -2
  10. package/src/components/molecules/sportstake/lotto-module/winning-numbers/index.js +11 -4
  11. package/src/components/molecules/toplist/row/variant-one.js +1 -0
  12. package/src/components/molecules/wagering-calculator/index.js +1 -0
  13. package/src/gatsby-core-theme/components/molecules/module/index.js +4 -3
  14. package/src/helpers/info-grid.js +1 -0
  15. package/storybook/public/453.356b40b4.iframe.bundle.js +7 -0
  16. package/storybook/public/{453.03f0eb9c.iframe.bundle.js.map → 453.356b40b4.iframe.bundle.js.map} +1 -1
  17. package/storybook/public/{776.e03f32a9.iframe.bundle.js → 776.aa2fb07e.iframe.bundle.js} +1 -1
  18. package/storybook/public/943.6ed0dd8a.iframe.bundle.js +1 -0
  19. package/storybook/public/iframe.html +1 -1
  20. package/storybook/public/main.d1195323.iframe.bundle.js +1 -0
  21. package/storybook/public/project.json +1 -1
  22. package/storybook/public/{runtime~main.3e238723.iframe.bundle.js → runtime~main.1f1dfd32.iframe.bundle.js} +1 -1
  23. package/storybook/public/453.03f0eb9c.iframe.bundle.js +0 -7
  24. package/storybook/public/943.d49c44ac.iframe.bundle.js +0 -1
  25. package/storybook/public/main.ce5e09d0.iframe.bundle.js +0 -1
  26. /package/storybook/public/{453.03f0eb9c.iframe.bundle.js.LICENSE.txt → 453.356b40b4.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## [52.0.28](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.27...v52.0.28) (2024-10-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * more case handled ([ee7da9f](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/ee7da9fc7cbaec71459f6dc8e634cee728a8ef2b))
7
+ * more case handled ([74ef6e5](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/74ef6e590a7990900e430327121405fb167bd9f6))
8
+ * tracking api ([c7ac8a6](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/c7ac8a6d6f47853125cca918d6527730bc34864b))
9
+ * update version ([9fe3097](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/9fe30977fdc2e84b1d5cbf437553ade858a9f5e6))
10
+
11
+
12
+ ### Config
13
+
14
+ * update theme ([3448e79](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/3448e79cbb8b86feca0ec26bdfbd98ca0fe3fec3))
15
+
16
+
17
+ * Merge branch 'tm-4898-tracking-api-v2' into 'master' ([8442900](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/8442900fbf61613c458a8f19d64f95319647a998))
18
+
1
19
  ## [52.0.27](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.26...v52.0.27) (2024-10-24)
2
20
 
3
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "52.0.27",
3
+ "version": "52.0.28",
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": "40.0.11",
28
+ "gatsby-core-theme": "40.0.17",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
@@ -161,6 +161,7 @@ export default function ComparisonTable({
161
161
  module="comparison_table"
162
162
  tracker="main"
163
163
  item={item?.relation}
164
+ pageTemplate={tempate}
164
165
  itemPosition={index + 1}
165
166
  modulePosition={modulePosition}
166
167
  />
@@ -63,6 +63,7 @@ const TemplateFour = ({
63
63
  {showBonusForAll ? (
64
64
  <BonusTemplate
65
65
  module="cards"
66
+ pageTemplate={page?.template}
66
67
  welcomeBonus={false}
67
68
  item={relation}
68
69
  ctaBtn
@@ -74,6 +75,7 @@ const TemplateFour = ({
74
75
  !isInactive && (
75
76
  <BonusTemplate
76
77
  welcomeBonus={false}
78
+ pageTemplate={page?.template}
77
79
  item={relation}
78
80
  ctaBtn
79
81
  tracker="main"
@@ -89,6 +89,7 @@ const TemplateOne = ({
89
89
  module="cards"
90
90
  item={relation}
91
91
  tracker="main"
92
+ pageTemplate={page?.template}
92
93
  modulePosition={modulePosition}
93
94
  itemPosition={itemPosition}
94
95
  />
@@ -98,6 +99,7 @@ const TemplateOne = ({
98
99
  module="cards"
99
100
  item={relation}
100
101
  tracker="main"
102
+ pageTemplate={page?.template}
101
103
  modulePosition={modulePosition}
102
104
  itemPosition={itemPosition}
103
105
  />
@@ -110,6 +112,7 @@ const TemplateOne = ({
110
112
  item={item}
111
113
  page={page}
112
114
  featured={false}
115
+ pageTemplate={page?.template}
113
116
  modulePosition={modulePosition}
114
117
  itemPosition={itemPosition}
115
118
  />
@@ -39,9 +39,8 @@ const TemplateThree = ({
39
39
 
40
40
  return (
41
41
  <div
42
- className={`${styles?.operatorCard || ''} ${
43
- ribbons?.length > 0 ? styles?.withRibbon || '' : ''
44
- }`}
42
+ className={`${styles?.operatorCard || ''} ${ribbons?.length > 0 ? styles?.withRibbon || '' : ''
43
+ }`}
45
44
  >
46
45
  <OperatorDetails
47
46
  item={item?.relation}
@@ -67,6 +66,7 @@ const TemplateThree = ({
67
66
  {showBonusForAll ? (
68
67
  <BonusTemplate
69
68
  module="cards"
69
+ pageTemplate={page?.template}
70
70
  item={relation}
71
71
  tracker="main"
72
72
  modulePosition={modulePosition}
@@ -76,6 +76,7 @@ const TemplateThree = ({
76
76
  !isInactive && (
77
77
  <BonusTemplate
78
78
  module="cards"
79
+ pageTemplate={page?.template}
79
80
  item={relation}
80
81
  tracker="main"
81
82
  modulePosition={modulePosition}
@@ -76,6 +76,7 @@ const TemplateTwo = ({
76
76
  ctaBtn
77
77
  item={relation}
78
78
  tracker="main"
79
+ pageTemplate={page?.template}
79
80
  modulePosition={modulePosition}
80
81
  itemPosition={itemPosition}
81
82
  />
@@ -43,7 +43,7 @@ const PopupCard = ({
43
43
  )}
44
44
  {showName && <p className={styles?.name || ''}>{operatorName}</p>}
45
45
  </div>
46
- <Bonus module="popup" item={item} tracker={tracker} itemPosition={itemPosition} />
46
+ <Bonus module="popup" item={item} tracker={tracker} itemPosition={itemPosition} pageTemplate={template} />
47
47
  <div className={styles?.buttonContainer || ''}>
48
48
  <OperatorCta
49
49
  tracker={tracker}
@@ -17,6 +17,7 @@ const RecommendedOperators = ({
17
17
  title = 'Recommended Casinos:',
18
18
  buttonType = 'primary',
19
19
  operators,
20
+ pageTemplate,
20
21
  tncFixed = false,
21
22
  operatorLogoWidth,
22
23
  operatorLogoHeight,
@@ -32,6 +33,7 @@ const RecommendedOperators = ({
32
33
  <OperatorDetails
33
34
  showRating={showRating}
34
35
  item={operator}
36
+ template={pageTemplate}
35
37
  showAuthor={showAuthor}
36
38
  showReviewLink={false}
37
39
  costumeStyle={styles.operatorDetails || ''}
@@ -44,14 +46,15 @@ const RecommendedOperators = ({
44
46
  <div className={styles.operatorBonus}>
45
47
  <PrettyLink
46
48
  operator={operator}
47
- pageTemplate={null}
49
+ pageTemplate={pageTemplate}
48
50
  module="wagering_calculator"
49
51
  tracker="main"
50
52
  clickedElement="oneliner"
51
53
  modulePosition={modulePosition}
52
54
  itemPosition={index + 1}
53
55
  >
54
- <Bonus item={operator} tracker="main" />
56
+ <Bonus item={operator} module="wagering_calculator" tracker="main" pageTemplate={pageTemplate} modulePosition={modulePosition}
57
+ itemPosition={index + 1} />
55
58
  </PrettyLink>
56
59
 
57
60
  <TermsConditions operator={operator} isFixed={tncFixed} />
@@ -63,6 +66,7 @@ const RecommendedOperators = ({
63
66
  operator={operator}
64
67
  tracker="main"
65
68
  buttonType={buttonType}
69
+ pageTemplate={pageTemplate}
66
70
  module="wagering_calculator"
67
71
  modulePosition={modulePosition}
68
72
  itemPosition={index + 1}
@@ -72,6 +76,7 @@ const RecommendedOperators = ({
72
76
  {(!showCouponCode || !couponCode) && (
73
77
  <OperatorCta
74
78
  operator={operator}
79
+ pageTemplate={pageTemplate}
75
80
  tracker="main"
76
81
  buttonType={buttonType}
77
82
  module="wagering_calculator"
@@ -102,4 +107,5 @@ RecommendedOperators.propTypes = {
102
107
  operatorLogoWidth: PropTypes.number,
103
108
  operatorLogoHeight: PropTypes.number,
104
109
  modulePosition: PropTypes.number,
110
+ pageTemplate: PropTypes.string,
105
111
  };
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { prettyTracker } from 'gatsby-core-theme/src/helpers/getters';
4
3
  import keygen from 'gatsby-core-theme/src/helpers/keygen';
5
4
  import HeaderOperatorBaner from 'gatsby-core-theme/src/components/atoms/header-operator-bannner';
5
+ import PrettyLink from "~atoms/pretty-link";
6
6
  import useTranslate from '~hooks/useTranslate/useTranslate';
7
7
  import { formatDate } from '../../../../../gatsby-core-theme/helpers/lotto';
8
8
  import styles from './lotto.module.scss';
@@ -10,7 +10,6 @@ import styles from './lotto.module.scss';
10
10
  const WinningNumbers = ({ data, template, operator = null, modulePosition }) => {
11
11
  const { balls } = data?.drawDetails || {};
12
12
  const imageName = data?.lottery !== 'daily-lotto' ? data?.lottery : 'lotto';
13
- const prettyLink = prettyTracker(operator, 'main', false, template);
14
13
 
15
14
  const getWinningNumbers = () => (
16
15
  <ul className={styles.numbersWrapper}>
@@ -57,11 +56,19 @@ const WinningNumbers = ({ data, template, operator = null, modulePosition }) =>
57
56
  <p className={styles.label}>
58
57
  {useTranslate(`no_winners`, 'There were no winners this week.')}
59
58
  </p>
60
- <a target="_blank" href={prettyLink} rel="nofollow noreferrer sponsored">
59
+ <PrettyLink
60
+ operator={operator}
61
+ pageTemplate={template}
62
+ module="lotto_get_ticket"
63
+ modulePosition={modulePosition}
64
+ rel="nofollow noreferrer sponsored"
65
+ clickedElement='lotto_text'
66
+ >
61
67
  <p className={styles.linkCta}>
62
68
  {useTranslate(`get_tickets`, 'Get your ticket in for the next draw!')}
63
69
  </p>
64
- </a>
70
+ </PrettyLink>
71
+
65
72
  </div>
66
73
  </div>
67
74
  {operator && (
@@ -69,6 +69,7 @@ export default function Row({
69
69
  tracker={oneliner}
70
70
  modulePosition={modulePosition}
71
71
  itemPosition={itemPosition}
72
+ pageTemplate={template}
72
73
  />
73
74
 
74
75
  {showSellingPoints && <SellingPoints sellingPoints={sellingPoints} limit={3} />}
@@ -170,6 +170,7 @@ const WageringCalculator = ({
170
170
  <RecomendedOperators
171
171
  title={useTranslate('wagecalc_recommended_casinos', 'Recommeded Casinos for you: ')}
172
172
  operators={operators}
173
+ pageTemplate={pageContext?.page?.template}
173
174
  modulePosition={modulePosition}
174
175
  />
175
176
  )}
@@ -4,7 +4,7 @@
4
4
  import React, { lazy, Suspense, useContext } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { anchorLink } from 'gatsby-core-theme/src/helpers/strings';
7
- import { prettyTracker, getSectionExtraField } from 'gatsby-core-theme/src/helpers/getters';
7
+ import { getSectionExtraField } from 'gatsby-core-theme/src/helpers/getters';
8
8
  import Content from 'gatsby-core-theme/src/components/molecules/content';
9
9
  import Toplist from 'gatsby-core-theme/src/components/organisms/toplist';
10
10
  import Anchor from 'gatsby-core-theme/src/components/organisms/anchor/template-one';
@@ -215,8 +215,7 @@ const Modules = ({ module, pageContext, index, exclOperator, serverData, moduleP
215
215
  operator: module?.value,
216
216
  logo: module?.value?.logo_url,
217
217
  hasLink: true,
218
- prettyLink: prettyTracker(module?.value, 'main', false, page?.template),
219
- pageTemplate: page?.template,
218
+ pageTemplate: page?.template,
220
219
  isStickyCta: false,
221
220
  };
222
221
  case 'newsletter':
@@ -366,6 +365,8 @@ const Modules = ({ module, pageContext, index, exclOperator, serverData, moduleP
366
365
  isModuleIntroduction={module.module_introduction}
367
366
  module={{ value: module.module_introduction }}
368
367
  isHomepageFirstModule={homepageFirstModule}
368
+ pageTemplate={page?.template}
369
+ modulePosition={modulePosition}
369
370
  />
370
371
  )}
371
372
  </>
@@ -208,6 +208,7 @@ export const generateLink = (value, props) => {
208
208
  tracker='main'
209
209
  pageTemplate={template}
210
210
  rel='nofollow sponsored'
211
+ clickedElement="info_box"
211
212
  module={props?.module}
212
213
  modulePosition={props?.modulePosition}
213
214
  >