@graphcommerce/magento-category 3.5.1 → 3.5.5

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, Typography } from '@material-ui/core'
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.xl,
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.xl,
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
- <Row className={classes.wrapper} maxWidth={false}>
101
- <div className={classes.title}>{title}</div>
102
- <div className={classes.categories}>
103
- {children?.map((category) => {
104
- if (!category?.url_path || !category.uid || !category.name) return null
105
- return (
106
- <ProductListLink
107
- underline='none'
108
- color='textPrimary'
109
- url={category.url_path}
110
- filters={{}}
111
- sort={{}}
112
- key={category.uid}
113
- >
114
- <Typography variant='h4' component='span'>
115
- {category.name}
116
- </Typography>
117
- </ProductListLink>
118
- )
119
- })}
120
- </div>
121
- <div className={classes.placeholder}>
122
- <div>{asset}</div>
123
- </div>
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 { AppShellTitle } from '@graphcommerce/next-ui'
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
- title: {
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
- <AppShellTitle classes={classes} variant='h1'>
28
+ <LayoutTitle classes={classes} variant='h1'>
30
29
  {children}
31
- </AppShellTitle>
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.1",
3
+ "version": "3.5.5",
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.5",
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.4",
25
- "@graphcommerce/graphql": "^2.105.5",
26
- "@graphcommerce/image": "^2.105.4",
27
- "@graphcommerce/magento-product": "^3.7.1",
28
- "@graphcommerce/magento-store": "^3.3.6",
29
- "@graphcommerce/next-ui": "^3.19.1",
24
+ "@graphcommerce/framer-scroller": "^1.1.3",
25
+ "@graphcommerce/graphql": "^2.105.6",
26
+ "@graphcommerce/image": "^2.105.5",
27
+ "@graphcommerce/magento-product": "^3.7.5",
28
+ "@graphcommerce/magento-store": "^3.3.10",
29
+ "@graphcommerce/next-ui": "^3.20.3",
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": "a145ddd41ca83136c7a478e791a9e843b2aee15f"
37
+ "gitHead": "4f80cd92bed997b6c778be4381b86b239fb0fdb1"
38
38
  }