@askrjs/askr 0.0.51 → 0.0.53

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 (651) hide show
  1. package/README.md +5 -1
  2. package/dist/{runtime/scheduler.js → access-Bg4RJNC8.js} +190 -20
  3. package/dist/actions/index.d.ts +2 -0
  4. package/dist/actions/index.js +103 -0
  5. package/dist/{common/attr-names.js → attr-names-CjhzmHOn.js} +1 -3
  6. package/dist/benchmark.d.ts +7 -4
  7. package/dist/benchmark.js +63 -13
  8. package/dist/boot/index.d.ts +62 -4
  9. package/dist/boot/index.js +1 -194
  10. package/dist/boot-j2KoN6ss.js +647 -0
  11. package/dist/cleanup-COv77su2.js +487 -0
  12. package/dist/component-internal-B3z7GXlD.js +614 -0
  13. package/dist/component-lifecycle-CO4hXlP4.js +357 -0
  14. package/dist/{runtime/component-scope.js → component-scope-CC3cojX9.js} +35 -9
  15. package/dist/component-scope-CvPba6O6.d.ts +12 -0
  16. package/dist/components/index.d.ts +17 -2
  17. package/dist/components/index.js +39 -1
  18. package/dist/compose-ref-Cc_YkUpM.js +92 -0
  19. package/dist/{foundations/utilities/compose-ref.d.ts → compose-ref-Cizq72-x.d.ts} +1 -2
  20. package/dist/control/index.d.ts +1 -3
  21. package/dist/control/index.js +1 -3
  22. package/dist/control-BQvNVfAd.d.ts +436 -0
  23. package/dist/control-BYyLTFyw.js +165 -0
  24. package/dist/control-Bf4Wkdvv.d.ts +9 -0
  25. package/dist/{common/control.js → control-DhFRTIoE.js} +1 -3
  26. package/dist/data/index.d.ts +2 -6
  27. package/dist/data/index.js +4 -5
  28. package/dist/data-DnxnDxD-.js +559 -0
  29. package/dist/{data/data-runtime.js → data-runtime-SJ1BSUvk.js} +35 -36
  30. package/dist/deferred-lKE8uR0z.js +386 -0
  31. package/dist/effect-BwnIvLah.js +260 -0
  32. package/dist/fastlane-Dw8SOBr9.js +343 -0
  33. package/dist/for-internal-BKf_Tnv1.js +1563 -0
  34. package/dist/foundations/icon/index.d.ts +68 -2
  35. package/dist/foundations/icon/index.js +85 -1
  36. package/dist/foundations/index.d.ts +2 -5
  37. package/dist/foundations/index.js +2 -5
  38. package/dist/foundations/interactions/index.d.ts +264 -6
  39. package/dist/foundations/interactions/index.js +1 -6
  40. package/dist/foundations/state/index.d.ts +32 -1
  41. package/dist/foundations/state/index.js +78 -1
  42. package/dist/foundations/structures/index.d.ts +2 -7
  43. package/dist/foundations/structures/index.js +2 -7
  44. package/dist/foundations/utilities/index.d.ts +2 -6
  45. package/dist/foundations/utilities/index.js +2 -5
  46. package/dist/fx/index.d.ts +190 -3
  47. package/dist/fx/index.js +454 -4
  48. package/dist/index-31Uoz_NS.d.ts +239 -0
  49. package/dist/index-Bki2rqcr.d.ts +233 -0
  50. package/dist/index-BnU0NPwM.d.ts +101 -0
  51. package/dist/index-D73jgYx1.d.ts +48 -0
  52. package/dist/{runtime/runtime.d.ts → index-R2JJIbM-.d.ts} +31 -9
  53. package/dist/index-SJXJkssx.d.ts +44 -0
  54. package/dist/index.d.ts +8 -13
  55. package/dist/index.js +150 -17
  56. package/dist/interactions-w7gQN4ha.js +280 -0
  57. package/dist/{data/invalidation-listeners.js → invalidation-listeners-Des3AHYs.js} +1 -3
  58. package/dist/{common/props.d.ts → jsx-CP0gmYwJ.d.ts} +17 -6
  59. package/dist/{common/jsx.js → jsx-CUpRxrLH.js} +1 -3
  60. package/dist/jsx-dev-runtime.d.ts +17 -5
  61. package/dist/jsx-dev-runtime.js +3 -10
  62. package/dist/jsx-runtime-92bV2hSa.d.ts +34 -0
  63. package/dist/jsx-runtime-BVVgDSdq.d.ts +1 -0
  64. package/dist/jsx-runtime.d.ts +3 -22
  65. package/dist/jsx-runtime.js +17 -20
  66. package/dist/{runtime/lifecycle-operations.js → lifecycle-operations-D9va7GOU.js} +9 -11
  67. package/dist/navigate-BVDCzOuB.d.ts +34 -0
  68. package/dist/navigate-CmPLSXyw.js +1449 -0
  69. package/dist/{runtime/portal.js → portal-CyU3Ucf2.js} +124 -35
  70. package/dist/query-registry-CQIT4mXr.js +73 -0
  71. package/dist/{common/render-context.js → render-context-Clw3rFiO.js} +14 -8
  72. package/dist/renderer-DzPjeLby.js +6197 -0
  73. package/dist/resource-operation-CEzfpnDk.js +276 -0
  74. package/dist/resources/index.d.ts +42 -3
  75. package/dist/resources/index.js +3 -4
  76. package/dist/{common/route-activity.js → route-activity-CNJfpwx-.js} +1 -3
  77. package/dist/route-matching-vJpvLVbX.js +515 -0
  78. package/dist/router/index.d.ts +166 -14
  79. package/dist/router/index.js +150 -12
  80. package/dist/{common/router.d.ts → router-CeYvjj5_.d.ts} +72 -29
  81. package/dist/{common/router-internal.js → router-internal-BC0w1_xk.js} +1 -3
  82. package/dist/{runtime/scheduler.d.ts → scheduler-CmLO4Dfm.d.ts} +1 -4
  83. package/dist/{runtime/selector.js → selector-DafVYzV4.js} +35 -20
  84. package/dist/{runtime/snapshot-source.js → snapshot-source-BB42xgwb.js} +1 -3
  85. package/dist/ssg/index.d.ts +252 -4
  86. package/dist/ssg/index.js +857 -1
  87. package/dist/ssr/index.d.ts +225 -8
  88. package/dist/ssr/index.js +3 -6
  89. package/dist/{common/ssr.js → ssr-CbQO5xd3.js} +1 -3
  90. package/dist/ssr-D3t80Rc0.js +1413 -0
  91. package/dist/{runtime/state.js → state-DPl8lffD.js} +4 -8
  92. package/dist/structures-DUB3HchX.js +221 -0
  93. package/dist/testing/index.d.ts +4 -4
  94. package/dist/testing/index.js +2 -7
  95. package/dist/{jsx/types.d.ts → types-DnQVG4ZY.d.ts} +2 -6
  96. package/dist/{foundations/utilities/use-id.js → utilities-C_CGX4Dz.js} +1 -3
  97. package/dist/{ssr/verify-hydration.js → verify-hydration-io9ahUeq.js} +2 -4
  98. package/dist/{common/vnode.js → vnode-CGMJYPMB.js} +2 -4
  99. package/package.json +63 -45
  100. package/dist/bench/components/benchmark-row.d.ts +0 -20
  101. package/dist/bench/components/benchmark-row.d.ts.map +0 -1
  102. package/dist/bench/components/benchmark-row.js +0 -42
  103. package/dist/bench/components/benchmark-row.js.map +0 -1
  104. package/dist/bench/components/benchmark-table.js +0 -25
  105. package/dist/bench/components/benchmark-table.js.map +0 -1
  106. package/dist/benchmark.d.ts.map +0 -1
  107. package/dist/benchmark.js.map +0 -1
  108. package/dist/bin/askr-ssg.d.ts +0 -28
  109. package/dist/bin/askr-ssg.d.ts.map +0 -1
  110. package/dist/bin/askr-ssg.js +0 -171
  111. package/dist/bin/askr-ssg.js.map +0 -1
  112. package/dist/boot/hydration.js +0 -140
  113. package/dist/boot/hydration.js.map +0 -1
  114. package/dist/boot/index.d.ts.map +0 -1
  115. package/dist/boot/index.js.map +0 -1
  116. package/dist/boot/root-lifecycle.d.ts +0 -15
  117. package/dist/boot/root-lifecycle.d.ts.map +0 -1
  118. package/dist/boot/root-lifecycle.js +0 -205
  119. package/dist/boot/root-lifecycle.js.map +0 -1
  120. package/dist/boot/route-startup.js +0 -45
  121. package/dist/boot/route-startup.js.map +0 -1
  122. package/dist/boot/types.d.ts +0 -62
  123. package/dist/boot/types.d.ts.map +0 -1
  124. package/dist/common/attr-names.js.map +0 -1
  125. package/dist/common/component.d.ts +0 -19
  126. package/dist/common/component.d.ts.map +0 -1
  127. package/dist/common/control.d.ts +0 -13
  128. package/dist/common/control.d.ts.map +0 -1
  129. package/dist/common/control.js.map +0 -1
  130. package/dist/common/env.js +0 -47
  131. package/dist/common/env.js.map +0 -1
  132. package/dist/common/error-boundary.d.ts +0 -16
  133. package/dist/common/error-boundary.d.ts.map +0 -1
  134. package/dist/common/invariant.js +0 -17
  135. package/dist/common/invariant.js.map +0 -1
  136. package/dist/common/jsx.d.ts +0 -23
  137. package/dist/common/jsx.d.ts.map +0 -1
  138. package/dist/common/jsx.js.map +0 -1
  139. package/dist/common/logger.js +0 -36
  140. package/dist/common/logger.js.map +0 -1
  141. package/dist/common/promise.js +0 -8
  142. package/dist/common/promise.js.map +0 -1
  143. package/dist/common/props.d.ts.map +0 -1
  144. package/dist/common/render-context.js.map +0 -1
  145. package/dist/common/route-activity.js.map +0 -1
  146. package/dist/common/router-internal.js.map +0 -1
  147. package/dist/common/router.d.ts.map +0 -1
  148. package/dist/common/ssr-errors.d.ts +0 -11
  149. package/dist/common/ssr-errors.d.ts.map +0 -1
  150. package/dist/common/ssr-errors.js +0 -16
  151. package/dist/common/ssr-errors.js.map +0 -1
  152. package/dist/common/ssr.d.ts +0 -42
  153. package/dist/common/ssr.d.ts.map +0 -1
  154. package/dist/common/ssr.js.map +0 -1
  155. package/dist/common/vnode.d.ts +0 -22
  156. package/dist/common/vnode.d.ts.map +0 -1
  157. package/dist/common/vnode.js.map +0 -1
  158. package/dist/components/error-boundary.d.ts +0 -15
  159. package/dist/components/error-boundary.d.ts.map +0 -1
  160. package/dist/components/error-boundary.js +0 -43
  161. package/dist/components/error-boundary.js.map +0 -1
  162. package/dist/components/link.d.ts +0 -68
  163. package/dist/components/link.d.ts.map +0 -1
  164. package/dist/components/link.js +0 -76
  165. package/dist/components/link.js.map +0 -1
  166. package/dist/control/case.d.ts +0 -19
  167. package/dist/control/case.d.ts.map +0 -1
  168. package/dist/control/case.js +0 -70
  169. package/dist/control/case.js.map +0 -1
  170. package/dist/control/for.d.ts +0 -24
  171. package/dist/control/for.d.ts.map +0 -1
  172. package/dist/control/for.js +0 -63
  173. package/dist/control/for.js.map +0 -1
  174. package/dist/control/shared.d.ts +0 -9
  175. package/dist/control/shared.d.ts.map +0 -1
  176. package/dist/control/shared.js +0 -20
  177. package/dist/control/shared.js.map +0 -1
  178. package/dist/control/show.d.ts +0 -15
  179. package/dist/control/show.d.ts.map +0 -1
  180. package/dist/control/show.js +0 -34
  181. package/dist/control/show.js.map +0 -1
  182. package/dist/data/data-runtime.d.ts +0 -28
  183. package/dist/data/data-runtime.d.ts.map +0 -1
  184. package/dist/data/data-runtime.js.map +0 -1
  185. package/dist/data/invalidation-listeners.js.map +0 -1
  186. package/dist/data/invalidation.d.ts +0 -9
  187. package/dist/data/invalidation.d.ts.map +0 -1
  188. package/dist/data/invalidation.js +0 -27
  189. package/dist/data/invalidation.js.map +0 -1
  190. package/dist/data/mutation-cell.d.ts +0 -28
  191. package/dist/data/mutation-cell.d.ts.map +0 -1
  192. package/dist/data/mutation-cell.js +0 -132
  193. package/dist/data/mutation-cell.js.map +0 -1
  194. package/dist/data/query-cell.d.ts +0 -46
  195. package/dist/data/query-cell.d.ts.map +0 -1
  196. package/dist/data/query-cell.js +0 -290
  197. package/dist/data/query-cell.js.map +0 -1
  198. package/dist/data/query-key.js +0 -42
  199. package/dist/data/query-key.js.map +0 -1
  200. package/dist/data/shared.js +0 -21
  201. package/dist/data/shared.js.map +0 -1
  202. package/dist/data/testing.js +0 -2
  203. package/dist/data/types.d.ts +0 -161
  204. package/dist/data/types.d.ts.map +0 -1
  205. package/dist/foundations/icon/icon.d.ts +0 -53
  206. package/dist/foundations/icon/icon.d.ts.map +0 -1
  207. package/dist/foundations/icon/icon.js +0 -88
  208. package/dist/foundations/icon/icon.js.map +0 -1
  209. package/dist/foundations/icon/icon.types.d.ts +0 -22
  210. package/dist/foundations/icon/icon.types.d.ts.map +0 -1
  211. package/dist/foundations/interactions/dismissable.d.ts +0 -72
  212. package/dist/foundations/interactions/dismissable.d.ts.map +0 -1
  213. package/dist/foundations/interactions/dismissable.js +0 -26
  214. package/dist/foundations/interactions/dismissable.js.map +0 -1
  215. package/dist/foundations/interactions/focusable.d.ts +0 -22
  216. package/dist/foundations/interactions/focusable.d.ts.map +0 -1
  217. package/dist/foundations/interactions/focusable.js +0 -18
  218. package/dist/foundations/interactions/focusable.js.map +0 -1
  219. package/dist/foundations/interactions/hoverable.d.ts +0 -26
  220. package/dist/foundations/interactions/hoverable.d.ts.map +0 -1
  221. package/dist/foundations/interactions/hoverable.js +0 -15
  222. package/dist/foundations/interactions/hoverable.js.map +0 -1
  223. package/dist/foundations/interactions/interaction-policy.d.ts +0 -50
  224. package/dist/foundations/interactions/interaction-policy.d.ts.map +0 -1
  225. package/dist/foundations/interactions/interaction-policy.js +0 -122
  226. package/dist/foundations/interactions/interaction-policy.js.map +0 -1
  227. package/dist/foundations/interactions/pressable.d.ts +0 -61
  228. package/dist/foundations/interactions/pressable.d.ts.map +0 -1
  229. package/dist/foundations/interactions/pressable.js +0 -51
  230. package/dist/foundations/interactions/pressable.js.map +0 -1
  231. package/dist/foundations/interactions/roving-focus.d.ts +0 -52
  232. package/dist/foundations/interactions/roving-focus.d.ts.map +0 -1
  233. package/dist/foundations/interactions/roving-focus.js +0 -71
  234. package/dist/foundations/interactions/roving-focus.js.map +0 -1
  235. package/dist/foundations/state/controllable.d.ts +0 -33
  236. package/dist/foundations/state/controllable.d.ts.map +0 -1
  237. package/dist/foundations/state/controllable.js +0 -82
  238. package/dist/foundations/state/controllable.js.map +0 -1
  239. package/dist/foundations/structures/collection.d.ts +0 -52
  240. package/dist/foundations/structures/collection.d.ts.map +0 -1
  241. package/dist/foundations/structures/collection.js +0 -51
  242. package/dist/foundations/structures/collection.js.map +0 -1
  243. package/dist/foundations/structures/layer.d.ts +0 -81
  244. package/dist/foundations/structures/layer.d.ts.map +0 -1
  245. package/dist/foundations/structures/layer.js +0 -81
  246. package/dist/foundations/structures/layer.js.map +0 -1
  247. package/dist/foundations/structures/layout.d.ts +0 -33
  248. package/dist/foundations/structures/layout.d.ts.map +0 -1
  249. package/dist/foundations/structures/layout.js +0 -13
  250. package/dist/foundations/structures/layout.js.map +0 -1
  251. package/dist/foundations/structures/portal.d.ts +0 -2
  252. package/dist/foundations/structures/portal.js +0 -3
  253. package/dist/foundations/structures/presence.d.ts +0 -37
  254. package/dist/foundations/structures/presence.d.ts.map +0 -1
  255. package/dist/foundations/structures/presence.js +0 -39
  256. package/dist/foundations/structures/presence.js.map +0 -1
  257. package/dist/foundations/structures/slot.d.ts +0 -35
  258. package/dist/foundations/structures/slot.d.ts.map +0 -1
  259. package/dist/foundations/structures/slot.js +0 -41
  260. package/dist/foundations/structures/slot.js.map +0 -1
  261. package/dist/foundations/utilities/aria.d.ts +0 -16
  262. package/dist/foundations/utilities/aria.d.ts.map +0 -1
  263. package/dist/foundations/utilities/aria.js +0 -17
  264. package/dist/foundations/utilities/aria.js.map +0 -1
  265. package/dist/foundations/utilities/compose-handlers.d.ts +0 -37
  266. package/dist/foundations/utilities/compose-handlers.d.ts.map +0 -1
  267. package/dist/foundations/utilities/compose-handlers.js +0 -20
  268. package/dist/foundations/utilities/compose-handlers.js.map +0 -1
  269. package/dist/foundations/utilities/compose-ref.d.ts.map +0 -1
  270. package/dist/foundations/utilities/compose-ref.js +0 -18
  271. package/dist/foundations/utilities/compose-ref.js.map +0 -1
  272. package/dist/foundations/utilities/event-types.d.ts +0 -20
  273. package/dist/foundations/utilities/event-types.d.ts.map +0 -1
  274. package/dist/foundations/utilities/merge-props.d.ts +0 -5
  275. package/dist/foundations/utilities/merge-props.d.ts.map +0 -1
  276. package/dist/foundations/utilities/merge-props.js +0 -49
  277. package/dist/foundations/utilities/merge-props.js.map +0 -1
  278. package/dist/foundations/utilities/use-id.d.ts +0 -32
  279. package/dist/foundations/utilities/use-id.d.ts.map +0 -1
  280. package/dist/foundations/utilities/use-id.js.map +0 -1
  281. package/dist/fx/fx.d.ts +0 -33
  282. package/dist/fx/fx.d.ts.map +0 -1
  283. package/dist/fx/fx.js +0 -213
  284. package/dist/fx/fx.js.map +0 -1
  285. package/dist/fx/noop.js +0 -9
  286. package/dist/fx/noop.js.map +0 -1
  287. package/dist/fx/timing.d.ts +0 -159
  288. package/dist/fx/timing.d.ts.map +0 -1
  289. package/dist/fx/timing.js +0 -243
  290. package/dist/fx/timing.js.map +0 -1
  291. package/dist/index.js.map +0 -1
  292. package/dist/jsx/index.d.ts +0 -2
  293. package/dist/jsx/index.js +0 -4
  294. package/dist/jsx/types.d.ts.map +0 -1
  295. package/dist/jsx/types.js +0 -2
  296. package/dist/jsx/utils.d.ts +0 -5
  297. package/dist/jsx/utils.d.ts.map +0 -1
  298. package/dist/jsx/utils.js +0 -19
  299. package/dist/jsx/utils.js.map +0 -1
  300. package/dist/jsx-dev-runtime.d.ts.map +0 -1
  301. package/dist/jsx-dev-runtime.js.map +0 -1
  302. package/dist/jsx-runtime.d.ts.map +0 -1
  303. package/dist/jsx-runtime.js.map +0 -1
  304. package/dist/jsx-runtime2.d.ts +0 -3
  305. package/dist/jsx-runtime2.js +0 -4
  306. package/dist/renderer/attributes.js +0 -232
  307. package/dist/renderer/attributes.js.map +0 -1
  308. package/dist/renderer/boundaries.js +0 -266
  309. package/dist/renderer/boundaries.js.map +0 -1
  310. package/dist/renderer/child-shape.js +0 -85
  311. package/dist/renderer/child-shape.js.map +0 -1
  312. package/dist/renderer/children-fastpath.js +0 -149
  313. package/dist/renderer/children-fastpath.js.map +0 -1
  314. package/dist/renderer/children.js +0 -160
  315. package/dist/renderer/children.js.map +0 -1
  316. package/dist/renderer/cleanup.js +0 -210
  317. package/dist/renderer/cleanup.js.map +0 -1
  318. package/dist/renderer/component-host-cleanup.js +0 -68
  319. package/dist/renderer/component-host-cleanup.js.map +0 -1
  320. package/dist/renderer/component-host-instances.js +0 -65
  321. package/dist/renderer/component-host-instances.js.map +0 -1
  322. package/dist/renderer/component-host.js +0 -247
  323. package/dist/renderer/component-host.js.map +0 -1
  324. package/dist/renderer/dom-host.js +0 -13
  325. package/dist/renderer/dom-host.js.map +0 -1
  326. package/dist/renderer/dom-internal.js +0 -186
  327. package/dist/renderer/dom-internal.js.map +0 -1
  328. package/dist/renderer/dom.js +0 -10
  329. package/dist/renderer/element-children.js +0 -279
  330. package/dist/renderer/element-children.js.map +0 -1
  331. package/dist/renderer/env.js +0 -2
  332. package/dist/renderer/error-boundary-dom.js +0 -78
  333. package/dist/renderer/error-boundary-dom.js.map +0 -1
  334. package/dist/renderer/evaluate-dom-range.js +0 -85
  335. package/dist/renderer/evaluate-dom-range.js.map +0 -1
  336. package/dist/renderer/evaluate-reconcile.js +0 -282
  337. package/dist/renderer/evaluate-reconcile.js.map +0 -1
  338. package/dist/renderer/evaluate.js +0 -84
  339. package/dist/renderer/evaluate.js.map +0 -1
  340. package/dist/renderer/fastpath.js +0 -150
  341. package/dist/renderer/fastpath.js.map +0 -1
  342. package/dist/renderer/for-commit-dom-map.js +0 -83
  343. package/dist/renderer/for-commit-dom-map.js.map +0 -1
  344. package/dist/renderer/for-commit-removal.js +0 -36
  345. package/dist/renderer/for-commit-removal.js.map +0 -1
  346. package/dist/renderer/for-commit-reorder.js +0 -89
  347. package/dist/renderer/for-commit-reorder.js.map +0 -1
  348. package/dist/renderer/for-commit.js +0 -314
  349. package/dist/renderer/for-commit.js.map +0 -1
  350. package/dist/renderer/index.js +0 -38
  351. package/dist/renderer/index.js.map +0 -1
  352. package/dist/renderer/keyed-children.js +0 -32
  353. package/dist/renderer/keyed-children.js.map +0 -1
  354. package/dist/renderer/keyed.js +0 -167
  355. package/dist/renderer/keyed.js.map +0 -1
  356. package/dist/renderer/namespaces.js +0 -23
  357. package/dist/renderer/namespaces.js.map +0 -1
  358. package/dist/renderer/prop-bindings.js +0 -280
  359. package/dist/renderer/prop-bindings.js.map +0 -1
  360. package/dist/renderer/reactive-child-dom.js +0 -133
  361. package/dist/renderer/reactive-child-dom.js.map +0 -1
  362. package/dist/renderer/reactive-child-sources.js +0 -184
  363. package/dist/renderer/reactive-child-sources.js.map +0 -1
  364. package/dist/renderer/reactive-children.js +0 -294
  365. package/dist/renderer/reactive-children.js.map +0 -1
  366. package/dist/renderer/reconcile-commit.js +0 -38
  367. package/dist/renderer/reconcile-commit.js.map +0 -1
  368. package/dist/renderer/reconcile-fastpaths.js +0 -107
  369. package/dist/renderer/reconcile-fastpaths.js.map +0 -1
  370. package/dist/renderer/reconcile-resolution.js +0 -187
  371. package/dist/renderer/reconcile-resolution.js.map +0 -1
  372. package/dist/renderer/reconcile.js +0 -39
  373. package/dist/renderer/reconcile.js.map +0 -1
  374. package/dist/renderer/retained-element-rollback.js +0 -277
  375. package/dist/renderer/retained-element-rollback.js.map +0 -1
  376. package/dist/renderer/stable-patch.js +0 -81
  377. package/dist/renderer/stable-patch.js.map +0 -1
  378. package/dist/renderer/static-reuse.js +0 -96
  379. package/dist/renderer/static-reuse.js.map +0 -1
  380. package/dist/renderer/types.js +0 -2
  381. package/dist/renderer/utils.js +0 -256
  382. package/dist/renderer/utils.js.map +0 -1
  383. package/dist/router/access.js +0 -36
  384. package/dist/router/access.js.map +0 -1
  385. package/dist/router/activity.d.ts +0 -10
  386. package/dist/router/activity.d.ts.map +0 -1
  387. package/dist/router/activity.js +0 -87
  388. package/dist/router/activity.js.map +0 -1
  389. package/dist/router/authoring.d.ts +0 -22
  390. package/dist/router/authoring.d.ts.map +0 -1
  391. package/dist/router/authoring.js +0 -198
  392. package/dist/router/authoring.js.map +0 -1
  393. package/dist/router/internal-types.d.ts +0 -31
  394. package/dist/router/internal-types.d.ts.map +0 -1
  395. package/dist/router/lazy.d.ts +0 -19
  396. package/dist/router/lazy.d.ts.map +0 -1
  397. package/dist/router/lazy.js +0 -52
  398. package/dist/router/lazy.js.map +0 -1
  399. package/dist/router/manifest.d.ts +0 -10
  400. package/dist/router/manifest.d.ts.map +0 -1
  401. package/dist/router/manifest.js +0 -49
  402. package/dist/router/manifest.js.map +0 -1
  403. package/dist/router/match.js +0 -122
  404. package/dist/router/match.js.map +0 -1
  405. package/dist/router/navigate.d.ts +0 -11
  406. package/dist/router/navigate.d.ts.map +0 -1
  407. package/dist/router/navigate.js +0 -76
  408. package/dist/router/navigate.js.map +0 -1
  409. package/dist/router/navigation-registry.d.ts +0 -32
  410. package/dist/router/navigation-registry.d.ts.map +0 -1
  411. package/dist/router/navigation-registry.js +0 -105
  412. package/dist/router/navigation-registry.js.map +0 -1
  413. package/dist/router/navigation-scroll.d.ts +0 -14
  414. package/dist/router/navigation-scroll.d.ts.map +0 -1
  415. package/dist/router/navigation-scroll.js +0 -93
  416. package/dist/router/navigation-scroll.js.map +0 -1
  417. package/dist/router/navigation-targets.d.ts +0 -31
  418. package/dist/router/navigation-targets.d.ts.map +0 -1
  419. package/dist/router/navigation-targets.js +0 -255
  420. package/dist/router/navigation-targets.js.map +0 -1
  421. package/dist/router/policy.d.ts +0 -28
  422. package/dist/router/policy.d.ts.map +0 -1
  423. package/dist/router/policy.js +0 -132
  424. package/dist/router/policy.js.map +0 -1
  425. package/dist/router/rendering.d.ts +0 -10
  426. package/dist/router/rendering.d.ts.map +0 -1
  427. package/dist/router/rendering.js +0 -46
  428. package/dist/router/rendering.js.map +0 -1
  429. package/dist/router/resolution.d.ts +0 -4
  430. package/dist/router/resolution.d.ts.map +0 -1
  431. package/dist/router/resolution.js +0 -86
  432. package/dist/router/resolution.js.map +0 -1
  433. package/dist/router/route-context.js +0 -79
  434. package/dist/router/route-context.js.map +0 -1
  435. package/dist/router/route-matching.d.ts +0 -20
  436. package/dist/router/route-matching.d.ts.map +0 -1
  437. package/dist/router/route-matching.js +0 -175
  438. package/dist/router/route-matching.js.map +0 -1
  439. package/dist/router/route-query.d.ts +0 -17
  440. package/dist/router/route-query.d.ts.map +0 -1
  441. package/dist/router/route-query.js +0 -47
  442. package/dist/router/route-query.js.map +0 -1
  443. package/dist/router/route.d.ts +0 -8
  444. package/dist/router/route.js +0 -10
  445. package/dist/router/store.d.ts +0 -50
  446. package/dist/router/store.d.ts.map +0 -1
  447. package/dist/router/store.js +0 -171
  448. package/dist/router/store.js.map +0 -1
  449. package/dist/router/testing.js +0 -4
  450. package/dist/runtime/access.d.ts +0 -20
  451. package/dist/runtime/access.d.ts.map +0 -1
  452. package/dist/runtime/access.js +0 -45
  453. package/dist/runtime/access.js.map +0 -1
  454. package/dist/runtime/child-scope.d.ts +0 -22
  455. package/dist/runtime/child-scope.d.ts.map +0 -1
  456. package/dist/runtime/child-scope.js +0 -87
  457. package/dist/runtime/child-scope.js.map +0 -1
  458. package/dist/runtime/component-cleanup.d.ts +0 -16
  459. package/dist/runtime/component-cleanup.d.ts.map +0 -1
  460. package/dist/runtime/component-cleanup.js +0 -70
  461. package/dist/runtime/component-cleanup.js.map +0 -1
  462. package/dist/runtime/component-commit.js +0 -165
  463. package/dist/runtime/component-commit.js.map +0 -1
  464. package/dist/runtime/component-facade.d.ts +0 -5
  465. package/dist/runtime/component-facade.js +0 -4
  466. package/dist/runtime/component-internal.d.ts +0 -100
  467. package/dist/runtime/component-internal.d.ts.map +0 -1
  468. package/dist/runtime/component-internal.js +0 -219
  469. package/dist/runtime/component-internal.js.map +0 -1
  470. package/dist/runtime/component-lifecycle.d.ts +0 -49
  471. package/dist/runtime/component-lifecycle.d.ts.map +0 -1
  472. package/dist/runtime/component-lifecycle.js +0 -176
  473. package/dist/runtime/component-lifecycle.js.map +0 -1
  474. package/dist/runtime/component-scope.d.ts +0 -55
  475. package/dist/runtime/component-scope.d.ts.map +0 -1
  476. package/dist/runtime/component-scope.js.map +0 -1
  477. package/dist/runtime/component.d.ts +0 -5
  478. package/dist/runtime/component.js +0 -5
  479. package/dist/runtime/context.d.ts +0 -69
  480. package/dist/runtime/context.d.ts.map +0 -1
  481. package/dist/runtime/context.js +0 -210
  482. package/dist/runtime/context.js.map +0 -1
  483. package/dist/runtime/control.d.ts +0 -43
  484. package/dist/runtime/control.d.ts.map +0 -1
  485. package/dist/runtime/control.js +0 -126
  486. package/dist/runtime/control.js.map +0 -1
  487. package/dist/runtime/derive.d.ts +0 -17
  488. package/dist/runtime/derive.d.ts.map +0 -1
  489. package/dist/runtime/derive.js +0 -142
  490. package/dist/runtime/derive.js.map +0 -1
  491. package/dist/runtime/dev-namespace.d.ts +0 -31
  492. package/dist/runtime/dev-namespace.d.ts.map +0 -1
  493. package/dist/runtime/dev-namespace.js +0 -57
  494. package/dist/runtime/dev-namespace.js.map +0 -1
  495. package/dist/runtime/effect.d.ts +0 -32
  496. package/dist/runtime/effect.d.ts.map +0 -1
  497. package/dist/runtime/effect.js +0 -177
  498. package/dist/runtime/effect.js.map +0 -1
  499. package/dist/runtime/error-boundary.d.ts +0 -5
  500. package/dist/runtime/error-boundary.d.ts.map +0 -1
  501. package/dist/runtime/error-boundary.js +0 -31
  502. package/dist/runtime/error-boundary.js.map +0 -1
  503. package/dist/runtime/events.d.ts +0 -58
  504. package/dist/runtime/events.d.ts.map +0 -1
  505. package/dist/runtime/events.js +0 -204
  506. package/dist/runtime/events.js.map +0 -1
  507. package/dist/runtime/execution-model.d.ts +0 -7
  508. package/dist/runtime/execution-model.d.ts.map +0 -1
  509. package/dist/runtime/execution-model.js +0 -15
  510. package/dist/runtime/execution-model.js.map +0 -1
  511. package/dist/runtime/fastlane.d.ts +0 -34
  512. package/dist/runtime/fastlane.d.ts.map +0 -1
  513. package/dist/runtime/fastlane.js +0 -175
  514. package/dist/runtime/fastlane.js.map +0 -1
  515. package/dist/runtime/for-bench.d.ts +0 -41
  516. package/dist/runtime/for-bench.d.ts.map +0 -1
  517. package/dist/runtime/for-bench.js +0 -171
  518. package/dist/runtime/for-bench.js.map +0 -1
  519. package/dist/runtime/for-internal.d.ts +0 -43
  520. package/dist/runtime/for-internal.d.ts.map +0 -1
  521. package/dist/runtime/for-internal.js +0 -98
  522. package/dist/runtime/for-internal.js.map +0 -1
  523. package/dist/runtime/for-reconcile.d.ts +0 -8
  524. package/dist/runtime/for-reconcile.d.ts.map +0 -1
  525. package/dist/runtime/for-reconcile.js +0 -389
  526. package/dist/runtime/for-reconcile.js.map +0 -1
  527. package/dist/runtime/for-scopes.d.ts +0 -26
  528. package/dist/runtime/for-scopes.d.ts.map +0 -1
  529. package/dist/runtime/for-scopes.js +0 -160
  530. package/dist/runtime/for-scopes.js.map +0 -1
  531. package/dist/runtime/for-signals.d.ts +0 -30
  532. package/dist/runtime/for-signals.d.ts.map +0 -1
  533. package/dist/runtime/for-signals.js +0 -139
  534. package/dist/runtime/for-signals.js.map +0 -1
  535. package/dist/runtime/for-types.d.ts +0 -9
  536. package/dist/runtime/for-types.d.ts.map +0 -1
  537. package/dist/runtime/for.d.ts +0 -4
  538. package/dist/runtime/for.js +0 -5
  539. package/dist/runtime/index.d.ts +0 -24
  540. package/dist/runtime/index.js +0 -31
  541. package/dist/runtime/lifecycle-operations.d.ts +0 -31
  542. package/dist/runtime/lifecycle-operations.d.ts.map +0 -1
  543. package/dist/runtime/lifecycle-operations.js.map +0 -1
  544. package/dist/runtime/operations.d.ts +0 -3
  545. package/dist/runtime/operations.js +0 -3
  546. package/dist/runtime/perf-metrics.d.ts +0 -26
  547. package/dist/runtime/perf-metrics.d.ts.map +0 -1
  548. package/dist/runtime/perf-metrics.js +0 -70
  549. package/dist/runtime/perf-metrics.js.map +0 -1
  550. package/dist/runtime/portal.d.ts +0 -22
  551. package/dist/runtime/portal.d.ts.map +0 -1
  552. package/dist/runtime/portal.js.map +0 -1
  553. package/dist/runtime/readable.d.ts +0 -29
  554. package/dist/runtime/readable.d.ts.map +0 -1
  555. package/dist/runtime/readable.js +0 -159
  556. package/dist/runtime/readable.js.map +0 -1
  557. package/dist/runtime/resource-cell.js +0 -114
  558. package/dist/runtime/resource-cell.js.map +0 -1
  559. package/dist/runtime/resource-operation.d.ts +0 -13
  560. package/dist/runtime/resource-operation.d.ts.map +0 -1
  561. package/dist/runtime/resource-operation.js +0 -170
  562. package/dist/runtime/resource-operation.js.map +0 -1
  563. package/dist/runtime/runtime.d.ts.map +0 -1
  564. package/dist/runtime/runtime.js +0 -59
  565. package/dist/runtime/runtime.js.map +0 -1
  566. package/dist/runtime/scheduler.d.ts.map +0 -1
  567. package/dist/runtime/scheduler.js.map +0 -1
  568. package/dist/runtime/selector-store.js +0 -24
  569. package/dist/runtime/selector-store.js.map +0 -1
  570. package/dist/runtime/selector.d.ts +0 -11
  571. package/dist/runtime/selector.d.ts.map +0 -1
  572. package/dist/runtime/selector.js.map +0 -1
  573. package/dist/runtime/snapshot-source.d.ts +0 -10
  574. package/dist/runtime/snapshot-source.d.ts.map +0 -1
  575. package/dist/runtime/snapshot-source.js.map +0 -1
  576. package/dist/runtime/state.d.ts +0 -55
  577. package/dist/runtime/state.d.ts.map +0 -1
  578. package/dist/runtime/state.js.map +0 -1
  579. package/dist/ssg/batch-render.js +0 -103
  580. package/dist/ssg/batch-render.js.map +0 -1
  581. package/dist/ssg/create-static-gen.d.ts +0 -64
  582. package/dist/ssg/create-static-gen.d.ts.map +0 -1
  583. package/dist/ssg/create-static-gen.js +0 -199
  584. package/dist/ssg/create-static-gen.js.map +0 -1
  585. package/dist/ssg/generate-metadata.js +0 -94
  586. package/dist/ssg/generate-metadata.js.map +0 -1
  587. package/dist/ssg/generation-plan.js +0 -70
  588. package/dist/ssg/generation-plan.js.map +0 -1
  589. package/dist/ssg/incremental-manifest.js +0 -56
  590. package/dist/ssg/incremental-manifest.js.map +0 -1
  591. package/dist/ssg/resolve-ssg-data.js +0 -105
  592. package/dist/ssg/resolve-ssg-data.js.map +0 -1
  593. package/dist/ssg/route-utils.js +0 -24
  594. package/dist/ssg/route-utils.js.map +0 -1
  595. package/dist/ssg/static-routes.js +0 -102
  596. package/dist/ssg/static-routes.js.map +0 -1
  597. package/dist/ssg/types.d.ts +0 -189
  598. package/dist/ssg/types.d.ts.map +0 -1
  599. package/dist/ssg/write-static-files.js +0 -73
  600. package/dist/ssg/write-static-files.js.map +0 -1
  601. package/dist/ssr/attrs.js +0 -94
  602. package/dist/ssr/attrs.js.map +0 -1
  603. package/dist/ssr/boundaries.js +0 -113
  604. package/dist/ssr/boundaries.js.map +0 -1
  605. package/dist/ssr/component-runtime.js +0 -111
  606. package/dist/ssr/component-runtime.js.map +0 -1
  607. package/dist/ssr/context.d.ts +0 -50
  608. package/dist/ssr/context.d.ts.map +0 -1
  609. package/dist/ssr/context.js +0 -91
  610. package/dist/ssr/context.js.map +0 -1
  611. package/dist/ssr/errors.d.ts +0 -10
  612. package/dist/ssr/errors.d.ts.map +0 -1
  613. package/dist/ssr/errors.js +0 -14
  614. package/dist/ssr/errors.js.map +0 -1
  615. package/dist/ssr/escape.js +0 -193
  616. package/dist/ssr/escape.js.map +0 -1
  617. package/dist/ssr/hydration-data.js +0 -10
  618. package/dist/ssr/hydration-data.js.map +0 -1
  619. package/dist/ssr/hydration-verify.d.ts +0 -12
  620. package/dist/ssr/hydration-verify.d.ts.map +0 -1
  621. package/dist/ssr/hydration-verify.js +0 -144
  622. package/dist/ssr/hydration-verify.js.map +0 -1
  623. package/dist/ssr/index-internal.d.ts +0 -15
  624. package/dist/ssr/index-internal.d.ts.map +0 -1
  625. package/dist/ssr/index-internal.js +0 -19
  626. package/dist/ssr/index-internal.js.map +0 -1
  627. package/dist/ssr/render-keys.js +0 -16
  628. package/dist/ssr/render-keys.js.map +0 -1
  629. package/dist/ssr/render-resolved.d.ts +0 -20
  630. package/dist/ssr/render-resolved.d.ts.map +0 -1
  631. package/dist/ssr/render-resolved.js +0 -35
  632. package/dist/ssr/render-resolved.js.map +0 -1
  633. package/dist/ssr/render-sync.d.ts +0 -21
  634. package/dist/ssr/render-sync.d.ts.map +0 -1
  635. package/dist/ssr/render-sync.js +0 -275
  636. package/dist/ssr/render-sync.js.map +0 -1
  637. package/dist/ssr/route-policy-resolution.js +0 -78
  638. package/dist/ssr/route-policy-resolution.js.map +0 -1
  639. package/dist/ssr/route-render.d.ts +0 -77
  640. package/dist/ssr/route-render.d.ts.map +0 -1
  641. package/dist/ssr/route-render.js +0 -120
  642. package/dist/ssr/route-render.js.map +0 -1
  643. package/dist/ssr/sink.d.ts +0 -26
  644. package/dist/ssr/sink.d.ts.map +0 -1
  645. package/dist/ssr/sink.js +0 -86
  646. package/dist/ssr/sink.js.map +0 -1
  647. package/dist/ssr/types.d.ts +0 -23
  648. package/dist/ssr/types.d.ts.map +0 -1
  649. package/dist/ssr/verify-hydration.js.map +0 -1
  650. package/dist/testing/index.d.ts.map +0 -1
  651. package/dist/testing/index.js.map +0 -1
