gatsby-core-theme 40.0.18 → 40.0.20
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 +22 -0
- package/package.json +1 -1
- package/src/components/atoms/header-operator-bannner/index.js +1 -1
- package/src/components/molecules/bonus/template-one/index.js +1 -1
- package/src/components/molecules/bonus/template-two/index.js +2 -2
- package/src/components/molecules/header/variants/operator/template-one-two/index.js +5 -3
- package/src/components/molecules/toplist/default-row/index.js +2 -2
- package/src/helpers/processor/index.mjs +3 -1
- package/src/helpers/processor/sports.mjs +1 -1
- package/src/helpers/schema.js +2 -1
- package/src/helpers/validateData.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## [40.0.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.19...v40.0.20) (2024-10-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix schema validation ([1013cf1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1013cf1dec1c33040f5eaf7ae2d6e0ebde1a80c4))
|
|
7
|
+
* tracking api v3 ([eac3b3b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/eac3b3badaac2898d11350a1dfbc32ecddf49346))
|
|
8
|
+
* update post main error ([151d7ce](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/151d7cef132a077bdadd4e8c169a7c8ba72a39b4))
|
|
9
|
+
* video schema remove for links that aren youtube ([6df629a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6df629ae7f7b17046fb9dda7b118de76a2cab5b9))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* Merge branch 'update-error' into 'master' ([ef753ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ef753ca1d7fc1bbe1cf0561a34e9573d2f9d2ea2))
|
|
13
|
+
* Merge branch 'tm-4898-tracking-api-v3' into 'master' ([96d5cf5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/96d5cf5e398f1c4fa3ad15eb6e93f666e901defd))
|
|
14
|
+
* Merge branch 'tm-4905-remove-video-schema' into 'master' ([2e712f3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2e712f3512d4e1d3accb6f3adcfaabb72a05f51d))
|
|
15
|
+
|
|
16
|
+
## [40.0.19](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.18...v40.0.19) (2024-10-28)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* added sports data to sports homepage ([522ff41](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/522ff410835abba0b681b1fd07b9198dce02b2e6))
|
|
22
|
+
|
|
1
23
|
## [40.0.18](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.17...v40.0.18) (2024-10-28)
|
|
2
24
|
|
|
3
25
|
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export default function Bonus({
|
|
|
32
32
|
pageTemplate={pageTemplate}
|
|
33
33
|
module={module.name}
|
|
34
34
|
tracker={module?.tracking_link_name || "main"}
|
|
35
|
-
clickedElement="
|
|
35
|
+
clickedElement="operator_logo"
|
|
36
36
|
className={`${styles.logo || ""} operator-banner-gtm logo-cta`}
|
|
37
37
|
modulePosition={modulePosition}
|
|
38
38
|
>
|
|
@@ -55,7 +55,7 @@ export default function TemplateOne({
|
|
|
55
55
|
pageTemplate={pageTemplate}
|
|
56
56
|
module={module.name}
|
|
57
57
|
tracker={module?.tracking_link_name || "main"}
|
|
58
|
-
clickedElement="
|
|
58
|
+
clickedElement="operator_logo"
|
|
59
59
|
className={`${styles.logo || ""} operator-banner-gtm logo-cta`}
|
|
60
60
|
>
|
|
61
61
|
<LazyImage
|
|
@@ -83,7 +83,7 @@ export default function TemplateOne({
|
|
|
83
83
|
<p className={styles.welcomeBonus}>{welcomeBonusText}</p>
|
|
84
84
|
)}
|
|
85
85
|
|
|
86
|
-
<BonusBox item={operator} tracker={module?.type || "main"} pageTemplate={pageTemplate} />
|
|
86
|
+
<BonusBox module={module.name} item={operator} tracker={module?.type || "main"} pageTemplate={pageTemplate} />
|
|
87
87
|
{!tncFixed && <Tnc isFixed={tncFixed} operator={operator} />}
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
@@ -34,9 +34,9 @@ const TemplateOneTwo = ({
|
|
|
34
34
|
<PrettyLink
|
|
35
35
|
operator={relation}
|
|
36
36
|
pageTemplate={pageTemplate}
|
|
37
|
-
module="
|
|
37
|
+
module="header_operator_logo"
|
|
38
38
|
tracker="main"
|
|
39
|
-
clickedElement="
|
|
39
|
+
clickedElement="operator_logo"
|
|
40
40
|
className="header-gtm logo-cta "
|
|
41
41
|
>
|
|
42
42
|
<LazyImage
|
|
@@ -49,6 +49,8 @@ const TemplateOneTwo = ({
|
|
|
49
49
|
</PrettyLink>
|
|
50
50
|
);
|
|
51
51
|
|
|
52
|
+
const TBAtext = useTranslate('tba', 'TBA');
|
|
53
|
+
|
|
52
54
|
return (
|
|
53
55
|
<div
|
|
54
56
|
className={`${styles.container} ${
|
|
@@ -90,7 +92,7 @@ const TemplateOneTwo = ({
|
|
|
90
92
|
) : (
|
|
91
93
|
<div className={styles.ratingInactive}>
|
|
92
94
|
<FaStar title="Star Icon" />
|
|
93
|
-
{
|
|
95
|
+
{TBAtext}
|
|
94
96
|
</div>
|
|
95
97
|
)}
|
|
96
98
|
</div>
|
|
@@ -22,7 +22,7 @@ const Row = ({
|
|
|
22
22
|
index,
|
|
23
23
|
className,
|
|
24
24
|
nofollow = false,
|
|
25
|
-
module,
|
|
25
|
+
module = "top_list",
|
|
26
26
|
width = '100',
|
|
27
27
|
height = '100',
|
|
28
28
|
modulePosition,
|
|
@@ -52,7 +52,7 @@ const Row = ({
|
|
|
52
52
|
pageTemplate={pageTemplate}
|
|
53
53
|
module={module}
|
|
54
54
|
tracker={tracker}
|
|
55
|
-
clickedElement="
|
|
55
|
+
clickedElement="operator_logo"
|
|
56
56
|
className={`casinos-top-list-gtm logo-cta ${styles.logo}`}
|
|
57
57
|
modulePosition={modulePosition}
|
|
58
58
|
itemPosition={itemPosition}
|
|
@@ -521,9 +521,11 @@ export default {
|
|
|
521
521
|
transformedPages[market][pageType][index].relation &&
|
|
522
522
|
checkForInactiveOperatorToplist(
|
|
523
523
|
item,
|
|
524
|
-
page.relation.status
|
|
524
|
+
page.relation.status,
|
|
525
|
+
res
|
|
525
526
|
)
|
|
526
527
|
)
|
|
528
|
+
|
|
527
529
|
return;
|
|
528
530
|
|
|
529
531
|
res === "pre_main_operators"
|
|
@@ -121,7 +121,7 @@ export function addSportsDataToPage(sportsData, page, themeType) {
|
|
|
121
121
|
}
|
|
122
122
|
// rage-seo pages data
|
|
123
123
|
if (themeType === 'rage_seo' || themeType === 'sports') {
|
|
124
|
-
if (pageType === 'homepage' || pageType === 'default') {
|
|
124
|
+
if (pageType === 'homepage' || pageType === 'default' || pageType === 'homepage_sports') {
|
|
125
125
|
relation.schedule = sportsData.schedule.soccer || null;
|
|
126
126
|
relation.featured_events = sportsData.featured_events.soccer || null;
|
|
127
127
|
relation.showcased_events = sportsData.showcased_events.soccer || null;
|
package/src/helpers/schema.js
CHANGED
|
@@ -310,6 +310,7 @@ export function organizationSchema(page, pageImage) {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
export function moduleSchemas(modules, path, page, pageImage) {
|
|
313
|
+
// eslint-disable-next-line array-callback-return
|
|
313
314
|
const schema = modules.map((module, index) => {
|
|
314
315
|
switch (module.name) {
|
|
315
316
|
case 'faq': {
|
|
@@ -333,7 +334,7 @@ export function moduleSchemas(modules, path, page, pageImage) {
|
|
|
333
334
|
return null;
|
|
334
335
|
}
|
|
335
336
|
case 'iframe': {
|
|
336
|
-
if (module?.iframe_source) {
|
|
337
|
+
if (module?.iframe_source && module?.iframe_video_object) {
|
|
337
338
|
const IframeModule = module?.iframe_video_object;
|
|
338
339
|
const moduleSchema = {
|
|
339
340
|
'@context': 'https://schema.org',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* eslint-disable no-useless-return */
|
|
2
2
|
// eslint-disable-next-line import/prefer-default-export
|
|
3
|
-
export const checkForInactiveOperatorToplist = (item, status) => {
|
|
3
|
+
export const checkForInactiveOperatorToplist = (item, status, res) => {
|
|
4
4
|
const shortCode = item && item.items && item.items.length && item.items[0].value;
|
|
5
5
|
if (
|
|
6
6
|
((item.name === "top_list" && shortCode === "inactive_operator_toplist") ||
|
|
7
|
-
item.name === "cards_v2") &&
|
|
7
|
+
(item.name === "cards_v2" && res === "pre_main_operators")) &&
|
|
8
8
|
status === "active"
|
|
9
9
|
)
|
|
10
10
|
return true;
|