gatsby-core-theme 42.0.27 → 42.0.28
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,12 @@
|
|
|
1
|
+
## [42.0.28](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.27...v42.0.28) (2025-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added prop for items in menu ([12d7214](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/12d7214b50f3f29ae4cab26a48cce305a9c210fa))
|
|
7
|
+
* added whitelist for top menu section ([99185ad](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/99185ad75f1dfaae2141cda0f398fd09e4d3519b))
|
|
8
|
+
* theme tests ([b056c5a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b056c5a09f7f118267b9b900460b23e42dfcf192))
|
|
9
|
+
|
|
1
10
|
## [42.0.27](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.26...v42.0.27) (2025-03-03)
|
|
2
11
|
|
|
3
12
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import { getPositionClass, itemHasChildren } from '~helpers/menu';
|
|
|
9
9
|
import { isMobileDevice } from '~helpers/device-detect';
|
|
10
10
|
|
|
11
11
|
// Test included with menu molecule test
|
|
12
|
-
const Items = ({ item, menuListRef, gtmClass = '', level = 1, canOpenAllSubMenus = true, currentPage }) => {
|
|
12
|
+
const Items = ({ item, menuListRef, orientation = 'horizontal', gtmClass = '', level = 1, canOpenAllSubMenus = true, currentPage }) => {
|
|
13
13
|
let link;
|
|
14
14
|
let menu;
|
|
15
15
|
|
|
@@ -53,7 +53,7 @@ const Items = ({ item, menuListRef, gtmClass = '', level = 1, canOpenAllSubMenus
|
|
|
53
53
|
ref={subMenuListRef}
|
|
54
54
|
className={`${styles.subMenuList || ''} ${
|
|
55
55
|
itemHasChildren(item) ? styles.hasChildWithSubmenu || '' : ''
|
|
56
|
-
}`}
|
|
56
|
+
} ${styles[`${orientation}_subitems`] || ''}`}
|
|
57
57
|
>
|
|
58
58
|
{item.children.map((child) => (
|
|
59
59
|
<Items
|
|
@@ -113,6 +113,7 @@ Items.propTypes = {
|
|
|
113
113
|
})
|
|
114
114
|
),
|
|
115
115
|
}).isRequired,
|
|
116
|
+
orientation: PropTypes.string,
|
|
116
117
|
menuListRef: PropTypes.oneOfType([PropTypes.element, PropTypes.any]),
|
|
117
118
|
gtmClass: PropTypes.string,
|
|
118
119
|
currentPage: PropTypes.string,
|
|
@@ -144,7 +144,7 @@ export function removeUnwantedSections(obj, pageType) {
|
|
|
144
144
|
games: ["post_main_games"],
|
|
145
145
|
operator: ['post_main_operators', "pre_main_operators", "recommended_casinos"],
|
|
146
146
|
article: ['post_main_articles'],
|
|
147
|
-
default: ['footer', 'links', 'navigation', 'popup', 'rg_navigation', 'sidebar', 'footer_navigation']
|
|
147
|
+
default: ['footer', 'links', 'navigation', 'popup', 'rg_navigation', 'sidebar', 'footer_navigation', 'top_menu']
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
// Get sections to keep: merge default sections and specific sections for the key
|