@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.
Files changed (70) hide show
  1. package/dist/actions/index.d.ts +1 -1
  2. package/dist/actions/index.js +1 -1
  3. package/dist/{authoring-Di8MInO-.js → authoring-uaJ556aG.js} +1 -1
  4. package/dist/benchmark.d.ts +1 -0
  5. package/dist/benchmark.js +7 -7
  6. package/dist/boot/index.d.ts +7 -6
  7. package/dist/boot/index.js +1 -1
  8. package/dist/{boot-B4UZumvB.js → boot-DjTa12LD.js} +10 -9
  9. package/dist/{cleanup-B6KovDZZ.js → cleanup-B0kFA4Fv.js} +3 -2
  10. package/dist/component-cleanup-1ZFoLLHt.js +141 -0
  11. package/dist/{component-internal-CbALfPGD.js → component-internal-CPjM4n8M.js} +23 -3
  12. package/dist/components/index.d.ts +1 -2
  13. package/dist/control/index.d.ts +1 -1
  14. package/dist/control/index.js +1 -1
  15. package/dist/{control-B5xu8v4m.d.ts → control-BjYBlytA.d.ts} +0 -1
  16. package/dist/{control-KVP6LMEQ.js → control-CA45Yvvu.js} +3 -3
  17. package/dist/{control-CMzFPMjr.d.ts → control-DO-iBEtV.d.ts} +0 -1
  18. package/dist/{csp-nonce-C-8E85El.js → csp-nonce-HGZ0vbqT.js} +1 -1
  19. package/dist/data/index.js +1 -1
  20. package/dist/{data-DvYo_dHd.js → data-DHt_zO1G.js} +2 -2
  21. package/dist/{deferred-Eh9bCVGH.js → deferred-zHtUheIQ.js} +4 -4
  22. package/dist/{effect-D_4zf_wy.js → effect-CFUzIpqX.js} +1 -1
  23. package/dist/fastlane-BTcFCMnm.js +147 -0
  24. package/dist/{for-internal-B2rBq6yB.js → for-internal-BtK9Htl0.js} +4 -3
  25. package/dist/foundations/icon/index.d.ts +3 -21
  26. package/dist/foundations/index.d.ts +1 -1
  27. package/dist/foundations/index.js +1 -1
  28. package/dist/foundations/interactions/index.d.ts +31 -26
  29. package/dist/foundations/state/index.d.ts +1 -2
  30. package/dist/foundations/state/index.js +1 -1
  31. package/dist/foundations/structures/index.d.ts +1 -1
  32. package/dist/foundations/structures/index.js +1 -1
  33. package/dist/fx/index.d.ts +0 -1
  34. package/dist/{index-NKPpdRh9.d.ts → index-BFnTM1a8.d.ts} +2 -1
  35. package/dist/{index-Bjm0__Rr.d.ts → index-DSClfSoC.d.ts} +3 -7
  36. package/dist/{index-Byqjltu2.d.ts → index-Dh6ZF9yW.d.ts} +1 -2
  37. package/dist/{index-PgRn5wmg.d.ts → index-DjusBb1I.d.ts} +45 -5
  38. package/dist/index.d.ts +4 -4
  39. package/dist/index.js +8 -8
  40. package/dist/jsx-dev-runtime.d.ts +2 -1
  41. package/dist/jsx-runtime-X2SX2y8V.d.ts +2 -0
  42. package/dist/{jsx-runtime-iTU73uwP.d.ts → jsx-runtime-aYZ8zb4q.d.ts} +2 -1
  43. package/dist/jsx-runtime.d.ts +1 -1
  44. package/dist/{component-lifecycle-DEMPihoZ.js → lifecycle-batch-COgl8jMS.js} +3 -160
  45. package/dist/{lifecycle-operations-Dj5lK1K7.js → lifecycle-operations-SlPEK68H.js} +1 -1
  46. package/dist/{navigate-QMRcR581.js → navigate-CJySBpA9.js} +9 -50
  47. package/dist/navigate-CV-RDqYP.d.ts +20 -0
  48. package/dist/{portal-D2tPWNrC.js → portal-D7TC986A.js} +3 -2
  49. package/dist/{fastlane-C8PYPotF.js → readable-BYSoWJSv.js} +2 -146
  50. package/dist/{renderer-aUD-acDe.js → renderer-Dwkk68c5.js} +25 -12
  51. package/dist/{resource-operation-Dz2Nxi1q.js → resource-operation-BJiLoLYZ.js} +3 -3
  52. package/dist/resources/index.d.ts +0 -1
  53. package/dist/resources/index.js +2 -2
  54. package/dist/router/index.d.ts +20 -15
  55. package/dist/router/index.js +45 -3
  56. package/dist/{router-4EhVGcma.d.ts → router-C0XQA62W.d.ts} +3 -4
  57. package/dist/{selector-pApF_lGd.js → selector-DueeR6Oz.js} +1 -1
  58. package/dist/ssg/index.d.ts +22 -11
  59. package/dist/ssg/index.js +3 -3
  60. package/dist/ssr/index.d.ts +6 -5
  61. package/dist/ssr/index.js +1 -1
  62. package/dist/{ssr-Y8Pq8riM.js → ssr-vE-KUgDV.js} +8 -7
  63. package/dist/{state-Cc5HumQ0.js → state-CVuQVjvK.js} +2 -1
  64. package/dist/testing/index.d.ts +1 -2
  65. package/dist/types-DEhT-Nrv.d.ts +63 -0
  66. package/dist/{verify-hydration-BcZXRU-q.js → verify-hydration-ChyEiBAn.js} +1 -1
  67. package/package.json +1 -1
  68. package/dist/jsx-runtime-BVVgDSdq.d.ts +0 -1
  69. package/dist/navigate-BVDCzOuB.d.ts +0 -34
  70. package/dist/types-4k3RFEaC.d.ts +0 -19
