@zaly/tui 0.1.0 → 0.2.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 (247) hide show
  1. package/dist/{actions-DEIKF2ts.mjs → actions-AY6avfEV.mjs} +2 -3
  2. package/dist/{actions-DEIKF2ts.mjs.map → actions-AY6avfEV.mjs.map} +1 -1
  3. package/dist/{actions--ODlgCQ5.d.mts → actions-B0yyZ-Ww.d.mts} +4 -6
  4. package/dist/actions-B0yyZ-Ww.d.mts.map +1 -0
  5. package/dist/{ansi-CMv71xVr.mjs → ansi-CxgRPLA2.mjs} +3 -4
  6. package/dist/{ansi-CMv71xVr.mjs.map → ansi-CxgRPLA2.mjs.map} +1 -1
  7. package/dist/ansi.d.mts +1 -3
  8. package/dist/ansi.d.mts.map +1 -1
  9. package/dist/ansi.mjs +1 -1
  10. package/dist/{autocomplete-CD30kSe_.d.mts → autocomplete-wgceuhLr.d.mts} +5 -7
  11. package/dist/autocomplete-wgceuhLr.d.mts.map +1 -0
  12. package/dist/{box-C_N_7ChP.mjs → box-DbIjxh39.mjs} +8 -10
  13. package/dist/{box-C_N_7ChP.mjs.map → box-DbIjxh39.mjs.map} +1 -1
  14. package/dist/{builder-Chwtk0nQ.mjs → builder-BdYlK1Ew.mjs} +5 -6
  15. package/dist/{builder-Chwtk0nQ.mjs.map → builder-BdYlK1Ew.mjs.map} +1 -1
  16. package/dist/{callbacks-DLecWn7G.mjs → callbacks-UaBfDStQ.mjs} +8 -12
  17. package/dist/{callbacks-DLecWn7G.mjs.map → callbacks-UaBfDStQ.mjs.map} +1 -1
  18. package/dist/{client-D7qz4TZt.mjs → client-BWm6dNZF.mjs} +4 -5
  19. package/dist/{client-D7qz4TZt.mjs.map → client-BWm6dNZF.mjs.map} +1 -1
  20. package/dist/client-C69qWhMG.mjs +1 -0
  21. package/dist/{clipboard-CNPBTX7j.mjs → clipboard-UEoX9sup.mjs} +2 -3
  22. package/dist/{clipboard-CNPBTX7j.mjs.map → clipboard-UEoX9sup.mjs.map} +1 -1
  23. package/dist/clipboard.d.mts +0 -2
  24. package/dist/clipboard.d.mts.map +1 -1
  25. package/dist/clipboard.mjs +1 -1
  26. package/dist/{color-DBMQLv4Y.mjs → color-Cr1VoL49.mjs} +2 -3
  27. package/dist/{color-DBMQLv4Y.mjs.map → color-Cr1VoL49.mjs.map} +1 -1
  28. package/dist/ctx-CYEzzH-7.mjs +1 -0
  29. package/dist/{ctx-BaQ2hP5u.mjs → ctx-DBeFcZt6.mjs} +4 -5
  30. package/dist/{ctx-BaQ2hP5u.mjs.map → ctx-DBeFcZt6.mjs.map} +1 -1
  31. package/dist/{divider-BlNNN2OS.mjs → divider-BPmnQ0Eu.mjs} +3 -4
  32. package/dist/{divider-BlNNN2OS.mjs.map → divider-BPmnQ0Eu.mjs.map} +1 -1
  33. package/dist/{files-BvThQpOf.mjs → files-C3ZnFpvq.mjs} +3 -4
  34. package/dist/{files-BvThQpOf.mjs.map → files-C3ZnFpvq.mjs.map} +1 -1
  35. package/dist/{files-B_5HDBPp.d.mts → files-CdiDnwA_.d.mts} +3 -5
  36. package/dist/files-CdiDnwA_.d.mts.map +1 -0
  37. package/dist/{flex-Bguo-fUe.mjs → flex-CYp4etqn.mjs} +3 -4
  38. package/dist/{flex-Bguo-fUe.mjs.map → flex-CYp4etqn.mjs.map} +1 -1
  39. package/dist/{github-Cy2hfWJ7.mjs → github-CLveT9mq.mjs} +2 -3
  40. package/dist/{github-Cy2hfWJ7.mjs.map → github-CLveT9mq.mjs.map} +1 -1
  41. package/dist/{github-CyRwUQ3y.d.mts → github-DC0XemKa.d.mts} +3 -5
  42. package/dist/github-DC0XemKa.d.mts.map +1 -0
  43. package/dist/{image-BLls2F4t.d.mts → image-DdRDv7q6.d.mts} +2 -4
  44. package/dist/image-DdRDv7q6.d.mts.map +1 -0
  45. package/dist/{image-Cqtj3yRA.mjs → image-M--Bw4bs.mjs} +6 -7
  46. package/dist/{image-Cqtj3yRA.mjs.map → image-M--Bw4bs.mjs.map} +1 -1
  47. package/dist/image.d.mts +1 -3
  48. package/dist/image.d.mts.map +1 -1
  49. package/dist/image.mjs +1 -1
  50. package/dist/index.d.mts +3 -15
  51. package/dist/index.d.mts.map +1 -1
  52. package/dist/index.mjs +11 -14
  53. package/dist/index.mjs.map +1 -1
  54. package/dist/{input-NuD8TH8N.d.mts → input-C3kfYoEJ.d.mts} +3 -5
  55. package/dist/input-C3kfYoEJ.d.mts.map +1 -0
  56. package/dist/{input-ET2YEMcl.mjs → input-CtGmVrKa.mjs} +6 -7
  57. package/dist/{input-ET2YEMcl.mjs.map → input-CtGmVrKa.mjs.map} +1 -1
  58. package/dist/{inspect-Cxzs-W0g.mjs → inspect-Cli1beu8.mjs} +3 -4
  59. package/dist/{inspect-Cxzs-W0g.mjs.map → inspect-Cli1beu8.mjs.map} +1 -1
  60. package/dist/{inspect-B1uXxdKC.d.mts → inspect-hSl3U2BD.d.mts} +2 -6
  61. package/dist/inspect-hSl3U2BD.d.mts.map +1 -0
  62. package/dist/kitty-0sJ8axU_.mjs +1 -0
  63. package/dist/{kitty-JbCJC0iQ.mjs → kitty-BH_eK6lz.mjs} +2 -3
  64. package/dist/{kitty-JbCJC0iQ.mjs.map → kitty-BH_eK6lz.mjs.map} +1 -1
  65. package/dist/{log-B4djzy2m.mjs → log-D6gGicwQ.mjs} +6 -7
  66. package/dist/{log-B4djzy2m.mjs.map → log-D6gGicwQ.mjs.map} +1 -1
  67. package/dist/{logger-CvJCITzP.mjs → logger-C0WuIlAh.mjs} +5 -6
  68. package/dist/{logger-CvJCITzP.mjs.map → logger-C0WuIlAh.mjs.map} +1 -1
  69. package/dist/{markdown-D3ZtRn6C.mjs → markdown-DvDIPT5L.mjs} +11 -12
  70. package/dist/{markdown-D3ZtRn6C.mjs.map → markdown-DvDIPT5L.mjs.map} +1 -1
  71. package/dist/markdown.d.mts +2 -4
  72. package/dist/markdown.d.mts.map +1 -1
  73. package/dist/markdown.mjs +1 -1
  74. package/dist/math-Dk8hxbmz.mjs +1 -0
  75. package/dist/{math-Dd7a1irv.mjs → math-VPuwFCid.mjs} +1 -2
  76. package/dist/{math-Dd7a1irv.mjs.map → math-VPuwFCid.mjs.map} +1 -1
  77. package/dist/md.bun.d.mts +1 -3
  78. package/dist/md.bun.d.mts.map +1 -1
  79. package/dist/md.bun.mjs +2 -3
  80. package/dist/md.node.d.mts +1 -3
  81. package/dist/md.node.d.mts.map +1 -1
  82. package/dist/md.node.mjs +2 -3
  83. package/dist/{node-BZ7f6HzU.mjs → node-CXNobGaP.mjs} +3 -4
  84. package/dist/{node-BZ7f6HzU.mjs.map → node-CXNobGaP.mjs.map} +1 -1
  85. package/dist/{oklch-Bsh5swbC.mjs → oklch-Boh4YHEc.mjs} +3 -4
  86. package/dist/{oklch-Bsh5swbC.mjs.map → oklch-Boh4YHEc.mjs.map} +1 -1
  87. package/dist/{overlay-LvOjG7kn.mjs → overlay-zDNpwKu0.mjs} +3 -4
  88. package/dist/{overlay-LvOjG7kn.mjs.map → overlay-zDNpwKu0.mjs.map} +1 -1
  89. package/dist/{picker-f6xjgACX.mjs → picker-DV_oxKEv.mjs} +11 -16
  90. package/dist/{picker-f6xjgACX.mjs.map → picker-DV_oxKEv.mjs.map} +1 -1
  91. package/dist/{picker-B-OxKKnD.d.mts → picker-DsB6--GN.d.mts} +6 -8
  92. package/dist/picker-DsB6--GN.d.mts.map +1 -0
  93. package/dist/{queries-BUkBxkuM.mjs → queries-BIniKnLL.mjs} +3 -5
  94. package/dist/{queries-BUkBxkuM.mjs.map → queries-BIniKnLL.mjs.map} +1 -1
  95. package/dist/{queries-C75-wG1B.d.mts → queries-Dmd3IjSd.d.mts} +3 -51
  96. package/dist/queries-Dmd3IjSd.d.mts.map +1 -0
  97. package/dist/{reactive-f7NpAi69.mjs → reactive-DkP75TPk.mjs} +2 -3
  98. package/dist/{reactive-f7NpAi69.mjs.map → reactive-DkP75TPk.mjs.map} +1 -1
  99. package/dist/{registry-DUWpSPoo.mjs → registry-CQU0VwpM.mjs} +9 -14
  100. package/dist/{registry-DUWpSPoo.mjs.map → registry-CQU0VwpM.mjs.map} +1 -1
  101. package/dist/{render-B7LfNM5K.mjs → render-Bp2N2i6J.mjs} +4 -5
  102. package/dist/{render-B7LfNM5K.mjs.map → render-Bp2N2i6J.mjs.map} +1 -1
  103. package/dist/renderer-Dv5fIuIk.mjs +1 -0
  104. package/dist/{renderer-aAtkFgll.mjs → renderer-Ksfkfv5X.mjs} +3 -4
  105. package/dist/{renderer-aAtkFgll.mjs.map → renderer-Ksfkfv5X.mjs.map} +1 -1
  106. package/dist/{renderer-BLsd-wrG.mjs → renderer-OplFCBMq.mjs} +25 -38
  107. package/dist/{renderer-BLsd-wrG.mjs.map → renderer-OplFCBMq.mjs.map} +1 -1
  108. package/dist/{search-FvGnswRl.d.mts → search-DsHzamic.d.mts} +1 -9
  109. package/dist/search-DsHzamic.d.mts.map +1 -0
  110. package/dist/{select-BKE5LzdN.d.mts → select-BZCFXdjp.d.mts} +3 -5
  111. package/dist/select-BZCFXdjp.d.mts.map +1 -0
  112. package/dist/{select-m7NE6Rwa.mjs → select-CUmAFKJh.mjs} +5 -6
  113. package/dist/{select-m7NE6Rwa.mjs.map → select-CUmAFKJh.mjs.map} +1 -1
  114. package/dist/services/logger.d.mts +1 -1
  115. package/dist/services/logger.mjs +1 -1
  116. package/dist/services/notifier.d.mts +1 -3
  117. package/dist/services/notifier.d.mts.map +1 -1
  118. package/dist/services/notifier.mjs +3 -4
  119. package/dist/services/picker.d.mts +5 -7
  120. package/dist/services/picker.d.mts.map +1 -1
  121. package/dist/services/picker.mjs +8 -9
  122. package/dist/services/prompt.d.mts +4 -6
  123. package/dist/services/prompt.d.mts.map +1 -1
  124. package/dist/services/prompt.mjs +7 -8
  125. package/dist/shiki/server.mjs +6 -8
  126. package/dist/shiki/server.mjs.map +1 -1
  127. package/dist/{shiki-CJauRusM.mjs → shiki-BAf9PdIc.mjs} +4 -5
  128. package/dist/{shiki-CJauRusM.mjs.map → shiki-BAf9PdIc.mjs.map} +1 -1
  129. package/dist/{shiki-B4U0s8jT.mjs → shiki-DUUAIE6f.mjs} +4 -7
  130. package/dist/{shiki-B4U0s8jT.mjs.map → shiki-DUUAIE6f.mjs.map} +1 -1
  131. package/dist/{show-DR2x1YFc.mjs → show-D5XNXgZf.mjs} +4 -5
  132. package/dist/{show-DR2x1YFc.mjs.map → show-D5XNXgZf.mjs.map} +1 -1
  133. package/dist/{size-D8JogYLy.mjs → size-BHRJuRk9.mjs} +2 -3
  134. package/dist/{size-D8JogYLy.mjs.map → size-BHRJuRk9.mjs.map} +1 -1
  135. package/dist/{style-DslRHzI4.mjs → style-Cw_EuszU.mjs} +5 -6
  136. package/dist/{style-DslRHzI4.mjs.map → style-Cw_EuszU.mjs.map} +1 -1
  137. package/dist/style.d.mts +2 -4
  138. package/dist/style.d.mts.map +1 -1
  139. package/dist/style.mjs +3 -3
  140. package/dist/{text-BoJdKXLU.mjs → text-BEuhhxr7.mjs} +4 -5
  141. package/dist/text-BEuhhxr7.mjs.map +1 -0
  142. package/dist/{text-CmxbA8lk.d.mts → text-DdkJXgoC.d.mts} +3 -5
  143. package/dist/text-DdkJXgoC.d.mts.map +1 -0
  144. package/dist/{text-DPrhma4x.mjs → text-H_2kzwaz.mjs} +5 -6
  145. package/dist/{text-DPrhma4x.mjs.map → text-H_2kzwaz.mjs.map} +1 -1
  146. package/dist/text.d.mts +1 -1
  147. package/dist/text.mjs +1 -1
  148. package/dist/{theme-C8LkcoaK.mjs → theme-B8hb1lPU.mjs} +3 -4
  149. package/dist/{theme-C8LkcoaK.mjs.map → theme-B8hb1lPU.mjs.map} +1 -1
  150. package/dist/{theme-DVX8dvGG.mjs → theme-BeSaXGNY.mjs} +3 -5
  151. package/dist/{theme-DVX8dvGG.mjs.map → theme-BeSaXGNY.mjs.map} +1 -1
  152. package/dist/themes.d.mts +1 -7
  153. package/dist/themes.d.mts.map +1 -1
  154. package/dist/themes.mjs +1 -1
  155. package/dist/{tree-CTvSpF9b.d.mts → tree-Berzv8Rz.d.mts} +3 -5
  156. package/dist/tree-Berzv8Rz.d.mts.map +1 -0
  157. package/dist/{tree-Bo1afYhe.mjs → tree-D6NvMQx8.mjs} +5 -6
  158. package/dist/{tree-Bo1afYhe.mjs.map → tree-D6NvMQx8.mjs.map} +1 -1
  159. package/dist/{types-C9ceMsbJ.d.mts → types-ByMHEdCF.d.mts} +1 -7
  160. package/dist/types-ByMHEdCF.d.mts.map +1 -0
  161. package/dist/{types-D3jk1rtk.d.mts → types-CUVUJPz6.d.mts} +1 -3
  162. package/dist/types-CUVUJPz6.d.mts.map +1 -0
  163. package/dist/{utils-3M4D_AXZ.mjs → utils-DHXAegVW.mjs} +1 -2
  164. package/dist/{utils-3M4D_AXZ.mjs.map → utils-DHXAegVW.mjs.map} +1 -1
  165. package/dist/{widget-BkMwhY2p.mjs → widget-sFveyrZE.mjs} +3 -4
  166. package/dist/{widget-BkMwhY2p.mjs.map → widget-sFveyrZE.mjs.map} +1 -1
  167. package/dist/{widget-DlF32PRp.d.mts → widget-sPJaKVU2.d.mts} +2 -4
  168. package/dist/widget-sPJaKVU2.d.mts.map +1 -0
  169. package/dist/widgets/autocomplete.d.mts +1 -1
  170. package/dist/widgets/autocomplete.mjs +5 -6
  171. package/dist/widgets/box.d.mts +1 -1
  172. package/dist/widgets/box.mjs +1 -1
  173. package/dist/widgets/code.d.mts +3 -5
  174. package/dist/widgets/code.d.mts.map +1 -1
  175. package/dist/widgets/code.mjs +10 -11
  176. package/dist/widgets/completions/actions.d.mts +1 -1
  177. package/dist/widgets/completions/actions.mjs +1 -1
  178. package/dist/widgets/completions/files.d.mts +1 -1
  179. package/dist/widgets/completions/files.mjs +1 -1
  180. package/dist/widgets/completions/github.d.mts +1 -1
  181. package/dist/widgets/completions/github.mjs +1 -1
  182. package/dist/widgets/completions/index.d.mts +3 -3
  183. package/dist/widgets/completions/index.mjs +3 -3
  184. package/dist/widgets/diff.d.mts +2 -4
  185. package/dist/widgets/diff.d.mts.map +1 -1
  186. package/dist/widgets/diff.mjs +9 -10
  187. package/dist/widgets/diff.mjs.map +1 -1
  188. package/dist/widgets/divider.d.mts +2 -4
  189. package/dist/widgets/divider.d.mts.map +1 -1
  190. package/dist/widgets/divider.mjs +1 -1
  191. package/dist/widgets/image.d.mts +1 -1
  192. package/dist/widgets/image.mjs +5 -6
  193. package/dist/widgets/input.d.mts +1 -1
  194. package/dist/widgets/input.mjs +1 -1
  195. package/dist/widgets/log.d.mts +1 -1
  196. package/dist/widgets/log.mjs +1 -1
  197. package/dist/widgets/markdown.d.mts +5 -7
  198. package/dist/widgets/markdown.d.mts.map +1 -1
  199. package/dist/widgets/markdown.mjs +1 -1
  200. package/dist/widgets/overlay.d.mts +1 -1
  201. package/dist/widgets/overlay.mjs +1 -1
  202. package/dist/widgets/picker.d.mts +1 -1
  203. package/dist/widgets/picker.mjs +1 -1
  204. package/dist/widgets/progress.d.mts +2 -4
  205. package/dist/widgets/progress.d.mts.map +1 -1
  206. package/dist/widgets/progress.mjs +4 -5
  207. package/dist/widgets/select.d.mts +1 -1
  208. package/dist/widgets/select.mjs +1 -1
  209. package/dist/widgets/show.d.mts +1 -3
  210. package/dist/widgets/show.d.mts.map +1 -1
  211. package/dist/widgets/show.mjs +1 -1
  212. package/dist/widgets/spinner.d.mts +2 -4
  213. package/dist/widgets/spinner.d.mts.map +1 -1
  214. package/dist/widgets/spinner.mjs +3 -4
  215. package/dist/widgets/text.d.mts +1 -1
  216. package/dist/widgets/text.mjs +1 -1
  217. package/dist/widgets/tree.d.mts +1 -1
  218. package/dist/widgets/tree.mjs +1 -1
  219. package/dist/widgets/widget.d.mts +1 -1
  220. package/dist/widgets/widget.mjs +1 -1
  221. package/dist/{worker-T6SdPzUH.mjs → worker-CtEowucz.mjs} +2 -3
  222. package/dist/{worker-T6SdPzUH.mjs.map → worker-CtEowucz.mjs.map} +1 -1
  223. package/dist/worker-Mqi380Et.mjs +1 -0
  224. package/package.json +3 -3
  225. package/dist/actions--ODlgCQ5.d.mts.map +0 -1
  226. package/dist/autocomplete-CD30kSe_.d.mts.map +0 -1
  227. package/dist/client-CNGt-dOt.mjs +0 -1
  228. package/dist/ctx-CndlTp1T.mjs +0 -1
  229. package/dist/files-B_5HDBPp.d.mts.map +0 -1
  230. package/dist/github-CyRwUQ3y.d.mts.map +0 -1
  231. package/dist/image-BLls2F4t.d.mts.map +0 -1
  232. package/dist/input-NuD8TH8N.d.mts.map +0 -1
  233. package/dist/inspect-B1uXxdKC.d.mts.map +0 -1
  234. package/dist/kitty-DKQYsQfH.mjs +0 -1
  235. package/dist/math-CU0wmC9N.mjs +0 -1
  236. package/dist/picker-B-OxKKnD.d.mts.map +0 -1
  237. package/dist/queries-C75-wG1B.d.mts.map +0 -1
  238. package/dist/renderer-YHbR7JZ4.mjs +0 -1
  239. package/dist/search-FvGnswRl.d.mts.map +0 -1
  240. package/dist/select-BKE5LzdN.d.mts.map +0 -1
  241. package/dist/text-BoJdKXLU.mjs.map +0 -1
  242. package/dist/text-CmxbA8lk.d.mts.map +0 -1
  243. package/dist/tree-CTvSpF9b.d.mts.map +0 -1
  244. package/dist/types-C9ceMsbJ.d.mts.map +0 -1
  245. package/dist/types-D3jk1rtk.d.mts.map +0 -1
  246. package/dist/widget-DlF32PRp.d.mts.map +0 -1
  247. package/dist/worker-C01jK2Ip.mjs +0 -1
