@graphcommerce/magento-cart-payment-method 3.1.6 → 3.1.9
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,5 +1,74 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1451](https://github.com/graphcommerce-org/graphcommerce/pull/1451) [`50188e378`](https://github.com/graphcommerce-org/graphcommerce/commit/50188e378b4c77561ebc600958ea11cd114fa61a) Thanks [@paales](https://github.com/paales)! - Loosen node requirement
|
|
8
|
+
|
|
9
|
+
* [#1451](https://github.com/graphcommerce-org/graphcommerce/pull/1451) [`f698ff85d`](https://github.com/graphcommerce-org/graphcommerce/commit/f698ff85df6bb0922288471bb3c81856091b8061) Thanks [@paales](https://github.com/paales)! - Removed all occurences of @lingui/macro and moved to @lingui/macro / @lingui/core in preparation to move to swc.
|
|
10
|
+
|
|
11
|
+
Since we've removed @lingui/macro, all occurences need to be replaced with @lingui/core and @lingui/react.
|
|
12
|
+
|
|
13
|
+
All occurences of `<Trans>` and `t` need to be replaced:
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Trans, t } from '@lingui/macro'
|
|
17
|
+
|
|
18
|
+
function MyComponent() {
|
|
19
|
+
const foo = 'bar'
|
|
20
|
+
return (
|
|
21
|
+
<div aria-label={t`Account ${foo}`}>
|
|
22
|
+
<Trans>My Translation {foo}</Trans>
|
|
23
|
+
</div>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Needs to be replaced with:
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { Trans } from '@lingui/react'
|
|
32
|
+
import { i18n } from '@lingui/core'
|
|
33
|
+
|
|
34
|
+
function MyComponent() {
|
|
35
|
+
const foo = 'bar'
|
|
36
|
+
return (
|
|
37
|
+
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
38
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
39
|
+
</div>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[More examples for Trans](https://lingui.js.org/ref/macro.html#examples-of-jsx-macros) and [more examples for `t`](https://lingui.js.org/ref/macro.html#examples-of-js-macros)
|
|
45
|
+
|
|
46
|
+
* Updated dependencies [[`50188e378`](https://github.com/graphcommerce-org/graphcommerce/commit/50188e378b4c77561ebc600958ea11cd114fa61a), [`f698ff85d`](https://github.com/graphcommerce-org/graphcommerce/commit/f698ff85df6bb0922288471bb3c81856091b8061)]:
|
|
47
|
+
- @graphcommerce/react-hook-form@3.1.3
|
|
48
|
+
- @graphcommerce/framer-scroller@2.1.10
|
|
49
|
+
- @graphcommerce/magento-cart@4.2.13
|
|
50
|
+
- @graphcommerce/magento-store@4.2.2
|
|
51
|
+
- @graphcommerce/next-ui@4.7.2
|
|
52
|
+
- @graphcommerce/graphql@3.1.3
|
|
53
|
+
|
|
54
|
+
## 3.1.8
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Updated dependencies []:
|
|
59
|
+
- @graphcommerce/magento-cart@4.2.12
|
|
60
|
+
|
|
61
|
+
## 3.1.7
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- Updated dependencies [[`25ef6cf08`](https://github.com/graphcommerce-org/graphcommerce/commit/25ef6cf08c278105307d6f604b7135d637e9046c), [`80e30bb77`](https://github.com/graphcommerce-org/graphcommerce/commit/80e30bb77015755fbc00a7935d590f80c1c1c18c)]:
|
|
66
|
+
- @graphcommerce/graphql@3.1.2
|
|
67
|
+
- @graphcommerce/magento-cart@4.2.11
|
|
68
|
+
- @graphcommerce/magento-store@4.2.1
|
|
69
|
+
- @graphcommerce/next-ui@4.7.1
|
|
70
|
+
- @graphcommerce/framer-scroller@2.1.9
|
|
71
|
+
|
|
3
72
|
## 3.1.6
|
|
4
73
|
|
|
5
74
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
UseFormComposeOptions,
|
|
17
17
|
useFormPersist,
|
|
18
18
|
} from '@graphcommerce/react-hook-form'
|
|
19
|
-
import {
|
|
19
|
+
import { i18n } from '@lingui/core'
|
|
20
20
|
import { Box, FormControl, FormHelperText, SxProps, Theme } from '@mui/material'
|
|
21
21
|
import { useEffect } from 'react'
|
|
22
22
|
import { usePaymentMethodContext } from '../PaymentMethodContext/PaymentMethodContext'
|
|
@@ -132,7 +132,7 @@ export function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
|
|
|
132
132
|
defaultValue=''
|
|
133
133
|
control={control}
|
|
134
134
|
name='paymentMethod'
|
|
135
|
-
rules={{ required:
|
|
135
|
+
rules={{ required: i18n._(/* i18n */ `Please select a payment method`) }}
|
|
136
136
|
render={({ field: { onChange, value, name, onBlur } }) => (
|
|
137
137
|
<Scroller
|
|
138
138
|
className={classes.scrollerRoot}
|
package/package.json
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-payment-method",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.9",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": "14.x"
|
|
9
|
-
},
|
|
10
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
11
8
|
"eslintConfig": {
|
|
12
9
|
"extends": "@graphcommerce/eslint-config-pwa",
|
|
@@ -15,24 +12,25 @@
|
|
|
15
12
|
}
|
|
16
13
|
},
|
|
17
14
|
"devDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^4.1.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.7",
|
|
19
16
|
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
20
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
21
|
-
"@graphcommerce/magento-cart-shipping-address": "3.0.
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.3",
|
|
18
|
+
"@graphcommerce/magento-cart-shipping-address": "3.0.16",
|
|
22
19
|
"@playwright/test": "^1.21.1",
|
|
23
20
|
"type-fest": "^2.12.2"
|
|
24
21
|
},
|
|
25
22
|
"dependencies": {
|
|
26
|
-
"@graphcommerce/framer-scroller": "2.1.
|
|
27
|
-
"@graphcommerce/graphql": "3.1.
|
|
23
|
+
"@graphcommerce/framer-scroller": "2.1.10",
|
|
24
|
+
"@graphcommerce/graphql": "3.1.3",
|
|
28
25
|
"@graphcommerce/image": "3.1.5",
|
|
29
|
-
"@graphcommerce/magento-cart": "4.2.
|
|
30
|
-
"@graphcommerce/magento-store": "4.2.
|
|
31
|
-
"@graphcommerce/next-ui": "4.7.
|
|
32
|
-
"@graphcommerce/react-hook-form": "3.1.
|
|
26
|
+
"@graphcommerce/magento-cart": "4.2.13",
|
|
27
|
+
"@graphcommerce/magento-store": "4.2.2",
|
|
28
|
+
"@graphcommerce/next-ui": "4.7.2",
|
|
29
|
+
"@graphcommerce/react-hook-form": "3.1.3"
|
|
33
30
|
},
|
|
34
31
|
"peerDependencies": {
|
|
35
|
-
"@lingui/
|
|
32
|
+
"@lingui/react": "^3.13.2",
|
|
33
|
+
"@lingui/core": "^3.13.2",
|
|
36
34
|
"@mui/material": "5.5.3",
|
|
37
35
|
"framer-motion": "^6.2.4",
|
|
38
36
|
"next": "12.1.2",
|