@dokebi/template-inertia 0.4.1 → 0.4.4

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/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { type Awaitable } from '@dokebi/core';
2
2
  import type { FastifyRequest } from 'fastify';
3
3
  import { type InertiaApi, type Props } from './responder.js';
4
+ export type { InertiaBootFallback, InertiaBootMessages } from './boot-fallback.js';
4
5
  export { InertiaError, type InertiaErrorCode, InertiaUsageError, type InertiaUsageErrorCode, } from './errors.js';
5
6
  export { type InertiaPluginOptions, options } from './options.js';
6
7
  export { type DeferOptions, deepMerge, defer, InertiaProp, isInertiaProp, type MergeOptions, merge, type OnceOptions, once, type PropValue, } from './props.js';
@@ -26,6 +27,11 @@ export interface InertiaSsrOptions {
26
27
  * Vite in development (D-0045). Default: `ssr.js` beside the `vite.entry` when it exists.
27
28
  */
28
29
  readonly entry?: string;
30
+ /**
31
+ * How long one `render(page)` may take (default 5000 ms, 1 to 600000). Past it the render
32
+ * fails with `SSR_TIMEOUT`, handled like any render failure (`failure`), D-0107 §4.
33
+ */
34
+ readonly timeoutMs?: number;
29
35
  }
30
36
  /** Counts since start, for health checks and dashboards. */
31
37
  export interface InertiaSsrStats {
@@ -60,6 +66,11 @@ export interface InertiaScopeOptions {
60
66
  * props as plain HTML, so `sealed` with SSR stops the start (`SEAL_SSR_CONFLICT`).
61
67
  */
62
68
  readonly sealed?: boolean;
69
+ /**
70
+ * The app this scope serves (dokebi-app sets it): named in this scope's log records. 1-64
71
+ * printable ASCII characters, otherwise INVALID_SCOPE.
72
+ */
73
+ readonly app?: string;
63
74
  }
64
75
  /** The `inertia` engine contributed to `dokebi-web:view-engine` (web `WebViewEngine` shape). */
65
76
  export interface InertiaViewEngine {