@graphcommerce/magento-customer 3.4.7 → 3.4.11

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 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.7",
3
+ "version": "3.4.11",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -24,8 +24,8 @@
24
24
  "@graphcommerce/graphql": "^2.105.3",
25
25
  "@graphcommerce/image": "^2.105.2",
26
26
  "@graphcommerce/magento-graphql": "^2.104.3",
27
- "@graphcommerce/magento-store": "^3.2.7",
28
- "@graphcommerce/next-ui": "^3.13.2",
27
+ "@graphcommerce/magento-store": "^3.2.10",
28
+ "@graphcommerce/next-ui": "^3.14.2",
29
29
  "@graphcommerce/react-hook-form": "^2.103.0",
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": "db0c7ff1a81b75e4e6eeee3717a1fc608d9c3c86"
39
+ "gitHead": "4ea4a44e313b7474597ca86982ddceb10423af73"
40
40
  }