@graphcommerce/magento-cart-coupon 3.0.2 → 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 default function ApplyCouponForm(props: ApplyCouponFormProps) {
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,33 +1,56 @@
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
+
19
+ ## 3.0.4
20
+
21
+ ### Patch Changes
22
+
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
24
+
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)]:
26
+ - @graphcommerce/magento-cart@4.1.3
27
+ - @graphcommerce/next-ui@4.2.0
28
+
29
+ ## 3.0.3
30
+
31
+ ### Patch Changes
32
+
33
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
34
+
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)]:
36
+ - @graphcommerce/graphql@3.0.3
37
+ - @graphcommerce/image@3.1.0
38
+ - @graphcommerce/magento-cart@4.1.2
39
+ - @graphcommerce/magento-store@4.0.3
40
+ - @graphcommerce/next-ui@4.1.2
41
+ - @graphcommerce/react-hook-form@3.0.3
42
+
3
43
  ## 3.0.2
4
44
 
5
45
  ### Patch Changes
6
46
 
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)]:
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)]:
31
54
  - @graphcommerce/magento-cart@4.1.1
32
55
  - @graphcommerce/next-ui@4.1.1
33
56
  - @graphcommerce/react-hook-form@3.0.2
@@ -39,11 +62,8 @@
39
62
 
40
63
  ### Patch Changes
41
64
 
