@askrjs/askr 0.0.83 → 0.0.85
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-ePqdQqkV.js → access-Dpfoi4cA.js} +7 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +1 -1
- package/dist/{activity-CXEaU-Al.d.ts → activity-B1I5HJQI.d.ts} +1 -1
- package/dist/{activity-CnSRFO3d.js → activity-Jd9CgEa3.js} +52 -15
- package/dist/{authoring-DbGEgg40.js → authoring-DdQ3pHqt.js} +6 -3
- package/dist/benchmark.js +8 -8
- package/dist/boot/index.d.ts +3 -3
- package/dist/boot/index.js +1 -1
- package/dist/{boot-uK1hzONI.js → boot-DWe880Et.js} +16 -15
- package/dist/{cleanup-CEF-cX49.js → cleanup-c837KVij.js} +17 -7
- package/dist/{component-cleanup-oWN45rfa.js → component-cleanup-BUfUleGZ.js} +2 -2
- package/dist/{component-internal-DsM75Gl1.js → component-internal-DcrLymUJ.js} +9 -6
- package/dist/components/index.d.ts +1 -1
- 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-Cix3yjVf.d.ts → control-DhUZU4_V.d.ts} +2 -1
- package/dist/{control-C0X1zgrM.js → control-oLADku43.js} +4 -4
- package/dist/{csp-nonce-DDt0UNdt.js → csp-nonce-Bc52OIVc.js} +19 -2
- package/dist/data/index.js +1 -1
- package/dist/{data-G0hURNm_.js → data-Dkqb8_QP.js} +3 -3
- package/dist/{deferred-rdHAgyKe.js → deferred-vUOy-awa.js} +198 -16
- package/dist/{effect-2IIWvUjG.js → effect-lnxQIpJG.js} +2 -2
- package/dist/{fastlane-CkBXZ_3K.js → fastlane-CrfB3QG0.js} +2 -2
- package/dist/{for-internal-DRbV0h1d.js → for-internal-B_mnQhan.js} +55 -22
- package/dist/foundations/index.d.ts +1 -1
- package/dist/foundations/index.js +2 -2
- 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 +3 -3
- package/dist/fx/index.js +1 -1
- package/dist/{index-Vs1EeWEr.d.ts → index-Bkh9S9-t.d.ts} +6 -2
- package/dist/{index-TlEvex-C.d.ts → index-pIgGaXvS.d.ts} +21 -4
- package/dist/{index-ho0Htetw.d.ts → index-r-nt13FE.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/{lifecycle-batch-CwHCDseR.js → lifecycle-batch-Dfpid9-A.js} +45 -24
- package/dist/{lifecycle-operations-BJfxWUJr.js → lifecycle-operations-BrYrBsXY.js} +1 -1
- package/dist/{navigate-DfY1BUYc.d.ts → navigate-NyIjQUwI.d.ts} +1 -1
- package/dist/{navigate-Crvd5gUG.js → navigate-b4GGxO_l.js} +15 -14
- package/dist/{portal-BZ_rN17v.js → portal-BVWjAhNQ.js} +5 -5
- package/dist/{readable-B3VIOfd7.js → readable-B5NtV7V0.js} +3 -3
- package/dist/{renderer-VSw0KKDG.js → renderer-CZzNtoj2.js} +3355 -2813
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +5 -5
- package/dist/{route-matching-BUwz4kfl.js → route-matching-DHduNiGk.js} +49 -6
- package/dist/router/index.d.ts +7 -7
- package/dist/router/index.js +9 -7
- package/dist/{selector-DVwvof1M.js → selector-Ck_Pp9av.js} +2 -2
- package/dist/ssg/index.d.ts +10 -4
- package/dist/ssg/index.js +30 -15
- package/dist/ssr/index.d.ts +7 -3
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-C_Ql5_Kg.js → ssr-CpiBHMNv.js} +40 -26
- package/dist/ssr-DSHd_Q9K.js +25 -0
- package/dist/{state-BCl9DeiN.js → state-DCjONcHK.js} +4 -3
- package/dist/{structures-D3vO-WMN.js → structures-DSLF_iis.js} +4 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +3 -3
- package/dist/{verify-hydration-CNLXUcuR.js → verify-hydration-C3QBBQqR.js} +2 -2
- package/package.json +3 -3
- package/dist/ssr-CbQO5xd3.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as VNode, t as ForEachSource, u as RenderableChild } from "./control-DhUZU4_V.js";
|
|
2
2
|
import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
|
|
3
3
|
//#region src/control/shared.d.ts
|
|
4
4
|
type BoundaryChild = RenderableChild;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as StateTuple, c as readScope, o as Scope, s as defineScope, v as State, x as state, y as StateSetter } from "./control-DhUZU4_V.js";
|
|
2
2
|
import { s as Props, t as Fragment } from "./jsx-Dvr2SGRG.js";
|
|
3
|
-
import { $ as cspNonce, Q as CspNonceScope, at as AskrRuntimeOptions, c as createRef, ct as createRuntime, d as registerSSRStyle, et as Selector, it as AskrRuntime, lt as getDefaultRuntime, nt as Derived, ot as RuntimeKeyedReorderDecision, rt as derive, s as Ref, st as RuntimeRendererHost, tt as selector, ut as getSignal } from "./index-
|
|
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-
|
|
3
|
+
import { $ as cspNonce, Q as CspNonceScope, at as AskrRuntimeOptions, c as createRef, ct as createRuntime, d as registerSSRStyle, et as Selector, it as AskrRuntime, lt as getDefaultRuntime, nt as Derived, ot as RuntimeKeyedReorderDecision, rt as derive, s as Ref, st as RuntimeRendererHost, tt as selector, ut as getSignal } from "./index-pIgGaXvS.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-r-nt13FE.js";
|
|
5
5
|
import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-5S-fi2xy.js";
|
|
6
6
|
import { i as jsxs, n as jsx } from "./jsx-runtime-Cr1jspx9.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, registerSSRStyle, selector, serveQuery, state };
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-
|
|
2
|
-
import { n as Fragment } from "./jsx-C3IECePB.js";
|
|
3
|
-
import { g as readScope, u as defineScope } from "./component-internal-DsM75Gl1.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";
|
|
1
|
+
import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-Dpfoi4cA.js";
|
|
5
2
|
import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
|
|
3
|
+
import { n as Fragment } from "./jsx-C3IECePB.js";
|
|
4
|
+
import { g as readScope, u as defineScope } from "./component-internal-DcrLymUJ.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-B5NtV7V0.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-CZzNtoj2.js";
|
|
8
8
|
import { a as registerSSRStyle } from "./render-context-D-DFk2WN.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-DCjONcHK.js";
|
|
10
|
+
import { t as selector } from "./selector-Ck_Pp9av.js";
|
|
11
|
+
import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-Bc52OIVc.js";
|
|
12
|
+
import { i as For, n as Match, r as Show, t as Case } from "./control-oLADku43.js";
|
|
13
13
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
14
|
-
import { t as createQuery } from "./data-
|
|
14
|
+
import { t as createQuery } from "./data-Dkqb8_QP.js";
|
|
15
15
|
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-BL6rjGsO.js";
|
|
16
16
|
//#region src/runtime/derive.ts
|
|
17
17
|
const deriveCells = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as logger } from "./access-
|
|
2
|
-
import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-
|
|
1
|
+
import { v as logger } from "./access-Dpfoi4cA.js";
|
|
2
|
+
import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B5NtV7V0.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";
|
|
@@ -53,6 +53,41 @@ function executeCommittedLifecycleOperations(instance, wasFirstMount) {
|
|
|
53
53
|
if (errors.length > 0) throw new AggregateError(errors, `Committed lifecycle operations failed for ${instance.id}`);
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
+
//#region src/runtime/inline-render-snapshot.ts
|
|
57
|
+
function createInlineRenderSnapshot(instance) {
|
|
58
|
+
return {
|
|
59
|
+
instance,
|
|
60
|
+
props: instance.props,
|
|
61
|
+
ownerFrame: instance.ownerFrame,
|
|
62
|
+
portalScope: instance.portalScope,
|
|
63
|
+
parentInstance: instance.parentInstance,
|
|
64
|
+
isRoot: instance.isRoot,
|
|
65
|
+
vnodeParentGeneration: instance._vnodeParentGeneration,
|
|
66
|
+
vnodeOwner: instance._vnodeOwner,
|
|
67
|
+
vnodeParent: instance._vnodeParent,
|
|
68
|
+
hasVNodeKey: "_vnodeKey" in instance,
|
|
69
|
+
vnodeKey: instance._vnodeKey,
|
|
70
|
+
vnodePosition: instance._vnodePosition,
|
|
71
|
+
wrapperDepth: instance._wrapperDepth,
|
|
72
|
+
cleanupStrict: instance.cleanupStrict
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function restoreInlineRenderSnapshot(snapshot) {
|
|
76
|
+
snapshot.instance.props = snapshot.props;
|
|
77
|
+
snapshot.instance.ownerFrame = snapshot.ownerFrame;
|
|
78
|
+
snapshot.instance.portalScope = snapshot.portalScope;
|
|
79
|
+
snapshot.instance.parentInstance = snapshot.parentInstance;
|
|
80
|
+
snapshot.instance.isRoot = snapshot.isRoot;
|
|
81
|
+
snapshot.instance._vnodeParentGeneration = snapshot.vnodeParentGeneration;
|
|
82
|
+
snapshot.instance._vnodeOwner = snapshot.vnodeOwner;
|
|
83
|
+
snapshot.instance._vnodeParent = snapshot.vnodeParent;
|
|
84
|
+
if (snapshot.hasVNodeKey) snapshot.instance._vnodeKey = snapshot.vnodeKey;
|
|
85
|
+
else delete snapshot.instance._vnodeKey;
|
|
86
|
+
snapshot.instance._vnodePosition = snapshot.vnodePosition;
|
|
87
|
+
snapshot.instance._wrapperDepth = snapshot.wrapperDepth;
|
|
88
|
+
snapshot.instance.cleanupStrict = snapshot.cleanupStrict;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
56
91
|
//#region src/runtime/lifecycle-batch.ts
|
|
57
92
|
let currentLifecycleCommitBatch = null;
|
|
58
93
|
const pendingLifecycleCommitErrors = [];
|
|
@@ -125,14 +160,16 @@ function enqueueLifecycleCommitForInstance(instance, wasFirstMount) {
|
|
|
125
160
|
enqueueLifecycleCommit(currentLifecycleCommitBatch, instance, wasFirstMount);
|
|
126
161
|
return true;
|
|
127
162
|
}
|
|
128
|
-
function enqueueReadSubscriptionCommit(batch, instance, token, pendingReadSources, pendingReadSourceVersions) {
|
|
163
|
+
function enqueueReadSubscriptionCommit(batch, instance, token, pendingReadSources, pendingReadSourceVersions, ownershipGeneration = instance._ownershipGeneration) {
|
|
129
164
|
const existing = batch.readCommitsByInstance.get(instance);
|
|
130
165
|
const commit = existing ?? {
|
|
131
166
|
instance,
|
|
167
|
+
ownershipGeneration,
|
|
132
168
|
token,
|
|
133
169
|
pendingReadSources,
|
|
134
170
|
pendingReadSourceVersions
|
|
135
171
|
};
|
|
172
|
+
commit.ownershipGeneration = ownershipGeneration;
|
|
136
173
|
commit.token = token;
|
|
137
174
|
commit.pendingReadSources = pendingReadSources ? new Set(pendingReadSources) : void 0;
|
|
138
175
|
commit.pendingReadSourceVersions = pendingReadSourceVersions ? new Map(pendingReadSourceVersions) : void 0;
|
|
@@ -148,15 +185,7 @@ function enqueueInlineRenderSnapshot(batch, snapshot) {
|
|
|
148
185
|
}
|
|
149
186
|
function captureInlineRenderSnapshot(instance) {
|
|
150
187
|
if (!currentLifecycleCommitBatch?.active) return;
|
|
151
|
-
enqueueInlineRenderSnapshot(currentLifecycleCommitBatch,
|
|
152
|
-
instance,
|
|
153
|
-
props: instance.props,
|
|
154
|
-
ownerFrame: instance.ownerFrame,
|
|
155
|
-
portalScope: instance.portalScope,
|
|
156
|
-
parentInstance: instance.parentInstance,
|
|
157
|
-
isRoot: instance.isRoot,
|
|
158
|
-
vnodeParentGeneration: instance._vnodeParentGeneration
|
|
159
|
-
});
|
|
188
|
+
enqueueInlineRenderSnapshot(currentLifecycleCommitBatch, createInlineRenderSnapshot(instance));
|
|
160
189
|
}
|
|
161
190
|
function finalizeInlineReadSubscriptions(instance, token, pendingReadSources, pendingReadSourceVersions) {
|
|
162
191
|
if ((!pendingReadSources || pendingReadSources.size === 0) && (!instance._lastReadSources || instance._lastReadSources.size === 0)) return;
|
|
@@ -164,7 +193,7 @@ function finalizeInlineReadSubscriptions(instance, token, pendingReadSources, pe
|
|
|
164
193
|
enqueueReadSubscriptionCommit(currentLifecycleCommitBatch, instance, token, pendingReadSources, pendingReadSourceVersions);
|
|
165
194
|
return;
|
|
166
195
|
}
|
|
167
|
-
finalizeReadableSubscriptionsFromSnapshot(instance, token, pendingReadSources, pendingReadSourceVersions);
|
|
196
|
+
finalizeReadableSubscriptionsFromSnapshot(instance, token, pendingReadSources, pendingReadSourceVersions, instance._ownershipGeneration);
|
|
168
197
|
}
|
|
169
198
|
function flushLifecycleCommitBatch(batch) {
|
|
170
199
|
if (!closeLifecycleCommitBatch(batch)) return;
|
|
@@ -177,13 +206,13 @@ function flushLifecycleCommitBatch(batch) {
|
|
|
177
206
|
else enqueueLifecycleTransaction(batch.parent, entry);
|
|
178
207
|
}
|
|
179
208
|
for (const snapshot of batch.renderSnapshots) enqueueInlineRenderSnapshot(batch.parent, snapshot);
|
|
180
|
-
for (const commit of batch.readCommits) enqueueReadSubscriptionCommit(batch.parent, commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions);
|
|
209
|
+
for (const commit of batch.readCommits) enqueueReadSubscriptionCommit(batch.parent, commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions, commit.ownershipGeneration);
|
|
181
210
|
for (const entry of batch.entries) enqueueLifecycleCommit(batch.parent, entry.instance, entry.wasFirstMount);
|
|
182
211
|
return;
|
|
183
212
|
}
|
|
184
213
|
const commitErrors = [];
|
|
185
214
|
for (const commit of batch.readCommits) try {
|
|
186
|
-
finalizeReadableSubscriptionsFromSnapshot(commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions);
|
|
215
|
+
finalizeReadableSubscriptionsFromSnapshot(commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions, commit.ownershipGeneration);
|
|
187
216
|
} catch (error) {
|
|
188
217
|
commitErrors.push(error);
|
|
189
218
|
}
|
|
@@ -214,15 +243,7 @@ function discardLifecycleCommitBatch(batch) {
|
|
|
214
243
|
} catch (error) {
|
|
215
244
|
logger.error("[Askr] transaction rollback failed:", error);
|
|
216
245
|
}
|
|
217
|
-
for (let index = batch.renderSnapshots.length - 1; index >= 0; index -= 1)
|
|
218
|
-
const snapshot = batch.renderSnapshots[index];
|
|
219
|
-
snapshot.instance.props = snapshot.props;
|
|
220
|
-
snapshot.instance.ownerFrame = snapshot.ownerFrame;
|
|
221
|
-
snapshot.instance.portalScope = snapshot.portalScope;
|
|
222
|
-
snapshot.instance.parentInstance = snapshot.parentInstance;
|
|
223
|
-
snapshot.instance.isRoot = snapshot.isRoot;
|
|
224
|
-
snapshot.instance._vnodeParentGeneration = snapshot.vnodeParentGeneration;
|
|
225
|
-
}
|
|
246
|
+
for (let index = batch.renderSnapshots.length - 1; index >= 0; index -= 1) restoreInlineRenderSnapshot(batch.renderSnapshots[index]);
|
|
226
247
|
for (const entry of batch.entries) {
|
|
227
248
|
if (entry.wasFirstMount) entry.instance.mountOperations = void 0;
|
|
228
249
|
discardCommitOperations(entry.instance);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as registerCommitOperation } from "./component-internal-DsM75Gl1.js";
|
|
2
1
|
import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
|
|
2
|
+
import { a as registerCommitOperation } from "./component-internal-DcrLymUJ.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
|
-
import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-
|
|
1
|
+
import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-Dpfoi4cA.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 { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-
|
|
9
|
-
import {
|
|
10
|
-
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-
|
|
11
|
-
import { t as CspNonceScope } from "./csp-nonce-
|
|
12
|
-
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-
|
|
3
|
+
import { r as executeComponent } from "./component-internal-DcrLymUJ.js";
|
|
4
|
+
import { t as cleanupReadableSubscriptionSources } from "./readable-B5NtV7V0.js";
|
|
5
|
+
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
6
|
+
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-Dfpid9-A.js";
|
|
7
|
+
import { _ as teardownNodeSubtree } from "./cleanup-c837KVij.js";
|
|
8
|
+
import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData, v as withoutRouteHydrationMetadata } from "./deferred-vUOy-awa.js";
|
|
9
|
+
import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-DHduNiGk.js";
|
|
10
|
+
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-BVWjAhNQ.js";
|
|
11
|
+
import { t as CspNonceScope } from "./csp-nonce-Bc52OIVc.js";
|
|
12
|
+
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-Jd9CgEa3.js";
|
|
13
13
|
//#region src/router/navigation-registry.ts
|
|
14
14
|
let currentInstance = null;
|
|
15
15
|
let currentPathname = "/";
|
|
@@ -722,7 +722,7 @@ function getResolvedRouteHandler(resolved) {
|
|
|
722
722
|
function updateRouteRuntime(instance, resolved, href) {
|
|
723
723
|
const current = instance._appRenderRuntime;
|
|
724
724
|
const runtime = createAppRenderRuntime({
|
|
725
|
-
framework: current?.framework,
|
|
725
|
+
framework: withoutRouteHydrationMetadata(current?.framework),
|
|
726
726
|
route: resolved?.kind === "render" ? getRouteRenderData(resolved) : void 0,
|
|
727
727
|
hasRoute: resolved?.kind === "render" && hasRouteRenderData(resolved)
|
|
728
728
|
});
|
|
@@ -992,8 +992,9 @@ let navigationInitialized = false;
|
|
|
992
992
|
configureNavigationRegistryHost({ cancelRouteRequests });
|
|
993
993
|
function navigate(path, options = {}) {
|
|
994
994
|
if (typeof window === "undefined") return;
|
|
995
|
-
const
|
|
996
|
-
|
|
995
|
+
const targetPath = addRouteBasePath(path, getActiveRouteBasePath());
|
|
996
|
+
const initialTarget = parseTargetUrl(targetPath);
|
|
997
|
+
navigateWithRedirectState(targetPath, options, {
|
|
997
998
|
redirects: 0,
|
|
998
999
|
visited: /* @__PURE__ */ new Set([`${initialTarget.pathname}${initialTarget.search}${initialTarget.hash}`])
|
|
999
1000
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as getRuntimeRenderer } from "./access-
|
|
2
|
-
import { t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
3
|
-
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
|
|
1
|
+
import { o as getRuntimeRenderer } from "./access-Dpfoi4cA.js";
|
|
4
2
|
import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-DzJEbYGE.js";
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
3
|
+
import { t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
4
|
+
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
5
|
+
import { t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
6
|
+
import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-Dfpid9-A.js";
|
|
7
7
|
import { n as getActiveRenderContext } from "./render-context-D-DFk2WN.js";
|
|
8
8
|
import { i as createSSRPortalHostToken, n as SSR_PORTAL_HOST, r as createSSRPortalAnchorToken, t as SSR_PORTAL_ANCHOR } from "./portal-w3oQ6oQU.js";
|
|
9
9
|
//#region src/runtime/portal.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-
|
|
1
|
+
import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-Dpfoi4cA.js";
|
|
2
2
|
import { p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
|
|
3
3
|
//#region src/runtime/readable.ts
|
|
4
4
|
const DEVELOPMENT_BUILD_ENABLED = false;
|
|
@@ -81,8 +81,8 @@ function finalizeReadableSubscriptions(instance) {
|
|
|
81
81
|
instance._currentRenderToken = void 0;
|
|
82
82
|
instance._pendingReadSourceVersions = void 0;
|
|
83
83
|
}
|
|
84
|
-
function finalizeReadableSubscriptionsFromSnapshot(instance, token, newSet, pendingReadSourceVersions = instance._pendingReadSourceVersions) {
|
|
85
|
-
if (token === void 0) return;
|
|
84
|
+
function finalizeReadableSubscriptionsFromSnapshot(instance, token, newSet, pendingReadSourceVersions = instance._pendingReadSourceVersions, ownershipGeneration = instance._ownershipGeneration) {
|
|
85
|
+
if (token === void 0 || instance._ownershipGeneration !== ownershipGeneration || !instance.mounted && instance.notifyUpdate === null) return;
|
|
86
86
|
const oldSet = instance._lastReadSources;
|
|
87
87
|
const pendingVersions = pendingReadSourceVersions;
|
|
88
88
|
let needsFollowUpUpdate = false;
|