@graphcommerce/magento-customer 4.5.3 → 4.5.4

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,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1517](https://github.com/graphcommerce-org/graphcommerce/pull/1517) [`c877e438a`](https://github.com/graphcommerce-org/graphcommerce/commit/c877e438a48f30204fa3e36b611906a546e1cf5c) Thanks [@NickdeK](https://github.com/NickdeK)! - Fixed graphql error display
8
+
9
+ - Updated dependencies [[`371e6cf52`](https://github.com/graphcommerce-org/graphcommerce/commit/371e6cf52916a3b6c44192bd40cc8271bd608832), [`4143483f3`](https://github.com/graphcommerce-org/graphcommerce/commit/4143483f37c038d2bbf218be2685e27a31a35745)]:
10
+ - @graphcommerce/next-ui@4.10.0
11
+ - @graphcommerce/ecommerce-ui@1.0.20
12
+ - @graphcommerce/magento-store@4.2.11
13
+
3
14
  ## 4.5.3
4
15
 
5
16
  ### Patch Changes
@@ -16,14 +16,14 @@ export type ApolloCustomerErrorFullPageProps = {
16
16
 
17
17
  export function ApolloCustomerErrorFullPage(props: ApolloCustomerErrorFullPageProps) {
18
18
  const { error, icon, altButton, button, ...alertProps } = props
19
- const [, unauthorized] = useAuthorizationErrorMasked()
19
+ const [newError, unauthorized] = useAuthorizationErrorMasked()
20
20
  const { token } = useCustomerSession()
21
21
 
22
22
  return (
23
23
  <ApolloErrorFullPage
24
24
  icon={<IconSvg src={iconPerson} size='xxl' />}
25
25
  {...props}
26
- error={error}
26
+ error={newError}
27
27
  button={
28
28
  unauthorized ? (
29
29
  <PageLink href='/account/signin' passHref>
@@ -1,6 +1,6 @@
1
1
  import { ApolloErrorSnackbar, ApolloErrorSnackbarProps } from '@graphcommerce/ecommerce-ui'
2
2
  import { Trans } from '@lingui/react'
3
- import { Button, Link } from '@mui/material'
3
+ import { Button } from '@mui/material'
4
4
  import NextLink from 'next/link'
5
5
  import { useCustomerSession } from '../../hooks/useCustomerSession'
6
6
  import { useAuthorizationErrorMasked } from './useAuthorizationErrorMasked'
@@ -15,6 +15,7 @@ export function ApolloCustomerErrorSnackbar(props: ApolloCustomerErrorSnackbarPr
15
15
  return (
16
16
  <ApolloErrorSnackbar
17
17
  {...props}
18
+ error={newError}
18
19
  action={
19
20
  unauthorized ? (
20
21
  <NextLink href='/account/signin' passHref>
@@ -12,5 +12,6 @@ export function useAuthorizationErrorMasked(error?: ApolloError) {
12
12
  mask: token
13
13
  ? i18n._(/* i18n */ `Please reauthenticate and try again`)
14
14
  : i18n._(/* i18n */ `You must sign in to continue`),
15
+ extract: false,
15
16
  })
16
17
  }
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": "4.5.3",
5
+ "version": "4.5.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,13 +19,13 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/ecommerce-ui": "1.0.19",
22
+ "@graphcommerce/ecommerce-ui": "1.0.20",
23
23
  "@graphcommerce/graphql": "3.2.1",
24
24
  "@graphcommerce/graphql-mesh": "4.1.4",
25
25
  "@graphcommerce/image": "3.1.7",
26
26
  "@graphcommerce/magento-graphql": "3.0.14",
27
- "@graphcommerce/magento-store": "4.2.10",
28
- "@graphcommerce/next-ui": "4.9.0",
27
+ "@graphcommerce/magento-store": "4.2.11",
28
+ "@graphcommerce/next-ui": "4.10.0",
29
29
  "@graphcommerce/react-hook-form": "3.2.2"
30
30
  },
31
31
  "peerDependencies": {