@graphcommerce/magento-newsletter 8.1.0-canary.5 → 8.1.0-canary.50

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,105 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.50
4
+
5
+ ## 8.1.0-canary.49
6
+
7
+ ## 8.1.0-canary.48
8
+
9
+ ## 8.1.0-canary.47
10
+
11
+ ## 8.1.0-canary.46
12
+
13
+ ## 8.1.0-canary.45
14
+
15
+ ## 8.1.0-canary.44
16
+
17
+ ## 8.1.0-canary.43
18
+
19
+ ## 8.1.0-canary.42
20
+
21
+ ## 8.1.0-canary.41
22
+
23
+ ## 8.1.0-canary.40
24
+
25
+ ## 8.1.0-canary.39
26
+
27
+ ## 8.1.0-canary.38
28
+
29
+ ### Patch Changes
30
+
31
+ - [#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
32
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
33
+
34
+ ## 8.1.0-canary.37
35
+
36
+ ## 8.1.0-canary.36
37
+
38
+ ## 8.1.0-canary.35
39
+
40
+ ### Patch Changes
41
+
42
+ - [#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
43
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
44
+
45
+ ## 8.1.0-canary.34
46
+
47
+ ## 8.1.0-canary.33
48
+
49
+ ## 8.1.0-canary.32
50
+
51
+ ## 8.1.0-canary.31
52
+
53
+ ## 8.1.0-canary.30
54
+
55
+ ## 8.1.0-canary.29
56
+
57
+ ## 8.1.0-canary.28
58
+
59
+ ## 8.1.0-canary.27
60
+
61
+ ## 8.1.0-canary.26
62
+
63
+ ## 8.1.0-canary.25
64
+
65
+ ## 8.1.0-canary.24
66
+
67
+ ## 8.1.0-canary.23
68
+
69
+ ## 8.1.0-canary.22
70
+
71
+ ## 8.1.0-canary.21
72
+
73
+ ## 8.1.0-canary.20
74
+
75
+ ## 8.1.0-canary.19
76
+
77
+ ## 8.1.0-canary.18
78
+
79
+ ## 8.1.0-canary.17
80
+
81
+ ## 8.1.0-canary.16
82
+
83
+ ## 8.1.0-canary.15
84
+
85
+ ## 8.1.0-canary.14
86
+
87
+ ## 8.1.0-canary.13
88
+
89
+ ## 8.1.0-canary.12
90
+
91
+ ## 8.1.0-canary.11
92
+
93
+ ## 8.1.0-canary.10
94
+
95
+ ## 8.1.0-canary.9
96
+
97
+ ## 8.1.0-canary.8
98
+
99
+ ## 8.1.0-canary.7
100
+
101
+ ## 8.1.0-canary.6
102
+
3
103
  ## 8.1.0-canary.5
4
104
 
5
105
  ## 8.0.6-canary.4
@@ -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,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.5",
5
+ "version": "8.1.0-canary.50",
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.5",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.5",
17
- "@graphcommerce/graphql": "^8.1.0-canary.5",
18
- "@graphcommerce/magento-cart": "^8.1.0-canary.5",
19
- "@graphcommerce/magento-customer": "^8.1.0-canary.5",
20
- "@graphcommerce/next-ui": "^8.1.0-canary.5",
21
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.5",
22
- "@graphcommerce/react-hook-form": "^8.1.0-canary.5",
23
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.5",
15
+ "@graphcommerce/ecommerce-ui": "^8.1.0-canary.50",
16
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.50",
17
+ "@graphcommerce/graphql": "^8.1.0-canary.50",
18
+ "@graphcommerce/magento-cart": "^8.1.0-canary.50",
19
+ "@graphcommerce/magento-customer": "^8.1.0-canary.50",
20
+ "@graphcommerce/next-ui": "^8.1.0-canary.50",
21
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.50",
22
+ "@graphcommerce/react-hook-form": "^8.1.0-canary.50",
23
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.50",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",