@askrjs/askr 0.0.51 → 0.0.52

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 (593) hide show
  1. package/dist/bench/components/benchmark-row.d.ts +2 -2
  2. package/dist/bench/components/benchmark-row.js +0 -2
  3. package/dist/bench/components/benchmark-table.js +0 -2
  4. package/dist/benchmark.d.ts +1 -2
  5. package/dist/benchmark.js +2 -4
  6. package/dist/bin/askr-ssg.d.ts +1 -2
  7. package/dist/bin/askr-ssg.js +21 -6
  8. package/dist/boot/hydration.js +10 -11
  9. package/dist/boot/index.d.ts +1 -2
  10. package/dist/boot/index.js +20 -11
  11. package/dist/boot/root-lifecycle.d.ts +6 -3
  12. package/dist/boot/root-lifecycle.js +14 -10
  13. package/dist/boot/route-startup.js +13 -4
  14. package/dist/boot/types.d.ts +1 -2
  15. package/dist/common/attr-names.js +0 -2
  16. package/dist/common/component.d.ts +1 -2
  17. package/dist/common/control.d.ts +1 -2
  18. package/dist/common/control.js +0 -2
  19. package/dist/common/dom-range.d.ts +13 -0
  20. package/dist/common/env.js +1 -7
  21. package/dist/common/error-boundary.d.ts +1 -2
  22. package/dist/common/invariant.js +0 -2
  23. package/dist/common/jsx.d.ts +1 -2
  24. package/dist/common/jsx.js +0 -2
  25. package/dist/common/logger.js +0 -2
  26. package/dist/common/promise.js +0 -2
  27. package/dist/common/props.d.ts +1 -2
  28. package/dist/common/render-context.js +0 -2
  29. package/dist/common/route-activity.js +0 -2
  30. package/dist/common/router-internal.js +0 -2
  31. package/dist/common/router.d.ts +1 -2
  32. package/dist/common/ssr-errors.d.ts +1 -2
  33. package/dist/common/ssr-errors.js +0 -2
  34. package/dist/common/ssr.d.ts +1 -2
  35. package/dist/common/ssr.js +0 -2
  36. package/dist/common/vnode.d.ts +1 -2
  37. package/dist/common/vnode.js +0 -2
  38. package/dist/components/error-boundary.d.ts +1 -2
  39. package/dist/components/error-boundary.js +0 -2
  40. package/dist/components/link.d.ts +2 -2
  41. package/dist/components/link.js +0 -2
  42. package/dist/control/case.d.ts +1 -2
  43. package/dist/control/case.js +0 -2
  44. package/dist/control/for.d.ts +1 -2
  45. package/dist/control/for.js +0 -2
  46. package/dist/control/shared.d.ts +1 -2
  47. package/dist/control/shared.js +0 -2
  48. package/dist/control/show.d.ts +1 -2
  49. package/dist/control/show.js +0 -2
  50. package/dist/data/data-runtime.d.ts +1 -2
  51. package/dist/data/data-runtime.js +3 -5
  52. package/dist/data/invalidation-listeners.js +0 -2
  53. package/dist/data/invalidation.d.ts +1 -2
  54. package/dist/data/invalidation.js +0 -2
  55. package/dist/data/mutation-cell.d.ts +1 -2
  56. package/dist/data/mutation-cell.js +6 -5
  57. package/dist/data/query-cell.d.ts +3 -2
  58. package/dist/data/query-cell.js +43 -9
  59. package/dist/data/query-key.js +0 -2
  60. package/dist/data/shared.js +2 -3
  61. package/dist/data/types.d.ts +1 -2
  62. package/dist/foundations/icon/icon.d.ts +1 -2
  63. package/dist/foundations/icon/icon.js +0 -2
  64. package/dist/foundations/icon/icon.types.d.ts +1 -2
  65. package/dist/foundations/interactions/dismissable.d.ts +1 -2
  66. package/dist/foundations/interactions/dismissable.js +0 -2
  67. package/dist/foundations/interactions/focusable.d.ts +1 -2
  68. package/dist/foundations/interactions/focusable.js +0 -2
  69. package/dist/foundations/interactions/hoverable.d.ts +1 -2
  70. package/dist/foundations/interactions/hoverable.js +0 -2
  71. package/dist/foundations/interactions/interaction-policy.d.ts +1 -2
  72. package/dist/foundations/interactions/interaction-policy.js +0 -2
  73. package/dist/foundations/interactions/pressable.d.ts +1 -2
  74. package/dist/foundations/interactions/pressable.js +0 -2
  75. package/dist/foundations/interactions/roving-focus.d.ts +1 -2
  76. package/dist/foundations/interactions/roving-focus.js +0 -2
  77. package/dist/foundations/state/controllable.d.ts +1 -2
  78. package/dist/foundations/state/controllable.js +0 -2
  79. package/dist/foundations/structures/collection.d.ts +1 -2
  80. package/dist/foundations/structures/collection.js +0 -2
  81. package/dist/foundations/structures/layer.d.ts +1 -2
  82. package/dist/foundations/structures/layer.js +0 -2
  83. package/dist/foundations/structures/layout.d.ts +1 -2
  84. package/dist/foundations/structures/layout.js +0 -2
  85. package/dist/foundations/structures/presence.d.ts +1 -2
  86. package/dist/foundations/structures/presence.js +0 -2
  87. package/dist/foundations/structures/slot.d.ts +1 -2
  88. package/dist/foundations/structures/slot.js +0 -2
  89. package/dist/foundations/utilities/aria.d.ts +1 -2
  90. package/dist/foundations/utilities/aria.js +0 -2
  91. package/dist/foundations/utilities/compose-handlers.d.ts +1 -2
  92. package/dist/foundations/utilities/compose-handlers.js +0 -2
  93. package/dist/foundations/utilities/compose-ref.d.ts +1 -2
  94. package/dist/foundations/utilities/compose-ref.js +0 -2
  95. package/dist/foundations/utilities/event-types.d.ts +1 -2
  96. package/dist/foundations/utilities/merge-props.d.ts +1 -2
  97. package/dist/foundations/utilities/merge-props.js +0 -2
  98. package/dist/foundations/utilities/use-id.d.ts +1 -2
  99. package/dist/foundations/utilities/use-id.js +0 -2
  100. package/dist/fx/fx.d.ts +1 -2
  101. package/dist/fx/fx.js +0 -2
  102. package/dist/fx/noop.js +0 -2
  103. package/dist/fx/timing.d.ts +1 -2
  104. package/dist/fx/timing.js +0 -2
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.js +0 -2
  107. package/dist/jsx/types.d.ts +1 -2
  108. package/dist/jsx/utils.d.ts +1 -2
  109. package/dist/jsx/utils.js +0 -2
  110. package/dist/jsx-dev-runtime.d.ts +16 -2
  111. package/dist/jsx-dev-runtime.js +3 -12
  112. package/dist/jsx-runtime.d.ts +16 -2
  113. package/dist/jsx-runtime.js +15 -24
  114. package/dist/jsx-runtime2.d.ts +1 -1
  115. package/dist/renderer/attributes.js +28 -6
  116. package/dist/renderer/boundaries.js +48 -172
  117. package/dist/renderer/boundary-materialization.js +72 -0
  118. package/dist/renderer/boundary-range-adoption.js +76 -0
  119. package/dist/renderer/boundary-range-sync.js +101 -0
  120. package/dist/renderer/boundary-state.js +50 -0
  121. package/dist/renderer/child-shape.js +0 -2
  122. package/dist/renderer/children-fastpath.js +3 -3
  123. package/dist/renderer/children.js +0 -2
  124. package/dist/renderer/cleanup.js +70 -13
  125. package/dist/renderer/component-host-cleanup.js +123 -48
  126. package/dist/renderer/component-host-instances.js +59 -8
  127. package/dist/renderer/component-host-replacement.js +105 -0
  128. package/dist/renderer/component-host-results.js +138 -0
  129. package/dist/renderer/component-host.js +94 -169
  130. package/dist/renderer/dom-host.js +0 -2
  131. package/dist/renderer/dom-internal.js +110 -53
  132. package/dist/renderer/dom-range.js +161 -0
  133. package/dist/renderer/dom.js +5 -4
  134. package/dist/renderer/element-children.js +112 -32
  135. package/dist/renderer/error-boundary-dom.js +19 -11
  136. package/dist/renderer/evaluate-dom-range.js +3 -4
  137. package/dist/renderer/evaluate-reconcile.js +12 -37
  138. package/dist/renderer/evaluate.js +14 -3
  139. package/dist/renderer/fastpath.js +4 -12
  140. package/dist/renderer/for-commit-dom-map.js +6 -18
  141. package/dist/renderer/for-commit-removal.js +7 -16
  142. package/dist/renderer/for-commit-reorder.js +0 -2
  143. package/dist/renderer/for-commit.js +172 -44
  144. package/dist/renderer/hydration-boundaries.js +60 -0
  145. package/dist/renderer/hydration-listener-transaction.js +49 -0
  146. package/dist/renderer/index.js +8 -7
  147. package/dist/renderer/intrinsic-blueprint-analysis.js +202 -0
  148. package/dist/renderer/intrinsic-blueprint-bindings.js +152 -0
  149. package/dist/renderer/intrinsic-blueprint-materialization.js +100 -0
  150. package/dist/renderer/intrinsic-blueprint.js +30 -0
  151. package/dist/renderer/intrinsic-hydration-adoption.js +66 -0
  152. package/dist/renderer/keyed-children.js +3 -9
  153. package/dist/renderer/keyed.js +10 -10
  154. package/dist/renderer/namespaces.js +0 -2
  155. package/dist/renderer/prop-bindings.js +56 -21
  156. package/dist/renderer/reactive-child-dom.js +10 -4
  157. package/dist/renderer/reactive-child-sources.js +0 -2
  158. package/dist/renderer/reactive-children.js +29 -20
  159. package/dist/renderer/reconcile-commit.js +0 -2
  160. package/dist/renderer/reconcile-fastpaths.js +4 -11
  161. package/dist/renderer/reconcile-resolution.js +31 -55
  162. package/dist/renderer/reconcile.js +0 -2
  163. package/dist/renderer/retained-element-rollback.js +159 -148
  164. package/dist/renderer/stable-patch.js +3 -4
  165. package/dist/renderer/static-reuse.js +0 -2
  166. package/dist/renderer/utils.js +18 -9
  167. package/dist/router/access.js +0 -2
  168. package/dist/router/activity.d.ts +1 -2
  169. package/dist/router/activity.js +0 -2
  170. package/dist/router/authoring.d.ts +1 -2
  171. package/dist/router/authoring.js +0 -2
  172. package/dist/router/internal-types.d.ts +1 -2
  173. package/dist/router/lazy.d.ts +1 -2
  174. package/dist/router/lazy.js +0 -2
  175. package/dist/router/manifest.d.ts +1 -2
  176. package/dist/router/manifest.js +0 -2
  177. package/dist/router/match.js +0 -2
  178. package/dist/router/navigate.d.ts +1 -2
  179. package/dist/router/navigate.js +4 -7
  180. package/dist/router/navigation-registry.d.ts +1 -2
  181. package/dist/router/navigation-registry.js +0 -2
  182. package/dist/router/navigation-scroll.d.ts +1 -2
  183. package/dist/router/navigation-scroll.js +0 -2
  184. package/dist/router/navigation-targets.d.ts +3 -4
  185. package/dist/router/navigation-targets.js +419 -40
  186. package/dist/router/policy.d.ts +1 -2
  187. package/dist/router/policy.js +0 -2
  188. package/dist/router/rendering.d.ts +1 -2
  189. package/dist/router/rendering.js +4 -3
  190. package/dist/router/resolution.d.ts +1 -2
  191. package/dist/router/resolution.js +0 -2
  192. package/dist/router/route-context.js +0 -2
  193. package/dist/router/route-matching.d.ts +1 -2
  194. package/dist/router/route-matching.js +0 -2
  195. package/dist/router/route-query.d.ts +1 -2
  196. package/dist/router/route-query.js +1 -3
  197. package/dist/router/store.d.ts +1 -2
  198. package/dist/router/store.js +0 -2
  199. package/dist/runtime/access.d.ts +1 -2
  200. package/dist/runtime/access.js +0 -2
  201. package/dist/runtime/child-scope.d.ts +21 -2
  202. package/dist/runtime/child-scope.js +101 -54
  203. package/dist/runtime/component-cleanup.d.ts +1 -2
  204. package/dist/runtime/component-cleanup.js +2 -4
  205. package/dist/runtime/component-commit.js +25 -23
  206. package/dist/runtime/component-facade.js +5 -3
  207. package/dist/runtime/component-internal.d.ts +11 -6
  208. package/dist/runtime/component-internal.js +63 -45
  209. package/dist/runtime/component-lifecycle.d.ts +2 -41
  210. package/dist/runtime/component-lifecycle.js +6 -149
  211. package/dist/runtime/component-scope.d.ts +3 -4
  212. package/dist/runtime/component-scope.js +27 -8
  213. package/dist/runtime/component.js +4 -3
  214. package/dist/runtime/context.d.ts +5 -2
  215. package/dist/runtime/context.js +29 -3
  216. package/dist/runtime/control.d.ts +22 -3
  217. package/dist/runtime/control.js +168 -55
  218. package/dist/runtime/derive.d.ts +1 -2
  219. package/dist/runtime/derive.js +0 -2
  220. package/dist/runtime/dev-namespace.d.ts +5 -6
  221. package/dist/runtime/dev-namespace.js +32 -25
  222. package/dist/runtime/effect.d.ts +8 -5
  223. package/dist/runtime/effect.js +158 -75
  224. package/dist/runtime/error-boundary.d.ts +1 -2
  225. package/dist/runtime/error-boundary.js +0 -2
  226. package/dist/runtime/events.d.ts +3 -3
  227. package/dist/runtime/events.js +66 -69
  228. package/dist/runtime/execution-model.d.ts +1 -2
  229. package/dist/runtime/execution-model.js +0 -2
  230. package/dist/runtime/fastlane.d.ts +1 -2
  231. package/dist/runtime/fastlane.js +0 -2
  232. package/dist/runtime/for-bench.d.ts +1 -2
  233. package/dist/runtime/for-bench.js +9 -167
  234. package/dist/runtime/for-internal.d.ts +68 -5
  235. package/dist/runtime/for-internal.js +201 -14
  236. package/dist/runtime/for-reconcile.d.ts +1 -2
  237. package/dist/runtime/for-reconcile.js +76 -23
  238. package/dist/runtime/for-scopes.d.ts +5 -5
  239. package/dist/runtime/for-scopes.js +168 -48
  240. package/dist/runtime/for-signals.d.ts +13 -4
  241. package/dist/runtime/for-signals.js +155 -81
  242. package/dist/runtime/for-types.d.ts +1 -2
  243. package/dist/runtime/for.d.ts +2 -2
  244. package/dist/runtime/for.js +3 -3
  245. package/dist/runtime/index.d.ts +5 -5
  246. package/dist/runtime/index.js +12 -10
  247. package/dist/runtime/lifecycle-batch.d.ts +59 -0
  248. package/dist/runtime/lifecycle-batch.js +178 -0
  249. package/dist/runtime/lifecycle-operation-settlement.d.ts +5 -0
  250. package/dist/runtime/lifecycle-operation-settlement.js +51 -0
  251. package/dist/runtime/lifecycle-operations.d.ts +1 -2
  252. package/dist/runtime/lifecycle-operations.js +5 -6
  253. package/dist/runtime/perf-metrics.d.ts +8 -7
  254. package/dist/runtime/perf-metrics.js +4 -68
  255. package/dist/runtime/portal.d.ts +1 -2
  256. package/dist/runtime/portal.js +103 -11
  257. package/dist/runtime/readable.d.ts +9 -4
  258. package/dist/runtime/readable.js +41 -17
  259. package/dist/runtime/resource-cell.js +2 -4
  260. package/dist/runtime/resource-operation.d.ts +1 -2
  261. package/dist/runtime/resource-operation.js +37 -34
  262. package/dist/runtime/runtime.d.ts +1 -2
  263. package/dist/runtime/runtime.js +0 -2
  264. package/dist/runtime/scheduler.d.ts +1 -2
  265. package/dist/runtime/scheduler.js +8 -11
  266. package/dist/runtime/selector-store.js +0 -2
  267. package/dist/runtime/selector.d.ts +1 -2
  268. package/dist/runtime/selector.js +3 -11
  269. package/dist/runtime/snapshot-source.d.ts +1 -2
  270. package/dist/runtime/snapshot-source.js +0 -2
  271. package/dist/runtime/state.d.ts +1 -2
  272. package/dist/runtime/state.js +1 -3
  273. package/dist/ssg/batch-render.js +0 -2
  274. package/dist/ssg/create-static-gen.d.ts +4 -2
  275. package/dist/ssg/create-static-gen.js +65 -14
  276. package/dist/ssg/generate-metadata.js +0 -2
  277. package/dist/ssg/generation-plan.js +0 -2
  278. package/dist/ssg/incremental-manifest.js +1 -3
  279. package/dist/ssg/resolve-ssg-data.js +0 -2
  280. package/dist/ssg/route-utils.js +0 -2
  281. package/dist/ssg/static-routes.js +0 -2
  282. package/dist/ssg/types.d.ts +2 -3
  283. package/dist/ssg/write-static-files.js +16 -12
  284. package/dist/ssr/attrs.js +0 -2
  285. package/dist/ssr/boundaries.js +16 -5
  286. package/dist/ssr/component-runtime.js +1 -27
  287. package/dist/ssr/context.d.ts +1 -2
  288. package/dist/ssr/context.js +0 -2
  289. package/dist/ssr/errors.d.ts +1 -2
  290. package/dist/ssr/errors.js +0 -2
  291. package/dist/ssr/escape.js +0 -2
  292. package/dist/ssr/hydration-data.js +0 -2
  293. package/dist/ssr/hydration-verify.d.ts +1 -2
  294. package/dist/ssr/hydration-verify.js +34 -7
  295. package/dist/ssr/index-internal.d.ts +1 -2
  296. package/dist/ssr/index-internal.js +0 -2
  297. package/dist/ssr/render-keys.js +0 -2
  298. package/dist/ssr/render-resolved.d.ts +1 -2
  299. package/dist/ssr/render-resolved.js +0 -2
  300. package/dist/ssr/render-sync.d.ts +1 -2
  301. package/dist/ssr/render-sync.js +27 -19
  302. package/dist/ssr/route-policy-resolution.js +0 -2
  303. package/dist/ssr/route-render.d.ts +1 -2
  304. package/dist/ssr/route-render.js +0 -2
  305. package/dist/ssr/sink.d.ts +1 -2
  306. package/dist/ssr/sink.js +0 -2
  307. package/dist/ssr/types.d.ts +1 -2
  308. package/dist/ssr/verify-hydration.js +0 -2
  309. package/dist/testing/index.d.ts +1 -2
  310. package/dist/testing/index.js +0 -2
  311. package/package.json +57 -44
  312. package/dist/bench/components/benchmark-row.d.ts.map +0 -1
  313. package/dist/bench/components/benchmark-row.js.map +0 -1
  314. package/dist/bench/components/benchmark-table.js.map +0 -1
  315. package/dist/benchmark.d.ts.map +0 -1
  316. package/dist/benchmark.js.map +0 -1
  317. package/dist/bin/askr-ssg.d.ts.map +0 -1
  318. package/dist/bin/askr-ssg.js.map +0 -1
  319. package/dist/boot/hydration.js.map +0 -1
  320. package/dist/boot/index.d.ts.map +0 -1
  321. package/dist/boot/index.js.map +0 -1
  322. package/dist/boot/root-lifecycle.d.ts.map +0 -1
  323. package/dist/boot/root-lifecycle.js.map +0 -1
  324. package/dist/boot/route-startup.js.map +0 -1
  325. package/dist/boot/types.d.ts.map +0 -1
  326. package/dist/common/attr-names.js.map +0 -1
  327. package/dist/common/component.d.ts.map +0 -1
  328. package/dist/common/control.d.ts.map +0 -1
  329. package/dist/common/control.js.map +0 -1
  330. package/dist/common/env.js.map +0 -1
  331. package/dist/common/error-boundary.d.ts.map +0 -1
  332. package/dist/common/invariant.js.map +0 -1
  333. package/dist/common/jsx.d.ts.map +0 -1
  334. package/dist/common/jsx.js.map +0 -1
  335. package/dist/common/logger.js.map +0 -1
  336. package/dist/common/promise.js.map +0 -1
  337. package/dist/common/props.d.ts.map +0 -1
  338. package/dist/common/render-context.js.map +0 -1
  339. package/dist/common/route-activity.js.map +0 -1
  340. package/dist/common/router-internal.js.map +0 -1
  341. package/dist/common/router.d.ts.map +0 -1
  342. package/dist/common/ssr-errors.d.ts.map +0 -1
  343. package/dist/common/ssr-errors.js.map +0 -1
  344. package/dist/common/ssr.d.ts.map +0 -1
  345. package/dist/common/ssr.js.map +0 -1
  346. package/dist/common/vnode.d.ts.map +0 -1
  347. package/dist/common/vnode.js.map +0 -1
  348. package/dist/components/error-boundary.d.ts.map +0 -1
  349. package/dist/components/error-boundary.js.map +0 -1
  350. package/dist/components/link.d.ts.map +0 -1
  351. package/dist/components/link.js.map +0 -1
  352. package/dist/control/case.d.ts.map +0 -1
  353. package/dist/control/case.js.map +0 -1
  354. package/dist/control/for.d.ts.map +0 -1
  355. package/dist/control/for.js.map +0 -1
  356. package/dist/control/shared.d.ts.map +0 -1
  357. package/dist/control/shared.js.map +0 -1
  358. package/dist/control/show.d.ts.map +0 -1
  359. package/dist/control/show.js.map +0 -1
  360. package/dist/data/data-runtime.d.ts.map +0 -1
  361. package/dist/data/data-runtime.js.map +0 -1
  362. package/dist/data/invalidation-listeners.js.map +0 -1
  363. package/dist/data/invalidation.d.ts.map +0 -1
  364. package/dist/data/invalidation.js.map +0 -1
  365. package/dist/data/mutation-cell.d.ts.map +0 -1
  366. package/dist/data/mutation-cell.js.map +0 -1
  367. package/dist/data/query-cell.d.ts.map +0 -1
  368. package/dist/data/query-cell.js.map +0 -1
  369. package/dist/data/query-key.js.map +0 -1
  370. package/dist/data/shared.js.map +0 -1
  371. package/dist/data/types.d.ts.map +0 -1
  372. package/dist/foundations/icon/icon.d.ts.map +0 -1
  373. package/dist/foundations/icon/icon.js.map +0 -1
  374. package/dist/foundations/icon/icon.types.d.ts.map +0 -1
  375. package/dist/foundations/interactions/dismissable.d.ts.map +0 -1
  376. package/dist/foundations/interactions/dismissable.js.map +0 -1
  377. package/dist/foundations/interactions/focusable.d.ts.map +0 -1
  378. package/dist/foundations/interactions/focusable.js.map +0 -1
  379. package/dist/foundations/interactions/hoverable.d.ts.map +0 -1
  380. package/dist/foundations/interactions/hoverable.js.map +0 -1
  381. package/dist/foundations/interactions/interaction-policy.d.ts.map +0 -1
  382. package/dist/foundations/interactions/interaction-policy.js.map +0 -1
  383. package/dist/foundations/interactions/pressable.d.ts.map +0 -1
  384. package/dist/foundations/interactions/pressable.js.map +0 -1
  385. package/dist/foundations/interactions/roving-focus.d.ts.map +0 -1
  386. package/dist/foundations/interactions/roving-focus.js.map +0 -1
  387. package/dist/foundations/state/controllable.d.ts.map +0 -1
  388. package/dist/foundations/state/controllable.js.map +0 -1
  389. package/dist/foundations/structures/collection.d.ts.map +0 -1
  390. package/dist/foundations/structures/collection.js.map +0 -1
  391. package/dist/foundations/structures/layer.d.ts.map +0 -1
  392. package/dist/foundations/structures/layer.js.map +0 -1
  393. package/dist/foundations/structures/layout.d.ts.map +0 -1
  394. package/dist/foundations/structures/layout.js.map +0 -1
  395. package/dist/foundations/structures/presence.d.ts.map +0 -1
  396. package/dist/foundations/structures/presence.js.map +0 -1
  397. package/dist/foundations/structures/slot.d.ts.map +0 -1
  398. package/dist/foundations/structures/slot.js.map +0 -1
  399. package/dist/foundations/utilities/aria.d.ts.map +0 -1
  400. package/dist/foundations/utilities/aria.js.map +0 -1
  401. package/dist/foundations/utilities/compose-handlers.d.ts.map +0 -1
  402. package/dist/foundations/utilities/compose-handlers.js.map +0 -1
  403. package/dist/foundations/utilities/compose-ref.d.ts.map +0 -1
  404. package/dist/foundations/utilities/compose-ref.js.map +0 -1
  405. package/dist/foundations/utilities/event-types.d.ts.map +0 -1
  406. package/dist/foundations/utilities/merge-props.d.ts.map +0 -1
  407. package/dist/foundations/utilities/merge-props.js.map +0 -1
  408. package/dist/foundations/utilities/use-id.d.ts.map +0 -1
  409. package/dist/foundations/utilities/use-id.js.map +0 -1
  410. package/dist/fx/fx.d.ts.map +0 -1
  411. package/dist/fx/fx.js.map +0 -1
  412. package/dist/fx/noop.js.map +0 -1
  413. package/dist/fx/timing.d.ts.map +0 -1
  414. package/dist/fx/timing.js.map +0 -1
  415. package/dist/index.js.map +0 -1
  416. package/dist/jsx/types.d.ts.map +0 -1
  417. package/dist/jsx/utils.d.ts.map +0 -1
  418. package/dist/jsx/utils.js.map +0 -1
  419. package/dist/jsx-dev-runtime.d.ts.map +0 -1
  420. package/dist/jsx-dev-runtime.js.map +0 -1
  421. package/dist/jsx-runtime.d.ts.map +0 -1
  422. package/dist/jsx-runtime.js.map +0 -1
  423. package/dist/renderer/attributes.js.map +0 -1
  424. package/dist/renderer/boundaries.js.map +0 -1
  425. package/dist/renderer/child-shape.js.map +0 -1
  426. package/dist/renderer/children-fastpath.js.map +0 -1
  427. package/dist/renderer/children.js.map +0 -1
  428. package/dist/renderer/cleanup.js.map +0 -1
  429. package/dist/renderer/component-host-cleanup.js.map +0 -1
  430. package/dist/renderer/component-host-instances.js.map +0 -1
  431. package/dist/renderer/component-host.js.map +0 -1
  432. package/dist/renderer/dom-host.js.map +0 -1
  433. package/dist/renderer/dom-internal.js.map +0 -1
  434. package/dist/renderer/element-children.js.map +0 -1
  435. package/dist/renderer/error-boundary-dom.js.map +0 -1
  436. package/dist/renderer/evaluate-dom-range.js.map +0 -1
  437. package/dist/renderer/evaluate-reconcile.js.map +0 -1
  438. package/dist/renderer/evaluate.js.map +0 -1
  439. package/dist/renderer/fastpath.js.map +0 -1
  440. package/dist/renderer/for-commit-dom-map.js.map +0 -1
  441. package/dist/renderer/for-commit-removal.js.map +0 -1
  442. package/dist/renderer/for-commit-reorder.js.map +0 -1
  443. package/dist/renderer/for-commit.js.map +0 -1
  444. package/dist/renderer/index.js.map +0 -1
  445. package/dist/renderer/keyed-children.js.map +0 -1
  446. package/dist/renderer/keyed.js.map +0 -1
  447. package/dist/renderer/namespaces.js.map +0 -1
  448. package/dist/renderer/prop-bindings.js.map +0 -1
  449. package/dist/renderer/reactive-child-dom.js.map +0 -1
  450. package/dist/renderer/reactive-child-sources.js.map +0 -1
  451. package/dist/renderer/reactive-children.js.map +0 -1
  452. package/dist/renderer/reconcile-commit.js.map +0 -1
  453. package/dist/renderer/reconcile-fastpaths.js.map +0 -1
  454. package/dist/renderer/reconcile-resolution.js.map +0 -1
  455. package/dist/renderer/reconcile.js.map +0 -1
  456. package/dist/renderer/retained-element-rollback.js.map +0 -1
  457. package/dist/renderer/stable-patch.js.map +0 -1
  458. package/dist/renderer/static-reuse.js.map +0 -1
  459. package/dist/renderer/utils.js.map +0 -1
  460. package/dist/router/access.js.map +0 -1
  461. package/dist/router/activity.d.ts.map +0 -1
  462. package/dist/router/activity.js.map +0 -1
  463. package/dist/router/authoring.d.ts.map +0 -1
  464. package/dist/router/authoring.js.map +0 -1
  465. package/dist/router/internal-types.d.ts.map +0 -1
  466. package/dist/router/lazy.d.ts.map +0 -1
  467. package/dist/router/lazy.js.map +0 -1
  468. package/dist/router/manifest.d.ts.map +0 -1
  469. package/dist/router/manifest.js.map +0 -1
  470. package/dist/router/match.js.map +0 -1
  471. package/dist/router/navigate.d.ts.map +0 -1
  472. package/dist/router/navigate.js.map +0 -1
  473. package/dist/router/navigation-registry.d.ts.map +0 -1
  474. package/dist/router/navigation-registry.js.map +0 -1
  475. package/dist/router/navigation-scroll.d.ts.map +0 -1
  476. package/dist/router/navigation-scroll.js.map +0 -1
  477. package/dist/router/navigation-targets.d.ts.map +0 -1
  478. package/dist/router/navigation-targets.js.map +0 -1
  479. package/dist/router/policy.d.ts.map +0 -1
  480. package/dist/router/policy.js.map +0 -1
  481. package/dist/router/rendering.d.ts.map +0 -1
  482. package/dist/router/rendering.js.map +0 -1
  483. package/dist/router/resolution.d.ts.map +0 -1
  484. package/dist/router/resolution.js.map +0 -1
  485. package/dist/router/route-context.js.map +0 -1
  486. package/dist/router/route-matching.d.ts.map +0 -1
  487. package/dist/router/route-matching.js.map +0 -1
  488. package/dist/router/route-query.d.ts.map +0 -1
  489. package/dist/router/route-query.js.map +0 -1
  490. package/dist/router/store.d.ts.map +0 -1
  491. package/dist/router/store.js.map +0 -1
  492. package/dist/runtime/access.d.ts.map +0 -1
  493. package/dist/runtime/access.js.map +0 -1
  494. package/dist/runtime/child-scope.d.ts.map +0 -1
  495. package/dist/runtime/child-scope.js.map +0 -1
  496. package/dist/runtime/component-cleanup.d.ts.map +0 -1
  497. package/dist/runtime/component-cleanup.js.map +0 -1
  498. package/dist/runtime/component-commit.js.map +0 -1
  499. package/dist/runtime/component-internal.d.ts.map +0 -1
  500. package/dist/runtime/component-internal.js.map +0 -1
  501. package/dist/runtime/component-lifecycle.d.ts.map +0 -1
  502. package/dist/runtime/component-lifecycle.js.map +0 -1
  503. package/dist/runtime/component-scope.d.ts.map +0 -1
  504. package/dist/runtime/component-scope.js.map +0 -1
  505. package/dist/runtime/context.d.ts.map +0 -1
  506. package/dist/runtime/context.js.map +0 -1
  507. package/dist/runtime/control.d.ts.map +0 -1
  508. package/dist/runtime/control.js.map +0 -1
  509. package/dist/runtime/derive.d.ts.map +0 -1
  510. package/dist/runtime/derive.js.map +0 -1
  511. package/dist/runtime/dev-namespace.d.ts.map +0 -1
  512. package/dist/runtime/dev-namespace.js.map +0 -1
  513. package/dist/runtime/effect.d.ts.map +0 -1
  514. package/dist/runtime/effect.js.map +0 -1
  515. package/dist/runtime/error-boundary.d.ts.map +0 -1
  516. package/dist/runtime/error-boundary.js.map +0 -1
  517. package/dist/runtime/events.d.ts.map +0 -1
  518. package/dist/runtime/events.js.map +0 -1
  519. package/dist/runtime/execution-model.d.ts.map +0 -1
  520. package/dist/runtime/execution-model.js.map +0 -1
  521. package/dist/runtime/fastlane.d.ts.map +0 -1
  522. package/dist/runtime/fastlane.js.map +0 -1
  523. package/dist/runtime/for-bench.d.ts.map +0 -1
  524. package/dist/runtime/for-bench.js.map +0 -1
  525. package/dist/runtime/for-internal.d.ts.map +0 -1
  526. package/dist/runtime/for-internal.js.map +0 -1
  527. package/dist/runtime/for-reconcile.d.ts.map +0 -1
  528. package/dist/runtime/for-reconcile.js.map +0 -1
  529. package/dist/runtime/for-scopes.d.ts.map +0 -1
  530. package/dist/runtime/for-scopes.js.map +0 -1
  531. package/dist/runtime/for-signals.d.ts.map +0 -1
  532. package/dist/runtime/for-signals.js.map +0 -1
  533. package/dist/runtime/for-types.d.ts.map +0 -1
  534. package/dist/runtime/lifecycle-operations.d.ts.map +0 -1
  535. package/dist/runtime/lifecycle-operations.js.map +0 -1
  536. package/dist/runtime/perf-metrics.d.ts.map +0 -1
  537. package/dist/runtime/perf-metrics.js.map +0 -1
  538. package/dist/runtime/portal.d.ts.map +0 -1
  539. package/dist/runtime/portal.js.map +0 -1
  540. package/dist/runtime/readable.d.ts.map +0 -1
  541. package/dist/runtime/readable.js.map +0 -1
  542. package/dist/runtime/resource-cell.js.map +0 -1
  543. package/dist/runtime/resource-operation.d.ts.map +0 -1
  544. package/dist/runtime/resource-operation.js.map +0 -1
  545. package/dist/runtime/runtime.d.ts.map +0 -1
  546. package/dist/runtime/runtime.js.map +0 -1
  547. package/dist/runtime/scheduler.d.ts.map +0 -1
  548. package/dist/runtime/scheduler.js.map +0 -1
  549. package/dist/runtime/selector-store.js.map +0 -1
  550. package/dist/runtime/selector.d.ts.map +0 -1
  551. package/dist/runtime/selector.js.map +0 -1
  552. package/dist/runtime/snapshot-source.d.ts.map +0 -1
  553. package/dist/runtime/snapshot-source.js.map +0 -1
  554. package/dist/runtime/state.d.ts.map +0 -1
  555. package/dist/runtime/state.js.map +0 -1
  556. package/dist/ssg/batch-render.js.map +0 -1
  557. package/dist/ssg/create-static-gen.d.ts.map +0 -1
  558. package/dist/ssg/create-static-gen.js.map +0 -1
  559. package/dist/ssg/generate-metadata.js.map +0 -1
  560. package/dist/ssg/generation-plan.js.map +0 -1
  561. package/dist/ssg/incremental-manifest.js.map +0 -1
  562. package/dist/ssg/resolve-ssg-data.js.map +0 -1
  563. package/dist/ssg/route-utils.js.map +0 -1
  564. package/dist/ssg/static-routes.js.map +0 -1
  565. package/dist/ssg/types.d.ts.map +0 -1
  566. package/dist/ssg/write-static-files.js.map +0 -1
  567. package/dist/ssr/attrs.js.map +0 -1
  568. package/dist/ssr/boundaries.js.map +0 -1
  569. package/dist/ssr/component-runtime.js.map +0 -1
  570. package/dist/ssr/context.d.ts.map +0 -1
  571. package/dist/ssr/context.js.map +0 -1
  572. package/dist/ssr/errors.d.ts.map +0 -1
  573. package/dist/ssr/errors.js.map +0 -1
  574. package/dist/ssr/escape.js.map +0 -1
  575. package/dist/ssr/hydration-data.js.map +0 -1
  576. package/dist/ssr/hydration-verify.d.ts.map +0 -1
  577. package/dist/ssr/hydration-verify.js.map +0 -1
  578. package/dist/ssr/index-internal.d.ts.map +0 -1
  579. package/dist/ssr/index-internal.js.map +0 -1
  580. package/dist/ssr/render-keys.js.map +0 -1
  581. package/dist/ssr/render-resolved.d.ts.map +0 -1
  582. package/dist/ssr/render-resolved.js.map +0 -1
  583. package/dist/ssr/render-sync.d.ts.map +0 -1
  584. package/dist/ssr/render-sync.js.map +0 -1
  585. package/dist/ssr/route-policy-resolution.js.map +0 -1
  586. package/dist/ssr/route-render.d.ts.map +0 -1
  587. package/dist/ssr/route-render.js.map +0 -1
  588. package/dist/ssr/sink.d.ts.map +0 -1
  589. package/dist/ssr/sink.js.map +0 -1
  590. package/dist/ssr/types.d.ts.map +0 -1
  591. package/dist/ssr/verify-hydration.js.map +0 -1
  592. package/dist/testing/index.d.ts.map +0 -1
  593. package/dist/testing/index.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import { Props } from "../common/props.js";
