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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.9.4",
3
+ "version": "44.10.0",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -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: .8rem;
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}
@@ -63,7 +63,7 @@
63
63
 
64
64
  .desc {
65
65
  color: var(--spotlight-template-one-desc-image-text-mode, #515156);
66
- text-align: justify;
66
+ text-align: left;
67
67
  font-size: 1.6rem;
68
68
  font-style: normal;
69
69
  font-weight: 400;
@@ -90,7 +90,7 @@
90
90
 
91
91
  .desc {
92
92
  color: var(--spotlight-template-one-desc-image-text-mode, #515156);
93
- text-align: justify;
93
+ text-align: left;
94
94
  font-size: 1.6rem;
95
95
  font-style: normal;
96
96
  font-weight: 400;
@@ -77,7 +77,7 @@
77
77
 
78
78
  .desc {
79
79
  color: var(--spotlight-template-one-desc-image-text-mode, #515156);
80
- text-align: justify;
80
+ text-align: left;
81
81
  font-size: 1.6rem;
82
82
  font-style: normal;
83
83
  font-weight: 400;
@@ -203,59 +203,65 @@ const SearchForm = ({
203
203
  acc[item.pageType].push(item);
204
204
  return acc;
205
205
  }, {})
206
- ).map(
207
- ([type, items]) =>
208
- items.length > 0 && (
209
- <React.Fragment key={type}>
210
- <div className={styles.autoCompleteTitle}>
211
- {useTranslate(
212
- `search_${type}`,
213
- type?.replace("_", " ")
214
- )}
215
- </div>
216
- <div className={styles.autoCompleteList}>
217
- {items
218
- .slice(0, loadedCounts[type])
219
- .map((value) => {
220
- const PageTypeCard = getComponent(
221
- value.pageType
222
- );
223
- return (
224
- <PageTypeCard
225
- item={value}
226
- icon={autoCompleteIcon}
227
- />
228
- );
229
- })}
230
- {loadedCounts[type] < items.length && (
231
- <button
232
- type="button"
233
- className={styles.loadMoreBtn}
234
- onClick={() => {
235
- const inputValue =
236
- searchInputRef.current?.value.trim();
237
- if (inputValue) {
238
- const url = `/s${process.env.TRAILING_SLASH
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
- window.location.href = url;
245
- }
246
- }}
247
- >
248
- {useTranslate(
249
- "autocomplete_see_all",
250
- "View more"
251
- )}{" "}
252
- {useTranslate(`search_${type}`, type)}
253
- </button>
254
- )}
255
- </div>
256
- </React.Fragment>
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
@@ -176,6 +176,8 @@ export const pickRelationKeys = {
176
176
  "game_thumbnail",
177
177
  "extra_fields",
178
178
  "game_categories",
179
+ 'maximum_bet',
180
+ "game_themes"
179
181
  ],
180
182
  software_provider: [
181
183
  "logo_filename_object",
@@ -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[
@@ -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(cloneDeep(minimalPage));
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 && {