gatsby-matrix-theme 3.2.19 → 3.2.23

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 (41) hide show
  1. package/.ci.yml +2 -0
  2. package/CHANGELOG.md +75 -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/footer-navigation/index.js +28 -3
  10. package/src/components/organisms/popup/popup.test.js +2 -1
  11. package/src/gatsby-core-theme/components/atoms/menu/items/item/item.module.scss +55 -0
  12. package/src/gatsby-core-theme/components/molecules/content/index.js +2 -1
  13. package/src/gatsby-core-theme/components/organisms/carousel/index.js +11 -20
  14. package/storybook/public/{0.ae1584dd.iframe.bundle.js → 0.e515c4bf.iframe.bundle.js} +1 -1
  15. package/storybook/public/{1.5b14cfe6.iframe.bundle.js → 1.ac251b98.iframe.bundle.js} +1 -1
  16. package/storybook/public/{10.3d48be86.iframe.bundle.js → 10.ff8f20a0.iframe.bundle.js} +1 -1
  17. package/storybook/public/{11.3e5dcd6e.iframe.bundle.js → 11.a965ed36.iframe.bundle.js} +1 -1
  18. package/storybook/public/{12.be3dbae0.iframe.bundle.js → 12.f31f86bb.iframe.bundle.js} +1 -1
  19. package/storybook/public/{13.4c418d5e.iframe.bundle.js → 13.c72a573a.iframe.bundle.js} +1 -1
  20. package/storybook/public/{14.13d10e61.iframe.bundle.js → 14.454a253c.iframe.bundle.js} +1 -1
  21. package/storybook/public/{15.2a8de093.iframe.bundle.js → 15.baadf857.iframe.bundle.js} +1 -1
  22. package/storybook/public/{16.e735ba7a.iframe.bundle.js → 16.9d6c22db.iframe.bundle.js} +1 -1
  23. package/storybook/public/{5.311f8126.iframe.bundle.js → 5.7148fbb6.iframe.bundle.js} +3 -3
  24. package/storybook/public/{5.311f8126.iframe.bundle.js.LICENSE.txt → 5.7148fbb6.iframe.bundle.js.LICENSE.txt} +0 -0
  25. package/storybook/public/5.7148fbb6.iframe.bundle.js.map +1 -0
  26. package/storybook/public/{6.16b0d47b.iframe.bundle.js → 6.ad9d9402.iframe.bundle.js} +1 -1
  27. package/storybook/public/{7.95714d3a.iframe.bundle.js → 7.a5b95b83.iframe.bundle.js} +1 -1
  28. package/storybook/public/{8.447f6c90.iframe.bundle.js → 8.fd6b3f00.iframe.bundle.js} +1 -1
  29. package/storybook/public/{9.ad2cc66b.iframe.bundle.js → 9.f220a5b6.iframe.bundle.js} +3 -3
  30. package/storybook/public/{9.ad2cc66b.iframe.bundle.js.LICENSE.txt → 9.f220a5b6.iframe.bundle.js.LICENSE.txt} +0 -0
  31. package/storybook/public/9.f220a5b6.iframe.bundle.js.map +1 -0
  32. package/storybook/public/iframe.html +1 -1
  33. package/storybook/public/main.1fb3ac74.iframe.bundle.js +1 -0
  34. package/storybook/public/{runtime~main.3edb71ab.iframe.bundle.js → runtime~main.59fc7233.iframe.bundle.js} +1 -1
  35. package/storybook/public/{vendors~main.75c685f6.iframe.bundle.js → vendors~main.73d094d3.iframe.bundle.js} +4 -4
  36. package/storybook/public/{vendors~main.75c685f6.iframe.bundle.js.LICENSE.txt → vendors~main.73d094d3.iframe.bundle.js.LICENSE.txt} +0 -0
  37. package/storybook/public/vendors~main.73d094d3.iframe.bundle.js.map +1 -0
  38. package/storybook/public/5.311f8126.iframe.bundle.js.map +0 -1
  39. package/storybook/public/9.ad2cc66b.iframe.bundle.js.map +0 -1
  40. package/storybook/public/main.bcb2214e.iframe.bundle.js +0 -1
  41. 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,78 @@
