@graphcommerce/magento-customer 4.0.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 +86 -0
- package/components/ApolloCustomerError/ApolloCustomerErrorAlert.tsx +2 -3
- package/components/ApolloCustomerError/ApolloCustomerErrorFullPage.tsx +3 -7
- package/components/CustomerMenuFabItem/index.tsx +1 -1
- package/components/DeleteCustomerAddressForm/index.tsx +1 -2
- package/components/SignInForm/SignInForm.tsx +1 -1
- package/package.json +16 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,91 @@
|
|
|
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
|
+
|
|
55
|
+
## 4.1.0
|
|
56
|
+
|
|
57
|
+
### Minor Changes
|
|
58
|
+
|
|
59
|
+
- [#1273](https://github.com/ho-nl/m2-pwa/pull/1273)
|
|
60
|
+
[`8c4e4f7cd`](https://github.com/ho-nl/m2-pwa/commit/8c4e4f7cdd2fa4252788fbc9889d0803bba20eef)
|
|
61
|
+
Thanks [@paales](https://github.com/paales)! - Added darkmode support! βοΈπ, adds a toggle to the
|
|
62
|
+
hamburger menu.
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- Updated dependencies
|
|
67
|
+
[[`e0008d60d`](https://github.com/ho-nl/m2-pwa/commit/e0008d60d712603219129dd411d1985bf1ebbed1),
|
|
68
|
+
[`5d9f8320f`](https://github.com/ho-nl/m2-pwa/commit/5d9f8320ff9621d7357fbe01319ab0cafdf9095d),
|
|
69
|
+
[`8c4e4f7cd`](https://github.com/ho-nl/m2-pwa/commit/8c4e4f7cdd2fa4252788fbc9889d0803bba20eef),
|
|
70
|
+
[`5082b8c81`](https://github.com/ho-nl/m2-pwa/commit/5082b8c8191cc3e0b4627678bf837af093513d57)]:
|
|
71
|
+
- @graphcommerce/next-ui@4.1.0
|
|
72
|
+
|
|
73
|
+
## 4.0.1
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
78
|
+
Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
|
|
79
|
+
so that the packages link to back to the website and repository
|
|
80
|
+
- Updated dependencies
|
|
81
|
+
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
82
|
+
- @graphcommerce/graphql@3.0.1
|
|
83
|
+
- @graphcommerce/image@3.0.1
|
|
84
|
+
- @graphcommerce/magento-graphql@3.0.1
|
|
85
|
+
- @graphcommerce/magento-store@4.0.1
|
|
86
|
+
- @graphcommerce/next-ui@4.0.1
|
|
87
|
+
- @graphcommerce/react-hook-form@3.0.1
|
|
88
|
+
|
|
3
89
|
## 4.0.0
|
|
4
90
|
|
|
5
91
|
### Major Changes
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ApolloErrorAlert, ApolloErrorAlertProps } from '@graphcommerce/
|
|
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
|
|
15
|
+
<Trans>Create Account</Trans> / <Trans>Sign in</Trans>
|
|
17
16
|
</Link>
|
|
18
17
|
</NextLink>
|
|
19
18
|
)
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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>
|
|
25
|
+
<Trans>Log in</Trans>
|
|
30
26
|
</Button>
|
|
31
27
|
</PageLink>
|
|
32
28
|
) : undefined
|
|
@@ -31,7 +31,7 @@ function CustomerMenuFabItemContent(props: CustomerMenuFabItemProps) {
|
|
|
31
31
|
variant='dot'
|
|
32
32
|
overlap='circular'
|
|
33
33
|
>
|
|
34
|
-
{icon ?? <SvgIcon src={iconPerson} />}
|
|
34
|
+
{icon ?? <SvgIcon src={iconPerson} size='medium' />}
|
|
35
35
|
</DesktopHeaderBadge>
|
|
36
36
|
}
|
|
37
37
|
href={requireAuth ? guestHref : authHref}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ApolloErrorSnackbar } from '@graphcommerce/
|
|
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 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
|
-
"
|
|
3
|
+
"homepage": "https://www.graphcommerce.org/",
|
|
4
|
+
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
+
"version": "4.1.1",
|
|
4
6
|
"sideEffects": false,
|
|
5
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
8
|
"eslintConfig": {
|
|
@@ -10,18 +12,21 @@
|
|
|
10
12
|
}
|
|
11
13
|
},
|
|
12
14
|
"devDependencies": {
|
|
13
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
14
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
16
|
-
"@playwright/test": "^1.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.2",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.1",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.1",
|
|
18
|
+
"@playwright/test": "^1.19.1"
|
|
17
19
|
},
|
|
18
20
|
"dependencies": {
|
|
19
|
-
"@graphcommerce/
|
|
20
|
-
"@graphcommerce/
|
|
21
|
-
"@graphcommerce/
|
|
22
|
-
"@graphcommerce/magento-
|
|
23
|
-
"@graphcommerce/
|
|
24
|
-
"@graphcommerce/
|
|
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": {
|
|
25
30
|
"@lingui/macro": "^3.13.2",
|
|
26
31
|
"@mui/material": "^5.4.1",
|
|
27
32
|
"framer-motion": "^6.2.4",
|