@graphcommerce/magento-customer 3.2.1 → 3.3.2
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 +28 -0
- package/components/AccountAddresses/index.tsx +2 -1
- package/components/ApolloCustomerError/ApolloCustomerErrorFullPage.tsx +3 -2
- package/components/ChangeNameForm/index.tsx +2 -1
- package/components/CustomerFab/index.tsx +2 -2
- package/components/CustomerMenuFabItem/index.tsx +2 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.3.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.3.0...@graphcommerce/magento-customer@3.3.1) (2021-10-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.2.2...@graphcommerce/magento-customer@3.3.0) (2021-10-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* remove double icons ([1654e34](https://github.com/ho-nl/m2-pwa/commit/1654e3441911f3c7c1600357f8f8e3032f5ee729))
|
|
23
|
+
* update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
# [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.1.9...@graphcommerce/magento-customer@3.2.0) (2021-10-27)
|
|
7
35
|
|
|
8
36
|
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
MessageSnackbar,
|
|
6
6
|
SvgImage,
|
|
7
7
|
iconHome,
|
|
8
|
+
SvgImageSimple,
|
|
8
9
|
} from '@graphcommerce/next-ui'
|
|
9
10
|
import { makeStyles, Theme } from '@material-ui/core'
|
|
10
11
|
import { Skeleton } from '@material-ui/lab'
|
|
@@ -65,7 +66,7 @@ export default function AccountAddresses(props: AccountAddressesProps) {
|
|
|
65
66
|
<>
|
|
66
67
|
<FullPageMessage
|
|
67
68
|
title='You have no addresses saved yet'
|
|
68
|
-
icon={<
|
|
69
|
+
icon={<SvgImageSimple src={iconHome} size='xxl' />}
|
|
69
70
|
button={
|
|
70
71
|
<Link href='/account/addresses/add' passHref>
|
|
71
72
|
<Button size='large' variant='contained' color='primary' text='bold'>
|
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
ApolloErrorAlertProps,
|
|
4
4
|
Button,
|
|
5
5
|
SvgImage,
|
|
6
|
-
|
|
6
|
+
iconPerson,
|
|
7
|
+
SvgImageSimple,
|
|
7
8
|
} from '@graphcommerce/next-ui'
|
|
8
9
|
import PageLink from 'next/link'
|
|
9
10
|
import React from 'react'
|
|
@@ -22,7 +23,7 @@ export default function ApolloCustomerErrorFullPage(props: ApolloCustomerErrorFu
|
|
|
22
23
|
return (
|
|
23
24
|
<ApolloErrorFullPage
|
|
24
25
|
error={error}
|
|
25
|
-
icon={<
|
|
26
|
+
icon={<SvgImageSimple src={iconPerson} size='xxl' />}
|
|
26
27
|
button={
|
|
27
28
|
unauthorized ? (
|
|
28
29
|
<PageLink href={signInHref} passHref>
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
MessageSnackbar,
|
|
7
7
|
SvgImage,
|
|
8
8
|
iconCheckmark,
|
|
9
|
+
SvgImageSimple,
|
|
9
10
|
} from '@graphcommerce/next-ui'
|
|
10
11
|
import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
11
12
|
import React from 'react'
|
|
@@ -57,7 +58,7 @@ export default function ChangeNameForm(props: ChangeNameFormProps) {
|
|
|
57
58
|
</Form>
|
|
58
59
|
<MessageSnackbar open={formState.isSubmitSuccessful && !error} variant='pill'>
|
|
59
60
|
<>
|
|
60
|
-
<
|
|
61
|
+
<SvgImageSimple src={iconCheckmark} size='small' />
|
|
61
62
|
Changes saved
|
|
62
63
|
</>
|
|
63
64
|
</MessageSnackbar>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useQuery } from '@apollo/client'
|
|
2
|
-
import {
|
|
2
|
+
import { iconPerson, StyledBadge, SvgImageSimple, UseStyles } from '@graphcommerce/next-ui'
|
|
3
3
|
import { Fab, FabProps as FabPropsType, makeStyles, NoSsr, Theme } from '@material-ui/core'
|
|
4
4
|
import PageLink from 'next/link'
|
|
5
5
|
import React from 'react'
|
|
@@ -32,7 +32,7 @@ function CustomerFabContent(props: CustomerFabContentProps) {
|
|
|
32
32
|
variant='dot'
|
|
33
33
|
classes={{ colorError: classes.colorError }}
|
|
34
34
|
>
|
|
35
|
-
{icon ?? <SvgImageSimple src={
|
|
35
|
+
{icon ?? <SvgImageSimple src={iconPerson} size='large' />}
|
|
36
36
|
</StyledBadge>
|
|
37
37
|
</Fab>
|
|
38
38
|
</PageLink>
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MenuFabSecondaryItem,
|
|
4
4
|
StyledBadge,
|
|
5
5
|
UseStyles,
|
|
6
|
-
|
|
6
|
+
iconPerson,
|
|
7
7
|
SvgImageSimple,
|
|
8
8
|
} from '@graphcommerce/next-ui'
|
|
9
9
|
import { makeStyles, NoSsr, Theme } from '@material-ui/core'
|
|
@@ -47,7 +47,7 @@ function CustomerMenuFabItemContent(props: CustomerMenuFabItemProps) {
|
|
|
47
47
|
variant='dot'
|
|
48
48
|
classes={{ colorError: classes.colorError, badge: classes.badge }}
|
|
49
49
|
>
|
|
50
|
-
{icon ?? <SvgImageSimple src={
|
|
50
|
+
{icon ?? <SvgImageSimple src={iconPerson} />}
|
|
51
51
|
</StyledBadge>
|
|
52
52
|
}
|
|
53
53
|
href={requireAuth ? guestHref : authHref}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
|
-
"version": "3.2
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,27 +14,27 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.2",
|
|
18
18
|
"@graphcommerce/prettier-config-pwa": "^3.0.3",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
20
|
-
"@playwright/test": "^1.
|
|
20
|
+
"@playwright/test": "^1.16.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.4.16",
|
|
24
|
-
"@graphcommerce/graphql": "^2.105.
|
|
25
|
-
"@graphcommerce/image": "^2.105.
|
|
26
|
-
"@graphcommerce/magento-graphql": "^2.104.
|
|
27
|
-
"@graphcommerce/magento-store": "^3.1.
|
|
28
|
-
"@graphcommerce/next-ui": "^3.
|
|
29
|
-
"@graphcommerce/react-hook-form": "^2.102.
|
|
24
|
+
"@graphcommerce/graphql": "^2.105.1",
|
|
25
|
+
"@graphcommerce/image": "^2.105.1",
|
|
26
|
+
"@graphcommerce/magento-graphql": "^2.104.1",
|
|
27
|
+
"@graphcommerce/magento-store": "^3.1.5",
|
|
28
|
+
"@graphcommerce/next-ui": "^3.11.2",
|
|
29
|
+
"@graphcommerce/react-hook-form": "^2.102.13",
|
|
30
30
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
32
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
33
33
|
"clsx": "^1.1.1",
|
|
34
34
|
"framer-motion": "^4.1.17",
|
|
35
|
-
"next": "^12.0.
|
|
35
|
+
"next": "^12.0.1",
|
|
36
36
|
"react": "^17.0.2",
|
|
37
37
|
"react-dom": "^17.0.2"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ed70123f0b4c4552ca413deff6fe786156d0772f"
|
|
40
40
|
}
|