gatsby-matrix-theme 3.2.17 → 3.2.21

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 (42) hide show
  1. package/.ci.yml +2 -0
  2. package/CHANGELOG.md +76 -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/operators-table/index.js +1 -1
  8. package/src/components/atoms/cards/popup-card/index.js +2 -2
  9. package/src/components/molecules/game-iframe/game-iframe.module.scss +3 -0
  10. package/src/components/molecules/game-iframe/index.js +7 -2
  11. package/src/components/organisms/popup/popup.test.js +2 -1
  12. package/src/gatsby-core-theme/components/atoms/menu/items/item/item.module.scss +55 -0
  13. package/src/gatsby-core-theme/components/molecules/content/index.js +2 -1
  14. package/src/gatsby-core-theme/components/molecules/footer/index.js +6 -1
  15. package/storybook/public/{0.2524b7fa.iframe.bundle.js → 0.e515c4bf.iframe.bundle.js} +1 -1
  16. package/storybook/public/{1.02a42b9a.iframe.bundle.js → 1.ac251b98.iframe.bundle.js} +1 -1
  17. package/storybook/public/{10.3d48be86.iframe.bundle.js → 10.ff8f20a0.iframe.bundle.js} +1 -1
  18. package/storybook/public/{11.3e5dcd6e.iframe.bundle.js → 11.a965ed36.iframe.bundle.js} +1 -1
  19. package/storybook/public/{12.be3dbae0.iframe.bundle.js → 12.f31f86bb.iframe.bundle.js} +1 -1
  20. package/storybook/public/{13.4c418d5e.iframe.bundle.js → 13.c72a573a.iframe.bundle.js} +1 -1
  21. package/storybook/public/{14.13d10e61.iframe.bundle.js → 14.454a253c.iframe.bundle.js} +1 -1
  22. package/storybook/public/{15.2a8de093.iframe.bundle.js → 15.baadf857.iframe.bundle.js} +1 -1
  23. package/storybook/public/{16.e735ba7a.iframe.bundle.js → 16.9d6c22db.iframe.bundle.js} +1 -1
  24. package/storybook/public/{5.b3040fad.iframe.bundle.js → 5.7148fbb6.iframe.bundle.js} +3 -3
  25. package/storybook/public/{5.b3040fad.iframe.bundle.js.LICENSE.txt → 5.7148fbb6.iframe.bundle.js.LICENSE.txt} +0 -0
  26. package/storybook/public/5.7148fbb6.iframe.bundle.js.map +1 -0
  27. package/storybook/public/{6.507356fa.iframe.bundle.js → 6.ad9d9402.iframe.bundle.js} +1 -1
  28. package/storybook/public/{7.43d7a9f7.iframe.bundle.js → 7.a5b95b83.iframe.bundle.js} +1 -1
  29. package/storybook/public/{8.447f6c90.iframe.bundle.js → 8.fd6b3f00.iframe.bundle.js} +1 -1
  30. package/storybook/public/{9.ad2cc66b.iframe.bundle.js → 9.f220a5b6.iframe.bundle.js} +3 -3
  31. package/storybook/public/{9.ad2cc66b.iframe.bundle.js.LICENSE.txt → 9.f220a5b6.iframe.bundle.js.LICENSE.txt} +0 -0
  32. package/storybook/public/9.f220a5b6.iframe.bundle.js.map +1 -0
  33. package/storybook/public/iframe.html +1 -1
  34. package/storybook/public/main.433816fa.iframe.bundle.js +1 -0
  35. package/storybook/public/{runtime~main.9da1a6a5.iframe.bundle.js → runtime~main.59fc7233.iframe.bundle.js} +1 -1
  36. package/storybook/public/{vendors~main.b9edf664.iframe.bundle.js → vendors~main.5eca56bf.iframe.bundle.js} +4 -4
  37. package/storybook/public/{vendors~main.b9edf664.iframe.bundle.js.LICENSE.txt → vendors~main.5eca56bf.iframe.bundle.js.LICENSE.txt} +0 -0
  38. package/storybook/public/vendors~main.5eca56bf.iframe.bundle.js.map +1 -0
  39. package/storybook/public/5.b3040fad.iframe.bundle.js.map +0 -1
  40. package/storybook/public/9.ad2cc66b.iframe.bundle.js.map +0 -1
  41. package/storybook/public/main.06b2602a.iframe.bundle.js +0 -1
  42. package/storybook/public/vendors~main.b9edf664.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,79 @@
