gatsby-matrix-theme 2.3.8 → 3.0.3
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 +76 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/article-card/index.js +1 -1
- package/src/components/atoms/cards/game-card/index.js +1 -1
- package/src/components/atoms/cards/operator-card/index.js +8 -13
- package/src/components/atoms/cards/payment-method-card/index.js +5 -1
- package/src/components/atoms/cards/software-provider-card/index.js +5 -1
- package/src/components/atoms/social-icons/index.js +7 -1
- package/src/components/molecules/small-welcome-bonus/index.js +1 -0
- package/src/components/organisms/footer-navigation/index.js +1 -1
- package/src/gatsby-core-theme/components/atoms/spotlights/index.js +8 -1
- package/src/gatsby-core-theme/components/molecules/main/index.js +7 -1
- package/src/gatsby-core-theme/components/organisms/navigation/index.js +6 -1
- package/src/gatsby-core-theme/components/pages/body/index.js +3 -2
- package/src/hooks/tabs/index.js +1 -1
- package/storybook/public/{0.df565bea.iframe.bundle.js → 0.3d133e98.iframe.bundle.js} +1 -1
- package/storybook/public/{1.d51717ce.iframe.bundle.js → 1.303d4a8e.iframe.bundle.js} +1 -1
- package/storybook/public/{10.f7f3ccb8.iframe.bundle.js → 10.2bb842e6.iframe.bundle.js} +1 -1
- package/storybook/public/{11.13224d48.iframe.bundle.js → 11.7ad7ba28.iframe.bundle.js} +1 -1
- package/storybook/public/{12.977cb5d6.iframe.bundle.js → 12.c91443b3.iframe.bundle.js} +1 -1
- package/storybook/public/{13.183d3f1c.iframe.bundle.js → 13.9ac1db9d.iframe.bundle.js} +1 -1
- package/storybook/public/{14.708f714b.iframe.bundle.js → 14.604f9747.iframe.bundle.js} +1 -1
- package/storybook/public/{15.f1ca69f8.iframe.bundle.js → 15.16fa9e43.iframe.bundle.js} +1 -1
- package/storybook/public/{5.f16ccaac.iframe.bundle.js → 5.58b2efe7.iframe.bundle.js} +3 -3
- package/storybook/public/{5.f16ccaac.iframe.bundle.js.LICENSE.txt → 5.58b2efe7.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/5.58b2efe7.iframe.bundle.js.map +1 -0
- package/storybook/public/{6.25868236.iframe.bundle.js → 6.2d558003.iframe.bundle.js} +1 -1
- package/storybook/public/{7.11db31fe.iframe.bundle.js → 7.8622538a.iframe.bundle.js} +1 -1
- package/storybook/public/{8.d69edd98.iframe.bundle.js → 8.cd8f12ce.iframe.bundle.js} +3 -3
- package/storybook/public/{8.d69edd98.iframe.bundle.js.LICENSE.txt → 8.cd8f12ce.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/8.cd8f12ce.iframe.bundle.js.map +1 -0
- package/storybook/public/{9.e97b6f53.iframe.bundle.js → 9.bc7480f3.iframe.bundle.js} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.fcbce4dc.iframe.bundle.js +1 -0
- package/storybook/public/{runtime~main.9c675b2b.iframe.bundle.js → runtime~main.39a81a69.iframe.bundle.js} +1 -1
- package/storybook/public/vendors~main.55a7a980.iframe.bundle.js +7 -0
- package/storybook/public/{vendors~main.2fa2d82b.iframe.bundle.js.LICENSE.txt → vendors~main.55a7a980.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/vendors~main.55a7a980.iframe.bundle.js.map +1 -0
- package/src/components/atoms/sitemap/index.js +0 -81
- package/src/components/atoms/sitemap/sitemap.module.scss +0 -111
- package/src/components/atoms/sitemap/sitemap.stories.js +0 -104
- package/src/gatsby-core-theme/pages/sitemap/index.js +0 -31
- package/storybook/public/5.f16ccaac.iframe.bundle.js.map +0 -1
- package/storybook/public/8.d69edd98.iframe.bundle.js.map +0 -1
- package/storybook/public/main.6d313455.iframe.bundle.js +0 -1
- package/storybook/public/vendors~main.2fa2d82b.iframe.bundle.js +0 -7
- package/storybook/public/vendors~main.2fa2d82b.iframe.bundle.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
+
## [3.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.2...v3.0.3) (2021-11-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* cookie consent props ([56ecfc0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/56ecfc071501f384fcdc3880673ab34bc25ba31b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* accessibility score changes ([706abf6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/706abf6946091f4f13d59e127c500b87371d4816))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Config
|
|
15
|
+
|
|
16
|
+
* updated core theme ([776b125](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/776b12506de4db82e67385c8da7118c547116dd4))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* Merge branch 'tm-2595-accessibility-scores' into 'master' ([fd9b453](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fd9b453146abead35f7128723a1098dbc119a338))
|
|
20
|
+
* Merge branch 'cookie-consent' into 'master' ([b44b163](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b44b1632e33fa2ef6528cabee1fed7af320caa8e))
|
|
21
|
+
|
|
22
|
+
## [3.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.1...v3.0.2) (2021-11-25)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* sitemap and core theme update ([64e430d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/64e430d3841c8e7ff1104e29a547ef6a926535c4))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Config
|
|
31
|
+
|
|
32
|
+
* update core theme ([9a98e8e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9a98e8eb428bc1a8d4aadd02e7f2005d28172712))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* Merge branch 'testing' into 'master' ([36eb0c8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/36eb0c889796f812257f73d127fb9349e7d363b7))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Tests
|
|
39
|
+
|
|
40
|
+
* changes ([d00d853](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d00d853b99c976913781b324bd0620cd05edae35))
|
|
41
|
+
* removing hed ([3a7c732](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3a7c732d86b6e74b398b8d9638229ada31e5baa6))
|
|
42
|
+
|
|
43
|
+
## [3.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.0.0...v3.0.1) (2021-11-24)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* core theme update and general fixes ([26fe04d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/26fe04d969b8bd0d0505e576c2422e4c8a7a2653))
|
|
49
|
+
* translation fix ([d115bc0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d115bc0f7d4d032107eb62033d54fa9952a17fc8))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
* Merge branch 'general_fixes' into 'master' ([ae536eb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ae536eb6882679b2495bce34b557144753c7c6c9))
|
|
53
|
+
|
|
54
|
+
# [3.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.8...v3.0.0) (2021-11-24)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* accessibility fixes ([d43d834](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d43d83448879a5806c6927ec35942dee2b5c2236))
|
|
60
|
+
* tab change lazyload issue ([f41e887](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f41e887022bc4779f411ff1a9fffe3e158fcc8cb))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Code Refactoring
|
|
64
|
+
|
|
65
|
+
* fixes on accessibility ([946ec97](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/946ec9757eee7d8a77b4a5be830d860409a6b4c8))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Config
|
|
69
|
+
|
|
70
|
+
* updated core theme version ([d7f394d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d7f394d5c312f1dc2e1a09a57a5b6f7829529158))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
* Merge branch 'tm-2478-search' into 'master' ([47022c5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/47022c50b9ee86cada8cfab92acfce25afe6216d))
|
|
74
|
+
* Merge branch 'master' into tm-2478-search ([24c25cd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/24c25cd408240021bc6c67b6c1e4983e222e25bf))
|
|
75
|
+
* Merge branch 'tm-2595-accessibility-scores' into 'master' ([191f7ce](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/191f7cee4eedeee855e8848d20c6910ff1db1195))
|
|
76
|
+
|
|
1
77
|
## [2.3.8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.7...v2.3.8) (2021-11-23)
|
|
2
78
|
|
|
3
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.3",
|
|
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": "^1.6.
|
|
34
|
+
"gatsby-core-theme": "^1.6.13",
|
|
35
35
|
"gatsby-image": "^3.3.0",
|
|
36
36
|
"gatsby-plugin-image": "^1.3.1",
|
|
37
37
|
"gatsby-plugin-postcss": "^4.3.0",
|
|
@@ -32,7 +32,7 @@ const ArticleCard = ({ item }) => {
|
|
|
32
32
|
<BaseCard item={item} cardType="article">
|
|
33
33
|
{!featured && (
|
|
34
34
|
<div className={styles.cardBanner}>
|
|
35
|
-
<Link to={path} className="article-card-gtm">
|
|
35
|
+
<Link to={path} className="article-card-gtm" aria-label={`${title} Link`}>
|
|
36
36
|
{banner ? (
|
|
37
37
|
<LazyImage src={imagePrettyUrl(banner)} alt={title} />
|
|
38
38
|
) : (
|
|
@@ -25,7 +25,7 @@ const GameCard = ({ item, button_text = 'play_now' }) => {
|
|
|
25
25
|
<BaseCard item={item} isLinked cardType="game">
|
|
26
26
|
{!featured && (
|
|
27
27
|
<div className={styles.cardBanner}>
|
|
28
|
-
<Link to={path} className="game-card-gtm">
|
|
28
|
+
<Link to={path} className="game-card-gtm" aria-label={`${title} Link`}>
|
|
29
29
|
<LazyImage src={imagePrettyUrl(banner)} alt={title} />
|
|
30
30
|
</Link>
|
|
31
31
|
</div>
|
|
@@ -3,22 +3,20 @@ import React, { useContext } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { FaStar } from 'react-icons/fa';
|
|
5
5
|
import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
|
|
6
|
-
import { imagePrettyUrl,
|
|
7
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
6
|
+
import { imagePrettyUrl, translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
8
7
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
9
8
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
10
9
|
import Bonus from 'gatsby-core-theme/src/components/atoms/bonus';
|
|
11
10
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
12
11
|
import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
|
|
12
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
|
|
13
13
|
import BaseCard from '../base-card';
|
|
14
14
|
import styles from './operator-card.module.scss';
|
|
15
15
|
|
|
16
16
|
const OperatorCard = ({ item, featured = false, number }) => {
|
|
17
17
|
const { relation, path } = item;
|
|
18
|
-
const prettyLink = prettyTracker(relation);
|
|
19
18
|
const reviewPath = path || relation.path;
|
|
20
19
|
const status = relation?.status;
|
|
21
|
-
const isActive = status === 'active';
|
|
22
20
|
const isInactive = status === 'inactive';
|
|
23
21
|
const backgroundImage = number === 1 ? 'featuredCasino' : null;
|
|
24
22
|
const { translations } = useContext(Context) || {};
|
|
@@ -71,15 +69,12 @@ const OperatorCard = ({ item, featured = false, number }) => {
|
|
|
71
69
|
</Link>
|
|
72
70
|
</div>
|
|
73
71
|
<div className={`${styles.cardButtons}`}>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
gtmClass="operator-card-gtm btn-cta"
|
|
81
|
-
/>
|
|
82
|
-
)}
|
|
72
|
+
<OperatorCta
|
|
73
|
+
tracker="main"
|
|
74
|
+
operator={relation}
|
|
75
|
+
playText={translate(translations, 'play_now', 'Play Now')}
|
|
76
|
+
gtmClass="operator-card-gtm btn-cta"
|
|
77
|
+
/>
|
|
83
78
|
</div>
|
|
84
79
|
{relation?.extra_fields?.terms_and_conditions_text_enabled === '1' && (
|
|
85
80
|
<div className={styles.tnc}>
|
|
@@ -17,7 +17,11 @@ const PaymentMethodCard = ({ item, showTitle = true, showDesc = true }) => {
|
|
|
17
17
|
<BaseCard item={item} cardType="payment_method">
|
|
18
18
|
<div className={styles.content}>
|
|
19
19
|
<div className={styles.header}>
|
|
20
|
-
<Link
|
|
20
|
+
<Link
|
|
21
|
+
className={`${styles.links} payment-method-card-gtm`}
|
|
22
|
+
aria-label={`${title} Link`}
|
|
23
|
+
to={path}
|
|
24
|
+
>
|
|
21
25
|
<LazyImage className={styles.logo} src={imagePrettyUrl(relation?.logo)} />
|
|
22
26
|
</Link>
|
|
23
27
|
{showTitle && (
|
|
@@ -26,7 +26,11 @@ const SoftwareProviderCard = ({
|
|
|
26
26
|
<BaseCard item={item} cardType="software_provider">
|
|
27
27
|
<div className={styles.content}>
|
|
28
28
|
<div className={styles.header}>
|
|
29
|
-
<Link
|
|
29
|
+
<Link
|
|
30
|
+
className={`${styles.links} software-provider-card-gtm`}
|
|
31
|
+
aria-label={`${title} Link`}
|
|
32
|
+
to={path}
|
|
33
|
+
>
|
|
30
34
|
<LazyImage className={styles.logo} src={imagePrettyUrl(relation?.logo)} />
|
|
31
35
|
</Link>
|
|
32
36
|
{showTitle && (
|
|
@@ -33,7 +33,13 @@ const SocialIcons = ({ socialIcons }) => {
|
|
|
33
33
|
{keys.map(
|
|
34
34
|
(key) =>
|
|
35
35
|
socialIcons[key] && (
|
|
36
|
-
<a
|
|
36
|
+
<a
|
|
37
|
+
key={keygen()}
|
|
38
|
+
aria-label={`${key} Link`}
|
|
39
|
+
href={socialIcons[key]}
|
|
40
|
+
target="_blank"
|
|
41
|
+
rel="noreferrer"
|
|
42
|
+
>
|
|
37
43
|
{switchIcons(key)}
|
|
38
44
|
</a>
|
|
39
45
|
)
|
|
@@ -64,11 +64,17 @@ const Spotlights = ({ module, page }) => {
|
|
|
64
64
|
target="_blank"
|
|
65
65
|
rel="noreferrer"
|
|
66
66
|
className="spotlights-gtm"
|
|
67
|
+
aria-label={item.label || item.title}
|
|
67
68
|
>
|
|
68
69
|
{content(item)}
|
|
69
70
|
</a>
|
|
70
71
|
) : (
|
|
71
|
-
<Link
|
|
72
|
+
<Link
|
|
73
|
+
to={item.link.value}
|
|
74
|
+
title={item.label}
|
|
75
|
+
className="spotlights-gtm"
|
|
76
|
+
aria-label={item.label || item.title}
|
|
77
|
+
>
|
|
72
78
|
{content(item)}
|
|
73
79
|
</Link>
|
|
74
80
|
)}
|
|
@@ -114,6 +120,7 @@ const Spotlights = ({ module, page }) => {
|
|
|
114
120
|
target="_blank"
|
|
115
121
|
rel="noreferrer"
|
|
116
122
|
className="spotlights-gtm"
|
|
123
|
+
aria-label={item.label || item.title}
|
|
117
124
|
>
|
|
118
125
|
{content(item)}
|
|
119
126
|
</a>
|
|
@@ -10,11 +10,16 @@ import keygen from 'gatsby-core-theme/src/helpers/keygen';
|
|
|
10
10
|
import AuthorBox from 'gatsby-core-theme/src/components/atoms/author-box';
|
|
11
11
|
import Newsletter from '../../../../components/molecules/newsletter';
|
|
12
12
|
|
|
13
|
-
const Main = ({ section = {},
|
|
13
|
+
const Main = ({ section = {}, pageContext = {}, showNewsletter = false }) => {
|
|
14
|
+
const { page } = pageContext;
|
|
14
15
|
const SearchPage =
|
|
15
16
|
page.path === 's'
|
|
16
17
|
? loadable(() => import(`gatsby-core-theme/src/components/pages/search`))
|
|
17
18
|
: null;
|
|
19
|
+
const HtmlSitemap =
|
|
20
|
+
page.path === 'sitemap'
|
|
21
|
+
? loadable(() => import(`gatsby-core-theme/src/components/atoms/sitemap`))
|
|
22
|
+
: null;
|
|
18
23
|
const NewsletterSuccess =
|
|
19
24
|
typeof window !== 'undefined' && Boolean(getURLParam('subscribed'))
|
|
20
25
|
? loadable(() => import(`../../../../components/atoms/newsletter/success`))
|
|
@@ -26,6 +31,7 @@ const Main = ({ section = {}, page = {}, pageContext = {}, showNewsletter = fals
|
|
|
26
31
|
return (
|
|
27
32
|
<main className={styles.modulePage}>
|
|
28
33
|
{NotFound && <NotFound />}
|
|
34
|
+
{HtmlSitemap && <HtmlSitemap pageContext={pageContext} />}
|
|
29
35
|
{section.modules &&
|
|
30
36
|
section.modules.map((module) => (
|
|
31
37
|
<Module key={keygen()} module={module} page={page} pageContext={pageContext} />
|
|
@@ -59,7 +59,12 @@ const Navigation = ({
|
|
|
59
59
|
>
|
|
60
60
|
<nav className={styles.nav} style={{ justifyContent: logoPosition }} ref={navRef}>
|
|
61
61
|
<NavigationProvider>
|
|
62
|
-
<Link
|
|
62
|
+
<Link
|
|
63
|
+
className={`${styles.logo} main-menu-gtm logo-cta`}
|
|
64
|
+
aria-label="Nav Logo"
|
|
65
|
+
to="/"
|
|
66
|
+
onClick={onClickHandler}
|
|
67
|
+
>
|
|
63
68
|
<img
|
|
64
69
|
alt={process.env.GATSBY_SITE_NAME}
|
|
65
70
|
src={logo}
|
|
@@ -79,10 +79,11 @@ function Body({ pageContext, children }) {
|
|
|
79
79
|
) : (
|
|
80
80
|
<>
|
|
81
81
|
{!isSearch && !is404 && <Header section={pageContext} />}
|
|
82
|
-
{main && !children && <Main section={main}
|
|
82
|
+
{main && !children && <Main section={main} pageContext={pageContext} />}
|
|
83
83
|
{children && <main>{children}</main>}
|
|
84
84
|
{pageType === 'operator' && !hideBanner && (
|
|
85
85
|
<OperatorBanner
|
|
86
|
+
template={template}
|
|
86
87
|
sticky
|
|
87
88
|
logo={pageContext.page.relation.logo_url}
|
|
88
89
|
operator={pageContext.page.relation}
|
|
@@ -113,7 +114,7 @@ function Body({ pageContext, children }) {
|
|
|
113
114
|
page={pageContext?.page}
|
|
114
115
|
hasFooterLinks={FooterNavigation !== null}
|
|
115
116
|
/>
|
|
116
|
-
<CookieConsent>
|
|
117
|
+
<CookieConsent template={template}>
|
|
117
118
|
<p>
|
|
118
119
|
We use cookies in order to optimise our site and improve your experience with us. By using
|
|
119
120
|
the site you consent to our
|