@graphcommerce/magento-newsletter 8.1.0-canary.33 → 8.1.0-canary.35

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.35
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
9
+
10
+ ## 8.1.0-canary.34
11
+
3
12
  ## 8.1.0-canary.33
4
13
 
5
14
  ## 8.1.0-canary.32
@@ -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.33",
5
+ "version": "8.1.0-canary.35",
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.33",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.33",
17
- "@graphcommerce/graphql": "^8.1.0-canary.33",
18
- "@graphcommerce/magento-cart": "^8.1.0-canary.33",
19
- "@graphcommerce/magento-customer": "^8.1.0-canary.33",
20
- "@graphcommerce/next-ui": "^8.1.0-canary.33",
21
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.33",
22
- "@graphcommerce/react-hook-form": "^8.1.0-canary.33",
23
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.33",
15
+ "@graphcommerce/ecommerce-ui": "^8.1.0-canary.35",
16
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.35",
17
+ "@graphcommerce/graphql": "^8.1.0-canary.35",
18
+ "@graphcommerce/magento-cart": "^8.1.0-canary.35",
19
+ "@graphcommerce/magento-customer": "^8.1.0-canary.35",
20
+ "@graphcommerce/next-ui": "^8.1.0-canary.35",
21
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.35",
22
+ "@graphcommerce/react-hook-form": "^8.1.0-canary.35",
23
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.35",
24
24
  "@lingui/core": "^4.2.1",
25
25
  "@lingui/macro": "^4.2.1",
26
26
  "@lingui/react": "^4.2.1",