brumate 0.2.0 → 0.3.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 (101) hide show
  1. package/dist/{boot-D-IdPy7B.d.ts → boot-C25Sa6vq.d.ts} +5 -2
  2. package/dist/cli.js +2 -2
  3. package/dist/{client-C0UCNL3J.js → client-BD6XT-s5.js} +435 -110
  4. package/dist/client-BD6XT-s5.js.map +1 -0
  5. package/dist/{client-MD0ZmcFR.d.ts → client-D0CqSxoO.d.ts} +114 -8
  6. package/dist/{cookies-Av5WFmcf.js → cookies-BzllthiF.js} +2 -1
  7. package/dist/cookies-BzllthiF.js.map +1 -0
  8. package/dist/{defer-D0bo1Gqx.js → defer-BbD7JQhj.js} +6 -2
  9. package/dist/defer-BbD7JQhj.js.map +1 -0
  10. package/dist/devtools-CQgD7NPB.js +623 -0
  11. package/dist/devtools-CQgD7NPB.js.map +1 -0
  12. package/dist/devtools-panel-BVB-W5q4.js +1930 -0
  13. package/dist/devtools-panel-BVB-W5q4.js.map +1 -0
  14. package/dist/events-CSs7OwIC.js +85 -0
  15. package/dist/events-CSs7OwIC.js.map +1 -0
  16. package/dist/{files-Bnn1JqHx.js → files-BXSSrQgc.js} +18 -5
  17. package/dist/files-BXSSrQgc.js.map +1 -0
  18. package/dist/forms-Bg-CwGqX.js +406 -0
  19. package/dist/forms-Bg-CwGqX.js.map +1 -0
  20. package/dist/forms-Cl21hkHt.d.ts +281 -0
  21. package/dist/highlight.d.ts +17 -0
  22. package/dist/highlight.js +269 -0
  23. package/dist/highlight.js.map +1 -0
  24. package/dist/{html-y1q7-t7D.d.ts → html-Bq1rFxX_.d.ts} +36 -4
  25. package/dist/{html-bHZbkK-h.js → html-mNTKzaDD.js} +79 -8
  26. package/dist/html-mNTKzaDD.js.map +1 -0
  27. package/dist/index.d.ts +47 -2
  28. package/dist/index.js +3 -3
  29. package/dist/index.js.map +1 -1
  30. package/dist/{inspect-BJtACnQp.js → inspect-BHpOw1LF.js} +625 -48
  31. package/dist/inspect-BHpOw1LF.js.map +1 -0
  32. package/dist/{loader-B18i3_-T.js → loader-Dos_3NP0.js} +5 -4
  33. package/dist/loader-Dos_3NP0.js.map +1 -0
  34. package/dist/{navigate-BwuZveDF.js → navigate-O78d_zGN.js} +45 -2
  35. package/dist/navigate-O78d_zGN.js.map +1 -0
  36. package/dist/{produce-D4K7qpaL.d.ts → produce-D0V0ICkz.d.ts} +45 -3
  37. package/dist/{produce-CWfJ4byV.js → produce-Doc91GkX.js} +113 -6
  38. package/dist/produce-Doc91GkX.js.map +1 -0
  39. package/dist/{rpc-B-Zkn6Ch.js → rpc-ygMRPmN4.js} +20 -10
  40. package/dist/rpc-ygMRPmN4.js.map +1 -0
  41. package/dist/runtime/client.d.ts +4 -4
  42. package/dist/runtime/client.js +4 -4
  43. package/dist/runtime/devtools.d.ts +188 -3
  44. package/dist/runtime/devtools.js +1 -1
  45. package/dist/runtime/events.d.ts +15 -0
  46. package/dist/runtime/events.js +1 -1
  47. package/dist/runtime/forms.d.ts +2 -0
  48. package/dist/runtime/forms.js +1 -0
  49. package/dist/runtime/gather.d.ts +25 -0
  50. package/dist/runtime/gather.js +33 -0
  51. package/dist/runtime/gather.js.map +1 -0
  52. package/dist/runtime/hot.d.ts +1 -1
  53. package/dist/runtime/html.d.ts +2 -2
  54. package/dist/runtime/html.js +1 -1
  55. package/dist/runtime/loader.d.ts +2 -2
  56. package/dist/runtime/loader.js +2 -2
  57. package/dist/runtime/server.d.ts +5 -4
  58. package/dist/runtime/server.js +5 -5
  59. package/dist/runtime/signals.d.ts +38 -2
  60. package/dist/runtime/signals.js +12 -2
  61. package/dist/runtime/signals.js.map +1 -1
  62. package/dist/runtime/static-loader.d.ts +2 -2
  63. package/dist/runtime/static-loader.js +1 -1
  64. package/dist/runtime/testing.d.ts +2 -2
  65. package/dist/runtime/testing.js +2 -2
  66. package/dist/runtime/values.d.ts +2 -0
  67. package/dist/runtime/values.js +24 -0
  68. package/dist/runtime/values.js.map +1 -0
  69. package/dist/{server-BqfM95r1.js → server-CxVDYE_V.js} +776 -121
  70. package/dist/server-CxVDYE_V.js.map +1 -0
  71. package/dist/{server-BA9SJ2Vm.d.ts → server-DuFYRXrd.d.ts} +284 -15
  72. package/dist/{static-loader-BzE9SRaj.d.ts → static-loader-Drpr0AzI.d.ts} +2 -2
  73. package/dist/{static-loader-DOygOFj5.js → static-loader-nZssh66R.js} +168 -51
  74. package/dist/static-loader-nZssh66R.js.map +1 -0
  75. package/dist/{stream-JaMHMdBD.js → stream-DCYZO4IF.js} +89 -10
  76. package/dist/stream-DCYZO4IF.js.map +1 -0
  77. package/dist/values-B8C7CLvG.d.ts +63 -0
  78. package/dist/vite.d.ts +8 -1
  79. package/dist/vite.js +170 -20
  80. package/dist/vite.js.map +1 -1
  81. package/forms/forms.brm.ts +141 -0
  82. package/package.json +31 -2
  83. package/dist/client-C0UCNL3J.js.map +0 -1
  84. package/dist/cookies-Av5WFmcf.js.map +0 -1
  85. package/dist/defer-D0bo1Gqx.js.map +0 -1
  86. package/dist/devtools-C50VH8gZ.js +0 -113
  87. package/dist/devtools-C50VH8gZ.js.map +0 -1
  88. package/dist/devtools-panel-AYjfwPhj.js +0 -435
  89. package/dist/devtools-panel-AYjfwPhj.js.map +0 -1
  90. package/dist/events-BKWRqtMg.js +0 -52
  91. package/dist/events-BKWRqtMg.js.map +0 -1
  92. package/dist/files-Bnn1JqHx.js.map +0 -1
  93. package/dist/html-bHZbkK-h.js.map +0 -1
  94. package/dist/inspect-BJtACnQp.js.map +0 -1
  95. package/dist/loader-B18i3_-T.js.map +0 -1
  96. package/dist/navigate-BwuZveDF.js.map +0 -1
  97. package/dist/produce-CWfJ4byV.js.map +0 -1
  98. package/dist/rpc-B-Zkn6Ch.js.map +0 -1
  99. package/dist/server-BqfM95r1.js.map +0 -1
  100. package/dist/static-loader-DOygOFj5.js.map +0 -1
  101. package/dist/stream-JaMHMdBD.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { a as attribute, g as spread, i as affix, l as escape, m as raw, p as mergeAttributes, s as classAttribute, t as Raw, y as vars } from "../html-y1q7-t7D.js";
2
- import { n as ElementReference, r as FunctionReference, t as produce } from "../produce-D4K7qpaL.js";
1
+ import { $ as offscreen, A as dispose, At as updated, B as handlerProp, C as children, Ct as text, D as createScope, Dt as update, E as content, Et as track, F as fill, G as leaveRoutes, H as init, I as forget, J as loadModule, K as list, L as get, M as effect, N as elementAt, O as deferInBrowser, Ot as updateContext, P as fail, Q as memo, R as guess, S as cells, St as submitAction, T as consumeContext, Tt as title, U as insert, V as hooks, W as leavePage, X as loader, Y as loadPart, Z as makeId, _ as attrs, _t as setSlots, a as DevtoolsHooks, at as remount, b as branch, bt as spread, c as Part, ct as reset, d as addHead, dt as scopeOf, et as pending, f as addPortal, ft as scopes, g as attr, gt as setOwner, h as asyncMemo, ht as setItem, i as DEVTOOLS, it as rekey, j as dynamic, jt as writeText, k as descendants, kt as updateRoute, l as Scope, lt as rpc, m as afterInsert, mt as setGlobal, n as Component, nt as prop, o as HiddenBody, ot as removeRoot, p as addStyle, pt as set, q as listOf, r as CoreOptions, rt as provideValue, s as LoadReason, st as removeScope, t as ClientModule, tt as portalTo, u as action, ut as rpcPrefix, v as binding, vt as setVar, w as component, wt as timed, x as build, xt as spreadProps, y as bindings, yt as skew, z as handle } from "../client-D0CqSxoO.js";
2
+ import { S as vars, _ as raw, a as attribute, c as classAttribute, g as onAttribute, h as mergeAttributes, i as affix, t as Raw, u as escape } from "../html-Bq1rFxX_.js";
3
+ import { i as FunctionReference, l as unbind, r as ElementReference, t as produce } from "../produce-D0V0ICkz.js";
3
4
  import { c as routeContext, o as createContext, s as navigationContext } from "../context-btHuB01Z.js";