@@ -1,20 +1,20 @@
1
- import { C as useActiveOwner, E as withOwner, S as unwrap, _ as peek, d as createSuspenseBoundary, f as effect, h as memo, l as createRoot, n as SuspenseContext, o as createNode, v as provideContext, x as untrack, y as signal } from "./reactive-f7NpAi69.mjs";
2
- import { i as systemTheme, t as defaultTheme } from "./registry-DUWpSPoo.mjs";
3
- import { c as stripAnsiBg, i as applyDefaultColors, t as RESET } from "./ansi-CMv71xVr.mjs";
4
- import { t as openStyle } from "./style-DslRHzI4.mjs";
5
- import { t as styleBuilder } from "./builder-Chwtk0nQ.mjs";
6
- import { n as box } from "./box-C_N_7ChP.mjs";
7
- import { t as createCtx } from "./ctx-BaQ2hP5u.mjs";
8
- import { t as RenderContext } from "./render-B7LfNM5K.mjs";
9
- import { t as TuiReporter } from "./logger-CvJCITzP.mjs";
10
- import { o as bumpPlacements } from "./kitty-JbCJC0iQ.mjs";
11
- import { a as canonical, t as TerminalQueries } from "./queries-BUkBxkuM.mjs";
1
+ import { C as useActiveOwner, E as withOwner, S as unwrap, _ as peek, d as createSuspenseBoundary, f as effect, h as memo, l as createRoot, n as SuspenseContext, o as createNode, v as provideContext, x as untrack, y as signal } from "./reactive-DkP75TPk.mjs";
2
+ import { i as systemTheme, t as defaultTheme } from "./registry-CQU0VwpM.mjs";
3
+ import { c as stripAnsiBg, i as applyDefaultColors, t as RESET } from "./ansi-CxgRPLA2.mjs";
4
+ import { t as openStyle } from "./style-Cw_EuszU.mjs";
5
+ import { t as styleBuilder } from "./builder-BdYlK1Ew.mjs";
6
+ import { n as box } from "./box-DbIjxh39.mjs";
7
+ import { t as createCtx } from "./ctx-DBeFcZt6.mjs";
8
+ import { t as RenderContext } from "./render-Bp2N2i6J.mjs";
9
+ import { t as TuiReporter } from "./logger-C0WuIlAh.mjs";
10
+ import { o as bumpPlacements } from "./kitty-BH_eK6lz.mjs";
11
+ import { a as canonical, t as TerminalQueries } from "./queries-BIniKnLL.mjs";
12
12
  import { Emitter } from "@zaly/shared";
