@graphcommerce/magento-product 3.5.13 → 3.5.17
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.
|
@@ -38,18 +38,14 @@ export type ProductItemsGridProps = {
|
|
|
38
38
|
renderers: ProductListItemRenderer
|
|
39
39
|
loadingEager?: number
|
|
40
40
|
size?: 'normal' | 'small'
|
|
41
|
-
} & UseStyles<typeof useStyles>
|
|
42
|
-
JSX.IntrinsicElements['div']
|
|
41
|
+
} & UseStyles<typeof useStyles>
|
|
43
42
|
|
|
44
43
|
export default function ProductListItemsBase(props: ProductItemsGridProps) {
|
|
45
44
|
const { items, renderers, loadingEager = 0, size = 'normal', ...divProps } = props
|
|
46
45
|
const classes = useStyles(props)
|
|
47
46
|
|
|
48
47
|
return (
|
|
49
|
-
<div
|
|
50
|
-
{...divProps}
|
|
51
|
-
className={clsx(classes.productList, classes[`productList${size}`], divProps.className)}
|
|
52
|
-
>
|
|
48
|
+
<div {...divProps} className={clsx(classes.productList, classes[`productList${size}`])}>
|
|
53
49
|
{items?.map((item, idx) =>
|
|
54
50
|
item ? (
|
|
55
51
|
<RenderType
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColumnTwoWithTop, ColumnTwoWithTopProps } from '@graphcommerce/next-ui'
|
|
2
|
+
import { makeStyles, Theme, Typography } from '@material-ui/core'
|
|
2
3
|
import React from 'react'
|
|
3
4
|
import { ProductPageDescriptionFragment } from './ProductPageDescription.gql'
|
|
4
5
|
|
|
@@ -35,21 +36,31 @@ const useStyles = makeStyles((theme: Theme) => ({
|
|
|
35
36
|
},
|
|
36
37
|
}))
|
|
37
38
|
|
|
38
|
-
export type ProductPageDescriptionProps = ProductPageDescriptionFragment
|
|
39
|
+
export type ProductPageDescriptionProps = ProductPageDescriptionFragment &
|
|
40
|
+
Omit<ColumnTwoWithTopProps, 'top' | 'left'>
|
|
39
41
|
|
|
40
42
|
export default function ProductPageDescription(props: ProductPageDescriptionProps) {
|
|
41
43
|
const classes = useStyles()
|
|
42
|
-
const { description } = props
|
|
44
|
+
const { description, name, right } = props
|
|
43
45
|
|
|
44
46
|
return (
|
|
45
47
|
<>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
<ColumnTwoWithTop
|
|
49
|
+
top={
|
|
50
|
+
<Typography variant='h1' component='h2'>
|
|
51
|
+
{name}
|
|
52
|
+
</Typography>
|
|
53
|
+
}
|
|
54
|
+
left={
|
|
55
|
+
description && (
|
|
56
|
+
<div
|
|
57
|
+
className={classes.description}
|
|
58
|
+
dangerouslySetInnerHTML={{ __html: description.html }}
|
|
59
|
+
/>
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
right={right}
|
|
63
|
+
/>
|
|
53
64
|
</>
|
|
54
65
|
)
|
|
55
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-product",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.17",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@graphcommerce/framer-scroller": "^1.0.3",
|
|
25
25
|
"@graphcommerce/graphql": "^2.105.4",
|
|
26
26
|
"@graphcommerce/image": "^2.105.3",
|
|
27
|
-
"@graphcommerce/magento-cart": "^3.
|
|
28
|
-
"@graphcommerce/magento-store": "^3.2.
|
|
29
|
-
"@graphcommerce/next-ui": "^3.14.
|
|
27
|
+
"@graphcommerce/magento-cart": "^3.6.1",
|
|
28
|
+
"@graphcommerce/magento-store": "^3.2.16",
|
|
29
|
+
"@graphcommerce/next-ui": "^3.14.8",
|
|
30
30
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
32
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"schema-dts": "^1.0.0",
|
|
39
39
|
"type-fest": "^2.5.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "4e309955dd02ff7c4da55483871edb689f2a6aa3"
|
|
42
42
|
}
|