@graphcommerce/magento-newsletter 8.1.0-canary.9 → 9.0.0-canary.55

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,112 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.55
4
+
5
+ ## 9.0.0-canary.54
6
+
7
+ ## 8.1.0-canary.53
8
+
9
+ ## 8.1.0-canary.52
10
+
11
+ ### Minor Changes
12
+
13
+ - [#2320](https://github.com/graphcommerce-org/graphcommerce/pull/2320) [`dc5e85c`](https://github.com/graphcommerce-org/graphcommerce/commit/dc5e85c95dad6145fde02a6e54f0fbd1cdfe9e3d) - Replace depricated updateCustomer mutations with updateCustomerV2
14
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
15
+
16
+ ## 8.1.0-canary.51
17
+
18
+ ## 8.1.0-canary.50
19
+
20
+ ## 8.1.0-canary.49
21
+
22
+ ## 8.1.0-canary.48
23
+
24
+ ## 8.1.0-canary.47
25
+
26
+ ## 8.1.0-canary.46
27
+
28
+ ## 8.1.0-canary.45
29
+
30
+ ## 8.1.0-canary.44
31
+
32
+ ## 8.1.0-canary.43
33
+
34
+ ## 8.1.0-canary.42
35
+
36
+ ## 8.1.0-canary.41
37
+
38
+ ## 8.1.0-canary.40
39
+
40
+ ## 8.1.0-canary.39
41
+
42
+ ## 8.1.0-canary.38
43
+
44
+ ### Patch Changes
45
+
46
+ - [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Fix bug with persist not applying saved changes by moving <FromPersist/> below the form components
47
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
48
+
49
+ ## 8.1.0-canary.37
50
+
51
+ ## 8.1.0-canary.36
52
+
53
+ ## 8.1.0-canary.35
54
+
55
+ ### Patch Changes
56
+
57
+ - [#2301](https://github.com/graphcommerce-org/graphcommerce/pull/2301) [`13d0649`](https://github.com/graphcommerce-org/graphcommerce/commit/13d06498d121f93b52c25930e50aa3b0bd12a818) - Created a new EmailElement component to make re-use easier
58
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
59
+
60
+ ## 8.1.0-canary.34
61
+
62
+ ## 8.1.0-canary.33
63
+
64
+ ## 8.1.0-canary.32
65
+
66
+ ## 8.1.0-canary.31
67
+
68
+ ## 8.1.0-canary.30
69
+
70
+ ## 8.1.0-canary.29
71
+
72
+ ## 8.1.0-canary.28
73
+
74
+ ## 8.1.0-canary.27
75
+
76
+ ## 8.1.0-canary.26
77
+
78
+ ## 8.1.0-canary.25
79
+
80
+ ## 8.1.0-canary.24
81
+
82
+ ## 8.1.0-canary.23
83
+
84
+ ## 8.1.0-canary.22
85
+
86
+ ## 8.1.0-canary.21
87
+
88
+ ## 8.1.0-canary.20
89
+
90
+ ## 8.1.0-canary.19
91
+
92
+ ## 8.1.0-canary.18
93
+
94
+ ## 8.1.0-canary.17
95
+
96
+ ## 8.1.0-canary.16
97
+
98
+ ## 8.1.0-canary.15
99
+
100
+ ## 8.1.0-canary.14
101
+
102
+ ## 8.1.0-canary.13
103
+
104
+ ## 8.1.0-canary.12
105
+
106
+ ## 8.1.0-canary.11
107
+
108
+ ## 8.1.0-canary.10
109
+
3
110
  ## 8.1.0-canary.9
4
111
 
5
112
  ## 8.1.0-canary.8
@@ -49,10 +49,10 @@ export function SubscribeToNewsletter(props: CheckoutNewsletterProps) {
49
49
 
50
50
  return (
51
51
  <Box sx={sx}>
52
- <FormPersist form={form} name='NewsletterSubscribeForm' />
53
52
  <form onSubmit={submit} noValidate>
54
53
  <CheckboxElement color='secondary' control={control} name='subscribe' label={label} />
55
54
  </form>
55
+ <FormPersist form={form} name='NewsletterSubscribeForm' />
56
56
  </Box>
57
57
  )
58
58
  }
@@ -1,5 +1,5 @@
1
1
  mutation SubscribeCustomer {
2
- updateCustomer(input: { is_subscribed: true }) {
2
+ updateCustomerV2(input: { is_subscribed: true }) {
3
3
  customer {
4
4
  is_subscribed
5
5
  }
@@ -1,5 +1,5 @@
1
1
  mutation UpdateNewsletterSubscription($isSubscribed: Boolean!) {
2
- updateCustomer(input: { is_subscribed: $isSubscribed }) {
2
+ updateCustomerV2(input: { is_subscribed: $isSubscribed }) {
3
3
  customer {
4
4
  is_subscribed
5
5
  }
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ApolloErrorSnackbar,
3
+ EmailElement,
3
4
  TextFieldElement,
4
5
  useFormGqlMutation,
5
6
  } from '@graphcommerce/ecommerce-ui'
@@ -28,15 +29,12 @@ export function GuestNewsletter(props: GuestNewsletterProps) {
28
29
  onSubmit={submit}
29
30
  sx={[(theme) => ({ gap: theme.spacings.xs }), ...(Array.isArray(sx) ? sx : [sx])]}
30
31
  >
31
- <TextFieldElement
32
- required
33
- variant='outlined'
34
- type='email'
35
- label={i18n._(/* i18n */ 'Email address')}
32
+ <EmailElement
36
33
  control={control}
37
34
  name='email'
35
+ required
36
+ variant='outlined'
38
37
  size='medium'
39
- inputProps={{ autoComplete: 'email' }}
40
38
  disabled={submittedWithoutErrors}
41
39
  />
42
40
 
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": "8.1.0-canary.9",
5
+ "version": "9.0.0-canary.55",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,15 +12,15 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.1.0-canary.9",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.9",
17
- "@graphcommerce/graphql": "^8.1.0-canary.9",
18
- "@graphcommerce/magento-cart": "^8.1.0-canary.9",
19
- "@graphcommerce/magento-customer": "^8.1.0-canary.9",
20
- "@graphcommerce/next-ui": "^8.1.0-canary.9",
21
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.9",
22
- "@graphcommerce/react-hook-form": "^8.1.0-canary.9",
23
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.9",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.55",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.55",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.55",
18
+ "@graphcommerce/magento-cart": "^9.0.0-canary.55",
19
+ "@graphcommerce/magento-customer": "^9.0.0-canary.55",
20
+ "@graphcommerce/next-ui": "^9.0.0-canary.55",
21
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.55",
22
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.55",
23
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.55",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",