@askrjs/askr 0.0.73 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/actions/index.d.ts +1 -1
  2. package/dist/actions/index.js +2 -2
  3. package/dist/{activity-C2tPn9Fr.js → activity-386uXmPJ.js} +4 -4
  4. package/dist/{activity-CaeDxh-g.d.ts → activity-DaqZEUPh.d.ts} +1 -1
  5. package/dist/{authoring-BJ1KGHmR.js → authoring-ycOVkX1-.js} +3 -3
  6. package/dist/benchmark.js +7 -7
  7. package/dist/boot/index.d.ts +3 -3
  8. package/dist/boot/index.js +1 -1
  9. package/dist/{boot-C-cc9kcY.js → boot-eaBrci4W.js} +12 -12
  10. package/dist/{cleanup-D8Ufd9Ix.js → cleanup-e4Rn287s.js} +3 -3
  11. package/dist/{component-cleanup-1ZFoLLHt.js → component-cleanup-oWN45rfa.js} +2 -2
  12. package/dist/{component-internal-CPjM4n8M.js → component-internal-iJ7HAcpc.js} +83 -5
  13. package/dist/{component-scope-CC3cojX9.js → component-scope-DzJEbYGE.js} +5 -2
  14. package/dist/components/index.d.ts +1 -1
  15. package/dist/components/index.js +1 -1
  16. package/dist/control/index.d.ts +1 -1
  17. package/dist/control/index.js +1 -1
  18. package/dist/{control-DVRBkN2X.js → control-ByyOdVdr.js} +3 -3
  19. package/dist/{control-DO-iBEtV.d.ts → control-Uvq1GU4K.d.ts} +9 -5
  20. package/dist/{csp-nonce-CwSRP3Jl.js → csp-nonce-BLkoekFX.js} +1 -1
  21. package/dist/data/index.js +1 -1
  22. package/dist/{data-DFcSmGvN.js → data-E7oXei9c.js} +3 -3
  23. package/dist/{deferred-1BRV2Fso.js → deferred-iBBHEN5Z.js} +5 -5
  24. package/dist/{effect-CFUzIpqX.js → effect-2IIWvUjG.js} +1 -1
  25. package/dist/{fastlane-BTcFCMnm.js → fastlane-BbexfvHo.js} +1 -1
  26. package/dist/{for-internal-BtK9Htl0.js → for-internal-tNicxJY3.js} +50 -11
  27. package/dist/foundations/index.d.ts +1 -1
  28. package/dist/foundations/index.js +1 -1
  29. package/dist/foundations/state/index.d.ts +1 -1
  30. package/dist/foundations/state/index.js +1 -1
  31. package/dist/foundations/structures/index.d.ts +1 -1
  32. package/dist/foundations/structures/index.js +1 -1
  33. package/dist/fx/index.js +1 -1
  34. package/dist/{index-BHQmliBq.d.ts → index-CDACZEF2.d.ts} +1 -1
  35. package/dist/{index-5TeJ46BR.d.ts → index-CbRdEUPB.d.ts} +1 -1
  36. package/dist/{index-UmwPZ8ZN.d.ts → index-acX2RLxD.d.ts} +1 -1
  37. package/dist/{index-DSyleBRD.d.ts → index-vo_FDR-B.d.ts} +2 -2
  38. package/dist/index.d.ts +3 -3
  39. package/dist/index.js +9 -9
  40. package/dist/{lifecycle-batch-COgl8jMS.js → lifecycle-batch-CwHCDseR.js} +1 -1
  41. package/dist/{lifecycle-operations-Db-_MG-O.js → lifecycle-operations-D2wzCYYh.js} +2 -2
  42. package/dist/{navigate-BScgmpZP.js → navigate-BwCpLrSM.js} +10 -10
  43. package/dist/{navigate-CPpT8BpL.d.ts → navigate-DlaVqF4n.d.ts} +1 -1
  44. package/dist/{portal-wY3j0vvp.js → portal-EKmTCMKp.js} +4 -4
  45. package/dist/{readable-BYSoWJSv.js → readable-B3VIOfd7.js} +1 -1
  46. package/dist/{renderer-BJYY2Y8s.js → renderer-GFETYwZ6.js} +82 -57
  47. package/dist/resources/index.d.ts +2 -2
  48. package/dist/resources/index.js +5 -5
  49. package/dist/{route-matching-M-f1VQRu.js → route-matching-Dmb_MKUb.js} +4 -4
  50. package/dist/router/index.d.ts +4 -4
  51. package/dist/router/index.js +5 -5
  52. package/dist/{router-wmx6Uher.d.ts → router-Dd-LoJmM.d.ts} +2 -2
  53. package/dist/{selector-DEfqO1rA.js → selector-BzPPLXny.js} +2 -2
  54. package/dist/ssg/index.d.ts +2 -2
  55. package/dist/ssg/index.js +3 -3
  56. package/dist/ssr/index.d.ts +2 -2
  57. package/dist/ssr/index.js +1 -1
  58. package/dist/{ssr-B6pCWgdY.js → ssr-CtumC_es.js} +16 -12
  59. package/dist/{state-CVuQVjvK.js → state-rjmMPExl.js} +3 -3
  60. package/dist/testing/index.d.ts +2 -2
  61. package/dist/testing/index.js +2 -2
  62. package/dist/{verify-hydration-DxOs5H_6.js → verify-hydration-GMsdoOUX.js} +1 -1
  63. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- import { i as definePortal, n as Portal, t as DefaultPortal } from "../portal-wY3j0vvp.js";
