gatsby-core-theme 44.9.4 → 44.10.0
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 +31 -0
- package/package.json +1 -1
- package/src/components/atoms/comment-votes/index.js +0 -2
- package/src/components/atoms/search/autocomplete/article/article.module.scss +13 -1
- package/src/components/atoms/search/autocomplete/article/index.js +2 -0
- package/src/components/molecules/spotlights_v2/image-text/template-one/template-one.module.scss +1 -1
- package/src/components/molecules/spotlights_v2/image-text/template-three/item/style.module.scss +1 -1
- package/src/components/molecules/spotlights_v2/image-text/template-two/template-two.module.scss +1 -1
- package/src/components/organisms/search/index.js +56 -50
- package/src/constants/pick-keys.mjs +2 -0
- package/src/resolver/common.mjs +1 -1
- package/src/resolver/index.mjs +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
# [44.10.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.5...v44.10.0) (2025-12-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* Merge branch 'en-125-search-oneliner' into 'master' ([ded8e55](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ded8e558dc06b7398f8c58ccfa8bcd90768730bc))
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* oneliner on search json files ([7177c11](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7177c11e0cfbf87020e7901fcdb4da9ce2348884))
|
|
10
|
+
|
|
11
|
+
## [44.9.5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.4...v44.9.5) (2025-12-05)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* add article icon to article autocomplete ([5bc97b2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5bc97b25f2dd3851774413bd6be8428d0852ce14))
|
|
17
|
+
* adjust text alignment in image with text section ([a5746c6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a5746c604061ce8005ded2f1d08fc4d4d5e364fb))
|
|
18
|
+
* adjust text alignment in image with text section ([79d10c1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/79d10c1e24131c236effe15cde04bd73a47eb568))
|
|
19
|
+
* adjust text alignment in image with text section ([b5632c6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b5632c676892ac2ad7406c05463d83a2a332f9b0))
|
|
20
|
+
* remove disable button so users can change their vote ([dd091b5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/dd091b5f1f585f4ed6e9a8e75edf57526b6fcbb7))
|
|
21
|
+
* update common file to include popup ([bc0e32f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bc0e32f346c3726ada0a4ce8a58001d043fb6b3b))
|
|
22
|
+
* update info grid game type data ([7ea86c5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7ea86c5b0a3abb43cd173308cc54f2ba029a4492))
|
|
23
|
+
* update organisms search component ([b12a3f1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b12a3f166750316eaafc146f23269dc313d20de8))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
* Merge branch 'en-154-improvments-search-results' into 'master' ([7551d86](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7551d86588a83300616a0289ee886bbeda4fbd9b))
|
|
27
|
+
* Merge branch 'EN-230/fix-text-alignment' into 'master' ([e7ee74b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e7ee74b43201fe56fc52b3ad0616ecf3d6c71cd7))
|
|
28
|
+
* Merge branch 'en-285-ribbon-build-error' into 'master' ([dce87b2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/dce87b26d2357db8d7376b1711caeb47d58360e8))
|
|
29
|
+
* Merge branch 'en-229-slot-info-grid-data' into 'master' ([b3cce55](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b3cce555d29dc82b79b14e9ec98dffa14bb8e756))
|
|
30
|
+
* Merge branch 'en-146-comments-enable' into 'master' ([617719b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/617719bb1e4bda60f29db1be072f7b3f27afb26f))
|
|
31
|
+
|
|
1
32
|
## [44.9.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.3...v44.9.4) (2025-12-05)
|
|
2
33
|
|
|
3
34
|
|
package/package.json
CHANGED
|
@@ -59,7 +59,6 @@ const CommentVotes = ({
|
|
|
59
59
|
aria-label={useTranslate('vote_up_aria_label', voteUpAria)}
|
|
60
60
|
type='button'
|
|
61
61
|
className={`${styles.buttonGroup} ${styles.left} ${userVote === 'vote_down' && styles.disabled || ''}`}
|
|
62
|
-
disabled={Boolean(userVote)}
|
|
63
62
|
>
|
|
64
63
|
<LazyImage className={styles.buttonGroupIcon} src='/images/like.svg' />
|
|
65
64
|
<span>{userVote === 'vote_up' ? comment.votes_up + 1 : comment.votes_up}</span>
|
|
@@ -72,7 +71,6 @@ const CommentVotes = ({
|
|
|
72
71
|
aria-label={useTranslate('vote_down_aria_label', voteDownAria)}
|
|
73
72
|
type='button'
|
|
74
73
|
className={`${styles.buttonGroup} ${styles.right} ${userVote === 'vote_up' && styles.disabled || ''}`}
|
|
75
|
-
disabled={Boolean(userVote)}
|
|
76
74
|
>
|
|
77
75
|
<LazyImage className={styles.buttonGroupIcon} src='/images/dislike.svg' />
|
|
78
76
|
<span>{userVote === 'vote_down' ? comment.votes_down + 1 : comment.votes_down}</span>
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
.row {
|
|
2
2
|
@include flex-align(center, start);
|
|
3
3
|
|
|
4
|
-
gap: .
|
|
4
|
+
gap: 1.6rem;
|
|
5
5
|
width: 100%;
|
|
6
6
|
background-color: var(--autocomplete-bg, #FFF);
|
|
7
7
|
border-radius: .8rem;
|
|
8
8
|
padding: 1.2rem;
|
|
9
|
+
|
|
10
|
+
> svg {
|
|
11
|
+
min-width: 4.8rem;
|
|
12
|
+
min-height: 4.8rem;
|
|
13
|
+
border-radius: 0.8rem;
|
|
14
|
+
background: #F1F5F9;
|
|
15
|
+
align-self: flex-start;
|
|
16
|
+
|
|
17
|
+
@include min(tablet) {
|
|
18
|
+
align-self: center;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
9
21
|
|
|
10
22
|
> a{
|
|
11
23
|
margin-left: auto;
|
|
@@ -2,12 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
4
4
|
import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
5
|
+
import ArticleIcon from "../../../../../images/icons/articleIcon";
|
|
5
6
|
import Link from '~hooks/link';
|
|
6
7
|
import styles from './article.module.scss';
|
|
7
8
|
|
|
8
9
|
const Article = ({ item = {}, btnText = '', icon = <FaArrowRight title="Right-pointing Arrow Icon" /> }) => (
|
|
9
10
|
<li>
|
|
10
11
|
<Link className={styles.row || ''} to={item?.path} title={item.title}>
|
|
12
|
+
<ArticleIcon />
|
|
11
13
|
<h3 className={styles.operatorTitle}>{item.title}</h3>
|
|
12
14
|
<Button
|
|
13
15
|
btnText={btnText}
|
|
@@ -203,59 +203,65 @@ const SearchForm = ({
|
|
|
203
203
|
acc[item.pageType].push(item);
|
|
204
204
|
return acc;
|
|
205
205
|
}, {})
|
|
206
|
-
).
|
|
207
|
-
(
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
206
|
+
).sort(([aKey], [bKey]) => {
|
|
207
|
+
if (aKey === "operator") return -1;
|
|
208
|
+
if (bKey === "operator") return 1;
|
|
209
|
+
return aKey.localeCompare(bKey);
|
|
210
|
+
})
|
|
211
|
+
.map(
|
|
212
|
+
([type, items]) =>
|
|
213
|
+
items.length > 0 && (
|
|
214
|
+
<React.Fragment key={type}>
|
|
215
|
+
<div className={styles.autoCompleteTitle}>
|
|
216
|
+
{useTranslate(
|
|
217
|
+
`search_${type}`,
|
|
218
|
+
type?.replace("_", " ")
|
|
219
|
+
)}
|
|
220
|
+
</div>
|
|
221
|
+
<div className={styles.autoCompleteList}>
|
|
222
|
+
{items
|
|
223
|
+
.slice(0, loadedCounts[type])
|
|
224
|
+
.map((value) => {
|
|
225
|
+
const PageTypeCard = getComponent(
|
|
226
|
+
value.pageType
|
|
227
|
+
);
|
|
228
|
+
return (
|
|
229
|
+
<PageTypeCard
|
|
230
|
+
item={value}
|
|
231
|
+
icon={autoCompleteIcon}
|
|
232
|
+
/>
|
|
233
|
+
);
|
|
234
|
+
})}
|
|
235
|
+
{loadedCounts[type] < items.length && (
|
|
236
|
+
<button
|
|
237
|
+
type="button"
|
|
238
|
+
className={styles.loadMoreBtn}
|
|
239
|
+
onClick={() => {
|
|
240
|
+
const inputValue =
|
|
241
|
+
searchInputRef.current?.value.trim();
|
|
242
|
+
if (inputValue) {
|
|
243
|
+
const url = `/s${
|
|
244
|
+
process.env.TRAILING_SLASH
|
|
245
|
+
? "/"
|
|
246
|
+
: ""
|
|
241
247
|
}?s=${encodeURIComponent(
|
|
242
248
|
inputValue
|
|
243
249
|
)}`;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
250
|
+
window.location.href = url;
|
|
251
|
+
}
|
|
252
|
+
}}
|
|
253
|
+
>
|
|
254
|
+
{useTranslate(
|
|
255
|
+
"autocomplete_see_all",
|
|
256
|
+
"View more"
|
|
257
|
+
)}{" "}
|
|
258
|
+
{useTranslate(`search_${type}`, type)}
|
|
259
|
+
</button>
|
|
260
|
+
)}
|
|
261
|
+
</div>
|
|
262
|
+
</React.Fragment>
|
|
263
|
+
)
|
|
264
|
+
)}
|
|
259
265
|
</ul>
|
|
260
266
|
) : (
|
|
261
267
|
<NoResults
|
package/src/resolver/common.mjs
CHANGED
|
@@ -178,7 +178,7 @@ export function removeUnwantedSections(obj, pageType, ribbonsData) {
|
|
|
178
178
|
acc[key] = obj[key];
|
|
179
179
|
|
|
180
180
|
if (
|
|
181
|
-
key === "recommended_casinos" &&
|
|
181
|
+
(key === "recommended_casinos" || key === "popup") &&
|
|
182
182
|
Array.isArray(acc[key]?.modules?.[0]?.items?.[0]?.items)
|
|
183
183
|
) {
|
|
184
184
|
acc[key].modules[0].items[0].items = acc[
|
package/src/resolver/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import { processRelations } from "./relations.mjs";
|
|
37
37
|
import { processSportsRelations } from "./sports-relations.mjs";
|
|
38
38
|
import { zeroPadding } from "../helpers/schedule.mjs";
|
|
39
|
-
import { getRoundMinutes } from "../helpers/getters.mjs";
|
|
39
|
+
import { getBonusData, getRoundMinutes } from "../helpers/getters.mjs";
|
|
40
40
|
import checkForInactiveOperatorToplist from "../helpers/validateData.mjs";
|
|
41
41
|
|
|
42
42
|
const { cloneDeep, pick } = loadash;
|
|
@@ -527,7 +527,7 @@ export default {
|
|
|
527
527
|
author,
|
|
528
528
|
extra_fields,
|
|
529
529
|
} = transformedPages[market][pageType][index];
|
|
530
|
-
|
|
530
|
+
const oneLiner = getBonusData(relation, "main");
|
|
531
531
|
const filteredRelation = filterRelation(
|
|
532
532
|
relation,
|
|
533
533
|
searchReleationPickKeys[type]
|
|
@@ -557,9 +557,15 @@ export default {
|
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
if (status === "active") {
|
|
560
|
-
searchSimpleData[page.market].push(
|
|
560
|
+
searchSimpleData[page.market].push(
|
|
561
|
+
cloneDeep({
|
|
562
|
+
...minimalPage,
|
|
563
|
+
...(oneLiner && { oneliner: oneLiner }),
|
|
564
|
+
})
|
|
565
|
+
);
|
|
561
566
|
searchData[page.market].push(
|
|
562
567
|
cloneDeep({
|
|
568
|
+
...(oneLiner && { oneliner: oneLiner }),
|
|
563
569
|
...minimalPage,
|
|
564
570
|
...(filteredRelation && { relation: filteredRelation }),
|
|
565
571
|
...(filteredAuthorRelation && {
|