@graphcommerce/magento-category 4.1.8 → 4.1.11

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,5 +1,34 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @graphcommerce/magento-product@4.4.3
9
+
10
+ ## 4.1.10
11
+
12
+ ### Patch Changes
13
+
14
+ - [#1487](https://github.com/graphcommerce-org/graphcommerce/pull/1487) [`13b174d28`](https://github.com/graphcommerce-org/graphcommerce/commit/13b174d28d1886043d9e02aef09c794ff23ea918) Thanks [@paales](https://github.com/paales)! - make sure include_in_menu is respected for CategoryChildren and CategoryHeroNav
15
+
16
+ - Updated dependencies [[`c63ab89c2`](https://github.com/graphcommerce-org/graphcommerce/commit/c63ab89c20cb81d79188900d57f3d65a7bba71cc), [`afc67103d`](https://github.com/graphcommerce-org/graphcommerce/commit/afc67103d0e00583e274465036fd287537f95e79)]:
17
+ - @graphcommerce/magento-product@4.4.2
18
+ - @graphcommerce/next-ui@4.8.3
19
+ - @graphcommerce/framer-scroller@2.1.14
20
+ - @graphcommerce/magento-store@4.2.7
21
+
22
+ ## 4.1.9
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [[`c8c246b8a`](https://github.com/graphcommerce-org/graphcommerce/commit/c8c246b8aaab0621b68a2fca2a1c529a56fad962)]:
27
+ - @graphcommerce/next-ui@4.8.2
28
+ - @graphcommerce/magento-product@4.4.1
29
+ - @graphcommerce/framer-scroller@2.1.13
30
+ - @graphcommerce/magento-store@4.2.6
31
+
3
32
  ## 4.1.8
4
33
 
5
34
  ### Patch Changes
@@ -5,5 +5,6 @@ fragment CategoryChildren on CategoryTree {
5
5
  name
6
6
  level
7
7
  url_path
8
+ include_in_menu
8
9
  }
9
10
  }
@@ -38,7 +38,7 @@ export function CategoryChildren(props: CategoryChildrenProps) {
38
38
  sx={{ gridAutoColumns: `max-content` }}
39
39
  >
40
40
  {children.map((cat) => {
41
- if (!cat?.url_path || !cat.name) return null
41
+ if (!cat?.url_path || !cat.name || !cat.include_in_menu) return null
42
42
 
43
43
  const linkParams = cloneDeep(params)
44
44
  linkParams.url = cat.url_path
@@ -7,5 +7,6 @@ fragment CategoryHeroNav on CategoryTree {
7
7
  uid
8
8
  url_path
9
9
  name
10
+ include_in_menu
10
11
  }
11
12
  }
@@ -86,7 +86,8 @@ export function CategoryHeroNav({ children, title, asset, sx = [] }: CategoryHer
86
86
  })}
87
87
  >
88
88
  {children?.map((category) => {
89
- if (!category?.url_path || !category.uid || !category.name) return null
89
+ if (!category?.url_path || !category.uid || !category.name || !category.include_in_menu)
90
+ return null
90
91
  return (
91
92
  <ProductListLink
92
93
  underline='none'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-category",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.1.8",
5
+ "version": "4.1.11",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,12 +19,12 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/framer-scroller": "2.1.12",
22
+ "@graphcommerce/framer-scroller": "2.1.14",
23
23
  "@graphcommerce/graphql": "3.1.3",
24
24
  "@graphcommerce/image": "3.1.6",
25
- "@graphcommerce/magento-product": "4.4.0",
26
- "@graphcommerce/magento-store": "4.2.5",
27
- "@graphcommerce/next-ui": "4.8.1"
25
+ "@graphcommerce/magento-product": "4.4.3",
26
+ "@graphcommerce/magento-store": "4.2.7",
27
+ "@graphcommerce/next-ui": "4.8.3"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@lingui/react": "^3.13.2",