@graphcommerce/magento-product 4.0.1 β†’ 4.0.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,84 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1285](https://github.com/ho-nl/m2-pwa/pull/1285)
8
+ [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)
9
+ Thanks [@paales](https://github.com/paales)! - upgraded dependencies
10
+
11
+ - Updated dependencies
12
+ [[`ed9703b06`](https://github.com/ho-nl/m2-pwa/commit/ed9703b062d23ee01b1605ff9917c0ac3247fc25),
13
+ [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017),
14
+ [`16d77b280`](https://github.com/ho-nl/m2-pwa/commit/16d77b2806e49e376d06bc0d578d38eb724b0c17)]:
15
+ - @graphcommerce/magento-store@4.1.0
16
+ - @graphcommerce/next-ui@4.1.3
17
+ - @graphcommerce/framer-scroller@2.0.4
18
+
19
+ ## 4.0.3
20
+
21
+ ### Patch Changes
22
+
23
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
24
+ Thanks [@paales](https://github.com/paales)! - made packages public
25
+
26
+ * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
27
+ [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
28
+ Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
29
+
30
+ * Updated dependencies
31
+ [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
32
+ [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
33
+ [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
34
+ [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
35
+ - @graphcommerce/framer-scroller@2.0.3
36
+ - @graphcommerce/graphql@3.0.3
37
+ - @graphcommerce/image@3.1.0
38
+ - @graphcommerce/magento-cart@4.1.2
39
+ - @graphcommerce/magento-store@4.0.3
40
+ - @graphcommerce/next-ui@4.1.2
41
+
42
+ ## 4.0.2
43
+
44
+ ### Patch Changes
45
+
46
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
47
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
48
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
49
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
50
+ duplicate packages in the node_modules folders.
51
+
52
+ * [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
53
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
54
+ Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
55
+ various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
56
+
57
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
58
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
59
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
60
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
61
+ implementing
62
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
63
+ soon.
64
+
65
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
66
+ frontend to be able to revalidate pages manually.
67
+
68
+ - Updated dependencies
69
+ [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
70
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
71
+ [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
72
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
73
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
74
+ [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
75
+ - @graphcommerce/magento-cart@4.1.1
76
+ - @graphcommerce/next-ui@4.1.1
77
+ - @graphcommerce/framer-scroller@2.0.2
78
+ - @graphcommerce/graphql@3.0.2
79
+ - @graphcommerce/image@3.0.2
80
+ - @graphcommerce/magento-store@4.0.2
81
+
3
82
  ## 4.0.1
4
83
 
5
84
  ### 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'
@@ -79,7 +80,7 @@ export default function ProductAddToCart(
79
80
  })}
80
81
  {...buttonProps}
81
82
  >
82
- Add to Cart
83
+ <Trans>Add to Cart</Trans>
83
84
  </Button>
84
85
 
85
86
  <ApolloCartErrorAlert error={error} />
@@ -88,21 +89,21 @@ export default function ProductAddToCart(
88
89
  open={!formState.isSubmitting && formState.isSubmitSuccessful && !error?.message}
89
90
  variant='pill'
90
91
  action={
91
- <PageLink href='/cart'>
92
+ <PageLink href='/cart' passHref>
92
93
  <Button
93
94
  size='medium'
94
95
  variant='pill'
95
96
  color='secondary'
96
97
  endIcon={<SvgIcon src={iconChevronRight} />}
97
98
  >
98
- View shopping cart
99
+ <Trans>View shopping cart</Trans>
99
100
  </Button>
100
101
  </PageLink>
101
102
  }
102
103
  >
103
- <>
104
- <strong>{name}</strong>&nbsp;has been added to your shopping cart!
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 products</Trans>}
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.1",
5
+ "version": "4.0.4",
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.1",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
18
- "@playwright/test": "^1.18.1"
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.4",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.2",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
+ "@playwright/test": "^1.19.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/framer-scroller": "^2.0.1",
22
- "@graphcommerce/graphql": "^3.0.1",
23
- "@graphcommerce/image": "^3.0.1",
24
- "@graphcommerce/magento-cart": "^4.0.1",
25
- "@graphcommerce/magento-store": "^4.0.1",
26
- "@graphcommerce/next-ui": "^4.0.1",
21
+ "@graphcommerce/framer-scroller": "^2.0.4",
22
+ "@graphcommerce/graphql": "^3.0.3",
23
+ "@graphcommerce/image": "^3.1.0",
24
+ "@graphcommerce/magento-cart": "^4.1.2",
25
+ "@graphcommerce/magento-store": "^4.1.0",
26
+ "@graphcommerce/next-ui": "^4.1.3",
27
+ "schema-dts": "^1.1.0",
28
+ "type-fest": "^2.12.0"
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
  }