@askrjs/askr 0.0.67 → 0.0.68
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/benchmark.js +4 -4
- package/dist/boot/index.js +1 -1
- package/dist/{boot-DjTa12LD.js → boot-C8UOxI4f.js} +3 -3
- package/dist/{cleanup-B0kFA4Fv.js → cleanup-UyStxIHG.js} +19 -6
- package/dist/index.js +1 -1
- package/dist/{navigate-CJySBpA9.js → navigate-DpR-cML9.js} +1 -1
- package/dist/{renderer-Dwkk68c5.js → renderer-bZ0315dE.js} +1 -1
- package/dist/router/index.js +1 -1
- package/package.json +1 -1
package/dist/benchmark.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as flushRuntimeScheduler } from "./access-ePqdQqkV.js";
|
|
2
|
-
import { t as installRendererBridge } from "./renderer-
|
|
2
|
+
import { t as installRendererBridge } from "./renderer-bZ0315dE.js";
|
|
3
3
|
import { t as state } from "./state-CVuQVjvK.js";
|
|
4
4
|
import { t as selector } from "./selector-DueeR6Oz.js";
|
|
5
5
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
6
6
|
import { i as For } from "./control-CA45Yvvu.js";
|
|
7
|
-
import { t as createIsland } from "./boot-
|
|
7
|
+
import { t as createIsland } from "./boot-C8UOxI4f.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.68",
|
|
67
|
+
buildLabel: "0.0.68-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-C8UOxI4f.js";
|
|
2
2
|
export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
|
|
@@ -3,8 +3,8 @@ import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
|
3
3
|
import { n as createComponentInstance, r as executeComponent } from "./component-internal-CPjM4n8M.js";
|
|
4
4
|
import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
5
5
|
import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
|
|
6
|
-
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-
|
|
7
|
-
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-
|
|
6
|
+
import { a as withIntrinsicHydrationAdoption, i as registerDeferredHydrationBoundary, n as activateHydrationBoundary$1, o as setStaticChildSlotsCacheEnabled, r as clearDeferredHydrationBoundaries, t as installRendererBridge } from "./renderer-bZ0315dE.js";
|
|
7
|
+
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-UyStxIHG.js";
|
|
8
8
|
import { c as _applyManifest, d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, o as reviveDeferredValue, p as hasRouteRenderData, v as pageRenderEnvelope, w as assertExecutionModel } from "./deferred-zHtUheIQ.js";
|
|
9
9
|
import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
|
|
10
10
|
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-D7TC986A.js";
|
|
@@ -12,7 +12,7 @@ import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-HGZ0vbqT.
|
|
|
12
12
|
import { i as getDefaultDataRuntime } from "./data-runtime-SJ1BSUvk.js";
|
|
13
13
|
import { a as hydrateDataRuntime } from "./query-registry-CQIT4mXr.js";
|
|
14
14
|
import { d as _setActiveRouteAuthOptions, j as lockRouteRegistration, k as hasRegisteredRoutes, m as clearRouteState } from "./route-matching-DLBWDeXX.js";
|
|
15
|
-
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation, v as setServerLocation, y as createAppRenderRuntime } from "./navigate-
|
|
15
|
+
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation, v as setServerLocation, y as createAppRenderRuntime } from "./navigate-DpR-cML9.js";
|
|
16
16
|
import "./ssr-CbQO5xd3.js";
|
|
17
17
|
//#region src/boot/hydration.ts
|
|
18
18
|
const DEFERRED_PAYLOAD = "__askr_deferred__";
|
|
@@ -41,6 +41,11 @@ const delegatedHandlerFallback = /* @__PURE__ */ new WeakMap();
|
|
|
41
41
|
function getDelegatedHandlerStore(element) {
|
|
42
42
|
return element[DELEGATED_HANDLERS] ?? delegatedHandlerFallback.get(element);
|
|
43
43
|
}
|
|
44
|
+
function isElementNode(node) {
|
|
45
|
+
if (!node || typeof node !== "object") return false;
|
|
46
|
+
if (typeof Element !== "undefined") return node instanceof Element;
|
|
47
|
+
return node.nodeType === 1;
|
|
48
|
+
}
|
|
44
49
|
function setDelegatedHandlerStore(element, store) {
|
|
45
50
|
const host = element;
|
|
46
51
|
try {
|
|
@@ -87,12 +92,21 @@ function attachDelegatedListener(container, element, eventName, handler, origina
|
|
|
87
92
|
let containerListener = containerListeners.get(eventName);
|
|
88
93
|
if (!containerListener) {
|
|
89
94
|
const delegatedHandler = (e) => {
|
|
90
|
-
const target = e.target;
|
|
91
|
-
if (!target) return;
|
|
92
95
|
runRuntimeHandlerScope(() => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
const path = [];
|
|
97
|
+
if (typeof e.composedPath === "function") path.push(...e.composedPath());
|
|
98
|
+
else {
|
|
99
|
+
let node = e.target;
|
|
100
|
+
while (node) {
|
|
101
|
+
path.push(node);
|
|
102
|
+
if (node === container) break;
|
|
103
|
+
node = isElementNode(node) ? node.parentNode : node.parentNode;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
for (const node of path) {
|
|
107
|
+
if (node === container) break;
|
|
108
|
+
if (!isElementNode(node)) continue;
|
|
109
|
+
const store = getDelegatedHandlerStore(node);
|
|
96
110
|
const entry = !store ? void 0 : store instanceof Map ? store.get(eventName) : store.eventName === eventName ? store : void 0;
|
|
97
111
|
if (entry) try {
|
|
98
112
|
entry.handler(e);
|
|
@@ -100,7 +114,6 @@ function attachDelegatedListener(container, element, eventName, handler, origina
|
|
|
100
114
|
logger.error("[Askr] Delegated event error:", error);
|
|
101
115
|
}
|
|
102
116
|
if (e.cancelBubble) break;
|
|
103
|
-
current = current.parentElement;
|
|
104
117
|
}
|
|
105
118
|
}, "sync");
|
|
106
119
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { h as readScope, u as defineScope } from "./component-internal-CPjM4n8M.
|
|
|
4
4
|
import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BYSoWJSv.js";
|
|
5
5
|
import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
6
|
import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
7
|
-
import { t as installRendererBridge } from "./renderer-
|
|
7
|
+
import { t as installRendererBridge } from "./renderer-bZ0315dE.js";
|
|
8
8
|
import { t as state } from "./state-CVuQVjvK.js";
|
|
9
9
|
import { t as selector } from "./selector-DueeR6Oz.js";
|
|
10
10
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
@@ -5,7 +5,7 @@ import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as mar
|
|
|
5
5
|
import { d as getCurrentAppRenderRuntime, f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
6
6
|
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
7
7
|
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-COgl8jMS.js";
|
|
8
|
-
import { _ as teardownNodeSubtree } from "./cleanup-
|
|
8
|
+
import { _ as teardownNodeSubtree } from "./cleanup-UyStxIHG.js";
|
|
9
9
|
import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-zHtUheIQ.js";
|
|
10
10
|
import { n as getActiveRenderContext } from "./render-context-Clw3rFiO.js";
|
|
11
11
|
import { n as syncRouteActivitySnapshot } from "./route-activity-CNJfpwx-.js";
|
|
@@ -9,7 +9,7 @@ import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
|
9
9
|
import { c as getCurrentLifecycleCommitBatch, l as registerLifecycleRollback, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-COgl8jMS.js";
|
|
10
10
|
import { _ as createChildScope, a as registerForStateTransaction, c as captureForFallbackTransactionSnapshot, d as clearCaseDomUpdateState, f as clearShowDomUpdateState, g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, l as captureForItemTransactionSnapshot, n as clearForDomUpdateState, o as rollbackForStateTransaction, t as beginForStateTransaction, v as disposeChildScope, y as rerenderChildScope } from "./for-internal-BtK9Htl0.js";
|
|
11
11
|
import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-CFUzIpqX.js";
|
|
12
|
-
import { C as getDelegatedHandlersForElement, D as updateDelegatedListener, E as removeDelegatedListener, S as getDelegatedHandlerForElement, T as isEventDelegationEnabled, _ as teardownNodeSubtree, a as elementReactivePropsCleanup, b as addFreshDelegatedListener, c as forEachElementReactivePropCleanup, d as removeAllListeners, f as removeElementReactiveProps, g as setFreshElementReactivePropCleanup, h as setDirectElementReactivePropCleanup, i as elementListeners, l as getElementReactivePropCleanupSize, m as replaceElementRefBookkeeping, n as cleanupInstanceIfPresent, o as elementRefs, p as removeElementRef, r as cleanupInstancesUnder, s as forEachDescendantNode, t as REACTIVE_CHILDREN_KEY, u as getElementReactivePropsCleanupMap, v as updateElementRef, w as isDelegatedEvent, x as clearDelegatedHandlersForElement, y as addDelegatedListener } from "./cleanup-
|
|
12
|
+
import { C as getDelegatedHandlersForElement, D as updateDelegatedListener, E as removeDelegatedListener, S as getDelegatedHandlerForElement, T as isEventDelegationEnabled, _ as teardownNodeSubtree, a as elementReactivePropsCleanup, b as addFreshDelegatedListener, c as forEachElementReactivePropCleanup, d as removeAllListeners, f as removeElementReactiveProps, g as setFreshElementReactivePropCleanup, h as setDirectElementReactivePropCleanup, i as elementListeners, l as getElementReactivePropCleanupSize, m as replaceElementRefBookkeeping, n as cleanupInstanceIfPresent, o as elementRefs, p as removeElementRef, r as cleanupInstancesUnder, s as forEachDescendantNode, t as REACTIVE_CHILDREN_KEY, u as getElementReactivePropsCleanupMap, v as updateElementRef, w as isDelegatedEvent, x as clearDelegatedHandlersForElement, y as addDelegatedListener } from "./cleanup-UyStxIHG.js";
|
|
13
13
|
import { t as getPublicAttributeName } from "./attr-names-CjhzmHOn.js";
|
|
14
14
|
import { i as ROUTE_ROOT_COMPONENT } from "./csp-nonce-HGZ0vbqT.js";
|
|
15
15
|
//#region src/runtime/error-boundary.ts
|
package/dist/router/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as lazy, a as resolveDeferredValues, b as Outlet, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, n as Resolve, r as defer, s as routeData, y as currentAuth } from "../deferred-zHtUheIQ.js";
|
|
2
2
|
import { jsx } from "../jsx-runtime.js";
|
|
3
3
|
import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-uaJ556aG.js";
|
|
4
|
-
import { _ as currentRoute, 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 { _ as currentRoute, 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-DpR-cML9.js";
|
|
5
5
|
import { o as mergeProps } from "../compose-ref-Cc_YkUpM.js";
|
|
6
6
|
import { t as applyInteractionPolicy } from "../interactions-w7gQN4ha.js";
|
|
7
7
|
//#region src/router/route-query.ts
|