@graphcommerce/magento-category 4.7.2 → 4.8.1

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,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`98d6a9cce`](https://github.com/graphcommerce-org/graphcommerce/commit/98d6a9cce1bb9514088be0af2736721b3edda467), [`aab6b4fa5`](https://github.com/graphcommerce-org/graphcommerce/commit/aab6b4fa5b4708003cfb5bf673a617dc5dbf3078)]:
8
+ - @graphcommerce/next-ui@4.29.1
9
+ - @graphcommerce/magento-product@4.8.1
10
+ - @graphcommerce/framer-scroller@2.1.43
11
+ - @graphcommerce/magento-store@4.3.4
12
+
13
+ ## 4.8.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#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
18
+
19
+ ### Patch Changes
20
+
21
+ - 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)]:
22
+ - @graphcommerce/magento-product@4.8.0
23
+ - @graphcommerce/next-ui@4.29.0
24
+ - @graphcommerce/framer-scroller@2.1.42
25
+ - @graphcommerce/magento-store@4.3.3
26
+
3
27
  ## 4.7.2
4
28
 
5
29
  ### 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.1",
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.43",
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.1",
26
+ "@graphcommerce/magento-store": "4.3.4",
27
+ "@graphcommerce/next-ui": "4.29.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@lingui/react": "^3.13.2",