@oslokommune/punkt-react 16.24.1 → 16.25.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 +36 -0
- package/dist/index.d.ts +8 -0
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +467 -453
- package/package.json +2 -2
- package/src/components/header/HeaderService.test.tsx +82 -0
- package/src/components/header/HeaderService.tsx +35 -15
- package/src/components/header/types.ts +2 -0
- package/src/components/link/Link.test.tsx +22 -0
- package/src/components/link/Link.tsx +30 -10
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [16.25.1](https://github.com/oslokommune/punkt/compare/16.25.0...16.25.1) (2026-06-16)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Legg til window.pktLogoPath for header (#3517).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [16.25.0](https://github.com/oslokommune/punkt/compare/16.24.1...16.25.0) (2026-06-12)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
* renderLink i PktLink, og lukk mobile-header-slot på klikk (#3512).
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [16.24.1](https://github.com/oslokommune/punkt/compare/16.24.0...16.24.1) (2026-05-29)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -490,6 +490,8 @@ export declare interface IPktHeader {
|
|
|
490
490
|
hideLogo?: boolean;
|
|
491
491
|
/** Link URL for the logo */
|
|
492
492
|
logoLink?: string;
|
|
493
|
+
/** Override CDN path for the logo */
|
|
494
|
+
logoPath?: string;
|
|
493
495
|
/** Callback when logo is clicked */
|
|
494
496
|
logoClick?: (event: MouseEvent_2) => void;
|
|
495
497
|
/** Name of the service displayed in the header */
|
|
@@ -615,6 +617,12 @@ declare interface IPktLink extends LinkHTMLAttributes<HTMLAnchorElement> {
|
|
|
615
617
|
iconPosition?: string | undefined;
|
|
616
618
|
external?: boolean;
|
|
617
619
|
target?: string | undefined;
|
|
620
|
+
renderLink?: (args: {
|
|
621
|
+
href: string;
|
|
622
|
+
className: string;
|
|
623
|
+
children: ReactNode;
|
|
624
|
+
props: AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
625
|
+
}) => ReactNode;
|
|
618
626
|
}
|
|
619
627
|
|
|
620
628
|
export declare interface IPktLinkCard extends Omit<HTMLAttributes<HTMLAnchorElement>, 'title'> {
|