42
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
43
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
44
- so that the packages link to back to the website and repository
45
- - Updated dependencies
46
- [[`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)]:
47
67
  - @graphcommerce/graphql@3.0.1
48
68
  - @graphcommerce/image@3.0.1
49
69
  - @graphcommerce/magento-cart@4.0.1
@@ -55,14 +75,11 @@
55
75
 
56
76
  ### Major Changes
57
77
 
58
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
59
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
60
- 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
61
79
 
62
80
  ### Patch Changes
63
81
 
64
- - Updated dependencies
65
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
82
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
66
83
  - @graphcommerce/graphql@3.0.0
67
84
  - @graphcommerce/image@3.0.0
68
85
  - @graphcommerce/magento-cart@4.0.0
@@ -70,69 +87,58 @@
70
87
  - @graphcommerce/next-ui@4.0.0
71
88
  - @graphcommerce/react-hook-form@3.0.0
72
89
 
73
- All notable changes to this project will be documented in this file. See
74
- [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.
75
91
 
76
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)
77
93
 
78
94
  ### Bug Fixes
79
95
 
80
- - borderRadius
81
- ([ea38c8a](https://github.com/ho-nl/m2-pwa/commit/ea38c8a0d55e3cb8d975082952ad174721fab888))
96
+ - borderRadius ([ea38c8a](https://github.com/ho-nl/m2-pwa/commit/ea38c8a0d55e3cb8d975082952ad174721fab888))
82
97
 
83
98
  ### Features
84
99
 
85
- - borderRadius based on theme.shape.borderRadius
86
- ([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))
87
101
 
88
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)
89
103
 
90
104
  ### Bug Fixes
91
105
 
92
- - even more translations
93
- ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
106
+ - even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
94
107
 
95
108
  ### Features
96
109
 
97
- - added tons of translations
98
- ([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))
99
111
 
100
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)
101
113
 
102
114
  ### Bug Fixes
103
115
 
104
- - RemoveCoupon Button and fix pill-link style to match buttons
105
- ([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))
106
117
 
107
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)
108
119
 
109
120
  ### Features
110
121
 
111
- - darkTheme
112
- ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
122
+ - darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
113
123
 
114
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)
115
125
 
116
126
  ### Bug Fixes
117
127
 
118
- - External SVG's can't have alt tags
119
- ([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))
120
129
 
121
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)
122
131
 
123
132
  ### Bug Fixes
124
133
 
125
- - bigger apply coupon button
126
- ([700d8ee](https://github.com/ho-nl/m2-pwa/commit/700d8ee2daedbcdffa63e8e14c9d837feeb29cbc))
127
- - update SvgImage to SvgImageSimple
128
- ([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))
129
136
 
130
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)
131
138
 
132
139
  ### Features
133
140
 
134
- - **nextjs:** upgraded to nextjs 12
135
- ([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))
136
142
 
137
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)
138
144
 
@@ -142,123 +148,90 @@ All notable changes to this project will be documented in this file. See
142
148
 
143
149
  ### Bug Fixes
144
150
 
145
- - coupon animations, spacing, rippl;ie
146
- ([cef3a08](https://github.com/ho-nl/m2-pwa/commit/cef3a08d0545947518873c5257c59fc1b98f1a21))
147
- - coupon stylign
148
- ([796bbb2](https://github.com/ho-nl/m2-pwa/commit/796bbb2ad5eda6dc9c5aa37034586705b24a0023))
149
- - ignore md files from triggering version updates
150
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
151
- - implement next-ui barrel imports
152
- ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
153
- - remove coupon form style was too large
154
- ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
155
- - rename NextButton to Button, change imports
156
- ([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))
157
157
 
158
158
  ### Features
159
159
 
160
- - **cart:** when a cart is not active anymore show a clear cart button
161
- ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
162
- - coupon form on payment page
163
- ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
164
- - **graphql:** introduced new graphql package that holds all generated files
165
- ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
166
- - **image:** introduced completely rewritten Image component
167
- ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
168
- - **magento-customer:** introduced ApolloCustomerErrorAlert
169
- ([e5406d9](https://github.com/ho-nl/m2-pwa/commit/e5406d91f914de290c5f097955e312312e567972))
170
- - next.js 11
171
- ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
172
- - **playwright:** added new playwright package to enable browser testing
173
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
174
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
175
- [@reachdigital](https://github.com/reachdigital)
176
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
177
- - **theme:** restructured fonts and applied to home and category page
178
- ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
179
- - upgraded to nextjs 11
180
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
181
- - useFormMutationCart and simpler imports
182
- ([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))
183
171
 
184
172
  ### Reverts
185
173
 
186
- - Revert "chore: upgrade @apollo/client"
187
- ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
188
- - Revert "style: coupon input conform design"
189
- ([3ac7182](https://github.com/ho-nl/m2-pwa/commit/3ac7182eb6bb7c86ccba6464d1f206dc30a5a1da))
190
- - Revert "style: coupon accordion icon/button alignment"
191
- ([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))
192
177
 
193
178
  # Change Log
194
179
 
195
- All notable changes to this project will be documented in this file. See
196
- [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.
197
181
 
198
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)
199
183
 
200
184
  ### Features
201
185
 
202
- - coupon form on payment page
203
- ([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))
204
187
 
205
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)
206
189
 
207
190
  ### Bug Fixes
208
191
 
209
- - remove coupon form style was too large
210
- ([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))
211
193
 
212
194
  ### Features
213
195
 
214
- - upgraded to nextjs 11
215
- ([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))
216
197
 
217
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)
218
199
 
219
200
  ### Reverts
220
201
 
221
- - Revert "chore: upgrade @apollo/client"
222
- ([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))
223
203
 
224
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)
225
205
 
226
206
  ### Features
227
207
 
228
- - **theme:** restructured fonts and applied to home and category page
229
- ([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))
230
209
 
231
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)
232
211
 
233
212
  ### Bug Fixes
234
213
 
235
- - coupon stylign
236
- ([796bbb2](https://github.com/ho-nl/m2-pwa/commit/796bbb2ad5eda6dc9c5aa37034586705b24a0023))
214
+ - coupon stylign ([796bbb2](https://github.com/ho-nl/m2-pwa/commit/796bbb2ad5eda6dc9c5aa37034586705b24a0023))
237
215
 
238
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)
239
217
 
240
218
  ### Bug Fixes
241
219
 
242
- - coupon animations, spacing, rippl;ie
243
- ([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))
244
221
 
245
222
  ### Reverts
246
223
 
247
- - Revert "style: coupon input conform design"
248
- ([3ac7182](https://github.com/ho-nl/m2-pwa/commit/3ac7182eb6bb7c86ccba6464d1f206dc30a5a1da))
249
- - Revert "style: coupon accordion icon/button alignment"
250
- ([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))
251
226
 
252
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)
253
228
 
254
229
  ### Features
255
230
 
256
- - **playwright:** added new playwright package to enable browser testing
257
- ([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))
258
232
 
259
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)
260
234
 
261
235
  ### Bug Fixes
262
236
 
263
- - ignore md files from triggering version updates
264
- ([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))
@@ -4,15 +4,15 @@ import {
4
4
  iconChevronDown,
5
5
  iconChevronUp,
6
6
  responsiveVal,
7
- SvgIcon,
7
+ IconSvg,
8
8
  extendableComponent,
9
9
  } from '@graphcommerce/next-ui'
10
10
  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 default function CouponAccordion(props: CouponAccordionProps) {
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)
@@ -96,10 +96,10 @@ export default function CouponAccordion(props: CouponAccordionProps) {
96
96
  endIcon={
97
97
  <>
98
98
  {!coupon && open && (
99
- <SvgIcon src={iconChevronUp} size='large' sx={{ display: 'inherit' }} />
99
+ <IconSvg src={iconChevronUp} size='large' sx={{ display: 'inherit' }} />
100
100
  )}
101
101
  {!coupon && !open && (
102
- <SvgIcon src={iconChevronDown} size='large' sx={{ display: 'inherit' }} />
102
+ <IconSvg src={iconChevronDown} size='large' sx={{ display: 'inherit' }} />
103
103
  )}
104
104
  </>
105
105
  }
@@ -1,5 +1,5 @@
1
1
  import { useFormGqlMutationCart, ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
2
- import { SvgIcon, iconCancelAlt, extendableComponent } from '@graphcommerce/next-ui'
2
+ import { IconSvg, iconCancelAlt, extendableComponent } from '@graphcommerce/next-ui'
3
3
  import { lighten, Button, Box, SxProps, Theme } from '@mui/material'
4
4
  import { CouponFragment } from '../Api/Coupon.gql'
5
5
  import { RemoveCouponFormDocument } from './RemoveCouponForm.gql'
@@ -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 default function RemoveCouponForm(props: RemoveCouponFormProps) {
13
+ export function RemoveCouponForm(props: RemoveCouponFormProps) {
14
14
  const { applied_coupons, sx } = props
15
15
  const form = useFormGqlMutationCart(RemoveCouponFormDocument)
16
16
 
@@ -24,7 +24,7 @@ export default function RemoveCouponForm(props: RemoveCouponFormProps) {
24
24
  variant='text'
25
25
  color='secondary'
26
26
  className={classes.button}
27
- endIcon={<SvgIcon src={iconCancelAlt} />}
27
+ endIcon={<IconSvg src={iconCancelAlt} />}
28
28
  sx={(theme) => ({
29
29
  fontWeight: 600,
30
30
  background: lighten(theme.palette.secondary.light, theme.palette.action.hoverOpacity),
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.2",
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.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.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.2",
22
- "@graphcommerce/image": "^3.0.2",
23
- "@graphcommerce/magento-cart": "^4.1.1",
24
- "@graphcommerce/magento-store": "^4.0.2",
25
- "@graphcommerce/next-ui": "^4.1.1",
26
- "@graphcommerce/react-hook-form": "^3.0.2"
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",