@askrjs/askr 0.0.58 → 0.0.59
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/actions/index.js +1 -1
- package/dist/benchmark.js +6 -6
- package/dist/boot/index.js +1 -1
- package/dist/{boot-tQCKG8nx.js → boot-BFz3Cwc3.js} +8 -8
- package/dist/{cleanup-DScKZG2i.js → cleanup-Br2t23wI.js} +1 -1
- package/dist/{component-internal-NdN_bJ2-.js → component-internal-S_ILK7MY.js} +3 -24
- package/dist/{component-lifecycle-C7lnU9Bt.js → component-lifecycle-DFyfmw6H.js} +31 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-BJmonrpE.js → control-09vfq-H_.js} +2 -2
- package/dist/data/index.js +1 -1
- package/dist/{data-0sDU9_HU.js → data-DBuZBv-V.js} +1 -1
- package/dist/{deferred-CSFYIBJL.js → deferred-DaOJ2Wbe.js} +3 -3
- package/dist/{for-internal-cNhKHMBB.js → for-internal-DDiDGhR2.js} +2 -2
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/state/index.js +1 -1
- package/dist/foundations/structures/index.js +1 -1
- package/dist/index.js +5 -5
- package/dist/{lifecycle-operations-BR8-AOly.js → lifecycle-operations-OLgdNomp.js} +1 -1
- package/dist/{navigate-mkLGM5ec.js → navigate-zzFcn4zk.js} +5 -5
- package/dist/{portal-C47xkwXj.js → portal-CH-lRprN.js} +1 -1
- package/dist/{renderer-CCvnNMna.js → renderer-BxEuzC3X.js} +6 -21
- package/dist/{resource-operation-CUAUBhUB.js → resource-operation-BrvPPJDO.js} +3 -3
- package/dist/resources/index.js +2 -2
- package/dist/router/index.js +2 -2
- package/dist/ssg/index.js +2 -2
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-DVFKktPX.js → ssr-DPN09YB2.js} +5 -5
- package/dist/{state-DPl8lffD.js → state-zZmOu_06.js} +2 -0
- package/dist/{verify-hydration-C41fY5Z2.js → verify-hydration-DB_huX_v.js} +1 -1
- package/package.json +1 -1
package/dist/actions/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime } from "../component-scope-CC3cojX9.js";
|
|
2
2
|
import { r as getCurrentRenderData } from "../render-context-Clw3rFiO.js";
|
|
3
|
-
import { t as state } from "../state-
|
|
3
|
+
import { t as state } from "../state-zZmOu_06.js";
|
|
4
4
|
import { jsx, jsxs } from "../jsx-runtime.js";
|
|
5
5
|
import { c as resolveDataRuntimeState, s as invalidateQueriesForRuntime } from "../data-runtime-SJ1BSUvk.js";
|
|
6
6
|
//#region src/actions/runtime.ts
|
package/dist/benchmark.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as flushRuntimeScheduler } from "./access-Bg4RJNC8.js";
|
|
2
|
-
import { t as installRendererBridge } from "./renderer-
|
|
3
|
-
import { t as state } from "./state-
|
|
2
|
+
import { t as installRendererBridge } from "./renderer-BxEuzC3X.js";
|
|
3
|
+
import { t as state } from "./state-zZmOu_06.js";
|
|
4
4
|
import { t as selector } from "./selector-DafVYzV4.js";
|
|
5
5
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
6
|
-
import { i as For } from "./control-
|
|
7
|
-
import { t as createIsland } from "./boot-
|
|
6
|
+
import { i as For } from "./control-09vfq-H_.js";
|
|
7
|
+
import { t as createIsland } from "./boot-BFz3Cwc3.js";
|
|
8
8
|
//#region src/bench/components/benchmark-row.tsx
|
|
9
9
|
function BenchmarkRow({ item, isSelected, onSelect, onRemove }) {
|
|
10
10
|
return /* @__PURE__ */ jsxs("tr", {
|
|
@@ -63,8 +63,8 @@ function BenchmarkTable({ rows, isSelected, onSelect, onRemove }) {
|
|
|
63
63
|
installRendererBridge();
|
|
64
64
|
const benchmarkMetadata = {
|
|
65
65
|
packageName: "@askrjs/askr",
|
|
66
|
-
packageVersion: "0.0.
|
|
67
|
-
buildLabel: "0.0.
|
|
66
|
+
packageVersion: "0.0.59",
|
|
67
|
+
buildLabel: "0.0.59-local"
|
|
68
68
|
};
|
|
69
69
|
function getBenchmarkMetadata() {
|
|
70
70
|
return { ...benchmarkMetadata };
|
package/dist/boot/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-
|
|
1
|
+
import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-BFz3Cwc3.js";
|
|
2
2
|
export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-Bg4RJNC8.js";
|
|
2
2
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
3
|
-
import { n as createComponentInstance, r as executeComponent } from "./component-internal-
|
|
4
|
-
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-
|
|
5
|
-
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-
|
|
6
|
-
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-
|
|
7
|
-
import { C as assertExecutionModel, S as route, a as resolveRouteMeta, c as registerAppInstance, d as clearRoutes, g as createAppRenderRuntime, h as setServerLocation, i as reconcileRouteMeta, l as unregisterAppInstance, s as configureScrollRestoration, t as initializeNavigation, u as _applyManifest } from "./navigate-
|
|
3
|
+
import { n as createComponentInstance, r as executeComponent } from "./component-internal-S_ILK7MY.js";
|
|
4
|
+
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-DFyfmw6H.js";
|
|
5
|
+
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-BxEuzC3X.js";
|
|
6
|
+
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-Br2t23wI.js";
|
|
7
|
+
import { C as assertExecutionModel, S as route, a as resolveRouteMeta, c as registerAppInstance, d as clearRoutes, g as createAppRenderRuntime, h as setServerLocation, i as reconcileRouteMeta, l as unregisterAppInstance, s as configureScrollRestoration, t as initializeNavigation, u as _applyManifest } from "./navigate-zzFcn4zk.js";
|
|
8
8
|
import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
|
|
9
|
-
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-
|
|
9
|
+
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-CH-lRprN.js";
|
|
10
10
|
import { i as getDefaultDataRuntime } from "./data-runtime-SJ1BSUvk.js";
|
|
11
11
|
import { a as hydrateDataRuntime } from "./query-registry-CQIT4mXr.js";
|
|
12
12
|
import { a as resolveRouteFromRoutes, d as _setActiveRouteAuthOptions, j as lockRouteRegistration, k as hasRegisteredRoutes } from "./route-matching-vJpvLVbX.js";
|
|
13
|
-
import { _ as pageRenderEnvelope, d as hasRouteRenderData, f as resolveRouteRequest, l as getRouteRenderContext, o as reviveDeferredValue, u as getRouteRenderData, x as _preloadRouteHandler } from "./deferred-
|
|
13
|
+
import { _ as pageRenderEnvelope, d as hasRouteRenderData, f as resolveRouteRequest, l as getRouteRenderContext, o as reviveDeferredValue, u as getRouteRenderData, x as _preloadRouteHandler } from "./deferred-DaOJ2Wbe.js";
|
|
14
14
|
import "./ssr-CbQO5xd3.js";
|
|
15
15
|
//#region src/boot/hydration.ts
|
|
16
16
|
const DEFERRED_PAYLOAD = "__askr_deferred__";
|
|
@@ -594,7 +594,7 @@ async function hydrateSPA(config) {
|
|
|
594
594
|
handler: r.handler,
|
|
595
595
|
namespace: r.options.namespace
|
|
596
596
|
})) : routeTable;
|
|
597
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
597
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-DB_huX_v.js");
|
|
598
598
|
if (!verifyHydrationSyncForUrl({
|
|
599
599
|
root: rootElement,
|
|
600
600
|
url: currentUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as runRuntimeHandlerScope, v as logger } from "./access-Bg4RJNC8.js";
|
|
2
2
|
import "./fastlane-Dw8SOBr9.js";
|
|
3
|
-
import { f as registerLifecycleTransaction, h as cleanupComponent } from "./component-lifecycle-
|
|
3
|
+
import { f as registerLifecycleTransaction, h as cleanupComponent } from "./component-lifecycle-DFyfmw6H.js";
|
|
4
4
|
//#region src/runtime/events.ts
|
|
5
5
|
/**
|
|
6
6
|
* Event delegation system for Askr
|
|
@@ -3,7 +3,7 @@ import { b as isDevelopmentEnvironment, n as enqueueRuntimeTask, o as getRuntime
|
|
|
3
3
|
import { r as tryRuntimeFastLaneSync, s as finalizeReadableSubscriptions } from "./fastlane-Dw8SOBr9.js";
|
|
4
4
|
import { r as STATIC_CHILDREN, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
5
5
|
import { C as restoreRenderScopedComponent, S as restoreInlineRenderTracking, _ as getSignalForInstance, b as restoreDomCommitScope, c as enterDomCommitScope, f as getCurrentComponentInstance, l as enterRenderScopedComponent, m as getCurrentPortalScope, n as captureInlineComponentScope, o as clearRenderTracking, p as getCurrentInstance, r as captureInlineRenderTracking, s as enterComponentExecutionScope, t as beginRenderTracking, u as exitComponentExecutionScope, v as resetRenderState, x as restoreInlineComponentScope } from "./component-scope-CC3cojX9.js";
|
|
6
|
-
import { a as captureInlineRenderSnapshot$1, c as finalizeInlineReadSubscriptions, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, n as commitRenderedComponent$1, o as discardLifecycleCommitBatch, p as discardCommitOperations, r as registerCommitOperationForInstance, t as commitLifecycleForInstance } from "./component-lifecycle-
|
|
6
|
+
import { a as captureInlineRenderSnapshot$1, c as finalizeInlineReadSubscriptions, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, n as commitRenderedComponent$1, o as discardLifecycleCommitBatch, p as discardCommitOperations, r as registerCommitOperationForInstance, t as commitLifecycleForInstance } from "./component-lifecycle-DFyfmw6H.js";
|
|
7
7
|
//#region src/runtime/context.ts
|
|
8
8
|
const ROOT_EXECUTION_FRAME = {
|
|
9
9
|
parent: null,
|
|
@@ -248,10 +248,7 @@ function runScheduledComponent(instance, host) {
|
|
|
248
248
|
}
|
|
249
249
|
if (isPromiseLike(result)) throw new Error("Async components are not supported. Components must be synchronous.");
|
|
250
250
|
try {
|
|
251
|
-
if (tryRuntimeFastLaneSync(instance, result))
|
|
252
|
-
host.warnUnusedStateReads(instance);
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
251
|
+
if (tryRuntimeFastLaneSync(instance, result)) return;
|
|
255
252
|
} catch (err) {
|
|
256
253
|
if (isDevelopmentEnvironment()) throw err;
|
|
257
254
|
}
|
|
@@ -267,7 +264,6 @@ function runScheduledComponent(instance, host) {
|
|
|
267
264
|
function commitPlaceholderReplacement(instance, result, host) {
|
|
268
265
|
if (result === null || result === void 0) {
|
|
269
266
|
host.finalizeReadSubscriptions(instance);
|
|
270
|
-
host.warnUnusedStateReads(instance);
|
|
271
267
|
host.commitRenderedComponent(instance);
|
|
272
268
|
return;
|
|
273
269
|
}
|
|
@@ -303,7 +299,6 @@ function commitPlaceholderReplacement(instance, result, host) {
|
|
|
303
299
|
}
|
|
304
300
|
instance._placeholder = void 0;
|
|
305
301
|
host.finalizeReadSubscriptions(instance);
|
|
306
|
-
host.warnUnusedStateReads(instance);
|
|
307
302
|
host.commitRenderedComponent(instance);
|
|
308
303
|
flushLifecycleCommitBatch(lifecycleBatch);
|
|
309
304
|
} finally {
|
|
@@ -342,7 +337,6 @@ function commitToTarget(instance, result, host) {
|
|
|
342
337
|
restoreDomCommitScope(oldInstance);
|
|
343
338
|
}
|
|
344
339
|
host.finalizeReadSubscriptions(instance);
|
|
345
|
-
host.warnUnusedStateReads(instance);
|
|
346
340
|
instance.mounted = true;
|
|
347
341
|
commitLifecycleForInstance(instance, wasFirstMount);
|
|
348
342
|
flushLifecycleCommitBatch(lifecycleBatch);
|
|
@@ -400,7 +394,6 @@ function ensurePendingRunTask(instance) {
|
|
|
400
394
|
runScheduledComponent(instance, {
|
|
401
395
|
execute: executeComponentSync,
|
|
402
396
|
finalizeReadSubscriptions,
|
|
403
|
-
warnUnusedStateReads,
|
|
404
397
|
commitRenderedComponent
|
|
405
398
|
});
|
|
406
399
|
};
|
|
@@ -539,20 +532,6 @@ function renderComponentInline(instance) {
|
|
|
539
532
|
restoreInlineComponentScope(scopeSnapshot);
|
|
540
533
|
}
|
|
541
534
|
}
|
|
542
|
-
function warnUnusedStateReads(instance) {
|
|
543
|
-
const stateValues = instance.stateValues;
|
|
544
|
-
if (!stateValues) return;
|
|
545
|
-
for (let i = 0; i < stateValues.length; i++) {
|
|
546
|
-
const state = stateValues[i];
|
|
547
|
-
const hasCommittedUsage = (state?._readers?.size ?? 0) > 0 || (state?._derivedSubscribers?.size ?? 0) > 0;
|
|
548
|
-
if (state && !state._hasBeenRead && !state._hasEverBeenRead && !hasCommittedUsage) try {
|
|
549
|
-
const name = instance.fn?.name || "<anonymous>";
|
|
550
|
-
warnInstanceOnce(instance, `unused-state:${i}`, `[askr] Unused state variable detected in ${name} at index ${i}. State should be read during render or removed.`);
|
|
551
|
-
} catch {
|
|
552
|
-
warnInstanceOnce(instance, `unused-state:${i}`, `[askr] Unused state variable detected. State should be read during render or removed.`);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
535
|
function executeComponentSync(instance) {
|
|
557
536
|
resetRenderState(instance);
|
|
558
537
|
const savedPortalScope = enterComponentExecutionScope(instance);
|
|
@@ -603,4 +582,4 @@ function warnInstanceOnce(instance, key, message) {
|
|
|
603
582
|
logger.warn(message);
|
|
604
583
|
}
|
|
605
584
|
//#endregion
|
|
606
|
-
export {
|
|
585
|
+
export { registerCommitOperation as a, callWithContext as c, getExecutionContextFrame as d, getVNodeContextFrame as f, withContext as g, withAsyncResourceContext as h, mountInstanceInline as i, defineScope as l, readScope as m, createComponentInstance as n, renderComponentInline as o, markVNodeTreeWithContextFrame as p, executeComponent as r, renderScopedComponent as s, captureInlineRenderSnapshot as t, getCurrentContextFrame as u };
|
|
@@ -1,6 +1,35 @@
|
|
|
1
|
-
import { b as isDevelopmentEnvironment, v as logger } from "./access-Bg4RJNC8.js";
|
|
1
|
+
import { b as isDevelopmentEnvironment, v as logger, x as isProductionEnvironment } from "./access-Bg4RJNC8.js";
|
|
2
2
|
import { a as cleanupReadableSubscriptions, c as finalizeReadableSubscriptionsFromSnapshot, i as cleanupReadableSubscriptionSources, t as isBulkCommitActive } from "./fastlane-Dw8SOBr9.js";
|
|
3
3
|
import { a as clearCurrentComponentScope, y as restoreCurrentComponentScope } from "./component-scope-CC3cojX9.js";
|
|
4
|
+
//#region src/runtime/state-diagnostics.ts
|
|
5
|
+
/**
|
|
6
|
+
* Report state cells that were never read during a component's completed
|
|
7
|
+
* lifetime. A branch that has not rendered yet is not evidence that its state
|
|
8
|
+
* is unused, so this diagnostic belongs at unmount rather than every commit.
|
|
9
|
+
*/
|
|
10
|
+
function warnUnusedStateReads(instance) {
|
|
11
|
+
if (isProductionEnvironment() || !instance.mounted) return;
|
|
12
|
+
const stateValues = instance.stateValues;
|
|
13
|
+
if (!stateValues) return;
|
|
14
|
+
for (let i = 0; i < stateValues.length; i++) {
|
|
15
|
+
const state = stateValues[i];
|
|
16
|
+
const diagnosticEligible = state?._unusedStateDiagnosticEligible;
|
|
17
|
+
const hasCommittedUsage = (state?._readers?.size ?? 0) > 0 || (state?._derivedSubscribers?.size ?? 0) > 0;
|
|
18
|
+
if (state && diagnosticEligible !== false && !state._hasEverBeenRead && !hasCommittedUsage) {
|
|
19
|
+
const warnings = instance.devWarningsEmitted ??= /* @__PURE__ */ new Set();
|
|
20
|
+
const key = `unused-state:${i}`;
|
|
21
|
+
if (warnings.has(key)) continue;
|
|
22
|
+
warnings.add(key);
|
|
23
|
+
try {
|
|
24
|
+
const name = instance.fn?.name || "<anonymous>";
|
|
25
|
+
logger.warn(`[askr] Unused state variable detected in ${name} at index ${i}. State should be read during render or removed.`);
|
|
26
|
+
} catch {
|
|
27
|
+
logger.warn("[askr] Unused state variable detected. State should be read during render or removed.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
4
33
|
//#region src/runtime/component-cleanup.ts
|
|
5
34
|
/**
|
|
6
35
|
* Component cleanup and owned child-scope bookkeeping.
|
|
@@ -55,6 +84,7 @@ function cleanupComponentGeneration(instance, generation) {
|
|
|
55
84
|
function cleanupComponent(instance) {
|
|
56
85
|
const savedScope = clearCurrentComponentScope();
|
|
57
86
|
try {
|
|
87
|
+
warnUnusedStateReads(instance);
|
|
58
88
|
const cleanupErrors = instance.cleanupStrict ? [] : void 0;
|
|
59
89
|
const recordCleanupError = (message, err) => {
|
|
60
90
|
if (cleanupErrors) cleanupErrors.push(err);
|
package/dist/control/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as For, n as Match, r as Show, t as Case } from "../control-
|
|
1
|
+
import { i as For, n as Match, r as Show, t as Case } from "../control-09vfq-H_.js";
|
|
2
2
|
export { Case, For, Match, Show };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as markEagerControlPrimitive, t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
|
|
2
2
|
import { b as isDevelopmentEnvironment } from "./access-Bg4RJNC8.js";
|
|
3
3
|
import { n as Fragment } from "./jsx-CUpRxrLH.js";
|
|
4
|
-
import { m as createShowState, p as createCaseState, s as useForState } from "./for-internal-
|
|
4
|
+
import { m as createShowState, p as createCaseState, s as useForState } from "./for-internal-DDiDGhR2.js";
|
|
5
5
|
import { t as createFineGrainedEffect } from "./effect-BwnIvLah.js";
|
|
6
|
-
import { t as state } from "./state-
|
|
6
|
+
import { t as state } from "./state-zZmOu_06.js";
|
|
7
7
|
//#region src/control/shared.ts
|
|
8
8
|
function normalizeBoundaryChild(value) {
|
|
9
9
|
if (Array.isArray(value)) {
|
package/dist/data/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as getDefaultDataRuntime, t as createDataRuntime } from "../data-runtime-SJ1BSUvk.js";
|
|
2
|
-
import { a as queryScope, i as invalidateOnInterval, n as createMutation, r as invalidate, t as createQuery } from "../data-
|
|
2
|
+
import { a as queryScope, i as invalidateOnInterval, n as createMutation, r as invalidate, t as createQuery } from "../data-DBuZBv-V.js";
|
|
3
3
|
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery, t as createQueryPrefetchContext } from "../query-registry-CQIT4mXr.js";
|
|
4
4
|
export { createDataRuntime, createMutation, createQuery, createQueryPrefetchContext, defineQuery, defineServerQueries, dehydrateDataRuntime, getDefaultDataRuntime, hydrateDataRuntime, invalidate, invalidateOnInterval, prefetchQuery, queryScope, serveQuery };
|
|
@@ -2,7 +2,7 @@ import { n as enqueueRuntimeTask, v as logger } from "./access-Bg4RJNC8.js";
|
|
|
2
2
|
import { f as notifyReadableReaders, l as markReactivePropsDirtySource, p as recordReadableRead, u as markReadableDerivedSubscribersDirty } from "./fastlane-Dw8SOBr9.js";
|
|
3
3
|
import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-CC3cojX9.js";
|
|
4
4
|
import { n as getActiveRenderContext } from "./render-context-Clw3rFiO.js";
|
|
5
|
-
import { c as windowFocused, i as routeActive, n as documentVisible, s as timer } from "./lifecycle-operations-
|
|
5
|
+
import { c as windowFocused, i as routeActive, n as documentVisible, s as timer } from "./lifecycle-operations-OLgdNomp.js";
|
|
6
6
|
import { a as getMutationSlotStore, c as resolveDataRuntimeState, i as getDefaultDataRuntime, n as ensureMutationCleanup, o as getQuerySlotStore, r as ensureQueryCleanup, s as invalidateQueriesForRuntime } from "./data-runtime-SJ1BSUvk.js";
|
|
7
7
|
//#region src/data/query-key.ts
|
|
8
8
|
function serializeQueryKeyNumber(part) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as defineScope, m as readScope } from "./component-internal-S_ILK7MY.js";
|
|
3
3
|
import { d as getCurrentAppRenderRuntime } from "./component-scope-CC3cojX9.js";
|
|
4
|
-
import { m as isPromiseLike } from "./component-lifecycle-
|
|
4
|
+
import { m as isPromiseLike } from "./component-lifecycle-DFyfmw6H.js";
|
|
5
5
|
import { n as getActiveRenderContext, r as getCurrentRenderData } from "./render-context-Clw3rFiO.js";
|
|
6
|
-
import { t as resource } from "./resource-operation-
|
|
6
|
+
import { t as resource } from "./resource-operation-BrvPPJDO.js";
|
|
7
7
|
import { t as ROUTE_ROOT_COMPONENT } from "./router-internal-BC0w1_xk.js";
|
|
8
8
|
import { c as withTelemetry, t as createQueryPrefetchContext } from "./query-registry-CQIT4mXr.js";
|
|
9
9
|
import { E as getRouteRecords, h as getActiveRouteAuthOptions, i as getMatchingRouteRecord, o as buildRouteContext, s as buildRouteContextBase } from "./route-matching-vJpvLVbX.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as _isDOMElement } from "./vnode-D24p6IW2.js";
|
|
2
2
|
import { b as isDevelopmentEnvironment, o as getRuntimeRenderer, v as logger } from "./access-Bg4RJNC8.js";
|
|
3
3
|
import { f as notifyReadableReaders, l as markReactivePropsDirtySource, m as shouldCoalesceFineGrainedItemReads, p as recordReadableRead, u as markReadableDerivedSubscribersDirty } from "./fastlane-Dw8SOBr9.js";
|
|
4
|
-
import { n as createComponentInstance, s as renderScopedComponent } from "./component-internal-
|
|
4
|
+
import { n as createComponentInstance, s as renderScopedComponent } from "./component-internal-S_ILK7MY.js";
|
|
5
5
|
import { h as getCurrentStateIndex, i as claimHookIndex, o as clearRenderTracking, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
|
-
import { _ as registerOwnedChildScope, c as finalizeInlineReadSubscriptions, f as registerLifecycleTransaction, h as cleanupComponent, v as unregisterOwnedChildScope } from "./component-lifecycle-
|
|
6
|
+
import { _ as registerOwnedChildScope, c as finalizeInlineReadSubscriptions, f as registerLifecycleTransaction, h as cleanupComponent, v as unregisterOwnedChildScope } from "./component-lifecycle-DFyfmw6H.js";
|
|
7
7
|
//#region src/runtime/child-scope.ts
|
|
8
8
|
const EMPTY_CHILD_SCOPE_PROPS = {};
|
|
9
9
|
const childScopesByInstance = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as definePortal, n as Portal, t as DefaultPortal } from "../portal-
|
|
1
|
+
import { i as definePortal, n as Portal, t as DefaultPortal } from "../portal-CH-lRprN.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,3 +1,3 @@
|
|
|
1
|
-
import { i as definePortal, n as Portal, t as DefaultPortal } from "../../portal-
|
|
1
|
+
import { i as definePortal, n as Portal, t as DefaultPortal } from "../../portal-CH-lRprN.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/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-Bg4RJNC8.js";
|
|
2
2
|
import { f as notifyReadableReaders, g as withDerivedReadTracking, h as syncDerivedDependencySubscriptions, l as markReactivePropsDirtySource, o as clearDerivedDependencySubscriptions, p as recordReadableRead, u as markReadableDerivedSubscribersDirty } from "./fastlane-Dw8SOBr9.js";
|
|
3
3
|
import { n as Fragment } from "./jsx-CUpRxrLH.js";
|
|
4
|
-
import {
|
|
4
|
+
import { l as defineScope, m as readScope } from "./component-internal-S_ILK7MY.js";
|
|
5
5
|
import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
6
|
import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
7
|
-
import { t as installRendererBridge } from "./renderer-
|
|
8
|
-
import { t as state } from "./state-
|
|
7
|
+
import { t as installRendererBridge } from "./renderer-BxEuzC3X.js";
|
|
8
|
+
import { t as state } from "./state-zZmOu_06.js";
|
|
9
9
|
import { t as selector } from "./selector-DafVYzV4.js";
|
|
10
10
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
11
|
-
import { i as For, n as Match, r as Show, t as Case } from "./control-
|
|
12
|
-
import { t as createQuery } from "./data-
|
|
11
|
+
import { i as For, n as Match, r as Show, t as Case } from "./control-09vfq-H_.js";
|
|
12
|
+
import { t as createQuery } from "./data-DBuZBv-V.js";
|
|
13
13
|
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-CQIT4mXr.js";
|
|
14
14
|
//#region src/runtime/derive.ts
|
|
15
15
|
const deriveCells = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as registerCommitOperation } from "./component-internal-
|
|
1
|
+
import { a as registerCommitOperation } from "./component-internal-S_ILK7MY.js";
|
|
2
2
|
import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-CC3cojX9.js";
|
|
3
3
|
import { t as isRouteActivityActive } from "./route-activity-CNJfpwx-.js";
|
|
4
4
|
//#region src/runtime/lifecycle-operations.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-Bg4RJNC8.js";
|
|
2
2
|
import { f as notifyReadableReaders, i as cleanupReadableSubscriptionSources, l as markReactivePropsDirtySource, p as recordReadableRead, u as markReadableDerivedSubscribersDirty } from "./fastlane-Dw8SOBr9.js";
|
|
3
3
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
4
|
-
import { r as executeComponent } from "./component-internal-
|
|
4
|
+
import { r as executeComponent } from "./component-internal-S_ILK7MY.js";
|
|
5
5
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
|
-
import { g as cleanupComponentGeneration, h as cleanupComponent, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, o as discardLifecycleCommitBatch, s as drainLifecycleCommitErrors } from "./component-lifecycle-
|
|
7
|
-
import { _ as teardownNodeSubtree } from "./cleanup-
|
|
6
|
+
import { g as cleanupComponentGeneration, h as cleanupComponent, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, o as discardLifecycleCommitBatch, s as drainLifecycleCommitErrors } from "./component-lifecycle-DFyfmw6H.js";
|
|
7
|
+
import { _ as teardownNodeSubtree } from "./cleanup-Br2t23wI.js";
|
|
8
8
|
import { n as getActiveRenderContext } from "./render-context-Clw3rFiO.js";
|
|
9
9
|
import { n as syncRouteActivitySnapshot } from "./route-activity-CNJfpwx-.js";
|
|
10
|
-
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-
|
|
10
|
+
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-CH-lRprN.js";
|
|
11
11
|
import { A as insertRecordSorted, C as getCurrentPathPrefix, D as getRoutes, E as getRouteRecords, F as snapshotRouteState, I as computeRank, L as normalizeRouteSegmentName, M as pushRegistrationScope, N as restoreRouteState, O as hasActivePageScope, P as setDefaultRouteAuthOptions, R as parseSegments, S as getCurrentPageScope, T as getDefaultRouteAuthOptions, _ as getCurrentInheritedAuthRequirements, a as resolveRouteFromRoutes, b as getCurrentLayoutChain, c as deepFreeze, f as addRouteToStores, g as getActiveRoutes, j as lockRouteRegistration, l as makeQuery, m as clearRouteState, n as computeMatchesFromRoutes, p as assertRouteRegistrationUnlocked, r as computeRouteActivityMatches, u as parseLocation, v as getCurrentInheritedMeta, w as getCurrentScopeKind, x as getCurrentPageChain, y as getCurrentInheritedPolicies } from "./route-matching-vJpvLVbX.js";
|
|
12
|
-
import { d as hasRouteRenderData, f as resolveRouteRequest, l as getRouteRenderContext, u as getRouteRenderData, x as _preloadRouteHandler, y as createRouteHandler } from "./deferred-
|
|
12
|
+
import { d as hasRouteRenderData, f as resolveRouteRequest, l as getRouteRenderContext, u as getRouteRenderData, x as _preloadRouteHandler, y as createRouteHandler } from "./deferred-DaOJ2Wbe.js";
|
|
13
13
|
import { allOf } from "@askrjs/auth";
|
|
14
14
|
//#region src/runtime/execution-model.ts
|
|
15
15
|
const EXECUTION_MODEL_KEY = Symbol.for("__ASKR_EXECUTION_MODEL__");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as getRuntimeRenderer } from "./access-Bg4RJNC8.js";
|
|
2
2
|
import { f as notifyReadableReaders, l as markReactivePropsDirtySource, p as recordReadableRead, u as markReadableDerivedSubscribersDirty } from "./fastlane-Dw8SOBr9.js";
|
|
3
3
|
import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-CC3cojX9.js";
|
|
4
|
-
import { f as registerLifecycleTransaction, h as cleanupComponent, u as getCurrentLifecycleCommitBatch } from "./component-lifecycle-
|
|
4
|
+
import { f as registerLifecycleTransaction, h as cleanupComponent, u as getCurrentLifecycleCommitBatch } from "./component-lifecycle-DFyfmw6H.js";
|
|
5
5
|
//#region src/runtime/portal.ts
|
|
6
6
|
function createPortalSlot() {
|
|
7
7
|
let currentValue;
|
|
@@ -3,12 +3,12 @@ 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-Bg4RJNC8.js";
|
|
4
4
|
import { n as markFastPathApplied, t as isBulkCommitActive } from "./fastlane-Dw8SOBr9.js";
|
|
5
5
|
import { n as Fragment, r as STATIC_CHILDREN } from "./jsx-CUpRxrLH.js";
|
|
6
|
-
import {
|
|
6
|
+
import { f as getVNodeContextFrame, g as withContext, i as mountInstanceInline, n as createComponentInstance, o as renderComponentInline, p as markVNodeTreeWithContextFrame, t as captureInlineRenderSnapshot, u as getCurrentContextFrame } from "./component-internal-S_ILK7MY.js";
|
|
7
7
|
import { b as restoreDomCommitScope, c as enterDomCommitScope, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
8
|
-
import { d as registerLifecycleRollback, f as registerLifecycleTransaction, h as cleanupComponent, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, o as discardLifecycleCommitBatch, u as getCurrentLifecycleCommitBatch } from "./component-lifecycle-
|
|
9
|
-
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-
|
|
8
|
+
import { d as registerLifecycleRollback, f as registerLifecycleTransaction, h as cleanupComponent, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, o as discardLifecycleCommitBatch, u as getCurrentLifecycleCommitBatch } from "./component-lifecycle-DFyfmw6H.js";
|
|
9
|
+
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-DDiDGhR2.js";
|
|
10
10
|
import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-BwnIvLah.js";
|
|
11
|
-
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-
|
|
11
|
+
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-Br2t23wI.js";
|
|
12
12
|
import { t as getPublicAttributeName } from "./attr-names-CjhzmHOn.js";
|
|
13
13
|
import { t as ROUTE_ROOT_COMPONENT } from "./router-internal-BC0w1_xk.js";
|
|
14
14
|
//#region src/runtime/error-boundary.ts
|
|
@@ -5030,7 +5030,6 @@ function resolveHostNestedComponentResult(host, retainedInstance, result, snapsh
|
|
|
5030
5030
|
const nextResult = withContext(nestedSnapshot ?? null, () => renderComponentInline(nestedInstance));
|
|
5031
5031
|
if (isPromiseLike(nextResult)) throw new Error("Async components are not supported. Components must return synchronously.");
|
|
5032
5032
|
retainedInstances.add(nestedInstance);
|
|
5033
|
-
warnUnusedStateReads(nestedInstance);
|
|
5034
5033
|
activeSnapshot = nestedSnapshot ?? null;
|
|
5035
5034
|
currentResult = markVNodeTreeWithContextFrame(nextResult, activeSnapshot);
|
|
5036
5035
|
depth += 1;
|
|
@@ -5071,7 +5070,6 @@ function resolveWrapperHostResult(host, result, snapshot, retainedInstances) {
|
|
|
5071
5070
|
const nextResult = withContext(nestedSnapshot ?? null, () => renderComponentInline(nestedInstance));
|
|
5072
5071
|
if (isPromiseLike(nextResult)) throw new Error("Async components are not supported. Components must return synchronously.");
|
|
5073
5072
|
retainedInstances.add(nestedInstance);
|
|
5074
|
-
warnUnusedStateReads(nestedInstance);
|
|
5075
5073
|
activeSnapshot = nestedSnapshot ?? null;
|
|
5076
5074
|
currentResult = nextResult;
|
|
5077
5075
|
depth += 1;
|
|
@@ -5111,7 +5109,6 @@ function syncComponentElement(currentDom, node, type, props, parentNamespace, fo
|
|
|
5111
5109
|
});
|
|
5112
5110
|
mountInstanceInline(hydrationInstance, existingHost);
|
|
5113
5111
|
itemInstanceHydrationComplete(existingHost);
|
|
5114
|
-
warnUnusedStateReads(hydrationInstance);
|
|
5115
5112
|
return existingHost;
|
|
5116
5113
|
}
|
|
5117
5114
|
const resolvedResult = resolveHostNestedComponentResult(existingHost, hydrationInstance, scopedResult, snapshot ?? null, liveRetainedInstances);
|
|
@@ -5122,15 +5119,12 @@ function syncComponentElement(currentDom, node, type, props, parentNamespace, fo
|
|
|
5122
5119
|
});
|
|
5123
5120
|
mountInstanceInline(hydrationInstance, existingHost);
|
|
5124
5121
|
itemInstanceHydrationComplete(existingHost);
|
|
5125
|
-
warnUnusedStateReads(hydrationInstance);
|
|
5126
5122
|
return existingHost;
|
|
5127
5123
|
}
|
|
5128
|
-
|
|
5124
|
+
return replacement.replace(() => materializeComponentResultNode(hydrationInstance, scopedResult, parentNamespace), (replacement) => {
|
|
5129
5125
|
if (replacement instanceof Element) materializeKey(replacement, node, props);
|
|
5130
5126
|
retainReplacementOwnerChain(replacement, hydrationInstance, liveRetainedInstances);
|
|
5131
5127
|
});
|
|
5132
|
-
warnUnusedStateReads(hydrationInstance);
|
|
5133
|
-
return nextDom;
|
|
5134
5128
|
} catch (error) {
|
|
5135
5129
|
restoreVNodeComponentInstance(node, previousVNodeInstance);
|
|
5136
5130
|
if (!hydrationInstance.mounted) cleanupProvisionalComponentInstance(hydrationInstance);
|
|
@@ -5154,7 +5148,6 @@ function syncComponentElement(currentDom, node, type, props, parentNamespace, fo
|
|
|
5154
5148
|
if (existingHost instanceof Element && existingHost.__ASKR_WRAPPER_HOST) {
|
|
5155
5149
|
const wrapperResult = resolveWrapperHostResult(existingHost, scopedResult, snapshot ?? null, liveRetainedInstances);
|
|
5156
5150
|
domHost.updateElementChildren(existingHost, normalizeComponentChildren(wrapperResult));
|
|
5157
|
-
warnUnusedStateReads(existingInstance);
|
|
5158
5151
|
return existingHost;
|
|
5159
5152
|
}
|
|
5160
5153
|
if (existingHost instanceof Element && scopedResult && typeof scopedResult === "object" && "type" in scopedResult && typeof scopedResult.type === "string" && tagNamesEqualIgnoreCase$1(existingHost.tagName, scopedResult.type)) {
|
|
@@ -5162,7 +5155,6 @@ function syncComponentElement(currentDom, node, type, props, parentNamespace, fo
|
|
|
5162
5155
|
domHost.updateElementFromVnode(existingHost, inheritComponentKey(scopedResult, node), true, forceChildrenUpdate || existingInstance.mounted === false);
|
|
5163
5156
|
materializeKey(existingHost, node, props);
|
|
5164
5157
|
});
|
|
5165
|
-
warnUnusedStateReads(existingInstance);
|
|
5166
5158
|
return existingHost;
|
|
5167
5159
|
}
|
|
5168
5160
|
const resolvedResult = resolveHostNestedComponentResult(existingHost, existingInstance, scopedResult, snapshot ?? null, liveRetainedInstances);
|
|
@@ -5172,7 +5164,6 @@ function syncComponentElement(currentDom, node, type, props, parentNamespace, fo
|
|
|
5172
5164
|
instance.target = null;
|
|
5173
5165
|
instance._placeholder = existingHost;
|
|
5174
5166
|
}
|
|
5175
|
-
warnUnusedStateReads(existingInstance);
|
|
5176
5167
|
return existingHost;
|
|
5177
5168
|
}
|
|
5178
5169
|
if (existingHost instanceof Element && _isDOMElement(resolvedResult) && typeof resolvedResult.type === "string" && tagNamesEqualIgnoreCase$1(existingHost.tagName, resolvedResult.type)) {
|
|
@@ -5180,15 +5171,12 @@ function syncComponentElement(currentDom, node, type, props, parentNamespace, fo
|
|
|
5180
5171
|
domHost.updateElementFromVnode(existingHost, inheritComponentKey(resolvedResult, node), true, forceChildrenUpdate || existingInstance.mounted === false);
|
|
5181
5172
|
materializeKey(existingHost, node, props);
|
|
5182
5173
|
});
|
|
5183
|
-
warnUnusedStateReads(existingInstance);
|
|
5184
5174
|
return existingHost;
|
|
5185
5175
|
}
|
|
5186
|
-
|
|
5176
|
+
return replacement.replace(() => materializeComponentResultNode(existingInstance, scopedResult, parentNamespace), (replacement) => {
|
|
5187
5177
|
if (replacement instanceof Element) materializeKey(replacement, node, props);
|
|
5188
5178
|
retainReplacementOwnerChain(replacement, existingInstance, liveRetainedInstances);
|
|
5189
5179
|
});
|
|
5190
|
-
warnUnusedStateReads(existingInstance);
|
|
5191
|
-
return nextDom;
|
|
5192
5180
|
}
|
|
5193
5181
|
function retainReplacementOwnerChain(host, owner, retainedInstances) {
|
|
5194
5182
|
const componentHost = host;
|
|
@@ -5229,7 +5217,6 @@ function createComponentElement(node, type, props, parentNamespace) {
|
|
|
5229
5217
|
if (isPromiseLike(result)) throw new Error("Async components are not supported. Components must return synchronously.");
|
|
5230
5218
|
const scopedResult = markVNodeTreeWithContextFrame(result, snapshot ?? null);
|
|
5231
5219
|
const dom = snapshot ? withContext(snapshot, () => materializeComponentResultNode(childInstance, scopedResult, parentNamespace)) : materializeComponentResultNode(childInstance, scopedResult, parentNamespace);
|
|
5232
|
-
warnUnusedStateReads(childInstance);
|
|
5233
5220
|
if (dom instanceof Element) materializeFreshKey(dom, node, props);
|
|
5234
5221
|
return dom;
|
|
5235
5222
|
} catch (error) {
|
|
@@ -5375,8 +5362,6 @@ function tryPatchStableForDirtyItem(scope) {
|
|
|
5375
5362
|
const nextIntrinsic = resolveStableIntrinsicPatchVNode(scope.dom, scope.vnode);
|
|
5376
5363
|
if (!nextIntrinsic) return false;
|
|
5377
5364
|
const didPatch = patchStableIntrinsicElement(scope.dom, nextIntrinsic);
|
|
5378
|
-
const existingInstance = scope.dom.__ASKR_INSTANCE;
|
|
5379
|
-
if (didPatch && existingInstance) warnUnusedStateReads(existingInstance);
|
|
5380
5365
|
if (didPatch);
|
|
5381
5366
|
return didPatch;
|
|
5382
5367
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as enqueueRuntimeLane, v as logger } from "./access-Bg4RJNC8.js";
|
|
2
|
-
import {
|
|
2
|
+
import { h as withAsyncResourceContext, u as getCurrentContextFrame } from "./component-internal-S_ILK7MY.js";
|
|
3
3
|
import { f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
4
|
-
import { m as isPromiseLike, r as registerCommitOperationForInstance } from "./component-lifecycle-
|
|
4
|
+
import { m as isPromiseLike, r as registerCommitOperationForInstance } from "./component-lifecycle-DFyfmw6H.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-
|
|
7
|
+
import { t as state } from "./state-zZmOu_06.js";
|
|
8
8
|
//#region src/runtime/resource-cell.ts
|
|
9
9
|
/**
|
|
10
10
|
* Pure, component-agnostic ResourceCell state machine.
|
package/dist/resources/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { g as getSignal } from "../component-scope-CC3cojX9.js";
|
|
2
|
-
import { t as resource } from "../resource-operation-
|
|
3
|
-
import { a as stream, c as windowFocused, i as routeActive, n as documentVisible, o as task, r as on, s as timer, t as capture } from "../lifecycle-operations-
|
|
2
|
+
import { t as resource } from "../resource-operation-BrvPPJDO.js";
|
|
3
|
+
import { a as stream, c as windowFocused, i as routeActive, n as documentVisible, o as task, r as on, s as timer, t as capture } from "../lifecycle-operations-OLgdNomp.js";
|
|
4
4
|
export { capture, documentVisible, getSignal, on, resource, routeActive, stream, task, timer, windowFocused };
|
package/dist/router/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as route, _ as fallback, a as resolveRouteMeta, b as page, d as clearRoutes, f as createRouteRegistry, i as reconcileRouteMeta, m as currentRoute, n as navigate, o as serializeRouteMeta, p as getManifest, r as updateRouteQuery, v as group, x as registerRoutes, y as index } from "../navigate-
|
|
1
|
+
import { S as route, _ as fallback, a as resolveRouteMeta, b as page, d as clearRoutes, f as createRouteRegistry, i as reconcileRouteMeta, m as currentRoute, n as navigate, o as serializeRouteMeta, p as getManifest, r as updateRouteQuery, v as group, x as registerRoutes, y as index } from "../navigate-zzFcn4zk.js";
|
|
2
2
|
import { jsx } from "../jsx-runtime.js";
|
|
3
3
|
import { D as getRoutes } from "../route-matching-vJpvLVbX.js";
|
|
4
|
-
import { S as lazy, a as resolveDeferredValues, f as resolveRouteRequest, i as isDeferred, n as Resolve, p as currentAuth, r as defer, s as routeData, v as Outlet } from "../deferred-
|
|
4
|
+
import { S as lazy, a as resolveDeferredValues, f as resolveRouteRequest, i as isDeferred, n as Resolve, p as currentAuth, r as defer, s as routeData, v as Outlet } from "../deferred-DaOJ2Wbe.js";
|
|
5
5
|
import { o as mergeProps } from "../compose-ref-Cc_YkUpM.js";
|
|
6
6
|
import { t as applyInteractionPolicy } from "../interactions-w7gQN4ha.js";
|
|
7
7
|
//#region src/router/policy.ts
|
package/dist/ssg/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../access-Bg4RJNC8.js";
|
|
2
|
-
import { a as resolveDeferredValues, b as getRenderHandler, c as bindResolvedRouteData } from "../deferred-
|
|
2
|
+
import { a as resolveDeferredValues, b as getRenderHandler, c as bindResolvedRouteData } from "../deferred-DaOJ2Wbe.js";
|
|
3
3
|
import { n as renderDocument } from "../ssr-CbQO5xd3.js";
|
|
4
|
-
import { n as renderToString } from "../ssr-
|
|
4
|
+
import { n as renderToString } from "../ssr-DPN09YB2.js";
|
|
5
5
|
import * as fs from "node:fs/promises";
|
|
6
6
|
import * as pathModule from "node:path";
|
|
7
7
|
import * as os from "node:os";
|
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-
|
|
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-DPN09YB2.js";
|
|
3
3
|
export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
|
|
@@ -2,17 +2,17 @@ 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-Bg4RJNC8.js";
|
|
4
4
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
5
|
-
import {
|
|
5
|
+
import { c as callWithContext, d as getExecutionContextFrame, f as getVNodeContextFrame, n as createComponentInstance, p as markVNodeTreeWithContextFrame } from "./component-internal-S_ILK7MY.js";
|
|
6
6
|
import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
7
|
-
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-
|
|
8
|
-
import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-
|
|
7
|
+
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-DFyfmw6H.js";
|
|
8
|
+
import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-DDiDGhR2.js";
|
|
9
9
|
import { c as stopRenderPhase$1, o as startRenderPhase$1, t as configureRenderContextProvider, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
|
|
10
|
-
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-
|
|
10
|
+
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-CH-lRprN.js";
|
|
11
11
|
import { t as getPublicAttributeName } from "./attr-names-CjhzmHOn.js";
|
|
12
12
|
import { t as createDataRuntime } from "./data-runtime-SJ1BSUvk.js";
|
|
13
13
|
import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-CQIT4mXr.js";
|
|
14
14
|
import { a as resolveRouteFromRoutes, t as _resolveRouteMatchFromRoutes } from "./route-matching-vJpvLVbX.js";
|
|
15
|
-
import { f as resolveRouteRequest, g as isPageRenderEnvelope, h as isEmptyPageRenderEnvelope, i as isDeferred, m as createPageRenderEnvelope, t as DEFERRED_BOUNDARY, x as _preloadRouteHandler } from "./deferred-
|
|
15
|
+
import { f as resolveRouteRequest, g as isPageRenderEnvelope, h as isEmptyPageRenderEnvelope, i as isDeferred, m as createPageRenderEnvelope, t as DEFERRED_BOUNDARY, x as _preloadRouteHandler } from "./deferred-DaOJ2Wbe.js";
|
|
16
16
|
import { n as renderDocument, t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
17
17
|
//#region src/ssr/escape.ts
|
|
18
18
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { x as isProductionEnvironment } from "./access-Bg4RJNC8.js";
|
|
1
2
|
import { f as notifyReadableReaders, l as markReactivePropsDirtySource, p as recordReadableRead, t as isBulkCommitActive, u as markReadableDerivedSubscribersDirty } from "./fastlane-Dw8SOBr9.js";
|
|
2
3
|
import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
3
4
|
//#region src/runtime/state.ts
|
|
@@ -66,6 +67,7 @@ function createStateCell(initialValue, instance) {
|
|
|
66
67
|
return value;
|
|
67
68
|
}
|
|
68
69
|
read._readers = readers;
|
|
70
|
+
read._unusedStateDiagnosticEligible = !isProductionEnvironment();
|
|
69
71
|
read._owner = instance;
|
|
70
72
|
read.set = (newValueOrUpdater) => {
|
|
71
73
|
if (getCurrentInstance() !== null) throw new Error("[Askr] state.set() cannot be called during component render. State mutations during render break the actor model and cause infinite loops. Move state updates to event handlers or use conditional rendering instead.");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
2
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync } from "./ssr-DPN09YB2.js";
|
|
3
3
|
//#region src/ssr/verify-hydration.ts
|
|
4
4
|
function normalizeHydrationHtml(html) {
|
|
5
5
|
const template = document.createElement("template");
|