gatsby-core-theme 40.0.14 → 40.0.16
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 +21 -0
- package/package.json +1 -1
- package/src/components/atoms/ratings/index.js +5 -1
- package/src/components/molecules/content/content.module.scss +1 -1
- package/src/components/organisms/cookie-consent/cookie-consent.module.scss +9 -1
- package/src/components/organisms/cookie-consent/index.js +14 -0
- package/src/components/organisms/form/index.js +3 -3
- package/src/constants/admin-bar.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [40.0.16](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.15...v40.0.16) (2024-10-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add translation ([ab4ae76](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ab4ae7618dd5b7c143777b36edbde61496e66f72))
|
|
7
|
+
* add translation for a range text ([46e0ecd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/46e0ecda82a68c8dfd4c07675c5ff3b748b19b41))
|
|
8
|
+
* column layout ([9582a92](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9582a92b138b9cae84b30b79aa2389f487c4eec9))
|
|
9
|
+
* update cookie banner ([9ba3a0d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9ba3a0d72086c50ebdb9d67c431b936f5684bfb2))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* Merge branch 'tm-4911-cookie-banner' into 'master' ([22880c0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/22880c00a53a223227746c62b39c42df5de0cd8d))
|
|
13
|
+
* Merge branch 'slot-header-translation' into 'master' ([33f604d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/33f604d03b38b0b058018474265c2773b2a6f059))
|
|
14
|
+
|
|
15
|
+
## [40.0.15](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.14...v40.0.15) (2024-10-25)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add validation ([af797b3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/af797b31ecaca038f2c5ee17d3f20f2c7efe07a1))
|
|
21
|
+
|
|
1
22
|
## [40.0.14](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.13...v40.0.14) (2024-10-25)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -25,7 +25,11 @@ export default function Ratings({
|
|
|
25
25
|
|
|
26
26
|
const ratings = operatorRatings[typeCheck] || [];
|
|
27
27
|
|
|
28
|
-
const rangeText = {
|
|
28
|
+
const rangeText = {
|
|
29
|
+
0: useTranslate("range_low", "Low"),
|
|
30
|
+
1: useTranslate("range_medium", "Medium"),
|
|
31
|
+
2: useTranslate("range_high", "High"),
|
|
32
|
+
};
|
|
29
33
|
|
|
30
34
|
// (item?.bonus || item) for the games we don't have ratings in market
|
|
31
35
|
const ratingsData = operatorRatings.ratingProperties.some(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
1
2
|
.cookieConsent {
|
|
2
3
|
color: var(--cookie-consent-text-color);
|
|
3
4
|
font-size: var(--cookie-consent-text-size);
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
text-transform: capitalize;
|
|
54
55
|
width: 100%;
|
|
55
56
|
background: var(--cookie-consent-button);
|
|
56
|
-
color: var(--cookie-consent-button-color, white)
|
|
57
|
+
color: var(--cookie-consent-button-color, white);
|
|
57
58
|
|
|
58
59
|
&:first-child {
|
|
59
60
|
color: var(--cookie-consent-first-button-color, #1b1b1c) !important;
|
|
@@ -147,4 +148,11 @@
|
|
|
147
148
|
|
|
148
149
|
.show {
|
|
149
150
|
display: block;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
.rejectButton {
|
|
155
|
+
color: var(--cookie-consent-reject-button-color, #1b1b1c) !important;
|
|
156
|
+
background-color: var(--cookie-consent-reject-button-bg, white);
|
|
157
|
+
border: var(--cookie-consent-reject-button-border, 2px solid #262629);
|
|
150
158
|
}
|
|
@@ -11,11 +11,13 @@ import styles from './cookie-consent.module.scss';
|
|
|
11
11
|
|
|
12
12
|
const CookieConsent = ({
|
|
13
13
|
acceptText = 'Accept',
|
|
14
|
+
rejectText = 'Reject',
|
|
14
15
|
settingsCookie,
|
|
15
16
|
children,
|
|
16
17
|
cookieName = 'CookieConsent',
|
|
17
18
|
logo = '/images/logo.svg',
|
|
18
19
|
icon = null,
|
|
20
|
+
showRejectButton=false
|
|
19
21
|
}) => {
|
|
20
22
|
const [showModal, setShowModal] = useState(false);
|
|
21
23
|
|
|
@@ -73,6 +75,16 @@ const CookieConsent = ({
|
|
|
73
75
|
{icon && icon}
|
|
74
76
|
</button>
|
|
75
77
|
)}
|
|
78
|
+
{showRejectButton && (
|
|
79
|
+
<button
|
|
80
|
+
onClick={() => handleDecline()}
|
|
81
|
+
className={`${styles.rejectButton} cookie-consent-gtm btn-cta`}
|
|
82
|
+
type="button"
|
|
83
|
+
>
|
|
84
|
+
{/* eslint-disable-next-line react/jsx-no-comment-textnodes, react-hooks/rules-of-hooks */}
|
|
85
|
+
{useTranslate("cookie_reject_button", rejectText)}
|
|
86
|
+
</button>
|
|
87
|
+
)}
|
|
76
88
|
<button
|
|
77
89
|
onClick={() => handleAccept()}
|
|
78
90
|
className="cookie-consent-gtm btn-cta"
|
|
@@ -99,6 +111,8 @@ const CookieConsent = ({
|
|
|
99
111
|
|
|
100
112
|
CookieConsent.propTypes = {
|
|
101
113
|
acceptText: PropTypes.string,
|
|
114
|
+
rejectText: PropTypes.string,
|
|
115
|
+
showRejectButton: PropTypes.bool,
|
|
102
116
|
settingsCookie: PropTypes.bool,
|
|
103
117
|
cookieName: PropTypes.string,
|
|
104
118
|
logo: PropTypes.string,
|
|
@@ -201,10 +201,10 @@ const FormComponent = ({
|
|
|
201
201
|
)}
|
|
202
202
|
{!customError && (state.success || state.failed || !state.isValid) && (
|
|
203
203
|
<div className={styles.formAlerts || ''}>
|
|
204
|
-
{state.success && <div className={styles.alertSuccess || ''}>{successMessage}</div>}
|
|
205
|
-
{state.failed && <div className={styles.alertDanger || ''}>{failMessage}</div>}
|
|
204
|
+
{state.success && <div className={styles.alertSuccess || ''}>{useTranslate("success_message",successMessage)}</div>}
|
|
205
|
+
{state.failed && <div className={styles.alertDanger || ''}>{useTranslate('fail_message', failMessage)}</div>}
|
|
206
206
|
{!state.isValid && (
|
|
207
|
-
<div className={styles.alertWarning || ''}>{validationMessage}</div>
|
|
207
|
+
<div className={styles.alertWarning || ''}>{useTranslate('validation_message',validationMessage)}</div>
|
|
208
208
|
)}
|
|
209
209
|
</div>
|
|
210
210
|
)}
|
|
@@ -31,21 +31,21 @@ export const menusConfig = (menuObj, footerSection, page, types) => [
|
|
|
31
31
|
buttonText: "Edit as seen on",
|
|
32
32
|
icon: <FiEye fontSize={20} />,
|
|
33
33
|
type: "menu",
|
|
34
|
-
data: footerSection?.as_seen_on
|
|
34
|
+
data: footerSection?.as_seen_on?.id,
|
|
35
35
|
description: "Change the items within the ‘As seen on’ section.",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
buttonText: "Edit footer links",
|
|
39
39
|
icon: <IoLink fontSize={20}/>,
|
|
40
40
|
type: "menu",
|
|
41
|
-
data: footerSection?.links
|
|
41
|
+
data: footerSection?.links?.id,
|
|
42
42
|
description: "Change the URL and labels within the footer menu.",
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
buttonText: "Edit Social icons",
|
|
46
46
|
icon: <RiInstagramLine fontSize={20} />,
|
|
47
47
|
type: "menu",
|
|
48
|
-
data: footerSection?.social_icons
|
|
48
|
+
data: footerSection?.social_icons?.id,
|
|
49
49
|
description: "Add or replace social media links.",
|
|
50
50
|
},
|
|
51
51
|
],
|