@graphcommerce/magento-customer 3.6.15 → 3.6.19

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/components/AccountAddress/AccountAddress.gql.ts +4 -0
  3. package/components/AccountAddresses/AccountAddresses.gql.ts +4 -0
  4. package/components/AccountAddresses/UpdateDefaultAddress.gql.ts +14 -0
  5. package/components/AccountAddresses/index.tsx +0 -4
  6. package/components/ChangeNameForm/UpdateCustomerName.gql.ts +14 -0
  7. package/components/ChangePasswordForm/ChangePassword.gql.ts +13 -0
  8. package/components/CreateCustomerAddressForm/CreateCustomerAddress.gql.ts +28 -0
  9. package/components/CreateCustomerAddressForm/CustomerAddress.gql.ts +4 -0
  10. package/components/CreateCustomerAddressForm/CustomerAddressEdit.gql.ts +4 -0
  11. package/components/CustomerFab/index.tsx +7 -1
  12. package/components/DeleteCustomerAddressForm/DeleteCustomerAddressForm.gql.ts +12 -0
  13. package/components/DeleteCustomerAddressForm/index.tsx +5 -23
  14. package/components/EditAddressForm/UpdateCustomerAddress.gql.ts +29 -0
  15. package/components/ForgotPasswordForm/ForgotPassword.gql.ts +12 -0
  16. package/components/NameFields/index.tsx +4 -3
  17. package/components/ResetPasswordForm/ResetPassword.gql.ts +14 -0
  18. package/components/SignInForm/SignIn.gql.ts +13 -0
  19. package/components/SignInForm/SignInForm.tsx +4 -11
  20. package/components/SignOutForm/SignOutForm.gql.ts +10 -0
  21. package/components/SignUpForm/SignUp.gql.ts +22 -0
  22. package/components/SignUpForm/SignUpForm.tsx +7 -6
  23. package/components/UpdateCustomerEmailForm/UpdateCustomerEmail.gql.ts +13 -0
  24. package/hooks/Customer.gql.ts +10 -0
  25. package/hooks/CustomerInfo.gql.ts +4 -0
  26. package/hooks/CustomerToken.gql.ts +10 -0
  27. package/hooks/IsEmailAvailable.gql.ts +12 -0
  28. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.6.17](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.6.16...@graphcommerce/magento-customer@3.6.17) (2021-12-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * added various translations ([66c089d](https://github.com/ho-nl/m2-pwa/commit/66c089dc458e2d7b9f0318b2e14d88cb0e6effc8))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.6.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-customer@3.5.6...@graphcommerce/magento-customer@3.6.0) (2021-11-12)
7
18
 
8
19
 
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type AccountAddressFragment = { default_billing?: boolean | null | undefined, default_shipping?: boolean | null | undefined, id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type AccountAddressesFragment = { addresses?: Array<{ default_billing?: boolean | null | undefined, default_shipping?: boolean | null | undefined, id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> | null | undefined };
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const UpdateDefaultAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateDefaultAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"addressId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultBilling"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultShipping"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCustomerAddress"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"addressId"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"default_billing"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultBilling"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"default_shipping"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultShipping"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"default_billing"}},{"kind":"Field","name":{"kind":"Name","value":"default_shipping"}}]}}]}}]} as unknown as DocumentNode<UpdateDefaultAddressMutation, UpdateDefaultAddressMutationVariables>;
7
+ export type UpdateDefaultAddressMutationVariables = Types.Exact<{
8
+ addressId: Types.Scalars['Int'];
9
+ defaultBilling: Types.Scalars['Boolean'];
10
+ defaultShipping: Types.Scalars['Boolean'];
11
+ }>;
12
+
13
+
14
+ export type UpdateDefaultAddressMutation = { updateCustomerAddress?: { id?: number | null | undefined, default_billing?: boolean | null | undefined, default_shipping?: boolean | null | undefined } | null | undefined };
@@ -89,10 +89,6 @@ export default function AccountAddresses(props: AccountAddressesProps) {
89
89
  <Trans>Add new address</Trans>
90
90
  </Button>
91
91
  </Link>
92
-
93
- <MessageSnackbar sticky open={router.query.confirm_delete !== undefined}>
94
- <Trans>Successfully deleted address</Trans>
95
- </MessageSnackbar>
96
92
  </SectionContainer>
97
93
  )}
