gatsby-matrix-theme 3.2.18 → 3.2.22

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 (40) hide show
  1. package/.ci.yml +2 -0
  2. package/CHANGELOG.md +66 -0
  3. package/package.json +2 -2
  4. package/src/components/atoms/cards/comparison-table/table/index.js +5 -4
  5. package/src/components/atoms/cards/comparison-table/table/table.test.js +1 -1
  6. package/src/components/atoms/cards/game-card/index.js +6 -1
  7. package/src/components/atoms/cards/popup-card/index.js +2 -2
  8. package/src/components/molecules/game-iframe/index.js +2 -2
  9. package/src/components/organisms/popup/popup.test.js +2 -1
  10. package/src/gatsby-core-theme/components/atoms/menu/items/item/item.module.scss +55 -0
  11. package/src/gatsby-core-theme/components/molecules/content/index.js +2 -1
  12. package/src/gatsby-core-theme/components/molecules/footer/index.js +6 -1
  13. package/storybook/public/{0.ae1584dd.iframe.bundle.js → 0.e515c4bf.iframe.bundle.js} +1 -1
  14. package/storybook/public/{1.5b14cfe6.iframe.bundle.js → 1.ac251b98.iframe.bundle.js} +1 -1
  15. package/storybook/public/{10.3d48be86.iframe.bundle.js → 10.ff8f20a0.iframe.bundle.js} +1 -1
  16. package/storybook/public/{11.3e5dcd6e.iframe.bundle.js → 11.a965ed36.iframe.bundle.js} +1 -1
  17. package/storybook/public/{12.be3dbae0.iframe.bundle.js → 12.f31f86bb.iframe.bundle.js} +1 -1
  18. package/storybook/public/{13.4c418d5e.iframe.bundle.js → 13.c72a573a.iframe.bundle.js} +1 -1
  19. package/storybook/public/{14.13d10e61.iframe.bundle.js → 14.454a253c.iframe.bundle.js} +1 -1
  20. package/storybook/public/{15.2a8de093.iframe.bundle.js → 15.baadf857.iframe.bundle.js} +1 -1
  21. package/storybook/public/{16.e735ba7a.iframe.bundle.js → 16.9d6c22db.iframe.bundle.js} +1 -1
  22. package/storybook/public/{5.311f8126.iframe.bundle.js → 5.7148fbb6.iframe.bundle.js} +3 -3
  23. package/storybook/public/{5.311f8126.iframe.bundle.js.LICENSE.txt → 5.7148fbb6.iframe.bundle.js.LICENSE.txt} +0 -0
  24. package/storybook/public/5.7148fbb6.iframe.bundle.js.map +1 -0
  25. package/storybook/public/{6.16b0d47b.iframe.bundle.js → 6.ad9d9402.iframe.bundle.js} +1 -1
  26. package/storybook/public/{7.95714d3a.iframe.bundle.js → 7.a5b95b83.iframe.bundle.js} +1 -1
  27. package/storybook/public/{8.447f6c90.iframe.bundle.js → 8.fd6b3f00.iframe.bundle.js} +1 -1
  28. package/storybook/public/{9.ad2cc66b.iframe.bundle.js → 9.f220a5b6.iframe.bundle.js} +3 -3
  29. package/storybook/public/{9.ad2cc66b.iframe.bundle.js.LICENSE.txt → 9.f220a5b6.iframe.bundle.js.LICENSE.txt} +0 -0
  30. package/storybook/public/9.f220a5b6.iframe.bundle.js.map +1 -0
  31. package/storybook/public/iframe.html +1 -1
  32. package/storybook/public/main.433816fa.iframe.bundle.js +1 -0
  33. package/storybook/public/{runtime~main.3edb71ab.iframe.bundle.js → runtime~main.59fc7233.iframe.bundle.js} +1 -1
  34. package/storybook/public/{vendors~main.75c685f6.iframe.bundle.js → vendors~main.73d094d3.iframe.bundle.js} +4 -4
  35. package/storybook/public/{vendors~main.75c685f6.iframe.bundle.js.LICENSE.txt → vendors~main.73d094d3.iframe.bundle.js.LICENSE.txt} +0 -0
  36. package/storybook/public/vendors~main.73d094d3.iframe.bundle.js.map +1 -0
  37. package/storybook/public/5.311f8126.iframe.bundle.js.map +0 -1
  38. package/storybook/public/9.ad2cc66b.iframe.bundle.js.map +0 -1
  39. package/storybook/public/main.bcb2214e.iframe.bundle.js +0 -1
  40. package/storybook/public/vendors~main.75c685f6.iframe.bundle.js.map +0 -1
