@graphcommerce/magento-newsletter 6.0.2-canary.8 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 6.1.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1871](https://github.com/graphcommerce-org/graphcommerce/pull/1871) [`bc4181e74`](https://github.com/graphcommerce-org/graphcommerce/commit/bc4181e74392b899f62612de764fdb41f5716dd7) - Make checkout newsletter and agreements checkboxes persistent ([@bramvanderholst](https://github.com/bramvanderholst))
|
8
|
+
|
9
|
+
## 6.0.2-canary.22
|
10
|
+
|
11
|
+
## 6.0.2-canary.21
|
12
|
+
|
13
|
+
## 6.0.2-canary.20
|
14
|
+
|
15
|
+
## 6.0.2-canary.19
|
16
|
+
|
17
|
+
## 6.0.2-canary.18
|
18
|
+
|
19
|
+
## 6.0.2-canary.17
|
20
|
+
|
21
|
+
## 6.0.2-canary.16
|
22
|
+
|
23
|
+
## 6.0.2-canary.15
|
24
|
+
|
25
|
+
## 6.0.2-canary.14
|
26
|
+
|
27
|
+
## 6.0.2-canary.13
|
28
|
+
|
29
|
+
## 6.0.2-canary.12
|
30
|
+
|
31
|
+
### Patch Changes
|
32
|
+
|
33
|
+
- [#1871](https://github.com/graphcommerce-org/graphcommerce/pull/1871) [`bc4181e74`](https://github.com/graphcommerce-org/graphcommerce/commit/bc4181e74392b899f62612de764fdb41f5716dd7) - Make checkout newsletter and agreements checkboxes persistent ([@bramvanderholst](https://github.com/bramvanderholst))
|
34
|
+
|
35
|
+
## 6.0.2-canary.11
|
36
|
+
|
37
|
+
## 6.0.2-canary.10
|
38
|
+
|
39
|
+
## 6.0.2-canary.9
|
40
|
+
|
3
41
|
## 6.0.2-canary.8
|
4
42
|
|
5
43
|
## 6.0.2-canary.7
|
@@ -2,7 +2,7 @@ import { CheckboxElement, useFormCompose } from '@graphcommerce/ecommerce-ui'
|
|
2
2
|
import { DocumentNode } from '@graphcommerce/graphql'
|
3
3
|
import { useCartQuery } from '@graphcommerce/magento-cart'
|
4
4
|
import { useCustomerQuery, useCustomerSession } from '@graphcommerce/magento-customer'
|
5
|
-
import { useFormGql, useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
5
|
+
import { useFormGql, useFormGqlMutation, useFormPersist } from '@graphcommerce/react-hook-form'
|
6
6
|
import { Box, SxProps, Theme } from '@mui/material'
|
7
7
|
import { GetCustomerNewsletterToggleDocument } from '../CustomerNewsletterToggle/GetCustomerNewsLetterToggle.gql'
|
8
8
|
import { GetCartEmailDocument } from '../SignupNewsletter/GetCartEmail.gql'
|
@@ -43,6 +43,8 @@ export function SubscribeToNewsletter(props: CheckoutNewsletterProps) {
|
|
43
43
|
const { control, handleSubmit } = form
|
44
44
|
const submit = handleSubmit(() => {})
|
45
45
|
|
46
|
+
useFormPersist({ form, name: 'NewsletterSubscribeForm' })
|
47
|
+
|
46
48
|
useFormCompose({ form, step, submit, key: 'NewsletterSubscribeForm' })
|
47
49
|
|
48
50
|
if (isCustomerSubscribed) return null
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-newsletter",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "6.0
|
5
|
+
"version": "6.1.0",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -12,16 +12,16 @@
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
|
-
"@graphcommerce/eslint-config-pwa": "6.0
|
16
|
-
"@graphcommerce/prettier-config-pwa": "6.0
|
17
|
-
"@graphcommerce/typescript-config-pwa": "6.0
|
15
|
+
"@graphcommerce/eslint-config-pwa": "6.1.0",
|
16
|
+
"@graphcommerce/prettier-config-pwa": "6.1.0",
|
17
|
+
"@graphcommerce/typescript-config-pwa": "6.1.0"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"@graphcommerce/graphql": "6.0
|
21
|
-
"@graphcommerce/magento-cart": "6.0
|
22
|
-
"@graphcommerce/magento-customer": "6.0
|
23
|
-
"@graphcommerce/next-ui": "6.0
|
24
|
-
"@graphcommerce/react-hook-form": "6.0
|
20
|
+
"@graphcommerce/graphql": "6.1.0",
|
21
|
+
"@graphcommerce/magento-cart": "6.1.0",
|
22
|
+
"@graphcommerce/magento-customer": "6.1.0",
|
23
|
+
"@graphcommerce/next-ui": "6.1.0",
|
24
|
+
"@graphcommerce/react-hook-form": "6.1.0"
|
25
25
|
},
|
26
26
|
"peerDependencies": {
|
27
27
|
"@lingui/react": "^3.13.2",
|