@graphcommerce/magento-newsletter 6.0.2-canary.10 → 6.0.2-canary.12
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 6.0.2-canary.12
|
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.11
|
10
|
+
|
3
11
|
## 6.0.2-canary.10
|
4
12
|
|
5
13
|
## 6.0.2-canary.9
|
@@ -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.2-canary.
|
5
|
+
"version": "6.0.2-canary.12",
|
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.2-canary.
|
16
|
-
"@graphcommerce/prettier-config-pwa": "6.0.2-canary.
|
17
|
-
"@graphcommerce/typescript-config-pwa": "6.0.2-canary.
|
15
|
+
"@graphcommerce/eslint-config-pwa": "6.0.2-canary.12",
|
16
|
+
"@graphcommerce/prettier-config-pwa": "6.0.2-canary.12",
|
17
|
+
"@graphcommerce/typescript-config-pwa": "6.0.2-canary.12"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"@graphcommerce/graphql": "6.0.2-canary.
|
21
|
-
"@graphcommerce/magento-cart": "6.0.2-canary.
|
22
|
-
"@graphcommerce/magento-customer": "6.0.2-canary.
|
23
|
-
"@graphcommerce/next-ui": "6.0.2-canary.
|
24
|
-
"@graphcommerce/react-hook-form": "6.0.2-canary.
|
20
|
+
"@graphcommerce/graphql": "6.0.2-canary.12",
|
21
|
+
"@graphcommerce/magento-cart": "6.0.2-canary.12",
|
22
|
+
"@graphcommerce/magento-customer": "6.0.2-canary.12",
|
23
|
+
"@graphcommerce/next-ui": "6.0.2-canary.12",
|
24
|
+
"@graphcommerce/react-hook-form": "6.0.2-canary.12"
|
25
25
|
},
|
26
26
|
"peerDependencies": {
|
27
27
|
"@lingui/react": "^3.13.2",
|