@graphcommerce/magento-cart-coupon 3.0.4 → 3.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.
|
@@ -10,7 +10,7 @@ const name = 'ApplyCouponForm' as const
|
|
|
10
10
|
const parts = ['couponForm', 'button'] as const
|
|
11
11
|
const { classes } = extendableComponent(name, parts)
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export function ApplyCouponForm(props: ApplyCouponFormProps) {
|
|
14
14
|
const { sx = [] } = props
|
|
15
15
|
const form = useFormGqlMutationCart(ApplyCouponFormDocument)
|
|
16
16
|
const { handleSubmit, muiRegister, formState, required, error } = form
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
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/image@3.1.1
|
|
15
|
+
- @graphcommerce/magento-cart@4.1.4
|
|
16
|
+
- @graphcommerce/magento-store@4.1.2
|
|
17
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
18
|
+
|
|
3
19
|
## 3.0.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292)
|
|
8
|
-
[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0)
|
|
9
|
-
Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions
|
|
10
|
-
with MUI
|
|
23
|
+
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292) [`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0) Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions with MUI
|
|
11
24
|
|
|
12
|
-
- Updated dependencies
|
|
13
|
-
[[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0),
|
|
14
|
-
[`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d),
|
|
15
|
-
[`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
25
|
+
- Updated dependencies [[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0), [`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d), [`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
16
26
|
- @graphcommerce/magento-cart@4.1.3
|
|
17
27
|
- @graphcommerce/next-ui@4.2.0
|
|
18
28
|
|
|
@@ -20,14 +30,9 @@
|
|
|
20
30
|
|
|
21
31
|
### Patch Changes
|
|
22
32
|
|
|
23
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
24
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
33
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
25
34
|
|
|
26
|
-
- Updated dependencies
|
|
27
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
28
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
29
|
-
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
30
|
-
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
35
|
+
- 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)]:
|
|
31
36
|
- @graphcommerce/graphql@3.0.3
|
|
32
37
|
- @graphcommerce/image@3.1.0
|
|
33
38
|
- @graphcommerce/magento-cart@4.1.2
|
|
@@ -39,30 +44,13 @@
|
|
|
39
44
|
|
|
40
45
|
### Patch Changes
|
|
41
46
|
|
|
42
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* [
|
|
49
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
50
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
51
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
52
|
-
implementing
|
|
53
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
54
|
-
soon.
|
|
55
|
-
|
|
56
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
57
|
-
frontend to be able to revalidate pages manually.
|
|
58
|
-
|
|
59
|
-
* Updated dependencies
|
|
60
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
61
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
62
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
63
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
64
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
65
|
-
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
47
|
+
- [#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.
|
|
48
|
+
|
|
49
|
+
* [#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.
|
|
50
|
+
|
|
51
|
+
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.
|
|
52
|
+
|
|
53
|
+
* 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)]:
|
|
66
54
|
- @graphcommerce/magento-cart@4.1.1
|
|
67
55
|
- @graphcommerce/next-ui@4.1.1
|
|
68
56
|
- @graphcommerce/react-hook-form@3.0.2
|
|
@@ -74,11 +62,8 @@
|
|
|
74
62
|
|
|
75
63
|
### Patch Changes
|
|
76
64
|
|
|
77
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
78
|
-
|
|
79
|
-
so that the packages link to back to the website and repository
|
|
80
|
-
- Updated dependencies
|
|
81
|
-
[[`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)]:
|
|
82
67
|
- @graphcommerce/graphql@3.0.1
|
|
83
68
|
- @graphcommerce/image@3.0.1
|
|
84
69
|
- @graphcommerce/magento-cart@4.0.1
|
|
@@ -90,14 +75,11 @@
|
|
|
90
75
|
|
|
91
76
|
### Major Changes
|
|
92
77
|
|
|
93
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
94
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
95
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
78
|
+
- [#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
|
|
96
79
|
|
|
97
80
|
### Patch Changes
|
|
98
81
|
|
|
99
|
-
- Updated dependencies
|
|
100
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
82
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
101
83
|
- @graphcommerce/graphql@3.0.0
|
|
102
84
|
- @graphcommerce/image@3.0.0
|
|
103
85
|
- @graphcommerce/magento-cart@4.0.0
|
|
@@ -105,69 +87,58 @@
|
|
|
105
87
|
- @graphcommerce/next-ui@4.0.0
|
|
106
88
|
- @graphcommerce/react-hook-form@3.0.0
|
|
107
89
|
|
|
108
|
-
All notable changes to this project will be documented in this file. See
|
|
109
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
90
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
110
91
|
|
|
111
92
|
# [2.109.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.108.4...@graphcommerce/magento-cart-coupon@2.109.0) (2021-12-01)
|
|
112
93
|
|
|
113
94
|
### Bug Fixes
|
|
114
95
|
|
|
115
|
-
- borderRadius
|
|
116
|
-
([ea38c8a](https://github.com/ho-nl/m2-pwa/commit/ea38c8a0d55e3cb8d975082952ad174721fab888))
|
|
96
|
+
- borderRadius ([ea38c8a](https://github.com/ho-nl/m2-pwa/commit/ea38c8a0d55e3cb8d975082952ad174721fab888))
|
|
117
97
|
|
|
118
98
|
### Features
|
|
119
99
|
|
|
120
|
-
- borderRadius based on theme.shape.borderRadius
|
|
121
|
-
([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
|
|
100
|
+
- borderRadius based on theme.shape.borderRadius ([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
|
|
122
101
|
|
|
123
102
|
# [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.107.22...@graphcommerce/magento-cart-coupon@2.108.0) (2021-11-12)
|
|
124
103
|
|
|
125
104
|
### Bug Fixes
|
|
126
105
|
|
|
127
|
-
- even more translations
|
|
128
|
-
([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
|
|
106
|
+
- even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
|
|
129
107
|
|
|
130
108
|
### Features
|
|
131
109
|
|
|
132
|
-
- added tons of translations
|
|
133
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
110
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
134
111
|
|
|
135
112
|
## [2.107.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.107.0...@graphcommerce/magento-cart-coupon@2.107.1) (2021-11-02)
|
|
136
113
|
|
|
137
114
|
### Bug Fixes
|
|
138
115
|
|
|
139
|
-
- RemoveCoupon Button and fix pill-link style to match buttons
|
|
140
|
-
([6838812](https://github.com/ho-nl/m2-pwa/commit/68388123773fb4f79a3e4b1beb7ecca601d7748e))
|
|
116
|
+
- RemoveCoupon Button and fix pill-link style to match buttons ([6838812](https://github.com/ho-nl/m2-pwa/commit/68388123773fb4f79a3e4b1beb7ecca601d7748e))
|
|
141
117
|
|
|
142
118
|
# [2.107.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.106.8...@graphcommerce/magento-cart-coupon@2.107.0) (2021-11-02)
|
|
143
119
|
|
|
144
120
|
### Features
|
|
145
121
|
|
|
146
|
-
- darkTheme
|
|
147
|
-
([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
|
|
122
|
+
- darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
|
|
148
123
|
|
|
149
124
|
## [2.106.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.106.3...@graphcommerce/magento-cart-coupon@2.106.4) (2021-10-28)
|
|
150
125
|
|
|
151
126
|
### Bug Fixes
|
|
152
127
|
|
|
153
|
-
- External SVG's can't have alt tags
|
|
154
|
-
([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
|
|
128
|
+
- External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
|
|
155
129
|
|
|
156
130
|
## [2.106.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.106.2...@graphcommerce/magento-cart-coupon@2.106.3) (2021-10-28)
|
|
157
131
|
|
|
158
132
|
### Bug Fixes
|
|
159
133
|
|
|
160
|
-
- bigger apply coupon button
|
|
161
|
-
|
|
162
|
-
- update SvgImage to SvgImageSimple
|
|
163
|
-
([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
|
|
134
|
+
- bigger apply coupon button ([700d8ee](https://github.com/ho-nl/m2-pwa/commit/700d8ee2daedbcdffa63e8e14c9d837feeb29cbc))
|
|
135
|
+
- update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
|
|
164
136
|
|
|
165
137
|
# [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.105.35...@graphcommerce/magento-cart-coupon@2.106.0) (2021-10-27)
|
|
166
138
|
|
|
167
139
|
### Features
|
|
168
140
|
|
|
169
|
-
- **nextjs:** upgraded to nextjs 12
|
|
170
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
141
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
171
142
|
|
|
172
143
|
## [2.105.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.105.0...@graphcommerce/magento-cart-coupon@2.105.1) (2021-09-27)
|
|
173
144
|
|
|
@@ -177,123 +148,90 @@ All notable changes to this project will be documented in this file. See
|
|
|
177
148
|
|
|
178
149
|
### Bug Fixes
|
|
179
150
|
|
|
180
|
-
- coupon animations, spacing, rippl;ie
|
|
181
|
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
|
|
186
|
-
- implement next-ui barrel imports
|
|
187
|
-
([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
|
188
|
-
- remove coupon form style was too large
|
|
189
|
-
([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
190
|
-
- rename NextButton to Button, change imports
|
|
191
|
-
([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
|
|
151
|
+
- coupon animations, spacing, rippl;ie ([cef3a08](https://github.com/ho-nl/m2-pwa/commit/cef3a08d0545947518873c5257c59fc1b98f1a21))
|
|
152
|
+
- coupon stylign ([796bbb2](https://github.com/ho-nl/m2-pwa/commit/796bbb2ad5eda6dc9c5aa37034586705b24a0023))
|
|
153
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
154
|
+
- implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
|
155
|
+
- remove coupon form style was too large ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
156
|
+
- rename NextButton to Button, change imports ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
|
|
192
157
|
|
|
193
158
|
### Features
|
|
194
159
|
|
|
195
|
-
- **cart:** when a cart is not active anymore show a clear cart button
|
|
196
|
-
|
|
197
|
-
-
|
|
198
|
-
|
|
199
|
-
- **
|
|
200
|
-
|
|
201
|
-
- **
|
|
202
|
-
|
|
203
|
-
- **
|
|
204
|
-
|
|
205
|
-
-
|
|
206
|
-
([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
207
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
208
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
209
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
210
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
211
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
212
|
-
- **theme:** restructured fonts and applied to home and category page
|
|
213
|
-
([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
214
|
-
- upgraded to nextjs 11
|
|
215
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
216
|
-
- useFormMutationCart and simpler imports
|
|
217
|
-
([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
160
|
+
- **cart:** when a cart is not active anymore show a clear cart button ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
|
|
161
|
+
- coupon form on payment page ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
|
|
162
|
+
- **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
|
163
|
+
- **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
|
164
|
+
- **magento-customer:** introduced ApolloCustomerErrorAlert ([e5406d9](https://github.com/ho-nl/m2-pwa/commit/e5406d91f914de290c5f097955e312312e567972))
|
|
165
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
166
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
167
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
168
|
+
- **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
169
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
170
|
+
- useFormMutationCart and simpler imports ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
218
171
|
|
|
219
172
|
### Reverts
|
|
220
173
|
|
|
221
|
-
- Revert "chore: upgrade @apollo/client"
|
|
222
|
-
|
|
223
|
-
- Revert "style: coupon
|
|
224
|
-
([3ac7182](https://github.com/ho-nl/m2-pwa/commit/3ac7182eb6bb7c86ccba6464d1f206dc30a5a1da))
|
|
225
|
-
- Revert "style: coupon accordion icon/button alignment"
|
|
226
|
-
([165f91c](https://github.com/ho-nl/m2-pwa/commit/165f91c8f0e587ea26bcf441f48a6a13df74891c))
|
|
174
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
175
|
+
- Revert "style: coupon input conform design" ([3ac7182](https://github.com/ho-nl/m2-pwa/commit/3ac7182eb6bb7c86ccba6464d1f206dc30a5a1da))
|
|
176
|
+
- Revert "style: coupon accordion icon/button alignment" ([165f91c](https://github.com/ho-nl/m2-pwa/commit/165f91c8f0e587ea26bcf441f48a6a13df74891c))
|
|
227
177
|
|
|
228
178
|
# Change Log
|
|
229
179
|
|
|
230
|
-
All notable changes to this project will be documented in this file. See
|
|
231
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
180
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
232
181
|
|
|
233
182
|
# [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.103.2...@graphcommerce/magento-cart-coupon@2.104.0) (2021-08-13)
|
|
234
183
|
|
|
235
184
|
### Features
|
|
236
185
|
|
|
237
|
-
- coupon form on payment page
|
|
238
|
-
([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
|
|
186
|
+
- coupon form on payment page ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
|
|
239
187
|
|
|
240
188
|
# [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.102.3...@graphcommerce/magento-cart-coupon@2.103.0) (2021-08-12)
|
|
241
189
|
|
|
242
190
|
### Bug Fixes
|
|
243
191
|
|
|
244
|
-
- remove coupon form style was too large
|
|
245
|
-
([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
192
|
+
- remove coupon form style was too large ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
246
193
|
|
|
247
194
|
### Features
|
|
248
195
|
|
|
249
|
-
- upgraded to nextjs 11
|
|
250
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
196
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
251
197
|
|
|
252
198
|
## [2.102.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.102.1...@graphcommerce/magento-cart-coupon@2.102.2) (2021-08-09)
|
|
253
199
|
|
|
254
200
|
### Reverts
|
|
255
201
|
|
|
256
|
-
- Revert "chore: upgrade @apollo/client"
|
|
257
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
202
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
258
203
|
|
|
259
204
|
# [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.101.6...@graphcommerce/magento-cart-coupon@2.102.0) (2021-08-06)
|
|
260
205
|
|
|
261
206
|
### Features
|
|
262
207
|
|
|
263
|
-
- **theme:** restructured fonts and applied to home and category page
|
|
264
|
-
([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
208
|
+
- **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
265
209
|
|
|
266
210
|
## [2.101.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.101.5...@graphcommerce/magento-cart-coupon@2.101.6) (2021-08-04)
|
|
267
211
|
|
|
268
212
|
### Bug Fixes
|
|
269
213
|
|
|
270
|
-
- coupon stylign
|
|
271
|
-
([796bbb2](https://github.com/ho-nl/m2-pwa/commit/796bbb2ad5eda6dc9c5aa37034586705b24a0023))
|
|
214
|
+
- coupon stylign ([796bbb2](https://github.com/ho-nl/m2-pwa/commit/796bbb2ad5eda6dc9c5aa37034586705b24a0023))
|
|
272
215
|
|
|
273
216
|
## [2.101.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.101.4...@graphcommerce/magento-cart-coupon@2.101.5) (2021-08-03)
|
|
274
217
|
|
|
275
218
|
### Bug Fixes
|
|
276
219
|
|
|
277
|
-
- coupon animations, spacing, rippl;ie
|
|
278
|
-
([cef3a08](https://github.com/ho-nl/m2-pwa/commit/cef3a08d0545947518873c5257c59fc1b98f1a21))
|
|
220
|
+
- coupon animations, spacing, rippl;ie ([cef3a08](https://github.com/ho-nl/m2-pwa/commit/cef3a08d0545947518873c5257c59fc1b98f1a21))
|
|
279
221
|
|
|
280
222
|
### Reverts
|
|
281
223
|
|
|
282
|
-
- Revert "style: coupon input conform design"
|
|
283
|
-
|
|
284
|
-
- Revert "style: coupon accordion icon/button alignment"
|
|
285
|
-
([165f91c](https://github.com/ho-nl/m2-pwa/commit/165f91c8f0e587ea26bcf441f48a6a13df74891c))
|
|
224
|
+
- Revert "style: coupon input conform design" ([3ac7182](https://github.com/ho-nl/m2-pwa/commit/3ac7182eb6bb7c86ccba6464d1f206dc30a5a1da))
|
|
225
|
+
- Revert "style: coupon accordion icon/button alignment" ([165f91c](https://github.com/ho-nl/m2-pwa/commit/165f91c8f0e587ea26bcf441f48a6a13df74891c))
|
|
286
226
|
|
|
287
227
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.100.19...@graphcommerce/magento-cart-coupon@2.101.0) (2021-07-26)
|
|
288
228
|
|
|
289
229
|
### Features
|
|
290
230
|
|
|
291
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
292
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
231
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
293
232
|
|
|
294
233
|
## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.100.10...@graphcommerce/magento-cart-coupon@2.100.11) (2021-07-20)
|
|
295
234
|
|
|
296
235
|
### Bug Fixes
|
|
297
236
|
|
|
298
|
-
- ignore md files from triggering version updates
|
|
299
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
237
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
@@ -11,8 +11,8 @@ import { Trans } from '@lingui/macro'
|
|
|
11
11
|
import { Box, Button, styled, SxProps, Theme, Typography } from '@mui/material'
|
|
12
12
|
import { AnimatePresence, m } from 'framer-motion'
|
|
13
13
|
import { useState } from 'react'
|
|
14
|
-
import ApplyCouponForm from '../ApplyCouponForm/ApplyCouponForm'
|
|
15
|
-
import RemoveCouponForm from '../RemoveCouponForm/RemoveCouponForm'
|
|
14
|
+
import { ApplyCouponForm } from '../ApplyCouponForm/ApplyCouponForm'
|
|
15
|
+
import { RemoveCouponForm } from '../RemoveCouponForm/RemoveCouponForm'
|
|
16
16
|
import { GetCouponDocument } from './GetCoupon.gql'
|
|
17
17
|
|
|
18
18
|
export type CouponAccordionProps = { sx?: SxProps<Theme> }
|
|
@@ -24,7 +24,7 @@ const { withState } = extendableComponent<OwnerState, typeof name, typeof parts>
|
|
|
24
24
|
|
|
25
25
|
const MotionDiv = styled(m.div)({})
|
|
26
26
|
|
|
27
|
-
export
|
|
27
|
+
export function CouponAccordion(props: CouponAccordionProps) {
|
|
28
28
|
const { sx = [] } = props
|
|
29
29
|
const { data } = useCartQuery(GetCouponDocument)
|
|
30
30
|
const [open, setOpen] = useState<boolean>(false)
|
|
@@ -10,7 +10,7 @@ const name = 'RemoveCouponForm' as const
|
|
|
10
10
|
const parts = ['root', 'button'] as const
|
|
11
11
|
const { classes } = extendableComponent(name, parts)
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export function RemoveCouponForm(props: RemoveCouponFormProps) {
|
|
14
14
|
const { applied_coupons, sx } = props
|
|
15
15
|
const form = useFormGqlMutationCart(RemoveCouponFormDocument)
|
|
16
16
|
|
package/index.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export * from './Api/Coupon.gql'
|
|
2
|
-
|
|
3
2
|
export * from './ApplyCouponForm/ApplyCouponForm'
|
|
4
|
-
export { default as ApplyCouponForm } from './ApplyCouponForm/ApplyCouponForm'
|
|
5
|
-
|
|
6
3
|
export * from './CouponAccordion/CouponAccordion'
|
|
7
|
-
export { default as CouponAccordion } from './CouponAccordion/CouponAccordion'
|
|
8
|
-
|
|
9
4
|
export * from './RemoveCouponForm/RemoveCouponForm'
|
|
10
|
-
export { default as RemoveCouponForm } from './RemoveCouponForm/RemoveCouponForm'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-coupon",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
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.
|
|
18
|
+
"@playwright/test": "^1.19.2"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "^3.0.
|
|
22
|
-
"@graphcommerce/image": "^3.1.
|
|
23
|
-
"@graphcommerce/magento-cart": "^4.1.
|
|
24
|
-
"@graphcommerce/magento-store": "^4.
|
|
25
|
-
"@graphcommerce/next-ui": "^4.2.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
21
|
+
"@graphcommerce/graphql": "^3.0.4",
|
|
22
|
+
"@graphcommerce/image": "^3.1.1",
|
|
23
|
+
"@graphcommerce/magento-cart": "^4.1.4",
|
|
24
|
+
"@graphcommerce/magento-store": "^4.1.2",
|
|
25
|
+
"@graphcommerce/next-ui": "^4.2.4",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^3.0.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@lingui/macro": "^3.13.2",
|