@graphcommerce/magento-cart-email 3.0.18 → 3.0.21
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 +30 -0
- package/EmailForm/EmailForm.tsx +4 -13
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a12db31b9`](https://github.com/graphcommerce-org/graphcommerce/commit/a12db31b9db9d27d86f59c1bfe58a0879999b9d3), [`cf575395c`](https://github.com/graphcommerce-org/graphcommerce/commit/cf575395c16e9c571f75d4563004c3018a29aeaa)]:
|
|
8
|
+
- @graphcommerce/magento-customer@4.3.1
|
|
9
|
+
- @graphcommerce/magento-cart@4.3.0
|
|
10
|
+
- @graphcommerce/magento-product@4.3.6
|
|
11
|
+
|
|
12
|
+
## 3.0.20
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`0363b9671`](https://github.com/graphcommerce-org/graphcommerce/commit/0363b9671db7c2932321d97faf6f1eb385238397), [`c6a62a338`](https://github.com/graphcommerce-org/graphcommerce/commit/c6a62a338abf8af83d3a6eb7ed796586009910ca), [`3ac90b57c`](https://github.com/graphcommerce-org/graphcommerce/commit/3ac90b57c68b96f9d81771d6664ed9435a28fc1d), [`00f6167ff`](https://github.com/graphcommerce-org/graphcommerce/commit/00f6167ff4096bf7432f3d8e8e739ecbf6ab0dd2), [`7159d3ab3`](https://github.com/graphcommerce-org/graphcommerce/commit/7159d3ab31e937c9c921023c46e80db5813e789c), [`32370574b`](https://github.com/graphcommerce-org/graphcommerce/commit/32370574bef6345b857ae911049ca27a64bc7e08), [`ed2b67a06`](https://github.com/graphcommerce-org/graphcommerce/commit/ed2b67a0618d9db97e79ed2a8226e0ae12403943), [`4c146c682`](https://github.com/graphcommerce-org/graphcommerce/commit/4c146c68242e6edc616807fb73173cc959c26034)]:
|
|
17
|
+
- @graphcommerce/next-ui@4.8.0
|
|
18
|
+
- @graphcommerce/magento-product@4.3.5
|
|
19
|
+
- @graphcommerce/magento-customer@4.3.0
|
|
20
|
+
- @graphcommerce/magento-cart@4.2.15
|
|
21
|
+
- @graphcommerce/magento-store@4.2.4
|
|
22
|
+
|
|
23
|
+
## 3.0.19
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`c30893857`](https://github.com/graphcommerce-org/graphcommerce/commit/c3089385791291e812a48c2691a39a2325ee0439)]:
|
|
28
|
+
- @graphcommerce/magento-store@4.2.3
|
|
29
|
+
- @graphcommerce/magento-cart@4.2.14
|
|
30
|
+
- @graphcommerce/magento-customer@4.2.12
|
|
31
|
+
- @graphcommerce/magento-product@4.3.4
|
|
32
|
+
|
|
3
33
|
## 3.0.18
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/EmailForm/EmailForm.tsx
CHANGED
|
@@ -12,15 +12,7 @@ import {
|
|
|
12
12
|
import { AnimatedRow, extendableComponent, FormDiv, FormRow } from '@graphcommerce/next-ui'
|
|
13
13
|
import { emailPattern, useFormCompose, UseFormComposeOptions } from '@graphcommerce/react-hook-form'
|
|
14
14
|
import { Trans } from '@lingui/react'
|
|
15
|
-
import {
|
|
16
|
-
CircularProgress,
|
|
17
|
-
TextField,
|
|
18
|
-
Typography,
|
|
19
|
-
Alert,
|
|
20
|
-
Button,
|
|
21
|
-
SxProps,
|
|
22
|
-
Theme,
|
|
23
|
-
} from '@mui/material'
|
|
15
|
+
import { CircularProgress, TextField, Typography, Alert, Button } from '@mui/material'
|
|
24
16
|
import { AnimatePresence } from 'framer-motion'
|
|
25
17
|
import React, { useEffect, useState } from 'react'
|
|
26
18
|
import { CartEmailDocument } from './CartEmail.gql'
|
|
@@ -28,7 +20,6 @@ import { SetGuestEmailOnCartDocument } from './SetGuestEmailOnCart.gql'
|
|
|
28
20
|
|
|
29
21
|
export type EmailFormProps = Pick<UseFormComposeOptions, 'step'> & {
|
|
30
22
|
children?: React.ReactNode
|
|
31
|
-
sx?: SxProps<Theme>
|
|
32
23
|
}
|
|
33
24
|
|
|
34
25
|
const name = 'EmailForm' as const
|
|
@@ -36,7 +27,7 @@ const parts = ['root', 'formRow'] as const
|
|
|
36
27
|
const { classes } = extendableComponent(name, parts)
|
|
37
28
|
|
|
38
29
|
export function EmailForm(props: EmailFormProps) {
|
|
39
|
-
const { step, children
|
|
30
|
+
const { step, children } = props
|
|
40
31
|
const [expand, setExpand] = useState(false)
|
|
41
32
|
|
|
42
33
|
useMergeCustomerCart()
|
|
@@ -81,13 +72,13 @@ export function EmailForm(props: EmailFormProps) {
|
|
|
81
72
|
if (formState.isSubmitting) endAdornment = <CircularProgress />
|
|
82
73
|
|
|
83
74
|
return (
|
|
84
|
-
<FormDiv
|
|
75
|
+
<FormDiv>
|
|
85
76
|
<AnimatePresence initial={false}>
|
|
86
77
|
<AnimatedRow key='emailform'>
|
|
87
78
|
<form noValidate onSubmit={submit}>
|
|
88
79
|
<FormRow>
|
|
89
80
|
<Typography variant='h5' component='h2' gutterBottom>
|
|
90
|
-
<Trans id='
|
|
81
|
+
<Trans id='Personal details' />
|
|
91
82
|
</Typography>
|
|
92
83
|
</FormRow>
|
|
93
84
|
<FormRow className={classes.formRow} sx={{ py: 0 }}>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-email",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.21",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@graphcommerce/graphql": "3.1.3",
|
|
22
22
|
"@graphcommerce/image": "3.1.5",
|
|
23
|
-
"@graphcommerce/magento-cart": "4.
|
|
24
|
-
"@graphcommerce/magento-customer": "4.
|
|
25
|
-
"@graphcommerce/magento-product": "4.3.
|
|
26
|
-
"@graphcommerce/magento-store": "4.2.
|
|
27
|
-
"@graphcommerce/next-ui": "4.
|
|
23
|
+
"@graphcommerce/magento-cart": "4.3.0",
|
|
24
|
+
"@graphcommerce/magento-customer": "4.3.1",
|
|
25
|
+
"@graphcommerce/magento-product": "4.3.6",
|
|
26
|
+
"@graphcommerce/magento-store": "4.2.4",
|
|
27
|
+
"@graphcommerce/next-ui": "4.8.0",
|
|
28
28
|
"@graphcommerce/react-hook-form": "3.1.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|