foldkit-ssr 0.11.0 → 0.12.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.
Files changed (63) hide show
  1. package/README.md +606 -61
  2. package/dist/{client-qmdYY-Eb.d.ts → client-BEHlUHBv.d.ts} +10 -7
  3. package/dist/client-BEHlUHBv.d.ts.map +1 -0
  4. package/dist/client.d.ts +6 -5
  5. package/dist/client.js +63 -15
  6. package/dist/client.js.map +1 -1
  7. package/dist/context.d.ts +1 -1
  8. package/dist/context.js.map +1 -1
  9. package/dist/diagnostics.d.ts +2 -2
  10. package/dist/diagnostics.js +7 -1
  11. package/dist/diagnostics.js.map +1 -1
  12. package/dist/handoff.d.ts +23 -0
  13. package/dist/handoff.d.ts.map +1 -0
  14. package/dist/handoff.js +15 -0
  15. package/dist/handoff.js.map +1 -0
  16. package/dist/index.d.ts +66 -26
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +242 -45
  19. package/dist/index.js.map +1 -1
  20. package/dist/keep.d.ts +3 -1
  21. package/dist/keep.d.ts.map +1 -1
  22. package/dist/keep.js +21 -6
  23. package/dist/keep.js.map +1 -1
  24. package/dist/{listen-DaUPRKVR.d.ts → listen-7HzKBhqU.d.ts} +11 -2
  25. package/dist/{listen-DaUPRKVR.d.ts.map → listen-7HzKBhqU.d.ts.map} +1 -1
  26. package/dist/listen.d.ts +2 -2
  27. package/dist/listen.js +17 -7
  28. package/dist/listen.js.map +1 -1
  29. package/dist/loader.d.ts +13 -0
  30. package/dist/loader.d.ts.map +1 -0
  31. package/dist/loader.js +156 -0
  32. package/dist/loader.js.map +1 -0
  33. package/dist/marks-CX15BwOw.d.ts +39 -0
  34. package/dist/marks-CX15BwOw.d.ts.map +1 -0
  35. package/dist/marks.d.ts +2 -0
  36. package/dist/marks.js +41 -0
  37. package/dist/marks.js.map +1 -0
  38. package/dist/{resumable-BPN_qQHU.d.ts → resumable-BV9_OKxr.d.ts} +7 -10
  39. package/dist/resumable-BV9_OKxr.d.ts.map +1 -0
  40. package/dist/resumable.d.ts +2 -1
  41. package/dist/resumable.js +16 -19
  42. package/dist/resumable.js.map +1 -1
  43. package/dist/runtimeChunk.d.ts +13 -0
  44. package/dist/runtimeChunk.d.ts.map +1 -0
  45. package/dist/runtimeChunk.js +36 -0
  46. package/dist/runtimeChunk.js.map +1 -0
  47. package/dist/runtimeUrl.d.ts +10 -0
  48. package/dist/runtimeUrl.d.ts.map +1 -0
  49. package/dist/runtimeUrl.js +13 -0
  50. package/dist/runtimeUrl.js.map +1 -0
  51. package/dist/{shared-CJN-m58Z.d.ts → shared-mQ8CXr-r.d.ts} +53 -18
  52. package/dist/shared-mQ8CXr-r.d.ts.map +1 -0
  53. package/dist/shared.d.ts +3 -2
  54. package/dist/shared.js +34 -13
  55. package/dist/shared.js.map +1 -1
  56. package/dist/vite.d.ts +3 -2
  57. package/dist/vite.d.ts.map +1 -1
  58. package/dist/vite.js +2 -1
  59. package/dist/vite.js.map +1 -1
  60. package/package.json +11 -6
  61. package/dist/client-qmdYY-Eb.d.ts.map +0 -1
  62. package/dist/resumable-BPN_qQHU.d.ts.map +0 -1
  63. package/dist/shared-CJN-m58Z.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { n as DecodedBinding, r as EncodedBinding } from "./listen-DaUPRKVR.js";