@@ -1,17 +1,5 @@
1
- import { b as isDevelopmentEnvironment, l as runRuntimeWithSyncProgress, n as enqueueRuntimeTask, o as getRuntimeRenderer, s as markRuntimeReactivePropsDirtySource, u as setRuntimeBulkCommitProbe } from "./access-ePqdQqkV.js";
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
- //#region src/runtime/fastlane.ts
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-C8PYPotF.js";
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 { f as getVNodeContextFrame, g as withContext, i as mountInstanceInline, n as createComponentInstance, o as renderComponentInline, p as markVNodeTreeWithContextFrame, t as captureInlineRenderSnapshot, u as getCurrentContextFrame } from "./component-internal-CbALfPGD.js";
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 { d as registerLifecycleRollback, f as registerLifecycleTransaction, h as cleanupComponent, i as beginLifecycleCommitBatch, l as flushLifecycleCommitBatch, m as isPromiseLike, o as discardLifecycleCommitBatch, u as getCurrentLifecycleCommitBatch } from "./component-lifecycle-DEMPihoZ.js";
9
- 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-B2rBq6yB.js";
10
- import { n as createOwnedFineGrainedEffect, r as markFineGrainedEffectsDirtySource, t as createFineGrainedEffect } from "./effect-D_4zf_wy.js";
11
- 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-B6KovDZZ.js";
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-C-8E85El.js";
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: useDelegation ? "delegated" : "direct",
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 { h as withAsyncResourceContext, u as getCurrentContextFrame } from "./component-internal-CbALfPGD.js";
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 { m as isPromiseLike, r as registerCommitOperationForInstance } from "./component-lifecycle-DEMPihoZ.js";
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-Cc5HumQ0.js";
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.
@@ -1,5 +1,4 @@
1
1
  import { t as getSignal } from "../component-scope-CvPba6O6.js";
2
-
3
2
  //#region src/runtime/resource-operation.d.ts
