@graphcommerce/magento-cart 3.3.1 → 3.4.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
@@ -3,6 +3,29 @@
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.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.4.0...@graphcommerce/magento-cart@3.4.1) (2021-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
12
+ * sadFace size ([b75dd19](https://github.com/ho-nl/m2-pwa/commit/b75dd19dd49ff95d5f99305637b6687171ebb7d5))
13
+
14
+
15
+
16
+
17
+
18
+ # [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)
19
+
20
+
21
+ ### Features
22
+
23
+ * dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
24
+
25
+
26
+
27
+
28
+
6
29
  # [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)
7
30
 
8
31
 
@@ -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} size='xxl' />}
26
27
  button={action}
27
28
  {...passedProps}
28
29
  />
@@ -21,9 +21,7 @@ type CartFabContentProps = CartFabProps & CartTotalQuantityFragment
21
21
 
22
22
  function CartFabContent(props: CartFabContentProps) {
23
23
  const { total_quantity, icon, ...fabProps } = props
24
- const cartIcon = icon ?? (
25
- <SvgImageSimple src={iconShoppingBag} alt='Shopping Bag' loading='eager' size='large' />
26
- )
24
+ const cartIcon = icon ?? <SvgImageSimple src={iconShoppingBag} loading='eager' size='large' />
27
25
  const { boxShadow } = useFixedFabAnimation()
28
26
 
29
27
  return (
@@ -33,9 +31,7 @@ function CartFabContent(props: CartFabContentProps) {
33
31
  aria-label='Cart'
34
32
  color='inherit'
35
33
  size='large'
36
- style={{
37
- boxShadow: 'none',
38
- }}
34
+ style={{ boxShadow: 'none' }}
39
35
  {...fabProps}
40
36
  >
41
37
  {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 />}
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} size='xxl' />}
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.3.1",
3
+ "version": "3.4.2",
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.4.0",
25
- "@graphcommerce/graphql": "^2.105.0",
26
- "@graphcommerce/image": "^2.105.0",
27
- "@graphcommerce/magento-customer": "^3.2.1",
28
- "@graphcommerce/magento-graphql": "^2.104.0",
29
- "@graphcommerce/magento-store": "^3.1.1",
30
- "@graphcommerce/next-ui": "^3.10.1",
31
- "@graphcommerce/react-hook-form": "^2.102.12",
24
+ "@graphcommerce/framer-scroller": "^0.4.2",
25
+ "@graphcommerce/graphql": "^2.105.1",
26
+ "@graphcommerce/image": "^2.105.1",
27
+ "@graphcommerce/magento-customer": "^3.3.2",
28
+ "@graphcommerce/magento-graphql": "^2.104.1",
29
+ "@graphcommerce/magento-store": "^3.1.5",
30
+ "@graphcommerce/next-ui": "^3.11.2",
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": "^12.0.0",
37
+ "next": "^12.0.1",
38
38
  "react": "^17.0.2",
39
39
  "react-dom": "^17.0.2"
40
40
  },
41
- "gitHead": "b90c6285a14368a76de8ad1d104f3d535bc3cafb"
41
+ "gitHead": "ed70123f0b4c4552ca413deff6fe786156d0772f"
42
42
  }