@graphcommerce/magento-customer 4.6.2 → 4.6.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 +11 -0
- package/components/AddressFields/AddressFields.tsx +1 -1
- package/components/ApolloCustomerError/useAuthorizationErrorMasked.ts +2 -2
- package/components/ChangePasswordForm/ChangePasswordForm.tsx +1 -1
- package/components/CreateCustomerAddressForm/CreateCustomerAddressForm.tsx +1 -1
- package/components/CustomerFab/CustomerFab.tsx +1 -1
- package/components/EditAddressForm/EditAddressForm.tsx +1 -1
- package/components/ForgotPasswordForm/ForgotPasswordForm.tsx +1 -1
- package/components/NameFields/NameFields.tsx +3 -3
- package/components/SignUpForm/SignUpForm.tsx +2 -2
- package/components/SignUpForm/SignUpFormInline.tsx +1 -1
- package/components/UpdateCustomerEmailForm/UpdateCustomerEmailForm.tsx +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1538](https://github.com/graphcommerce-org/graphcommerce/pull/1538) [`fe4baa42d`](https://github.com/graphcommerce-org/graphcommerce/commit/fe4baa42db0081ed960d62aef688bd36a7ac974f) Thanks [@paales](https://github.com/paales)! - add missing translations
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`fe4baa42d`](https://github.com/graphcommerce-org/graphcommerce/commit/fe4baa42db0081ed960d62aef688bd36a7ac974f)]:
|
|
10
|
+
- @graphcommerce/next-ui@4.11.2
|
|
11
|
+
- @graphcommerce/ecommerce-ui@1.0.23
|
|
12
|
+
- @graphcommerce/magento-store@4.2.14
|
|
13
|
+
|
|
3
14
|
## 4.6.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -80,7 +80,7 @@ export function AddressFields(props: AddressFieldsProps) {
|
|
|
80
80
|
required: required?.houseNumber,
|
|
81
81
|
pattern: {
|
|
82
82
|
value: houseNumberPattern,
|
|
83
|
-
message: i18n._(/* i18n */
|
|
83
|
+
message: i18n._(/* i18n */ 'Please provide a valid house number'),
|
|
84
84
|
},
|
|
85
85
|
})}
|
|
86
86
|
helperText={formState.isSubmitted && formState.errors.houseNumber?.message}
|
|
@@ -10,8 +10,8 @@ export function useAuthorizationErrorMasked(error?: ApolloError) {
|
|
|
10
10
|
category: 'graphql-authorization',
|
|
11
11
|
error,
|
|
12
12
|
mask: token
|
|
13
|
-
? i18n._(/* i18n */
|
|
14
|
-
: i18n._(/* i18n */
|
|
13
|
+
? i18n._(/* i18n */ 'Please reauthenticate and try again')
|
|
14
|
+
: i18n._(/* i18n */ 'You must sign in to continue'),
|
|
15
15
|
extract: false,
|
|
16
16
|
})
|
|
17
17
|
}
|
|
@@ -61,7 +61,7 @@ export function ChangePasswordForm() {
|
|
|
61
61
|
required
|
|
62
62
|
{...muiRegister('confirmPassword', {
|
|
63
63
|
required: true,
|
|
64
|
-
validate: (value) => value === pass || i18n._(/* i18n */
|
|
64
|
+
validate: (value) => value === pass || i18n._(/* i18n */ "Passwords don't match"),
|
|
65
65
|
})}
|
|
66
66
|
helperText={formState.errors.confirmPassword?.message}
|
|
67
67
|
disabled={formState.isSubmitting}
|
|
@@ -69,7 +69,7 @@ export function CreateCustomerAddressForm() {
|
|
|
69
69
|
label={<Trans id='Telephone' />}
|
|
70
70
|
{...muiRegister('telephone', {
|
|
71
71
|
required: required.telephone,
|
|
72
|
-
pattern: { value: phonePattern, message: i18n._(/* i18n */
|
|
72
|
+
pattern: { value: phonePattern, message: i18n._(/* i18n */ 'Invalid phone number') },
|
|
73
73
|
})}
|
|
74
74
|
helperText={formState.isSubmitted && formState.errors.telephone?.message}
|
|
75
75
|
disabled={formState.isSubmitting}
|
|
@@ -92,7 +92,7 @@ export function EditAddressForm(props: EditAddressFormProps) {
|
|
|
92
92
|
label={<Trans id='Telephone' />}
|
|
93
93
|
{...muiRegister('telephone', {
|
|
94
94
|
required: required.telephone,
|
|
95
|
-
pattern: { value: phonePattern, message: i18n._(/* i18n */
|
|
95
|
+
pattern: { value: phonePattern, message: i18n._(/* i18n */ 'Invalid phone number') },
|
|
96
96
|
})}
|
|
97
97
|
helperText={formState.isSubmitted && formState.errors.telephone?.message}
|
|
98
98
|
disabled={formState.isSubmitting}
|
|
@@ -44,7 +44,7 @@ export function ForgotPasswordForm(props: { sx?: SxProps<Theme> }) {
|
|
|
44
44
|
required={required.email}
|
|
45
45
|
{...muiRegister('email', {
|
|
46
46
|
required: required.email,
|
|
47
|
-
pattern: { value: emailPattern, message: i18n._(/* i18n */
|
|
47
|
+
pattern: { value: emailPattern, message: i18n._(/* i18n */ 'Invalid email address') },
|
|
48
48
|
})}
|
|
49
49
|
helperText={formState.errors.email?.message}
|
|
50
50
|
disabled={formState.isSubmitting}
|
|
@@ -20,9 +20,9 @@ type NameFieldProps = {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export function NameFields(props: NameFieldProps) {
|
|
23
|
-
const mr = i18n._(/* i18n */
|
|
24
|
-
const mrs = i18n._(/* i18n */
|
|
25
|
-
const other = i18n._(/* i18n */
|
|
23
|
+
const mr = i18n._(/* i18n */ 'Mr')
|
|
24
|
+
const mrs = i18n._(/* i18n */ 'Mrs')
|
|
25
|
+
const other = i18n._(/* i18n */ 'Other')
|
|
26
26
|
|
|
27
27
|
const { prefix, form, readOnly, prefixes = [mr, mrs, other] } = props
|
|
28
28
|
assertFormGqlOperation<NameFieldValues>(form)
|
|
@@ -62,7 +62,7 @@ export function SignUpForm(props: SignUpFormProps) {
|
|
|
62
62
|
required: required.password,
|
|
63
63
|
minLength: {
|
|
64
64
|
value: Number(storeConfig?.minimum_password_length ?? 8),
|
|
65
|
-
message: i18n._(/* i18n */
|
|
65
|
+
message: i18n._(/* i18n */ 'Password must have at least 8 characters'),
|
|
66
66
|
},
|
|
67
67
|
})}
|
|
68
68
|
helperText={formState.errors.password?.message || inputError?.message}
|
|
@@ -78,7 +78,7 @@ export function SignUpForm(props: SignUpFormProps) {
|
|
|
78
78
|
{...muiRegister('confirmPassword', {
|
|
79
79
|
required: true,
|
|
80
80
|
validate: (value) =>
|
|
81
|
-
value === watchPassword || i18n._(/* i18n */
|
|
81
|
+
value === watchPassword || i18n._(/* i18n */ "Passwords don't match"),
|
|
82
82
|
})}
|
|
83
83
|
helperText={formState.errors.confirmPassword?.message}
|
|
84
84
|
disabled={formState.isSubmitting}
|
|
@@ -67,7 +67,7 @@ export function SignUpFormInline({
|
|
|
67
67
|
required: required.password,
|
|
68
68
|
minLength: {
|
|
69
69
|
value: minPasswordLength,
|
|
70
|
-
message: i18n._(/* i18n */
|
|
70
|
+
message: i18n._(/* i18n */ 'Password must have at least 8 characters'),
|
|
71
71
|
},
|
|
72
72
|
})}
|
|
73
73
|
helperText={error?.message}
|
|
@@ -90,7 +90,7 @@ export function UpdateCustomerEmailForm(props: UpdateCustomerEmailFormProps) {
|
|
|
90
90
|
required
|
|
91
91
|
{...muiRegister('confirmEmail', {
|
|
92
92
|
required: true,
|
|
93
|
-
validate: (value) => value === watchNewEmail || i18n._(/* i18n */
|
|
93
|
+
validate: (value) => value === watchNewEmail || i18n._(/* i18n */ "Emails don't match"),
|
|
94
94
|
})}
|
|
95
95
|
/>
|
|
96
96
|
</FormRow>
|
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.6.
|
|
5
|
+
"version": "4.6.3",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"type-fest": "^2.12.2"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/ecommerce-ui": "1.0.
|
|
22
|
+
"@graphcommerce/ecommerce-ui": "1.0.23",
|
|
23
23
|
"@graphcommerce/graphql": "3.3.0",
|
|
24
24
|
"@graphcommerce/graphql-mesh": "4.1.4",
|
|
25
25
|
"@graphcommerce/image": "3.1.7",
|
|
26
26
|
"@graphcommerce/magento-graphql": "3.0.15",
|
|
27
|
-
"@graphcommerce/magento-store": "4.2.
|
|
28
|
-
"@graphcommerce/next-ui": "4.11.
|
|
27
|
+
"@graphcommerce/magento-store": "4.2.14",
|
|
28
|
+
"@graphcommerce/next-ui": "4.11.2",
|
|
29
29
|
"@graphcommerce/react-hook-form": "3.2.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|