@graphcommerce/magento-category 4.5.11 → 4.6.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,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1659](https://github.com/graphcommerce-org/graphcommerce/pull/1659) [`6987ec7d2`](https://github.com/graphcommerce-org/graphcommerce/commit/6987ec7d21ce2d481fabbd6eda039702fcf5242b) Thanks [@Jessevdpoel](https://github.com/Jessevdpoel)! - Added product and category breadcrumbs
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`6987ec7d2`](https://github.com/graphcommerce-org/graphcommerce/commit/6987ec7d21ce2d481fabbd6eda039702fcf5242b)]:
|
|
12
|
+
- @graphcommerce/magento-product@4.7.0
|
|
13
|
+
|
|
14
|
+
## 4.5.12
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`48e6522bb`](https://github.com/graphcommerce-org/graphcommerce/commit/48e6522bb9424d4bd77fd77c68065f5625f3ec8d), [`37b1980a0`](https://github.com/graphcommerce-org/graphcommerce/commit/37b1980a04a4a3d77663b404ae83539620cf65b9)]:
|
|
19
|
+
- @graphcommerce/magento-product@4.6.1
|
|
20
|
+
|
|
3
21
|
## 4.5.11
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Trans } from '@lingui/react'
|
|
2
|
+
import { Breadcrumbs, BreadcrumbsProps, Container, Link, Typography } from '@mui/material'
|
|
3
|
+
import PageLink from 'next/link'
|
|
4
|
+
import { CategoryBreadcrumbFragment } from './CategoryBreadcrumb.gql'
|
|
5
|
+
|
|
6
|
+
type CategoryPageBreadcrumbsProps = CategoryBreadcrumbFragment & BreadcrumbsProps
|
|
7
|
+
|
|
8
|
+
export function CategoryBreadcrumb(props: CategoryPageBreadcrumbsProps) {
|
|
9
|
+
const { breadcrumbs, name } = props
|
|
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>
|
|
31
|
+
)
|
|
32
|
+
}
|
package/index.ts
CHANGED
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.
|
|
5
|
+
"version": "4.6.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@graphcommerce/framer-scroller": "2.1.39",
|
|
23
23
|
"@graphcommerce/graphql": "3.4.8",
|
|
24
24
|
"@graphcommerce/image": "3.1.9",
|
|
25
|
-
"@graphcommerce/magento-product": "4.
|
|
25
|
+
"@graphcommerce/magento-product": "4.7.0",
|
|
26
26
|
"@graphcommerce/magento-store": "4.3.0",
|
|
27
27
|
"@graphcommerce/next-ui": "4.27.0"
|
|
28
28
|
},
|