gatsby-matrix-theme 25.1.7 → 25.1.9

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,22 @@
1
+ ## [25.1.9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.8...v25.1.9) (2023-06-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * build error ([22ed39e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/22ed39eba238254dff22c5b9f1d541d3c85d43b5))
7
+ * ribbons ([a309b23](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a309b238de56db0078bed6afaa03d4e87e26f7e1))
8
+
9
+
10
+ * Merge branch 'build-error-fix' into 'master' ([b37f14a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b37f14aa1cc65cb400913a9d589ab24febdbd01e))
11
+
12
+ ## [25.1.8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.7...v25.1.8) (2023-06-13)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * wagering calc styling ([6900f5a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6900f5abf61cf4d18413f095806e29eacadf97ef))
18
+ * wagering calc styling ([582610e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/582610ed84d53999dc4760b9f273c58d01035b9f))
19
+
1
20
  ## [25.1.7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v25.1.6...v25.1.7) (2023-06-13)
2
21
 
3
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "25.1.7",
3
+ "version": "25.1.9",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -39,9 +39,9 @@ const TemplateOne = ({
39
39
  sellingPointsIcon = <FaCheck />,
40
40
  verifyIcon = '../../../images/verify.svg',
41
41
  }) => {
42
- const { ribbons } = item?.relation;
42
+ const ribbons = item?.relation?.ribbons || [];
43
43
  const { relation, path } = item;
44
- const { name, status, selling_points: sellingPoints, bonus } = relation;
44
+ const { name, status, selling_points: sellingPoints, bonus } = relation || {};
45
45
  const paymentMethods = bonus?.deposit_methods;
46
46
  const hasTnc = showTnc && relation?.extra_fields?.terms_and_conditions_text_enabled;
47
47
  const reviewPath = path || relation.path;
@@ -68,7 +68,7 @@ const TemplateOne = ({
68
68
  src={imagePrettyUrl(relation?.standardised_logo_url_object?.filename, 88, 88)}
69
69
  alt={getAltText(relation?.standardised_logo_url_object, name)}
70
70
  />
71
- {showRibbon && ribbons && ribbons.length > 0 && (
71
+ {showRibbon && typeof ribbons !== 'undefined' && ribbons && ribbons?.length > 0 && (
72
72
  <span className={styles.ribbon}>{ribbons[0]}</span>
73
73
  )}
74
74
  </Link>
@@ -83,7 +83,7 @@ const TemplateOne = ({
83
83
  <StarRating
84
84
  numOfStars={5}
85
85
  halfStars={showHalfStars}
86
- rating={relation.rating}
86
+ rating={relation?.rating}
87
87
  showLabel={showRatingLabel}
88
88
  showDecimal={showRatingDecimal}
89
89
  />
@@ -210,6 +210,7 @@ const TemplateOne = ({
210
210
  TemplateOne.propTypes = {
211
211
  item: PropTypes.shape({
212
212
  relation: PropTypes.shape({
213
+ ribbons: PropTypes.shape([]),
213
214
  bonus: PropTypes.shape({
214
215
  deposit_methods: PropTypes.shape([]),
215
216
  }),
@@ -34,9 +34,9 @@ const TemplateTwo = ({
34
34
  showRatingDecimal = false,
35
35
  verifyIcon = '../../../images/verify.svg',
36
36
  }) => {
37
- const { ribbons } = item?.relation;
37
+ const ribbons = item?.relation?.ribbons || [];
38
38
  const { relation, path } = item;
39
- const { name, status, bonus } = relation;
39
+ const { name, status, bonus } = relation || {};
40
40
  const paymentMethods = bonus?.deposit_methods;
41
41
  const hasTnc = showTnc && relation?.extra_fields?.terms_and_conditions_text_enabled;
42
42
  const reviewPath = path || relation.path;
@@ -63,8 +63,8 @@ const TemplateTwo = ({
63
63
  alt={getAltText(relation?.standardised_logo_url_object, name)}
64
64
  />
65
65
  </Link>
66
- {showRibbon && ribbons && ribbons.length > 0 && (
67
- <span className={styles.ribbon}>{ribbons[0]}</span>
66
+ {showRibbon && typeof ribbons !== 'undefined' && ribbons && ribbons.length > 0 && (
67
+ <span className={styles.ribbon}>{typeof ribbons[0] !== 'undefined' && ribbons[0]}</span>
68
68
  )}
69
69
  </div>
70
70
  <div className={styles?.cardContentTop || ''}>
@@ -79,7 +79,7 @@ const TemplateTwo = ({
79
79
  <StarRating
80
80
  numOfStars={5}
81
81
  halfStars={showHalfStars}
82
- rating={relation.rating}
82
+ rating={relation?.rating}
83
83
  showLabel={showRatingLabel}
84
84
  showDecimal={showRatingDecimal}
85
85
  />
@@ -204,6 +204,7 @@ const TemplateTwo = ({
204
204
  TemplateTwo.propTypes = {
205
205
  item: PropTypes.shape({
206
206
  relation: PropTypes.shape({
207
+ ribbons: PropTypes.shape([]),
207
208
  bonus: PropTypes.shape({
208
209
  deposit_methods: PropTypes.shape([]),
209
210
  }),
@@ -18,7 +18,7 @@ import styles from './small-welcome-bonus.module.scss';
18
18
 
19
19
  const Index = ({ page }) => {
20
20
  const operator = page?.extra_fields?.game_review_summary_operator;
21
- const { logo_url, status } = operator;
21
+ const { status } = operator;
22
22
  const { translations } = useContext(Context) || {};
23
23
  const prettyLink = prettyTracker(operator, 'main', false, page.template);
24
24
  let playNow = translate(translations, 'play_now', 'Play now');
@@ -47,7 +47,7 @@ const Index = ({ page }) => {
47
47
  width={120}
48
48
  height={50}
49
49
  alt={getAltText(logUrlObject, operator?.name)}
50
- src={imagePrettyUrl(logo_url, 120, 50)}
50
+ src={imagePrettyUrl(logUrlObject.filename, 120, 50)}
51
51
  />
52
52
  </a>
53
53
  </div>
@@ -7,7 +7,6 @@
7
7
  border-radius: 1.2rem;
8
8
  box-shadow: 0px -3px 14px rgba(0, 0, 0, 0.09);
9
9
  background-color: var(--color-4);
10
- z-index: 1;
11
10
 
12
11
  @include min(tablet) {
13
12
  padding: 2.4rem;
@@ -60,11 +59,10 @@
60
59
  }
61
60
 
62
61
  .info {
63
- height: 100vh;
62
+ height: 100%;
64
63
  position: absolute;
65
64
  top: 0;
66
65
  left: 0;
67
- z-index: 3;
68
66
  background: white;
69
67
  padding: 2.4rem;
70
68
  svg {
@@ -191,7 +189,7 @@
191
189
  > h3 {
192
190
  margin-top: 2.4rem;
193
191
  margin-bottom: 1.6rem;
194
-
192
+
195
193
  @include min(tablet) {
196
194
  margin-top: 3.2rem;
197
195
  }
@@ -215,9 +213,10 @@
215
213
  a:first-child {
216
214
  height: 6.4rem;
217
215
  width: 6.4rem;
218
-
219
216
  flex-grow: 1;
220
-
217
+ @include min(tablet) {
218
+ flex-grow: inherit;
219
+ }
221
220
  }
222
221
 
223
222
  img {
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.349b6fb9.iframe.bundle.js"></script><script src="134.8ffd6917.iframe.bundle.js"></script><script src="main.f03d4a3e.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.349b6fb9.iframe.bundle.js"></script><script src="134.8ffd6917.iframe.bundle.js"></script><script src="main.420213db.iframe.bundle.js"></script></body></html>