foldkit-primitives 0.15.4 → 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-l7InESYh.d.mts → events/input-modality.d.ts} +9 -10
  136. package/dist/events/input-modality.d.ts.map +1 -0
  137. package/dist/{input-modality-XwQOFLip.mjs → events/input-modality.js} +2 -2
  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-C4gHodLc.mjs → internal.js} +7 -5
  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} +10 -306
  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 -335
  373. package/dist/device/index.d.mts.map +0 -1
  374. package/dist/device/index.mjs +0 -493
  375. package/dist/device/index.mjs.map +0 -1
  376. package/dist/dom/index.d.mts +0 -714
  377. package/dist/dom/index.d.mts.map +0 -1
  378. package/dist/dom/index.mjs +0 -1840
  379. package/dist/dom/index.mjs.map +0 -1
  380. package/dist/editable-text-Bg7vil7h.d.mts +0 -307
  381. package/dist/editable-text-Bg7vil7h.d.mts.map +0 -1
  382. package/dist/events/index.d.mts +0 -168
  383. package/dist/events/index.d.mts.map +0 -1
  384. package/dist/events/index.mjs +0 -307
  385. package/dist/events/index.mjs.map +0 -1
  386. package/dist/follow-tab-stop-DM5EI4Ci.mjs +0 -856
  387. package/dist/follow-tab-stop-DM5EI4Ci.mjs.map +0 -1
  388. package/dist/index-Bomdwb7e.d.mts +0 -142
  389. package/dist/index-Bomdwb7e.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-XwQOFLip.mjs.map +0 -1
  393. package/dist/input-modality-l7InESYh.d.mts.map +0 -1
  394. package/dist/interaction/index.d.mts +0 -1193
  395. package/dist/interaction/index.d.mts.map +0 -1
  396. package/dist/interaction/index.mjs +0 -1992
  397. package/dist/interaction/index.mjs.map +0 -1
  398. package/dist/internal-C4gHodLc.mjs.map +0 -1
  399. package/dist/media/index.d.mts +0 -103
  400. package/dist/media/index.d.mts.map +0 -1
  401. package/dist/media/index.mjs +0 -146
  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-BmlJCjn6.mjs +0 -236
  406. package/dist/motion-BmlJCjn6.mjs.map +0 -1
  407. package/dist/net/index.d.mts +0 -338
  408. package/dist/net/index.d.mts.map +0 -1
  409. package/dist/net/index.mjs +0 -530
  410. package/dist/net/index.mjs.map +0 -1
  411. package/dist/observers/index.d.mts +0 -76
  412. package/dist/observers/index.d.mts.map +0 -1
  413. package/dist/observers/index.mjs +0 -155
  414. package/dist/observers/index.mjs.map +0 -1
  415. package/dist/rolldown-runtime-D8jQpDG7.mjs +0 -12
  416. package/dist/state/index.d.mts +0 -432
  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 -167
  420. package/dist/time/index.d.mts.map +0 -1
  421. package/dist/time/index.mjs +0 -236
  422. package/dist/time/index.mjs.map +0 -1
