@graphcommerce/magento-customer 4.1.0 β†’ 4.1.1

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,57 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
8
+ [`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7)
9
+ Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and
10
+ `ApolloErrorSnackbar` to the ecommerce-ui package.
11
+
12
+ Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from
13
+ `magento-graphcms` example.
14
+
15
+ Removed dependency an `@graphcommerce/react-hook-form` from `magento-graphcms` example.
16
+
17
+ Added dependency `@graphcommerce/ecommerce-ui` from `magento-graphcms` example.
18
+
19
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
20
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
21
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
22
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
23
+ duplicate packages in the node_modules folders.
24
+
25
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
26
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
27
+ Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
28
+ various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
29
+
30
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
31
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
32
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
33
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
34
+ implementing
35
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
36
+ soon.
37
+
38
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
39
+ frontend to be able to revalidate pages manually.
40
+
41
+ * Updated dependencies
42
+ [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
43
+ [`351347afe`](https://github.com/ho-nl/m2-pwa/commit/351347afeae5bd837408d46c7593bcf5473dc621),
44
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
45
+ [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
46
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
47
+ - @graphcommerce/ecommerce-ui@1.0.0
48
+ - @graphcommerce/next-ui@4.1.1
49
+ - @graphcommerce/react-hook-form@3.0.2
50
+ - @graphcommerce/graphql@3.0.2
51
+ - @graphcommerce/image@3.0.2
52
+ - @graphcommerce/magento-graphql@3.0.2
53
+ - @graphcommerce/magento-store@4.0.2
54
+
3
55
  ## 4.1.0
4
56
 
5
57
  ### Minor Changes
@@ -1,8 +1,7 @@
1
- import { ApolloErrorAlert, ApolloErrorAlertProps } from '@graphcommerce/next-ui'
1
+ import { ApolloErrorAlert, ApolloErrorAlertProps } from '@graphcommerce/ecommerce-ui'
2
2
  import { Trans } from '@lingui/macro'
3
3
  import { Link } from '@mui/material'
4
4
  import NextLink from 'next/link'
5
- import React from 'react'
6
5
  import { useExtractCustomerErrors } from '../../hooks/useExtractCustomerErrors'
7
6
 
8
7
  type MagentoErrorAlertProps = ApolloErrorAlertProps
@@ -13,7 +12,7 @@ export default function ApolloCustomerErrorAlert(props: MagentoErrorAlertProps)
13
12
  const action = unauthorized && (
14
13
  <NextLink href='/account/signin' passHref>
15
14
  <Link underline='hover'>
16
- <Trans>Create Account</Trans> / <Trans>Sign In</Trans>
15
+ <Trans>Create Account</Trans> / <Trans>Sign in</Trans>
17
16
  </Link>
18
17
  </NextLink>
19
18
  )
@@ -1,9 +1,5 @@
1
- import {
2
- ApolloErrorFullPage,
3
- ApolloErrorAlertProps,
4
- iconPerson,
5
- SvgIcon,
6
- } from '@graphcommerce/next-ui'
1
+ import { ApolloErrorFullPage, ApolloErrorAlertProps } from '@graphcommerce/ecommerce-ui'
2
+ import { iconPerson, SvgIcon } from '@graphcommerce/next-ui'
7
3
  import { Trans } from '@lingui/macro'
8
4
  import { Button } from '@mui/material'
9
5
  import PageLink from 'next/link'
@@ -26,7 +22,7 @@ export default function ApolloCustomerErrorFullPage(props: ApolloCustomerErrorFu
26
22
  unauthorized ? (
27
23
  <PageLink href={signInHref} passHref>
28
24
  <Button variant='contained' color='primary' size='large'>
29
- <Trans>Login</Trans>
25
+ <Trans>Log in</Trans>
30
26
  </Button>
31
27
  </PageLink>
32
28
  ) : undefined
@@ -1,8 +1,7 @@
1
- import { ApolloErrorSnackbar } from '@graphcommerce/next-ui'
1
+ import { ApolloErrorSnackbar } from '@graphcommerce/ecommerce-ui'
2
2
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
3
3
  import { Trans } from '@lingui/macro'
4
4
  import { Button } from '@mui/material'
5
- import React from 'react'
6
5
  import { DeleteCustomerAddressFormDocument } from './DeleteCustomerAddressForm.gql'
7
6
 
8
7
  export type DeleteCustomerAddressFormProps = {
@@ -63,7 +63,7 @@ export default function SignInForm(props: SignInFormProps) {
63
63
  variant='contained'
64
64
  size='large'
65
65
  >
66
- <Trans>Log In</Trans>
66
+ <Trans>Log in</Trans>
67
67
  </Button>
68
68
  </FormControl>
69
69
  </FormActions>
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.1.0",
5
+ "version": "4.1.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,18 +12,21 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.2",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.1",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.1",
18
- "@playwright/test": "^1.18.1"
18
+ "@playwright/test": "^1.19.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.1",
22
- "@graphcommerce/image": "^3.0.1",
23
- "@graphcommerce/magento-graphql": "^3.0.1",
24
- "@graphcommerce/magento-store": "^4.0.1",
25
- "@graphcommerce/next-ui": "^4.1.0",
26
- "@graphcommerce/react-hook-form": "^3.0.1",
21
+ "@graphcommerce/ecommerce-ui": "^1.0.0",
22
+ "@graphcommerce/graphql": "^3.0.2",
23
+ "@graphcommerce/image": "^3.0.2",
24
+ "@graphcommerce/magento-graphql": "^3.0.2",
25
+ "@graphcommerce/magento-store": "^4.0.2",
26
+ "@graphcommerce/next-ui": "^4.1.1",
27
+ "@graphcommerce/react-hook-form": "^3.0.2"
28
+ },
29
+ "peerDependencies": {
27
30
  "@lingui/macro": "^3.13.2",
28
31
  "@mui/material": "^5.4.1",
29
32
  "framer-motion": "^6.2.4",