1
+ import { i as definePortal, n as Portal, t as DefaultPortal } from "../portal-EKmTCMKp.js";
2
2
  import { a as layout, i as Slot, r as Presence } from "../structures-DUB3HchX.js";
3
3
  export { DefaultPortal, Portal, Presence, Slot, definePortal, layout };
@@ -1,4 +1,4 @@
1
- import { m as State } from "../../control-DO-iBEtV.js";
1
+ import { m as State } from "../../control-Uvq1GU4K.js";
2
2
  //#region src/foundations/state/controllable.d.ts
3
3
  declare function isControlled<T>(value: T | undefined): value is T;
4
4
  declare function resolveControllable<T>(value: T | undefined, defaultValue: T): {
@@ -1,4 +1,4 @@
1
- import { t as state } from "../../state-CVuQVjvK.js";
1
+ import { t as state } from "../../state-rjmMPExl.js";
2
2
  //#region src/foundations/state/controllable.ts
3
3
  /**
4
4
  * controllable
@@ -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-5TeJ46BR.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-CbRdEUPB.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,3 +1,3 @@
1
- import { i as definePortal, n as Portal, t as DefaultPortal } from "../../portal-wY3j0vvp.js";
1
+ import { i as definePortal, n as Portal, t as DefaultPortal } from "../../portal-EKmTCMKp.js";
2
2
  import { a as layout, i as Slot, n as createCollection, r as Presence, t as createLayer } from "../../structures-DUB3HchX.js";
3
3
  export { DefaultPortal, Portal, Presence, Slot, createCollection, createLayer, definePortal, layout };
package/dist/fx/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { h as scheduleEventHandler, n as enqueueRuntimeTask, v as logger } from "../access-ePqdQqkV.js";
2
- import { f as getCurrentComponentInstance } from "../component-scope-CC3cojX9.js";
2
+ import { f as getCurrentComponentInstance } from "../component-scope-DzJEbYGE.js";
3
3
  //#region src/fx/timing.ts
4
4
  /**
5
5
  * Debounce — delay execution, coalesce rapid calls
@@ -1,4 +1,4 @@
1
- import { i as Scope, n as ReadableSource, r as ComponentInstance } from "./control-DO-iBEtV.js";
1
+ import { i as Scope, n as ReadableSource, r as ComponentInstance } from "./control-Uvq1GU4K.js";
2
2
  import { t as Scheduler } from "./scheduler-CmLO4Dfm.js";
3
3
  import "./jsx-runtime-C-oIHX9X.js";
4
4
  //#region src/runtime/component-scope.d.ts
@@ -1,4 +1,4 @@
1
- import { c as RenderableChild } from "./control-DO-iBEtV.js";
1
+ import { c as RenderableChild } from "./control-Uvq1GU4K.js";
2
2
  import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
3
3
  import "./types-C9YcqVpk.js";
4
4
  //#region src/runtime/portal.d.ts
@@ -1,4 +1,4 @@
1
- import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-DO-iBEtV.js";
1
+ import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-Uvq1GU4K.js";
2
2
  import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
3
3
  //#region src/control/shared.d.ts
4
4
  type BoundaryChild = RenderableChild;
@@ -1,6 +1,6 @@
1
- import { c as RenderableChild, g as StateTuple } from "./control-DO-iBEtV.js";
1
+ import { c as RenderableChild, g as StateTuple } from "./control-Uvq1GU4K.js";
2
2
  import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
3
- import "./index-BHQmliBq.js";
3
+ import "./index-CDACZEF2.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
- 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";
1
+ import { _ as state, a as defineScope, g as StateTuple, h as StateSetter, i as Scope, m as State, o as readScope } from "./control-Uvq1GU4K.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-BHQmliBq.js";
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";
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-CDACZEF2.js";
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-acX2RLxD.js";
5
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 };
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-ePqdQqkV.js";
2
2
  import { n as Fragment } from "./jsx-CUpRxrLH.js";
3
- import { h as readScope, u as defineScope } from "./component-internal-CPjM4n8M.js";
4
- import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BYSoWJSv.js";
5
- import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
3
+ import { g as readScope, u as defineScope } from "./component-internal-iJ7HAcpc.js";
4
+ import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
5
+ import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
6
6
  import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
7
- import { t as installRendererBridge } from "./renderer-BJYY2Y8s.js";
8
- import { t as state } from "./state-CVuQVjvK.js";
9
- import { t as selector } from "./selector-DEfqO1rA.js";
7
+ import { t as installRendererBridge } from "./renderer-GFETYwZ6.js";
8
+ import { t as state } from "./state-rjmMPExl.js";
9
+ import { t as selector } from "./selector-BzPPLXny.js";
10
10
  import { jsx, jsxs } from "./jsx-runtime.js";
11
- import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
12
- import { i as For, n as Match, r as Show, t as Case } from "./control-DVRBkN2X.js";
13
- import { t as createQuery } from "./data-DFcSmGvN.js";
11
+ import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-BLkoekFX.js";
12
+ import { i as For, n as Match, r as Show, t as Case } from "./control-ByyOdVdr.js";
13
+ import { t as createQuery } from "./data-E7oXei9c.js";
14
14
  import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-Bu_cuMch.js";
15
15
  //#region src/runtime/derive.ts
16
16
  const deriveCells = /* @__PURE__ */ new WeakMap();
@@ -1,5 +1,5 @@
1
1
  import { v as logger } from "./access-ePqdQqkV.js";
2
- import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-BYSoWJSv.js";
2
+ import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B3VIOfd7.js";
3
3
  //#region src/common/promise.ts
4
4
  function isPromiseLike(value) {
5
5
  return value !== null && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
@@ -1,5 +1,5 @@
1
- import { a as registerCommitOperation } from "./component-internal-CPjM4n8M.js";
2
- import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-CC3cojX9.js";
1
+ import { a as registerCommitOperation } from "./component-internal-iJ7HAcpc.js";
2
+ import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
3
3
  import { t as isRouteActivityActive } from "./route-activity-CNJfpwx-.js";
4
4
  //#region src/runtime/lifecycle-operations.ts
5
5
  function normalizePredicates(predicates) {
@@ -1,15 +1,15 @@
1
1
  import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-ePqdQqkV.js";
2
2
  import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
3
- import { r as executeComponent } from "./component-internal-CPjM4n8M.js";
4
- import { t as cleanupReadableSubscriptionSources } from "./readable-BYSoWJSv.js";
5
- import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
6
- import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-COgl8jMS.js";
7
- import { _ as teardownNodeSubtree } from "./cleanup-D8Ufd9Ix.js";
8
- import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-1BRV2Fso.js";
9
- import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-M-f1VQRu.js";
10
- import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-wY3j0vvp.js";
11
- import { t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
12
- import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-C2tPn9Fr.js";
3
+ import { r as executeComponent } from "./component-internal-iJ7HAcpc.js";
4
+ import { t as cleanupReadableSubscriptionSources } from "./readable-B3VIOfd7.js";
5
+ import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
6
+ import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-CwHCDseR.js";
7
+ import { _ as teardownNodeSubtree } from "./cleanup-e4Rn287s.js";
8
+ import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-iBBHEN5Z.js";
9
+ import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-Dmb_MKUb.js";
10
+ import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-EKmTCMKp.js";
11
+ import { t as CspNonceScope } from "./csp-nonce-BLkoekFX.js";
12
+ import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-386uXmPJ.js";
13
13
  //#region src/router/navigation-registry.ts
14
14
  let currentInstance = null;
15
15
  let currentPathname = "/";
@@ -1,4 +1,4 @@
1
- import "./router-wmx6Uher.js";
1
+ import "./router-Dd-LoJmM.js";
2
2
  //#region src/router/navigation-scroll.d.ts
3
3
  type NavigationScrollBehavior = 'top' | 'preserve';
4
4
  type HistoryScrollBehavior = 'restore' | 'top' | 'preserve';
@@ -1,9 +1,9 @@
1
1
  import { o as getRuntimeRenderer } from "./access-ePqdQqkV.js";
2
2
  import { t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
3
- import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BYSoWJSv.js";
4
- import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-CC3cojX9.js";
5
- import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
6
- import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-COgl8jMS.js";
3
+ import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
4
+ import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-DzJEbYGE.js";
5
+ import { t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
6
+ import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-CwHCDseR.js";
7
7
  import { n as getActiveRenderContext } from "./render-context-Clw3rFiO.js";
8
8
  //#region src/common/portal.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-ePqdQqkV.js";
2
- import { p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
2
+ import { p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
3
3
  //#region src/runtime/readable.ts
4
4
  const DEVELOPMENT_BUILD_ENABLED = false;
5
5
  function markReadableUsage(source) {
@@ -1,17 +1,17 @@
1
1
  import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
2
2
  import { n as _isDOMElement, t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
3
3
  import { b as isDevelopmentEnvironment, c as runRuntimeHandlerScope, f as configureRuntimeRenderer, i as getDefaultRuntimeInstance, n as enqueueRuntimeTask, v as logger, y as getRuntimeEnv } from "./access-ePqdQqkV.js";
4
- import { n as markFastPathApplied, t as isBulkCommitActive } from "./fastlane-BTcFCMnm.js";
4
+ import { n as markFastPathApplied, t as isBulkCommitActive } from "./fastlane-BbexfvHo.js";
5
5
  import { n as Fragment, r as STATIC_CHILDREN } from "./jsx-CUpRxrLH.js";
6
- import { _ as withContext, d as getCurrentContextFrame, i as mountInstanceInline, m as markVNodeTreeWithContextFrame, n as createComponentInstance, o as renderComponentInline, p as getVNodeContextFrame, t as captureInlineRenderSnapshot } from "./component-internal-CPjM4n8M.js";
7
- import { b as restoreDomCommitScope, c as enterDomCommitScope, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
8
- import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
9
- import { c as getCurrentLifecycleCommitBatch, l as registerLifecycleRollback, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-COgl8jMS.js";
10
- import { _ as createChildScope, a as registerForStateTransaction, c as captureForFallbackTransactionSnapshot, d as clearCaseDomUpdateState, f as clearShowDomUpdateState, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, l as captureForItemTransactionSnapshot, n as clearForDomUpdateState, o as rollbackForStateTransaction, t as beginForStateTransaction, v as disposeChildScope, y as rerenderChildScope } from "./for-internal-BtK9Htl0.js";
11
- import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-CFUzIpqX.js";
12
- import { C as getDelegatedHandlersForElement, D as updateDelegatedListener, E as removeDelegatedListener, S as getDelegatedHandlerForElement, T as isEventDelegationEnabled, _ as teardownNodeSubtree, a as elementReactivePropsCleanup, b as addFreshDelegatedListener, c as forEachElementReactivePropCleanup, d as removeAllListeners, f as removeElementReactiveProps, g as setFreshElementReactivePropCleanup, h as setDirectElementReactivePropCleanup, i as elementListeners, l as getElementReactivePropCleanupSize, m as replaceElementRefBookkeeping, n as cleanupInstanceIfPresent, o as elementRefs, p as removeElementRef, r as cleanupInstancesUnder, s as forEachDescendantNode, t as REACTIVE_CHILDREN_KEY, u as getElementReactivePropsCleanupMap, v as updateElementRef, w as isDelegatedEvent, x as clearDelegatedHandlersForElement, y as addDelegatedListener } from "./cleanup-D8Ufd9Ix.js";
6
+ import { d as getCurrentContextFrame, h as markVNodeTreeWithContextFrame, i as mountInstanceInline, n as createComponentInstance, o as renderComponentInline, p as getVNodeContextFrame, t as captureInlineRenderSnapshot, y as withContext } from "./component-internal-iJ7HAcpc.js";
7
+ import { b as restoreDomCommitScope, c as enterDomCommitScope, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
8
+ import { t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
9
+ import { c as getCurrentLifecycleCommitBatch, l as registerLifecycleRollback, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-CwHCDseR.js";
10
+ import { _ as setControlBoundaryContextFrame, a as registerForStateTransaction, b as rerenderChildScope, c as captureForFallbackTransactionSnapshot, d as clearCaseDomUpdateState, f as clearShowDomUpdateState, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, l as captureForItemTransactionSnapshot, n as clearForDomUpdateState, o as rollbackForStateTransaction, t as beginForStateTransaction, v as createChildScope, y as disposeChildScope } from "./for-internal-tNicxJY3.js";
11
+ import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-2IIWvUjG.js";
12
+ import { C as getDelegatedHandlersForElement, D as updateDelegatedListener, E as removeDelegatedListener, S as getDelegatedHandlerForElement, T as isEventDelegationEnabled, _ as teardownNodeSubtree, a as elementReactivePropsCleanup, b as addFreshDelegatedListener, c as forEachElementReactivePropCleanup, d as removeAllListeners, f as removeElementReactiveProps, g as setFreshElementReactivePropCleanup, h as setDirectElementReactivePropCleanup, i as elementListeners, l as getElementReactivePropCleanupSize, m as replaceElementRefBookkeeping, n as cleanupInstanceIfPresent, o as elementRefs, p as removeElementRef, r as cleanupInstancesUnder, s as forEachDescendantNode, t as REACTIVE_CHILDREN_KEY, u as getElementReactivePropsCleanupMap, v as updateElementRef, w as isDelegatedEvent, x as clearDelegatedHandlersForElement, y as addDelegatedListener } from "./cleanup-e4Rn287s.js";
13
13
  import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTOfe.js";
14
- import { a as isSafeHref, i as ROUTE_ROOT_COMPONENT } from "./csp-nonce-CwSRP3Jl.js";
14
+ import { a as isSafeHref, i as ROUTE_ROOT_COMPONENT } from "./csp-nonce-BLkoekFX.js";
15
15
  //#region src/runtime/error-boundary.ts
16
16
  function createBoundaryReset(instance) {
17
17
  return () => {
@@ -1054,6 +1054,24 @@ function findRangeEnd(start) {
1054
1054
  }
1055
1055
  return null;
1056
1056
  }
1057
+ function findRangeAtNode(node) {
1058
+ const owner = getRangeOwner(node);
1059
+ if (owner) return getOwnedRange(owner) ?? null;
1060
+ for (let current = node; current; current = current.previousSibling) {
1061
+ if (!isRangeStart(current)) continue;
1062
+ const end = findRangeEnd(current);
1063
+ if (end && rangeContains({
1064
+ start: current,
1065
+ end,
1066
+ single: false
1067
+ }, node)) return {
1068
+ start: current,
1069
+ end,
1070
+ single: false
1071
+ };
1072
+ }
1073
+ return null;
1074
+ }
1057
1075
  //#endregion
1058
1076
  //#region src/renderer/namespaces.ts
1059
1077
  const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
@@ -1537,6 +1555,53 @@ function getRendererDOMHost() {
1537
1555
  return rendererDOMHost;
1538
1556
  }
1539
1557
  //#endregion
1558
+ //#region src/renderer/boundary-state.ts
1559
+ function evaluateControlBoundaryState(controlState) {
1560
+ if (controlState.kind === "for") return evaluateForState(controlState);
1561
+ if (controlState.kind === "show") return evaluateShowState(controlState);
1562
+ return evaluateCaseState(controlState);
1563
+ }
1564
+ function clearControlBoundaryDomUpdateState(controlState) {
1565
+ if (controlState.kind === "for") {
1566
+ clearForDomUpdateState(controlState);
1567
+ return;
1568
+ }
1569
+ if (controlState.kind === "show") {
1570
+ clearShowDomUpdateState(controlState);
1571
+ return;
1572
+ }
1573
+ clearCaseDomUpdateState(controlState);
1574
+ }
1575
+ function getControlBoundaryState(node) {
1576
+ const controlState = node._controlState ?? null;
1577
+ const frame = getVNodeContextFrame(node);
1578
+ if (controlState && frame) setControlBoundaryContextFrame(controlState, frame);
1579
+ return controlState;
1580
+ }
1581
+ function getDirectControlBoundaryVNode(children) {
1582
+ if (!Array.isArray(children) && _isDOMElement(children) && children.type === __CONTROL_BOUNDARY__) return children;
1583
+ if (Array.isArray(children) && children.length === 1 && _isDOMElement(children[0]) && children[0].type === __CONTROL_BOUNDARY__) return children[0];
1584
+ return null;
1585
+ }
1586
+ function getControlBoundaryCommitChildren(controlState) {
1587
+ if (controlState.kind === "for" && controlState._needsSourceReconcile) return evaluateForState(controlState);
1588
+ if (controlState.kind !== "for") {
1589
+ const activeVNode = controlState.activeScope?.vnode;
1590
+ return activeVNode == null || activeVNode === false ? [] : [activeVNode];
1591
+ }
1592
+ if (controlState.orderedKeys.length === 0) {
1593
+ const fallbackVNode = controlState.fallbackScope?.vnode;
1594
+ return fallbackVNode == null || fallbackVNode === false ? [] : [fallbackVNode];
1595
+ }
1596
+ const childrenVNodes = [];
1597
+ for (let index = 0; index < controlState.orderedKeys.length; index += 1) {
1598
+ const itemKey = controlState.orderedKeys[index];
1599
+ const itemInstance = controlState.items.get(itemKey);
1600
+ childrenVNodes.push(itemInstance?.scope.vnode ?? null);
1601
+ }
1602
+ return childrenVNodes;
1603
+ }
1604
+ //#endregion
1540
1605
  //#region src/renderer/reconcile-resolution.ts
1541
1606
  function createOldElResolver(parent, oldKeyMap, usedOldEls) {
1542
1607
  return (k) => {
@@ -1657,7 +1722,7 @@ function isControlBoundaryVNode$1(child) {
1657
1722
  }
1658
1723
  function prepareControlBoundaryResolution(child) {
1659
1724
  if (!isControlBoundaryVNode$1(child)) return null;
1660
- const controlState = child._controlState;
1725
+ const controlState = getControlBoundaryState(child);
1661
1726
  if (!controlState) return null;
1662
1727
  if (controlState.kind === "for") {
1663
1728
  const childrenVNodes = evaluateControlBoundaryChildren(controlState);
@@ -1739,7 +1804,11 @@ function performFullReconciliation(parent, newChildren, oldKeyMap) {
1739
1804
  for (let i = 0; i < newChildren.length; i++) {
1740
1805
  const child = newChildren[i];
1741
1806
  const node = reconcileSingleChild(child, i, parent, resolveOldElOnce, resolveUnkeyedOnce, usedOldEls, newKeyMap);
1742
- if (node) finalNodes.push(node);
1807
+ if (node) {
1808
+ const range = findRangeAtNode(node);
1809
+ if (range && !range.single && range.start === node) finalNodes.push(range.start, ...getRangeNodes(range), range.end);
1810
+ else finalNodes.push(node);
1811
+ }
1743
1812
  }
1744
1813
  if (typeof document === "undefined") return newKeyMap;
1745
1814
  commitReconciliation(parent, finalNodes);
@@ -3703,9 +3772,9 @@ function reconcileUnkeyed(parent, children) {
3703
3772
  keyedElements.delete(parent);
3704
3773
  }
3705
3774
  function updateForBoundaryChildren(element, forVnode) {
3706
- const controlState = forVnode._controlState;
3775
+ const controlState = getControlBoundaryState(forVnode);
3707
3776
  if (!controlState) return;
3708
- commitForBoundaryChildren(element, controlState, controlState.kind === "for" ? evaluateForState(controlState) : controlState.kind === "show" ? evaluateShowState(controlState) : evaluateCaseState(controlState));
3777
+ commitForBoundaryChildren(element, controlState, evaluateControlBoundaryState(controlState));
3709
3778
  }
3710
3779
  function updateElementChildren(element, vnodeChildren, cleanupRangeNode) {
3711
3780
  const domHost = getRendererDOMHost();
@@ -4489,50 +4558,6 @@ function syncControlBoundaryInMixedParent(parent, controlState, childrenVNodes,
4489
4558
  return nextRange ? [nextRange] : [];
4490
4559
  }
4491
4560
  //#endregion
4492
- //#region src/renderer/boundary-state.ts
4493
- function evaluateControlBoundaryState(controlState) {
4494
- if (controlState.kind === "for") return evaluateForState(controlState);
4495
- if (controlState.kind === "show") return evaluateShowState(controlState);
4496
- return evaluateCaseState(controlState);
4497
- }
4498
- function clearControlBoundaryDomUpdateState(controlState) {
4499
- if (controlState.kind === "for") {
4500
- clearForDomUpdateState(controlState);
4501
- return;
4502
- }
4503
- if (controlState.kind === "show") {
4504
- clearShowDomUpdateState(controlState);
4505
- return;
4506
- }
4507
- clearCaseDomUpdateState(controlState);
4508
- }
4509
- function getControlBoundaryState(node) {
4510
- return node._controlState ?? null;
4511
- }
4512
- function getDirectControlBoundaryVNode(children) {
4513
- if (!Array.isArray(children) && _isDOMElement(children) && children.type === __CONTROL_BOUNDARY__) return children;
4514
- if (Array.isArray(children) && children.length === 1 && _isDOMElement(children[0]) && children[0].type === __CONTROL_BOUNDARY__) return children[0];
4515
- return null;
4516
- }
4517
- function getControlBoundaryCommitChildren(controlState) {
4518
- if (controlState.kind === "for" && controlState._needsSourceReconcile) return evaluateForState(controlState);
4519
- if (controlState.kind !== "for") {
4520
- const activeVNode = controlState.activeScope?.vnode;
4521
- return activeVNode == null || activeVNode === false ? [] : [activeVNode];
4522
- }
4523
- if (controlState.orderedKeys.length === 0) {
4524
- const fallbackVNode = controlState.fallbackScope?.vnode;
4525
- return fallbackVNode == null || fallbackVNode === false ? [] : [fallbackVNode];
4526
- }
4527
- const childrenVNodes = [];
4528
- for (let index = 0; index < controlState.orderedKeys.length; index += 1) {
4529
- const itemKey = controlState.orderedKeys[index];
4530
- const itemInstance = controlState.items.get(itemKey);
4531
- childrenVNodes.push(itemInstance?.scope.vnode ?? null);
4532
- }
4533
- return childrenVNodes;
4534
- }
4535
- //#endregion
4536
4561
  //#region src/renderer/boundary-commit-owner.ts
4537
4562
  let commitBoundaryChildren = null;
4538
4563
  const controlBoundaryOwners = /* @__PURE__ */ new WeakMap();
@@ -1,5 +1,5 @@
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";
1
+ import { h as getSignal } from "../index-CDACZEF2.js";
2
+ import { i as onRouteChange, n as RouteChangeOptions, t as RouteChangeCleanup } from "../activity-DaqZEUPh.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 { t as enqueueRuntimeLane } from "../access-ePqdQqkV.js";
2
- import { a as registerCommitOperation } from "../component-internal-CPjM4n8M.js";
3
- import { f as getCurrentComponentInstance, g as getSignal, i as claimHookIndex } from "../component-scope-CC3cojX9.js";
4
- import { z as resource } from "../route-matching-M-f1VQRu.js";
5
- import { a as task, i as routeActive, n as documentVisible, o as timer, r as on, s as windowFocused, t as capture } from "../lifecycle-operations-Db-_MG-O.js";
6
- import { n as onRouteChange } from "../activity-C2tPn9Fr.js";
2
+ import { a as registerCommitOperation } from "../component-internal-iJ7HAcpc.js";
3
+ import { f as getCurrentComponentInstance, g as getSignal, i as claimHookIndex } from "../component-scope-DzJEbYGE.js";
4
+ import { z as resource } from "../route-matching-Dmb_MKUb.js";
5
+ import { a as task, i as routeActive, n as documentVisible, o as timer, r as on, s as windowFocused, t as capture } from "../lifecycle-operations-D2wzCYYh.js";
6
+ import { n as onRouteChange } from "../activity-386uXmPJ.js";
7
7
  //#region src/runtime/stream-operation.ts
8
8
  function toError(value) {
9
9
  return value instanceof Error ? value : new Error(String(value));
@@ -1,10 +1,10 @@
1
1
  import { t as enqueueRuntimeLane, v as logger } from "./access-ePqdQqkV.js";
2
- import { c as registerCommitOperationForInstance, d as getCurrentContextFrame, g as withAsyncResourceContext } from "./component-internal-CPjM4n8M.js";
3
- import { f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
4
- import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
2
+ import { c as registerCommitOperationForInstance, d as getCurrentContextFrame, v as withAsyncResourceContext } from "./component-internal-iJ7HAcpc.js";
3
+ import { f as getCurrentComponentInstance } from "./component-scope-DzJEbYGE.js";
4
+ import { p as isPromiseLike } from "./lifecycle-batch-CwHCDseR.js";
5
5
  import { t as brandSnapshotSource } from "./snapshot-source-BB42xgwb.js";
6
6
  import { i as getNextRenderKey, l as throwSSRDataMissing, n as getActiveRenderContext, r as getCurrentRenderData, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
7
- import { t as state } from "./state-CVuQVjvK.js";
7
+ import { t as state } from "./state-rjmMPExl.js";
8
8
  //#region src/runtime/resource-cell.ts
9
9
  /**
10
10
  * Pure, component-agnostic ResourceCell state machine.
@@ -1,9 +1,9 @@
1
- import { c as RenderableChild } from "../control-DO-iBEtV.js";
1
+ import { c as RenderableChild } from "../control-Uvq1GU4K.js";
2
2
  import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
3
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";
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-Dd-LoJmM.js";
5
+ import { a as ScrollRestorationOptions, i as NavigationScrollBehavior, n as NavigateOptions, r as HistoryScrollBehavior, t as navigate } from "../navigate-DlaVqF4n.js";
6
+ import { i as onRouteChange, n as RouteChangeOptions, r as currentRoute, t as RouteChangeCleanup } from "../activity-DaqZEUPh.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 { 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";
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-iBBHEN5Z.js";
2
2
  import { jsx } from "../jsx-runtime.js";
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-BJ1KGHmR.js";
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-BScgmpZP.js";
3
+ import { a as isSafeHref } from "../csp-nonce-BLkoekFX.js";
4
+ import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-ycOVkX1-.js";
5
+ import { n as onRouteChange, t as currentRoute } from "../activity-386uXmPJ.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-BwCpLrSM.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
- import { c as RenderableChild } from "./control-DO-iBEtV.js";
1
+ import { c as RenderableChild } from "./control-Uvq1GU4K.js";
2
2
  import { D as QueryPrefetchContext, u as CoreTelemetry } from "./index-Bki2rqcr.js";
3
- import { t as ActionDescriptor } from "./index-DSyleBRD.js";
3
+ import { t as ActionDescriptor } from "./index-vo_FDR-B.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,6 +1,6 @@
1
1
  import { t as enqueueRuntimeLane } from "./access-ePqdQqkV.js";
2
- import { c as markReadableUsage, f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BYSoWJSv.js";
3
- import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
2
+ import { c as markReadableUsage, f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
3
+ import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
4
4
  //#region src/runtime/selector-store.ts
5
5
  const dirtySelectorRecords = /* @__PURE__ */ new Set();
6
6
  let hasPendingSelectorFlush = false;
@@ -1,5 +1,5 @@
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-wmx6Uher.js";
1
+ import { d as DocumentRenderContext, f as DocumentRenderer, u as DocumentRenderArgs } from "../control-Uvq1GU4K.js";
2
+ import { D as RoutePathParams, N as RouteRegistry, O as RoutePolicy, T as RouteOptions, y as RouteHandler } from "../router-Dd-LoJmM.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 { 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";
2
+ import { C as _preloadRouteHandler, S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-iBBHEN5Z.js";
3
+ import { a as route } from "../authoring-ycOVkX1-.js";
4
4
  import { n as renderDocument } from "../ssr-CbQO5xd3.js";
5
- import { n as renderToString } from "../ssr-B6pCWgdY.js";
5
+ import { n as renderToString } from "../ssr-CtumC_es.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";
@@ -1,7 +1,7 @@
1
- import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-DO-iBEtV.js";
1
+ import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-Uvq1GU4K.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-wmx6Uher.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-Dd-LoJmM.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-B6pCWgdY.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-CtumC_es.js";
3
3
  export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
@@ -2,20 +2,20 @@ import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
2
2
  import { t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
3
3
  import { v as logger } from "./access-ePqdQqkV.js";
4
4
  import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
5
- import { f as getExecutionContextFrame, l as callWithContext, m as markVNodeTreeWithContextFrame, n as createComponentInstance, p as getVNodeContextFrame } from "./component-internal-CPjM4n8M.js";
6
- import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
7
- import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
8
- import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
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-1BRV2Fso.js";
5
+ import { f as getExecutionContextFrame, h as markVNodeTreeWithContextFrame, l as callWithContext, n as createComponentInstance, p as getVNodeContextFrame } from "./component-internal-iJ7HAcpc.js";
6
+ import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } from "./component-scope-DzJEbYGE.js";
7
+ import { t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
8
+ import { p as isPromiseLike } from "./lifecycle-batch-CwHCDseR.js";
9
+ import { _ as setControlBoundaryContextFrame, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-tNicxJY3.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-iBBHEN5Z.js";
11
11
  import { c as stopRenderPhase$1, o as startRenderPhase$1, t as configureRenderContextProvider, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
12
- import { a as resolveRouteFromRoutes, t as _resolveRouteMatchFromRoutes } from "./route-matching-M-f1VQRu.js";
13
- import { a as disposeDefaultPortalScope, o as SSR_PORTAL_HOST, t as DefaultPortal } from "./portal-wY3j0vvp.js";
12
+ import { a as resolveRouteFromRoutes, t as _resolveRouteMatchFromRoutes } from "./route-matching-Dmb_MKUb.js";
13
+ import { a as disposeDefaultPortalScope, o as SSR_PORTAL_HOST, t as DefaultPortal } from "./portal-EKmTCMKp.js";
14
14
  import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTOfe.js";
15
- import { a as isSafeHref, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
15
+ import { a as isSafeHref, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-BLkoekFX.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-BJ1KGHmR.js";
18
+ import { a as route } from "./authoring-ycOVkX1-.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
  /**
@@ -701,7 +701,11 @@ function resolveErrorBoundaryFallbackNode(fallback, error, reset) {
701
701
  return typeof fallback === "function" ? fallback(error, reset) : fallback !== void 0 ? fallback : createDefaultErrorBoundaryFallbackVNode(error);
702
702
  }
703
703
  function getControlBoundaryState(node) {
704
- return node._controlState ?? null;
704
+ const boundaryNode = node;
705
+ const controlState = boundaryNode._controlState ?? null;
706
+ const frame = getVNodeContextFrame(boundaryNode);
707
+ if (controlState && frame) setControlBoundaryContextFrame(controlState, frame);
708
+ return controlState;
705
709
  }
706
710
  function evaluateControlBoundaryChildren(node) {
707
711
  if (node.type !== __CONTROL_BOUNDARY__) return;
@@ -880,7 +884,7 @@ function isMultiRangeChild(child) {
880
884
  return (getRenderableChildren(vnode)?.length ?? 0) !== 1;
881
885
  }
882
886
  function renderControlChildrenSync(node, ctx) {
883
- const controlState = node._controlState;
887
+ const controlState = getControlBoundaryState(node);
884
888
  return withControlBoundaryChildren(node, (children) => {
885
889
  const values = children ?? [];
886
890
  if (controlState?.kind === "for") return values.map((child) => {
@@ -1,7 +1,7 @@
1
1
  import { x as isProductionEnvironment } from "./access-ePqdQqkV.js";
2
- import { t as isBulkCommitActive } from "./fastlane-BTcFCMnm.js";
3
- import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BYSoWJSv.js";
4
- import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
2
+ import { t as isBulkCommitActive } from "./fastlane-BbexfvHo.js";
3
+ import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
4
+ import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
5
5
  //#region src/runtime/state.ts
6
6
  /**
7
7
  * State primitive for Askr components