@oslokommune/punkt-react 12.39.2 → 12.39.4
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 +18 -0
- package/dist/punkt-react.es.js +2028 -2020
- package/dist/punkt-react.umd.js +100 -100
- package/package.json +3 -3
- package/src/components/breadcrumbs/Breadcrumbs.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "12.39.
|
|
3
|
+
"version": "12.39.4",
|
|
4
4
|
"description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@lit-labs/ssr-dom-shim": "^1.2.1",
|
|
40
40
|
"@lit/react": "^1.0.7",
|
|
41
|
-
"@oslokommune/punkt-elements": "^12.39.
|
|
41
|
+
"@oslokommune/punkt-elements": "^12.39.3",
|
|
42
42
|
"angular-html-parser": "^6.0.2",
|
|
43
43
|
"html-format": "^1.1.7",
|
|
44
44
|
"prettier": "^3.3.3",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
113
113
|
},
|
|
114
114
|
"license": "MIT",
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "3e0844eb879d0a16e69ef985950fcbfdf6c5935f"
|
|
116
116
|
}
|
|
@@ -18,7 +18,9 @@ export interface IPktBreadcrumbs extends React.AnchorHTMLAttributes<HTMLAnchorEl
|
|
|
18
18
|
export const PktBreadcrumbs = forwardRef(
|
|
19
19
|
({ breadcrumbs, navigationType, className, ...props }: IPktBreadcrumbs, ref: ForwardedRef<HTMLAnchorElement>) => {
|
|
20
20
|
// Slice the breadcrumb to maximum links
|
|
21
|
-
|
|
21
|
+
// Update 2025-05-16: Removed limit on links
|
|
22
|
+
// const slicedBreadcrumbs = breadcrumbs.slice(0, 4)
|
|
23
|
+
const slicedBreadcrumbs = breadcrumbs
|
|
22
24
|
// Define the backLink function
|
|
23
25
|
const backLink = slicedBreadcrumbs[slicedBreadcrumbs.length - 2]
|
|
24
26
|
|