4
- import { $ as provideValue, A as elementAt, B as insert, C as content, Ct as updateRoute, D as dispose, E as descendants, F as guess, G as loadPart, H as leaveRoutes, I as handle, J as memo, K as loader, L as handlerProp, M as fill, N as forget, O as dynamic, P as get, Q as prop, R as hooks, S as consumeContext, St as updateContext, T as deferInBrowser, U as list, V as leavePage, W as loadModule, X as pending, Y as offscreen, Z as portalTo, _ as branch, _t as text, a as DevtoolsHooks, at as rpc, b as children, bt as track, c as Scope, ct as scopes, d as addPortal, dt as setItem, et as rekey, f as addStyle, ft as setOwner, g as attrs, gt as submitAction, h as attr, ht as skew, i as DEVTOOLS, it as reset, j as fail, k as effect, l as action, lt as set, m as asyncMemo, mt as setVar, n as Component, nt as removeRoot, o as HiddenBody, ot as rpcPrefix, p as afterInsert, pt as setSlots, q as makeId, r as CoreOptions, rt as removeScope, s as Part, st as scopeOf, t as ClientModule, tt as remount, u as addHead, ut as setGlobal, v as build, vt as timed, w as createScope, wt as writeText, x as component, xt as update, y as cells, yt as title, z as init } from "../client-MD0ZmcFR.js";
5
- export { ClientModule, Component, CoreOptions, DEVTOOLS, DevtoolsHooks, ElementReference, FunctionReference, HiddenBody, Part, type Raw, Scope, action, addHead, addPortal, addStyle, affix, afterInsert, asyncMemo, attr, attribute, attrs, branch, build, cells, children, classAttribute, component, consumeContext, content, createContext, createScope, deferInBrowser, descendants, dispose, dynamic, effect, elementAt, escape, fail, fill, forget, get, guess, handle, handlerProp, hooks, init, insert, leavePage, leaveRoutes, list, loadModule, loadPart, loader, makeId, memo, mergeAttributes, navigationContext, offscreen, pending, portalTo, produce, prop, provideValue, raw, rekey, remount, removeRoot, removeScope, reset, routeContext, rpc, rpcPrefix, scopeOf, scopes, set, setGlobal, setItem, setOwner, setSlots, setVar, skew, spread, submitAction, text, timed, title, track, update, updateContext, updateRoute, vars, writeText };
5
+ export { ClientModule, Component, CoreOptions, DEVTOOLS, DevtoolsHooks, ElementReference, FunctionReference, HiddenBody, LoadReason, Part, type Raw, Scope, action, addHead, addPortal, addStyle, affix, afterInsert, asyncMemo, attr, attribute, attrs, binding, bindings, branch, build, cells, children, classAttribute, component, consumeContext, content, createContext, createScope, deferInBrowser, descendants, dispose, dynamic, effect, elementAt, escape, fail, fill, forget, get, guess, handle, handlerProp, hooks, init, insert, leavePage, leaveRoutes, list, listOf, loadModule, loadPart, loader, makeId, memo, mergeAttributes, navigationContext, offscreen, onAttribute, pending, portalTo, produce, prop, provideValue, raw, rekey, remount, removeRoot, removeScope, reset, routeContext, rpc, rpcPrefix, scopeOf, scopes, set, setGlobal, setItem, setOwner, setSlots, setVar, skew, spread, spreadProps, submitAction, text, timed, title, track, unbind, update, updateContext, updateRoute, updated, vars, writeText };
@@ -1,5 +1,5 @@
1
- import { c as escape, f as mergeAttributes, h as spread, i as attribute, o as classAttribute, p as raw, r as affix, v as vars } from "../html-bHZbkK-h.js";
2
- import { n as ElementReference, r as FunctionReference, t as produce } from "../produce-CWfJ4byV.js";
1
+ import { g as raw, h as onAttribute, i as attribute, l as escape, m as mergeAttributes, r as affix, s as classAttribute, x as vars } from "../html-mNTKzaDD.js";
2
+ import { i as FunctionReference, p as unbind, r as ElementReference, t as produce } from "../produce-Doc91GkX.js";
3
3
  import { a as routeContext, i as navigationContext, r as createContext } from "../context-CTiSzQRc.js";
4
- import { $ as rpcPrefix, A as handlerProp, B as makeId, C as elementAt, D as get, E as forget, F as leaveRoutes, G as prop, H as offscreen, I as list, J as remount, K as provideValue, L as loadModule, M as init, N as insert, O as guess, P as leavePage, Q as rpc, R as loadPart, S as effect, T as fill, U as pending, V as memo, W as portalTo, X as removeScope, Y as removeRoot, Z as reset, _ as createScope, _t as writeText, a as addStyle, at as setOwner, b as dispose, c as attr, ct as skew, d as build, dt as timed, et as scopeOf, f as cells, ft as title, g as content, gt as updateRoute, h as consumeContext, ht as updateContext, i as addPortal, it as setItem, j as hooks, k as handle, l as attrs, lt as submitAction, m as component, mt as update, n as action, nt as set, o as afterInsert, ot as setSlots, p as children, pt as track, q as rekey, r as addHead, rt as setGlobal, s as asyncMemo, st as setVar, t as DEVTOOLS, tt as scopes, u as branch, ut as text, v as deferInBrowser, w as fail, x as dynamic, y as descendants, z as loader } from "../client-C0UCNL3J.js";
5
- export { DEVTOOLS, ElementReference, FunctionReference, action, addHead, addPortal, addStyle, affix, afterInsert, asyncMemo, attr, attribute, attrs, branch, build, cells, children, classAttribute, component, consumeContext, content, createContext, createScope, deferInBrowser, descendants, dispose, dynamic, effect, elementAt, escape, fail, fill, forget, get, guess, handle, handlerProp, hooks, init, insert, leavePage, leaveRoutes, list, loadModule, loadPart, loader, makeId, memo, mergeAttributes, navigationContext, offscreen, pending, portalTo, produce, prop, provideValue, raw, rekey, remount, removeRoot, removeScope, reset, routeContext, rpc, rpcPrefix, scopeOf, scopes, set, setGlobal, setItem, setOwner, setSlots, setVar, skew, spread, submitAction, text, timed, title, track, update, updateContext, updateRoute, vars, writeText };
4
+ import { $ as removeScope, A as guess, B as loadModule, C as dynamic, Ct as writeText, D as fill, E as fail, F as insert, G as offscreen, H as loader, I as leavePage, J as prop, K as pending, L as leaveRoutes, M as handlerProp, N as hooks, O as forget, P as init, Q as removeRoot, R as list, S as dispose, St as updated, T as elementAt, U as makeId, V as loadPart, W as memo, X as rekey, Y as provideValue, Z as remount, _ as consumeContext, _t as title, a as addStyle, at as set, b as deferInBrowser, bt as updateContext, c as attr, ct as setOwner, d as bindings, dt as skew, et as reset, f as branch, ft as spread, g as component, gt as timed, h as children, ht as text, i as addPortal, it as scopes, j as handle, k as get, l as attrs, lt as setSlots, m as cells, mt as submitAction, n as action, nt as rpcPrefix, o as afterInsert, ot as setGlobal, p as build, pt as spreadProps, q as portalTo, r as addHead, rt as scopeOf, s as asyncMemo, st as setItem, t as DEVTOOLS, tt as rpc, u as binding, ut as setVar, v as content, vt as track, w as effect, x as descendants, xt as updateRoute, y as createScope, yt as update, z as listOf } from "../client-BD6XT-s5.js";
5
+ export { DEVTOOLS, ElementReference, FunctionReference, action, addHead, addPortal, addStyle, affix, afterInsert, asyncMemo, attr, attribute, attrs, binding, bindings, branch, build, cells, children, classAttribute, component, consumeContext, content, createContext, createScope, deferInBrowser, descendants, dispose, dynamic, effect, elementAt, escape, fail, fill, forget, get, guess, handle, handlerProp, hooks, init, insert, leavePage, leaveRoutes, list, listOf, loadModule, loadPart, loader, makeId, memo, mergeAttributes, navigationContext, offscreen, onAttribute, pending, portalTo, produce, prop, provideValue, raw, rekey, remount, removeRoot, removeScope, reset, routeContext, rpc, rpcPrefix, scopeOf, scopes, set, setGlobal, setItem, setOwner, setSlots, setVar, skew, spread, spreadProps, submitAction, text, timed, title, track, unbind, update, updateContext, updateRoute, updated, vars, writeText };
@@ -1,5 +1,5 @@
1
- import { o as ScopeId } from "../produce-D4K7qpaL.js";
2
- import { c as Scope } from "../client-MD0ZmcFR.js";
1
+ import { Mt as NavigationReport, l as Scope } from "../client-D0CqSxoO.js";
2
+ import { s as ScopeId } from "../produce-D0V0ICkz.js";
3
3
  //#region src/runtime/devtools.d.ts
4
4
  /** Something that happened on the page, for the log of the panel. */
5
5
  export interface DevtoolsEntry {
@@ -15,23 +15,208 @@ export interface DevtoolsEntry {
15
15
  slot: number;
16
16
  };
17
17
  }
