@graphcommerce/magento-product 4.0.5 → 4.1.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 +253 -444
- package/components/JsonLdProduct/{index.tsx → jsonLdProduct.tsx} +0 -0
- package/components/ProductAddToCart/ProductAddToCart.tsx +1 -1
- package/components/ProductCustomizable/ProductCustomizable.graphql +2 -1
- package/components/ProductListFilters/FilterCheckboxType.tsx +6 -4
- package/components/ProductListFilters/FilterEqualType.tsx +2 -2
- package/components/ProductListFilters/FilterRangeType.tsx +9 -26
- package/components/ProductListFilters/ProductListFilters.tsx +5 -5
- package/components/ProductListFiltersContainer/{index.tsx → ProductListFiltersContainer.tsx} +24 -20
- package/components/ProductListItem/{index.tsx → ProductListItem.tsx} +2 -2
- package/components/ProductListItems/ProductListItems.tsx +6 -0
- package/components/ProductListItems/ProductListItemsBase.tsx +2 -2
- package/components/ProductListItems/ProductListParamsProvider.tsx +1 -1
- package/components/ProductListItems/filterTypes.tsx +1 -1
- package/components/ProductListItems/getFilterTypes.ts +1 -2
- package/components/ProductListItems/renderer.tsx +2 -4
- package/components/ProductListLink/ProductListLink.tsx +35 -35
- package/components/ProductListPagination/{index.tsx → ProductListPagination.tsx} +3 -7
- package/components/ProductListPrice/{index.tsx → ProductListPrice.tsx} +1 -1
- package/components/ProductListSort/{index.tsx → ProductListSort.tsx} +2 -2
- package/components/ProductPageCategory/{index.ts → productPageCategory.ts} +1 -1
- package/components/ProductPageDescription/ProductPageDescription.tsx +72 -0
- package/components/ProductPageGallery/ProductImage.tsx +1 -1
- package/components/ProductPageGallery/{index.tsx → ProductPageGallery.tsx} +1 -1
- package/components/ProductPageGallery/ProductVideo.tsx +1 -2
- package/components/ProductPageMeta/{index.tsx → ProductPageMeta.tsx} +1 -2
- package/components/ProductShortDescription/{index.tsx → ProductShortDescription.tsx} +1 -1
- package/components/ProductSidebarDelivery/{index.tsx → ProductSidebarDelivery.tsx} +1 -1
- package/components/ProductSpecs/{index.tsx → ProductSpecs.tsx} +1 -1
- package/components/ProductWeight/{index.tsx → ProductWeight.tsx} +1 -1
- package/components/index.ts +16 -26
- package/index.ts +0 -2
- package/package.json +10 -10
- package/components/ProductListItems/index.tsx +0 -6
- package/components/ProductPageDescription/index.tsx +0 -63
package/components/index.ts
CHANGED
|
@@ -1,40 +1,30 @@
|
|
|
1
|
-
export * from './JsonLdProduct'
|
|
1
|
+
export * from './JsonLdProduct/jsonLdProduct'
|
|
2
2
|
export * from './ProductAddToCart/ProductAddToCart'
|
|
3
|
-
export { default as ProductAddToCart } from './ProductAddToCart/ProductAddToCart'
|
|
4
3
|
export * from './ProductList/ProductList.gql'
|
|
5
4
|
export * from './ProductListCount/ProductListCount'
|
|
6
5
|
export * from './ProductListFilters/ProductListFilters'
|
|
7
|
-
export
|
|
8
|
-
export * from './
|
|
9
|
-
export
|
|
10
|
-
export * from './ProductListItem'
|
|
11
|
-
export { default as ProductListItem } from './ProductListItem'
|
|
12
|
-
export { default as ProductListItems } from './ProductListItems'
|
|
6
|
+
export * from './ProductListFiltersContainer/ProductListFiltersContainer'
|
|
7
|
+
export * from './ProductListItem/ProductListItem'
|
|
8
|
+
export * from './ProductListItems/ProductListItems'
|
|
13
9
|
export * from './ProductListItems/filteredProductList'
|
|
14
10
|
export * from './ProductListItems/filterTypes'
|
|
15
11
|
export * from './ProductListItems/getFilterTypes'
|
|
16
12
|
export * from './ProductListItems/ProductListItems.gql'
|
|
17
13
|
export * from './ProductListItems/ProductListItemsBase'
|
|
18
|
-
export
|
|
19
|
-
export { default as ProductListParamsProvider } from './ProductListItems/ProductListParamsProvider'
|
|
14
|
+
export * from './ProductListItems/ProductListParamsProvider'
|
|
20
15
|
export * from './ProductListItems/renderer'
|
|
21
16
|
export * from './ProductListLink/ProductListLink'
|
|
22
|
-
export
|
|
23
|
-
export * from './
|
|
24
|
-
export
|
|
25
|
-
export * from './
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export * from './ProductPageDescription'
|
|
29
|
-
export { default as ProductPageDescription } from './ProductPageDescription'
|
|
30
|
-
export { default as ProductPageGallery } from './ProductPageGallery'
|
|
31
|
-
export { default as ProductPageMeta } from './ProductPageMeta'
|
|
17
|
+
export * from './ProductListPagination/ProductListPagination'
|
|
18
|
+
export * from './ProductListSort/ProductListSort'
|
|
19
|
+
export * from './ProductPageCategory/productPageCategory'
|
|
20
|
+
export * from './ProductPageDescription/ProductPageDescription'
|
|
21
|
+
export * from './ProductPageGallery/ProductPageGallery'
|
|
22
|
+
export * from './ProductPageMeta/ProductPageMeta'
|
|
32
23
|
export * from './ProductRelated/RelatedProducts.gql'
|
|
33
|
-
export
|
|
24
|
+
export * from './ProductShortDescription/ProductShortDescription'
|
|
34
25
|
export * from './ProductShortDescription/ProductShortDescription.gql'
|
|
35
|
-
export
|
|
36
|
-
export * from './ProductSpecs'
|
|
37
|
-
export
|
|
38
|
-
export { getProductStaticPaths } from './ProductStaticPaths/getProductStaticPaths'
|
|
26
|
+
export * from './ProductSidebarDelivery/ProductSidebarDelivery'
|
|
27
|
+
export * from './ProductSpecs/ProductSpecs'
|
|
28
|
+
export * from './ProductStaticPaths/getProductStaticPaths'
|
|
39
29
|
export * from './ProductUpsells/UpsellProducts.gql'
|
|
40
|
-
export
|
|
30
|
+
export * from './ProductWeight/ProductWeight'
|
package/index.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './components'
|
|
2
|
-
|
|
3
2
|
export * from './Api/ProductListItem.gql'
|
|
4
3
|
export * from './Api/ProductPageItem.gql'
|
|
5
|
-
|
|
6
4
|
export * from './hooks/useProductLink'
|
|
7
5
|
export * from './hooks/useProductListLinkReplace'
|
|
8
6
|
export * from './hooks/useProductListParamsContext'
|
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": "4.
|
|
5
|
+
"version": "4.1.1",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.5",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.3",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.19.
|
|
18
|
+
"@playwright/test": "^1.19.2"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/framer-scroller": "^2.0
|
|
22
|
-
"@graphcommerce/graphql": "^3.0.
|
|
23
|
-
"@graphcommerce/image": "^3.1.
|
|
24
|
-
"@graphcommerce/magento-cart": "^4.
|
|
25
|
-
"@graphcommerce/magento-store": "^4.1.
|
|
26
|
-
"@graphcommerce/next-ui": "^4.
|
|
21
|
+
"@graphcommerce/framer-scroller": "^2.1.0",
|
|
22
|
+
"@graphcommerce/graphql": "^3.0.4",
|
|
23
|
+
"@graphcommerce/image": "^3.1.1",
|
|
24
|
+
"@graphcommerce/magento-cart": "^4.2.0",
|
|
25
|
+
"@graphcommerce/magento-store": "^4.1.3",
|
|
26
|
+
"@graphcommerce/next-ui": "^4.3.0",
|
|
27
27
|
"schema-dts": "^1.1.0",
|
|
28
28
|
"type-fest": "^2.12.0"
|
|
29
29
|
},
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import ProductListItemsBase, { ProductItemsGridProps } from './ProductListItemsBase'
|
|
2
|
-
import renderer from './renderer'
|
|
3
|
-
|
|
4
|
-
export default function ProductListItems(props: Omit<ProductItemsGridProps, 'renderers'>) {
|
|
5
|
-
return <ProductListItemsBase renderers={renderer} {...props} />
|
|
6
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ColumnTwoWithTop,
|
|
3
|
-
ColumnTwoWithTopProps,
|
|
4
|
-
extendableComponent,
|
|
5
|
-
} from '@graphcommerce/next-ui'
|
|
6
|
-
import { Box, SxProps, Theme, Typography } from '@mui/material'
|
|
7
|
-
import { ProductPageDescriptionFragment } from './ProductPageDescription.gql'
|
|
8
|
-
|
|
9
|
-
export type ProductPageDescriptionProps = ProductPageDescriptionFragment &
|
|
10
|
-
Omit<ColumnTwoWithTopProps, 'top' | 'left'> & { sx?: SxProps<Theme> }
|
|
11
|
-
|
|
12
|
-
const { classes } = extendableComponent('ProductPageDescription', ['root', 'description'] as const)
|
|
13
|
-
|
|
14
|
-
export default function ProductPageDescription(props: ProductPageDescriptionProps) {
|
|
15
|
-
const { description, name, right, sx = [] } = props
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<ColumnTwoWithTop
|
|
19
|
-
className={classes.root}
|
|
20
|
-
sx={sx}
|
|
21
|
-
top={
|
|
22
|
-
<Typography variant='h1' component='h2'>
|
|
23
|
-
{name}
|
|
24
|
-
</Typography>
|
|
25
|
-
}
|
|
26
|
-
left={
|
|
27
|
-
description && (
|
|
28
|
-
<Box
|
|
29
|
-
className={classes.description}
|
|
30
|
-
// eslint-disable-next-line react/no-danger
|
|
31
|
-
dangerouslySetInnerHTML={{ __html: description.html }}
|
|
32
|
-
sx={(theme) => ({
|
|
33
|
-
'& p:first-of-type': {
|
|
34
|
-
marginTop: 0,
|
|
35
|
-
},
|
|
36
|
-
'& p, & li': {
|
|
37
|
-
typography: 'body1',
|
|
38
|
-
fontWeight: 400,
|
|
39
|
-
[theme.breakpoints.up('md')]: {
|
|
40
|
-
typography: 'h3',
|
|
41
|
-
fontWeight: 400,
|
|
42
|
-
'@supports (font-variation-settings: normal)': {
|
|
43
|
-
fontVariationSettings: "'wght' 420",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
'& ul': {
|
|
48
|
-
padding: 0,
|
|
49
|
-
margin: 0,
|
|
50
|
-
display: 'inline',
|
|
51
|
-
listStyleType: 'none',
|
|
52
|
-
},
|
|
53
|
-
'& li': {
|
|
54
|
-
display: 'inline',
|
|
55
|
-
},
|
|
56
|
-
})}
|
|
57
|
-
/>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
right={right}
|
|
61
|
-
/>
|
|
62
|
-
)
|
|
63
|
-
}
|