@graphcommerce/magento-cart 4.1.0 β†’ 4.1.1

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,65 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
8
+ [`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7)
9
+ Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and
10
+ `ApolloErrorSnackbar` to the ecommerce-ui package.
11
+
12
+ Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from
13
+ `magento-graphcms` example.
14
+
15
+ Removed dependency an `@graphcommerce/react-hook-form` from `magento-graphcms` example.
16
+
17
+ Added dependency `@graphcommerce/ecommerce-ui` from `magento-graphcms` example.
18
+
19
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
20
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
21
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
22
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
23
+ duplicate packages in the node_modules folders.
24
+
25
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
26
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
27
+ Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
28
+ various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
29
+
30
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
31
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
32
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
33
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
34
+ implementing
35
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
36
+ soon.
37
+
38
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
39
+ frontend to be able to revalidate pages manually.
40
+
41
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
42
+ [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)
43
+ Thanks [@paales](https://github.com/paales)! - make sure the discount is rendered side-by-side
44
+
45
+ - Updated dependencies
46
+ [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
47
+ [`351347afe`](https://github.com/ho-nl/m2-pwa/commit/351347afeae5bd837408d46c7593bcf5473dc621),
48
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
49
+ [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
50
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
51
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
52
+ - @graphcommerce/ecommerce-ui@1.0.0
53
+ - @graphcommerce/framer-next-pages@3.0.2
54
+ - @graphcommerce/magento-customer@4.1.1
55
+ - @graphcommerce/next-ui@4.1.1
56
+ - @graphcommerce/react-hook-form@3.0.2
57
+ - @graphcommerce/framer-scroller@2.0.2
58
+ - @graphcommerce/graphql@3.0.2
59
+ - @graphcommerce/image@3.0.2
60
+ - @graphcommerce/magento-graphql@3.0.2
61
+ - @graphcommerce/magento-store@4.0.2
62
+
3
63
  ## 4.1.0
4
64
 
5
65
  ### Minor Changes
@@ -1,11 +1,10 @@
1
+ import { ApolloErrorAlert, ApolloErrorAlertProps } from '@graphcommerce/ecommerce-ui'
1
2
  import { useQuery } from '@graphcommerce/graphql'
2
3
  import { CustomerTokenDocument } from '@graphcommerce/magento-customer'
3
4
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
4
- import { ApolloErrorAlert, ApolloErrorAlertProps } from '@graphcommerce/next-ui'
5
5
  import { t } from '@lingui/macro'
6
6
  import { Button } from '@mui/material'
7
7
  import Link from 'next/link'
8
- import React from 'react'
9
8
  import { useClearCurrentCartId } from '../../hooks/useClearCurrentCartId'
10
9
 
11
10
  export type ApolloCartErrorAlertProps = ApolloErrorAlertProps
@@ -1,10 +1,6 @@
1
+ import { ApolloErrorFullPage, ApolloErrorFullPageProps } from '@graphcommerce/ecommerce-ui'
1
2
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
2
- import {
3
- ApolloErrorFullPage,
4
- ApolloErrorFullPageProps,
5
- iconSadFace,
6
- SvgIcon,
7
- } from '@graphcommerce/next-ui'
3
+ import { iconSadFace, SvgIcon } from '@graphcommerce/next-ui'
8
4
  import { Button } from '@mui/material'
9
5
  import { useClearCurrentCartId } from '../../hooks/useClearCurrentCartId'
10
6
 
@@ -1,5 +1,5 @@
1
+ import { ApolloErrorSnackbarProps, ApolloErrorSnackbar } from '@graphcommerce/ecommerce-ui'
1
2
  import { graphqlErrorByCategory } from '@graphcommerce/magento-graphql'
2
- import { ApolloErrorSnackbarProps, ApolloErrorSnackbar } from '@graphcommerce/next-ui'
3
3
  import { Button } from '@mui/material'
4
4
  import React from 'react'
5
5
  import { useClearCurrentCartId } from '../../hooks/useClearCurrentCartId'
@@ -102,7 +102,7 @@ export default function CartSummary(props: CartSummaryProps) {
102
102
  <Box>
103
103
  <SectionContainer
104
104
  variantLeft='h5'
105
- labelLeft={t`Billing Address`}
105
+ labelLeft={t`Billing address`}
106
106
  sx={{ '& .SectionHeader': { marginTop: 0, paddingBottom: '8px' } }}
107
107
  labelRight={
108
108
  editable ? (
@@ -94,10 +94,12 @@ export default function CartTotals(props: CartTotalsProps) {
94
94
 
95
95
  return (
96
96
  <AnimatedRow
97
+ key={discount?.label}
97
98
  sx={(theme) => ({
98
- fontWeight: theme.typography.fontWeightBold,
99
+ display: 'flex',
100
+ justifyContent: 'space-between',
101
+ typography: 'subtitle1',
99
102
  })}
100
- key={discount?.label}
101
103
  >
102
104
  <Box>{discount?.label}</Box>
103
105
  <Box className={classes.money} sx={{ whiteSpace: 'nowrap' }}>
@@ -154,7 +156,6 @@ export default function CartTotals(props: CartTotalsProps) {
154
156
  display: 'flex',
155
157
  justifyContent: 'space-between',
156
158
  typography: 'subtitle1',
157
- fontWeight: theme.typography.fontWeightBold,
158
159
  color: theme.palette.primary.main,
159
160
  })}
160
161
  >
@@ -175,7 +176,7 @@ export default function CartTotals(props: CartTotalsProps) {
175
176
  sx={{
176
177
  display: 'flex',
177
178
  justifyContent: 'space-between',
178
- typography: 'subtitle1',
179
+ typography: 'body1',
179
180
  color: 'text.disabled',
180
181
  paddingTop: 0,
181
182
  }}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.1.0",
5
+ "version": "4.1.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,24 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
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.1"
18
+ "@playwright/test": "^1.19.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/framer-next-pages": "^3.0.1",
22
- "@graphcommerce/framer-scroller": "^2.0.1",
23
- "@graphcommerce/graphql": "^3.0.1",
24
- "@graphcommerce/image": "^3.0.1",
25
- "@graphcommerce/magento-customer": "^4.1.0",
26
- "@graphcommerce/magento-graphql": "^3.0.1",
27
- "@graphcommerce/magento-store": "^4.0.1",
28
- "@graphcommerce/next-ui": "^4.1.0",
29
- "@graphcommerce/react-hook-form": "^3.0.1",
21
+ "@graphcommerce/ecommerce-ui": "^1.0.0",
22
+ "@graphcommerce/framer-next-pages": "^3.0.2",
23
+ "@graphcommerce/framer-scroller": "^2.0.2",
24
+ "@graphcommerce/graphql": "^3.0.2",
25
+ "@graphcommerce/image": "^3.0.2",
26
+ "@graphcommerce/magento-customer": "^4.1.1",
27
+ "@graphcommerce/magento-graphql": "^3.0.2",
28
+ "@graphcommerce/magento-store": "^4.0.2",
29
+ "@graphcommerce/next-ui": "^4.1.1",
30
+ "@graphcommerce/react-hook-form": "^3.0.2"
31
+ },
32
+ "peerDependencies": {
30
33
  "@lingui/macro": "^3.13.2",
31
34
  "@mui/material": "^5.4.1",
32
35
  "framer-motion": "^6.2.4",