@graphcommerce/magento-customer 4.2.3 → 4.2.6

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,44 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`06f7bdff8`](https://github.com/graphcommerce-org/graphcommerce/commit/06f7bdff882396f2b0e1a2873fbb718c7b06fab4), [`100f4c38c`](https://github.com/graphcommerce-org/graphcommerce/commit/100f4c38c8fcda4bc6e0425e38028b550b60adc2)]:
8
+ - @graphcommerce/graphql-mesh@4.1.1
9
+ - @graphcommerce/graphql@3.1.1
10
+ - @graphcommerce/next-ui@4.6.2
11
+ - @graphcommerce/react-hook-form@3.1.2
12
+ - @graphcommerce/magento-store@4.1.8
13
+ - @graphcommerce/ecommerce-ui@1.0.8
14
+ - @graphcommerce/magento-graphql@3.0.8
15
+
16
+ ## 4.2.5
17
+
18
+ ### Patch Changes
19
+
20
+ - [#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
21
+
22
+ ## 4.2.4
23
+
24
+ ### Patch Changes
25
+
26
+ - [#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.
27
+
28
+ * [#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.
29
+
30
+ - [#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
31
+
32
+ - 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)]:
33
+ - @graphcommerce/graphql@3.1.0
34
+ - @graphcommerce/graphql-mesh@4.1.0
35
+ - @graphcommerce/magento-graphql@3.0.7
36
+ - @graphcommerce/magento-store@4.1.7
37
+ - @graphcommerce/next-ui@4.6.1
38
+ - @graphcommerce/react-hook-form@3.1.1
39
+ - @graphcommerce/ecommerce-ui@1.0.7
40
+ - @graphcommerce/image@3.1.5
41
+
3
42
  ## 4.2.3
4
43
 
5
44
  ### 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.3",
5
+ "version": "4.2.6",
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.6",
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.8",
22
+ "@graphcommerce/graphql": "3.1.1",
23
+ "@graphcommerce/graphql-mesh": "4.1.1",
24
+ "@graphcommerce/image": "3.1.5",
25
+ "@graphcommerce/magento-graphql": "3.0.8",
26
+ "@graphcommerce/magento-store": "4.1.8",
27
+ "@graphcommerce/next-ui": "4.6.2",
28
+ "@graphcommerce/react-hook-form": "3.1.2"
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 } },