@graphcommerce/magento-product 4.0.1 β 4.0.2
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,45 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
8
|
+
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
|
|
9
|
+
Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
|
|
10
|
+
`dependencies` to `peerDependencies`. The result of this is that there will be significantly less
|
|
11
|
+
duplicate packages in the node_modules folders.
|
|
12
|
+
|
|
13
|
+
* [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
|
|
14
|
+
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
|
|
15
|
+
Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
|
|
16
|
+
various translations for english πΊπΈπ¬π§ and dutch π³π±
|
|
17
|
+
|
|
18
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
19
|
+
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
20
|
+
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
21
|
+
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
22
|
+
implementing
|
|
23
|
+
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
24
|
+
soon.
|
|
25
|
+
|
|
26
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
27
|
+
frontend to be able to revalidate pages manually.
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
31
|
+
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
32
|
+
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
33
|
+
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
34
|
+
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
35
|
+
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
36
|
+
- @graphcommerce/magento-cart@4.1.1
|
|
37
|
+
- @graphcommerce/next-ui@4.1.1
|
|
38
|
+
- @graphcommerce/framer-scroller@2.0.2
|
|
39
|
+
- @graphcommerce/graphql@3.0.2
|
|
40
|
+
- @graphcommerce/image@3.0.2
|
|
41
|
+
- @graphcommerce/magento-store@4.0.2
|
|
42
|
+
|
|
3
43
|
## 4.0.1
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
SvgIcon,
|
|
10
10
|
extendableComponent,
|
|
11
11
|
} from '@graphcommerce/next-ui'
|
|
12
|
+
import { Trans } from '@lingui/macro'
|
|
12
13
|
import { Divider, Typography, ButtonProps, Box } from '@mui/material'
|
|
13
14
|
import PageLink from 'next/link'
|
|
14
15
|
import React from 'react'
|
|
@@ -100,9 +101,9 @@ export default function ProductAddToCart(
|
|
|
100
101
|
</PageLink>
|
|
101
102
|
}
|
|
102
103
|
>
|
|
103
|
-
|
|
104
|
-
<strong>{name}</strong
|
|
105
|
-
|
|
104
|
+
<Trans>
|
|
105
|
+
<strong>{name}</strong> has been added to your shopping cart!
|
|
106
|
+
</Trans>
|
|
106
107
|
</MessageSnackbar>
|
|
107
108
|
</Box>
|
|
108
109
|
)
|
|
@@ -36,7 +36,7 @@ export function ProductListCount(props: ProductCountProps) {
|
|
|
36
36
|
<Divider component='div' className={classes.line} />
|
|
37
37
|
<Typography variant='body2' color='text.disabled' className={classes.count}>
|
|
38
38
|
{total_count === 0 && <Trans>no products</Trans>}
|
|
39
|
-
{total_count === 1 && <Trans>one
|
|
39
|
+
{total_count === 1 && <Trans>one product</Trans>}
|
|
40
40
|
{(total_count ?? 0) > 1 && <Trans>{total_count} products</Trans>}
|
|
41
41
|
</Typography>
|
|
42
42
|
<Divider component='div' className={classes.line} />
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.2",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,25 +12,27 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.2",
|
|
16
16
|
"@graphcommerce/prettier-config-pwa": "^4.0.1",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.1",
|
|
18
|
-
"@playwright/test": "^1.
|
|
18
|
+
"@playwright/test": "^1.19.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/framer-scroller": "^2.0.
|
|
22
|
-
"@graphcommerce/graphql": "^3.0.
|
|
23
|
-
"@graphcommerce/image": "^3.0.
|
|
24
|
-
"@graphcommerce/magento-cart": "^4.
|
|
25
|
-
"@graphcommerce/magento-store": "^4.0.
|
|
26
|
-
"@graphcommerce/next-ui": "^4.
|
|
21
|
+
"@graphcommerce/framer-scroller": "^2.0.2",
|
|
22
|
+
"@graphcommerce/graphql": "^3.0.2",
|
|
23
|
+
"@graphcommerce/image": "^3.0.2",
|
|
24
|
+
"@graphcommerce/magento-cart": "^4.1.1",
|
|
25
|
+
"@graphcommerce/magento-store": "^4.0.2",
|
|
26
|
+
"@graphcommerce/next-ui": "^4.1.1",
|
|
27
|
+
"schema-dts": "^1.0.0",
|
|
28
|
+
"type-fest": "^2.11.2"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
27
31
|
"@lingui/macro": "^3.13.2",
|
|
28
32
|
"@mui/material": "^5.4.1",
|
|
29
33
|
"framer-motion": "^6.2.4",
|
|
30
34
|
"next": "^12.0.10",
|
|
31
35
|
"react": "^17.0.2",
|
|
32
|
-
"react-dom": "^17.0.2"
|
|
33
|
-
"schema-dts": "^1.0.0",
|
|
34
|
-
"type-fest": "^2.11.2"
|
|
36
|
+
"react-dom": "^17.0.2"
|
|
35
37
|
}
|
|
36
38
|
}
|