gatsby-core-theme 44.0.36 → 44.0.38
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 +27 -0
- package/package.json +1 -1
- package/src/components/organisms/search/index.js +2 -1
- package/src/components/organisms/search/variable/index.js +10 -8
- package/src/constants/pick-keys.mjs +4 -1
- package/src/helpers/fetch-site-settings.mjs +9 -8
- package/src/helpers/processor/operators.mjs +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## [44.0.38](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.37...v44.0.38) (2025-05-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove unecessary changes ([32c3d5c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/32c3d5ce3cc0cc7250116bf5c532536f6a94f733))
|
|
7
|
+
* update search variable ([91c4a6e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/91c4a6e5feb190f5f65b4c757df1e06b0174c4d5))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'update-search-variable' into 'master' ([d266cc2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d266cc29fc42768b2ad460a715835f2f24f388b0))
|
|
11
|
+
|
|
12
|
+
## [44.0.37](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.36...v44.0.37) (2025-05-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* add best games ([b6bb5ff](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b6bb5ffc46cbdcdfcc2a249941e5783cf5ec335d))
|
|
18
|
+
* added keys ([c6dd07a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c6dd07ae4f75a8ee010b437c32ce3c6cb5bc2a33))
|
|
19
|
+
* remove unecessary change ([689c3ad](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/689c3adb1bd591fdee2d0f0ef36e75886e24d9f9))
|
|
20
|
+
* update common for cards to include author details ([3846214](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3846214e0cec088dd0ac043907e6d7ce8d3989ae))
|
|
21
|
+
* update search variable classnames ([377346c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/377346c9b234977e3cf41aef7d882e473329c69a))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* Merge branch 'update-search-variable' into 'master' ([d67c870](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d67c870c5f7874931f22441fee596fb12b860095))
|
|
25
|
+
* Merge branch 'tm-5230-data-point' into 'master' ([16ae411](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/16ae411b9c27c6408332e7e96bd6574f0b8e2f51))
|
|
26
|
+
* Merge branch 'tm-5230-data-point' into 'master' ([89cb8aa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/89cb8aa7f2996839c68fbbf5171e6c7e90960a9f))
|
|
27
|
+
|
|
1
28
|
## [44.0.36](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.35...v44.0.36) (2025-05-12)
|
|
2
29
|
|
|
3
30
|
|
package/package.json
CHANGED
|
@@ -150,7 +150,7 @@ const SearchForm = ({
|
|
|
150
150
|
) : (
|
|
151
151
|
<img alt="Search Icon" src={searchIcon} width={iconWidth} height={iconHeight} />
|
|
152
152
|
)}
|
|
153
|
-
{styles.close && <span className={styles.close ||
|
|
153
|
+
{styles.close && <span className={styles.close || ""} />}
|
|
154
154
|
</button>
|
|
155
155
|
{localSearch && (
|
|
156
156
|
<div
|
|
@@ -243,6 +243,7 @@ const SearchForm = ({
|
|
|
243
243
|
showAutoComplete={showAutoComplete}
|
|
244
244
|
autocompleteEnabled={autocompleteEnabled}
|
|
245
245
|
extraClass={styles.fromSearchAutocomplete}
|
|
246
|
+
filteredData={filteredData}
|
|
246
247
|
/>
|
|
247
248
|
)}
|
|
248
249
|
</div>
|
|
@@ -15,10 +15,17 @@ const VariableComponent = ({
|
|
|
15
15
|
RecommendedItem,
|
|
16
16
|
showAutoComplete,
|
|
17
17
|
autocompleteEnabled,
|
|
18
|
+
filteredData,
|
|
18
19
|
}) => {
|
|
19
20
|
const ComponentToRender = RecommendedItem || Card;
|
|
20
21
|
return (
|
|
21
|
-
<div
|
|
22
|
+
<div
|
|
23
|
+
className={`${styles.searchVariableComponent} ${
|
|
24
|
+
showAutoComplete && autocompleteEnabled && filteredData
|
|
25
|
+
? styles.searchVariableWithAutocomplete
|
|
26
|
+
: ""
|
|
27
|
+
}`}
|
|
28
|
+
>
|
|
22
29
|
{showTopSearches && (
|
|
23
30
|
<div className={styles.topSearches}>
|
|
24
31
|
<p>Top Searches:</p>
|
|
@@ -30,13 +37,7 @@ const VariableComponent = ({
|
|
|
30
37
|
</div>
|
|
31
38
|
)}
|
|
32
39
|
{showRecommendedCasinos && (
|
|
33
|
-
<div
|
|
34
|
-
className={`${styles.recommendedCasinos || ""} ${
|
|
35
|
-
showAutoComplete && autocompleteEnabled
|
|
36
|
-
? styles.recommendedCasinosWithAutoComplete
|
|
37
|
-
: ""
|
|
38
|
-
}`}
|
|
39
|
-
>
|
|
40
|
+
<div className={styles.recommendedCasinos || ""}>
|
|
40
41
|
<p className={styles.recommendedCasinosHeader}>
|
|
41
42
|
{useTranslate("recommendedCasinosHeader", "Recommended Casinos")}
|
|
42
43
|
</p>
|
|
@@ -70,6 +71,7 @@ VariableComponent.propTypes = {
|
|
|
70
71
|
).isRequired,
|
|
71
72
|
extraClass: PropTypes.string,
|
|
72
73
|
RecommendedItem: PropTypes.elementType.isRequired,
|
|
74
|
+
filteredData: PropTypes.shape({})
|
|
73
75
|
};
|
|
74
76
|
|
|
75
77
|
export default VariableComponent;
|
|
@@ -124,7 +124,10 @@ export const pickRelationKeys = {
|
|
|
124
124
|
"cooling_off_time_out_tool",
|
|
125
125
|
"reality_check",
|
|
126
126
|
"self_assessment_test",
|
|
127
|
-
'languages'
|
|
127
|
+
'languages',
|
|
128
|
+
'average_deposit_fee_amount',
|
|
129
|
+
'average_withdrawal_times',
|
|
130
|
+
'best_game'
|
|
128
131
|
],
|
|
129
132
|
operator_simplified: [
|
|
130
133
|
"short_name",
|
|
@@ -64,7 +64,7 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
64
64
|
const pagesPromise = getPages(process.env.GATSBY_SITE_NAME, previewPath);
|
|
65
65
|
|
|
66
66
|
let sportsPromise = Promise.resolve({});
|
|
67
|
-
if(["rage_seo", "rage_ppc", "sports"].includes(siteSettingsData.general[siteId].type)) {
|
|
67
|
+
if (["rage_seo", "rage_ppc", "sports"].includes(siteSettingsData.general[siteId].type)) {
|
|
68
68
|
sportsPromise = getSports(process.env.GATSBY_SITE_NAME);
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -118,20 +118,21 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
118
118
|
|
|
119
119
|
const paymentData = transformPayments(payments);
|
|
120
120
|
|
|
121
|
+
const gamesData = transformGames(games, {
|
|
122
|
+
providers: providersData,
|
|
123
|
+
jackpot_data: transformGamesJackpot(gamesJackpotData)
|
|
124
|
+
});
|
|
125
|
+
|
|
121
126
|
const operatorData = transformOperators(operators, {
|
|
122
127
|
payments: paymentData,
|
|
123
128
|
ribbons: ribbonsData,
|
|
124
129
|
countries: countriesData,
|
|
125
130
|
currencies: currenciesData,
|
|
126
131
|
providers: providersData,
|
|
132
|
+
games: gamesData,
|
|
127
133
|
gamblingCompanies: gamblingCompaniesData,
|
|
128
134
|
});
|
|
129
135
|
|
|
130
|
-
const gamesData = transformGames(games, {
|
|
131
|
-
providers: providersData,
|
|
132
|
-
jackpot_data: transformGamesJackpot(gamesJackpotData)
|
|
133
|
-
});
|
|
134
|
-
|
|
135
136
|
const cryptoExchangesData = transformCryptosData(cryptoExchanges, {
|
|
136
137
|
countries: countriesData,
|
|
137
138
|
currencies: currenciesData,
|
|
@@ -145,10 +146,10 @@ export const fetchSiteSettings = async (siteName, previewPath = null) => {
|
|
|
145
146
|
})
|
|
146
147
|
|
|
147
148
|
|
|
148
|
-
if(["rage_seo", "rage_ppc", "sports"].includes(siteSettingsData.general[siteId].type)) {
|
|
149
|
+
if (["rage_seo", "rage_ppc", "sports"].includes(siteSettingsData.general[siteId].type)) {
|
|
149
150
|
const teamIds = Object.values(sportsData.teams).map((team) => String(team.livegoals_v2_id));
|
|
150
151
|
const teamKits = await getTeamJerseys(teamIds);
|
|
151
|
-
|
|
152
|
+
|
|
152
153
|
sportsData.team_kits = groupBy(teamKits, 'participant_id');
|
|
153
154
|
}
|
|
154
155
|
|
|
@@ -59,8 +59,8 @@ export function sanitizeOperatorData(operator, operatorPage = [], data = [], top
|
|
|
59
59
|
if (operatorPage.length >= 1) {
|
|
60
60
|
operatorClone.updatedAt = operatorPage[0].updated_at;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
return pick(operatorClone, toplistLabel && toplistLabel.includes('simplified') ? pickRelationKeys.operator_simplified : pickRelationKeys.operator
|
|
62
|
+
|
|
63
|
+
return pick(operatorClone, toplistLabel && toplistLabel.includes('simplified') ? pickRelationKeys.operator_simplified : pickRelationKeys.operator);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export function transformOperators(jsonData, relationsData) {
|
|
@@ -128,8 +128,16 @@ export function transformOperators(jsonData, relationsData) {
|
|
|
128
128
|
relationsData.countries
|
|
129
129
|
);
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
// // Best_game
|
|
132
|
+
if (newOperatorData?.best_game_id) {
|
|
133
|
+
const bestGameKey = Object?.keys(relationsData?.games)?.find(
|
|
134
|
+
(key) => relationsData?.games[key]?.game_id === newOperatorData?.best_game_id
|
|
135
|
+
);
|
|
136
|
+
newOperatorData.best_game = relationsData?.games?.[bestGameKey] || null;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Providers
|
|
140
|
+
newOperatorData.software = processProviders(
|
|
133
141
|
newOperatorData.game_provider_ids,
|
|
134
142
|
relationsData.providers
|
|
135
143
|
);
|