1
+ ## [3.2.23](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.22...v3.2.23) (2022-02-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add scroll on footer nav ([da45e5d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/da45e5de716e6e6afd7f362c9f036309f6b8168f))
7
+ * add show after 3 seconds functionality on footer nav ([9e49a61](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9e49a61e531399b34d6e6b7f0ae5a0f945f3861e))
8
+ * fix carousel not showing when js is off ([f976424](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f976424bbcf1a2cad3a8a7d20e407dfd15b6c848))
9
+
10
+
11
+ * Merge branch 'tm-2684-footerNav-optimization' into 'master' ([fdeec64](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fdeec64fc8a922628107b33134577187b95d150e))
12
+ * Merge branch 'tm-2691-images-carousel' into 'master' ([90d05e0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/90d05e0d84b8d5f78f12691d7e03a9833e317eb3))
13
+
14
+
15
+ ### norelease
16
+
17
+ * change env sitename ([fa10ded](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fa10ded0f9d09b909eff2443d27281234ed39bce))
18
+ * revert back env ([9897255](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9897255ed23e4b714c99474d47000a91d00b223b))
19
+
20
+ ## [3.2.22](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.21...v3.2.22) (2022-02-02)
21
+
22
+
23
+ ### Config
24
+
25
+ * updated core version ([1bb6e2d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1bb6e2d325e2a01c6aae75da5dcc671caf0fdde7))
26
+
27
+ ## [3.2.21](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.20...v3.2.21) (2022-02-02)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * content module imag cdn links ([74397ae](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/74397ae8014326641382559ea1dbe3a329f0b54d))
33
+ * navigation menu fix ([9c4ad08](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9c4ad0819e79a4dea4dc44876992278dd4ea5a12))
34
+ * popup images set to lazy load ([86c6c4a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/86c6c4ac7089d10b23d92e21ee49d442fcc2a7f3))
35
+ * string helper import ([6af965d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/6af965d1cad7d70f027b85ab7f0de1b927edef94))
36
+
37
+
38
+ ### Config
39
+
40
+ * updated core theme ([a124f7e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a124f7eb702aff3607123d3952c5cf449285d218))
41
+
42
+
43
+ * Merge branch 'tm-2684-popup-images' into 'master' ([d5fa878](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d5fa878baac4f37322a12dae8650afb6e284377d))
44
+ * Merge branch 'navigation' into 'master' ([2cf85d8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2cf85d8b533311ed6a14b93e6ecb8f30414e5153))
45
+ * Merge branch 'tm-2685-content-module-image-cdn' into 'master' ([b79fa10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b79fa101af2109bc0639f7db7462a006bbecf1d6))
46
+
47
+
48
+ ### Tests
49
+
50
+ * fixed popup test ([0b4060e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0b4060e4f2f3cf1a68209550e53c804f1d959dff))
51
+
52
+ ## [3.2.20](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.19...v3.2.20) (2022-01-28)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * default slot image if not banner is added ([abcfc29](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/abcfc290f77e8e2e6c708b731ed7ec64b3d338d9))
58
+ * fix test ([9d75dff](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9d75dff6b3ca5123b26c43df85e0ac8bfbe1e4e6))
59
+ * fix the logic of load more button on payment section ([ac58d48](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ac58d484bdab74102bc0c2129fa7cb9a93d82dc1))
60
+ * uploaded compressed jpg for default-slots image ([73b9030](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/73b9030c29597ba1b2b91fc48b575a470f176fd9))
61
+
62
+
63
+ ### Config
64
+
65
+ * added content pipeline ([148ba5e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/148ba5eba4a1ff49dfbc894c9b8ed3022bf3aa9d))
66
+ * added content pipeline ([b19c72d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b19c72d0daa08812616e634c0102648aae2a5323))
67
+ * added content pipeline ([34248cc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34248ccce96cdf07f5ec6bad13b775fc982a1c9d))
68
+ * update latest theme version ([69e0986](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/69e098662658af1ec9abdb18290581596a8267a8))
69
+ * updated tracker links ([ebb3132](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ebb3132c1f3e92eb6e73bc6db009b95770e4c137))
70
+
71
+
72
+ * Merge branch 'tm-2671-default-slot-image' into 'master' ([2717097](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2717097c7a230de5999e9d8eedd7445434244780))
73
+ * Merge branch 'tm-2661-comparison-table' into 'master' ([9de2b2e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9de2b2e4877a69544f57ed4d8b73fbf146fb0755))
74
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([35ed2df](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/35ed2dfa8726e0e4f053f2d25a91f5342a5a597d))
75
+
1
76
  ## [3.2.19](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.18...v3.2.19) (2022-01-26)
