@visulima/tui 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (250) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE.md +140 -0
  3. package/README.md +3 -3
  4. package/dist/core/index.d.ts +58 -5
  5. package/dist/ink/index.d.ts +6592 -294
  6. package/dist/ink/index.js +1 -1
  7. package/dist/packem_shared/{Histogram-cgAjY5AJ.js → Histogram-CB6XcmZW.js} +1 -1
  8. package/dist/packem_shared/input.d-Bfq7oc06.d.ts +90 -0
  9. package/dist/packem_shared/render.d-CNIzVQTh.d.ts +1257 -0
  10. package/dist/react/index.d.ts +519 -8
  11. package/dist/testing/index.d.ts +274 -135
  12. package/package.json +15 -16
  13. package/dist/core/app.d.ts +0 -50
  14. package/dist/core/cell.d.ts +0 -33
  15. package/dist/core/inline.d.ts +0 -22
  16. package/dist/core/input.d.ts +0 -18
  17. package/dist/core/native-binding.d.ts +0 -22
  18. package/dist/ink/ansi-to-cell.d.ts +0 -5
  19. package/dist/ink/ansi-tokenizer.d.ts +0 -38
  20. package/dist/ink/canvas/braille.d.ts +0 -22
  21. package/dist/ink/canvas/buffer.d.ts +0 -67
  22. package/dist/ink/clipboard.d.ts +0 -29
  23. package/dist/ink/color-matrix.d.ts +0 -49
  24. package/dist/ink/color-utils.d.ts +0 -30
  25. package/dist/ink/colorize.d.ts +0 -4
  26. package/dist/ink/components/accessibility-context.d.ts +0 -4
  27. package/dist/ink/components/accordion.d.ts +0 -52
  28. package/dist/ink/components/alert.d.ts +0 -30
  29. package/dist/ink/components/animate-presence.d.ts +0 -15
  30. package/dist/ink/components/animation-context.d.ts +0 -10
  31. package/dist/ink/components/app-context.d.ts +0 -38
  32. package/dist/ink/components/app.d.ts +0 -19
  33. package/dist/ink/components/approval-prompt.d.ts +0 -55
  34. package/dist/ink/components/area-chart.d.ts +0 -54
  35. package/dist/ink/components/background-context.d.ts +0 -5
  36. package/dist/ink/components/badge.d.ts +0 -27
  37. package/dist/ink/components/bar-chart.d.ts +0 -57
  38. package/dist/ink/components/big-text.d.ts +0 -71
  39. package/dist/ink/components/blink-dot.d.ts +0 -30
  40. package/dist/ink/components/box.d.ts +0 -58
  41. package/dist/ink/components/breadcrumb.d.ts +0 -28
  42. package/dist/ink/components/button.d.ts +0 -38
  43. package/dist/ink/components/calendar.d.ts +0 -60
  44. package/dist/ink/components/canvas.d.ts +0 -38
  45. package/dist/ink/components/card.d.ts +0 -46
  46. package/dist/ink/components/chart-utils.d.ts +0 -54
  47. package/dist/ink/components/checkbox.d.ts +0 -39
  48. package/dist/ink/components/code.d.ts +0 -46
  49. package/dist/ink/components/collapsible.d.ts +0 -43
  50. package/dist/ink/components/command-block.d.ts +0 -38
  51. package/dist/ink/components/command-palette.d.ts +0 -72
  52. package/dist/ink/components/confirm-dialog.d.ts +0 -63
  53. package/dist/ink/components/confirm-input.d.ts +0 -40
  54. package/dist/ink/components/console-overlay.d.ts +0 -52
  55. package/dist/ink/components/content-switcher.d.ts +0 -49
  56. package/dist/ink/components/cursor-context.d.ts +0 -12
  57. package/dist/ink/components/cursor.d.ts +0 -43
  58. package/dist/ink/components/date-picker.d.ts +0 -53
  59. package/dist/ink/components/definition-list.d.ts +0 -37
  60. package/dist/ink/components/dialog.d.ts +0 -93
  61. package/dist/ink/components/diff-view.d.ts +0 -71
  62. package/dist/ink/components/divider.d.ts +0 -40
  63. package/dist/ink/components/error-boundary.d.ts +0 -17
  64. package/dist/ink/components/error-overview.d.ts +0 -6
  65. package/dist/ink/components/file-picker/file-picker.d.ts +0 -58
  66. package/dist/ink/components/file-picker/types.d.ts +0 -35
  67. package/dist/ink/components/file-picker/use-file-system.d.ts +0 -16
  68. package/dist/ink/components/focus-context.d.ts +0 -17
  69. package/dist/ink/components/form.d.ts +0 -74
  70. package/dist/ink/components/gauge.d.ts +0 -75
  71. package/dist/ink/components/gradient.d.ts +0 -38
  72. package/dist/ink/components/heading.d.ts +0 -27
  73. package/dist/ink/components/heatmap.d.ts +0 -51
  74. package/dist/ink/components/help.d.ts +0 -44
  75. package/dist/ink/components/histogram.d.ts +0 -52
  76. package/dist/ink/components/kbd.d.ts +0 -27
  77. package/dist/ink/components/line-chart.d.ts +0 -94
  78. package/dist/ink/components/link.d.ts +0 -34
  79. package/dist/ink/components/loading-indicator.d.ts +0 -24
  80. package/dist/ink/components/markdown.d.ts +0 -34
  81. package/dist/ink/components/masked-input.d.ts +0 -41
  82. package/dist/ink/components/menu.d.ts +0 -70
  83. package/dist/ink/components/message-bubble.d.ts +0 -35
  84. package/dist/ink/components/model-badge.d.ts +0 -32
  85. package/dist/ink/components/multi-select.d.ts +0 -63
  86. package/dist/ink/components/newline.d.ts +0 -12
  87. package/dist/ink/components/operation-tree.d.ts +0 -46
  88. package/dist/ink/components/option-list.d.ts +0 -41
  89. package/dist/ink/components/ordered-list.d.ts +0 -30
  90. package/dist/ink/components/paginator.d.ts +0 -59
  91. package/dist/ink/components/paragraph.d.ts +0 -31
  92. package/dist/ink/components/placeholder.d.ts +0 -47
  93. package/dist/ink/components/progress-bar.d.ts +0 -51
  94. package/dist/ink/components/radio-group.d.ts +0 -62
  95. package/dist/ink/components/scatter-plot.d.ts +0 -23
  96. package/dist/ink/components/scroll/controlled-scroll-view.d.ts +0 -43
  97. package/dist/ink/components/scroll/index.d.ts +0 -10
  98. package/dist/ink/components/scroll/scroll-bar-box.d.ts +0 -15
  99. package/dist/ink/components/scroll/scroll-bar.d.ts +0 -20
  100. package/dist/ink/components/scroll/scroll-list.d.ts +0 -12
  101. package/dist/ink/components/scroll/scroll-view.d.ts +0 -98
  102. package/dist/ink/components/scroll/use-state-ref.d.ts +0 -8
  103. package/dist/ink/components/search-input.d.ts +0 -46
  104. package/dist/ink/components/select-input-indicator.d.ts +0 -36
  105. package/dist/ink/components/select-input-item.d.ts +0 -43
  106. package/dist/ink/components/select-input.d.ts +0 -96
  107. package/dist/ink/components/shimmer-text.d.ts +0 -39
  108. package/dist/ink/components/slider.d.ts +0 -92
  109. package/dist/ink/components/spacer.d.ts +0 -7
  110. package/dist/ink/components/sparkline.d.ts +0 -30
  111. package/dist/ink/components/spinner.d.ts +0 -40
  112. package/dist/ink/components/static-render.d.ts +0 -40
  113. package/dist/ink/components/static.d.ts +0 -24
  114. package/dist/ink/components/status-line.d.ts +0 -30
  115. package/dist/ink/components/status-message.d.ts +0 -26
  116. package/dist/ink/components/stderr-context.d.ts +0 -16
  117. package/dist/ink/components/stdin-context.d.ts +0 -29
  118. package/dist/ink/components/stdout-context.d.ts +0 -16
  119. package/dist/ink/components/stepper.d.ts +0 -42
  120. package/dist/ink/components/stopwatch.d.ts +0 -42
  121. package/dist/ink/components/streaming-text.d.ts +0 -38
  122. package/dist/ink/components/switch.d.ts +0 -46
  123. package/dist/ink/components/tab.d.ts +0 -25
  124. package/dist/ink/components/table.d.ts +0 -80
  125. package/dist/ink/components/tabs.d.ts +0 -104
  126. package/dist/ink/components/tag.d.ts +0 -30
  127. package/dist/ink/components/text-input.d.ts +0 -48
  128. package/dist/ink/components/text.d.ts +0 -63
  129. package/dist/ink/components/textarea.d.ts +0 -62
  130. package/dist/ink/components/timer.d.ts +0 -50
  131. package/dist/ink/components/toast.d.ts +0 -41
  132. package/dist/ink/components/tooltip.d.ts +0 -36
  133. package/dist/ink/components/transform.d.ts +0 -16
  134. package/dist/ink/components/transition.d.ts +0 -53
  135. package/dist/ink/components/tree-view/theme.d.ts +0 -24
  136. package/dist/ink/components/tree-view/tree-node-map.d.ts +0 -72
  137. package/dist/ink/components/tree-view/tree-view-node.d.ts +0 -29
  138. package/dist/ink/components/tree-view/tree-view.d.ts +0 -89
  139. package/dist/ink/components/tree-view/types.d.ts +0 -55
  140. package/dist/ink/components/tree-view/use-tree-view-state.d.ts +0 -135
  141. package/dist/ink/components/tree-view/use-tree-view.d.ts +0 -26
  142. package/dist/ink/components/unordered-list.d.ts +0 -35
  143. package/dist/ink/components/variant-config.d.ts +0 -10
  144. package/dist/ink/cursor-helpers.d.ts +0 -35
  145. package/dist/ink/data-limited-lru-map.d.ts +0 -21
  146. package/dist/ink/devtools-window-polyfill.d.ts +0 -1
  147. package/dist/ink/devtools.d.ts +0 -1
  148. package/dist/ink/dom.d.ts +0 -214
  149. package/dist/ink/get-max-width.d.ts +0 -3
  150. package/dist/ink/highlighter.d.ts +0 -28
  151. package/dist/ink/hooks/use-animation.d.ts +0 -41
  152. package/dist/ink/hooks/use-app.d.ts +0 -6
  153. package/dist/ink/hooks/use-box-metrics.d.ts +0 -58
  154. package/dist/ink/hooks/use-clipboard.d.ts +0 -29
  155. package/dist/ink/hooks/use-color-blindness.d.ts +0 -33
  156. package/dist/ink/hooks/use-console-capture.d.ts +0 -43
  157. package/dist/ink/hooks/use-cursor.d.ts +0 -12
  158. package/dist/ink/hooks/use-focus-manager.d.ts +0 -42
  159. package/dist/ink/hooks/use-focus.d.ts +0 -30
  160. package/dist/ink/hooks/use-form.d.ts +0 -70
  161. package/dist/ink/hooks/use-hotkey.d.ts +0 -37
  162. package/dist/ink/hooks/use-input.d.ts +0 -149
  163. package/dist/ink/hooks/use-interval.d.ts +0 -25
  164. package/dist/ink/hooks/use-is-screen-reader-enabled.d.ts +0 -6
  165. package/dist/ink/hooks/use-key-bindings.d.ts +0 -59
  166. package/dist/ink/hooks/use-key-chord.d.ts +0 -26
  167. package/dist/ink/hooks/use-linked-scroll.d.ts +0 -41
  168. package/dist/ink/hooks/use-paste.d.ts +0 -44
  169. package/dist/ink/hooks/use-persistent-state.d.ts +0 -56
  170. package/dist/ink/hooks/use-scroll-acceleration.d.ts +0 -47
  171. package/dist/ink/hooks/use-scroll-input.d.ts +0 -34
  172. package/dist/ink/hooks/use-stderr.d.ts +0 -6
  173. package/dist/ink/hooks/use-stdin.d.ts +0 -7
  174. package/dist/ink/hooks/use-stdout.d.ts +0 -6
  175. package/dist/ink/hooks/use-stopwatch.d.ts +0 -38
  176. package/dist/ink/hooks/use-terminal-palette.d.ts +0 -19
  177. package/dist/ink/hooks/use-text-buffer.d.ts +0 -42
  178. package/dist/ink/hooks/use-text-selection.d.ts +0 -45
  179. package/dist/ink/hooks/use-timeout.d.ts +0 -24
  180. package/dist/ink/hooks/use-timer.d.ts +0 -47
  181. package/dist/ink/hooks/use-window-size.d.ts +0 -18
  182. package/dist/ink/ime-utils.d.ts +0 -25
  183. package/dist/ink/ink.d.ts +0 -190
  184. package/dist/ink/input-parser.d.ts +0 -10
  185. package/dist/ink/input-utils.d.ts +0 -16
  186. package/dist/ink/instances.d.ts +0 -3
  187. package/dist/ink/kitty-keyboard.d.ts +0 -23
  188. package/dist/ink/layout.d.ts +0 -26
  189. package/dist/ink/log-update-native.d.ts +0 -14
  190. package/dist/ink/log-update.d.ts +0 -21
  191. package/dist/ink/measure-element.d.ts +0 -147
  192. package/dist/ink/measure-text.d.ts +0 -56
  193. package/dist/ink/mouse/ansi-parser.d.ts +0 -37
  194. package/dist/ink/mouse/constants.d.ts +0 -14
  195. package/dist/ink/mouse/fullscreen.d.ts +0 -8
  196. package/dist/ink/mouse/index.d.ts +0 -20
  197. package/dist/ink/mouse/is-intersecting.d.ts +0 -18
  198. package/dist/ink/mouse/mouse-context.d.ts +0 -36
  199. package/dist/ink/mouse/mouse-provider.d.ts +0 -11
  200. package/dist/ink/mouse/use-element-position.d.ts +0 -29
  201. package/dist/ink/mouse/use-mouse-action.d.ts +0 -7
  202. package/dist/ink/mouse/use-mouse-position.d.ts +0 -7
  203. package/dist/ink/mouse/use-mouse.d.ts +0 -7
  204. package/dist/ink/mouse/use-on-mouse-click.d.ts +0 -14
  205. package/dist/ink/mouse/use-on-mouse-hover.d.ts +0 -8
  206. package/dist/ink/mouse/use-on-mouse-state.d.ts +0 -11
  207. package/dist/ink/output.d.ts +0 -75
  208. package/dist/ink/parse-keypress.d.ts +0 -22
  209. package/dist/ink/reconciler.d.ts +0 -3
  210. package/dist/ink/region.d.ts +0 -99
  211. package/dist/ink/render-background.d.ts +0 -4
  212. package/dist/ink/render-border.d.ts +0 -4
  213. package/dist/ink/render-node-to-output.d.ts +0 -38
  214. package/dist/ink/render-scrollbar.d.ts +0 -9
  215. package/dist/ink/render-sticky.d.ts +0 -44
  216. package/dist/ink/render-to-string.d.ts +0 -37
  217. package/dist/ink/render.d.ts +0 -191
  218. package/dist/ink/renderer.d.ts +0 -17
  219. package/dist/ink/resize-observer.d.ts +0 -44
  220. package/dist/ink/sanitize-ansi.d.ts +0 -2
  221. package/dist/ink/scroll.d.ts +0 -23
  222. package/dist/ink/selection.d.ts +0 -70
  223. package/dist/ink/squash-text-nodes.d.ts +0 -18
  224. package/dist/ink/style-flags.d.ts +0 -17
  225. package/dist/ink/styled-line-factory.d.ts +0 -25
  226. package/dist/ink/styled-line-serializer.d.ts +0 -18
  227. package/dist/ink/styled-line.d.ts +0 -119
  228. package/dist/ink/styles.d.ts +0 -369
  229. package/dist/ink/terminal-palette.d.ts +0 -25
  230. package/dist/ink/text-wrap.d.ts +0 -10
  231. package/dist/ink/token-to-elements.d.ts +0 -22
  232. package/dist/ink/utils/format-time.d.ts +0 -4
  233. package/dist/ink/utils.d.ts +0 -9
  234. package/dist/ink/wrap-text.d.ts +0 -3
  235. package/dist/ink/write-synchronized.d.ts +0 -4
  236. package/dist/react/devtools.d.ts +0 -27
  237. package/dist/react/focus.d.ts +0 -39
  238. package/dist/react/hooks.d.ts +0 -238
  239. package/dist/react/layout.d.ts +0 -33
  240. package/dist/react/react.d.ts +0 -57
  241. package/dist/react/reconciler.d.ts +0 -4
  242. package/dist/react/render-to-string.d.ts +0 -21
  243. package/dist/react/renderer.d.ts +0 -2
  244. package/dist/react/scene.d.ts +0 -3
  245. package/dist/react/static.d.ts +0 -39
  246. package/dist/react/styles.d.ts +0 -83
  247. package/dist/react/text-width.d.ts +0 -20
  248. package/dist/testing/keys.d.ts +0 -89
  249. package/dist/testing/screen.d.ts +0 -35
  250. package/dist/testing/wait-for.d.ts +0 -20
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## @visulima/tui [1.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/tui@1.0.0-alpha.4...@visulima/tui@1.0.0-alpha.5) (2026-04-28)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **tui:** annotate Array.from element type in histogram ([8f94a52](https://github.com/visulima/visulima/commit/8f94a52e775430c1336a3b24e9d7a30b59afb3f9))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * re-sort workspace package.json files via vis sort-package-json ([f625696](https://github.com/visulima/visulima/commit/f625696cfac974325774b3243e1a83c3d23acbd7))
10
+ * **tui:** upgrade packem to 2.0.0-alpha.76 ([12e76e0](https://github.com/visulima/visulima/commit/12e76e05c3c7f2656af061a058f6812c7c45d1e4))
11
+
12
+ ### Tests
13
+
14
+ * **tui:** use runtime expect in LineChart empty-series test ([0a6e167](https://github.com/visulima/visulima/commit/0a6e167a332cf35b21391f325ab0ce29591a8ece))
15
+
16
+ ## @visulima/tui [1.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/tui@1.0.0-alpha.3...@visulima/tui@1.0.0-alpha.4) (2026-04-22)
17
+
18
+ ### Bug Fixes
19
+
20
+ * updated install script ([bdeaece](https://github.com/visulima/visulima/commit/bdeaeced0357901dfd92cf1e5a4345cc8924ad65))
21
+
1
22
  ## @visulima/tui [1.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/tui@1.0.0-alpha.2...@visulima/tui@1.0.0-alpha.3) (2026-04-22)
2
23
 
3
24
  ### Features
package/LICENSE.md CHANGED
@@ -139,6 +139,30 @@ Repository: git+https://github.com/visulima/visulima.git
139
139
  > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
140
140
  > >
141
141
  > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
142
+ >
143
+ >
144
+ >
145
+ >
146
+ >
147
+ > # Licenses of bundled types
148
+ > The published @visulima/spinner artifact additionally contains code with the following licenses:
149
+ > MIT
150
+ >
151
+ > # Bundled types:
152
+ > ## cli-spinners
153
+ > License: MIT
154
+ > By: Sindre Sorhus
155
+ > Repository: sindresorhus/cli-spinners
156
+ >
157
+ > > MIT License
158
+ > >
159
+ > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
160
+ > >
161
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
162
+ > >
163
+ > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
164
+ > >
165
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
142
166
 
143
167
  ---------------------------------------
144
168
 
@@ -354,4 +378,120 @@ Repository: sindresorhus/terminal-size
354
378
  <!-- /DEPENDENCIES -->
355
379
 
356
380
  <!-- TYPE_DEPENDENCIES -->
381
+
382
+ # Licenses of bundled types
383
+ The published @visulima/tui artifact additionally contains code with the following licenses:
384
+ MIT
385
+
386
+ # Bundled types:
387
+ ## @visulima/spinner
388
+ License: MIT
389
+ By: Daniel Bannert
390
+ Repository: git+https://github.com/visulima/visulima.git
391
+
392
+ > MIT License
393
+ >
394
+ > Copyright (c) 2026 visulima
395
+ >
396
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
397
+ > of this software and associated documentation files (the "Software"), to deal
398
+ > in the Software without restriction, including without limitation the rights
399
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
400
+ > copies of the Software, and to permit persons to whom the Software is
401
+ > furnished to do so, subject to the following conditions:
402
+ >
403
+ > The above copyright notice and this permission notice shall be included in all
404
+ > copies or substantial portions of the Software.
405
+ >
406
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
407
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
408
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
409
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
410
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
411
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
412
+ > SOFTWARE.
413
+ >
414
+ > ---
415
+ >
416
+ > ## Acknowledgments
417
+ >
418
+ > This project includes spinner animations inspired by and adapted from the following open-source libraries, all licensed under the MIT License:
419
+ >
420
+ > ### Rattles
421
+ >
422
+ > - **Source:** https://github.com/vyfor/rattles
423
+ > - **Author:** vyfor
424
+ > - **License:** MIT
425
+ > - **Description:** A minimal terminal spinner library for Rust that inspired additional braille-based spinner animations.
426
+ >
427
+ > ### unicode-animations
428
+ >
429
+ > - **Source:** https://github.com/gunnargray-dev/unicode-animations
430
+ > - **Author:** gunnar gray
431
+ > - **License:** MIT
432
+ > - **Description:** Provides Unicode-based braille animations that were adapted for additional visual effects.
433
+ >
434
+ > <!-- DEPENDENCIES -->
435
+ >
436
+ > # Licenses of bundled dependencies
437
+ > The published @visulima/spinner artifact additionally contains code with the following licenses:
438
+ > MIT
439
+ >
440
+ > # Bundled dependencies:
441
+ > ## cli-spinners
442
+ > License: MIT
443
+ > By: Sindre Sorhus
444
+ > Repository: sindresorhus/cli-spinners
445
+ >
446
+ > > MIT License
447
+ > >
448
+ > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
449
+ > >
450
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
451
+ > >
452
+ > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
453
+ > >
454
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
455
+ >
456
+ > <!-- /DEPENDENCIES -->
457
+ >
458
+ >
459
+ >
460
+ > # Licenses of bundled types
461
+ > The published @visulima/spinner artifact additionally contains code with the following licenses:
462
+ > MIT
463
+ >
464
+ > # Bundled types:
465
+ > ## cli-spinners
466
+ > License: MIT
467
+ > By: Sindre Sorhus
468
+ > Repository: sindresorhus/cli-spinners
469
+ >
470
+ > > MIT License
471
+ > >
472
+ > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
473
+ > >
474
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
475
+ > >
476
+ > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
477
+ > >
478
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
479
+
480
+ ---------------------------------------
481
+
482
+ ## cli-boxes
483
+ License: MIT
484
+ By: Sindre Sorhus
485
+ Repository: sindresorhus/cli-boxes
486
+
487
+ > MIT License
488
+ >
489
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
490
+ >
491
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
492
+ >
493
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
494
+ >
495
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
496
+
357
497
  <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -54,15 +54,15 @@ Based on [ratatat](https://github.com/geoffmiller/ratatat) by Geoff Miller.
54
54
  ## Install
55
55
 
56
56
  ```sh
57
- npm install @visulima/tui
57
+ npm install @visulima/tui react react-reconciler
58
58
  ```
59
59
 
60
60
  ```sh
61
- yarn add @visulima/tui
61
+ yarn add @visulima/tui react react-reconciler
62
62
  ```
63
63
 
64
64
  ```sh
65
- pnpm add @visulima/tui
65
+ pnpm add @visulima/tui react react-reconciler
66
66
  ```
67
67
 
68
68
  ## Quick Start
@@ -1,5 +1,58 @@
1
- export * from "./app.d.ts";
2
- export * from "./cell.d.ts";
3
- export * from "./inline.d.ts";
4
- export * from "./input.d.ts";
5
- export { Renderer, TerminalGuard, type TerminalSize, terminalSize } from "./native-binding.d.ts";
1
+ export { I as InlineLoop, a as InlineOptions, b as InlinePaintFn, c as InputParser, M as MouseEvent, T as TuiApp, d as createInlineLoop } from "../packem_shared/input.d-Bfq7oc06.js";
2
+ import 'eventemitter3';
3
+ /**
4
+ * 2×u32 per-cell back-buffer layout:
5
+ * buffer[idx * 2] = charCode (Unicode codepoint, u32)
6
+ * buffer[idx * 2 + 1] = attrCode = (styles &lt;< 16) | (bg &lt;< 8) | fg
7
+ */
8
+ declare const Cell: {
9
+ /** Read bg color from an attr slot value (buffer[idx*2+1]) — bits 15:8 */
10
+ getBg(attributeSlot: number): number;
11
+ /** Read the char character from a raw char slot value (buffer[idx*2]) */
12
+ getChar(charSlot: number): string;
13
+ /** Read fg color from an attr slot value (buffer[idx*2+1]) — bits 7:0 */
14
+ getFg(attributeSlot: number): number;
15
+ /** Read styles bitmask from an attr slot value (buffer[idx*2+1]) — bits 23:16 */
16
+ getStyles(attributeSlot: number): number;
17
+ /**
18
+ * Pack a cell into a [charCode, attrCode] tuple.
19
+ * charCode = char.codePointAt(0)
20
+ * attrCode = (styles & 0xFF) &lt;< 16 | (bg & 0xFF) &lt;< 8 | (fg & 0xFF)
21
+ *
22
+ * Write to buffer as: buffer[idx*2] = charCode; buffer[idx*2+1] = attrCode
23
+ */
24
+ pack(char: string, fg?: number, bg?: number, styles?: number): [number, number];
25
+ };
26
+ declare const StyleMasks: {
27
+ BLINK: number;
28
+ BOLD: number;
29
+ DIM: number;
30
+ HIDDEN: number;
31
+ INVERT: number;
32
+ ITALIC: number;
33
+ STRIKETHROUGH: number;
34
+ UNDERLINE: number;
35
+ };
36
+ interface TerminalSize {
37
+ cols: number;
38
+ rows: number;
39
+ }
40
+ interface RendererInstance {
41
+ readonly height: number;
42
+ render: (backBuffer: Uint32Array) => void;
43
+ renderDiff: (backBuffer: Uint32Array) => string;
44
+ resize: (width: number, height: number) => void;
45
+ setRowOffset: (offset: number) => void;
46
+ readonly width: number;
47
+ writeRaw: (data: string) => void;
48
+ }
49
+ type RendererConstructor = new (width: number, height: number) => RendererInstance;
50
+ interface TerminalGuardInstance {
51
+ getSize: () => TerminalSize;
52
+ leave: () => void;
53
+ }
54
+ type TerminalGuardConstructor = new (mouse?: boolean | undefined | null) => TerminalGuardInstance;
55
+ declare const Renderer: RendererConstructor;
56
+ declare const TerminalGuard: TerminalGuardConstructor;
57
+ declare const terminalSize: () => TerminalSize;
58
+ export { Cell, Renderer, StyleMasks, TerminalGuard, type TerminalSize, terminalSize };