@graphcommerce/magento-cart 3.2.6 → 3.4.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.4.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.3.2...@graphcommerce/magento-cart@3.4.0) (2021-10-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.2.6...@graphcommerce/magento-cart@3.3.0) (2021-10-27)
18
+
19
+
20
+ ### Features
21
+
22
+ * **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.1.15...@graphcommerce/magento-cart@3.2.0) (2021-10-19)
7
29
 
8
30
 
@@ -5,7 +5,8 @@ import {
5
5
  SvgImage,
6
6
  ApolloErrorFullPageProps,
7
7
  iconLock,
8
- iconSadShoppingBag,
8
+ iconSadFace,
9
+ SvgImageSimple,
9
10
  } from '@graphcommerce/next-ui'
10
11
  import React from 'react'
11
12
  import { useClearCurrentCartId } from '../../hooks/useClearCurrentCartId'
@@ -22,7 +23,7 @@ export default function ApolloCartErrorFullPage(props: ApolloCartErrorFullPagePr
22
23
  return (
23
24
  <ApolloErrorFullPage
24
25
  error={error}
25
- icon={<SvgImage src={iconSadShoppingBag} size={148} alt='person' />}
26
+ icon={<SvgImageSimple src={iconSadFace} alt='person' size='xxl' />}
26
27
  button={action}
27
28
  {...passedProps}
28
29
  />
@@ -33,9 +33,7 @@ function CartFabContent(props: CartFabContentProps) {
33
33
  aria-label='Cart'
34
34
  color='inherit'
35
35
  size='large'
36
- style={{
37
- boxShadow: 'none',
38
- }}
36
+ style={{ boxShadow: 'none' }}
39
37
  {...fabProps}
40
38
  >
41
39
  {total_quantity > 0 ? (
@@ -1,5 +1,11 @@
1
1
  import { Money } from '@graphcommerce/magento-store'
2
- import { Button, iconChevronRight, responsiveVal, SvgImage } from '@graphcommerce/next-ui'
2
+ import {
3
+ Button,
4
+ iconChevronRight,
5
+ responsiveVal,
6
+ SvgImage,
7
+ SvgImageSimple,
8
+ } from '@graphcommerce/next-ui'
3
9
  import { makeStyles, Theme } from '@material-ui/core'
4
10
  import PageLink from 'next/link'
5
11
  import React, { PropsWithChildren } from 'react'
@@ -50,7 +56,7 @@ export default function CartStartCheckout(props: CartStartCheckoutProps) {
50
56
  variant='pill'
51
57
  color='secondary'
52
58
  className={classes.checkoutButton}
53
- endIcon={<SvgImage src={iconChevronRight} shade='inverted' alt='checkout' />}
59
+ endIcon={<SvgImageSimple src={iconChevronRight} inverted alt='checkout' />}
54
60
  disabled={!hasTotals}
55
61
  >
56
62
  <span className={classes.checkoutButtonLabel}>Start Checkout</span>{' '}
@@ -36,7 +36,7 @@ const useStyles = makeStyles(
36
36
  fontWeight: theme.typography.fontWeightBold,
37
37
  },
38
38
  costsTax: {
39
- color: theme.palette.primary.mutedText,
39
+ color: theme.palette.text.disabled,
40
40
  paddingTop: 0,
41
41
  },
42
42
  money: {
@@ -1,4 +1,4 @@
1
- import { iconSadShoppingBag, FullPageMessage, SvgImageSimple } from '@graphcommerce/next-ui'
1
+ import { iconSadFace, FullPageMessage, SvgImageSimple } from '@graphcommerce/next-ui'
2
2
  import { Button } from '@material-ui/core'
3
3
  import Link from 'next/link'
4
4
  import React from 'react'
@@ -10,7 +10,7 @@ export default function EmptyCart(props: EmptyCartProps) {
10
10
  return (
11
11
  <FullPageMessage
12
12
  title='Your cart is empty'
13
- icon={<SvgImageSimple src={iconSadShoppingBag} alt='Empty Cart' layout='fill' />}
13
+ icon={<SvgImageSimple src={iconSadFace} alt='Empty Cart' layout='fill' />}
14
14
  button={
15
15
  <Link href='/' passHref>
16
16
  <Button variant='contained' color='primary' size='large'>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-cart",
3
- "version": "3.2.6",
3
+ "version": "3.4.0",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,29 +14,29 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.1",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.2",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.3",
19
19
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
- "@playwright/test": "^1.15.2"
20
+ "@playwright/test": "^1.16.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.4.16",
24
- "@graphcommerce/framer-scroller": "^0.3.3",
25
- "@graphcommerce/graphql": "^2.104.1",
26
- "@graphcommerce/image": "^2.104.13",
27
- "@graphcommerce/magento-customer": "^3.1.9",
28
- "@graphcommerce/magento-graphql": "^2.103.10",
29
- "@graphcommerce/magento-store": "^3.0.31",
30
- "@graphcommerce/next-ui": "^3.9.0",
31
- "@graphcommerce/react-hook-form": "^2.102.12",
24
+ "@graphcommerce/framer-scroller": "^0.4.1",
25
+ "@graphcommerce/graphql": "^2.105.1",
26
+ "@graphcommerce/image": "^2.105.1",
27
+ "@graphcommerce/magento-customer": "^3.3.0",
28
+ "@graphcommerce/magento-graphql": "^2.104.1",
29
+ "@graphcommerce/magento-store": "^3.1.3",
30
+ "@graphcommerce/next-ui": "^3.11.0",
31
+ "@graphcommerce/react-hook-form": "^2.102.13",
32
32
  "@graphql-typed-document-node/core": "^3.1.0",
33
33
  "@material-ui/core": "^4.12.3",
34
34
  "@material-ui/lab": "^4.0.0-alpha.60",
35
35
  "clsx": "^1.1.1",
36
36
  "framer-motion": "^4.1.17",
37
- "next": "^11.1.2",
37
+ "next": "^12.0.1",
38
38
  "react": "^17.0.2",
39
39
  "react-dom": "^17.0.2"
40
40
  },
41
- "gitHead": "a71eb508e3ddf42e5705e23bc8016f6f08969c74"
41
+ "gitHead": "f923ddb5d98378c8737314e7296bba77b1c2dc9b"
42
42
  }