@snokam/navbar 4.0.0 → 5.0.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,69 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0](https://github.com/snokam/monorepo/compare/@snokam/navbar@3.0.48...@snokam/navbar@5.0.0) (2026-10-14)
7
+
8
+ ### Features
9
+
10
+ - per-company branding (logo, dark logo, icon) ([#2907](https://github.com/snokam/monorepo/issues/2907)) ([dc32583](https://github.com/snokam/monorepo/commit/dc325832803c88158937f45fe5b9e1b64846a52d))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ - SimpleHeaderBase and FooterBase take `logo` as a ReactNode;
15
+ the HeaderLogo and FooterLogo types are removed.
16
+
17
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
19
+
20
+ - feat(platform-web): company branding in /manage, at login and in the shell
21
+
22
+ /manage/innstillinger gets a Merkevare section: the logo for light
23
+ backgrounds, the logo for dark backgrounds and the square icon, each with a
24
+ preview on its own background, upload (react-hook-form + zod: type and 2 MB
25
+ checked before sending) and remove. Server error codes map to CMS copy.
26
+ The central login shows the company's logo above "Logg inn hos …", from
27
+ login-config. The /manage shell shows the managed business's logo linking to
28
+ its front page; /admin and an operator without a business show the platform
29
+ business. The public snosky.no chrome keeps the Snøsky logo from the platform
30
+ CMS, through the same BusinessLogo.
31
+
32
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
34
+
35
+ - fix(my-page-web): drop leftover Snøkam favicons
36
+
37
+ The unused pages-router meta component and finance-web's public/favicon.ico
38
+ served Snøkam's icon to every company; favicons now come from the
39
+ company's uploaded icon.
40
+
41
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
43
+
44
+ - fix(handbook-web): no Snøkam share image, no raw-URL fallback in branding metadata
45
+
46
+ The handbook's root metadata no longer hardcodes the Snøkam icon as the
47
+ share image, so the company's share image from makeTenantMetadata applies.
48
+ The favicon and share helpers drop their raw-URL fallback: a transform that
49
+ yields nothing yields no image, never an untransformed (possibly SVG) URL.
50
+
51
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
52
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
53
+
54
+ - fix(ui): show the light logo inverted on dark when no dark logo is uploaded
55
+
56
+ Without a dark logo, a dark background shows the light logo turned white
57
+ (brightness(0) invert(1)) instead of the wordmark. The Merkevare previews
58
+ use static brand tokens, and upload errors are read by parsing the JSON
59
+ body rather than stripping quotes.
60
+
61
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
62
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
63
+
64
+ - chore(clients): regenerate platform-function clients for branding
65
+
66
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
68
+
6
69
  # [4.0.0](https://github.com/snokam/monorepo/compare/@snokam/navbar@3.0.48...@snokam/navbar@4.0.0) (2026-10-14)
7
70
 
8
71
  ### Features
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.0",
2
+ "version": "5.0.0",
3
3
  "dependencies": {
4
4
  "@emotion/react": "^11.14.0",
5
5
  "@emotion/styled": "^11.14.1",
@@ -10,10 +10,10 @@
10
10
  "next-auth": "4.24.15",
11
11
  "react": "19.2.8",
12
12
  "react-dom": "19.2.8",
13
- "@snokam/auth": "4.0.0",
14
- "@snokam/sanity-page-content": "5.0.0",
15
- "@snokam/tenant": "3.0.0",
16
- "@snokam/ui": "5.0.0"
13
+ "@snokam/auth": "5.0.0",
14
+ "@snokam/sanity-page-content": "6.0.0",
15
+ "@snokam/tenant": "4.0.0",
16
+ "@snokam/ui": "6.0.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "^26.1.1",