2
- import { a as FALLBACK_FIELD, d as SLOT_ATTRIBUTE, n as BINDING_ATTRIBUTE, s as KEEP_ATTRIBUTE, u as ResumableBuilder } from "./resumable-BPN_qQHU.js";
3
- import { C as metaMarkup, E as plan, G as HandlerUnnamed, J as SsrDiagnostic, K as PageContained, M as serving, P as staticRegion, U as BundleUnloaded, Y as StaticRegionMissing, c as ResumableConfig, d as ResumeRefused, f as RouteMatch, h as Start, i as Meta, j as serializeJsonScript, k as resume, l as ResumePart, n as Loadable, o as PlanSurface, p as STATIC_ATTRIBUTE, q as PageFailed, r as META_ATTRIBUTE, s as RESUME_ATTRIBUTE, t as FOLDKIT_APP_ATTRIBUTE, u as ResumePlan, z as UnnamedHandler } from "./shared-CJN-m58Z.js";
4
- import { i as Resume, n as Diagnostics, o as UNTIL_LIMIT_MS, r as ReportDiagnostic, t as Diagnostic } from "./client-qmdYY-Eb.js";
1
+ import { a as UNTIL_LIMIT_MS, i as RESUME_ATTRIBUTE, n as FOLDKIT_APP_ATTRIBUTE, r as KEEP_ATTRIBUTE, t as BINDING_ATTRIBUTE } from "./marks-CX15BwOw.js";
2
+ import { n as DecodedBinding, r as EncodedBinding } from "./listen-7HzKBhqU.js";
3
+ import { c as ResumableBuilder, i as FALLBACK_FIELD, l as SLOT_ATTRIBUTE } from "./resumable-BV9_OKxr.js";
4
+ import { A as resume, D as plan, F as staticRegion, G as BundleUnloaded, J as HeadNotMoved, K as CachedPageDiffers, L as unbound, M as serializeJsonScript, N as serving, Q as StaticRegionMissing, V as UnnamedHandler, X as PageFailed, Y as PageContained, Z as SsrDiagnostic, a as Meta, d as ResumePlan, f as ResumeRefused, g as Start, i as META_ATTRIBUTE, l as ResumableConfig, m as STATIC_ATTRIBUTE, p as RouteMatch, q as HandlerUnnamed, r as Loadable, s as PlanSurface, u as ResumePart, w as metaMarkup } from "./shared-mQ8CXr-r.js";
5
+ import { i as Resume, n as Diagnostics, r as ReportDiagnostic, t as Diagnostic } from "./client-BEHlUHBv.js";
5
6
  import { s as keptDocuments } from "./pageCache-DO0pOgnc.js";
6
7
  import { n as requestContext, t as RequestContext } from "./requestContext-DmwmQeci.js";
7
8
  import { Cause, Effect, Layer, Option, Schema } from "effect";
8
- import { CacheOptions, CacheStore, Diagnostic as Diagnostic$1, MetadataSummary } from "foldkit-surface";
9
+ import { CacheOptions, Diagnostic as Diagnostic$1, MetadataSummary, PageCacheStore } from "foldkit-surface";
9
10
  import { EntryModule, RenderError, RenderedApplication } from "foldkit/experimental/server";
