@graphcommerce/magento-cart-items 8.1.0-canary.3 → 8.1.0-canary.5
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
|
@@ -1,8 +1,58 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 8.1.0-canary.
|
|
3
|
+
## 8.1.0-canary.5
|
|
4
4
|
|
|
5
|
-
## 8.
|
|
5
|
+
## 8.0.6-canary.4
|
|
6
|
+
|
|
7
|
+
## 8.0.6-canary.3
|
|
8
|
+
|
|
9
|
+
## 8.0.6-canary.2
|
|
10
|
+
|
|
11
|
+
## 8.0.6-canary.1
|
|
12
|
+
|
|
13
|
+
## 8.0.6-canary.0
|
|
14
|
+
|
|
15
|
+
## 8.0.5
|
|
16
|
+
|
|
17
|
+
## 8.0.5-canary.10
|
|
18
|
+
|
|
19
|
+
## 8.0.5-canary.9
|
|
20
|
+
|
|
21
|
+
## 8.0.5-canary.8
|
|
22
|
+
|
|
23
|
+
## 8.0.5-canary.7
|
|
24
|
+
|
|
25
|
+
## 8.0.5-canary.6
|
|
26
|
+
|
|
27
|
+
## 8.0.5-canary.5
|
|
28
|
+
|
|
29
|
+
## 8.0.5-canary.4
|
|
30
|
+
|
|
31
|
+
## 8.0.5-canary.3
|
|
32
|
+
|
|
33
|
+
## 8.0.5-canary.2
|
|
34
|
+
|
|
35
|
+
## 8.0.5-canary.1
|
|
36
|
+
|
|
37
|
+
## 8.0.5-canary.0
|
|
38
|
+
|
|
39
|
+
## 8.0.4
|
|
40
|
+
|
|
41
|
+
## 8.0.4-canary.1
|
|
42
|
+
|
|
43
|
+
## 8.0.4-canary.0
|
|
44
|
+
|
|
45
|
+
## 8.0.3
|
|
46
|
+
|
|
47
|
+
## 8.0.3-canary.6
|
|
48
|
+
|
|
49
|
+
## 8.0.3-canary.5
|
|
50
|
+
|
|
51
|
+
## 8.0.3-canary.4
|
|
52
|
+
|
|
53
|
+
## 8.0.3-canary.3
|
|
54
|
+
|
|
55
|
+
## 8.0.3-canary.2
|
|
6
56
|
|
|
7
57
|
## 8.0.3-canary.1
|
|
8
58
|
|
|
@@ -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.1.0-canary.
|
|
5
|
+
"version": "8.1.0-canary.5",
|
|
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.1.0-canary.
|
|
16
|
-
"@graphcommerce/graphql": "^8.1.0-canary.
|
|
17
|
-
"@graphcommerce/image": "^8.1.0-canary.
|
|
18
|
-
"@graphcommerce/magento-cart": "^8.1.0-canary.
|
|
19
|
-
"@graphcommerce/magento-customer": "^8.1.0-canary.
|
|
20
|
-
"@graphcommerce/magento-product": "^8.1.0-canary.
|
|
21
|
-
"@graphcommerce/magento-store": "^8.1.0-canary.
|
|
22
|
-
"@graphcommerce/next-ui": "^8.1.0-canary.
|
|
23
|
-
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.
|
|
24
|
-
"@graphcommerce/react-hook-form": "^8.1.0-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^8.1.0-canary.5",
|
|
16
|
+
"@graphcommerce/graphql": "^8.1.0-canary.5",
|
|
17
|
+
"@graphcommerce/image": "^8.1.0-canary.5",
|
|
18
|
+
"@graphcommerce/magento-cart": "^8.1.0-canary.5",
|
|
19
|
+
"@graphcommerce/magento-customer": "^8.1.0-canary.5",
|
|
20
|
+
"@graphcommerce/magento-product": "^8.1.0-canary.5",
|
|
21
|
+
"@graphcommerce/magento-store": "^8.1.0-canary.5",
|
|
22
|
+
"@graphcommerce/next-ui": "^8.1.0-canary.5",
|
|
23
|
+
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.5",
|
|
24
|
+
"@graphcommerce/react-hook-form": "^8.1.0-canary.5",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.5",
|
|
26
26
|
"@lingui/core": "^4.2.1",
|
|
27
27
|
"@lingui/macro": "^4.2.1",
|
|
28
28
|
"@lingui/react": "^4.2.1",
|
|
@@ -31,5 +31,8 @@
|
|
|
31
31
|
"next": "*",
|
|
32
32
|
"react": "^18.2.0",
|
|
33
33
|
"react-dom": "^18.2.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"type-fest": "^4.15.0"
|
|
34
37
|
}
|
|
35
38
|
}
|