@askrjs/askr 0.0.86 → 0.0.88
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/CHANGELOG.md +60 -0
- package/capabilities.json +25 -0
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +1 -1
- package/dist/{activity-BvgvaMZA.js → activity-C9naVZwy.js} +3 -2
- package/dist/{activity-B1I5HJQI.d.ts → activity-VMb7aJVx.d.ts} +1 -1
- package/dist/benchmark.d.ts +1 -1
- package/dist/benchmark.js +6 -6
- package/dist/boot/index.d.ts +4 -4
- package/dist/boot/index.js +1 -1
- package/dist/{boot-CViTpUiB.js → boot-BVHzYQz8.js} +11 -10
- package/dist/{component-internal-DcrLymUJ.js → component-internal-uVCJAre6.js} +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-BjYBlytA.d.ts → control-CsGs2bLS.d.ts} +1 -1
- package/dist/{control-oLADku43.js → control-DlwTrXBN.js} +1 -1
- package/dist/{control-DhUZU4_V.d.ts → control-x8iehxf7.d.ts} +1 -1
- package/dist/{csp-nonce-Bc52OIVc.js → csp-nonce-CUscoNF1.js} +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.js +3 -3
- package/dist/{data-DGrD3-qA.js → data-CXZ-FOa7.js} +5 -2
- package/dist/{data-runtime-Ck3tJDDQ.js → data-runtime-CnVeSvJz.js} +6 -4
- package/dist/{deferred-nleQtdfY.js → deferred-BCgoep1C.js} +5 -4
- package/dist/{for-internal-B_mnQhan.js → for-internal-Be7x2TFd.js} +9 -5
- package/dist/foundations/icon/index.d.ts +2 -2
- package/dist/foundations/icon/index.js +3 -2
- package/dist/foundations/index.d.ts +2 -2
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/interactions/index.js +1 -1
- package/dist/foundations/state/index.d.ts +1 -1
- package/dist/foundations/structures/index.d.ts +2 -2
- package/dist/foundations/structures/index.js +1 -1
- package/dist/{index-r-nt13FE.d.ts → index-BYWsbogt.d.ts} +2 -2
- package/dist/{index-DflhL1h8.d.ts → index-DODUjRdZ.d.ts} +3 -3
- package/dist/{index-5S-fi2xy.d.ts → index-SGxMZLAc.d.ts} +3 -0
- package/dist/{index-pIgGaXvS.d.ts → index-yDjeTqs5.d.ts} +4 -4
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/{interactions-DgGQyUQv.js → interactions-CWkNEq_C.js} +2 -1
- package/dist/{jsx-Dvr2SGRG.d.ts → jsx-BYXe_Nnk.d.ts} +18 -0
- package/dist/jsx-dev-runtime.d.ts +3 -3
- package/dist/jsx-runtime-BqhMEuT4.d.ts +2 -0
- package/dist/{jsx-runtime-Cr1jspx9.d.ts → jsx-runtime-LHh5tcTe.d.ts} +3 -3
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/{lifecycle-operations-BrYrBsXY.js → lifecycle-operations-DTO93Hrl.js} +1 -1
- package/dist/{navigate-BwAPbpCb.js → navigate-Bz6hh2JB.js} +4 -4
- package/dist/{navigate-NyIjQUwI.d.ts → navigate-kJ_EW8Y8.d.ts} +1 -1
- package/dist/{query-registry-CPW_6nwF.js → query-registry-p_0kkieE.js} +1 -1
- package/dist/{renderer-D9DL9R2D.js → renderer-5bjf5dIf.js} +53 -12
- package/dist/{resolution-YHwi4Bav.js → resolution-BRmiFYvw.js} +3 -3
- package/dist/{resource-operation-ys6eDoRJ.js → resource-operation-B94oj6xT.js} +1 -1
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +4 -4
- package/dist/router/index.d.ts +6 -6
- package/dist/router/index.js +17 -16
- package/dist/{selector-Ck_Pp9av.js → selector-BLNkRZ2i.js} +2 -1
- package/dist/ssg/index.d.ts +2 -2
- package/dist/ssg/index.js +3 -3
- package/dist/ssr/index.d.ts +4 -4
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-B98593qJ.js → ssr-D3hUAWyQ.js} +16 -11
- package/dist/{structures-DsOm-clq.js → structures--NKfTh3j.js} +2 -1
- package/dist/testing/index.d.ts +18 -4
- package/dist/testing/index.js +41 -3
- package/dist/{types-C9YcqVpk.d.ts → types-CsPtBGWb.d.ts} +1 -1
- package/dist/{verify-hydration-ww1dgwea.js → verify-hydration-Bd1kGLmH.js} +1 -1
- package/package.json +12 -10
- package/dist/jsx-runtime-C-oIHX9X.d.ts +0 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.0.85
|
|
6
|
+
|
|
7
|
+
- breaking(runtime): require Node.js 24.15 or newer.
|
|
8
|
+
- feat(router): validate route hydration data and add synchronous `dehydrate`
|
|
9
|
+
selectors so SSR/SSG can omit server-only fields while client navigation
|
|
10
|
+
retains complete loader results.
|
|
11
|
+
- feat(router): add registry `basePath` support for mounted SPA, SSR, and SSG
|
|
12
|
+
routing, destinations, navigation, redirects, activity, and metadata context.
|
|
13
|
+
- fix(jsx): expose safe element inspection and cloning from the structures
|
|
14
|
+
foundation without carrying renderer-private cache metadata into clones.
|
|
15
|
+
- fix(renderer): retain intrinsic hosts and nested interactive descendants when
|
|
16
|
+
a rerender passes through a transparent context scope, keep keyed provider
|
|
17
|
+
ownership isolated, and preserve intentional focus moves during commits.
|
|
18
|
+
- fix(runtime): isolate synchronous DOM handlers from active reconciliation
|
|
19
|
+
scopes and correctly detach capture-phase delegated listeners.
|
|
20
|
+
|
|
21
|
+
### 0.0.52 — audit remediation
|
|
22
|
+
|
|
23
|
+
- fix(release): rebuild packed artifacts from an absent `dist`, verify every
|
|
24
|
+
export-map subpath and installed CLI, and keep source maps out of npm
|
|
25
|
+
tarballs.
|
|
26
|
+
- fix(data): make query invalidation generation-safe, await reconciliation,
|
|
27
|
+
normalize async failures, and retain mutation callbacks for an execution.
|
|
28
|
+
- fix(router): isolate initial route sources per root and keep history/route
|
|
29
|
+
cleanup coherent when destination rendering or teardown fails.
|
|
30
|
+
- fix(renderer): make control, keyed, portal, ownership, and lifecycle writes
|
|
31
|
+
transactional, with anchored multi-node ranges and structural SSR hydration.
|
|
32
|
+
- perf(hydration): adopt matching intrinsic SSR trees in place and publish only
|
|
33
|
+
transactional refs and listeners instead of running full reconciliation.
|
|
34
|
+
- fix(hydration): activate deferred boundaries locally with retryable marker and
|
|
35
|
+
listener rollback semantics, while preserving focus, portals, and cleanup.
|
|
36
|
+
- refactor(renderer): split blueprint, boundary-range, component-host, and
|
|
37
|
+
lifecycle batch responsibilities behind internal facades with enforced
|
|
38
|
+
complexity budgets.
|
|
39
|
+
- test(bench): add keyed movement-density and separate full-clear teardown
|
|
40
|
+
diagnostics without changing movement thresholds or cleanup semantics.
|
|
41
|
+
- test(bench): add a Chromium component-boundary keyed reorder diagnostic and
|
|
42
|
+
document browser authority for jsdom-only hotspot investigations.
|
|
43
|
+
- fix(router): preserve shared layout identity and roll back multi-root route
|
|
44
|
+
DOM, ownership, metadata, history, and URL publication as one transaction.
|
|
45
|
+
- fix(ssg): publish full builds through staging/backup swap and incremental
|
|
46
|
+
routes through temp-file replacement.
|
|
47
|
+
- test(quality): add replayable lifecycle traces, deterministic seed fixtures,
|
|
48
|
+
timer-policy enforcement, benchmark guardrails, and package release gates.
|
|
49
|
+
|
|
50
|
+
## 0.0.51
|
|
51
|
+
|
|
52
|
+
- chore(quality): make release verification test packed consumers and public types, exclude source maps from npm tarballs, and replace architecture size checks with semantic boundaries.
|
|
53
|
+
- feat(router): add route-query updates for route-local filters without remounting the active route.
|
|
54
|
+
- feat(runtime): isolate render-scoped query caches, keep the first shared query contract, and evict entries when the last owner unmounts.
|
|
55
|
+
- feat(ssr): harden CSS style sanitization with an allowlist for safe functions and URI-scheme rejection, while resetting escape caches per request.
|
|
56
|
+
- fix(router): trim the public router barrel so internal manifest and SSR helpers stay on source-only paths.
|
|
57
|
+
|
|
58
|
+
## 0.0.29
|
|
59
|
+
|
|
60
|
+
- feat(state): support destructuring `const [get, set] = state(initial)`; getter remains callable and setter is identical to `get.set`. Added tests and docs.
|
package/capabilities.json
CHANGED
|
@@ -12,6 +12,31 @@
|
|
|
12
12
|
"docs": "https://github.com/askrjs/askr/blob/main/docs/guides/state.md",
|
|
13
13
|
"docsPath": "docs/guides/state.md"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"intent": "data queries and mutations",
|
|
17
|
+
"package": "@askrjs/askr",
|
|
18
|
+
"import": "@askrjs/askr/data",
|
|
19
|
+
"exports": ["createQuery", "defineQuery", "queryScope", "createMutation"],
|
|
20
|
+
"constraints": [
|
|
21
|
+
"query keys identify shared cache entries",
|
|
22
|
+
"fetches are cancellable"
|
|
23
|
+
],
|
|
24
|
+
"stability": "stable",
|
|
25
|
+
"docs": "https://github.com/askrjs/askr/blob/main/docs/core/data.md",
|
|
26
|
+
"docsPath": "docs/core/data.md"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"intent": "test query-state fixtures",
|
|
30
|
+
"package": "@askrjs/askr",
|
|
31
|
+
"import": "@askrjs/askr/testing",
|
|
32
|
+
"exports": ["queryState"],
|
|
33
|
+
"constraints": [
|
|
34
|
+
"fixtures are test-only and do not perform network requests"
|
|
35
|
+
],
|
|
36
|
+
"stability": "stable",
|
|
37
|
+
"docs": "https://github.com/askrjs/askr/blob/main/docs/contributing/testing.md",
|
|
38
|
+
"docsPath": "docs/contributing/testing.md"
|
|
39
|
+
},
|
|
15
40
|
{
|
|
16
41
|
"intent": "routing and navigation",
|
|
17
42
|
"package": "@askrjs/askr",
|
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-yDjeTqs5.js";
|
|
2
2
|
export { ActionDescriptor, ActionForm, ActionStatus, ActionValidationError, action, defineAction };
|
package/dist/actions/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { d as getCurrentAppRenderRuntime } from "../component-scope-DzJEbYGE.js"
|
|
|
2
2
|
import { r as getCurrentRenderData } from "../render-context-D0Hoj9dW.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-CnVeSvJz.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,5 +1,5 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
|
|
2
|
-
import { a as registerCommitOperation } from "./component-internal-
|
|
2
|
+
import { a as registerCommitOperation } from "./component-internal-uVCJAre6.js";
|
|
3
3
|
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
4
4
|
import { n as getActiveRenderContext } from "./render-context-D0Hoj9dW.js";
|
|
5
5
|
import { n as syncRouteActivitySnapshot } from "./route-activity-CNJfpwx-.js";
|
|
@@ -166,7 +166,8 @@ function readCurrentRouteSnapshot() {
|
|
|
166
166
|
const { pathname, search, hash, withinBasePath } = readCurrentRouteLocation();
|
|
167
167
|
const query = makeQuery(search);
|
|
168
168
|
const matches = withinBasePath ? computeMatchesFromRoutes(pathname, getActiveRoutes()) : [];
|
|
169
|
-
const
|
|
169
|
+
const routeParams = (withinBasePath ? getActiveRenderContext()?.params : void 0) ?? matches[0]?.params ?? {};
|
|
170
|
+
const params = deepFreeze({ ...routeParams });
|
|
170
171
|
return Object.freeze({
|
|
171
172
|
path: pathname,
|
|
172
173
|
params,
|
package/dist/benchmark.d.ts
CHANGED
package/dist/benchmark.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as flushRuntimeScheduler } from "./access-Dpfoi4cA.js";
|
|
2
|
-
import { t as installRendererBridge } from "./renderer-
|
|
2
|
+
import { t as installRendererBridge } from "./renderer-5bjf5dIf.js";
|
|
3
3
|
import { t as state } from "./state-DCjONcHK.js";
|
|
4
|
-
import { t as selector } from "./selector-
|
|
5
|
-
import { i as For } from "./control-
|
|
4
|
+
import { t as selector } from "./selector-BLNkRZ2i.js";
|
|
5
|
+
import { i as For } from "./control-DlwTrXBN.js";
|
|
6
6
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
7
|
-
import { t as createIsland } from "./boot-
|
|
7
|
+
import { t as createIsland } from "./boot-BVHzYQz8.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.88",
|
|
67
|
+
buildLabel: "0.0.88-local"
|
|
68
68
|
};
|
|
69
69
|
function getBenchmarkMetadata() {
|
|
70
70
|
return { ...benchmarkMetadata };
|
package/dist/boot/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as ComponentFunction } from "../control-
|
|
2
|
-
import { W as RouteRegistry, w as RouteAuthOptions } from "../index-
|
|
3
|
-
import { v as DataRuntime } from "../index-
|
|
4
|
-
import { a as ScrollRestorationOptions } from "../navigate-
|
|
1
|
+
import { l as ComponentFunction } from "../control-x8iehxf7.js";
|
|
2
|
+
import { W as RouteRegistry, w as RouteAuthOptions } from "../index-yDjeTqs5.js";
|
|
3
|
+
import { v as DataRuntime } from "../index-SGxMZLAc.js";
|
|
4
|
+
import { a as ScrollRestorationOptions } from "../navigate-kJ_EW8Y8.js";
|
|
5
5
|
//#region src/boot/types.d.ts
|
|
6
6
|
type IslandConfig = {
|
|
7
7
|
root: Element | string;
|
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-BVHzYQz8.js";
|
|
2
2
|
export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-Dpfoi4cA.js";
|
|
2
2
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
3
|
-
import { n as createComponentInstance, r as executeComponent } from "./component-internal-
|
|
3
|
+
import { n as createComponentInstance, r as executeComponent } from "./component-internal-uVCJAre6.js";
|
|
4
4
|
import { t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
5
5
|
import { p as isPromiseLike } from "./lifecycle-batch-Dfpid9-A.js";
|
|
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-
|
|
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-5bjf5dIf.js";
|
|
7
7
|
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-c837KVij.js";
|
|
8
8
|
import { r as assertExecutionModel, t as _applyManifest } from "./manifest-D1P9uTlz.js";
|
|
9
9
|
import { d as stopHydrationRenderPhase, l as startHydrationRenderPhase, v as pageRenderEnvelope } from "./render-context-D0Hoj9dW.js";
|
|
10
|
-
import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-
|
|
11
|
-
import { i as getDefaultDataRuntime } from "./data-runtime-
|
|
12
|
-
import { a as hydrateDataRuntime } from "./query-registry-
|
|
10
|
+
import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-CUscoNF1.js";
|
|
11
|
+
import { i as getDefaultDataRuntime } from "./data-runtime-CnVeSvJz.js";
|
|
12
|
+
import { a as hydrateDataRuntime } from "./query-registry-p_0kkieE.js";
|
|
13
13
|
import { I as lockRouteRegistration, P as hasRegisteredRoutes, _ as clearRouteState, m as _setActiveRouteAuthOptions } from "./route-matching-DqULzZtC.js";
|
|
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-
|
|
14
|
+
import { a as resolveRouteRequest, i as hasRouteRenderData, m as reviveDeferredValue, n as getRouteRenderContext, r as getRouteRenderData } from "./resolution-BRmiFYvw.js";
|
|
15
|
+
import { o as createAppRenderRuntime, r as setServerLocation } from "./activity-C9naVZwy.js";
|
|
16
|
+
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-Bz6hh2JB.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
|
|
@@ -327,7 +327,8 @@ function mountOrUpdate(rootElement, componentFn, options) {
|
|
|
327
327
|
}
|
|
328
328
|
if (options && typeof options.cleanupStrict === "boolean") instance.cleanupStrict = options.cleanupStrict;
|
|
329
329
|
} else {
|
|
330
|
-
|
|
330
|
+
const componentId = String(++componentIdCounter);
|
|
331
|
+
instance = createComponentInstance(componentId, wrappedFn, {}, rootElement);
|
|
331
332
|
instancesByRoot.set(rootElement, instance);
|
|
332
333
|
instance.isRoot = true;
|
|
333
334
|
instance._rootComponentFn = componentFn;
|
|
@@ -587,7 +588,7 @@ async function hydrateSPA(config) {
|
|
|
587
588
|
cspNonce: config.cspNonce
|
|
588
589
|
}));
|
|
589
590
|
if (shouldVerifyHydrationMarkup(config)) {
|
|
590
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
591
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-Bd1kGLmH.js");
|
|
591
592
|
if (!verifyHydrationSyncForUrl({
|
|
592
593
|
root: rootElement,
|
|
593
594
|
url: currentUrl,
|
|
@@ -668,7 +668,7 @@ function executeComponentSync(instance) {
|
|
|
668
668
|
const result = callWithContext(getExecutionContextFrame(instance.ownerFrame), instance.fn, instance.props, context);
|
|
669
669
|
if (trackRenderTime) {
|
|
670
670
|
const renderTime = Date.now() - renderStartTime;
|
|
671
|
-
if (renderTime > 5) warnInstanceOnce(instance, "slow-render", `[askr] Slow render detected: ${renderTime}ms. Consider optimizing component performance.`);
|
|
671
|
+
if (renderTime > 5) warnInstanceOnce(instance, "slow-render", `[askr] Slow render detected in ${instance.fn?.name || "<anonymous>"}: ${renderTime}ms. Consider optimizing component performance.`);
|
|
672
672
|
}
|
|
673
673
|
if (!instance.firstRenderComplete) instance.firstRenderComplete = true;
|
|
674
674
|
didComplete = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as VNode } from "../control-
|
|
2
|
-
import { r as JSXElement, s as Props } from "../jsx-
|
|
1
|
+
import { d as VNode } from "../control-x8iehxf7.js";
|
|
2
|
+
import { r as JSXElement, s as Props } from "../jsx-BYXe_Nnk.js";
|
|
3
3
|
//#region src/common/error-boundary.d.ts
|
|
4
4
|
type ErrorBoundaryContent = VNode | readonly VNode[];
|
|
5
5
|
type ErrorBoundaryFallbackValue = ErrorBoundaryContent | Node;
|
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-BYWsbogt.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-DlwTrXBN.js";
|
|
2
2
|
export { Case, For, Match, Show };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as Props } from "./jsx-
|
|
1
|
+
import { s as Props } from "./jsx-BYXe_Nnk.js";
|
|
2
2
|
//#region src/common/control.d.ts
|
|
3
3
|
declare const EAGER_CONTROL_PRIMITIVE: unique symbol;
|
|
4
4
|
type EagerControlPrimitive<P extends Props = Props> = ((props: P) => unknown) & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as markEagerControlPrimitive, t as __CONTROL_BOUNDARY__ } from "./control-C-ApnFs1.js";
|
|
2
2
|
import { b as isDevelopmentEnvironment } from "./access-Dpfoi4cA.js";
|
|
3
3
|
import { n as Fragment } from "./jsx-C3IECePB.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-Be7x2TFd.js";
|
|
5
5
|
import { t as createFineGrainedEffect } from "./effect-lnxQIpJG.js";
|
|
6
6
|
import { t as state } from "./state-DCjONcHK.js";
|
|
7
7
|
//#region src/control/shared.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JSXElementType, r as JSXElement, s as Props } from "./jsx-
|
|
1
|
+
import { i as JSXElementType, r as JSXElement, s as Props } from "./jsx-BYXe_Nnk.js";
|
|
2
2
|
//#region src/runtime/state.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* State value holder - callable to read, has set method to update
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ServerQueryHandler, C as Query, D as QueryPrefetchContext, E as QueryKeyPart, O as QueryScope, S as Mutation, T as QueryDefinition, a as defineServerQueries, b as InvalidateOnIntervalOptions, c as prefetchQuery, d as invalidateOnInterval, f as queryScope, g as createMutation, h as createQuery, i as defineQuery, k as QueryStaleReason, l as serveQuery, m as getDefaultDataRuntime, n as ServerQueryRegistry, o as dehydrateDataRuntime, p as createDataRuntime, r as createQueryPrefetchContext, s as hydrateDataRuntime, t as ServerQueryEntry, u as invalidate, v as DataRuntime, w as QueryConsistency, x as InvalidateOptions, y as DataRuntimeOptions } from "../index-
|
|
1
|
+
import { A as ServerQueryHandler, C as Query, D as QueryPrefetchContext, E as QueryKeyPart, O as QueryScope, S as Mutation, T as QueryDefinition, a as defineServerQueries, b as InvalidateOnIntervalOptions, c as prefetchQuery, d as invalidateOnInterval, f as queryScope, g as createMutation, h as createQuery, i as defineQuery, k as QueryStaleReason, l as serveQuery, m as getDefaultDataRuntime, n as ServerQueryRegistry, o as dehydrateDataRuntime, p as createDataRuntime, r as createQueryPrefetchContext, s as hydrateDataRuntime, t as ServerQueryEntry, u as invalidate, v as DataRuntime, w as QueryConsistency, x as InvalidateOptions, y as DataRuntimeOptions } from "../index-SGxMZLAc.js";
|
|
2
2
|
export { type DataRuntime, type DataRuntimeOptions, type InvalidateOnIntervalOptions, type InvalidateOptions, type Mutation, type Query, type QueryConsistency, type QueryDefinition, type QueryKeyPart, type QueryPrefetchContext, type QueryScope, type QueryStaleReason, type ServerQueryEntry, type ServerQueryHandler, type ServerQueryRegistry, createDataRuntime, createMutation, createQuery, createQueryPrefetchContext, defineQuery, defineServerQueries, dehydrateDataRuntime, getDefaultDataRuntime, hydrateDataRuntime, invalidate, invalidateOnInterval, prefetchQuery, queryScope, serveQuery };
|
package/dist/data/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getDefaultDataRuntime, t as createDataRuntime } from "../data-runtime-
|
|
2
|
-
import { a as queryScope, i as invalidateOnInterval, n as createMutation, r as invalidate, 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-CnVeSvJz.js";
|
|
2
|
+
import { a as queryScope, i as invalidateOnInterval, n as createMutation, r as invalidate, t as createQuery } from "../data-CXZ-FOa7.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-p_0kkieE.js";
|
|
4
4
|
export { createDataRuntime, createMutation, createQuery, createQueryPrefetchContext, defineQuery, defineServerQueries, dehydrateDataRuntime, getDefaultDataRuntime, hydrateDataRuntime, invalidate, invalidateOnInterval, prefetchQuery, queryScope, serveQuery };
|
|
@@ -2,8 +2,8 @@ import { n as enqueueRuntimeTask, v as logger } from "./access-Dpfoi4cA.js";
|
|
|
2
2
|
import { 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
4
|
import { n as getActiveRenderContext } from "./render-context-D0Hoj9dW.js";
|
|
5
|
-
import { i as routeActive, n as documentVisible, o as timer, s as windowFocused } from "./lifecycle-operations-
|
|
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-
|
|
5
|
+
import { i as routeActive, n as documentVisible, o as timer, s as windowFocused } from "./lifecycle-operations-DTO93Hrl.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-CnVeSvJz.js";
|
|
7
7
|
//#region src/data/query-key.ts
|
|
8
8
|
function serializeQueryKeyNumber(part) {
|
|
9
9
|
if (Number.isNaN(part)) return "NaN";
|
|
@@ -500,7 +500,9 @@ function createLegacyQuery(options) {
|
|
|
500
500
|
const instance = getCurrentComponentInstance();
|
|
501
501
|
const runtimeState = resolveDataRuntimeState(options.runtime);
|
|
502
502
|
const cache = runtimeState.queryCache;
|
|
503
|
+
const override = runtimeState.queryTestOverrides.get(options.key);
|
|
503
504
|
if (!instance) {
|
|
505
|
+
if (override) return override;
|
|
504
506
|
let cell = cache.get(options.key);
|
|
505
507
|
if (!cell) {
|
|
506
508
|
cell = new QueryCell(options, options.key, cache);
|
|
@@ -518,6 +520,7 @@ function createLegacyQuery(options) {
|
|
|
518
520
|
return existingSlot.cell;
|
|
519
521
|
}
|
|
520
522
|
if (existingSlot) existingSlot.cell.detach(instance._ownershipGeneration, hookIndex);
|
|
523
|
+
if (override) return override;
|
|
521
524
|
let cell = cache.get(options.key);
|
|
522
525
|
if (!cell) {
|
|
523
526
|
cell = new QueryCell(options, options.key, cache);
|
|
@@ -14,22 +14,24 @@ function emitInvalidation(event) {
|
|
|
14
14
|
//#region src/data/data-runtime.ts
|
|
15
15
|
const dataRuntimeStates = /* @__PURE__ */ new WeakMap();
|
|
16
16
|
const dataRuntimeByQueryCache = /* @__PURE__ */ new WeakMap();
|
|
17
|
-
function createDataRuntimeState(queryCache, queryData) {
|
|
17
|
+
function createDataRuntimeState(queryCache, queryData, queryTestOverrides) {
|
|
18
18
|
return {
|
|
19
19
|
queryCache,
|
|
20
20
|
queryData,
|
|
21
21
|
querySlotsByGeneration: /* @__PURE__ */ new WeakMap(),
|
|
22
22
|
mutationSlotsByGeneration: /* @__PURE__ */ new WeakMap(),
|
|
23
23
|
queryCleanupRegistered: /* @__PURE__ */ new WeakSet(),
|
|
24
|
-
mutationCleanupRegistered: /* @__PURE__ */ new WeakSet()
|
|
24
|
+
mutationCleanupRegistered: /* @__PURE__ */ new WeakSet(),
|
|
25
|
+
queryTestOverrides
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
function createDataRuntime(options = {}) {
|
|
28
29
|
const runtime = Object.freeze({
|
|
29
30
|
queryCache: options.queryCache ?? /* @__PURE__ */ new Map(),
|
|
30
|
-
queryData: options.queryData ?? /* @__PURE__ */ new Map()
|
|
31
|
+
queryData: options.queryData ?? /* @__PURE__ */ new Map(),
|
|
32
|
+
queryTestOverrides: options.queryTestOverrides ?? /* @__PURE__ */ new Map()
|
|
31
33
|
});
|
|
32
|
-
dataRuntimeStates.set(runtime, createDataRuntimeState(runtime.queryCache, runtime.queryData));
|
|
34
|
+
dataRuntimeStates.set(runtime, createDataRuntimeState(runtime.queryCache, runtime.queryData, runtime.queryTestOverrides));
|
|
33
35
|
dataRuntimeByQueryCache.set(runtime.queryCache, runtime);
|
|
34
36
|
return runtime;
|
|
35
37
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance } from "./component-scope-DzJEbYGE.js";
|
|
2
2
|
import { i as getExecutionModel } from "./manifest-D1P9uTlz.js";
|
|
3
3
|
import { n as getActiveRenderContext, r as getCurrentRenderData } from "./render-context-D0Hoj9dW.js";
|
|
4
|
-
import { t as resource } from "./resource-operation-
|
|
4
|
+
import { t as resource } from "./resource-operation-B94oj6xT.js";
|
|
5
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-DqULzZtC.js";
|
|
6
|
-
import { _ as createRouteHandler, d as DEFERRED_BOUNDARY, p as isDeferred, s as guardHydratedRouteData } from "./resolution-
|
|
6
|
+
import { _ as createRouteHandler, d as DEFERRED_BOUNDARY, p as isDeferred, s as guardHydratedRouteData } from "./resolution-BRmiFYvw.js";
|
|
7
7
|
import { allOf } from "@askrjs/auth";
|
|
8
8
|
//#region src/router/access.ts
|
|
9
9
|
function compileNodePolicies(node) {
|
|
@@ -128,7 +128,7 @@ function registerRouteAtResolvedPath(path, Component, options, metadata) {
|
|
|
128
128
|
const metaChain = [...getCurrentInheritedMeta(), ...normalizedOptions?.meta ? [normalizedOptions.meta] : []];
|
|
129
129
|
const handler = createRouteHandler(comp, pageChain, chain);
|
|
130
130
|
const renderHandler = createRouteHandler(comp, pageChain, chain, true);
|
|
131
|
-
|
|
131
|
+
const record = {
|
|
132
132
|
path,
|
|
133
133
|
component: comp,
|
|
134
134
|
segments,
|
|
@@ -148,7 +148,8 @@ function registerRouteAtResolvedPath(path, Component, options, metadata) {
|
|
|
148
148
|
handler,
|
|
149
149
|
renderHandler,
|
|
150
150
|
...metadata?.fallbackPrefix ? { fallbackPrefix: metadata.fallbackPrefix } : {}
|
|
151
|
-
}
|
|
151
|
+
};
|
|
152
|
+
insertRecordSorted(record);
|
|
152
153
|
addRouteToStores({
|
|
153
154
|
path,
|
|
154
155
|
handler,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as _isDOMElement } from "./vnode-D24p6IW2.js";
|
|
2
2
|
import { b as isDevelopmentEnvironment, o as getRuntimeRenderer, v as logger } from "./access-Dpfoi4cA.js";
|
|
3
3
|
import { h as getCurrentStateIndex, i as claimHookIndex, o as clearRenderTracking, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
|
|
4
|
-
import { _ as rebaseVNodeTreeWithContextFrame, m as haveEquivalentContextFrames, n as createComponentInstance, s as renderScopedComponent } from "./component-internal-
|
|
4
|
+
import { _ as rebaseVNodeTreeWithContextFrame, m as haveEquivalentContextFrames, n as createComponentInstance, s as renderScopedComponent } from "./component-internal-uVCJAre6.js";
|
|
5
5
|
import { d as shouldCoalesceFineGrainedItemReads, l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
|
|
6
6
|
import { i as unregisterOwnedChildScope, r as registerOwnedChildScope, t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
|
|
7
7
|
import { o as finalizeInlineReadSubscriptions, u as registerLifecycleTransaction } from "./lifecycle-batch-Dfpid9-A.js";
|
|
@@ -578,13 +578,15 @@ const REACTIVE_FOR_ITEM_PROXY_HANDLER = {
|
|
|
578
578
|
if (prop === REACTIVE_FOR_ITEM_STATE) return false;
|
|
579
579
|
const metadata = getReactiveForItemState(target);
|
|
580
580
|
metadata.wholeItemRead = true;
|
|
581
|
-
|
|
581
|
+
const itemSignal = getWholeItemSignal(metadata);
|
|
582
|
+
recordReadableRead(itemSignal);
|
|
582
583
|
return prop in target || prop in Object(metadata.currentItem);
|
|
583
584
|
},
|
|
584
585
|
ownKeys(target) {
|
|
585
586
|
const metadata = getReactiveForItemState(target);
|
|
586
587
|
metadata.wholeItemRead = true;
|
|
587
|
-
|
|
588
|
+
const itemSignal = getWholeItemSignal(metadata);
|
|
589
|
+
recordReadableRead(itemSignal);
|
|
588
590
|
const keys = /* @__PURE__ */ new Set();
|
|
589
591
|
for (const key of Reflect.ownKeys(target)) if (key !== REACTIVE_FOR_ITEM_STATE) keys.add(key);
|
|
590
592
|
for (const key of Reflect.ownKeys(Object(metadata.currentItem))) keys.add(key);
|
|
@@ -594,7 +596,8 @@ const REACTIVE_FOR_ITEM_PROXY_HANDLER = {
|
|
|
594
596
|
if (prop === REACTIVE_FOR_ITEM_STATE) return;
|
|
595
597
|
const metadata = getReactiveForItemState(target);
|
|
596
598
|
metadata.wholeItemRead = true;
|
|
597
|
-
|
|
599
|
+
const itemSignal = getWholeItemSignal(metadata);
|
|
600
|
+
recordReadableRead(itemSignal);
|
|
598
601
|
const ownDescriptor = Reflect.getOwnPropertyDescriptor(target, prop);
|
|
599
602
|
if (ownDescriptor) return ownDescriptor;
|
|
600
603
|
return Object.getOwnPropertyDescriptor(Object(metadata.currentItem), prop);
|
|
@@ -602,7 +605,8 @@ const REACTIVE_FOR_ITEM_PROXY_HANDLER = {
|
|
|
602
605
|
getPrototypeOf(target) {
|
|
603
606
|
const metadata = getReactiveForItemState(target);
|
|
604
607
|
metadata.wholeItemRead = true;
|
|
605
|
-
|
|
608
|
+
const itemSignal = getWholeItemSignal(metadata);
|
|
609
|
+
recordReadableRead(itemSignal);
|
|
606
610
|
return Object.getPrototypeOf(Object(metadata.currentItem));
|
|
607
611
|
},
|
|
608
612
|
set(target, prop, value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as JSXElement, s as Props } from "../../jsx-
|
|
2
|
-
import "../../types-
|
|
1
|
+
import { r as JSXElement, s as Props } from "../../jsx-BYXe_Nnk.js";
|
|
2
|
+
import "../../types-CsPtBGWb.js";
|
|
3
3
|
import { t as Ref } from "../../compose-ref-Cizq72-x.js";
|
|
4
4
|
//#region src/foundations/icon/icon.types.d.ts
|
|
5
5
|
type IconSizeToken = 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -71,7 +71,7 @@ function IconBase({ size = 20, strokeWidth = 2, color = "currentColor", title, c
|
|
|
71
71
|
iconName
|
|
72
72
|
});
|
|
73
73
|
const finalChildren = title ? [jsx("title", { children: title }), children] : children;
|
|
74
|
-
|
|
74
|
+
const svgProps = {
|
|
75
75
|
...rest,
|
|
76
76
|
...attrs,
|
|
77
77
|
viewBox: rest.viewBox ?? "0 0 24 24",
|
|
@@ -80,7 +80,8 @@ function IconBase({ size = 20, strokeWidth = 2, color = "currentColor", title, c
|
|
|
80
80
|
class: className,
|
|
81
81
|
ref,
|
|
82
82
|
children: finalChildren
|
|
83
|
-
}
|
|
83
|
+
};
|
|
84
|
+
return jsxs("svg", svgProps);
|
|
84
85
|
}
|
|
85
86
|
//#endregion
|
|
86
87
|
export { IconBase, getIconContractProps, isIconSizeToken, joinIconStyle, normalizeIconSizeValue, resolveIconSizeVariable, resolveIconStrokeWidthVariable, serializeIconStyle };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as JSXElement } from "../jsx-
|
|
2
|
-
import { c as DefaultPortal, d as definePortal, f as Presence, h as SlotProps, l as Portal, m as Slot, p as PresenceProps, u as PortalProps, v as LayoutComponent, y as layout } from "../index-
|
|
1
|
+
import { r as JSXElement } from "../jsx-BYXe_Nnk.js";
|
|
2
|
+
import { c as DefaultPortal, d as definePortal, f as Presence, h as SlotProps, l as Portal, m as Slot, p as PresenceProps, u as PortalProps, v as LayoutComponent, y as layout } from "../index-DODUjRdZ.js";
|
|
3
3
|
export { DefaultPortal, type JSXElement, type LayoutComponent, Portal, type PortalProps, Presence, type PresenceProps, Slot, type SlotProps, definePortal, layout };
|
|
@@ -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--NKfTh3j.js";
|
|
2
2
|
export { DefaultPortal, Portal, Presence, Slot, definePortal, layout };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as focusable, i as hoverable, n as mergeInteractionProps, o as dismissable, r as rovingFocus, s as pressable, t as applyInteractionPolicy } from "../../interactions-
|
|
1
|
+
import { a as focusable, i as hoverable, n as mergeInteractionProps, o as dismissable, r as rovingFocus, s as pressable, t as applyInteractionPolicy } from "../../interactions-CWkNEq_C.js";
|
|
2
2
|
export { applyInteractionPolicy, dismissable, focusable, hoverable, mergeInteractionProps, pressable, rovingFocus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as State } from "../../control-
|
|
1
|
+
import { v as State } from "../../control-x8iehxf7.js";
|
|
2
2
|
//#region src/foundations/state/controllable.d.ts
|
|
3
3
|
declare function isControlled<T>(value: T | undefined): value is T;
|
|
4
4
|
declare function resolveControllable<T>(value: T | undefined, defaultValue: T): {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as JSXElement } from "../../jsx-
|
|
2
|
-
import { _ as isElement, a as Collection, c as DefaultPortal, d as definePortal, f as Presence, g as cloneElement, h as SlotProps, i as createLayer, l as Portal, m as Slot, n as LayerManager, o as CollectionItem, p as PresenceProps, r as LayerOptions, s as createCollection, t as Layer, u as PortalProps, v as LayoutComponent, y as layout } from "../../index-
|
|
1
|
+
import { r as JSXElement } from "../../jsx-BYXe_Nnk.js";
|
|
2
|
+
import { _ as isElement, a as Collection, c as DefaultPortal, d as definePortal, f as Presence, g as cloneElement, h as SlotProps, i as createLayer, l as Portal, m as Slot, n as LayerManager, o as CollectionItem, p as PresenceProps, r as LayerOptions, s as createCollection, t as Layer, u as PortalProps, v as LayoutComponent, y as layout } from "../../index-DODUjRdZ.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, cloneElement, createCollection, createLayer, definePortal, isElement, 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--NKfTh3j.js";
|
|
2
2
|
export { DefaultPortal, Portal, Presence, Slot, cloneElement, createCollection, createLayer, definePortal, isElement, layout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as VNode, t as ForEachSource, u as RenderableChild } from "./control-
|
|
2
|
-
import { r as JSXElement } from "./jsx-
|
|
1
|
+
import { d as VNode, t as ForEachSource, u as RenderableChild } from "./control-x8iehxf7.js";
|
|
2
|
+
import { r as JSXElement } from "./jsx-BYXe_Nnk.js";
|
|
3
3
|
//#region src/control/shared.d.ts
|
|
4
4
|
type BoundaryChild = RenderableChild;
|
|
5
5
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as RenderableChild } from "./control-
|
|
2
|
-
import { r as JSXElement } from "./jsx-
|
|
3
|
-
import "./types-
|
|
1
|
+
import { u as RenderableChild } from "./control-x8iehxf7.js";
|
|
2
|
+
import { r as JSXElement } from "./jsx-BYXe_Nnk.js";
|
|
3
|
+
import "./types-CsPtBGWb.js";
|
|
4
4
|
//#region src/foundations/structures/layout.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Layout helper.
|
|
@@ -4,10 +4,13 @@ type QueryStaleReason = 'aborted' | 'error' | 'inconsistent';
|
|
|
4
4
|
interface DataRuntime {
|
|
5
5
|
readonly queryCache: Map<string, unknown>;
|
|
6
6
|
readonly queryData: Map<string, unknown>;
|
|
7
|
+
/** Test-only query overrides keyed by the canonical query key. */
|
|
8
|
+
readonly queryTestOverrides: Map<string, unknown>;
|
|
7
9
|
}
|
|
8
10
|
interface DataRuntimeOptions {
|
|
9
11
|
queryCache?: Map<string, unknown>;
|
|
10
12
|
queryData?: Map<string, unknown>;
|
|
13
|
+
queryTestOverrides?: Map<string, unknown>;
|
|
11
14
|
}
|
|
12
15
|
interface QueryDefinition<TInput, TResult extends {}> {
|
|
13
16
|
readonly key: (input: TInput) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as ComponentInstance, b as StateTuple, i as ReadableSource, n as ChildScope, o as Scope, r as DOMRange, u as RenderableChild } from "./control-
|
|
2
|
-
import { r as JSXElement } from "./jsx-
|
|
1
|
+
import { a as ComponentInstance, b as StateTuple, i as ReadableSource, n as ChildScope, o as Scope, r as DOMRange, u as RenderableChild } from "./control-x8iehxf7.js";
|
|
2
|
+
import { r as JSXElement } from "./jsx-BYXe_Nnk.js";
|
|
3
3
|
import { t as Scheduler } from "./scheduler-CmLO4Dfm.js";
|
|
4
|
-
import { D as QueryPrefetchContext, _ as CoreTelemetry } from "./index-
|
|
5
|
-
import "./jsx-runtime-
|
|
4
|
+
import { D as QueryPrefetchContext, _ as CoreTelemetry } from "./index-SGxMZLAc.js";
|
|
5
|
+
import "./jsx-runtime-BqhMEuT4.js";
|
|
6
6
|
import { AuthContext, AuthRequirement } from "@askrjs/auth";
|
|
7
7
|
import { InferSchema, ObjectSchema } from "@askrjs/schema";
|
|
8
8
|
//#region src/runtime/component-scope.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as StateTuple, c as readScope, o as Scope, s as defineScope, v as State, x as state, y as StateSetter } from "./control-
|
|
2
|
-
import { s as Props, t as Fragment } from "./jsx-
|
|
3
|
-
import { $ as cspNonce, Q as CspNonceScope, at as AskrRuntimeOptions, c as createRef, ct as createRuntime, d as registerSSRStyle, et as Selector, it as AskrRuntime, lt as getDefaultRuntime, nt as Derived, ot as RuntimeKeyedReorderDecision, rt as derive, s as Ref, st as RuntimeRendererHost, tt as selector, ut as getSignal } from "./index-
|
|
4
|
-
import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "./index-
|
|
5
|
-
import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-
|
|
6
|
-
import { i as jsxs, n as jsx } from "./jsx-runtime-
|
|
1
|
+
import { b as StateTuple, c as readScope, o as Scope, s as defineScope, v as State, x as state, y as StateSetter } from "./control-x8iehxf7.js";
|
|
2
|
+
import { s as Props, t as Fragment } from "./jsx-BYXe_Nnk.js";
|
|
3
|
+
import { $ as cspNonce, Q as CspNonceScope, at as AskrRuntimeOptions, c as createRef, ct as createRuntime, d as registerSSRStyle, et as Selector, it as AskrRuntime, lt as getDefaultRuntime, nt as Derived, ot as RuntimeKeyedReorderDecision, rt as derive, s as Ref, st as RuntimeRendererHost, tt as selector, ut as getSignal } from "./index-yDjeTqs5.js";
|
|
4
|
+
import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "./index-BYWsbogt.js";
|
|
5
|
+
import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-SGxMZLAc.js";
|
|
6
|
+
import { i as jsxs, n as jsx } from "./jsx-runtime-LHh5tcTe.js";
|
|
7
7
|
export { AskrRuntime, type AskrRuntimeOptions, Case, type CaseProps, CspNonceScope, type DataRuntime, type Derived, For, type ForProps, Fragment, Match, type MatchProps, type Props, type QueryDefinition, type QueryPrefetchContext, type Ref, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, createQuery, createRef, createRuntime, cspNonce, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, registerSSRStyle, selector, serveQuery, state };
|