18
+ /** What the plugin tells the devtools about the dev server. */
19
+ export interface DevtoolsMeta {
20
+ version?: string;
21
+ vite?: string;
22
+ }
23
+ /** An error for the Errors tab: of a render on the server, of Vite, or of code in the browser. */
24
+ export interface ErrorEntry {
25
+ time: number;
26
+ source: "server" | "compile" | "browser";
27
+ message: string;
28
+ stack?: string;
29
+ /** The lines around the error, as Vite's overlay shows them. */
30
+ frame?: string;
31
+ /** The place of the error, such as a compile error in a `.brm` file. */
32
+ loc?: {
33
+ file: string;
34
+ line: number;
35
+ column: number;
36
+ };
37
+ /** The plugin that threw it, such as `brumate`. */
38
+ plugin?: string;
39
+ }
40
+ /** What Vite's overlay gets, and what `errorPage` sends. */
41
+ export interface ErrorPayload {
42
+ message: string;
43
+ stack?: string;
44
+ frame?: string;
45
+ plugin?: string;
46
+ id?: string;
47
+ loc?: {
48
+ file?: string;
49
+ line: number;
50
+ column: number;
51
+ };
52
+ }
53
+ /** The part of `import.meta.hot` that the devtools listen to. */
54
+ interface HotContext {
55
+ on(event: string, listener: (payload: never) => void): void;
56
+ }
57
+ /** Code of a component that loaded, or is loading, for the Loading tab. */
58
+ export interface LoadEntry {
59
+ component: string;
60
+ /** The part, such as `h3` or `update`, `entry` for the module, or `all` for a merged module. */
61
+ part: string;
62
+ /**
63
+ * Why it loaded: `event`, `block`, `call`, `template`, `state`, `write`, `error`, `reset` or
64
+ * `prop`, or a preload: `hover`, `visible`, `idle` or `eager`.
65
+ */
66
+ reason: string;
67
+ start: number;
68
+ end?: number;
69
+ failed?: boolean;
70
+ /** For a preload: true once something ran the code, such as a handler. */
71
+ used: boolean;
72
+ }
73
+ /** A server function call, for the Timeline tab. */
74
+ export interface CallTiming {
75
+ name: string;
76
+ start: number;
77
+ end?: number;
78
+ /** The status of the answer, `redirect` for a redirect, or `failed`. */
79
+ status?: number | "redirect" | "failed";
80
+ /** How long the function took on the server, from the `Server-Timing` of the dev server. */
81
+ server?: number;
82
+ }
83
+ /** A batch of updates that a write ran, with its effects. */
84
+ export interface UpdateTiming {
85
+ count: number;
86
+ start: number;
87
+ end: number;
88
+ }
89
+ /**
90
+ * A handler that ran, for the Timeline tab: when its event came, when its
91
+ * code was ready and the handlers before it had started, when its call
92
+ * returned, and when the promise of an async handler settled. The server
93
+ * calls and the updates that ran meanwhile are its own.
94
+ */
95
+ export interface Interaction {
96
+ ref: string;
97
+ /** What happened, such as `click on <button>`. */
98
+ label: string;
99
+ begun: number;
100
+ ready: number;
101
+ end: number;
102
+ settled?: number;
103
+ failed?: boolean;
104
+ calls: CallTiming[];
105
+ updates: UpdateTiming[];
106
+ }
107
+ /** A block of the page that renders later, for the Blocks tab. */
108
+ export interface BlockEntry {
109
+ kind: "loading" | "defer" | "client" | "$client";
110
+ /** The boundary of `#loading` and `#defer`, or the `b-b` of the template of the others. */
111
+ id: string;
112
+ /** The trigger of `#defer`, `#client` and `$client`. */
113
+ trigger?: string;
114
+ /** The reference that `#client` and `$client` run. */
115
+ ref?: string;
116
+ /** The template that the loader reads for `#defer`, `#client` and `$client`. */
117
+ template?: Element;
118
+ state: "waiting" | "loading" | "streaming" | "rendered" | "failed";
119
+ /** When the panel first saw the block, when its trigger fired, and when it rendered. */
120
+ seen: number;
121
+ fired?: number;
122
+ rendered?: number;
123
+ /** True while the devtools show its fallback in place of its body. */
124
+ fallback?: boolean;
125
+ }
126
+ /** The loads that are preloads, which the Loading tab marks when nothing used them. */
127
+ export declare const PRELOADS: ReadonlySet<string>;
128
+ /** An effect or a `$client` callback of a scope, with how it ran. */
129
+ export interface EffectEntry {
130
+ scope: ScopeId;
131
+ /** The ID of the component of the scope, and the scope's number in it. */
132
+ component: string;
133
+ k: number;
134
+ /** Its name in the update code: `e<n>` for an effect, `c<n>` for a `$client` callback. */
135
+ name: string;
136
+ runs: number;
137
+ /** When its last runs were, the newest last, at most 50. */
138
+ recent: number[];
139
+ /** The time of all its runs, in milliseconds. */
140
+ time: number;
141
+ cleanups: number;
142
+ lastCleanup?: number;
143
+ /** False once its cleanup ran and it has not run again, such as in a removed scope. */
144
+ active: boolean;
145
+ }
18
146
  export interface DevtoolsState {
19
147
  scopes?: Map<ScopeId, Scope>;
20
148
  /** Writes a slot, as a handler does, so the page updates. */
21
149
  set?: (scope: Scope, slot: number, value: unknown) => void;
150
+ /** Runs a reference for an element, as the loader does for a trigger. */
151
+ handle?: (element: Element, ref: string, event?: Event) => Promise<unknown>;
22
152
  log: DevtoolsEntry[];
153
+ /** The code that loaded, by `component:part`, in the order it started. */
154
+ loads: Map<string, LoadEntry>;
155
+ /** The blocks of the page, by kind and ID. */
156
+ blocks: Map<string, BlockEntry>;
157
+ /** Asks the server for the body of a `#defer` block now. */
158
+ fire?: (block: BlockEntry) => void;
159
+ /**
160
+ * Shows the fallback of a `#loading` or `#defer` block in place of its
161
+ * body, or its body again. False when the page did not keep its fallback.
162
+ */
163
+ showFallback?: (block: BlockEntry, on: boolean) => boolean;
23
164
  /** The scopes written since the panel last drew, by scope ID. */
24
165
  written: Set<ScopeId>;
25
166
  /** The URL prefix of the inspect endpoint of the dev server. */
26
167
  endpoint: string;
168
+ /** The versions of brumate and Vite, from the plugin. */
169
+ meta: DevtoolsMeta;
170
+ /** The errors of the page, oldest first. */
171
+ errors: ErrorEntry[];
172
+ /** The handlers that ran, oldest first, with their calls and updates. */
173
+ timeline: Interaction[];
174
+ /** The effects and `$client` callbacks that ran, by scope and name. */
175
+ effects: Map<string, EffectEntry>;
176
+ /** The client navigations of the page, newest last, at most 20. */
177
+ navigations: NavigationReport[];
178
+ /** Opens the panel on a tab, such as `errors`. */
179
+ open?: (tab: string) => void;
180
+ /** Shows the number of errors on the tab. */
181
+ errorCount?: () => void;
182
+ /** True while the elements that change are outlined on the page. */
183
+ flash: boolean;
184
+ /** Turns the outlines of changed elements on or off, and keeps the choice. */
185
+ setFlash?: (on: boolean) => void;
186
+ /** While the panel is open: sets its top edge to a place of the pointer, and keeps it. */
187
+ resize?: (clientY: number) => void;
188
+ resized?: () => void;
27
189
  /** Called after each change, while the panel is open. */
28
190
  changed?: () => void;
29
191
  }
192
+ /**
193
+ * The logo of brumate: the pole and the bowl of a b, in outline, where the
194
+ * pole runs through the left of the bowl. The part they share is orange.
195
+ */
196
+ export declare const LOGO = "<svg viewBox=\"0 0 32 32\" width=\"100%\" height=\"100%\" aria-hidden=\"true\"><defs><linearGradient id=\"brumate-logo-fill\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"#ffc38a\"/><stop offset=\".5\" stop-color=\"#ee7a3e\"/><stop offset=\"1\" stop-color=\"#e0445a\"/></linearGradient><clipPath id=\"brumate-logo-pole\"><rect x=\"7.5\" y=\"2.5\" width=\"8\" height=\"27\" rx=\"4\"/></clipPath></defs><circle cx=\"18\" cy=\"19.5\" r=\"10\" fill=\"url(#brumate-logo-fill)\" clip-path=\"url(#brumate-logo-pole)\"/><g fill=\"none\" stroke=\"#ece8e4\" stroke-width=\"2.2\"><rect x=\"7.5\" y=\"2.5\" width=\"8\" height=\"27\" rx=\"4\"/><circle cx=\"18\" cy=\"19.5\" r=\"10\"/></g></svg>";
30
197
  /** The root scope of a scope, whose `m` names its component. */
31
198
  export declare function rootOf(scope: Scope): Scope;
32
199
  /** A short text for a value in the log. */
33
200
  export declare function preview(value: unknown): string;
201
+ /**
202
+ * Reads the blocks of the page from their markers, and updates their state.
203
+ * Returns true when something changed.
204
+ *
205
+ * - `#defer`: a `<template b-defer>`, and `<!--l…-->` around its fallback until its body arrives.
206
+ * - `#loading`: `<!--l…-->` around its fallback until the server streams its body.
207
+ * - `#client`: a `<template b-client>` with a `#k` reference, and a marker that gets `:1` once
208
+ * its body rendered.
209
+ * - `$client`: a `<template b-client>` with a `#c` reference.
210
+ */
211
+ export declare function scanBlocks(state: DevtoolsState): boolean;
212
+ /**
213
+ * Adds an error to the Errors tab. An error of the server or of Vite opens
214
+ * the panel on it, as Vite's overlay would. An error of the browser only
215
+ * counts on the button.
216
+ */
217
+ export declare function reportError(state: DevtoolsState, payload: ErrorPayload, source: ErrorEntry["source"]): void;
34
218
  /** Listens to the core, and adds the button that opens the panel. */
35
- export declare function installDevtools(endpoint?: string, rpc?: string): DevtoolsState;
219
+ export declare function installDevtools(endpoint?: string, rpc?: string, meta?: DevtoolsMeta, hot?: HotContext): DevtoolsState;
36
220
  //#endregion
221
+ export {};
37
222
  //# sourceMappingURL=devtools.d.ts.map