1
+ ## [3.2.21](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.20...v3.2.21) (2022-02-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * content module imag cdn links ([74397ae](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/74397ae8014326641382559ea1dbe3a329f0b54d))
7
+ * navigation menu fix ([9c4ad08](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9c4ad0819e79a4dea4dc44876992278dd4ea5a12))
8
+ * popup images set to lazy load ([86c6c4a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/86c6c4ac7089d10b23d92e21ee49d442fcc2a7f3))
9
+ * string helper import ([6af965d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6af965d1cad7d70f027b85ab7f0de1b927edef94))
10
+
11
+
12
+ ### Config
13
+
14
+ * updated core theme ([a124f7e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a124f7eb702aff3607123d3952c5cf449285d218))
15
+
16
+
17
+ * Merge branch 'tm-2684-popup-images' into 'master' ([d5fa878](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d5fa878baac4f37322a12dae8650afb6e284377d))
18
+ * Merge branch 'navigation' into 'master' ([2cf85d8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2cf85d8b533311ed6a14b93e6ecb8f30414e5153))
19
+ * Merge branch 'tm-2685-content-module-image-cdn' into 'master' ([b79fa10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b79fa101af2109bc0639f7db7462a006bbecf1d6))
20
+
21
+
22
+ ### Tests
23
+
24
+ * fixed popup test ([0b4060e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0b4060e4f2f3cf1a68209550e53c804f1d959dff))
25
+
26
+ ## [3.2.20](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.19...v3.2.20) (2022-01-28)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * default slot image if not banner is added ([abcfc29](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/abcfc290f77e8e2e6c708b731ed7ec64b3d338d9))
32
+ * fix test ([9d75dff](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9d75dff6b3ca5123b26c43df85e0ac8bfbe1e4e6))
33
+ * fix the logic of load more button on payment section ([ac58d48](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ac58d484bdab74102bc0c2129fa7cb9a93d82dc1))
34
+ * uploaded compressed jpg for default-slots image ([73b9030](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/73b9030c29597ba1b2b91fc48b575a470f176fd9))
35
+
36
+
37
+ ### Config
38
+
39
+ * added content pipeline ([148ba5e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/148ba5eba4a1ff49dfbc894c9b8ed3022bf3aa9d))
40
+ * added content pipeline ([b19c72d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b19c72d0daa08812616e634c0102648aae2a5323))
41
+ * added content pipeline ([34248cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34248ccce96cdf07f5ec6bad13b775fc982a1c9d))
42
+ * update latest theme version ([69e0986](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/69e098662658af1ec9abdb18290581596a8267a8))
43
+ * updated tracker links ([ebb3132](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ebb3132c1f3e92eb6e73bc6db009b95770e4c137))
44
+
45
+
46
+ * Merge branch 'tm-2671-default-slot-image' into 'master' ([2717097](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2717097c7a230de5999e9d8eedd7445434244780))
47
+ * Merge branch 'tm-2661-comparison-table' into 'master' ([9de2b2e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9de2b2e4877a69544f57ed4d8b73fbf146fb0755))
48
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([35ed2df](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/35ed2dfa8726e0e4f053f2d25a91f5342a5a597d))
49
+
50
+ ## [3.2.19](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.18...v3.2.19) (2022-01-26)
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * added dmca width and height ([2886bb9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2886bb9b9b27ca40fa72541505165d020891283e))
56
+
57
+
58
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([b69e480](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b69e480f34a06e4e808b965109a9b14d8d4fbaa0))
59
+
60
+ ## [3.2.18](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.17...v3.2.18) (2022-01-25)
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * cards v2 table translation key ([248cc7e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/248cc7e36150831db8e7c598db5b537aee9b2a4f))
66
+ * iframe default image ([538c356](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/538c3562e2e81cc78cc5b06384e616f79f082da6))
67
+
68
+
69
+ ### Config
70
+
71
+ * updated core version ([b76c067](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b76c0674a927d8b90b14f561d4a89382ad309538))
72
+
73
+
74
+ * Merge branch 'tm-2671-iframe-default-image' into 'master' ([839702e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/839702e3ff05b1bfa2133b3c3748f592c5292be6))
75
+ * Merge branch 'tm-2667-cards-v2-table' into 'master' ([a3ca044](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a3ca044169985daba1f5a7960d77c3a28cc68838))
76
+
1
77
  ## [3.2.17](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.16...v3.2.17) (2022-01-21)
2
78
 
3
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.17",
3
+ "version": "3.2.21",
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.2",
34
+ "gatsby-core-theme": "^2.2.5",
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
  )}
@@ -57,7 +57,7 @@ const CasinosTable = ({ module }) => {
57
57
  target="_blank"
58
58
  rel="noreferrer"
59
59
  >
60
- {`${translate(translations, 'visit', 'Visit')} ${item?.relation?.name}`}
60
+ {`${translate(translations, 'visit_table', 'Visit')} ${item?.relation?.name}`}
61
61
  </a>
62
62
  </td>
63
63
  </tr>
@@ -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>
@@ -7,6 +7,9 @@
7
7
  .thumbnail {
8
8
  display: inline-block;
9
9
  position: relative;
10
+ width: 100%;
11
+ display: flex;
12
+ justify-content: center;
10
13
 
11
14
  &::before {
12
15
  display: block;
@@ -5,6 +5,7 @@ import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
5
5
  import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
6
6
  import Iframe from 'gatsby-core-theme/src/components/atoms/iframe';
7
7
  import Button from 'gatsby-core-theme/src/components/atoms/button';
8
+ import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
8
9
  import styles from './game-iframe.module.scss';
9
10
 
10
11
  const GameIframe = ({ page }) => {
@@ -38,11 +39,15 @@ const GameIframe = ({ page }) => {
38
39
 
39
40
  return (
40
41
  <>
41
- {page.relation && page.relation.iframe !== '' && (
42
+ {page.relation && page.relation.iframe && page.relation.iframe !== '' && (
42
43
  <div>
43
44
  <div className={styles.thumbnailContainer}>
44
45
  <div className={`${styles.thumbnail} ${showIframe ? styles.hide : ''}`}>
45
- <LazyImage src={imagePrettyUrl(page.banner)} />
46
+ {page.banner ? (
47
+ <LazyImage alt={page.title} src={imagePrettyUrl(page.banner)} />
48
+ ) : (
49
+ <GatsbyImg alt={page.title} filename="default-slot.jpg" />
50
+ )}
46
51
  <Button
47
52
  isInternalLink={false}
48
53
  onClick={clickHandler}
@@ -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 (