@graphcommerce/magento-customer 4.6.0 → 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 CHANGED
@@ -1,5 +1,36 @@
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
+
14
+ ## 4.6.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`11bca2d2f`](https://github.com/graphcommerce-org/graphcommerce/commit/11bca2d2f7dbb7c5e2827c04eb0db43d4099f2fd)]:
19
+ - @graphcommerce/next-ui@4.11.1
20
+ - @graphcommerce/ecommerce-ui@1.0.22
21
+ - @graphcommerce/magento-store@4.2.13
22
+
23
+ ## 4.6.1
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [[`9ec0338df`](https://github.com/graphcommerce-org/graphcommerce/commit/9ec0338dfe34d37b0f2c24e36ffa6ed13ea1145e), [`735b78672`](https://github.com/graphcommerce-org/graphcommerce/commit/735b786724d5401cbe6e88f2515e121a1a0945b2)]:
28
+ - @graphcommerce/next-ui@4.11.0
29
+ - @graphcommerce/magento-store@4.2.12
30
+ - @graphcommerce/graphql@3.3.0
31
+ - @graphcommerce/ecommerce-ui@1.0.21
32
+ - @graphcommerce/magento-graphql@3.0.15
33
+
3
34
  ## 4.6.0
4
35
 
5
36
  ### Minor 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 */ `Please provide a valid house number`),
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 */ `Please reauthenticate and try again`)
14
- : i18n._(/* i18n */ `You must sign in to continue`),
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 */ `Passwords don't match`),
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 */ `Invalid phone number`) },
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}
@@ -31,7 +31,7 @@ function CustomerFabContent(props: CustomerFabContentProps) {
31
31
  <Fab
32
32
  color='inherit'
33
33
  id='account'
34
- aria-label={i18n._(/* i18n */ `Account`)}
34
+ aria-label={i18n._(/* i18n */ 'Account')}
35
35
  size='large'
36
36
  className={classes.root}
37
37
  {...FabProps}
@@ -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 */ `Invalid phone number`) },
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 */ `Invalid email address`) },
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 */ `Mr`)
24
- const mrs = i18n._(/* i18n */ `Mrs`)
25
- const other = i18n._(/* i18n */ `Other`)
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 */ `Password must have at least 8 characters`),
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 */ `Passwords don't match`),
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 */ `Password must have at least 8 characters`),
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 */ `Emails don't match`),
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.0",
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.20",
23
- "@graphcommerce/graphql": "3.2.1",
22
+ "@graphcommerce/ecommerce-ui": "1.0.23",
23
+ "@graphcommerce/graphql": "3.3.0",
24
24
  "@graphcommerce/graphql-mesh": "4.1.4",
25
25
  "@graphcommerce/image": "3.1.7",
26
- "@graphcommerce/magento-graphql": "3.0.14",
27
- "@graphcommerce/magento-store": "4.2.11",
28
- "@graphcommerce/next-ui": "4.10.0",
26
+ "@graphcommerce/magento-graphql": "3.0.15",
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": {