@graphcommerce/magento-product-configurable 8.1.0-canary.32 → 8.1.0-canary.34

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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.34
4
+
5
+ ## 8.1.0-canary.33
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2302](https://github.com/graphcommerce-org/graphcommerce/pull/2302) [`6b7f908`](https://github.com/graphcommerce-org/graphcommerce/commit/6b7f908b7a2561e9d7f6ec3eaf2a6aca8d77b72f) - Fixed tier prices not working for non-configurable products
10
+ ([@bramvanderholst](https://github.com/bramvanderholst))
11
+
3
12
  ## 8.1.0-canary.32
4
13
 
5
14
  ## 8.1.0-canary.31
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product-configurable",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.1.0-canary.32",
5
+ "version": "8.1.0-canary.34",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,23 +12,23 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.1.0-canary.32",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.32",
17
- "@graphcommerce/graphql": "^8.1.0-canary.32",
18
- "@graphcommerce/graphql-mesh": "^8.1.0-canary.32",
19
- "@graphcommerce/image": "^8.1.0-canary.32",
20
- "@graphcommerce/lingui-next": "8.1.0-canary.32",
21
- "@graphcommerce/magento-cart": "^8.1.0-canary.32",
22
- "@graphcommerce/magento-cart-items": "^8.1.0-canary.32",
23
- "@graphcommerce/magento-category": "^8.1.0-canary.32",
24
- "@graphcommerce/magento-customer": "^8.1.0-canary.32",
25
- "@graphcommerce/magento-product": "^8.1.0-canary.32",
26
- "@graphcommerce/magento-product-simple": "^8.1.0-canary.32",
27
- "@graphcommerce/magento-store": "^8.1.0-canary.32",
28
- "@graphcommerce/next-ui": "^8.1.0-canary.32",
29
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.32",
30
- "@graphcommerce/react-hook-form": "^8.1.0-canary.32",
31
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.32",
15
+ "@graphcommerce/ecommerce-ui": "^8.1.0-canary.34",
16
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.34",
17
+ "@graphcommerce/graphql": "^8.1.0-canary.34",
18
+ "@graphcommerce/graphql-mesh": "^8.1.0-canary.34",
19
+ "@graphcommerce/image": "^8.1.0-canary.34",
20
+ "@graphcommerce/lingui-next": "8.1.0-canary.34",
21
+ "@graphcommerce/magento-cart": "^8.1.0-canary.34",
22
+ "@graphcommerce/magento-cart-items": "^8.1.0-canary.34",
23
+ "@graphcommerce/magento-category": "^8.1.0-canary.34",
24
+ "@graphcommerce/magento-customer": "^8.1.0-canary.34",
25
+ "@graphcommerce/magento-product": "^8.1.0-canary.34",
26
+ "@graphcommerce/magento-product-simple": "^8.1.0-canary.34",
27
+ "@graphcommerce/magento-store": "^8.1.0-canary.34",
28
+ "@graphcommerce/next-ui": "^8.1.0-canary.34",
29
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.34",
30
+ "@graphcommerce/react-hook-form": "^8.1.0-canary.34",
31
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.34",
32
32
  "@lingui/core": "^4.2.1",
33
33
  "@lingui/macro": "^4.2.1",
34
34
  "@lingui/react": "^4.2.1",
@@ -14,9 +14,10 @@ const ConfigurableProductPagePriceTiers = (
14
14
  const { Prev, product, index, ...rest } = props
15
15
  const variant = useConfigurableSelectedVariant({ url_key: product.url_key, index })
16
16
 
17
- if (!variant) return null
17
+ if (!variant || product.__typename !== 'ConfigurableProduct')
18
+ return <Prev product={product} {...rest} />
18
19
 
19
- return <Prev product={variant} {...rest} />
20
+ return <Prev product={{ ...variant, options: product.options }} {...rest} />
20
21
  }
21
22
 
22
23
  export const Plugin = ConfigurableProductPagePriceTiers