@bygghammar/cms-platform 0.59.0 → 0.59.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 +5 -0
- package/package.json +1 -1
- package/src/site/routes/public-page.tsx +5 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bygghammar/cms-platform",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.1",
|
|
4
4
|
"description": "Shared CMS platform: blocks, block types, i18n core, UI primitives and design-token contract used by every Bygghammar/Voyara site.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* site, so the engine lives here and the site keeps a thin route wrapper.
|
|
8
8
|
*/
|
|
9
9
|
import { notFound, redirect } from "@tanstack/react-router";
|
|
10
|
-
import type { ComponentType, ReactNode } from "react";
|
|
10
|
+
import type { ComponentType, ReactElement, ReactNode } from "react";
|
|
11
11
|
|
|
12
12
|
export type ResolvedPath =
|
|
13
13
|
| { kind: "page"; pageKey: string }
|
|
14
14
|
| { kind: "redirect"; to: string; status?: number }
|
|
15
|
-
| { kind: "
|
|
15
|
+
| { kind: "notfound" };
|
|
16
16
|
|
|
17
17
|
export type PublicPageHead = {
|
|
18
18
|
meta?: Array<Record<string, string>>;
|
|
@@ -50,9 +50,9 @@ type LoaderArgs = {
|
|
|
50
50
|
export type PublicPageRoute<Ctx> = {
|
|
51
51
|
loader: (args: LoaderArgs) => Promise<{ pageKey: string; ctx: Ctx }>;
|
|
52
52
|
head: (args: { loaderData?: { pageKey: string; ctx: Ctx } }) => PublicPageHead;
|
|
53
|
-
PublicPage:
|
|
54
|
-
ErrorScreen:
|
|
55
|
-
NotFoundScreen:
|
|
53
|
+
PublicPage: (props: { pageKey: string }) => ReactElement;
|
|
54
|
+
ErrorScreen: () => ReactElement;
|
|
55
|
+
NotFoundScreen: () => ReactElement;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export function createPublicPageRoute<Ctx>(deps: PublicPageRouteDeps<Ctx>): PublicPageRoute<Ctx> {
|