@graphcommerce/magento-newsletter 6.0.2-canary.2 → 6.0.2-canary.21

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.2-canary.21
4
+
5
+ ## 6.0.2-canary.20
6
+
7
+ ## 6.0.2-canary.19
8
+
9
+ ## 6.0.2-canary.18
10
+
11
+ ## 6.0.2-canary.17
12
+
13
+ ## 6.0.2-canary.16
14
+
15
+ ## 6.0.2-canary.15
16
+
17
+ ## 6.0.2-canary.14
18
+
19
+ ## 6.0.2-canary.13
20
+
21
+ ## 6.0.2-canary.12
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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))
26
+
27
+ ## 6.0.2-canary.11
28
+
29
+ ## 6.0.2-canary.10
30
+
31
+ ## 6.0.2-canary.9
32
+
33
+ ## 6.0.2-canary.8
34
+
35
+ ## 6.0.2-canary.7
36
+
37
+ ## 6.0.2-canary.6
38
+
39
+ ## 6.0.2-canary.5
40
+
41
+ ## 6.0.2-canary.4
42
+
43
+ ## 6.0.2-canary.3
44
+
3
45
  ## 6.0.2-canary.2
4
46
 
5
47
  ## 6.0.2-canary.1
@@ -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.2",
5
+ "version": "6.0.2-canary.21",
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.2",
16
- "@graphcommerce/prettier-config-pwa": "6.0.2-canary.2",
17
- "@graphcommerce/typescript-config-pwa": "6.0.2-canary.2"
15
+ "@graphcommerce/eslint-config-pwa": "6.0.2-canary.21",
16
+ "@graphcommerce/prettier-config-pwa": "6.0.2-canary.21",
17
+ "@graphcommerce/typescript-config-pwa": "6.0.2-canary.21"
18
18
  },
19
19
  "dependencies": {
20
- "@graphcommerce/graphql": "6.0.2-canary.2",
21
- "@graphcommerce/magento-cart": "6.0.2-canary.2",
22
- "@graphcommerce/magento-customer": "6.0.2-canary.2",
23
- "@graphcommerce/next-ui": "6.0.2-canary.2",
24
- "@graphcommerce/react-hook-form": "6.0.2-canary.2"
20
+ "@graphcommerce/graphql": "6.0.2-canary.21",
21
+ "@graphcommerce/magento-cart": "6.0.2-canary.21",
22
+ "@graphcommerce/magento-customer": "6.0.2-canary.21",
23
+ "@graphcommerce/next-ui": "6.0.2-canary.21",
24
+ "@graphcommerce/react-hook-form": "6.0.2-canary.21"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@lingui/react": "^3.13.2",