@graphcommerce/magento-category 3.1.7 → 3.3.0

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.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.2.2...@graphcommerce/magento-category@3.3.0) (2021-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * category h2 styling ([5b26f2b](https://github.com/ho-nl/m2-pwa/commit/5b26f2b92f55356c58cc207fa028d03a38a8b16a))
12
+ * remove legacy, title from category description ([574208c](https://github.com/ho-nl/m2-pwa/commit/574208ca71e6ed387f1f355d5c4a22f5c13783ea))
13
+ * subtitles ([9ef1d8b](https://github.com/ho-nl/m2-pwa/commit/9ef1d8b9079c50340015e482fe6f1bf577610269))
14
+
15
+
16
+ ### Features
17
+
18
+ * set correct font sizes ([9317448](https://github.com/ho-nl/m2-pwa/commit/9317448c94a9fb4408dfbcaa320adccc363964d0))
19
+
20
+
21
+
22
+
23
+
24
+ # [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)
25
+
26
+
27
+ ### Features
28
+
29
+ * **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
30
+
31
+
32
+
33
+
34
+
6
35
  ## [3.1.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.1.1...@graphcommerce/magento-category@3.1.2) (2021-10-19)
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: 732,
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: '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,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: {
11
+ margin: 0,
15
12
  alignItems: 'center',
16
13
  justifyContent: 'center',
17
14
  [theme.breakpoints.up('md')]: {
18
- alignItems: 'flex-start',
19
- justifyContent: 'flex-end',
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 <AppShellTitle classes={classes}>{children}</AppShellTitle>
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.1.7",
3
+ "version": "3.3.0",
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.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.15.2"
20
+ "@playwright/test": "^1.16.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.4.16",
24
- "@graphcommerce/framer-scroller": "^0.3.3",
25
- "@graphcommerce/graphql": "^2.104.1",
26
- "@graphcommerce/image": "^2.104.13",
27
- "@graphcommerce/magento-product": "^3.2.6",
28
- "@graphcommerce/magento-store": "^3.0.31",
29
- "@graphcommerce/next-ui": "^3.9.0",
24
+ "@graphcommerce/framer-scroller": "^0.4.1",
25
+ "@graphcommerce/graphql": "^2.105.1",
26
+ "@graphcommerce/image": "^2.105.1",
27
+ "@graphcommerce/magento-product": "^3.4.0",
28
+ "@graphcommerce/magento-store": "^3.1.3",
29
+ "@graphcommerce/next-ui": "^3.11.0",
30
30
  "@graphql-typed-document-node/core": "^3.1.0",
31
31
  "@material-ui/core": "^4.12.3",
32
- "next": "^11.1.2",
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": "a71eb508e3ddf42e5705e23bc8016f6f08969c74"
37
+ "gitHead": "f923ddb5d98378c8737314e7296bba77b1c2dc9b"
38
38
  }