@askrjs/askr 0.0.66 → 0.0.67
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/{authoring-Di8MInO-.js → authoring-uaJ556aG.js} +1 -1
- package/dist/benchmark.d.ts +1 -0
- package/dist/benchmark.js +7 -7
- package/dist/boot/index.d.ts +7 -6
- package/dist/boot/index.js +1 -1
- package/dist/{boot-B4UZumvB.js → boot-DjTa12LD.js} +10 -9
- package/dist/{cleanup-B6KovDZZ.js → cleanup-B0kFA4Fv.js} +3 -2
- package/dist/component-cleanup-1ZFoLLHt.js +141 -0
- package/dist/{component-internal-CbALfPGD.js → component-internal-CPjM4n8M.js} +23 -3
- package/dist/components/index.d.ts +1 -2
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-B5xu8v4m.d.ts → control-BjYBlytA.d.ts} +0 -1
- package/dist/{control-KVP6LMEQ.js → control-CA45Yvvu.js} +3 -3
- package/dist/{control-CMzFPMjr.d.ts → control-DO-iBEtV.d.ts} +0 -1
- package/dist/{csp-nonce-C-8E85El.js → csp-nonce-HGZ0vbqT.js} +1 -1
- package/dist/data/index.js +1 -1
- package/dist/{data-DvYo_dHd.js → data-DHt_zO1G.js} +2 -2
- package/dist/{deferred-Eh9bCVGH.js → deferred-zHtUheIQ.js} +4 -4
- package/dist/{effect-D_4zf_wy.js → effect-CFUzIpqX.js} +1 -1
- package/dist/fastlane-BTcFCMnm.js +147 -0
- package/dist/{for-internal-B2rBq6yB.js → for-internal-BtK9Htl0.js} +4 -3
- package/dist/foundations/icon/index.d.ts +3 -21
- package/dist/foundations/index.d.ts +1 -1
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/interactions/index.d.ts +31 -26
- package/dist/foundations/state/index.d.ts +1 -2
- package/dist/foundations/state/index.js +1 -1
- package/dist/foundations/structures/index.d.ts +1 -1
- package/dist/foundations/structures/index.js +1 -1
- package/dist/fx/index.d.ts +0 -1
- package/dist/{index-NKPpdRh9.d.ts → index-BFnTM1a8.d.ts} +2 -1
- package/dist/{index-Bjm0__Rr.d.ts → index-DSClfSoC.d.ts} +3 -7
- package/dist/{index-Byqjltu2.d.ts → index-Dh6ZF9yW.d.ts} +1 -2
- package/dist/{index-PgRn5wmg.d.ts → index-DjusBb1I.d.ts} +45 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -8
- package/dist/jsx-dev-runtime.d.ts +2 -1
- package/dist/jsx-runtime-X2SX2y8V.d.ts +2 -0
- package/dist/{jsx-runtime-iTU73uwP.d.ts → jsx-runtime-aYZ8zb4q.d.ts} +2 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/{component-lifecycle-DEMPihoZ.js → lifecycle-batch-COgl8jMS.js} +3 -160
- package/dist/{lifecycle-operations-Dj5lK1K7.js → lifecycle-operations-SlPEK68H.js} +1 -1
- package/dist/{navigate-QMRcR581.js → navigate-CJySBpA9.js} +9 -50
- package/dist/navigate-CV-RDqYP.d.ts +20 -0
- package/dist/{portal-D2tPWNrC.js → portal-D7TC986A.js} +3 -2
- package/dist/{fastlane-C8PYPotF.js → readable-BYSoWJSv.js} +2 -146
- package/dist/{renderer-aUD-acDe.js → renderer-Dwkk68c5.js} +25 -12
- package/dist/{resource-operation-Dz2Nxi1q.js → resource-operation-BJiLoLYZ.js} +3 -3
- package/dist/resources/index.d.ts +0 -1
- package/dist/resources/index.js +2 -2
- package/dist/router/index.d.ts +20 -15
- package/dist/router/index.js +45 -3
- package/dist/{router-4EhVGcma.d.ts → router-C0XQA62W.d.ts} +3 -4
- package/dist/{selector-pApF_lGd.js → selector-DueeR6Oz.js} +1 -1
- package/dist/ssg/index.d.ts +22 -11
- package/dist/ssg/index.js +3 -3
- package/dist/ssr/index.d.ts +6 -5
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-Y8Pq8riM.js → ssr-vE-KUgDV.js} +8 -7
- package/dist/{state-Cc5HumQ0.js → state-CVuQVjvK.js} +2 -1
- package/dist/testing/index.d.ts +1 -2
- package/dist/types-DEhT-Nrv.d.ts +63 -0
- package/dist/{verify-hydration-BcZXRU-q.js → verify-hydration-ChyEiBAn.js} +1 -1
- package/package.json +1 -1
- package/dist/jsx-runtime-BVVgDSdq.d.ts +0 -1
- package/dist/navigate-BVDCzOuB.d.ts +0 -34
- package/dist/types-4k3RFEaC.d.ts +0 -19
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Fragment } from "./jsx-CUpRxrLH.js";
|
|
1
|
+
import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-ePqdQqkV.js";
|
|
3
2
|
import { p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
4
|
-
//#region src/runtime/dev-namespace.ts
|
|
5
|
-
/**
|
|
6
|
-
* Set a value in the dev namespace (no-op in production).
|
|
7
|
-
*/
|
|
8
|
-
const setDevValue = () => {};
|
|
9
|
-
/**
|
|
10
|
-
* Increment a counter in the dev namespace (no-op in production).
|
|
11
|
-
* Safely handles non-number values by resetting to 1.
|
|
12
|
-
*/
|
|
13
|
-
const incDevCounter = () => {};
|
|
14
|
-
//#endregion
|
|
15
3
|
//#region src/runtime/readable.ts
|
|
16
4
|
const DEVELOPMENT_BUILD_ENABLED = false;
|
|
17
5
|
function markReadableUsage(source) {
|
|
@@ -208,136 +196,4 @@ function notifyReadableReaders(source, skipInstance, skipOwnedBy) {
|
|
|
208
196
|
return didScheduleUpdate;
|
|
209
197
|
}
|
|
210
198
|
//#endregion
|
|
211
|
-
|
|
212
|
-
let _bulkCommitActive = false;
|
|
213
|
-
let _appliedParents = null;
|
|
214
|
-
function enterBulkCommit() {
|
|
215
|
-
_bulkCommitActive = true;
|
|
216
|
-
_appliedParents = /* @__PURE__ */ new WeakSet();
|
|
217
|
-
}
|
|
218
|
-
function exitBulkCommit() {
|
|
219
|
-
_bulkCommitActive = false;
|
|
220
|
-
_appliedParents = null;
|
|
221
|
-
}
|
|
222
|
-
function isBulkCommitActive() {
|
|
223
|
-
return _bulkCommitActive;
|
|
224
|
-
}
|
|
225
|
-
function markFastPathApplied(parent) {
|
|
226
|
-
if (!_appliedParents) return;
|
|
227
|
-
try {
|
|
228
|
-
_appliedParents.add(parent);
|
|
229
|
-
} catch (e) {}
|
|
230
|
-
}
|
|
231
|
-
function finalizeReadSubscriptions(instance) {
|
|
232
|
-
finalizeReadableSubscriptions(instance);
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Attempt to execute a runtime fast-lane for a single component's synchronous
|
|
236
|
-
* render result. Returns true if the fast-lane was used and commit was done.
|
|
237
|
-
*
|
|
238
|
-
* Preconditions (checked conservatively):
|
|
239
|
-
* - The render result is an intrinsic element root with keyed children
|
|
240
|
-
* - The renderer's fast-path heuristics indicate to use the fast-path
|
|
241
|
-
* - No mount operations are pending on the component instance
|
|
242
|
-
* - No child vnodes are component functions (avoid async/component mounts)
|
|
243
|
-
*/
|
|
244
|
-
function unwrapFragmentForFastPath(vnode) {
|
|
245
|
-
if (!vnode || typeof vnode !== "object" || !("type" in vnode)) return vnode;
|
|
246
|
-
const v = vnode;
|
|
247
|
-
if (typeof v.type === "symbol" && (v.type === Fragment || String(v.type) === "Symbol(askr.fragment)")) {
|
|
248
|
-
const children = v.props?.children ?? v.children;
|
|
249
|
-
if (Array.isArray(children) && children.length > 0) {
|
|
250
|
-
for (const child of children) if (child && typeof child === "object" && "type" in child) {
|
|
251
|
-
if (typeof child.type === "string") return child;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return vnode;
|
|
256
|
-
}
|
|
257
|
-
function classifyUpdate(instance, result) {
|
|
258
|
-
const unwrappedResult = unwrapFragmentForFastPath(result);
|
|
259
|
-
if (!unwrappedResult || typeof unwrappedResult !== "object" || !("type" in unwrappedResult)) return {
|
|
260
|
-
useFastPath: false,
|
|
261
|
-
reason: "not-vnode"
|
|
262
|
-
};
|
|
263
|
-
const vnode = unwrappedResult;
|
|
264
|
-
if (vnode == null || typeof vnode.type !== "string") return {
|
|
265
|
-
useFastPath: false,
|
|
266
|
-
reason: "not-intrinsic"
|
|
267
|
-
};
|
|
268
|
-
const parent = instance.target;
|
|
269
|
-
if (!parent) return {
|
|
270
|
-
useFastPath: false,
|
|
271
|
-
reason: "no-root"
|
|
272
|
-
};
|
|
273
|
-
const firstChild = parent.children[0];
|
|
274
|
-
if (!firstChild) return {
|
|
275
|
-
useFastPath: false,
|
|
276
|
-
reason: "no-first-child"
|
|
277
|
-
};
|
|
278
|
-
if (firstChild.tagName.toLowerCase() !== String(vnode.type).toLowerCase()) return {
|
|
279
|
-
useFastPath: false,
|
|
280
|
-
reason: "root-tag-mismatch"
|
|
281
|
-
};
|
|
282
|
-
const children = vnode.props?.children ?? vnode.children;
|
|
283
|
-
if (!Array.isArray(children)) return {
|
|
284
|
-
useFastPath: false,
|
|
285
|
-
reason: "no-children-array"
|
|
286
|
-
};
|
|
287
|
-
for (const c of children) if (typeof c === "object" && c !== null && "type" in c && typeof c.type === "function") return {
|
|
288
|
-
useFastPath: false,
|
|
289
|
-
reason: "component-child-present"
|
|
290
|
-
};
|
|
291
|
-
if ((instance.mountOperations?.length ?? 0) > 0) return {
|
|
292
|
-
useFastPath: false,
|
|
293
|
-
reason: "pending-mounts"
|
|
294
|
-
};
|
|
295
|
-
if ((instance.commitOperations?.length ?? 0) > 0) return {
|
|
296
|
-
useFastPath: false,
|
|
297
|
-
reason: "pending-lifecycle-commits"
|
|
298
|
-
};
|
|
299
|
-
const renderer = getRuntimeRenderer();
|
|
300
|
-
try {
|
|
301
|
-
renderer.populateKeyMapForElement(firstChild);
|
|
302
|
-
} catch {}
|
|
303
|
-
const oldKeyMap = renderer.getKeyMapForElement(firstChild);
|
|
304
|
-
const decision = renderer.isKeyedReorderFastPathEligible(firstChild, children, oldKeyMap);
|
|
305
|
-
if (!decision.useFastPath || decision.totalKeyed < 128) return {
|
|
306
|
-
...decision,
|
|
307
|
-
useFastPath: false,
|
|
308
|
-
reason: "renderer-declined"
|
|
309
|
-
};
|
|
310
|
-
return {
|
|
311
|
-
...decision,
|
|
312
|
-
useFastPath: true
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
function commitReorderOnly(instance, result) {
|
|
316
|
-
const renderer = getRuntimeRenderer();
|
|
317
|
-
enterBulkCommit();
|
|
318
|
-
try {
|
|
319
|
-
runRuntimeWithSyncProgress(() => {
|
|
320
|
-
renderer.evaluate(result, instance.target);
|
|
321
|
-
try {
|
|
322
|
-
finalizeReadSubscriptions(instance);
|
|
323
|
-
} catch (e) {
|
|
324
|
-
if (isDevelopmentEnvironment()) throw e;
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
return true;
|
|
328
|
-
} finally {
|
|
329
|
-
exitBulkCommit();
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
function tryRuntimeFastLaneSync(instance, result) {
|
|
333
|
-
if (!classifyUpdate(instance, result).useFastPath) return false;
|
|
334
|
-
try {
|
|
335
|
-
return commitReorderOnly(instance, result);
|
|
336
|
-
} catch (err) {
|
|
337
|
-
if (isDevelopmentEnvironment()) throw err;
|
|
338
|
-
return false;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
setRuntimeBulkCommitProbe(isBulkCommitActive);
|
|
342
|
-
//#endregion
|
|
343
|
-
export { withFineGrainedReadTracking as _, cleanupReadableSubscriptions as a, finalizeReadableSubscriptionsFromSnapshot as c, markReadableUsage as d, notifyReadableReaders as f, withDerivedReadTracking as g, syncDerivedDependencySubscriptions as h, cleanupReadableSubscriptionSources as i, markReactivePropsDirtySource as l, shouldCoalesceFineGrainedItemReads as m, markFastPathApplied as n, clearDerivedDependencySubscriptions as o, recordReadableRead as p, tryRuntimeFastLaneSync as r, finalizeReadableSubscriptions as s, isBulkCommitActive as t, markReadableDerivedSubscribersDirty as u, incDevCounter as v, setDevValue as y };
|
|
199
|
+
export { finalizeReadableSubscriptionsFromSnapshot as a, markReadableUsage as c, shouldCoalesceFineGrainedItemReads as d, syncDerivedDependencySubscriptions as f, finalizeReadableSubscriptions as i, notifyReadableReaders as l, withFineGrainedReadTracking as m, cleanupReadableSubscriptions as n, markReactivePropsDirtySource as o, withDerivedReadTracking as p, clearDerivedDependencySubscriptions as r, markReadableDerivedSubscribersDirty as s, cleanupReadableSubscriptionSources as t, recordReadableRead as u };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
|
|
2
2
|
import { n as _isDOMElement, t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
|
|
3
3
|
import { b as isDevelopmentEnvironment, c as runRuntimeHandlerScope, f as configureRuntimeRenderer, i as getDefaultRuntimeInstance, n as enqueueRuntimeTask, v as logger, y as getRuntimeEnv } from "./access-ePqdQqkV.js";
|
|
4
|
-
import { n as markFastPathApplied, t as isBulkCommitActive } from "./fastlane-
|
|
4
|
+
import { n as markFastPathApplied, t as isBulkCommitActive } from "./fastlane-BTcFCMnm.js";
|
|
5
5
|
import { n as Fragment, r as STATIC_CHILDREN } from "./jsx-CUpRxrLH.js";
|
|
6
|
-
import {
|
|
6
|
+
import { _ as withContext, d as getCurrentContextFrame, i as mountInstanceInline, m as markVNodeTreeWithContextFrame, n as createComponentInstance, o as renderComponentInline, p as getVNodeContextFrame, t as captureInlineRenderSnapshot } from "./component-internal-CPjM4n8M.js";
|
|
7
7
|
import { b as restoreDomCommitScope, c as enterDomCommitScope, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
8
|
+
import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
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
|
+
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
|
+
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-B0kFA4Fv.js";
|
|
12
13
|
import { t as getPublicAttributeName } from "./attr-names-CjhzmHOn.js";
|
|
13
|
-
import { i as ROUTE_ROOT_COMPONENT } from "./csp-nonce-
|
|
14
|
+
import { i as ROUTE_ROOT_COMPONENT } from "./csp-nonce-HGZ0vbqT.js";
|
|
14
15
|
//#region src/runtime/error-boundary.ts
|
|
15
16
|
function createBoundaryReset(instance) {
|
|
16
17
|
return () => {
|
|
@@ -3179,16 +3180,19 @@ function discardHydrationListenerTransaction(transaction) {
|
|
|
3179
3180
|
transaction.stages[index].rollback();
|
|
3180
3181
|
} catch {}
|
|
3181
3182
|
}
|
|
3183
|
+
function getCurrentHydrationListenerTransaction() {
|
|
3184
|
+
return currentTransaction?.active ? currentTransaction : null;
|
|
3185
|
+
}
|
|
3182
3186
|
//#endregion
|
|
3183
3187
|
//#region src/renderer/prop-bindings.ts
|
|
3184
3188
|
const reactivePropRegistry = /* @__PURE__ */ new Set();
|
|
3185
|
-
function addTrackedListener(el, eventName, handler, capture = false, fresh = false) {
|
|
3186
|
-
const useDelegation = !capture && isEventDelegationEnabled() && isDelegatedEvent(eventName);
|
|
3189
|
+
function addTrackedListener(el, eventName, handler, capture = false, fresh = false, forceDirect = false) {
|
|
3190
|
+
const useDelegation = !forceDirect && !capture && isEventDelegationEnabled() && isDelegatedEvent(eventName);
|
|
3187
3191
|
const listenerKey = getEventListenerKey(eventName, capture);
|
|
3188
|
-
if (stageHydrationListener({
|
|
3189
|
-
kind:
|
|
3192
|
+
if (!forceDirect && stageHydrationListener({
|
|
3193
|
+
kind: "direct",
|
|
3190
3194
|
eventName,
|
|
3191
|
-
publish: () => addTrackedListener(el, eventName, handler, capture, fresh),
|
|
3195
|
+
publish: () => addTrackedListener(el, eventName, handler, capture, fresh, true),
|
|
3192
3196
|
rollback: () => removeTrackedListener(el, eventName, capture)
|
|
3193
3197
|
})) return;
|
|
3194
3198
|
if (useDelegation) {
|
|
@@ -3387,6 +3391,15 @@ function syncElementPropBindings(el, domVNode, props, usesReactiveChildren) {
|
|
|
3387
3391
|
if (eventProp && listenerKey) {
|
|
3388
3392
|
const eventName = eventProp.eventName;
|
|
3389
3393
|
const eventCapture = eventProp.capture;
|
|
3394
|
+
if (getCurrentHydrationListenerTransaction() && !existingListeners?.has(listenerKey) && !getDelegatedHandlerForElement(el, eventName)) {
|
|
3395
|
+
stageHydrationListener({
|
|
3396
|
+
kind: "direct",
|
|
3397
|
+
eventName,
|
|
3398
|
+
publish: () => addTrackedListener(el, eventName, value, eventCapture, false, true),
|
|
3399
|
+
rollback: () => removeTrackedListener(el, eventName, eventCapture)
|
|
3400
|
+
});
|
|
3401
|
+
continue;
|
|
3402
|
+
}
|
|
3390
3403
|
const useDelegation = !eventCapture && isEventDelegationEnabled() && isDelegatedEvent(eventName);
|
|
3391
3404
|
if (useDelegation) (desiredDelegatedEventNames ??= /* @__PURE__ */ new Set()).add(eventName);
|
|
3392
3405
|
if (useDelegation) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as enqueueRuntimeLane, v as logger } from "./access-ePqdQqkV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as registerCommitOperationForInstance, d as getCurrentContextFrame, g as withAsyncResourceContext } from "./component-internal-CPjM4n8M.js";
|
|
3
3
|
import { f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
4
|
-
import {
|
|
4
|
+
import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
|
|
5
5
|
import { t as brandSnapshotSource } from "./snapshot-source-BB42xgwb.js";
|
|
6
6
|
import { i as getNextRenderKey, l as throwSSRDataMissing, n as getActiveRenderContext, r as getCurrentRenderData, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
|
|
7
|
-
import { t as state } from "./state-
|
|
7
|
+
import { t as state } from "./state-CVuQVjvK.js";
|
|
8
8
|
//#region src/runtime/resource-cell.ts
|
|
9
9
|
/**
|
|
10
10
|
* Pure, component-agnostic ResourceCell state machine.
|
package/dist/resources/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { g as getSignal } from "../component-scope-CC3cojX9.js";
|
|
2
|
-
import { t as resource } from "../resource-operation-
|
|
3
|
-
import { a as stream, c as windowFocused, i as routeActive, n as documentVisible, o as task, r as on, s as timer, t as capture } from "../lifecycle-operations-
|
|
2
|
+
import { t as resource } from "../resource-operation-BJiLoLYZ.js";
|
|
3
|
+
import { a as stream, c as windowFocused, i as routeActive, n as documentVisible, o as task, r as on, s as timer, t as capture } from "../lifecycle-operations-SlPEK68H.js";
|
|
4
4
|
export { capture, documentVisible, getSignal, on, resource, routeActive, stream, task, timer, windowFocused };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import { c as RenderableChild } from "../control-
|
|
1
|
+
import { c as RenderableChild } from "../control-DO-iBEtV.js";
|
|
2
2
|
import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
|
|
3
|
-
import
|
|
4
|
-
import { a as
|
|
3
|
+
import "../types-DEhT-Nrv.js";
|
|
4
|
+
import { A as RouteRecord, B as RouteSnapshot, C as RouteMetaSource, D as RoutePathParams, E as RouteParams, F as RouteRenderResult, I as RouteRequestOptions, L as RouteRequestResult, M as RouteRefSearch, N as RouteRegistry, O as RoutePolicy, P as RouteRegistryOptions, R as RouteSearch, S as RouteMeta, T as RouteOptions, _ as RouteDefinition, a as AccessRedirectDecision, b as RouteManifest, c as LayoutScopeRecord, d as ParsedSegment, f as Route, g as RouteContext, h as RouteComponent, i as AccessDenyStatus, j as RouteRef, k as RouteQuery, l as PageHelperOptions, m as RouteAuthResolver, n as AccessDecision, o as AccessRedirectStatus, p as RouteAuthOptions, r as AccessDenyDecision, s as GroupHelperOptions, t as AccessAllowDecision, u as PageScopeRecord, v as RouteDestination, w as RouteMode, x as RouteMatch, y as RouteHandler, z as RouteSearchValue } from "../router-C0XQA62W.js";
|
|
5
|
+
import { a as ScrollRestorationOptions, i as NavigationScrollBehavior, n as NavigateOptions, r as HistoryScrollBehavior, t as navigate } from "../navigate-CV-RDqYP.js";
|
|
5
6
|
import { AuthContext, AuthContext as AuthContext$1, AuthRequirement, AuthRequirement as AuthRequirement$1 } from "@askrjs/auth";
|
|
6
7
|
import { ObjectSchema } from "@askrjs/schema";
|
|
7
|
-
|
|
8
|
+
//#region src/router/route-query.d.ts
|
|
9
|
+
type RouteQueryParamValue = string | number | boolean | null | undefined;
|
|
10
|
+
type RouteQueryParamInput = RouteQueryParamValue | readonly RouteQueryParamValue[];
|
|
11
|
+
type RouteQueryUpdates = Record<string, RouteQueryParamInput>;
|
|
12
|
+
type RouteQueryUpdater = (searchParams: URLSearchParams) => void;
|
|
13
|
+
type UpdateRouteQueryOptions = {
|
|
14
|
+
/**
|
|
15
|
+
* Defaults to replace so high-frequency controls such as search inputs do not
|
|
16
|
+
* create one browser-history entry per character.
|
|
17
|
+
*/
|
|
18
|
+
history?: 'push' | 'replace';
|
|
19
|
+
replace?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare function updateRouteQuery(updates: RouteQueryUpdates | RouteQueryUpdater, options?: UpdateRouteQueryOptions): void;
|
|
22
|
+
//#endregion
|
|
8
23
|
//#region src/router/internal-types.d.ts
|
|
9
24
|
type AnyRouteComponent = (...args: any[]) => RenderableChild;
|
|
10
25
|
//#endregion
|
|
@@ -148,16 +163,6 @@ type LinkProps = LinkBaseProps & ({
|
|
|
148
163
|
* - Keyboard handling automatic
|
|
149
164
|
* - Composable via mergeProps
|
|
150
165
|
*/
|
|
151
|
-
declare function Link({
|
|
152
|
-
href: suppliedHref,
|
|
153
|
-
to,
|
|
154
|
-
class: className,
|
|
155
|
-
children,
|
|
156
|
-
rel,
|
|
157
|
-
target,
|
|
158
|
-
'aria-current': ariaCurrent,
|
|
159
|
-
'aria-label': ariaLabel,
|
|
160
|
-
...rest
|
|
161
|
-
}: LinkProps): JSXElement;
|
|
166
|
+
declare function Link({ href: suppliedHref, to, class: className, children, rel, target, 'aria-current': ariaCurrent, 'aria-label': ariaLabel, ...rest }: LinkProps): JSXElement;
|
|
162
167
|
//#endregion
|
|
163
168
|
export { type AccessDecision, type AccessDenyDecision, type AccessRedirectDecision, type AuthContext, type AuthRequirement, type Deferred, type DeferredState, type GroupHelperOptions, type HistoryScrollBehavior, type LayoutScopeRecord, type LazyRouteComponent, Link, type LinkProps, type NavigateOptions, type NavigationScrollBehavior, Outlet, type PageHelperOptions, type PageScopeRecord, type ParsedSegment, Resolve, type ResolveProps, type Route, type RouteAuthOptions, type RouteAuthResolver, type RouteComponent, type RouteContext, type RouteDefinition, type RouteDestination, type RouteHandler, type RouteManifest, type RouteMatch, type RouteMeta, type RouteMetaSource, type RouteMode, type RouteOptions, type RouteParams, type RoutePathParams, type RoutePolicy, type RouteQuery, type RouteQueryParamInput, type RouteQueryParamValue, type RouteQueryUpdater, type RouteQueryUpdates, type RouteRecord, type RouteRef, type RouteRegistry, type RouteRegistryOptions, type RouteRenderResult, type RouteRequestOptions, type RouteRequestResult, type RouteSearch, type RouteSearchValue, type RouteSnapshot, type ScrollRestorationOptions, type UpdateRouteQueryOptions, allow, createRouteRegistry, currentAuth, currentRoute, defer, deny, fallback, forbidden, group, index, isDeferred, lazy, navigate, notFound, page, reconcileRouteMeta, redirect, resolveDeferredValues, resolveRouteMeta, resolveRouteRequest, route, routeData, serializeRouteMeta, to$1 as to, unauthorized, updateRouteQuery };
|
package/dist/router/index.js
CHANGED
|
@@ -1,9 +1,51 @@
|
|
|
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-
|
|
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
|
-
import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-
|
|
4
|
-
import { a as
|
|
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-CJySBpA9.js";
|
|
5
5
|
import { o as mergeProps } from "../compose-ref-Cc_YkUpM.js";
|
|
6
6
|
import { t as applyInteractionPolicy } from "../interactions-w7gQN4ha.js";
|
|
7
|
+
//#region src/router/route-query.ts
|
|
8
|
+
function getRouteQueryHistoryMode(options) {
|
|
9
|
+
if (options.history) return options.history;
|
|
10
|
+
return options.replace === false ? "push" : "replace";
|
|
11
|
+
}
|
|
12
|
+
function setRouteQueryValue(searchParams, key, value) {
|
|
13
|
+
searchParams.delete(key);
|
|
14
|
+
if (Array.isArray(value)) {
|
|
15
|
+
for (const entry of value) {
|
|
16
|
+
if (entry === null || entry === void 0) continue;
|
|
17
|
+
searchParams.append(key, String(entry));
|
|
18
|
+
}
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (value === null || value === void 0) return;
|
|
22
|
+
searchParams.set(key, String(value));
|
|
23
|
+
}
|
|
24
|
+
function applyRouteQueryUpdates(searchParams, updates) {
|
|
25
|
+
if (typeof updates === "function") {
|
|
26
|
+
updates(searchParams);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
for (const [key, value] of Object.entries(updates)) setRouteQueryValue(searchParams, key, value);
|
|
30
|
+
}
|
|
31
|
+
function updateRouteQuery(updates, options = {}) {
|
|
32
|
+
if (typeof window === "undefined") return;
|
|
33
|
+
const url = parseTargetUrl(getWindowHref());
|
|
34
|
+
applyRouteQueryUpdates(url.searchParams, updates);
|
|
35
|
+
const href = `${url.pathname}${url.search}${url.hash}`;
|
|
36
|
+
if (href === getWindowHref()) return;
|
|
37
|
+
const historyMode = getRouteQueryHistoryMode(options);
|
|
38
|
+
if (historyMode === "push") saveScrollPosition(getCurrentHref());
|
|
39
|
+
const state = window.history.state && typeof window.history.state === "object" ? window.history.state : {};
|
|
40
|
+
window.history[historyMode === "replace" ? "replaceState" : "pushState"]({
|
|
41
|
+
...state,
|
|
42
|
+
path: href
|
|
43
|
+
}, "", href);
|
|
44
|
+
setCurrentRouteLocation(url.pathname, href);
|
|
45
|
+
for (const app of getRegisteredAppsSnapshot()) syncAppRegistrationLocation(app, url.pathname, href);
|
|
46
|
+
syncRegisteredRouteSnapshot();
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
7
49
|
//#region src/router/policy.ts
|
|
8
50
|
function allow() {
|
|
9
51
|
return { kind: "allow" };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { c as RenderableChild } from "./control-
|
|
1
|
+
import { c as RenderableChild } from "./control-DO-iBEtV.js";
|
|
2
2
|
import { D as QueryPrefetchContext, u as CoreTelemetry } from "./index-Bki2rqcr.js";
|
|
3
|
-
import { t as ActionDescriptor } from "./index-
|
|
3
|
+
import { t as ActionDescriptor } from "./index-DSClfSoC.js";
|
|
4
4
|
import { AuthContext, AuthRequirement } from "@askrjs/auth";
|
|
5
5
|
import { InferSchema, ObjectSchema } from "@askrjs/schema";
|
|
6
|
-
|
|
7
6
|
//#region src/common/router.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* Common call contracts: Router types
|
|
@@ -14,7 +13,7 @@ type TrimRoutePathSlashes<Path extends string> = Path extends `/${infer Rest}` ?
|
|
|
14
13
|
type TrimRoutePathWhitespace<Path extends string> = Path extends `${' ' | '\n' | '\t' | '\r'}${infer Rest}` ? TrimRoutePathWhitespace<Rest> : Path extends `${infer Rest}${' ' | '\n' | '\t' | '\r'}` ? TrimRoutePathWhitespace<Rest> : Path;
|
|
15
14
|
type ExtractRouteSegmentParam<Segment extends string> = Segment extends `{${infer Param}}` ? TrimRoutePathWhitespace<Param> extends `*${infer SplatParam}` ? TrimRoutePathWhitespace<SplatParam> extends '' ? never : TrimRoutePathWhitespace<SplatParam> extends '*' ? never : TrimRoutePathWhitespace<SplatParam> : TrimRoutePathWhitespace<Param> extends '' ? never : TrimRoutePathWhitespace<Param> : Segment extends '*' ? '*' : never;
|
|
16
15
|
type ExtractRoutePathParamNames<Path extends string> = TrimRoutePathSlashes<StripRoutePathSuffix<Path>> extends `${infer Segment}/${infer Rest}` ? ExtractRouteSegmentParam<Segment> | ExtractRoutePathParamNames<Rest> : ExtractRouteSegmentParam<TrimRoutePathSlashes<StripRoutePathSuffix<Path>>>;
|
|
17
|
-
type RoutePathParams<Path extends string> = [ExtractRoutePathParamNames<Path>] extends [never] ? Record<never, string> : { [Key in ExtractRoutePathParamNames<Path>]: string };
|
|
16
|
+
type RoutePathParams<Path extends string> = [ExtractRoutePathParamNames<Path>] extends [never] ? Record<never, string> : { [Key in ExtractRoutePathParamNames<Path>]: string; };
|
|
18
17
|
/**
|
|
19
18
|
* A route page component: a regular component that receives route params as
|
|
20
19
|
* props derived from the URL pattern.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as enqueueRuntimeLane } from "./access-ePqdQqkV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as markReadableUsage, 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";
|
|
3
3
|
import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
4
4
|
//#region src/runtime/selector-store.ts
|
|
5
5
|
const dirtySelectorRecords = /* @__PURE__ */ new Set();
|
package/dist/ssg/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { d as DocumentRenderContext, f as DocumentRenderer, u as DocumentRenderArgs } from "../control-
|
|
2
|
-
import { D as RoutePathParams, N as RouteRegistry, O as RoutePolicy, T as RouteOptions, y as RouteHandler } from "../router-
|
|
1
|
+
import { d as DocumentRenderContext, f as DocumentRenderer, u as DocumentRenderArgs } from "../control-DO-iBEtV.js";
|
|
2
|
+
import { D as RoutePathParams, N as RouteRegistry, O as RoutePolicy, T as RouteOptions, y as RouteHandler } from "../router-C0XQA62W.js";
|
|
3
3
|
import { AuthRequirement } from "@askrjs/auth";
|
|
4
|
+
import "node:fs/promises";
|
|
4
5
|
//#region src/ssg/types.d.ts
|
|
5
6
|
type SSGMode = 'full' | 'incremental';
|
|
6
7
|
type RouteRenderStatus = 'success' | 'error' | 'skipped' | 'removed';
|
|
@@ -68,7 +69,8 @@ interface SSGAssetSource {
|
|
|
68
69
|
}
|
|
69
70
|
/** Options for createStaticGen */
|
|
70
71
|
type SSGOptions<TRoutes extends readonly RouteConfig[] = RouteConfig[]> = SSGBaseOptions & {
|
|
71
|
-
/** Explicit route registry captured with `createRouteRegistry()`. */
|
|
72
|
+
/** Explicit route registry captured with `createRouteRegistry()`. */
|
|
73
|
+
registry: RouteRegistry;
|
|
72
74
|
};
|
|
73
75
|
/** Options for a single generation run */
|
|
74
76
|
interface SSGGenerateOptions {
|
|
@@ -161,14 +163,23 @@ interface SSGMetadata extends Record<string, unknown> {
|
|
|
161
163
|
invalidatedRoutes: string[];
|
|
162
164
|
/** Per-route details */
|
|
163
165
|
routes: Array<{
|
|
164
|
-
/** URL path */
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
/** URL path */
|
|
167
|
+
path: string;
|
|
168
|
+
/** Output file path relative to outputDir */
|
|
169
|
+
filePath: string;
|
|
170
|
+
/** File size in bytes */
|
|
171
|
+
fileSize: number;
|
|
172
|
+
/** Render duration in milliseconds */
|
|
173
|
+
renderDuration: number;
|
|
174
|
+
/** Number of resources discovered and rendered */
|
|
175
|
+
resourceCount: number;
|
|
176
|
+
/** Render or generation status */
|
|
177
|
+
status: RouteRenderStatus;
|
|
178
|
+
/** Why this route was rendered, skipped, or removed */
|
|
179
|
+
reason: RouteRenderReason;
|
|
180
|
+
/** Whether the output file was written during this run */
|
|
181
|
+
written: boolean;
|
|
182
|
+
/** Error message if rendering failed */
|
|
172
183
|
error?: string;
|
|
173
184
|
}>;
|
|
174
185
|
}
|
package/dist/ssg/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../access-ePqdQqkV.js";
|
|
2
|
-
import { S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-
|
|
3
|
-
import { a as route } from "../authoring-
|
|
2
|
+
import { S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-zHtUheIQ.js";
|
|
3
|
+
import { a as route } from "../authoring-uaJ556aG.js";
|
|
4
4
|
import { n as renderDocument } from "../ssr-CbQO5xd3.js";
|
|
5
|
-
import { n as renderToString } from "../ssr-
|
|
5
|
+
import { n as renderToString } from "../ssr-vE-KUgDV.js";
|
|
6
6
|
import * as fs from "node:fs/promises";
|
|
7
7
|
import * as pathModule from "node:path";
|
|
8
8
|
import * as os from "node:os";
|
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-
|
|
1
|
+
import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-DO-iBEtV.js";
|
|
2
2
|
import { r as JSXElement, s as Props } from "../jsx-Dvr2SGRG.js";
|
|
3
3
|
import { D as QueryPrefetchContext, n as ServerQueryRegistry, u as CoreTelemetry, v as DataRuntime } from "../index-Bki2rqcr.js";
|
|
4
|
-
import { A as RouteRecord, L as RouteRequestResult, N as RouteRegistry, a as AccessRedirectDecision, f as Route, p as RouteAuthOptions, r as AccessDenyDecision, y as RouteHandler } from "../router-
|
|
4
|
+
import { A as RouteRecord, L as RouteRequestResult, N as RouteRegistry, a as AccessRedirectDecision, f as Route, p as RouteAuthOptions, r as AccessDenyDecision, y as RouteHandler } from "../router-C0XQA62W.js";
|
|
5
5
|
import { AuthContext } from "@askrjs/auth";
|
|
6
|
-
|
|
7
6
|
//#region src/common/page-render-envelope.d.ts
|
|
8
7
|
declare const PAGE_RENDER_ENVELOPE_VERSION: 1;
|
|
9
8
|
interface PageRenderEnvelope {
|
|
@@ -95,7 +94,8 @@ type RouteRenderOptions = SSRRouteSource & {
|
|
|
95
94
|
request?: Request;
|
|
96
95
|
dataRuntime?: DataRuntime;
|
|
97
96
|
queryPrefetch?: QueryPrefetchContext;
|
|
98
|
-
telemetry?: Pick<CoreTelemetry, 'ssrRender'>;
|
|
97
|
+
telemetry?: Pick<CoreTelemetry, 'ssrRender'>;
|
|
98
|
+
/** @internal Precomposed page state used by hydration verification. */
|
|
99
99
|
envelope?: PageRenderEnvelope;
|
|
100
100
|
cspNonce?: string;
|
|
101
101
|
};
|
|
@@ -132,7 +132,8 @@ type SSRComponent = (props: Props, context?: {
|
|
|
132
132
|
//#region src/ssr/render-sync.d.ts
|
|
133
133
|
declare function renderToStringSync(component: (props?: Record<string, unknown>) => VNode | JSXElement | string | number | boolean | null | undefined, props?: Record<string, unknown>, options?: {
|
|
134
134
|
seed?: number;
|
|
135
|
-
data?: SSRData;
|
|
135
|
+
data?: SSRData;
|
|
136
|
+
/** @internal A composed page render envelope. */
|
|
136
137
|
envelope?: PageRenderEnvelope;
|
|
137
138
|
cspNonce?: string;
|
|
138
139
|
}): string;
|
package/dist/ssr/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { u as SSRDataMissingError } from "../render-context-Clw3rFiO.js";
|
|
2
|
-
import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-vE-KUgDV.js";
|
|
3
3
|
export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
|
|
@@ -2,19 +2,20 @@ import { t as __CONTROL_BOUNDARY__ } from "./control-DhFRTIoE.js";
|
|
|
2
2
|
import { t as __ERROR_BOUNDARY__ } from "./vnode-D24p6IW2.js";
|
|
3
3
|
import { v as logger } from "./access-ePqdQqkV.js";
|
|
4
4
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-CUpRxrLH.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as getExecutionContextFrame, l as callWithContext, m as markVNodeTreeWithContextFrame, n as createComponentInstance, p as getVNodeContextFrame } from "./component-internal-CPjM4n8M.js";
|
|
6
6
|
import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
8
|
+
import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
|
|
9
|
+
import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-BtK9Htl0.js";
|
|
10
|
+
import { _ as isPageRenderEnvelope, g as isEmptyPageRenderEnvelope, h as createPageRenderEnvelope, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, t as DEFERRED_BOUNDARY } from "./deferred-zHtUheIQ.js";
|
|
10
11
|
import { c as stopRenderPhase$1, o as startRenderPhase$1, t as configureRenderContextProvider, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
|
|
11
|
-
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-
|
|
12
|
+
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-D7TC986A.js";
|
|
12
13
|
import { t as getPublicAttributeName } from "./attr-names-CjhzmHOn.js";
|
|
13
|
-
import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-
|
|
14
|
+
import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-HGZ0vbqT.js";
|
|
14
15
|
import { t as createDataRuntime } from "./data-runtime-SJ1BSUvk.js";
|
|
15
16
|
import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-CQIT4mXr.js";
|
|
16
17
|
import { a as resolveRouteFromRoutes, t as _resolveRouteMatchFromRoutes } from "./route-matching-DLBWDeXX.js";
|
|
17
|
-
import { a as route } from "./authoring-
|
|
18
|
+
import { a as route } from "./authoring-uaJ556aG.js";
|
|
18
19
|
import { n as renderDocument, t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
19
20
|
//#region src/ssr/escape.ts
|
|
20
21
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { x as isProductionEnvironment } from "./access-ePqdQqkV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as isBulkCommitActive } from "./fastlane-BTcFCMnm.js";
|
|
3
|
+
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-BYSoWJSv.js";
|
|
3
4
|
import { i as claimHookIndex, p as getCurrentInstance } from "./component-scope-CC3cojX9.js";
|
|
4
5
|
//#region src/runtime/state.ts
|
|
5
6
|
/**
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { C as Query, k as QueryStaleReason } from "../index-Bki2rqcr.js";
|
|
2
|
-
import { N as RouteRegistry, x as RouteMatch } from "../router-
|
|
3
|
-
|
|
2
|
+
import { N as RouteRegistry, x as RouteMatch } from "../router-C0XQA62W.js";
|
|
4
3
|
//#region src/testing/index.d.ts
|
|
5
4
|
type MockRefresh = () => void | Promise<void>;
|
|
6
5
|
interface MockQueryOptions {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-Dvr2SGRG.js";
|
|
2
|
+
//#region src/jsx/types.d.ts
|
|
3
|
+
declare global {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface Element extends JSXElement {
|
|
6
|
+
readonly __askrJsxElementBrand?: never;
|
|
7
|
+
}
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
a: KnownIntrinsicElementProps['a'];
|
|
10
|
+
article: KnownIntrinsicElementProps['article'];
|
|
11
|
+
aside: KnownIntrinsicElementProps['aside'];
|
|
12
|
+
blockquote: KnownIntrinsicElementProps['blockquote'];
|
|
13
|
+
button: KnownIntrinsicElementProps['button'];
|
|
14
|
+
caption: KnownIntrinsicElementProps['caption'];
|
|
15
|
+
circle: KnownIntrinsicElementProps['circle'];
|
|
16
|
+
code: KnownIntrinsicElementProps['code'];
|
|
17
|
+
div: KnownIntrinsicElementProps['div'];
|
|
18
|
+
em: KnownIntrinsicElementProps['em'];
|
|
19
|
+
figcaption: KnownIntrinsicElementProps['figcaption'];
|
|
20
|
+
figure: KnownIntrinsicElementProps['figure'];
|
|
21
|
+
form: KnownIntrinsicElementProps['form'];
|
|
22
|
+
footer: KnownIntrinsicElementProps['footer'];
|
|
23
|
+
g: KnownIntrinsicElementProps['g'];
|
|
24
|
+
h1: KnownIntrinsicElementProps['h1'];
|
|
25
|
+
h2: KnownIntrinsicElementProps['h2'];
|
|
26
|
+
h3: KnownIntrinsicElementProps['h3'];
|
|
27
|
+
h4: KnownIntrinsicElementProps['h4'];
|
|
28
|
+
h5: KnownIntrinsicElementProps['h5'];
|
|
29
|
+
h6: KnownIntrinsicElementProps['h6'];
|
|
30
|
+
header: KnownIntrinsicElementProps['header'];
|
|
31
|
+
img: KnownIntrinsicElementProps['img'];
|
|
32
|
+
input: KnownIntrinsicElementProps['input'];
|
|
33
|
+
label: KnownIntrinsicElementProps['label'];
|
|
34
|
+
li: KnownIntrinsicElementProps['li'];
|
|
35
|
+
main: KnownIntrinsicElementProps['main'];
|
|
36
|
+
nav: KnownIntrinsicElementProps['nav'];
|
|
37
|
+
ol: KnownIntrinsicElementProps['ol'];
|
|
38
|
+
option: KnownIntrinsicElementProps['option'];
|
|
39
|
+
p: KnownIntrinsicElementProps['p'];
|
|
40
|
+
path: KnownIntrinsicElementProps['path'];
|
|
41
|
+
pre: KnownIntrinsicElementProps['pre'];
|
|
42
|
+
select: KnownIntrinsicElementProps['select'];
|
|
43
|
+
section: KnownIntrinsicElementProps['section'];
|
|
44
|
+
span: KnownIntrinsicElementProps['span'];
|
|
45
|
+
strong: KnownIntrinsicElementProps['strong'];
|
|
46
|
+
svg: KnownIntrinsicElementProps['svg'];
|
|
47
|
+
table: KnownIntrinsicElementProps['table'];
|
|
48
|
+
tbody: KnownIntrinsicElementProps['tbody'];
|
|
49
|
+
td: KnownIntrinsicElementProps['td'];
|
|
50
|
+
textarea: KnownIntrinsicElementProps['textarea'];
|
|
51
|
+
th: KnownIntrinsicElementProps['th'];
|
|
52
|
+
thead: KnownIntrinsicElementProps['thead'];
|
|
53
|
+
tr: KnownIntrinsicElementProps['tr'];
|
|
54
|
+
ul: KnownIntrinsicElementProps['ul'];
|
|
55
|
+
}
|
|
56
|
+
interface ElementAttributesProperty {
|
|
57
|
+
props: Props;
|
|
58
|
+
}
|
|
59
|
+
interface ElementChildrenAttribute {
|
|
60
|
+
children: unknown;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
2
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync } from "./ssr-vE-KUgDV.js";
|
|
3
3
|
//#region src/ssr/verify-hydration.ts
|
|
4
4
|
function normalizeHydrationHtml(html) {
|
|
5
5
|
const template = document.createElement("template");
|