@graphcommerce/magento-product-configurable 4.1.1 → 4.1.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,5 +1,83 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`c30893857`](https://github.com/graphcommerce-org/graphcommerce/commit/c3089385791291e812a48c2691a39a2325ee0439)]:
8
+ - @graphcommerce/magento-store@4.2.3
9
+ - @graphcommerce/magento-cart@4.2.14
10
+ - @graphcommerce/magento-cart-items@3.0.20
11
+ - @graphcommerce/magento-category@4.1.5
12
+ - @graphcommerce/magento-customer@4.2.12
13
+ - @graphcommerce/magento-product@4.3.4
14
+ - @graphcommerce/magento-product-simple@4.0.19
15
+
16
+ ## 4.1.3
17
+
18
+ ### Patch Changes
19
+
20
+ - [#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.
21
+
22
+ Since we've removed @lingui/macro, all occurences need to be replaced with @lingui/core and @lingui/react.
23
+
24
+ All occurences of `<Trans>` and `t` need to be replaced:
25
+
26
+ ```tsx
27
+ import { Trans, t } from '@lingui/macro'
28
+
29
+ function MyComponent() {
30
+ const foo = 'bar'
31
+ return (
32
+ <div aria-label={t`Account ${foo}`}>
33
+ <Trans>My Translation {foo}</Trans>
34
+ </div>
35
+ )
36
+ }
37
+ ```
38
+
39
+ Needs to be replaced with:
40
+
41
+ ```tsx
42
+ import { Trans } from '@lingui/react'
43
+ import { i18n } from '@lingui/core'
44
+
45
+ function MyComponent() {
46
+ const foo = 'bar'
47
+ return (
48
+ <div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
49
+ <Trans key='My Translation {foo}' values={{ foo }}></Trans>
50
+ </div>
51
+ )
52
+ }
53
+ ```
54
+
55
+ [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)
56
+
57
+ - Updated dependencies [[`50188e378`](https://github.com/graphcommerce-org/graphcommerce/commit/50188e378b4c77561ebc600958ea11cd114fa61a), [`f698ff85d`](https://github.com/graphcommerce-org/graphcommerce/commit/f698ff85df6bb0922288471bb3c81856091b8061)]:
58
+ - @graphcommerce/react-hook-form@3.1.3
59
+ - @graphcommerce/magento-cart@4.2.13
60
+ - @graphcommerce/magento-cart-items@3.0.19
61
+ - @graphcommerce/magento-category@4.1.4
62
+ - @graphcommerce/magento-customer@4.2.11
63
+ - @graphcommerce/magento-product@4.3.3
64
+ - @graphcommerce/magento-product-simple@4.0.18
65
+ - @graphcommerce/magento-store@4.2.2
66
+ - @graphcommerce/next-ui@4.7.2
67
+ - @graphcommerce/graphql@3.1.3
68
+
69
+ ## 4.1.2
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies []:
74
+ - @graphcommerce/magento-cart@4.2.12
75
+ - @graphcommerce/magento-customer@4.2.10
76
+ - @graphcommerce/magento-cart-items@3.0.18
77
+ - @graphcommerce/magento-product@4.3.2
78
+ - @graphcommerce/magento-product-simple@4.0.17
79
+ - @graphcommerce/magento-category@4.1.3
80
+
3
81
  ## 4.1.1
4
82
 
5
83
  ### Patch Changes
@@ -9,7 +9,7 @@ import {
9
9
  IconSvg,
10
10
  TextInputNumber,
11
11
  } from '@graphcommerce/next-ui'
12
- import { Trans } from '@lingui/macro'
12
+ import { Trans } from '@lingui/react'
13
13
  import { Divider, Typography, Alert, Box } from '@mui/material'
14
14
  import { AnimatePresence } from 'framer-motion'
15
15
  import PageLink from 'next/link'
@@ -131,7 +131,7 @@ export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCart
131
131
  width: '100%',
132
132
  })}
133
133
  >
134
- <Trans>Add to Cart</Trans>
134
+ <Trans id='Add to Cart' />
135
135
  </Button>
136
136
  {additionalButtons}
137
137
  </Box>
@@ -163,14 +163,16 @@ export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCart
163
163
  color='secondary'
164
164
  endIcon={<IconSvg src={iconChevronRight} />}
165
165
  >
166
- <Trans>View shopping cart</Trans>
166
+ <Trans id='View shopping cart' />
167
167
  </Button>
168
168
  </PageLink>
169
169
  }
170
170
  >
171
- <Trans>
172
- <strong>{name}</strong> has been added to your shopping cart!
173
- </Trans>
171
+ <Trans
172
+ id='<0>{name}</0> has been added to your shopping cart!'
173
+ components={{ 0: <strong /> }}
174
+ values={{ name }}
175
+ />
174
176
  </MessageSnackbar>
175
177
  </Box>
176
178
  )
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product-configurable",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.1.1",
5
+ "version": "4.1.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,28 +12,29 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.6",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.7",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.2",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.3",
18
18
  "@playwright/test": "^1.21.1",
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.1.2",
22
+ "@graphcommerce/graphql": "3.1.3",
23
23
  "@graphcommerce/graphql-mesh": "4.1.3",
24
24
  "@graphcommerce/image": "3.1.5",
25
- "@graphcommerce/magento-cart": "4.2.11",
26
- "@graphcommerce/magento-cart-items": "3.0.17",
27
- "@graphcommerce/magento-category": "4.1.2",
28
- "@graphcommerce/magento-customer": "4.2.9",
29
- "@graphcommerce/magento-product": "4.3.1",
30
- "@graphcommerce/magento-product-simple": "4.0.16",
31
- "@graphcommerce/magento-store": "4.2.1",
32
- "@graphcommerce/next-ui": "4.7.1",
33
- "@graphcommerce/react-hook-form": "3.1.2"
25
+ "@graphcommerce/magento-cart": "4.2.14",
26
+ "@graphcommerce/magento-cart-items": "3.0.20",
27
+ "@graphcommerce/magento-category": "4.1.5",
28
+ "@graphcommerce/magento-customer": "4.2.12",
29
+ "@graphcommerce/magento-product": "4.3.4",
30
+ "@graphcommerce/magento-product-simple": "4.0.19",
31
+ "@graphcommerce/magento-store": "4.2.3",
32
+ "@graphcommerce/next-ui": "4.7.2",
33
+ "@graphcommerce/react-hook-form": "3.1.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@lingui/macro": "^3.13.2",
36
+ "@lingui/react": "^3.13.2",
37
+ "@lingui/core": "^3.13.2",
37
38
  "@mui/material": "5.5.3",
38
39
  "framer-motion": "^6.2.4",
39
40
  "next": "12.1.2",