@graphcommerce/magento-product 9.0.0-canary.72 → 9.0.0-canary.73
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
@@ -42,7 +42,7 @@ export function ProductFiltersProAggregations(props: ProductFiltersProAggregatio
|
|
42
42
|
(aggregation) => {
|
43
43
|
const filterType = filterTypes[aggregation.attribute_code]
|
44
44
|
if (!filterType) {
|
45
|
-
console.log('Filter not recognized', aggregation.attribute_code, filterTypes)
|
45
|
+
// console.log('Filter not recognized', aggregation.attribute_code, filterTypes)
|
46
46
|
return null
|
47
47
|
}
|
48
48
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { LazyHydrate, RenderType, extendableComponent, responsiveVal } from '@graphcommerce/next-ui'
|
2
2
|
import { Box, BoxProps, Breakpoint, Theme, useTheme } from '@mui/material'
|
3
|
-
import { ProductListItemFragment } from '../../Api/ProductListItem.gql'
|
4
3
|
import { AddProductsToCartForm } from '../AddProductsToCart'
|
5
4
|
import { ProductListItemProps } from '../ProductListItem/ProductListItem'
|
5
|
+
import { ProductListItemsFragment } from './ProductListItems.gql'
|
6
6
|
import { ProductListItemRenderer } from './renderer'
|
7
7
|
|
8
8
|
type ComponentState = {
|
@@ -30,11 +30,7 @@ type ColumnConfig = {
|
|
30
30
|
|
31
31
|
type ColumnsConfig = Partial<Record<Breakpoint, ColumnConfig>>
|
32
32
|
|
33
|
-
export type ProductItemsGridProps = {
|
34
|
-
items?:
|
35
|
-
| Array<(ProductListItemFragment & ProductListItemProps) | null | undefined>
|
36
|
-
| null
|
37
|
-
| undefined
|
33
|
+
export type ProductItemsGridProps = ProductListItemsFragment & {
|
38
34
|
renderers: ProductListItemRenderer
|
39
35
|
loadingEager?: number
|
40
36
|
title: string
|
@@ -44,7 +40,7 @@ export type ProductItemsGridProps = {
|
|
44
40
|
ComponentState
|
45
41
|
|
46
42
|
const slots = ['root'] as const
|
47
|
-
const name = 'ProductListItemsBase'
|
43
|
+
const name = 'ProductListItemsBase'
|
48
44
|
|
49
45
|
const { withState } = extendableComponent<ComponentState, typeof name, typeof slots>(name, slots)
|
50
46
|
|
@@ -52,7 +52,7 @@ export type AnyFilterType =
|
|
52
52
|
export function isFilterTypeEqual(filter?: unknown): filter is FilterEqualTypeInput {
|
53
53
|
return Boolean(
|
54
54
|
filter &&
|
55
|
-
('in' in (filter as FilterEqualTypeInput) || '
|
55
|
+
('in' in (filter as FilterEqualTypeInput) || 'eq' in (filter as FilterEqualTypeInput)),
|
56
56
|
)
|
57
57
|
}
|
58
58
|
|
@@ -72,7 +72,7 @@ export function toProductListParams(params: ProductFilterParams): ProductListPar
|
|
72
72
|
|
73
73
|
const newFilers = Object.fromEntries(
|
74
74
|
Object.entries(filters).filter(([, value]) => {
|
75
|
-
if (isFilterTypeEqual(value)) return Boolean(value.in)
|
75
|
+
if (isFilterTypeEqual(value)) return Boolean(value.in || value.eq)
|
76
76
|
if (isFilterTypeMatch(value)) return Boolean(value.match)
|
77
77
|
if (isFilterTypeRange(value)) return Boolean(value.from || value.to)
|
78
78
|
return false
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-product",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "9.0.0-canary.
|
5
|
+
"version": "9.0.0-canary.73",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -18,19 +18,19 @@
|
|
18
18
|
"typescript": "5.5.3"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
23
|
-
"@graphcommerce/framer-next-pages": "^9.0.0-canary.
|
24
|
-
"@graphcommerce/framer-scroller": "^9.0.0-canary.
|
25
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
26
|
-
"@graphcommerce/graphql-mesh": "^9.0.0-canary.
|
27
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
28
|
-
"@graphcommerce/magento-cart": "^9.0.0-canary.
|
29
|
-
"@graphcommerce/magento-category": "^9.0.0-canary.
|
30
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
31
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
32
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
21
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.73",
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.73",
|
23
|
+
"@graphcommerce/framer-next-pages": "^9.0.0-canary.73",
|
24
|
+
"@graphcommerce/framer-scroller": "^9.0.0-canary.73",
|
25
|
+
"@graphcommerce/graphql": "^9.0.0-canary.73",
|
26
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.73",
|
27
|
+
"@graphcommerce/image": "^9.0.0-canary.73",
|
28
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.73",
|
29
|
+
"@graphcommerce/magento-category": "^9.0.0-canary.73",
|
30
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.73",
|
31
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.73",
|
32
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.73",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.73",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|