@graphcommerce/magento-payment-braintree 3.0.3 → 3.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,21 +1,31 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.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/image@3.1.1
15
+ - @graphcommerce/magento-cart@4.1.4
16
+ - @graphcommerce/magento-cart-payment-method@3.0.5
17
+ - @graphcommerce/magento-store@4.1.2
18
+ - @graphcommerce/react-hook-form@3.0.4
19
+
3
20
  ## 3.0.3
4
21
 
5
22
  ### Patch Changes
6
23
 
7
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
8
- Thanks [@paales](https://github.com/paales)! - made packages public
24
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
9
25
 
10
- * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
11
- [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
12
- Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
26
+ * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
13
27
 
14
- * Updated dependencies
15
- [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
16
- [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
17
- [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
18
- [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
28
+ * 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)]:
19
29
  - @graphcommerce/graphql@3.0.3
20
30
  - @graphcommerce/image@3.1.0
21
31
  - @graphcommerce/magento-cart@4.1.2
@@ -28,30 +38,13 @@
28
38
 
29
39
  ### Patch Changes
30
40
 
31
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
32
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
33
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
34
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
35
- duplicate packages in the node_modules folders.
36
-
37
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
38
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
39
- Thanks [@paales](https://github.com/paales)! - Upgraded to
40
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
41
- implementing
42
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
43
- soon.
44
-
45
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
46
- frontend to be able to revalidate pages manually.
47
-
48
- * Updated dependencies
49
- [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
50
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
51
- [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
52
- [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
53
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
54
- [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
41
+ - [#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.
42
+
43
+ * [#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.
44
+
45
+ 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.
46
+
47
+ * 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)]:
55
48
  - @graphcommerce/magento-cart@4.1.1
56
49
  - @graphcommerce/magento-cart-payment-method@3.0.2
57
50
  - @graphcommerce/next-ui@4.1.1
@@ -64,11 +57,8 @@
64
57
 
65
58
  ### Patch Changes
66
59
 
67
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
68
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
69
- so that the packages link to back to the website and repository
70
- - Updated dependencies
71
- [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
60
+ - [`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
61
+ - Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
72
62
  - @graphcommerce/graphql@3.0.1
73
63
  - @graphcommerce/image@3.0.1
74
64
  - @graphcommerce/magento-cart@4.0.1
@@ -81,14 +71,11 @@
81
71
 
82
72
  ### Major Changes
83
73
 
84
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
85
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
86
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
74
+ - [#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
87
75
 
88
76
  ### Patch Changes
89
77
 
90
- - Updated dependencies
91
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
78
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
92
79
  - @graphcommerce/graphql@3.0.0
93
80
  - @graphcommerce/image@3.0.0
94
81
  - @graphcommerce/magento-cart@4.0.0
@@ -97,29 +84,25 @@
97
84
  - @graphcommerce/next-ui@4.0.0
98
85
  - @graphcommerce/react-hook-form@3.0.0
99
86
 
100
- All notable changes to this project will be documented in this file. See
101
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
87
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
102
88
 
103
89
  # [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.105.32...@graphcommerce/magento-payment-braintree@2.106.0) (2021-11-12)
104
90
 
105
91
  ### Features
106
92
 
107
- - added tons of translations
108
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
93
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
109
94
 
110
95
  # [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.104.40...@graphcommerce/magento-payment-braintree@2.105.0) (2021-10-27)
111
96
 
112
97
  ### Features
113
98
 
114
- - **nextjs:** upgraded to nextjs 12
115
- ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
99
+ - **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
116
100
 
117
101
  ## [2.104.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.104.6...@graphcommerce/magento-payment-braintree@2.104.7) (2021-09-30)
118
102
 
119
103
  ### Bug Fixes
120
104
 
121
- - braintree typescript warning
122
- ([8bb6a8a](https://github.com/ho-nl/m2-pwa/commit/8bb6a8a7bdd4d90cb1486d88263971143a571fa1))
105
+ - braintree typescript warning ([8bb6a8a](https://github.com/ho-nl/m2-pwa/commit/8bb6a8a7bdd4d90cb1486d88263971143a571fa1))
123
106
 
124
107
  ## [2.104.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.104.0...@graphcommerce/magento-payment-braintree@2.104.1) (2021-09-27)
125
108
 
@@ -129,115 +112,82 @@ All notable changes to this project will be documented in this file. See
129
112
 
130
113
  ### Bug Fixes
131
114
 
132
- - **braintree:** allow for proper initialization of braintree client libraries
133
- ([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
134
- - ignore md files from triggering version updates
135
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
136
- - implement next-ui barrel imports
137
- ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
138
- - paymentDone removed in favor of a more simple clearCart method
139
- ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
140
- - **playwright:** checkout button was renamed
141
- ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
142
- - rename NextButton to Button, change imports
143
- ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
115
+ - **braintree:** allow for proper initialization of braintree client libraries ([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
116
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
117
+ - implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
118
+ - paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
119
+ - **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
120
+ - rename NextButton to Button, change imports ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
144
121
 
145
122
  ### Features
146
123
 
147
- - ability to place order after the payment has completed
148
- ([8fd479a](https://github.com/ho-nl/m2-pwa/commit/8fd479aded46ec1ba61b5dc42eccf4aaedff6c0c))
149
- - added braintree libraries for checkout process
150
- ([970ae9a](https://github.com/ho-nl/m2-pwa/commit/970ae9a03510e6e6851ffb81758ab71daedc7096))
151
- - added PaymentModule API and persistent selection of form fields
152
- ([b67f735](https://github.com/ho-nl/m2-pwa/commit/b67f7358f62edd56a8232d625ecee56af350bfb8))
153
- - **braintree:** very basic implementation of credit card
154
- ([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
155
- - checkout/payment page added to checkout
156
- ([7e54cd6](https://github.com/ho-nl/m2-pwa/commit/7e54cd68685543ded27b285f15f6d9729b969a02))
157
- - created stacked-pages package
158
- ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
159
- - **graphql:** introduced new graphql package that holds all generated files
160
- ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
161
- - **image:** introduced completely rewritten Image component
162
- ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
163
- - implemented checkmo payment method
164
- ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
165
- - next.js 11
166
- ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
167
- - **payments:** make PaymentMethodContext injectable
168
- ([68c664a](https://github.com/ho-nl/m2-pwa/commit/68c664adb7eb6eb86d7a819213deb87152392347))
169
- - **playwright:** added new playwright package to enable browser testing
170
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
171
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
172
- [@reachdigital](https://github.com/reachdigital)
173
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
174
- - upgrade to node 14
175
- ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
176
- - upgraded to nextjs 11
177
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
178
- - working on payment implementation contract
179
- ([bc3a41a](https://github.com/ho-nl/m2-pwa/commit/bc3a41a3de25c197bd65bdb68640c82f83c4698a))
124
+ - ability to place order after the payment has completed ([8fd479a](https://github.com/ho-nl/m2-pwa/commit/8fd479aded46ec1ba61b5dc42eccf4aaedff6c0c))
125
+ - added braintree libraries for checkout process ([970ae9a](https://github.com/ho-nl/m2-pwa/commit/970ae9a03510e6e6851ffb81758ab71daedc7096))
126
+ - added PaymentModule API and persistent selection of form fields ([b67f735](https://github.com/ho-nl/m2-pwa/commit/b67f7358f62edd56a8232d625ecee56af350bfb8))
127
+ - **braintree:** very basic implementation of credit card ([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
128
+ - checkout/payment page added to checkout ([7e54cd6](https://github.com/ho-nl/m2-pwa/commit/7e54cd68685543ded27b285f15f6d9729b969a02))
129
+ - created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
130
+ - **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
131
+ - **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
132
+ - implemented checkmo payment method ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
133
+ - next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
134
+ - **payments:** make PaymentMethodContext injectable ([68c664a](https://github.com/ho-nl/m2-pwa/commit/68c664adb7eb6eb86d7a819213deb87152392347))
135
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
136
+ - 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))
137
+ - upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
138
+ - upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
139
+ - working on payment implementation contract ([bc3a41a](https://github.com/ho-nl/m2-pwa/commit/bc3a41a3de25c197bd65bdb68640c82f83c4698a))
180
140
 
181
141
  ### Reverts
182
142
 
183
- - Revert "chore: upgrade @apollo/client"
184
- ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
143
+ - Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
185
144
 
186
145
  # Change Log
187
146
 
188
- All notable changes to this project will be documented in this file. See
189
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
147
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
190
148
 
191
149
  ## [2.103.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.103.6...@graphcommerce/magento-payment-braintree@2.103.7) (2021-08-17)
192
150
 
193
151
  ### Bug Fixes
194
152
 
195
- - **playwright:** checkout button was renamed
196
- ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
153
+ - **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
197
154
 
198
155
  # [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.102.7...@graphcommerce/magento-payment-braintree@2.103.0) (2021-08-12)
199
156
 
200
157
  ### Features
201
158
 
202
- - upgraded to nextjs 11
203
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
159
+ - upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
204
160
 
205
161
  ## [2.102.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.102.5...@graphcommerce/magento-payment-braintree@2.102.6) (2021-08-09)
206
162
 
207
163
  ### Reverts
208
164
 
209
- - Revert "chore: upgrade @apollo/client"
210
- ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
165
+ - Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
211
166
 
212
167
  # [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.101.2...@graphcommerce/magento-payment-braintree@2.102.0) (2021-07-29)
213
168
 
214
169
  ### Bug Fixes
215
170
 
216
- - paymentDone removed in favor of a more simple clearCart method
217
- ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
171
+ - paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
218
172
 
219
173
  ### Features
220
174
 
221
- - **braintree:** very basic implementation of credit card
222
- ([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
175
+ - **braintree:** very basic implementation of credit card ([bb24f7e](https://github.com/ho-nl/m2-pwa/commit/bb24f7ec0577d018f0aff9b50de14f219e7504c5))
223
176
 
224
177
  ## [2.101.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.101.0...@graphcommerce/magento-payment-braintree@2.101.1) (2021-07-28)
225
178
 
226
179
  ### Bug Fixes
227
180
 
228
- - **braintree:** allow for proper initialization of braintree client libraries
229
- ([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
181
+ - **braintree:** allow for proper initialization of braintree client libraries ([af87d1c](https://github.com/ho-nl/m2-pwa/commit/af87d1ccde1378127b9ef76b197d3946a9c7ca92))
230
182
 
231
183
  # [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.100.19...@graphcommerce/magento-payment-braintree@2.101.0) (2021-07-26)
232
184
 
233
185
  ### Features
234
186
 
235
- - **playwright:** added new playwright package to enable browser testing
236
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
187
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
237
188
 
238
189
  ## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-braintree@2.100.10...@graphcommerce/magento-payment-braintree@2.100.11) (2021-07-20)
239
190
 
240
191
  ### Bug Fixes
241
192
 
242
- - ignore md files from triggering version updates
243
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
193
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
@@ -1,18 +1,19 @@
1
+ /* eslint-disable jsx-a11y/label-has-associated-control */
1
2
  import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
2
3
  import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
3
4
  import { useFormCompose } from '@graphcommerce/react-hook-form'
4
- import { BraintreeError } from 'braintree-web'
5
+ // import { BraintreeError } from 'braintree-web'
5
6
  import { BraintreePaymentMethodOptionsDocument } from '../../BraintreePaymentMethodOptions.gql'
6
7
  import { useBraintreeHostedFields } from '../../hooks/useBraintreeHostedFields'
7
8
 
8
- const errorTypes = ['CUSTOMER', 'MERCHANT', 'NETWORK', 'INTERNAL', 'UNKNOWN']
9
+ // const errorTypes = ['CUSTOMER', 'MERCHANT', 'NETWORK', 'INTERNAL', 'UNKNOWN']
9
10
 
10
- function isBraintreeError(e: any | BraintreeError): e is BraintreeError {
11
- return errorTypes.includes((e as BraintreeError).type)
12
- }
11
+ // function isBraintreeError(e: any | BraintreeError): e is BraintreeError {
12
+ // return errorTypes.includes((e as BraintreeError).type)
13
+ // }
13
14
 
14
15
  /** It sets the selected payment method on the cart. */
15
- function PaymentMethodOptions(props: PaymentOptionsProps) {
16
+ export function PaymentMethodOptions(props: PaymentOptionsProps) {
16
17
  const { code, step, Container } = props
17
18
  const hosted = useBraintreeHostedFields()
18
19
 
@@ -62,5 +63,3 @@ function PaymentMethodOptions(props: PaymentOptionsProps) {
62
63
  </Container>
63
64
  )
64
65
  }
65
-
66
- export default PaymentMethodOptions
@@ -2,7 +2,7 @@ import {
2
2
  PaymentMethodPlaceOrderNoop,
3
3
  PaymentModule,
4
4
  } from '@graphcommerce/magento-cart-payment-method'
5
- import PaymentMethodOptions from './PaymentMethodOptions'
5
+ import { PaymentMethodOptions } from './PaymentMethodOptions'
6
6
 
7
7
  export const braintree = {
8
8
  PaymentOptions: PaymentMethodOptions,
@@ -7,7 +7,7 @@ import { useBraintreeLocalPayment } from '../../hooks/useBraintreeLocalPayment'
7
7
  import { BraintreeLocalPaymentsCartDocument } from './BraintreeLocalPaymentsCart.gql'
8
8
 
9
9
  /** It sets the selected payment method on the cart. */
10
- function PaymentMethodOptions(props: PaymentOptionsProps) {
10
+ export function PaymentMethodOptions(props: PaymentOptionsProps) {
11
11
  const localPaymentPromise = useBraintreeLocalPayment()
12
12
 
13
13
  const { code, step, child } = props
@@ -49,6 +49,7 @@ function PaymentMethodOptions(props: PaymentOptionsProps) {
49
49
  },
50
50
  onPaymentStart: ({ paymentId }, next) => {
51
51
  // todo what should we do with the payment id?
52
+ // eslint-disable-next-line no-console
52
53
  console.log(paymentId)
53
54
  next()
54
55
  },
@@ -77,5 +78,3 @@ function PaymentMethodOptions(props: PaymentOptionsProps) {
77
78
  </form>
78
79
  )
79
80
  }
80
-
81
- export default PaymentMethodOptions
@@ -2,7 +2,7 @@ import {
2
2
  PaymentMethodPlaceOrderNoop,
3
3
  PaymentModule,
4
4
  } from '@graphcommerce/magento-cart-payment-method'
5
- import PaymentMethodOptions from './PaymentMethodOptions'
5
+ import { PaymentMethodOptions } from './PaymentMethodOptions'
6
6
  import { expandMethods } from './expandMethods'
7
7
 
8
8
  export const braintree_local_payment = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-payment-braintree",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.0.3",
5
+ "version": "3.0.4",
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/magento-cart-shipping-address": "^3.0.3",
17
- "@graphcommerce/magento-product": "^4.0.3",
18
- "@graphcommerce/magento-product-configurable": "^4.0.3",
19
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
+ "@graphcommerce/magento-cart-shipping-address": "^3.0.4",
17
+ "@graphcommerce/magento-product": "^4.0.6",
18
+ "@graphcommerce/magento-product-configurable": "^4.0.6",
19
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
20
20
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
21
- "@playwright/test": "^1.19.1",
22
- "@types/braintree-web": "^3.75.17"
21
+ "@playwright/test": "^1.19.2",
22
+ "@types/braintree-web": "^3.75.19"
23
23
  },
24
24
  "dependencies": {
25
- "@graphcommerce/graphql": "^3.0.3",
26
- "@graphcommerce/image": "^3.1.0",
27
- "@graphcommerce/magento-cart": "^4.1.2",
28
- "@graphcommerce/magento-cart-payment-method": "^3.0.3",
29
- "@graphcommerce/magento-store": "^4.0.3",
30
- "@graphcommerce/next-ui": "^4.1.2",
31
- "@graphcommerce/react-hook-form": "^3.0.3",
25
+ "@graphcommerce/graphql": "^3.0.4",
26
+ "@graphcommerce/image": "^3.1.1",
27
+ "@graphcommerce/magento-cart": "^4.1.4",
28
+ "@graphcommerce/magento-cart-payment-method": "^3.0.5",
29
+ "@graphcommerce/magento-store": "^4.1.2",
30
+ "@graphcommerce/next-ui": "^4.2.4",
31
+ "@graphcommerce/react-hook-form": "^3.0.4",
32
32
  "braintree-web": "^3.85.2",
33
33
  "type-fest": "^2.12.0"
34
34
  },