package/.ci.yml CHANGED
@@ -41,6 +41,8 @@ Theme Publish:
41
41
  only:
42
42
  refs:
43
43
  - master
44
+ variables:
45
+ - $PIPELINE != "content-trigger"
44
46
 
45
47
  variables:
46
48
  PIPELINE: automated
package/CHANGELOG.md CHANGED
@@ -1,3 +1,69 @@
1
+ ## [3.2.22](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.21...v3.2.22) (2022-02-02)
2
+
3
+
4
+ ### Config
5
+
6
+ * updated core version ([1bb6e2d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bb6e2d325e2a01c6aae75da5dcc671caf0fdde7))
7
+
8
+ ## [3.2.21](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.20...v3.2.21) (2022-02-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * content module imag cdn links ([74397ae](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/74397ae8014326641382559ea1dbe3a329f0b54d))
14
+ * navigation menu fix ([9c4ad08](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9c4ad0819e79a4dea4dc44876992278dd4ea5a12))
15
+ * popup images set to lazy load ([86c6c4a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/86c6c4ac7089d10b23d92e21ee49d442fcc2a7f3))
16
+ * string helper import ([6af965d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6af965d1cad7d70f027b85ab7f0de1b927edef94))
17
+
18
+
19
+ ### Config
20
+
21
+ * updated core theme ([a124f7e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a124f7eb702aff3607123d3952c5cf449285d218))
22
+
23
+
24
+ * Merge branch 'tm-2684-popup-images' into 'master' ([d5fa878](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d5fa878baac4f37322a12dae8650afb6e284377d))
25
+ * Merge branch 'navigation' into 'master' ([2cf85d8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2cf85d8b533311ed6a14b93e6ecb8f30414e5153))
26
+ * Merge branch 'tm-2685-content-module-image-cdn' into 'master' ([b79fa10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b79fa101af2109bc0639f7db7462a006bbecf1d6))
27
+
28
+
29
+ ### Tests
30
+
31
+ * fixed popup test ([0b4060e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0b4060e4f2f3cf1a68209550e53c804f1d959dff))
32
+
33
+ ## [3.2.20](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.19...v3.2.20) (2022-01-28)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * default slot image if not banner is added ([abcfc29](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/abcfc290f77e8e2e6c708b731ed7ec64b3d338d9))
39
+ * fix test ([9d75dff](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9d75dff6b3ca5123b26c43df85e0ac8bfbe1e4e6))
40
+ * fix the logic of load more button on payment section ([ac58d48](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ac58d484bdab74102bc0c2129fa7cb9a93d82dc1))
41
+ * uploaded compressed jpg for default-slots image ([73b9030](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/73b9030c29597ba1b2b91fc48b575a470f176fd9))
42
+
43
+
44
+ ### Config
45
+
46
+ * added content pipeline ([148ba5e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/148ba5eba4a1ff49dfbc894c9b8ed3022bf3aa9d))
47
+ * added content pipeline ([b19c72d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b19c72d0daa08812616e634c0102648aae2a5323))
48
+ * added content pipeline ([34248cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34248ccce96cdf07f5ec6bad13b775fc982a1c9d))
49
+ * update latest theme version ([69e0986](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/69e098662658af1ec9abdb18290581596a8267a8))
50
+ * updated tracker links ([ebb3132](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ebb3132c1f3e92eb6e73bc6db009b95770e4c137))
51
+
52
+
53
+ * Merge branch 'tm-2671-default-slot-image' into 'master' ([2717097](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2717097c7a230de5999e9d8eedd7445434244780))
54
+ * Merge branch 'tm-2661-comparison-table' into 'master' ([9de2b2e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9de2b2e4877a69544f57ed4d8b73fbf146fb0755))
55
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([35ed2df](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/35ed2dfa8726e0e4f053f2d25a91f5342a5a597d))
56
+
57
+ ## [3.2.19](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.18...v3.2.19) (2022-01-26)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * added dmca width and height ([2886bb9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2886bb9b9b27ca40fa72541505165d020891283e))
63
+
64
+
65
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([b69e480](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b69e480f34a06e4e808b965109a9b14d8d4fbaa0))
66
+
1
67
  ## [3.2.18](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.17...v3.2.18) (2022-01-25)
