@graphcommerce/magento-cart 3.1.0 → 3.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
@@ -3,6 +3,17 @@
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.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.1.0...@graphcommerce/magento-cart@3.1.1) (2021-10-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cart-fab:** box shadow in safari ([4eb316d](https://github.com/ho-nl/m2-pwa/commit/4eb316dd0f2ab7ee2806a3acdb306af1eb72854b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.0.13...@graphcommerce/magento-cart@3.1.0) (2021-10-05)
7
18
 
8
19
 
@@ -2,6 +2,7 @@ import {
2
2
  iconShoppingBag,
3
3
  StyledBadge,
4
4
  SvgImageSimple,
5
+ FixedFab,
5
6
  useFixedFabAnimation,
6
7
  } from '@graphcommerce/next-ui'
7
8
  import { Fab, FabProps, NoSsr } from '@material-ui/core'
@@ -23,12 +24,20 @@ function CartFabContent(props: CartFabContentProps) {
23
24
  const cartIcon = icon ?? (
24
25
  <SvgImageSimple src={iconShoppingBag} alt='Shopping Bag' loading='eager' size='large' />
25
26
  )
26
- const { filter } = useFixedFabAnimation()
27
+ const { boxShadow } = useFixedFabAnimation()
27
28
 
28
29
  return (
29
- <m.div style={{ filter }}>
30
+ <m.div style={{ boxShadow, width: 'inherit', borderRadius: 'inherit' }}>
30
31
  <PageLink href='/cart' passHref>
31
- <Fab aria-label='Cart' color='inherit' size='large' {...fabProps}>
32
+ <Fab
33
+ aria-label='Cart'
34
+ color='inherit'
35
+ size='large'
36
+ style={{
37
+ boxShadow: 'none',
38
+ }}
39
+ {...fabProps}
40
+ >
32
41
  {total_quantity > 0 ? (
33
42
  <StyledBadge color='primary' variant='dot'>
34
43
  {cartIcon}
@@ -60,8 +69,10 @@ export default function CartFab(props: CartFabProps) {
60
69
  const qty = data?.cart?.total_quantity ?? 0
61
70
 
62
71
  return (
63
- <NoSsr fallback={<CartFabContent {...props} total_quantity={0} />}>
64
- <CartFabContent total_quantity={qty} {...props} />
65
- </NoSsr>
72
+ <FixedFab>
73
+ <NoSsr fallback={<CartFabContent {...props} total_quantity={0} />}>
74
+ <CartFabContent total_quantity={qty} {...props} />
75
+ </NoSsr>
76
+ </FixedFab>
66
77
  )
67
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-cart",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -24,10 +24,10 @@
24
24
  "@graphcommerce/framer-scroller": "^0.2.5",
25
25
  "@graphcommerce/graphql": "^2.103.4",
26
26
  "@graphcommerce/image": "^2.104.5",
27
- "@graphcommerce/magento-customer": "^3.0.13",
27
+ "@graphcommerce/magento-customer": "^3.0.14",
28
28
  "@graphcommerce/magento-graphql": "^2.103.4",
29
- "@graphcommerce/magento-store": "^3.0.11",
30
- "@graphcommerce/next-ui": "^3.1.3",
29
+ "@graphcommerce/magento-store": "^3.0.12",
30
+ "@graphcommerce/next-ui": "^3.1.4",
31
31
  "@graphcommerce/react-hook-form": "^2.102.4",
32
32
  "@graphql-typed-document-node/core": "^3.1.0",
33
33
  "@material-ui/core": "^4.12.3",
@@ -38,5 +38,5 @@
38
38
  "react": "^17.0.2",
39
39
  "react-dom": "^17.0.2"
40
40
  },
41
- "gitHead": "bffc2d42dc3f1e6a95cbff7025ede389693f8a54"
41
+ "gitHead": "3cdea8f8c2a7a717955e81634ffdf769a1317584"
42
42
  }