gatsby-core-theme 44.9.1 → 44.9.2

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,14 @@
1
+ ## [44.9.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.1...v44.9.2) (2025-12-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add menu position prop ([1164c35](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1164c353e3525381f77533b3c71b3268f74843ac))
7
+ * clean up context ([8c142cf](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8c142cf051646852134229b2b7ad8278fd8c60bb))
8
+
9
+
10
+ * Merge branch 'EN-212-menu-position' into 'master' ([a3c2cb0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a3c2cb0aa7969cbafc95773671847f2f161918a8))
11
+
1
12
  ## [44.9.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.0...v44.9.1) (2025-11-24)
2
13
 
3
14
 
package/gatsby-node.mjs CHANGED
@@ -37,7 +37,6 @@ let operators = null;
37
37
  const contextHolder = { context404: null };
38
38
 
39
39
  let siteSchema = null;
40
- let authors = null;
41
40
 
42
41
  let responsableGamingData = null;
43
42
  let toplistData = null;
@@ -138,7 +137,6 @@ export const createPages = async (
138
137
  processedPage.preconnect_links = preconnectLinks;
139
138
 
140
139
  siteSchema = schemaData[page["market_id"]];
141
- authors = siteSettingsData;
142
140
 
143
141
  page.siteInfo = siteGeneralData;
144
142
  page.siteSchema = siteSchema;
@@ -176,7 +174,6 @@ export const createPages = async (
176
174
  siteGeneralData,
177
175
  autogenerated,
178
176
  siteSchema,
179
- authors,
180
177
  comments: commentsData?.[page?.id],
181
178
  lang: page.language,
182
179
  ...themeOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.9.1",
3
+ "version": "44.9.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -40,6 +40,7 @@ const Navigation = ({
40
40
  disableSearch,
41
41
  megaMenu = false,
42
42
  menu,
43
+ menuPosition = "left",
43
44
  }) => {
44
45
  const navRef = useRef(React.createRef());
45
46
  const ariaLabelNavLogo = useTranslate("ariaLabel-navLogo", "Nav Logo");
@@ -78,6 +79,21 @@ const Navigation = ({
78
79
  }
79
80
  };
80
81
 
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
+
81
97
  return (
82
98
  <ConditionalWrapper
83
99
  condition={sticky}
@@ -118,19 +134,7 @@ const Navigation = ({
118
134
  )}
119
135
  {showMenu && (
120
136
  <>
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
- />
133
-
137
+ {menuPosition === "left" && menuComponent}
134
138
  <div className={styles.navIconContainer}>
135
139
  {activeMarket && !disableMarketDropdown && (
136
140
  <MarketDropdown pageContext={pageContext} />
@@ -152,6 +156,7 @@ const Navigation = ({
152
156
  isDisabled={disableSearch}
153
157
  />
154
158
  )}
159
+ {menuPosition === "right" && menuComponent}
155
160
  </div>
156
161
  </>
157
162
  )}
@@ -207,6 +212,7 @@ Navigation.propTypes = {
207
212
  logoAlt: PropTypes.string,
208
213
  logoWidth: PropTypes.number,
209
214
  logoHeight: PropTypes.number,
215
+ menuPosition: PropTypes.oneOf(["left", "right"]),
210
216
  };
211
217
 
212
218
  export default Navigation;