10
11
  interface EnvelopeOptions {
11
12
  readonly route?: string | undefined;
@@ -22,8 +23,8 @@ interface EnvelopeOptions {
22
23
  * place the page themselves.
23
24
  */
24
25
  declare const envelope: <Model, Fields extends Schema.Struct.Fields>(resume: ResumePlan<Model, Fields>, model: Model, options?: EnvelopeOptions) => string;
25
- /** Where the browser gets a Model path's value: the envelope, the baseline, or nowhere it may. */
26
- export type Cover = 'state' | 'local' | 'missing';
26
+ /** Where the browser gets a Model path's value: the envelope, itself, or nowhere it may. */
27
+ export type Cover = 'state' | 'restored' | 'local' | 'missing';
27
28
  /** One Surface as a plan covers it, for the server's Model. */
28
29
  export interface SurfaceCoverage {
29
30
  readonly name: string;
@@ -60,11 +61,13 @@ export interface SurfaceCoverage {
60
61
  /** Whether the browser's Model activates it the same way, with the same reads. */
61
62
  readonly sameInBrowser: boolean;
62
63
  }
63
- /** What a plan sends, what it leaves local, and how it covers each Surface. */
64
+ /** What a plan sends, what it leaves local or restored, and how it covers each Surface. */
64
65
  export interface PlanInspection {
65
66
  readonly id: string;
66
67
  readonly state: ReadonlyArray<string>;
67
68
  readonly local: ReadonlyArray<string>;
69
+ /** Model paths the browser reads again before the first render. */
70
+ readonly restored: ReadonlyArray<string>;
68
71
  /** The ids of the parts that resume state the slice cannot carry. */
69
72
  readonly parts: ReadonlyArray<string>;
70
73
  readonly surfaces: ReadonlyArray<SurfaceCoverage>;
@@ -76,7 +79,7 @@ export interface PlanInspection {
76
79
  */
77
80
  declare const inspect: <Model, Fields extends Schema.Struct.Fields>(plan: ResumePlan<Model, Fields>, model: Model) => PlanInspection;
78
81
  declare const ResumeUnsafe_base: Schema.Class<ResumeUnsafe, Schema.TaggedStruct<"ResumeUnsafe", {
79
- readonly reason: Schema.Literals<readonly ["UndeclaredStartup", "Uncovered", "ViewDependsOnUnsentState", "DuplicateStaticRegion", "UngeneratablePath", "UnrestorablePart", "UnencodableBinding", "EagerStartRequired", "UndeclaredSurfaces", "BindingInStaticRegion", "VoidRootWithStyles", "UnkeepableField"]>;
82
+ readonly reason: Schema.Literals<readonly ["UndeclaredStartup", "Uncovered", "ViewDependsOnUnsentState", "DuplicateStaticRegion", "UngeneratablePath", "UnrestorablePart", "UnencodableBinding", "EagerStartRequired", "UndeclaredSurfaces", "BindingInStaticRegion", "VoidRootWithStyles", "RootRefusesHead", "UnkeepableField", "UnkeptField"]>;
80
83
  readonly message: Schema.String;
81
84
  }>, Cause.YieldableError>;
82
85
  /** Why a server refused to render a page against its plan. */
@@ -93,6 +96,8 @@ export interface RenderedPage {
93
96
  readonly envelope: string;
94
97
  /** The head markup of the plan's `meta`, empty without one. */
95
98
  readonly meta: string;
99
+ /** The compiled classes the render drew, for a stylesheet without an HTML scan. */
100
+ readonly drawn: ReadonlySet<string>;
96
101
  /**
97
102
  * Each element whose handler for an event is a function, marked `*`: the
98
103
  * page cannot answer that event before the live runtime boots.
@@ -125,12 +130,13 @@ declare const render: <Model, Fields extends Schema.Struct.Fields, Message = any
125
130
  readonly styles?: Head | undefined;
126
131
  }) => Effect.Effect<RenderedPage, RenderError | ResumeUnsafe>;
127
132
  /**
128
- * What a page adds to its head, given what it rendered: such as a stylesheet
129
- * of the classes the markup uses (`Style.usedIn` in `foldkit-mixins`). The
130
- * same shape describes `styles`, which rides in the rendered root instead,
131
- * for pages whose template the host owns.
133
+ * What a page adds to its head, given what it rendered and the compiled
134
+ * classes it drew: such as a stylesheet of those classes (`Style.usedDrawn`
135
+ * in `foldkit-mixins`, with no scan of the HTML). The same shape describes
136
+ * `styles`, which rides in the rendered root instead, for pages whose
137
+ * template the host owns.
132
138
  */
133
- export type Head = (rendered: RenderedApplication) => string;
139
+ export type Head = (rendered: RenderedApplication, drawn: ReadonlySet<string>) => string;
134
140
  /**
135
141
  * The page to serve: the rendered application in the template, with the
136
142
  * plan's `meta` and `head`'s markup, if any, before `</head>`. The envelope
@@ -140,9 +146,21 @@ export type Head = (rendered: RenderedApplication) => string;
140
146
  declare const page: (template: string, result: {
141
147
  readonly rendered: RenderedApplication;
142
148
  readonly meta: string;
149
+ readonly drawn: ReadonlySet<string>;
143
150
  }, options?: {
144
151
  readonly head?: Head | undefined;
145
152
  }) => string;
153
+ /**
154
+ * `render`, the host's document renderer, with the head markup `SSR.entry`
155
+ * carries in the rendered root (a plan's `meta`) moved before the document's
156
+ * `</head>`, where link previews and crawlers read it. Wrap whatever draws the
157
+ * document: `SSR.headed(renderDocument)`, or, for a host that hands Foldkit a
158
+ * template, `SSR.headed(application => injectIntoTemplate(template,
159
+ * application))`. The markup is taken from the rendered root alone, where the
160
+ * entry put it, so nothing a view draws elsewhere is moved. Without it the
161
+ * markup stays in the body, and `SSR.hydrate` reports `HeadNotMoved`.
162
+ */
163
+ declare const headed: <Args extends ReadonlyArray<unknown>>(render: (application: RenderedApplication, ...args: Args) => string) => (application: RenderedApplication, ...args: Args) => string;
146
164
  /** A page generated at build time, and the file a static host serves it from. */
147
165
  export interface GeneratedPage {
148
166
  readonly path: string;
@@ -222,9 +240,9 @@ declare const generate: <Model, Fields extends Schema.Struct.Fields, const Paths
222
240
  * `handleRequest` still classifies static misses and answers `HEAD` without
223
241
  * a body.
224
242
  *
225
- * What the page says of itself (`meta`) and per-page `head` markup are
226
- * written into a template's head, which the host owns here: a plan with
227
- * `meta` is refused when the entry is made, and served with `SSR.generate`.
243
+ * What the page says of itself (`meta`) belongs in the head, which the host
244
+ * owns here: the entry carries it in the rendered root, and the host's
245
+ * document renderer, wrapped in `SSR.headed`, moves it before `</head>`.
228
246
  */
229
247
  declare const entry: <Model, Fields extends Schema.Struct.Fields, Message = any>(config: ResumableConfig<Model, Message>, plan: ResumePlan<Model, Fields>, options: {
230
248
  readonly buildId: string;
@@ -290,6 +308,17 @@ declare const entry: <Model, Fields extends Schema.Struct.Fields, Message = any>
290
308
  * `500` and reported, as a failed render is.
291
309
  */
292
310
  readonly status?: ((model: Model, request: Request) => number) | undefined;
311
+ /**
312
+ * Where a `GET` or `HEAD` is sent instead of drawn, from the Model
313
+ * `prepare` made: `some(path)` answers `303` to it and the page is never
314
+ * rendered, `none` renders it. The answer carries the `headers` given that
315
+ * Model, and says `cache-control: private, no-store` over any they set: a
316
+ * redirect is decided for one reader, and no cache keeps or shares it. The
317
+ * path must start with one `/` and stay on this origin
318
+ * (`/sign-in?next=%2Fnotes`); anything else, or a `redirect` that throws,
319
+ * is answered `500` and reported. A posted form is answered by `answerPost`.
320
+ */
321
+ readonly redirect?: ((model: Model, request: Request) => Option.Option<string>) | undefined;
293
322
  /**
294
323
  * How a posted form is answered. `'page'`, the default, is the page
295
324
  * `update` reached, at the address the form posted to, so a reload posts
@@ -301,11 +330,18 @@ declare const entry: <Model, Fields extends Schema.Struct.Fields, Message = any>
301
330
  readonly answerPost?: 'page' | 'redirect' | undefined;
302
331
  /**
303
332
  * The paths a build prerenders through this entry (Foldkit's plugin,
304
- * `ssr.build.prerender`), whose files a static host serves for every
305
- * query. A request for one of them with no query records its path alone,
306
- * as `SSR.generate` does, so the file resumes at `/?q=…` and the
307
- * application starts from that URL. Export the same list as the entry
308
- * module's `prerenderPaths`, which the plugin reads.
333
+ * `ssr.build.prerender`), each one file a static host serves to every
334
+ * visitor, at every query. A request for one of them with no query records
335
+ * its path alone, as `SSR.generate` does, so the file resumes at `/?q=…`
336
+ * and the application starts from that URL. Export the same list as the
337
+ * entry module's `prerenderPaths`, which the plugin reads.
338
+ *
339
+ * Such a page must be one `cache` would keep for every visitor: every
340
+ * read through `pageReader` public, no request header read (not even an
341
+ * absent one, which a file cannot vary by), nothing set by `headers`,
342
+ * and status `200`. Otherwise `renderPage` rejects naming the read, the
343
+ * header or the status, so the build fails. The page answers with no
344
+ * headers of its own, and the cache is not consulted for it.
309
345
  */
310
346
  readonly prerendered?: ReadonlyArray<string> | undefined;
311
347
  /**
@@ -319,8 +355,8 @@ declare const entry: <Model, Fields extends Schema.Struct.Fields, Message = any>
319
355
  * Keeps rendered `GET` and `HEAD` pages in `store` by build and URL
320
356
  * (#428). A page is kept only when every read the render made through
321
357
  * `foldkit-remote-server`'s `pageReader` was public, every request
322
- * header `flags`, `prepare`, `headers` or `status` read was absent (the
323
- * request's `cookie` included), `headers` set no `cookie` or
358
+ * header `flags`, `prepare`, `redirect`, `headers` or `status` read was
359
+ * absent (the request's `cookie` included), `headers` set no `cookie` or
324
360
  * `cache-control` of its own, and the status is `200`: drawn from the
325
361
  * URL alone. It is kept for `maxAge` or its reads' shortest, and serves
326
362
  * each later request that also lacks the headers it read; it says
@@ -338,7 +374,7 @@ declare const entry: <Model, Fields extends Schema.Struct.Fields, Message = any>
338
374
  }) => EntryModule;
339
375
  /** Where `SSR.entry` keeps pages, for how long, and whether it checks them (`cache`). */
340
376
  export type PageCache = CacheOptions & {
341
- readonly store: CacheStore;
377
+ readonly store: PageCacheStore;
342
378
  readonly check?: boolean | undefined;
343
379
  };
344
380
  /**
@@ -376,6 +412,8 @@ interface HandleOptions<Model> {
376
412
  readonly buildId: string;
377
413
  readonly flags?: unknown;
378
414
  readonly styles?: Head | undefined;
415
+ /** Carry the plan's `meta` in the root for `SSR.headed`, as `SSR.entry` serves a post's page. */
416
+ readonly metaInRoot?: boolean | undefined;
379
417
  /** The Model the post starts from, from `init`'s, as `SSR.entry`'s `prepare`. */
380
418
  readonly prepare?: Prepare<Model> | undefined;
381
419
  /**
@@ -402,16 +440,18 @@ export declare const SSR: {
402
440
  }) => void;
403
441
  inspect: typeof inspect;
404
442
  static: typeof staticRegion;
443
+ unbound: typeof unbound;
405
444
  serving: typeof serving;
406
445
  generate: typeof generate;
407
446
  entry: typeof entry;
408
447
  checkCache: typeof checkCache;
409
448
  keptDocuments: typeof keptDocuments;
449
+ headed: typeof headed;
410
450
  handle: typeof handle;
411
451
  serializeJsonScript: typeof serializeJsonScript;
412
452
  sitemap: typeof sitemap;
413
453
  robots: typeof robots;
414
454
  requestContext: typeof requestContext;
415
455
  };
416
- export { BINDING_ATTRIBUTE, type BundleUnloaded, type DecodedBinding, type Diagnostic, Diagnostics, FALLBACK_FIELD, FOLDKIT_APP_ATTRIBUTE, type HandlerUnnamed, KEEP_ATTRIBUTE, type Loadable, META_ATTRIBUTE, type Meta, type PageContained, type PageFailed, type PlanSurface, RESUME_ATTRIBUTE, type ReportDiagnostic, type RequestContext, type ResumableBuilder, type ResumableConfig, Resume, type ResumePart, type ResumePlan, ResumeRefused, SLOT_ATTRIBUTE, STATIC_ATTRIBUTE, type SsrDiagnostic, type Start, type StaticRegionMissing, UNTIL_LIMIT_MS, type UnnamedHandler, metaMarkup };
456
+ export { BINDING_ATTRIBUTE, type BundleUnloaded, type CachedPageDiffers, type DecodedBinding, type Diagnostic, Diagnostics, FALLBACK_FIELD, FOLDKIT_APP_ATTRIBUTE, type HandlerUnnamed, type HeadNotMoved, KEEP_ATTRIBUTE, type Loadable, META_ATTRIBUTE, type Meta, type PageContained, type PageFailed, type PlanSurface, RESUME_ATTRIBUTE, type ReportDiagnostic, type RequestContext, type ResumableBuilder, type ResumableConfig, Resume, type ResumePart, type ResumePlan, ResumeRefused, SLOT_ATTRIBUTE, STATIC_ATTRIBUTE, type SsrDiagnostic, type Start, type StaticRegionMissing, UNTIL_LIMIT_MS, type UnnamedHandler, metaMarkup };
417
457
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["Diagnostic"],"sources":["../src/index.ts"],"mappings":";;;;;;;;;UAyHU;WACC;WACA,QAAQ;WACR,WAAW,cAAc;;WAEzB,SAAS;;;;;;;;;cAUd,WAAY,OAAO,eAAe,OAAO,OAAO,QAAM,QAClD,WAAW,OAAO,SAAO,OAC1B,OAAK,UACH;;YAgHC;;iBAGK;WACN;;WAEA;;WAEA;;;;;WAKA;aAEM;aACA;eAAwB;eAAuB,OAAO;;;;WAI5D;aAAwB;aAAuB,OAAO;;;WAEtD,OAAO;aAAyB;aAAuB,OAAO;;;;;;WAK9D,WAAW,cAAc;;WAEzB;;;iBAIM;WACN;WACA,OAAO;WACP,OAAO;;WAEP,OAAO;WACP,UAAU,cAAc;;;;;;;cA4C7B,UAAW,OAAO,eAAe,OAAO,OAAO,QAAM,MACnD,WAAW,OAAO,SAAO,OACxB,UAC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