@graphcommerce/magento-newsletter 2.0.1 → 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,14 +1,56 @@
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
+
18
+ ## 2.0.3
19
+
20
+ ### Patch Changes
21
+
22
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
23
+
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)]:
25
+ - @graphcommerce/graphql@3.0.3
26
+ - @graphcommerce/magento-cart@4.1.2
27
+ - @graphcommerce/magento-customer@4.1.2
28
+ - @graphcommerce/next-ui@4.1.2
29
+ - @graphcommerce/react-hook-form@3.0.3
30
+
31
+ ## 2.0.2
32
+
33
+ ### Patch Changes
34
+
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)]:
42
+ - @graphcommerce/magento-cart@4.1.1
43
+ - @graphcommerce/magento-customer@4.1.1
44
+ - @graphcommerce/next-ui@4.1.1
45
+ - @graphcommerce/react-hook-form@3.0.2
46
+ - @graphcommerce/graphql@3.0.2
47
+
3
48
  ## 2.0.1
4
49
 
5
50
  ### Patch Changes
6
51
 
7
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
8
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
9
- so that the packages link to back to the website and repository
10
- - Updated dependencies
11
- [[`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)]:
12
54
  - @graphcommerce/graphql@3.0.1
13
55
  - @graphcommerce/magento-cart@4.0.1
14
56
  - @graphcommerce/magento-customer@4.0.1
@@ -19,43 +61,36 @@
19
61
 
20
62
  ### Major Changes
21
63
 
22
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
23
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
24
- 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
25
65
 
26
66
  ### Patch Changes
27
67
 
28
- - Updated dependencies
29
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
68
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
30
69
  - @graphcommerce/graphql@3.0.0
31
70
  - @graphcommerce/magento-cart@4.0.0
32
71
  - @graphcommerce/magento-customer@4.0.0
33
72
  - @graphcommerce/next-ui@4.0.0
34
73
  - @graphcommerce/react-hook-form@3.0.0
35
74
 
36
- All notable changes to this project will be documented in this file. See
37
- [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.
38
76
 
39
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)
40
78
 
41
79
  ### Features
42
80
 
43
- - added tons of translations
44
- ([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))
45
82
 
46
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)
47
84
 
48
85
  ### Bug Fixes
49
86
 
50
- - **signup-newsletter:** mobile layout
51
- ([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))
52
88
 
53
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)
54
90
 
55
91
  ### Bug Fixes
56
92
 
57
- - darkMode
58
- ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
93
+ - darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
59
94
 
60
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)
61
96
 
@@ -65,16 +100,12 @@ All notable changes to this project will be documented in this file. See
65
100
 
66
101
  ### Features
67
102
 
68
- - added magento-newsletter package
69
- ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
70
- - guest newsletter toggle
71
- ([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))
72
105
 
73
106
  # 0.1.0 (2021-09-24)
74
107
 
75
108
  ### Features
76
109
 
77
- - added magento-newsletter package
78
- ([9b48b1b](https://github.com/ho-nl/m2-pwa/commit/9b48b1b4dc29f9ea3271f4a6370abba15dd8999c))
79
- - guest newsletter toggle
80
- ([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.1",
5
+ "version": "2.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,19 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
18
- "@playwright/test": "^1.18.1"
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
+ "@playwright/test": "^1.19.2"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.1",
22
- "@graphcommerce/magento-cart": "^4.0.1",
23
- "@graphcommerce/magento-customer": "^4.0.1",
24
- "@graphcommerce/next-ui": "^4.0.1",
25
- "@graphcommerce/react-hook-form": "^3.0.1",
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
+ },
27
+ "peerDependencies": {
26
28
  "@lingui/macro": "^3.13.2",
27
29
  "@mui/material": "^5.4.1",
28
30
  "framer-motion": "^6.2.4",