gatsby-core-theme 44.9.5 → 44.10.1

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,23 @@
1
+ ## [44.10.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.0...v44.10.1) (2025-12-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * revert changes ([c68b0ac](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c68b0ac8c2ed9c7eb89495d05ea9c593e2159e14))
7
+
8
+
9
+ * Merge branch 'EN-212-revert-changes' into 'master' ([e5c55f4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e5c55f4b24178ba88d8d2a6783537f321f32e23a))
10
+
11
+ # [44.10.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.5...v44.10.0) (2025-12-08)
12
+
13
+
14
+ * Merge branch 'en-125-search-oneliner' into 'master' ([ded8e55](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ded8e558dc06b7398f8c58ccfa8bcd90768730bc))
15
+
16
+
17
+ ### Features
18
+
19
+ * oneliner on search json files ([7177c11](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7177c11e0cfbf87020e7901fcdb4da9ce2348884))
20
+
1
21
  ## [44.9.5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.4...v44.9.5) (2025-12-05)
2
22
 
3
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.9.5",
3
+ "version": "44.10.1",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -40,7 +40,6 @@ const Navigation = ({
40
40
  disableSearch,
41
41
  megaMenu = false,
42
42
  menu,
43
- menuPosition = "left",
44
43
  }) => {
45
44
  const navRef = useRef(React.createRef());
46
45
  const ariaLabelNavLogo = useTranslate("ariaLabel-navLogo", "Nav Logo");
@@ -79,21 +78,6 @@ const Navigation = ({
79
78
  }
80
79
  };
81
80
 
82
- const menuComponent = (
83
- <Menu
84
- pageContext={pageContext}
85
- section={section}
86
- orientation={orientation}
87
- mobileAnimation={mobileAnimation}
88
- stopScrollOnOpen={stopScrollOnOpen}
89
- canOpenAllSubMenus={canOpenAllSubMenus}
90
- customStyles={customStyles}
91
- gtmClass="main-menu-gtm"
92
- menu={menu}
93
- enableMegaMenu={megaMenu}
94
- />
95
- );
96
-
97
81
  return (
98
82
  <ConditionalWrapper
99
83
  condition={sticky}
@@ -134,7 +118,18 @@ const Navigation = ({
134
118
  )}
135
119
  {showMenu && (
136
120
  <>
137
- {menuPosition === "left" && menuComponent}
121
+ <Menu
122
+ pageContext={pageContext}
123
+ section={section}
124
+ orientation={orientation}
125
+ mobileAnimation={mobileAnimation}
126
+ stopScrollOnOpen={stopScrollOnOpen}
127
+ canOpenAllSubMenus={canOpenAllSubMenus}
128
+ customStyles={customStyles}
129
+ gtmClass="main-menu-gtm"
130
+ menu={menu}
131
+ enableMegaMenu={megaMenu}
132
+ />
138
133
  <div className={styles.navIconContainer}>
139
134
  {activeMarket && !disableMarketDropdown && (
140
135
  <MarketDropdown pageContext={pageContext} />
@@ -156,7 +151,6 @@ const Navigation = ({
156
151
  isDisabled={disableSearch}
157
152
  />
158
153
  )}
159
- {menuPosition === "right" && menuComponent}
160
154
  </div>
161
155
  </>
162
156
  )}
@@ -212,7 +206,6 @@ Navigation.propTypes = {
212
206
  logoAlt: PropTypes.string,
213
207
  logoWidth: PropTypes.number,
214
208
  logoHeight: PropTypes.number,
215
- menuPosition: PropTypes.oneOf(["left", "right"]),
216
209
  };
217
210
 
218
211
  export default Navigation;
@@ -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 && {