gatsby-core-theme 44.9.0 → 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,24 @@
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
+
12
+ ## [44.9.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.9.0...v44.9.1) (2025-11-24)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * update anchor module ([c984cbe](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c984cbe971a50f67b331860803a120562d7ebc26))
18
+
19
+
20
+ * Merge branch 'custom-anchor' into 'master' ([1797bc0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1797bc0614708b1f025c6240c765e197e0babd8f))
21
+
1
22
  # [44.9.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.8.2...v44.9.0) (2025-11-24)
2
23
 
3
24
 
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.0",
3
+ "version": "44.9.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -23,6 +23,7 @@ function Anchor({
23
23
  rightButtonIcon = <IoIosArrowForward />,
24
24
  hasAdmin = false,
25
25
  offset = 132,
26
+ customClass = '',
26
27
  }) {
27
28
  const [scrollX, setScrollX] = useState(0);
28
29
  const [scrollEnd, setScrollEnd] = useState(false);
@@ -128,7 +129,7 @@ function Anchor({
128
129
  ));
129
130
 
130
131
  return (
131
- <div className={styles.containerAnchor || ""} ref={anchorContainerRef}>
132
+ <div className={`${styles.containerAnchor || ""} ${customClass && customClass || ""}`} ref={anchorContainerRef}>
132
133
  {showTitle && (
133
134
  <div className={`${styles.anchorTitle || ""}`}>
134
135
  <span>{useTranslate("anchor_title", "Table of Contents")}</span>
@@ -192,6 +193,7 @@ Anchor.propTypes = {
192
193
  setShowButtons: PropTypes.bool,
193
194
  hasAdmin: PropTypes.bool,
194
195
  offset: PropTypes.number,
196
+ customClass: PropTypes.string,
195
197
  };
196
198
 
197
199
  export default Anchor;
@@ -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;