@@ -1 +1 @@
1
- export { t as installDevtools, n as preview, r as rootOf } from "../devtools-C50VH8gZ.js";
1
+ export { t as LOGO, n as PRELOADS, r as installDevtools, i as preview, a as reportError, o as rootOf, s as scanBlocks } from "../devtools-CQgD7NPB.js";
@@ -20,6 +20,21 @@ export declare function prevent<H extends Handler>(handler: H, ...keys: KeyName[
20
20
  export declare function stop<H extends Handler>(handler: H): H;
21
21
  /** Runs the handler for the first event only. */
22
22
  export declare function once<H extends Handler>(handler: H): H;
23
+ /**
24
+ * Runs the handler inside a view transition, so the browser animates the
25
+ * change of the page, such as an element that `#if` removes or a list that
26
+ * changes order. CSS styles the animation, with `view-transition-name` and
27
+ * `::view-transition-*`.
28
+ *
29
+ * - The transition holds the writes that the handler makes before its first
30
+ * `await`. Writes after it, such as after a server call, change the page
31
+ * without an animation.
32
+ * - `types` are the types of the transition, which `:active-view-transition-type()`
33
+ * matches in CSS.
34
+ * - Without view transitions, or with `prefers-reduced-motion`, the handler
35
+ * runs as it is.
36
+ */
37
+ export declare function transition<H extends Handler>(handler: H, ...types: string[]): H;
23
38
  /** Runs the handler before the handlers of the elements inside, as a listener in the capture phase. */
24
39
  export declare function capture<H extends Handler>(handler: H): H;
25
40
  //#endregion
@@ -1 +1 @@
1
- export { t as KEY_NAMES, n as MODIFIERS, r as capture, i as once, a as prevent, o as stop } from "../events-BKWRqtMg.js";
1
+ export { t as KEY_NAMES, n as MODIFIERS, r as capture, i as once, a as prevent, o as stop, s as transition } from "../events-CSs7OwIC.js";
@@ -0,0 +1,2 @@
1
+ import { A as intentValue, C as formErrorsOf, D as getAt, E as formatPath, F as validateForm, I as validateValues, M as parseIntent, N as parsePath, O as groupIssues, P as setAt, S as checkedSince, T as formValues, _ as PathSegment, a as FieldAttributes, b as applyLocalIntent, c as FormErrors, d as INTENT, f as Intent, g as MAX_INDEX, h as LocalChanges, i as Field, j as localSince, k as intentButton, l as FormIssue, m as ListItem, n as DEFAULT_SUBMIT, o as FieldState, p as IntentAttributes, r as FORBIDDEN, s as Fields, t as CheckedErrors, u as FormState, v as SubmissionResult, w as formFields, x as checkField, y as applyIntent } from "../forms-Cl21hkHt.js";
2
+ export { CheckedErrors, DEFAULT_SUBMIT, FORBIDDEN, Field, FieldAttributes, FieldState, Fields, FormErrors, FormIssue, FormState, INTENT, Intent, IntentAttributes, ListItem, LocalChanges, MAX_INDEX, PathSegment, SubmissionResult, applyIntent, applyLocalIntent, checkField, checkedSince, formErrorsOf, formFields, formValues, formatPath, getAt, groupIssues, intentButton, intentValue, localSince, parseIntent, parsePath, setAt, validateForm, validateValues };
@@ -0,0 +1 @@
1
+ export { t as DEFAULT_SUBMIT, n as FORBIDDEN, r as INTENT, i as MAX_INDEX, a as applyIntent, o as applyLocalIntent, s as checkField, c as checkedSince, l as formErrorsOf, u as formFields, d as formValues, f as formatPath, p as getAt, m as groupIssues, h as intentButton, g as intentValue, _ as localSince, v as parseIntent, y as parsePath, b as setAt, x as validateForm, S as validateValues } from "../forms-Bg-CwGqX.js";
@@ -0,0 +1,25 @@
1
+ //#region src/runtime/gather.d.ts
2
+ export interface GatherOptions<T> {
3
+ /**
4
+ * The key of an item. A value with a key that the stream sent before
5
+ * takes the place of that item, so a stream can update an item in place.
6
+ */
7
+ key?: (item: T) => unknown;
8
+ }
9
+ /**
10
+ * Gathers the values of a stream into a list, and gives the list so far
11
+ * after each one, starting with an empty list:
12
+ *
13
+ * ```ts
14
+ * const tokens = $memo(gather(reply(prompt)));
15
+ * ```
16
+ *
17
+ * - The memo starts again with an empty list when the stream changes, such
18
+ * as for a new prompt, and stops reading the older stream.
19
+ * - The empty list comes before the stream is read, so the server, which
20
+ * renders the first value of a memo, renders it without starting the
21
+ * stream. The list fills in the browser, when the memo runs there.
22
+ */
23
+ export declare function gather<T>(stream: AsyncIterable<T> | PromiseLike<AsyncIterable<T>>, options?: GatherOptions<T>): AsyncGenerator<T[], void, undefined>;
24
+ //#endregion
25
+ //# sourceMappingURL=gather.d.ts.map
@@ -0,0 +1,33 @@
1
+ //#region src/runtime/gather.ts
2
+ /**
3
+ * Gathers the values of a stream into a list, and gives the list so far
4
+ * after each one, starting with an empty list:
5
+ *
6
+ * ```ts
7
+ * const tokens = $memo(gather(reply(prompt)));
8
+ * ```
9
+ *
10
+ * - The memo starts again with an empty list when the stream changes, such
11
+ * as for a new prompt, and stops reading the older stream.
12
+ * - The empty list comes before the stream is read, so the server, which
13
+ * renders the first value of a memo, renders it without starting the
14
+ * stream. The list fills in the browser, when the memo runs there.
15
+ */
16
+ async function* gather(stream, options = {}) {
17
+ yield [];
18
+ const items = [];
19
+ const places = /* @__PURE__ */ new Map();
20
+ for await (const item of await stream) {
21
+ const key = options.key?.(item);
22
+ const place = options.key ? places.get(key) : void 0;
23
+ if (place === void 0) {
24
+ if (options.key) places.set(key, items.length);
25
+ items.push(item);
26
+ } else items[place] = item;
27
+ yield [...items];
28
+ }
29
+ }
30
+ //#endregion
31
+ export { gather };
32
+
33
+ //# sourceMappingURL=gather.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gather.js","names":[],"sources":["../../src/runtime/gather.ts"],"sourcesContent":["// `brumate/stream`: a list that grows as a stream sends its values, such as\n// the reply of a language model, search results or log lines. A memo of it\n// gives the list so far, so `#for` renders each item as it arrives.\n\nexport interface GatherOptions<T> {\n /**\n * The key of an item. A value with a key that the stream sent before\n * takes the place of that item, so a stream can update an item in place.\n */\n key?: (item: T) => unknown;\n}\n\n/**\n * Gathers the values of a stream into a list, and gives the list so far\n * after each one, starting with an empty list:\n *\n * ```ts\n * const tokens = $memo(gather(reply(prompt)));\n * ```\n *\n * - The memo starts again with an empty list when the stream changes, such\n * as for a new prompt, and stops reading the older stream.\n * - The empty list comes before the stream is read, so the server, which\n * renders the first value of a memo, renders it without starting the\n * stream. The list fills in the browser, when the memo runs there.\n */\nexport async function* gather<T>(\n stream: AsyncIterable<T> | PromiseLike<AsyncIterable<T>>,\n options: GatherOptions<T> = {},\n): AsyncGenerator<T[], void, undefined> {\n yield [];\n const items: T[] = [];\n const places = new Map<unknown, number>();\n for await (const item of await stream) {\n const key = options.key?.(item);\n const place = options.key ? places.get(key) : undefined;\n if (place === undefined) {\n if (options.key) {\n places.set(key, items.length);\n }\n items.push(item);\n } else {\n items[place] = item;\n }\n // A new array, so the memo sees a new value.\n yield [...items];\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AA0BA,gBAAuB,OACrB,QACA,UAA4B,CAAC,GACS;CACtC,MAAM,CAAC;CACP,MAAM,QAAa,CAAC;CACpB,MAAM,yBAAS,IAAI,IAAqB;CACxC,WAAW,MAAM,QAAQ,MAAM,QAAQ;EACrC,MAAM,MAAM,QAAQ,MAAM,IAAI;EAC9B,MAAM,QAAQ,QAAQ,MAAM,OAAO,IAAI,GAAG,IAAI,KAAA;EAC9C,IAAI,UAAU,KAAA,GAAW;GACvB,IAAI,QAAQ,KACV,OAAO,IAAI,KAAK,MAAM,MAAM;GAE9B,MAAM,KAAK,IAAI;EACjB,OACE,MAAM,SAAS;EAGjB,MAAM,CAAC,GAAG,KAAK;CACjB;AACF"}
@@ -1,4 +1,4 @@
1
- import { t as ClientModule } from "../client-MD0ZmcFR.js";
1
+ import { t as ClientModule } from "../client-D0CqSxoO.js";
2
2
  //#region src/runtime/hot.d.ts
3
3
  /** What `brumate:update` holds for each component that changed. */
4
4
  export interface HotUpdate {
@@ -1,2 +1,2 @@
1
- import { _ as styleElement, a as attribute, c as classValue, d as insertValue, f as isRaw, g as spread, h as rawHTML, i as affix, l as escape, m as raw, n as VOID_ELEMENTS, o as attributeText, p as mergeAttributes, r as actionAttributes, s as classAttribute, t as Raw, u as escapeAttribute, v as textValue, y as vars } from "../html-y1q7-t7D.js";
2
- export { Raw, VOID_ELEMENTS, actionAttributes, affix, attribute, attributeText, classAttribute, classValue, escape, escapeAttribute, insertValue, isRaw, mergeAttributes, raw, rawHTML, spread, styleElement, textValue, vars };
1
+ import { S as vars, _ as raw, a as attribute, b as styleElement, c as classAttribute, d as escapeAttribute, f as handlerEntry, g as onAttribute, h as mergeAttributes, i as affix, l as classValue, m as isRaw, n as VOID_ELEMENTS, o as attributeText, p as insertValue, r as actionAttributes, s as bindEntry, t as Raw, u as escape, v as rawHTML, x as textValue, y as spread } from "../html-Bq1rFxX_.js";
2
+ export { Raw, VOID_ELEMENTS, actionAttributes, affix, attribute, attributeText, bindEntry, classAttribute, classValue, escape, escapeAttribute, handlerEntry, insertValue, isRaw, mergeAttributes, onAttribute, raw, rawHTML, spread, styleElement, textValue, vars };
@@ -1 +1 @@
1
- export { t as VOID_ELEMENTS, n as actionAttributes, r as affix, i as attribute, a as attributeText, o as classAttribute, s as classValue, c as escape, l as escapeAttribute, u as insertValue, d as isRaw, f as mergeAttributes, p as raw, m as rawHTML, h as spread, g as styleElement, _ as textValue, v as vars } from "../html-bHZbkK-h.js";
1
+ export { t as VOID_ELEMENTS, n as actionAttributes, r as affix, i as attribute, a as attributeText, o as bindEntry, s as classAttribute, c as classValue, l as escape, u as escapeAttribute, d as handlerEntry, f as insertValue, p as isRaw, m as mergeAttributes, h as onAttribute, g as raw, _ as rawHTML, v as spread, y as styleElement, b as textValue, x as vars } from "../html-mNTKzaDD.js";
@@ -1,5 +1,5 @@
1
- import { n as NavigateOptions, t as LoaderOptions } from "../boot-D-IdPy7B.js";
2
- import { t as startWithoutNavigation } from "../static-loader-BzE9SRaj.js";
1
+ import { n as NavigateOptions, t as LoaderOptions } from "../boot-C25Sa6vq.js";
2
+ import { t as startWithoutNavigation } from "../static-loader-Drpr0AzI.js";
3
3
  //#region src/runtime/loader.d.ts
4
4
  /**
5
5
  * Starts resuming the page. Listens to the events in `b-on` attributes
@@ -1,3 +1,3 @@
1
- import { t as startWithoutNavigation } from "../static-loader-DOygOFj5.js";
2
- import { t as start } from "../loader-B18i3_-T.js";
1
+ import { t as startWithoutNavigation } from "../static-loader-nZssh66R.js";
2
+ import { t as start } from "../loader-Dos_3NP0.js";
3
3
  export { start, startWithoutNavigation };
@@ -1,6 +1,7 @@
1
- import { a as attribute, i as affix, l as escape, m as raw, p as mergeAttributes, s as classAttribute, t as Raw, u as escapeAttribute, y as vars } from "../html-y1q7-t7D.js";
2
- import { a as PageState, n as ElementReference, o as ScopeId, r as FunctionReference, s as ScopeState, t as produce } from "../produce-D4K7qpaL.js";
1
+ import { S as vars, _ as raw, a as attribute, c as classAttribute, d as escapeAttribute, g as onAttribute, h as mergeAttributes, i as affix, t as Raw, u as escape } from "../html-Bq1rFxX_.js";
2
+ import { c as ScopeState, i as FunctionReference, l as unbind, o as PageState, r as ElementReference, s as ScopeId, t as produce, u as useSerialEntry } from "../produce-D0V0ICkz.js";
3
3
  import { a as Route, c as routeContext, o as createContext, r as NavigationState, s as navigationContext } from "../context-btHuB01Z.js";
4
4
  import { t as StandardSchemaV1 } from "../standard-schema-BNY82yX3.js";
5
- import { $ as rateLimit, A as onAttribute, At as CookieOptions, B as streamParts, C as handleRequest, Ct as ServerError, D as isCrossSite, Dt as isRedirect, E as insert, Et as getEvent, F as renderToStream, Ft as serializeCookie, G as RateLimitConfig, H as wait, I as settled, It as toNodeHeaders, J as RateLimitOptions, K as RateLimitError, L as spread, M as read, Mt as SessionOptions, N as ready, Nt as createSession, O as lazy, Ot as redirect, P as render, Pt as parseCookies, Q as configureRateLimit, R as stateScript, S as dynamic, St as RequestKind, T as inlineBodies, Tt as defineMiddleware, U as waitAll, V as streamState, W as RateLimit, X as Window, Y as RateLimitStore, Z as clientAddress, _ as StreamOptions, _t as Locals, a as ItemSource, at as parseForm, b as children, bt as RequestEvent, c as Memo, ct as Handler, d as RenderResult, dt as MiddlewareLoader, et as ParseResult, f as RequestOptions, ft as RouteMatch, g as StateMap, gt as EntryMiddleware, h as StateAttributes, ht as matchRoute, i as DocumentOptions, it as parse, j as packState, jt as Session, k as memo, kt as withEvent, l as NotReady, lt as Loader, m as ScopeEntry, mt as RouteView, n as Context, nt as ValidationIssue, o as Lazy, ot as safeParse, p as RouteOptions, pt as RouteNode, q as RateLimitMiddleware, r as DeferTarget, rt as fieldErrors, s as Mark, st as EndpointLoader, t as Component, tt as ValidationError, u as RenderOptions, ut as Middleware, v as action, vt as Redirect, w as handleRoute, wt as dedupe, x as component, xt as RequestEventOptions, y as actionResult, yt as RequestCall, z as stateValue } from "../server-BA9SJ2Vm.js";
6
- export { Component, Context, type CookieOptions, DeferTarget, DocumentOptions, ElementReference, type EndpointLoader, type EntryMiddleware, FunctionReference, type Handler, ItemSource, Lazy, type Loader, type Locals, Mark, Memo, type Middleware, type MiddlewareLoader, type NavigationState, NotReady, type PageState, type ParseResult, type RateLimit, type RateLimitConfig, RateLimitError, type RateLimitMiddleware, type RateLimitOptions, type RateLimitStore, type Raw, type Redirect, RenderOptions, RenderResult, type RequestCall, RequestEvent, type RequestEventOptions, type RequestKind, RequestOptions, type Route, type RouteMatch, type RouteNode, RouteOptions, type RouteView, ScopeEntry, type ScopeId, type ScopeState, ServerError, type Session, type SessionOptions, type StandardSchemaV1, StateAttributes, StateMap, StreamOptions, ValidationError, type ValidationIssue, type Window, action, actionResult, affix, attribute, children, classAttribute, clientAddress, component, configureRateLimit, createContext, createSession, dedupe, defineMiddleware, dynamic, escape, escapeAttribute, fieldErrors, getEvent, handleRequest, handleRoute, inlineBodies, insert, isCrossSite, isRedirect, lazy, matchRoute, memo, mergeAttributes, navigationContext, onAttribute, packState, parse, parseCookies, parseForm, produce, rateLimit, raw, read, ready, redirect, render, renderToStream, routeContext, safeParse, serializeCookie, settled, spread, stateScript, stateValue, streamParts, streamState, toNodeHeaders, vars, wait, waitAll, withEvent };
5
+ import { f as Intent, v as SubmissionResult } from "../forms-Cl21hkHt.js";
6
+ import { $ as setCacheStore, $t as serializeCookie, A as isCrossSite, At as RouteMatch, B as stateScript, Bt as RequestKind, C as children, Ct as parseForm, D as handleRoute, Dt as Loader, E as handleRequest, Et as Handler, F as ready, Ft as Locals, G as waitAll, Gt as isRedirect, H as streamParts, Ht as dedupe, I as render, It as Redirect, J as CacheStore, Jt as CookieOptions, K as IdempotentOptions, Kt as redirect, L as renderToStream, Lt as RequestCall, M as memo, Mt as RouteView, N as packState, Nt as matchRoute, O as inlineBodies, Ot as Middleware, P as read, Pt as EntryMiddleware, Q as revalidate, Qt as parseCookies, R as settled, Rt as RequestEvent, S as binding, St as parse, T as dynamic, Tt as EndpointLoader, U as streamState, Ut as defineMiddleware, V as stateValue, Vt as ServerError, W as wait, Wt as getEvent, X as cached, Xt as SessionOptions, Y as CachedOptions, Yt as Session, Z as memoryStore, Zt as createSession, _ as StateAttributes, _t as parseSubmission, a as ItemSource, at as RateLimitOptions, b as action, bt as ValidationIssue, c as Memo, ct as clientAddress, d as RenderOptions, dt as FailedSubmission, en as toNodeHeaders, et as storageStore, f as RenderResult, ft as IntentSubmission, g as ScopeEntry, gt as SuccessfulSubmission, h as RouteOptions, ht as SubmissionOptions, i as DocumentOptions, it as RateLimitMiddleware, j as lazy, jt as RouteNode, k as insert, kt as MiddlewareLoader, l as NotReady, lt as configureRateLimit, m as RevealOrder, mt as Submission, n as Context, nt as RateLimitConfig, o as Lazy, ot as RateLimitStore, p as RequestOptions, pt as ReplyOptions, q as idempotent, qt as withEvent, r as DeferTarget, rt as RateLimitError, s as Mark, st as Window, t as Component, tt as RateLimit, u as PageCache, ut as rateLimit, v as StateMap, vt as ParseResult, w as component, wt as safeParse, x as actionResult, xt as fieldErrors, y as StreamOptions, yt as ValidationError, z as spread, zt as RequestEventOptions } from "../server-DuFYRXrd.js";
7
+ export { type CacheStore, type CachedOptions, Component, Context, type CookieOptions, DeferTarget, DocumentOptions, ElementReference, type EndpointLoader, type EntryMiddleware, type FailedSubmission, FunctionReference, type Handler, type IdempotentOptions, type Intent, type IntentSubmission, ItemSource, Lazy, type Loader, type Locals, Mark, Memo, type Middleware, type MiddlewareLoader, type NavigationState, NotReady, PageCache, type PageState, type ParseResult, type RateLimit, type RateLimitConfig, RateLimitError, type RateLimitMiddleware, type RateLimitOptions, type RateLimitStore, type Raw, type Redirect, RenderOptions, RenderResult, type ReplyOptions, type RequestCall, RequestEvent, type RequestEventOptions, type RequestKind, RequestOptions, RevealOrder, type Route, type RouteMatch, type RouteNode, RouteOptions, type RouteView, ScopeEntry, type ScopeId, type ScopeState, ServerError, type Session, type SessionOptions, type StandardSchemaV1, StateAttributes, StateMap, StreamOptions, type Submission, type SubmissionOptions, type SubmissionResult, type SuccessfulSubmission, ValidationError, type ValidationIssue, type Window, action, actionResult, affix, attribute, binding, cached, children, classAttribute, clientAddress, component, configureRateLimit, createContext, createSession, dedupe, defineMiddleware, dynamic, escape, escapeAttribute, fieldErrors, getEvent, handleRequest, handleRoute, idempotent, inlineBodies, insert, isCrossSite, isRedirect, lazy, matchRoute, memo, memoryStore, mergeAttributes, navigationContext, onAttribute, packState, parse, parseCookies, parseForm, parseSubmission, produce, rateLimit, raw, read, ready, redirect, render, renderToStream, revalidate, routeContext, safeParse, serializeCookie, setCacheStore, settled, spread, stateScript, stateValue, storageStore, streamParts, streamState, toNodeHeaders, unbind, useSerialEntry, vars, wait, waitAll, withEvent };
@@ -1,6 +1,6 @@
1
- import { c as escape, f as mergeAttributes, i as attribute, l as escapeAttribute, o as classAttribute, p as raw, r as affix, v as vars } from "../html-bHZbkK-h.js";
2
- import { n as ElementReference, r as FunctionReference, t as produce } from "../produce-CWfJ4byV.js";
3
- import { a as serializeCookie, i as parseCookies, s as toNodeHeaders, t as createSession } from "../cookies-Av5WFmcf.js";
4
- import { A as clientAddress, B as ServerError, C as stateScript, D as wait, E as streamState, F as parse, G as redirect, H as defineMiddleware, I as parseForm, K as withEvent, L as safeParse, M as rateLimit, N as ValidationError, O as waitAll, P as fieldErrors, R as matchRoute, S as spread, T as streamParts, U as getEvent, V as dedupe, W as isRedirect, _ as read, a as children, b as renderToStream, c as handleRequest, d as insert, f as isCrossSite, g as packState, h as onAttribute, i as actionResult, j as configureRateLimit, k as RateLimitError, l as handleRoute, m as memo, n as NotReady, o as component, p as lazy, r as action, s as dynamic, t as Context, u as inlineBodies, v as ready, w as stateValue, x as settled, y as render, z as RequestEvent } from "../server-BqfM95r1.js";
1
+ import { g as raw, h as onAttribute, i as attribute, l as escape, m as mergeAttributes, r as affix, s as classAttribute, u as escapeAttribute, x as vars } from "../html-mNTKzaDD.js";
2
+ import { a as serializeCookie, i as parseCookies, s as toNodeHeaders, t as createSession } from "../cookies-BzllthiF.js";
3
+ import { i as FunctionReference, m as useSerialEntry, p as unbind, r as ElementReference, t as produce } from "../produce-Doc91GkX.js";
4
+ import { $ as withEvent, A as RateLimitError, B as matchRoute, C as stateScript, D as wait, E as streamState, F as ValidationError, G as storageStore, H as memoryStore, I as fieldErrors, J as dedupe, K as RequestEvent, L as parse, M as configureRateLimit, N as rateLimit, O as waitAll, P as parseSubmission, Q as redirect, R as parseForm, S as spread, T as streamParts, U as revalidate, V as cached, W as setCacheStore, X as getEvent, Y as defineMiddleware, Z as isRedirect, _ as read, a as binding, b as renderToStream, c as dynamic, d as inlineBodies, f as insert, g as packState, h as memo, i as actionResult, j as clientAddress, k as idempotent, l as handleRequest, m as lazy, n as NotReady, o as children, p as isCrossSite, q as ServerError, r as action, s as component, t as Context, u as handleRoute, v as ready, w as stateValue, x as settled, y as render, z as safeParse } from "../server-CxVDYE_V.js";
5
5
  import { a as routeContext, i as navigationContext, r as createContext } from "../context-CTiSzQRc.js";
6
- export { Context, ElementReference, FunctionReference, NotReady, RateLimitError, RequestEvent, ServerError, ValidationError, action, actionResult, affix, attribute, children, classAttribute, clientAddress, component, configureRateLimit, createContext, createSession, dedupe, defineMiddleware, dynamic, escape, escapeAttribute, fieldErrors, getEvent, handleRequest, handleRoute, inlineBodies, insert, isCrossSite, isRedirect, lazy, matchRoute, memo, mergeAttributes, navigationContext, onAttribute, packState, parse, parseCookies, parseForm, produce, rateLimit, raw, read, ready, redirect, render, renderToStream, routeContext, safeParse, serializeCookie, settled, spread, stateScript, stateValue, streamParts, streamState, toNodeHeaders, vars, wait, waitAll, withEvent };
6
+ export { Context, ElementReference, FunctionReference, NotReady, RateLimitError, RequestEvent, ServerError, ValidationError, action, actionResult, affix, attribute, binding, cached, children, classAttribute, clientAddress, component, configureRateLimit, createContext, createSession, dedupe, defineMiddleware, dynamic, escape, escapeAttribute, fieldErrors, getEvent, handleRequest, handleRoute, idempotent, inlineBodies, insert, isCrossSite, isRedirect, lazy, matchRoute, memo, memoryStore, mergeAttributes, navigationContext, onAttribute, packState, parse, parseCookies, parseForm, parseSubmission, produce, rateLimit, raw, read, ready, redirect, render, renderToStream, revalidate, routeContext, safeParse, serializeCookie, setCacheStore, settled, spread, stateScript, stateValue, storageStore, streamParts, streamState, toNodeHeaders, unbind, useSerialEntry, vars, wait, waitAll, withEvent };
@@ -1,8 +1,25 @@
1
1
  import { a as Route, r as NavigationState, t as Context } from "../context-btHuB01Z.js";
2
2
  import { n as RouteParams, r as RoutePath } from "../routes-BZNt7DSZ.js";
3
3
  //#region src/runtime/signals.d.ts
4
- /** Returns the props of the component. Destructure the call to keep each prop reactive. */
5
- export declare function $props<T = Record<string, any>>(): T;
4
+ declare const BINDABLE: unique symbol;
5
+ /** The mark of a prop that a parent can bind. It has no value at runtime. */
6
+ export interface BindableMark<T> {
7
+ readonly [BINDABLE]: T;
8
+ }
9
+ /**
10
+ * Marks a prop that a parent can bind with `$bind`, such as
11
+ * `open?: Bindable<boolean>`. The parent passes `T` or `$bind(name)`.
12
+ * Inside the component, `$props<T>()` gives `T`.
13
+ */
14
+ export type Bindable<T> = T | BindableMark<T>;
15
+ /** The props as the component reads them, with `Bindable<T>` as `T`. */
16
+ export type Unbound<T> = { [K in keyof T]: Exclude<T[K], BindableMark<unknown>>; };
17
+ /**
18
+ * Returns the props of the component. Destructure the call to keep each prop
19
+ * reactive. Destructure it with `let` to write props, such as
20
+ * `let { open = false } = $props()`.
21
+ */
22
+ export declare function $props<T = Record<string, any>>(): Unbound<T>;
6
23
  /** Declares writable state. The variable reads and writes the signal. */
7
24
  export declare function $signal<T>(value: T): T;
8
25
  export declare function $signal<T>(): T | undefined;
@@ -63,5 +80,24 @@ export declare function $title(_value: unknown): void;
63
80
  * to, or undefined before the first post. Pending while the form sends.
64
81
  */
65
82
  export declare function $action<F extends (...args: never[]) => unknown>(_fn: F): Awaited<ReturnType<F>> | undefined;
83
+ /**
84
+ * Passes a child a signal, or a prop that the component writes, so a write
85
+ * of the prop in the child writes it. The child destructures the prop with
86
+ * `let`. Pass it as the value of a prop: `<Dialog open=$bind(open) />`.
87
+ *
88
+ * - Only a prop of type `Bindable<T>` takes it.
89
+ * - With `set`, a write calls `set(next)` in place of writing the signal.
90
+ */
91
+ export declare function $bind<T>(signal: T, set?: (next: T) => unknown): BindableMark<T>;
92
+ /**
93
+ * Marks a function that a script makes as an event handler, so a spread can
94
+ * pass it on, as it passes on a handler that a caller writes in markup.
95
+ * `args` are JSON values that go with the handler, and it runs as
96
+ * `fn(...args, event)`.
97
+ */
98
+ export declare function $handler<A extends unknown[], E = Event>(fn: (...args: [...A, E]) => unknown, ...args: A): (event: E) => unknown;
99
+ /** A function that does not read the event. */
100
+ export declare function $handler<A extends unknown[]>(fn: (...args: A) => unknown, ...args: A): (event: Event) => unknown;
66
101
  //#endregion
102
+ export {};
67
103
  //# sourceMappingURL=signals.d.ts.map
@@ -2,7 +2,11 @@
2
2
  function compileTimeOnly(name) {
3
3
  throw new Error(`${name} works only in .brm files, which the brumate compiler compiles`);
4
4
  }
5
- /** Returns the props of the component. Destructure the call to keep each prop reactive. */
5
+ /**
6
+ * Returns the props of the component. Destructure the call to keep each prop
7
+ * reactive. Destructure it with `let` to write props, such as
8
+ * `let { open = false } = $props()`.
9
+ */
6
10
  function $props() {
7
11
  return compileTimeOnly("$props");
8
12
  }
@@ -96,7 +100,13 @@ function $title(_value) {
96
100
  function $action(_fn) {
97
101
  return compileTimeOnly("$action");
98
102
  }
103
+ function $bind() {
104
+ return compileTimeOnly("$bind");
105
+ }
106
+ function $handler() {
107
+ return compileTimeOnly("$handler");
108
+ }
99
109
  //#endregion
100
- export { $action, $client, $debounced, $effect, $getContext, $id, $isPending, $memo, $navigation, $optimistic, $produce, $props, $route, $setContext, $signal, $throttled, $title, $untrack };
110
+ export { $action, $bind, $client, $debounced, $effect, $getContext, $handler, $id, $isPending, $memo, $navigation, $optimistic, $produce, $props, $route, $setContext, $signal, $throttled, $title, $untrack };
101
111
 
102
112
  //# sourceMappingURL=signals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signals.js","names":[],"sources":["../../src/runtime/signals.ts"],"sourcesContent":["// The compile-time functions of `.brm` files. The compiler replaces every\n// call and removes the import, so this module only gives them their types.\n// A call outside a `.brm` file throws.\n\nimport type { Context, NavigationState, Route } from './context.ts';\nimport type { RoutePath, RouteParams } from './routes.ts';\n\nfunction compileTimeOnly(name: string): never {\n throw new Error(`${name} works only in .brm files, which the brumate compiler compiles`);\n}\n\n/** Returns the props of the component. Destructure the call to keep each prop reactive. */\n// oxlint-disable-next-line typescript/no-explicit-any -- Props are any object unless typed.\nexport function $props<T = Record<string, any>>(): T {\n return compileTimeOnly('$props');\n}\n\n/** Declares writable state. The variable reads and writes the signal. */\nexport function $signal<T>(value: T): T;\nexport function $signal<T>(): T | undefined;\nexport function $signal(): never {\n return compileTimeOnly('$signal');\n}\n\n/** The value of a memo: what a promise settles to, or the latest value of an async iterable. */\nexport type MemoValue<T> = Awaited<T> extends AsyncIterable<infer U> ? U : Awaited<T>;\n\n/**\n * Declares a value computed from other values. A promise is awaited where it\n * is read. An async iterable gives each of its values in turn.\n */\nexport function $memo<T>(_value: T): MemoValue<T> {\n return compileTimeOnly('$memo');\n}\n\n/**\n * Declares a memo that takes the value once it stops changing for `ms`\n * milliseconds, such as a search query while the user types. On the server,\n * and until the value first changes, it is the value.\n */\nexport function $debounced<T>(_value: T, _ms: number): MemoValue<T> {\n return compileTimeOnly('$debounced');\n}\n\n/**\n * Declares a memo that takes the value at most once every `ms`\n * milliseconds, and the last value after the wait, such as a position while\n * the pointer moves. On the server, and until the value first changes, it is the value.\n */\nexport function $throttled<T>(_value: T, _ms: number): MemoValue<T> {\n return compileTimeOnly('$throttled');\n}\n\n/**\n * Declares a value that follows a memo, and that handlers can write. A write\n * shows a guess, such as a new item while the form that adds it posts. The\n * value goes back to the memo when the memo changes, or when the server\n * calls of the page finish, such as after a failed post.\n */\nexport function $optimistic<T>(_source: T): T {\n return compileTimeOnly('$optimistic');\n}\n\n/** Runs a callback when the values it reads change, after the page resumes. Never on load. */\nexport function $effect(_callback: () => void | (() => void)): void {\n compileTimeOnly('$effect');\n}\n\n/** Runs a callback in the browser when a trigger fires. */\nexport function $client(\n _callback: () => void | (() => void),\n _trigger?: 'visible' | 'idle' | 'load',\n): void {\n compileTimeOnly('$client');\n}\n\n/** Reads a value without depending on it. */\nexport function $untrack<T>(_value: T): T {\n return compileTimeOnly('$untrack');\n}\n\n/** True while a new value of a memo, or of a memo it reads, loads on the client. Always false on the server. */\nexport function $isPending(_memo: unknown): boolean {\n return compileTimeOnly('$isPending');\n}\n\n/** Returns an ID that is unique in the page and the same on the server and the client. */\nexport function $id(): string {\n return compileTimeOnly('$id');\n}\n\n/** Provides a value of a context to the components inside this one. */\nexport function $setContext<T>(_context: Context<T>, _value: T): void {\n compileTimeOnly('$setContext');\n}\n\n/** Reads a context from the nearest component above that provides it, or its default value. */\nexport function $getContext<T>(_context: Context<T>): T {\n return compileTimeOnly('$getContext');\n}\n\n/**\n * The route of the page: its URL, its query string and its params, typed\n * from the route files as `href` is. The server reads the request, and the\n * browser reads `location`. It changes when navigation changes the URL.\n */\nexport function $route<P extends RoutePath = RoutePath>(_path?: P): Route<RouteParams<P>> {\n return compileTimeOnly('$route');\n}\n\n/** The navigation that loads, with `pending` false when none does. Always `{ pending: false }` on the server. */\nexport function $navigation(): NavigationState {\n return compileTimeOnly('$navigation');\n}\n\n/** Changes an object or an array in a signal through a draft, and writes the signal with the result. */\nexport function $produce<T>(_signal: T, _recipe: (draft: T) => T | void): void {\n compileTimeOnly('$produce');\n}\n\n/** Sets the title of the page. The last component that sets it wins. */\nexport function $title(_value: unknown): void {\n compileTimeOnly('$title');\n}\n\n/**\n * The latest result of a server function that a form of this component posts\n * to, or undefined before the first post. Pending while the form sends.\n */\nexport function $action<F extends (...args: never[]) => unknown>(\n _fn: F,\n): Awaited<ReturnType<F>> | undefined {\n return compileTimeOnly('$action');\n}\n"],"mappings":";AAOA,SAAS,gBAAgB,MAAqB;CAC5C,MAAM,IAAI,MAAM,GAAG,KAAK,+DAA+D;AACzF;;AAIA,SAAgB,SAAqC;CACnD,OAAO,gBAAgB,QAAQ;AACjC;AAKA,SAAgB,UAAiB;CAC/B,OAAO,gBAAgB,SAAS;AAClC;;;;;AASA,SAAgB,MAAS,QAAyB;CAChD,OAAO,gBAAgB,OAAO;AAChC;;;;;;AAOA,SAAgB,WAAc,QAAW,KAA2B;CAClE,OAAO,gBAAgB,YAAY;AACrC;;;;;;AAOA,SAAgB,WAAc,QAAW,KAA2B;CAClE,OAAO,gBAAgB,YAAY;AACrC;;;;;;;AAQA,SAAgB,YAAe,SAAe;CAC5C,OAAO,gBAAgB,aAAa;AACtC;;AAGA,SAAgB,QAAQ,WAA4C;CAClE,gBAAgB,SAAS;AAC3B;;AAGA,SAAgB,QACd,WACA,UACM;CACN,gBAAgB,SAAS;AAC3B;;AAGA,SAAgB,SAAY,QAAc;CACxC,OAAO,gBAAgB,UAAU;AACnC;;AAGA,SAAgB,WAAW,OAAyB;CAClD,OAAO,gBAAgB,YAAY;AACrC;;AAGA,SAAgB,MAAc;CAC5B,OAAO,gBAAgB,KAAK;AAC9B;;AAGA,SAAgB,YAAe,UAAsB,QAAiB;CACpE,gBAAgB,aAAa;AAC/B;;AAGA,SAAgB,YAAe,UAAyB;CACtD,OAAO,gBAAgB,aAAa;AACtC;;;;;;AAOA,SAAgB,OAAwC,OAAkC;CACxF,OAAO,gBAAgB,QAAQ;AACjC;;AAGA,SAAgB,cAA+B;CAC7C,OAAO,gBAAgB,aAAa;AACtC;;AAGA,SAAgB,SAAY,SAAY,SAAuC;CAC7E,gBAAgB,UAAU;AAC5B;;AAGA,SAAgB,OAAO,QAAuB;CAC5C,gBAAgB,QAAQ;AAC1B;;;;;AAMA,SAAgB,QACd,KACoC;CACpC,OAAO,gBAAgB,SAAS;AAClC"}
1
+ {"version":3,"file":"signals.js","names":[],"sources":["../../src/runtime/signals.ts"],"sourcesContent":["// The compile-time functions of `.brm` files. The compiler replaces every\n// call and removes the import, so this module only gives them their types.\n// A call outside a `.brm` file throws.\n\nimport type { Context, NavigationState, Route } from './context.ts';\nimport type { RoutePath, RouteParams } from './routes.ts';\n\nfunction compileTimeOnly(name: string): never {\n throw new Error(`${name} works only in .brm files, which the brumate compiler compiles`);\n}\n\ndeclare const BINDABLE: unique symbol;\n\n/** The mark of a prop that a parent can bind. It has no value at runtime. */\nexport interface BindableMark<T> {\n readonly [BINDABLE]: T;\n}\n\n/**\n * Marks a prop that a parent can bind with `$bind`, such as\n * `open?: Bindable<boolean>`. The parent passes `T` or `$bind(name)`.\n * Inside the component, `$props<T>()` gives `T`.\n */\nexport type Bindable<T> = T | BindableMark<T>;\n\n/** The props as the component reads them, with `Bindable<T>` as `T`. */\nexport type Unbound<T> = { [K in keyof T]: Exclude<T[K], BindableMark<unknown>> };\n\n/**\n * Returns the props of the component. Destructure the call to keep each prop\n * reactive. Destructure it with `let` to write props, such as\n * `let { open = false } = $props()`.\n */\n// oxlint-disable-next-line typescript/no-explicit-any -- Props are any object unless typed.\nexport function $props<T = Record<string, any>>(): Unbound<T> {\n return compileTimeOnly('$props');\n}\n\n/** Declares writable state. The variable reads and writes the signal. */\nexport function $signal<T>(value: T): T;\nexport function $signal<T>(): T | undefined;\nexport function $signal(): never {\n return compileTimeOnly('$signal');\n}\n\n/** The value of a memo: what a promise settles to, or the latest value of an async iterable. */\nexport type MemoValue<T> = Awaited<T> extends AsyncIterable<infer U> ? U : Awaited<T>;\n\n/**\n * Declares a value computed from other values. A promise is awaited where it\n * is read. An async iterable gives each of its values in turn.\n */\nexport function $memo<T>(_value: T): MemoValue<T> {\n return compileTimeOnly('$memo');\n}\n\n/**\n * Declares a memo that takes the value once it stops changing for `ms`\n * milliseconds, such as a search query while the user types. On the server,\n * and until the value first changes, it is the value.\n */\nexport function $debounced<T>(_value: T, _ms: number): MemoValue<T> {\n return compileTimeOnly('$debounced');\n}\n\n/**\n * Declares a memo that takes the value at most once every `ms`\n * milliseconds, and the last value after the wait, such as a position while\n * the pointer moves. On the server, and until the value first changes, it is the value.\n */\nexport function $throttled<T>(_value: T, _ms: number): MemoValue<T> {\n return compileTimeOnly('$throttled');\n}\n\n/**\n * Declares a value that follows a memo, and that handlers can write. A write\n * shows a guess, such as a new item while the form that adds it posts. The\n * value goes back to the memo when the memo changes, or when the server\n * calls of the page finish, such as after a failed post.\n */\nexport function $optimistic<T>(_source: T): T {\n return compileTimeOnly('$optimistic');\n}\n\n/** Runs a callback when the values it reads change, after the page resumes. Never on load. */\nexport function $effect(_callback: () => void | (() => void)): void {\n compileTimeOnly('$effect');\n}\n\n/** Runs a callback in the browser when a trigger fires. */\nexport function $client(\n _callback: () => void | (() => void),\n _trigger?: 'visible' | 'idle' | 'load',\n): void {\n compileTimeOnly('$client');\n}\n\n/** Reads a value without depending on it. */\nexport function $untrack<T>(_value: T): T {\n return compileTimeOnly('$untrack');\n}\n\n/** True while a new value of a memo, or of a memo it reads, loads on the client. Always false on the server. */\nexport function $isPending(_memo: unknown): boolean {\n return compileTimeOnly('$isPending');\n}\n\n/** Returns an ID that is unique in the page and the same on the server and the client. */\nexport function $id(): string {\n return compileTimeOnly('$id');\n}\n\n/** Provides a value of a context to the components inside this one. */\nexport function $setContext<T>(_context: Context<T>, _value: T): void {\n compileTimeOnly('$setContext');\n}\n\n/** Reads a context from the nearest component above that provides it, or its default value. */\nexport function $getContext<T>(_context: Context<T>): T {\n return compileTimeOnly('$getContext');\n}\n\n/**\n * The route of the page: its URL, its query string and its params, typed\n * from the route files as `href` is. The server reads the request, and the\n * browser reads `location`. It changes when navigation changes the URL.\n */\nexport function $route<P extends RoutePath = RoutePath>(_path?: P): Route<RouteParams<P>> {\n return compileTimeOnly('$route');\n}\n\n/** The navigation that loads, with `pending` false when none does. Always `{ pending: false }` on the server. */\nexport function $navigation(): NavigationState {\n return compileTimeOnly('$navigation');\n}\n\n/** Changes an object or an array in a signal through a draft, and writes the signal with the result. */\nexport function $produce<T>(_signal: T, _recipe: (draft: T) => T | void): void {\n compileTimeOnly('$produce');\n}\n\n/** Sets the title of the page. The last component that sets it wins. */\nexport function $title(_value: unknown): void {\n compileTimeOnly('$title');\n}\n\n/**\n * The latest result of a server function that a form of this component posts\n * to, or undefined before the first post. Pending while the form sends.\n */\nexport function $action<F extends (...args: never[]) => unknown>(\n _fn: F,\n): Awaited<ReturnType<F>> | undefined {\n return compileTimeOnly('$action');\n}\n\n/**\n * Passes a child a signal, or a prop that the component writes, so a write\n * of the prop in the child writes it. The child destructures the prop with\n * `let`. Pass it as the value of a prop: `<Dialog open=$bind(open) />`.\n *\n * - Only a prop of type `Bindable<T>` takes it.\n * - With `set`, a write calls `set(next)` in place of writing the signal.\n */\nexport function $bind<T>(signal: T, set?: (next: T) => unknown): BindableMark<T>;\nexport function $bind(): never {\n return compileTimeOnly('$bind');\n}\n\n/**\n * Marks a function that a script makes as an event handler, so a spread can\n * pass it on, as it passes on a handler that a caller writes in markup.\n * `args` are JSON values that go with the handler, and it runs as\n * `fn(...args, event)`.\n */\nexport function $handler<A extends unknown[], E = Event>(\n fn: (...args: [...A, E]) => unknown,\n ...args: A\n): (event: E) => unknown;\n/** A function that does not read the event. */\nexport function $handler<A extends unknown[]>(\n fn: (...args: A) => unknown,\n ...args: A\n): (event: Event) => unknown;\nexport function $handler(): never {\n return compileTimeOnly('$handler');\n}\n"],"mappings":";AAOA,SAAS,gBAAgB,MAAqB;CAC5C,MAAM,IAAI,MAAM,GAAG,KAAK,+DAA+D;AACzF;;;;;;AAyBA,SAAgB,SAA8C;CAC5D,OAAO,gBAAgB,QAAQ;AACjC;AAKA,SAAgB,UAAiB;CAC/B,OAAO,gBAAgB,SAAS;AAClC;;;;;AASA,SAAgB,MAAS,QAAyB;CAChD,OAAO,gBAAgB,OAAO;AAChC;;;;;;AAOA,SAAgB,WAAc,QAAW,KAA2B;CAClE,OAAO,gBAAgB,YAAY;AACrC;;;;;;AAOA,SAAgB,WAAc,QAAW,KAA2B;CAClE,OAAO,gBAAgB,YAAY;AACrC;;;;;;;AAQA,SAAgB,YAAe,SAAe;CAC5C,OAAO,gBAAgB,aAAa;AACtC;;AAGA,SAAgB,QAAQ,WAA4C;CAClE,gBAAgB,SAAS;AAC3B;;AAGA,SAAgB,QACd,WACA,UACM;CACN,gBAAgB,SAAS;AAC3B;;AAGA,SAAgB,SAAY,QAAc;CACxC,OAAO,gBAAgB,UAAU;AACnC;;AAGA,SAAgB,WAAW,OAAyB;CAClD,OAAO,gBAAgB,YAAY;AACrC;;AAGA,SAAgB,MAAc;CAC5B,OAAO,gBAAgB,KAAK;AAC9B;;AAGA,SAAgB,YAAe,UAAsB,QAAiB;CACpE,gBAAgB,aAAa;AAC/B;;AAGA,SAAgB,YAAe,UAAyB;CACtD,OAAO,gBAAgB,aAAa;AACtC;;;;;;AAOA,SAAgB,OAAwC,OAAkC;CACxF,OAAO,gBAAgB,QAAQ;AACjC;;AAGA,SAAgB,cAA+B;CAC7C,OAAO,gBAAgB,aAAa;AACtC;;AAGA,SAAgB,SAAY,SAAY,SAAuC;CAC7E,gBAAgB,UAAU;AAC5B;;AAGA,SAAgB,OAAO,QAAuB;CAC5C,gBAAgB,QAAQ;AAC1B;;;;;AAMA,SAAgB,QACd,KACoC;CACpC,OAAO,gBAAgB,SAAS;AAClC;AAWA,SAAgB,QAAe;CAC7B,OAAO,gBAAgB,OAAO;AAChC;AAiBA,SAAgB,WAAkB;CAChC,OAAO,gBAAgB,UAAU;AACnC"}
@@ -1,3 +1,3 @@
1
- import { t as LoaderOptions } from "../boot-D-IdPy7B.js";
2
- import { t as startWithoutNavigation } from "../static-loader-BzE9SRaj.js";
1
+ import { t as LoaderOptions } from "../boot-C25Sa6vq.js";
2
+ import { t as startWithoutNavigation } from "../static-loader-Drpr0AzI.js";
3
3
  export { type LoaderOptions, startWithoutNavigation };
@@ -1 +1 @@
1
- export { t as startWithoutNavigation } from "../static-loader-DOygOFj5.js";
1
+ export { t as startWithoutNavigation } from "../static-loader-nZssh66R.js";
@@ -1,5 +1,5 @@
1
- import { t as ClientModule } from "../client-MD0ZmcFR.js";
2
- import { gt as EntryMiddleware, t as Component, u as RenderOptions } from "../server-BA9SJ2Vm.js";
1
+ import { t as ClientModule } from "../client-D0CqSxoO.js";
2
+ import { Pt as EntryMiddleware, d as RenderOptions, t as Component } from "../server-DuFYRXrd.js";
3
3
  //#region src/runtime/testing.d.ts
4
4
  /** The middleware of files of server functions, by function ID. */
5
5
  type FileMiddleware = Record<string, EntryMiddleware>;
@@ -1,5 +1,5 @@
1
- import { c as handleRequest, y as render } from "../server-BqfM95r1.js";
2
- import { t as start } from "../loader-B18i3_-T.js";
1
+ import { l as handleRequest, y as render } from "../server-CxVDYE_V.js";
2
+ import { t as start } from "../loader-Dos_3NP0.js";
3
3
  //#region src/runtime/nodes.ts
4
4
  const VOID = /* @__PURE__ */ new Set([
5
5
  "area",