@oslokommune/punkt-react 18.9.5 → 18.9.7
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 +20 -0
- package/dist/components/header/types.d.ts +1 -1
- package/dist/components/headerUserMenu/UserMenu.d.ts +2 -0
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +343 -309
- package/dist/shared-strings/nb.d.ts +10 -0
- package/package.json +3 -3
- package/src/components/header/HeaderGlobal.test.tsx +9 -1
- package/src/components/header/HeaderGlobal.tsx +12 -5
- package/src/components/header/HeaderService.test.tsx +42 -0
- package/src/components/header/HeaderService.tsx +19 -13
- package/src/components/header/types.ts +1 -1
- package/src/components/headerUserMenu/UserMenu.tsx +17 -8
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [18.10.0](https://github.com/oslokommune/punkt/compare/18.9.6...18.10.0) (2026-09-21)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* PktHeader mangler en del shared-strings (#3665). - Lagt til shared-strings for header
|
|
18
|
+
- Herdet check-strings-sjekken litt slik at den finner flere steder som har hardkodet en streng.
|
|
19
|
+
- Lagt til mulighet for å ikke ha lenke på logo i header
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
Ingen
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
|
|
8
28
|
## [18.9.5](https://github.com/oslokommune/punkt/compare/18.9.4...18.9.5) (2026-09-18)
|
|
9
29
|
|
|
10
30
|
### ⚠ BREAKING CHANGES
|
|
@@ -37,7 +37,7 @@ export interface IPktHeader extends IPktStringsProps<'header'> {
|
|
|
37
37
|
'data-mode'?: 'dark';
|
|
38
38
|
/** Hide the Oslo logo. Default: false (logo is shown) */
|
|
39
39
|
hideLogo?: boolean;
|
|
40
|
-
/** Link URL for the logo */
|
|
40
|
+
/** Link URL for the logo. Pass an empty string to render the logo without a link */
|
|
41
41
|
logoLink?: string;
|
|
42
42
|
/** Override CDN path for the logo */
|
|
43
43
|
logoPath?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { TPktStringsOverride } from '../../shared-strings';
|
|
1
2
|
import { Representing, User, UserMenuItem } from '../header/types';
|
|
2
3
|
export interface IPktHeaderUserMenu {
|
|
4
|
+
strings?: TPktStringsOverride<'header'>;
|
|
3
5
|
user: User;
|
|
4
6
|
formattedLastLoggedIn?: string;
|
|
5
7
|
representing?: Representing;
|