@askrjs/askr 0.0.87 → 0.0.89
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/actions/index.js +1 -1
- package/dist/{activity-DNYL__cW.d.ts → activity-CF2_JvJs.d.ts} +1 -1
- package/dist/{activity-BnkhdIXm.js → activity-CQKEAORw.js} +5 -3
- package/dist/benchmark.d.ts +1 -1
- package/dist/benchmark.js +6 -6
- package/dist/boot/index.d.ts +6 -4
- package/dist/boot/index.js +1 -1
- package/dist/{boot-Bd-j_BL5.js → boot-CrbszDjZ.js} +26 -15
- package/dist/{component-internal-uVCJAre6.js → component-internal-C4uwwUaK.js} +31 -2
- 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-BF3geQKh.js → control-CON10J1p.js} +1 -1
- package/dist/{control-BjYBlytA.d.ts → control-CsGs2bLS.d.ts} +1 -1
- package/dist/{control-DhUZU4_V.d.ts → control-D-FIa-n-.d.ts} +3 -1
- package/dist/{csp-nonce-CUscoNF1.js → csp-nonce-DH0TrDij.js} +1 -1
- package/dist/data/index.d.ts +3 -2
- package/dist/data/index.js +3 -3
- package/dist/{data-CXZ-FOa7.js → data-BmZC1kDn.js} +27 -9
- package/dist/{data-runtime-CnVeSvJz.js → data-runtime-SC6zzAwh.js} +10 -5
- package/dist/{deferred-_DaSfpsr.js → deferred-Bh-nZhZF.js} +5 -4
- package/dist/{for-internal-Dxf3iZ9E.js → for-internal-Bsm0B8GZ.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-BU17hud9.d.ts} +2 -2
- package/dist/index-CPlPDbEY.d.ts +64 -0
- package/dist/{index-DflhL1h8.d.ts → index-Cf2ANwPL.d.ts} +3 -3
- package/dist/{index-BvNkcegT.d.ts → index-Izwp_ESC.d.ts} +20 -5
- package/dist/index.d.ts +8 -7
- package/dist/index.js +8 -8
- 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-DTO93Hrl.js → lifecycle-operations-CMK1AN2C.js} +1 -1
- package/dist/{navigate-B_fcLDAG.d.ts → navigate-BO7M2iUG.d.ts} +1 -1
- package/dist/{navigate-DSATWfHh.js → navigate-DIOaNAcS.js} +5 -4
- package/dist/{query-registry-p_0kkieE.js → query-registry-IACQeDqi.js} +1 -1
- package/dist/{renderer-BGMaUrVj.js → renderer-y2DL627q.js} +47 -9
- package/dist/{resolution-BRmiFYvw.js → resolution-D3UO6aKA.js} +40 -4
- package/dist/{resource-operation-B94oj6xT.js → resource-operation-CYDU3XzS.js} +1 -1
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +4 -4
- package/dist/router/index.d.ts +28 -7
- package/dist/router/index.js +18 -17
- package/dist/{selector-Ck_Pp9av.js → selector-BLNkRZ2i.js} +2 -1
- package/dist/ssg/index.d.ts +2 -2
- package/dist/ssg/index.js +4 -4
- package/dist/ssr/index.d.ts +5 -4
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-q250YlKo.js → ssr-DXGtDJd7.js} +11 -9
- package/dist/{structures-DsOm-clq.js → structures--NKfTh3j.js} +2 -1
- package/dist/testing/index.d.ts +35 -4
- package/dist/testing/index.js +150 -3
- package/dist/{types-C9YcqVpk.d.ts → types-CsPtBGWb.d.ts} +1 -1
- package/dist/{index-SGxMZLAc.d.ts → types-iAmDSV6o.d.ts} +6 -63
- package/dist/{verify-hydration-DkISyZCo.js → verify-hydration-AdrYLDxd.js} +1 -1
- package/package.json +11 -10
- package/dist/jsx-runtime-C-oIHX9X.d.ts +0 -2
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-Izwp_ESC.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-SC6zzAwh.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-C4uwwUaK.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";
|
|
@@ -10,7 +10,8 @@ function createAppRenderRuntime(input = {}) {
|
|
|
10
10
|
return {
|
|
11
11
|
framework: Object.freeze({ ...input.framework }),
|
|
12
12
|
route: input.route,
|
|
13
|
-
hasRoute: input.hasRoute ?? false
|
|
13
|
+
hasRoute: input.hasRoute ?? false,
|
|
14
|
+
dataRuntime: input.dataRuntime
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
function stageAppRenderRouteLocation(runtime, href) {
|
|
@@ -166,7 +167,8 @@ function readCurrentRouteSnapshot() {
|
|
|
166
167
|
const { pathname, search, hash, withinBasePath } = readCurrentRouteLocation();
|
|
167
168
|
const query = makeQuery(search);
|
|
168
169
|
const matches = withinBasePath ? computeMatchesFromRoutes(pathname, getActiveRoutes()) : [];
|
|
169
|
-
const
|
|
170
|
+
const routeParams = (withinBasePath ? getActiveRenderContext()?.params : void 0) ?? matches[0]?.params ?? {};
|
|
171
|
+
const params = deepFreeze({ ...routeParams });
|
|
170
172
|
return Object.freeze({
|
|
171
173
|
path: pathname,
|
|
172
174
|
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-y2DL627q.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-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-CrbszDjZ.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.89",
|
|
67
|
+
buildLabel: "0.0.89-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 {
|
|
3
|
-
import {
|
|
4
|
-
import { a as ScrollRestorationOptions } from "../navigate-
|
|
1
|
+
import { l as ComponentFunction } from "../control-D-FIa-n-.js";
|
|
2
|
+
import { t as DataRuntime } from "../types-iAmDSV6o.js";
|
|
3
|
+
import { W as RouteRegistry, w as RouteAuthOptions } from "../index-Izwp_ESC.js";
|
|
4
|
+
import { a as ScrollRestorationOptions } from "../navigate-BO7M2iUG.js";
|
|
5
5
|
//#region src/boot/types.d.ts
|
|
6
6
|
type IslandConfig = {
|
|
7
7
|
root: Element | string;
|
|
@@ -20,6 +20,8 @@ type BootRouteSource = {
|
|
|
20
20
|
type SPAConfig = BootRouteSource & {
|
|
21
21
|
root: Element | string;
|
|
22
22
|
cspNonce?: string;
|
|
23
|
+
/** Optional data runtime, primarily for routed test fixtures. */
|
|
24
|
+
dataRuntime?: DataRuntime;
|
|
23
25
|
/** Pass a route registry built via `createRouteRegistry(() => { ... })`. */
|
|
24
26
|
auth?: RouteAuthOptions;
|
|
25
27
|
scrollRestoration?: boolean | ScrollRestorationOptions;
|
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-CrbszDjZ.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-C4uwwUaK.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-y2DL627q.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-DH0TrDij.js";
|
|
11
|
+
import { i as getDefaultDataRuntime } from "./data-runtime-SC6zzAwh.js";
|
|
12
|
+
import { a as hydrateDataRuntime } from "./query-registry-IACQeDqi.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-D3UO6aKA.js";
|
|
15
|
+
import { o as createAppRenderRuntime, r as setServerLocation } from "./activity-CQKEAORw.js";
|
|
16
|
+
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-DIOaNAcS.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;
|
|
@@ -498,8 +499,9 @@ async function createSPA(config) {
|
|
|
498
499
|
setServerLocation(currentUrl);
|
|
499
500
|
const appRuntime = createAppRenderRuntime(resolved?.kind === "render" && hasRouteRenderData(resolved) ? {
|
|
500
501
|
route: getRouteRenderData(resolved),
|
|
501
|
-
hasRoute: true
|
|
502
|
-
|
|
502
|
+
hasRoute: true,
|
|
503
|
+
dataRuntime: config.dataRuntime ?? getDefaultDataRuntime()
|
|
504
|
+
} : { dataRuntime: config.dataRuntime ?? getDefaultDataRuntime() });
|
|
503
505
|
if (!resolved) {
|
|
504
506
|
mountOrUpdate(rootElement, () => ({
|
|
505
507
|
type: "div",
|
|
@@ -509,7 +511,10 @@ async function createSPA(config) {
|
|
|
509
511
|
appRuntime,
|
|
510
512
|
cspNonce: config.cspNonce
|
|
511
513
|
});
|
|
512
|
-
await registerAppNavigation(rootElement, path, {
|
|
514
|
+
await registerAppNavigation(rootElement, path, {
|
|
515
|
+
...appRouteSource,
|
|
516
|
+
runtime: appRuntime
|
|
517
|
+
});
|
|
513
518
|
return;
|
|
514
519
|
}
|
|
515
520
|
if (resolved.kind === "redirect") {
|
|
@@ -521,7 +526,10 @@ async function createSPA(config) {
|
|
|
521
526
|
appRuntime,
|
|
522
527
|
cspNonce: config.cspNonce
|
|
523
528
|
});
|
|
524
|
-
await registerAppNavigation(rootElement, path, {
|
|
529
|
+
await registerAppNavigation(rootElement, path, {
|
|
530
|
+
...appRouteSource,
|
|
531
|
+
runtime: appRuntime
|
|
532
|
+
});
|
|
525
533
|
return;
|
|
526
534
|
}
|
|
527
535
|
await reconcileInitialRouteMetadata(resolved);
|
|
@@ -533,7 +541,10 @@ async function createSPA(config) {
|
|
|
533
541
|
appRuntime,
|
|
534
542
|
cspNonce: config.cspNonce
|
|
535
543
|
});
|
|
536
|
-
await registerAppNavigation(rootElement, path, {
|
|
544
|
+
await registerAppNavigation(rootElement, path, {
|
|
545
|
+
...appRouteSource,
|
|
546
|
+
runtime: appRuntime
|
|
547
|
+
});
|
|
537
548
|
}
|
|
538
549
|
/**
|
|
539
550
|
* hydrateSPA: Hydrate server-rendered HTML with an explicit route registry.
|
|
@@ -587,7 +598,7 @@ async function hydrateSPA(config) {
|
|
|
587
598
|
cspNonce: config.cspNonce
|
|
588
599
|
}));
|
|
589
600
|
if (shouldVerifyHydrationMarkup(config)) {
|
|
590
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
601
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-AdrYLDxd.js");
|
|
591
602
|
if (!verifyHydrationSyncForUrl({
|
|
592
603
|
root: rootElement,
|
|
593
604
|
url: currentUrl,
|
|
@@ -316,6 +316,35 @@ function getCurrentContextFrame() {
|
|
|
316
316
|
return currentContextFrame;
|
|
317
317
|
}
|
|
318
318
|
//#endregion
|
|
319
|
+
//#region src/runtime/render-diagnostics.ts
|
|
320
|
+
let renderDiagnostics = {
|
|
321
|
+
slowRenderWarnings: true,
|
|
322
|
+
slowRenderThresholdMs: 5
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Configure development render diagnostics and return a function that restores
|
|
326
|
+
* the previous configuration. Component counters and timing remain enabled
|
|
327
|
+
* when warning output is disabled.
|
|
328
|
+
*/
|
|
329
|
+
function configureRenderDiagnostics(options) {
|
|
330
|
+
if (options.slowRenderThresholdMs !== void 0 && (!Number.isFinite(options.slowRenderThresholdMs) || options.slowRenderThresholdMs < 0)) throw new TypeError("configureRenderDiagnostics slowRenderThresholdMs must be a finite, non-negative number.");
|
|
331
|
+
const previous = renderDiagnostics;
|
|
332
|
+
renderDiagnostics = {
|
|
333
|
+
slowRenderWarnings: options.slowRenderWarnings ?? previous.slowRenderWarnings,
|
|
334
|
+
slowRenderThresholdMs: options.slowRenderThresholdMs ?? previous.slowRenderThresholdMs
|
|
335
|
+
};
|
|
336
|
+
let restored = false;
|
|
337
|
+
return () => {
|
|
338
|
+
if (restored) return;
|
|
339
|
+
restored = true;
|
|
340
|
+
if (renderDiagnostics === previous) return;
|
|
341
|
+
renderDiagnostics = previous;
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function shouldWarnSlowRender(renderTimeMs) {
|
|
345
|
+
return renderDiagnostics.slowRenderWarnings && renderTimeMs > renderDiagnostics.slowRenderThresholdMs;
|
|
346
|
+
}
|
|
347
|
+
//#endregion
|
|
319
348
|
//#region src/runtime/component-lifecycle.ts
|
|
320
349
|
function registerCommitOperationForInstance(instance, operation) {
|
|
321
350
|
if (instance) {
|
|
@@ -668,7 +697,7 @@ function executeComponentSync(instance) {
|
|
|
668
697
|
const result = callWithContext(getExecutionContextFrame(instance.ownerFrame), instance.fn, instance.props, context);
|
|
669
698
|
if (trackRenderTime) {
|
|
670
699
|
const renderTime = Date.now() - renderStartTime;
|
|
671
|
-
if (renderTime
|
|
700
|
+
if (shouldWarnSlowRender(renderTime)) warnInstanceOnce(instance, "slow-render", `[askr] Slow render detected in ${instance.fn?.name || "<anonymous>"}: ${renderTime}ms. Consider optimizing component performance.`);
|
|
672
701
|
}
|
|
673
702
|
if (!instance.firstRenderComplete) instance.firstRenderComplete = true;
|
|
674
703
|
didComplete = true;
|
|
@@ -708,4 +737,4 @@ function warnInstanceOnce(instance, key, message) {
|
|
|
708
737
|
logger.warn(message);
|
|
709
738
|
}
|
|
710
739
|
//#endregion
|
|
711
|
-
export {
|
|
740
|
+
export { readScope as _, registerCommitOperation as a, withContext as b, registerCommitOperationForInstance as c, defineScope as d, getCurrentContextFrame as f, markVNodeTreeWithContextFrame as g, haveEquivalentContextFrames as h, mountInstanceInline as i, configureRenderDiagnostics as l, getVNodeContextFrame as m, createComponentInstance as n, renderComponentInline as o, getExecutionContextFrame as p, executeComponent as r, renderScopedComponent as s, captureInlineRenderSnapshot as t, callWithContext as u, rebaseVNodeTreeWithContextFrame as v, withAsyncResourceContext as y };
|
|
@@ -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-D-FIa-n-.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-BU17hud9.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-CON10J1p.js";
|
|
2
2
|
export { Case, For, Match, Show };
|
|
@@ -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-Bsm0B8GZ.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 { 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,4 +1,5 @@
|
|
|
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
|
+
import { t as DataRuntime } from "./types-iAmDSV6o.js";
|
|
2
3
|
//#region src/runtime/state.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* State value holder - callable to read, has set method to update
|
|
@@ -141,6 +142,7 @@ interface AppRenderRuntime {
|
|
|
141
142
|
framework: Readonly<Record<string, unknown>>;
|
|
142
143
|
route: unknown;
|
|
143
144
|
hasRoute: boolean;
|
|
145
|
+
dataRuntime?: DataRuntime;
|
|
144
146
|
}
|
|
145
147
|
//#endregion
|
|
146
148
|
//#region src/runtime/component-internal.d.ts
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { a as Mutation, c as QueryConsistency, f as QueryPrefetchContext, h as ServerQueryHandler, i as InvalidateOptions, l as QueryDefinition, m as QueryStaleReason, n as DataRuntimeOptions, o as MutationOptions, p as QueryScope, r as InvalidateOnIntervalOptions, s as Query, t as DataRuntime, u as QueryKeyPart } from "../types-iAmDSV6o.js";
|
|
2
|
+
import { a as defineServerQueries, c as prefetchQuery, d as invalidateOnInterval, f as queryScope, g as createMutation, h as createQuery, i as defineQuery, 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 } from "../index-CPlPDbEY.js";
|
|
3
|
+
export { type DataRuntime, type DataRuntimeOptions, type InvalidateOnIntervalOptions, type InvalidateOptions, type Mutation, type MutationOptions, 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 {
|
|
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-SC6zzAwh.js";
|
|
2
|
+
import { c as queryScope, n as createMutation, o as invalidate, s as invalidateOnInterval, t as createQuery } from "../data-BmZC1kDn.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-IACQeDqi.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
|
-
import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
|
|
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
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-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-SC6zzAwh.js";
|
|
7
7
|
//#region src/data/query-key.ts
|
|
8
8
|
function serializeQueryKeyNumber(part) {
|
|
9
9
|
if (Number.isNaN(part)) return "NaN";
|
|
@@ -191,19 +191,37 @@ var MutationCell = class {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
function createMutation(options) {
|
|
194
|
+
if (options.key !== void 0 && options.key.length === 0) throw new TypeError("createMutation key must be a non-empty string.");
|
|
194
195
|
const instance = getCurrentComponentInstance();
|
|
195
196
|
const runtimeState = resolveDataRuntimeState(options.runtime);
|
|
196
|
-
|
|
197
|
+
const override = options.key ? runtimeState.mutationTestOverrides.get(options.key) : void 0;
|
|
198
|
+
if (!instance) {
|
|
199
|
+
if (override) return override;
|
|
200
|
+
return new MutationCell(options, runtimeState);
|
|
201
|
+
}
|
|
197
202
|
const hookIndex = claimHookIndex(instance, "mutation");
|
|
198
203
|
ensureMutationCleanup(runtimeState, instance);
|
|
199
204
|
const slotStore = getMutationSlotStore(runtimeState, instance);
|
|
200
|
-
|
|
201
|
-
|
|
205
|
+
if (override) {
|
|
206
|
+
const existingSlot = slotStore.get(hookIndex);
|
|
207
|
+
if (existingSlot) {
|
|
208
|
+
existingSlot.cell.abort();
|
|
209
|
+
slotStore.delete(hookIndex);
|
|
210
|
+
}
|
|
211
|
+
return override;
|
|
212
|
+
}
|
|
213
|
+
const existingSlot = slotStore.get(hookIndex);
|
|
214
|
+
if (existingSlot && existingSlot.key === options.key) {
|
|
215
|
+
const existing = existingSlot.cell;
|
|
202
216
|
existing.setOptions(options);
|
|
203
217
|
return existing;
|
|
204
218
|
}
|
|
219
|
+
if (existingSlot) existingSlot.cell.abort();
|
|
205
220
|
const created = new MutationCell(options, runtimeState);
|
|
206
|
-
slotStore.set(hookIndex,
|
|
221
|
+
slotStore.set(hookIndex, {
|
|
222
|
+
key: options.key,
|
|
223
|
+
cell: created
|
|
224
|
+
});
|
|
207
225
|
return created;
|
|
208
226
|
}
|
|
209
227
|
//#endregion
|
|
@@ -538,7 +556,7 @@ function createDefinedQuery(definition, input, options = {}) {
|
|
|
538
556
|
const runtime = options.runtime;
|
|
539
557
|
const context = getActiveRenderContext();
|
|
540
558
|
const key = definition.key(input);
|
|
541
|
-
const dataRuntime = runtime ?? getActiveRenderContext()?.dataRuntime ?? getDefaultDataRuntime();
|
|
559
|
+
const dataRuntime = runtime ?? getActiveRenderContext()?.dataRuntime ?? getCurrentAppRenderRuntime()?.dataRuntime ?? getDefaultDataRuntime();
|
|
542
560
|
const initialData = dataRuntime?.queryData.get(key);
|
|
543
561
|
return createLegacyQuery({
|
|
544
562
|
...options,
|
|
@@ -560,4 +578,4 @@ function createQuery(optionsOrDefinition, input, options) {
|
|
|
560
578
|
return createLegacyQuery(optionsOrDefinition);
|
|
561
579
|
}
|
|
562
580
|
//#endregion
|
|
563
|
-
export {
|
|
581
|
+
export { notifySource as a, queryScope as c, normalizeAsyncDataError as i, createMutation as n, invalidate as o, createReadableSource as r, invalidateOnInterval as s, createQuery as t };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { d as getCurrentAppRenderRuntime } from "./component-scope-DzJEbYGE.js";
|
|
1
2
|
import { n as getActiveRenderContext } from "./render-context-D0Hoj9dW.js";
|
|
2
3
|
//#region src/data/invalidation-listeners.ts
|
|
3
4
|
const invalidationListeners = /* @__PURE__ */ new Set();
|
|
@@ -14,7 +15,7 @@ function emitInvalidation(event) {
|
|
|
14
15
|
//#region src/data/data-runtime.ts
|
|
15
16
|
const dataRuntimeStates = /* @__PURE__ */ new WeakMap();
|
|
16
17
|
const dataRuntimeByQueryCache = /* @__PURE__ */ new WeakMap();
|
|
17
|
-
function createDataRuntimeState(queryCache, queryData, queryTestOverrides) {
|
|
18
|
+
function createDataRuntimeState(queryCache, queryData, queryTestOverrides, mutationTestOverrides) {
|
|
18
19
|
return {
|
|
19
20
|
queryCache,
|
|
20
21
|
queryData,
|
|
@@ -22,16 +23,18 @@ function createDataRuntimeState(queryCache, queryData, queryTestOverrides) {
|
|
|
22
23
|
mutationSlotsByGeneration: /* @__PURE__ */ new WeakMap(),
|
|
23
24
|
queryCleanupRegistered: /* @__PURE__ */ new WeakSet(),
|
|
24
25
|
mutationCleanupRegistered: /* @__PURE__ */ new WeakSet(),
|
|
25
|
-
queryTestOverrides
|
|
26
|
+
queryTestOverrides,
|
|
27
|
+
mutationTestOverrides
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
function createDataRuntime(options = {}) {
|
|
29
31
|
const runtime = Object.freeze({
|
|
30
32
|
queryCache: options.queryCache ?? /* @__PURE__ */ new Map(),
|
|
31
33
|
queryData: options.queryData ?? /* @__PURE__ */ new Map(),
|
|
32
|
-
queryTestOverrides: options.queryTestOverrides ?? /* @__PURE__ */ new Map()
|
|
34
|
+
queryTestOverrides: options.queryTestOverrides ?? /* @__PURE__ */ new Map(),
|
|
35
|
+
mutationTestOverrides: options.mutationTestOverrides ?? /* @__PURE__ */ new Map()
|
|
33
36
|
});
|
|
34
|
-
dataRuntimeStates.set(runtime, createDataRuntimeState(runtime.queryCache, runtime.queryData, runtime.queryTestOverrides));
|
|
37
|
+
dataRuntimeStates.set(runtime, createDataRuntimeState(runtime.queryCache, runtime.queryData, runtime.queryTestOverrides, runtime.mutationTestOverrides));
|
|
35
38
|
dataRuntimeByQueryCache.set(runtime.queryCache, runtime);
|
|
36
39
|
return runtime;
|
|
37
40
|
}
|
|
@@ -59,6 +62,8 @@ function getActiveDataRuntime() {
|
|
|
59
62
|
const ctx = getActiveRenderContext();
|
|
60
63
|
if (isDataRuntime(ctx?.dataRuntime)) return ctx.dataRuntime;
|
|
61
64
|
if (ctx?.queryCache) return getDataRuntimeForQueryCache(ctx.queryCache);
|
|
65
|
+
const appRuntime = getCurrentAppRenderRuntime();
|
|
66
|
+
if (appRuntime?.dataRuntime) return appRuntime.dataRuntime;
|
|
62
67
|
return defaultDataRuntime;
|
|
63
68
|
}
|
|
64
69
|
function getActiveDataRuntimeState() {
|
|
@@ -103,7 +108,7 @@ function ensureMutationCleanup(runtimeState, instance) {
|
|
|
103
108
|
runtimeState.mutationCleanupRegistered.add(generation);
|
|
104
109
|
const slots = getMutationSlotStore(runtimeState, instance);
|
|
105
110
|
(instance.cleanupFns ??= []).push(() => {
|
|
106
|
-
for (const
|
|
111
|
+
for (const slot of slots.values()) slot.cell.abort();
|
|
107
112
|
slots.clear();
|
|
108
113
|
runtimeState.mutationSlotsByGeneration.delete(generation);
|
|
109
114
|
runtimeState.mutationCleanupRegistered.delete(generation);
|
|
@@ -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-CYDU3XzS.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-D3UO6aKA.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 {
|
|
4
|
+
import { h as haveEquivalentContextFrames, n as createComponentInstance, s as renderScopedComponent, v as rebaseVNodeTreeWithContextFrame } from "./component-internal-C4uwwUaK.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-Cf2ANwPL.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-D-FIa-n-.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-Cf2ANwPL.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 };
|