@graphcommerce/magento-newsletter 2.0.2 → 2.0.5

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,33 +1,57 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
8
+
9
+ - Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`6213f0b0f`](https://github.com/graphcommerce-org/graphcommerce/commit/6213f0b0f5f53d622b993d9f7ea96cbbeb5bd670), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
10
+ - @graphcommerce/graphql@3.0.6
11
+ - @graphcommerce/next-ui@4.5.0
12
+ - @graphcommerce/magento-cart@4.2.2
13
+ - @graphcommerce/magento-customer@4.2.0
14
+ - @graphcommerce/react-hook-form@3.0.6
15
+
16
+ ## 2.0.4
17
+
18
+ ### Patch Changes
19
+
20
+ - [#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.
21
+
22
+ * [#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
23
+
24
+ * 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)]:
25
+ - @graphcommerce/next-ui@4.2.4
26
+ - @graphcommerce/graphql@3.0.4
27
+ - @graphcommerce/magento-cart@4.1.4
28
+ - @graphcommerce/magento-customer@4.1.4
29
+ - @graphcommerce/react-hook-form@3.0.4
30
+
31
+ ## 2.0.3
32
+
33
+ ### Patch Changes
34
+
35
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
36
+
37
+ - 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)]:
38
+ - @graphcommerce/graphql@3.0.3
39
+ - @graphcommerce/magento-cart@4.1.2
40
+ - @graphcommerce/magento-customer@4.1.2
41
+ - @graphcommerce/next-ui@4.1.2
42
+ - @graphcommerce/react-hook-form@3.0.3
43
+
3
44
  ## 2.0.2
4
45
 
5
46
  ### Patch Changes
6
47
 
7
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
8
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
9
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
10
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
11
- duplicate packages in the node_modules folders.
12
-
13
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
14
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
15
- Thanks [@paales](https://github.com/paales)! - Upgraded to
16
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
17
- implementing
18
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
19
- soon.
20
-
21
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
22
- frontend to be able to revalidate pages manually.
23
-
24
- * Updated dependencies
25
- [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
26
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
27
- [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
28
- [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
29
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
30
- [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
48
+ - [#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.
49
+
50
+ * [#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.
51
+
52
+ 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.
53
+
54
+ * 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)]:
31
55
  - @graphcommerce/magento-cart@4.1.1
32
56
  - @graphcommerce/magento-customer@4.1.1
33
57
  - @graphcommerce/next-ui@4.1.1
@@ -38,11 +62,8 @@
38
62
 
39
63
  ### Patch Changes
40
64
 
41
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
42
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
43
- so that the packages link to back to the website and repository
44
- - Updated dependencies
45
- [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
65
+ - [`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
66
+ - Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
46
67
  - @graphcommerce/graphql@3.0.1
47
68
  - @graphcommerce/magento-cart@4.0.1
48
69
  - @graphcommerce/magento-customer@4.0.1
@@ -53,43 +74,36 @@
53
74
 
54
75
  ### Major Changes
55
76
 
56
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
57
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
58
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
77
+ - [#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
59
78
 
60
79
  ### Patch Changes
61
80
 
62
- - Updated dependencies
63
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
81
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
64
82
  - @graphcommerce/graphql@3.0.0
65
83
  - @graphcommerce/magento-cart@4.0.0
66
84
  - @graphcommerce/magento-customer@4.0.0
67
85
  - @graphcommerce/next-ui@4.0.0
68
86
  - @graphcommerce/react-hook-form@3.0.0
69
87
 
70
- All notable changes to this project will be documented in this file. See
71
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
88
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
72
89
 
73
90
  # [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)
74
91
 
75
92
  ### Features
76
93
 
77
- - added tons of translations
78
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
94
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
79
95
 
80
96
  ## [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)
81
97
 
82
98
  ### Bug Fixes
83
99
 
84
- - **signup-newsletter:** mobile layout
85
- ([fcc3935](https://github.com/ho-nl/m2-pwa/commit/fcc3935c5733d087012f736ac70fafa58bff78bc))
100
+ - **signup-newsletter:** mobile layout ([fcc3935](https://github.com/ho-nl/m2-pwa/commit/fcc3935c5733d087012f736ac70fafa58bff78bc))
86
101
 
87
102
  ## [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)
88
103
 
89
104
  ### Bug Fixes
90
105
 
91
- - darkMode
92
- ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
106
+ - darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
93
107
 
94
108
  ## [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)
95
109
 
@@ -99,16 +113,12 @@ All notable changes to this project will be documented in this file. See
99
113
 
100
114
  ### Features
101
115
 
102
- - added magento-newsletter package
103
- ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
104
- - guest newsletter toggle
105
- ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
116
+ - added magento-newsletter package ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
117
+ - guest newsletter toggle ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
106
118
 
107
119
  # 0.1.0 (2021-09-24)
108
120
 
109
121
  ### Features
110
122
 
111
- - added magento-newsletter package
112
- ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
113
- - guest newsletter toggle
114
- ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
123
+ - added magento-newsletter package ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
124
+ - 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.2",
5
+ "version": "2.0.5",
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.2",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
18
- "@playwright/test": "^1.19.1"
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.3",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
+ "@playwright/test": "^1.20.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.2",
22
- "@graphcommerce/magento-cart": "^4.1.1",
23
- "@graphcommerce/magento-customer": "^4.1.1",
24
- "@graphcommerce/next-ui": "^4.1.1",
25
- "@graphcommerce/react-hook-form": "^3.0.2"
21
+ "@graphcommerce/graphql": "^3.0.6",
22
+ "@graphcommerce/magento-cart": "^4.2.2",
23
+ "@graphcommerce/magento-customer": "^4.2.0",
24
+ "@graphcommerce/next-ui": "^4.5.0",
25
+ "@graphcommerce/react-hook-form": "^3.0.6"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@lingui/macro": "^3.13.2",