foldkit-primitives 0.15.3 → 0.16.0

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 (422) hide show
  1. package/dist/device/fullscreen.d.ts +28 -0
  2. package/dist/device/fullscreen.d.ts.map +1 -0
  3. package/dist/device/fullscreen.js +69 -0
  4. package/dist/device/fullscreen.js.map +1 -0
  5. package/dist/device/geolocation.d.ts +56 -0
  6. package/dist/device/geolocation.d.ts.map +1 -0
  7. package/dist/device/geolocation.js +87 -0
  8. package/dist/device/geolocation.js.map +1 -0
  9. package/dist/device/index.d.ts +5 -0
  10. package/dist/device/index.js +6 -0
  11. package/dist/device/media-devices.d.ts +88 -0
  12. package/dist/device/media-devices.d.ts.map +1 -0
  13. package/dist/device/media-devices.js +117 -0
  14. package/dist/device/media-devices.js.map +1 -0
  15. package/dist/device/media-stream.d.ts +93 -0
  16. package/dist/device/media-stream.d.ts.map +1 -0
  17. package/dist/device/media-stream.js +106 -0
  18. package/dist/device/media-stream.js.map +1 -0
  19. package/dist/device/permissions.d.ts +106 -0
  20. package/dist/device/permissions.d.ts.map +1 -0
  21. package/dist/device/permissions.js +143 -0
  22. package/dist/device/permissions.js.map +1 -0
  23. package/dist/dom/autofocus.d.ts +15 -0
  24. package/dist/dom/autofocus.d.ts.map +1 -0
  25. package/dist/dom/autofocus.js +22 -0
  26. package/dist/dom/autofocus.js.map +1 -0
  27. package/dist/dom/clipboard.d.ts +30 -0
  28. package/dist/dom/clipboard.d.ts.map +1 -0
  29. package/dist/dom/clipboard.js +50 -0
  30. package/dist/dom/clipboard.js.map +1 -0
  31. package/dist/dom/editable-text.d.ts +72 -0
  32. package/dist/dom/editable-text.d.ts.map +1 -0
  33. package/dist/dom/editable-text.js +232 -0
  34. package/dist/dom/editable-text.js.map +1 -0
  35. package/dist/dom/fluid-hover.d.ts +93 -0
  36. package/dist/dom/fluid-hover.d.ts.map +1 -0
  37. package/dist/dom/fluid-hover.js +294 -0
  38. package/dist/dom/fluid-hover.js.map +1 -0
  39. package/dist/dom/focus-scope.d.ts +21 -0
  40. package/dist/dom/focus-scope.d.ts.map +1 -0
  41. package/dist/dom/focus-scope.js +93 -0
  42. package/dist/dom/focus-scope.js.map +1 -0
  43. package/dist/dom/follow-tab-stop.d.ts +11 -0
  44. package/dist/dom/follow-tab-stop.d.ts.map +1 -0
  45. package/dist/dom/follow-tab-stop.js +54 -0
  46. package/dist/dom/follow-tab-stop.js.map +1 -0
  47. package/dist/dom/image-decode.d.ts +27 -0
  48. package/dist/dom/image-decode.d.ts.map +1 -0
  49. package/dist/dom/image-decode.js +50 -0
  50. package/dist/dom/image-decode.js.map +1 -0
  51. package/dist/dom/index.d.ts +24 -0
  52. package/dist/dom/index.js +25 -0
  53. package/dist/dom/input-mask.d.ts +35 -0
  54. package/dist/dom/input-mask.d.ts.map +1 -0
  55. package/dist/dom/input-mask.js +90 -0
  56. package/dist/dom/input-mask.js.map +1 -0
  57. package/dist/dom/keep-in-view.d.ts +16 -0
  58. package/dist/dom/keep-in-view.d.ts.map +1 -0
  59. package/dist/dom/keep-in-view.js +38 -0
  60. package/dist/dom/keep-in-view.js.map +1 -0
  61. package/dist/dom/keyboard-inset.d.ts +29 -0
  62. package/dist/dom/keyboard-inset.d.ts.map +1 -0
  63. package/dist/dom/keyboard-inset.js +45 -0
  64. package/dist/dom/keyboard-inset.js.map +1 -0
  65. package/dist/dom/layers.d.ts +6 -0
  66. package/dist/dom/layers.d.ts.map +1 -0
  67. package/dist/dom/layers.js +35 -0
  68. package/dist/dom/layers.js.map +1 -0
  69. package/dist/dom/measure.d.ts +42 -0
  70. package/dist/dom/measure.d.ts.map +1 -0
  71. package/dist/dom/measure.js +123 -0
  72. package/dist/dom/measure.js.map +1 -0
  73. package/dist/dom/move.d.ts +45 -0
  74. package/dist/dom/move.d.ts.map +1 -0
  75. package/dist/dom/move.js +96 -0
  76. package/dist/dom/move.js.map +1 -0
  77. package/dist/dom/pointed-links.d.ts +13 -0
  78. package/dist/dom/pointed-links.d.ts.map +1 -0
  79. package/dist/dom/pointed-links.js +59 -0
  80. package/dist/dom/pointed-links.js.map +1 -0
  81. package/dist/dom/pointer-drag.d.ts +132 -0
  82. package/dist/dom/pointer-drag.d.ts.map +1 -0
  83. package/dist/dom/pointer-drag.js +307 -0
  84. package/dist/dom/pointer-drag.js.map +1 -0
  85. package/dist/dom/pointer-position.d.ts +133 -0
  86. package/dist/dom/pointer-position.d.ts.map +1 -0
  87. package/dist/dom/pointer-position.js +173 -0
  88. package/dist/dom/pointer-position.js.map +1 -0
  89. package/dist/dom/script-loader.d.ts +12 -0
  90. package/dist/dom/script-loader.d.ts.map +1 -0
  91. package/dist/dom/script-loader.js +54 -0
  92. package/dist/dom/script-loader.js.map +1 -0
  93. package/dist/dom/scroll-bars.d.ts +52 -0
  94. package/dist/dom/scroll-bars.d.ts.map +1 -0
  95. package/dist/dom/scroll-bars.js +259 -0
  96. package/dist/dom/scroll-bars.js.map +1 -0
  97. package/dist/dom/scroll-settle.d.ts +33 -0
  98. package/dist/dom/scroll-settle.d.ts.map +1 -0
  99. package/dist/dom/scroll-settle.js +84 -0
  100. package/dist/dom/scroll-settle.js.map +1 -0
  101. package/dist/dom/scroll.d.ts +21 -0
  102. package/dist/dom/scroll.d.ts.map +1 -0
  103. package/dist/dom/scroll.js +141 -0
  104. package/dist/dom/scroll.js.map +1 -0
  105. package/dist/dom/share.d.ts +19 -0
  106. package/dist/dom/share.d.ts.map +1 -0
  107. package/dist/dom/share.js +41 -0
  108. package/dist/dom/share.js.map +1 -0
  109. package/dist/dom/swipe.d.ts +121 -0
  110. package/dist/dom/swipe.d.ts.map +1 -0
  111. package/dist/dom/swipe.js +291 -0
  112. package/dist/dom/swipe.js.map +1 -0
  113. package/dist/dom/targets.d.ts +45 -0
  114. package/dist/dom/targets.d.ts.map +1 -0
  115. package/dist/dom/targets.js +70 -0
  116. package/dist/dom/targets.js.map +1 -0
  117. package/dist/dom/track-box.d.ts +61 -0
  118. package/dist/dom/track-box.d.ts.map +1 -0
  119. package/dist/dom/track-box.js +131 -0
  120. package/dist/dom/track-box.js.map +1 -0
  121. package/dist/events/active-element.d.ts +15 -0
  122. package/dist/events/active-element.d.ts.map +1 -0
  123. package/dist/events/active-element.js +33 -0
  124. package/dist/events/active-element.js.map +1 -0
  125. package/dist/events/hotkeys.d.ts +22 -0
  126. package/dist/events/hotkeys.d.ts.map +1 -0
  127. package/dist/events/hotkeys.js +56 -0
  128. package/dist/events/hotkeys.js.map +1 -0
  129. package/dist/events/idle.d.ts +29 -0
  130. package/dist/events/idle.d.ts.map +1 -0
  131. package/dist/events/idle.js +51 -0
  132. package/dist/events/idle.js.map +1 -0
  133. package/dist/events/index.d.ts +9 -0
  134. package/dist/events/index.js +10 -0
  135. package/dist/{input-modality-BY-bSrEc.d.mts → events/input-modality.d.ts} +9 -12
  136. package/dist/events/input-modality.d.ts.map +1 -0
  137. package/dist/{input-modality-BXD383jg.mjs → events/input-modality.js} +3 -4
  138. package/dist/events/input-modality.js.map +1 -0
  139. package/dist/events/keyboard.d.ts +30 -0
  140. package/dist/events/keyboard.d.ts.map +1 -0
  141. package/dist/events/keyboard.js +55 -0
  142. package/dist/events/keyboard.js.map +1 -0
  143. package/dist/events/pointer.d.ts +15 -0
  144. package/dist/events/pointer.d.ts.map +1 -0
  145. package/dist/events/pointer.js +28 -0
  146. package/dist/events/pointer.js.map +1 -0
  147. package/dist/events/scroll.d.ts +16 -0
  148. package/dist/events/scroll.d.ts.map +1 -0
  149. package/dist/events/scroll.js +29 -0
  150. package/dist/events/scroll.js.map +1 -0
  151. package/dist/events/visibility.d.ts +25 -0
  152. package/dist/events/visibility.d.ts.map +1 -0
  153. package/dist/events/visibility.js +28 -0
  154. package/dist/events/visibility.js.map +1 -0
  155. package/dist/events/window-size.d.ts +30 -0
  156. package/dist/events/window-size.d.ts.map +1 -0
  157. package/dist/events/window-size.js +63 -0
  158. package/dist/events/window-size.js.map +1 -0
  159. package/dist/index.d.ts +9 -0
  160. package/dist/index.js +10 -0
  161. package/dist/interaction/bundle-behavior.d.ts +37 -0
  162. package/dist/interaction/bundle-behavior.d.ts.map +1 -0
  163. package/dist/interaction/bundle-behavior.js +34 -0
  164. package/dist/interaction/bundle-behavior.js.map +1 -0
  165. package/dist/interaction/dismiss-layer.d.ts +100 -0
  166. package/dist/interaction/dismiss-layer.d.ts.map +1 -0
  167. package/dist/interaction/dismiss-layer.js +140 -0
  168. package/dist/interaction/dismiss-layer.js.map +1 -0
  169. package/dist/interaction/editable-text.d.ts +13 -0
  170. package/dist/interaction/editable-text.d.ts.map +1 -0
  171. package/dist/interaction/editable-text.js +17 -0
  172. package/dist/interaction/editable-text.js.map +1 -0
  173. package/dist/interaction/focus-scope.d.ts +21 -0
  174. package/dist/interaction/focus-scope.d.ts.map +1 -0
  175. package/dist/interaction/focus-scope.js +25 -0
  176. package/dist/interaction/focus-scope.js.map +1 -0
  177. package/dist/interaction/focus-visible.d.ts +9 -0
  178. package/dist/interaction/focus-visible.d.ts.map +1 -0
  179. package/dist/interaction/focus-visible.js +10 -0
  180. package/dist/interaction/focus-visible.js.map +1 -0
  181. package/dist/interaction/grid-navigation.d.ts +73 -0
  182. package/dist/interaction/grid-navigation.d.ts.map +1 -0
  183. package/dist/interaction/grid-navigation.js +137 -0
  184. package/dist/interaction/grid-navigation.js.map +1 -0
  185. package/dist/interaction/index.d.ts +21 -0
  186. package/dist/interaction/index.js +21 -0
  187. package/dist/interaction/layers.d.ts +12 -0
  188. package/dist/interaction/layers.d.ts.map +1 -0
  189. package/dist/interaction/layers.js +14 -0
  190. package/dist/interaction/layers.js.map +1 -0
  191. package/dist/interaction/list-navigation.d.ts +105 -0
  192. package/dist/interaction/list-navigation.d.ts.map +1 -0
  193. package/dist/interaction/list-navigation.js +168 -0
  194. package/dist/interaction/list-navigation.js.map +1 -0
  195. package/dist/interaction/live-announce.d.ts +70 -0
  196. package/dist/interaction/live-announce.d.ts.map +1 -0
  197. package/dist/interaction/live-announce.js +115 -0
  198. package/dist/interaction/live-announce.js.map +1 -0
  199. package/dist/interaction/long-press.d.ts +102 -0
  200. package/dist/interaction/long-press.d.ts.map +1 -0
  201. package/dist/interaction/long-press.js +115 -0
  202. package/dist/interaction/long-press.js.map +1 -0
  203. package/dist/interaction/move.d.ts +10 -0
  204. package/dist/interaction/move.d.ts.map +1 -0
  205. package/dist/interaction/move.js +17 -0
  206. package/dist/interaction/move.js.map +1 -0
  207. package/dist/interaction/overlay.d.ts +45 -0
  208. package/dist/interaction/overlay.d.ts.map +1 -0
  209. package/dist/interaction/overlay.js +57 -0
  210. package/dist/interaction/overlay.js.map +1 -0
  211. package/dist/interaction/placing.d.ts +86 -0
  212. package/dist/interaction/placing.d.ts.map +1 -0
  213. package/dist/interaction/placing.js +239 -0
  214. package/dist/interaction/placing.js.map +1 -0
  215. package/dist/interaction/pointer-drag.d.ts +23 -0
  216. package/dist/interaction/pointer-drag.d.ts.map +1 -0
  217. package/dist/interaction/pointer-drag.js +21 -0
  218. package/dist/interaction/pointer-drag.js.map +1 -0
  219. package/dist/interaction/press.d.ts +152 -0
  220. package/dist/interaction/press.d.ts.map +1 -0
  221. package/dist/interaction/press.js +229 -0
  222. package/dist/interaction/press.js.map +1 -0
  223. package/dist/interaction/roving-tabindex.d.ts +85 -0
  224. package/dist/interaction/roving-tabindex.d.ts.map +1 -0
  225. package/dist/interaction/roving-tabindex.js +142 -0
  226. package/dist/interaction/roving-tabindex.js.map +1 -0
  227. package/dist/interaction/selection.d.ts +72 -0
  228. package/dist/interaction/selection.d.ts.map +1 -0
  229. package/dist/interaction/selection.js +129 -0
  230. package/dist/interaction/selection.js.map +1 -0
  231. package/dist/interaction/targets.d.ts +15 -0
  232. package/dist/interaction/targets.d.ts.map +1 -0
  233. package/dist/interaction/targets.js +20 -0
  234. package/dist/interaction/targets.js.map +1 -0
  235. package/dist/interaction/tree-navigation.d.ts +111 -0
  236. package/dist/interaction/tree-navigation.d.ts.map +1 -0
  237. package/dist/interaction/tree-navigation.js +207 -0
  238. package/dist/interaction/tree-navigation.js.map +1 -0
  239. package/dist/interaction/typeahead.d.ts +73 -0
  240. package/dist/interaction/typeahead.d.ts.map +1 -0
  241. package/dist/interaction/typeahead.js +113 -0
  242. package/dist/interaction/typeahead.js.map +1 -0
  243. package/dist/internal.d.ts +16 -0
  244. package/dist/internal.d.ts.map +1 -0
  245. package/dist/{internal-DP-xLKbT.mjs → internal.js} +8 -7
  246. package/dist/internal.js.map +1 -0
  247. package/dist/media/breakpoints.d.ts +37 -0
  248. package/dist/media/breakpoints.d.ts.map +1 -0
  249. package/dist/media/breakpoints.js +64 -0
  250. package/dist/media/breakpoints.js.map +1 -0
  251. package/dist/media/index.d.ts +3 -0
  252. package/dist/media/index.js +4 -0
  253. package/dist/media/mediaquery.d.ts +40 -0
  254. package/dist/media/mediaquery.d.ts.map +1 -0
  255. package/dist/media/mediaquery.js +42 -0
  256. package/dist/media/mediaquery.js.map +1 -0
  257. package/dist/media/platform.d.ts +30 -0
  258. package/dist/media/platform.d.ts.map +1 -0
  259. package/dist/media/platform.js +50 -0
  260. package/dist/media/platform.js.map +1 -0
  261. package/dist/motion/index.d.ts +5 -0
  262. package/dist/motion/index.js +5 -0
  263. package/dist/motion/motion.d.ts +16 -0
  264. package/dist/motion/motion.d.ts.map +1 -0
  265. package/dist/motion/motion.js +25 -0
  266. package/dist/motion/motion.js.map +1 -0
  267. package/dist/motion/presence.d.ts +37 -0
  268. package/dist/motion/presence.d.ts.map +1 -0
  269. package/dist/motion/presence.js +65 -0
  270. package/dist/motion/presence.js.map +1 -0
  271. package/dist/motion/spring.d.ts +50 -0
  272. package/dist/motion/spring.d.ts.map +1 -0
  273. package/dist/motion/spring.js +92 -0
  274. package/dist/motion/spring.js.map +1 -0
  275. package/dist/motion/tween.d.ts +44 -0
  276. package/dist/motion/tween.d.ts.map +1 -0
  277. package/dist/motion/tween.js +65 -0
  278. package/dist/motion/tween.js.map +1 -0
  279. package/dist/net/broadcast.d.ts +39 -0
  280. package/dist/net/broadcast.d.ts.map +1 -0
  281. package/dist/net/broadcast.js +73 -0
  282. package/dist/net/broadcast.js.map +1 -0
  283. package/dist/net/index.d.ts +5 -0
  284. package/dist/net/index.js +6 -0
  285. package/dist/net/online.d.ts +24 -0
  286. package/dist/net/online.d.ts.map +1 -0
  287. package/dist/net/online.js +26 -0
  288. package/dist/net/online.js.map +1 -0
  289. package/dist/net/sharedHost.d.ts +64 -0
  290. package/dist/net/sharedHost.d.ts.map +1 -0
  291. package/dist/net/sharedHost.js +124 -0
  292. package/dist/net/sharedHost.js.map +1 -0
  293. package/dist/net/sse.d.ts +115 -0
  294. package/dist/net/sse.d.ts.map +1 -0
  295. package/dist/net/sse.js +138 -0
  296. package/dist/net/sse.js.map +1 -0
  297. package/dist/net/websocket.d.ts +172 -0
  298. package/dist/net/websocket.d.ts.map +1 -0
  299. package/dist/net/websocket.js +199 -0
  300. package/dist/net/websocket.js.map +1 -0
  301. package/dist/observers/bounds.d.ts +24 -0
  302. package/dist/observers/bounds.d.ts.map +1 -0
  303. package/dist/observers/bounds.js +51 -0
  304. package/dist/observers/bounds.js.map +1 -0
  305. package/dist/observers/index.d.ts +4 -0
  306. package/dist/observers/index.js +5 -0
  307. package/dist/observers/intersection.d.ts +18 -0
  308. package/dist/observers/intersection.d.ts.map +1 -0
  309. package/dist/observers/intersection.js +33 -0
  310. package/dist/observers/intersection.js.map +1 -0
  311. package/dist/observers/mutation.d.ts +25 -0
  312. package/dist/observers/mutation.d.ts.map +1 -0
  313. package/dist/observers/mutation.js +53 -0
  314. package/dist/observers/mutation.js.map +1 -0
  315. package/dist/observers/resize.d.ts +18 -0
  316. package/dist/observers/resize.d.ts.map +1 -0
  317. package/dist/observers/resize.js +33 -0
  318. package/dist/observers/resize.js.map +1 -0
  319. package/dist/state/history.d.ts +115 -0
  320. package/dist/state/history.d.ts.map +1 -0
  321. package/dist/state/history.js +167 -0
  322. package/dist/state/history.js.map +1 -0
  323. package/dist/state/index.d.ts +6 -0
  324. package/dist/state/index.js +7 -0
  325. package/dist/state/locale.d.ts +27 -0
  326. package/dist/state/locale.d.ts.map +1 -0
  327. package/dist/state/locale.js +25 -0
  328. package/dist/state/locale.js.map +1 -0
  329. package/dist/state/pagination.d.ts +53 -0
  330. package/dist/state/pagination.d.ts.map +1 -0
  331. package/dist/state/pagination.js +72 -0
  332. package/dist/state/pagination.js.map +1 -0
  333. package/dist/state/range.d.ts +9 -0
  334. package/dist/state/range.d.ts.map +1 -0
  335. package/dist/state/range.js +18 -0
  336. package/dist/state/range.js.map +1 -0
  337. package/dist/state/selection.d.ts +47 -0
  338. package/dist/state/selection.d.ts.map +1 -0
  339. package/dist/state/selection.js +39 -0
  340. package/dist/state/selection.js.map +1 -0
  341. package/dist/state/virtual.d.ts +201 -0
  342. package/dist/state/virtual.d.ts.map +1 -0
  343. package/dist/state/{index.mjs → virtual.js} +11 -313
  344. package/dist/state/virtual.js.map +1 -0
  345. package/dist/time/debounce.d.ts +43 -0
  346. package/dist/time/debounce.d.ts.map +1 -0
  347. package/dist/time/debounce.js +65 -0
  348. package/dist/time/debounce.js.map +1 -0
  349. package/dist/time/index.d.ts +6 -0
  350. package/dist/time/index.js +7 -0
  351. package/dist/time/interval.d.ts +37 -0
  352. package/dist/time/interval.d.ts.map +1 -0
  353. package/dist/time/interval.js +52 -0
  354. package/dist/time/interval.js.map +1 -0
  355. package/dist/time/relative.d.ts +8 -0
  356. package/dist/time/relative.d.ts.map +1 -0
  357. package/dist/time/relative.js +27 -0
  358. package/dist/time/relative.js.map +1 -0
  359. package/dist/time/throttle.d.ts +38 -0
  360. package/dist/time/throttle.d.ts.map +1 -0
  361. package/dist/time/throttle.js +39 -0
  362. package/dist/time/throttle.js.map +1 -0
  363. package/dist/time/ticks.d.ts +21 -0
  364. package/dist/time/ticks.d.ts.map +1 -0
  365. package/dist/time/ticks.js +30 -0
  366. package/dist/time/ticks.js.map +1 -0
  367. package/dist/time/timer.d.ts +32 -0
  368. package/dist/time/timer.d.ts.map +1 -0
  369. package/dist/time/timer.js +50 -0
  370. package/dist/time/timer.js.map +1 -0
  371. package/package.json +31 -31
  372. package/dist/device/index.d.mts +0 -345
  373. package/dist/device/index.d.mts.map +0 -1
  374. package/dist/device/index.mjs +0 -498
  375. package/dist/device/index.mjs.map +0 -1
  376. package/dist/dom/index.d.mts +0 -750
  377. package/dist/dom/index.d.mts.map +0 -1
  378. package/dist/dom/index.mjs +0 -1857
  379. package/dist/dom/index.mjs.map +0 -1
  380. package/dist/editable-text-1D31qthY.d.mts +0 -319
  381. package/dist/editable-text-1D31qthY.d.mts.map +0 -1
  382. package/dist/events/index.d.mts +0 -184
  383. package/dist/events/index.d.mts.map +0 -1
  384. package/dist/events/index.mjs +0 -315
  385. package/dist/events/index.mjs.map +0 -1
  386. package/dist/follow-tab-stop-Caog2qg1.mjs +0 -863
  387. package/dist/follow-tab-stop-Caog2qg1.mjs.map +0 -1
  388. package/dist/index-CmmxqSEi.d.mts +0 -149
  389. package/dist/index-CmmxqSEi.d.mts.map +0 -1
  390. package/dist/index.d.mts +0 -12
  391. package/dist/index.mjs +0 -12
  392. package/dist/input-modality-BXD383jg.mjs.map +0 -1
  393. package/dist/input-modality-BY-bSrEc.d.mts.map +0 -1
  394. package/dist/interaction/index.d.mts +0 -1194
  395. package/dist/interaction/index.d.mts.map +0 -1
  396. package/dist/interaction/index.mjs +0 -2012
  397. package/dist/interaction/index.mjs.map +0 -1
  398. package/dist/internal-DP-xLKbT.mjs.map +0 -1
  399. package/dist/media/index.d.mts +0 -109
  400. package/dist/media/index.d.mts.map +0 -1
  401. package/dist/media/index.mjs +0 -149
  402. package/dist/media/index.mjs.map +0 -1
  403. package/dist/motion/index.d.mts +0 -2
  404. package/dist/motion/index.mjs +0 -1
  405. package/dist/motion-DmFDppRn.mjs +0 -240
  406. package/dist/motion-DmFDppRn.mjs.map +0 -1
  407. package/dist/net/index.d.mts +0 -348
  408. package/dist/net/index.d.mts.map +0 -1
  409. package/dist/net/index.mjs +0 -535
  410. package/dist/net/index.mjs.map +0 -1
  411. package/dist/observers/index.d.mts +0 -84
  412. package/dist/observers/index.d.mts.map +0 -1
  413. package/dist/observers/index.mjs +0 -159
  414. package/dist/observers/index.mjs.map +0 -1
  415. package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
  416. package/dist/state/index.d.mts +0 -444
  417. package/dist/state/index.d.mts.map +0 -1
  418. package/dist/state/index.mjs.map +0 -1
  419. package/dist/time/index.d.mts +0 -179
  420. package/dist/time/index.d.mts.map +0 -1
  421. package/dist/time/index.mjs +0 -242
  422. package/dist/time/index.mjs.map +0 -1