2
68
 
3
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.18",
3
+ "version": "3.2.22",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -31,7 +31,7 @@
31
31
  "cross-env": "^7.0.2",
32
32
  "dotenv": "8.2.0",
33
33
  "gatsby": "^3.3.1",
34
- "gatsby-core-theme": "^2.2.3",
34
+ "gatsby-core-theme": "^2.2.6",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -71,10 +71,10 @@ export default function ComparisonTable({ items, tabelInfo = listHeadings, ctaKe
71
71
  src={imagePrettyUrl(item?.relation?.logo_url)}
72
72
  height={89}
73
73
  width={89}
74
- alt={item.title}
74
+ alt={item.relation.name}
75
75
  />
76
76
  <div>
77
- <span>{item.title}</span>
77
+ <span>{item.relation.name}</span>
78
78
  <OperatorCta
79
79
  tracker="main"
80
80
  operator={item?.relation}
@@ -116,7 +116,8 @@ export default function ComparisonTable({ items, tabelInfo = listHeadings, ctaKe
116
116
  {item?.relation?.bonus?.deposit_methods &&
117
117
  // eslint-disable-next-line array-callback-return
118
118
  item?.relation?.bonus?.deposit_methods.map((deposit, i, list) => {
119
- if (i < (showAllPayment.includes(index) ? list.length : 5)) {
119
+ const itemsLength = list.length === 6 ? 6 : 5;
120
+ if (i < (showAllPayment.includes(index) ? list.length : itemsLength)) {
120
121
  return (
121
122
  <span key={deposit.name}>
122
123
  <LazyImg
@@ -129,7 +130,7 @@ export default function ComparisonTable({ items, tabelInfo = listHeadings, ctaKe
129
130
  );
130
131
  }
131
132
  })}
132
- {item?.relation?.bonus?.deposit_methods?.length > 5 &&
133
+ {item?.relation?.bonus?.deposit_methods?.length > 6 &&
133
134
  !showAllPayment.includes(index) && (
134
135
  <a
135
136
  onClick={() => {
@@ -13,7 +13,7 @@ describe('Comparison table test component', () => {
13
13
  const { getByText } = render(<ComparisonTable items={module.items} />);
14
14
 
15
15
  module.items.map((item) => {
16
- expect(getByText(item.title));
16
+ expect(getByText(item.relation.name));
17
17
  });
18
18
  });
19
19
  });
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { FaStar } from 'react-icons/fa';
4
4
  import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
5
5
  import Button from 'gatsby-core-theme/src/components/atoms/button';
6
+ import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
6
7
  import Link from 'gatsby-core-theme/src/hooks/link';
7
8
  import {
8
9
  imagePrettyUrl,
@@ -26,7 +27,11 @@ const GameCard = ({ item, button_text = 'play_now', width, height }) => {
26
27
  {!featured && (
27
28
  <div className={styles.cardBanner}>
28
29
  <Link to={path} className="game-card-gtm" aria-label={`${title} Link`}>
29
- <LazyImage width={width} height={height} src={imagePrettyUrl(banner)} alt={title} />
30
+ {banner ? (
31
+ <LazyImage width={width} height={height} src={imagePrettyUrl(banner)} alt={title} />
32
+ ) : (
33
+ <GatsbyImg filename="default-slot.jpg" alt={title} />
34
+ )}
30
35
  </Link>
31
36
  </div>
32
37
  )}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
-
4
3
  import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
5
4
  import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
5
+ import LazyImage from '~hooks/lazy-image';
6
6
 
7
7
  import styles from './popup-card.module.scss';
8
8
 
@@ -19,7 +19,7 @@ const PopupCard = ({ item, tracker }) => {
19
19
  <div className={styles.popupCard}>
20
20
  <div className={styles.wrapper}>
21
21
  <div className={styles.imgContainer}>
22
- <img width={98} height={98} src={imagePrettyUrl(logoUrl)} alt={oneLiner} />
22
+ <LazyImage src={imagePrettyUrl(logoUrl)} alt={oneLiner} width={98} height={98} />
23
23
  </div>
24
24
  <div className={styles.textContainer}>
25
25
  <p className={styles.primaryText}>{one}</p>
@@ -44,9 +44,9 @@ const GameIframe = ({ page }) => {
44
44
  <div className={styles.thumbnailContainer}>
45
45
  <div className={`${styles.thumbnail} ${showIframe ? styles.hide : ''}`}>
46
46
  {page.banner ? (
47
- <LazyImage src={imagePrettyUrl(page.banner)} />
47
+ <LazyImage alt={page.title} src={imagePrettyUrl(page.banner)} />
48
48
  ) : (
49
- <GatsbyImg filename="default-slot.png" />
49
+ <GatsbyImg alt={page.title} filename="default-slot.jpg" />
50
50
  )}
51
51
  <Button
52
52
  isInternalLink={false}
@@ -18,7 +18,8 @@ describe('Popup test component', () => {
18
18
  const { container } = render(<Popup module={module} isStorybook />);
19
19
  const rows = container.querySelectorAll('.popupCard');
20
20
  expect(rows).toHaveLength(4);
21
- expect(container.querySelectorAll('img')).toHaveLength(4);
21
+
22
+ expect(container.querySelectorAll('.imgContainer')).toHaveLength(4);
22
23
 
23
24
  let isVisible = container.querySelector('.activeModal');
24
25
  expect(isVisible).toBeTruthy();
@@ -0,0 +1,55 @@
1
+ .itemWrapper.dropDownButton {
2
+ display: flex;
3
+ justify-content: space-between;
4
+
5
+ .item {
6
+ width: 80%;
7
+ }
8
+ }
9
+
10
+ .item {
11
+ padding: 1.5rem 2rem;
12
+
13
+ @include custom-min-max(1200, 1260) {
14
+ padding: 1.5rem 1.7rem;
15
+ }
16
+
17
+ &.openedLink {
18
+ background-color: var(--primary-hover-color);
19
+ }
20
+
21
+ img {
22
+ width: 1.5rem;
23
+ max-height: 1.5rem;
24
+ }
25
+
26
+ &.inactiveLink {
27
+ position: relative;
28
+ pointer-events: none;
29
+
30
+ @include max(tablet) {
31
+ pointer-events: none;
32
+ }
33
+ }
34
+ }
35
+
36
+ .dropDownButton button {
37
+ width: 20%;
38
+ max-width: 75px;
39
+ position: relative;
40
+ background-color: var(--primary-hover-color);
41
+
42
+ &.active {
43
+ @include arrow-rotate(0);
44
+ }
45
+
46
+ &:after {
47
+ transition: 0.2s;
48
+ @include arrow(var(--nav-icon-color), 1rem, down, false);
49
+
50
+ position: absolute;
51
+ top: calc(50% - 0.4rem);
52
+ left: calc(50% - 1.2rem);
53
+ margin-left: 1rem;
54
+ }
55
+ }
@@ -6,6 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
7
7
  import { parseCss } from 'gatsby-core-theme/src/helpers/css-parser';
8
8
  import loadable from '@loadable/component';
9
+ import { parseContentImageUrl } from 'gatsby-core-theme/src/helpers/strings';
9
10
  import styles from './content.module.scss';
10
11
 
11
12
  const Content = ({ module }) => {
@@ -33,7 +34,7 @@ const Content = ({ module }) => {
33
34
  stylesClass = 'alignRight';
34
35
  }
35
36
  const lazyProps = {
36
- src: node.attribs.src,
37
+ src: parseContentImageUrl(node.attribs.src),
37
38
  width: node.attribs.width && node.attribs.width.replace('px', ''),
38
39
  height: node.attribs.height && node.attribs.height.replace('px', ''),
39
40
  style: node.attribs.style ? parseCss(node.attribs.style) : null,
@@ -23,7 +23,12 @@ const Footer = ({
23
23
  const showLinks = template !== 'ppc';
24
24
  const copyrightDisclaimerValue = getExtraField(section?.extra_fields, copyrightDisclaimer);
25
25
  const dmcaImg = (
26
- <img src="https://cdn.playcasino.co.za/image-1-8.png" alt="DMCA.com Protection Status" />
26
+ <img
27
+ src="https://cdn.playcasino.co.za/image-1-8.png"
28
+ width="100"
29
+ height="33"
30
+ alt="DMCA.com Protection Status"
31
+ />
27
32
  );
28
33
 
29
34
  return (