@askrjs/askr 0.0.28 → 0.0.29

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 (451) hide show
  1. package/README.md +44 -172
  2. package/dist/_virtual/_rolldown/runtime.js +7 -0
  3. package/dist/bench/components/benchmark-row.d.ts +20 -0
  4. package/dist/bench/components/benchmark-row.d.ts.map +1 -0
  5. package/dist/bench/components/benchmark-row.js +42 -0
  6. package/dist/bench/components/benchmark-row.js.map +1 -0
  7. package/dist/bench/components/benchmark-table.js +25 -0
  8. package/dist/bench/components/benchmark-table.js.map +1 -0
  9. package/dist/benchmark.d.ts +22 -0
  10. package/dist/benchmark.d.ts.map +1 -0
  11. package/dist/benchmark.js +64 -1
  12. package/dist/benchmark.js.map +1 -0
  13. package/dist/bin/askr-ssg.d.ts +22 -26
  14. package/dist/bin/askr-ssg.d.ts.map +1 -1
  15. package/dist/bin/askr-ssg.js +149 -2
  16. package/dist/bin/askr-ssg.js.map +1 -0
  17. package/dist/boot/index.d.ts +64 -42
  18. package/dist/boot/index.d.ts.map +1 -1
  19. package/dist/boot/index.js +416 -2
  20. package/dist/boot/index.js.map +1 -0
  21. package/dist/common/component.d.ts +14 -13
  22. package/dist/common/component.d.ts.map +1 -1
  23. package/dist/common/control.d.ts +13 -0
  24. package/dist/common/control.d.ts.map +1 -0
  25. package/dist/common/control.js +14 -0
  26. package/dist/common/control.js.map +1 -0
  27. package/dist/common/env.js +47 -0
  28. package/dist/common/env.js.map +1 -0
  29. package/dist/common/jsx.d.ts +17 -15
  30. package/dist/common/jsx.d.ts.map +1 -1
  31. package/dist/common/jsx.js +8 -1
  32. package/dist/common/jsx.js.map +1 -0
  33. package/dist/common/props.d.ts +14 -11
  34. package/dist/common/props.d.ts.map +1 -1
  35. package/dist/common/router.d.ts +190 -32
  36. package/dist/common/router.d.ts.map +1 -1
  37. package/dist/common/ssr-errors.d.ts +6 -3
  38. package/dist/common/ssr-errors.d.ts.map +1 -1
  39. package/dist/common/ssr-errors.js +16 -1
  40. package/dist/common/ssr-errors.js.map +1 -0
  41. package/dist/common/ssr.d.ts +12 -9
  42. package/dist/common/ssr.d.ts.map +1 -1
  43. package/dist/common/vnode.d.ts +17 -15
  44. package/dist/common/vnode.d.ts.map +1 -1
  45. package/dist/common/vnode.js +10 -1
  46. package/dist/common/vnode.js.map +1 -0
  47. package/dist/components/link.d.ts +37 -25
  48. package/dist/components/link.d.ts.map +1 -1
  49. package/dist/components/link.js +64 -1
  50. package/dist/components/link.js.map +1 -0
  51. package/dist/control/case.d.ts +17 -0
  52. package/dist/control/case.d.ts.map +1 -0
  53. package/dist/control/case.js +69 -0
  54. package/dist/control/case.js.map +1 -0
  55. package/dist/control/for.d.ts +23 -0
  56. package/dist/control/for.d.ts.map +1 -0
  57. package/dist/control/for.js +62 -0
  58. package/dist/control/for.js.map +1 -0
  59. package/dist/control/index.d.ts +4 -0
  60. package/dist/control/index.js +4 -0
  61. package/dist/control/shared.js +20 -0
  62. package/dist/control/shared.js.map +1 -0
  63. package/dist/control/show.d.ts +14 -0
  64. package/dist/control/show.d.ts.map +1 -0
  65. package/dist/control/show.js +33 -0
  66. package/dist/control/show.js.map +1 -0
  67. package/dist/dev/invariant.js +29 -2
  68. package/dist/dev/invariant.js.map +1 -0
  69. package/dist/dev/logger.js +37 -1
  70. package/dist/dev/logger.js.map +1 -0
  71. package/dist/foundations/icon/icon.d.ts +53 -0
  72. package/dist/foundations/icon/icon.d.ts.map +1 -0
  73. package/dist/foundations/icon/icon.js +88 -0
  74. package/dist/foundations/icon/icon.js.map +1 -0
  75. package/dist/foundations/icon/icon.types.d.ts +21 -0
  76. package/dist/foundations/icon/icon.types.d.ts.map +1 -0
  77. package/dist/foundations/index.d.ts +10 -3
  78. package/dist/foundations/index.js +9 -1
  79. package/dist/foundations/interactions/interaction-policy.js +93 -1
  80. package/dist/foundations/interactions/interaction-policy.js.map +1 -0
  81. package/dist/foundations/interactions/pressable.js +51 -1
  82. package/dist/foundations/interactions/pressable.js.map +1 -0
  83. package/dist/foundations/structures/collection.d.ts +25 -40
  84. package/dist/foundations/structures/collection.d.ts.map +1 -1
  85. package/dist/foundations/structures/collection.js +51 -1
  86. package/dist/foundations/structures/collection.js.map +1 -0
  87. package/dist/foundations/structures/layer.d.ts +47 -68
  88. package/dist/foundations/structures/layer.d.ts.map +1 -1
  89. package/dist/foundations/structures/layer.js +81 -1
  90. package/dist/foundations/structures/layer.js.map +1 -0
  91. package/dist/foundations/structures/layout.d.ts +6 -3
  92. package/dist/foundations/structures/layout.d.ts.map +1 -1
  93. package/dist/foundations/structures/layout.js +13 -1
  94. package/dist/foundations/structures/layout.js.map +1 -0
  95. package/dist/foundations/structures/portal.d.ts +17 -10
  96. package/dist/foundations/structures/portal.d.ts.map +1 -1
  97. package/dist/foundations/structures/portal.js +105 -1
  98. package/dist/foundations/structures/portal.js.map +1 -0
  99. package/dist/foundations/structures/presence.d.ts +11 -5
  100. package/dist/foundations/structures/presence.d.ts.map +1 -1
  101. package/dist/foundations/structures/presence.js +39 -1
  102. package/dist/foundations/structures/presence.js.map +1 -0
  103. package/dist/foundations/structures/slot.d.ts +11 -8
  104. package/dist/foundations/structures/slot.d.ts.map +1 -1
  105. package/dist/foundations/structures/slot.js +41 -1
  106. package/dist/foundations/structures/slot.js.map +1 -0
  107. package/dist/foundations/structures.d.ts +7 -14
  108. package/dist/foundations/structures.js +6 -1
  109. package/dist/foundations/utilities/aria.js +11 -1
  110. package/dist/foundations/utilities/aria.js.map +1 -0
  111. package/dist/foundations/utilities/compose-handlers.js +20 -1
  112. package/dist/foundations/utilities/compose-handlers.js.map +1 -0
  113. package/dist/foundations/utilities/compose-ref.d.ts +7 -4
  114. package/dist/foundations/utilities/compose-ref.d.ts.map +1 -1
  115. package/dist/foundations/utilities/compose-ref.js +18 -1
  116. package/dist/foundations/utilities/compose-ref.js.map +1 -0
  117. package/dist/foundations/utilities/merge-props.js +49 -1
  118. package/dist/foundations/utilities/merge-props.js.map +1 -0
  119. package/dist/fx/fx.d.ts +24 -21
  120. package/dist/fx/fx.d.ts.map +1 -1
  121. package/dist/fx/fx.js +212 -1
  122. package/dist/fx/fx.js.map +1 -0
  123. package/dist/fx/index.d.ts +4 -7
  124. package/dist/fx/index.js +4 -1
  125. package/dist/fx/noop.js +9 -1
  126. package/dist/fx/noop.js.map +1 -0
  127. package/dist/fx/timing.d.ts +24 -21
  128. package/dist/fx/timing.d.ts.map +1 -1
  129. package/dist/fx/timing.js +236 -1
  130. package/dist/fx/timing.js.map +1 -0
  131. package/dist/index.d.ts +21 -23
  132. package/dist/index.js +34 -1
  133. package/dist/index.js.map +1 -0
  134. package/dist/jsx/index.d.ts +1 -4
  135. package/dist/jsx/index.js +3 -1
  136. package/dist/jsx/types.d.ts +18 -25
  137. package/dist/jsx/types.d.ts.map +1 -1
  138. package/dist/jsx/types.js +1 -1
  139. package/dist/jsx/utils.d.ts +4 -3
  140. package/dist/jsx/utils.d.ts.map +1 -1
  141. package/dist/jsx/utils.js +19 -1
  142. package/dist/jsx/utils.js.map +1 -0
  143. package/dist/jsx-dev-runtime.d.ts +8 -0
  144. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  145. package/dist/jsx-dev-runtime.js +32 -1
  146. package/dist/jsx-dev-runtime.js.map +1 -0
  147. package/dist/jsx-runtime.d.ts +12 -0
  148. package/dist/jsx-runtime.d.ts.map +1 -0
  149. package/dist/jsx-runtime.js +45 -1
  150. package/dist/jsx-runtime.js.map +1 -0
  151. package/dist/jsx-runtime2.d.ts +2 -0
  152. package/dist/jsx-runtime2.js +3 -0
  153. package/dist/renderer/children.js +293 -0
  154. package/dist/renderer/children.js.map +1 -0
  155. package/dist/renderer/cleanup.js +150 -1
  156. package/dist/renderer/cleanup.js.map +1 -0
  157. package/dist/renderer/dom.js +2439 -1
  158. package/dist/renderer/dom.js.map +1 -0
  159. package/dist/renderer/env.js +1 -0
  160. package/dist/renderer/evaluate.js +450 -1
  161. package/dist/renderer/evaluate.js.map +1 -0
  162. package/dist/renderer/fastpath.js +145 -1
  163. package/dist/renderer/fastpath.js.map +1 -0
  164. package/dist/renderer/index.js +24 -1
  165. package/dist/renderer/index.js.map +1 -0
  166. package/dist/renderer/keyed.js +119 -1
  167. package/dist/renderer/keyed.js.map +1 -0
  168. package/dist/renderer/reconcile.js +359 -1
  169. package/dist/renderer/reconcile.js.map +1 -0
  170. package/dist/renderer/types.js +1 -1
  171. package/dist/renderer/utils.js +220 -1
  172. package/dist/renderer/utils.js.map +1 -0
  173. package/dist/resources/index.d.ts +3 -9
  174. package/dist/resources/index.js +3 -1
  175. package/dist/router/index.d.ts +6 -10
  176. package/dist/router/index.js +5 -1
  177. package/dist/router/match.js +83 -1
  178. package/dist/router/match.js.map +1 -0
  179. package/dist/router/navigate.d.ts +20 -8
  180. package/dist/router/navigate.d.ts.map +1 -1
  181. package/dist/router/navigate.js +288 -1
  182. package/dist/router/navigate.js.map +1 -0
  183. package/dist/router/policy.d.ts +22 -0
  184. package/dist/router/policy.d.ts.map +1 -0
  185. package/dist/router/policy.js +116 -0
  186. package/dist/router/policy.js.map +1 -0
  187. package/dist/router/route-context.js +79 -0
  188. package/dist/router/route-context.js.map +1 -0
  189. package/dist/router/route.d.ts +101 -34
  190. package/dist/router/route.d.ts.map +1 -1
  191. package/dist/router/route.js +599 -1
  192. package/dist/router/route.js.map +1 -0
  193. package/dist/runtime/child-scope.d.ts +21 -0
  194. package/dist/runtime/child-scope.d.ts.map +1 -0
  195. package/dist/runtime/child-scope.js +77 -0
  196. package/dist/runtime/child-scope.js.map +1 -0
  197. package/dist/runtime/component.d.ts +67 -56
  198. package/dist/runtime/component.d.ts.map +1 -1
  199. package/dist/runtime/component.js +462 -1
  200. package/dist/runtime/component.js.map +1 -0
  201. package/dist/runtime/context.d.ts +28 -42
  202. package/dist/runtime/context.d.ts.map +1 -1
  203. package/dist/runtime/context.js +205 -1
  204. package/dist/runtime/context.js.map +1 -0
  205. package/dist/runtime/control.d.ts +43 -0
  206. package/dist/runtime/control.d.ts.map +1 -0
  207. package/dist/runtime/control.js +125 -0
  208. package/dist/runtime/control.js.map +1 -0
  209. package/dist/runtime/derive.d.ts +12 -9
  210. package/dist/runtime/derive.d.ts.map +1 -1
  211. package/dist/runtime/derive.js +134 -1
  212. package/dist/runtime/derive.js.map +1 -0
  213. package/dist/runtime/dev-namespace.js +57 -1
  214. package/dist/runtime/dev-namespace.js.map +1 -0
  215. package/dist/runtime/effect.d.ts +32 -0
  216. package/dist/runtime/effect.d.ts.map +1 -0
  217. package/dist/runtime/effect.js +146 -0
  218. package/dist/runtime/effect.js.map +1 -0
  219. package/dist/runtime/events.js +162 -1
  220. package/dist/runtime/events.js.map +1 -0
  221. package/dist/runtime/execution-model.js +15 -1
  222. package/dist/runtime/execution-model.js.map +1 -0
  223. package/dist/runtime/fastlane.js +204 -1
  224. package/dist/runtime/fastlane.js.map +1 -0
  225. package/dist/runtime/for-bench.d.ts +41 -0
  226. package/dist/runtime/for-bench.d.ts.map +1 -0
  227. package/dist/runtime/for-bench.js +173 -0
  228. package/dist/runtime/for-bench.js.map +1 -0
  229. package/dist/runtime/for.d.ts +62 -49
  230. package/dist/runtime/for.d.ts.map +1 -1
  231. package/dist/runtime/for.js +668 -1
  232. package/dist/runtime/for.js.map +1 -0
  233. package/dist/runtime/operations.d.ts +18 -15
  234. package/dist/runtime/operations.d.ts.map +1 -1
  235. package/dist/runtime/operations.js +209 -1
  236. package/dist/runtime/operations.js.map +1 -0
  237. package/dist/runtime/perf-metrics.js +64 -1
  238. package/dist/runtime/perf-metrics.js.map +1 -0
  239. package/dist/runtime/readable.d.ts +24 -18
  240. package/dist/runtime/readable.d.ts.map +1 -1
  241. package/dist/runtime/readable.js +118 -1
  242. package/dist/runtime/readable.js.map +1 -0
  243. package/dist/runtime/resource-cell.js +102 -1
  244. package/dist/runtime/resource-cell.js.map +1 -0
  245. package/dist/runtime/scheduler.d.ts +51 -50
  246. package/dist/runtime/scheduler.d.ts.map +1 -1
  247. package/dist/runtime/scheduler.js +328 -1
  248. package/dist/runtime/scheduler.js.map +1 -0
  249. package/dist/runtime/selector.d.ts +7 -5
  250. package/dist/runtime/selector.d.ts.map +1 -1
  251. package/dist/runtime/selector.js +188 -1
  252. package/dist/runtime/selector.js.map +1 -0
  253. package/dist/runtime/ssr-bridge.js +24 -1
  254. package/dist/runtime/ssr-bridge.js.map +1 -0
  255. package/dist/runtime/state.d.ts +11 -19
  256. package/dist/runtime/state.d.ts.map +1 -1
  257. package/dist/runtime/state.js +99 -1
  258. package/dist/runtime/state.js.map +1 -0
  259. package/dist/ssg/batch-render.d.ts +10 -10
  260. package/dist/ssg/batch-render.d.ts.map +1 -1
  261. package/dist/ssg/batch-render.js +84 -1
  262. package/dist/ssg/batch-render.js.map +1 -0
  263. package/dist/ssg/create-static-gen.d.ts +28 -29
  264. package/dist/ssg/create-static-gen.d.ts.map +1 -1
  265. package/dist/ssg/create-static-gen.js +282 -1
  266. package/dist/ssg/create-static-gen.js.map +1 -0
  267. package/dist/ssg/generate-metadata.d.ts +12 -15
  268. package/dist/ssg/generate-metadata.d.ts.map +1 -1
  269. package/dist/ssg/generate-metadata.js +94 -1
  270. package/dist/ssg/generate-metadata.js.map +1 -0
  271. package/dist/ssg/incremental-manifest.js +56 -1
  272. package/dist/ssg/incremental-manifest.js.map +1 -0
  273. package/dist/ssg/index.d.ts +8 -28
  274. package/dist/ssg/index.js +7 -1
  275. package/dist/ssg/resolve-ssg-data.d.ts +10 -13
  276. package/dist/ssg/resolve-ssg-data.d.ts.map +1 -1
  277. package/dist/ssg/resolve-ssg-data.js +46 -1
  278. package/dist/ssg/resolve-ssg-data.js.map +1 -0
  279. package/dist/ssg/route-utils.d.ts +14 -10
  280. package/dist/ssg/route-utils.d.ts.map +1 -1
  281. package/dist/ssg/route-utils.js +24 -1
  282. package/dist/ssg/route-utils.js.map +1 -0
  283. package/dist/ssg/types.d.ts +157 -144
  284. package/dist/ssg/types.d.ts.map +1 -1
  285. package/dist/ssg/write-static-files.d.ts +8 -14
  286. package/dist/ssg/write-static-files.d.ts.map +1 -1
  287. package/dist/ssg/write-static-files.js +73 -1
  288. package/dist/ssg/write-static-files.js.map +1 -0
  289. package/dist/ssr/attrs.js +93 -1
  290. package/dist/ssr/attrs.js.map +1 -0
  291. package/dist/ssr/context.d.ts +31 -35
  292. package/dist/ssr/context.d.ts.map +1 -1
  293. package/dist/ssr/context.js +63 -1
  294. package/dist/ssr/context.js.map +1 -0
  295. package/dist/ssr/errors.d.ts +6 -4
  296. package/dist/ssr/errors.d.ts.map +1 -1
  297. package/dist/ssr/errors.js +4 -1
  298. package/dist/ssr/errors.js.map +1 -0
  299. package/dist/ssr/escape.js +153 -1
  300. package/dist/ssr/escape.js.map +1 -0
  301. package/dist/ssr/index.d.ts +74 -72
  302. package/dist/ssr/index.d.ts.map +1 -1
  303. package/dist/ssr/index.js +543 -1
  304. package/dist/ssr/index.js.map +1 -0
  305. package/dist/ssr/render-keys.d.ts +27 -29
  306. package/dist/ssr/render-keys.d.ts.map +1 -1
  307. package/dist/ssr/render-keys.js +39 -1
  308. package/dist/ssr/render-keys.js.map +1 -0
  309. package/dist/ssr/sink.js +86 -1
  310. package/dist/ssr/sink.js.map +1 -0
  311. package/dist/ssr/stream-render.js +76 -1
  312. package/dist/ssr/stream-render.js.map +1 -0
  313. package/dist/ssr/types.d.ts +14 -13
  314. package/dist/ssr/types.d.ts.map +1 -1
  315. package/package.json +49 -69
  316. package/dist/_virtual/___vite-browser-external.js +0 -1
  317. package/dist/_virtual/__vite-browser-external.js +0 -1
  318. package/dist/_virtual/_commonjsHelpers.js +0 -1
  319. package/dist/_virtual/_fs.js +0 -1
  320. package/dist/_virtual/_path.js +0 -1
  321. package/dist/_virtual/main.js +0 -1
  322. package/dist/_virtual/preload-helper.js +0 -1
  323. package/dist/bench/benchmark-entry.d.ts +0 -14
  324. package/dist/bench/benchmark-entry.d.ts.map +0 -1
  325. package/dist/common/errors.d.ts +0 -53
  326. package/dist/common/errors.d.ts.map +0 -1
  327. package/dist/common/index.d.ts +0 -14
  328. package/dist/common/index.d.ts.map +0 -1
  329. package/dist/dev/invariant.d.ts +0 -83
  330. package/dist/dev/invariant.d.ts.map +0 -1
  331. package/dist/dev/logger.d.ts +0 -13
  332. package/dist/dev/logger.d.ts.map +0 -1
  333. package/dist/dev/vite-plugin-askr.d.ts +0 -25
  334. package/dist/dev/vite-plugin-askr.d.ts.map +0 -1
  335. package/dist/dev/warnings.d.ts +0 -5
  336. package/dist/dev/warnings.d.ts.map +0 -1
  337. package/dist/for/for.d.ts +0 -16
  338. package/dist/for/for.d.ts.map +0 -1
  339. package/dist/for/for.js +0 -1
  340. package/dist/for/index.d.ts +0 -2
  341. package/dist/for/index.d.ts.map +0 -1
  342. package/dist/for/index.js +0 -1
  343. package/dist/foundations/core.d.ts +0 -23
  344. package/dist/foundations/core.d.ts.map +0 -1
  345. package/dist/foundations/core.js +0 -1
  346. package/dist/foundations/index.d.ts.map +0 -1
  347. package/dist/foundations/interactions/dismissable.d.ts +0 -58
  348. package/dist/foundations/interactions/dismissable.d.ts.map +0 -1
  349. package/dist/foundations/interactions/dismissable.js +0 -1
  350. package/dist/foundations/interactions/focusable.d.ts +0 -16
  351. package/dist/foundations/interactions/focusable.d.ts.map +0 -1
  352. package/dist/foundations/interactions/focusable.js +0 -1
  353. package/dist/foundations/interactions/hoverable.d.ts +0 -19
  354. package/dist/foundations/interactions/hoverable.d.ts.map +0 -1
  355. package/dist/foundations/interactions/hoverable.js +0 -1
  356. package/dist/foundations/interactions/index.d.ts +0 -5
  357. package/dist/foundations/interactions/index.d.ts.map +0 -1
  358. package/dist/foundations/interactions/interaction-policy.d.ts +0 -96
  359. package/dist/foundations/interactions/interaction-policy.d.ts.map +0 -1
  360. package/dist/foundations/interactions/pressable.d.ts +0 -54
  361. package/dist/foundations/interactions/pressable.d.ts.map +0 -1
  362. package/dist/foundations/interactions/roving-focus.d.ts +0 -117
  363. package/dist/foundations/interactions/roving-focus.d.ts.map +0 -1
  364. package/dist/foundations/interactions/roving-focus.js +0 -1
  365. package/dist/foundations/state/controllable.d.ts +0 -53
  366. package/dist/foundations/state/controllable.d.ts.map +0 -1
  367. package/dist/foundations/state/controllable.js +0 -1
  368. package/dist/foundations/state/index.d.ts +0 -2
  369. package/dist/foundations/state/index.d.ts.map +0 -1
  370. package/dist/foundations/structures/index.d.ts +0 -5
  371. package/dist/foundations/structures/index.d.ts.map +0 -1
  372. package/dist/foundations/structures.d.ts.map +0 -1
  373. package/dist/foundations/utilities/aria.d.ts +0 -13
  374. package/dist/foundations/utilities/aria.d.ts.map +0 -1
  375. package/dist/foundations/utilities/compose-handlers.d.ts +0 -34
  376. package/dist/foundations/utilities/compose-handlers.d.ts.map +0 -1
  377. package/dist/foundations/utilities/event-types.d.ts +0 -17
  378. package/dist/foundations/utilities/event-types.d.ts.map +0 -1
  379. package/dist/foundations/utilities/index.d.ts +0 -7
  380. package/dist/foundations/utilities/index.d.ts.map +0 -1
  381. package/dist/foundations/utilities/merge-props.d.ts +0 -2
  382. package/dist/foundations/utilities/merge-props.d.ts.map +0 -1
  383. package/dist/foundations/utilities/use-id.d.ts +0 -29
  384. package/dist/foundations/utilities/use-id.d.ts.map +0 -1
  385. package/dist/foundations/utilities/use-id.js +0 -1
  386. package/dist/fx/index.d.ts.map +0 -1
  387. package/dist/fx/noop.d.ts +0 -12
  388. package/dist/fx/noop.d.ts.map +0 -1
  389. package/dist/index.d.ts.map +0 -1
  390. package/dist/jsx/index.d.ts.map +0 -1
  391. package/dist/jsx/jsx-dev-runtime.d.ts +0 -4
  392. package/dist/jsx/jsx-dev-runtime.d.ts.map +0 -1
  393. package/dist/jsx/jsx-runtime.d.ts +0 -10
  394. package/dist/jsx/jsx-runtime.d.ts.map +0 -1
  395. package/dist/node_modules/esbuild/lib/main.js +0 -65
  396. package/dist/renderer/cleanup.d.ts +0 -28
  397. package/dist/renderer/cleanup.d.ts.map +0 -1
  398. package/dist/renderer/dom.d.ts +0 -64
  399. package/dist/renderer/dom.d.ts.map +0 -1
  400. package/dist/renderer/evaluate.d.ts +0 -4
  401. package/dist/renderer/evaluate.d.ts.map +0 -1
  402. package/dist/renderer/fastpath.d.ts +0 -7
  403. package/dist/renderer/fastpath.d.ts.map +0 -1
  404. package/dist/renderer/index.d.ts +0 -6
  405. package/dist/renderer/index.d.ts.map +0 -1
  406. package/dist/renderer/keyed.d.ts +0 -23
  407. package/dist/renderer/keyed.d.ts.map +0 -1
  408. package/dist/renderer/reconcile.d.ts +0 -88
  409. package/dist/renderer/reconcile.d.ts.map +0 -1
  410. package/dist/renderer/types.d.ts +0 -3
  411. package/dist/renderer/types.d.ts.map +0 -1
  412. package/dist/renderer/utils.d.ts +0 -63
  413. package/dist/renderer/utils.d.ts.map +0 -1
  414. package/dist/resources/index.d.ts.map +0 -1
  415. package/dist/router/index.d.ts.map +0 -1
  416. package/dist/router/match.d.ts +0 -22
  417. package/dist/router/match.d.ts.map +0 -1
  418. package/dist/runtime/dev-namespace.d.ts +0 -31
  419. package/dist/runtime/dev-namespace.d.ts.map +0 -1
  420. package/dist/runtime/events.d.ts +0 -53
  421. package/dist/runtime/events.d.ts.map +0 -1
  422. package/dist/runtime/execution-model.d.ts +0 -4
  423. package/dist/runtime/execution-model.d.ts.map +0 -1
  424. package/dist/runtime/fastlane.d.ts +0 -27
  425. package/dist/runtime/fastlane.d.ts.map +0 -1
  426. package/dist/runtime/hydration.d.ts +0 -25
  427. package/dist/runtime/hydration.d.ts.map +0 -1
  428. package/dist/runtime/perf-metrics.d.ts +0 -25
  429. package/dist/runtime/perf-metrics.d.ts.map +0 -1
  430. package/dist/runtime/resource-cell.d.ts +0 -35
  431. package/dist/runtime/resource-cell.d.ts.map +0 -1
  432. package/dist/runtime/snapshot.d.ts +0 -25
  433. package/dist/runtime/snapshot.d.ts.map +0 -1
  434. package/dist/runtime/ssr-bridge.d.ts +0 -10
  435. package/dist/runtime/ssr-bridge.d.ts.map +0 -1
  436. package/dist/ssg/discover-resources.d.ts +0 -15
  437. package/dist/ssg/discover-resources.d.ts.map +0 -1
  438. package/dist/ssg/incremental-manifest.d.ts +0 -23
  439. package/dist/ssg/incremental-manifest.d.ts.map +0 -1
  440. package/dist/ssg/index.d.ts.map +0 -1
  441. package/dist/ssr/attrs.d.ts +0 -26
  442. package/dist/ssr/attrs.d.ts.map +0 -1
  443. package/dist/ssr/create-ssr.d.ts +0 -19
  444. package/dist/ssr/create-ssr.d.ts.map +0 -1
  445. package/dist/ssr/escape.d.ts +0 -38
  446. package/dist/ssr/escape.d.ts.map +0 -1
  447. package/dist/ssr/sink.d.ts +0 -23
  448. package/dist/ssr/sink.d.ts.map +0 -1
  449. package/dist/ssr/stream-render.d.ts +0 -7
  450. package/dist/ssr/stream-render.d.ts.map +0 -1
  451. package/dist/vite/index.js +0 -4
