@graphcommerce/magento-cart-payment-method 2.110.18 → 2.111.1

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, ApolloCartErrorFullPage } from '@graphcommerce/magento-cart'
2
- import { ApolloErrorFullPage, Button, ButtonProps, FormRow } from '@graphcommerce/next-ui'
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: 'Please select a payment method' }}
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={`payment_method_${pm.code}___${pm.child}`}
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.110.18",
3
+ "version": "2.111.1",
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.4",
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.3",
28
- "@graphcommerce/graphql": "^2.105.4",
29
- "@graphcommerce/image": "^2.105.3",
30
- "@graphcommerce/magento-cart": "^3.6.4",
31
- "@graphcommerce/magento-store": "^3.2.19",
32
- "@graphcommerce/next-ui": "^3.15.2",
33
- "@graphcommerce/react-hook-form": "^2.103.1",
34
- "@graphql-typed-document-node/core": "^3.1.0",
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.1",
31
+ "@graphcommerce/magento-store": "^3.3.1",
32
+ "@graphcommerce/next-ui": "^3.17.1",
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": "47e8be849eaecea00f8673696ae1ec3283ec5fd6"
44
+ "gitHead": "e8578cc336e58d896531179f5fcb6973e8a983ce"
45
45
  }