@@ -1,307 +0,0 @@
1
- import { Schema } from "effect";
2
- import * as Mount from "foldkit/mount";
3
- /** Tabbable descendants in DOM order: focusable, visible, and not `tabindex="-1"`. */
4
- declare const tabbableWithin: (root: Element) => ReadonlyArray<HTMLElement>;
5
- /**
6
- * A focus scope as a Mount: on insert it remembers what was focused, focuses
7
- * an initial element inside, and with `contain` keeps Tab and Shift+Tab
8
- * cycling inside; on unmount it gives focus back. Nothing crosses to the
9
- * Model: which element had focus is a DOM fact, so this is element lifecycle,
10
- * not state. It emits no Messages.
11
- */
12
- declare const FocusScope: Mount.MountDefinitionWithArgs<"FocusScope", {
13
- /** Keep Tab, Shift+Tab, and a stray focus inside. */
14
- contain: Schema.Boolean;
15
- /** Give focus back to what had it, on unmount. */
16
- restore: Schema.Boolean;
17
- /** A selector inside the element to focus first; else the first tabbable
18
- * descendant, else the element itself when it is focusable. */
19
- initialFocus: Schema.NullOr<Schema.String>;
20
- }, never>;
21
- /** Locks the document's scroll while the element is mounted; nested locks release with the last. */
22
- declare const ScrollLock: Mount.MountDefinitionNoArgs<"ScrollLock", never>;
23
- /** Makes everything outside the element inert while it is mounted, and restores it after. */
24
- declare const HideOutside: Mount.MountDefinitionNoArgs<"HideOutside", never>;
25
- declare const MoveStarted: Schema.TaggedStruct<"MoveStarted", {
26
- readonly pointerId: Schema.Number;
27
- readonly pointerType: Schema.String;
28
- }>;
29
- type MoveStarted = typeof MoveStarted.Type;
30
- declare const Moved: Schema.TaggedStruct<"Moved", {
31
- readonly pointerId: Schema.Number;
32
- /** From where the pointer went down, in CSS pixels. */
33
- readonly deltaX: Schema.Number;
34
- readonly deltaY: Schema.Number;
35
- readonly pointerType: Schema.String;
36
- }>;
37
- type Moved = typeof Moved.Type;
38
- declare const MoveEnded: Schema.TaggedStruct<"MoveEnded", {
39
- readonly pointerId: Schema.Number;
40
- /** `false` when the pointer was cancelled or capture was lost. */
41
- readonly completed: Schema.Boolean;
42
- }>;
43
- type MoveEnded = typeof MoveEnded.Type;
44
- type Fact = MoveStarted | Moved | MoveEnded;
45
- /**
46
- * Pointer movement on an element as a Mount: a primary-button pointer down
47
- * captures the pointer, each move reports the delta from where it started,
48
- * and up, cancel, or lost capture ends it. Nothing is decided here: a drag
49
- * threshold, a snap, or a constraint is the parent's `update`. Capture is
50
- * released with the Mount.
51
- */
52
- declare const Move: Mount.MountDefinitionNoArgs<"Move", {
53
- readonly _tag: "MoveStarted";
54
- readonly pointerId: number;
55
- readonly pointerType: string;
56
- } | {
57
- readonly _tag: "Moved";
58
- readonly pointerId: number;
59
- readonly deltaX: number;
60
- readonly deltaY: number;
61
- readonly pointerType: string;
62
- } | {
63
- readonly _tag: "MoveEnded";
64
- readonly pointerId: number;
65
- readonly completed: boolean;
66
- }>;
67
- declare const TargetHovered: Schema.TaggedStruct<"TargetHovered", {
68
- /** The marked descendant under the pointer, or `null` when there is none. */
69
- readonly id: Schema.NullOr<Schema.String>;
70
- }>;
71
- type TargetHovered = typeof TargetHovered.Type;
72
- declare const TargetPressed: Schema.TaggedStruct<"TargetPressed", {
73
- readonly id: Schema.String;
74
- readonly shiftKey: Schema.Boolean;
75
- readonly altKey: Schema.Boolean;
76
- readonly ctrlKey: Schema.Boolean;
77
- readonly metaKey: Schema.Boolean;
78
- }>;
79
- type TargetPressed = typeof TargetPressed.Type;
80
- type TargetFact = TargetHovered | TargetPressed;
81
- /** The id of the nearest marked element at or above `from`, inside `container`. */
82
- declare const targetOf: (container: Element, from: EventTarget | null, attribute: string) => string | null;
83
- /**
84
- * Which marked descendant of an element the pointer is over, and which one was
85
- * pressed, as a Mount: one set of listeners on the container, not one per item.
86
- * A descendant is marked by an attribute whose value is its id, such as a
87
- * canvas's `data-composition-node` or a table's `data-row`. The nearest marked
88
- * ancestor of the event's target, inside the container, is the one reported.
89
- *
90
- * What hovering or pressing means (a selection, an outline, a menu) is the
91
- * parent's `update`.
92
- */
93
- declare const Targets: Mount.MountDefinitionWithArgs<"Targets", {
94
- /** The attribute that marks a descendant, holding its id. */
95
- attribute: Schema.String;
96
- /** Prevent a press's default, such as a link navigating inside an editor's canvas. */
97
- preventDefault: Schema.Boolean;
98
- }, {
99
- readonly _tag: "TargetHovered";
100
- readonly id: string | null;
101
- } | {
102
- readonly _tag: "TargetPressed";
103
- readonly id: string;
104
- readonly shiftKey: boolean;
105
- readonly altKey: boolean;
106
- readonly ctrlKey: boolean;
107
- readonly metaKey: boolean;
108
- }>;
109
- declare const DragZone: Schema.Literals<readonly ["before", "inside", "after"]>;
110
- type DragZone = typeof DragZone.Type;
111
- /**
112
- * A marked descendant under the pointer, and the zone of it the pointer is in.
113
- * `part` is the value of the `part` attribute on the element found, such as
114
- * the empty Region of a node a drop goes into; a place with one is `inside`.
115
- */
116
- declare const DragPlace: Schema.Struct<{
117
- readonly id: Schema.String;
118
- readonly zone: Schema.Literals<readonly ["before", "inside", "after"]>;
119
- readonly part: Schema.optionalKey<Schema.String>;
120
- }>;
121
- type DragPlace = typeof DragPlace.Type;
122
- declare const DragStarted: Schema.TaggedStruct<"DragStarted", {
123
- /** The marked descendant being dragged. */
124
- readonly id: Schema.String;
125
- }>;
126
- type DragStarted = typeof DragStarted.Type;
127
- declare const DraggedOver: Schema.TaggedStruct<"DraggedOver", {
128
- /** Where the pointer is, or `null` over nothing marked, or over what is dragged. */
129
- readonly over: Schema.NullOr<Schema.Struct<{
130
- readonly id: Schema.String;
131
- readonly zone: Schema.Literals<readonly ["before", "inside", "after"]>;
132
- readonly part: Schema.optionalKey<Schema.String>;
133
- }>>;
134
- /**
135
- * For a drag onto `targets`: whether the pointer is inside the region they
136
- * are in, so `over: null` with `region: true` is its empty space (an empty
137
- * page, the space below the last node). Absent for a drag among its own.
138
- */
139
- readonly region: Schema.optionalKey<Schema.Boolean>;
140
- }>;
141
- type DraggedOver = typeof DraggedOver.Type;
142
- declare const DragDropped: Schema.TaggedStruct<"DragDropped", {
143
- readonly id: Schema.String;
144
- readonly over: Schema.NullOr<Schema.Struct<{
145
- readonly id: Schema.String;
146
- readonly zone: Schema.Literals<readonly ["before", "inside", "after"]>;
147
- readonly part: Schema.optionalKey<Schema.String>;
148
- }>>;
149
- /** As `DraggedOver`'s: released inside the `targets` region. */
150
- readonly region: Schema.optionalKey<Schema.Boolean>;
151
- }>;
152
- type DragDropped = typeof DragDropped.Type;
153
- declare const DragCancelled: Schema.TaggedStruct<"DragCancelled", {
154
- readonly id: Schema.String;
155
- }>;
156
- type DragCancelled = typeof DragCancelled.Type;
157
- type DragFact = DragStarted | DraggedOver | DragDropped | DragCancelled;
158
- /** How far, in CSS pixels, a press moves before it is a drag rather than a click. */
159
- declare const DRAG_THRESHOLD = 4;
160
- /**
161
- * How long a finger is held still before its press is a drag. A touch that moves first is a
162
- * scroll, so a list of draggable rows still scrolls under a finger.
163
- */
164
- declare const HOLD_TO_DRAG_MS = 400;
165
- /** How far, in CSS pixels, a held finger may wander before the hold is a scroll. */
166
- declare const HOLD_SLOP = 8;
167
- interface Box {
168
- readonly top: number;
169
- readonly height: number;
170
- }
171
- /** The zone of a box a vertical position falls in, by thirds. */
172
- declare const zoneOf: (box: Box, y: number) => DragZone;
173
- /**
174
- * An element's box. An element drawn as `display: contents` has none, so its
175
- * first child's stands for it, as an editor's node wrapper's does.
176
- */
177
- declare const boxOf: (element: Element) => Box;
178
- /**
179
- * Dragging one marked descendant of an element onto another, as a Mount. A
180
- * descendant is marked by an attribute whose value is its id, as `Targets`
181
- * marks them; a press on one that then moves past a threshold starts a drag (a
182
- * finger's, held still for `HOLD_TO_DRAG_MS`, as a touch that moves first scrolls), and
183
- * the pointer's place over another marked descendant is reported with the
184
- * zone of it the pointer is in: its first third (`before`), its middle
185
- * (`inside`), or its last third (`after`). Releasing drops, and Escape or a
186
- * cancelled pointer ends the drag with nothing dropped.
187
- *
188
- * It writes no roles, no `tabindex` and no key handling, so the marked
189
- * elements can be anything: a tree's rows, a canvas's nodes. The keyboard's way
190
- * to do what a drag does is the parent's to give. Geometry is measured when the
191
- * pointer moves and never kept; what a drop means is the parent's `update`.
192
- */
193
- declare const PointerDrag: Mount.MountDefinitionWithArgs<"PointerDrag", {
194
- /** The attribute that marks a descendant, holding its id. */
195
- attribute: Schema.String;
196
- /**
197
- * Where a drag may land, when not on the element's own marked descendants:
198
- * the elements marked by `attribute` inside the one `within` selects, such
199
- * as a palette's Blocks dragged onto a page. A drop's `over` is then one of
200
- * those; what is dragged is still one of the element's own. `within` is
201
- * looked for nearest first, under the element's closest ancestor that holds
202
- * a match, so two editors on one page each drop onto their own.
203
- */
204
- targets: Schema.optionalKey<Schema.Struct<{
205
- readonly attribute: Schema.String;
206
- readonly within: Schema.String;
207
- }>>;
208
- /**
209
- * An attribute that names a part of what a drop lands on, on an element
210
- * also marked as one: a place over it carries the part and is `inside`.
211
- */
212
- part: Schema.optionalKey<Schema.String>;
213
- }, {
214
- readonly _tag: "DragStarted";
215
- readonly id: string;
216
- } | {
217
- readonly _tag: "DraggedOver";
218
- readonly over: {
219
- readonly id: string;
220
- readonly zone: "after" | "before" | "inside";
221
- readonly part?: string;
222
- } | null;
223
- readonly region?: boolean;
224
- } | {
225
- readonly _tag: "DragDropped";
226
- readonly id: string;
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: "DragCancelled";
235
- readonly id: string;
236
- }>;
237
- declare const TextEdited: Schema.TaggedStruct<"TextEdited", {
238
- /** The field, by its marking attribute's value. */
239
- readonly field: Schema.String;
240
- readonly text: Schema.String;
241
- }>;
242
- type TextEdited = typeof TextEdited.Type;
243
- declare const TextCommitted: Schema.TaggedStruct<"TextCommitted", {
244
- readonly field: Schema.String;
245
- readonly text: Schema.String;
246
- }>;
247
- type TextCommitted = typeof TextCommitted.Type;
248
- declare const TextCancelled: Schema.TaggedStruct<"TextCancelled", {
249
- readonly field: Schema.String;
250
- /** The text the field had when editing began, which the DOM shows again. */
251
- readonly initial: Schema.String;
252
- }>;
253
- type TextCancelled = typeof TextCancelled.Type;
254
- declare const EditAsked: Schema.TaggedStruct<"EditAsked", {
255
- /** A marked field, not editable yet, that was double-clicked. */
256
- readonly field: Schema.String;
257
- }>;
258
- type EditAsked = typeof EditAsked.Type;
259
- type TextFact = TextEdited | TextCommitted | TextCancelled | EditAsked;
260
- /**
261
- * A field's text. A browser ends an edited element with a line break it adds
262
- * itself, which is not the author's; in one line, the author's breaks are spaces.
263
- */
264
- declare const textOf: (element: HTMLElement) => string;
265
- /**
266
- * Text typed into an editable descendant of an element, as a Mount: one set of
267
- * listeners on the container, like `Targets`. A field is a descendant marked
268
- * by an attribute whose value names it, while it is `contenteditable`. The
269
- * view decides which one is; the Mount focuses it as it becomes so (made
270
- * editable, or drawn editable), with the caret at its end, and at no other
271
- * time. When Enter or Escape ends an edit and the view then removes the field
272
- * or makes it no longer editable, focus, left on nothing, comes back to the
273
- * 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
274
- * to be (`EditAsked`).
275
- *
276
- * It reads `innerText`, never `innerHTML`, so what arrives is text. A field is
277
- * one line unless it carries `aria-multiline="true"`: in one line, a line
278
- * break becomes a space. Nothing is reported while an input method composes;
279
- * the composed text arrives once, when it is done.
280
- *
281
- * Enter commits (Shift+Enter breaks a line in a multiline field), and so does
282
- * leaving the field. Escape cancels, and puts the text the field had when
283
- * editing began back in the DOM, since a view that stopped redrawing the field
284
- * while it was edited will not. Where the browser lacks `plaintext-only`, a
285
- * paste is inserted as text. What an edit means is the parent's `update`.
286
- */
287
- declare const EditableText: Mount.MountDefinitionWithArgs<"EditableText", {
288
- /** The attribute that marks a field, holding its name. */
289
- attribute: Schema.String;
290
- }, {
291
- readonly _tag: "TextEdited";
292
- readonly field: string;
293
- readonly text: string;
294
- } | {
295
- readonly _tag: "TextCommitted";
296
- readonly field: string;
297
- readonly text: string;
298
- } | {
299
- readonly _tag: "TextCancelled";
300
- readonly field: string;
301
- readonly initial: string;
302
- } | {
303
- readonly _tag: "EditAsked";
304
- readonly field: string;
305
- }>;
306
- 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 };
307
- //# sourceMappingURL=editable-text-Bg7vil7h.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editable-text-Bg7vil7h.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;;;;KAIZ,qBAAqB,YAAY;cAEhC,aAAW,OAAA;;;;;;;;;;;;;;KAUZ,qBAAqB,YAAY;cAEhC,aAAW,OAAA;;;;;;;;;;KAMZ,qBAAqB,YAAY;cAEhC,eAAa,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;;;;KAIV,mBAAmB,UAAU;KAE7B,WAAW,aAAa,gBAAgB,gBAAgB;;;;;cASvD,SAAM,SAAa;;;;;;;;;;;;;;;;;;;;;;;cA0CnB,cAAY,MAAA"}
@@ -1,168 +0,0 @@
1
- import { a as modalityOfKey, i as Modality, n as InputModalityMessage, r as InputModalityModel, t as InputModality } from "../input-modality-l7InESYh.mjs";
2
- import { Schema, Stream } from "effect";
3
- import { Bundle } from "foldkit-bundle";
4
- export declare const ActiveElementMessage: import("foldkit/message").MessageUnion<{
5
- readonly Changed: {
6
- tag: Schema.String;
7
- id: Schema.NullOr<Schema.String>;
8
- };
9
- }>;
10
- export type ActiveElementMessage = typeof ActiveElementMessage.Type;
11
- /**
12
- * Focus changes on the document. Without a document the stream is empty
13
- * instead of throwing. Lift with `Subscription.persistentEntry`, mapping into
14
- * the parent's Message.
15
- */
16
- export declare const activeElementEvents: () => Stream.Stream<ActiveElementMessage>;
17
- export interface KeyPress {
18
- readonly key: string;
19
- readonly repeat: boolean;
20
- readonly ctrl: boolean;
21
- readonly shift: boolean;
22
- readonly alt: boolean;
23
- readonly meta: boolean;
24
- }
25
- /**
26
- * Hotkey matching as a pure function over a `Pressed` payload: `matchHotkey`
27
- * answers whether a press is the shortcut, so `update` stays a table of
28
- * chords instead of a nest of modifier checks. Patterns read like
29
- * `"ctrl+shift+k"`: modifiers first (any order), the key last,
30
- * case-insensitive, with `cmd`/`command` and `option` as the Mac names for
31
- * meta and alt. Matching is exact — unlisted modifiers must be up — and
32
- * auto-repeat never matches, so holding a chord fires once. `space` (or a
33
- * bare space) means the space key; `esc` means escape. A pattern with
34
- * no key, or two keys, matches nothing: predicates return false, they do
35
- * not throw on the hot path.
36
- */
37
- export declare const matchHotkey: (pattern: string, press: KeyPress) => boolean;
38
- export declare const IdleModel: Schema.Struct<{
39
- readonly idle: Schema.Boolean;
40
- }>;
41
- export type IdleModel = typeof IdleModel.Type;
42
- export declare const IdleMessage: import("foldkit/message").MessageUnion<{
43
- readonly BecameIdle: {};
44
- readonly BecameActive: {};
45
- }>;
46
- export type IdleMessage = typeof IdleMessage.Type;
47
- /**
48
- * Idleness as a bundle: `idle` in the Model, flipped by activity and
49
- * silence. While active, activity debounced past `timeoutMs` settles to
50
- * `BecameIdle`; while idle, the first activity wakes to `BecameActive` and
51
- * the dependency flip restarts the watch. Starts active — a lurker idles
52
- * when the timeout elapses. The clock is Effect's, so tests drive it with
53
- * TestClock.
54
- */
55
- export declare const Idle: Bundle.Bundle<"Idle", {
56
- readonly timeoutMs: number;
57
- }, {
58
- readonly idle: boolean;
59
- }, {
60
- readonly _tag: "BecameActive";
61
- } | {
62
- readonly _tag: "BecameIdle";
63
- }, never, never, never, void, {}, {}>;
64
- export declare const KeyboardMessage: import("foldkit/message").MessageUnion<{
65
- readonly Pressed: {
66
- key: Schema.String;
67
- repeat: Schema.Boolean;
68
- ctrl: Schema.Boolean;
69
- shift: Schema.Boolean;
70
- alt: Schema.Boolean;
71
- meta: Schema.Boolean;
72
- };
73
- readonly Released: {
74
- key: Schema.String;
75
- };
76
- }>;
77
- export type KeyboardMessage = typeof KeyboardMessage.Type;
78
- /**
79
- * Key presses and releases on the window. Without a window the stream is
80
- * empty instead of throwing. Lift with `Subscription.persistentEntry`, mapping
81
- * into the parent's Message.
82
- */
83
- export declare const keyboardEvents: (options?: {
84
- /**
85
- * Whether to cancel a press's default (the page scrolling under an arrow
86
- * key, the browser's own shortcut), decided in the listener, since a
87
- * default can only be cancelled before the event finishes dispatching.
88
- */
89
- readonly preventDefault?: (press: KeyPress) => boolean;
90
- }) => Stream.Stream<KeyboardMessage>;
91
- export declare const PointerMessage: import("foldkit/message").MessageUnion<{
92
- readonly Moved: {
93
- x: Schema.Number;
94
- y: Schema.Number;
95
- };
96
- }>;
97
- export type PointerMessage = typeof PointerMessage.Type;
98
- /**
99
- * Pointer moves on the window. Without a window the stream is empty instead
100
- * of throwing. Lift with `Subscription.persistentEntry`, mapping into the
101
- * parent's Message.
102
- */
103
- export declare const pointerEvents: () => Stream.Stream<PointerMessage>;
104
- export declare const ScrollMessage: import("foldkit/message").MessageUnion<{
105
- readonly Scrolled: {
106
- x: Schema.Number;
107
- y: Schema.Number;
108
- };
109
- }>;
110
- export type ScrollMessage = typeof ScrollMessage.Type;
111
- /**
112
- * Scrolls on the window, in the capture phase so container scrolls (which
113
- * do not bubble) report too. Without a window the stream is empty instead
114
- * of throwing. Lift with `Subscription.persistentEntry`, mapping into the
115
- * parent's Message.
116
- */
117
- export declare const scrollEvents: () => Stream.Stream<ScrollMessage>;
118
- export declare const VisibilityModel: Schema.Struct<{
119
- readonly visible: Schema.Boolean;
120
- }>;
121
- export type VisibilityModel = typeof VisibilityModel.Type;
122
- export declare const VisibilityMessage: import("foldkit/message").MessageUnion<{
123
- readonly Changed: {
124
- visible: Schema.Boolean;
125
- };
126
- }>;
127
- export type VisibilityMessage = typeof VisibilityMessage.Type;
128
- /**
129
- * Page visibility as a bundle: `visible` in the Model, read from the
130
- * document at startup and kept current by `visibilitychange`. A hidden page
131
- * is the application's cue to pause polling, animations, and realtime
132
- * streams; the decision stays in application `update`, not here.
133
- */
134
- export declare const Visibility: Bundle.Bundle<"Visibility", void, {
135
- readonly visible: boolean;
136
- }, {
137
- readonly _tag: "Changed";
138
- readonly visible: boolean;
139
- }, never, never, never, void, {}, {}>;
140
- export declare const WindowSizeModel: Schema.Struct<{
141
- readonly width: Schema.Number;
142
- readonly height: Schema.Number;
143
- }>;
144
- export type WindowSizeModel = typeof WindowSizeModel.Type;
145
- export declare const WindowSizeMessage: import("foldkit/message").MessageUnion<{
146
- readonly Changed: {
147
- width: Schema.Number;
148
- height: Schema.Number;
149
- };
150
- }>;
151
- export type WindowSizeMessage = typeof WindowSizeMessage.Type;
152
- /**
153
- * Window size as a bundle: `{ width, height }` in the Model, read from the
154
- * window at startup and kept current by one `resize` listener. Breakpoints
155
- * owns its own listener and derives names; place this one when views need
156
- * the raw pixels. Placing both doubles resize listeners — pick the one the
157
- * view reads.
158
- */
159
- export declare const WindowSize: Bundle.Bundle<"WindowSize", void, {
160
- readonly width: number;
161
- readonly height: number;
162
- }, {
163
- readonly _tag: "Changed";
164
- readonly width: number;
165
- readonly height: number;
166
- }, never, never, never, void, {}, {}>;
167
- export { InputModality, InputModalityMessage, InputModalityModel, Modality, modalityOfKey };
168
- //# 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;;;YACV,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;;;YAChB,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"}