@@ -1,14 +0,0 @@
1
- /**
2
- * Internal shared call contracts.
3
- *
4
- * Not part of the public root API; used to decouple internal modules.
5
- */
6
- export type { Props, ComponentNode } from './props';
7
- export { ELEMENT_TYPE, Fragment } from './jsx';
8
- export type { JSXElement } from './jsx';
9
- export type { VNode, DOMElement } from './vnode';
10
- export { _isDOMElement } from './vnode';
11
- export type { ComponentFunction, ComponentContext } from './component';
12
- export type { Route, RouteHandler, ResolvedRoute, RouteMatch, RouteQuery, RouteSnapshot, } from './router';
13
- export type { SSRData, SSRContext, RenderContext } from './ssr';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EACV,KAAK,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,EACV,aAAa,GACd,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC"}
@@ -1,83 +0,0 @@
1
- /**
2
- * Invariant assertion utilities for correctness checking
3
- * Production-safe: invariants are enforced at build-time or with minimal overhead
4
- *
5
- * Core principle: fail fast when invariants are violated
6
- * All functions throw descriptive errors for debugging
7
- */
8
- /**
9
- * Assert a condition; throw with context if false
10
- * @internal
11
- */
12
- export declare function invariant(condition: boolean, message: string, context?: Record<string, unknown>): asserts condition;
13
- /**
14
- * Assert object property exists and has correct type
15
- * @internal
16
- */
17
- export declare function assertProperty<T extends object, K extends keyof T>(obj: T, prop: K, expectedType?: string): asserts obj is T & Required<Pick<T, K>>;
18
- /**
19
- * Assert a reference is not null/undefined
20
- * @internal
21
- */
22
- export declare function assertDefined<T>(value: T | null | undefined, message: string): asserts value is T;
23
- /**
24
- * Assert a task runs exactly once atomically
25
- * Useful for verifying lifecycle events fire precisely when expected
26
- * @internal
27
- */
28
- export declare class Once {
29
- private called;
30
- private calledAt;
31
- readonly name: string;
32
- constructor(name: string);
33
- check(): boolean;
34
- mark(): void;
35
- reset(): void;
36
- }
37
- /**
38
- * Assert a value falls in an enumerated set
39
- * @internal
40
- */
41
- export declare function assertEnum<T extends readonly unknown[]>(value: unknown, allowedValues: T, fieldName: string): asserts value is T[number];
42
- /**
43
- * Assert execution context (scheduler, component, etc)
44
- * @internal
45
- */
46
- export declare function assertContext(actual: unknown, expected: unknown, contextName: string): asserts actual is typeof expected;
47
- /**
48
- * Assert scheduling precondition (not reentering, not during render, etc)
49
- * @internal
50
- */
51
- export declare function assertSchedulingPrecondition(condition: boolean, violationMessage: string): asserts condition;
52
- /**
53
- * Assert state precondition
54
- * @internal
55
- */
56
- export declare function assertStatePrecondition(condition: boolean, violationMessage: string): asserts condition;
57
- /**
58
- * Verify AbortController lifecycle
59
- * @internal
60
- */
61
- export declare function assertAbortControllerState(signal: AbortSignal, expectedAborted: boolean, context: string): void;
62
- /**
63
- * Guard: throw if callback is null when it shouldn't be
64
- * Used for notifyUpdate, event handlers, etc.
65
- * @internal
66
- */
67
- export declare function assertCallbackAvailable<T extends (...args: unknown[]) => unknown>(callback: T | null | undefined, callbackName: string): asserts callback is T;
68
- /**
69
- * Verify evaluation generation prevents stale evaluations
70
- * @internal
71
- */
72
- export declare function assertEvaluationGeneration(current: number, latest: number, context: string): void;
73
- /**
74
- * Verify mounted flag state
75
- * @internal
76
- */
77
- export declare function assertMountedState(mounted: boolean, expectedMounted: boolean, context: string): void;
78
- /**
79
- * Verify no null target when rendering
80
- * @internal
81
- */
82
- export declare function assertRenderTarget(target: Element | null, context: string): asserts target is Element;
83
- //# sourceMappingURL=invariant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../../src/dev/invariant.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,wBAAgB,SAAS,CACvB,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAAC,SAAS,CAKnB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAChE,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,CAAC,EACP,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAazC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC3B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,KAAK,IAAI,CAAC,CAEpB;AAED;;;;GAIG;AACH,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAuB;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM;IAIxB,KAAK,IAAI,OAAO;IAIhB,IAAI,IAAI,IAAI;IAUZ,KAAK,IAAI,IAAI;CAId;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EACrD,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,CAM5B;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,OAAO,EACjB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,IAAI,OAAO,QAAQ,CAMnC;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,OAAO,EAClB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,SAAS,CAEnB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,OAAO,EAClB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,SAAS,CAEnB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,WAAW,EACnB,eAAe,EAAE,OAAO,EACxB,OAAO,EAAE,MAAM,GACd,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EACzC,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,IAAI,CAAC,CAM7E;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd,IAAI,CAMN;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,OAAO,EACxB,OAAO,EAAE,MAAM,GACd,IAAI,CAMN;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,OAAO,GAAG,IAAI,EACtB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,IAAI,OAAO,CAI3B"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Centralized logger interface
3
- * - Keeps production builds silent for debug/warn/info messages
4
- * - Ensures consistent behavior across the codebase
5
- * - Protects against missing `console` in some environments
6
- */
7
- export declare const logger: {
8
- debug: (...args: unknown[]) => void;
9
- info: (...args: unknown[]) => void;
10
- warn: (...args: unknown[]) => void;
11
- error: (...args: unknown[]) => void;
12
- };
13
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/dev/logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,eAAO,MAAM,MAAM;qBACA,OAAO,EAAE;oBAKV,OAAO,EAAE;oBAKT,OAAO,EAAE;qBAKR,OAAO,EAAE;CAG3B,CAAC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Vite plugin for Askr
3
- *
4
- * Provides sensible defaults so Vite "just works" with Askr without extra config:
5
- * - Configures esbuild JSX injection and `optimizeDeps.include` so the runtime is available
6
- */
7
- import type { Plugin } from 'vite';
8
- export interface AskrVitePluginOptions {
9
- /** Enable the built-in JSX transform that rewrites JSX to Askr's automatic runtime. */
10
- transformJsx?: boolean;
11
- /**
12
- * Opt-in lightweight template lowering.
13
- * Current v1 optimization hoists repeated static class and style string literals.
14
- */
15
- optimizeTemplates?: boolean;
16
- /**
17
- * Deprecated no-op kept for compatibility with older configs.
18
- * SSR precompilation is no longer supported by this plugin.
19
- */
20
- ssrPrecompile?: boolean;
21
- }
22
- export declare function askrVitePlugin(opts?: AskrVitePluginOptions): Plugin;
23
- export declare const askr: typeof askrVitePlugin;
24
- export default askrVitePlugin;
25
- //# sourceMappingURL=vite-plugin-askr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite-plugin-askr.d.ts","sourceRoot":"","sources":["../../src/dev/vite-plugin-askr.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,WAAW,qBAAqB;IACpC,uFAAuF;IACvF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,IAAI,GAAE,qBAA0B,GAAG,MAAM,CAuFvE;AAoCD,eAAO,MAAM,IAAI,uBAAiB,CAAC;AAEnC,eAAe,cAAc,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Dev-only invariants and warnings
3
- */
4
- export declare function invariant(condition: boolean, message: string): void;
5
- //# sourceMappingURL=warnings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../src/dev/warnings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,wBAAgB,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAInE"}
package/dist/for/for.d.ts DELETED
@@ -1,16 +0,0 @@
1
- /**
2
- * For component primitive
3
- *
4
- * Creates a reactivity boundary for list iteration, preventing
5
- * parent re-execution when individual items update.
6
- */
7
- import { type State } from '../runtime/state';
8
- import { type DOMElement, type VNode } from '../common/vnode';
9
- /**
10
- * For primitive - creates a reactivity boundary for efficient list rendering.
11
- *
12
- * Instead of re-executing all rows when one changes, For creates isolated
13
- * component instances for each item, re-executing only items that changed.
14
- */
15
- export declare function For<T>(source: State<T[]> | (() => T[]), key: (item: T, index: number) => string | number, render: (item: T, index: () => number) => VNode): DOMElement;
16
- //# sourceMappingURL=for.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"for.d.ts","sourceRoot":"","sources":["../../src/for/for.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAS,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,KAAK,EAAoB,MAAM,iBAAiB,CAAC;AAGhF;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,CAAC,EACnB,MAAM,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,EAChC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,EAChD,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,MAAM,KAAK,KAAK,GAC9C,UAAU,CAqBZ"}
package/dist/for/for.js DELETED
@@ -1 +0,0 @@
1
- import{state as n}from"../runtime/state.js";import{__FOR_BOUNDARY__ as a}from"../common/vnode.js";import{createForState as f}from"../runtime/for.js";function c(t,o,r){const e=n(f(t,o,r))();return{type:a,props:{source:t},_forState:e}}export{c as For};
@@ -1,2 +0,0 @@
1
- export { For } from './for';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/for/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC"}
package/dist/for/index.js DELETED
@@ -1 +0,0 @@
1
- import{For as e}from"./for.js";export{e as For};
@@ -1,23 +0,0 @@
1
- export { composeHandlers } from './utilities/compose-handlers';
2
- export type { ComposeHandlersOptions } from './utilities/compose-handlers';
3
- export { mergeProps } from './utilities/merge-props';
4
- export { ariaDisabled, ariaExpanded, ariaSelected } from './utilities/aria';
5
- export { composeRefs, setRef } from './utilities/compose-ref';
6
- export type { Ref } from './utilities/compose-ref';
7
- export { formatId } from './utilities/use-id';
8
- export type { FormatIdOptions } from './utilities/use-id';
9
- export { pressable } from './interactions/pressable';
10
- export type { PressableOptions, PressableResult, } from './interactions/pressable';
11
- export { dismissable } from './interactions/dismissable';
12
- export type { DismissableOptions } from './interactions/dismissable';
13
- export { focusable } from './interactions/focusable';
14
- export type { FocusableOptions, FocusableResult, } from './interactions/focusable';
15
- export { hoverable } from './interactions/hoverable';
16
- export type { HoverableOptions, HoverableResult, } from './interactions/hoverable';
17
- export { rovingFocus } from './interactions/roving-focus';
18
- export type { RovingFocusOptions, RovingFocusResult, Orientation, } from './interactions/roving-focus';
19
- export { applyInteractionPolicy, mergeInteractionProps, } from './interactions/interaction-policy';
20
- export type { InteractionPolicyInput } from './interactions/interaction-policy';
21
- export { isControlled, resolveControllable, makeControllable, controllableState, } from './state/controllable';
22
- export type { ControllableState } from './state/controllable';
23
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/foundations/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,YAAY,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- import{composeHandlers as r}from"./utilities/compose-handlers.js";import{mergeProps as a}from"./utilities/merge-props.js";import{ariaDisabled as p,ariaExpanded as m,ariaSelected as s}from"./utilities/aria.js";import{composeRefs as x,setRef as i}from"./utilities/compose-ref.js";import{formatId as c}from"./utilities/use-id.js";import{pressable as d}from"./interactions/pressable.js";import{dismissable as v}from"./interactions/dismissable.js";import{focusable as I}from"./interactions/focusable.js";import{hoverable as u}from"./interactions/hoverable.js";import{rovingFocus as R}from"./interactions/roving-focus.js";import{applyInteractionPolicy as h,mergeInteractionProps as k}from"./interactions/interaction-policy.js";import{controllableState as E,isControlled as F,makeControllable as H,resolveControllable as j}from"./state/controllable.js";export{h as applyInteractionPolicy,p as ariaDisabled,m as ariaExpanded,s as ariaSelected,r as composeHandlers,x as composeRefs,E as controllableState,v as dismissable,I as focusable,c as formatId,u as hoverable,F as isControlled,H as makeControllable,k as mergeInteractionProps,a as mergeProps,d as pressable,j as resolveControllable,R as rovingFocus,i as setRef};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/foundations/index.ts"],"names":[],"mappings":"AAKA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -1,58 +0,0 @@
1
- /**
2
- * dismissable
3
- *
4
- * THE dismissal primitive. Handles Escape key and outside interactions.
5
- *
6
- * INVARIANTS:
7
- * 1. Returns props that compose via mergeProps (no factories)
8
- * 2. Disabled state respected exactly once, here
9
- * 3. No side effects - pure props generation
10
- * 4. Outside detection requires explicit node reference
11
- * 5. This is the ONLY dismissal primitive - do not create alternatives
12
- *
13
- * DESIGN:
14
- * - Returns standard event handler props (onKeyDown, onPointerDownCapture)
15
- * - Composable via mergeProps with other foundations
16
- * - Caller provides node reference for outside detection
17
- * - Single onDismiss callback for all dismiss triggers
18
- *
19
- * PIT OF SUCCESS:
20
- * ✓ Can't accidentally bypass (only way to get dismiss behavior)
21
- * ✓ Can't duplicate (disabled checked once)
22
- * ✓ Composes via mergeProps (standard props)
23
- * ✓ Wrong usage is hard (no factories to misuse)
24
- *
25
- * USAGE:
26
- * const props = dismissable({
27
- * node: elementRef,
28
- * disabled: false,
29
- * onDismiss: () => close()
30
- * });
31
- *
32
- * <div ref={elementRef} {...props}>Content</div>
33
- *
34
- * MISUSE EXAMPLE (PREVENTED):
35
- * ❌ Can't forget to check disabled - checked inside dismissable
36
- * ❌ Can't create custom escape handler - this is the only one
37
- * ❌ Can't bypass via direct event listeners - mergeProps composes correctly
38
- */
39
- export interface DismissableOptions {
40
- /**
41
- * Reference to the element for outside click detection
42
- */
43
- node?: Node | null;
44
- /**
45
- * Whether dismiss is disabled
46
- */
47
- disabled?: boolean;
48
- /**
49
- * Called when dismiss is triggered (Escape or outside click)
50
- */
51
- onDismiss?: (trigger: 'escape' | 'outside') => void;
52
- }
53
- import type { KeyboardLikeEvent, PointerLikeEvent } from '../utilities/event-types';
54
- export declare function dismissable({ node, disabled, onDismiss }: DismissableOptions): {
55
- onKeyDown: (e: KeyboardLikeEvent) => void;
56
- onPointerDownCapture: (e: PointerLikeEvent) => void;
57
- };
58
- //# sourceMappingURL=dismissable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dismissable.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/dismissable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC;CACrD;AAED,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAElC,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,kBAAkB;mBACjD,iBAAiB;8BASN,gBAAgB;EAoBtD"}
@@ -1 +0,0 @@
1
- function u({node:t,disabled:e,onDismiss:r}){function i(n){e||n.key==="Escape"&&(n.preventDefault?.(),n.stopPropagation?.(),r?.("escape"))}function a(n){if(e)return;const o=n.target;o instanceof Node&&t&&(t.contains(o)||r?.("outside"))}return{onKeyDown:i,onPointerDownCapture:a}}export{u as dismissable};
@@ -1,16 +0,0 @@
1
- /**
2
- * focusable
3
- *
4
- * Normalize focus-related props for hosts.
5
- * - No DOM manipulation here; returns props that the runtime may attach.
6
- */
7
- export interface FocusableOptions {
8
- disabled?: boolean;
9
- tabIndex?: number | undefined;
10
- }
11
- export interface FocusableResult {
12
- tabIndex?: number;
13
- 'aria-disabled'?: 'true';
14
- }
15
- export declare function focusable({ disabled, tabIndex, }: FocusableOptions): FocusableResult;
16
- //# sourceMappingURL=focusable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focusable.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/focusable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,QAAQ,GACT,EAAE,gBAAgB,GAAG,eAAe,CAKpC"}
@@ -1 +0,0 @@
1
- import{ariaDisabled as i}from"../utilities/aria.js";function a({disabled:o,tabIndex:r}){return{tabIndex:o?-1:r===void 0?0:r,...i(o)}}export{a as focusable};
@@ -1,19 +0,0 @@
1
- /**
2
- * hoverable
3
- *
4
- * Produces props for pointer enter/leave handling. Pure and deterministic.
5
- */
6
- export interface HoverableOptions {
7
- disabled?: boolean;
8
- onEnter?: (e: HoverEvent) => void;
9
- onLeave?: (e: HoverEvent) => void;
10
- }
11
- import type { DefaultPreventable, PropagationStoppable } from '../utilities/event-types';
12
- type HoverEvent = DefaultPreventable & PropagationStoppable;
13
- export interface HoverableResult {
14
- onPointerEnter?: (e: HoverEvent) => void;
15
- onPointerLeave?: (e: HoverEvent) => void;
16
- }
17
- export declare function hoverable({ disabled, onEnter, onLeave, }: HoverableOptions): HoverableResult;
18
- export {};
19
- //# sourceMappingURL=hoverable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hoverable.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/hoverable.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACnC;AAED,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAElC,KAAK,UAAU,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAE5D,MAAM,WAAW,eAAe;IAC9B,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAO,EACP,OAAO,GACR,EAAE,gBAAgB,GAAG,eAAe,CAapC"}
@@ -1 +0,0 @@
1
- function t({disabled:e,onEnter:n,onLeave:r}){return{onPointerEnter:e?void 0:o=>{n?.(o)},onPointerLeave:e?void 0:o=>{r?.(o)}}}export{t as hoverable};
@@ -1,5 +0,0 @@
1
- export * from './pressable';
2
- export * from './focusable';
3
- export * from './hoverable';
4
- export * from './dismissable';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -1,96 +0,0 @@
1
- /**
2
- * INTERACTION POLICY (FRAMEWORK LAW)
3
- *
4
- * This is THE ONLY way to create interactive elements. Components MUST NOT
5
- * implement interaction logic directly.
6
- *
7
- * INVARIANTS (ENFORCED):
8
- * 1. "Press" is the semantic. Click/touch/Enter/Space are implementation details.
9
- * 2. Disabled is enforced exactly once, here. Components may not check disabled.
10
- * 3. Keyboard handling is automatic. Components may not add onKeyDown for activation.
11
- * 4. Native elements opt out of polyfills, not semantics.
12
- * 5. asChild may replace the host element, not interaction behavior.
13
- * 6. This policy is the SINGLE SOURCE OF TRUTH for interactive behavior.
14
- *
15
- * DESIGN:
16
- * - Single public function: applyInteractionPolicy
17
- * - Returns props that compose via mergeProps
18
- * - Delegates to pressable for mechanics
19
- * - Enforces disabled once and only once
20
- * - No configuration beyond disabled and native element type
21
- *
22
- * PIT OF SUCCESS:
23
- * ✓ Can't bypass policy (only way to get interaction behavior)
24
- * ✓ Can't duplicate disabled checks (enforced once, here)
25
- * ✓ Can't write custom keyboard handlers for buttons (policy owns it)
26
- * ✓ Composes via mergeProps (standard props)
27
- * ✓ Wrong usage is impossible (no escape hatch)
28
- *
29
- * USAGE:
30
- * function Button({ onPress, disabled }) {
31
- * const interaction = applyInteractionPolicy({
32
- * isNative: true,
33
- * disabled,
34
- * onPress
35
- * });
36
- *
37
- * return <button {...interaction}>Click me</button>;
38
- * }
39
- *
40
- * MISUSE EXAMPLE (PREVENTED):
41
- * ❌ Button checking disabled again:
42
- * function Button({ disabled, onPress }) {
43
- * if (disabled) return; // NO! Policy handles this
44
- * const interaction = applyInteractionPolicy(...);
45
- * }
46
- *
47
- * ❌ Custom keyboard handler:
48
- * function Button({ onPress }) {
49
- * const interaction = applyInteractionPolicy(...);
50
- * return <button {...interaction} onKeyDown={...}>; // NO! Policy owns this
51
- * }
52
- *
53
- * ❌ Direct event handler:
54
- * <button onClick={onPress}>; // NO! Use applyInteractionPolicy
55
- */
56
- import { Ref } from '../utilities/compose-ref';
57
- export interface InteractionPolicyInput {
58
- /** Whether the host element is a native interactive element (button, a, etc) */
59
- isNative: boolean;
60
- /** Disabled state - checked ONLY here, never in components */
61
- disabled: boolean;
62
- /** User-provided press handler - semantic action, not DOM event */
63
- onPress?: (e: Event) => void;
64
- /** Optional ref to compose */
65
- ref?: Ref<unknown>;
66
- }
67
- /**
68
- * THE interaction policy. Components MUST use this, NEVER implement
69
- * interaction logic directly.
70
- */
71
- export declare function applyInteractionPolicy({ isNative, disabled, onPress, ref, }: InteractionPolicyInput): {
72
- disabled: true | undefined;
73
- onClick: (e: Event) => void;
74
- ref: Ref<unknown>;
75
- } | {
76
- 'aria-disabled': true | undefined;
77
- tabIndex: number;
78
- ref: Ref<unknown>;
79
- onClick: (e: import("../utilities").DefaultPreventable & import("../utilities").PropagationStoppable) => void;
80
- disabled?: true;
81
- role?: "button";
82
- onKeyDown?: (e: import("../utilities").KeyboardLikeEvent) => void;
83
- onKeyUp?: (e: import("../utilities").KeyboardLikeEvent) => void;
84
- };
85
- /**
86
- * Merge rule for Slot / asChild
87
- *
88
- * Precedence:
89
- * policy → user → child
90
- *
91
- * Event handlers are composed (policy first).
92
- * Refs are always composed.
93
- * Policy props MUST take precedence to enforce invariants.
94
- */
95
- export declare function mergeInteractionProps(childProps: Record<string, unknown>, policyProps: Record<string, unknown>, userProps?: Record<string, unknown>): Record<string, unknown>;
96
- //# sourceMappingURL=interaction-policy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interaction-policy.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/interaction-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAIH,OAAO,EAAe,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAG5D,MAAM,WAAW,sBAAsB;IACrC,gFAAgF;IAChF,QAAQ,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,QAAQ,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC7B,8BAA8B;IAC9B,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,GAAG,GACJ,EAAE,sBAAsB;;iBAcN,KAAK;;;;;;;;;;;EAkBvB;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2BAiCpC"}
@@ -1,54 +0,0 @@
1
- /**
2
- * pressable
3
- *
4
- * Interaction helper that produces VNode props for 'press' semantics.
5
- * - Pure and deterministic: no DOM construction or mutation here
6
- * - The runtime owns event attachment and scheduling
7
- * - This helper returns plain props (handlers) intended to be attached by the runtime
8
- *
9
- * Behaviour:
10
- * - For native buttons: only an `onClick` prop is provided (no ARIA or keyboard shims)
11
- * - For non-button elements: add `role="button"` and `tabIndex` and keyboard handlers
12
- * - Activation: `Enter` activates on keydown, `Space` activates on keyup (matches native button)
13
- * - Disabled: handlers short-circuit and `aria-disabled` is set for all hosts
14
- *
15
- * POLICY DECISIONS (LOCKED):
16
- *
17
- * 1. Activation Timing (Platform Parity)
18
- * - Enter fires on keydown (immediate response)
19
- * - Space fires on keyup (allows cancel by moving focus, matches native)
20
- * - Space keydown prevents scroll (matches native button behavior)
21
- *
22
- * 2. Disabled Enforcement Strategy
23
- * - Native buttons: Use HTML `disabled` attribute (platform-enforced non-interactivity)
24
- * AND `aria-disabled` (consistent a11y signaling)
25
- * - Non-native: Use `tabIndex=-1` (removes from tab order)
26
- * AND `aria-disabled` (signals disabled state to AT)
27
- * - Click handler short-circuits as defense-in-depth (prevents leaked focus issues)
28
- *
29
- * 3. Key Repeat Behavior
30
- * - Held Enter/Space will fire onPress repeatedly (matches native button)
31
- * - No debouncing or repeat prevention (platform parity)
32
- */
33
- export interface PressableOptions {
34
- disabled?: boolean;
35
- onPress?: (e: PressEvent) => void;
36
- /**
37
- * Whether the host is a native button. Defaults to false.
38
- */
39
- isNativeButton?: boolean;
40
- }
41
- import type { DefaultPreventable, KeyboardLikeEvent, PropagationStoppable } from '../utilities/event-types';
42
- type PressEvent = DefaultPreventable & PropagationStoppable;
43
- export interface PressableResult {
44
- onClick: (e: PressEvent) => void;
45
- disabled?: true;
46
- role?: 'button';
47
- tabIndex?: number;
48
- onKeyDown?: (e: KeyboardLikeEvent) => void;
49
- onKeyUp?: (e: KeyboardLikeEvent) => void;
50
- 'aria-disabled'?: 'true';
51
- }
52
- export declare function pressable({ disabled, onPress, isNativeButton, }: PressableOptions): PressableResult;
53
- export {};
54
- //# sourceMappingURL=pressable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pressable.d.ts","sourceRoot":"","sources":["../../../src/foundations/interactions/pressable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAGlC,KAAK,UAAU,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;AAE5D,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAO,EACP,cAAsB,GACvB,EAAE,gBAAgB,GAAG,eAAe,CAwDpC"}