@graphcommerce/magento-newsletter 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,17 +1,27 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
8
+
9
+ * [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
10
+
11
+ * Updated dependencies [[`3d63b39f7`](https://github.com/ho-nl/m2-pwa/commit/3d63b39f7e330d1827a32dba782667d7b21adaba), [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655), [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef)]:
12
+ - @graphcommerce/next-ui@4.2.4
13
+ - @graphcommerce/graphql@3.0.4
14
+ - @graphcommerce/magento-cart@4.1.4
15
+ - @graphcommerce/magento-customer@4.1.4
16
+ - @graphcommerce/react-hook-form@3.0.4
17
+
3
18
  ## 2.0.3
4
19
 
5
20
  ### Patch Changes
6
21
 
7
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
8
- Thanks [@paales](https://github.com/paales)! - made packages public
22
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
9
23
 
10
- - Updated dependencies
11
- [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
12
- [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
13
- [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
14
- [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
24
+ - Updated dependencies [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96), [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20), [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d), [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
15
25
  - @graphcommerce/graphql@3.0.3
16
26
  - @graphcommerce/magento-cart@4.1.2
17
27
  - @graphcommerce/magento-customer@4.1.2
@@ -22,30 +32,13 @@
22
32
 
23
33
  ### Patch Changes
24
34
 
25
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
26
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
27
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
28
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
29
- duplicate packages in the node_modules folders.
30
-
31
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
32
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
33
- Thanks [@paales](https://github.com/paales)! - Upgraded to
34
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
35
- implementing
36
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
37
- soon.
38
-
39
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
40
- frontend to be able to revalidate pages manually.
41
-
42
- * Updated dependencies
43
- [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
44
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
45
- [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
46
- [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
47
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
48
- [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
35
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
36
+
37
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
38
+
39
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
40
+
41
+ * Updated dependencies [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7), [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2), [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b), [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275), [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d), [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
49
42
  - @graphcommerce/magento-cart@4.1.1
50
43
  - @graphcommerce/magento-customer@4.1.1
51
44
  - @graphcommerce/next-ui@4.1.1
@@ -56,11 +49,8 @@
56
49
 
57
50
  ### Patch Changes
58
51
 
59
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
60
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
61
- so that the packages link to back to the website and repository
62
- - Updated dependencies
63
- [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
52
+ - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
53
+ - Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
64
54
  - @graphcommerce/graphql@3.0.1
65
55
  - @graphcommerce/magento-cart@4.0.1
66
56
  - @graphcommerce/magento-customer@4.0.1
@@ -71,43 +61,36 @@
71
61
 
72
62
  ### Major Changes
73
63
 
74
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
75
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
76
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
64
+ - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
77
65
 
78
66
  ### Patch Changes
79
67
 
80
- - Updated dependencies
81
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
68
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
82
69
  - @graphcommerce/graphql@3.0.0
83
70
  - @graphcommerce/magento-cart@4.0.0
84
71
  - @graphcommerce/magento-customer@4.0.0
85
72
  - @graphcommerce/next-ui@4.0.0
86
73
  - @graphcommerce/react-hook-form@3.0.0
87
74
 
88
- All notable changes to this project will be documented in this file. See
89
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
75
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
90
76
 
91
77
  # [1.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-newsletter@1.0.19...@graphcommerce/magento-newsletter@1.1.0) (2021-11-12)
92
78
 
93
79
  ### Features
94
80
 
95
- - added tons of translations
96
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
81
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
97
82
 
98
83
  ## [1.0.17](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-newsletter@1.0.16...@graphcommerce/magento-newsletter@1.0.17) (2021-11-12)
99
84
 
100
85
  ### Bug Fixes
101
86
 
102
- - **signup-newsletter:** mobile layout
103
- ([fcc3935](https://github.com/ho-nl/m2-pwa/commit/fcc3935c5733d087012f736ac70fafa58bff78bc))
87
+ - **signup-newsletter:** mobile layout ([fcc3935](https://github.com/ho-nl/m2-pwa/commit/fcc3935c5733d087012f736ac70fafa58bff78bc))
104
88
 
105
89
  ## [0.2.46](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-newsletter@0.2.45...@graphcommerce/magento-newsletter@0.2.46) (2021-11-02)
106
90
 
107
91
  ### Bug Fixes
108
92
 
109
- - darkMode
110
- ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
93
+ - darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
111
94
 
112
95
  ## [0.2.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-newsletter@0.2.0...@graphcommerce/magento-newsletter@0.2.1) (2021-09-27)
113
96
 
@@ -117,16 +100,12 @@ All notable changes to this project will be documented in this file. See
117
100
 
118
101
  ### Features
119
102
 
120
- - added magento-newsletter package
121
- ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
122
- - guest newsletter toggle
123
- ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
103
+ - added magento-newsletter package ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
104
+ - guest newsletter toggle ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
124
105
 
125
106
  # 0.1.0 (2021-09-24)
126
107
 
127
108
  ### Features
128
109
 
129
- - added magento-newsletter package
130
- ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
131
- - guest newsletter toggle
132
- ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
110
+ - added magento-newsletter package ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
111
+ - guest newsletter toggle ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
@@ -17,7 +17,7 @@ import { UpdateNewsletterSubscriptionDocument } from './UpdateNewsletterSubscrip
17
17
 
18
18
  export type CustomerNewsletterToggleProps = SwitchProps & { sx?: SxProps<Theme> }
19
19
 
20
- export default function CustomerNewsletterToggle(props: CustomerNewsletterToggleProps) {
20
+ export function CustomerNewsletterToggle(props: CustomerNewsletterToggleProps) {
21
21
  const { disabled, sx = [], ...switchProps } = props
22
22
 
23
23
  const { loading, data } = useQuery(GetCustomerNewsletterToggleDocument, { ssr: false })
@@ -21,7 +21,7 @@ import {
21
21
 
22
22
  export type GuestNewsletterToggleProps = SwitchProps & { sx?: SxProps<Theme> }
23
23
 
24
- export default function GuestNewsletterToggle(props: GuestNewsletterToggleProps) {
24
+ export function GuestNewsletterToggle(props: GuestNewsletterToggleProps) {
25
25
  const { sx = [], ...switchProps } = props
26
26
 
27
27
  const email =
@@ -4,8 +4,8 @@ import { CustomerTokenDocument } from '@graphcommerce/magento-customer'
4
4
  import { extendableComponent } from '@graphcommerce/next-ui'
5
5
  import { Trans } from '@lingui/macro'
6
6
  import { Box, SxProps, Theme, Typography } from '@mui/material'
7
- import CustomerNewsletterToggle from '../CustomerNewsletterToggle'
8
- import GuestNewsletterToggle from '../GuestNewsletterToggle'
7
+ import { CustomerNewsletterToggle } from '../CustomerNewsletterToggle/CustomerNewsletterToggle'
8
+ import { GuestNewsletterToggle } from '../GuestNewsletterToggle/GuestNewsletterToggle'
9
9
  import { GetCartEmailDocument } from './GetCartEmail.gql'
10
10
 
11
11
  type SignupNewsletterProps = { sx?: SxProps<Theme> }
@@ -16,7 +16,7 @@ type OwnerState = { isCustomer: boolean }
16
16
  const parts = ['signup', 'text', 'signupForm'] as const
17
17
  const { withState } = extendableComponent<OwnerState, typeof name, typeof parts>(name, parts)
18
18
 
19
- export default function SignupNewsletter(props: SignupNewsletterProps) {
19
+ export function SignupNewsletter(props: SignupNewsletterProps) {
20
20
  const { sx = [] } = props
21
21
  const { data: cartData } = useCartQuery(GetCartEmailDocument, { allowUrl: true })
22
22
  const { data: customerTokenData } = useQuery(CustomerTokenDocument)
@@ -1,2 +1,2 @@
1
- export { default as CustomerNewsletterToggle } from './CustomerNewsletterToggle'
2
- export { default as SignupNewsletter } from './SignupNewsletter'
1
+ export * from './CustomerNewsletterToggle/CustomerNewsletterToggle'
2
+ export * from './SignupNewsletter/SignupNewsletter'
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": "2.0.3",
5
+ "version": "2.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,17 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.3",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.19.1"
18
+ "@playwright/test": "^1.19.2"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.3",
22
- "@graphcommerce/magento-cart": "^4.1.2",
23
- "@graphcommerce/magento-customer": "^4.1.2",
24
- "@graphcommerce/next-ui": "^4.1.2",
25
- "@graphcommerce/react-hook-form": "^3.0.3"
21
+ "@graphcommerce/graphql": "^3.0.4",
22
+ "@graphcommerce/magento-cart": "^4.1.4",
23
+ "@graphcommerce/magento-customer": "^4.1.4",
24
+ "@graphcommerce/next-ui": "^4.2.4",
25
+ "@graphcommerce/react-hook-form": "^3.0.4"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@lingui/macro": "^3.13.2",