gatsby-core-theme 40.0.19 → 40.0.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.
- package/CHANGELOG.md +23 -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/constants/pick-keys.mjs +126 -116
- package/src/helpers/processor/index.mjs +3 -1
- package/src/helpers/processor/operators.mjs +4 -3
- package/src/helpers/schema.js +2 -1
- package/src/helpers/validateData.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [40.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.20...v40.0.21) (2024-10-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* operator data ([ac862fa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ac862fa2c379d472356bd12ebaced0f8163a2d42))
|
|
7
|
+
* operator data ([5856a93](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5856a93897c5e83c51fd72202cd56d93a796c903))
|
|
8
|
+
|
|
9
|
+
## [40.0.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.19...v40.0.20) (2024-10-29)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* fix schema validation ([1013cf1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1013cf1dec1c33040f5eaf7ae2d6e0ebde1a80c4))
|
|
15
|
+
* tracking api v3 ([eac3b3b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/eac3b3badaac2898d11350a1dfbc32ecddf49346))
|
|
16
|
+
* update post main error ([151d7ce](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/151d7cef132a077bdadd4e8c169a7c8ba72a39b4))
|
|
17
|
+
* video schema remove for links that aren youtube ([6df629a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6df629ae7f7b17046fb9dda7b118de76a2cab5b9))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* Merge branch 'update-error' into 'master' ([ef753ca](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ef753ca1d7fc1bbe1cf0561a34e9573d2f9d2ea2))
|
|
21
|
+
* Merge branch 'tm-4898-tracking-api-v3' into 'master' ([96d5cf5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/96d5cf5e398f1c4fa3ad15eb6e93f666e901defd))
|
|
22
|
+
* Merge branch 'tm-4905-remove-video-schema' into 'master' ([2e712f3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2e712f3512d4e1d3accb6f3adcfaabb72a05f51d))
|
|
23
|
+
|
|
1
24
|
## [40.0.19](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.18...v40.0.19) (2024-10-28)
|
|
2
25
|
|
|
3
26
|
|
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}
|
|
@@ -1,136 +1,146 @@
|
|
|
1
1
|
export const pickPageKeys = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"id",
|
|
3
|
+
"title",
|
|
4
|
+
"path",
|
|
5
|
+
"relation",
|
|
6
|
+
"type",
|
|
7
|
+
"author",
|
|
8
|
+
"updated_at",
|
|
9
|
+
"created_at",
|
|
10
|
+
"banner",
|
|
11
|
+
"market",
|
|
12
|
+
"sections",
|
|
13
|
+
"description",
|
|
14
|
+
"true_votes",
|
|
15
|
+
"false_votes",
|
|
16
|
+
"reading_time",
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
export const topListPickKeys = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
20
|
+
"logo",
|
|
21
|
+
"one_liner",
|
|
22
|
+
"one_liners",
|
|
23
|
+
"market",
|
|
24
|
+
"bonus",
|
|
25
|
+
"links",
|
|
26
|
+
"type",
|
|
27
|
+
"name",
|
|
28
|
+
"url_fallback",
|
|
29
|
+
"email_fallback",
|
|
30
|
+
"name_fallback",
|
|
31
|
+
"rating",
|
|
32
|
+
"rating_casino",
|
|
33
|
+
"rating_games",
|
|
34
|
+
"rating_bonuses",
|
|
35
|
+
"rating_customer",
|
|
36
|
+
"path",
|
|
37
|
+
"extra_fields",
|
|
38
|
+
"selling_points",
|
|
39
|
+
"payout_time",
|
|
40
|
+
"short_name",
|
|
41
|
+
"status",
|
|
42
|
+
"founded",
|
|
43
|
+
"ribbons",
|
|
44
|
+
"owner",
|
|
45
|
+
"support_types",
|
|
46
|
+
"authorName",
|
|
47
|
+
"authorPath",
|
|
48
|
+
"authorImage",
|
|
49
|
+
"updatedAt",
|
|
47
50
|
];
|
|
48
51
|
|
|
49
52
|
export const pickTrackerOperatorKeys = [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
]
|
|
53
|
+
"name",
|
|
54
|
+
"logo",
|
|
55
|
+
"links",
|
|
56
|
+
"market",
|
|
57
|
+
"short_name",
|
|
58
|
+
"type",
|
|
59
|
+
];
|
|
57
60
|
|
|
58
61
|
export const pickRelationKeys = {
|
|
59
|
-
event: [
|
|
60
|
-
tournament: [
|
|
62
|
+
event: ["event"],
|
|
63
|
+
tournament: ["tournaments"],
|
|
61
64
|
operator: [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
65
|
+
"software",
|
|
66
|
+
"market",
|
|
67
|
+
"logo",
|
|
68
|
+
"one_liner",
|
|
69
|
+
"operator_id",
|
|
70
|
+
"one_liners",
|
|
71
|
+
"bonus",
|
|
72
|
+
"selling_points",
|
|
73
|
+
"founded",
|
|
74
|
+
"name",
|
|
75
|
+
"rating",
|
|
76
|
+
"rating_casino",
|
|
77
|
+
"rating_games",
|
|
78
|
+
"rating_bonuses",
|
|
79
|
+
"rating_customer",
|
|
80
|
+
"rating_payout",
|
|
81
|
+
"type",
|
|
82
|
+
"types",
|
|
83
|
+
"path",
|
|
84
|
+
"short_name",
|
|
85
|
+
"links",
|
|
86
|
+
"extra_fields",
|
|
87
|
+
"status",
|
|
88
|
+
"ribbons",
|
|
89
|
+
"email",
|
|
90
|
+
"url",
|
|
91
|
+
"games_amount",
|
|
92
|
+
"review_link",
|
|
93
|
+
"payout_time",
|
|
94
|
+
"support_types",
|
|
95
|
+
"url_fallback",
|
|
96
|
+
"email_fallback",
|
|
97
|
+
"name_fallback",
|
|
92
98
|
],
|
|
93
99
|
game: [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
100
|
+
"id",
|
|
101
|
+
"game_provider",
|
|
102
|
+
"first_rating",
|
|
103
|
+
"second_rating",
|
|
104
|
+
"third_rating",
|
|
105
|
+
"fourth_rating",
|
|
106
|
+
"standardised_logo_filename_object",
|
|
107
|
+
"thumbnail_filename",
|
|
108
|
+
"thumbnail_filename_object",
|
|
109
|
+
"name",
|
|
110
|
+
"iframe",
|
|
111
|
+
"average_rating",
|
|
112
|
+
"maximum_bet",
|
|
113
|
+
"volatility",
|
|
114
|
+
"rtp",
|
|
115
|
+
"freespins",
|
|
116
|
+
"number_of_reels",
|
|
117
|
+
"winning_lines",
|
|
118
|
+
"affiliate_games",
|
|
119
|
+
"minimum_bet",
|
|
120
|
+
"jackpots",
|
|
121
|
+
"launch_date",
|
|
116
122
|
],
|
|
117
123
|
software_provider: [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
"logo_filename_object",
|
|
125
|
+
"logo_filename",
|
|
126
|
+
"games_count",
|
|
127
|
+
"name",
|
|
128
|
+
"standardised_logo_filename_object",
|
|
123
129
|
],
|
|
124
130
|
payment_method: [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
"logo_filename_object",
|
|
132
|
+
"logo_filename",
|
|
133
|
+
"name",
|
|
134
|
+
"rating",
|
|
135
|
+
"standardised_logo_filename_object",
|
|
136
|
+
"selling_points",
|
|
131
137
|
],
|
|
132
138
|
};
|
|
133
139
|
|
|
134
|
-
export const pickHTMLSitemapPageKeys = [
|
|
140
|
+
export const pickHTMLSitemapPageKeys = ["title", "path", "template_id"];
|
|
135
141
|
|
|
136
|
-
export const pickAuthorsPageKeys = [
|
|
142
|
+
export const pickAuthorsPageKeys = [
|
|
143
|
+
"name",
|
|
144
|
+
"email_address",
|
|
145
|
+
"profile_page_path",
|
|
146
|
+
];
|
|
@@ -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"
|
|
@@ -19,9 +19,10 @@ export function sanitizeOperatorData(
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
// Set Fallbacks
|
|
22
|
-
clone.
|
|
22
|
+
clone.url_fallback = operator?.bonus?.operator_url || operator.url;
|
|
23
|
+
clone.email_fallback = operator?.bonus?.support_email || operator.email;
|
|
23
24
|
clone.email = operator?.bonus?.support_email || operator.email;
|
|
24
|
-
clone.
|
|
25
|
+
clone.name_fallback = operator?.bonus?.operator_name || operator.name;
|
|
25
26
|
|
|
26
27
|
// Set Ribbons
|
|
27
28
|
if (ribbons && ribbons.length && data && data.ribbons) {
|
|
@@ -93,7 +94,7 @@ export function sanitizeOperatorData(
|
|
|
93
94
|
operatorClone.standardised_logo_url_object ||
|
|
94
95
|
operatorClone.default_logo_url_object;
|
|
95
96
|
|
|
96
|
-
return Object.assign(
|
|
97
|
+
return Object.assign(clone, operator);
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
// NOTE: To add tests once we start using it
|
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;
|