@askrjs/askr 0.0.89 → 0.0.91
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 +2 -2
- package/dist/{activity-CQKEAORw.js → activity-dKH6nlpj.js} +2 -2
- package/dist/benchmark.js +3 -3
- package/dist/boot/index.js +1 -1
- package/dist/{boot-CrbszDjZ.js → boot-D3zVVWuN.js} +9 -9
- package/dist/data/index.js +3 -3
- package/dist/{data-BmZC1kDn.js → data-Bh_3OETq.js} +2 -2
- package/dist/{data-runtime-SC6zzAwh.js → data-runtime-wbooGyu7.js} +1 -1
- package/dist/{deferred-Bh-nZhZF.js → deferred-D6nZaIPs.js} +5 -5
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/structures/index.js +1 -1
- package/dist/index.js +3 -3
- package/dist/{manifest-D1P9uTlz.js → manifest-fBb2ynKL.js} +1 -1
- package/dist/{navigate-DIOaNAcS.js → navigate-CnQMXze1.js} +3 -3
- package/dist/{query-registry-IACQeDqi.js → query-registry-B4LpVtlT.js} +1 -1
- package/dist/{render-context-D0Hoj9dW.js → render-context-B7ohlh6t.js} +17 -1
- package/dist/{resolution-D3UO6aKA.js → resolution-C9A31xQi.js} +3 -3
- package/dist/{resource-operation-CYDU3XzS.js → resource-operation-whZDJAYv.js} +1 -1
- package/dist/resources/index.js +2 -2
- package/dist/{route-matching-DqULzZtC.js → route-matching-xlgdQXg_.js} +1 -1
- package/dist/router/index.js +6 -6
- package/dist/ssg/index.js +5 -5
- package/dist/ssr/index.js +2 -2
- package/dist/{ssr-DXGtDJd7.js → ssr-DNJUPmMq.js} +10 -7
- package/dist/{structures--NKfTh3j.js → structures-m-cphWI-.js} +1 -1
- package/dist/testing/index.js +4 -4
- package/dist/{verify-hydration-AdrYLDxd.js → verify-hydration-D8938Fw2.js} +4 -3
- package/package.json +1 -1
package/dist/actions/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime } from "../component-scope-DzJEbYGE.js";
|
|
2
|
-
import { r as getCurrentRenderData } from "../render-context-
|
|
2
|
+
import { r as getCurrentRenderData } from "../render-context-B7ohlh6t.js";
|
|
3
3
|
import { t as state } from "../state-DCjONcHK.js";
|
|
4
4
|
import { jsx, jsxs } from "../jsx-runtime.js";
|
|
5
|
-
import { c as resolveDataRuntimeState, s as invalidateQueriesForRuntime } from "../data-runtime-
|
|
5
|
+
import { c as resolveDataRuntimeState, s as invalidateQueriesForRuntime } from "../data-runtime-wbooGyu7.js";
|
|
6
6
|
//#region src/actions/runtime.ts
|
|
7
7
|
const emptyFramework = Object.freeze({});
|
|
8
8
|
/** @internal Read Askr-owned state from the current application root. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
|
|
2
2
|
import { a as registerCommitOperation } from "./component-internal-C4uwwUaK.js";
|
|
3
3
|
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
4
|
-
import { n as getActiveRenderContext } from "./render-context-
|
|
4
|
+
import { n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
5
5
|
import { n as syncRouteActivitySnapshot } from "./route-activity-CNJfpwx-.js";
|
|
6
|
-
import { b as getActiveRoutes, c as removeRouteBasePath, d as deepFreeze, f as makeQuery, n as computeMatchesFromRoutes, p as parseLocation, y as getActiveRouteBasePath } from "./route-matching-
|
|
6
|
+
import { b as getActiveRoutes, c as removeRouteBasePath, d as deepFreeze, f as makeQuery, n as computeMatchesFromRoutes, p as parseLocation, y as getActiveRouteBasePath } from "./route-matching-xlgdQXg_.js";
|
|
7
7
|
//#region src/common/app-render-runtime.ts
|
|
8
8
|
const stagedRouteLocations = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
function createAppRenderRuntime(input = {}) {
|
package/dist/benchmark.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as state } from "./state-DCjONcHK.js";
|
|
|
4
4
|
import { t as selector } from "./selector-BLNkRZ2i.js";
|
|
5
5
|
import { i as For } from "./control-CON10J1p.js";
|
|
6
6
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
7
|
-
import { t as createIsland } from "./boot-
|
|
7
|
+
import { t as createIsland } from "./boot-D3zVVWuN.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.91",
|
|
67
|
+
buildLabel: "0.0.91-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-D3zVVWuN.js";
|
|
2
2
|
export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
|
|
@@ -5,15 +5,15 @@ import { t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
|
5
5
|
import { p as isPromiseLike } from "./lifecycle-batch-Dfpid9-A.js";
|
|
6
6
|
import { a as setStaticChildSlotsCacheEnabled, c as endHydrationDirectListenerMode, d as discardHydrationListenerTransaction, i as registerDeferredHydrationBoundary, l as beginHydrationListenerTransaction, n as activateHydrationBoundary$1, o as withIntrinsicHydrationAdoption, r as clearDeferredHydrationBoundaries, s as beginHydrationDirectListenerMode, t as installRendererBridge, u as commitHydrationListenerTransaction } from "./renderer-y2DL627q.js";
|
|
7
7
|
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-c837KVij.js";
|
|
8
|
-
import { r as assertExecutionModel, t as _applyManifest } from "./manifest-
|
|
9
|
-
import { d as stopHydrationRenderPhase, l as startHydrationRenderPhase,
|
|
8
|
+
import { r as assertExecutionModel, t as _applyManifest } from "./manifest-fBb2ynKL.js";
|
|
9
|
+
import { d as stopHydrationRenderPhase, l as startHydrationRenderPhase, y as pageRenderEnvelope } from "./render-context-B7ohlh6t.js";
|
|
10
10
|
import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-DH0TrDij.js";
|
|
11
|
-
import { i as getDefaultDataRuntime } from "./data-runtime-
|
|
12
|
-
import { a as hydrateDataRuntime } from "./query-registry-
|
|
13
|
-
import { I as lockRouteRegistration, P as hasRegisteredRoutes, _ as clearRouteState, m as _setActiveRouteAuthOptions } from "./route-matching-
|
|
14
|
-
import { a as resolveRouteRequest, i as hasRouteRenderData, m as reviveDeferredValue, n as getRouteRenderContext, r as getRouteRenderData } from "./resolution-
|
|
15
|
-
import { o as createAppRenderRuntime, r as setServerLocation } from "./activity-
|
|
16
|
-
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-
|
|
11
|
+
import { i as getDefaultDataRuntime } from "./data-runtime-wbooGyu7.js";
|
|
12
|
+
import { a as hydrateDataRuntime } from "./query-registry-B4LpVtlT.js";
|
|
13
|
+
import { I as lockRouteRegistration, P as hasRegisteredRoutes, _ as clearRouteState, m as _setActiveRouteAuthOptions } from "./route-matching-xlgdQXg_.js";
|
|
14
|
+
import { a as resolveRouteRequest, i as hasRouteRenderData, m as reviveDeferredValue, n as getRouteRenderContext, r as getRouteRenderData } from "./resolution-C9A31xQi.js";
|
|
15
|
+
import { o as createAppRenderRuntime, r as setServerLocation } from "./activity-dKH6nlpj.js";
|
|
16
|
+
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-CnQMXze1.js";
|
|
17
17
|
import { n as disposeRegisteredDefaultPortalScope, r as getDefaultPortalHost } from "./default-portal-runtime-DvMvWJVp.js";
|
|
18
18
|
import "./ssr-DSHd_Q9K.js";
|
|
19
19
|
//#region src/boot/hydration.ts
|
|
@@ -598,7 +598,7 @@ async function hydrateSPA(config) {
|
|
|
598
598
|
cspNonce: config.cspNonce
|
|
599
599
|
}));
|
|
600
600
|
if (shouldVerifyHydrationMarkup(config)) {
|
|
601
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
601
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-D8938Fw2.js");
|
|
602
602
|
if (!verifyHydrationSyncForUrl({
|
|
603
603
|
root: rootElement,
|
|
604
604
|
url: currentUrl,
|
package/dist/data/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getDefaultDataRuntime, t as createDataRuntime } from "../data-runtime-
|
|
2
|
-
import { c as queryScope, n as createMutation, o as invalidate, s as invalidateOnInterval, t as createQuery } from "../data-
|
|
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-
|
|
1
|
+
import { i as getDefaultDataRuntime, t as createDataRuntime } from "../data-runtime-wbooGyu7.js";
|
|
2
|
+
import { c as queryScope, n as createMutation, o as invalidate, s as invalidateOnInterval, t as createQuery } from "../data-Bh_3OETq.js";
|
|
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-B4LpVtlT.js";
|
|
4
4
|
export { createDataRuntime, createMutation, createQuery, createQueryPrefetchContext, defineQuery, defineServerQueries, dehydrateDataRuntime, getDefaultDataRuntime, hydrateDataRuntime, invalidate, invalidateOnInterval, prefetchQuery, queryScope, serveQuery };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as enqueueRuntimeTask, v as logger } from "./access-Dpfoi4cA.js";
|
|
2
2
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
|
|
3
3
|
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
4
|
-
import { n as getActiveRenderContext } from "./render-context-
|
|
4
|
+
import { n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
5
5
|
import { i as routeActive, n as documentVisible, o as timer, s as windowFocused } from "./lifecycle-operations-CMK1AN2C.js";
|
|
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-
|
|
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-wbooGyu7.js";
|
|
7
7
|
//#region src/data/query-key.ts
|
|
8
8
|
function serializeQueryKeyNumber(part) {
|
|
9
9
|
if (Number.isNaN(part)) return "NaN";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime } from "./component-scope-DzJEbYGE.js";
|
|
2
|
-
import { n as getActiveRenderContext } from "./render-context-
|
|
2
|
+
import { n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
3
3
|
//#region src/data/invalidation-listeners.ts
|
|
4
4
|
const invalidationListeners = /* @__PURE__ */ new Set();
|
|
5
5
|
function addInvalidationListener(listener) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance } from "./component-scope-DzJEbYGE.js";
|
|
2
|
-
import { i as getExecutionModel } from "./manifest-
|
|
3
|
-
import { n as getActiveRenderContext, r as getCurrentRenderData } from "./render-context-
|
|
4
|
-
import { t as resource } from "./resource-operation-
|
|
5
|
-
import { A as getDefaultRouteBasePath, C as getCurrentInheritedPolicies, D as getCurrentPathPrefix, E as getCurrentPageScope, F as insertRecordSorted, H as computeRank, L as pushRegistrationScope, N as hasActivePageScope, O as getCurrentScopeKind, S as getCurrentInheritedMeta, T as getCurrentPageChain, U as normalizeRouteSegmentName, W as parseSegments, g as assertRouteRegistrationUnlocked, h as addRouteToStores, w as getCurrentLayoutChain, x as getCurrentInheritedAuthRequirements } from "./route-matching-
|
|
6
|
-
import { _ as createRouteHandler, d as DEFERRED_BOUNDARY, p as isDeferred, s as guardHydratedRouteData } from "./resolution-
|
|
2
|
+
import { i as getExecutionModel } from "./manifest-fBb2ynKL.js";
|
|
3
|
+
import { n as getActiveRenderContext, r as getCurrentRenderData } from "./render-context-B7ohlh6t.js";
|
|
4
|
+
import { t as resource } from "./resource-operation-whZDJAYv.js";
|
|
5
|
+
import { A as getDefaultRouteBasePath, C as getCurrentInheritedPolicies, D as getCurrentPathPrefix, E as getCurrentPageScope, F as insertRecordSorted, H as computeRank, L as pushRegistrationScope, N as hasActivePageScope, O as getCurrentScopeKind, S as getCurrentInheritedMeta, T as getCurrentPageChain, U as normalizeRouteSegmentName, W as parseSegments, g as assertRouteRegistrationUnlocked, h as addRouteToStores, w as getCurrentLayoutChain, x as getCurrentInheritedAuthRequirements } from "./route-matching-xlgdQXg_.js";
|
|
6
|
+
import { _ as createRouteHandler, d as DEFERRED_BOUNDARY, p as isDeferred, s as guardHydratedRouteData } from "./resolution-C9A31xQi.js";
|
|
7
7
|
import { allOf } from "@askrjs/auth";
|
|
8
8
|
//#region src/router/access.ts
|
|
9
9
|
function compileNodePolicies(node) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as definePortal, c as layout, i as Portal, o as Presence, r as DefaultPortal, s as Slot } from "../structures
|
|
1
|
+
import { a as definePortal, c as layout, i as Portal, o as Presence, r as DefaultPortal, s as Slot } from "../structures-m-cphWI-.js";
|
|
2
2
|
export { DefaultPortal, Portal, Presence, Slot, definePortal, layout };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as definePortal, c as layout, i as Portal, l as cloneElement, n as createCollection, o as Presence, r as DefaultPortal, s as Slot, t as createLayer, u as isElement } from "../../structures
|
|
1
|
+
import { a as definePortal, c as layout, i as Portal, l as cloneElement, n as createCollection, o as Presence, r as DefaultPortal, s as Slot, t as createLayer, u as isElement } from "../../structures-m-cphWI-.js";
|
|
2
2
|
export { DefaultPortal, Portal, Presence, Slot, cloneElement, createCollection, createLayer, definePortal, isElement, layout };
|
package/dist/index.js
CHANGED
|
@@ -5,14 +5,14 @@ import { _ as readScope, d as defineScope, l as configureRenderDiagnostics } fro
|
|
|
5
5
|
import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
6
6
|
import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
7
7
|
import { t as installRendererBridge } from "./renderer-y2DL627q.js";
|
|
8
|
-
import { c as registerSSRStyle } from "./render-context-
|
|
8
|
+
import { c as registerSSRStyle } from "./render-context-B7ohlh6t.js";
|
|
9
9
|
import { t as state } from "./state-DCjONcHK.js";
|
|
10
10
|
import { t as selector } from "./selector-BLNkRZ2i.js";
|
|
11
11
|
import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-DH0TrDij.js";
|
|
12
12
|
import { i as For, n as Match, r as Show, t as Case } from "./control-CON10J1p.js";
|
|
13
13
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
14
|
-
import { t as createQuery } from "./data-
|
|
15
|
-
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-
|
|
14
|
+
import { t as createQuery } from "./data-Bh_3OETq.js";
|
|
15
|
+
import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-B4LpVtlT.js";
|
|
16
16
|
//#region src/runtime/derive.ts
|
|
17
17
|
const deriveCells = /* @__PURE__ */ new WeakMap();
|
|
18
18
|
const dirtyDerivedCells = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as getDefaultRouteBasePath, B as setDefaultRouteBasePath, F as insertRecordSorted, M as getRouteRecords, R as restoreRouteState, V as snapshotRouteState, _ as clearRouteState, h as addRouteToStores, j as getRouteList, k as getDefaultRouteAuthOptions, s as normalizeRouteBasePath, z as setDefaultRouteAuthOptions } from "./route-matching-
|
|
1
|
+
import { A as getDefaultRouteBasePath, B as setDefaultRouteBasePath, F as insertRecordSorted, M as getRouteRecords, R as restoreRouteState, V as snapshotRouteState, _ as clearRouteState, h as addRouteToStores, j as getRouteList, k as getDefaultRouteAuthOptions, s as normalizeRouteBasePath, z as setDefaultRouteAuthOptions } from "./route-matching-xlgdQXg_.js";
|
|
2
2
|
//#region src/runtime/execution-model.ts
|
|
3
3
|
const EXECUTION_MODEL_KEY = Symbol.for("__ASKR_EXECUTION_MODEL__");
|
|
4
4
|
function getExecutionModel() {
|
|
@@ -6,9 +6,9 @@ import { n as cleanupComponentGeneration, t as cleanupComponent } from "./compon
|
|
|
6
6
|
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-Dfpid9-A.js";
|
|
7
7
|
import { _ as teardownNodeSubtree } from "./cleanup-c837KVij.js";
|
|
8
8
|
import { t as CspNonceScope } from "./csp-nonce-DH0TrDij.js";
|
|
9
|
-
import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-
|
|
10
|
-
import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-
|
|
11
|
-
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-
|
|
9
|
+
import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-xlgdQXg_.js";
|
|
10
|
+
import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-C9A31xQi.js";
|
|
11
|
+
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-dKH6nlpj.js";
|
|
12
12
|
import { r as getDefaultPortalHost, t as clearRegisteredDefaultPortalForInstance } from "./default-portal-runtime-DvMvWJVp.js";
|
|
13
13
|
//#region src/router/navigation-registry.ts
|
|
14
14
|
let currentInstance = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-
|
|
1
|
+
import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-wbooGyu7.js";
|
|
2
2
|
//#region src/common/telemetry.ts
|
|
3
3
|
function withTelemetry(span, fields, work) {
|
|
4
4
|
return span ? span(fields, work) : work();
|
|
@@ -13,6 +13,7 @@ var SSRDataMissingError = class SSRDataMissingError extends Error {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/common/page-render-envelope.ts
|
|
15
15
|
const PAGE_RENDER_ENVELOPE_VERSION = 1;
|
|
16
|
+
const HYDRATION_RENDER_URL = "hu";
|
|
16
17
|
function ownedRecord(value) {
|
|
17
18
|
return Object.freeze({ ...value });
|
|
18
19
|
}
|
|
@@ -52,6 +53,21 @@ function withPageFramework(value, framework) {
|
|
|
52
53
|
framework
|
|
53
54
|
});
|
|
54
55
|
}
|
|
56
|
+
function withHydrationRenderUrl(value, url) {
|
|
57
|
+
const current = pageRenderEnvelope(value);
|
|
58
|
+
const parsed = new URL(url, "http://localhost");
|
|
59
|
+
if (!parsed.search && !parsed.hash) return current;
|
|
60
|
+
const renderTarget = `${parsed.pathname}${parsed.search}${parsed.hash}`;
|
|
61
|
+
return withPageFramework(current, {
|
|
62
|
+
...current.framework,
|
|
63
|
+
[HYDRATION_RENDER_URL]: renderTarget
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function getHydrationRenderUrl(value) {
|
|
67
|
+
if (!isPageRenderEnvelope(value)) return void 0;
|
|
68
|
+
const url = value.framework[HYDRATION_RENDER_URL];
|
|
69
|
+
return typeof url === "string" ? url : void 0;
|
|
70
|
+
}
|
|
55
71
|
function isEmptyPageRenderEnvelope(value) {
|
|
56
72
|
return value.route === void 0 && Object.keys(value.resources).length === 0 && Object.keys(value.framework).length === 0;
|
|
57
73
|
}
|
|
@@ -158,4 +174,4 @@ function throwSSRDataMissing() {
|
|
|
158
174
|
throw new SSRDataMissingError();
|
|
159
175
|
}
|
|
160
176
|
//#endregion
|
|
161
|
-
export {
|
|
177
|
+
export { SSRDataMissingError as C, withPageFramework as S, isEmptyPageRenderEnvelope as _, getResourceVerificationSnapshot as a, replacePageRoute as b, registerSSRStyle as c, stopHydrationRenderPhase as d, stopRenderPhase as f, getHydrationRenderUrl as g, createPageRenderEnvelope as h, getNextRenderKey as i, startHydrationRenderPhase as l, withHydrationVerificationRender as m, getActiveRenderContext as n, isHydrationVerificationRender as o, throwSSRDataMissing as p, getCurrentRenderData as r, recordResourceVerificationSnapshot as s, configureRenderContextProvider as t, startRenderPhase as u, isPageRenderEnvelope as v, withHydrationRenderUrl as x, pageRenderEnvelope as y };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
2
2
|
import { _ as readScope, d as defineScope } from "./component-internal-C4uwwUaK.js";
|
|
3
3
|
import { p as isPromiseLike } from "./lifecycle-batch-Dfpid9-A.js";
|
|
4
|
-
import {
|
|
4
|
+
import { S as withPageFramework, b as replacePageRoute, n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
5
5
|
import { i as ROUTE_ROOT_COMPONENT } from "./csp-nonce-DH0TrDij.js";
|
|
6
|
-
import { c as withTelemetry, t as createQueryPrefetchContext } from "./query-registry-
|
|
7
|
-
import { c as removeRouteBasePath, i as getMatchingRouteRecord, l as buildRouteContext, o as addRouteBasePath, s as normalizeRouteBasePath, u as buildRouteContextBase, v as getActiveRouteAuthOptions } from "./route-matching-
|
|
6
|
+
import { c as withTelemetry, t as createQueryPrefetchContext } from "./query-registry-B4LpVtlT.js";
|
|
7
|
+
import { c as removeRouteBasePath, i as getMatchingRouteRecord, l as buildRouteContext, o as addRouteBasePath, s as normalizeRouteBasePath, u as buildRouteContextBase, v as getActiveRouteAuthOptions } from "./route-matching-xlgdQXg_.js";
|
|
8
8
|
//#region src/router/route-data-loader.ts
|
|
9
9
|
var RouteDataLoadError = class extends Error {
|
|
10
10
|
constructor(route, phase, cause) {
|
|
@@ -3,7 +3,7 @@ import { f as getCurrentComponentInstance } from "./component-scope-DzJEbYGE.js"
|
|
|
3
3
|
import { c as registerCommitOperationForInstance, f as getCurrentContextFrame, y as withAsyncResourceContext } from "./component-internal-C4uwwUaK.js";
|
|
4
4
|
import { p as isPromiseLike } from "./lifecycle-batch-Dfpid9-A.js";
|
|
5
5
|
import { t as brandSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
6
|
-
import { a as getResourceVerificationSnapshot, i as getNextRenderKey, n as getActiveRenderContext, o as isHydrationVerificationRender, p as throwSSRDataMissing, r as getCurrentRenderData, s as recordResourceVerificationSnapshot
|
|
6
|
+
import { C as SSRDataMissingError, a as getResourceVerificationSnapshot, i as getNextRenderKey, n as getActiveRenderContext, o as isHydrationVerificationRender, p as throwSSRDataMissing, r as getCurrentRenderData, s as recordResourceVerificationSnapshot } from "./render-context-B7ohlh6t.js";
|
|
7
7
|
import { t as state } from "./state-DCjONcHK.js";
|
|
8
8
|
//#region src/runtime/resource-cell.ts
|
|
9
9
|
/**
|
package/dist/resources/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as enqueueRuntimeLane } from "../access-Dpfoi4cA.js";
|
|
2
2
|
import { f as getCurrentComponentInstance, g as getSignal, i as claimHookIndex } from "../component-scope-DzJEbYGE.js";
|
|
3
3
|
import { a as registerCommitOperation } from "../component-internal-C4uwwUaK.js";
|
|
4
|
-
import { t as resource } from "../resource-operation-
|
|
4
|
+
import { t as resource } from "../resource-operation-whZDJAYv.js";
|
|
5
5
|
import { a as task, i as routeActive, n as documentVisible, o as timer, r as on, s as windowFocused, t as capture } from "../lifecycle-operations-CMK1AN2C.js";
|
|
6
|
-
import { n as onRouteChange } from "../activity-
|
|
6
|
+
import { n as onRouteChange } from "../activity-dKH6nlpj.js";
|
|
7
7
|
//#region src/runtime/stream-operation.ts
|
|
8
8
|
function toError(value) {
|
|
9
9
|
return value instanceof Error ? value : new Error(String(value));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getActiveRenderContext } from "./render-context-
|
|
1
|
+
import { n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
2
2
|
//#region src/router/match.ts
|
|
3
3
|
function splitPathSegments(path) {
|
|
4
4
|
const normalized = path.endsWith("/") && path !== "/" ? path.slice(0, -1) : path;
|
package/dist/router/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as createRouteRegistry } from "../manifest-
|
|
1
|
+
import { n as createRouteRegistry } from "../manifest-fBb2ynKL.js";
|
|
2
2
|
import { a as isSafeHref } from "../csp-nonce-DH0TrDij.js";
|
|
3
3
|
import { jsx } from "../jsx-runtime.js";
|
|
4
|
-
import { o as addRouteBasePath, y as getActiveRouteBasePath } from "../route-matching-
|
|
5
|
-
import { a as group, c as route, i as fallback, n as resolveDeferredValues, o as index, r as routeData, s as page, t as Resolve } from "../deferred-
|
|
6
|
-
import { S as RouteDataLoadError, a as resolveRouteRequest, b as lazy, f as defer, g as Outlet, h as currentAuth, p as isDeferred, x as lazyRouteData } from "../resolution-
|
|
7
|
-
import { n as onRouteChange, t as currentRoute } from "../activity-
|
|
8
|
-
import { a as serializeRouteMeta, c as getCurrentHref, d as parseTargetUrl, h as syncRegisteredRouteSnapshot, i as resolveRouteMeta, l as getRegisteredAppsSnapshot, m as syncAppRegistrationLocation, n as navigate, p as setCurrentRouteLocation, r as reconcileRouteMeta, s as saveScrollPosition, u as getWindowHref } from "../navigate-
|
|
4
|
+
import { o as addRouteBasePath, y as getActiveRouteBasePath } from "../route-matching-xlgdQXg_.js";
|
|
5
|
+
import { a as group, c as route, i as fallback, n as resolveDeferredValues, o as index, r as routeData, s as page, t as Resolve } from "../deferred-D6nZaIPs.js";
|
|
6
|
+
import { S as RouteDataLoadError, a as resolveRouteRequest, b as lazy, f as defer, g as Outlet, h as currentAuth, p as isDeferred, x as lazyRouteData } from "../resolution-C9A31xQi.js";
|
|
7
|
+
import { n as onRouteChange, t as currentRoute } from "../activity-dKH6nlpj.js";
|
|
8
|
+
import { a as serializeRouteMeta, c as getCurrentHref, d as parseTargetUrl, h as syncRegisteredRouteSnapshot, i as resolveRouteMeta, l as getRegisteredAppsSnapshot, m as syncAppRegistrationLocation, n as navigate, p as setCurrentRouteLocation, r as reconcileRouteMeta, s as saveScrollPosition, u as getWindowHref } from "../navigate-CnQMXze1.js";
|
|
9
9
|
import { o as mergeProps } from "../compose-ref-Cc_YkUpM.js";
|
|
10
10
|
import { t as applyInteractionPolicy } from "../interactions-CWkNEq_C.js";
|
|
11
11
|
//#region src/router/route-query.ts
|
package/dist/ssg/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../access-Dpfoi4cA.js";
|
|
2
|
-
import { n as createRouteRegistry } from "../manifest-
|
|
3
|
-
import { o as addRouteBasePath } from "../route-matching-
|
|
4
|
-
import { c as route, n as resolveDeferredValues } from "../deferred-
|
|
5
|
-
import { S as RouteDataLoadError, c as prepareRouteHydrationData, t as bindResolvedRouteData, v as getRenderHandler, y as _preloadRouteHandler } from "../resolution-
|
|
2
|
+
import { n as createRouteRegistry } from "../manifest-fBb2ynKL.js";
|
|
3
|
+
import { o as addRouteBasePath } from "../route-matching-xlgdQXg_.js";
|
|
4
|
+
import { c as route, n as resolveDeferredValues } from "../deferred-D6nZaIPs.js";
|
|
5
|
+
import { S as RouteDataLoadError, c as prepareRouteHydrationData, t as bindResolvedRouteData, v as getRenderHandler, y as _preloadRouteHandler } from "../resolution-C9A31xQi.js";
|
|
6
6
|
import { n as renderDocument } from "../ssr-DSHd_Q9K.js";
|
|
7
|
-
import { n as renderToString } from "../ssr-
|
|
7
|
+
import { n as renderToString } from "../ssr-DNJUPmMq.js";
|
|
8
8
|
import * as fs from "node:fs/promises";
|
|
9
9
|
import * as pathModule from "node:path";
|
|
10
10
|
import * as os from "node:os";
|
package/dist/ssr/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
1
|
+
import { C as SSRDataMissingError } from "../render-context-B7ohlh6t.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-DNJUPmMq.js";
|
|
3
3
|
export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
|
|
@@ -7,14 +7,14 @@ import { g as markVNodeTreeWithContextFrame, m as getVNodeContextFrame, n as cre
|
|
|
7
7
|
import { t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
8
8
|
import { p as isPromiseLike } from "./lifecycle-batch-Dfpid9-A.js";
|
|
9
9
|
import { _ as setControlBoundaryContextFrame, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-Bsm0B8GZ.js";
|
|
10
|
-
import { _ as
|
|
10
|
+
import { C as SSRDataMissingError, _ as isEmptyPageRenderEnvelope, f as stopRenderPhase$1, h as createPageRenderEnvelope, t as configureRenderContextProvider, u as startRenderPhase$1, v as isPageRenderEnvelope, x as withHydrationRenderUrl } from "./render-context-B7ohlh6t.js";
|
|
11
11
|
import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTOfe.js";
|
|
12
12
|
import { o as isUnsafeUrlAttribute, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-DH0TrDij.js";
|
|
13
13
|
import { n as SSR_PORTAL_HOST, t as SSR_PORTAL_ANCHOR } from "./portal-w3oQ6oQU.js";
|
|
14
|
-
import { t as createDataRuntime } from "./data-runtime-
|
|
15
|
-
import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-
|
|
16
|
-
import { a as resolveRouteFromRoutes, c as removeRouteBasePath, s as normalizeRouteBasePath, t as _resolveRouteMatchFromRoutes } from "./route-matching-
|
|
17
|
-
import { a as resolveRouteRequest, d as DEFERRED_BOUNDARY, l as validateRouteHydrationData, o as getRouteHydrationMetadata, p as isDeferred } from "./resolution-
|
|
14
|
+
import { t as createDataRuntime } from "./data-runtime-wbooGyu7.js";
|
|
15
|
+
import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-B4LpVtlT.js";
|
|
16
|
+
import { a as resolveRouteFromRoutes, c as removeRouteBasePath, s as normalizeRouteBasePath, t as _resolveRouteMatchFromRoutes } from "./route-matching-xlgdQXg_.js";
|
|
17
|
+
import { a as resolveRouteRequest, d as DEFERRED_BOUNDARY, l as validateRouteHydrationData, o as getRouteHydrationMetadata, p as isDeferred } from "./resolution-C9A31xQi.js";
|
|
18
18
|
import { n as disposeRegisteredDefaultPortalScope, r as getDefaultPortalHost } from "./default-portal-runtime-DvMvWJVp.js";
|
|
19
19
|
import { n as renderDocument, t as SSR_RENDER_DATA_ATTR } from "./ssr-DSHd_Q9K.js";
|
|
20
20
|
//#region src/ssr/escape.ts
|
|
@@ -189,6 +189,7 @@ function createRenderContext(seed = 12345, opts = {}) {
|
|
|
189
189
|
resources: opts.data,
|
|
190
190
|
framework: opts.framework
|
|
191
191
|
});
|
|
192
|
+
const hydrationEnvelope = opts.url ? withHydrationRenderUrl(envelope, opts.url) : envelope;
|
|
192
193
|
return {
|
|
193
194
|
url: opts.url ?? "",
|
|
194
195
|
seed,
|
|
@@ -206,7 +207,7 @@ function createRenderContext(seed = 12345, opts = {}) {
|
|
|
206
207
|
ssrCleanupFns: [],
|
|
207
208
|
keyCounter: 0,
|
|
208
209
|
renderData: envelope,
|
|
209
|
-
hydrationData:
|
|
210
|
+
hydrationData: hydrationEnvelope,
|
|
210
211
|
deferredBoundaries: [],
|
|
211
212
|
ssrStyles: /* @__PURE__ */ new Map(),
|
|
212
213
|
ssrPortals: {
|
|
@@ -1253,8 +1254,10 @@ function renderResolvedToStringSync(opts) {
|
|
|
1253
1254
|
const { url, registry, handler, params, options } = opts;
|
|
1254
1255
|
const routes = registry.routes;
|
|
1255
1256
|
const requestUrl = new URL(url, "http://localhost");
|
|
1257
|
+
const logicalTarget = removeRouteBasePath(`${requestUrl.pathname}${requestUrl.search}${requestUrl.hash}`, normalizeRouteBasePath(registry.manifest.basePath));
|
|
1256
1258
|
const matchedIndex = routes.findIndex((route) => {
|
|
1257
|
-
|
|
1259
|
+
if (logicalTarget === void 0) return false;
|
|
1260
|
+
const resolved = resolveRouteFromRoutes(new URL(logicalTarget, "http://localhost").pathname, [route]);
|
|
1258
1261
|
return resolved !== null && resolved.handler === route.handler && sameRouteParams(resolved.params, params);
|
|
1259
1262
|
});
|
|
1260
1263
|
if (matchedIndex < 0) throw new Error(`renderResolvedToStringSync: no route found for url: ${url}`);
|
|
@@ -4,7 +4,7 @@ import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
|
4
4
|
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
5
5
|
import { t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
6
6
|
import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-Dfpid9-A.js";
|
|
7
|
-
import { n as getActiveRenderContext } from "./render-context-
|
|
7
|
+
import { n as getActiveRenderContext } from "./render-context-B7ohlh6t.js";
|
|
8
8
|
import { i as createSSRPortalHostToken, n as SSR_PORTAL_HOST, r as createSSRPortalAnchorToken, t as SSR_PORTAL_ANCHOR } from "./portal-w3oQ6oQU.js";
|
|
9
9
|
import { i as registerDefaultPortalRuntime } from "./default-portal-runtime-DvMvWJVp.js";
|
|
10
10
|
//#region src/jsx/utils.ts
|
package/dist/testing/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as flushRuntimeScheduler } from "../access-Dpfoi4cA.js";
|
|
2
2
|
import { u as recordReadableRead } from "../readable-B5NtV7V0.js";
|
|
3
|
-
import { l as addInvalidationListener, t as createDataRuntime } from "../data-runtime-
|
|
4
|
-
import { a as notifySource, i as normalizeAsyncDataError, r as createReadableSource } from "../data-
|
|
5
|
-
import { r as computeRouteActivityMatches } from "../route-matching-
|
|
6
|
-
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-
|
|
3
|
+
import { l as addInvalidationListener, t as createDataRuntime } from "../data-runtime-wbooGyu7.js";
|
|
4
|
+
import { a as notifySource, i as normalizeAsyncDataError, r as createReadableSource } from "../data-Bh_3OETq.js";
|
|
5
|
+
import { r as computeRouteActivityMatches } from "../route-matching-xlgdQXg_.js";
|
|
6
|
+
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-D3zVVWuN.js";
|
|
7
7
|
//#region src/testing/render.ts
|
|
8
8
|
const renderStates = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
const eventConstructorNames = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as withHydrationVerificationRender } from "./render-context-
|
|
1
|
+
import { g as getHydrationRenderUrl, m as withHydrationVerificationRender } from "./render-context-B7ohlh6t.js";
|
|
2
2
|
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-DSHd_Q9K.js";
|
|
3
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
3
|
+
import { a as renderResolvedToStringSync } from "./ssr-DNJUPmMq.js";
|
|
4
4
|
//#region src/ssr/verify-hydration.ts
|
|
5
5
|
function normalizeHydrationHtml(html) {
|
|
6
6
|
const template = document.createElement("template");
|
|
@@ -10,8 +10,9 @@ function normalizeHydrationHtml(html) {
|
|
|
10
10
|
}
|
|
11
11
|
function verifyHydrationSyncForUrl(opts) {
|
|
12
12
|
const { root, url, registry, resolved, options } = opts;
|
|
13
|
+
const verificationUrl = getHydrationRenderUrl(options?.envelope) ?? new URL(url, "http://localhost").pathname;
|
|
13
14
|
const expected = withHydrationVerificationRender(() => renderResolvedToStringSync({
|
|
14
|
-
url,
|
|
15
|
+
url: verificationUrl,
|
|
15
16
|
registry,
|
|
16
17
|
handler: resolved.handler,
|
|
17
18
|
params: resolved.params,
|