13
13
  import { sliceAnsi, stringWidth, stripAnsi } from "@zaly/shared/ansi";
14
14
  import { inspect, isDeepStrictEqual } from "node:util";
15
15
  import { Logger } from "@zaly/shared/logger";
16
16
  import { throttle } from "@zaly/shared/throttle";
17
- //#region src/input/actions.ts
17
+ // src/input/actions.ts
18
18
  function filterAction(action, filter) {
19
19
  if (!action) return false;
20
20
  if (!filter) return true;
@@ -225,8 +225,7 @@ var Actions = class extends Emitter {
225
225
  return ret;
226
226
  }
227
227
  };
228
- //#endregion
229
- //#region src/input/colors.ts
228
+ // src/input/colors.ts
230
229
  /** One renderer run: coalesce updates, discard stale snapshots, and own cleanup. */
231
230
  var ColorsWatcher = class {
232
231
  queries;
@@ -293,8 +292,7 @@ var ColorsWatcher = class {
293
292
  this.write("\x1B[?2031l");
294
293
  }
295
294
  };
296
- //#endregion
297
- //#region src/input/decoder.ts
295
+ // src/input/decoder.ts
298
296
  var Decoder = class {
299
297
  #pending = "";
300
298
  #paste;
@@ -613,8 +611,7 @@ function key(partial) {
613
611
  type: "key"
614
612
  };
615
613
  }
