@graphcommerce/magento-cart-payment-method 3.1.8 → 3.1.11

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.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`0363b9671`](https://github.com/graphcommerce-org/graphcommerce/commit/0363b9671db7c2932321d97faf6f1eb385238397), [`3ac90b57c`](https://github.com/graphcommerce-org/graphcommerce/commit/3ac90b57c68b96f9d81771d6664ed9435a28fc1d), [`ed2b67a06`](https://github.com/graphcommerce-org/graphcommerce/commit/ed2b67a0618d9db97e79ed2a8226e0ae12403943)]:
8
+ - @graphcommerce/next-ui@4.8.0
9
+ - @graphcommerce/magento-cart@4.2.15
10
+ - @graphcommerce/framer-scroller@2.1.11
11
+ - @graphcommerce/magento-store@4.2.4
12
+
13
+ ## 3.1.10
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`c30893857`](https://github.com/graphcommerce-org/graphcommerce/commit/c3089385791291e812a48c2691a39a2325ee0439)]:
18
+ - @graphcommerce/magento-store@4.2.3
19
+ - @graphcommerce/magento-cart@4.2.14
20
+
21
+ ## 3.1.9
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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
26
+
27
+ * [#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.
28
+
29
+ Since we've removed @lingui/macro, all occurences need to be replaced with @lingui/core and @lingui/react.
30
+
31
+ All occurences of `<Trans>` and `t` need to be replaced:
32
+
33
+ ```tsx
34
+ import { Trans, t } from '@lingui/macro'
35
+
36
+ function MyComponent() {
37
+ const foo = 'bar'
38
+ return (
39
+ <div aria-label={t`Account ${foo}`}>
40
+ <Trans>My Translation {foo}</Trans>
41
+ </div>
42
+ )
43
+ }
44
+ ```
45
+
46
+ Needs to be replaced with:
47
+
48
+ ```tsx
49
+ import { Trans } from '@lingui/react'
50
+ import { i18n } from '@lingui/core'
51
+
52
+ function MyComponent() {
53
+ const foo = 'bar'
54
+ return (
55
+ <div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
56
+ <Trans key='My Translation {foo}' values={{ foo }}></Trans>
57
+ </div>
58
+ )
59
+ }
60
+ ```
61
+
62
+ [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)
63
+
64
+ * Updated dependencies [[`50188e378`](https://github.com/graphcommerce-org/graphcommerce/commit/50188e378b4c77561ebc600958ea11cd114fa61a), [`f698ff85d`](https://github.com/graphcommerce-org/graphcommerce/commit/f698ff85df6bb0922288471bb3c81856091b8061)]:
65
+ - @graphcommerce/react-hook-form@3.1.3
66
+ - @graphcommerce/framer-scroller@2.1.10
67
+ - @graphcommerce/magento-cart@4.2.13
68
+ - @graphcommerce/magento-store@4.2.2
69
+ - @graphcommerce/next-ui@4.7.2
70
+ - @graphcommerce/graphql@3.1.3
71
+
3
72
  ## 3.1.8
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 { t } from '@lingui/macro'
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: t`Please select a payment method` }}
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.8",
5
+ "version": "3.1.11",
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.6",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.7",
19
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
20
- "@graphcommerce/typescript-config-pwa": "^4.0.2",
21
- "@graphcommerce/magento-cart-shipping-address": "3.0.15",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.3",
18
+ "@graphcommerce/magento-cart-shipping-address": "3.0.18",
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.9",
27
- "@graphcommerce/graphql": "3.1.2",
23
+ "@graphcommerce/framer-scroller": "2.1.11",
24
+ "@graphcommerce/graphql": "3.1.3",
28
25
  "@graphcommerce/image": "3.1.5",
29
- "@graphcommerce/magento-cart": "4.2.12",
30
- "@graphcommerce/magento-store": "4.2.1",
31
- "@graphcommerce/next-ui": "4.7.1",
32
- "@graphcommerce/react-hook-form": "3.1.2"
26
+ "@graphcommerce/magento-cart": "4.2.15",
27
+ "@graphcommerce/magento-store": "4.2.4",
28
+ "@graphcommerce/next-ui": "4.8.0",
29
+ "@graphcommerce/react-hook-form": "3.1.3"
33
30
  },
34
31
  "peerDependencies": {
35
- "@lingui/macro": "^3.13.2",
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",