@graphcommerce/magento-product 3.0.26 → 3.1.0

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
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.0.29...@graphcommerce/magento-product@3.1.0) (2021-10-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **message-snackbar:** severity props ([c7be8a5](https://github.com/ho-nl/m2-pwa/commit/c7be8a51faf7a5937b7fab5bb352df2089ae4eea))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.0.28](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.0.27...@graphcommerce/magento-product@3.0.28) (2021-10-15)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **ProductListCount:** use theme instead of hardcoded color value ([cdfa232](https://github.com/ho-nl/m2-pwa/commit/cdfa2325c82fb94d4ff269e1d99ded1bca5e3a10))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.0.23](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.0.22...@graphcommerce/magento-product@3.0.23) (2021-10-11)
7
29
 
8
30
 
@@ -9,6 +9,7 @@ import {
9
9
  TextInputNumber,
10
10
  iconCheckmark,
11
11
  iconChevronRight,
12
+ SvgImageSimple,
12
13
  } from '@graphcommerce/next-ui'
13
14
  import { Divider, makeStyles, Theme, Typography } from '@material-ui/core'
14
15
  import PageLink from 'next/link'
@@ -21,10 +22,6 @@ const useStyles = makeStyles(
21
22
  marginTop: theme.spacings.sm,
22
23
  width: '100%',
23
24
  },
24
- messageIcon: {
25
- marginBottom: '-2px',
26
- marginRight: 5,
27
- },
28
25
  price: {
29
26
  fontWeight: theme.typography.fontWeightBold,
30
27
  margin: `${theme.spacings.sm} 0`,
@@ -92,29 +89,22 @@ export default function ProductAddToCart(
92
89
  <MessageSnackbar
93
90
  open={!formState.isSubmitting && formState.isSubmitSuccessful && !error?.message}
94
91
  variant='pill'
95
- color='default'
96
92
  action={
97
93
  <PageLink href='/cart'>
98
94
  <Button
99
95
  size='medium'
100
96
  variant='pill'
101
97
  color='secondary'
102
- endIcon={<SvgImage src={iconChevronRight} shade='inverted' alt='chevron right' />}
98
+ endIcon={<SvgImageSimple src={iconChevronRight} inverted />}
103
99
  >
104
100
  View shopping cart
105
101
  </Button>
106
102
  </PageLink>
107
103
  }
108
104
  >
109
- <div>
110
- <SvgImage
111
- src={iconCheckmark}
112
- loading='eager'
113
- alt='checkmark'
114
- className={classes.messageIcon}
115
- />
105
+ <>
116
106
  <strong>{name}</strong>&nbsp;has been added to your shopping cart!
117
- </div>
107
+ </>
118
108
  </MessageSnackbar>
119
109
  </form>
120
110
  )
@@ -18,7 +18,7 @@ const useStyles = makeStyles(
18
18
  marginBottom: theme.spacings.sm,
19
19
  },
20
20
  line: {
21
- background: '#ededed',
21
+ background: theme.palette.divider,
22
22
  width: '100%',
23
23
  height: 1,
24
24
  lineHeight: 20,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-product",
3
- "version": "3.0.26",
3
+ "version": "3.1.0",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -24,9 +24,9 @@
24
24
  "@graphcommerce/framer-scroller": "^0.2.11",
25
25
  "@graphcommerce/graphql": "^2.103.7",
26
26
  "@graphcommerce/image": "^2.104.10",
27
- "@graphcommerce/magento-cart": "^3.1.11",
28
- "@graphcommerce/magento-store": "^3.0.22",
29
- "@graphcommerce/next-ui": "^3.3.2",
27
+ "@graphcommerce/magento-cart": "^3.1.15",
28
+ "@graphcommerce/magento-store": "^3.0.26",
29
+ "@graphcommerce/next-ui": "^3.6.0",
30
30
  "@graphql-typed-document-node/core": "^3.1.0",
31
31
  "@material-ui/core": "^4.12.3",
32
32
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -38,5 +38,5 @@
38
38
  "schema-dts": "^1.0.0",
39
39
  "type-fest": "^2.5.0"
40
40
  },
41
- "gitHead": "5e31b902147a68bfce513451e4e10d1c74d23823"
41
+ "gitHead": "beb4b83268176f7c6579cee2fe844752315e2378"
42
42
  }