616
- //#endregion
617
- //#region src/input/defaults.ts
614
+ // src/input/defaults.ts
618
615
  /**
619
616
  * Catalog of built-in actions with descriptions and default bindings.
620
617
  * Typed as `Record<BuiltinAction, ActionInfo>` so missing entries are a
@@ -751,8 +748,7 @@ const defaultActions = {
751
748
  keys: ["up"]
752
749
  }
753
750
  };
754
- //#endregion
755
- //#region src/input/router.ts
751
+ // src/input/router.ts
756
752
  /**
757
753
  * Routes decoder events to the right node and/or action.
758
754
  *
@@ -918,8 +914,7 @@ function makeRoutedPaste(text) {
918
914
  };
919
915
  return r;
920
916
  }
921
- //#endregion
922
- //#region src/renderer/frame.ts
917
+ // src/renderer/frame.ts
923
918
  function sliceLine(line, from, to, width) {
924
919
  const start = from ? Math.max(0, from - 1) : 0;
925
920
  const end = to ? Math.max(start, to - 1) : width;
@@ -1088,8 +1083,7 @@ var RenderFrame = class {
1088
1083
  };
1089
1084
  }
1090
1085
  };
1091
- //#endregion
1092
- //#region src/renderer/surface.ts
1086
+ // src/renderer/surface.ts
1093
1087
  /**
1094
1088
  * Shared base for the three renderer surfaces (`Stream`, `UI`,
1095
1089
  * `OverlaySurface`). Owns the common lifecycle and paint bookkeeping:
@@ -1164,8 +1158,7 @@ var Surface = class extends Emitter {
1164
1158
  });
1165
1159
  }
1166
1160
  };
1167
- //#endregion
1168
- //#region src/renderer/overlay.ts
1161
+ // src/renderer/overlay.ts
1169
1162
  /**
1170
1163
  * Overlay surface — paints absolute-positioned `Overlay` nodes on top
1171
1164
  * of the stream and UI surfaces after each tick.
@@ -1308,8 +1301,7 @@ var OverlaySurface = class extends Surface {
1308
1301
  for (const { rows, x, y } of painted) for (let r = 0; r < rows.length; r++) frame.overlay(y + r, x, rows[r]);
1309
1302
  }
1310
1303
  };
1311
- //#endregion
1312
- //#region src/renderer/selection.ts
1304
+ // src/renderer/selection.ts
1313
1305
  var SelectionLayer = class extends Emitter {
1314
1306
  #selection;
1315
1307
  #text = "";
@@ -1579,8 +1571,7 @@ function renderRange({ bounds, ctx, end, frame, start }) {
1579
1571
  if (last !== void 0) lines.push(last);
1580
1572
  return lines;
1581
1573
  }
1582
- //#endregion
1583
- //#region src/renderer/stream.ts
1574
+ // src/renderer/stream.ts
1584
1575
  /**
1585
1576
  * Stream surface — append-only list of nodes that render into the bottom
1586
1577
  * of the terminal's scroll region and commit to scrollback as newer
@@ -2002,8 +1993,7 @@ var Stream = class extends Surface {
2002
1993
  for (const s of this.#state) if (s.node.mounted) s.node.unmount();
2003
1994
  }
2004
1995
  };
2005
- //#endregion
2006
- //#region src/renderer/terminal.ts
1996
+ // src/renderer/terminal.ts
2007
1997
  /**
2008
1998
  * Terminal primitive — owns stdin raw mode, stdout writes, and the
2009
1999
  * standard set of control modes we flip for a direct-mode renderer:
@@ -2264,8 +2254,7 @@ var Terminal = class {
2264
2254
  return () => this.#resizeListeners.delete(fn);
2265
2255
  }
2266
2256
  };
2267
- //#endregion
2268
- //#region src/renderer/ui.ts
2257
+ // src/renderer/ui.ts
2269
2258
  /**
2270
2259
  * UI surface — the sticky footer. Renders a single Box tree at the
2271
2260
  * bottom of the terminal, inside the rows reserved by `Terminal`'s
@@ -2378,8 +2367,7 @@ var UI = class extends Surface {
2378
2367
  };
2379
2368
  }
2380
2369
  };
2381
- //#endregion
2382
- //#region src/renderer/renderer.ts
2370
+ // src/renderer/renderer.ts
2383
2371
  var RenderStats = class {
2384
2372
  #stats = {};
2385
2373
  /** Increment a stat by `delta` (default: `1`). */
@@ -2786,7 +2774,6 @@ var Renderer = class extends Emitter {
2786
2774
  this.#escTimer.unref();
2787
2775
  };
2788
2776
  };
2789
- //#endregion
2790
2777
  export { Renderer };
2791
2778
 
2792
- //# sourceMappingURL=renderer-BLsd-wrG.mjs.map
2779
+ //# sourceMappingURL=renderer-OplFCBMq.mjs.map