@askrjs/askr 0.0.91 → 0.0.92
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/{access-Dpfoi4cA.js → access-DSkccuEI.js} +5 -2
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +3 -3
- package/dist/{activity-dKH6nlpj.js → activity-DodHdC0L.js} +7 -5
- package/dist/{activity-CF2_JvJs.d.ts → activity-DxUcygE5.d.ts} +1 -1
- package/dist/benchmark.d.ts +1 -1
- package/dist/benchmark.js +8 -8
- package/dist/boot/index.d.ts +3 -4
- package/dist/boot/index.js +1 -1
- package/dist/{boot-D3zVVWuN.js → boot-D71bjP4r.js} +27 -21
- package/dist/{cleanup-c837KVij.js → cleanup-DAAhJjx5.js} +8 -5
- package/dist/{component-cleanup-BUfUleGZ.js → component-cleanup-CJCfu5ed.js} +3 -3
- package/dist/{component-internal-C4uwwUaK.js → component-internal-DlAkCgBE.js} +5 -5
- package/dist/{component-scope-DzJEbYGE.js → component-scope-4I3yEMkb.js} +13 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-CsGs2bLS.d.ts → control-CdzY49Q2.d.ts} +1 -1
- package/dist/{control-CON10J1p.js → control-Dv540XtV.js} +4 -4
- package/dist/{csp-nonce-DH0TrDij.js → csp-nonce-ByMbWv8s.js} +1 -1
- package/dist/data/index.d.ts +1 -2
- package/dist/data/index.js +3 -3
- package/dist/{data-Bh_3OETq.js → data-DcikEH9N.js} +12 -12
- package/dist/{data-runtime-wbooGyu7.js → data-runtime-oIdQWnPW.js} +1 -1
- package/dist/{deferred-D6nZaIPs.js → deferred-B6CafO5u.js} +5 -5
- package/dist/{effect-lnxQIpJG.js → effect-BdZcHblj.js} +73 -14
- package/dist/{fastlane-CrfB3QG0.js → fastlane-B2s24fWt.js} +22 -3
- package/dist/{for-internal-Bsm0B8GZ.js → for-internal-T1C7jd7x.js} +6 -6
- package/dist/foundations/icon/index.d.ts +1 -2
- package/dist/foundations/index.d.ts +2 -2
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/state/index.d.ts +1 -1
- package/dist/foundations/state/index.js +1 -1
- package/dist/foundations/structures/index.d.ts +2 -2
- package/dist/foundations/structures/index.js +1 -1
- package/dist/fx/index.js +2 -2
- package/dist/{types-iAmDSV6o.d.ts → index-2bk8nldG.d.ts} +63 -1
- package/dist/index-DA3g8lm8.d.ts +955 -0
- package/dist/{index-Cf2ANwPL.d.ts → index-oswRaMn6.d.ts} +2 -3
- package/dist/index.d.ts +4 -7
- package/dist/index.js +31 -16
- package/dist/jsx-dev-runtime.d.ts +2 -3
- package/dist/jsx-runtime-C_0v1pMN.d.ts +2 -0
- package/dist/{jsx-runtime-LHh5tcTe.d.ts → jsx-runtime-Cfb2umb4.d.ts} +2 -3
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/{lifecycle-batch-Dfpid9-A.js → lifecycle-batch-Cyfd07rf.js} +2 -2
- package/dist/{lifecycle-operations-CMK1AN2C.js → lifecycle-operations-CQ8fsc94.js} +2 -2
- package/dist/{manifest-fBb2ynKL.js → manifest-Dv0bO6kg.js} +1 -1
- package/dist/{navigate-CnQMXze1.js → navigate-BbWj-QU-.js} +12 -10
- package/dist/{navigate-BO7M2iUG.d.ts → navigate-CZHPEUC4.d.ts} +1 -1
- package/dist/{query-registry-B4LpVtlT.js → query-registry-qm13pEdK.js} +1 -1
- package/dist/{readable-B5NtV7V0.js → readable-B99wh5Z_.js} +9 -6
- package/dist/{renderer-y2DL627q.js → renderer-C6jz9nIN.js} +234 -188
- package/dist/{resolution-C9A31xQi.js → resolution-B21kmOkp.js} +5 -5
- package/dist/{resource-operation-whZDJAYv.js → resource-operation-CaAttQqz.js} +5 -5
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +6 -6
- package/dist/{route-matching-xlgdQXg_.js → route-matching-Bo6UqG-5.js} +13 -4
- package/dist/router/index.d.ts +4 -6
- package/dist/router/index.js +7 -7
- package/dist/{selector-BLNkRZ2i.js → selector-BLWwI55m.js} +22 -5
- package/dist/ssg/index.d.ts +1 -2
- package/dist/ssg/index.js +6 -6
- package/dist/ssr/index.d.ts +3 -5
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-DNJUPmMq.js → ssr-CaZfvQWn.js} +11 -11
- package/dist/{state-DCjONcHK.js → state-XPZYUzHL.js} +5 -5
- package/dist/{structures-m-cphWI-.js → structures-DKjkAmM5.js} +5 -5
- package/dist/testing/index.d.ts +2 -3
- package/dist/testing/index.js +6 -6
- package/dist/{jsx-BYXe_Nnk.d.ts → types-BA9FJtfR.d.ts} +16 -0
- package/dist/{verify-hydration-D8938Fw2.js → verify-hydration-CcF-HJil.js} +1 -1
- package/package.json +1 -1
- package/dist/control-D-FIa-n-.d.ts +0 -451
- package/dist/index-BU17hud9.d.ts +0 -52
- package/dist/index-CPlPDbEY.d.ts +0 -64
- package/dist/index-Izwp_ESC.d.ts +0 -458
- package/dist/jsx-runtime-BqhMEuT4.d.ts +0 -2
- package/dist/types-CsPtBGWb.d.ts +0 -16
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as JSXElement } from "./
|
|
3
|
-
import "./types-CsPtBGWb.js";
|
|
1
|
+
import { Tt as RenderableChild } from "./index-DA3g8lm8.js";
|
|
2
|
+
import { r as JSXElement } from "./types-BA9FJtfR.js";
|
|
4
3
|
//#region src/foundations/structures/layout.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Layout helper.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as Props, t as Fragment } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
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-BU17hud9.js";
|
|
6
|
-
import { a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime } from "./index-CPlPDbEY.js";
|
|
7
|
-
import { i as jsxs, n as jsx } from "./jsx-runtime-LHh5tcTe.js";
|
|
1
|
+
import { A as RuntimeKeyedReorderDecision, C as selector, Ct as readScope, D as derive, E as Derived, Ft as StateTuple, It as state, M as createRuntime, N as getDefaultRuntime, Nt as State, O as AskrRuntime, P as getSignal, Pt as StateSetter, S as Selector, St as defineScope, T as configureRenderDiagnostics, _ as MatchProps, b as For, c as createRef, d as registerSSRStyle, f as CspNonceScope, g as Match, h as CaseProps, j as RuntimeRendererHost, k as AskrRuntimeOptions, m as Case, p as cspNonce, s as Ref, v as Show, w as RenderDiagnosticsOptions, x as ForProps, xt as Scope, y as ShowProps } from "./index-DA3g8lm8.js";
|
|
2
|
+
import { s as Props, t as Fragment } from "./types-BA9FJtfR.js";
|
|
3
|
+
import { E as QueryDefinition, O as QueryPrefetchContext, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, j as ServerQueryHandler, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-2bk8nldG.js";
|
|
4
|
+
import { i as jsxs, n as jsx } from "./jsx-runtime-Cfb2umb4.js";
|
|
8
5
|
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 RenderDiagnosticsOptions, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, configureRenderDiagnostics, createQuery, createRef, createRuntime, cspNonce, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, registerSSRStyle, selector, serveQuery, state };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as getRuntimeFlushVersion,
|
|
2
|
-
import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-
|
|
1
|
+
import { a as getRuntimeFlushVersion, f as AskrRuntime, h as getDefaultRuntime, m as createRuntime, t as enqueueRuntimeLane } from "./access-DSkccuEI.js";
|
|
2
|
+
import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
|
|
3
3
|
import { n as Fragment } from "./jsx-C3IECePB.js";
|
|
4
|
-
import { _ as readScope, d as defineScope, l as configureRenderDiagnostics } from "./component-internal-
|
|
5
|
-
import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-
|
|
4
|
+
import { _ as readScope, d as defineScope, l as configureRenderDiagnostics } from "./component-internal-DlAkCgBE.js";
|
|
5
|
+
import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B99wh5Z_.js";
|
|
6
6
|
import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
7
|
-
import { t as installRendererBridge } from "./renderer-
|
|
7
|
+
import { t as installRendererBridge } from "./renderer-C6jz9nIN.js";
|
|
8
8
|
import { c as registerSSRStyle } from "./render-context-B7ohlh6t.js";
|
|
9
|
-
import { t as state } from "./state-
|
|
10
|
-
import { t as selector } from "./selector-
|
|
11
|
-
import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-
|
|
12
|
-
import { i as For, n as Match, r as Show, t as Case } from "./control-
|
|
9
|
+
import { t as state } from "./state-XPZYUzHL.js";
|
|
10
|
+
import { t as selector } from "./selector-BLWwI55m.js";
|
|
11
|
+
import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-ByMbWv8s.js";
|
|
12
|
+
import { i as For, n as Match, r as Show, t as Case } from "./control-Dv540XtV.js";
|
|
13
13
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
14
|
-
import { t as createQuery } from "./data-
|
|
15
|
-
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-
|
|
14
|
+
import { t as createQuery } from "./data-DcikEH9N.js";
|
|
15
|
+
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-qm13pEdK.js";
|
|
16
16
|
//#region src/runtime/derive.ts
|
|
17
17
|
const deriveCells = /* @__PURE__ */ new WeakMap();
|
|
18
18
|
const dirtyDerivedCells = /* @__PURE__ */ new Set();
|
|
@@ -40,6 +40,7 @@ function flushDirtyDerivedCells() {
|
|
|
40
40
|
hasPendingDerivedFlush = false;
|
|
41
41
|
if (dirtyDerivedCells.size === 0) return;
|
|
42
42
|
const pending = dirtyDerivedCells.values();
|
|
43
|
+
let failures = null;
|
|
43
44
|
let next = pending.next();
|
|
44
45
|
while (!next.done) {
|
|
45
46
|
const cell = next.value;
|
|
@@ -49,9 +50,15 @@ function flushDirtyDerivedCells() {
|
|
|
49
50
|
next = pending.next();
|
|
50
51
|
continue;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
+
try {
|
|
54
|
+
recomputeDerivedCell(cell, true);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
(failures ??= []).push(error);
|
|
57
|
+
}
|
|
53
58
|
next = pending.next();
|
|
54
59
|
}
|
|
60
|
+
if (failures?.length === 1) throw failures[0];
|
|
61
|
+
if (failures && failures.length > 1) throw new AggregateError(failures, "derive() recompute failures");
|
|
55
62
|
}
|
|
56
63
|
function recomputeDerivedCell(cell, notifyDownstream) {
|
|
57
64
|
if (!cell._dirty && cell._hasValue) return cell._value;
|
|
@@ -79,7 +86,7 @@ function recomputeDerivedCell(cell, notifyDownstream) {
|
|
|
79
86
|
cell._value = nextValue;
|
|
80
87
|
cell._lastRecomputeFlushVersion = getRuntimeFlushVersion();
|
|
81
88
|
if (valueChanged && notifyDownstream) {
|
|
82
|
-
markReadableDerivedSubscribersDirty(cell);
|
|
89
|
+
markReadableDerivedSubscribersDirty(cell, true);
|
|
83
90
|
markReactivePropsDirtySource(cell);
|
|
84
91
|
notifyReadableReaders(cell);
|
|
85
92
|
}
|
|
@@ -87,8 +94,13 @@ function recomputeDerivedCell(cell, notifyDownstream) {
|
|
|
87
94
|
}
|
|
88
95
|
function createDerivedCell(instance, generation, store, hookIndex, compute) {
|
|
89
96
|
const cell = function derivedGetter() {
|
|
90
|
-
|
|
91
|
-
|
|
97
|
+
const derivedCell = cell;
|
|
98
|
+
if (!derivedCell._active) {
|
|
99
|
+
if (!derivedCell._hasValue) throw new Error("[Askr] derive() was disposed before producing a value.");
|
|
100
|
+
return derivedCell._value;
|
|
101
|
+
}
|
|
102
|
+
recordReadableRead(derivedCell);
|
|
103
|
+
return recomputeDerivedCell(derivedCell, derivedCell._scheduled);
|
|
92
104
|
};
|
|
93
105
|
cell._owner = instance;
|
|
94
106
|
cell._hookIndex = hookIndex;
|
|
@@ -98,15 +110,18 @@ function createDerivedCell(instance, generation, store, hookIndex, compute) {
|
|
|
98
110
|
cell._dirty = true;
|
|
99
111
|
cell._scheduled = false;
|
|
100
112
|
cell._evaluating = false;
|
|
113
|
+
cell._active = true;
|
|
101
114
|
cell._lastRecomputeFlushVersion = -1;
|
|
102
115
|
cell._sources = /* @__PURE__ */ new Set();
|
|
103
116
|
cell._markDirty = () => {
|
|
104
117
|
markDerivedCellDirty(cell);
|
|
105
118
|
};
|
|
106
119
|
cell._cleanup = () => {
|
|
120
|
+
if (!cell._active) return;
|
|
121
|
+
cell._active = false;
|
|
107
122
|
cell._scheduled = false;
|
|
108
123
|
cell._dirty = false;
|
|
109
|
-
cell.
|
|
124
|
+
cell._pendingDependencySources = void 0;
|
|
110
125
|
dirtyDerivedCells.delete(cell);
|
|
111
126
|
clearDerivedDependencySubscriptions(cell, cell._sources);
|
|
112
127
|
cell._derivedSubscribers?.clear();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./
|
|
2
|
-
import { t as EagerControlPrimitive } from "./control-
|
|
3
|
-
import "./types-CsPtBGWb.js";
|
|
1
|
+
import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./types-BA9FJtfR.js";
|
|
2
|
+
import { t as EagerControlPrimitive } from "./control-CdzY49Q2.js";
|
|
4
3
|
//#region src/jsx/jsx-dev-runtime.d.ts
|
|
5
4
|
declare namespace JSX {
|
|
6
5
|
type ElementType = string | symbol | ((props: never) => unknown);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./
|
|
2
|
-
import { t as EagerControlPrimitive } from "./control-
|
|
3
|
-
import "./types-CsPtBGWb.js";
|
|
1
|
+
import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./types-BA9FJtfR.js";
|
|
2
|
+
import { t as EagerControlPrimitive } from "./control-CdzY49Q2.js";
|
|
4
3
|
//#region src/jsx/jsx-runtime.d.ts
|
|
5
4
|
declare namespace JSX {
|
|
6
5
|
type ElementType = string | symbol | ((props: never) => unknown);
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./
|
|
2
|
-
import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-
|
|
1
|
+
import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./types-BA9FJtfR.js";
|
|
2
|
+
import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-Cfb2umb4.js";
|
|
3
3
|
export { Fragment, JSX, type JSXComponent, type JSXElement, type JSXElementType, jsx, jsxDEV, jsxs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-
|
|
1
|
+
import { y as logger } from "./access-DSkccuEI.js";
|
|
2
|
+
import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B99wh5Z_.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 { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-
|
|
2
|
-
import { a as registerCommitOperation } from "./component-internal-
|
|
1
|
+
import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-4I3yEMkb.js";
|
|
2
|
+
import { a as registerCommitOperation } from "./component-internal-DlAkCgBE.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,4 +1,4 @@
|
|
|
1
|
-
import { A as getDefaultRouteBasePath, B as setDefaultRouteBasePath, F as insertRecordSorted, M as getRouteRecords, R as restoreRouteState, V as snapshotRouteState, _ as clearRouteState, h as addRouteToStores, j as getRouteList, k as getDefaultRouteAuthOptions, s as normalizeRouteBasePath, z as setDefaultRouteAuthOptions } from "./route-matching-
|
|
1
|
+
import { A as getDefaultRouteBasePath, B as setDefaultRouteBasePath, F as insertRecordSorted, M as getRouteRecords, R as restoreRouteState, V as snapshotRouteState, _ as clearRouteState, h as addRouteToStores, j as getRouteList, k as getDefaultRouteAuthOptions, s as normalizeRouteBasePath, z as setDefaultRouteAuthOptions } from "./route-matching-Bo6UqG-5.js";
|
|
2
2
|
//#region src/runtime/execution-model.ts
|
|
3
3
|
const EXECUTION_MODEL_KEY = Symbol.for("__ASKR_EXECUTION_MODEL__");
|
|
4
4
|
function getExecutionModel() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as isProductionEnvironment, r as flushRuntimeScheduler, x as isDevelopmentEnvironment, y as logger } from "./access-DSkccuEI.js";
|
|
2
2
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
3
|
-
import { r as executeComponent } from "./component-internal-
|
|
4
|
-
import { t as cleanupReadableSubscriptionSources } from "./readable-
|
|
5
|
-
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-
|
|
6
|
-
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-
|
|
7
|
-
import { _ as teardownNodeSubtree } from "./cleanup-
|
|
8
|
-
import { t as CspNonceScope } from "./csp-nonce-
|
|
9
|
-
import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-
|
|
10
|
-
import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-
|
|
11
|
-
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-
|
|
3
|
+
import { r as executeComponent } from "./component-internal-DlAkCgBE.js";
|
|
4
|
+
import { t as cleanupReadableSubscriptionSources } from "./readable-B99wh5Z_.js";
|
|
5
|
+
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-CJCfu5ed.js";
|
|
6
|
+
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-Cyfd07rf.js";
|
|
7
|
+
import { _ as teardownNodeSubtree } from "./cleanup-DAAhJjx5.js";
|
|
8
|
+
import { t as CspNonceScope } from "./csp-nonce-ByMbWv8s.js";
|
|
9
|
+
import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-Bo6UqG-5.js";
|
|
10
|
+
import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-B21kmOkp.js";
|
|
11
|
+
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-DodHdC0L.js";
|
|
12
12
|
import { r as getDefaultPortalHost, t as clearRegisteredDefaultPortalForInstance } from "./default-portal-runtime-DvMvWJVp.js";
|
|
13
13
|
//#region src/router/navigation-registry.ts
|
|
14
14
|
let currentInstance = null;
|
|
@@ -724,6 +724,8 @@ function updateRouteRuntime(instance, resolved, href) {
|
|
|
724
724
|
const runtime = createAppRenderRuntime({
|
|
725
725
|
framework: withoutRouteHydrationMetadata(current?.framework),
|
|
726
726
|
dataRuntime: current?.dataRuntime,
|
|
727
|
+
routeRegistry: current?.routeRegistry,
|
|
728
|
+
routeAuth: current?.routeAuth,
|
|
727
729
|
route: resolved?.kind === "render" ? getRouteRenderData(resolved) : void 0,
|
|
728
730
|
hasRoute: resolved?.kind === "render" && hasRouteRenderData(resolved)
|
|
729
731
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-
|
|
1
|
+
import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-oIdQWnPW.js";
|
|
2
2
|
//#region src/common/telemetry.ts
|
|
3
3
|
function withTelemetry(span, fields, work) {
|
|
4
4
|
return span ? span(fields, work) : work();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as enqueueRuntimeTask, s as
|
|
2
|
-
import { p as getCurrentInstance } from "./component-scope-
|
|
1
|
+
import { c as markRuntimeReactivePropsDirtySource, n as enqueueRuntimeTask, s as isRuntimeSchedulerExecuting } from "./access-DSkccuEI.js";
|
|
2
|
+
import { p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
|
|
3
3
|
//#region src/runtime/readable.ts
|
|
4
4
|
const DEVELOPMENT_BUILD_ENABLED = false;
|
|
5
5
|
function markReadableUsage(source) {
|
|
@@ -95,10 +95,10 @@ function finalizeReadableSubscriptionsFromSnapshot(instance, token, newSet, pend
|
|
|
95
95
|
}
|
|
96
96
|
instance.lastRenderToken = token;
|
|
97
97
|
if (newSet) for (const source of newSet) {
|
|
98
|
-
if (pendingVersions
|
|
98
|
+
if (pendingVersions) {
|
|
99
99
|
const sourceVersion = source._version ?? 0;
|
|
100
100
|
const readVersion = pendingVersions.get(source);
|
|
101
|
-
if (readVersion !== void 0 && sourceVersion !== readVersion) needsFollowUpUpdate = true;
|
|
101
|
+
if (readVersion !== void 0 && sourceVersion !== readVersion && (!oldSet || oldSet.has(source) || isRuntimeSchedulerExecuting())) needsFollowUpUpdate = true;
|
|
102
102
|
}
|
|
103
103
|
let readers = source._readers;
|
|
104
104
|
if (!readers) {
|
|
@@ -159,10 +159,13 @@ function clearDerivedDependencySubscriptions(subscriber, sources) {
|
|
|
159
159
|
for (const source of sources) source._derivedSubscribers?.delete(subscriber);
|
|
160
160
|
sources.clear();
|
|
161
161
|
}
|
|
162
|
-
function markReadableDerivedSubscribersDirty(source) {
|
|
162
|
+
function markReadableDerivedSubscribersDirty(source, skipCurrentSubscriber = false) {
|
|
163
163
|
const subscribers = source._derivedSubscribers;
|
|
164
164
|
if (!subscribers || subscribers.size === 0) return;
|
|
165
|
-
for (const subscriber of subscribers)
|
|
165
|
+
for (const subscriber of subscribers) {
|
|
166
|
+
if (skipCurrentSubscriber && subscriber === currentDerivedSubscriber) continue;
|
|
167
|
+
subscriber._markDirty();
|
|
168
|
+
}
|
|
166
169
|
}
|
|
167
170
|
function markReactivePropsDirtySource(source) {
|
|
168
171
|
try {
|