@graphcommerce/magento-category 3.5.1 → 3.5.2
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
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.5.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.5.1...@graphcommerce/magento-category@3.5.2) (2021-12-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* spacing of LayoutTItle ([7afcd31](https://github.com/ho-nl/m2-pwa/commit/7afcd3163d16e902cf2ff7917f56ee6a8798f55b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.5.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.4.4...@graphcommerce/magento-category@3.5.0) (2021-12-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseStyles } from '@graphcommerce/next-ui'
|
|
2
|
-
import { makeStyles, Theme
|
|
2
|
+
import { makeStyles, Theme } from '@material-ui/core'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
import { CategoryDescriptionFragment } from './CategoryDescription.gql'
|
|
5
5
|
|
|
@@ -20,7 +20,6 @@ const useStyles = makeStyles(
|
|
|
20
20
|
[theme.breakpoints.up('xl')]: {
|
|
21
21
|
maxWidth: '30%',
|
|
22
22
|
},
|
|
23
|
-
|
|
24
23
|
...theme.typography.subtitle1,
|
|
25
24
|
},
|
|
26
25
|
}),
|
|
@@ -32,6 +31,7 @@ export default function CategoryDescription(props: CategoryDescriptionProps) {
|
|
|
32
31
|
const classes = useStyles(props)
|
|
33
32
|
|
|
34
33
|
return description ? (
|
|
34
|
+
// eslint-disable-next-line react/no-danger
|
|
35
35
|
<div {...divProps} className={classes.root} dangerouslySetInnerHTML={{ __html: description }} />
|
|
36
36
|
) : null
|
|
37
37
|
}
|
|
@@ -16,7 +16,7 @@ const useStyles = makeStyles(
|
|
|
16
16
|
`,
|
|
17
17
|
gridTemplateRows: 'auto auto 1fr',
|
|
18
18
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
19
|
-
marginBottom: theme.spacings.
|
|
19
|
+
marginBottom: theme.spacings.xxl,
|
|
20
20
|
paddingBottom: theme.page.vertical,
|
|
21
21
|
[theme.breakpoints.up('md')]: {
|
|
22
22
|
rowGap: theme.spacings.md,
|
|
@@ -27,7 +27,7 @@ const useStyles = makeStyles(
|
|
|
27
27
|
categories: {
|
|
28
28
|
gridArea: 'categories',
|
|
29
29
|
display: 'grid',
|
|
30
|
-
gridColumnGap: theme.spacings.
|
|
30
|
+
gridColumnGap: theme.spacings.xxl,
|
|
31
31
|
gridRowGap: theme.spacings.lg,
|
|
32
32
|
height: 'min-content',
|
|
33
33
|
maxWidth: '80vw',
|
|
@@ -96,32 +96,30 @@ export default function CategoryHeroNav({ children, title, asset }: CategoryHero
|
|
|
96
96
|
const classes = useStyles()
|
|
97
97
|
|
|
98
98
|
return (
|
|
99
|
-
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
<div
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
</Row>
|
|
125
|
-
</>
|
|
99
|
+
<Row className={classes.wrapper} maxWidth={false}>
|
|
100
|
+
<div className={classes.title}>{title}</div>
|
|
101
|
+
<div className={classes.categories}>
|
|
102
|
+
{children?.map((category) => {
|
|
103
|
+
if (!category?.url_path || !category.uid || !category.name) return null
|
|
104
|
+
return (
|
|
105
|
+
<ProductListLink
|
|
106
|
+
underline='none'
|
|
107
|
+
color='textPrimary'
|
|
108
|
+
url={category.url_path}
|
|
109
|
+
filters={{}}
|
|
110
|
+
sort={{}}
|
|
111
|
+
key={category.uid}
|
|
112
|
+
>
|
|
113
|
+
<Typography variant='h4' component='span'>
|
|
114
|
+
{category.name}
|
|
115
|
+
</Typography>
|
|
116
|
+
</ProductListLink>
|
|
117
|
+
)
|
|
118
|
+
})}
|
|
119
|
+
</div>
|
|
120
|
+
<div className={classes.placeholder}>
|
|
121
|
+
<div>{asset}</div>
|
|
122
|
+
</div>
|
|
123
|
+
</Row>
|
|
126
124
|
)
|
|
127
125
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LayoutTitle } from '@graphcommerce/next-ui'
|
|
2
2
|
import { makeStyles, Theme } from '@material-ui/core'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
5
|
const useStyles = makeStyles(
|
|
6
6
|
(theme: Theme) => ({
|
|
7
|
-
|
|
8
|
-
// alignItems: 'center',
|
|
7
|
+
container: {
|
|
9
8
|
justifyContent: 'center',
|
|
10
9
|
[theme.breakpoints.up('md')]: {
|
|
11
10
|
margin: 0,
|
|
@@ -26,8 +25,8 @@ export default function CategoryHeroNavTitle(props: CategoryHeroNavTitleProps) {
|
|
|
26
25
|
const classes = useStyles()
|
|
27
26
|
|
|
28
27
|
return (
|
|
29
|
-
<
|
|
28
|
+
<LayoutTitle classes={classes} variant='h1'>
|
|
30
29
|
{children}
|
|
31
|
-
</
|
|
30
|
+
</LayoutTitle>
|
|
32
31
|
)
|
|
33
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-category",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.6",
|
|
18
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
|
|
25
|
-
"@graphcommerce/graphql": "^2.105.
|
|
26
|
-
"@graphcommerce/image": "^2.105.
|
|
27
|
-
"@graphcommerce/magento-product": "^3.7.
|
|
28
|
-
"@graphcommerce/magento-store": "^3.3.
|
|
29
|
-
"@graphcommerce/next-ui": "^3.
|
|
24
|
+
"@graphcommerce/framer-scroller": "^1.1.0",
|
|
25
|
+
"@graphcommerce/graphql": "^2.105.6",
|
|
26
|
+
"@graphcommerce/image": "^2.105.5",
|
|
27
|
+
"@graphcommerce/magento-product": "^3.7.2",
|
|
28
|
+
"@graphcommerce/magento-store": "^3.3.7",
|
|
29
|
+
"@graphcommerce/next-ui": "^3.20.0",
|
|
30
30
|
"@lingui/macro": "^3.12.1",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
32
|
"next": "^12.0.3",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"react-dom": "^17.0.2",
|
|
35
35
|
"type-fest": "^2.5.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "8f156415c7f5a963e363f0d6d18fe5d6bbd5dba2"
|
|
38
38
|
}
|