@graphcommerce/magento-customer 7.1.0-canary.21 → 7.1.0-canary.22

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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.1.0-canary.22
4
+
3
5
  ## 7.1.0-canary.21
4
6
 
5
7
  ## 7.1.0-canary.20
@@ -1,4 +1,9 @@
1
1
  import { Image } from '@graphcommerce/image'
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
3
+ import {
4
+ useProductLink,
5
+ ProductLinkProps,
6
+ } from '@graphcommerce/magento-product/hooks/useProductLink'
2
7
  import { Money } from '@graphcommerce/magento-store'
3
8
  import { responsiveVal, extendableComponent, NextLink } from '@graphcommerce/next-ui'
4
9
  import { Box } from '@mui/material'
@@ -40,7 +45,10 @@ export function OrderItem(props: OrderItemProps) {
40
45
  product_name,
41
46
  thumbnail,
42
47
  } = props
43
- const productLink = `/product/${product_url_key}`
48
+ const productLink = useProductLink({
49
+ __typename: 'SimpleProduct' as const,
50
+ url_key: product_url_key,
51
+ })
44
52
 
45
53
  const hasOptions = Boolean(selected_options && selected_options.length >= 1)
46
54
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-customer",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "7.1.0-canary.21",
5
+ "version": "7.1.0-canary.22",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "7.1.0-canary.21",
16
- "@graphcommerce/prettier-config-pwa": "7.1.0-canary.21",
17
- "@graphcommerce/typescript-config-pwa": "7.1.0-canary.21"
15
+ "@graphcommerce/eslint-config-pwa": "7.1.0-canary.22",
16
+ "@graphcommerce/prettier-config-pwa": "7.1.0-canary.22",
17
+ "@graphcommerce/typescript-config-pwa": "7.1.0-canary.22"
18
18
  },
19
19
  "dependencies": {
20
- "@graphcommerce/ecommerce-ui": "7.1.0-canary.21",
21
- "@graphcommerce/framer-utils": "7.1.0-canary.21",
22
- "@graphcommerce/graphql": "7.1.0-canary.21",
23
- "@graphcommerce/graphql-mesh": "7.1.0-canary.21",
24
- "@graphcommerce/image": "7.1.0-canary.21",
25
- "@graphcommerce/magento-graphql": "7.1.0-canary.21",
26
- "@graphcommerce/magento-store": "7.1.0-canary.21",
27
- "@graphcommerce/next-ui": "7.1.0-canary.21",
28
- "@graphcommerce/react-hook-form": "7.1.0-canary.21"
20
+ "@graphcommerce/ecommerce-ui": "7.1.0-canary.22",
21
+ "@graphcommerce/framer-utils": "7.1.0-canary.22",
22
+ "@graphcommerce/graphql": "7.1.0-canary.22",
23
+ "@graphcommerce/graphql-mesh": "7.1.0-canary.22",
24
+ "@graphcommerce/image": "7.1.0-canary.22",
25
+ "@graphcommerce/magento-graphql": "7.1.0-canary.22",
26
+ "@graphcommerce/magento-store": "7.1.0-canary.22",
27
+ "@graphcommerce/next-ui": "7.1.0-canary.22",
28
+ "@graphcommerce/react-hook-form": "7.1.0-canary.22"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@lingui/react": "^4.2.1",