@graphcommerce/magento-product-grouped 9.1.0-canary.39 → 9.1.0-canary.41
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 +8 -0
- package/GroupedProducts/GroupedProductActionCard.tsx +10 -36
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.41
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2530](https://github.com/graphcommerce-org/graphcommerce/pull/2530) [`7f10a7e`](https://github.com/graphcommerce-org/graphcommerce/commit/7f10a7e1f862588c7d866e1c845f164f8f6a86ad) - Use ProductListPrice and AddProductsToCartQuantity for grouped product lines ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 9.1.0-canary.40
|
|
10
|
+
|
|
3
11
|
## 9.1.0-canary.39
|
|
4
12
|
|
|
5
13
|
## 9.1.0-canary.38
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { NumberFieldElement } from '@graphcommerce/ecommerce-ui'
|
|
2
1
|
import { Image } from '@graphcommerce/image'
|
|
3
|
-
import type { AddToCartItemSelector } from '@graphcommerce/magento-product
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import type { AddToCartItemSelector } from '@graphcommerce/magento-product'
|
|
3
|
+
import {
|
|
4
|
+
AddProductsToCartQuantity,
|
|
5
|
+
ProductListPrice,
|
|
6
|
+
useFormAddProductsToCart,
|
|
7
|
+
} from '@graphcommerce/magento-product'
|
|
6
8
|
import type { ActionCardProps } from '@graphcommerce/next-ui'
|
|
7
9
|
import { ActionCard, actionCardImageSizes, responsiveVal } from '@graphcommerce/next-ui'
|
|
8
|
-
import {
|
|
10
|
+
import { Link } from '@mui/material'
|
|
9
11
|
import type { GroupedProductFragment } from '../GroupedProduct.gql'
|
|
10
12
|
|
|
11
13
|
type GroupedProductItem = NonNullable<
|
|
@@ -122,42 +124,14 @@ export function GroupedProductActionCard(props: GroupedProductActionCardProps) {
|
|
|
122
124
|
)
|
|
123
125
|
}
|
|
124
126
|
secondaryAction={
|
|
125
|
-
<
|
|
127
|
+
<AddProductsToCartQuantity
|
|
126
128
|
size='small'
|
|
127
|
-
inputProps={{ min: 0 }}
|
|
128
129
|
defaultValue={1}
|
|
129
|
-
|
|
130
|
-
sx={{
|
|
131
|
-
width: responsiveVal(80, 120),
|
|
132
|
-
mt: 2,
|
|
133
|
-
'& .MuiFormHelperText-root': {
|
|
134
|
-
margin: 1,
|
|
135
|
-
width: '100%',
|
|
136
|
-
},
|
|
137
|
-
}}
|
|
138
|
-
name={`cartItems.${index}.quantity`}
|
|
130
|
+
index={index}
|
|
139
131
|
onMouseDown={(e) => e.stopPropagation()}
|
|
140
132
|
/>
|
|
141
133
|
}
|
|
142
|
-
price={
|
|
143
|
-
<Box>
|
|
144
|
-
<Box>
|
|
145
|
-
<Money {...price_range.minimum_price.final_price} />
|
|
146
|
-
</Box>
|
|
147
|
-
{price_range.minimum_price.final_price.value !==
|
|
148
|
-
price_range.minimum_price.regular_price.value && (
|
|
149
|
-
<Box
|
|
150
|
-
component='span'
|
|
151
|
-
sx={{
|
|
152
|
-
textDecoration: 'line-through',
|
|
153
|
-
color: 'text.disabled',
|
|
154
|
-
}}
|
|
155
|
-
>
|
|
156
|
-
<Money {...price_range.minimum_price.regular_price} />
|
|
157
|
-
</Box>
|
|
158
|
-
)}
|
|
159
|
-
</Box>
|
|
160
|
-
}
|
|
134
|
+
price={<ProductListPrice {...price_range.minimum_price} />}
|
|
161
135
|
{...rest}
|
|
162
136
|
/>
|
|
163
137
|
</>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product-grouped",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.41",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
17
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
18
|
-
"@graphcommerce/image": "^9.1.0-canary.
|
|
19
|
-
"@graphcommerce/magento-cart": "^9.1.0-canary.
|
|
20
|
-
"@graphcommerce/magento-product": "^9.1.0-canary.
|
|
21
|
-
"@graphcommerce/magento-product-simple": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/magento-product-virtual": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/magento-store": "^9.1.0-canary.
|
|
24
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.41",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.41",
|
|
17
|
+
"@graphcommerce/graphql": "^9.1.0-canary.41",
|
|
18
|
+
"@graphcommerce/image": "^9.1.0-canary.41",
|
|
19
|
+
"@graphcommerce/magento-cart": "^9.1.0-canary.41",
|
|
20
|
+
"@graphcommerce/magento-product": "^9.1.0-canary.41",
|
|
21
|
+
"@graphcommerce/magento-product-simple": "^9.1.0-canary.41",
|
|
22
|
+
"@graphcommerce/magento-product-virtual": "^9.1.0-canary.41",
|
|
23
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.41",
|
|
24
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.41",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.41",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.41",
|
|
27
27
|
"@lingui/core": "^4.2.1",
|
|
28
28
|
"@lingui/macro": "^4.2.1",
|
|
29
29
|
"@lingui/react": "^4.2.1",
|