netjes 0.0.4 → 0.0.6
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/README.md +12 -8
- package/cli/commands.mjs +94 -15
- package/cli/process-io.mjs +2 -2
- package/cli/scaffold.mjs +89 -8
- package/dist/actions.d.ts +3 -2
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +5 -4
- package/dist/actions.js.map +1 -1
- package/dist/client-entry.js +4 -1
- package/dist/client-entry.js.map +1 -1
- package/dist/document.d.ts +3 -1
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +4 -3
- package/dist/document.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/lang.d.ts +10 -0
- package/dist/lang.d.ts.map +1 -0
- package/dist/lang.js +26 -0
- package/dist/lang.js.map +1 -0
- package/dist/link.d.ts +15 -3
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +15 -9
- package/dist/link.js.map +1 -1
- package/dist/locale.d.ts +5 -0
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +4 -0
- package/dist/locale.js.map +1 -1
- package/dist/metadata.d.ts +81 -4
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js +129 -7
- package/dist/metadata.js.map +1 -1
- package/dist/modules.d.ts +6 -1
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +15 -1
- package/dist/modules.js.map +1 -1
- package/dist/mounted.d.ts +3 -7
- package/dist/mounted.d.ts.map +1 -1
- package/dist/mounted.js.map +1 -1
- package/dist/navigation-guard.d.ts +59 -0
- package/dist/navigation-guard.d.ts.map +1 -0
- package/dist/navigation-guard.js +116 -0
- package/dist/navigation-guard.js.map +1 -0
- package/dist/offline.d.ts +11 -0
- package/dist/offline.d.ts.map +1 -0
- package/dist/offline.js +98 -0
- package/dist/offline.js.map +1 -0
- package/dist/payload.d.ts +38 -2
- package/dist/payload.d.ts.map +1 -1
- package/dist/payload.js +54 -7
- package/dist/payload.js.map +1 -1
- package/dist/render-document.d.ts +8 -1
- package/dist/render-document.d.ts.map +1 -1
- package/dist/render-document.js +2 -0
- package/dist/render-document.js.map +1 -1
- package/dist/root.d.ts.map +1 -1
- package/dist/root.js +10 -1
- package/dist/root.js.map +1 -1
- package/dist/route-tree.d.ts +2 -1
- package/dist/route-tree.d.ts.map +1 -1
- package/dist/route-tree.js +14 -7
- package/dist/route-tree.js.map +1 -1
- package/dist/router.d.ts +101 -20
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +590 -68
- package/dist/router.js.map +1 -1
- package/dist/schema.d.ts +2 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +5 -0
- package/dist/schema.js.map +1 -1
- package/dist/service-worker.d.ts +81 -0
- package/dist/service-worker.d.ts.map +1 -0
- package/dist/service-worker.js +584 -0
- package/dist/service-worker.js.map +1 -0
- package/dist/testing.d.ts +18 -0
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +63 -22
- package/dist/testing.js.map +1 -1
- package/package.json +16 -5
- package/sidecar/server.mjs +105 -16
- package/skills/netjes/SKILL.md +5 -3
- package/skills/netjes/references/caching-and-streaming.md +22 -1
- package/skills/netjes/references/data-and-actions.md +5 -4
- package/skills/netjes/references/deployment.md +3 -3
- package/skills/netjes/references/routing.md +14 -6
- package/skills/netjes/references/testing.md +6 -3
- package/src/actions.tsx +5 -4
- package/src/client-entry.tsx +4 -1
- package/src/document.tsx +17 -5
- package/src/index.ts +12 -2
- package/src/lang.ts +28 -0
- package/src/link.tsx +37 -9
- package/src/locale.ts +5 -0
- package/src/metadata.tsx +207 -11
- package/src/modules.ts +19 -3
- package/src/mounted.tsx +3 -3
- package/src/navigation-guard.ts +136 -0
- package/src/offline.ts +97 -0
- package/src/payload.ts +78 -8
- package/src/render-document.tsx +10 -1
- package/src/root.tsx +22 -10
- package/src/route-tree.tsx +18 -7
- package/src/router.tsx +765 -104
- package/src/schema.ts +11 -0
- package/src/service-worker.ts +632 -0
- package/src/testing-vitest.ts +1 -1
- package/src/testing.tsx +68 -15
- package/template/Dockerfile +1 -1
- package/template/Dockerfile.pnpm +68 -0
- package/template/Dockerfile.workspace +52 -0
- package/template/Dockerfile.workspace.dockerignore +15 -0
- package/template/README.md +6 -2
- package/template/_AGENTS.md +9 -3
- package/template/app/layout.tsx +0 -1
- package/template/docker-compose.override.yml +15 -3
- package/template/generated/netjes.ts +1 -1
- package/tsconfig.strict-app.json +27 -0
- package/vite/packages.mjs +97 -0
- package/vite/plugin.d.ts +8 -1
- package/vite/plugin.mjs +156 -9
- /package/template/{public/favicon.svg → app/icon.svg} +0 -0
package/dist/router.d.ts
CHANGED
|
@@ -2,34 +2,54 @@ import { type ComponentType, type ReactNode } from 'react';
|
|
|
2
2
|
import type { EncodedForm } from './form-data.ts';
|
|
3
3
|
import type { Href } from './href.ts';
|
|
4
4
|
import { type ModuleLoader, type RouteModules } from './modules.ts';
|
|
5
|
+
import { NavigationGuards, type NavigationGuardOptions } from './navigation-guard.ts';
|
|
5
6
|
import { type ActionResponse, type PagePayload, type Params, type SpecialPageRef } from './payload.ts';
|
|
6
7
|
import { type StandardSchemaV1 } from './schema.ts';
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
export type { NavigationAttempt, NavigationAttemptType, NavigationGuardOptions } from './navigation-guard.ts';
|
|
9
|
+
/**
|
|
10
|
+
* A navigation, a refresh or a form post that ended without a page, while the page on screen stayed. `useNavigation()`
|
|
11
|
+
* holds it until the next navigation, refresh or form post starts.
|
|
12
|
+
*/
|
|
13
|
+
export type NavigationError = {
|
|
14
|
+
/**
|
|
15
|
+
* What failed: a navigation to another URL (a link, a GET form, `push`, `replace`, Back or Forward), `router.refresh()`
|
|
16
|
+
* (also the one a server action asks for), or a form post.
|
|
17
|
+
*/
|
|
18
|
+
kind: 'navigate' | 'refresh' | 'submit';
|
|
19
|
+
/** The status of an answer that was no page, or `null` when no answer came (the connection failed). */
|
|
9
20
|
status: number | null;
|
|
10
|
-
|
|
21
|
+
/** Where it went: the path and query, without the base path. */
|
|
22
|
+
location: string;
|
|
11
23
|
};
|
|
24
|
+
/** @deprecated The name `NavigationError` had while only form posts reported a failure. */
|
|
25
|
+
export type SubmitError = NavigationError;
|
|
12
26
|
/** What the router is doing: idle, or on its way to `location` for a navigation (`loading`) or a form post (`submitting`). */
|
|
13
27
|
export type NavigationState = {
|
|
14
28
|
state: 'idle';
|
|
15
|
-
error?:
|
|
29
|
+
error?: NavigationError;
|
|
16
30
|
} | {
|
|
17
31
|
state: 'loading' | 'submitting';
|
|
18
32
|
location: string;
|
|
19
33
|
};
|
|
34
|
+
/** What `router.push` and `router.replace` take besides the href. */
|
|
35
|
+
export type NavigateOptions = {
|
|
36
|
+
/** Scroll to the top after navigating, or to the #fragment's element. Default true. */
|
|
37
|
+
scroll?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* `useHistoryState` values, by name, that the entry the navigation adds or replaces starts with, over the values of a
|
|
40
|
+
* page that stays on screen. The router keeps a copy (`structuredClone`).
|
|
41
|
+
*/
|
|
42
|
+
historyState?: Readonly<Record<string, unknown>>;
|
|
43
|
+
};
|
|
20
44
|
/** The client router that `useRouter()` returns. */
|
|
21
45
|
export type Router = {
|
|
22
46
|
/**
|
|
23
47
|
* Navigates, adding a history entry. The promise resolves once the router has handed the page to React, which can be
|
|
24
48
|
* before React shows it, or once the navigation has ended another way.
|
|
25
49
|
*/
|
|
26
|
-
push(href: Href, options?:
|
|
27
|
-
scroll?: boolean;
|
|
28
|
-
}): Promise<void>;
|
|
50
|
+
push(href: Href, options?: NavigateOptions): Promise<void>;
|
|
29
51
|
/** Navigates, replacing the history entry. The promise resolves as `push`'s does. */
|
|
30
|
-
replace(href: Href, options?:
|
|
31
|
-
scroll?: boolean;
|
|
32
|
-
}): Promise<void>;
|
|
52
|
+
replace(href: Href, options?: NavigateOptions): Promise<void>;
|
|
33
53
|
/** Fetches the page payload and modules ahead of a navigation. Links do this on hover, focus and touch. */
|
|
34
54
|
prefetch(href: Href): void;
|
|
35
55
|
/**
|
|
@@ -52,12 +72,8 @@ type FocusAtStart = {
|
|
|
52
72
|
focusedAtStart?: Element | null;
|
|
53
73
|
};
|
|
54
74
|
export type InternalRouter = Omit<Router, 'push' | 'replace'> & {
|
|
55
|
-
push(href: Href, options?:
|
|
56
|
-
|
|
57
|
-
} & FocusAtStart): Promise<void>;
|
|
58
|
-
replace(href: Href, options?: {
|
|
59
|
-
scroll?: boolean;
|
|
60
|
-
} & FocusAtStart): Promise<void>;
|
|
75
|
+
push(href: Href, options?: NavigateOptions & FocusAtStart): Promise<void>;
|
|
76
|
+
replace(href: Href, options?: NavigateOptions & FocusAtStart): Promise<void>;
|
|
61
77
|
submit(action: URL, body: SubmitBody, options?: FocusAtStart): Promise<void>;
|
|
62
78
|
onActionResponse(listener: ActionListener): () => void;
|
|
63
79
|
/**
|
|
@@ -66,6 +82,8 @@ export type InternalRouter = Omit<Router, 'push' | 'replace'> & {
|
|
|
66
82
|
*/
|
|
67
83
|
onCookiesChanged(listener: () => void): () => void;
|
|
68
84
|
};
|
|
85
|
+
/** The values `useHistoryState` keeps with one history entry, by name. */
|
|
86
|
+
type HistoryValues = Readonly<Record<string, unknown>>;
|
|
69
87
|
/**
|
|
70
88
|
* Records how far the browser clock is from the server's, given a server time for "now": the `X-Netjes-Now` header
|
|
71
89
|
* of a data response, or for the initial document the payload's `renderedAt` (so the browser judges seeded data
|
|
@@ -77,6 +95,19 @@ export declare function withClockOffset<T extends PagePayload>(payload: T, serve
|
|
|
77
95
|
* One that already starts with the base path (built from it on purpose) is left as it is.
|
|
78
96
|
*/
|
|
79
97
|
export declare function withBasePath(href: string, basePath: string): string;
|
|
98
|
+
/** What `useHistoryState` and `useHistoryRestore` read: the entry on screen, a way to write it, and the restores. */
|
|
99
|
+
export type HistoryContextValue = {
|
|
100
|
+
/** The lineage of the values on screen: kept while navigations carry the page's values over, new when they start over. */
|
|
101
|
+
lineage: number;
|
|
102
|
+
values: HistoryValues;
|
|
103
|
+
/**
|
|
104
|
+
* Sets the value `name` of the entry on screen to what `compute` makes of the entry's values, while the values on
|
|
105
|
+
* screen are of `lineage`; else it does nothing. Stable.
|
|
106
|
+
*/
|
|
107
|
+
set(lineage: number, name: string, compute: (values: HistoryValues) => unknown): void;
|
|
108
|
+
/** Calls `listener` whenever the page on screen was shown from memory after Back or Forward. Stable. */
|
|
109
|
+
onRestore(listener: () => void): () => void;
|
|
110
|
+
};
|
|
80
111
|
export type RouterProviderProps = {
|
|
81
112
|
initial: PagePayload;
|
|
82
113
|
initialModules: RouteModules;
|
|
@@ -89,14 +120,22 @@ export type RouterProviderProps = {
|
|
|
89
120
|
shell?: ComponentType<{
|
|
90
121
|
children: ReactNode;
|
|
91
122
|
}> | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The `lang` the app's root gave the document (`DocumentInfo.lang`: the locale it was rendered in, or
|
|
125
|
+
* `NetjesOptions.Lang`). With it, the router keeps `<html lang>` with the page on screen: the page loader's lang,
|
|
126
|
+
* else the innermost layout loader's, else the page's locale, else this. Without it, it leaves `<html lang>` alone.
|
|
127
|
+
*/
|
|
128
|
+
documentLang?: string | undefined;
|
|
92
129
|
};
|
|
93
|
-
export declare function RouterProvider({ initial, initialModules, loader, errorPage, hardNavigate, showDocument, download, shell: Shell, }: RouterProviderProps): import("react").JSX.Element;
|
|
130
|
+
export declare function RouterProvider({ initial, initialModules, loader, errorPage, hardNavigate, showDocument, download, shell: Shell, documentLang, }: RouterProviderProps): import("react").JSX.Element;
|
|
94
131
|
/** The router's contexts without the router: for the test harness (netjes/testing), which fakes navigation. */
|
|
95
|
-
export declare function RouterContexts({ router, payload, url, navigation, children, }: {
|
|
132
|
+
export declare function RouterContexts({ router, payload, url, navigation, history, guards, children, }: {
|
|
96
133
|
router: InternalRouter;
|
|
97
134
|
payload: PagePayload;
|
|
98
135
|
url: URL;
|
|
99
136
|
navigation: NavigationState;
|
|
137
|
+
history: HistoryContextValue;
|
|
138
|
+
guards: NavigationGuards;
|
|
100
139
|
children: ReactNode;
|
|
101
140
|
}): import("react").JSX.Element;
|
|
102
141
|
export declare function useInternalRouter(): InternalRouter;
|
|
@@ -135,7 +174,49 @@ export declare function useSelectedLayoutSegments(): string[];
|
|
|
135
174
|
/** In a layout: the active segment one level below it (e.g. the selected tab), or null at the layout's own page. */
|
|
136
175
|
export declare function useSelectedLayoutSegment(): string | null;
|
|
137
176
|
export declare function usePagePayload(): PagePayload;
|
|
138
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* The router's state: `loading` during a navigation or a refresh, `submitting` during a form post, else `idle`, with
|
|
179
|
+
* `error` after a navigation, a refresh or a form post that kept the page because it got no page (its `kind` says
|
|
180
|
+
* which), until the next one starts.
|
|
181
|
+
*/
|
|
139
182
|
export declare function useNavigation(): NavigationState;
|
|
140
|
-
|
|
183
|
+
/** Sets a value of `useHistoryState`: the value itself, or a function of the value before. */
|
|
184
|
+
export type SetHistoryState<T> = (next: T | ((previous: T) => T)) => void;
|
|
185
|
+
/**
|
|
186
|
+
* A value kept with the history entry on screen, by `name`, like `useState`: Back, Forward and a reload bring the
|
|
187
|
+
* entry's value back. A new entry starts from `initial`, or from the value its navigation carried (`historyState` on
|
|
188
|
+
* `<Link>`, `router.push` and `router.replace`); a navigation that keeps the page on screen (another query, a fragment,
|
|
189
|
+
* a refresh) keeps its values. The value is `initial` on the server and in the render that hydrates the page. Keep it
|
|
190
|
+
* small and to what the browser can copy (`structuredClone`): ids, names and numbers, not rows.
|
|
191
|
+
*
|
|
192
|
+
* The setter writes into the entry on screen, and like `useState`'s, keeps working and stays the same function through
|
|
193
|
+
* a navigation that keeps the page and its values: `await action(); setTicked([])` clears the ticks after an action
|
|
194
|
+
* that refreshes the page. Once the page has left, or Back or Forward has gone to another entry, it changes nothing.
|
|
195
|
+
*
|
|
196
|
+
* With a schema, the entry's value is parsed by it, and one it rejects gives `initial`: an entry can hold what an older
|
|
197
|
+
* build of the app, or another page, put there. Define the schema at module level.
|
|
198
|
+
*/
|
|
199
|
+
export declare function useHistoryState<T>(name: string, initial: T): [T, SetHistoryState<T>];
|
|
200
|
+
export declare function useHistoryState<Schema extends StandardSchemaV1>(name: string, initial: StandardSchemaV1.InferOutput<Schema>, schema: Schema): [StandardSchemaV1.InferOutput<Schema>, SetHistoryState<StandardSchemaV1.InferOutput<Schema>>];
|
|
201
|
+
/**
|
|
202
|
+
* Calls `callback` each time the page on screen was shown from memory after Back or Forward: a page the router kept
|
|
203
|
+
* (it asks the server nothing), or the whole document the browser kept in its back-forward cache. What the page shows
|
|
204
|
+
* is as old as the visit it is from, so the page can refresh itself (`router.refresh()`) or a part of it. A page the
|
|
205
|
+
* router loads from the server, and Back over a fragment link of the page on screen, do not call it.
|
|
206
|
+
*/
|
|
207
|
+
export declare function useHistoryRestore(callback: () => void): void;
|
|
208
|
+
/**
|
|
209
|
+
* Holds every client navigation while `when` is true, and asks `onAttempt` first: links, `<Form method="get">`,
|
|
210
|
+
* `router.push`, `router.replace`, `router.back`, `router.forward` and the browser's Back and Forward. The navigation
|
|
211
|
+
* waits until the attempt's `proceed()` lets it go on, or its `stay()` keeps the page; for Back and Forward the router
|
|
212
|
+
* puts the entry back first, so the address bar shows the page on screen while the question is open. `proceed()` works
|
|
213
|
+
* whenever it is called, also once `when` is false (after a save), and a navigation that comes while one waits takes its
|
|
214
|
+
* place. While it holds, `beforeunload` has the browser ask before the document unloads: a reload, closing the tab, a
|
|
215
|
+
* link to another site. A link to a fragment of the page on screen, which keeps the page, is not held, and neither is a
|
|
216
|
+
* form post, a server action or `router.refresh()`, nor the page the server's redirect in their answer leads to (the
|
|
217
|
+
* sign-in page after the session expired). With several guards holding, each is asked in turn, the one that
|
|
218
|
+
* started to hold last first, and the first `stay()` ends it. `onAttempt` is the latest render's. Throws outside a
|
|
219
|
+
* Netjes page.
|
|
220
|
+
*/
|
|
221
|
+
export declare function useNavigationGuard(options: NavigationGuardOptions): void;
|
|
141
222
|
//# sourceMappingURL=router.d.ts.map
|
package/dist/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EAYf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAA2C,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAE7G,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EACL,KAAK,cAAc,EAKnB,KAAK,WAAW,EAChB,KAAK,MAAM,EAKX,KAAK,cAAc,EAGpB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,gBAAgB,EAAoC,MAAM,aAAa,CAAC;AAEtF,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE9G;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxC,uGAAuG;IACvG,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,2FAA2F;AAC3F,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C,8HAA8H;AAC9H,MAAM,MAAM,eAAe,GACvB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,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