@graphcommerce/magento-product 3.5.11 → 3.5.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.
@@ -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 { makeStyles, Theme } from '@material-ui/core'
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
- {/* eslint-disable-next-line react/no-danger */}
47
- {description && (
48
- <div
49
- className={classes.description}
50
- dangerouslySetInnerHTML={{ __html: description.html }}
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.11",
3
+ "version": "3.5.15",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,29 +14,29 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.3",
18
- "@graphcommerce/prettier-config-pwa": "^3.0.3",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.4",
18
+ "@graphcommerce/prettier-config-pwa": "^3.0.4",
19
19
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
20
  "@playwright/test": "^1.16.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.4.16",
24
- "@graphcommerce/framer-scroller": "^1.0.2",
25
- "@graphcommerce/graphql": "^2.105.3",
26
- "@graphcommerce/image": "^2.105.2",
27
- "@graphcommerce/magento-cart": "^3.5.11",
28
- "@graphcommerce/magento-store": "^3.2.10",
29
- "@graphcommerce/next-ui": "^3.14.2",
24
+ "@graphcommerce/framer-scroller": "^1.0.3",
25
+ "@graphcommerce/graphql": "^2.105.4",
26
+ "@graphcommerce/image": "^2.105.3",
27
+ "@graphcommerce/magento-cart": "^3.5.15",
28
+ "@graphcommerce/magento-store": "^3.2.14",
29
+ "@graphcommerce/next-ui": "^3.14.6",
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",
33
33
  "clsx": "^1.1.1",
34
34
  "framer-motion": "^4.1.17",
35
- "next": "^12.0.2",
35
+ "next": "^12.0.3",
36
36
  "react": "^17.0.2",
37
37
  "react-dom": "^17.0.2",
38
38
  "schema-dts": "^1.0.0",
39
39
  "type-fest": "^2.5.1"
40
40
  },
41
- "gitHead": "4ea4a44e313b7474597ca86982ddceb10423af73"
41
+ "gitHead": "16fea60d75deb4aa038a072a86b43771fb6595f8"
42
42
  }