@graphcommerce/magento-category 3.2.2 → 3.3.3

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,46 @@
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.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.3.2...@graphcommerce/magento-category@3.3.3) (2021-11-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * category page design fixs ([d3fccc2](https://github.com/ho-nl/m2-pwa/commit/d3fccc2a86106b854e9a1fd89040a248fe20c99a))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * spacing of title on category landing on mobile ([8ed3550](https://github.com/ho-nl/m2-pwa/commit/8ed35502fd231d1d6a8e0a282f8961335d9dead3))
23
+
24
+
25
+
26
+
27
+
28
+ # [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)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * category h2 styling ([5b26f2b](https://github.com/ho-nl/m2-pwa/commit/5b26f2b92f55356c58cc207fa028d03a38a8b16a))
34
+ * remove legacy, title from category description ([574208c](https://github.com/ho-nl/m2-pwa/commit/574208ca71e6ed387f1f355d5c4a22f5c13783ea))
35
+ * subtitles ([9ef1d8b](https://github.com/ho-nl/m2-pwa/commit/9ef1d8b9079c50340015e482fe6f1bf577610269))
36
+
37
+
38
+ ### Features
39
+
40
+ * set correct font sizes ([9317448](https://github.com/ho-nl/m2-pwa/commit/9317448c94a9fb4408dfbcaa320adccc363964d0))
41
+
42
+
43
+
44
+
45
+
6
46
  # [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
47
 
8
48
 
@@ -11,11 +11,17 @@ const useStyles = makeStyles(
11
11
  (theme: Theme) => ({
12
12
  root: {
13
13
  gridArea: 'description',
14
- margin: '0 auto',
14
+ margin: `0 auto ${theme.spacings.sm}`,
15
+ padding: `0 ${theme.page.horizontal}`,
15
16
  textAlign: 'center',
16
- maxWidth: 732,
17
- marginTop: theme.spacings.md,
18
- marginBottom: theme.spacings.sm,
17
+ [theme.breakpoints.up('md')]: {
18
+ maxWidth: '50%',
19
+ },
20
+ [theme.breakpoints.up('xl')]: {
21
+ maxWidth: '30%',
22
+ },
23
+
24
+ ...theme.typography.subtitle1,
19
25
  },
20
26
  }),
21
27
  { name: 'CategoryDescription' },
@@ -25,14 +31,7 @@ export default function CategoryDescription(props: CategoryDescriptionProps) {
25
31
  const { name, description, display_mode, ...divProps } = props
26
32
  const classes = useStyles(props)
27
33
 
28
- return (
29
- <div {...divProps} className={classes.root}>
30
- <Typography variant='h2' component='h1' align='center'>
31
- {name}
32
- </Typography>
33
- {/* todo: replace with proper content renderer */}
34
- {/* eslint-disable-next-line react/no-danger */}
35
- {description && <div dangerouslySetInnerHTML={{ __html: description }} />}
36
- </div>
37
- )
34
+ return description ? (
35
+ <div {...divProps} className={classes.root} dangerouslySetInnerHTML={{ __html: description }} />
36
+ ) : null
38
37
  }
@@ -36,20 +36,18 @@ const useStyles = makeStyles(
36
36
  gridTemplateColumns: 'repeat(2, 1fr)',
37
37
  maxWidth: '100vw',
38
38
  width: '100%',
39
- alignSelf: 'flex-start',
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: 'flex-end',
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,13 @@ 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
- container: {
12
- padding: 0,
13
- },
14
7
  title: {
15
- alignItems: 'center',
8
+ // alignItems: 'center',
16
9
  justifyContent: 'center',
17
10
  [theme.breakpoints.up('md')]: {
18
- alignItems: 'flex-start',
19
- justifyContent: 'flex-end',
11
+ margin: 0,
12
+ alignItems: 'start',
13
+ justifyContent: 'end',
20
14
  },
21
15
  },
22
16
  }),
@@ -31,5 +25,9 @@ export default function CategoryHeroNavTitle(props: CategoryHeroNavTitleProps) {
31
25
  const { children } = props
32
26
  const classes = useStyles()
33
27
 
34
- return <AppShellTitle classes={classes}>{children}</AppShellTitle>
28
+ return (
29
+ <AppShellTitle classes={classes} variant='h1'>
30
+ {children}
31
+ </AppShellTitle>
32
+ )
35
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-category",
3
- "version": "3.2.2",
3
+ "version": "3.3.3",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.4.16",
24
- "@graphcommerce/framer-scroller": "^0.4.1",
24
+ "@graphcommerce/framer-scroller": "^0.4.2",
25
25
  "@graphcommerce/graphql": "^2.105.1",
26
26
  "@graphcommerce/image": "^2.105.1",
27
- "@graphcommerce/magento-product": "^3.3.2",
28
- "@graphcommerce/magento-store": "^3.1.2",
29
- "@graphcommerce/next-ui": "^3.10.2",
27
+ "@graphcommerce/magento-product": "^3.4.3",
28
+ "@graphcommerce/magento-store": "^3.1.6",
29
+ "@graphcommerce/next-ui": "^3.11.3",
30
30
  "@graphql-typed-document-node/core": "^3.1.0",
31
31
  "@material-ui/core": "^4.12.3",
32
32
  "next": "^12.0.1",
@@ -34,5 +34,5 @@
34
34
  "react-dom": "^17.0.2",
35
35
  "type-fest": "^2.5.1"
36
36
  },
37
- "gitHead": "7f5e13261ccb398f5a7e6bac70d3f4d5f757fa5f"
37
+ "gitHead": "570a61e72f88ef0a4bd1472d48c7a7dd28154f59"
38
38
  }