@graphcommerce/magento-cart 4.2.15 → 4.3.0

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.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1472](https://github.com/graphcommerce-org/graphcommerce/pull/1472) [`cf575395c`](https://github.com/graphcommerce-org/graphcommerce/commit/cf575395c16e9c571f75d4563004c3018a29aeaa) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Added translations to cart errors
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`a12db31b9`](https://github.com/graphcommerce-org/graphcommerce/commit/a12db31b9db9d27d86f59c1bfe58a0879999b9d3)]:
12
+ - @graphcommerce/magento-customer@4.3.1
13
+
3
14
  ## 4.2.15
4
15
 
5
16
  ### Patch Changes
@@ -17,7 +17,11 @@ export function ApolloCartErrorAlert(props: ApolloCartErrorAlertProps) {
17
17
  let action: JSX.Element | undefined
18
18
 
19
19
  const [, noSuchEntity] = graphqlErrorByCategory({ category: 'graphql-no-such-entity', error })
20
- action = noSuchEntity ? <Button onClick={clear}>Reset Cart</Button> : undefined
20
+ action = noSuchEntity ? (
21
+ <Button onClick={clear}>
22
+ <Trans id='Reset Cart' />
23
+ </Button>
24
+ ) : undefined
21
25
 
22
26
  const [, authorizationError] = graphqlErrorByCategory({
23
27
  category: 'graphql-authorization',
@@ -1,6 +1,7 @@
1
1
  import { ApolloErrorFullPage, ApolloErrorFullPageProps } from '@graphcommerce/ecommerce-ui'
2
2
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
3
3
  import { iconSadFace, IconSvg } from '@graphcommerce/next-ui'
4
+ import { Trans } from '@lingui/react'
4
5
  import { Button } from '@mui/material'
5
6
  import { useClearCurrentCartId } from '../../hooks/useClearCurrentCartId'
6
7
 
@@ -11,7 +12,11 @@ export function ApolloCartErrorFullPage(props: ApolloCartErrorFullPageProps) {
11
12
  const clear = useClearCurrentCartId()
12
13
 
13
14
  const [, noSuchEntity] = graphqlErrorByCategory({ category: 'graphql-no-such-entity', error })
14
- const action = noSuchEntity ? <Button onClick={clear}>Reset Cart</Button> : undefined
15
+ const action = noSuchEntity ? (
16
+ <Button onClick={clear}>
17
+ <Trans id='Reset Cart' />
18
+ </Button>
19
+ ) : undefined
15
20
 
16
21
  return (
17
22
  <ApolloErrorFullPage
@@ -1,5 +1,6 @@
1
1
  import { ApolloErrorSnackbarProps, ApolloErrorSnackbar } from '@graphcommerce/ecommerce-ui'
2
2
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
3
+ import { Trans } from '@lingui/react'
3
4
  import { Button } from '@mui/material'
4
5
  import React from 'react'
5
6
  import { useClearCurrentCartId } from '../../hooks/useClearCurrentCartId'
@@ -13,7 +14,7 @@ export function ApolloCartErrorSnackbar(props: ApolloCartErrorSnackbarProps) {
13
14
  const [, noSuchEntity] = graphqlErrorByCategory({ category: 'graphql-no-such-entity', error })
14
15
  const action = noSuchEntity ? (
15
16
  <Button onClick={clear} variant='pill' color='secondary'>
16
- Reset Cart
17
+ <Trans id='Reset Cart' />
17
18
  </Button>
18
19
  ) : undefined
19
20
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.2.15",
5
+ "version": "4.3.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -23,7 +23,7 @@
23
23
  "@graphcommerce/framer-scroller": "2.1.11",
24
24
  "@graphcommerce/graphql": "3.1.3",
25
25
  "@graphcommerce/image": "3.1.5",
26
- "@graphcommerce/magento-customer": "4.3.0",
26
+ "@graphcommerce/magento-customer": "4.3.1",
27
27
  "@graphcommerce/magento-graphql": "3.0.12",
28
28
  "@graphcommerce/magento-store": "4.2.4",
29
29
  "@graphcommerce/next-ui": "4.8.0",