@graphcommerce/magento-category 3.2.1 → 3.3.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,35 @@
|
|
|
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.3.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.3.1...@graphcommerce/magento-category@3.3.2) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* spacing of title on category landing on mobile ([8ed3550](https://github.com/ho-nl/m2-pwa/commit/8ed35502fd231d1d6a8e0a282f8961335d9dead3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.2.2...@graphcommerce/magento-category@3.3.0) (2021-10-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* category h2 styling ([5b26f2b](https://github.com/ho-nl/m2-pwa/commit/5b26f2b92f55356c58cc207fa028d03a38a8b16a))
|
|
23
|
+
* remove legacy, title from category description ([574208c](https://github.com/ho-nl/m2-pwa/commit/574208ca71e6ed387f1f355d5c4a22f5c13783ea))
|
|
24
|
+
* subtitles ([9ef1d8b](https://github.com/ho-nl/m2-pwa/commit/9ef1d8b9079c50340015e482fe6f1bf577610269))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* set correct font sizes ([9317448](https://github.com/ho-nl/m2-pwa/commit/9317448c94a9fb4408dfbcaa320adccc363964d0))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
6
35
|
# [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.1.7...@graphcommerce/magento-category@3.2.0) (2021-10-27)
|
|
7
36
|
|
|
8
37
|
|
|
@@ -13,9 +13,16 @@ const useStyles = makeStyles(
|
|
|
13
13
|
gridArea: 'description',
|
|
14
14
|
margin: '0 auto',
|
|
15
15
|
textAlign: 'center',
|
|
16
|
-
maxWidth:
|
|
16
|
+
maxWidth: '90%',
|
|
17
|
+
[theme.breakpoints.up('md')]: {
|
|
18
|
+
maxWidth: '50%',
|
|
19
|
+
},
|
|
20
|
+
[theme.breakpoints.up('xl')]: {
|
|
21
|
+
maxWidth: '30%',
|
|
22
|
+
},
|
|
17
23
|
marginTop: theme.spacings.md,
|
|
18
24
|
marginBottom: theme.spacings.sm,
|
|
25
|
+
...theme.typography.subtitle1,
|
|
19
26
|
},
|
|
20
27
|
}),
|
|
21
28
|
{ name: 'CategoryDescription' },
|
|
@@ -27,9 +34,6 @@ export default function CategoryDescription(props: CategoryDescriptionProps) {
|
|
|
27
34
|
|
|
28
35
|
return (
|
|
29
36
|
<div {...divProps} className={classes.root}>
|
|
30
|
-
<Typography variant='h2' component='h1' align='center'>
|
|
31
|
-
{name}
|
|
32
|
-
</Typography>
|
|
33
37
|
{/* todo: replace with proper content renderer */}
|
|
34
38
|
{/* eslint-disable-next-line react/no-danger */}
|
|
35
39
|
{description && <div dangerouslySetInnerHTML={{ __html: description }} />}
|
|
@@ -36,20 +36,18 @@ const useStyles = makeStyles(
|
|
|
36
36
|
gridTemplateColumns: 'repeat(2, 1fr)',
|
|
37
37
|
maxWidth: '100vw',
|
|
38
38
|
width: '100%',
|
|
39
|
-
alignSelf: '
|
|
39
|
+
alignSelf: 'start',
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
title: {
|
|
43
43
|
gridArea: 'title',
|
|
44
|
-
position: 'relative',
|
|
45
44
|
alignSelf: 'center',
|
|
46
45
|
[theme.breakpoints.up('md')]: {
|
|
47
|
-
alignSelf: '
|
|
46
|
+
alignSelf: 'end',
|
|
48
47
|
},
|
|
49
48
|
},
|
|
50
49
|
placeholder: {
|
|
51
50
|
gridArea: 'placeholder',
|
|
52
|
-
background: '#fff',
|
|
53
51
|
minHeight: '40vh',
|
|
54
52
|
overflow: 'hidden',
|
|
55
53
|
|
|
@@ -4,19 +4,16 @@ import React from 'react'
|
|
|
4
4
|
|
|
5
5
|
const useStyles = makeStyles(
|
|
6
6
|
(theme: Theme) => ({
|
|
7
|
-
root: {
|
|
8
|
-
marginTop: 0,
|
|
9
|
-
marginBottom: 0,
|
|
10
|
-
},
|
|
11
7
|
container: {
|
|
12
8
|
padding: 0,
|
|
13
9
|
},
|
|
14
10
|
title: {
|
|
15
|
-
alignItems: 'center',
|
|
11
|
+
// alignItems: 'center',
|
|
16
12
|
justifyContent: 'center',
|
|
17
13
|
[theme.breakpoints.up('md')]: {
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
margin: 0,
|
|
15
|
+
alignItems: 'start',
|
|
16
|
+
justifyContent: 'end',
|
|
20
17
|
},
|
|
21
18
|
},
|
|
22
19
|
}),
|
|
@@ -31,5 +28,9 @@ export default function CategoryHeroNavTitle(props: CategoryHeroNavTitleProps) {
|
|
|
31
28
|
const { children } = props
|
|
32
29
|
const classes = useStyles()
|
|
33
30
|
|
|
34
|
-
return
|
|
31
|
+
return (
|
|
32
|
+
<AppShellTitle classes={classes} variant='h1'>
|
|
33
|
+
{children}
|
|
34
|
+
</AppShellTitle>
|
|
35
|
+
)
|
|
35
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-category",
|
|
3
|
-
"version": "3.2
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,25 +14,25 @@
|
|
|
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.2",
|
|
18
18
|
"@graphcommerce/prettier-config-pwa": "^3.0.3",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
20
|
-
"@playwright/test": "^1.
|
|
20
|
+
"@playwright/test": "^1.16.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.4.16",
|
|
24
|
-
"@graphcommerce/framer-scroller": "^0.4.
|
|
25
|
-
"@graphcommerce/graphql": "^2.105.
|
|
26
|
-
"@graphcommerce/image": "^2.105.
|
|
27
|
-
"@graphcommerce/magento-product": "^3.
|
|
28
|
-
"@graphcommerce/magento-store": "^3.1.
|
|
29
|
-
"@graphcommerce/next-ui": "^3.
|
|
24
|
+
"@graphcommerce/framer-scroller": "^0.4.2",
|
|
25
|
+
"@graphcommerce/graphql": "^2.105.1",
|
|
26
|
+
"@graphcommerce/image": "^2.105.1",
|
|
27
|
+
"@graphcommerce/magento-product": "^3.4.2",
|
|
28
|
+
"@graphcommerce/magento-store": "^3.1.5",
|
|
29
|
+
"@graphcommerce/next-ui": "^3.11.2",
|
|
30
30
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
|
-
"next": "^12.0.
|
|
32
|
+
"next": "^12.0.1",
|
|
33
33
|
"react": "^17.0.2",
|
|
34
34
|
"react-dom": "^17.0.2",
|
|
35
35
|
"type-fest": "^2.5.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "ed70123f0b4c4552ca413deff6fe786156d0772f"
|
|
38
38
|
}
|