@graphcommerce/magento-customer 3.4.13 → 3.5.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 +11 -0
- package/components/SignInForm/SignInForm.tsx +2 -1
- package/components/SignInForm/SignInFormInline.tsx +2 -1
- package/components/SignUpForm/SignUpForm.tsx +2 -1
- package/components/SignUpForm/SignUpFormInline.tsx +2 -1
- package/components/UpdateCustomerEmailForm/index.tsx +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.5.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.4.15...@graphcommerce/magento-customer@3.5.0) (2021-11-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* added translations to all pages ([8cf4ecd](https://github.com/ho-nl/m2-pwa/commit/8cf4ecd5db5edfec04ab205aa49f5de433d26579))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.4.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.4.9...@graphcommerce/magento-customer@3.4.10) (2021-11-05)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -2,6 +2,7 @@ import { useQuery } from '@apollo/client'
|
|
|
2
2
|
import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
|
|
3
3
|
import { FormRow, Button, FormActions } from '@graphcommerce/next-ui'
|
|
4
4
|
import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
5
|
+
import { t, Trans } from '@lingui/macro'
|
|
5
6
|
import { FormControl, Link, makeStyles, TextField, Theme } from '@material-ui/core'
|
|
6
7
|
import { Alert } from '@material-ui/lab'
|
|
7
8
|
import PageLink from 'next/link'
|
|
@@ -54,7 +55,7 @@ export default function SignInForm(props: SignInFormProps) {
|
|
|
54
55
|
variant='outlined'
|
|
55
56
|
type='password'
|
|
56
57
|
error={!!formState.errors.password || !!authError}
|
|
57
|
-
label=
|
|
58
|
+
label={t`Password`}
|
|
58
59
|
autoFocus
|
|
59
60
|
autoComplete='current-password'
|
|
60
61
|
id='current-password'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button, Form } from '@graphcommerce/next-ui'
|
|
2
2
|
import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
3
|
+
import { t, Trans } from '@lingui/macro'
|
|
3
4
|
import { makeStyles, TextField, Theme } from '@material-ui/core'
|
|
4
5
|
import PageLink from 'next/link'
|
|
5
6
|
import React, { PropsWithChildren } from 'react'
|
|
@@ -42,7 +43,7 @@ export default function SignInFormInline({ email }: PropsWithChildren<InlineSign
|
|
|
42
43
|
variant='outlined'
|
|
43
44
|
type='password'
|
|
44
45
|
error={!!formState.errors.password || !!error?.message}
|
|
45
|
-
label=
|
|
46
|
+
label={t`Password`}
|
|
46
47
|
autoFocus
|
|
47
48
|
autoComplete='current-password'
|
|
48
49
|
id='current-password'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
|
|
2
2
|
import { Button, FormActions, FormRow } from '@graphcommerce/next-ui'
|
|
3
3
|
import { useFormGqlMutation, useFormPersist } from '@graphcommerce/react-hook-form'
|
|
4
|
+
import { t, Trans } from '@lingui/macro'
|
|
4
5
|
import { FormControlLabel, Switch, TextField } from '@material-ui/core'
|
|
5
6
|
import React from 'react'
|
|
6
7
|
import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
|
|
@@ -33,7 +34,7 @@ export default function SignUpForm(props: SignUpFormProps) {
|
|
|
33
34
|
variant='outlined'
|
|
34
35
|
type='password'
|
|
35
36
|
error={!!formState.errors.password || !!inputError}
|
|
36
|
-
label=
|
|
37
|
+
label={t`Password`}
|
|
37
38
|
autoFocus
|
|
38
39
|
autoComplete='new-password'
|
|
39
40
|
required={required.password}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button, Form, FormRow } from '@graphcommerce/next-ui'
|
|
2
2
|
import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
3
|
+
import { t, Trans } from '@lingui/macro'
|
|
3
4
|
import { makeStyles, TextField, Theme } from '@material-ui/core'
|
|
4
5
|
import React, { PropsWithChildren } from 'react'
|
|
5
6
|
import { SignUpMutationVariables, SignUpMutation, SignUpDocument } from './SignUp.gql'
|
|
@@ -66,7 +67,7 @@ export default function SignUpFormInline({
|
|
|
66
67
|
variant='outlined'
|
|
67
68
|
type='password'
|
|
68
69
|
error={!!formState.errors.password || !!error?.message}
|
|
69
|
-
label=
|
|
70
|
+
label={t`Password`}
|
|
70
71
|
autoFocus
|
|
71
72
|
autoComplete='new-password'
|
|
72
73
|
id='new-password'
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
MessageSnackbar,
|
|
8
8
|
} from '@graphcommerce/next-ui'
|
|
9
9
|
import { emailPattern, useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
10
|
+
import { t, Trans } from '@lingui/macro'
|
|
10
11
|
import { TextField } from '@material-ui/core'
|
|
11
12
|
import React from 'react'
|
|
12
13
|
import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
|
|
@@ -85,7 +86,7 @@ export default function UpdateCustomerEmailForm(props: UpdateCustomerEmailFormPr
|
|
|
85
86
|
autoFocus
|
|
86
87
|
error={formState.isSubmitted && !!formState.errors.confirmEmail}
|
|
87
88
|
helperText={formState.isSubmitted && formState.errors.confirmEmail?.message}
|
|
88
|
-
label=
|
|
89
|
+
label={t`Confirm new email`}
|
|
89
90
|
required
|
|
90
91
|
{...muiRegister('confirmEmail', {
|
|
91
92
|
required: true,
|
|
@@ -99,7 +100,7 @@ export default function UpdateCustomerEmailForm(props: UpdateCustomerEmailFormPr
|
|
|
99
100
|
variant='outlined'
|
|
100
101
|
type='password'
|
|
101
102
|
error={!!formState.errors.password}
|
|
102
|
-
label=
|
|
103
|
+
label={t`Password`}
|
|
103
104
|
autoComplete='password'
|
|
104
105
|
required={required.password}
|
|
105
106
|
{...muiRegister('password', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@graphcommerce/graphql": "^2.105.4",
|
|
25
25
|
"@graphcommerce/image": "^2.105.3",
|
|
26
26
|
"@graphcommerce/magento-graphql": "^2.104.4",
|
|
27
|
-
"@graphcommerce/magento-store": "^3.2.
|
|
28
|
-
"@graphcommerce/next-ui": "^3.14.
|
|
27
|
+
"@graphcommerce/magento-store": "^3.2.16",
|
|
28
|
+
"@graphcommerce/next-ui": "^3.14.8",
|
|
29
29
|
"@graphcommerce/react-hook-form": "^2.103.1",
|
|
30
30
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"react": "^17.0.2",
|
|
37
37
|
"react-dom": "^17.0.2"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4e309955dd02ff7c4da55483871edb689f2a6aa3"
|
|
40
40
|
}
|