@@ -1,319 +0,0 @@
1
- import { Schema } from "effect";
2
- import * as Mount from "foldkit/mount";
3
- //#region src/dom/focus-scope.d.ts
4
- /** Tabbable descendants in DOM order: focusable, visible, and not `tabindex="-1"`. */
5
- declare const tabbableWithin: (root: Element) => ReadonlyArray<HTMLElement>;
6
- /**
7
- * A focus scope as a Mount: on insert it remembers what was focused, focuses
8
- * an initial element inside, and with `contain` keeps Tab and Shift+Tab
9
- * cycling inside; on unmount it gives focus back. Nothing crosses to the
10
- * Model: which element had focus is a DOM fact, so this is element lifecycle,
11
- * not state. It emits no Messages.
12
- */
13
- declare const FocusScope: Mount.MountDefinitionWithArgs<"FocusScope", {
14
- /** Keep Tab, Shift+Tab, and a stray focus inside. */
15
- contain: Schema.Boolean;
16
- /** Give focus back to what had it, on unmount. */
17
- restore: Schema.Boolean;
18
- /** A selector inside the element to focus first; else the first tabbable
19
- * descendant, else the element itself when it is focusable. */
20
- initialFocus: Schema.NullOr<Schema.String>;
21
- }, never>;
22
- //#endregion
23
- //#region src/dom/layers.d.ts
24
- /** Locks the document's scroll while the element is mounted; nested locks release with the last. */
25
- declare const ScrollLock: Mount.MountDefinitionNoArgs<"ScrollLock", never>;
26
- /** Makes everything outside the element inert while it is mounted, and restores it after. */
27
- declare const HideOutside: Mount.MountDefinitionNoArgs<"HideOutside", never>;
28
- //#endregion
29
- //#region src/dom/move.d.ts
30
- declare const MoveStarted: Schema.TaggedStruct<"MoveStarted", {
31
- readonly pointerId: Schema.Number;
32
- readonly pointerType: Schema.String;
33
- }>;
34
- type MoveStarted = typeof MoveStarted.Type;
35
- declare const Moved: Schema.TaggedStruct<"Moved", {
36
- readonly pointerId: Schema.Number;
37
- /** From where the pointer went down, in CSS pixels. */
38
- readonly deltaX: Schema.Number;
39
- readonly deltaY: Schema.Number;
40
- readonly pointerType: Schema.String;
41
- }>;
42
- type Moved = typeof Moved.Type;
43
- declare const MoveEnded: Schema.TaggedStruct<"MoveEnded", {
44
- readonly pointerId: Schema.Number;
45
- /** `false` when the pointer was cancelled or capture was lost. */
46
- readonly completed: Schema.Boolean;
47
- }>;
48
- type MoveEnded = typeof MoveEnded.Type;
49
- type Fact = MoveStarted | Moved | MoveEnded;
50
- /**
51
- * Pointer movement on an element as a Mount: a primary-button pointer down
52
- * captures the pointer, each move reports the delta from where it started,
53
- * and up, cancel, or lost capture ends it. Nothing is decided here: a drag
54
- * threshold, a snap, or a constraint is the parent's `update`. Capture is
55
- * released with the Mount.
56
- */
57
- declare const Move: Mount.MountDefinitionNoArgs<"Move", {
58
- readonly _tag: "MoveStarted";
59
- readonly pointerId: number;
60
- readonly pointerType: string;
61
- } | {
62
- readonly _tag: "Moved";
63
- readonly pointerId: number;
64
- readonly deltaX: number;
65
- readonly deltaY: number;
66
- readonly pointerType: string;
67
- } | {
68
- readonly _tag: "MoveEnded";
69
- readonly pointerId: number;
70
- readonly completed: boolean;
71
- }>;
72
- //#endregion
73
- //#region src/dom/targets.d.ts
74
- declare const TargetHovered: Schema.TaggedStruct<"TargetHovered", {
75
- /** The marked descendant under the pointer, or `null` when there is none. */
76
- readonly id: Schema.NullOr<Schema.String>;
77
- }>;
78
- type TargetHovered = typeof TargetHovered.Type;
79
- declare const TargetPressed: Schema.TaggedStruct<"TargetPressed", {
80
- readonly id: Schema.String;
81
- readonly shiftKey: Schema.Boolean;
82
- readonly altKey: Schema.Boolean;
83
- readonly ctrlKey: Schema.Boolean;
84
- readonly metaKey: Schema.Boolean;
85
- }>;
86
- type TargetPressed = typeof TargetPressed.Type;
87
- type TargetFact = TargetHovered | TargetPressed;
88
- /** The id of the nearest marked element at or above `from`, inside `container`. */
89
- declare const targetOf: (container: Element, from: EventTarget | null, attribute: string) => string | null;
90
- /**
91
- * Which marked descendant of an element the pointer is over, and which one was
92
- * pressed, as a Mount: one set of listeners on the container, not one per item.
93
- * A descendant is marked by an attribute whose value is its id, such as a
94
- * canvas's `data-composition-node` or a table's `data-row`. The nearest marked
95
- * ancestor of the event's target, inside the container, is the one reported.
96
- *
97
- * What hovering or pressing means (a selection, an outline, a menu) is the
98
- * parent's `update`.
99
- */
100
- declare const Targets: Mount.MountDefinitionWithArgs<"Targets", {
101
- /** The attribute that marks a descendant, holding its id. */
102
- attribute: Schema.String;
103
- /** Prevent a press's default, such as a link navigating inside an editor's canvas. */
104
- preventDefault: Schema.Boolean;
105
- }, {
106
- readonly _tag: "TargetHovered";
107
- readonly id: string | null;
108
- } | {
109
- readonly _tag: "TargetPressed";
110
- readonly id: string;
111
- readonly shiftKey: boolean;
112
- readonly altKey: boolean;
113
- readonly ctrlKey: boolean;
114
- readonly metaKey: boolean;
115
- }>;
116
- //#endregion
117
- //#region src/dom/pointer-drag.d.ts
118
- declare const DragZone: Schema.Literals<readonly ["before", "inside", "after"]>;
119
- type DragZone = typeof DragZone.Type;
120
- /**
121
- * A marked descendant under the pointer, and the zone of it the pointer is in.
122
- * `part` is the value of the `part` attribute on the element found, such as
123
- * the empty Region of a node a drop goes into; a place with one is `inside`.
124
- */
125
- declare const DragPlace: Schema.Struct<{
126
- readonly id: Schema.String;
127
- readonly zone: Schema.Literals<readonly ["before", "inside", "after"]>;
128
- readonly part: Schema.optionalKey<Schema.String>;
129
- }>;
130
- type DragPlace = typeof DragPlace.Type;
131
- declare const DragStarted: Schema.TaggedStruct<"DragStarted", {
132
- /** The marked descendant being dragged. */
133
- readonly id: Schema.String;
134
- }>;
135
- type DragStarted = typeof DragStarted.Type;
136
- declare const DraggedOver: Schema.TaggedStruct<"DraggedOver", {
137
- /** Where the pointer is, or `null` over nothing marked, or over what is dragged. */
138
- readonly over: Schema.NullOr<Schema.Struct<{
139
- readonly id: Schema.String;
140
- readonly zone: Schema.Literals<readonly ["before", "inside", "after"]>;
141
- readonly part: Schema.optionalKey<Schema.String>;
142
- }>>;
143
- /**
144
- * For a drag onto `targets`: whether the pointer is inside the region they
145
- * are in, so `over: null` with `region: true` is its empty space (an empty
146
- * page, the space below the last node). Absent for a drag among its own.
147
- */
148
- readonly region: Schema.optionalKey<Schema.Boolean>;
149
- }>;
150
- type DraggedOver = typeof DraggedOver.Type;
151
- declare const DragDropped: Schema.TaggedStruct<"DragDropped", {
152
- readonly id: Schema.String;
153
- readonly over: Schema.NullOr<Schema.Struct<{
154
- readonly id: Schema.String;
155
- readonly zone: Schema.Literals<readonly ["before", "inside", "after"]>;
156
- readonly part: Schema.optionalKey<Schema.String>;
157
- }>>;
158
- /** As `DraggedOver`'s: released inside the `targets` region. */
159
- readonly region: Schema.optionalKey<Schema.Boolean>;
160
- }>;
161
- type DragDropped = typeof DragDropped.Type;
162
- declare const DragCancelled: Schema.TaggedStruct<"DragCancelled", {
163
- readonly id: Schema.String;
164
- }>;
165
- type DragCancelled = typeof DragCancelled.Type;
166
- type DragFact = DragStarted | DraggedOver | DragDropped | DragCancelled;
167
- /** How far, in CSS pixels, a press moves before it is a drag rather than a click. */
168
- declare const DRAG_THRESHOLD = 4;
169
- /**
170
- * How long a finger is held still before its press is a drag. A touch that moves first is a
171
- * scroll, so a list of draggable rows still scrolls under a finger.
172
- */
173
- declare const HOLD_TO_DRAG_MS = 400;
174
- /** How far, in CSS pixels, a held finger may wander before the hold is a scroll. */
175
- declare const HOLD_SLOP = 8;
176
- interface Box {
177
- readonly top: number;
178
- readonly height: number;
179
- }
180
- /** The zone of a box a vertical position falls in, by thirds. */
181
- declare const zoneOf: (box: Box, y: number) => DragZone;
182
- /**
183
- * An element's box. An element drawn as `display: contents` has none, so its
184
- * first child's stands for it, as an editor's node wrapper's does.
185
- */
186
- declare const boxOf: (element: Element) => Box;
187
- /**
188
- * Dragging one marked descendant of an element onto another, as a Mount. A
189
- * descendant is marked by an attribute whose value is its id, as `Targets`
190
- * marks them; a press on one that then moves past a threshold starts a drag (a
191
- * finger's, held still for `HOLD_TO_DRAG_MS`, as a touch that moves first scrolls), and
192
- * the pointer's place over another marked descendant is reported with the
193
- * zone of it the pointer is in: its first third (`before`), its middle
194
- * (`inside`), or its last third (`after`). Releasing drops, and Escape or a
195
- * cancelled pointer ends the drag with nothing dropped.
196
- *
197
- * It writes no roles, no `tabindex` and no key handling, so the marked
198
- * elements can be anything: a tree's rows, a canvas's nodes. The keyboard's way
199
- * to do what a drag does is the parent's to give. Geometry is measured when the
200
- * pointer moves and never kept; what a drop means is the parent's `update`.
201
- */
202
- declare const PointerDrag: Mount.MountDefinitionWithArgs<"PointerDrag", {
203
- /** The attribute that marks a descendant, holding its id. */
204
- attribute: Schema.String;
205
- /**
206
- * Where a drag may land, when not on the element's own marked descendants:
207
- * the elements marked by `attribute` inside the one `within` selects, such
208
- * as a palette's Blocks dragged onto a page. A drop's `over` is then one of
209
- * those; what is dragged is still one of the element's own. `within` is
210
- * looked for nearest first, under the element's closest ancestor that holds
211
- * a match, so two editors on one page each drop onto their own.
212
- */
213
- targets: Schema.optionalKey<Schema.Struct<{
214
- readonly attribute: Schema.String;
215
- readonly within: Schema.String;
216
- }>>;
217
- /**
218
- * An attribute that names a part of what a drop lands on, on an element
219
- * also marked as one: a place over it carries the part and is `inside`.
220
- */
221
- part: Schema.optionalKey<Schema.String>;
222
- }, {
223
- readonly _tag: "DragStarted";
224
- readonly id: string;
225
- } | {
226
- readonly _tag: "DraggedOver";
227
- readonly over: {
228
- readonly id: string;
229
- readonly zone: "after" | "before" | "inside";
230
- readonly part?: string;
231
- } | null;
232
- readonly region?: boolean;
233
- } | {
234
- readonly _tag: "DragDropped";
235
- readonly id: string;
236
- readonly over: {
237
- readonly id: string;
238
- readonly zone: "after" | "before" | "inside";
239
- readonly part?: string;
240
- } | null;
241
- readonly region?: boolean;
242
- } | {
243
- readonly _tag: "DragCancelled";
244
- readonly id: string;
245
- }>;
246
- //#endregion
247
- //#region src/dom/editable-text.d.ts
248
- declare const TextEdited: Schema.TaggedStruct<"TextEdited", {
249
- /** The field, by its marking attribute's value. */
250
- readonly field: Schema.String;
251
- readonly text: Schema.String;
252
- }>;
253
- type TextEdited = typeof TextEdited.Type;
254
- declare const TextCommitted: Schema.TaggedStruct<"TextCommitted", {
255
- readonly field: Schema.String;
256
- readonly text: Schema.String;
257
- }>;
258
- type TextCommitted = typeof TextCommitted.Type;
259
- declare const TextCancelled: Schema.TaggedStruct<"TextCancelled", {
260
- readonly field: Schema.String;
261
- /** The text the field had when editing began, which the DOM shows again. */
262
- readonly initial: Schema.String;
263
- }>;
264
- type TextCancelled = typeof TextCancelled.Type;
265
- declare const EditAsked: Schema.TaggedStruct<"EditAsked", {
266
- /** A marked field, not editable yet, that was double-clicked. */
267
- readonly field: Schema.String;
268
- }>;
269
- type EditAsked = typeof EditAsked.Type;
270
- type TextFact = TextEdited | TextCommitted | TextCancelled | EditAsked;
271
- /**
272
- * A field's text. A browser ends an edited element with a line break it adds
273
- * itself, which is not the author's; in one line, the author's breaks are spaces.
274
- */
275
- declare const textOf: (element: HTMLElement) => string;
276
- /**
277
- * Text typed into an editable descendant of an element, as a Mount: one set of
278
- * listeners on the container, like `Targets`. A field is a descendant marked
279
- * by an attribute whose value names it, while it is `contenteditable`. The
280
- * view decides which one is; the Mount focuses it as it becomes so (made
281
- * editable, or drawn editable), with the caret at its end, and at no other
282
- * time. When Enter or Escape ends an edit and the view then removes the field
283
- * or makes it no longer editable, focus, left on nothing, comes back to the
284
- * container, so the next key reaches it; give the container a `tabindex`. A double-click on a marked field that is not editable yet asks for it
285
- * to be (`EditAsked`).
286
- *
287
- * It reads `innerText`, never `innerHTML`, so what arrives is text. A field is
288
- * one line unless it carries `aria-multiline="true"`: in one line, a line
289
- * break becomes a space. Nothing is reported while an input method composes;
290
- * the composed text arrives once, when it is done.
291
- *
292
- * Enter commits (Shift+Enter breaks a line in a multiline field), and so does
293
- * leaving the field. Escape cancels, and puts the text the field had when
294
- * editing began back in the DOM, since a view that stopped redrawing the field
295
- * while it was edited will not. Where the browser lacks `plaintext-only`, a
296
- * paste is inserted as text. What an edit means is the parent's `update`.
297
- */
298
- declare const EditableText: Mount.MountDefinitionWithArgs<"EditableText", {
299
- /** The attribute that marks a field, holding its name. */
300
- attribute: Schema.String;
301
- }, {
302
- readonly _tag: "TextEdited";
303
- readonly field: string;
304
- readonly text: string;
305
- } | {
306
- readonly _tag: "TextCommitted";
307
- readonly field: string;
308
- readonly text: string;
309
- } | {
310
- readonly _tag: "TextCancelled";
311
- readonly field: string;
312
- readonly initial: string;
313
- } | {
314
- readonly _tag: "EditAsked";
315
- readonly field: string;
316
- }>;
317
- //#endregion
318
- export { Moved as A, TargetPressed as C, Move as D, Fact as E, ScrollLock as M, FocusScope as N, MoveEnded as O, tabbableWithin as P, TargetHovered as S, targetOf as T, HOLD_TO_DRAG_MS as _, TextEdited as a, zoneOf as b, DRAG_THRESHOLD as c, DragFact as d, DragPlace as f, HOLD_SLOP as g, DraggedOver as h, TextCommitted as i, HideOutside as j, MoveStarted as k, DragCancelled as l, DragZone as m, EditableText as n, TextFact as o, DragStarted as p, TextCancelled as r, textOf as s, EditAsked as t, DragDropped as u, PointerDrag as v, Targets as w, TargetFact as x, boxOf as y };
319
- //# sourceMappingURL=editable-text-1D31qthY.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editable-text-1D31qthY.d.mts","names":[],"sources":["../src/dom/focus-scope.ts","../src/dom/layers.ts","../src/dom/move.ts","../src/dom/targets.ts","../src/dom/pointer-drag.ts","../src/dom/editable-text.ts"],"mappings":";;;;cAmBa,iBAAc,MAAU,YAAU,cAAc;;;;;;;;cAmBhD,YAAU,MAAA;;;;;;;;;;;;cCtBV,YAAU,MAAA;;cAWV,aAAW,MAAA;;;cCxBX,aAAW,OAAA;;;;KAIZ,qBAAqB,YAAY;cAEhC,OAAK,OAAA;;;;;;;KAON,eAAe,MAAM;cAEpB,WAAS,OAAA;;;;;KAKV,mBAAmB,UAAU;KAE7B,OAAO,cAAc,QAAQ;;;;;;;;cAsB5B,MAAI,MAAA;;;;;;;;;;;;;;;;;cC5CJ,eAAa,OAAA;;;;KAId,uBAAuB,cAAc;cAEpC,eAAa,OAAA;;;;;;;KAOd,uBAAuB,cAAc;KAErC,aAAa,gBAAgB;;cAU5B,WAAQ,WAAe,SAAO,MAAQ,oBAAkB;;;;;;;;;;;cAgBxD,SAAO,MAAA;;;;;;;;;;;;;;;;;;cCxCP,UAAQ,OAAA;KACT,kBAAkB,SAAS;;;;;;cAO1B,WAAS,OAAA;;;;;KAKV,mBAAmB,UAAU;cAE5B,aAAW,OAAA;;eAAX,OAAA;;KAID,qBAAqB,YAAY;cAEhC,aAAW,OAAA;;;;;;;;;;;;;;KAUZ,qBAAqB,YAAY;cAEhC,aAAW,OAAA;;;;;;;;;;KAMZ,qBAAqB,YAAY;cAEhC,eAAa,OAAA;eAAb,OAAA;;KACD,uBAAuB,cAAc;KAErC,WAAW,cAAc,cAAc,cAAc;;cAGpD;;;;;cAMA;;cAGA;UAEH;WACC;WACA;;;cAIE,SAAM,KAAS,KAAG,cAAc;;;;;cAUhC,QAAK,SAAa,YAAU;;;;;;;;;;;;;;;;cAgC5B,aAAW,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cC3GX,YAAU,OAAA;;;;;KAKX,oBAAoB,WAAW;cAE9B,eAAa,OAAA;;;;KAId,uBAAuB,cAAc;cAEpC,eAAa,OAAA;;;;;KAKd,uBAAuB,cAAc;cAEpC,WAAS,OAAA;;kBAAT,OAAA;;KAID,mBAAmB,UAAU;KAE7B,WAAW,aAAa,gBAAgB,gBAAgB;;;;;cASvD,SAAM,SAAa;;;;;;;;;;;;;;;;;;;;;;;cA0CnB,cAAY,MAAA;;aAAZ,OAAA"}
@@ -1,184 +0,0 @@
1
- import { a as modalityOfKey, i as Modality, n as InputModalityMessage, r as InputModalityModel, t as InputModality } from "../input-modality-BY-bSrEc.mjs";
2
- import { Schema, Stream } from "effect";
3
- import { Bundle } from "foldkit-bundle";
4
- //#region src/events/active-element.d.ts
5
- export declare const ActiveElementMessage: import("foldkit/message").MessageUnion<{
6
- readonly Changed: {
7
- tag: Schema.String;
8
- id: Schema.NullOr<Schema.String>;
9
- };
10
- }>;
11
- export type ActiveElementMessage = typeof ActiveElementMessage.Type;
12
- /**
13
- * Focus changes on the document. Without a document the stream is empty
14
- * instead of throwing. Lift with `Subscription.persistentEntry`, mapping into
15
- * the parent's Message.
16
- */
17
- export declare const activeElementEvents: () => Stream.Stream<ActiveElementMessage>;
18
- //#endregion
19
- //#region src/events/hotkeys.d.ts
20
- export interface KeyPress {
21
- readonly key: string;
22
- readonly repeat: boolean;
23
- readonly ctrl: boolean;
24
- readonly shift: boolean;
25
- readonly alt: boolean;
26
- readonly meta: boolean;
27
- }
28
- /**
29
- * Hotkey matching as a pure function over a `Pressed` payload: `matchHotkey`
30
- * answers whether a press is the shortcut, so `update` stays a table of
31
- * chords instead of a nest of modifier checks. Patterns read like
32
- * `"ctrl+shift+k"`: modifiers first (any order), the key last,
33
- * case-insensitive, with `cmd`/`command` and `option` as the Mac names for
34
- * meta and alt. Matching is exact — unlisted modifiers must be up — and
35
- * auto-repeat never matches, so holding a chord fires once. `space` (or a
36
- * bare space) means the space key; `esc` means escape. A pattern with
37
- * no key, or two keys, matches nothing: predicates return false, they do
38
- * not throw on the hot path.
39
- */
40
- export declare const matchHotkey: (pattern: string, press: KeyPress) => boolean;
41
- //#endregion
42
- //#region src/events/idle.d.ts
43
- export declare const IdleModel: Schema.Struct<{
44
- readonly idle: Schema.Boolean;
45
- }>;
46
- export type IdleModel = typeof IdleModel.Type;
47
- export declare const IdleMessage: import("foldkit/message").MessageUnion<{
48
- readonly BecameIdle: {};
49
- readonly BecameActive: {};
50
- }>;
51
- export type IdleMessage = typeof IdleMessage.Type;
52
- /**
53
- * Idleness as a bundle: `idle` in the Model, flipped by activity and
54
- * silence. While active, activity debounced past `timeoutMs` settles to
55
- * `BecameIdle`; while idle, the first activity wakes to `BecameActive` and
56
- * the dependency flip restarts the watch. Starts active — a lurker idles
57
- * when the timeout elapses. The clock is Effect's, so tests drive it with
58
- * TestClock.
59
- */
60
- export declare const Idle: Bundle.Bundle<"Idle", {
61
- readonly timeoutMs: number;
62
- }, {
63
- readonly idle: boolean;
64
- }, {
65
- readonly _tag: "BecameActive";
66
- } | {
67
- readonly _tag: "BecameIdle";
68
- }, never, never, never, void, {}, {}>;
69
- //#endregion
70
- //#region src/events/keyboard.d.ts
71
- export declare const KeyboardMessage: import("foldkit/message").MessageUnion<{
72
- readonly Pressed: {
73
- key: Schema.String;
74
- repeat: Schema.Boolean;
75
- ctrl: Schema.Boolean;
76
- shift: Schema.Boolean;
77
- alt: Schema.Boolean;
78
- meta: Schema.Boolean;
79
- };
80
- readonly Released: {
81
- key: Schema.String;
82
- };
83
- }>;
84
- export type KeyboardMessage = typeof KeyboardMessage.Type;
85
- /**
86
- * Key presses and releases on the window. Without a window the stream is
87
- * empty instead of throwing. Lift with `Subscription.persistentEntry`, mapping
88
- * into the parent's Message.
89
- */
90
- export declare const keyboardEvents: (options?: {
91
- /**
92
- * Whether to cancel a press's default (the page scrolling under an arrow
93
- * key, the browser's own shortcut), decided in the listener, since a
94
- * default can only be cancelled before the event finishes dispatching.
95
- */
96
- readonly preventDefault?: (press: KeyPress) => boolean;
97
- }) => Stream.Stream<KeyboardMessage>;
98
- //#endregion
99
- //#region src/events/pointer.d.ts
100
- export declare const PointerMessage: import("foldkit/message").MessageUnion<{
101
- readonly Moved: {
102
- x: Schema.Number;
103
- y: Schema.Number;
104
- };
105
- }>;
106
- export type PointerMessage = typeof PointerMessage.Type;
107
- /**
108
- * Pointer moves on the window. Without a window the stream is empty instead
109
- * of throwing. Lift with `Subscription.persistentEntry`, mapping into the
110
- * parent's Message.
111
- */
112
- export declare const pointerEvents: () => Stream.Stream<PointerMessage>;
113
- //#endregion
114
- //#region src/events/scroll.d.ts
115
- export declare const ScrollMessage: import("foldkit/message").MessageUnion<{
116
- readonly Scrolled: {
117
- x: Schema.Number;
118
- y: Schema.Number;
119
- };
120
- }>;
121
- export type ScrollMessage = typeof ScrollMessage.Type;
122
- /**
123
- * Scrolls on the window, in the capture phase so container scrolls (which
124
- * do not bubble) report too. Without a window the stream is empty instead
125
- * of throwing. Lift with `Subscription.persistentEntry`, mapping into the
126
- * parent's Message.
127
- */
128
- export declare const scrollEvents: () => Stream.Stream<ScrollMessage>;
129
- //#endregion
130
- //#region src/events/visibility.d.ts
131
- export declare const VisibilityModel: Schema.Struct<{
132
- readonly visible: Schema.Boolean;
133
- }>;
134
- export type VisibilityModel = typeof VisibilityModel.Type;
135
- export declare const VisibilityMessage: import("foldkit/message").MessageUnion<{
136
- readonly Changed: {
137
- visible: Schema.Boolean;
138
- };
139
- }>;
140
- export type VisibilityMessage = typeof VisibilityMessage.Type;
141
- /**
142
- * Page visibility as a bundle: `visible` in the Model, read from the
143
- * document at startup and kept current by `visibilitychange`. A hidden page
144
- * is the application's cue to pause polling, animations, and realtime
145
- * streams; the decision stays in application `update`, not here.
146
- */
147
- export declare const Visibility: Bundle.Bundle<"Visibility", void, {
148
- readonly visible: boolean;
149
- }, {
150
- readonly _tag: "Changed";
151
- readonly visible: boolean;
152
- }, never, never, never, void, {}, {}>;
153
- //#endregion
154
- //#region src/events/window-size.d.ts
155
- export declare const WindowSizeModel: Schema.Struct<{
156
- readonly width: Schema.Number;
157
- readonly height: Schema.Number;
158
- }>;
159
- export type WindowSizeModel = typeof WindowSizeModel.Type;
160
- export declare const WindowSizeMessage: import("foldkit/message").MessageUnion<{
161
- readonly Changed: {
162
- width: Schema.Number;
163
- height: Schema.Number;
164
- };
165
- }>;
166
- export type WindowSizeMessage = typeof WindowSizeMessage.Type;
167
- /**
168
- * Window size as a bundle: `{ width, height }` in the Model, read from the
169
- * window at startup and kept current by one `resize` listener. Breakpoints
170
- * owns its own listener and derives names; place this one when views need
171
- * the raw pixels. Placing both doubles resize listeners — pick the one the
172
- * view reads.
173
- */
174
- export declare const WindowSize: Bundle.Bundle<"WindowSize", void, {
175
- readonly width: number;
176
- readonly height: number;
177
- }, {
178
- readonly _tag: "Changed";
179
- readonly width: number;
180
- readonly height: number;
181
- }, never, never, never, void, {}, {}>;
182
- //#endregion
183
- export { InputModality, InputModalityMessage, InputModalityModel, Modality, modalityOfKey };
184
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/events/active-element.ts","../../src/events/hotkeys.ts","../../src/events/idle.ts","../../src/events/keyboard.ts","../../src/events/pointer.ts","../../src/events/scroll.ts","../../src/events/visibility.ts","../../src/events/window-size.ts"],"mappings":";;;;qBASa,gDAAoB;;IACpB,KAAG,OAAA;IAAiB,IAAE,OAAA,OAAA,OAAA;;;YAEvB,8BAA8B,qBAAqB;;;;;;qBAOlD,2BAA0B,OAAO,OAAO;;;iBCnBpC;WACN;WACA;WACA;WACA;WACA;WACA;;;;;;;;;;;;;;qBA8CE,cAAW,iBAAmB,OAAS;;;qBC9CvC,WAAS,OAAA;iBAAT,OAAA;;YACD,mBAAmB,UAAU;qBAE5B,uCAAW;;;;YACZ,qBAAqB,YAAY;;;;;;;;;qBAsBhC,MAAI,OAAA;;;;;;;;;;;qBCtBJ,2CAAe;;IAExB,KAAG,OAAA;IACH,QAAM,OAAA;IACN,MAAI,OAAA;IACJ,OAAK,OAAA;IACL,KAAG,OAAA;IACH,MAAI,OAAA;;;IAEM,KAAG,OAAA;;;YAEL,yBAAyB,gBAAgB;;;;;;qBAOxC,iBAAc;;;;;;WAOd,kBAAkB,OAAO;MAEnC,OAAO,OAAO;;;qBC5BJ,0CAAc;;IAChB,GAAC,OAAA;IAAiB,GAAC,OAAA;;;YAElB,wBAAwB,eAAe;;;;;;qBAOtC,qBAAoB,OAAO,OAAO;;;qBCVlC,yCAAa;;IACZ,GAAC,OAAA;IAAiB,GAAC,OAAA;;;YAErB,uBAAuB,cAAc;;;;;;;qBAQpC,oBAAmB,OAAO,OAAO;;;qBCfjC,iBAAe,OAAA;oBAAf,OAAA;;YACD,yBAAyB,gBAAgB;qBAExC,6CAAiB;;IAAmC,SAAO,OAAA;;;YAC5D,2BAA2B,kBAAkB;;;;;;;qBAuB5C,YAAU,OAAA;;;;;;;;qBC1BV,iBAAe,OAAA;;;;YAChB,yBAAyB,gBAAgB;qBAExC,6CAAiB;;IACjB,OAAK,OAAA;IAAiB,QAAM,OAAA;;;YAE7B,2BAA2B,kBAAkB;;;;;;;;qBA0C5C,YAAU,OAAA"}