@graphcommerce/magento-product 3.5.18 → 3.5.19

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.5.19](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.5.18...@graphcommerce/magento-product@3.5.19) (2021-11-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * hide categories that aren't shown in the menu ([26320df](https://github.com/ho-nl/m2-pwa/commit/26320df9bce77d976fa7ca6a69bb838555bf9e27))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.5.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.5.8...@graphcommerce/magento-product@3.5.9) (2021-11-04)
7
18
 
8
19
 
@@ -9,7 +9,7 @@ import { ProductPageCategoryFragment } from './ProductPageCategory.gql'
9
9
  export default function productPageCategory(product?: ProductPageCategoryFragment | null) {
10
10
  if (!product?.categories?.length) return undefined
11
11
  return product?.categories?.reduce((carry, value) => {
12
- if (!carry?.include_in_menu && value?.include_in_menu) return value
12
+ if (!value?.include_in_menu) return carry
13
13
  const carryL = carry?.url_path?.split('/')?.length ?? 0
14
14
  const valueL = value?.url_path?.split('/')?.length ?? 0
15
15
  return carryL >= valueL ? carry : value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-product",
3
- "version": "3.5.18",
3
+ "version": "3.5.19",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -24,9 +24,9 @@
24
24
  "@graphcommerce/framer-scroller": "^1.0.3",
25
25
  "@graphcommerce/graphql": "^2.105.4",
26
26
  "@graphcommerce/image": "^2.105.3",
27
- "@graphcommerce/magento-cart": "^3.6.2",
28
- "@graphcommerce/magento-store": "^3.2.17",
29
- "@graphcommerce/next-ui": "^3.15.0",
27
+ "@graphcommerce/magento-cart": "^3.6.3",
28
+ "@graphcommerce/magento-store": "^3.2.18",
29
+ "@graphcommerce/next-ui": "^3.15.1",
30
30
  "@graphql-typed-document-node/core": "^3.1.0",
31
31
  "@material-ui/core": "^4.12.3",
32
32
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -38,5 +38,5 @@
38
38
  "schema-dts": "^1.0.0",
39
39
  "type-fest": "^2.5.1"
40
40
  },
41
- "gitHead": "0d7e797850cec8d51ef8d88937a104aab6af4c35"
41
+ "gitHead": "9fb7a52af72eb5c9677f24e11d7b62871151c46e"
42
42
  }