2
77
 
3
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.19",
3
+ "version": "3.2.23",
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}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useEffect, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
4
  import LinkList from 'gatsby-core-theme/src/components/molecules/link-list';
@@ -6,8 +6,33 @@ import { getFirstModuleByName } from 'gatsby-core-theme/src/helpers/getters';
6
6
  import styles from './footer-navigation.module.scss';
7
7
 
8
8
  const FooterNavigation = ({ section, isStorybook = false }) => {
9
+ const [show, setShow] = useState(false);
9
10
  const menuArray = getFirstModuleByName(section, 'menu');
10
- return (
11
+
12
+ const handleEvent = () => {
13
+ setShow(true);
14
+ };
15
+
16
+ const showAfter = (seconds) => {
17
+ setTimeout(() => {
18
+ setShow(true);
19
+ }, seconds * 1000);
20
+ };
21
+
22
+ useEffect(() => {
23
+ window.addEventListener('scroll', handleEvent);
24
+ window.addEventListener('mousemove', handleEvent);
25
+ window.addEventListener('touchstart', handleEvent);
26
+ showAfter(3);
27
+
28
+ return () => {
29
+ window.removeEventListener('scroll', handleEvent);
30
+ window.addEventListener('mousemove', handleEvent);
31
+ window.addEventListener('touchstart', handleEvent);
32
+ };
33
+ }, []);
34
+
35
+ return show ? (
11
36
  <div className={`${styles.footerLinks} ${isStorybook && styles.storybookStyles}`}>
12
37
  <LinkList
13
38
  showListTitle={false}
@@ -19,7 +44,7 @@ const FooterNavigation = ({ section, isStorybook = false }) => {
19
44
  gtmClass="mobile-menu-gtm"
20
45
  />
21
46
  </div>
22
- );
47
+ ) : null;
23
48
  };
24
49
 
25
50
  FooterNavigation.propTypes = {
@@ -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,
@@ -43,28 +43,19 @@ const Carousel = ({ module = {}, settings = {}, gtmClass = '' }) => {
43
43
  return arr;
44
44
  };
45
45
 
46
+ const renderedItems =
47
+ width < 991 && width > 0 ? renderOne(module.items) : renderTwo(module.items);
48
+
46
49
  return (
47
50
  <div className={styles.carouselContainer}>
48
- {width >= 991 && (
49
- <Slider
50
- {...settings}
51
- className={styles.screenshotCarousel}
52
- useArrows={false}
53
- gtmClass={gtmClass}
54
- >
55
- {renderTwo(module.items)}
56
- </Slider>
57
- )}
58
- {width < 991 && width > 0 && (
59
- <Slider
60
- {...settings}
61
- className={styles.screenshotCarousel}
62
- useArrows={false}
63
- gtmClass={gtmClass}
64
- >
65
- {renderOne(module.items)}
66
- </Slider>
67
- )}
51
+ <Slider
52
+ {...settings}
53
+ className={styles.screenshotCarousel}
54
+ useArrows={false}
55
+ gtmClass={gtmClass}
56
+ >
57
+ {renderedItems}
58
+ </Slider>
68
59
  </div>
69
60
  );
70
61
  };