@graphcommerce/magento-customer 3.0.3 → 3.0.7

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.
@@ -1,5 +1,3 @@
1
- import { makeStyles, Theme } from '@material-ui/core'
2
- import { Skeleton } from '@material-ui/lab'
3
1
  import {
4
2
  Button,
5
3
  FullPageMessage,
@@ -8,6 +6,8 @@ import {
8
6
  SvgImage,
9
7
  iconHome,
10
8
  } from '@graphcommerce/next-ui'
9
+ import { makeStyles, Theme } from '@material-ui/core'
10
+ import { Skeleton } from '@material-ui/lab'
11
11
  import Link from 'next/link'
12
12
  import { useRouter } from 'next/router'
13
13
  import React from 'react'
@@ -1,5 +1,4 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { TextField } from '@material-ui/core'
3
2
  import { CountryRegionsDocument } from '@graphcommerce/magento-store'
4
3
  import { FormRow, InputCheckmark } from '@graphcommerce/next-ui'
5
4
  import {
@@ -7,6 +6,7 @@ import {
7
6
  houseNumberPattern,
8
7
  UseFormReturn,
9
8
  } from '@graphcommerce/react-hook-form'
9
+ import { TextField } from '@material-ui/core'
10
10
  import React, { useMemo } from 'react'
11
11
 
12
12
  type AddressFieldValues = {
@@ -1,6 +1,6 @@
1
- import { makeStyles, Theme, Typography } from '@material-ui/core'
2
1
  import { useFindCountry } from '@graphcommerce/magento-store'
3
2
  import { UseStyles } from '@graphcommerce/next-ui'
3
+ import { makeStyles, Theme, Typography } from '@material-ui/core'
4
4
  import { CustomerAddressFragment } from '../CreateCustomerAddressForm/CustomerAddress.gql'
5
5
 
6
6
  // exports.getEuMembers = function()
@@ -1,5 +1,5 @@
1
- import { Link } from '@material-ui/core'
2
1
  import { ApolloErrorAlert, ApolloErrorAlertProps } from '@graphcommerce/next-ui'
2
+ import { Link } from '@material-ui/core'
3
3
  import NextLink from 'next/link'
4
4
  import React from 'react'
5
5
  import { useExtractCustomerErrors } from '../../hooks/useExtractCustomerErrors'
@@ -1,4 +1,3 @@
1
- import { TextField } from '@material-ui/core'
2
1
  import {
3
2
  Button,
4
3
  Form,
@@ -8,6 +7,7 @@ import {
8
7
  FormDivider,
9
8
  } from '@graphcommerce/next-ui'
10
9
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
10
+ import { TextField } from '@material-ui/core'
11
11
  import React from 'react'
12
12
 
13
13
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
@@ -1,5 +1,4 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { TextField } from '@material-ui/core'
3
2
  import { CountryRegionsDocument } from '@graphcommerce/magento-store'
4
3
  import {
5
4
  Button,
@@ -10,6 +9,7 @@ import {
10
9
  InputCheckmark,
11
10
  } from '@graphcommerce/next-ui'
12
11
  import { phonePattern, useFormGqlMutation } from '@graphcommerce/react-hook-form'
12
+ import { TextField } from '@material-ui/core'
13
13
  import { useRouter } from 'next/router'
14
14
  import React from 'react'
15
15
  import AddressFields from '../AddressFields'
@@ -1,5 +1,4 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { Fab, makeStyles, NoSsr, Theme } from '@material-ui/core'
3
2
  import {
4
3
  iconPersonAlt,
5
4
  StyledBadge,
@@ -7,6 +6,7 @@ import {
7
6
  SvgImageSimple,
8
7
  UseStyles,
9
8
  } from '@graphcommerce/next-ui'
9
+ import { Fab, makeStyles, NoSsr, Theme } from '@material-ui/core'
10
10
  import PageLink from 'next/link'
11
11
  import React from 'react'
12
12
  import { CustomerTokenDocument, CustomerTokenQuery } from '../../hooks'
@@ -1,5 +1,4 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { makeStyles, NoSsr, Theme } from '@material-ui/core'
3
2
  import {
4
3
  MenuFabSecondaryItem,
5
4
  StyledBadge,
@@ -7,6 +6,7 @@ import {
7
6
  iconPersonAlt,
8
7
  SvgImageSimple,
9
8
  } from '@graphcommerce/next-ui'
9
+ import { makeStyles, NoSsr, Theme } from '@material-ui/core'
10
10
  import React from 'react'
11
11
  import { CustomerTokenDocument, CustomerTokenQuery } from '../../hooks'
12
12
 
@@ -1,5 +1,5 @@
1
- import { Button, makeStyles, Theme } from '@material-ui/core'
2
1
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
2
+ import { Button, makeStyles, Theme } from '@material-ui/core'
3
3
  import { useRouter } from 'next/router'
4
4
  import React from 'react'
5
5
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
@@ -1,5 +1,4 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { makeStyles, TextField } from '@material-ui/core'
3
2
  import { CountryRegionsDocument } from '@graphcommerce/magento-store'
4
3
  import {
5
4
  Button,
@@ -10,6 +9,7 @@ import {
10
9
  InputCheckmark,
11
10
  } from '@graphcommerce/next-ui'
12
11
  import { phonePattern, useFormGqlMutation } from '@graphcommerce/react-hook-form'
12
+ import { makeStyles, TextField } from '@material-ui/core'
13
13
  import { useRouter } from 'next/router'
14
14
  import React from 'react'
15
15
  import { AccountAddressFragment } from '../AccountAddress/AccountAddress.gql'
@@ -1,7 +1,7 @@
1
- import { makeStyles, TextField, Theme } from '@material-ui/core'
2
- import { Alert } from '@material-ui/lab'
3
1
  import { Button, Form, FormActions, FormRow } from '@graphcommerce/next-ui'
4
2
  import { emailPattern, useFormGqlMutation } from '@graphcommerce/react-hook-form'
3
+ import { makeStyles, TextField, Theme } from '@material-ui/core'
4
+ import { Alert } from '@material-ui/lab'
5
5
  import React from 'react'
6
6
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
7
7
  import {
@@ -1,13 +1,13 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { makeStyles, TextField, Theme, Typography } from '@material-ui/core'
3
2
  import { useCartQuery } from '@graphcommerce/magento-cart'
4
3
  import Button from '@graphcommerce/next-ui/Button'
5
4
  import FormRow from '@graphcommerce/next-ui/Form/FormRow'
6
5
  import { UseStyles } from '@graphcommerce/next-ui/Styles'
6
+ import { makeStyles, TextField, Theme, Typography } from '@material-ui/core'
7
7
  import React, { useState } from 'react'
8
8
  import { CustomerTokenDocument, IsEmailAvailableDocument } from '../../hooks'
9
- import { InlineAccountDocument } from './InlineAccount.gql'
10
9
  import SignUpFormInline from '../SignUpForm/SignUpFormInline'
10
+ import { InlineAccountDocument } from './InlineAccount.gql'
11
11
 
12
12
  const useStyles = makeStyles(
13
13
  (theme: Theme) => ({
@@ -1,6 +1,6 @@
1
- import { MenuItem, TextField } from '@material-ui/core'
2
1
  import { FormRow, InputCheckmark } from '@graphcommerce/next-ui'
3
2
  import { assertFormGqlOperation, Controller, UseFormReturn } from '@graphcommerce/react-hook-form'
3
+ import { MenuItem, TextField } from '@material-ui/core'
4
4
  import React from 'react'
5
5
 
6
6
  type NameFieldValues = {
@@ -1,6 +1,6 @@
1
- import { TextField } from '@material-ui/core'
2
1
  import { Button, Form, FormActions, FormRow } from '@graphcommerce/next-ui'
3
2
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
3
+ import { TextField } from '@material-ui/core'
4
4
  import { useRouter } from 'next/router'
5
5
  import React from 'react'
6
6
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
@@ -1,9 +1,9 @@
1
1
  import { useQuery } from '@apollo/client'
2
- import { FormControl, Link, makeStyles, TextField, Theme } from '@material-ui/core'
3
- import { Alert } from '@material-ui/lab'
4
2
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
5
3
  import { FormRow, Button, FormActions } from '@graphcommerce/next-ui'
6
4
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
5
+ import { FormControl, Link, makeStyles, TextField, Theme } from '@material-ui/core'
6
+ import { Alert } from '@material-ui/lab'
7
7
  import PageLink from 'next/link'
8
8
  import React from 'react'
9
9
  import { CustomerTokenDocument } from '../../hooks'
@@ -1,6 +1,6 @@
1
- import { makeStyles, TextField, Theme } from '@material-ui/core'
2
1
  import { Button, Form } from '@graphcommerce/next-ui'
3
2
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
3
+ import { makeStyles, TextField, Theme } from '@material-ui/core'
4
4
  import PageLink from 'next/link'
5
5
  import React, { PropsWithChildren } from 'react'
6
6
  import { SignInDocument, SignInMutationVariables } from './SignIn.gql'
@@ -1,7 +1,7 @@
1
- import { FormControlLabel, Switch, TextField } from '@material-ui/core'
2
1
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
3
2
  import { Button, FormActions, FormRow } from '@graphcommerce/next-ui'
4
3
  import { useFormGqlMutation, useFormPersist } from '@graphcommerce/react-hook-form'
4
+ import { FormControlLabel, Switch, TextField } from '@material-ui/core'
5
5
  import React from 'react'
6
6
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
7
7
  import NameFields from '../NameFields'
@@ -1,6 +1,6 @@
1
- import { makeStyles, TextField, Theme } from '@material-ui/core'
2
1
  import { Button, Form, FormRow } from '@graphcommerce/next-ui'
3
2
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
3
+ import { makeStyles, TextField, Theme } from '@material-ui/core'
4
4
  import React, { PropsWithChildren } from 'react'
5
5
  import { SignUpMutationVariables, SignUpMutation, SignUpDocument } from './SignUp.gql'
6
6
 
@@ -1,4 +1,3 @@
1
- import { TextField } from '@material-ui/core'
2
1
  import {
3
2
  Button,
4
3
  Form,
@@ -8,6 +7,7 @@ import {
8
7
  MessageSnackbar,
9
8
  } from '@graphcommerce/next-ui'
10
9
  import { emailPattern, useFormGqlMutation } from '@graphcommerce/react-hook-form'
10
+ import { TextField } from '@material-ui/core'
11
11
  import React from 'react'
12
12
  import ApolloCustomerErrorAlert from '../ApolloCustomerError/ApolloCustomerErrorAlert'
13
13
  import {
@@ -1,5 +1,5 @@
1
- import { FormControl, FormControlLabel, FormHelperText, Switch } from '@material-ui/core'
2
1
  import { Controller, useFormAutoSubmit, useFormGqlMutation } from '@graphcommerce/react-hook-form'
2
+ import { FormControl, FormControlLabel, FormHelperText, Switch } from '@material-ui/core'
3
3
  import React, { useEffect, useMemo } from 'react'
4
4
  import { AccountAddressFragment } from '../AccountAddress/AccountAddress.gql'
5
5
  import { UpdateDefaultAddressDocument } from '../AccountAddresses/UpdateDefaultAddress.gql'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-customer",
3
- "version": "3.0.3",
3
+ "version": "3.0.7",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,21 +14,21 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.1",
17
- "@graphcommerce/eslint-config-pwa": "^3.0.2",
17
+ "@graphcommerce/eslint-config-pwa": "^3.0.4",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.2",
19
- "@graphcommerce/typescript-config-pwa": "^3.0.1",
19
+ "@graphcommerce/typescript-config-pwa": "^3.1.0",
20
20
  "@playwright/test": "^1.15.0"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.3.21",
24
- "@graphcommerce/graphql": "^2.103.2",
25
- "@graphcommerce/image": "^2.104.3",
26
- "@graphcommerce/magento-cart": "^3.0.3",
27
- "@graphcommerce/magento-graphql": "^2.103.2",
28
- "@graphcommerce/magento-product": "^3.0.3",
29
- "@graphcommerce/magento-store": "^3.0.3",
30
- "@graphcommerce/next-ui": "^3.0.3",
31
- "@graphcommerce/react-hook-form": "^2.102.2",
24
+ "@graphcommerce/graphql": "^2.103.4",
25
+ "@graphcommerce/image": "^2.104.5",
26
+ "@graphcommerce/magento-cart": "^3.0.7",
27
+ "@graphcommerce/magento-graphql": "^2.103.4",
28
+ "@graphcommerce/magento-product": "^3.0.7",
29
+ "@graphcommerce/magento-store": "^3.0.7",
30
+ "@graphcommerce/next-ui": "^3.0.6",
31
+ "@graphcommerce/react-hook-form": "^2.102.4",
32
32
  "@graphql-typed-document-node/core": "^3.1.0",
33
33
  "@material-ui/core": "^4.12.3",
34
34
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -38,5 +38,5 @@
38
38
  "react": "^17.0.2",
39
39
  "react-dom": "^17.0.2"
40
40
  },
41
- "gitHead": "c1aca21f6830cb9e4ec906e0f3f905623d977918"
41
+ "gitHead": "e22e75eb7fb075dece93b268a9b3799c4e1e9cea"
42
42
  }