2
2
  import { JSXElement } from "../common/jsx.js";
3
3
  import { RenderableChild } from "../common/vnode.js";
4
+
4
5
  //#region src/components/link.d.ts
5
6
  type LinkProps = Omit<Props, 'children' | 'href' | 'class' | 'rel' | 'target' | 'aria-current' | 'aria-label'> & {
6
7
  href: string;
@@ -64,5 +65,4 @@ declare function Link({
64
65
  ...rest
65
66
  }: LinkProps): JSXElement;
66
67
  //#endregion
67
- export { Link, LinkProps };
68
- //# sourceMappingURL=link.d.ts.map
68
+ export { Link, LinkProps };
@@ -72,5 +72,3 @@ function Link({ href, class: className, children, rel, target, "aria-current": a
72
72
  }
73
73
  //#endregion
74
74
  export { Link };
75
-
76
- //# sourceMappingURL=link.js.map
@@ -15,5 +15,4 @@ type CaseProps = {
15
15
  declare function Match(_props: MatchProps): null;
16
16
  declare const Case: (props: CaseProps) => JSXElement;
17
17
  //#endregion
18
- export { Case, CaseProps, Match, MatchProps };
19
- //# sourceMappingURL=case.d.ts.map
18
+ export { Case, CaseProps, Match, MatchProps };
@@ -66,5 +66,3 @@ function CasePrimitive(props) {
66
66
  const Case = markEagerControlPrimitive(CasePrimitive);
67
67
  //#endregion
68
68
  export { Case, Match };
69
-
70
- //# sourceMappingURL=case.js.map
@@ -20,5 +20,4 @@ type IndexedForProps<T> = ForBaseProps<T> & {
20
20
  type ForProps<T, K extends string | number = string | number> = KeyedForProps<T, K> | IndexedForProps<T>;
21
21
  declare const For: <T, K extends string | number = string | number>(props: ForProps<T, K>) => JSXElement;
22
22
  //#endregion
23
- export { For, ForProps };
24
- //# sourceMappingURL=for.d.ts.map
23
+ export { For, ForProps };
@@ -59,5 +59,3 @@ function ForPrimitive(props) {
59
59
  const For = markEagerControlPrimitive(ForPrimitive);
60
60
  //#endregion
61
61
  export { For };
62
-
63
- //# sourceMappingURL=for.js.map
@@ -5,5 +5,4 @@ type BoundaryChild = RenderableChild;
5
5
  declare function normalizeBoundaryChild(value: unknown): VNode | null;
6
6
  declare function resolveMaybeAccessor<T>(value: T | (() => T)): T;
7
7
  //#endregion
8
- export { BoundaryChild };
9
- //# sourceMappingURL=shared.d.ts.map
8
+ export { BoundaryChild };
@@ -16,5 +16,3 @@ function resolveMaybeAccessor(value) {
16
16
  }
17
17
  //#endregion
18
18
  export { normalizeBoundaryChild, resolveMaybeAccessor };
19
-
20
- //# sourceMappingURL=shared.js.map
@@ -11,5 +11,4 @@ type ShowProps<T> = {
11
11
  };
12
12
  declare const Show: <T>(props: ShowProps<T>) => JSXElement;
13
13
  //#endregion
14
- export { Show, ShowProps };
15
- //# sourceMappingURL=show.d.ts.map
14
+ export { Show, ShowProps };
@@ -30,5 +30,3 @@ function ShowPrimitive(props) {
30
30
  const Show = markEagerControlPrimitive(ShowPrimitive);
31
31
  //#endregion
32
32
  export { Show };
33
-
34
- //# sourceMappingURL=show.js.map
@@ -24,5 +24,4 @@ declare function ensureQueryCleanup(runtimeState: DataRuntimeState, instance: Co
24
24
  declare function ensureMutationCleanup(runtimeState: DataRuntimeState, instance: ComponentInstance): void;
25
25
  declare function invalidateQueriesForRuntime(runtimeState: DataRuntimeState, prefix: string, markPendingWrite: boolean): void;
26
26
  //#endregion
27
- export { DataRuntimeState, QuerySlot, createDataRuntime, getDefaultDataRuntime };
28
- //# sourceMappingURL=data-runtime.d.ts.map
27
+ export { DataRuntimeState, QuerySlot, createDataRuntime, getDefaultDataRuntime };
@@ -69,7 +69,7 @@ function getMutationSlotStore(runtimeState, instance) {
69
69
  function ensureQueryCleanup(runtimeState, instance) {
70
70
  if (runtimeState.queryCleanupRegistered.has(instance)) return;
71
71
  runtimeState.queryCleanupRegistered.add(instance);
72
- instance.cleanupFns.push(() => {
72
+ (instance.cleanupFns ??= []).push(() => {
73
73
  const slots = runtimeState.querySlotsByInstance.get(instance);
74
74
  if (!slots) {
75
75
  runtimeState.queryCleanupRegistered.delete(instance);
@@ -84,7 +84,7 @@ function ensureQueryCleanup(runtimeState, instance) {
84
84
  function ensureMutationCleanup(runtimeState, instance) {
85
85
  if (runtimeState.mutationCleanupRegistered.has(instance)) return;
86
86
  runtimeState.mutationCleanupRegistered.add(instance);
87
- instance.cleanupFns.push(() => {
87
+ (instance.cleanupFns ??= []).push(() => {
88
88
  const slots = runtimeState.mutationSlotsByInstance.get(instance);
89
89
  if (!slots) {
90
90
  runtimeState.mutationCleanupRegistered.delete(instance);
@@ -105,10 +105,8 @@ function invalidateQueriesForRuntime(runtimeState, prefix, markPendingWrite) {
105
105
  for (const [key, query] of cache) {
106
106
  if (!key.startsWith(prefix)) continue;
107
107
  if (markPendingWrite) query.markPendingWrite();
108
- query.refresh();
108
+ query.invalidate();
109
109
  }
110
110
  }
111
111
  //#endregion
112
112
  export { createDataRuntime, ensureMutationCleanup, ensureQueryCleanup, getDefaultDataRuntime, getMutationSlotStore, getQuerySlotStore, invalidateQueriesForRuntime, resolveDataRuntimeState };
113
-
114
- //# sourceMappingURL=data-runtime.js.map
@@ -11,5 +11,3 @@ function emitInvalidation(event) {
11
11
  }
12
12
  //#endregion
13
13
  export { addInvalidationListener, emitInvalidation };
14
-
15
- //# sourceMappingURL=invalidation-listeners.js.map
@@ -5,5 +5,4 @@ declare function invalidate(prefix: string, options?: InvalidateOptions): void;
5
5
  declare function queryScope(namespace: string): QueryScope;
6
6
  declare function invalidateOnInterval(prefix: string, options: InvalidateOnIntervalOptions): void;
7
7
  //#endregion
8
- export { invalidate, invalidateOnInterval, queryScope };
9
- //# sourceMappingURL=invalidation.d.ts.map
8
+ export { invalidate, invalidateOnInterval, queryScope };
@@ -23,5 +23,3 @@ function invalidateOnInterval(prefix, options) {
23
23
  }
24
24
  //#endregion
25
25
  export { invalidate, invalidateOnInterval, queryScope };
26
-
27
- //# sourceMappingURL=invalidation.js.map
@@ -24,5 +24,4 @@ declare class MutationCell<TInput, TResult> {
24
24
  }
25
25
  declare function createMutation<TInput, TResult>(options: MutationOptions<TInput, TResult>): Mutation<TInput, TResult>;
26
26
  //#endregion
27
- export { MutationCell, createMutation };
28
- //# sourceMappingURL=mutation-cell.d.ts.map
27
+ export { MutationCell, createMutation };
@@ -48,6 +48,9 @@ var MutationCell = class {
48
48
  notifySource(this.source);
49
49
  }
50
50
  async execute(input) {
51
+ const action = this.action;
52
+ const affects = this.affects;
53
+ const afterSuccess = this.afterSuccess;
51
54
  this.generation += 1;
52
55
  const generation = this.generation;
53
56
  this.controller?.abort();
@@ -60,7 +63,7 @@ var MutationCell = class {
60
63
  });
61
64
  let result;
62
65
  try {
63
- result = await this.action(input, { signal: controller.signal });
66
+ result = await action(input, { signal: controller.signal });
64
67
  } catch (error) {
65
68
  if (this.generation !== generation || this.controller !== controller) throw error;
66
69
  if (isAbortError(error, controller.signal)) {
@@ -82,8 +85,8 @@ var MutationCell = class {
82
85
  error: null,
83
86
  result
84
87
  });
85
- if (this.afterSuccess === "invalidate") {
86
- const prefixes = this.affects?.(input, result) ?? [];
88
+ if (afterSuccess === "invalidate") {
89
+ const prefixes = affects?.(input, result) ?? [];
87
90
  for (const prefix of new Set(prefixes)) invalidateQueriesForRuntime(this.runtimeState, prefix, true);
88
91
  }
89
92
  return result;
@@ -128,5 +131,3 @@ function createMutation(options) {
128
131
  }
129
132
  //#endregion
130
133
  export { MutationCell, createMutation };
131
-
132
- //# sourceMappingURL=mutation-cell.js.map
@@ -12,6 +12,7 @@ declare class QueryCell<T> {
12
12
  private startQueued;
13
13
  private pendingRefresh;
14
14
  private pendingRefreshResolve;
15
+ private pendingRefreshToken;
15
16
  private reconcileAttemptCount;
16
17
  private destroyed;
17
18
  private ownerCount;
@@ -33,6 +34,7 @@ declare class QueryCell<T> {
33
34
  get staleReason(): QueryState<T>['staleReason'];
34
35
  ensureStarted(): void;
35
36
  refresh(): Promise<void>;
37
+ invalidate(): void;
36
38
  markPendingWrite(): void;
37
39
  private queueStart;
38
40
  private finishPendingRefresh;
@@ -42,5 +44,4 @@ declare class QueryCell<T> {
42
44
  }
43
45
  declare function createQuery<T extends {}>(options: QueryOptions<T>): Query<T>;
44
46
  //#endregion
45
- export { QueryCell, createQuery };
46
- //# sourceMappingURL=query-cell.d.ts.map
47
+ export { QueryCell, createQuery };
@@ -16,6 +16,7 @@ var QueryCell = class {
16
16
  this.startQueued = false;
17
17
  this.pendingRefresh = null;
18
18
  this.pendingRefreshResolve = null;
19
+ this.pendingRefreshToken = 0;
19
20
  this.reconcileAttemptCount = 0;
20
21
  this.destroyed = false;
21
22
  this.ownerCount = 0;
@@ -117,6 +118,14 @@ var QueryCell = class {
117
118
  this.queueStart("manual");
118
119
  return this.pendingRefresh ?? Promise.resolve();
119
120
  }
121
+ invalidate() {
122
+ if (this.destroyed) return;
123
+ if (this.pendingRefresh) {
124
+ this.controller?.abort();
125
+ this.finishPendingRefresh(this.pendingRefreshToken);
126
+ }
127
+ this.queueStart("invalidate");
128
+ }
120
129
  markPendingWrite() {
121
130
  if (this.destroyed) return;
122
131
  if (this.state.data === null) return;
@@ -132,21 +141,23 @@ var QueryCell = class {
132
141
  queueStart(reason) {
133
142
  if (this.destroyed) return;
134
143
  this.startQueued = true;
144
+ const token = ++this.pendingRefreshToken;
135
145
  this.pendingRefresh = new Promise((resolve) => {
136
146
  this.pendingRefreshResolve = resolve;
137
147
  enqueueRuntimeTask(() => {
138
148
  this.startQueued = false;
139
149
  if (this.destroyed) {
140
- this.finishPendingRefresh();
150
+ this.finishPendingRefresh(token);
141
151
  return;
142
152
  }
143
153
  this.start(reason).finally(() => {
144
- this.finishPendingRefresh();
154
+ this.finishPendingRefresh(token);
145
155
  });
146
156
  });
147
157
  });
148
158
  }
149
- finishPendingRefresh() {
159
+ finishPendingRefresh(token = this.pendingRefreshToken) {
160
+ if (token !== this.pendingRefreshToken) return;
150
161
  const resolve = this.pendingRefreshResolve;
151
162
  this.pendingRefresh = null;
152
163
  this.pendingRefreshResolve = null;
@@ -210,7 +221,21 @@ var QueryCell = class {
210
221
  return;
211
222
  }
212
223
  if (this.destroyed || this.generation !== generation || this.controller !== controller) return;
213
- if (!(this.options.isConsistent?.(nextData) ?? true)) {
224
+ let isConsistent;
225
+ try {
226
+ isConsistent = this.options.isConsistent?.(nextData) ?? true;
227
+ } catch (error) {
228
+ this.setState({
229
+ loading: false,
230
+ refreshing: false,
231
+ stale: true,
232
+ consistency: "stale",
233
+ error: normalizeAsyncDataError(error, "Query consistency check failed"),
234
+ staleReason: "error"
235
+ });
236
+ return;
237
+ }
238
+ if (!isConsistent) {
214
239
  this.setState({
215
240
  data: nextData,
216
241
  loading: false,
@@ -219,7 +244,18 @@ var QueryCell = class {
219
244
  consistency: "stale",
220
245
  staleReason: "inconsistent"
221
246
  });
222
- await this.reconcile(nextData);
247
+ try {
248
+ await this.reconcile(nextData);
249
+ } catch (error) {
250
+ if (this.generation === generation && this.controller === controller) this.setState({
251
+ loading: false,
252
+ refreshing: false,
253
+ stale: true,
254
+ consistency: "stale",
255
+ error: normalizeAsyncDataError(error, "Query reconciliation failed"),
256
+ staleReason: "error"
257
+ });
258
+ }
223
259
  return;
224
260
  }
225
261
  this.reconcileAttemptCount = 0;
@@ -234,7 +270,7 @@ var QueryCell = class {
234
270
  });
235
271
  }
236
272
  async reconcile(data) {
237
- if (!(this.options.reconcile?.(data, { key: this.options.key }) ?? false) || this.destroyed) return;
273
+ if (!await (this.options.reconcile?.(data, { key: this.options.key }) ?? false) || this.destroyed) return;
238
274
  this.reconcileAttemptCount += 1;
239
275
  if (this.reconcileAttemptCount > RECONCILE_MAX_ATTEMPTS) {
240
276
  this.setState({
@@ -246,7 +282,7 @@ var QueryCell = class {
246
282
  }
247
283
  await new Promise((resolve) => setTimeout(resolve, RECONCILE_RETRY_DELAY_MS));
248
284
  if (this.destroyed || this.state.consistency === "fresh") return;
249
- await this.refresh();
285
+ this.invalidate();
250
286
  }
251
287
  };
252
288
  function createQuery(options) {
@@ -286,5 +322,3 @@ function createQuery(options) {
286
322
  }
287
323
  //#endregion
288
324
  export { QueryCell, createQuery };
289
-
290
- //# sourceMappingURL=query-cell.js.map
@@ -38,5 +38,3 @@ function createQueryScope(namespace, invalidate) {
38
38
  }
39
39
  //#endregion
40
40
  export { createQueryScope };
41
-
42
- //# sourceMappingURL=query-key.js.map
@@ -13,9 +13,8 @@ function isAbortError(error, signal) {
13
13
  return signal.aborted || error instanceof Error && error.name === "AbortError" || typeof DOMException !== "undefined" && error instanceof DOMException && error.name === "AbortError";
14
14
  }
15
15
  function normalizeAsyncDataError(error, fallbackMessage) {
16
- return error ?? new Error(fallbackMessage);
16
+ if (error instanceof Error) return error;
17
+ return new Error(error == null ? fallbackMessage : String(error));
17
18
  }
18
19
  //#endregion
19
20
  export { createReadableSource, isAbortError, normalizeAsyncDataError, notifySource };
20
-
21
- //# sourceMappingURL=shared.js.map
@@ -157,5 +157,4 @@ type QueryState<T> = {
157
157
  };
158
158
  type QueryDefinitionField = 'fetch' | 'isConsistent' | 'reconcile';
159
159
  //#endregion
160
- export { DataRuntime, DataRuntimeOptions, InvalidateOnIntervalOptions, InvalidateOptions, Mutation, MutationOptions, Query, QueryConsistency, QueryKeyPart, QueryOptions, QueryScope, QueryStaleReason, QueryState };
161
- //# sourceMappingURL=types.d.ts.map
160
+ export { DataRuntime, DataRuntimeOptions, InvalidateOnIntervalOptions, InvalidateOptions, Mutation, MutationOptions, Query, QueryConsistency, QueryKeyPart, QueryOptions, QueryScope, QueryStaleReason, QueryState };
@@ -49,5 +49,4 @@ declare function IconBase({
49
49
  ...rest
50
50
  }: IconProps): JSXElement;
51
51
  //#endregion
52
- export { IconBase, getIconContractProps, isIconSizeToken, joinIconStyle, normalizeIconSizeValue, resolveIconSizeVariable, resolveIconStrokeWidthVariable, serializeIconStyle };
53
- //# sourceMappingURL=icon.d.ts.map
52
+ export { IconBase, getIconContractProps, isIconSizeToken, joinIconStyle, normalizeIconSizeValue, resolveIconSizeVariable, resolveIconStrokeWidthVariable, serializeIconStyle };
@@ -84,5 +84,3 @@ function IconBase({ size = 20, strokeWidth = 2, color = "currentColor", title, c
84
84
  }
85
85
  //#endregion
86
86
  export { IconBase, getIconContractProps, isIconSizeToken, joinIconStyle, normalizeIconSizeValue, resolveIconSizeVariable, resolveIconStrokeWidthVariable, serializeIconStyle };
87
-
88
- //# sourceMappingURL=icon.js.map
@@ -18,5 +18,4 @@ type IconProps = Omit<Props, 'children' | 'class' | 'color' | 'height' | 'ref' |
18
18
  ref?: Ref<SVGSVGElement>;
19
19
  };
20
20
  //#endregion
21
- export { IconOwnProps, IconProps, IconSizeToken, IconStyleObject };
22
- //# sourceMappingURL=icon.types.d.ts.map
21
+ export { IconOwnProps, IconProps, IconSizeToken, IconStyleObject };
@@ -68,5 +68,4 @@ declare function dismissable({
68
68
  onPointerDownCapture: (e: PointerLikeEvent) => void;
69
69
  };
70
70
  //#endregion
71
- export { DismissableOptions, dismissable };
72
- //# sourceMappingURL=dismissable.d.ts.map
71
+ export { DismissableOptions, dismissable };
@@ -22,5 +22,3 @@ function dismissable({ node, disabled, onDismiss }) {
22
22
  }
23
23
  //#endregion
24
24
  export { dismissable };
25
-
26
- //# sourceMappingURL=dismissable.js.map
@@ -18,5 +18,4 @@ declare function focusable({
18
18
  tabIndex
19
19
  }: FocusableOptions): FocusableResult;
20
20
  //#endregion
21
- export { FocusableOptions, FocusableResult, focusable };
22
- //# sourceMappingURL=focusable.d.ts.map
21
+ export { FocusableOptions, FocusableResult, focusable };
@@ -14,5 +14,3 @@ function focusable({ disabled, tabIndex }) {
14
14
  }
15
15
  //#endregion
16
16
  export { focusable };
17
-
18
- //# sourceMappingURL=focusable.js.map
@@ -22,5 +22,4 @@ declare function hoverable({
22
22
  onLeave
23
23
  }: HoverableOptions): HoverableResult;
24
24
  //#endregion
25
- export { HoverableOptions, HoverableResult, hoverable };
26
- //# sourceMappingURL=hoverable.d.ts.map
25
+ export { HoverableOptions, HoverableResult, hoverable };
@@ -11,5 +11,3 @@ function hoverable({ disabled, onEnter, onLeave }) {
11
11
  }
12
12
  //#endregion
13
13
  export { hoverable };
14
-
15
- //# sourceMappingURL=hoverable.js.map
@@ -46,5 +46,4 @@ declare function applyInteractionPolicy({
46
46
  */
47
47
  declare function mergeInteractionProps(childProps: Record<string, unknown>, policyProps: Record<string, unknown>, userProps?: Record<string, unknown>): Record<string, unknown>;
48
48
  //#endregion
49
- export { InteractionPolicyInput, applyInteractionPolicy, mergeInteractionProps };
50
- //# sourceMappingURL=interaction-policy.d.ts.map
49
+ export { InteractionPolicyInput, applyInteractionPolicy, mergeInteractionProps };
@@ -118,5 +118,3 @@ function mergeInteractionProps(childProps, policyProps, userProps) {
118
118
  }
119
119
  //#endregion
120
120
  export { applyInteractionPolicy, mergeInteractionProps };
121
-
122
- //# sourceMappingURL=interaction-policy.js.map
@@ -57,5 +57,4 @@ declare function pressable({
57
57
  isNativeButton
58
58
  }: PressableOptions): PressableResult;
59
59
  //#endregion
60
- export { PressableOptions, PressableResult, pressable };
61
- //# sourceMappingURL=pressable.d.ts.map
60
+ export { PressableOptions, PressableResult, pressable };
@@ -47,5 +47,3 @@ function pressable({ disabled, onPress, isNativeButton = false }) {
47
47
  }
48
48
  //#endregion
49
49
  export { pressable };
50
-
51
- //# sourceMappingURL=pressable.js.map
@@ -48,5 +48,4 @@ interface RovingFocusResult {
48
48
  }
49
49
  declare function rovingFocus(options: RovingFocusOptions): RovingFocusResult;
50
50
  //#endregion
51
- export { Orientation, RovingFocusOptions, RovingFocusResult, rovingFocus };
52
- //# sourceMappingURL=roving-focus.d.ts.map
51
+ export { Orientation, RovingFocusOptions, RovingFocusResult, rovingFocus };
@@ -67,5 +67,3 @@ function rovingFocus(options) {
67
67
  */
68
68
  //#endregion
69
69
  export { rovingFocus };
70
-
71
- //# sourceMappingURL=roving-focus.js.map
@@ -29,5 +29,4 @@ declare function controllableState<T>(options: {
29
29
  onChange?: (next: T) => void;
30
30
  }): ControllableState<T>;
31
31
  //#endregion
32
- export { ControllableState, controllableState, isControlled, makeControllable, resolveControllable };
33
- //# sourceMappingURL=controllable.d.ts.map
32
+ export { ControllableState, controllableState, isControlled, makeControllable, resolveControllable };
@@ -78,5 +78,3 @@ function controllableState(options) {
78
78
  }
79
79
  //#endregion
80
80
  export { controllableState, isControlled, makeControllable, resolveControllable };
81
-
82
- //# sourceMappingURL=controllable.js.map
@@ -48,5 +48,4 @@ interface Collection<TNode, TMetadata = unknown> {
48
48
  }
49
49
  declare function createCollection<TNode, TMetadata = unknown>(): Collection<TNode, TMetadata>;
50
50
  //#endregion
51
- export { Collection, CollectionItem, createCollection };
52
- //# sourceMappingURL=collection.d.ts.map
51
+ export { Collection, CollectionItem, createCollection };
@@ -47,5 +47,3 @@ function createCollection() {
47
47
  */
48
48
  //#endregion
49
49
  export { createCollection };
50
-
51
- //# sourceMappingURL=collection.js.map
@@ -77,5 +77,4 @@ interface LayerManager {
77
77
  }
78
78
  declare function createLayer(): LayerManager;
79
79
  //#endregion
80
- export { Layer, LayerManager, LayerOptions, createLayer };
81
- //# sourceMappingURL=layer.d.ts.map
80
+ export { Layer, LayerManager, LayerOptions, createLayer };
@@ -77,5 +77,3 @@ function createLayer() {
77
77
  */
78
78
  //#endregion
79
79
  export { createLayer };
80
-
81
- //# sourceMappingURL=layer.js.map
@@ -29,5 +29,4 @@ type LayoutComponent<P = object> = (props: P & {
29
29
  }) => unknown;
30
30
  declare function layout<P = object>(Layout: LayoutComponent<P>): (children?: RenderableChild, props?: P) => unknown;
31
31
  //#endregion
32
- export { LayoutComponent, layout };
33
- //# sourceMappingURL=layout.d.ts.map
32
+ export { LayoutComponent, layout };
@@ -9,5 +9,3 @@ function layout(Layout) {
9
9
  }
10
10
  //#endregion
11
11
  export { layout };
12
-
13
- //# sourceMappingURL=layout.js.map
@@ -33,5 +33,4 @@ declare function Presence({
33
33
  children
34
34
  }: PresenceProps): JSXElement | null;
35
35
  //#endregion
36
- export { Presence, PresenceProps };
37
- //# sourceMappingURL=presence.d.ts.map
36
+ export { Presence, PresenceProps };
@@ -35,5 +35,3 @@ function Presence({ present, children }) {
35
35
  }
36
36
  //#endregion
37
37
  export { Presence };
38
-
39
- //# sourceMappingURL=presence.js.map
@@ -31,5 +31,4 @@ type SlotProps = {
31
31
  */
32
32
  declare function Slot(props: SlotProps): JSXElement | null;
33
33
  //#endregion
34
- export { Slot, SlotProps };
35
- //# sourceMappingURL=slot.d.ts.map
34
+ export { Slot, SlotProps };
@@ -37,5 +37,3 @@ function Slot(props) {
37
37
  }
38
38
  //#endregion
39
39
  export { Slot };
40
-
41
- //# sourceMappingURL=slot.js.map
@@ -12,5 +12,4 @@ declare function ariaSelected(selected?: boolean): {
12
12
  'aria-selected'?: 'true' | 'false';
13
13
  };
14
14
  //#endregion
15
- export { ariaDisabled, ariaExpanded, ariaSelected };
16
- //# sourceMappingURL=aria.d.ts.map
15
+ export { ariaDisabled, ariaExpanded, ariaSelected };
@@ -13,5 +13,3 @@ function ariaSelected(selected) {
13
13
  }
14
14
  //#endregion
15
15
  export { ariaDisabled, ariaExpanded, ariaSelected };
16
-
17
- //# sourceMappingURL=aria.js.map
@@ -33,5 +33,4 @@ interface ComposeHandlersOptions {
33
33
  }
34
34
  declare function composeHandlers<A extends readonly unknown[]>(first?: (...args: A) => void, second?: (...args: A) => void, options?: ComposeHandlersOptions): (...args: A) => void;
35
35
  //#endregion
36
- export { ComposeHandlersOptions, composeHandlers };
37
- //# sourceMappingURL=compose-handlers.d.ts.map
36
+ export { ComposeHandlersOptions, composeHandlers };
@@ -16,5 +16,3 @@ function composeHandlers(first, second, options) {
16
16
  function noop() {}
17
17
  //#endregion
18
18
  export { composeHandlers };
19
-
20
- //# sourceMappingURL=compose-handlers.js.map
@@ -23,5 +23,4 @@ type Ref<T> = ((value: T | null) => void) | {
23
23
  declare function setRef<T>(ref: Ref<T>, value: T | null): void;
24
24
  declare function composeRefs<T>(...refs: Array<Ref<T>>): (value: T | null) => void;
25
25
  //#endregion
26
- export { Ref, composeRefs, setRef };
27
- //# sourceMappingURL=compose-ref.d.ts.map
26
+ export { Ref, composeRefs, setRef };
@@ -14,5 +14,3 @@ function composeRefs(...refs) {
14
14
  }
15
15
  //#endregion
16
16
  export { composeRefs, setRef };
17
-
18
- //# sourceMappingURL=compose-ref.js.map
@@ -16,5 +16,4 @@ interface FocusLikeEvent extends DefaultPreventable, PropagationStoppable {
16
16
  relatedTarget?: unknown;
17
17
  }
18
18
  //#endregion
19
- export { DefaultPreventable, FocusLikeEvent, KeyboardLikeEvent, PointerLikeEvent, PropagationStoppable };
20
- //# sourceMappingURL=event-types.d.ts.map
19
+ export { DefaultPreventable, FocusLikeEvent, KeyboardLikeEvent, PointerLikeEvent, PropagationStoppable };
@@ -1,5 +1,4 @@
1
1
  //#region src/foundations/utilities/merge-props.d.ts
2
2
  declare function mergeProps<TBase extends object, TInjected extends object>(base: TBase, injected: TInjected): TInjected & TBase;
3
3
  //#endregion
4
- export { mergeProps };
5
- //# sourceMappingURL=merge-props.d.ts.map
4
+ export { mergeProps };
@@ -45,5 +45,3 @@ function mergeProps(base, injected) {
45
45
  }
46
46
  //#endregion
47
47
  export { mergeProps };
48
-
49
- //# sourceMappingURL=merge-props.js.map