@graphcommerce/magento-customer 3.4.9 → 3.4.13
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 +12 -0
- package/components/SignUpForm/SignUpForm.tsx +4 -7
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **sign-up-form:** prevent throwing sign up errors ([3c5d059](https://github.com/ho-nl/m2-pwa/commit/3c5d059b6a3e6cedb4b6eb967235f4d27075fcd4))
|
|
12
|
+
* **signup-form:** fix helper text ([09025a4](https://github.com/ho-nl/m2-pwa/commit/09025a4ee6257d0be40b3b97455aebb4359ed4a7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.4.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.3.5...@graphcommerce/magento-customer@3.4.0) (2021-11-02)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -16,15 +16,16 @@ export default function SignUpForm(props: SignUpFormProps) {
|
|
|
16
16
|
const form = useFormGqlMutation<
|
|
17
17
|
SignUpMutation,
|
|
18
18
|
SignUpMutationVariables & { confirmPassword?: string }
|
|
19
|
-
>(SignUpDocument, { defaultValues: { email } })
|
|
19
|
+
>(SignUpDocument, { defaultValues: { email } }, { errorPolicy: 'all' })
|
|
20
20
|
|
|
21
|
-
useFormPersist({ form, name: 'SignUp', exclude: ['password', 'confirmPassword'] })
|
|
22
21
|
const { muiRegister, handleSubmit, required, watch, formState, error } = form
|
|
23
22
|
const [remainingError, inputError] = graphqlErrorByCategory({ category: 'graphql-input', error })
|
|
24
23
|
|
|
25
24
|
const submitHandler = handleSubmit(() => {})
|
|
26
25
|
const watchPassword = watch('password')
|
|
27
26
|
|
|
27
|
+
useFormPersist({ form, name: 'SignUp', exclude: ['password', 'confirmPassword'] })
|
|
28
|
+
|
|
28
29
|
return (
|
|
29
30
|
<form onSubmit={submitHandler} noValidate>
|
|
30
31
|
<FormRow>
|
|
@@ -40,11 +41,7 @@ export default function SignUpForm(props: SignUpFormProps) {
|
|
|
40
41
|
required: required.password,
|
|
41
42
|
minLength: { value: 8, message: 'Password must have at least 8 characters' },
|
|
42
43
|
})}
|
|
43
|
-
helperText={
|
|
44
|
-
formState.errors.password?.message ||
|
|
45
|
-
inputError?.message ||
|
|
46
|
-
'At least 8 characters long, must contain a symbol'
|
|
47
|
-
}
|
|
44
|
+
helperText={formState.errors.password?.message || inputError?.message}
|
|
48
45
|
disabled={formState.isSubmitting}
|
|
49
46
|
/>
|
|
50
47
|
<TextField
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.13",
|
|
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.
|
|
18
|
-
"@graphcommerce/prettier-config-pwa": "^3.0.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.4",
|
|
18
|
+
"@graphcommerce/prettier-config-pwa": "^3.0.4",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
20
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.2.
|
|
28
|
-
"@graphcommerce/next-ui": "^3.14.
|
|
29
|
-
"@graphcommerce/react-hook-form": "^2.103.
|
|
24
|
+
"@graphcommerce/graphql": "^2.105.4",
|
|
25
|
+
"@graphcommerce/image": "^2.105.3",
|
|
26
|
+
"@graphcommerce/magento-graphql": "^2.104.4",
|
|
27
|
+
"@graphcommerce/magento-store": "^3.2.12",
|
|
28
|
+
"@graphcommerce/next-ui": "^3.14.4",
|
|
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",
|
|
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.3",
|
|
36
36
|
"react": "^17.0.2",
|
|
37
37
|
"react-dom": "^17.0.2"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "1099718b92d4d472f32aeb6379f6167c6b550ccf"
|
|
40
40
|
}
|