@snokam/footer 3.2.2 → 4.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.
- package/CHANGELOG.md +15 -0
- package/dist/v1/components/Footer/index.d.ts +1 -1
- package/dist/v1/components/Footer/index.d.ts.map +1 -1
- package/dist/v1/components/Footer/index.js +1 -3
- package/dist/v1/components/Footer/index.js.map +1 -1
- package/dist/v1/components/Footer/types.d.ts +0 -2
- package/dist/v1/components/Footer/types.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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
|
+
# [4.0.0](https://github.com/snokam/monorepo/compare/@snokam/footer@3.2.1...@snokam/footer@4.0.0) (2026-10-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **platform-web:** Apper & moduler attention per capability, provider choice, surfaced errors; footer links passed in; event dates in one zone ([#2610](https://github.com/snokam/monorepo/issues/2610)) ([1d102fc](https://github.com/snokam/monorepo/commit/1d102fca8ae6706a2613734b4ea5fac4caf2298f))
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
- **platform-web:** `showFaq`/`showContact` are removed from @snokam/footer. Pass
|
|
15
|
+
links via `extraLinks`. Each Snøkam app now renders a local SiteFooter that adds
|
|
16
|
+
FAQ/Kontakt with Sanity copy (footerFaqLinkText/footerContactLinkText);
|
|
17
|
+
platform-web uses one footer wrapper (theme/Footer.tsx) reused by SystemChrome.
|
|
18
|
+
|
|
19
|
+
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
20
|
+
|
|
6
21
|
## [3.2.2](https://github.com/snokam/monorepo/compare/@snokam/footer@3.2.1...@snokam/footer@3.2.2) (2026-10-04)
|
|
7
22
|
|
|
8
23
|
**Note:** Version bump only for package @snokam/footer
|
|
@@ -3,6 +3,6 @@ import { FooterProps } from "./types";
|
|
|
3
3
|
* The footer, wired to the app it lives in: logo and copy from the CMS, link targets from the
|
|
4
4
|
* tenant config. {@link FooterBase} is the same footer with those passed in as props.
|
|
5
5
|
*/
|
|
6
|
-
export declare const Footer: ({ theme, showMiljofyrtorn, showBlog, showPresentations,
|
|
6
|
+
export declare const Footer: ({ theme, showMiljofyrtorn, showBlog, showPresentations, extraLinks, transitions, onThemeSave, }: FooterProps) => import("react").JSX.Element;
|
|
7
7
|
export default Footer;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/Footer/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,WAAW,EAAe,MAAM,SAAS,CAAC;AAI/D;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v1/components/Footer/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,WAAW,EAAe,MAAM,SAAS,CAAC;AAI/D;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,iGAQpB,WAAW,gCAkDb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { ThemeModeToggle } from "./ThemeModeToggle";
|
|
|
10
10
|
* The footer, wired to the app it lives in: logo and copy from the CMS, link targets from the
|
|
11
11
|
* tenant config. {@link FooterBase} is the same footer with those passed in as props.
|
|
12
12
|
*/
|
|
13
|
-
export const Footer = ({ theme = FooterTheme.Dark, showMiljofyrtorn = true, showBlog = true, showPresentations = false,
|
|
13
|
+
export const Footer = ({ theme = FooterTheme.Dark, showMiljofyrtorn = true, showBlog = true, showPresentations = false, extraLinks, transitions, onThemeSave, }) => {
|
|
14
14
|
const { getImage, getText, getAttr, getBlock } = usePageContent();
|
|
15
15
|
const config = useConfig();
|
|
16
16
|
const resolvedTheme = useColorScheme();
|
|
@@ -44,8 +44,6 @@ export const Footer = ({ theme = FooterTheme.Dark, showMiljofyrtorn = true, show
|
|
|
44
44
|
},
|
|
45
45
|
]
|
|
46
46
|
: []),
|
|
47
|
-
...(showFaq ? [{ href: `${snokamUrl}/faq`, text: "FAQ" }] : []),
|
|
48
|
-
...(showContact ? [{ href: `${snokamUrl}/kontakt`, text: "Kontakt" }] : []),
|
|
49
47
|
...(extraLinks ?? []),
|
|
50
48
|
];
|
|
51
49
|
return (_jsx(FooterBase, { theme: theme, logo: { url: logo.url, alt: logo.alt, sanityAttr: getAttr(logoKey) }, content: getBlock("footerContent"), links: links, transitions: transitions, themeToggle: _jsx(ThemeModeToggle, { onThemeSave: onThemeSave }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/components/Footer/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAA2B,WAAW,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,KAAK,GAAG,WAAW,CAAC,IAAI,EACxB,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,IAAI,EACf,iBAAiB,GAAG,KAAK,EACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/components/Footer/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,c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E,WAAW,CAAC;IAC1B,mFAAmF;IACnF,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,WAAW,WAAW;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;CAChD"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "4.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/
|
|
14
|
-
"@snokam/
|
|
15
|
-
"@snokam/
|
|
16
|
-
"@snokam/
|
|
13
|
+
"@snokam/auth": "3.3.5",
|
|
14
|
+
"@snokam/sanity-page-content": "4.3.5",
|
|
15
|
+
"@snokam/tenant": "2.1.8",
|
|
16
|
+
"@snokam/ui": "3.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^26.1.1",
|