@askrjs/askr 0.0.71 → 0.0.73

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 (38) hide show
  1. package/dist/actions/index.d.ts +1 -1
  2. package/dist/{activity-DZ-NCYr8.d.ts → activity-CaeDxh-g.d.ts} +1 -1
  3. package/dist/{authoring-CXmUcaCe.js → authoring-BJ1KGHmR.js} +1 -1
  4. package/dist/benchmark.d.ts +1 -1
  5. package/dist/benchmark.js +3 -3
  6. package/dist/boot/index.d.ts +2 -2
  7. package/dist/boot/index.js +1 -1
  8. package/dist/{boot-DIKbEA4Y.js → boot-C-cc9kcY.js} +3 -3
  9. package/dist/{deferred-Cr58yIQD.js → deferred-1BRV2Fso.js} +8 -1
  10. package/dist/foundations/icon/index.d.ts +1 -1
  11. package/dist/foundations/index.d.ts +1 -1
  12. package/dist/foundations/structures/index.d.ts +1 -1
  13. package/dist/{index-u3KYoHlM.d.ts → index-5TeJ46BR.d.ts} +1 -1
  14. package/dist/{index-BOBtoY_r.d.ts → index-BHQmliBq.d.ts} +1 -1
  15. package/dist/{index-DxYJPVC4.d.ts → index-DSyleBRD.d.ts} +1 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/jsx-dev-runtime.d.ts +3 -2
  18. package/dist/jsx-runtime-C-oIHX9X.d.ts +2 -0
  19. package/dist/{jsx-runtime-CL2r2HHQ.d.ts → jsx-runtime-Cr1jspx9.d.ts} +3 -2
  20. package/dist/jsx-runtime.d.ts +1 -1
  21. package/dist/{navigate-CuGQzS_Y.js → navigate-BScgmpZP.js} +1 -1
  22. package/dist/{navigate-Cbq6QHVl.d.ts → navigate-CPpT8BpL.d.ts} +1 -1
  23. package/dist/resources/index.d.ts +2 -2
  24. package/dist/router/index.d.ts +4 -4
  25. package/dist/router/index.js +3 -3
  26. package/dist/{router-C3vENhUh.d.ts → router-wmx6Uher.d.ts} +1 -1
  27. package/dist/ssg/index.d.ts +1 -1
  28. package/dist/ssg/index.js +4 -3
  29. package/dist/ssr/index.d.ts +1 -1
  30. package/dist/ssr/index.js +1 -1
  31. package/dist/{ssr-BSUA9Y64.js → ssr-B6pCWgdY.js} +2 -2
  32. package/dist/testing/index.d.ts +1 -1
  33. package/dist/testing/index.js +1 -1
  34. package/dist/types-C9YcqVpk.d.ts +16 -0
  35. package/dist/{verify-hydration-CVSGv6Vs.js → verify-hydration-DxOs5H_6.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/jsx-runtime-C6Fs8Mmc.d.ts +0 -2
  38. package/dist/types-DEhT-Nrv.d.ts +0 -63
@@ -1,2 +1,2 @@
1
- import { a as action, i as ActionValidationError, n as ActionForm, o as defineAction, r as ActionStatus, t as ActionDescriptor } from "../index-DxYJPVC4.js";
1
+ import { a as action, i as ActionValidationError, n as ActionForm, o as defineAction, r as ActionStatus, t as ActionDescriptor } from "../index-DSyleBRD.js";
2
2
  export { ActionDescriptor, ActionForm, ActionStatus, ActionValidationError, action, defineAction };
@@ -1,4 +1,4 @@
1
- import { B as RouteSnapshot, E as RouteParams } from "./router-C3vENhUh.js";
1
+ import { B as RouteSnapshot, E as RouteParams } from "./router-wmx6Uher.js";
2
2
  //#region src/router/activity.d.ts
3
3
  interface RouteChangeOptions {
4
4
  immediate?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
2
- import { T as getExecutionModel, x as createRouteHandler } from "./deferred-Cr58yIQD.js";
2
+ import { E as getExecutionModel, x as createRouteHandler } from "./deferred-1BRV2Fso.js";
3
3
  import { A as insertRecordSorted, C as getCurrentPathPrefix, I as computeRank, L as normalizeRouteSegmentName, M as pushRegistrationScope, O as hasActivePageScope, R as parseSegments, S as getCurrentPageScope, _ as getCurrentInheritedAuthRequirements, b as getCurrentLayoutChain, f as addRouteToStores, p as assertRouteRegistrationUnlocked, v as getCurrentInheritedMeta, w as getCurrentScopeKind, x as getCurrentPageChain, y as getCurrentInheritedPolicies } from "./route-matching-M-f1VQRu.js";
4
4
  import { allOf } from "@askrjs/auth";
5
5
  //#region src/router/access.ts
@@ -1,4 +1,4 @@
1
- import "./jsx-runtime-C6Fs8Mmc.js";
1
+ import "./jsx-runtime-C-oIHX9X.js";
2
2
  //#region src/bench/components/benchmark-row.d.ts
3
3
  interface BenchmarkRowData {
4
4
  id: number;
package/dist/benchmark.js CHANGED
@@ -4,7 +4,7 @@ import { t as state } from "./state-CVuQVjvK.js";
4
4
  import { t as selector } from "./selector-DEfqO1rA.js";
5
5
  import { jsx, jsxs } from "./jsx-runtime.js";
6
6
  import { i as For } from "./control-DVRBkN2X.js";
7
- import { t as createIsland } from "./boot-DIKbEA4Y.js";
7
+ import { t as createIsland } from "./boot-C-cc9kcY.js";
8
8
  //#region src/bench/components/benchmark-row.tsx
9
9
  function BenchmarkRow({ item, isSelected, onSelect, onRemove }) {
10
10
  return /* @__PURE__ */ jsxs("tr", {
@@ -63,8 +63,8 @@ function BenchmarkTable({ rows, isSelected, onSelect, onRemove }) {
63
63
  installRendererBridge();
64
64
  const benchmarkMetadata = {
65
65
  packageName: "@askrjs/askr",
66
- packageVersion: "0.0.71",
67
- buildLabel: "0.0.71-local"
66
+ packageVersion: "0.0.73",
67
+ buildLabel: "0.0.73-local"
68
68
  };
69
69
  function getBenchmarkMetadata() {
70
70
  return { ...benchmarkMetadata };
@@ -1,7 +1,7 @@
1
1
  import { s as ComponentFunction } from "../control-DO-iBEtV.js";
2
2
  import { v as DataRuntime } from "../index-Bki2rqcr.js";
3
- import { N as RouteRegistry, p as RouteAuthOptions } from "../router-C3vENhUh.js";
4
- import { a as ScrollRestorationOptions } from "../navigate-Cbq6QHVl.js";
3
+ import { N as RouteRegistry, p as RouteAuthOptions } from "../router-wmx6Uher.js";
4
+ import { a as ScrollRestorationOptions } from "../navigate-CPpT8BpL.js";
5
5
  //#region src/boot/types.d.ts
6
6
  type IslandConfig = {
7
7
  root: Element | string;
@@ -1,2 +1,2 @@
1
- import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-DIKbEA4Y.js";
1
+ import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-C-cc9kcY.js";
2
2
  export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
@@ -5,7 +5,7 @@ import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
5
5
  import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
6
6
  import { a as withIntrinsicHydrationAdoption, c as beginHydrationListenerTransaction, d as setStaticChildSlotsCacheEnabled, i as registerDeferredHydrationBoundary, l as commitHydrationListenerTransaction, n as activateHydrationBoundary$1, o as beginHydrationDirectListenerMode, r as clearDeferredHydrationBoundaries, s as endHydrationDirectListenerMode, t as installRendererBridge, u as discardHydrationListenerTransaction } from "./renderer-BJYY2Y8s.js";
7
7
  import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-D8Ufd9Ix.js";
8
- import { c as _applyManifest, d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, o as reviveDeferredValue, p as hasRouteRenderData, v as pageRenderEnvelope, w as assertExecutionModel } from "./deferred-Cr58yIQD.js";
8
+ import { T as assertExecutionModel, c as _applyManifest, d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, o as reviveDeferredValue, p as hasRouteRenderData, v as pageRenderEnvelope } from "./deferred-1BRV2Fso.js";
9
9
  import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
10
10
  import { d as _setActiveRouteAuthOptions, j as lockRouteRegistration, k as hasRegisteredRoutes, m as clearRouteState } from "./route-matching-M-f1VQRu.js";
11
11
  import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-wY3j0vvp.js";
@@ -13,7 +13,7 @@ import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.
13
13
  import { i as getDefaultDataRuntime } from "./data-runtime-rpV6-3XW.js";
14
14
  import { a as hydrateDataRuntime } from "./query-registry-Bu_cuMch.js";
15
15
  import { o as createAppRenderRuntime, r as setServerLocation } from "./activity-C2tPn9Fr.js";
16
- import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-CuGQzS_Y.js";
16
+ import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-BScgmpZP.js";
17
17
  import "./ssr-CbQO5xd3.js";
18
18
  //#region src/boot/hydration.ts
19
19
  const DEFERRED_PAYLOAD = "__askr_deferred__";
@@ -585,7 +585,7 @@ async function hydrateSPA(config) {
585
585
  cspNonce: config.cspNonce
586
586
  }));
587
587
  if (shouldVerifyHydrationMarkup(config)) {
588
- const { verifyHydrationSyncForUrl } = await import("./verify-hydration-CVSGv6Vs.js");
588
+ const { verifyHydrationSyncForUrl } = await import("./verify-hydration-DxOs5H_6.js");
589
589
  if (!verifyHydrationSyncForUrl({
590
590
  root: rootElement,
591
591
  url: currentUrl,
@@ -66,6 +66,13 @@ function _preloadRouteRecord(record) {
66
66
  function _associateLazyHandler(handler, components) {
67
67
  handlerLazyComponents.set(handler, components);
68
68
  }
69
+ function _preloadRouteHandler(handler) {
70
+ const imports = (handlerLazyComponents.get(handler) ?? []).flatMap((component) => {
71
+ const state = lazyStates.get(component);
72
+ return state ? [startLazyLoad(state)] : [];
73
+ });
74
+ return imports.length > 0 ? Promise.all(imports).then(() => void 0) : null;
75
+ }
69
76
  //#endregion
70
77
  //#region src/router/rendering.ts
71
78
  const outletScope = defineScope(null);
@@ -492,4 +499,4 @@ function Resolve(props) {
492
499
  return props.children(result.value);
493
500
  }
494
501
  //#endregion
495
- export { lazy as C, getRenderHandler as S, getExecutionModel as T, isPageRenderEnvelope as _, resolveDeferredValues as a, Outlet as b, _applyManifest as c, getRouteRenderContext as d, getRouteRenderData as f, isEmptyPageRenderEnvelope as g, createPageRenderEnvelope as h, isDeferred as i, createRouteRegistry as l, resolveRouteRequest as m, Resolve as n, reviveDeferredValue as o, hasRouteRenderData as p, defer as r, routeData as s, DEFERRED_BOUNDARY as t, bindResolvedRouteData as u, pageRenderEnvelope as v, assertExecutionModel as w, createRouteHandler as x, currentAuth as y };
502
+ export { _preloadRouteHandler as C, getExecutionModel as E, getRenderHandler as S, assertExecutionModel as T, isPageRenderEnvelope as _, resolveDeferredValues as a, Outlet as b, _applyManifest as c, getRouteRenderContext as d, getRouteRenderData as f, isEmptyPageRenderEnvelope as g, createPageRenderEnvelope as h, isDeferred as i, createRouteRegistry as l, resolveRouteRequest as m, Resolve as n, reviveDeferredValue as o, hasRouteRenderData as p, defer as r, routeData as s, DEFERRED_BOUNDARY as t, bindResolvedRouteData as u, pageRenderEnvelope as v, lazy as w, createRouteHandler as x, currentAuth as y };
@@ -1,5 +1,5 @@
1
1
  import { r as JSXElement, s as Props } from "../../jsx-Dvr2SGRG.js";
2
- import "../../types-DEhT-Nrv.js";
2
+ import "../../types-C9YcqVpk.js";
3
3
  import { t as Ref } from "../../compose-ref-Cizq72-x.js";
4
4
  //#region src/foundations/icon/icon.types.d.ts
5
5
  type IconSizeToken = 'sm' | 'md' | 'lg' | 'xl';
@@ -1,3 +1,3 @@
1
1
  import { r as JSXElement } from "../jsx-Dvr2SGRG.js";
2
- import { _ as definePortal, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, l as PresenceProps, m as DefaultPortal, p as layout, u as Slot } from "../index-u3KYoHlM.js";
2
+ import { _ as definePortal, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, l as PresenceProps, m as DefaultPortal, p as layout, u as Slot } from "../index-5TeJ46BR.js";
3
3
  export { DefaultPortal, type JSXElement, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, definePortal, layout };
@@ -1,3 +1,3 @@
1
1
  import { r as JSXElement } from "../../jsx-Dvr2SGRG.js";
2
- import { _ as definePortal, a as Collection, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, i as createLayer, l as PresenceProps, m as DefaultPortal, n as LayerManager, o as CollectionItem, p as layout, r as LayerOptions, s as createCollection, t as Layer, u as Slot } from "../../index-u3KYoHlM.js";
2
+ import { _ as definePortal, a as Collection, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, i as createLayer, l as PresenceProps, m as DefaultPortal, n as LayerManager, o as CollectionItem, p as layout, r as LayerOptions, s as createCollection, t as Layer, u as Slot } from "../../index-5TeJ46BR.js";
3
3
  export { type Collection, type CollectionItem, DefaultPortal, type JSXElement, type Layer, type LayerManager, type LayerOptions, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, createCollection, createLayer, definePortal, layout };
@@ -1,6 +1,6 @@
1
1
  import { c as RenderableChild } from "./control-DO-iBEtV.js";
2
2
  import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
3
- import "./types-DEhT-Nrv.js";
3
+ import "./types-C9YcqVpk.js";
4
4
  //#region src/runtime/portal.d.ts
5
5
  interface Portal<T extends RenderableChild = RenderableChild> {
6
6
  (): T | JSXElement | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import { i as Scope, n as ReadableSource, r as ComponentInstance } from "./control-DO-iBEtV.js";
2
2
  import { t as Scheduler } from "./scheduler-CmLO4Dfm.js";
3
- import "./jsx-runtime-C6Fs8Mmc.js";
3
+ import "./jsx-runtime-C-oIHX9X.js";
4
4
  //#region src/runtime/component-scope.d.ts
5
5
  /**
6
6
  * Get the abort signal for the current component.
@@ -1,6 +1,6 @@
1
1
  import { c as RenderableChild, g as StateTuple } from "./control-DO-iBEtV.js";
2
2
  import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
3
- import "./index-BOBtoY_r.js";
3
+ import "./index-BHQmliBq.js";
4
4
  import { ObjectSchema } from "@askrjs/schema";
5
5
  //#region src/actions/index.d.ts
6
6
  interface ActionDescriptor<TInput extends Record<string, unknown> = Record<string, unknown>> {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as state, a as defineScope, g as StateTuple, h as StateSetter, i as Scope, m as State, o as readScope } from "./control-DO-iBEtV.js";
2
2
  import { s as Props, t as Fragment } from "./jsx-Dvr2SGRG.js";
3
- import { a as Selector, c as derive, d as RuntimeKeyedReorderDecision, f as RuntimeRendererHost, h as getSignal, i as cspNonce, l as AskrRuntime, m as getDefaultRuntime, n as createRef, o as selector, p as createRuntime, r as CspNonceScope, s as Derived, t as Ref, u as AskrRuntimeOptions } from "./index-BOBtoY_r.js";
3
+ import { a as Selector, c as derive, d as RuntimeKeyedReorderDecision, f as RuntimeRendererHost, h as getSignal, i as cspNonce, l as AskrRuntime, m as getDefaultRuntime, n as createRef, o as selector, p as createRuntime, r as CspNonceScope, s as Derived, t as Ref, u as AskrRuntimeOptions } from "./index-BHQmliBq.js";
4
4
  import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "./index-UmwPZ8ZN.js";
5
- import { i as jsxs, n as jsx } from "./jsx-runtime-CL2r2HHQ.js";
5
+ import { i as jsxs, n as jsx } from "./jsx-runtime-Cr1jspx9.js";
6
6
  import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, g as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-Bki2rqcr.js";
7
7
  export { AskrRuntime, type AskrRuntimeOptions, Case, type CaseProps, CspNonceScope, type DataRuntime, type Derived, For, type ForProps, Fragment, Match, type MatchProps, type Props, type QueryDefinition, type QueryPrefetchContext, type Ref, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, createQuery, createRef, createRuntime, cspNonce, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, selector, serveQuery, state };
@@ -1,13 +1,14 @@
1
1
  import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./jsx-Dvr2SGRG.js";
2
2
  import { t as EagerControlPrimitive } from "./control-BjYBlytA.js";
3
- import "./types-DEhT-Nrv.js";
3
+ import "./types-C9YcqVpk.js";
4
4
  //#region src/jsx/jsx-dev-runtime.d.ts
5
5
  declare namespace JSX {
6
6
  type ElementType = string | symbol | ((props: never) => unknown);
7
7
  interface Element extends JSXElement {
8
8
  readonly __askrJsxElementBrand?: never;
9
9
  }
10
- interface IntrinsicElements extends KnownIntrinsicElementProps {
10
+ interface KnownIntrinsicElements extends KnownIntrinsicElementProps {}
11
+ interface IntrinsicElements extends KnownIntrinsicElements {
11
12
  [elem: string]: IntrinsicFallbackProps | KnownIntrinsicElementProps[keyof KnownIntrinsicElementProps];
12
13
  }
13
14
  interface ElementAttributesProperty {
@@ -0,0 +1,2 @@
1
+ import "./types-C9YcqVpk.js";
2
+ import "./jsx-runtime-Cr1jspx9.js";
@@ -1,13 +1,14 @@
1
1
  import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-Dvr2SGRG.js";
2
2
  import { t as EagerControlPrimitive } from "./control-BjYBlytA.js";
3
- import "./types-DEhT-Nrv.js";
3
+ import "./types-C9YcqVpk.js";
4
4
  //#region src/jsx/jsx-runtime.d.ts
5
5
  declare namespace JSX {
6
6
  type ElementType = string | symbol | ((props: never) => unknown);
7
7
  interface Element extends JSXElement {
8
8
  readonly __askrJsxElementBrand?: never;
9
9
  }
10
- interface IntrinsicElements extends KnownIntrinsicElementProps {
10
+ interface KnownIntrinsicElements extends KnownIntrinsicElementProps {}
11
+ interface IntrinsicElements extends KnownIntrinsicElements {
11
12
  [elem: string]: IntrinsicFallbackProps | KnownIntrinsicElementProps[keyof KnownIntrinsicElementProps];
12
13
  }
13
14
  interface ElementAttributesProperty {
@@ -1,3 +1,3 @@
1
1
  import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./jsx-Dvr2SGRG.js";
2
- import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-CL2r2HHQ.js";
2
+ import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-Cr1jspx9.js";
3
3
  export { Fragment, JSX, type JSXComponent, type JSXElement, type JSXElementType, jsx, jsxDEV, jsxs };
@@ -5,7 +5,7 @@ import { t as cleanupReadableSubscriptionSources } from "./readable-BYSoWJSv.js"
5
5
  import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
6
6
  import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-COgl8jMS.js";
7
7
  import { _ as teardownNodeSubtree } from "./cleanup-D8Ufd9Ix.js";
8
- import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-Cr58yIQD.js";
8
+ import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-1BRV2Fso.js";
9
9
  import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-M-f1VQRu.js";
10
10
  import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-wY3j0vvp.js";
11
11
  import { t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
@@ -1,4 +1,4 @@
1
- import "./router-C3vENhUh.js";
1
+ import "./router-wmx6Uher.js";
2
2
  //#region src/router/navigation-scroll.d.ts
3
3
  type NavigationScrollBehavior = 'top' | 'preserve';
4
4
  type HistoryScrollBehavior = 'restore' | 'top' | 'preserve';
@@ -1,5 +1,5 @@
1
- import { h as getSignal } from "../index-BOBtoY_r.js";
2
- import { i as onRouteChange, n as RouteChangeOptions, t as RouteChangeCleanup } from "../activity-DZ-NCYr8.js";
1
+ import { h as getSignal } from "../index-BHQmliBq.js";
2
+ import { i as onRouteChange, n as RouteChangeOptions, t as RouteChangeCleanup } from "../activity-CaeDxh-g.js";
3
3
  //#region src/runtime/resource-operation.d.ts
4
4
  interface ResourceResult<T> {
5
5
  value: T | null;
@@ -1,9 +1,9 @@
1
1
  import { c as RenderableChild } from "../control-DO-iBEtV.js";
2
2
  import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
3
- import "../types-DEhT-Nrv.js";
4
- import { A as RouteRecord, B as RouteSnapshot, C as RouteMetaSource, D as RoutePathParams, E as RouteParams, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRefSearch, N as RouteRegistry, O as RoutePolicy, P as RouteRegistryOptions, R as RouteSearch, S as RouteMeta, T as RouteOptions, _ as RouteDefinition, a as AccessRedirectDecision, b as RouteManifest, c as LayoutScopeRecord, d as ParsedSegment, f as Route, g as RouteContext, h as RouteComponent, i as AccessDenyStatus, j as RouteRef, k as RouteQuery, l as PageHelperOptions, m as RouteAuthResolver, n as AccessDecision, o as AccessRedirectStatus, p as RouteAuthOptions, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDestination, w as RouteMode, x as RouteMatch, y as RouteHandler, z as RouteSearchValue } from "../router-C3vENhUh.js";
5
- import { a as ScrollRestorationOptions, i as NavigationScrollBehavior, n as NavigateOptions, r as HistoryScrollBehavior, t as navigate } from "../navigate-Cbq6QHVl.js";
6
- import { i as onRouteChange, n as RouteChangeOptions, r as currentRoute, t as RouteChangeCleanup } from "../activity-DZ-NCYr8.js";
3
+ import "../types-C9YcqVpk.js";
4
+ import { A as RouteRecord, B as RouteSnapshot, C as RouteMetaSource, D as RoutePathParams, E as RouteParams, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRefSearch, N as RouteRegistry, O as RoutePolicy, P as RouteRegistryOptions, R as RouteSearch, S as RouteMeta, T as RouteOptions, _ as RouteDefinition, a as AccessRedirectDecision, b as RouteManifest, c as LayoutScopeRecord, d as ParsedSegment, f as Route, g as RouteContext, h as RouteComponent, i as AccessDenyStatus, j as RouteRef, k as RouteQuery, l as PageHelperOptions, m as RouteAuthResolver, n as AccessDecision, o as AccessRedirectStatus, p as RouteAuthOptions, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDestination, w as RouteMode, x as RouteMatch, y as RouteHandler, z as RouteSearchValue } from "../router-wmx6Uher.js";
5
+ import { a as ScrollRestorationOptions, i as NavigationScrollBehavior, n as NavigateOptions, r as HistoryScrollBehavior, t as navigate } from "../navigate-CPpT8BpL.js";
6
+ import { i as onRouteChange, n as RouteChangeOptions, r as currentRoute, t as RouteChangeCleanup } from "../activity-CaeDxh-g.js";
7
7
  import { AuthContext, AuthContext as AuthContext$1, AuthRequirement, AuthRequirement as AuthRequirement$1 } from "@askrjs/auth";
8
8
  import { ObjectSchema } from "@askrjs/schema";
9
9
  //#region src/router/route-query.d.ts
@@ -1,9 +1,9 @@
1
- import { C as lazy, a as resolveDeferredValues, b as Outlet, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, n as Resolve, r as defer, s as routeData, y as currentAuth } from "../deferred-Cr58yIQD.js";
1
+ import { a as resolveDeferredValues, b as Outlet, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, n as Resolve, r as defer, s as routeData, w as lazy, y as currentAuth } from "../deferred-1BRV2Fso.js";
2
2
  import { jsx } from "../jsx-runtime.js";
3
3
  import { a as isSafeHref } from "../csp-nonce-CwSRP3Jl.js";
4
- import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-CXmUcaCe.js";
4
+ import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-BJ1KGHmR.js";
5
5
  import { n as onRouteChange, t as currentRoute } from "../activity-C2tPn9Fr.js";
6
- import { a as serializeRouteMeta, c as getCurrentHref, d as parseTargetUrl, h as syncRegisteredRouteSnapshot, i as resolveRouteMeta, l as getRegisteredAppsSnapshot, m as syncAppRegistrationLocation, n as navigate, p as setCurrentRouteLocation, r as reconcileRouteMeta, s as saveScrollPosition, u as getWindowHref } from "../navigate-CuGQzS_Y.js";
6
+ import { a as serializeRouteMeta, c as getCurrentHref, d as parseTargetUrl, h as syncRegisteredRouteSnapshot, i as resolveRouteMeta, l as getRegisteredAppsSnapshot, m as syncAppRegistrationLocation, n as navigate, p as setCurrentRouteLocation, r as reconcileRouteMeta, s as saveScrollPosition, u as getWindowHref } from "../navigate-BScgmpZP.js";
7
7
  import { o as mergeProps } from "../compose-ref-Cc_YkUpM.js";
8
8
  import { t as applyInteractionPolicy } from "../interactions-w7gQN4ha.js";
9
9
  //#region src/router/route-query.ts
@@ -1,6 +1,6 @@
1
1
  import { c as RenderableChild } from "./control-DO-iBEtV.js";
2
2
  import { D as QueryPrefetchContext, u as CoreTelemetry } from "./index-Bki2rqcr.js";
3
- import { t as ActionDescriptor } from "./index-DxYJPVC4.js";
3
+ import { t as ActionDescriptor } from "./index-DSyleBRD.js";
4
4
  import { AuthContext, AuthRequirement } from "@askrjs/auth";
5
5
  import { InferSchema, ObjectSchema } from "@askrjs/schema";
6
6
  //#region src/common/router.d.ts
@@ -1,5 +1,5 @@
1
1
  import { d as DocumentRenderContext, f as DocumentRenderer, u as DocumentRenderArgs } from "../control-DO-iBEtV.js";
2
- import { D as RoutePathParams, N as RouteRegistry, O as RoutePolicy, T as RouteOptions, y as RouteHandler } from "../router-C3vENhUh.js";
2
+ import { D as RoutePathParams, N as RouteRegistry, O as RoutePolicy, T as RouteOptions, y as RouteHandler } from "../router-wmx6Uher.js";
3
3
  import { AuthRequirement } from "@askrjs/auth";
4
4
  import "node:fs/promises";
5
5
  //#region src/ssg/types.d.ts
package/dist/ssg/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "../access-ePqdQqkV.js";
2
- import { S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-Cr58yIQD.js";
3
- import { a as route } from "../authoring-CXmUcaCe.js";
2
+ import { C as _preloadRouteHandler, S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-1BRV2Fso.js";
3
+ import { a as route } from "../authoring-BJ1KGHmR.js";
4
4
  import { n as renderDocument } from "../ssr-CbQO5xd3.js";
5
- import { n as renderToString } from "../ssr-BSUA9Y64.js";
5
+ import { n as renderToString } from "../ssr-B6pCWgdY.js";
6
6
  import * as fs from "node:fs/promises";
7
7
  import * as pathModule from "node:path";
8
8
  import * as os from "node:os";
@@ -159,6 +159,7 @@ async function batchRenderRoutes(routes, options = {}) {
159
159
  const mergedHandler = route$2.handler;
160
160
  let phase = route$2.loader ? "load" : "render";
161
161
  try {
162
+ await _preloadRouteHandler(mergedHandler);
162
163
  let routeData;
163
164
  let hasRouteData = false;
164
165
  if (route$2.loader) {
@@ -1,7 +1,7 @@
1
1
  import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-DO-iBEtV.js";
2
2
  import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
3
3
  import { D as QueryPrefetchContext, n as ServerQueryRegistry, u as CoreTelemetry, v as DataRuntime } from "../index-Bki2rqcr.js";
4
- import { A as RouteRecord, L as RouteRequestResult, N as RouteRegistry, a as AccessRedirectDecision, f as Route, p as RouteAuthOptions, r as AccessDenyDecision, y as RouteHandler } from "../router-C3vENhUh.js";
4
+ import { A as RouteRecord, L as RouteRequestResult, N as RouteRegistry, a as AccessRedirectDecision, f as Route, p as RouteAuthOptions, r as AccessDenyDecision, y as RouteHandler } from "../router-wmx6Uher.js";
5
5
  import { AuthContext } from "@askrjs/auth";
6
6
  //#region src/common/page-render-envelope.d.ts
7
7
  declare const PAGE_RENDER_ENVELOPE_VERSION: 1;
package/dist/ssr/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { u as SSRDataMissingError } from "../render-context-Clw3rFiO.js";
2
- import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-BSUA9Y64.js";
2
+ import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-B6pCWgdY.js";
3
3
  export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
@@ -7,7 +7,7 @@ import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } fr
7
7
  import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
8
8
  import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
9
9
  import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-BtK9Htl0.js";
10
- import { _ as isPageRenderEnvelope, g as isEmptyPageRenderEnvelope, h as createPageRenderEnvelope, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, t as DEFERRED_BOUNDARY } from "./deferred-Cr58yIQD.js";
10
+ import { _ as isPageRenderEnvelope, g as isEmptyPageRenderEnvelope, h as createPageRenderEnvelope, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, t as DEFERRED_BOUNDARY } from "./deferred-1BRV2Fso.js";
11
11
  import { c as stopRenderPhase$1, o as startRenderPhase$1, t as configureRenderContextProvider, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
12
12
  import { a as resolveRouteFromRoutes, t as _resolveRouteMatchFromRoutes } from "./route-matching-M-f1VQRu.js";
13
13
  import { a as disposeDefaultPortalScope, o as SSR_PORTAL_HOST, t as DefaultPortal } from "./portal-wY3j0vvp.js";
@@ -15,7 +15,7 @@ import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTO
15
15
  import { a as isSafeHref, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
16
16
  import { t as createDataRuntime } from "./data-runtime-rpV6-3XW.js";
17
17
  import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-Bu_cuMch.js";
18
- import { a as route } from "./authoring-CXmUcaCe.js";
18
+ import { a as route } from "./authoring-BJ1KGHmR.js";
19
19
  import { n as renderDocument, t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
20
20
  //#region src/ssr/escape.ts
21
21
  /**
@@ -1,6 +1,6 @@
1
1
  import { s as ComponentFunction } from "../control-DO-iBEtV.js";
2
2
  import { C as Query, k as QueryStaleReason } from "../index-Bki2rqcr.js";
3
- import { N as RouteRegistry, p as RouteAuthOptions, x as RouteMatch } from "../router-C3vENhUh.js";
3
+ import { N as RouteRegistry, p as RouteAuthOptions, x as RouteMatch } from "../router-wmx6Uher.js";
4
4
  //#region src/testing/render.d.ts
5
5
  interface RenderOptions {
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { r as flushRuntimeScheduler } from "../access-ePqdQqkV.js";
2
2
  import { r as computeRouteActivityMatches } from "../route-matching-M-f1VQRu.js";
3
3
  import { l as addInvalidationListener } from "../data-runtime-rpV6-3XW.js";
4
- import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-DIKbEA4Y.js";
4
+ import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-C-cc9kcY.js";
5
5
  //#region src/testing/render.ts
6
6
  const renderStates = /* @__PURE__ */ new WeakMap();
7
7
  const eventConstructorNames = {
@@ -0,0 +1,16 @@
1
+ import { o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-Dvr2SGRG.js";
2
+ //#region src/jsx/types.d.ts
3
+ declare global {
4
+ namespace JSX {
5
+ interface Element extends JSXElement {
6
+ readonly __askrJsxElementBrand?: never;
7
+ }
8
+ interface IntrinsicElements extends KnownIntrinsicElementProps {}
9
+ interface ElementAttributesProperty {
10
+ props: Props;
11
+ }
12
+ interface ElementChildrenAttribute {
13
+ children: unknown;
14
+ }
15
+ }
16
+ }
@@ -1,5 +1,5 @@
1
1
  import { t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
2
- import { a as renderResolvedToStringSync } from "./ssr-BSUA9Y64.js";
2
+ import { a as renderResolvedToStringSync } from "./ssr-B6pCWgdY.js";
3
3
  //#region src/ssr/verify-hydration.ts
4
4
  function normalizeHydrationHtml(html) {
5
5
  const template = document.createElement("template");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askrjs/askr",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "Actor-backed deterministic UI framework",
5
5
  "keywords": [
6
6
  "askr",
@@ -1,2 +0,0 @@
1
- import "./types-DEhT-Nrv.js";
2
- import "./jsx-runtime-CL2r2HHQ.js";
@@ -1,63 +0,0 @@
1
- import { o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-Dvr2SGRG.js";
2
- //#region src/jsx/types.d.ts
3
- declare global {
4
- namespace JSX {
5
- interface Element extends JSXElement {
6
- readonly __askrJsxElementBrand?: never;
7
- }
8
- interface IntrinsicElements {
9
- a: KnownIntrinsicElementProps['a'];
10
- article: KnownIntrinsicElementProps['article'];
11
- aside: KnownIntrinsicElementProps['aside'];
12
- blockquote: KnownIntrinsicElementProps['blockquote'];
13
- button: KnownIntrinsicElementProps['button'];
14
- caption: KnownIntrinsicElementProps['caption'];
15
- circle: KnownIntrinsicElementProps['circle'];
16
- code: KnownIntrinsicElementProps['code'];
17
- div: KnownIntrinsicElementProps['div'];
18
- em: KnownIntrinsicElementProps['em'];
19
- figcaption: KnownIntrinsicElementProps['figcaption'];
20
- figure: KnownIntrinsicElementProps['figure'];
21
- form: KnownIntrinsicElementProps['form'];
22
- footer: KnownIntrinsicElementProps['footer'];
23
- g: KnownIntrinsicElementProps['g'];
24
- h1: KnownIntrinsicElementProps['h1'];
25
- h2: KnownIntrinsicElementProps['h2'];
26
- h3: KnownIntrinsicElementProps['h3'];
27
- h4: KnownIntrinsicElementProps['h4'];
28
- h5: KnownIntrinsicElementProps['h5'];
29
- h6: KnownIntrinsicElementProps['h6'];
30
- header: KnownIntrinsicElementProps['header'];
31
- img: KnownIntrinsicElementProps['img'];
32
- input: KnownIntrinsicElementProps['input'];
33
- label: KnownIntrinsicElementProps['label'];
34
- li: KnownIntrinsicElementProps['li'];
35
- main: KnownIntrinsicElementProps['main'];
36
- nav: KnownIntrinsicElementProps['nav'];
37
- ol: KnownIntrinsicElementProps['ol'];
38
- option: KnownIntrinsicElementProps['option'];
39
- p: KnownIntrinsicElementProps['p'];
40
- path: KnownIntrinsicElementProps['path'];
41
- pre: KnownIntrinsicElementProps['pre'];
42
- select: KnownIntrinsicElementProps['select'];
43
- section: KnownIntrinsicElementProps['section'];
44
- span: KnownIntrinsicElementProps['span'];
45
- strong: KnownIntrinsicElementProps['strong'];
46
- svg: KnownIntrinsicElementProps['svg'];
47
- table: KnownIntrinsicElementProps['table'];
48
- tbody: KnownIntrinsicElementProps['tbody'];
49
- td: KnownIntrinsicElementProps['td'];
50
- textarea: KnownIntrinsicElementProps['textarea'];
51
- th: KnownIntrinsicElementProps['th'];
52
- thead: KnownIntrinsicElementProps['thead'];
53
- tr: KnownIntrinsicElementProps['tr'];
54
- ul: KnownIntrinsicElementProps['ul'];
55
- }
56
- interface ElementAttributesProperty {
57
- props: Props;
58
- }
59
- interface ElementChildrenAttribute {
60
- children: unknown;
61
- }
62
- }
63
- }