4
3
  interface ResourceResult<T> {
5
4
  value: T | null;
@@ -1,4 +1,4 @@
1
1
  import { g as getSignal } from "../component-scope-CC3cojX9.js";
2
- import { t as resource } from "../resource-operation-Dz2Nxi1q.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-Dj5lK1K7.js";
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 };
@@ -1,10 +1,25 @@
1
- import { c as RenderableChild } from "../control-CMzFPMjr.js";
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 { 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-4EhVGcma.js";
4
- import { a as RouteQueryUpdates, c as NavigateOptions, d as ScrollRestorationOptions, i as RouteQueryUpdater, l as HistoryScrollBehavior, n as RouteQueryParamInput, o as UpdateRouteQueryOptions, r as RouteQueryParamValue, s as updateRouteQuery, t as navigate, u as NavigationScrollBehavior } from "../navigate-BVDCzOuB.js";
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 };
@@ -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-Eh9bCVGH.js";
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-Di8MInO-.js";
4
- import { a as resolveRouteMeta, i as reconcileRouteMeta, n as navigate, o as serializeRouteMeta, r as updateRouteQuery, u as currentRoute } from "../navigate-QMRcR581.js";
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-CMzFPMjr.js";
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-Bjm0__Rr.js";
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 { d as markReadableUsage, f as notifyReadableReaders, g as withDerivedReadTracking, h as syncDerivedDependencySubscriptions, l as markReactivePropsDirtySource, o as clearDerivedDependencySubscriptions, p as recordReadableRead, u as markReadableDerivedSubscribersDirty } from "./fastlane-C8PYPotF.js";
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();
@@ -1,6 +1,7 @@
1
- import { d as DocumentRenderContext, f as DocumentRenderer, u as DocumentRenderArgs } from "../control-CMzFPMjr.js";
2
- import { D as RoutePathParams, N as RouteRegistry, O as RoutePolicy, T as RouteOptions, y as RouteHandler } from "../router-4EhVGcma.js";
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()`. */registry: RouteRegistry;
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 */path: string; /** Output file path relative to outputDir */
165
- filePath: string; /** File size in bytes */
166
- fileSize: number; /** Render duration in milliseconds */
167
- renderDuration: number; /** Number of resources discovered and rendered */
168
- resourceCount: number; /** Render or generation status */
169
- status: RouteRenderStatus; /** Why this route was rendered, skipped, or removed */
170
- reason: RouteRenderReason; /** Whether the output file was written during this run */
171
- written: boolean; /** Error message if rendering failed */
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-Eh9bCVGH.js";
3
- import { a as route } from "../authoring-Di8MInO-.js";
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-Y8Pq8riM.js";
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";
@@ -1,9 +1,8 @@
1
- import { c as RenderableChild, d as DocumentRenderContext, f as DocumentRenderer, p as SSRData, u as DocumentRenderArgs } from "../control-CMzFPMjr.js";
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-4EhVGcma.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-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'>; /** @internal Precomposed page state used by hydration verification. */
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; /** @internal A composed page render envelope. */
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-Y8Pq8riM.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-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 { c as callWithContext, d as getExecutionContextFrame, f as getVNodeContextFrame, n as createComponentInstance, p as markVNodeTreeWithContextFrame } from "./component-internal-CbALfPGD.js";
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 { h as cleanupComponent, m as isPromiseLike } from "./component-lifecycle-DEMPihoZ.js";
8
- import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-B2rBq6yB.js";
9
- import { _ as isPageRenderEnvelope, g as isEmptyPageRenderEnvelope, h as createPageRenderEnvelope, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, t as DEFERRED_BOUNDARY } from "./deferred-Eh9bCVGH.js";
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-D2tPWNrC.js";
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-C-8E85El.js";
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-Di8MInO-.js";
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 { f as notifyReadableReaders, l as markReactivePropsDirtySource, p as recordReadableRead, t as isBulkCommitActive, u as markReadableDerivedSubscribersDirty } from "./fastlane-C8PYPotF.js";
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
  /**
@@ -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-4EhVGcma.js";
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-Y8Pq8riM.js";
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");