@snokam/navbar 5.1.12 → 5.2.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 +10 -0
- package/dist/v1/SimpleHeader.stories.d.ts +0 -5
- package/dist/v1/SimpleHeader.stories.d.ts.map +1 -1
- package/dist/v1/SimpleHeader.stories.js +0 -5
- package/dist/v1/SimpleHeader.stories.js.map +1 -1
- package/dist/v1/components/SimpleHeader/base.d.ts +0 -10
- package/dist/v1/components/SimpleHeader/base.d.ts.map +1 -1
- package/dist/v1/components/SimpleHeader/base.js +0 -10
- package/dist/v1/components/SimpleHeader/base.js.map +1 -1
- package/dist/v1/components/SimpleHeader/index.d.ts +0 -5
- package/dist/v1/components/SimpleHeader/index.d.ts.map +1 -1
- package/dist/v1/components/SimpleHeader/index.js +0 -5
- package/dist/v1/components/SimpleHeader/index.js.map +1 -1
- package/dist/v1/components/SimpleHeader/types.d.ts +0 -4
- package/dist/v1/components/SimpleHeader/types.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.2.1](https://github.com/snokam/monorepo/compare/@snokam/navbar@5.2.0...@snokam/navbar@5.2.1) (2026-10-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @snokam/navbar
|
|
9
|
+
|
|
10
|
+
# [5.2.0](https://github.com/snokam/monorepo/compare/@snokam/navbar@5.1.12...@snokam/navbar@5.2.0) (2026-10-22)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **lint:** ban code comments + fix mobile fill in the Olaf host ([#3015](https://github.com/snokam/monorepo/issues/3015)) ([938549b](https://github.com/snokam/monorepo/commit/938549b8c1ed68cdc49be19cc168c1440c371199))
|
|
15
|
+
|
|
6
16
|
## [5.1.12](https://github.com/snokam/monorepo/compare/@snokam/navbar@5.1.11...@snokam/navbar@5.1.12) (2026-10-22)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @snokam/navbar
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { SimpleHeaderBase } from "./components/SimpleHeader/base";
|
|
3
|
-
/**
|
|
4
|
-
* These render `SimpleHeaderBase`, not `SimpleHeader`. The wired header reads the CMS, the session
|
|
5
|
-
* and the tenant config, none of which exist in Storybook — mocking all three only to look at a
|
|
6
|
-
* header was the reason these stories used to break. The base takes the same three as props.
|
|
7
|
-
*/
|
|
8
3
|
declare const meta: Meta<typeof SimpleHeaderBase>;
|
|
9
4
|
export default meta;
|
|
10
5
|
type Story = StoryObj<typeof SimpleHeaderBase>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleHeader.stories.d.ts","sourceRoot":"","sources":["../../src/v1/SimpleHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE
|
|
1
|
+
{"version":3,"file":"SimpleHeader.stories.d.ts","sourceRoot":"","sources":["../../src/v1/SimpleHeader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAavC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/C,eAAO,MAAM,KAAK,EAAE,KAAU,CAAC;AAE/B,eAAO,MAAM,IAAI,EAAE,KAKlB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC"}
|
|
@@ -2,11 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { BusinessLogo } from "@snokam/ui/business-logo";
|
|
3
3
|
import { SimpleHeaderBase } from "./components/SimpleHeader/base";
|
|
4
4
|
import { HeaderTheme } from "./components/SimpleHeader/types";
|
|
5
|
-
/**
|
|
6
|
-
* These render `SimpleHeaderBase`, not `SimpleHeader`. The wired header reads the CMS, the session
|
|
7
|
-
* and the tenant config, none of which exist in Storybook — mocking all three only to look at a
|
|
8
|
-
* header was the reason these stories used to break. The base takes the same three as props.
|
|
9
|
-
*/
|
|
10
5
|
const meta = {
|
|
11
6
|
title: "Chrome/SimpleHeader",
|
|
12
7
|
component: SimpleHeaderBase,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleHeader.stories.js","sourceRoot":"","sources":["../../src/v1/SimpleHeader.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D
|
|
1
|
+
{"version":3,"file":"SimpleHeader.stories.js","sourceRoot":"","sources":["../../src/v1/SimpleHeader.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,MAAM,IAAI,GAAkC;IAC1C,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,gBAAgB;IAC3B,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;IACpC,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW,CAAC,KAAK;QACxB,IAAI,EAAE,KAAC,YAAY,IAAC,IAAI,EAAC,aAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,MAAM,EAAE,EAAE,GAAI;QAC7D,OAAO,EAAE,mBAAmB;QAC5B,SAAS,EAAE,2BAA2B;KACvC;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE;KACjE;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,KAAK,GAAU,EAAE,CAAC;AAE/B,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW,CAAC,IAAI;QACvB,IAAI,EAAE,KAAC,YAAY,IAAC,IAAI,EAAC,aAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,MAAM,EAAE,EAAE,GAAI;KAC7D;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,IAAI,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE;CAC5C,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE;CAC1C,CAAC"}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { SimpleHeaderBaseProps } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* The header as markup: everything it draws arrives as a prop.
|
|
4
|
-
*
|
|
5
|
-
* `SimpleHeader` is this component with the CMS, the session and the tenant config read for you.
|
|
6
|
-
* Reach for that one inside a Snøkam app. Reach for this one anywhere those three are not
|
|
7
|
-
* available — a Storybook story, a test, a Vite app — where the wired version would only render
|
|
8
|
-
* empty strings, or throw.
|
|
9
|
-
*
|
|
10
|
-
* The one context left is the framework, and it has working defaults: no provider means an `<a>`.
|
|
11
|
-
*/
|
|
12
2
|
export declare function SimpleHeaderBase({ logo, homeUrl, myPageUrl, backUrl, backText, theme, user, settingsHref, children, }: SimpleHeaderBaseProps): import("react").JSX.Element;
|
|
13
3
|
export { HeaderTheme } from "./types";
|
|
14
4
|
export type { SimpleHeaderBaseProps, HeaderUser } from "./types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/base.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAe,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAK7D
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/base.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAe,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAK7D,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAY,EACZ,SAAc,EACd,OAAO,EACP,QAAQ,EACR,KAAyB,EACzB,IAAI,EACJ,YAAY,EACZ,QAAQ,GACT,EAAE,qBAAqB,+BAkCvB;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAe,gBAAgB,CAAC"}
|
|
@@ -5,16 +5,6 @@ import { HeaderTheme } from "./types";
|
|
|
5
5
|
import Layout from "@snokam/ui/layout";
|
|
6
6
|
import { SystemThemeTag } from "@snokam/ui/system-theme-tag";
|
|
7
7
|
import { useFramework } from "@snokam/ui/framework";
|
|
8
|
-
/**
|
|
9
|
-
* The header as markup: everything it draws arrives as a prop.
|
|
10
|
-
*
|
|
11
|
-
* `SimpleHeader` is this component with the CMS, the session and the tenant config read for you.
|
|
12
|
-
* Reach for that one inside a Snøkam app. Reach for this one anywhere those three are not
|
|
13
|
-
* available — a Storybook story, a test, a Vite app — where the wired version would only render
|
|
14
|
-
* empty strings, or throw.
|
|
15
|
-
*
|
|
16
|
-
* The one context left is the framework, and it has working defaults: no provider means an `<a>`.
|
|
17
|
-
*/
|
|
18
8
|
export function SimpleHeaderBase({ logo, homeUrl = "", myPageUrl = "", backUrl, backText, theme = HeaderTheme.Light, user, settingsHref, children, }) {
|
|
19
9
|
const { Link } = useFramework();
|
|
20
10
|
return (_jsx(Styled.Header, { theme: theme, children: _jsx(Layout.Content, { children: _jsxs(Styled.Menu, { children: [_jsx(Styled.Link, { href: homeUrl, children: logo }), _jsxs(Styled.Right, { children: [_jsx(SystemThemeTag, { settingsHref: settingsHref ?? (user ? `${myPageUrl}/innstillinger` : "#tema") }), backUrl && (_jsxs(Styled.BackLink, { as: Link, href: backUrl, children: [_jsx(Styled.BackIcon, {}), _jsx(Styled.BackText, { children: backText })] })), user && (_jsx(Styled.Link, { href: myPageUrl, children: _jsxs(Styled.User, { children: [_jsx(Styled.Name, { children: user.name }), user.image && _jsx(Styled.UserAvatar, { src: user.image })] }) })), children] })] }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/base.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;AAC7D,OAAO,MAAuB,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/base.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAyB,MAAM,SAAS,CAAC;AAC7D,OAAO,MAAuB,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,UAAU,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,EAAE,EACd,OAAO,EACP,QAAQ,EACR,KAAK,GAAG,WAAW,CAAC,KAAK,EACzB,IAAI,EACJ,YAAY,EACZ,QAAQ,GACc;IACtB,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IAEhC,OAAO,CACL,KAAC,MAAM,CAAC,MAAM,IAAC,KAAK,EAAE,KAA+B,YACnD,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,MAAM,CAAC,IAAI,eACV,KAAC,MAAM,CAAC,IAAI,IAAC,IAAI,EAAE,OAAO,YAAG,IAAI,GAAe,EAChD,MAAC,MAAM,CAAC,KAAK,eACX,KAAC,cAAc,IACb,YAAY,EACV,YAAY,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,GAEjE,EACD,OAAO,IAAI,CACV,MAAC,MAAM,CAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,aACtC,KAAC,MAAM,CAAC,QAAQ,KAAG,EACnB,KAAC,MAAM,CAAC,QAAQ,cAAE,QAAQ,GAAmB,IAC7B,CACnB,EACA,IAAI,IAAI,CACP,KAAC,MAAM,CAAC,IAAI,IAAC,IAAI,EAAE,SAAS,YAC1B,MAAC,MAAM,CAAC,IAAI,eACV,KAAC,MAAM,CAAC,IAAI,cAAE,IAAI,CAAC,IAAI,GAAe,EACrC,IAAI,CAAC,KAAK,IAAI,KAAC,MAAM,CAAC,UAAU,IAAC,GAAG,EAAE,IAAI,CAAC,KAAK,GAAI,IACzC,GACF,CACf,EACA,QAAQ,IACI,IACH,GACC,GACH,CACjB,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { SimpleHeaderProps } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* The header, wired to the app it lives in: the business's logo and links from the tenant config,
|
|
4
|
-
* labels from the CMS, the signed-in user from the session. {@link SimpleHeaderBase} is the same header with
|
|
5
|
-
* those four passed in as props, for anywhere that has none of them.
|
|
6
|
-
*/
|
|
7
2
|
export declare function SimpleHeader({ logo, backUrl, backText, theme, }: SimpleHeaderProps): import("react").JSX.Element;
|
|
8
3
|
export default SimpleHeader;
|
|
9
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAe,MAAM,SAAS,CAAC;AAQzD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAe,MAAM,SAAS,CAAC;AAQzD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,KAAyB,GAC1B,EAAE,iBAAiB,+BA+BnB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -8,11 +8,6 @@ import { useConfig, useTenantEntitlements } from "@snokam/tenant";
|
|
|
8
8
|
import { BusinessLogo } from "@snokam/ui/business-logo";
|
|
9
9
|
import { LanguagePicker } from "../LanguagePicker";
|
|
10
10
|
import { SimpleHeaderBase } from "./base";
|
|
11
|
-
/**
|
|
12
|
-
* The header, wired to the app it lives in: the business's logo and links from the tenant config,
|
|
13
|
-
* labels from the CMS, the signed-in user from the session. {@link SimpleHeaderBase} is the same header with
|
|
14
|
-
* those four passed in as props, for anywhere that has none of them.
|
|
15
|
-
*/
|
|
16
11
|
export function SimpleHeader({ logo, backUrl, backText, theme = HeaderTheme.Light, }) {
|
|
17
12
|
const { getText } = usePageContent();
|
|
18
13
|
const { session } = useAuth();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAqB,WAAW,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAqB,WAAW,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,MAAM,UAAU,YAAY,CAAC,EAC3B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,KAAK,GAAG,WAAW,CAAC,KAAK,GACP;IAClB,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC;IAC9B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,qBAAqB,EAAE,CAAC;IACvC,MAAM,aAAa,GAAG,cAAc,EAAE,CAAC;IACvC,MAAM,IAAI,GACR,aAAa,KAAK,MAAM,IAAI,KAAK,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAE5E,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,EAC3C,IAAI,EACF,IAAI,IAAI,CACN,KAAC,YAAY,IACX,IAAI,EAAE,MAAM,EAAE,YAAY,IAAI,EAAE,EAChC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAC1B,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,EAAE,GACV,CACH,EAEH,OAAO,EAAE,MAAM,CAAC,8BAA8B,IAAI,EAAE,EACpD,SAAS,EAAE,MAAM,CAAC,4BAA4B,IAAI,EAAE,EACpD,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,IAAI,YAE3B,KAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,GACf,CACpB,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -15,10 +15,6 @@ export interface HeaderUser {
|
|
|
15
15
|
name?: string | null;
|
|
16
16
|
image?: string | null;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Everything {@link SimpleHeaderBase} draws. The wired `SimpleHeader` fills these in from the tenant
|
|
20
|
-
* config, the CMS and the session; supply them yourself when none of those exist.
|
|
21
|
-
*/
|
|
22
18
|
export interface SimpleHeaderBaseProps extends SimpleHeaderProps {
|
|
23
19
|
logo: ReactNode;
|
|
24
20
|
homeUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/SimpleHeader/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.1
|
|
2
|
+
"version": "5.2.1",
|
|
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/
|
|
14
|
-
"@snokam/
|
|
15
|
-
"@snokam/
|
|
16
|
-
"@snokam/
|
|
13
|
+
"@snokam/auth": "5.5.1",
|
|
14
|
+
"@snokam/sanity-page-content": "6.6.1",
|
|
15
|
+
"@snokam/tenant": "4.4.0",
|
|
16
|
+
"@snokam/ui": "6.4.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^26.1.1",
|