@graphcommerce/magento-cart-payment-method 2.110.20 → 2.111.0
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
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.111.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.110.20...@graphcommerce/magento-cart-payment-method@2.111.0) (2021-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.110.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.110.6...@graphcommerce/magento-cart-payment-method@2.110.7) (2021-11-04)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ApolloCartErrorAlert
|
|
2
|
-
import {
|
|
1
|
+
import { ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
|
|
2
|
+
import { Button, ButtonProps } from '@graphcommerce/next-ui'
|
|
3
3
|
import { ComposedSubmit, ComposedSubmitRenderComponentProps } from '@graphcommerce/react-hook-form'
|
|
4
|
-
import { Dialog } from '@material-ui/core'
|
|
5
4
|
import React from 'react'
|
|
6
5
|
import { usePaymentMethodContext } from '../PaymentMethodContext/PaymentMethodContext'
|
|
7
6
|
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
UseFormComposeOptions,
|
|
16
16
|
useFormPersist,
|
|
17
17
|
} from '@graphcommerce/react-hook-form'
|
|
18
|
+
import { t } from '@lingui/macro'
|
|
18
19
|
import { FormControl, FormHelperText, makeStyles, Theme } from '@material-ui/core'
|
|
19
20
|
import clsx from 'clsx'
|
|
20
21
|
import { m } from 'framer-motion'
|
|
@@ -152,7 +153,7 @@ export default function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
|
|
|
152
153
|
defaultValue=''
|
|
153
154
|
control={control}
|
|
154
155
|
name='paymentMethod'
|
|
155
|
-
rules={{ required:
|
|
156
|
+
rules={{ required: t`Please select a payment method` }}
|
|
156
157
|
render={({ field: { onChange, value, name, onBlur } }) => (
|
|
157
158
|
<Scroller className={classes.scrollerRoot} hideScrollbar tabIndex={0}>
|
|
158
159
|
{methods?.map((pm) => {
|
|
@@ -160,7 +161,7 @@ export default function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
|
|
|
160
161
|
return (
|
|
161
162
|
<ToggleButton
|
|
162
163
|
name={name}
|
|
163
|
-
aria-label={
|
|
164
|
+
aria-label={pm.title}
|
|
164
165
|
key={buttonValue}
|
|
165
166
|
value={buttonValue}
|
|
166
167
|
color='secondary'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart-payment-method",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.111.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "14.x"
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
20
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
20
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.5",
|
|
21
21
|
"@graphcommerce/prettier-config-pwa": "^3.0.4",
|
|
22
22
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
23
23
|
"@playwright/test": "^1.16.2"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@apollo/client": "^3.4.16",
|
|
27
|
-
"@graphcommerce/framer-scroller": "^1.0.
|
|
28
|
-
"@graphcommerce/graphql": "^2.105.
|
|
29
|
-
"@graphcommerce/image": "^2.105.
|
|
30
|
-
"@graphcommerce/magento-cart": "^3.
|
|
31
|
-
"@graphcommerce/magento-store": "^3.
|
|
32
|
-
"@graphcommerce/next-ui": "^3.
|
|
33
|
-
"@graphcommerce/react-hook-form": "^2.
|
|
34
|
-
"@
|
|
27
|
+
"@graphcommerce/framer-scroller": "^1.0.4",
|
|
28
|
+
"@graphcommerce/graphql": "^2.105.5",
|
|
29
|
+
"@graphcommerce/image": "^2.105.4",
|
|
30
|
+
"@graphcommerce/magento-cart": "^3.7.0",
|
|
31
|
+
"@graphcommerce/magento-store": "^3.3.0",
|
|
32
|
+
"@graphcommerce/next-ui": "^3.17.0",
|
|
33
|
+
"@graphcommerce/react-hook-form": "^2.104.0",
|
|
34
|
+
"@lingui/macro": "^3.12.1",
|
|
35
35
|
"@material-ui/core": "^4.12.3",
|
|
36
36
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
37
37
|
"clsx": "^1.1.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"react-dom": "^17.0.1",
|
|
42
42
|
"type-fest": "^2.5.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6a39908a131938d9c3365cc937b92c1f1f8b33c6"
|
|
45
45
|
}
|