@graphcommerce/magento-cart 4.1.4 → 4.2.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 +14 -0
- package/components/CartFab/CartFab.tsx +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1322](https://github.com/graphcommerce-org/graphcommerce/pull/1322) [`7a3799bfc`](https://github.com/graphcommerce-org/graphcommerce/commit/7a3799bfc107f26aa9991a91db5f228e3476f4aa) Thanks [@paales](https://github.com/paales)! - Make CartFab and MenuFab’s color, size and variant passable by props
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5266388ea`](https://github.com/graphcommerce-org/graphcommerce/commit/5266388eaffda41592623ef7a3ddbbe03c8e0dad), [`9b35403d9`](https://github.com/graphcommerce-org/graphcommerce/commit/9b35403d9dbb2606ac7cf3bb641a0f9cc3d8a2ba), [`0298a0de1`](https://github.com/graphcommerce-org/graphcommerce/commit/0298a0de1d13e543c4124a6a099297b4e27e2b05), [`815132ea4`](https://github.com/graphcommerce-org/graphcommerce/commit/815132ea43937b4b84b59ec9974ac593cb4eb456), [`3326742a0`](https://github.com/graphcommerce-org/graphcommerce/commit/3326742a0dceb45f0cac4741ca09dc4d4f09ad90), [`7a3799bfc`](https://github.com/graphcommerce-org/graphcommerce/commit/7a3799bfc107f26aa9991a91db5f228e3476f4aa), [`9a77f88ed`](https://github.com/graphcommerce-org/graphcommerce/commit/9a77f88ed26cbecdae9a135c3cb234a5b7ecf4df), [`1e2a07141`](https://github.com/graphcommerce-org/graphcommerce/commit/1e2a071414154600430e6dcf0513d86ab78e0b28), [`0eeaad304`](https://github.com/graphcommerce-org/graphcommerce/commit/0eeaad30461b1d5b486438f0287fa76d49429044), [`bc5213547`](https://github.com/graphcommerce-org/graphcommerce/commit/bc52135471479c83d989449dad24798112e898f4), [`3f1912f55`](https://github.com/graphcommerce-org/graphcommerce/commit/3f1912f553318d5888f8af2b841918ef4ae96a84), [`3b4d46de2`](https://github.com/graphcommerce-org/graphcommerce/commit/3b4d46de2555db9eed733c8fac574bc809d75da4), [`d91359871`](https://github.com/graphcommerce-org/graphcommerce/commit/d91359871b023a9f0d305b37353c1ee2d0912248), [`b6c68cda8`](https://github.com/graphcommerce-org/graphcommerce/commit/b6c68cda8836a1d0c78ef351899cec9ec1037385)]:
|
|
12
|
+
- @graphcommerce/next-ui@4.3.0
|
|
13
|
+
- @graphcommerce/magento-store@4.1.3
|
|
14
|
+
- @graphcommerce/framer-scroller@2.1.0
|
|
15
|
+
- @graphcommerce/magento-customer@4.1.5
|
|
16
|
+
|
|
3
17
|
## 4.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -18,7 +18,7 @@ import { CartTotalQuantityFragment } from './CartTotalQuantity.gql'
|
|
|
18
18
|
export type CartFabProps = {
|
|
19
19
|
icon?: React.ReactNode
|
|
20
20
|
sx?: SxProps<Theme>
|
|
21
|
-
}
|
|
21
|
+
} & Pick<FabProps, 'color' | 'size' | 'variant'>
|
|
22
22
|
|
|
23
23
|
type CartFabContentProps = CartFabProps & CartTotalQuantityFragment
|
|
24
24
|
|
|
@@ -58,7 +58,6 @@ function CartFabContent(props: CartFabContentProps) {
|
|
|
58
58
|
<PageLink href='/cart' passHref>
|
|
59
59
|
<MotionFab
|
|
60
60
|
className={classes.cart}
|
|
61
|
-
{...fabProps}
|
|
62
61
|
aria-label={t`Cart`}
|
|
63
62
|
color='inherit'
|
|
64
63
|
size='responsive'
|
|
@@ -68,6 +67,7 @@ function CartFabContent(props: CartFabContentProps) {
|
|
|
68
67
|
backgroundColor: `${theme.palette.background.paper} !important`,
|
|
69
68
|
},
|
|
70
69
|
})}
|
|
70
|
+
{...fabProps}
|
|
71
71
|
>
|
|
72
72
|
{total_quantity > 0 ? (
|
|
73
73
|
<DesktopHeaderBadge color='primary' variant='dot' overlap='circular'>
|
|
@@ -86,7 +86,7 @@ function CartFabContent(props: CartFabContentProps) {
|
|
|
86
86
|
position: 'absolute',
|
|
87
87
|
height: '100%',
|
|
88
88
|
width: '100%',
|
|
89
|
-
boxShadow:
|
|
89
|
+
boxShadow: 6,
|
|
90
90
|
top: 0,
|
|
91
91
|
[theme.breakpoints.down('md')]: {
|
|
92
92
|
opacity: '1 !important',
|
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.
|
|
5
|
+
"version": "4.2.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@graphcommerce/ecommerce-ui": "^1.0.3",
|
|
22
22
|
"@graphcommerce/framer-next-pages": "^3.1.2",
|
|
23
|
-
"@graphcommerce/framer-scroller": "^2.0
|
|
23
|
+
"@graphcommerce/framer-scroller": "^2.1.0",
|
|
24
24
|
"@graphcommerce/graphql": "^3.0.4",
|
|
25
25
|
"@graphcommerce/image": "^3.1.1",
|
|
26
|
-
"@graphcommerce/magento-customer": "^4.1.
|
|
26
|
+
"@graphcommerce/magento-customer": "^4.1.5",
|
|
27
27
|
"@graphcommerce/magento-graphql": "^3.0.4",
|
|
28
|
-
"@graphcommerce/magento-store": "^4.1.
|
|
29
|
-
"@graphcommerce/next-ui": "^4.
|
|
28
|
+
"@graphcommerce/magento-store": "^4.1.3",
|
|
29
|
+
"@graphcommerce/next-ui": "^4.3.0",
|
|
30
30
|
"@graphcommerce/react-hook-form": "^3.0.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|