@@ -1,171 +0,0 @@
1
- import { getActiveRenderContext } from "../common/render-context.js";
2
- //#region src/router/store.ts
3
- const routes = [];
4
- const records = [];
5
- const namespaces = /* @__PURE__ */ new Set();
6
- const routesByDepth = /* @__PURE__ */ new Map();
7
- const registrationScopeStack = [];
8
- const registrationSessionStack = [];
9
- let registrationLocked = false;
10
- let defaultRouteAuthOptions;
11
- let activeClientRouteAuthOptions;
12
- function getDepth(path) {
13
- const normalized = path.endsWith("/") && path !== "/" ? path.slice(0, -1) : path;
14
- return normalized === "/" ? 0 : normalized.split("/").filter(Boolean).length;
15
- }
16
- function getRouteRecords() {
17
- return records;
18
- }
19
- function isRouteStoreRoutes(routeList) {
20
- return routeList === routes;
21
- }
22
- function insertRecordSorted(record) {
23
- let lo = 0;
24
- let hi = records.length;
25
- while (lo < hi) {
26
- const mid = lo + hi >>> 1;
27
- if (records[mid].rank >= record.rank) lo = mid + 1;
28
- else hi = mid;
29
- }
30
- records.splice(lo, 0, record);
31
- }
32
- function addRouteToStores(routeObj) {
33
- routes.push(routeObj);
34
- const depth = getDepth(routeObj.path);
35
- let depthRoutes = routesByDepth.get(depth);
36
- if (!depthRoutes) {
37
- depthRoutes = [];
38
- routesByDepth.set(depth, depthRoutes);
39
- }
40
- depthRoutes.push(routeObj);
41
- if (routeObj.namespace) namespaces.add(routeObj.namespace);
42
- }
43
- function getActiveRoutes() {
44
- return getActiveRenderContext()?.routes ?? routes;
45
- }
46
- function getActiveRouteAuthOptions(override) {
47
- if (override) return override;
48
- return getActiveRenderContext()?.routeAuth ?? activeClientRouteAuthOptions ?? defaultRouteAuthOptions;
49
- }
50
- function _setActiveRouteAuthOptions(auth) {
51
- activeClientRouteAuthOptions = auth;
52
- }
53
- function getDefaultRouteAuthOptions() {
54
- return defaultRouteAuthOptions;
55
- }
56
- function setDefaultRouteAuthOptions(auth) {
57
- defaultRouteAuthOptions = auth;
58
- }
59
- function getCurrentRegistrationSession() {
60
- return registrationSessionStack[registrationSessionStack.length - 1] ?? { authConfigured: !!defaultRouteAuthOptions?.resolve };
61
- }
62
- function getCurrentAccessScopeState() {
63
- return registrationScopeStack[registrationScopeStack.length - 1]?.state ?? {
64
- guestOnly: false,
65
- authenticated: false
66
- };
67
- }
68
- function getCurrentLayoutChain() {
69
- const layoutChain = [];
70
- for (const scope of registrationScopeStack) if (scope.layout) layoutChain.push({ component: scope.layout });
71
- return layoutChain;
72
- }
73
- function getCurrentPageChain() {
74
- const pageChain = [];
75
- for (const scope of registrationScopeStack) if (scope.page) pageChain.push({ component: scope.page });
76
- return pageChain;
77
- }
78
- function hasActivePageScope() {
79
- return registrationScopeStack.some((scope) => !!scope.page);
80
- }
81
- function getCurrentPageScope() {
82
- for (let index = registrationScopeStack.length - 1; index >= 0; index -= 1) {
83
- const scope = registrationScopeStack[index];
84
- if (scope.kind === "page") return scope;
85
- }
86
- return null;
87
- }
88
- function getCurrentScopeKind() {
89
- return registrationScopeStack[registrationScopeStack.length - 1]?.kind ?? null;
90
- }
91
- function getCurrentPathPrefix() {
92
- return registrationScopeStack[registrationScopeStack.length - 1]?.pathPrefix ?? "";
93
- }
94
- function getCurrentInheritedPolicies() {
95
- const policies = [];
96
- for (const scope of registrationScopeStack) if (scope.policies.length > 0) policies.push(...scope.policies);
97
- return policies;
98
- }
99
- function pushRegistrationScope(scope, fn) {
100
- registrationScopeStack.push(scope);
101
- try {
102
- fn();
103
- } finally {
104
- registrationScopeStack.pop();
105
- }
106
- }
107
- function pushRegistrationSession(session, fn) {
108
- registrationSessionStack.push(session);
109
- try {
110
- fn();
111
- } finally {
112
- registrationSessionStack.pop();
113
- }
114
- }
115
- function lockRouteRegistration() {
116
- registrationLocked = true;
117
- }
118
- function assertRouteRegistrationUnlocked() {
119
- if (registrationLocked) throw new Error("Route registration is locked after app startup. Register routes at module load time before calling createSPA or createSSR.");
120
- }
121
- function getRoutes() {
122
- return [...routes];
123
- }
124
- function hasRegisteredRoutes() {
125
- return routes.length > 0 || records.length > 0;
126
- }
127
- function clearRouteState() {
128
- routes.length = 0;
129
- records.length = 0;
130
- namespaces.clear();
131
- routesByDepth.clear();
132
- registrationScopeStack.length = 0;
133
- registrationSessionStack.length = 0;
134
- registrationLocked = false;
135
- defaultRouteAuthOptions = void 0;
136
- activeClientRouteAuthOptions = void 0;
137
- }
138
- function snapshotRouteState() {
139
- return {
140
- routes: [...routes],
141
- records: [...records],
142
- namespaces: [...namespaces],
143
- registrationLocked,
144
- defaultRouteAuthOptions,
145
- activeClientRouteAuthOptions,
146
- routesByDepth: [...routesByDepth.entries()].map(([depth, depthRoutes]) => [depth, [...depthRoutes]]),
147
- registrationScopeStack: [...registrationScopeStack],
148
- registrationSessionStack: [...registrationSessionStack]
149
- };
150
- }
151
- function restoreRouteState(snapshot) {
152
- routes.length = 0;
153
- routes.push(...snapshot.routes);
154
- records.length = 0;
155
- records.push(...snapshot.records);
156
- namespaces.clear();
157
- for (const namespace of snapshot.namespaces) namespaces.add(namespace);
158
- routesByDepth.clear();
159
- for (const [depth, depthRoutes] of snapshot.routesByDepth) routesByDepth.set(depth, [...depthRoutes]);
160
- registrationScopeStack.length = 0;
161
- registrationScopeStack.push(...snapshot.registrationScopeStack);
162
- registrationSessionStack.length = 0;
163
- registrationSessionStack.push(...snapshot.registrationSessionStack);
164
- registrationLocked = snapshot.registrationLocked;
165
- defaultRouteAuthOptions = snapshot.defaultRouteAuthOptions;
166
- activeClientRouteAuthOptions = snapshot.activeClientRouteAuthOptions;
167
- }
168
- //#endregion
169
- export { _setActiveRouteAuthOptions, addRouteToStores, assertRouteRegistrationUnlocked, clearRouteState, getActiveRouteAuthOptions, getActiveRoutes, getCurrentAccessScopeState, getCurrentInheritedPolicies, getCurrentLayoutChain, getCurrentPageChain, getCurrentPageScope, getCurrentPathPrefix, getCurrentRegistrationSession, getCurrentScopeKind, getDefaultRouteAuthOptions, getRouteRecords, getRoutes, hasActivePageScope, hasRegisteredRoutes, insertRecordSorted, isRouteStoreRoutes, lockRouteRegistration, pushRegistrationScope, pushRegistrationSession, restoreRouteState, setDefaultRouteAuthOptions, snapshotRouteState };
170
-
171
- //# sourceMappingURL=store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","names":[],"sources":["../../src/router/store.ts"],"sourcesContent":["import type {\n LayoutScopeRecord,\n PageScopeRecord,\n Route,\n RouteAuthOptions,\n RouteDefinition,\n RoutePolicy,\n} from '../common/router';\nimport { getActiveRenderContext } from '../common/render-context';\nimport type {\n AccessScopeState,\n InternalRoute,\n InternalRouteRecord,\n RegistrationScope,\n RegistrationSession,\n} from './internal-types';\n\nconst routes: InternalRoute[] = [];\nconst records: InternalRouteRecord[] = [];\nconst namespaces = new Set<string>();\nconst routesByDepth = new Map<number, Route[]>();\n\nconst registrationScopeStack: RegistrationScope[] = [];\nconst registrationSessionStack: RegistrationSession[] = [];\n\nlet registrationLocked = false;\nlet defaultRouteAuthOptions: RouteAuthOptions | undefined;\nlet activeClientRouteAuthOptions: RouteAuthOptions | undefined;\n\ntype RouteStateSnapshot = {\n routes: InternalRoute[];\n records: InternalRouteRecord[];\n namespaces: string[];\n registrationLocked: boolean;\n defaultRouteAuthOptions: RouteAuthOptions | undefined;\n activeClientRouteAuthOptions: RouteAuthOptions | undefined;\n routesByDepth: Array<[number, Route[]]>;\n registrationScopeStack: RegistrationScope[];\n registrationSessionStack: RegistrationSession[];\n};\n\nfunction getDepth(path: string): number {\n const normalized =\n path.endsWith('/') && path !== '/' ? path.slice(0, -1) : path;\n return normalized === '/' ? 0 : normalized.split('/').filter(Boolean).length;\n}\n\nexport function getRouteRecords(): readonly InternalRouteRecord[] {\n return records;\n}\n\nexport function isRouteStoreRoutes(routeList: readonly Route[]): boolean {\n return routeList === routes;\n}\n\nexport function insertRecordSorted(record: InternalRouteRecord): void {\n let lo = 0;\n let hi = records.length;\n while (lo < hi) {\n const mid = (lo + hi) >>> 1;\n if (records[mid].rank >= record.rank) lo = mid + 1;\n else hi = mid;\n }\n records.splice(lo, 0, record);\n}\n\nexport function addRouteToStores(routeObj: InternalRoute): void {\n routes.push(routeObj);\n\n const depth = getDepth(routeObj.path);\n let depthRoutes = routesByDepth.get(depth);\n if (!depthRoutes) {\n depthRoutes = [];\n routesByDepth.set(depth, depthRoutes);\n }\n depthRoutes.push(routeObj);\n\n if (routeObj.namespace) {\n namespaces.add(routeObj.namespace);\n }\n}\n\nexport function getActiveRoutes(): readonly Route[] {\n const renderContext = getActiveRenderContext();\n return renderContext?.routes ?? routes;\n}\n\nexport function getActiveRouteAuthOptions(\n override?: RouteAuthOptions\n): RouteAuthOptions | undefined {\n if (override) {\n return override;\n }\n\n const renderContext = getActiveRenderContext();\n return (\n renderContext?.routeAuth ??\n activeClientRouteAuthOptions ??\n defaultRouteAuthOptions\n );\n}\n\nexport function _setActiveRouteAuthOptions(\n auth: RouteAuthOptions | undefined\n): void {\n activeClientRouteAuthOptions = auth;\n}\n\nexport function getDefaultRouteAuthOptions(): RouteAuthOptions | undefined {\n return defaultRouteAuthOptions;\n}\n\nexport function setDefaultRouteAuthOptions(\n auth: RouteAuthOptions | undefined\n): void {\n defaultRouteAuthOptions = auth;\n}\n\nexport function getCurrentRegistrationSession(): RegistrationSession {\n return (\n registrationSessionStack[registrationSessionStack.length - 1] ?? {\n authConfigured: !!defaultRouteAuthOptions?.resolve,\n }\n );\n}\n\nexport function getCurrentAccessScopeState(): AccessScopeState {\n return (\n registrationScopeStack[registrationScopeStack.length - 1]?.state ?? {\n guestOnly: false,\n authenticated: false,\n }\n );\n}\n\nexport function getCurrentLayoutChain(): LayoutScopeRecord[] {\n const layoutChain: LayoutScopeRecord[] = [];\n\n for (const scope of registrationScopeStack) {\n if (scope.layout) {\n layoutChain.push({ component: scope.layout });\n }\n }\n\n return layoutChain;\n}\n\nexport function getCurrentPageChain(): PageScopeRecord[] {\n const pageChain: PageScopeRecord[] = [];\n\n for (const scope of registrationScopeStack) {\n if (scope.page) {\n pageChain.push({ component: scope.page });\n }\n }\n\n return pageChain;\n}\n\nexport function hasActivePageScope(): boolean {\n return registrationScopeStack.some((scope) => !!scope.page);\n}\n\nexport function getCurrentPageScope(): RegistrationScope | null {\n for (let index = registrationScopeStack.length - 1; index >= 0; index -= 1) {\n const scope = registrationScopeStack[index];\n if (scope.kind === 'page') {\n return scope;\n }\n }\n\n return null;\n}\n\nexport function getCurrentScopeKind(): RegistrationScope['kind'] | null {\n return (\n registrationScopeStack[registrationScopeStack.length - 1]?.kind ?? null\n );\n}\n\nexport function getCurrentPathPrefix(): string {\n return (\n registrationScopeStack[registrationScopeStack.length - 1]?.pathPrefix ?? ''\n );\n}\n\nexport function getCurrentInheritedPolicies(): RoutePolicy[] {\n const policies: RoutePolicy[] = [];\n\n for (const scope of registrationScopeStack) {\n if (scope.policies.length > 0) {\n policies.push(...scope.policies);\n }\n }\n\n return policies;\n}\n\nexport function pushRegistrationScope(\n scope: RegistrationScope,\n fn: RouteDefinition\n): void {\n registrationScopeStack.push(scope);\n try {\n fn();\n } finally {\n registrationScopeStack.pop();\n }\n}\n\nexport function pushRegistrationSession(\n session: RegistrationSession,\n fn: RouteDefinition\n): void {\n registrationSessionStack.push(session);\n try {\n fn();\n } finally {\n registrationSessionStack.pop();\n }\n}\n\nexport function lockRouteRegistration(): void {\n registrationLocked = true;\n}\n\nexport function _lockRouteRegistrationForTests(): void {\n registrationLocked = true;\n}\n\nexport function _unlockRouteRegistrationForTests(): void {\n registrationLocked = false;\n}\n\nexport function assertRouteRegistrationUnlocked(): void {\n if (registrationLocked) {\n throw new Error(\n 'Route registration is locked after app startup. ' +\n 'Register routes at module load time before calling createSPA or createSSR.'\n );\n }\n}\n\nexport function getRoutes(): Route[] {\n return [...routes];\n}\n\nexport function hasRegisteredRoutes(): boolean {\n return routes.length > 0 || records.length > 0;\n}\n\nexport function getNamespaceRoutes(namespace: string): Route[] {\n return routes.filter((route) => route.namespace === namespace);\n}\n\nexport function unloadNamespace(namespace: string): number {\n const before = routes.length;\n\n for (let i = routes.length - 1; i >= 0; i--) {\n if (routes[i].namespace === namespace) {\n const removed = routes[i];\n routes.splice(i, 1);\n\n const depth = getDepth(removed.path);\n const depthRoutes = routesByDepth.get(depth);\n if (depthRoutes) {\n const idx = depthRoutes.indexOf(removed);\n if (idx >= 0) depthRoutes.splice(idx, 1);\n }\n }\n }\n\n for (let i = records.length - 1; i >= 0; i--) {\n if (records[i].options.namespace === namespace) {\n records.splice(i, 1);\n }\n }\n\n namespaces.delete(namespace);\n return before - routes.length;\n}\n\nexport function getLoadedNamespaces(): string[] {\n return Array.from(namespaces);\n}\n\nexport function clearRouteState(): void {\n routes.length = 0;\n records.length = 0;\n namespaces.clear();\n routesByDepth.clear();\n registrationScopeStack.length = 0;\n registrationSessionStack.length = 0;\n registrationLocked = false;\n defaultRouteAuthOptions = undefined;\n activeClientRouteAuthOptions = undefined;\n}\n\nexport function snapshotRouteState(): RouteStateSnapshot {\n return {\n routes: [...routes],\n records: [...records],\n namespaces: [...namespaces],\n registrationLocked,\n defaultRouteAuthOptions,\n activeClientRouteAuthOptions,\n routesByDepth: [...routesByDepth.entries()].map(([depth, depthRoutes]) => [\n depth,\n [...depthRoutes],\n ]),\n registrationScopeStack: [...registrationScopeStack],\n registrationSessionStack: [...registrationSessionStack],\n };\n}\n\nexport function restoreRouteState(snapshot: RouteStateSnapshot): void {\n routes.length = 0;\n routes.push(...snapshot.routes);\n\n records.length = 0;\n records.push(...snapshot.records);\n\n namespaces.clear();\n for (const namespace of snapshot.namespaces) {\n namespaces.add(namespace);\n }\n\n routesByDepth.clear();\n for (const [depth, depthRoutes] of snapshot.routesByDepth) {\n routesByDepth.set(depth, [...depthRoutes]);\n }\n\n registrationScopeStack.length = 0;\n registrationScopeStack.push(...snapshot.registrationScopeStack);\n\n registrationSessionStack.length = 0;\n registrationSessionStack.push(...snapshot.registrationSessionStack);\n\n registrationLocked = snapshot.registrationLocked;\n defaultRouteAuthOptions = snapshot.defaultRouteAuthOptions;\n activeClientRouteAuthOptions = snapshot.activeClientRouteAuthOptions;\n}\n"],"mappings":"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"}
@@ -1,4 +0,0 @@
1
- import { parseSegments } from "./match.js";
2
- import { computeRouteActivityMatches } from "./route-matching.js";
3
- import "./route.js";
4
- export { computeRouteActivityMatches, parseSegments };
@@ -1,20 +0,0 @@
1
- import { ReadableSource } from "./readable.js";
2
- import { Scheduler, SchedulerLane } from "./scheduler.js";
3
- import { AskrRuntime, RuntimeRendererHost } from "./runtime.js";
4
-
5
- //#region src/runtime/access.d.ts
6
- type RuntimeTask = () => void;
7
- declare function getRuntimeScheduler(): Scheduler;
8
- declare function getDefaultRuntimeInstance(): AskrRuntime;
9
- declare function getRuntimeRenderer(): RuntimeRendererHost;
10
- declare function enqueueRuntimeTask(task: RuntimeTask): void;
11
- declare function enqueueRuntimeLane(lane: SchedulerLane, task: RuntimeTask): void;
12
- declare function runRuntimeHandlerScope<T>(fn: () => T, flushMode?: 'defer' | 'sync'): T;
13
- declare function runRuntimeWithSyncProgress<T>(fn: () => T): T;
14
- declare function getRuntimeSchedulerState(): ReturnType<Scheduler['getState']>;
15
- declare function isRuntimeSchedulerExecuting(): boolean;
16
- declare function getRuntimeFlushVersion(): number;
17
- declare function flushRuntimeScheduler(): void;
18
- declare function setRuntimeBulkCommitProbe(probe: () => boolean): void;
19
- declare function markRuntimeReactivePropsDirtySource(source: ReadableSource<unknown>): void;
20
- //# sourceMappingURL=access.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"access.d.ts","names":[],"sources":["../../src/runtime/access.ts"],"mappings":";;;;;KAQK,WAAA;AAAA,iBAEW,mBAAA,IAAuB,SAAS;AAAA,iBAIhC,yBAAA,IAA6B,WAAW;AAAA,iBAIxC,kBAAA,IAAsB,mBAAmB;AAAA,iBAIzC,kBAAA,CAAmB,IAAiB,EAAX,WAAW;AAAA,iBAIpC,kBAAA,CACd,IAAA,EAAM,aAAA,EACN,IAAA,EAAM,WAAW;AAAA,iBAKH,sBAAA,IACd,EAAA,QAAU,CAAA,EACV,SAAA,sBACC,CAAC;AAAA,iBAIY,0BAAA,IAA8B,EAAA,QAAU,CAAA,GAAI,CAAC;AAAA,iBAI7C,wBAAA,IAA4B,UAAU,CAAC,SAAA;AAAA,iBAIvC,2BAAA;AAAA,iBAIA,sBAAA;AAAA,iBAIA,qBAAA;AAAA,iBAIA,yBAAA,CAA0B,KAAoB;AAAA,iBAI9C,mCAAA,CACd,MAA+B,EAAvB,cAAc"}
@@ -1,45 +0,0 @@
1
- import { getDefaultRuntime } from "./runtime.js";
2
- //#region src/runtime/access.ts
3
- function getRuntimeScheduler() {
4
- return getDefaultRuntime().scheduler;
5
- }
6
- function getDefaultRuntimeInstance() {
7
- return getDefaultRuntime();
8
- }
9
- function getRuntimeRenderer() {
10
- return getDefaultRuntime().renderer;
11
- }
12
- function enqueueRuntimeTask(task) {
13
- getRuntimeScheduler().enqueue(task);
14
- }
15
- function enqueueRuntimeLane(lane, task) {
16
- getRuntimeScheduler().enqueueInLane(lane, task);
17
- }
18
- function runRuntimeHandlerScope(fn, flushMode = "defer") {
19
- return getRuntimeScheduler().runInHandlerScope(fn, flushMode);
20
- }
21
- function runRuntimeWithSyncProgress(fn) {
22
- return getRuntimeScheduler().runWithSyncProgress(fn);
23
- }
24
- function getRuntimeSchedulerState() {
25
- return getRuntimeScheduler().getState();
26
- }
27
- function isRuntimeSchedulerExecuting() {
28
- return getRuntimeScheduler().isExecuting();
29
- }
30
- function getRuntimeFlushVersion() {
31
- return getRuntimeScheduler().getFlushVersion();
32
- }
33
- function flushRuntimeScheduler() {
34
- getRuntimeScheduler().flush();
35
- }
36
- function setRuntimeBulkCommitProbe(probe) {
37
- getRuntimeScheduler().setBulkCommitProbe(probe);
38
- }
39
- function markRuntimeReactivePropsDirtySource(source) {
40
- getRuntimeRenderer().markReactivePropsDirtySource(source);
41
- }
42
- //#endregion
43
- export { enqueueRuntimeLane, enqueueRuntimeTask, flushRuntimeScheduler, getDefaultRuntimeInstance, getRuntimeFlushVersion, getRuntimeRenderer, getRuntimeScheduler, getRuntimeSchedulerState, isRuntimeSchedulerExecuting, markRuntimeReactivePropsDirtySource, runRuntimeHandlerScope, runRuntimeWithSyncProgress, setRuntimeBulkCommitProbe };
44
-
45
- //# sourceMappingURL=access.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"access.js","names":[],"sources":["../../src/runtime/access.ts"],"sourcesContent":["import type { ReadableSource } from './readable';\nimport {\n getDefaultRuntime,\n type AskrRuntime,\n type RuntimeRendererHost,\n} from './runtime';\nimport type { Scheduler, SchedulerLane } from './scheduler';\n\ntype RuntimeTask = () => void;\n\nexport function getRuntimeScheduler(): Scheduler {\n return getDefaultRuntime().scheduler;\n}\n\nexport function getDefaultRuntimeInstance(): AskrRuntime {\n return getDefaultRuntime();\n}\n\nexport function getRuntimeRenderer(): RuntimeRendererHost {\n return getDefaultRuntime().renderer;\n}\n\nexport function enqueueRuntimeTask(task: RuntimeTask): void {\n getRuntimeScheduler().enqueue(task);\n}\n\nexport function enqueueRuntimeLane(\n lane: SchedulerLane,\n task: RuntimeTask\n): void {\n getRuntimeScheduler().enqueueInLane(lane, task);\n}\n\nexport function runRuntimeHandlerScope<T>(\n fn: () => T,\n flushMode: 'defer' | 'sync' = 'defer'\n): T {\n return getRuntimeScheduler().runInHandlerScope(fn, flushMode);\n}\n\nexport function runRuntimeWithSyncProgress<T>(fn: () => T): T {\n return getRuntimeScheduler().runWithSyncProgress(fn);\n}\n\nexport function getRuntimeSchedulerState(): ReturnType<Scheduler['getState']> {\n return getRuntimeScheduler().getState();\n}\n\nexport function isRuntimeSchedulerExecuting(): boolean {\n return getRuntimeScheduler().isExecuting();\n}\n\nexport function getRuntimeFlushVersion(): number {\n return getRuntimeScheduler().getFlushVersion();\n}\n\nexport function flushRuntimeScheduler(): void {\n getRuntimeScheduler().flush();\n}\n\nexport function setRuntimeBulkCommitProbe(probe: () => boolean): void {\n getRuntimeScheduler().setBulkCommitProbe(probe);\n}\n\nexport function markRuntimeReactivePropsDirtySource(\n source: ReadableSource<unknown>\n): void {\n getRuntimeRenderer().markReactivePropsDirtySource(source);\n}\n"],"mappings":";;AAUA,SAAgB,sBAAiC;CAC/C,OAAO,kBAAkB,CAAC,CAAC;AAC7B;AAEA,SAAgB,4BAAyC;CACvD,OAAO,kBAAkB;AAC3B;AAEA,SAAgB,qBAA0C;CACxD,OAAO,kBAAkB,CAAC,CAAC;AAC7B;AAEA,SAAgB,mBAAmB,MAAyB;CAC1D,oBAAoB,CAAC,CAAC,QAAQ,IAAI;AACpC;AAEA,SAAgB,mBACd,MACA,MACM;CACN,oBAAoB,CAAC,CAAC,cAAc,MAAM,IAAI;AAChD;AAEA,SAAgB,uBACd,IACA,YAA8B,SAC3B;CACH,OAAO,oBAAoB,CAAC,CAAC,kBAAkB,IAAI,SAAS;AAC9D;AAEA,SAAgB,2BAA8B,IAAgB;CAC5D,OAAO,oBAAoB,CAAC,CAAC,oBAAoB,EAAE;AACrD;AAEA,SAAgB,2BAA8D;CAC5E,OAAO,oBAAoB,CAAC,CAAC,SAAS;AACxC;AAEA,SAAgB,8BAAuC;CACrD,OAAO,oBAAoB,CAAC,CAAC,YAAY;AAC3C;AAEA,SAAgB,yBAAiC;CAC/C,OAAO,oBAAoB,CAAC,CAAC,gBAAgB;AAC/C;AAEA,SAAgB,wBAA8B;CAC5C,oBAAoB,CAAC,CAAC,MAAM;AAC9B;AAEA,SAAgB,0BAA0B,OAA4B;CACpE,oBAAoB,CAAC,CAAC,mBAAmB,KAAK;AAChD;AAEA,SAAgB,oCACd,QACM;CACN,mBAAmB,CAAC,CAAC,6BAA6B,MAAM;AAC1D"}
@@ -1,22 +0,0 @@
1
- import { ComponentInstance } from "./component-internal.js";
2
- import { VNode } from "../common/vnode.js";
3
-
4
- //#region src/runtime/child-scope.d.ts
5
- interface ChildScope {
6
- key: string | number;
7
- componentInstance: ComponentInstance;
8
- previousVnode: VNode | undefined;
9
- vnode: VNode | undefined;
10
- dom?: Node;
11
- needsDomUpdate: boolean;
12
- hydrationPending: boolean;
13
- render(renderFn: () => VNode): VNode;
14
- markDirty(): void;
15
- dispose(): void;
16
- }
17
- declare function rerenderChildScope(scope: ChildScope): VNode | undefined;
18
- declare function disposeChildScope(scope: ChildScope): void;
19
- declare function createChildScope(parent: ComponentInstance | null, key: string | number, onDirty?: () => void): ChildScope;
20
- //#endregion
21
- export { ChildScope };
22
- //# sourceMappingURL=child-scope.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"child-scope.d.ts","names":[],"sources":["../../src/runtime/child-scope.ts"],"mappings":";;;;UAciB,UAAA;EACf,GAAA;EACA,iBAAA,EAAmB,iBAAA;EACnB,aAAA,EAAe,KAAA;EACf,KAAA,EAAO,KAAA;EACP,GAAA,GAAM,IAAA;EACN,cAAA;EACA,gBAAA;EACA,MAAA,CAAO,QAAA,QAAgB,KAAA,GAAQ,KAAA;EAC/B,SAAA;EACA,OAAA;AAAA;AAAA,iBAiEc,kBAAA,CAAmB,KAAA,EAAO,UAAA,GAAa,KAAK;AAAA,iBAI5C,iBAAA,CAAkB,KAAiB,EAAV,UAAU;AAAA,iBAInC,gBAAA,CACd,MAAA,EAAQ,iBAAA,SACR,GAAA,mBACA,OAAA,gBACC,UAAU"}
@@ -1,87 +0,0 @@
1
- import { _isDOMElement } from "../common/vnode.js";
2
- import { isDevelopmentEnvironment } from "../common/env.js";
3
- import { getCurrentStateIndex } from "./component-scope.js";
4
- import { cleanupComponent, registerOwnedChildScope, unregisterOwnedChildScope } from "./component-cleanup.js";
5
- import { createComponentInstance, finalizeReadSubscriptions, renderScopedComponent } from "./component-internal.js";
6
- import "./component.js";
7
- //#region src/runtime/child-scope.ts
8
- function renderScope(scope) {
9
- if (scope._disposed) {
10
- if (isDevelopmentEnvironment()) throw new Error(`[askr] Attempted to render disposed child scope ${String(scope.key)}.`);
11
- return scope.vnode;
12
- }
13
- if (!scope._renderFn) return scope.vnode;
14
- const { componentInstance } = scope;
15
- const previousVNode = scope.vnode;
16
- try {
17
- const nextVNode = renderScopedComponent(componentInstance, scope._startStateIndex, scope._renderFn);
18
- if (previousVNode && nextVNode && _isDOMElement(previousVNode) && _isDOMElement(nextVNode) && typeof previousVNode.type === "function" && previousVNode.type === nextVNode.type && "__instance" in previousVNode && !("__instance" in nextVNode)) nextVNode.__instance = previousVNode.__instance;
19
- scope.previousVnode = previousVNode;
20
- scope.vnode = nextVNode;
21
- scope.markDirty();
22
- finalizeReadSubscriptions(componentInstance);
23
- return scope.vnode;
24
- } catch (error) {
25
- componentInstance.hasPendingUpdate = false;
26
- throw error;
27
- }
28
- }
29
- function rerenderChildScope(scope) {
30
- return renderScope(scope);
31
- }
32
- function disposeChildScope(scope) {
33
- scope.dispose();
34
- }
35
- function createChildScope(parent, key, onDirty) {
36
- const scope = {};
37
- const componentInstance = createComponentInstance(`child-scope-${String(key)}`, () => scope._renderFn?.() ?? null, {}, null);
38
- if (parent) {
39
- componentInstance.parentInstance = parent;
40
- componentInstance.ownerFrame = parent.ownerFrame;
41
- componentInstance.portalScope = parent.portalScope;
42
- }
43
- scope.key = key;
44
- scope.componentInstance = componentInstance;
45
- scope.previousVnode = void 0;
46
- scope.vnode = void 0;
47
- scope.dom = void 0;
48
- scope.needsDomUpdate = true;
49
- scope.hydrationPending = true;
50
- scope._startStateIndex = getCurrentStateIndex();
51
- scope._renderFn = void 0;
52
- scope._onDirty = onDirty;
53
- scope._parent = parent;
54
- scope._disposed = false;
55
- scope.markDirty = () => {
56
- scope.needsDomUpdate = true;
57
- };
58
- scope.render = (renderFn) => {
59
- scope._renderFn = renderFn;
60
- return renderScope(scope);
61
- };
62
- scope.dispose = () => {
63
- if (scope._disposed) return;
64
- scope._disposed = true;
65
- if (scope._parent) unregisterOwnedChildScope(scope._parent, scope);
66
- cleanupComponent(componentInstance);
67
- scope._renderFn = void 0;
68
- scope.previousVnode = void 0;
69
- scope.vnode = void 0;
70
- scope.dom = void 0;
71
- scope.needsDomUpdate = false;
72
- scope.hydrationPending = false;
73
- componentInstance.hasPendingUpdate = false;
74
- };
75
- componentInstance._pendingFlushTask = () => {
76
- componentInstance.hasPendingUpdate = false;
77
- if (componentInstance.notifyUpdate === null || scope._disposed) return;
78
- renderScope(scope);
79
- scope._onDirty?.();
80
- };
81
- if (parent) registerOwnedChildScope(parent, scope);
82
- return scope;
83
- }
84
- //#endregion
85
- export { createChildScope, disposeChildScope, rerenderChildScope };
86
-
87
- //# sourceMappingURL=child-scope.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"child-scope.js","names":[],"sources":["../../src/runtime/child-scope.ts"],"sourcesContent":["import type { VNode } from '../common/vnode';\nimport { _isDOMElement } from '../common/vnode';\nimport {\n cleanupComponent,\n createComponentInstance,\n finalizeReadSubscriptions,\n getCurrentStateIndex,\n registerOwnedChildScope,\n renderScopedComponent,\n unregisterOwnedChildScope,\n type ComponentInstance,\n} from './component';\nimport { isDevelopmentEnvironment } from '../common/env';\n\nexport interface ChildScope {\n key: string | number;\n componentInstance: ComponentInstance;\n previousVnode: VNode | undefined;\n vnode: VNode | undefined;\n dom?: Node;\n needsDomUpdate: boolean;\n hydrationPending: boolean;\n render(renderFn: () => VNode): VNode;\n markDirty(): void;\n dispose(): void;\n}\n\ninterface MutableChildScope extends ChildScope {\n _startStateIndex: number;\n _renderFn?: (() => VNode) | undefined;\n _onDirty?: (() => void) | undefined;\n _parent?: ComponentInstance | null;\n _disposed: boolean;\n}\n\nfunction renderScope(scope: MutableChildScope): VNode | undefined {\n if (scope._disposed) {\n if (isDevelopmentEnvironment()) {\n throw new Error(\n `[askr] Attempted to render disposed child scope ${String(scope.key)}.`\n );\n }\n return scope.vnode;\n }\n\n if (!scope._renderFn) {\n return scope.vnode;\n }\n\n const { componentInstance } = scope;\n const previousVNode = scope.vnode;\n\n try {\n const nextVNode = renderScopedComponent(\n componentInstance,\n scope._startStateIndex,\n scope._renderFn\n );\n if (\n previousVNode &&\n nextVNode &&\n _isDOMElement(previousVNode) &&\n _isDOMElement(nextVNode) &&\n typeof previousVNode.type === 'function' &&\n previousVNode.type === nextVNode.type &&\n '__instance' in previousVNode &&\n !('__instance' in nextVNode)\n ) {\n (\n nextVNode as VNode & {\n __instance?: ComponentInstance;\n }\n ).__instance = (\n previousVNode as VNode & {\n __instance?: ComponentInstance;\n }\n ).__instance;\n }\n scope.previousVnode = previousVNode;\n scope.vnode = nextVNode;\n scope.markDirty();\n finalizeReadSubscriptions(componentInstance);\n return scope.vnode;\n } catch (error) {\n componentInstance.hasPendingUpdate = false;\n throw error;\n }\n}\n\nexport function rerenderChildScope(scope: ChildScope): VNode | undefined {\n return renderScope(scope as MutableChildScope);\n}\n\nexport function disposeChildScope(scope: ChildScope): void {\n scope.dispose();\n}\n\nexport function createChildScope(\n parent: ComponentInstance | null,\n key: string | number,\n onDirty?: () => void\n): ChildScope {\n const scope = {} as MutableChildScope;\n\n const componentInstance = createComponentInstance(\n `child-scope-${String(key)}`,\n () => scope._renderFn?.() ?? null,\n {},\n null\n );\n\n if (parent) {\n componentInstance.parentInstance = parent;\n componentInstance.ownerFrame = parent.ownerFrame;\n componentInstance.portalScope = parent.portalScope;\n }\n\n scope.key = key;\n scope.componentInstance = componentInstance;\n scope.previousVnode = undefined;\n scope.vnode = undefined;\n scope.dom = undefined;\n scope.needsDomUpdate = true;\n scope.hydrationPending = true;\n scope._startStateIndex = getCurrentStateIndex();\n scope._renderFn = undefined;\n scope._onDirty = onDirty;\n scope._parent = parent;\n scope._disposed = false;\n scope.markDirty = () => {\n scope.needsDomUpdate = true;\n };\n scope.render = (renderFn: () => VNode) => {\n scope._renderFn = renderFn;\n return renderScope(scope) as VNode;\n };\n scope.dispose = () => {\n if (scope._disposed) {\n return;\n }\n scope._disposed = true;\n if (scope._parent) {\n unregisterOwnedChildScope(scope._parent, scope);\n }\n cleanupComponent(componentInstance);\n scope._renderFn = undefined;\n scope.previousVnode = undefined;\n scope.vnode = undefined;\n scope.dom = undefined;\n scope.needsDomUpdate = false;\n scope.hydrationPending = false;\n componentInstance.hasPendingUpdate = false;\n };\n\n componentInstance._pendingFlushTask = () => {\n componentInstance.hasPendingUpdate = false;\n if (componentInstance.notifyUpdate === null || scope._disposed) {\n return;\n }\n renderScope(scope);\n scope._onDirty?.();\n };\n\n if (parent) {\n registerOwnedChildScope(parent, scope);\n }\n\n return scope;\n}\n"],"mappings":";;;;;;;AAmCA,SAAS,YAAY,OAA6C;CAChE,IAAI,MAAM,WAAW;EACnB,IAAI,yBAAyB,GAC3B,MAAM,IAAI,MACR,mDAAmD,OAAO,MAAM,GAAG,EAAE,EACvE;EAEF,OAAO,MAAM;CACf;CAEA,IAAI,CAAC,MAAM,WACT,OAAO,MAAM;CAGf,MAAM,EAAE,sBAAsB;CAC9B,MAAM,gBAAgB,MAAM;CAE5B,IAAI;EACF,MAAM,YAAY,sBAChB,mBACA,MAAM,kBACN,MAAM,SACR;EACA,IACE,iBACA,aACA,cAAc,aAAa,KAC3B,cAAc,SAAS,KACvB,OAAO,cAAc,SAAS,cAC9B,cAAc,SAAS,UAAU,QACjC,gBAAgB,iBAChB,EAAE,gBAAgB,YAElB,UAIE,aACA,cAGA;EAEJ,MAAM,gBAAgB;EACtB,MAAM,QAAQ;EACd,MAAM,UAAU;EAChB,0BAA0B,iBAAiB;EAC3C,OAAO,MAAM;CACf,SAAS,OAAO;EACd,kBAAkB,mBAAmB;EACrC,MAAM;CACR;AACF;AAEA,SAAgB,mBAAmB,OAAsC;CACvE,OAAO,YAAY,KAA0B;AAC/C;AAEA,SAAgB,kBAAkB,OAAyB;CACzD,MAAM,QAAQ;AAChB;AAEA,SAAgB,iBACd,QACA,KACA,SACY;CACZ,MAAM,QAAQ,CAAC;CAEf,MAAM,oBAAoB,wBACxB,eAAe,OAAO,GAAG,WACnB,MAAM,YAAY,KAAK,MAC7B,CAAC,GACD,IACF;CAEA,IAAI,QAAQ;EACV,kBAAkB,iBAAiB;EACnC,kBAAkB,aAAa,OAAO;EACtC,kBAAkB,cAAc,OAAO;CACzC;CAEA,MAAM,MAAM;CACZ,MAAM,oBAAoB;CAC1B,MAAM,gBAAgB;CACtB,MAAM,QAAQ;CACd,MAAM,MAAM;CACZ,MAAM,iBAAiB;CACvB,MAAM,mBAAmB;CACzB,MAAM,mBAAmB,qBAAqB;CAC9C,MAAM,YAAY;CAClB,MAAM,WAAW;CACjB,MAAM,UAAU;CAChB,MAAM,YAAY;CAClB,MAAM,kBAAkB;EACtB,MAAM,iBAAiB;CACzB;CACA,MAAM,UAAU,aAA0B;EACxC,MAAM,YAAY;EAClB,OAAO,YAAY,KAAK;CAC1B;CACA,MAAM,gBAAgB;EACpB,IAAI,MAAM,WACR;EAEF,MAAM,YAAY;EAClB,IAAI,MAAM,SACR,0BAA0B,MAAM,SAAS,KAAK;EAEhD,iBAAiB,iBAAiB;EAClC,MAAM,YAAY;EAClB,MAAM,gBAAgB;EACtB,MAAM,QAAQ;EACd,MAAM,MAAM;EACZ,MAAM,iBAAiB;EACvB,MAAM,mBAAmB;EACzB,kBAAkB,mBAAmB;CACvC;CAEA,kBAAkB,0BAA0B;EAC1C,kBAAkB,mBAAmB;EACrC,IAAI,kBAAkB,iBAAiB,QAAQ,MAAM,WACnD;EAEF,YAAY,KAAK;EACjB,MAAM,WAAW;CACnB;CAEA,IAAI,QACF,wBAAwB,QAAQ,KAAK;CAGvC,OAAO;AACT"}
@@ -1,16 +0,0 @@
1
- import { ComponentInstance } from "./component-internal.js";
2
-
3
- //#region src/runtime/component-cleanup.d.ts
4
- type OwnedChildScope = {
5
- key: string | number;
6
- dispose(): void;
7
- };
8
- /**
9
- * Clean up component resources on unmount or route changes.
10
- */
11
- declare function cleanupComponent(instance: ComponentInstance): void;
12
- declare function registerOwnedChildScope(instance: ComponentInstance, scope: OwnedChildScope): void;
13
- declare function unregisterOwnedChildScope(instance: ComponentInstance, scope: OwnedChildScope): void;
14
- //#endregion
15
- export { OwnedChildScope, cleanupComponent, registerOwnedChildScope, unregisterOwnedChildScope };
16
- //# sourceMappingURL=component-cleanup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-cleanup.d.ts","names":[],"sources":["../../src/runtime/component-cleanup.ts"],"mappings":";;;KAaY,eAAA;EACV,GAAA;EACA,OAAO;AAAA;AAMT;;;AAAA,iBAAgB,gBAAA,CAAiB,QAA2B,EAAjB,iBAAiB;AAAA,iBA0E5C,uBAAA,CACd,QAAA,EAAU,iBAAA,EACV,KAAA,EAAO,eAAe;AAAA,iBAMR,yBAAA,CACd,QAAA,EAAU,iBAAA,EACV,KAAA,EAAO,eAAe"}
@@ -1,70 +0,0 @@
1
- import { isDevelopmentEnvironment } from "../common/env.js";
2
- import { logger } from "../common/logger.js";
3
- import { cleanupReadableSubscriptions } from "./readable.js";
4
- import { clearCurrentComponentScope, restoreCurrentComponentScope } from "./component-scope.js";
5
- //#region src/runtime/component-cleanup.ts
6
- /**
7
- * Component cleanup and owned child-scope bookkeeping.
8
- */
9
- /**
10
- * Clean up component resources on unmount or route changes.
11
- */
12
- function cleanupComponent(instance) {
13
- const savedScope = clearCurrentComponentScope();
14
- try {
15
- const cleanupErrors = [];
16
- const recordCleanupError = (message, err) => {
17
- if (instance.cleanupStrict) cleanupErrors.push(err);
18
- else if (isDevelopmentEnvironment()) logger.warn(message, err);
19
- };
20
- const ownedChildScopes = instance._ownedChildScopes;
21
- if (ownedChildScopes && ownedChildScopes.size > 0) {
22
- instance._ownedChildScopes = /* @__PURE__ */ new Set();
23
- for (const scope of ownedChildScopes) try {
24
- scope.dispose();
25
- } catch (err) {
26
- recordCleanupError("[Askr] child scope cleanup threw:", err);
27
- }
28
- }
29
- const cleanupFns = instance.cleanupFns;
30
- instance.cleanupFns = [];
31
- for (const cleanup of cleanupFns) try {
32
- cleanup();
33
- } catch (err) {
34
- recordCleanupError("[Askr] cleanup function threw:", err);
35
- }
36
- try {
37
- cleanupReadableSubscriptions(instance);
38
- } catch (err) {
39
- recordCleanupError("[Askr] readable subscription cleanup threw:", err);
40
- }
41
- try {
42
- if (instance.abortController && !instance.abortController.signal.aborted) instance.abortController.abort();
43
- } catch (err) {
44
- recordCleanupError("[Askr] abort controller cleanup threw:", err);
45
- }
46
- instance.abortController = null;
47
- instance.lifecycleGeneration++;
48
- instance.evaluationGeneration++;
49
- instance.mountOperations = [];
50
- instance.commitOperations = [];
51
- instance.lifecycleSlots = [];
52
- instance.hasPendingUpdate = false;
53
- instance.notifyUpdate = null;
54
- instance._placeholder = void 0;
55
- instance.mounted = false;
56
- if (cleanupErrors.length > 0) throw new AggregateError(cleanupErrors, `Cleanup failed for component ${instance.id}`);
57
- } finally {
58
- restoreCurrentComponentScope(savedScope);
59
- }
60
- }
61
- function registerOwnedChildScope(instance, scope) {
62
- (instance._ownedChildScopes ??= /* @__PURE__ */ new Set()).add(scope);
63
- }
64
- function unregisterOwnedChildScope(instance, scope) {
65
- instance._ownedChildScopes?.delete(scope);
66
- }
67
- //#endregion
68
- export { cleanupComponent, registerOwnedChildScope, unregisterOwnedChildScope };
69
-
70
- //# sourceMappingURL=component-cleanup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-cleanup.js","names":[],"sources":["../../src/runtime/component-cleanup.ts"],"sourcesContent":["/**\n * Component cleanup and owned child-scope bookkeeping.\n */\n\nimport { isDevelopmentEnvironment } from '../common/env';\nimport { logger } from '../common/logger';\nimport type { ComponentInstance } from './component-internal';\nimport {\n clearCurrentComponentScope,\n restoreCurrentComponentScope,\n} from './component-scope';\nimport { cleanupReadableSubscriptions } from './readable';\n\nexport type OwnedChildScope = {\n key: string | number;\n dispose(): void;\n};\n\n/**\n * Clean up component resources on unmount or route changes.\n */\nexport function cleanupComponent(instance: ComponentInstance): void {\n const savedScope = clearCurrentComponentScope();\n\n try {\n const cleanupErrors: unknown[] = [];\n const recordCleanupError = (message: string, err: unknown): void => {\n if (instance.cleanupStrict) {\n cleanupErrors.push(err);\n } else if (isDevelopmentEnvironment()) {\n logger.warn(message, err);\n }\n };\n\n const ownedChildScopes = instance._ownedChildScopes;\n if (ownedChildScopes && ownedChildScopes.size > 0) {\n instance._ownedChildScopes = new Set();\n for (const scope of ownedChildScopes) {\n try {\n scope.dispose();\n } catch (err) {\n recordCleanupError('[Askr] child scope cleanup threw:', err);\n }\n }\n }\n\n const cleanupFns = instance.cleanupFns;\n instance.cleanupFns = [];\n for (const cleanup of cleanupFns) {\n try {\n cleanup();\n } catch (err) {\n recordCleanupError('[Askr] cleanup function threw:', err);\n }\n }\n\n try {\n cleanupReadableSubscriptions(instance);\n } catch (err) {\n recordCleanupError('[Askr] readable subscription cleanup threw:', err);\n }\n\n try {\n if (\n instance.abortController &&\n !instance.abortController.signal.aborted\n ) {\n instance.abortController.abort();\n }\n } catch (err) {\n recordCleanupError('[Askr] abort controller cleanup threw:', err);\n }\n instance.abortController = null;\n\n instance.lifecycleGeneration++;\n instance.evaluationGeneration++;\n instance.mountOperations = [];\n instance.commitOperations = [];\n instance.lifecycleSlots = [];\n instance.hasPendingUpdate = false;\n instance.notifyUpdate = null;\n instance._placeholder = undefined;\n instance.mounted = false;\n\n if (cleanupErrors.length > 0) {\n throw new AggregateError(\n cleanupErrors,\n `Cleanup failed for component ${instance.id}`\n );\n }\n } finally {\n restoreCurrentComponentScope(savedScope);\n }\n}\n\nexport function registerOwnedChildScope(\n instance: ComponentInstance,\n scope: OwnedChildScope\n): void {\n const scopes = (instance._ownedChildScopes ??= new Set());\n scopes.add(scope);\n}\n\nexport function unregisterOwnedChildScope(\n instance: ComponentInstance,\n scope: OwnedChildScope\n): void {\n instance._ownedChildScopes?.delete(scope);\n}\n"],"mappings":";;;;;;;;;;;AAqBA,SAAgB,iBAAiB,UAAmC;CAClE,MAAM,aAAa,2BAA2B;CAE9C,IAAI;EACF,MAAM,gBAA2B,CAAC;EAClC,MAAM,sBAAsB,SAAiB,QAAuB;GAClE,IAAI,SAAS,eACX,cAAc,KAAK,GAAG;QACjB,IAAI,yBAAyB,GAClC,OAAO,KAAK,SAAS,GAAG;EAE5B;EAEA,MAAM,mBAAmB,SAAS;EAClC,IAAI,oBAAoB,iBAAiB,OAAO,GAAG;GACjD,SAAS,oCAAoB,IAAI,IAAI;GACrC,KAAK,MAAM,SAAS,kBAClB,IAAI;IACF,MAAM,QAAQ;GAChB,SAAS,KAAK;IACZ,mBAAmB,qCAAqC,GAAG;GAC7D;EAEJ;EAEA,MAAM,aAAa,SAAS;EAC5B,SAAS,aAAa,CAAC;EACvB,KAAK,MAAM,WAAW,YACpB,IAAI;GACF,QAAQ;EACV,SAAS,KAAK;GACZ,mBAAmB,kCAAkC,GAAG;EAC1D;EAGF,IAAI;GACF,6BAA6B,QAAQ;EACvC,SAAS,KAAK;GACZ,mBAAmB,+CAA+C,GAAG;EACvE;EAEA,IAAI;GACF,IACE,SAAS,mBACT,CAAC,SAAS,gBAAgB,OAAO,SAEjC,SAAS,gBAAgB,MAAM;EAEnC,SAAS,KAAK;GACZ,mBAAmB,0CAA0C,GAAG;EAClE;EACA,SAAS,kBAAkB;EAE3B,SAAS;EACT,SAAS;EACT,SAAS,kBAAkB,CAAC;EAC5B,SAAS,mBAAmB,CAAC;EAC7B,SAAS,iBAAiB,CAAC;EAC3B,SAAS,mBAAmB;EAC5B,SAAS,eAAe;EACxB,SAAS,eAAe;EACxB,SAAS,UAAU;EAEnB,IAAI,cAAc,SAAS,GACzB,MAAM,IAAI,eACR,eACA,gCAAgC,SAAS,IAC3C;CAEJ,UAAU;EACR,6BAA6B,UAAU;CACzC;AACF;AAEA,SAAgB,wBACd,UACA,OACM;CAEN,CADgB,SAAS,sCAAsB,IAAI,IAAI,EACvD,CAAO,IAAI,KAAK;AAClB;AAEA,SAAgB,0BACd,UACA,OACM;CACN,SAAS,mBAAmB,OAAO,KAAK;AAC1C"}