@graphcommerce/magento-cart-items 8.0.5-canary.0 → 8.0.5-canary.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
|
@@ -133,16 +133,7 @@ export function CartItemActionCard(props: CartItemActionCardProps) {
|
|
|
133
133
|
</>
|
|
134
134
|
}
|
|
135
135
|
price={<Money {...(inclTaxes ? prices?.row_total_including_tax : prices?.row_total)} />}
|
|
136
|
-
action={
|
|
137
|
-
!readOnly && (
|
|
138
|
-
<RemoveItemFromCart
|
|
139
|
-
uid={uid}
|
|
140
|
-
quantity={quantity}
|
|
141
|
-
product={product}
|
|
142
|
-
buttonProps={{ size }}
|
|
143
|
-
/>
|
|
144
|
-
)
|
|
145
|
-
}
|
|
136
|
+
action={!readOnly && <RemoveItemFromCart {...cartItem} buttonProps={{ size }} />}
|
|
146
137
|
size={size}
|
|
147
138
|
after={filterNonNullableKeys(errors).map((error) => (
|
|
148
139
|
<Box sx={{ color: 'error.main', typography: 'caption' }} key={error.message}>
|
|
@@ -2,10 +2,11 @@ import { ApolloCartErrorSnackbar, useFormGqlMutationCart } from '@graphcommerce/
|
|
|
2
2
|
import { Button, ButtonProps } from '@graphcommerce/next-ui'
|
|
3
3
|
import { Trans } from '@lingui/react'
|
|
4
4
|
import { SxProps, Theme, styled } from '@mui/material'
|
|
5
|
+
import type { DistributedOmit } from 'type-fest'
|
|
5
6
|
import { CartItemFragment } from '../../Api/CartItem.gql'
|
|
6
7
|
import { RemoveItemFromCartDocument } from './RemoveItemFromCart.gql'
|
|
7
8
|
|
|
8
|
-
export type RemoveItemFromCartProps =
|
|
9
|
+
export type RemoveItemFromCartProps = DistributedOmit<CartItemFragment, '__typename'> & {
|
|
9
10
|
sx?: SxProps<Theme>
|
|
10
11
|
buttonProps?: Omit<ButtonProps, 'type' | 'loading'>
|
|
11
12
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-items",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "8.0.5-canary.
|
|
5
|
+
"version": "8.0.5-canary.1",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^8.0.5-canary.
|
|
16
|
-
"@graphcommerce/graphql": "^8.0.5-canary.
|
|
17
|
-
"@graphcommerce/image": "^8.0.5-canary.
|
|
18
|
-
"@graphcommerce/magento-cart": "^8.0.5-canary.
|
|
19
|
-
"@graphcommerce/magento-customer": "^8.0.5-canary.
|
|
20
|
-
"@graphcommerce/magento-product": "^8.0.5-canary.
|
|
21
|
-
"@graphcommerce/magento-store": "^8.0.5-canary.
|
|
22
|
-
"@graphcommerce/next-ui": "^8.0.5-canary.
|
|
23
|
-
"@graphcommerce/prettier-config-pwa": "^8.0.5-canary.
|
|
24
|
-
"@graphcommerce/react-hook-form": "^8.0.5-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "^8.0.5-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^8.0.5-canary.1",
|
|
16
|
+
"@graphcommerce/graphql": "^8.0.5-canary.1",
|
|
17
|
+
"@graphcommerce/image": "^8.0.5-canary.1",
|
|
18
|
+
"@graphcommerce/magento-cart": "^8.0.5-canary.1",
|
|
19
|
+
"@graphcommerce/magento-customer": "^8.0.5-canary.1",
|
|
20
|
+
"@graphcommerce/magento-product": "^8.0.5-canary.1",
|
|
21
|
+
"@graphcommerce/magento-store": "^8.0.5-canary.1",
|
|
22
|
+
"@graphcommerce/next-ui": "^8.0.5-canary.1",
|
|
23
|
+
"@graphcommerce/prettier-config-pwa": "^8.0.5-canary.1",
|
|
24
|
+
"@graphcommerce/react-hook-form": "^8.0.5-canary.1",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "^8.0.5-canary.1",
|
|
26
26
|
"@lingui/core": "^4.2.1",
|
|
27
27
|
"@lingui/macro": "^4.2.1",
|
|
28
28
|
"@lingui/react": "^4.2.1",
|