sygnal 7.0.0 → 7.1.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.
- package/CHANGELOG.md +126 -0
- package/dist/astro/server.cjs.js +32 -43
- package/dist/astro/server.cjs.js.map +1 -1
- package/dist/astro/server.mjs +32 -43
- package/dist/astro/server.mjs.map +1 -1
- package/dist/diagnostics.cjs.js +67 -2
- package/dist/diagnostics.cjs.js.map +1 -1
- package/dist/diagnostics.esm.js +67 -2
- package/dist/diagnostics.esm.js.map +1 -1
- package/dist/guide/accessibility.md +1 -1
- package/dist/guide/resources.md +2 -0
- package/dist/guide/timers.md +3 -3
- package/dist/index.cjs.js +189 -77
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +103 -16
- package/dist/index.esm.js +188 -78
- package/dist/index.esm.js.map +1 -1
- package/dist/sygnal.min.js +1 -1
- package/dist/sygnal.min.js.map +1 -1
- package/dist/vike/config/package.json +1 -1
- package/llms.txt +7 -7
- package/package.json +1 -1
- package/src/core/hosts/switchable.ts +26 -8
- package/src/core/instance.ts +12 -7
- package/src/core/statics.ts +5 -5
- package/src/extra/ai/transports/shared.ts +3 -1
- package/src/extra/behaviors.ts +3 -3
- package/src/extra/diagnostics/checks/next.ts +46 -3
- package/src/extra/diagnostics/checks/props.ts +6 -1
- package/src/extra/diagnostics/codes.ts +11 -0
- package/src/extra/fetchDriver.ts +3 -0
- package/src/extra/fetchEventSource.ts +6 -2
- package/src/extra/socketDriver.ts +51 -6
- package/src/extra/ssr.ts +30 -41
- package/src/extra/testing.ts +32 -7
- package/src/extra/timers.ts +5 -2
- package/src/index.d.ts +102 -15
- package/src/index.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -2525,8 +2525,11 @@ type StateProp = string | Lense<any, any>
|
|
|
2525
2525
|
*/
|
|
2526
2526
|
type ElementProps<PROPS> =
|
|
2527
2527
|
0 extends (1 & PROPS) ? PROPS
|
|
2528
|
-
: '
|
|
2529
|
-
: PROPS
|
|
2528
|
+
// PLAN-13 F-3: Switchable's own `state` (a per-page map too) is kept as it declares it
|
|
2529
|
+
: PROPS extends { of: Record<string, any>; current: string } ? PROPS
|
|
2530
|
+
: WithStateProp<PROPS>
|
|
2531
|
+
|
|
2532
|
+
type WithStateProp<PROPS> = 'state' extends keyof PROPS ? WithoutViewOnlyProps<PROPS> & { state?: StateProp; resetState?: boolean } : PROPS
|
|
2530
2533
|
|
|
2531
2534
|
/** PROPS without `state`, `context`, `slots` and `uid` (keeps optionality and index signatures, unlike Omit). */
|
|
2532
2535
|
type WithoutViewOnlyProps<PROPS> = {
|
|
@@ -4016,10 +4019,12 @@ type Component<
|
|
|
4016
4019
|
* actions on this instance; send with `{ to: 'room', json }` from a model entry (a connection
|
|
4017
4020
|
* the same action opens or changes is declared first). Dispose closes them.
|
|
4018
4021
|
*/
|
|
4019
|
-
connections?: (state: STATE & CALCULATED) => Connections;
|
|
4022
|
+
connections?: (state: STATE & CALCULATED, context: CONTEXT) => Connections;
|
|
4020
4023
|
/**
|
|
4021
4024
|
* PLAN-3: declarative reads (`makeFetchDriver()`). Each entry derives a
|
|
4022
|
-
* request from state
|
|
4025
|
+
* request from state (and, PLAN-13 F-1, the context as its second argument, as every
|
|
4026
|
+
* declaration static: `(state, { route }) => '/api/items/' + route.params.id`; re-run when the
|
|
4027
|
+
* context changes); falsy means idle:
|
|
4023
4028
|
* `Quote.resources = { quote: (state) => state.id && '/api/quotes/' + state.id }`.
|
|
4024
4029
|
* `state.quote` is a `Resource`: `{ status: 'idle' | 'loading' | 'success' | 'error', data,
|
|
4025
4030
|
* error, refreshing }`, written by the built-in RESOURCE action (idle until the first request).
|
|
@@ -4029,7 +4034,7 @@ type Component<
|
|
|
4029
4034
|
* `data`, `error` and `status` and sets `refreshing: true` (D78). `ok` / `error` on the
|
|
4030
4035
|
* request also dispatch those actions after the write.
|
|
4031
4036
|
*/
|
|
4032
|
-
resources?: { [name: string]: (state: STATE & CALCULATED) => ResourceRequest | false | null | undefined | '' | 0 };
|
|
4037
|
+
resources?: { [name: string]: (state: STATE & CALCULATED, context: CONTEXT) => ResourceRequest | false | null | undefined | '' | 0 };
|
|
4033
4038
|
/**
|
|
4034
4039
|
* The router's reply action (`makeRouter()`): `App.route = 'ROUTE'`. The driver sends this
|
|
4035
4040
|
* instance ROUTE with the `Route` (`{ name, params, query, hash, path }`) once declared and on
|
|
@@ -4051,7 +4056,7 @@ type Component<
|
|
|
4051
4056
|
* `renderToString(App, { head: list })` for SSR (`renderHead(list)`). Like every declaration
|
|
4052
4057
|
* static, it is sent with or without a model; a root needs `initialState` (SYG132).
|
|
4053
4058
|
*/
|
|
4054
|
-
head?: (state: STATE & CALCULATED) => HeadValue | false | null | undefined;
|
|
4059
|
+
head?: (state: STATE & CALCULATED, context: CONTEXT) => HeadValue | false | null | undefined;
|
|
4055
4060
|
/**
|
|
4056
4061
|
* PLAN-4 GS-1: behaviors this component uses, each under its state key:
|
|
4057
4062
|
* `TaskList.uses = { pager: pager({ pageSize: 10, next: Newer, prev: Older }) }` gives
|
|
@@ -4068,7 +4073,7 @@ type Component<
|
|
|
4068
4073
|
* fires once (`{ t }`), `frame` runs every animation frame (`{ t, dt }`). A hidden Switchable
|
|
4069
4074
|
* page's timers stop unless `background: true`; dispose stops them; nothing runs during SSR.
|
|
4070
4075
|
*/
|
|
4071
|
-
timers?: (state: STATE & CALCULATED) => Timers<ActionNameOf<ACTIONS>>;
|
|
4076
|
+
timers?: (state: STATE & CALCULATED, context: CONTEXT) => Timers<ActionNameOf<ACTIONS>>;
|
|
4072
4077
|
/**
|
|
4073
4078
|
* PLAN-5 B-3: browser sources derived from state, run by `makeBrowserDriver()` (registered:
|
|
4074
4079
|
* `run(App, { BROWSER: makeBrowserDriver() })`; renderComponent provides a fake, `t.browser`)
|
|
@@ -4078,7 +4083,7 @@ type Component<
|
|
|
4078
4083
|
* restarts. A hidden Switchable page's sources stop unless `background: true`; dispose stops
|
|
4079
4084
|
* them; nothing runs during SSR.
|
|
4080
4085
|
*/
|
|
4081
|
-
browser?: (state: STATE & CALCULATED) => BrowserSources<ActionNameOf<ACTIONS>>;
|
|
4086
|
+
browser?: (state: STATE & CALCULATED, context: CONTEXT) => BrowserSources<ActionNameOf<ACTIONS>>;
|
|
4082
4087
|
/**
|
|
4083
4088
|
* PLAN-4 GS-5: save this root component's state and restore it at startup:
|
|
4084
4089
|
* `TodoApp.persist = persist({ key: 'todo-app', pick: ['todos', 'filter'] })`. `pick` / `omit`
|
|
@@ -4201,8 +4206,8 @@ type VirtualCollectionProps<PROPS = any, STATE = any> = {
|
|
|
4201
4206
|
/** Where `scrollToIndex` / `scrollToId` put the row: 'auto' (default) scrolls only when it isn't in view */
|
|
4202
4207
|
type ScrollToAlign = 'auto' | 'start' | 'center' | 'end'
|
|
4203
4208
|
|
|
4204
|
-
type SwitchableProps<PROPS = any> = {
|
|
4205
|
-
of:
|
|
4209
|
+
type SwitchableProps<PROPS = any, OF extends Record<string, AnyComponent> = Record<string, AnyComponent>> = {
|
|
4210
|
+
of: OF;
|
|
4206
4211
|
current: string;
|
|
4207
4212
|
/**
|
|
4208
4213
|
* The current page's instance key. When it changes, the current page is disposed and created
|
|
@@ -4210,7 +4215,14 @@ type SwitchableProps<PROPS = any> = {
|
|
|
4210
4215
|
* show. Switching `current` alone keeps pages alive. Router recipe: `instance={state.route.path}`
|
|
4211
4216
|
*/
|
|
4212
4217
|
instance?: string | number;
|
|
4213
|
-
|
|
4218
|
+
/**
|
|
4219
|
+
* The pages' state: a key or path (`'pages'`), a lens, or (PLAN-13 F-3) a map from page names to
|
|
4220
|
+
* those (`{ projects: 'pages.projects', settings: byId('teams', state.teamId) }`): each listed
|
|
4221
|
+
* page binds its own target with a tag child's lifetime rules (another key or id makes that page
|
|
4222
|
+
* again, a deleted target disposes it), and the pages not listed share the owner's state. A key
|
|
4223
|
+
* that names no page is SYG429
|
|
4224
|
+
*/
|
|
4225
|
+
state?: string | Lense | { [PAGE in keyof NoInfer<OF>]?: string | Lense };
|
|
4214
4226
|
} & Omit<PROPS, 'of' | 'state' | 'current' | 'instance'>
|
|
4215
4227
|
|
|
4216
4228
|
type PortalProps = {
|
|
@@ -4692,7 +4704,7 @@ declare function Collection<PROPS extends { [prop: string]: any }, STATE = any>(
|
|
|
4692
4704
|
* <VirtualCollection of={Row} from="rows" className="rows" estimateSize={32} />
|
|
4693
4705
|
*/
|
|
4694
4706
|
declare function VirtualCollection<PROPS extends { [prop: string]: any }, STATE = any>(props: VirtualCollectionProps<PROPS, STATE>): JSX.Element
|
|
4695
|
-
declare function Switchable<PROPS extends { [prop: string]: any }>(props: SwitchableProps<PROPS>): JSX.Element
|
|
4707
|
+
declare function Switchable<PROPS extends { [prop: string]: any }, OF extends Record<string, AnyComponent> = Record<string, AnyComponent>>(props: SwitchableProps<PROPS, OF>): JSX.Element
|
|
4696
4708
|
declare function Portal(props: PortalProps): JSX.Element
|
|
4697
4709
|
declare function Transition(props: TransitionProps): JSX.Element
|
|
4698
4710
|
declare function Suspense(props: SuspenseProps): JSX.Element
|
|
@@ -4753,6 +4765,48 @@ type ReplyRequest = {
|
|
|
4753
4765
|
catch?: never;
|
|
4754
4766
|
}
|
|
4755
4767
|
|
|
4768
|
+
declare const replySenderBrand: unique symbol
|
|
4769
|
+
/**
|
|
4770
|
+
* The component instance that sent a request to a driver (opaque). `senderOf(request)` reads it;
|
|
4771
|
+
* pass it to `reply()` to answer that instance with one of its actions.
|
|
4772
|
+
*/
|
|
4773
|
+
type ReplySender = { readonly [replySenderBrand]: true }
|
|
4774
|
+
|
|
4775
|
+
/** What makeReplies() returns: the source part that marks the driver, and the way to answer */
|
|
4776
|
+
type ReplyChannel = {
|
|
4777
|
+
/**
|
|
4778
|
+
* Spread into the driver's source (`return { ...replies, select }`): the core then stamps each
|
|
4779
|
+
* request a component sends with its sender and delivers `reply()`s as that instance's actions.
|
|
4780
|
+
*/
|
|
4781
|
+
replies: { readonly __sygnalReplies: true; replies(sender: ReplySender): Stream<{ type: string; data: any }> };
|
|
4782
|
+
/** Dispatch `type` with `data` on the sender (dropped when it is gone). Call it as often as needed */
|
|
4783
|
+
reply(sender: ReplySender, type: string, data?: any): void;
|
|
4784
|
+
/** Whether the sender is still mounted (a reply would reach it) */
|
|
4785
|
+
listening(sender: ReplySender): boolean;
|
|
4786
|
+
}
|
|
4787
|
+
|
|
4788
|
+
/**
|
|
4789
|
+
* PLAN-13 D-1: reply actions for a driver you write (the protocol makeFetchDriver,
|
|
4790
|
+
* driverFromAsync and the socket driver use). `onStop(sender)` runs when a sender is disposed:
|
|
4791
|
+
* abort what it still has in flight.
|
|
4792
|
+
*
|
|
4793
|
+
* const { replies, reply } = makeReplies((sender) => inflight.get(sender)?.abort())
|
|
4794
|
+
* sink$.addListener({ next: (req) => {
|
|
4795
|
+
* const sender = senderOf(req)
|
|
4796
|
+
* if (sender === undefined) return // not sent by a component
|
|
4797
|
+
* run(req, (f) => req.progress && reply(sender, req.progress, f))
|
|
4798
|
+
* .then((v) => req.ok && reply(sender, req.ok, v), (error) => req.error && reply(sender, req.error, { error, request: req }))
|
|
4799
|
+
* } })
|
|
4800
|
+
* return { ...replies }
|
|
4801
|
+
*
|
|
4802
|
+
* A name with no model entry on the sender is SYG112 in the dev entry (ok / error / progress
|
|
4803
|
+
* statically). Guide: https://sygnal.js.org/guide/custom-drivers/
|
|
4804
|
+
*/
|
|
4805
|
+
declare function makeReplies(onStop?: (sender: ReplySender) => void): ReplyChannel
|
|
4806
|
+
|
|
4807
|
+
/** The component instance that sent `request` to a driver with reply actions, or undefined (not sent by a component) */
|
|
4808
|
+
declare function senderOf(request: object): ReplySender | undefined
|
|
4809
|
+
|
|
4756
4810
|
/**
|
|
4757
4811
|
* A request to a driverFromAsync() sink: your own fields (`value`, the args, ...) plus the
|
|
4758
4812
|
* reply-action keys `ok` / `error`. Type the driver's sink with it: `{ QUOTE: { source:
|
|
@@ -5228,6 +5282,15 @@ type SocketActions = {
|
|
|
5228
5282
|
* hidden page's connections close, and open again as new ones when it is shown)
|
|
5229
5283
|
*/
|
|
5230
5284
|
background?: boolean;
|
|
5285
|
+
/**
|
|
5286
|
+
* PLAN-13 S-1: a connection that stays silent this long (ms) is taken as dead (a half-open
|
|
5287
|
+
* socket behind a proxy): it is closed as a drop, `close` gets `{ stale: true, willReconnect }`,
|
|
5288
|
+
* and the reconnect policy applies. Every event counts; over fetch (an `sse` with `headers`)
|
|
5289
|
+
* any bytes do, heartbeat comments (`: ping`) included, while the native EventSource needs a
|
|
5290
|
+
* real event (a `message`, or a named event listed in `events`). Set it above the server's
|
|
5291
|
+
* heartbeat interval
|
|
5292
|
+
*/
|
|
5293
|
+
staleAfterMs?: number;
|
|
5231
5294
|
/** Not allowed: a `then` key makes the value a thenable (SYG610). Use `message` / `open` */
|
|
5232
5295
|
then?: never;
|
|
5233
5296
|
catch?: never;
|
|
@@ -5254,6 +5317,29 @@ type SseConnection = SocketActions & {
|
|
|
5254
5317
|
headers?: Record<string, string>;
|
|
5255
5318
|
/** Named events → actions: `{ 'price-update': 'PRICE' }` (data JSON-parsed when it parses) */
|
|
5256
5319
|
events?: Record<string, string>;
|
|
5320
|
+
/**
|
|
5321
|
+
* PLAN-13 S-1: the `message` and `events` actions get `SseEvent` (`{ data, id, event }`: the
|
|
5322
|
+
* event id and type) instead of the data alone
|
|
5323
|
+
*/
|
|
5324
|
+
meta?: boolean;
|
|
5325
|
+
/**
|
|
5326
|
+
* PLAN-13 S-1: resume after a reconnect the driver makes (EventSource gave up: a proxy 502, a
|
|
5327
|
+
* non-2xx on the `headers` path) from the last event id. Over fetch (`headers`) it is sent as
|
|
5328
|
+
* `Last-Event-ID`; the native EventSource can't send it, so it goes on the URL:
|
|
5329
|
+
* `?lastEventId=<id>` (`true`) or `?<name>=<id>` (a parameter name). EventSource's own retries
|
|
5330
|
+
* send `Last-Event-ID` anyway
|
|
5331
|
+
*/
|
|
5332
|
+
resume?: true | string;
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5335
|
+
/** PLAN-13 S-1: an SSE event as a `meta: true` connection's actions get it */
|
|
5336
|
+
type SseEvent<DATA = any> = {
|
|
5337
|
+
/** The data, JSON-parsed when it parses */
|
|
5338
|
+
data: DATA;
|
|
5339
|
+
/** The event's `id:` (the last one sent when this event has none; '' when there was none) */
|
|
5340
|
+
id: string;
|
|
5341
|
+
/** The event type: 'message', or the named event's name */
|
|
5342
|
+
event: string;
|
|
5257
5343
|
}
|
|
5258
5344
|
|
|
5259
5345
|
/**
|
|
@@ -5279,7 +5365,7 @@ type SocketRequest =
|
|
|
5279
5365
|
/** Data of a connection's `open` action */
|
|
5280
5366
|
type SocketOpen = { reconnected: boolean }
|
|
5281
5367
|
/** Data of a connection's `close` action (SSE: no code / reason) */
|
|
5282
|
-
type SocketClose = { code?: number; reason?: string; willReconnect: boolean }
|
|
5368
|
+
type SocketClose = { code?: number; reason?: string; willReconnect: boolean; /** PLAN-13 S-1: closed by staleAfterMs (nothing arrived) */ stale?: true }
|
|
5283
5369
|
/** Data of a connection's `error` action: the error Event (or the constructor's exception) */
|
|
5284
5370
|
type SocketError = { error: any }
|
|
5285
5371
|
|
|
@@ -6101,9 +6187,10 @@ interface RenderResult<STATE = any> {
|
|
|
6101
6187
|
open: (sinkName: string, target?: FakeConnectionTarget) => Promise<void>;
|
|
6102
6188
|
/**
|
|
6103
6189
|
* The server sends `data` (objects as JSON text) on open connection(s): `message` fires with
|
|
6104
|
-
* the data, JSON-parsed when it parses. `{ event, connection? }` sends an SSE named event
|
|
6190
|
+
* the data, JSON-parsed when it parses. `{ event, connection? }` sends an SSE named event;
|
|
6191
|
+
* `{ id }` gives an SSE event its id (what `meta: true` reports and `resume` resumes from).
|
|
6105
6192
|
*/
|
|
6106
|
-
push: (sinkName: string, data: any, target?: FakeConnectionTarget | { event?: string; connection?: FakeConnectionTarget }) => Promise<void>;
|
|
6193
|
+
push: (sinkName: string, data: any, target?: FakeConnectionTarget | { event?: string; id?: string | number; connection?: FakeConnectionTarget }) => Promise<void>;
|
|
6107
6194
|
/**
|
|
6108
6195
|
* Connection(s) close without the app closing them: `close` fires with `{ code, reason,
|
|
6109
6196
|
* willReconnect }` (default `{ code: 1006, reason: '' }`; a connecting one fails to open: `error`
|
|
@@ -6374,4 +6461,4 @@ declare global {
|
|
|
6374
6461
|
*/
|
|
6375
6462
|
declare function byId<T = any, S = any>(field: string, id: unknown, idKey?: string): { get(state: S): T | undefined; set(state: S, value: T): S }
|
|
6376
6463
|
|
|
6377
|
-
export { ABORT, type ActionCause, type ActionsOf, type ActiveTimer, type AgentAction, type AgentConfirm, type AgentConfirmInfo, type AgentDeclaration, type AgentIssue, type AgentQuery, type AgentQueryResult, type AgentResult, type AgentSchema, type AgentTool, type AgentToolSet, type AgentToolsOptions, type AguiOptions, type AnswerPick, type AnswerPicks, type AnthropicMessagesOptions, type AnyComponentModule, type AnyControl, type AppErrorHook, type AppErrorInfo, type AppErrorPhase, type ArrayKeysOf, type ArrayPathsOf, type AsyncDriverError, type AsyncDriverFromFunction, type AsyncRequest, type Behavior, type BehaviorDefinition, type BehaviorFactory, type BehaviorHandler, type BehaviorModelEntry, type BehaviorProps, type BehaviorSources, type BehaviorState, type BehaviorTarget, type BrowserCommand, type BrowserFake, type BrowserFakeOptions, type BrowserIntersection, type BrowserPosition, type BrowserResize, type BrowserSource, type BrowserSources, type BrowserSpec, type Catalog, type CatalogContainer, type CatalogContainerDecl, type CatalogDecl, type CatalogOption, type CatalogParam, type CatalogParamValue, type CatalogParamsOf, type CatalogPart, type CatalogPartDecl, type CatalogRecord, type CatalogTree, type CatalogTreeNode, type ChatAbort, type ChatActions, type ChatAskOptions, type ChatCall, type ChatCard, type ChatCardStatus, type ChatClientTool, type ChatCompletionsOptions, type ChatDelta, type ChatDone, type ChatDriverOptions, type ChatError, type ChatEvent, type ChatOk, type ChatOptions, type ChatOutputOf, type ChatOutputSchema, type ChatRequest, type ChatSource, type ChatState, type ChatStatus, type ChatTool, type ChatToolCall, type ChatToolPart, type ChatTransport, type ChatUsage, type ChromePromptOptions, type ChromePromptStatus, type ChromePromptTransport, type ClassesType, Collection, type CollectionFrom, type CollectionProps, type Command, type CommandBarActions, type CommandBarOptions, type CommandBarResult, type CommandBarState, type CommandBarStatus, type CommandBarUnsure, type CommandSource, type Component, type ComposeActions, type ComposeAnswer, type ComposeBackend, type ComposeNames, type ComposeOptions, type ComposeRenderOptions, type ComposeRenderable, type ComposeState, type ComposeStatus, type ComposeTree, Composed, type ComposedProps, type Connections, type ContainerView, type Control, type ControlCommonProps, type ControlDOMSource, type ControlElementOf, type ControlEvent, type ControlH, type ControlPropsOf, type ControlSpec, type ControlSpecObject, type ControlsOf, type ConvertedSchema, type CycleDOMEvent, type CycleDriver, type DOMDriverOptions, type DOMEventShorthand, type DOMEventShorthands, type DOMSource, type DefaultDrivers, type DefineComponentOptions, type DevToolsActionCause, type DevToolsCopyAsTestOptions, type DevToolsSessionRecording, type Diagnostic, type DiagnosticCode, type DiagnosticSeverity, type DiagnosticsMode, type DiagnosticsOptions, type DragDriverCategory, type DragDriverRegistration, type DragDriverSource, type DragSource, type DragStartPayload, type DriverFactories, type DriverFromAsyncOptions, type DriverSpec, type DriverSpecs, type DropPayload, type ElementCommand, type ElementCommandRegistry, type ElementCommands, type ElementProps, type ElementTarget, type EmittedEvent, type EnrichedEventStream, type Event$1 as Event, type EventName, type EventPayload, type EventPayloadFunction, type EventSink, type EventsFnOptions, type EventsSource, type ExactShape, type ExplainedAction, type ExposeWebMcpOptions, type FakeCacheEntry, type FakeChatChunk, type FakeConnection, type FakeConnectionTarget, type FakeReplyOptions, type FetchCacheOptions, type FetchDriverOptions, type FetchError, type FetchFailure, type FetchInit, type FetchInvalidate, type FetchProgress, type FetchRequest, type FetchResponse, type FetchRetry, type FetchSource, type FieldErrors, type Filter, type FixDrivers, type FormActions, type FormBehavior, type FormCalculated, type FormData, type FormField, type FormFieldCheck, type FormFields, type FormOptions, type FormOutput, type FormRequest, type FormServerErrors, type FormSource, type FormState, type FormTool, type FormToolHandle, type FormToolResult, type FromAISDKOptions, type HeadValue, type HotModuleAPI, type HttpTransportOptions, type InspectAction, type InspectActionTrigger, type InspectChild, type InspectChildSelect, type InspectCommand, type InspectComponent, type InspectDiagnostic, type InspectFix, type InspectGraph, type InspectLocation, type InspectRecentAction, type InspectRelatedLocation, type InspectSelector, type InspectTextEdit, type InspectTimer, type InstallPrompt, type IntentSources, type IntrinsicControlProps, type JsonSchemaObject, type Layout, type LayoutNode, type LazyComponent, type LazyOptions, type Lens, type Lense, MainDOMSource, type McpAppDisplayMode, type McpAppDriverOptions, type McpAppError, type McpAppRequest, type McpAppSource, type McpContentBlock, type McpDownloadItem, type McpHostContext, type McpHostInfo, type McpLogLevel, type McpResourceContents, type McpSamplingRequest, type McpToolResult, type MockConfig, MockedDOMSource, type MultipartValue, type NonStateSinkReturns, type OpenResponsesEvent, type OpenResponsesOptions, type PagerActions, type PagerCalculated, type PagerOptions, type PagerState, type ParamNames, type ParentPayloadOf, type Persist, type PersistOptions, type PersistOptionsFor, type PersistStorage, type PersistedEntry, Portal, type PortalProps, type ProcessFormOptions, type QueryCache, type QueryCacheSnapshot, type QueryCacheSnapshotEntry, type Ref, type Ref$, type RegisteredEvent, type RenderOptions, type RenderResult, type RenderToStringOptions, type RenderableComponent, type ReplyRequest, type Resource, type ResourceRequest, type RootComponent, type Route, type RouteName, type RouteParamsArg, type RouteQuery, type Router, type RouterBlocked, type RouterCommand, type RouterOptions, type RouterSource, type RunOptions, type SchemaInput, type SchemaOutput, type ScrollToAlign, type SelectedDOMSource, type SelectionActions, type SelectionCalculated, type SelectionOptions, type SelectionState, type ServiceWorkerCommand, type ServiceWorkerOptions, type ServiceWorkerSource, type SimulatedEventInit, Slot, type SlotProps, type SocketActions, type SocketClose, type SocketConnection, type SocketDriverOptions, type SocketError, type SocketEvent, type SocketOpen, type SocketReconnect, type SocketRequest, type SocketSource, type SortFunction, type SortObject, type SortSpec, type SortableActions, type SortableDropped, type SortableOptions, type SortableState, type SseConnection, type StandardSchemaLike, type StateProp, type StrictDialect, type StrictSchemas, Suspense, type SuspenseProps, Switchable, type SwitchableProps, type SygnalApp, type SygnalBodyDOMSource, type SygnalDOMSource, type SygnalDevTools, type SygnalDocumentDOMSource, type SygnalEvents, type SygnalSinks, type TestAction, type Thunk, type ThunkData, type TimerAfter, type TimerFrame, type TimerSpec, type TimerTick, type Timers, Transition, type TransitionProps, type UIMessageStreamOptions, type UidFunction, type UndoBehaviorOptions, type UndoHistory, type UndoOptions, type UsesActions, type UsesState, type ViewProps, VirtualCollection, type VirtualCollectionProps, type WebMcpHandle, type Widget, type WidgetDefinition, type WidgetDispatch, type WidgetElementOf, type WidgetEmit, type WidgetHandle, type WidgetHostProps, type WithinTarget, abort, agentTools, agui, answers, anthropicMessages, askCard, byId, chat, chatCompletions, checkForm, choice, chromePrompt, classes, clearDiagnostics, clipboardSource, commandBar, compose, composeWith, controls, createCommand, createInstallPrompt, createRef, createRef$, decide, defineBehavior, defineCatalog, defineComponent, defineWidget, driverFromAsync, emit, enableHMR, encodeOpenResponses, event, exactState, experimentalExposeWebMcp, fieldName, fieldNames, focusInvalid, focusWithin, form, formErrors, formTool, fromAISDK, fromTree, geolocationSource, getDevTools, getDiagnostics, getField, hasField, intersectionSource, isSelected, jsonSchema, lazy, makeBrowserDriver, makeBrowserDriverWith, makeChatDriver, makeDOMDriver, makeDragDriver, makeFetchDriver, makeHeadDriver, makeMcpAppDriver, makeRouter, makeRouterDriver, makeServiceWorkerDriver, makeSocketDriver, makeTimerDriver, makeViewTransitionDOMDriver, mediaSource, messageText, mockDOMSource, noul, onDiagnostic, onlineSource, onlineStatus$, openResponses, openToolCalls, outputJsonSchema, pager, parseInput, persist, portal, processDrag, processForm, queryCache, removeNode, renderComponent, renderHead, renderToString, replyErrors, resizeSource, run, score, selection, set, setField, sortable, storageSource, strictSchemas, thunk, toJsonSchema, toTree, toggle, uiMessageStream, undo, undoable, visibilitySource, withToolResults, xs };
|
|
6464
|
+
export { ABORT, type ActionCause, type ActionsOf, type ActiveTimer, type AgentAction, type AgentConfirm, type AgentConfirmInfo, type AgentDeclaration, type AgentIssue, type AgentQuery, type AgentQueryResult, type AgentResult, type AgentSchema, type AgentTool, type AgentToolSet, type AgentToolsOptions, type AguiOptions, type AnswerPick, type AnswerPicks, type AnthropicMessagesOptions, type AnyComponentModule, type AnyControl, type AppErrorHook, type AppErrorInfo, type AppErrorPhase, type ArrayKeysOf, type ArrayPathsOf, type AsyncDriverError, type AsyncDriverFromFunction, type AsyncRequest, type Behavior, type BehaviorDefinition, type BehaviorFactory, type BehaviorHandler, type BehaviorModelEntry, type BehaviorProps, type BehaviorSources, type BehaviorState, type BehaviorTarget, type BrowserCommand, type BrowserFake, type BrowserFakeOptions, type BrowserIntersection, type BrowserPosition, type BrowserResize, type BrowserSource, type BrowserSources, type BrowserSpec, type Catalog, type CatalogContainer, type CatalogContainerDecl, type CatalogDecl, type CatalogOption, type CatalogParam, type CatalogParamValue, type CatalogParamsOf, type CatalogPart, type CatalogPartDecl, type CatalogRecord, type CatalogTree, type CatalogTreeNode, type ChatAbort, type ChatActions, type ChatAskOptions, type ChatCall, type ChatCard, type ChatCardStatus, type ChatClientTool, type ChatCompletionsOptions, type ChatDelta, type ChatDone, type ChatDriverOptions, type ChatError, type ChatEvent, type ChatOk, type ChatOptions, type ChatOutputOf, type ChatOutputSchema, type ChatRequest, type ChatSource, type ChatState, type ChatStatus, type ChatTool, type ChatToolCall, type ChatToolPart, type ChatTransport, type ChatUsage, type ChromePromptOptions, type ChromePromptStatus, type ChromePromptTransport, type ClassesType, Collection, type CollectionFrom, type CollectionProps, type Command, type CommandBarActions, type CommandBarOptions, type CommandBarResult, type CommandBarState, type CommandBarStatus, type CommandBarUnsure, type CommandSource, type Component, type ComposeActions, type ComposeAnswer, type ComposeBackend, type ComposeNames, type ComposeOptions, type ComposeRenderOptions, type ComposeRenderable, type ComposeState, type ComposeStatus, type ComposeTree, Composed, type ComposedProps, type Connections, type ContainerView, type Control, type ControlCommonProps, type ControlDOMSource, type ControlElementOf, type ControlEvent, type ControlH, type ControlPropsOf, type ControlSpec, type ControlSpecObject, type ControlsOf, type ConvertedSchema, type CycleDOMEvent, type CycleDriver, type DOMDriverOptions, type DOMEventShorthand, type DOMEventShorthands, type DOMSource, type DefaultDrivers, type DefineComponentOptions, type DevToolsActionCause, type DevToolsCopyAsTestOptions, type DevToolsSessionRecording, type Diagnostic, type DiagnosticCode, type DiagnosticSeverity, type DiagnosticsMode, type DiagnosticsOptions, type DragDriverCategory, type DragDriverRegistration, type DragDriverSource, type DragSource, type DragStartPayload, type DriverFactories, type DriverFromAsyncOptions, type DriverSpec, type DriverSpecs, type DropPayload, type ElementCommand, type ElementCommandRegistry, type ElementCommands, type ElementProps, type ElementTarget, type EmittedEvent, type EnrichedEventStream, type Event$1 as Event, type EventName, type EventPayload, type EventPayloadFunction, type EventSink, type EventsFnOptions, type EventsSource, type ExactShape, type ExplainedAction, type ExposeWebMcpOptions, type FakeCacheEntry, type FakeChatChunk, type FakeConnection, type FakeConnectionTarget, type FakeReplyOptions, type FetchCacheOptions, type FetchDriverOptions, type FetchError, type FetchFailure, type FetchInit, type FetchInvalidate, type FetchProgress, type FetchRequest, type FetchResponse, type FetchRetry, type FetchSource, type FieldErrors, type Filter, type FixDrivers, type FormActions, type FormBehavior, type FormCalculated, type FormData, type FormField, type FormFieldCheck, type FormFields, type FormOptions, type FormOutput, type FormRequest, type FormServerErrors, type FormSource, type FormState, type FormTool, type FormToolHandle, type FormToolResult, type FromAISDKOptions, type HeadValue, type HotModuleAPI, type HttpTransportOptions, type InspectAction, type InspectActionTrigger, type InspectChild, type InspectChildSelect, type InspectCommand, type InspectComponent, type InspectDiagnostic, type InspectFix, type InspectGraph, type InspectLocation, type InspectRecentAction, type InspectRelatedLocation, type InspectSelector, type InspectTextEdit, type InspectTimer, type InstallPrompt, type IntentSources, type IntrinsicControlProps, type JsonSchemaObject, type Layout, type LayoutNode, type LazyComponent, type LazyOptions, type Lens, type Lense, MainDOMSource, type McpAppDisplayMode, type McpAppDriverOptions, type McpAppError, type McpAppRequest, type McpAppSource, type McpContentBlock, type McpDownloadItem, type McpHostContext, type McpHostInfo, type McpLogLevel, type McpResourceContents, type McpSamplingRequest, type McpToolResult, type MockConfig, MockedDOMSource, type MultipartValue, type NonStateSinkReturns, type OpenResponsesEvent, type OpenResponsesOptions, type PagerActions, type PagerCalculated, type PagerOptions, type PagerState, type ParamNames, type ParentPayloadOf, type Persist, type PersistOptions, type PersistOptionsFor, type PersistStorage, type PersistedEntry, Portal, type PortalProps, type ProcessFormOptions, type QueryCache, type QueryCacheSnapshot, type QueryCacheSnapshotEntry, type Ref, type Ref$, type RegisteredEvent, type RenderOptions, type RenderResult, type RenderToStringOptions, type RenderableComponent, type ReplyChannel, type ReplyRequest, type ReplySender, type Resource, type ResourceRequest, type RootComponent, type Route, type RouteName, type RouteParamsArg, type RouteQuery, type Router, type RouterBlocked, type RouterCommand, type RouterOptions, type RouterSource, type RunOptions, type SchemaInput, type SchemaOutput, type ScrollToAlign, type SelectedDOMSource, type SelectionActions, type SelectionCalculated, type SelectionOptions, type SelectionState, type ServiceWorkerCommand, type ServiceWorkerOptions, type ServiceWorkerSource, type SimulatedEventInit, Slot, type SlotProps, type SocketActions, type SocketClose, type SocketConnection, type SocketDriverOptions, type SocketError, type SocketEvent, type SocketOpen, type SocketReconnect, type SocketRequest, type SocketSource, type SortFunction, type SortObject, type SortSpec, type SortableActions, type SortableDropped, type SortableOptions, type SortableState, type SseConnection, type SseEvent, type StandardSchemaLike, type StateProp, type StrictDialect, type StrictSchemas, Suspense, type SuspenseProps, Switchable, type SwitchableProps, type SygnalApp, type SygnalBodyDOMSource, type SygnalDOMSource, type SygnalDevTools, type SygnalDocumentDOMSource, type SygnalEvents, type SygnalSinks, type TestAction, type Thunk, type ThunkData, type TimerAfter, type TimerFrame, type TimerSpec, type TimerTick, type Timers, Transition, type TransitionProps, type UIMessageStreamOptions, type UidFunction, type UndoBehaviorOptions, type UndoHistory, type UndoOptions, type UsesActions, type UsesState, type ViewProps, VirtualCollection, type VirtualCollectionProps, type WebMcpHandle, type Widget, type WidgetDefinition, type WidgetDispatch, type WidgetElementOf, type WidgetEmit, type WidgetHandle, type WidgetHostProps, type WithinTarget, abort, agentTools, agui, answers, anthropicMessages, askCard, byId, chat, chatCompletions, checkForm, choice, chromePrompt, classes, clearDiagnostics, clipboardSource, commandBar, compose, composeWith, controls, createCommand, createInstallPrompt, createRef, createRef$, decide, defineBehavior, defineCatalog, defineComponent, defineWidget, driverFromAsync, emit, enableHMR, encodeOpenResponses, event, exactState, experimentalExposeWebMcp, fieldName, fieldNames, focusInvalid, focusWithin, form, formErrors, formTool, fromAISDK, fromTree, geolocationSource, getDevTools, getDiagnostics, getField, hasField, intersectionSource, isSelected, jsonSchema, lazy, makeBrowserDriver, makeBrowserDriverWith, makeChatDriver, makeDOMDriver, makeDragDriver, makeFetchDriver, makeHeadDriver, makeMcpAppDriver, makeReplies, makeRouter, makeRouterDriver, makeServiceWorkerDriver, makeSocketDriver, makeTimerDriver, makeViewTransitionDOMDriver, mediaSource, messageText, mockDOMSource, noul, onDiagnostic, onlineSource, onlineStatus$, openResponses, openToolCalls, outputJsonSchema, pager, parseInput, persist, portal, processDrag, processForm, queryCache, removeNode, renderComponent, renderHead, renderToString, replyErrors, resizeSource, run, score, selection, senderOf, set, setField, sortable, storageSource, strictSchemas, thunk, toJsonSchema, toTree, toggle, uiMessageStream, undo, undoable, visibilitySource, withToolResults, xs };
|