@graphcommerce/magento-newsletter 6.0.2-canary.10 → 6.0.2-canary.13

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