@graphcommerce/magento-product-grouped 9.0.4-canary.8 → 9.1.0-canary.15
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 +18 -0
- package/GroupedProduct.graphql +4 -0
- package/GroupedProducts/GroupedProductActionCard.tsx +6 -2
- package/GroupedProducts/GroupedProducts.tsx +2 -2
- package/index.ts +0 -1
- package/package.json +13 -13
- package/GroupedProductPage.graphql +0 -3
- package/ProductPageGroupedQueryFragment.graphql +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2493](https://github.com/graphcommerce-org/graphcommerce/pull/2493) [`1d87dc1`](https://github.com/graphcommerce-org/graphcommerce/commit/1d87dc1ac00010df721547d6e62cb49f5bd450eb) - Use narrower types for grouped products ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 9.0.4-canary.14
|
|
10
|
+
|
|
11
|
+
## 9.0.4-canary.13
|
|
12
|
+
|
|
13
|
+
## 9.0.4-canary.12
|
|
14
|
+
|
|
15
|
+
## 9.0.4-canary.11
|
|
16
|
+
|
|
17
|
+
## 9.0.4-canary.10
|
|
18
|
+
|
|
19
|
+
## 9.0.4-canary.9
|
|
20
|
+
|
|
3
21
|
## 9.0.4-canary.8
|
|
4
22
|
|
|
5
23
|
## 9.0.4-canary.7
|
package/GroupedProduct.graphql
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { NumberFieldElement } from '@graphcommerce/ecommerce-ui'
|
|
2
2
|
import { Image } from '@graphcommerce/image'
|
|
3
|
-
import type { ProductPageItemFragment } from '@graphcommerce/magento-product/Api/ProductPageItem.gql'
|
|
4
3
|
import type { AddToCartItemSelector } from '@graphcommerce/magento-product/components'
|
|
5
4
|
import { useFormAddProductsToCart } from '@graphcommerce/magento-product/components'
|
|
6
5
|
import { Money } from '@graphcommerce/magento-store'
|
|
7
6
|
import type { ActionCardProps } from '@graphcommerce/next-ui'
|
|
8
7
|
import { ActionCard, actionCardImageSizes, responsiveVal } from '@graphcommerce/next-ui'
|
|
9
8
|
import { Box, Link } from '@mui/material'
|
|
9
|
+
import type { GroupedProductFragment } from '../GroupedProduct.gql'
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
type GroupedProductItem = NonNullable<
|
|
12
|
+
NonNullable<GroupedProductFragment['items']>[number]
|
|
13
|
+
>['product']
|
|
14
|
+
|
|
15
|
+
export type GroupedProductActionCardProps = GroupedProductItem &
|
|
12
16
|
Omit<ActionCardProps, 'value' | 'image' | 'price' | 'title' | 'action'> &
|
|
13
17
|
AddToCartItemSelector
|
|
14
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ActionCardLayout, filterNonNullableKeys } from '@graphcommerce/next-ui'
|
|
2
2
|
import { useMemo } from 'react'
|
|
3
|
-
import type {
|
|
3
|
+
import type { GroupedProductFragment } from '../GroupedProduct.gql'
|
|
4
4
|
import { GroupedProductActionCard } from './GroupedProductActionCard'
|
|
5
5
|
|
|
6
6
|
export type GroupedProductsProps = {
|
|
7
|
-
product:
|
|
7
|
+
product: GroupedProductFragment
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export function GroupedProducts(props: GroupedProductsProps) {
|
package/index.ts
CHANGED
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.0
|
|
5
|
+
"version": "9.1.0-canary.15",
|
|
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.0
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0
|
|
17
|
-
"@graphcommerce/graphql": "^9.0
|
|
18
|
-
"@graphcommerce/image": "^9.0
|
|
19
|
-
"@graphcommerce/magento-cart": "^9.0
|
|
20
|
-
"@graphcommerce/magento-product": "^9.0
|
|
21
|
-
"@graphcommerce/magento-product-simple": "^9.0
|
|
22
|
-
"@graphcommerce/magento-product-virtual": "^9.0
|
|
23
|
-
"@graphcommerce/magento-store": "^9.0
|
|
24
|
-
"@graphcommerce/next-ui": "^9.0
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^9.0
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "^9.0
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.15",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.15",
|
|
17
|
+
"@graphcommerce/graphql": "^9.1.0-canary.15",
|
|
18
|
+
"@graphcommerce/image": "^9.1.0-canary.15",
|
|
19
|
+
"@graphcommerce/magento-cart": "^9.1.0-canary.15",
|
|
20
|
+
"@graphcommerce/magento-product": "^9.1.0-canary.15",
|
|
21
|
+
"@graphcommerce/magento-product-simple": "^9.1.0-canary.15",
|
|
22
|
+
"@graphcommerce/magento-product-virtual": "^9.1.0-canary.15",
|
|
23
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.15",
|
|
24
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.15",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.15",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.15",
|
|
27
27
|
"@lingui/core": "^4.2.1",
|
|
28
28
|
"@lingui/macro": "^4.2.1",
|
|
29
29
|
"@lingui/react": "^4.2.1",
|