@graphcommerce/magento-newsletter 2.0.3 → 2.0.6

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,53 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
8
+
9
+ - Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5), [`22ff9df16`](https://github.com/graphcommerce-org/graphcommerce/commit/22ff9df1677742ae8e07d9b7e5b12fbb487580dc)]:
10
+ - @graphcommerce/graphql@3.0.7
11
+ - @graphcommerce/magento-cart@4.2.3
12
+ - @graphcommerce/magento-customer@4.2.1
13
+ - @graphcommerce/next-ui@4.5.1
14
+ - @graphcommerce/react-hook-form@3.0.7
15
+
16
+ ## 2.0.5
17
+
18
+ ### Patch Changes
19
+
20
+ - [#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
21
+
22
+ - 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)]:
23
+ - @graphcommerce/graphql@3.0.6
24
+ - @graphcommerce/next-ui@4.5.0
25
+ - @graphcommerce/magento-cart@4.2.2
26
+ - @graphcommerce/magento-customer@4.2.0
27
+ - @graphcommerce/react-hook-form@3.0.6
28
+
29
+ ## 2.0.4
30
+
31
+ ### Patch Changes
32
+
33
+ - [#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.
34
+
35
+ * [#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
36
+
37
+ * 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)]:
38
+ - @graphcommerce/next-ui@4.2.4
39
+ - @graphcommerce/graphql@3.0.4
40
+ - @graphcommerce/magento-cart@4.1.4
41
+ - @graphcommerce/magento-customer@4.1.4
42
+ - @graphcommerce/react-hook-form@3.0.4
43
+
3
44
  ## 2.0.3
4
45
 
5
46
  ### Patch Changes
6
47
 
7
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
8
- Thanks [@paales](https://github.com/paales)! - made packages public
48
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
9
49
 
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)]:
50
+ - 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
51
  - @graphcommerce/graphql@3.0.3
16
52
  - @graphcommerce/magento-cart@4.1.2
17
53
  - @graphcommerce/magento-customer@4.1.2
@@ -22,30 +58,13 @@
22
58
 
23
59
  ### Patch Changes
24
60
 
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)]:
61
+ - [#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.
62
+
63
+ * [#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.
64
+
65
+ 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.
66
+
67
+ * 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
68
  - @graphcommerce/magento-cart@4.1.1
50
69
  - @graphcommerce/magento-customer@4.1.1
51
70
  - @graphcommerce/next-ui@4.1.1
@@ -56,11 +75,8 @@
56
75
 
57
76
  ### Patch Changes
58
77
 
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)]:
78
+ - [`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
79
+ - Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
64
80
  - @graphcommerce/graphql@3.0.1
65
81
  - @graphcommerce/magento-cart@4.0.1
66
82
  - @graphcommerce/magento-customer@4.0.1
@@ -71,43 +87,36 @@
71
87
 
72
88
  ### Major Changes
73
89
 
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
90
+ - [#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
91
 
78
92
  ### Patch Changes
79
93
 
80
- - Updated dependencies
81
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
94
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
82
95
  - @graphcommerce/graphql@3.0.0
83
96
  - @graphcommerce/magento-cart@4.0.0
84
97
  - @graphcommerce/magento-customer@4.0.0
85
98
  - @graphcommerce/next-ui@4.0.0
86
99
  - @graphcommerce/react-hook-form@3.0.0
87
100
 
88
- All notable changes to this project will be documented in this file. See
89
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
101
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
90
102
 
91
103
  # [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
104
 
93
105
  ### Features
94
106
 
95
- - added tons of translations
96
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
107
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
97
108
 
98
109
  ## [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
110
 
100
111
  ### Bug Fixes
101
112
 
102
- - **signup-newsletter:** mobile layout
103
- ([fcc3935](https://github.com/ho-nl/m2-pwa/commit/fcc3935c5733d087012f736ac70fafa58bff78bc))
113
+ - **signup-newsletter:** mobile layout ([fcc3935](https://github.com/ho-nl/m2-pwa/commit/fcc3935c5733d087012f736ac70fafa58bff78bc))
104
114
 
105
115
  ## [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
116
 
107
117
  ### Bug Fixes
108
118
 
109
- - darkMode
110
- ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
119
+ - darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
111
120
 
112
121
  ## [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
122
 
@@ -117,16 +126,12 @@ All notable changes to this project will be documented in this file. See
117
126
 
118
127
  ### Features
119
128
 
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))
129
+ - added magento-newsletter package ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
130
+ - guest newsletter toggle ([c747aed](https://github.com/ho-nl/m2-pwa/commit/c747aed081b2c5c134e2be1bc4c32de2a5e6e220))
124
131
 
125
132
  # 0.1.0 (2021-09-24)
126
133
 
127
134
  ### Features
128
135
 
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))
136
+ - added magento-newsletter package ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
137
+ - 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.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,23 +12,23 @@
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.1.4",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.19.1"
18
+ "@playwright/test": "^1.20.1"
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.7",
22
+ "@graphcommerce/magento-cart": "4.2.3",
23
+ "@graphcommerce/magento-customer": "4.2.1",
24
+ "@graphcommerce/next-ui": "4.5.1",
25
+ "@graphcommerce/react-hook-form": "3.0.7"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@lingui/macro": "^3.13.2",
29
- "@mui/material": "^5.4.1",
29
+ "@mui/material": "5.5.3",
30
30
  "framer-motion": "^6.2.4",
31
- "next": "^12.0.10",
31
+ "next": "12.1.2",
32
32
  "react": "^17.0.2",
33
33
  "react-dom": "^17.0.2"
34
34
  }