@graphcommerce/magento-customer 4.1.0 β 4.1.3
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 +88 -0
- package/components/AccountAddresses/index.tsx +2 -2
- package/components/ApolloCustomerError/ApolloCustomerErrorAlert.tsx +2 -3
- package/components/ApolloCustomerError/ApolloCustomerErrorFullPage.tsx +4 -8
- package/components/CustomerFab/index.tsx +2 -2
- package/components/CustomerMenuFabItem/index.tsx +2 -2
- package/components/DeleteCustomerAddressForm/index.tsx +1 -2
- package/components/SignInForm/SignInForm.tsx +1 -1
- package/package.json +14 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292)
|
|
8
|
+
[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0)
|
|
9
|
+
Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions
|
|
10
|
+
with MUI
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
[[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0),
|
|
14
|
+
[`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d),
|
|
15
|
+
[`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
16
|
+
- @graphcommerce/ecommerce-ui@1.0.2
|
|
17
|
+
- @graphcommerce/next-ui@4.2.0
|
|
18
|
+
|
|
19
|
+
## 4.1.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
24
|
+
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
28
|
+
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
29
|
+
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
30
|
+
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
31
|
+
- @graphcommerce/ecommerce-ui@1.0.1
|
|
32
|
+
- @graphcommerce/graphql@3.0.3
|
|
33
|
+
- @graphcommerce/image@3.1.0
|
|
34
|
+
- @graphcommerce/magento-graphql@3.0.3
|
|
35
|
+
- @graphcommerce/magento-store@4.0.3
|
|
36
|
+
- @graphcommerce/next-ui@4.1.2
|
|
37
|
+
- @graphcommerce/react-hook-form@3.0.3
|
|
38
|
+
|
|
39
|
+
## 4.1.1
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
|
|
44
|
+
[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7)
|
|
45
|
+
Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and
|
|
46
|
+
`ApolloErrorSnackbar` to the ecommerce-ui package.
|
|
47
|
+
|
|
48
|
+
Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from
|
|
49
|
+
`magento-graphcms` example.
|
|
50
|
+
|
|
51
|
+
Removed dependency an `@graphcommerce/react-hook-form` from `magento-graphcms` example.
|
|
52
|
+
|
|
53
|
+
Added dependency `@graphcommerce/ecommerce-ui` from `magento-graphcms` example.
|
|
54
|
+
|
|
55
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
56
|
+
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
|
|
57
|
+
Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
|
|
58
|
+
`dependencies` to `peerDependencies`. The result of this is that there will be significantly less
|
|
59
|
+
duplicate packages in the node_modules folders.
|
|
60
|
+
|
|
61
|
+
- [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
|
|
62
|
+
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
|
|
63
|
+
Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
|
|
64
|
+
various translations for english πΊπΈπ¬π§ and dutch π³π±
|
|
65
|
+
|
|
66
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
67
|
+
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
68
|
+
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
69
|
+
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
70
|
+
implementing
|
|
71
|
+
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
72
|
+
soon.
|
|
73
|
+
|
|
74
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
75
|
+
frontend to be able to revalidate pages manually.
|
|
76
|
+
|
|
77
|
+
* Updated dependencies
|
|
78
|
+
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
79
|
+
[`351347afe`](https://github.com/ho-nl/m2-pwa/commit/351347afeae5bd837408d46c7593bcf5473dc621),
|
|
80
|
+
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
81
|
+
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
82
|
+
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
|
|
83
|
+
- @graphcommerce/ecommerce-ui@1.0.0
|
|
84
|
+
- @graphcommerce/next-ui@4.1.1
|
|
85
|
+
- @graphcommerce/react-hook-form@3.0.2
|
|
86
|
+
- @graphcommerce/graphql@3.0.2
|
|
87
|
+
- @graphcommerce/image@3.0.2
|
|
88
|
+
- @graphcommerce/magento-graphql@3.0.2
|
|
89
|
+
- @graphcommerce/magento-store@4.0.2
|
|
90
|
+
|
|
3
91
|
## 4.1.0
|
|
4
92
|
|
|
5
93
|
### Minor Changes
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
FullPageMessage,
|
|
3
3
|
SectionContainer,
|
|
4
4
|
iconHome,
|
|
5
|
-
|
|
5
|
+
IconSvg,
|
|
6
6
|
extendableComponent,
|
|
7
7
|
} from '@graphcommerce/next-ui'
|
|
8
8
|
import { Trans } from '@lingui/macro'
|
|
@@ -57,7 +57,7 @@ export default function AccountAddresses(props: AccountAddressesProps) {
|
|
|
57
57
|
{((addresses && addresses.length === 0) || !addresses) && (
|
|
58
58
|
<FullPageMessage
|
|
59
59
|
title={<Trans>You have no addresses saved yet</Trans>}
|
|
60
|
-
icon={<
|
|
60
|
+
icon={<IconSvg src={iconHome} size='xxl' />}
|
|
61
61
|
button={
|
|
62
62
|
<Link href='/account/addresses/add' passHref>
|
|
63
63
|
<Button size='large' variant='contained' color='primary'>
|
|
@@ -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, IconSvg } 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'
|
|
@@ -21,12 +17,12 @@ export default function ApolloCustomerErrorFullPage(props: ApolloCustomerErrorFu
|
|
|
21
17
|
return (
|
|
22
18
|
<ApolloErrorFullPage
|
|
23
19
|
error={error}
|
|
24
|
-
icon={<
|
|
20
|
+
icon={<IconSvg src={iconPerson} size='xxl' />}
|
|
25
21
|
button={
|
|
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
|
|
@@ -2,7 +2,7 @@ import { useQuery } from '@graphcommerce/graphql'
|
|
|
2
2
|
import {
|
|
3
3
|
iconPerson,
|
|
4
4
|
DesktopHeaderBadge,
|
|
5
|
-
|
|
5
|
+
IconSvg,
|
|
6
6
|
extendableComponent,
|
|
7
7
|
} from '@graphcommerce/next-ui'
|
|
8
8
|
import { t } from '@lingui/macro'
|
|
@@ -44,7 +44,7 @@ function CustomerFabContent(props: CustomerFabContentProps) {
|
|
|
44
44
|
variant='dot'
|
|
45
45
|
overlap='circular'
|
|
46
46
|
>
|
|
47
|
-
{icon ?? <
|
|
47
|
+
{icon ?? <IconSvg src={iconPerson} size='large' />}
|
|
48
48
|
</DesktopHeaderBadge>
|
|
49
49
|
</Fab>
|
|
50
50
|
</PageLink>
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MenuFabSecondaryItem,
|
|
4
4
|
DesktopHeaderBadge,
|
|
5
5
|
iconPerson,
|
|
6
|
-
|
|
6
|
+
IconSvg,
|
|
7
7
|
} from '@graphcommerce/next-ui'
|
|
8
8
|
import { NoSsr, SxProps, Theme } from '@mui/material'
|
|
9
9
|
import React from 'react'
|
|
@@ -31,7 +31,7 @@ function CustomerMenuFabItemContent(props: CustomerMenuFabItemProps) {
|
|
|
31
31
|
variant='dot'
|
|
32
32
|
overlap='circular'
|
|
33
33
|
>
|
|
34
|
-
{icon ?? <
|
|
34
|
+
{icon ?? <IconSvg 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
|
@@ -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.
|
|
5
|
+
"version": "4.1.3",
|
|
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.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
17
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
18
|
-
"@playwright/test": "^1.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.3",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.2",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
+
"@playwright/test": "^1.19.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/
|
|
22
|
-
"@graphcommerce/
|
|
23
|
-
"@graphcommerce/
|
|
24
|
-
"@graphcommerce/magento-
|
|
25
|
-
"@graphcommerce/
|
|
26
|
-
"@graphcommerce/
|
|
21
|
+
"@graphcommerce/ecommerce-ui": "^1.0.2",
|
|
22
|
+
"@graphcommerce/graphql": "^3.0.3",
|
|
23
|
+
"@graphcommerce/image": "^3.1.0",
|
|
24
|
+
"@graphcommerce/magento-graphql": "^3.0.3",
|
|
25
|
+
"@graphcommerce/magento-store": "^4.0.3",
|
|
26
|
+
"@graphcommerce/next-ui": "^4.2.0",
|
|
27
|
+
"@graphcommerce/react-hook-form": "^3.0.3"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
27
30
|
"@lingui/macro": "^3.13.2",
|
|
28
31
|
"@mui/material": "^5.4.1",
|
|
29
32
|
"framer-motion": "^6.2.4",
|