98
94
  </>
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const UpdateCustomerNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCustomerName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCustomer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"prefix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"firstname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"lastname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateCustomerNameMutation, UpdateCustomerNameMutationVariables>;
7
+ export type UpdateCustomerNameMutationVariables = Types.Exact<{
8
+ prefix?: Types.InputMaybe<Types.Scalars['String']>;
9
+ firstname: Types.Scalars['String'];
10
+ lastname: Types.Scalars['String'];
11
+ }>;
12
+
13
+
14
+ export type UpdateCustomerNameMutation = { updateCustomer?: { customer: { prefix?: string | null | undefined, firstname?: string | null | undefined, lastname?: string | null | undefined } } | null | undefined };
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const ChangePasswordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ChangePassword"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentPassword"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"newPassword"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"changeCustomerPassword"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"currentPassword"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentPassword"}}},{"kind":"Argument","name":{"kind":"Name","value":"newPassword"},"value":{"kind":"Variable","name":{"kind":"Name","value":"newPassword"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"default_billing"}},{"kind":"Field","name":{"kind":"Name","value":"default_shipping"}},{"kind":"Field","name":{"kind":"Name","value":"addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"middlename"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"region"}},{"kind":"Field","name":{"kind":"Name","value":"region_code"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}},{"kind":"Field","name":{"kind":"Name","value":"vat_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"middlename"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"gender"}},{"kind":"Field","name":{"kind":"Name","value":"is_subscribed"}},{"kind":"Field","name":{"kind":"Name","value":"date_of_birth"}},{"kind":"Field","name":{"kind":"Name","value":"taxvat"}}]}}]}}]} as unknown as DocumentNode<ChangePasswordMutation, ChangePasswordMutationVariables>;
7
+ export type ChangePasswordMutationVariables = Types.Exact<{
8
+ currentPassword: Types.Scalars['String'];
9
+ newPassword: Types.Scalars['String'];
10
+ }>;
11
+
12
+
13
+ export type ChangePasswordMutation = { changeCustomerPassword?: { default_billing?: string | null | undefined, default_shipping?: string | null | undefined, email?: string | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, gender?: number | null | undefined, is_subscribed?: boolean | null | undefined, date_of_birth?: string | null | undefined, taxvat?: string | null | undefined, addresses?: Array<{ id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> | null | undefined } | null | undefined };
@@ -0,0 +1,28 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CreateCustomerAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCustomerAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"middlename"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"suffix"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"telephone"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"street"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"houseNumber"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"addition"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"city"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"region"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerAddressRegionInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"company"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"countryCode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CountryCodeEnum"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"vatId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultBilling"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}},"defaultValue":{"kind":"BooleanValue","value":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultShipping"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}},"defaultValue":{"kind":"BooleanValue","value":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCustomerAddress"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"prefix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"firstname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"middlename"},"value":{"kind":"Variable","name":{"kind":"Name","value":"middlename"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"lastname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"telephone"},"value":{"kind":"Variable","name":{"kind":"Name","value":"telephone"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"suffix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"suffix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"street"},"value":{"kind":"ListValue","values":[{"kind":"Variable","name":{"kind":"Name","value":"street"}},{"kind":"Variable","name":{"kind":"Name","value":"houseNumber"}},{"kind":"Variable","name":{"kind":"Name","value":"addition"}}]}},{"kind":"ObjectField","name":{"kind":"Name","value":"city"},"value":{"kind":"Variable","name":{"kind":"Name","value":"city"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"postcode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"region"},"value":{"kind":"Variable","name":{"kind":"Name","value":"region"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"company"},"value":{"kind":"Variable","name":{"kind":"Name","value":"company"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"country_code"},"value":{"kind":"Variable","name":{"kind":"Name","value":"countryCode"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"vat_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"vatId"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"default_billing"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultBilling"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"default_shipping"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultShipping"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<CreateCustomerAddressMutation, CreateCustomerAddressMutationVariables>;
7
+ export type CreateCustomerAddressMutationVariables = Types.Exact<{
8
+ prefix: Types.Scalars['String'];
9
+ firstname: Types.Scalars['String'];
10
+ middlename?: Types.InputMaybe<Types.Scalars['String']>;
11
+ lastname: Types.Scalars['String'];
12
+ suffix?: Types.InputMaybe<Types.Scalars['String']>;
13
+ telephone: Types.Scalars['String'];
14
+ street: Types.Scalars['String'];
15
+ houseNumber: Types.Scalars['String'];
16
+ addition?: Types.InputMaybe<Types.Scalars['String']>;
17
+ city: Types.Scalars['String'];
18
+ postcode: Types.Scalars['String'];
19
+ region: Types.CustomerAddressRegionInput;
20
+ company?: Types.InputMaybe<Types.Scalars['String']>;
21
+ countryCode: Types.CountryCodeEnum;
22
+ vatId?: Types.InputMaybe<Types.Scalars['String']>;
23
+ defaultBilling?: Types.InputMaybe<Types.Scalars['Boolean']>;
24
+ defaultShipping?: Types.InputMaybe<Types.Scalars['Boolean']>;
25
+ }>;
26
+
27
+
28
+ export type CreateCustomerAddressMutation = { createCustomerAddress?: { id?: number | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CustomerAddressFragment = { id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CustomerAddressEditFragment = { id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
@@ -26,7 +26,13 @@ function CustomerFabContent(props: CustomerFabContentProps) {
26
26
 
27
27
  return (
28
28
  <PageLink href={requireAuth ? guestHref : authHref} passHref>
29
- <Fab color='inherit' aria-label={t`Account`} size='large' {...FabProps}>
29
+ <Fab
30
+ color='inherit'
31
+ data-test-id='customer-fab'
32
+ aria-label={t`Account`}
33
+ size='large'
34
+ {...FabProps}
35
+ >
30
36
  <StyledBadge
31
37
  badgeContent={customerToken?.token ? 1 : 0}
32
38
  color={customerToken?.valid ? 'primary' : 'error'}
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const DeleteCustomerAddressFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCustomerAddressForm"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCustomerAddress"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteCustomerAddressFormMutation, DeleteCustomerAddressFormMutationVariables>;
7
+ export type DeleteCustomerAddressFormMutationVariables = Types.Exact<{
8
+ id: Types.Scalars['Int'];
9
+ }>;
10
+
11
+
12
+ export type DeleteCustomerAddressFormMutation = { deleteCustomerAddress?: boolean | null | undefined };
@@ -1,47 +1,29 @@
1
+ import { ApolloErrorSnackbar } from '@graphcommerce/next-ui'
1
2
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
2
3
  import { Trans } from '@lingui/macro'
3
- import { Button, makeStyles, Theme } from '@material-ui/core'
4
- import { useRouter } from 'next/router'
4
+ import { Button } from '@material-ui/core'
5
5
  import React from 'react'
6
- import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
7
6
  import { DeleteCustomerAddressFormDocument } from './DeleteCustomerAddressForm.gql'
8
7
 
9
8
  export type DeleteCustomerAddressFormProps = {
10
9
  addressId?: number
11
10
  }
12
11
 
13
- const useStyles = makeStyles((theme: Theme) => ({
14
- button: {
15
- display: 'block',
16
- color: theme.palette.primary.contrastText,
17
- },
18
- }))
19
-
20
12
  export default function DeleteCustomerAddressForm(props: DeleteCustomerAddressFormProps) {
21
13
  const { addressId } = props
22
- const router = useRouter()
23
- const classes = useStyles()
24
14
  const { handleSubmit, error } = useFormGqlMutation(
25
15
  DeleteCustomerAddressFormDocument,
26
- {
27
- defaultValues: {
28
- id: addressId,
29
- },
30
- onComplete: () => {
31
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
32
- router.push({ pathname: '/account/addresses', query: 'confirm_delete' })
33
- },
34
- },
16
+ { defaultValues: { id: addressId } },
35
17
  { errorPolicy: 'all' },
36
18
  )
37
19
  const submitHandler = handleSubmit(() => {})
38
20
 
39
21
  return (
40
22
  <form onSubmit={submitHandler} noValidate>
41
- <Button type='submit' variant='text' color='inherit' className={classes.button}>
23
+ <Button type='submit' variant='text' color='primary'>
42
24
  <Trans>Delete this address</Trans>
43
25
  </Button>
44
- <ApolloCustomerErrorAlert error={error} />
26
+ <ApolloErrorSnackbar error={error} />
45
27
  </form>
46
28
  )
47
29
  }
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const UpdateCustomerAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCustomerAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"middlename"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"suffix"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"telephone"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"street"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"houseNumber"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"addition"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"city"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"region"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"CustomerAddressRegionInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"company"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"countryCode"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"CountryCodeEnum"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"vatId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultBilling"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultShipping"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCustomerAddress"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"prefix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"firstname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"middlename"},"value":{"kind":"Variable","name":{"kind":"Name","value":"middlename"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"lastname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"telephone"},"value":{"kind":"Variable","name":{"kind":"Name","value":"telephone"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"suffix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"suffix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"street"},"value":{"kind":"ListValue","values":[{"kind":"Variable","name":{"kind":"Name","value":"street"}},{"kind":"Variable","name":{"kind":"Name","value":"houseNumber"}},{"kind":"Variable","name":{"kind":"Name","value":"addition"}}]}},{"kind":"ObjectField","name":{"kind":"Name","value":"city"},"value":{"kind":"Variable","name":{"kind":"Name","value":"city"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"postcode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"region"},"value":{"kind":"Variable","name":{"kind":"Name","value":"region"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"company"},"value":{"kind":"Variable","name":{"kind":"Name","value":"company"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"country_code"},"value":{"kind":"Variable","name":{"kind":"Name","value":"countryCode"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"vat_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"vatId"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"default_billing"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultBilling"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"default_shipping"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultShipping"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<UpdateCustomerAddressMutation, UpdateCustomerAddressMutationVariables>;
7
+ export type UpdateCustomerAddressMutationVariables = Types.Exact<{
8
+ id: Types.Scalars['Int'];
9
+ prefix?: Types.InputMaybe<Types.Scalars['String']>;
10
+ firstname?: Types.InputMaybe<Types.Scalars['String']>;
11
+ middlename?: Types.InputMaybe<Types.Scalars['String']>;
12
+ lastname?: Types.InputMaybe<Types.Scalars['String']>;
13
+ suffix?: Types.InputMaybe<Types.Scalars['String']>;
14
+ telephone?: Types.InputMaybe<Types.Scalars['String']>;
15
+ street: Types.Scalars['String'];
16
+ houseNumber: Types.Scalars['String'];
17
+ addition?: Types.InputMaybe<Types.Scalars['String']>;
18
+ city?: Types.InputMaybe<Types.Scalars['String']>;
19
+ postcode?: Types.InputMaybe<Types.Scalars['String']>;
20
+ region?: Types.InputMaybe<Types.CustomerAddressRegionInput>;
21
+ company?: Types.InputMaybe<Types.Scalars['String']>;
22
+ countryCode?: Types.InputMaybe<Types.CountryCodeEnum>;
23
+ vatId?: Types.InputMaybe<Types.Scalars['String']>;
24
+ defaultBilling?: Types.InputMaybe<Types.Scalars['Boolean']>;
25
+ defaultShipping?: Types.InputMaybe<Types.Scalars['Boolean']>;
26
+ }>;
27
+
28
+
29
+ export type UpdateCustomerAddressMutation = { updateCustomerAddress?: { id?: number | null | undefined } | null | undefined };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const ForgotPasswordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ForgotPassword"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"requestPasswordResetEmail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}}]}]}}]} as unknown as DocumentNode<ForgotPasswordMutation, ForgotPasswordMutationVariables>;
7
+ export type ForgotPasswordMutationVariables = Types.Exact<{
8
+ email: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type ForgotPasswordMutation = { requestPasswordResetEmail?: boolean | null | undefined };
@@ -14,10 +14,11 @@ type NameFieldProps = {
14
14
  form: UseFormReturn<any>
15
15
  readOnly?: boolean
16
16
  prefix?: boolean
17
+ prefixes?: string[]
17
18
  }
18
19
 
19
20
  export default function NameFields(props: NameFieldProps) {
20
- const { prefix, form, readOnly } = props
21
+ const { prefix, form, readOnly, prefixes = [t`Mr`, t`Mrs`, t`Other`] } = props
21
22
  assertFormGqlOperation<NameFieldValues>(form)
22
23
 
23
24
  const { control, formState, muiRegister, required, valid } = form
@@ -27,7 +28,7 @@ export default function NameFields(props: NameFieldProps) {
27
28
  {prefix && (
28
29
  <FormRow>
29
30
  <Controller
30
- defaultValue='Dhr.'
31
+ defaultValue={prefixes[0]}
31
32
  control={control}
32
33
  name='prefix'
33
34
  render={({ field: { ref, onChange, ...field }, fieldState }) => (
@@ -46,7 +47,7 @@ export default function NameFields(props: NameFieldProps) {
46
47
  }}
47
48
  {...field}
48
49
  >
49
- {[t`Mr`, t`Mrs`, t`Other`].map((option) => (
50
+ {prefixes.map((option) => (
50
51
  <MenuItem key={option} value={option}>
51
52
  {option}
52
53
  </MenuItem>
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const ResetPasswordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPassword"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"resetPasswordToken"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"newPassword"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetPassword"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"Argument","name":{"kind":"Name","value":"resetPasswordToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"resetPasswordToken"}}},{"kind":"Argument","name":{"kind":"Name","value":"newPassword"},"value":{"kind":"Variable","name":{"kind":"Name","value":"newPassword"}}}]}]}}]} as unknown as DocumentNode<ResetPasswordMutation, ResetPasswordMutationVariables>;
7
+ export type ResetPasswordMutationVariables = Types.Exact<{
8
+ email: Types.Scalars['String'];
9
+ resetPasswordToken: Types.Scalars['String'];
10
+ newPassword: Types.Scalars['String'];
11
+ }>;
12
+
13
+
14
+ export type ResetPasswordMutation = { resetPassword?: boolean | null | undefined };
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const SignInDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignIn"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"generateCustomerToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"Argument","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}}]}}]}}]} as unknown as DocumentNode<SignInMutation, SignInMutationVariables>;
7
+ export type SignInMutationVariables = Types.Exact<{
8
+ email: Types.Scalars['String'];
9
+ password: Types.Scalars['String'];
10
+ }>;
11
+
12
+
13
+ export type SignInMutation = { generateCustomerToken?: { token?: string | null | undefined } | null | undefined };
@@ -25,7 +25,6 @@ type SignInFormProps = { email: string }
25
25
  export default function SignInForm(props: SignInFormProps) {
26
26
  const { email } = props
27
27
  const classes = useStyles()
28
- const { data } = useQuery(CustomerTokenDocument)
29
28
  const form = useFormGqlMutation(
30
29
  SignInDocument,
31
30
  { defaultValues: { email } },
@@ -39,16 +38,8 @@ export default function SignInForm(props: SignInFormProps) {
39
38
  })
40
39
  const submitHandler = handleSubmit(() => {})
41
40
 
42
- const requireAuth = Boolean(data?.customerToken && !data?.customerToken.valid)
43
-
44
41
  return (
45
42
  <form onSubmit={submitHandler} noValidate>
46
- {requireAuth && (
47
- <Alert severity='error' variant='standard'>
48
- Your session has expired, please reauthenticate
49
- </Alert>
50
- )}
51
-
52
43
  <FormRow>
53
44
  <TextField
54
45
  key='password'
@@ -64,7 +55,9 @@ export default function SignInForm(props: SignInFormProps) {
64
55
  InputProps={{
65
56
  endAdornment: (
66
57
  <PageLink href='/account/forgot-password' key='forgot-password' passHref>
67
- <Link className={classes.forgotPass}>Forgot password?</Link>
58
+ <Link className={classes.forgotPass}>
59
+ <Trans>Forgot password?</Trans>
60
+ </Link>
68
61
  </PageLink>
69
62
  ),
70
63
  }}
@@ -84,7 +77,7 @@ export default function SignInForm(props: SignInFormProps) {
84
77
  variant='contained'
85
78
  size='large'
86
79
  >
87
- Log In
80
+ <Trans>Log In</Trans>
88
81
  </Button>
89
82
  </FormControl>
90
83
  </FormActions>
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const SignOutFormDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignOutForm"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"revokeCustomerToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"result"}}]}}]}}]} as unknown as DocumentNode<SignOutFormMutation, SignOutFormMutationVariables>;
7
+ export type SignOutFormMutationVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type SignOutFormMutation = { revokeCustomerToken?: { result: boolean } | null | undefined };
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const SignUpDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SignUp"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"middlename"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"suffix"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"taxvat"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"gender"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isSubscribed"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}},"defaultValue":{"kind":"BooleanValue","value":false}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dateOfBirth"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCustomer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"prefix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"prefix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"firstname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"firstname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"middlename"},"value":{"kind":"Variable","name":{"kind":"Name","value":"middlename"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"lastname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"lastname"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"suffix"},"value":{"kind":"Variable","name":{"kind":"Name","value":"suffix"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"taxvat"},"value":{"kind":"Variable","name":{"kind":"Name","value":"taxvat"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"gender"},"value":{"kind":"Variable","name":{"kind":"Name","value":"gender"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"is_subscribed"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isSubscribed"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"date_of_birth"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dateOfBirth"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"default_billing"}},{"kind":"Field","name":{"kind":"Name","value":"default_shipping"}},{"kind":"Field","name":{"kind":"Name","value":"addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"middlename"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"region"}},{"kind":"Field","name":{"kind":"Name","value":"region_code"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}},{"kind":"Field","name":{"kind":"Name","value":"vat_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"middlename"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"gender"}},{"kind":"Field","name":{"kind":"Name","value":"is_subscribed"}},{"kind":"Field","name":{"kind":"Name","value":"date_of_birth"}},{"kind":"Field","name":{"kind":"Name","value":"taxvat"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"generateCustomerToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"Argument","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}}]}}]}}]} as unknown as DocumentNode<SignUpMutation, SignUpMutationVariables>;
7
+ export type SignUpMutationVariables = Types.Exact<{
8
+ email: Types.Scalars['String'];
9
+ password: Types.Scalars['String'];
10
+ prefix: Types.Scalars['String'];
11
+ firstname: Types.Scalars['String'];
12
+ middlename?: Types.InputMaybe<Types.Scalars['String']>;
13
+ lastname: Types.Scalars['String'];
14
+ suffix?: Types.InputMaybe<Types.Scalars['String']>;
15
+ taxvat?: Types.InputMaybe<Types.Scalars['String']>;
16
+ gender?: Types.InputMaybe<Types.Scalars['Int']>;
17
+ isSubscribed?: Types.InputMaybe<Types.Scalars['Boolean']>;
18
+ dateOfBirth?: Types.InputMaybe<Types.Scalars['String']>;
19
+ }>;
20
+
21
+
22
+ export type SignUpMutation = { createCustomer?: { customer: { default_billing?: string | null | undefined, default_shipping?: string | null | undefined, email?: string | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, gender?: number | null | undefined, is_subscribed?: boolean | null | undefined, date_of_birth?: string | null | undefined, taxvat?: string | null | undefined, addresses?: Array<{ id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> | null | undefined } } | null | undefined, generateCustomerToken?: { token?: string | null | undefined } | null | undefined };
@@ -1,7 +1,7 @@
1
1
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
2
2
  import { Button, FormActions, FormRow } from '@graphcommerce/next-ui'
3
3
  import { useFormGqlMutation, useFormPersist } from '@graphcommerce/react-hook-form'
4
- import { Trans } from '@lingui/macro'
4
+ import { t, Trans } from '@lingui/macro'
5
5
  import { FormControlLabel, Switch, TextField } from '@material-ui/core'
6
6
  import React from 'react'
7
7
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
@@ -40,7 +40,7 @@ export default function SignUpForm(props: SignUpFormProps) {
40
40
  required={required.password}
41
41
  {...muiRegister('password', {
42
42
  required: required.password,
43
- minLength: { value: 8, message: 'Password must have at least 8 characters' },
43
+ minLength: { value: 8, message: t`Password must have at least 8 characters` },
44
44
  })}
45
45
  helperText={formState.errors.password?.message || inputError?.message}
46
46
  disabled={formState.isSubmitting}
@@ -49,12 +49,12 @@ export default function SignUpForm(props: SignUpFormProps) {
49
49
  variant='outlined'
50
50
  type='password'
51
51
  error={!!formState.errors.confirmPassword}
52
- label='Confirm Password'
52
+ label={<Trans>Confirm Password</Trans>}
53
53
  autoComplete='new-password'
54
54
  required
55
55
  {...muiRegister('confirmPassword', {
56
56
  required: true,
57
- validate: (value) => value === watchPassword || "Passwords don't match",
57
+ validate: (value) => value === watchPassword || t`Passwords don't match`,
58
58
  })}
59
59
  helperText={formState.errors.confirmPassword?.message}
60
60
  disabled={formState.isSubmitting}
@@ -67,7 +67,7 @@ export default function SignUpForm(props: SignUpFormProps) {
67
67
  control={<Switch color='primary' />}
68
68
  {...muiRegister('isSubscribed', { required: required.isSubscribed })}
69
69
  disabled={formState.isSubmitting}
70
- label='Subscribe to newsletter'
70
+ label={<Trans>Subscribe to newsletter</Trans>}
71
71
  />
72
72
 
73
73
  <ApolloCustomerErrorAlert error={remainingError} />
@@ -75,12 +75,13 @@ export default function SignUpForm(props: SignUpFormProps) {
75
75
  <FormActions>
76
76
  <Button
77
77
  type='submit'
78
+ data-test-id='create-account'
78
79
  variant='contained'
79
80
  color='primary'
80
81
  size='large'
81
82
  loading={formState.isSubmitting}
82
83
  >
83
- Create Account
84
+ <Trans>Create Account</Trans>
84
85
  </Button>
85
86
  </FormActions>
86
87
  </form>
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const UpdateCustomerEmailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCustomerEmail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCustomerEmail"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"Argument","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateCustomerEmailMutation, UpdateCustomerEmailMutationVariables>;
7
+ export type UpdateCustomerEmailMutationVariables = Types.Exact<{
8
+ email: Types.Scalars['String'];
9
+ password: Types.Scalars['String'];
10
+ }>;
11
+
12
+
13
+ export type UpdateCustomerEmailMutation = { updateCustomerEmail?: { customer: { email?: string | null | undefined } } | null | undefined };
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CustomerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Customer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"default_billing"}},{"kind":"Field","name":{"kind":"Name","value":"default_shipping"}},{"kind":"Field","name":{"kind":"Name","value":"addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"middlename"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country_code"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"region"}},{"kind":"Field","name":{"kind":"Name","value":"region_code"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}},{"kind":"Field","name":{"kind":"Name","value":"vat_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"middlename"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"gender"}},{"kind":"Field","name":{"kind":"Name","value":"is_subscribed"}},{"kind":"Field","name":{"kind":"Name","value":"date_of_birth"}},{"kind":"Field","name":{"kind":"Name","value":"taxvat"}}]}}]}}]} as unknown as DocumentNode<CustomerQuery, CustomerQueryVariables>;
7
+ export type CustomerQueryVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type CustomerQuery = { customer?: { default_billing?: string | null | undefined, default_shipping?: string | null | undefined, email?: string | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, gender?: number | null | undefined, is_subscribed?: boolean | null | undefined, date_of_birth?: string | null | undefined, taxvat?: string | null | undefined, addresses?: Array<{ id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CustomerInfoFragment = { default_billing?: string | null | undefined, default_shipping?: string | null | undefined, email?: string | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, gender?: number | null | undefined, is_subscribed?: boolean | null | undefined, date_of_birth?: string | null | undefined, taxvat?: string | null | undefined, addresses?: Array<{ id?: number | null | undefined, prefix?: string | null | undefined, firstname?: string | null | undefined, middlename?: string | null | undefined, lastname?: string | null | undefined, suffix?: string | null | undefined, city?: string | null | undefined, company?: string | null | undefined, country_code?: Types.CountryCodeEnum | null | undefined, postcode?: string | null | undefined, street?: Array<string | null | undefined> | null | undefined, telephone?: string | null | undefined, vat_id?: string | null | undefined, region?: { region?: string | null | undefined, region_code?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> | null | undefined };
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CustomerTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CustomerToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customerToken"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"valid"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]} as unknown as DocumentNode<CustomerTokenQuery, CustomerTokenQueryVariables>;
7
+ export type CustomerTokenQueryVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type CustomerTokenQuery = { customerToken?: { __typename: 'CustomerToken', token?: string | null | undefined, valid?: boolean | null | undefined, createdAt?: string | null | undefined } | null | undefined };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const IsEmailAvailableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"IsEmailAvailable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isEmailAvailable"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"is_email_available"}}]}}]}}]} as unknown as DocumentNode<IsEmailAvailableQuery, IsEmailAvailableQueryVariables>;
7
+ export type IsEmailAvailableQueryVariables = Types.Exact<{
8
+ email: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type IsEmailAvailableQuery = { isEmailAvailable?: { is_email_available?: boolean | null | undefined } | null | undefined };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-customer",
3
- "version": "3.6.15",
3
+ "version": "3.6.19",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -13,20 +13,20 @@
13
13
  }
14
14
  },
15
15
  "devDependencies": {
16
- "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.8",
18
- "@graphcommerce/prettier-config-pwa": "^3.0.4",
19
- "@graphcommerce/typescript-config-pwa": "^3.1.1",
16
+ "@graphcommerce/browserslist-config-pwa": "^3.0.3",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.9",
18
+ "@graphcommerce/prettier-config-pwa": "^3.0.5",
19
+ "@graphcommerce/typescript-config-pwa": "^3.1.2",
20
20
  "@playwright/test": "^1.17.1"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.5.6",
24
- "@graphcommerce/graphql": "^2.105.8",
25
- "@graphcommerce/image": "^2.105.8",
26
- "@graphcommerce/magento-graphql": "^2.104.8",
27
- "@graphcommerce/magento-store": "^3.3.15",
28
- "@graphcommerce/next-ui": "^3.20.8",
29
- "@graphcommerce/react-hook-form": "^2.104.4",
24
+ "@graphcommerce/graphql": "^2.105.10",
25
+ "@graphcommerce/image": "^2.105.9",
26
+ "@graphcommerce/magento-graphql": "^2.104.10",
27
+ "@graphcommerce/magento-store": "^3.3.19",
28
+ "@graphcommerce/next-ui": "^3.21.2",
29
+ "@graphcommerce/react-hook-form": "^2.104.5",
30
30
  "@lingui/macro": "^3.13.0",
31
31
  "@material-ui/core": "^4.12.3",
32
32
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -36,5 +36,5 @@
36
36
  "react": "^17.0.2",
37
37
  "react-dom": "^17.0.2"
38
38
  },
39
- "gitHead": "a69bd94ffdcca6ca9487eec1cafe9ade3fcdffa3"
39
+ "gitHead": "06b4426d199de9ec2a9d2ac86d42ab047e59e7e7"
40
40
  }