@graphcommerce/magento-customer 4.2.2 → 4.2.5

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,37 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1412](https://github.com/graphcommerce-org/graphcommerce/pull/1412) [`d8906cf4a`](https://github.com/graphcommerce-org/graphcommerce/commit/d8906cf4afbfc234aedd91a2c581f82623267357) Thanks [@FrankHarland](https://github.com/FrankHarland)! - add missing translation components
8
+
9
+ ## 4.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Now using [@graphql-yoga](https://github.com/dotansimha/graphql-yoga) for GraphQL which has full support for [envelop](https://www.envelop.dev/) plugins.
14
+
15
+ * [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Added a new @graphcommerce/cli package to generate the mesh so it can be generated _inside_ the @graphcommerce/graphql-mesh package to allow for better future extensibility.
16
+
17
+ - [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4) Thanks [@paales](https://github.com/paales)! - Updated dependencies
18
+
19
+ - Updated dependencies [[`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4)]:
20
+ - @graphcommerce/graphql@3.1.0
21
+ - @graphcommerce/graphql-mesh@4.1.0
22
+ - @graphcommerce/magento-graphql@3.0.7
23
+ - @graphcommerce/magento-store@4.1.7
24
+ - @graphcommerce/next-ui@4.6.1
25
+ - @graphcommerce/react-hook-form@3.1.1
26
+ - @graphcommerce/ecommerce-ui@1.0.7
27
+ - @graphcommerce/image@3.1.5
28
+
29
+ ## 4.2.3
30
+
31
+ ### Patch Changes
32
+
33
+ - [#1397](https://github.com/graphcommerce-org/graphcommerce/pull/1397) [`4169b8c68`](https://github.com/graphcommerce-org/graphcommerce/commit/4169b8c686f682ff6e981b029f13abd87fd5f52a) Thanks [@FrankHarland](https://github.com/FrankHarland)! - fix: if recent order images > 1, images now actually show
34
+
3
35
  ## 4.2.2
4
36
 
5
37
  ### Patch Changes
@@ -56,7 +56,7 @@ export function ResetPasswordForm(props: ResetPasswordFormProps) {
56
56
  variant='outlined'
57
57
  type='password'
58
58
  error={!!formState.errors.newPassword}
59
- label='New password'
59
+ label={<Trans>New password</Trans>}
60
60
  required={required.newPassword}
61
61
  {...muiRegister('newPassword', { required: required.newPassword })}
62
62
  helperText={formState.errors.newPassword?.message}
@@ -68,7 +68,7 @@ export function ResetPasswordForm(props: ResetPasswordFormProps) {
68
68
  variant='outlined'
69
69
  type='password'
70
70
  error={!!formState.errors.confirmPassword}
71
- label='Confirm password'
71
+ label={<Trans>Confirm password</Trans>}
72
72
  required
73
73
  {...muiRegister('confirmPassword', {
74
74
  required: true,
@@ -89,7 +89,7 @@ export function ResetPasswordForm(props: ResetPasswordFormProps) {
89
89
  variant='contained'
90
90
  size='large'
91
91
  >
92
- Save new password
92
+ <Trans>Save new password</Trans>
93
93
  </Button>
94
94
  </FormActions>
95
95
  </Form>
@@ -1,9 +1,9 @@
1
+ import { useApolloClient } from '@graphcommerce/graphql'
1
2
  import { FormState, useFormGqlMutation } from '@graphcommerce/react-hook-form'
2
3
  import { useRouter } from 'next/router'
3
4
  import React from 'react'
4
5
  import { ApolloCustomerErrorAlert } from '../ApolloCustomerError/ApolloCustomerErrorAlert'
5
6
  import { SignOutFormDocument } from './SignOutForm.gql'
6
- import { useApolloClient } from '@graphcommerce/graphql'
7
7
 
8
8
  type SignOutFormProps = { button: (props: { formState: FormState<unknown> }) => React.ReactNode }
9
9
 
@@ -15,8 +15,8 @@ export function SignOutForm(props: SignOutFormProps) {
15
15
  const { handleSubmit, formState, error } = useFormGqlMutation(
16
16
  SignOutFormDocument,
17
17
  {
18
- onComplete: () => {
19
- client.clearStore()
18
+ onComplete: async () => {
19
+ await client.clearStore()
20
20
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
21
21
  router.push('/')
22
22
  },
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.2.2",
5
+ "version": "4.2.5",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,20 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.4",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.5",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.20.1"
18
+ "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/ecommerce-ui": "1.0.6",
22
- "@graphcommerce/graphql": "3.0.7",
23
- "@graphcommerce/image": "3.1.4",
24
- "@graphcommerce/magento-graphql": "3.0.6",
25
- "@graphcommerce/magento-store": "4.1.6",
26
- "@graphcommerce/next-ui": "4.6.0",
27
- "@graphcommerce/react-hook-form": "3.1.0"
21
+ "@graphcommerce/ecommerce-ui": "1.0.7",
22
+ "@graphcommerce/graphql": "3.1.0",
23
+ "@graphcommerce/graphql-mesh": "4.1.0",
24
+ "@graphcommerce/image": "3.1.5",
25
+ "@graphcommerce/magento-graphql": "3.0.7",
26
+ "@graphcommerce/magento-store": "4.1.7",
27
+ "@graphcommerce/next-ui": "4.6.1",
28
+ "@graphcommerce/react-hook-form": "3.1.1"
28
29
  },
29
30
  "peerDependencies": {
30
31
  "@lingui/macro": "^3.13.2",
package/typePolicies.ts CHANGED
@@ -1,10 +1,5 @@
1
- import {
2
- FieldPolicy,
3
- CustomerToken,
4
- MigrateCache,
5
- Mutation,
6
- TypedTypePolicies,
7
- } from '@graphcommerce/graphql'
1
+ import type { FieldPolicy, MigrateCache, StrictTypedTypePolicies } from '@graphcommerce/graphql'
2
+ import type { CustomerToken, Mutation } from '@graphcommerce/graphql-mesh'
8
3
  import { CustomerTokenDocument } from './hooks/CustomerToken.gql'
9
4
  import { IsEmailAvailableDocument } from './hooks/IsEmailAvailable.gql'
10
5
 
@@ -70,7 +65,7 @@ const createCustomer: FieldPolicy<Mutation['createCustomer']> = {
70
65
  // return incoming
71
66
  // }
72
67
 
73
- export const customerTypePolicies: TypedTypePolicies = {
68
+ export const customerTypePolicies: StrictTypedTypePolicies = {
74
69
  // Query: { fields: { customer } },
75
70
  Mutation: { fields: { generateCustomerToken, createCustomer } },
76
71
  CustomerToken: { fields: { valid } },