@askrjs/askr 0.0.55 → 0.0.56
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.d.ts +1 -1
- package/dist/benchmark.js +5 -5
- package/dist/boot/index.d.ts +2 -2
- package/dist/boot/index.js +1 -1
- package/dist/{boot-2ZR3MtO0.js → boot-ylKadz_Y.js} +6 -6
- package/dist/{component-internal-D9PLuFUc.js → component-internal-NdN_bJ2-.js} +1 -9
- 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-mXROCjL3.js → control-BJmonrpE.js} +2 -3
- package/dist/{control-BI4RMD2z.d.ts → control-D-9LKE3W.d.ts} +0 -1
- package/dist/data/index.js +1 -1
- package/dist/{data-B9dauyDn.js → data-0sDU9_HU.js} +3 -2
- package/dist/{deferred-DklLG4qM.js → deferred-C-mkQ9J1.js} +2 -2
- package/dist/{for-internal-CSz8Unkq.js → for-internal-cNhKHMBB.js} +2 -2
- package/dist/foundations/index.d.ts +1 -1
- package/dist/foundations/state/index.d.ts +1 -1
- package/dist/foundations/structures/index.d.ts +1 -1
- package/dist/{index-Zb31mCiU.d.ts → index-4jSsebbI.d.ts} +1 -1
- package/dist/{index-B1LNotpU.d.ts → index-BRjBZbDy.d.ts} +1 -1
- package/dist/{index-DwxdIA-t.d.ts → index-DdkXZQEM.d.ts} +1 -1
- package/dist/{index-C8iW3xCt.d.ts → index-YLt-Qg_P.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/{lifecycle-operations-CdRjdsHo.js → lifecycle-operations-BR8-AOly.js} +1 -1
- package/dist/{navigate-D17eVQyI.js → navigate-Nh4ibPyt.js} +3 -3
- package/dist/{renderer-DrLRAD5y.js → renderer-CJFgcaun.js} +18 -17
- package/dist/{resource-operation-BNY29MVH.js → resource-operation-CUAUBhUB.js} +1 -1
- package/dist/resources/index.js +2 -2
- package/dist/router/index.d.ts +2 -2
- package/dist/router/index.js +2 -2
- package/dist/{router-DCfwLBr-.d.ts → router-DGbBBIB-.d.ts} +2 -2
- package/dist/ssg/index.d.ts +2 -2
- package/dist/ssg/index.js +2 -2
- package/dist/ssr/index.d.ts +2 -2
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-DEARZxJ5.js → ssr-rvWGTg-y.js} +12 -7
- package/dist/testing/index.d.ts +1 -1
- package/dist/{verify-hydration-BWwu-mWu.js → verify-hydration-BfINbTwe.js} +1 -1
- package/dist/{vnode-CGMJYPMB.js → vnode-D24p6IW2.js} +1 -3
- package/package.json +1 -1
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as action, i as ActionValidationError, n as ActionForm, o as defineAction, r as ActionStatus, t as ActionDescriptor } from "../index-
|
|
1
|
+
import { a as action, i as ActionValidationError, n as ActionForm, o as defineAction, r as ActionStatus, t as ActionDescriptor } from "../index-YLt-Qg_P.js";
|
|
2
2
|
export { ActionDescriptor, ActionForm, ActionStatus, ActionValidationError, action, defineAction };
|
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-
|
|
2
|
+
import { t as installRendererBridge } from "./renderer-CJFgcaun.js";
|
|
3
3
|
import { t as state } from "./state-DPl8lffD.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-BJmonrpE.js";
|
|
7
|
+
import { t as createIsland } from "./boot-ylKadz_Y.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.56",
|
|
67
|
+
buildLabel: "0.0.56-local"
|
|
68
68
|
};
|
|
69
69
|
function getBenchmarkMetadata() {
|
|
70
70
|
return { ...benchmarkMetadata };
|
package/dist/boot/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as ComponentFunction } from "../control-
|
|
1
|
+
import { s as ComponentFunction } from "../control-D-9LKE3W.js";
|
|
2
2
|
import { v as DataRuntime } from "../index-Bki2rqcr.js";
|
|
3
|
-
import { P as RouteRegistry, m as RouteAuthOptions, p as Route, x as RouteManifest } from "../router-
|
|
3
|
+
import { P as RouteRegistry, m as RouteAuthOptions, p as Route, x as RouteManifest } from "../router-DGbBBIB-.js";
|
|
4
4
|
import { d as ScrollRestorationOptions } from "../navigate-BVDCzOuB.js";
|
|
5
5
|
|
|
6
6
|
//#region src/boot/types.d.ts
|
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-ylKadz_Y.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
|
|
3
|
+
import { n as createComponentInstance, r as executeComponent } from "./component-internal-NdN_bJ2-.js";
|
|
4
4
|
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-C7lnU9Bt.js";
|
|
5
|
-
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-
|
|
5
|
+
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-CJFgcaun.js";
|
|
6
6
|
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-DScKZG2i.js";
|
|
7
|
-
import { D as assertExecutionModel, E as route, a as resolveRouteMeta, b as createAppRenderRuntime, c as registerAppInstance, d as clearRoutes, g as _snapshotRouteSourceLazy, h as _snapshotLazy, i as reconcileRouteMeta, l as unregisterAppInstance, m as _drainLazy, s as configureScrollRestoration, t as initializeNavigation, u as _applyManifest, y as setServerLocation } from "./navigate-
|
|
7
|
+
import { D as assertExecutionModel, E as route, a as resolveRouteMeta, b as createAppRenderRuntime, c as registerAppInstance, d as clearRoutes, g as _snapshotRouteSourceLazy, h as _snapshotLazy, i as reconcileRouteMeta, l as unregisterAppInstance, m as _drainLazy, s as configureScrollRestoration, t as initializeNavigation, u as _applyManifest, y as setServerLocation } from "./navigate-Nh4ibPyt.js";
|
|
8
8
|
import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
|
|
9
9
|
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-C47xkwXj.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 } from "./deferred-
|
|
13
|
+
import { _ as pageRenderEnvelope, d as hasRouteRenderData, f as resolveRouteRequest, l as getRouteRenderContext, o as reviveDeferredValue, u as getRouteRenderData } from "./deferred-C-mkQ9J1.js";
|
|
14
14
|
import "./ssr-CbQO5xd3.js";
|
|
15
15
|
//#region src/boot/hydration.ts
|
|
16
16
|
const DEFERRED_PAYLOAD = "__askr_deferred__";
|
|
@@ -329,7 +329,7 @@ function mountOrUpdate(rootElement, componentFn, options) {
|
|
|
329
329
|
registerRootCleanupCallback(rootElement, () => {
|
|
330
330
|
disposeDefaultPortalScope(instance.portalScope ?? instance);
|
|
331
331
|
});
|
|
332
|
-
|
|
332
|
+
executeComponent(instance);
|
|
333
333
|
flushRuntimeScheduler();
|
|
334
334
|
}
|
|
335
335
|
/** @internal Activate one deferred boundary without rerunning its root. */
|
|
@@ -601,7 +601,7 @@ async function hydrateSPA(config) {
|
|
|
601
601
|
handler: r.handler,
|
|
602
602
|
namespace: r.options.namespace
|
|
603
603
|
})) : routeTable;
|
|
604
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
604
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-BfINbTwe.js");
|
|
605
605
|
if (!verifyHydrationSyncForUrl({
|
|
606
606
|
root: rootElement,
|
|
607
607
|
url: currentUrl,
|
|
@@ -595,14 +595,6 @@ function executeComponent(instance) {
|
|
|
595
595
|
function finalizeReadSubscriptions(instance) {
|
|
596
596
|
finalizeReadableSubscriptions(instance);
|
|
597
597
|
}
|
|
598
|
-
/**
|
|
599
|
-
* Mount a component instance.
|
|
600
|
-
* This is just an alias to executeComponent() to maintain API compatibility.
|
|
601
|
-
* All lifecycle logic is unified in executeComponent().
|
|
602
|
-
*/
|
|
603
|
-
function mountComponent(instance) {
|
|
604
|
-
executeComponent(instance);
|
|
605
|
-
}
|
|
606
598
|
function warnInstanceOnce(instance, key, message) {
|
|
607
599
|
if (isProductionEnvironment()) return;
|
|
608
600
|
const warnings = instance.devWarningsEmitted ??= /* @__PURE__ */ new Set();
|
|
@@ -611,4 +603,4 @@ function warnInstanceOnce(instance, key, message) {
|
|
|
611
603
|
logger.warn(message);
|
|
612
604
|
}
|
|
613
605
|
//#endregion
|
|
614
|
-
export { withContext as _, registerCommitOperation as a, warnUnusedStateReads as c, getCurrentContextFrame as d, getExecutionContextFrame as f, withAsyncResourceContext as g, readScope as h, mountInstanceInline as i, callWithContext as l, markVNodeTreeWithContextFrame as m, createComponentInstance as n, renderComponentInline as o, getVNodeContextFrame as p,
|
|
606
|
+
export { withContext as _, registerCommitOperation as a, warnUnusedStateReads as c, getCurrentContextFrame as d, getExecutionContextFrame as f, withAsyncResourceContext as g, readScope as h, mountInstanceInline as i, callWithContext as l, markVNodeTreeWithContextFrame as m, createComponentInstance as n, renderComponentInline as o, getVNodeContextFrame as p, executeComponent as r, renderScopedComponent as s, captureInlineRenderSnapshot as t, defineScope as u };
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __ERROR_BOUNDARY__ } from "../vnode-
|
|
1
|
+
import { t as __ERROR_BOUNDARY__ } from "../vnode-D24p6IW2.js";
|
|
2
2
|
import { t as ELEMENT_TYPE } from "../jsx-CUpRxrLH.js";
|
|
3
3
|
import { f as getCurrentComponentInstance } from "../component-scope-CC3cojX9.js";
|
|
4
4
|
//#region src/components/error-boundary.tsx
|
package/dist/control/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-DdkXZQEM.js";
|
|
2
2
|
export { Case, type CaseProps, For, type ForProps, Match, type MatchProps, Show, type ShowProps };
|
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-BJmonrpE.js";
|
|
2
2
|
export { Case, For, Match, Show };
|
|
@@ -1,7 +1,7 @@
|
|
|
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-cNhKHMBB.js";
|
|
5
5
|
import { t as createFineGrainedEffect } from "./effect-BwnIvLah.js";
|
|
6
6
|
import { t as state } from "./state-DPl8lffD.js";
|
|
7
7
|
//#region src/control/shared.ts
|
|
@@ -66,8 +66,7 @@ function createForBoundary(props) {
|
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
68
|
type: __CONTROL_BOUNDARY__,
|
|
69
|
-
_controlState: forState
|
|
70
|
-
_forState: forState
|
|
69
|
+
_controlState: forState
|
|
71
70
|
};
|
|
72
71
|
}
|
|
73
72
|
function ForPrimitive(props) {
|
|
@@ -93,7 +93,6 @@ interface DOMElement {
|
|
|
93
93
|
key?: string | number | null;
|
|
94
94
|
[Symbol.iterator]?: never;
|
|
95
95
|
_controlState?: ControlBoundaryState;
|
|
96
|
-
_forState?: ForState<unknown>;
|
|
97
96
|
}
|
|
98
97
|
type VNode = DOMElement | string | number | boolean | null | undefined;
|
|
99
98
|
type RenderableChild = VNode | JSXElement | readonly RenderableChild[];
|
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-0sDU9_HU.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-BR8-AOly.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) {
|
|
@@ -286,7 +286,7 @@ var QueryCell = class {
|
|
|
286
286
|
}
|
|
287
287
|
getDefinitionConflicts(options) {
|
|
288
288
|
const conflicts = [];
|
|
289
|
-
if (this.options.fetch !== options.fetch) conflicts.push("fetch");
|
|
289
|
+
if ((this.options.definitionIdentity ?? this.options.fetch) !== (options.definitionIdentity ?? options.fetch)) conflicts.push("fetch");
|
|
290
290
|
if (this.options.isConsistent !== options.isConsistent) conflicts.push("isConsistent");
|
|
291
291
|
if (this.options.reconcile !== options.reconcile) conflicts.push("reconcile");
|
|
292
292
|
return conflicts;
|
|
@@ -540,6 +540,7 @@ function createDefinedQuery(definition, input, options = {}) {
|
|
|
540
540
|
return createLegacyQuery({
|
|
541
541
|
...options,
|
|
542
542
|
key,
|
|
543
|
+
definitionIdentity: definition,
|
|
543
544
|
fetch: ({ signal }) => definition.fetch({
|
|
544
545
|
...input,
|
|
545
546
|
signal
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
2
|
-
import { h as readScope, u as defineScope } from "./component-internal-
|
|
2
|
+
import { h as readScope, u as defineScope } from "./component-internal-NdN_bJ2-.js";
|
|
3
3
|
import { d as getCurrentAppRenderRuntime } from "./component-scope-CC3cojX9.js";
|
|
4
4
|
import { m as isPromiseLike } from "./component-lifecycle-C7lnU9Bt.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-CUAUBhUB.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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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-NdN_bJ2-.js";
|
|
5
5
|
import { h as getCurrentStateIndex, i as claimHookIndex, o as clearRenderTracking, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
6
|
import { _ as registerOwnedChildScope, c as finalizeInlineReadSubscriptions, f as registerLifecycleTransaction, h as cleanupComponent, v as unregisterOwnedChildScope } from "./component-lifecycle-C7lnU9Bt.js";
|
|
7
7
|
//#region src/runtime/child-scope.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as JSXElement } from "../jsx-CP0gmYwJ.js";
|
|
2
|
-
import { _ as definePortal, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, l as PresenceProps, m as DefaultPortal, p as layout, u as Slot } from "../index-
|
|
2
|
+
import { _ as definePortal, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, l as PresenceProps, m as DefaultPortal, p as layout, u as Slot } from "../index-BRjBZbDy.js";
|
|
3
3
|
export { DefaultPortal, type JSXElement, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, definePortal, layout };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as JSXElement } from "../../jsx-CP0gmYwJ.js";
|
|
2
|
-
import { _ as definePortal, a as Collection, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, i as createLayer, l as PresenceProps, m as DefaultPortal, n as LayerManager, o as CollectionItem, p as layout, r as LayerOptions, s as createCollection, t as Layer, u as Slot } from "../../index-
|
|
2
|
+
import { _ as definePortal, a as Collection, c as Presence, d as SlotProps, f as LayoutComponent, g as PortalProps, h as Portal, i as createLayer, l as PresenceProps, m as DefaultPortal, n as LayerManager, o as CollectionItem, p as layout, r as LayerOptions, s as createCollection, t as Layer, u as Slot } from "../../index-BRjBZbDy.js";
|
|
3
3
|
export { type Collection, type CollectionItem, DefaultPortal, type JSXElement, type Layer, type LayerManager, type LayerOptions, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, createCollection, createLayer, definePortal, layout };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReadableSource, r as ComponentInstance } from "./control-
|
|
1
|
+
import { n as ReadableSource, r as ComponentInstance } from "./control-D-9LKE3W.js";
|
|
2
2
|
import { t as Scheduler } from "./scheduler-CmLO4Dfm.js";
|
|
3
3
|
//#region src/runtime/runtime.d.ts
|
|
4
4
|
interface RuntimeKeyedReorderDecision {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RenderableChild } from "./control-
|
|
1
|
+
import { c as RenderableChild } from "./control-D-9LKE3W.js";
|
|
2
2
|
import { r as JSXElement } from "./jsx-CP0gmYwJ.js";
|
|
3
3
|
//#region src/runtime/portal.d.ts
|
|
4
4
|
interface Portal<T extends RenderableChild = RenderableChild> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-
|
|
1
|
+
import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-D-9LKE3W.js";
|
|
2
2
|
import { r as JSXElement } from "./jsx-CP0gmYwJ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/control/shared.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as state, a as defineScope, g as StateTuple, h as StateSetter, i as Scope, m as State, o as readScope } from "./control-
|
|
1
|
+
import { _ as state, a as defineScope, g as StateTuple, h as StateSetter, i as Scope, m as State, o as readScope } from "./control-D-9LKE3W.js";
|
|
2
2
|
import { s as Props, t as Fragment } from "./jsx-CP0gmYwJ.js";
|
|
3
3
|
import { t as getSignal } from "./component-scope-CvPba6O6.js";
|
|
4
|
-
import { a as AskrRuntime, c as RuntimeRendererHost, i as derive, l as createRuntime, n as selector, o as AskrRuntimeOptions, r as Derived, s as RuntimeKeyedReorderDecision, t as Selector, u as getDefaultRuntime } from "./index-
|
|
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-
|
|
4
|
+
import { a as AskrRuntime, c as RuntimeRendererHost, i as derive, l as createRuntime, n as selector, o as AskrRuntimeOptions, r as Derived, s as RuntimeKeyedReorderDecision, t as Selector, u as getDefaultRuntime } from "./index-4jSsebbI.js";
|
|
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-DdkXZQEM.js";
|
|
6
6
|
import { i as jsxs, n as jsx } from "./jsx-runtime-92bV2hSa.js";
|
|
7
7
|
import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, g as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-Bki2rqcr.js";
|
|
8
8
|
export { AskrRuntime, type AskrRuntimeOptions, Case, type CaseProps, type DataRuntime, type Derived, For, type ForProps, Fragment, Match, type MatchProps, type Props, type QueryDefinition, type QueryPrefetchContext, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, createQuery, createRuntime, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, selector, serveQuery, state };
|
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 { h as readScope, u as defineScope } from "./component-internal-
|
|
4
|
+
import { h as readScope, u as defineScope } from "./component-internal-NdN_bJ2-.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-
|
|
7
|
+
import { t as installRendererBridge } from "./renderer-CJFgcaun.js";
|
|
8
8
|
import { t as state } from "./state-DPl8lffD.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-BJmonrpE.js";
|
|
12
|
+
import { t as createQuery } from "./data-0sDU9_HU.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-NdN_bJ2-.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,7 +1,7 @@
|
|
|
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
|
|
4
|
+
import { r as executeComponent } from "./component-internal-NdN_bJ2-.js";
|
|
5
5
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
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-C7lnU9Bt.js";
|
|
7
7
|
import { _ as teardownNodeSubtree } from "./cleanup-DScKZG2i.js";
|
|
@@ -9,7 +9,7 @@ import { n as getActiveRenderContext } from "./render-context-Clw3rFiO.js";
|
|
|
9
9
|
import { n as syncRouteActivitySnapshot } from "./route-activity-CNJfpwx-.js";
|
|
10
10
|
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-C47xkwXj.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, y as createRouteHandler } from "./deferred-
|
|
12
|
+
import { d as hasRouteRenderData, f as resolveRouteRequest, l as getRouteRenderContext, u as getRouteRenderData, y as createRouteHandler } from "./deferred-C-mkQ9J1.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__");
|
|
@@ -1033,7 +1033,7 @@ function remountResolvedRoute(instance, resolved, pathname, href, existingSnapsh
|
|
|
1033
1033
|
instance._pendingReadSources = void 0;
|
|
1034
1034
|
instance._lastReadSources = void 0;
|
|
1035
1035
|
instance.abortController = null;
|
|
1036
|
-
|
|
1036
|
+
executeComponent(instance);
|
|
1037
1037
|
setCurrentRouteLocation(pathname, href);
|
|
1038
1038
|
return deferredCleanup;
|
|
1039
1039
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
|
|
2
|
+
import { n as _isDOMElement, t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
|
|
2
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";
|
|
3
4
|
import { n as markFastPathApplied, t as isBulkCommitActive } from "./fastlane-Dw8SOBr9.js";
|
|
4
5
|
import { n as Fragment, r as STATIC_CHILDREN } from "./jsx-CUpRxrLH.js";
|
|
5
|
-
import { _ as withContext, c as warnUnusedStateReads, d as getCurrentContextFrame, i as mountInstanceInline, m as markVNodeTreeWithContextFrame, n as createComponentInstance, o as renderComponentInline, p as getVNodeContextFrame, t as captureInlineRenderSnapshot } from "./component-internal-
|
|
6
|
+
import { _ as withContext, c as warnUnusedStateReads, d as getCurrentContextFrame, i as mountInstanceInline, m as markVNodeTreeWithContextFrame, n as createComponentInstance, o as renderComponentInline, p as getVNodeContextFrame, t as captureInlineRenderSnapshot } from "./component-internal-NdN_bJ2-.js";
|
|
6
7
|
import { b as restoreDomCommitScope, c as enterDomCommitScope, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
7
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-C7lnU9Bt.js";
|
|
8
|
-
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-
|
|
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-cNhKHMBB.js";
|
|
9
10
|
import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-BwnIvLah.js";
|
|
10
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-DScKZG2i.js";
|
|
11
12
|
import { t as getPublicAttributeName } from "./attr-names-CjhzmHOn.js";
|
|
@@ -1626,11 +1627,11 @@ function isComponentVNode(child) {
|
|
|
1626
1627
|
return typeof child === "object" && child !== null && "type" in child && typeof child.type === "function";
|
|
1627
1628
|
}
|
|
1628
1629
|
function isControlBoundaryVNode$1(child) {
|
|
1629
|
-
return typeof child === "object" && child !== null && "type" in child && child.type ===
|
|
1630
|
+
return typeof child === "object" && child !== null && "type" in child && child.type === __CONTROL_BOUNDARY__;
|
|
1630
1631
|
}
|
|
1631
1632
|
function prepareControlBoundaryResolution(child) {
|
|
1632
1633
|
if (!isControlBoundaryVNode$1(child)) return null;
|
|
1633
|
-
const controlState = child._controlState
|
|
1634
|
+
const controlState = child._controlState;
|
|
1634
1635
|
if (!controlState) return null;
|
|
1635
1636
|
if (controlState.kind === "for") {
|
|
1636
1637
|
const childrenVNodes = evaluateControlBoundaryChildren(controlState);
|
|
@@ -1739,7 +1740,7 @@ function warnMissingKeys(children) {
|
|
|
1739
1740
|
let elementCount = 0;
|
|
1740
1741
|
let hasKeys = false;
|
|
1741
1742
|
for (const item of children) if (typeof item === "object" && item !== null && "type" in item) {
|
|
1742
|
-
if (item.type ===
|
|
1743
|
+
if (item.type === __CONTROL_BOUNDARY__) continue;
|
|
1743
1744
|
elementCount += 1;
|
|
1744
1745
|
if ((item.key ?? item.props?.key) !== void 0) {
|
|
1745
1746
|
hasKeys = true;
|
|
@@ -2564,7 +2565,7 @@ function hasKeyedVNodeChildren(children) {
|
|
|
2564
2565
|
return false;
|
|
2565
2566
|
}
|
|
2566
2567
|
function isControlBoundaryVNode(child) {
|
|
2567
|
-
return _isDOMElement(child) && child.type ===
|
|
2568
|
+
return _isDOMElement(child) && child.type === __CONTROL_BOUNDARY__;
|
|
2568
2569
|
}
|
|
2569
2570
|
function removeRangeAtCursor(parent, cursor) {
|
|
2570
2571
|
if (!isRangeStart(cursor)) return cursor;
|
|
@@ -3605,7 +3606,7 @@ function reconcileUnkeyed(parent, children) {
|
|
|
3605
3606
|
keyedElements.delete(parent);
|
|
3606
3607
|
}
|
|
3607
3608
|
function updateForBoundaryChildren(element, forVnode) {
|
|
3608
|
-
const controlState = forVnode._controlState
|
|
3609
|
+
const controlState = forVnode._controlState;
|
|
3609
3610
|
if (!controlState) return;
|
|
3610
3611
|
commitForBoundaryChildren(element, controlState, controlState.kind === "for" ? evaluateForState(controlState) : controlState.kind === "show" ? evaluateShowState(controlState) : evaluateCaseState(controlState));
|
|
3611
3612
|
}
|
|
@@ -3621,7 +3622,7 @@ function updateElementChildren(element, vnodeChildren, cleanupRangeNode) {
|
|
|
3621
3622
|
keyedElements.delete(element);
|
|
3622
3623
|
return;
|
|
3623
3624
|
}
|
|
3624
|
-
if (!Array.isArray(vnodeChildren) && _isDOMElement(vnodeChildren) && vnodeChildren.type ===
|
|
3625
|
+
if (!Array.isArray(vnodeChildren) && _isDOMElement(vnodeChildren) && vnodeChildren.type === __CONTROL_BOUNDARY__) {
|
|
3625
3626
|
updateForBoundaryChildren(element, vnodeChildren);
|
|
3626
3627
|
return;
|
|
3627
3628
|
}
|
|
@@ -3641,7 +3642,7 @@ function updateElementChildren(element, vnodeChildren, cleanupRangeNode) {
|
|
|
3641
3642
|
keyedElements.delete(element);
|
|
3642
3643
|
return;
|
|
3643
3644
|
}
|
|
3644
|
-
if (vnodeChildren.length === 1 && _isDOMElement(vnodeChildren[0]) && vnodeChildren[0].type ===
|
|
3645
|
+
if (vnodeChildren.length === 1 && _isDOMElement(vnodeChildren[0]) && vnodeChildren[0].type === __CONTROL_BOUNDARY__) {
|
|
3645
3646
|
updateForBoundaryChildren(element, vnodeChildren[0]);
|
|
3646
3647
|
return;
|
|
3647
3648
|
}
|
|
@@ -3664,7 +3665,7 @@ function applySmartUpdateElement(element, vnode, cleanupRangeNode) {
|
|
|
3664
3665
|
if (existingKey !== void 0) vnode.key = existingKey;
|
|
3665
3666
|
}
|
|
3666
3667
|
let vnodeChildren = vnode.props?.children ?? vnode.children;
|
|
3667
|
-
if (vnodeChildren && _isDOMElement(vnodeChildren) && vnodeChildren.type ===
|
|
3668
|
+
if (vnodeChildren && _isDOMElement(vnodeChildren) && vnodeChildren.type === __CONTROL_BOUNDARY__) {
|
|
3668
3669
|
updateElementChildren(element, vnodeChildren, cleanupRangeNode);
|
|
3669
3670
|
domHost.updateElementFromVnode(element, vnode, false);
|
|
3670
3671
|
return;
|
|
@@ -4333,11 +4334,11 @@ function clearControlBoundaryDomUpdateState(controlState) {
|
|
|
4333
4334
|
clearCaseDomUpdateState(controlState);
|
|
4334
4335
|
}
|
|
4335
4336
|
function getControlBoundaryState(node) {
|
|
4336
|
-
return node._controlState ??
|
|
4337
|
+
return node._controlState ?? null;
|
|
4337
4338
|
}
|
|
4338
4339
|
function getDirectControlBoundaryVNode(children) {
|
|
4339
|
-
if (!Array.isArray(children) && _isDOMElement(children) && children.type ===
|
|
4340
|
-
if (Array.isArray(children) && children.length === 1 && _isDOMElement(children[0]) && children[0].type ===
|
|
4340
|
+
if (!Array.isArray(children) && _isDOMElement(children) && children.type === __CONTROL_BOUNDARY__) return children;
|
|
4341
|
+
if (Array.isArray(children) && children.length === 1 && _isDOMElement(children[0]) && children[0].type === __CONTROL_BOUNDARY__) return children[0];
|
|
4341
4342
|
return null;
|
|
4342
4343
|
}
|
|
4343
4344
|
function getControlBoundaryCommitChildren(controlState) {
|
|
@@ -4538,7 +4539,7 @@ function commitForBoundaryChildren(parent, controlState, childrenVNodes) {
|
|
|
4538
4539
|
});
|
|
4539
4540
|
}
|
|
4540
4541
|
function trySyncControlBoundaryChild(parent, currentNode, next) {
|
|
4541
|
-
if (next.type !==
|
|
4542
|
+
if (next.type !== __CONTROL_BOUNDARY__) return false;
|
|
4542
4543
|
const controlState = getControlBoundaryState(next);
|
|
4543
4544
|
if (!controlState || controlState.kind === "for") return false;
|
|
4544
4545
|
const childrenVNodes = evaluateControlBoundaryState(controlState);
|
|
@@ -5934,7 +5935,7 @@ function createDOMNode(node, parentNamespace) {
|
|
|
5934
5935
|
const props = node.props || {};
|
|
5935
5936
|
if (typeof type === "string") return createIntrinsicElement(node, type, props, parentNamespace);
|
|
5936
5937
|
if (typeof type === "function") return createComponentElement(node, type, props, parentNamespace);
|
|
5937
|
-
if (type ===
|
|
5938
|
+
if (type === __CONTROL_BOUNDARY__) return createForBoundary(node, props, parentNamespace);
|
|
5938
5939
|
if (type === __ERROR_BOUNDARY__) return createErrorBoundaryElement(node, props, parentNamespace);
|
|
5939
5940
|
if (typeof type === "symbol" && (type === Fragment || String(type) === "Symbol(Fragment)")) return createFragmentElement(node, props, parentNamespace);
|
|
5940
5941
|
}
|
|
@@ -6193,7 +6194,7 @@ function evaluateInLifecycleBatch(node, target, context, retainedOwner) {
|
|
|
6193
6194
|
return;
|
|
6194
6195
|
}
|
|
6195
6196
|
}
|
|
6196
|
-
if (_isDOMElement(vnode) && vnode.type ===
|
|
6197
|
+
if (_isDOMElement(vnode) && vnode.type === __CONTROL_BOUNDARY__) {
|
|
6197
6198
|
updateForBoundaryChildren(target, vnode);
|
|
6198
6199
|
return;
|
|
6199
6200
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as enqueueRuntimeLane, v as logger } from "./access-Bg4RJNC8.js";
|
|
2
|
-
import { d as getCurrentContextFrame, g as withAsyncResourceContext } from "./component-internal-
|
|
2
|
+
import { d as getCurrentContextFrame, g as withAsyncResourceContext } from "./component-internal-NdN_bJ2-.js";
|
|
3
3
|
import { f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
4
4
|
import { m as isPromiseLike, r as registerCommitOperationForInstance } from "./component-lifecycle-C7lnU9Bt.js";
|
|
5
5
|
import { t as brandSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
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-CUAUBhUB.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-BR8-AOly.js";
|
|
4
4
|
export { capture, documentVisible, getSignal, on, resource, routeActive, stream, task, timer, windowFocused };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as RenderableChild } from "../control-
|
|
1
|
+
import { c as RenderableChild } from "../control-D-9LKE3W.js";
|
|
2
2
|
import { r as JSXElement, s as Props } from "../jsx-CP0gmYwJ.js";
|
|
3
|
-
import { A as RouteQuery, B as RouteSnapshot, C as RouteMeta, D as RouteParams, E as RouteOptions, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRef, N as RouteRefSearch, O as RoutePathParams, P as RouteRegistry, R as RouteSearch, S as RouteMatch, T as RouteMode, _ as RouteContext, a as AccessRedirectDecision, b as RouteHandler, c as LayoutScopeRecord, d as ParsedSegment, f as RegisterRoutesOptions, g as RouteComponent, h as RouteAuthResolver, i as AccessDenyStatus, j as RouteRecord, k as RoutePolicy, l as PageHelperOptions, m as RouteAuthOptions, n as AccessDecision, o as AccessRedirectStatus, p as Route, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDefinition, w as RouteMetaSource, x as RouteManifest, y as RouteDestination, z as RouteSearchValue } from "../router-
|
|
3
|
+
import { A as RouteQuery, B as RouteSnapshot, C as RouteMeta, D as RouteParams, E as RouteOptions, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRef, N as RouteRefSearch, O as RoutePathParams, P as RouteRegistry, R as RouteSearch, S as RouteMatch, T as RouteMode, _ as RouteContext, a as AccessRedirectDecision, b as RouteHandler, c as LayoutScopeRecord, d as ParsedSegment, f as RegisterRoutesOptions, g as RouteComponent, h as RouteAuthResolver, i as AccessDenyStatus, j as RouteRecord, k as RoutePolicy, l as PageHelperOptions, m as RouteAuthOptions, n as AccessDecision, o as AccessRedirectStatus, p as Route, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDefinition, w as RouteMetaSource, x as RouteManifest, y as RouteDestination, z as RouteSearchValue } from "../router-DGbBBIB-.js";
|
|
4
4
|
import { a as RouteQueryUpdates, c as NavigateOptions, d as ScrollRestorationOptions, i as RouteQueryUpdater, l as HistoryScrollBehavior, n as RouteQueryParamInput, o as UpdateRouteQueryOptions, r as RouteQueryParamValue, s as updateRouteQuery, t as navigate, u as NavigationScrollBehavior } from "../navigate-BVDCzOuB.js";
|
|
5
5
|
import { AuthContext, AuthContext as AuthContext$1, AuthRequirement, AuthRequirement as AuthRequirement$1 } from "@askrjs/auth";
|
|
6
6
|
import { ObjectSchema } from "@askrjs/schema";
|
package/dist/router/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as index, E as route, S as group, T as registerRoutes, _ as lazy, a as resolveRouteMeta, d as clearRoutes, f as createRouteRegistry, i as reconcileRouteMeta, n as navigate, o as serializeRouteMeta, p as getManifest, r as updateRouteQuery, v as currentRoute, w as page, x as fallback } from "../navigate-
|
|
1
|
+
import { C as index, E as route, S as group, T as registerRoutes, _ as lazy, a as resolveRouteMeta, d as clearRoutes, f as createRouteRegistry, i as reconcileRouteMeta, n as navigate, o as serializeRouteMeta, p as getManifest, r as updateRouteQuery, v as currentRoute, w as page, x as fallback } from "../navigate-Nh4ibPyt.js";
|
|
2
2
|
import { jsx } from "../jsx-runtime.js";
|
|
3
3
|
import { D as getRoutes } from "../route-matching-vJpvLVbX.js";
|
|
4
|
-
import { 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 { 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-C-mkQ9J1.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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as RenderableChild } from "./control-
|
|
1
|
+
import { c as RenderableChild } from "./control-D-9LKE3W.js";
|
|
2
2
|
import { D as QueryPrefetchContext, u as CoreTelemetry } from "./index-Bki2rqcr.js";
|
|
3
|
-
import { t as ActionDescriptor } from "./index-
|
|
3
|
+
import { t as ActionDescriptor } from "./index-YLt-Qg_P.js";
|
|
4
4
|
import { AuthContext, AuthRequirement } from "@askrjs/auth";
|
|
5
5
|
import { InferSchema, ObjectSchema } from "@askrjs/schema";
|
|
6
6
|
|
package/dist/ssg/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, s as ComponentFunction, u as DocumentRenderArgs } from "../control-
|
|
2
|
-
import { E as RouteOptions, O as RoutePathParams, P as RouteRegistry, b as RouteHandler, k as RoutePolicy } from "../router-
|
|
1
|
+
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, s as ComponentFunction, u as DocumentRenderArgs } from "../control-D-9LKE3W.js";
|
|
2
|
+
import { E as RouteOptions, O as RoutePathParams, P as RouteRegistry, b as RouteHandler, k as RoutePolicy } from "../router-DGbBBIB-.js";
|
|
3
3
|
import { AuthRequirement } from "@askrjs/auth";
|
|
4
4
|
//#region src/ssg/types.d.ts
|
|
5
5
|
type SSGMode = 'full' | 'incremental';
|
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-C-mkQ9J1.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-rvWGTg-y.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.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-
|
|
1
|
+
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-D-9LKE3W.js";
|
|
2
2
|
import { r as JSXElement, s as Props } from "../jsx-CP0gmYwJ.js";
|
|
3
3
|
import { D as QueryPrefetchContext, n as ServerQueryRegistry, u as CoreTelemetry, v as DataRuntime } from "../index-Bki2rqcr.js";
|
|
4
|
-
import { L as RouteRequestResult, P as RouteRegistry, a as AccessRedirectDecision, b as RouteHandler, j as RouteRecord, m as RouteAuthOptions, p as Route, r as AccessDenyDecision, x as RouteManifest } from "../router-
|
|
4
|
+
import { L as RouteRequestResult, P as RouteRegistry, a as AccessRedirectDecision, b as RouteHandler, j as RouteRecord, m as RouteAuthOptions, p as Route, r as AccessDenyDecision, x as RouteManifest } from "../router-DGbBBIB-.js";
|
|
5
5
|
import { AuthContext } from "@askrjs/auth";
|
|
6
6
|
|
|
7
7
|
//#region src/common/page-render-envelope.d.ts
|
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-rvWGTg-y.js";
|
|
3
3
|
export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
|
|
2
|
-
import { t as __ERROR_BOUNDARY__ } from "./vnode-
|
|
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 { f as getExecutionContextFrame, l as callWithContext, m as markVNodeTreeWithContextFrame, n as createComponentInstance, p as getVNodeContextFrame } from "./component-internal-
|
|
5
|
+
import { f as getExecutionContextFrame, l as callWithContext, m as markVNodeTreeWithContextFrame, n as createComponentInstance, p as getVNodeContextFrame } from "./component-internal-NdN_bJ2-.js";
|
|
6
6
|
import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
7
7
|
import { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-C7lnU9Bt.js";
|
|
8
|
-
import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-
|
|
8
|
+
import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-cNhKHMBB.js";
|
|
9
9
|
import { c as stopRenderPhase$1, o as startRenderPhase$1, t as configureRenderContextProvider, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
|
|
10
10
|
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-C47xkwXj.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 } from "./deferred-
|
|
15
|
+
import { f as resolveRouteRequest, g as isPageRenderEnvelope, h as isEmptyPageRenderEnvelope, i as isDeferred, m as createPageRenderEnvelope, t as DEFERRED_BOUNDARY } from "./deferred-C-mkQ9J1.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
|
/**
|
|
@@ -771,8 +771,7 @@ function resolveErrorBoundaryFallbackNode(fallback, error, reset) {
|
|
|
771
771
|
return typeof fallback === "function" ? fallback(error, reset) : fallback !== void 0 ? fallback : createDefaultErrorBoundaryFallbackVNode(error);
|
|
772
772
|
}
|
|
773
773
|
function getControlBoundaryState(node) {
|
|
774
|
-
|
|
775
|
-
return boundaryNode._controlState ?? boundaryNode._forState ?? null;
|
|
774
|
+
return node._controlState ?? null;
|
|
776
775
|
}
|
|
777
776
|
function evaluateControlBoundaryChildren(node) {
|
|
778
777
|
if (node.type !== __CONTROL_BOUNDARY__) return;
|
|
@@ -915,6 +914,12 @@ function serializeHydrationRenderData(data, runtime) {
|
|
|
915
914
|
}
|
|
916
915
|
//#endregion
|
|
917
916
|
//#region src/ssr/render-keys.ts
|
|
917
|
+
/**
|
|
918
|
+
* SSR Data Management
|
|
919
|
+
*
|
|
920
|
+
* Manages render-phase keying for deterministic SSR data lookup.
|
|
921
|
+
* All state is stored in the per-render context for concurrency safety.
|
|
922
|
+
*/
|
|
918
923
|
function startRenderPhase(data) {
|
|
919
924
|
startRenderPhase$1(data === null ? null : isPageRenderEnvelope(data) ? data : createPageRenderEnvelope({ resources: data }));
|
|
920
925
|
}
|
|
@@ -938,7 +943,7 @@ function isMultiRangeChild(child) {
|
|
|
938
943
|
return (getRenderableChildren(vnode)?.length ?? 0) !== 1;
|
|
939
944
|
}
|
|
940
945
|
function renderControlChildrenSync(node, ctx) {
|
|
941
|
-
const controlState = node._controlState
|
|
946
|
+
const controlState = node._controlState;
|
|
942
947
|
return withControlBoundaryChildren(node, (children) => {
|
|
943
948
|
const values = children ?? [];
|
|
944
949
|
if (controlState?.kind === "for") return values.map((child) => {
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Query, k as QueryStaleReason } from "../index-Bki2rqcr.js";
|
|
2
|
-
import { S as RouteMatch, p as Route, x as RouteManifest } from "../router-
|
|
2
|
+
import { S as RouteMatch, p as Route, x as RouteManifest } from "../router-DGbBBIB-.js";
|
|
3
3
|
|
|
4
4
|
//#region src/testing/index.d.ts
|
|
5
5
|
type MockRefresh = () => void | Promise<void>;
|
|
@@ -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-rvWGTg-y.js";
|
|
3
3
|
//#region src/ssr/verify-hydration.ts
|
|
4
4
|
function normalizeHydrationHtml(html) {
|
|
5
5
|
const template = document.createElement("template");
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
|
|
2
1
|
//#region src/common/vnode.ts
|
|
3
2
|
const __ERROR_BOUNDARY__ = Symbol.for("askr.error-boundary");
|
|
4
|
-
const __FOR_BOUNDARY__ = __CONTROL_BOUNDARY__;
|
|
5
3
|
function _isDOMElement(node) {
|
|
6
4
|
return typeof node === "object" && node !== null && "type" in node;
|
|
7
5
|
}
|
|
8
6
|
//#endregion
|
|
9
|
-
export {
|
|
7
|
+
export { _isDOMElement as n, __ERROR_BOUNDARY__ as t };
|