@vertz/ui 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared/chunk-09ntccdx.js +39 -0
- package/dist/shared/{chunk-g6fb5yc2.js → chunk-1jgws7rs.js} +210 -258
- package/dist/shared/{chunk-016m1fq0.js → chunk-2krx4aqe.js} +119 -15
- package/dist/shared/{chunk-f4d5nphq.js → chunk-7nr2ebrf.js} +1 -1
- package/dist/shared/{chunk-4gmtsf6v.js → chunk-bk7mmn92.js} +1 -1
- package/dist/shared/chunk-djvarb8r.js +333 -0
- package/dist/shared/{chunk-jtma4sh4.js → chunk-e09mdqcx.js} +2 -2
- package/dist/shared/{chunk-4xkw6h1s.js → chunk-h1fsr8kv.js} +67 -1
- package/dist/shared/{chunk-xhc7arn9.js → chunk-j1a7t906.js} +14 -12
- package/dist/shared/{chunk-656n0x6y.js → chunk-ppr06jgn.js} +8 -2
- package/dist/shared/{chunk-2kyhn86t.js → chunk-svvqjmyy.js} +5 -63
- package/dist/shared/{chunk-da2w7j7w.js → chunk-xs5s8gqe.js} +1 -1
- package/dist/shared/{chunk-p3fz6qqp.js → chunk-ymc3wwam.js} +8 -2
- package/dist/src/auth/public.d.ts +35 -1
- package/dist/src/auth/public.js +72 -3
- package/dist/src/components/index.d.ts +3 -2
- package/dist/src/components/index.js +56 -46
- package/dist/src/css/public.d.ts +5 -1
- package/dist/src/css/public.js +4 -5
- package/dist/src/form/public.js +2 -2
- package/dist/src/index.d.ts +162 -53
- package/dist/src/index.js +341 -320
- package/dist/src/internals.d.ts +85 -10
- package/dist/src/internals.js +380 -90
- package/dist/src/jsx-runtime/index.js +3 -5
- package/dist/src/query/public.d.ts +6 -33
- package/dist/src/query/public.js +5 -7
- package/dist/src/router/public.d.ts +27 -4
- package/dist/src/router/public.js +8 -10
- package/dist/src/test/index.d.ts +12 -3
- package/dist/src/test/index.js +3 -3
- package/package.json +4 -3
- package/reactivity.json +1 -1
- package/dist/shared/chunk-13tvh4wq.js +0 -229
- package/dist/shared/chunk-2y9f9j62.js +0 -40
- package/dist/shared/chunk-prj7nm08.js +0 -67
package/dist/src/index.d.ts
CHANGED
|
@@ -117,6 +117,24 @@ declare function createContext<T>(defaultValue?: T, __stableId?: string): Contex
|
|
|
117
117
|
* Returns the default value if no Provider is active.
|
|
118
118
|
*/
|
|
119
119
|
declare function useContext<T>(ctx: Context<T>): UnwrapSignals<T> | undefined;
|
|
120
|
+
/** Props for error fallback components (shared by DefaultErrorFallback and route errorComponent). */
|
|
121
|
+
interface ErrorFallbackProps {
|
|
122
|
+
error: Error;
|
|
123
|
+
retry: () => void;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Framework-provided error fallback component.
|
|
127
|
+
*
|
|
128
|
+
* Renders a simple error display with the error message and a "Try again" button.
|
|
129
|
+
* Works without any theme registered — uses inline styles for a clean default look.
|
|
130
|
+
*
|
|
131
|
+
* Exported from `@vertz/ui` (not `@vertz/ui/components`) because it is a
|
|
132
|
+
* framework-level component, not a theme-provided one.
|
|
133
|
+
*
|
|
134
|
+
* Uses imperative DOM instead of JSX because `@vertz/ui` is a core package
|
|
135
|
+
* without the Vertz compiler plugin — `.ts` files don't go through JSX transforms.
|
|
136
|
+
*/
|
|
137
|
+
declare function DefaultErrorFallback({ error, retry }: ErrorFallbackProps): HTMLElement;
|
|
120
138
|
/** DOM element types accepted by JSX (mirrors JSX.Element). */
|
|
121
139
|
type JsxElement = HTMLElement | SVGElement | DocumentFragment;
|
|
122
140
|
/** Props for the ErrorBoundary component. */
|
|
@@ -160,6 +178,15 @@ interface ForeignProps {
|
|
|
160
178
|
* For SVG tags, cast to the appropriate SVG element type.
|
|
161
179
|
*/
|
|
162
180
|
onReady?: (container: HTMLElement | SVGElement) => (() => void) | void;
|
|
181
|
+
/**
|
|
182
|
+
* Pre-rendered HTML content to inject during SSR.
|
|
183
|
+
* Only takes effect during server-side rendering — on the client,
|
|
184
|
+
* the SSR content is already in the DOM and preserved by hydration.
|
|
185
|
+
*
|
|
186
|
+
* Use this for content that can be pre-rendered on the server
|
|
187
|
+
* (e.g. syntax-highlighted code) to avoid a flash on first paint.
|
|
188
|
+
*/
|
|
189
|
+
html?: string;
|
|
163
190
|
/** Element id */
|
|
164
191
|
id?: string;
|
|
165
192
|
/** CSS class name */
|
|
@@ -182,7 +209,7 @@ interface ForeignProps {
|
|
|
182
209
|
* Implemented as a hand-written `.ts` component (no JSX, no compiler transforms)
|
|
183
210
|
* because it's a framework primitive that uses `__element()` directly.
|
|
184
211
|
*/
|
|
185
|
-
declare function Foreign({ tag, onReady, id, className, style }: ForeignProps): Element;
|
|
212
|
+
declare function Foreign({ tag, onReady, html, id, className, style }: ForeignProps): Element;
|
|
186
213
|
/**
|
|
187
214
|
* Runs callback once on mount. Never re-executes.
|
|
188
215
|
* Return a function to register cleanup that runs on unmount.
|
|
@@ -195,20 +222,6 @@ declare function Foreign({ tag, onReady, id, className, style }: ForeignProps):
|
|
|
195
222
|
* ```
|
|
196
223
|
*/
|
|
197
224
|
declare function onMount2(callback: () => (() => void) | void): void;
|
|
198
|
-
interface ListTransitionProps<T> {
|
|
199
|
-
each: T[];
|
|
200
|
-
keyFn: (item: T, index: number) => string | number;
|
|
201
|
-
children: (item: T) => Node;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* ListTransition component for animated list item enter/exit.
|
|
205
|
-
* New items get `data-presence="enter"`, removed items get `data-presence="exit"`
|
|
206
|
-
* with DOM removal deferred until CSS animation completes.
|
|
207
|
-
*
|
|
208
|
-
* Props are accessed as getters (not destructured) so the compiler-generated
|
|
209
|
-
* reactive getters are tracked by the underlying domEffect.
|
|
210
|
-
*/
|
|
211
|
-
declare function ListTransition<T>(props: ListTransitionProps<T>): DocumentFragment;
|
|
212
225
|
interface PresenceProps {
|
|
213
226
|
when: boolean;
|
|
214
227
|
children: () => HTMLElement;
|
|
@@ -585,8 +598,12 @@ interface ThemeProviderProps {
|
|
|
585
598
|
*
|
|
586
599
|
* Uses __element() directly (instead of jsx()) so the hydration cursor
|
|
587
600
|
* walker can claim the existing SSR node during mount().
|
|
601
|
+
*
|
|
602
|
+
* Accepts `props` without destructuring so that the compiler-generated
|
|
603
|
+
* getter for `theme` stays alive — `__attr()` reads it inside a domEffect,
|
|
604
|
+
* making the attribute reactive when the parent passes a signal-backed value.
|
|
588
605
|
*/
|
|
589
|
-
declare function ThemeProvider(
|
|
606
|
+
declare function ThemeProvider(props: ThemeProviderProps): HTMLElement;
|
|
590
607
|
/**
|
|
591
608
|
* A record of variant names to their possible values (each value maps to style entries).
|
|
592
609
|
*
|
|
@@ -626,6 +643,9 @@ interface VariantFunction<V extends VariantDefinitions> {
|
|
|
626
643
|
*/
|
|
627
644
|
declare function variants<V extends VariantDefinitions>(config: VariantsConfig<V>): VariantFunction<V>;
|
|
628
645
|
declare const DialogStackContext: Context<DialogStack>;
|
|
646
|
+
declare const DialogHandleContext: Context<DialogHandle<unknown>>;
|
|
647
|
+
declare const DialogIdContext: Context<string>;
|
|
648
|
+
declare function useDialog<T = void>(): DialogHandle<T>;
|
|
629
649
|
declare function useDialogStack(): DialogStack;
|
|
630
650
|
interface DialogHandle<TResult> {
|
|
631
651
|
close(...args: void extends TResult ? [] : [result: TResult]): void;
|
|
@@ -642,19 +662,42 @@ type DialogResult<T> = {
|
|
|
642
662
|
} | {
|
|
643
663
|
readonly ok: false;
|
|
644
664
|
};
|
|
665
|
+
interface DialogOpenOptions {
|
|
666
|
+
/** Whether the dialog can be dismissed by backdrop click or Escape. Default: true */
|
|
667
|
+
dismissible?: boolean;
|
|
668
|
+
}
|
|
669
|
+
interface ConfirmOptions {
|
|
670
|
+
title: string;
|
|
671
|
+
description?: string;
|
|
672
|
+
confirm?: string;
|
|
673
|
+
cancel?: string;
|
|
674
|
+
intent?: "primary" | "danger";
|
|
675
|
+
dismissible?: boolean;
|
|
676
|
+
}
|
|
645
677
|
interface DialogStack {
|
|
646
678
|
open<
|
|
647
679
|
TResult,
|
|
648
680
|
TProps
|
|
649
|
-
>(component: DialogComponent<TResult, TProps>, props: TProps): Promise<DialogResult<TResult>>;
|
|
681
|
+
>(component: DialogComponent<TResult, TProps>, props: TProps, options?: DialogOpenOptions): Promise<DialogResult<TResult>>;
|
|
650
682
|
/** @internal — used by useDialogStack() to pass captured context scope */
|
|
651
683
|
openWithScope<
|
|
652
684
|
TResult,
|
|
653
685
|
TProps
|
|
654
|
-
>(component: DialogComponent<TResult, TProps>, props: TProps, scope: ContextScope | null): Promise<DialogResult<TResult>>;
|
|
686
|
+
>(component: DialogComponent<TResult, TProps>, props: TProps, scope: ContextScope | null, options?: DialogOpenOptions): Promise<DialogResult<TResult>>;
|
|
687
|
+
confirm(options: ConfirmOptions): Promise<boolean>;
|
|
655
688
|
readonly size: number;
|
|
656
689
|
closeAll(): void;
|
|
657
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* Manages the dialog container element and provides DialogStack via context.
|
|
693
|
+
*
|
|
694
|
+
* Creates a hydration-safe container div via `__element`, initializes the
|
|
695
|
+
* dialog stack, and wraps children in `DialogStackContext.Provider`.
|
|
696
|
+
* The container renders after children — dialogs portal into it.
|
|
697
|
+
*/
|
|
698
|
+
declare function DialogStackProvider({ children }: {
|
|
699
|
+
children?: unknown;
|
|
700
|
+
}): HTMLElement;
|
|
658
701
|
declare function createDialogStack(container: HTMLElement): DialogStack;
|
|
659
702
|
/**
|
|
660
703
|
* Brand symbol for render nodes.
|
|
@@ -752,6 +795,31 @@ declare function __enterChildren(el: Element): void;
|
|
|
752
795
|
*/
|
|
753
796
|
declare function __exitChildren(): void;
|
|
754
797
|
/**
|
|
798
|
+
* Lifecycle hooks for list animation (enter/exit/reorder).
|
|
799
|
+
*
|
|
800
|
+
* Provided by `<List animate>` via ListAnimationContext.
|
|
801
|
+
* Consumed by `__listValue()` during reconciliation.
|
|
802
|
+
*/
|
|
803
|
+
interface ListAnimationHooks {
|
|
804
|
+
/** Called before reconciliation starts. Use to snapshot element rects for FLIP. */
|
|
805
|
+
onBeforeReconcile: () => void;
|
|
806
|
+
/** Called after reconciliation finishes. Use to play FLIP animations. */
|
|
807
|
+
onAfterReconcile: () => void;
|
|
808
|
+
/** Called when a new item enters (after first render). */
|
|
809
|
+
onItemEnter: (node: Node, key: string | number) => void;
|
|
810
|
+
/** Called when an item exits. Must call `done()` when animation finishes so the node can be removed. */
|
|
811
|
+
onItemExit: (node: Node, key: string | number, done: () => void) => void;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Context for list animation hooks.
|
|
815
|
+
*
|
|
816
|
+
* When provided, `__listValue()` calls these hooks during reconciliation
|
|
817
|
+
* to enable enter/exit animations and FLIP reordering.
|
|
818
|
+
*
|
|
819
|
+
* When not provided, `__listValue()` behaves as a plain keyed list.
|
|
820
|
+
*/
|
|
821
|
+
declare const ListAnimationContext: Context<ListAnimationHooks | undefined>;
|
|
822
|
+
/**
|
|
755
823
|
* Returns true when running in a real browser environment.
|
|
756
824
|
* Returns false on the server, even if `window` exists (DOM shim).
|
|
757
825
|
*
|
|
@@ -930,6 +998,37 @@ interface FormDataOptions {
|
|
|
930
998
|
* "true"/"false" become booleans.
|
|
931
999
|
*/
|
|
932
1000
|
declare function formDataToObject(formData: FormData, options?: FormDataOptions): Record<string, unknown>;
|
|
1001
|
+
type DateInput = Date | string | number;
|
|
1002
|
+
interface FormatRelativeTimeOptions {
|
|
1003
|
+
/** BCP 47 locale tag. Defaults to user's locale via Intl defaults. */
|
|
1004
|
+
locale?: string;
|
|
1005
|
+
/** Intl.RelativeTimeFormat numeric option. Defaults to 'auto'. */
|
|
1006
|
+
numeric?: "auto" | "always";
|
|
1007
|
+
/** Reference time for "now". Defaults to `new Date()`. Useful for testing. */
|
|
1008
|
+
now?: Date;
|
|
1009
|
+
}
|
|
1010
|
+
declare function formatRelativeTime(date: DateInput, options?: FormatRelativeTimeOptions): string;
|
|
1011
|
+
interface RelativeTimeProps {
|
|
1012
|
+
/** The date to format. Accepts Date, ISO string, or epoch ms. */
|
|
1013
|
+
date: DateInput;
|
|
1014
|
+
/** BCP 47 locale tag. */
|
|
1015
|
+
locale?: string;
|
|
1016
|
+
/** Intl.RelativeTimeFormat numeric option. Defaults to 'auto'. */
|
|
1017
|
+
numeric?: "auto" | "always";
|
|
1018
|
+
/** Update interval in ms. Defaults to adaptive. */
|
|
1019
|
+
updateInterval?: number;
|
|
1020
|
+
/** CSS class name for the <time> element. */
|
|
1021
|
+
className?: string;
|
|
1022
|
+
/** Title attribute (shown on hover). Defaults to full formatted date. Set to false to disable. */
|
|
1023
|
+
title?: string | false;
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Auto-updating relative time component.
|
|
1027
|
+
* Renders a `<time>` element with the formatted relative time.
|
|
1028
|
+
* Uses `setTimeout` chains with adaptive intervals for live updates.
|
|
1029
|
+
* Timer starts in `onMount()` — safe for SSR (skipped on server).
|
|
1030
|
+
*/
|
|
1031
|
+
declare function RelativeTime({ date, locale, numeric, updateInterval, className, title }: RelativeTimeProps): HTMLTimeElement;
|
|
933
1032
|
/** A function returning a dynamic import of a component module. */
|
|
934
1033
|
type ComponentLoader = () => Promise<{
|
|
935
1034
|
default: ComponentFunction;
|
|
@@ -1072,6 +1171,16 @@ declare function invalidate<
|
|
|
1072
1171
|
T,
|
|
1073
1172
|
E
|
|
1074
1173
|
>(descriptor: QueryDescriptor<T, E>): void;
|
|
1174
|
+
/**
|
|
1175
|
+
* Invalidate all active queries targeting tenant-scoped entities.
|
|
1176
|
+
* Clears cached data first (no SWR stale window), then refetches.
|
|
1177
|
+
*
|
|
1178
|
+
* Called automatically by TenantProvider after switchTenant() succeeds.
|
|
1179
|
+
* Can also be called manually if needed.
|
|
1180
|
+
*
|
|
1181
|
+
* No-op during SSR.
|
|
1182
|
+
*/
|
|
1183
|
+
declare function invalidateTenantQueries(): void;
|
|
1075
1184
|
import { EntityQueryMeta as EntityQueryMeta2, QueryDescriptor as QueryDescriptor2 } from "@vertz/fetch";
|
|
1076
1185
|
/** Options for query(). */
|
|
1077
1186
|
interface QueryOptions<T> {
|
|
@@ -1079,8 +1188,6 @@ interface QueryOptions<T> {
|
|
|
1079
1188
|
initialData?: T;
|
|
1080
1189
|
/** Debounce re-fetches triggered by reactive dependency changes (ms). */
|
|
1081
1190
|
debounce?: number;
|
|
1082
|
-
/** When false, the query will not fetch. Defaults to true. */
|
|
1083
|
-
enabled?: boolean;
|
|
1084
1191
|
/** Explicit cache key. When omitted, derived from the thunk. */
|
|
1085
1192
|
key?: string;
|
|
1086
1193
|
/** Custom cache store. Defaults to a shared in-memory Map. */
|
|
@@ -1114,6 +1221,8 @@ interface QueryResult<
|
|
|
1114
1221
|
readonly revalidating: Unwrapped<ReadonlySignal<boolean>>;
|
|
1115
1222
|
/** The error from the latest failed fetch, or undefined. */
|
|
1116
1223
|
readonly error: Unwrapped<ReadonlySignal<E | undefined>>;
|
|
1224
|
+
/** True when the query has never fetched (thunk returned null or not yet run). */
|
|
1225
|
+
readonly idle: Unwrapped<ReadonlySignal<boolean>>;
|
|
1117
1226
|
/** Manually trigger a refetch (clears cache for this key). */
|
|
1118
1227
|
refetch: () => void;
|
|
1119
1228
|
/** Alias for refetch — revalidate the cached data. */
|
|
@@ -1135,36 +1244,11 @@ declare function query<
|
|
|
1135
1244
|
T,
|
|
1136
1245
|
E
|
|
1137
1246
|
>(descriptor: QueryDescriptor2<T, E>, options?: Omit<QueryOptions<T>, "key">): QueryResult<T, E>;
|
|
1138
|
-
declare function query<
|
|
1139
|
-
interface QueryMatchHandlers<
|
|
1140
|
-
T,
|
|
1141
|
-
E
|
|
1142
|
-
> {
|
|
1143
|
-
loading: () => Node | null;
|
|
1144
|
-
error: (error: E) => Node | null;
|
|
1145
|
-
data: (data: T) => Node | null;
|
|
1146
|
-
}
|
|
1147
|
-
/**
|
|
1148
|
-
* Pattern-match on a QueryResult's exclusive state.
|
|
1149
|
-
*
|
|
1150
|
-
* Returns a stable `<span style="display:contents">` wrapper that internally
|
|
1151
|
-
* manages branch switching (loading/error/data) via a reactive effect.
|
|
1152
|
-
* The same wrapper is returned for repeated calls with the same queryResult
|
|
1153
|
-
* (cached via WeakMap), enabling __child's stable-node optimization.
|
|
1154
|
-
*
|
|
1155
|
-
* Priority: loading → error → data.
|
|
1156
|
-
*
|
|
1157
|
-
* `loading` only fires on the initial load (no data yet).
|
|
1158
|
-
* When revalidating with existing data, the `data` handler receives the
|
|
1159
|
-
* current data. Access `query.revalidating` from the component scope for
|
|
1160
|
-
* revalidation state.
|
|
1161
|
-
*/
|
|
1162
|
-
declare function queryMatch<
|
|
1247
|
+
declare function query<
|
|
1163
1248
|
T,
|
|
1164
1249
|
E
|
|
1165
|
-
>(
|
|
1166
|
-
|
|
1167
|
-
};
|
|
1250
|
+
>(thunk: () => QueryDescriptor2<T, E> | null, options?: Omit<QueryOptions<T>, "key">): QueryResult<T, E>;
|
|
1251
|
+
declare function query<T>(thunk: () => Promise<T> | null, options?: QueryOptions<T>): QueryResult<T>;
|
|
1168
1252
|
/**
|
|
1169
1253
|
* Template literal type utility that extracts route parameter names from a path pattern.
|
|
1170
1254
|
*
|
|
@@ -1260,7 +1344,10 @@ interface RouteConfig<
|
|
|
1260
1344
|
signal: AbortSignal;
|
|
1261
1345
|
}) => Promise<TLoaderData> | TLoaderData;
|
|
1262
1346
|
/** Optional error component rendered when loader throws. */
|
|
1263
|
-
errorComponent?: (
|
|
1347
|
+
errorComponent?: (props: {
|
|
1348
|
+
error: Error;
|
|
1349
|
+
retry: () => void;
|
|
1350
|
+
}) => Node;
|
|
1264
1351
|
/** Optional path params schema for validation/parsing. */
|
|
1265
1352
|
params?: ParamSchema<TParams>;
|
|
1266
1353
|
/** Optional search params schema for validation/coercion. */
|
|
@@ -1298,7 +1385,10 @@ interface RouteConfigLike {
|
|
|
1298
1385
|
params: Record<string, string>;
|
|
1299
1386
|
signal: AbortSignal;
|
|
1300
1387
|
}): unknown;
|
|
1301
|
-
errorComponent?: (
|
|
1388
|
+
errorComponent?: (props: {
|
|
1389
|
+
error: Error;
|
|
1390
|
+
retry: () => void;
|
|
1391
|
+
}) => Node;
|
|
1302
1392
|
params?: ParamSchema<unknown>;
|
|
1303
1393
|
searchParams?: SearchParamSchema<unknown>;
|
|
1304
1394
|
children?: Record<string, RouteConfigLike>;
|
|
@@ -1332,7 +1422,10 @@ interface CompiledRoute {
|
|
|
1332
1422
|
params: Record<string, string>;
|
|
1333
1423
|
signal: AbortSignal;
|
|
1334
1424
|
}) => Promise<unknown> | unknown;
|
|
1335
|
-
errorComponent?:
|
|
1425
|
+
errorComponent?: (props: {
|
|
1426
|
+
error: Error;
|
|
1427
|
+
retry: () => void;
|
|
1428
|
+
}) => Node;
|
|
1336
1429
|
/** Optional path params schema for validation/parsing. */
|
|
1337
1430
|
params?: ParamSchema<unknown>;
|
|
1338
1431
|
searchParams?: RouteConfig["searchParams"];
|
|
@@ -1550,9 +1643,18 @@ declare function useRouter<T extends Record<string, RouteConfigLike> = RouteDefi
|
|
|
1550
1643
|
*/
|
|
1551
1644
|
declare function useParams<TPath extends string = string>(): ExtractParams<TPath>;
|
|
1552
1645
|
declare function useParams<T extends Record<string, unknown>>(): T;
|
|
1646
|
+
/** Error fallback component signature, reuses ErrorFallbackProps from DefaultErrorFallback. */
|
|
1647
|
+
type ErrorFallbackFn = (props: ErrorFallbackProps) => Node;
|
|
1553
1648
|
interface RouterViewProps {
|
|
1554
1649
|
router: Router;
|
|
1650
|
+
/** Rendered when no route matches (404). */
|
|
1555
1651
|
fallback?: () => Node;
|
|
1652
|
+
/**
|
|
1653
|
+
* Global error fallback for all routes. When set, every route component is
|
|
1654
|
+
* automatically wrapped in an ErrorBoundary using this fallback.
|
|
1655
|
+
* Per-route `errorComponent` takes precedence over this.
|
|
1656
|
+
*/
|
|
1657
|
+
errorFallback?: ErrorFallbackFn;
|
|
1556
1658
|
}
|
|
1557
1659
|
/**
|
|
1558
1660
|
* Renders the matched route's component inside a container div.
|
|
@@ -1565,7 +1667,7 @@ interface RouterViewProps {
|
|
|
1565
1667
|
* domEffect runs the component factory (to attach reactivity/event handlers)
|
|
1566
1668
|
* but skips clearing the container.
|
|
1567
1669
|
*/
|
|
1568
|
-
declare function RouterView({ router, fallback }: RouterViewProps): HTMLElement;
|
|
1670
|
+
declare function RouterView({ router, fallback, errorFallback }: RouterViewProps): HTMLElement;
|
|
1569
1671
|
/**
|
|
1570
1672
|
* Parse URLSearchParams into a typed object, optionally through a schema.
|
|
1571
1673
|
*
|
|
@@ -1591,6 +1693,12 @@ declare class DisposalScopeError extends Error {
|
|
|
1591
1693
|
constructor();
|
|
1592
1694
|
}
|
|
1593
1695
|
/**
|
|
1696
|
+
* Register a cleanup function with the current disposal scope.
|
|
1697
|
+
* Throws `DisposalScopeError` if no scope is active — fail-fast
|
|
1698
|
+
* so developers know their cleanup callback was not registered.
|
|
1699
|
+
*/
|
|
1700
|
+
declare function onCleanup(fn: DisposeFn): void;
|
|
1701
|
+
/**
|
|
1594
1702
|
* Group multiple signal writes into a single update flush.
|
|
1595
1703
|
* Nested batches are supported — only the outermost batch triggers the flush.
|
|
1596
1704
|
*/
|
|
@@ -1830,6 +1938,7 @@ declare class QueryEnvelopeStore {
|
|
|
1830
1938
|
private _envelopes;
|
|
1831
1939
|
get(queryKey: string): QueryEnvelope | undefined;
|
|
1832
1940
|
set(queryKey: string, envelope: QueryEnvelope): void;
|
|
1941
|
+
delete(queryKey: string): void;
|
|
1833
1942
|
clear(): void;
|
|
1834
1943
|
}
|
|
1835
1944
|
/** Get the global EntityStore singleton. */
|
|
@@ -1954,4 +2063,4 @@ interface RegisterThemeInput {
|
|
|
1954
2063
|
* ```
|
|
1955
2064
|
*/
|
|
1956
2065
|
declare function registerTheme(resolved: RegisterThemeInput): void;
|
|
1957
|
-
export { zoomOut, zoomIn, variants, validate, useSearchParams, useRouter, useParams, useDialogStack, useContext, untrack, slideOutToTop, slideOutToRight, slideOutToLeft, slideOutToBottom, slideInFromTop, slideInFromRight, slideInFromLeft, slideInFromBottom, signal, setAdapter, s, resolveChildren, resetRelationSchemas_TEST_ONLY, resetInjectedStyles, registerTheme, registerRelationSchema, ref,
|
|
2066
|
+
export { zoomOut, zoomIn, variants, validate, useSearchParams, useRouter, useParams, useDialogStack, useDialog, useContext, untrack, slideOutToTop, slideOutToRight, slideOutToLeft, slideOutToBottom, slideInFromTop, slideInFromRight, slideInFromLeft, slideInFromBottom, signal, setAdapter, s, resolveChildren, resetRelationSchemas_TEST_ONLY, resetInjectedStyles, registerTheme, registerRelationSchema, ref, query, parseSearchParams, palettes, onMount2 as onMount, onCleanup, onAnimationsComplete, mount, keyframes, isRenderNode, isQueryDescriptor, isBrowser, invalidateTenantQueries, invalidate, injectCSS, hydrateIslands, hydrate, globalCss, getRelationSchema, getQueryEnvelopeStore, getInjectedCSS, getEntityStore, getAdapter, formatRelativeTime, formDataToObject, form, font, fadeOut, fadeIn, defineTheme, defineRoutes, css, createTestStore, createRouter, createOptimisticHandler, createLink, createFieldState, createDialogStack, createDOMAdapter, createContext, configureImageOptimizer, computed, compileTheme, compileFonts, children, buildOptimizedUrl, batch, accordionUp, accordionDown, __staticText, __exitChildren, __enterChildren, __element, __append, VariantsConfig, VariantProps, VariantFunction, ValidationResult, UnwrapSignals, TypedRoutes, TypedRouter, ThemeProviderProps, ThemeProvider, ThemeInput, Theme, SuspenseProps, Suspense, StyleValue, StyleEntry, Signal, SerializedStore, SearchParamSchema, SdkMethodWithMeta, SdkMethod, RouterViewProps, RouterView, RouterOptions, RouterContext, Router, RoutePattern, RoutePaths, RouteMatch, RouteDefinitionMap, RouteConfig, RenderText, RenderNode, RenderElement, RenderAdapter, RelativeTimeProps, RelativeTime, RelationSchema, RelationFieldDef, RegisterThemeInput, Ref, ReadonlySignal, RENDER_NODE_BRAND, QueryResult, QueryOptions, QueryEnvelopeStore, QueryEnvelope, QueryDescriptor3 as QueryDescriptor, PresenceProps, Presence, PreloadItem, PathWithParams, ParamSchema, OutletContextValue, OutletContext, Outlet, NavigateOptions, NavigateInput, MountOptions, MountHandle, MergeSelectOptions, MatchedRoute, LoaderData, ListAnimationHooks, ListAnimationContext, LinkProps, LinkFactoryOptions, Link, IslandRegistry, IslandProps, Island, InferRouteMap, ImageProps, Image, GlobalCSSOutput, GlobalCSSInput, FormatRelativeTimeOptions, FormSchema, FormOptions, FormInstance, FormDataOptions, ForeignProps, Foreign, FontSrc, FontOptions, FontFallbackMetrics, FontDescriptor, FieldState, FieldSelectionTracker, FallbackFontName, ExtractParams, ErrorFallbackProps, ErrorBoundaryProps, ErrorBoundary, EntityStoreOptions, EntityStore, DisposeFn, DisposalScopeError, DialogStackProvider, DialogStackContext, DialogStack, DialogResult, DialogOpenOptions, DialogIdContext, DialogHandleContext, DialogHandle, DialogComponent, DefaultErrorFallback, DateInput, Context, ConfirmOptions, Computed, ComponentRegistry, ComponentLoader, ComponentFunction, CompiledTheme, CompiledRoute, CompiledFonts, CompileThemeOptions, CompileFontsOptions, ColorPalette, ChildrenAccessor, ChildValue, CacheStore, CSSOutput, CSSInput, ANIMATION_EASING, ANIMATION_DURATION };
|