@graphcommerce/magento-category 4.7.2 → 4.8.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
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1678](https://github.com/graphcommerce-org/graphcommerce/pull/1678) [`78d7d51cb`](https://github.com/graphcommerce-org/graphcommerce/commit/78d7d51cb1551601d3a4756cd1f2157a49ff93b9) Thanks [@Jessevdpoel](https://github.com/Jessevdpoel)! - Changed styling and forwarded breadcrumbprops
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`2b5451395`](https://github.com/graphcommerce-org/graphcommerce/commit/2b5451395dc1173de55d18d08968866e561f90ab), [`e76df6dc3`](https://github.com/graphcommerce-org/graphcommerce/commit/e76df6dc37c11c793a5d008ba36932d17dc23855), [`c4ed376e2`](https://github.com/graphcommerce-org/graphcommerce/commit/c4ed376e2c72b16b34704d7d1ca69c074de172ba), [`78d7d51cb`](https://github.com/graphcommerce-org/graphcommerce/commit/78d7d51cb1551601d3a4756cd1f2157a49ff93b9), [`0bd9ea582`](https://github.com/graphcommerce-org/graphcommerce/commit/0bd9ea58230dde79c5fe2cdb07e9860151460270)]:
12
+ - @graphcommerce/magento-product@4.8.0
13
+ - @graphcommerce/next-ui@4.29.0
14
+ - @graphcommerce/framer-scroller@2.1.42
15
+ - @graphcommerce/magento-store@4.3.3
16
+
3
17
  ## 4.7.2
4
18
 
5
19
  ### Patch Changes
@@ -3,30 +3,28 @@ import { Breadcrumbs, BreadcrumbsProps, Container, Link, Typography } from '@mui
3
3
  import PageLink from 'next/link'
4
4
  import { CategoryBreadcrumbFragment } from './CategoryBreadcrumb.gql'
5
5
 
6
- type CategoryPageBreadcrumbsProps = CategoryBreadcrumbFragment & BreadcrumbsProps
6
+ type CategoryPageBreadcrumbsProps = CategoryBreadcrumbFragment & Omit<BreadcrumbsProps, 'children'>
7
7
 
8
8
  export function CategoryBreadcrumb(props: CategoryPageBreadcrumbsProps) {
9
- const { breadcrumbs, name } = props
9
+ const { breadcrumbs, name, ...breadcrumbsProps } = props
10
10
  return (
11
- <Container maxWidth={false}>
12
- <Breadcrumbs>
13
- <PageLink href='/' passHref>
14
- <Link underline='hover' color='inherit'>
15
- <Trans id='Home' />
16
- </Link>
17
- </PageLink>
18
- {breadcrumbs?.map((mapped_category, i) => (
19
- <Link
20
- underline='hover'
21
- key={mapped_category?.category_uid}
22
- color='inherit'
23
- href={`/${mapped_category?.category_url_path}`}
24
- >
25
- {mapped_category?.category_name}
26
- </Link>
27
- ))}
28
- <Typography color='text.primary'>{name}</Typography>
29
- </Breadcrumbs>
30
- </Container>
11
+ <Breadcrumbs {...breadcrumbsProps}>
12
+ <PageLink href='/' passHref>
13
+ <Link underline='hover' color='inherit'>
14
+ <Trans id='Home' />
15
+ </Link>
16
+ </PageLink>
17
+ {breadcrumbs?.map((mapped_category, i) => (
18
+ <Link
19
+ underline='hover'
20
+ key={mapped_category?.category_uid}
21
+ color='inherit'
22
+ href={`/${mapped_category?.category_url_path}`}
23
+ >
24
+ {mapped_category?.category_name}
25
+ </Link>
26
+ ))}
27
+ <Typography color='text.primary'>{name}</Typography>
28
+ </Breadcrumbs>
31
29
  )
32
30
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-category",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.7.2",
5
+ "version": "4.8.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,12 +19,12 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/framer-scroller": "2.1.41",
22
+ "@graphcommerce/framer-scroller": "2.1.42",
23
23
  "@graphcommerce/graphql": "3.5.0",
24
24
  "@graphcommerce/image": "3.1.10",
25
- "@graphcommerce/magento-product": "4.7.3",
26
- "@graphcommerce/magento-store": "4.3.2",
27
- "@graphcommerce/next-ui": "4.28.1"
25
+ "@graphcommerce/magento-product": "4.8.0",
26
+ "@graphcommerce/magento-store": "4.3.3",
27
+ "@graphcommerce/next-ui": "4.29.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@lingui/react": "^3.13.2",