@promptctl/rich-js 0.10.0 → 0.11.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 (410) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +20 -110
  3. package/THIRD-PARTY-NOTICES +81 -0
  4. package/dist/core/box.d.ts +0 -1
  5. package/dist/core/box.js +0 -1
  6. package/dist/core/cells.d.ts +0 -1
  7. package/dist/core/cells.js +0 -1
  8. package/dist/core/color.d.ts +6 -1
  9. package/dist/core/color.js +6 -1
  10. package/dist/core/console.d.ts +13 -4
  11. package/dist/core/console.js +78 -87
  12. package/dist/core/emoji.d.ts +0 -1
  13. package/dist/core/emoji.js +0 -1
  14. package/dist/core/export-html.d.ts +24 -0
  15. package/dist/core/export-html.js +106 -0
  16. package/dist/core/export-lines.d.ts +121 -0
  17. package/dist/core/export-lines.js +141 -0
  18. package/dist/core/highlighter.d.ts +0 -1
  19. package/dist/core/highlighter.js +0 -1
  20. package/dist/core/json.d.ts +0 -1
  21. package/dist/core/json.js +0 -1
  22. package/dist/core/markup.d.ts +33 -2
  23. package/dist/core/markup.js +128 -16
  24. package/dist/core/measure.d.ts +0 -1
  25. package/dist/core/measure.js +0 -1
  26. package/dist/core/oklch.d.ts +0 -1
  27. package/dist/core/oklch.js +0 -1
  28. package/dist/core/osc8.d.ts +68 -0
  29. package/dist/core/osc8.js +90 -0
  30. package/dist/core/pretty.d.ts +21 -2
  31. package/dist/core/pretty.js +90 -16
  32. package/dist/core/protocol.d.ts +18 -2
  33. package/dist/core/protocol.js +0 -1
  34. package/dist/core/render.d.ts +0 -1
  35. package/dist/core/render.js +3 -10
  36. package/dist/core/segment.d.ts +0 -1
  37. package/dist/core/segment.js +0 -1
  38. package/dist/core/spinnerData.d.ts +0 -1
  39. package/dist/core/spinnerData.js +0 -1
  40. package/dist/core/strip.d.ts +0 -1
  41. package/dist/core/strip.js +12 -1
  42. package/dist/core/style.d.ts +1 -7
  43. package/dist/core/style.js +84 -67
  44. package/dist/core/subscription.d.ts +0 -1
  45. package/dist/core/subscription.js +0 -1
  46. package/dist/core/text.d.ts +1 -8
  47. package/dist/core/text.js +25 -29
  48. package/dist/core/wrap.d.ts +0 -1
  49. package/dist/core/wrap.js +0 -1
  50. package/dist/host/host-stream.d.ts +0 -1
  51. package/dist/host/host-stream.js +0 -1
  52. package/dist/host/index.d.ts +0 -1
  53. package/dist/host/index.js +0 -1
  54. package/dist/host/terminal-host.d.ts +0 -1
  55. package/dist/host/terminal-host.js +0 -1
  56. package/dist/index.d.ts +4 -3
  57. package/dist/index.js +3 -2
  58. package/dist/node/prompt.d.ts +0 -1
  59. package/dist/node/prompt.js +0 -1
  60. package/dist/node/save.d.ts +2 -7
  61. package/dist/node/save.js +0 -1
  62. package/dist/node/terminal-host.d.ts +0 -1
  63. package/dist/node/terminal-host.js +0 -1
  64. package/dist/node/traceback.d.ts +0 -1
  65. package/dist/node/traceback.js +0 -1
  66. package/dist/renderables/align.d.ts +0 -1
  67. package/dist/renderables/align.js +0 -1
  68. package/dist/renderables/columns.d.ts +12 -1
  69. package/dist/renderables/columns.js +29 -5
  70. package/dist/renderables/constrain.d.ts +0 -1
  71. package/dist/renderables/constrain.js +0 -1
  72. package/dist/renderables/flexStrip.d.ts +0 -1
  73. package/dist/renderables/flexStrip.js +0 -1
  74. package/dist/renderables/group.d.ts +0 -1
  75. package/dist/renderables/group.js +0 -1
  76. package/dist/renderables/layout.d.ts +0 -1
  77. package/dist/renderables/layout.js +20 -7
  78. package/dist/renderables/live.d.ts +0 -1
  79. package/dist/renderables/live.js +0 -1
  80. package/dist/renderables/markdown.d.ts +0 -1
  81. package/dist/renderables/markdown.js +0 -1
  82. package/dist/renderables/padding.d.ts +0 -1
  83. package/dist/renderables/padding.js +0 -1
  84. package/dist/renderables/panel.d.ts +0 -1
  85. package/dist/renderables/panel.js +12 -4
  86. package/dist/renderables/progress.d.ts +0 -1
  87. package/dist/renderables/progress.js +7 -2
  88. package/dist/renderables/progressBar.d.ts +0 -1
  89. package/dist/renderables/progressBar.js +0 -1
  90. package/dist/renderables/prompt.d.ts +0 -1
  91. package/dist/renderables/prompt.js +0 -1
  92. package/dist/renderables/rule.d.ts +0 -1
  93. package/dist/renderables/rule.js +0 -1
  94. package/dist/renderables/spinner.d.ts +0 -1
  95. package/dist/renderables/spinner.js +0 -1
  96. package/dist/renderables/status.d.ts +0 -1
  97. package/dist/renderables/status.js +0 -1
  98. package/dist/renderables/syntax.d.ts +0 -1
  99. package/dist/renderables/syntax.js +0 -1
  100. package/dist/renderables/table.d.ts +0 -1
  101. package/dist/renderables/table.js +8 -3
  102. package/dist/renderables/traceback.d.ts +8 -7
  103. package/dist/renderables/traceback.js +14 -10
  104. package/dist/renderables/tree.d.ts +0 -1
  105. package/dist/renderables/tree.js +0 -1
  106. package/dist/template-bindings/color-funcs.d.ts +0 -1
  107. package/dist/template-bindings/color-funcs.js +0 -1
  108. package/dist/template-bindings/helpers.d.ts +0 -1
  109. package/dist/template-bindings/helpers.js +0 -1
  110. package/dist/template-bindings/index.d.ts +0 -1
  111. package/dist/template-bindings/index.js +0 -1
  112. package/dist/template-bindings/palette-funcs.d.ts +0 -1
  113. package/dist/template-bindings/palette-funcs.js +0 -1
  114. package/dist/template-bindings/style-funcs.d.ts +0 -1
  115. package/dist/template-bindings/style-funcs.js +0 -1
  116. package/dist/themes/buildPalette.d.ts +0 -1
  117. package/dist/themes/buildPalette.js +0 -1
  118. package/dist/themes/colorMath.d.ts +0 -1
  119. package/dist/themes/colorMath.js +0 -1
  120. package/dist/themes/colorRef.d.ts +0 -1
  121. package/dist/themes/colorRef.js +0 -1
  122. package/dist/themes/data/atom-one-dark.d.ts +0 -1
  123. package/dist/themes/data/atom-one-dark.js +0 -1
  124. package/dist/themes/data/atom-one-light.d.ts +0 -1
  125. package/dist/themes/data/atom-one-light.js +0 -1
  126. package/dist/themes/data/catppuccin-frappe.d.ts +0 -1
  127. package/dist/themes/data/catppuccin-frappe.js +0 -1
  128. package/dist/themes/data/catppuccin-latte.d.ts +0 -1
  129. package/dist/themes/data/catppuccin-latte.js +0 -1
  130. package/dist/themes/data/catppuccin-macchiato.d.ts +0 -1
  131. package/dist/themes/data/catppuccin-macchiato.js +0 -1
  132. package/dist/themes/data/catppuccin-mocha.d.ts +0 -1
  133. package/dist/themes/data/catppuccin-mocha.js +0 -1
  134. package/dist/themes/data/cyberpunk.d.ts +0 -1
  135. package/dist/themes/data/cyberpunk.js +0 -1
  136. package/dist/themes/data/default.d.ts +0 -1
  137. package/dist/themes/data/default.js +0 -1
  138. package/dist/themes/data/dracula.d.ts +0 -1
  139. package/dist/themes/data/dracula.js +0 -1
  140. package/dist/themes/data/flexoki.d.ts +0 -1
  141. package/dist/themes/data/flexoki.js +0 -1
  142. package/dist/themes/data/gruvbox.d.ts +0 -1
  143. package/dist/themes/data/gruvbox.js +0 -1
  144. package/dist/themes/data/index.d.ts +0 -1
  145. package/dist/themes/data/index.js +0 -1
  146. package/dist/themes/data/monokai.d.ts +0 -1
  147. package/dist/themes/data/monokai.js +0 -1
  148. package/dist/themes/data/nord.d.ts +0 -1
  149. package/dist/themes/data/nord.js +0 -1
  150. package/dist/themes/data/rose-pine-dawn.d.ts +0 -1
  151. package/dist/themes/data/rose-pine-dawn.js +0 -1
  152. package/dist/themes/data/rose-pine-moon.d.ts +0 -1
  153. package/dist/themes/data/rose-pine-moon.js +0 -1
  154. package/dist/themes/data/rose-pine.d.ts +0 -1
  155. package/dist/themes/data/rose-pine.js +0 -1
  156. package/dist/themes/data/solarized-dark.d.ts +0 -1
  157. package/dist/themes/data/solarized-dark.js +0 -1
  158. package/dist/themes/data/solarized-light.d.ts +0 -1
  159. package/dist/themes/data/solarized-light.js +0 -1
  160. package/dist/themes/data/svg-export.d.ts +0 -1
  161. package/dist/themes/data/svg-export.js +0 -1
  162. package/dist/themes/data/textual-ansi.d.ts +0 -1
  163. package/dist/themes/data/textual-ansi.js +0 -1
  164. package/dist/themes/data/textual-dark.d.ts +0 -1
  165. package/dist/themes/data/textual-dark.js +0 -1
  166. package/dist/themes/data/textual-light.d.ts +0 -1
  167. package/dist/themes/data/textual-light.js +0 -1
  168. package/dist/themes/data/tokyo-night.d.ts +0 -1
  169. package/dist/themes/data/tokyo-night.js +0 -1
  170. package/dist/themes/data/types.d.ts +0 -1
  171. package/dist/themes/data/types.js +0 -1
  172. package/dist/themes/palette.d.ts +0 -1
  173. package/dist/themes/palette.js +0 -1
  174. package/dist/themes/ramp.d.ts +0 -1
  175. package/dist/themes/ramp.js +0 -1
  176. package/dist/themes/registry.d.ts +0 -1
  177. package/dist/themes/registry.js +0 -1
  178. package/dist/themes/terminalThemes.d.ts +0 -1
  179. package/dist/themes/terminalThemes.js +0 -1
  180. package/dist/themes/transpose.d.ts +0 -1
  181. package/dist/themes/transpose.js +0 -1
  182. package/dist/widgets/button.d.ts +0 -1
  183. package/dist/widgets/button.js +0 -1
  184. package/dist/widgets/checkbox.d.ts +0 -1
  185. package/dist/widgets/checkbox.js +0 -1
  186. package/dist/widgets/dropdown.d.ts +0 -1
  187. package/dist/widgets/dropdown.js +0 -1
  188. package/dist/widgets/event-router.d.ts +0 -1
  189. package/dist/widgets/event-router.js +0 -1
  190. package/dist/widgets/focus-manager.d.ts +0 -1
  191. package/dist/widgets/focus-manager.js +0 -1
  192. package/dist/widgets/index.d.ts +0 -1
  193. package/dist/widgets/index.js +0 -1
  194. package/dist/widgets/screen.d.ts +0 -1
  195. package/dist/widgets/screen.js +0 -1
  196. package/dist/widgets/slider.d.ts +0 -1
  197. package/dist/widgets/slider.js +0 -1
  198. package/dist/widgets/static-item.d.ts +0 -1
  199. package/dist/widgets/static-item.js +0 -1
  200. package/dist/widgets/text-input.d.ts +0 -1
  201. package/dist/widgets/text-input.js +0 -1
  202. package/dist/widgets/toggle.d.ts +0 -1
  203. package/dist/widgets/toggle.js +0 -1
  204. package/dist/widgets/types.d.ts +0 -1
  205. package/dist/widgets/types.js +0 -1
  206. package/dist/widgets/widget-base.d.ts +0 -1
  207. package/dist/widgets/widget-base.js +0 -1
  208. package/package.json +4 -3
  209. package/dist/core/box.d.ts.map +0 -1
  210. package/dist/core/box.js.map +0 -1
  211. package/dist/core/cells.d.ts.map +0 -1
  212. package/dist/core/cells.js.map +0 -1
  213. package/dist/core/color.d.ts.map +0 -1
  214. package/dist/core/color.js.map +0 -1
  215. package/dist/core/console.d.ts.map +0 -1
  216. package/dist/core/console.js.map +0 -1
  217. package/dist/core/emoji.d.ts.map +0 -1
  218. package/dist/core/emoji.js.map +0 -1
  219. package/dist/core/highlighter.d.ts.map +0 -1
  220. package/dist/core/highlighter.js.map +0 -1
  221. package/dist/core/json.d.ts.map +0 -1
  222. package/dist/core/json.js.map +0 -1
  223. package/dist/core/markup.d.ts.map +0 -1
  224. package/dist/core/markup.js.map +0 -1
  225. package/dist/core/measure.d.ts.map +0 -1
  226. package/dist/core/measure.js.map +0 -1
  227. package/dist/core/oklch.d.ts.map +0 -1
  228. package/dist/core/oklch.js.map +0 -1
  229. package/dist/core/pretty.d.ts.map +0 -1
  230. package/dist/core/pretty.js.map +0 -1
  231. package/dist/core/protocol.d.ts.map +0 -1
  232. package/dist/core/protocol.js.map +0 -1
  233. package/dist/core/render.d.ts.map +0 -1
  234. package/dist/core/render.js.map +0 -1
  235. package/dist/core/sanitize.d.ts +0 -16
  236. package/dist/core/sanitize.d.ts.map +0 -1
  237. package/dist/core/sanitize.js +0 -19
  238. package/dist/core/sanitize.js.map +0 -1
  239. package/dist/core/segment.d.ts.map +0 -1
  240. package/dist/core/segment.js.map +0 -1
  241. package/dist/core/spinnerData.d.ts.map +0 -1
  242. package/dist/core/spinnerData.js.map +0 -1
  243. package/dist/core/strip.d.ts.map +0 -1
  244. package/dist/core/strip.js.map +0 -1
  245. package/dist/core/style.d.ts.map +0 -1
  246. package/dist/core/style.js.map +0 -1
  247. package/dist/core/subscription.d.ts.map +0 -1
  248. package/dist/core/subscription.js.map +0 -1
  249. package/dist/core/text.d.ts.map +0 -1
  250. package/dist/core/text.js.map +0 -1
  251. package/dist/core/wrap.d.ts.map +0 -1
  252. package/dist/core/wrap.js.map +0 -1
  253. package/dist/host/host-stream.d.ts.map +0 -1
  254. package/dist/host/host-stream.js.map +0 -1
  255. package/dist/host/index.d.ts.map +0 -1
  256. package/dist/host/index.js.map +0 -1
  257. package/dist/host/terminal-host.d.ts.map +0 -1
  258. package/dist/host/terminal-host.js.map +0 -1
  259. package/dist/index.d.ts.map +0 -1
  260. package/dist/index.js.map +0 -1
  261. package/dist/node/prompt.d.ts.map +0 -1
  262. package/dist/node/prompt.js.map +0 -1
  263. package/dist/node/save.d.ts.map +0 -1
  264. package/dist/node/save.js.map +0 -1
  265. package/dist/node/terminal-host.d.ts.map +0 -1
  266. package/dist/node/terminal-host.js.map +0 -1
  267. package/dist/node/traceback.d.ts.map +0 -1
  268. package/dist/node/traceback.js.map +0 -1
  269. package/dist/renderables/align.d.ts.map +0 -1
  270. package/dist/renderables/align.js.map +0 -1
  271. package/dist/renderables/columns.d.ts.map +0 -1
  272. package/dist/renderables/columns.js.map +0 -1
  273. package/dist/renderables/constrain.d.ts.map +0 -1
  274. package/dist/renderables/constrain.js.map +0 -1
  275. package/dist/renderables/flexStrip.d.ts.map +0 -1
  276. package/dist/renderables/flexStrip.js.map +0 -1
  277. package/dist/renderables/group.d.ts.map +0 -1
  278. package/dist/renderables/group.js.map +0 -1
  279. package/dist/renderables/layout.d.ts.map +0 -1
  280. package/dist/renderables/layout.js.map +0 -1
  281. package/dist/renderables/live.d.ts.map +0 -1
  282. package/dist/renderables/live.js.map +0 -1
  283. package/dist/renderables/markdown.d.ts.map +0 -1
  284. package/dist/renderables/markdown.js.map +0 -1
  285. package/dist/renderables/padding.d.ts.map +0 -1
  286. package/dist/renderables/padding.js.map +0 -1
  287. package/dist/renderables/panel.d.ts.map +0 -1
  288. package/dist/renderables/panel.js.map +0 -1
  289. package/dist/renderables/progress.d.ts.map +0 -1
  290. package/dist/renderables/progress.js.map +0 -1
  291. package/dist/renderables/progressBar.d.ts.map +0 -1
  292. package/dist/renderables/progressBar.js.map +0 -1
  293. package/dist/renderables/prompt.d.ts.map +0 -1
  294. package/dist/renderables/prompt.js.map +0 -1
  295. package/dist/renderables/rule.d.ts.map +0 -1
  296. package/dist/renderables/rule.js.map +0 -1
  297. package/dist/renderables/spinner.d.ts.map +0 -1
  298. package/dist/renderables/spinner.js.map +0 -1
  299. package/dist/renderables/status.d.ts.map +0 -1
  300. package/dist/renderables/status.js.map +0 -1
  301. package/dist/renderables/syntax.d.ts.map +0 -1
  302. package/dist/renderables/syntax.js.map +0 -1
  303. package/dist/renderables/table.d.ts.map +0 -1
  304. package/dist/renderables/table.js.map +0 -1
  305. package/dist/renderables/traceback.d.ts.map +0 -1
  306. package/dist/renderables/traceback.js.map +0 -1
  307. package/dist/renderables/tree.d.ts.map +0 -1
  308. package/dist/renderables/tree.js.map +0 -1
  309. package/dist/template-bindings/color-funcs.d.ts.map +0 -1
  310. package/dist/template-bindings/color-funcs.js.map +0 -1
  311. package/dist/template-bindings/helpers.d.ts.map +0 -1
  312. package/dist/template-bindings/helpers.js.map +0 -1
  313. package/dist/template-bindings/index.d.ts.map +0 -1
  314. package/dist/template-bindings/index.js.map +0 -1
  315. package/dist/template-bindings/palette-funcs.d.ts.map +0 -1
  316. package/dist/template-bindings/palette-funcs.js.map +0 -1
  317. package/dist/template-bindings/style-funcs.d.ts.map +0 -1
  318. package/dist/template-bindings/style-funcs.js.map +0 -1
  319. package/dist/themes/buildPalette.d.ts.map +0 -1
  320. package/dist/themes/buildPalette.js.map +0 -1
  321. package/dist/themes/colorMath.d.ts.map +0 -1
  322. package/dist/themes/colorMath.js.map +0 -1
  323. package/dist/themes/colorRef.d.ts.map +0 -1
  324. package/dist/themes/colorRef.js.map +0 -1
  325. package/dist/themes/data/atom-one-dark.d.ts.map +0 -1
  326. package/dist/themes/data/atom-one-dark.js.map +0 -1
  327. package/dist/themes/data/atom-one-light.d.ts.map +0 -1
  328. package/dist/themes/data/atom-one-light.js.map +0 -1
  329. package/dist/themes/data/catppuccin-frappe.d.ts.map +0 -1
  330. package/dist/themes/data/catppuccin-frappe.js.map +0 -1
  331. package/dist/themes/data/catppuccin-latte.d.ts.map +0 -1
  332. package/dist/themes/data/catppuccin-latte.js.map +0 -1
  333. package/dist/themes/data/catppuccin-macchiato.d.ts.map +0 -1
  334. package/dist/themes/data/catppuccin-macchiato.js.map +0 -1
  335. package/dist/themes/data/catppuccin-mocha.d.ts.map +0 -1
  336. package/dist/themes/data/catppuccin-mocha.js.map +0 -1
  337. package/dist/themes/data/cyberpunk.d.ts.map +0 -1
  338. package/dist/themes/data/cyberpunk.js.map +0 -1
  339. package/dist/themes/data/default.d.ts.map +0 -1
  340. package/dist/themes/data/default.js.map +0 -1
  341. package/dist/themes/data/dracula.d.ts.map +0 -1
  342. package/dist/themes/data/dracula.js.map +0 -1
  343. package/dist/themes/data/flexoki.d.ts.map +0 -1
  344. package/dist/themes/data/flexoki.js.map +0 -1
  345. package/dist/themes/data/gruvbox.d.ts.map +0 -1
  346. package/dist/themes/data/gruvbox.js.map +0 -1
  347. package/dist/themes/data/index.d.ts.map +0 -1
  348. package/dist/themes/data/index.js.map +0 -1
  349. package/dist/themes/data/monokai.d.ts.map +0 -1
  350. package/dist/themes/data/monokai.js.map +0 -1
  351. package/dist/themes/data/nord.d.ts.map +0 -1
  352. package/dist/themes/data/nord.js.map +0 -1
  353. package/dist/themes/data/rose-pine-dawn.d.ts.map +0 -1
  354. package/dist/themes/data/rose-pine-dawn.js.map +0 -1
  355. package/dist/themes/data/rose-pine-moon.d.ts.map +0 -1
  356. package/dist/themes/data/rose-pine-moon.js.map +0 -1
  357. package/dist/themes/data/rose-pine.d.ts.map +0 -1
  358. package/dist/themes/data/rose-pine.js.map +0 -1
  359. package/dist/themes/data/solarized-dark.d.ts.map +0 -1
  360. package/dist/themes/data/solarized-dark.js.map +0 -1
  361. package/dist/themes/data/solarized-light.d.ts.map +0 -1
  362. package/dist/themes/data/solarized-light.js.map +0 -1
  363. package/dist/themes/data/svg-export.d.ts.map +0 -1
  364. package/dist/themes/data/svg-export.js.map +0 -1
  365. package/dist/themes/data/textual-ansi.d.ts.map +0 -1
  366. package/dist/themes/data/textual-ansi.js.map +0 -1
  367. package/dist/themes/data/textual-dark.d.ts.map +0 -1
  368. package/dist/themes/data/textual-dark.js.map +0 -1
  369. package/dist/themes/data/textual-light.d.ts.map +0 -1
  370. package/dist/themes/data/textual-light.js.map +0 -1
  371. package/dist/themes/data/tokyo-night.d.ts.map +0 -1
  372. package/dist/themes/data/tokyo-night.js.map +0 -1
  373. package/dist/themes/data/types.d.ts.map +0 -1
  374. package/dist/themes/data/types.js.map +0 -1
  375. package/dist/themes/palette.d.ts.map +0 -1
  376. package/dist/themes/palette.js.map +0 -1
  377. package/dist/themes/ramp.d.ts.map +0 -1
  378. package/dist/themes/ramp.js.map +0 -1
  379. package/dist/themes/registry.d.ts.map +0 -1
  380. package/dist/themes/registry.js.map +0 -1
  381. package/dist/themes/terminalThemes.d.ts.map +0 -1
  382. package/dist/themes/terminalThemes.js.map +0 -1
  383. package/dist/themes/transpose.d.ts.map +0 -1
  384. package/dist/themes/transpose.js.map +0 -1
  385. package/dist/widgets/button.d.ts.map +0 -1
  386. package/dist/widgets/button.js.map +0 -1
  387. package/dist/widgets/checkbox.d.ts.map +0 -1
  388. package/dist/widgets/checkbox.js.map +0 -1
  389. package/dist/widgets/dropdown.d.ts.map +0 -1
  390. package/dist/widgets/dropdown.js.map +0 -1
  391. package/dist/widgets/event-router.d.ts.map +0 -1
  392. package/dist/widgets/event-router.js.map +0 -1
  393. package/dist/widgets/focus-manager.d.ts.map +0 -1
  394. package/dist/widgets/focus-manager.js.map +0 -1
  395. package/dist/widgets/index.d.ts.map +0 -1
  396. package/dist/widgets/index.js.map +0 -1
  397. package/dist/widgets/screen.d.ts.map +0 -1
  398. package/dist/widgets/screen.js.map +0 -1
  399. package/dist/widgets/slider.d.ts.map +0 -1
  400. package/dist/widgets/slider.js.map +0 -1
  401. package/dist/widgets/static-item.d.ts.map +0 -1
  402. package/dist/widgets/static-item.js.map +0 -1
  403. package/dist/widgets/text-input.d.ts.map +0 -1
  404. package/dist/widgets/text-input.js.map +0 -1
  405. package/dist/widgets/toggle.d.ts.map +0 -1
  406. package/dist/widgets/toggle.js.map +0 -1
  407. package/dist/widgets/types.d.ts.map +0 -1
  408. package/dist/widgets/types.js.map +0 -1
  409. package/dist/widgets/widget-base.d.ts.map +0 -1
  410. package/dist/widgets/widget-base.js.map +0 -1
@@ -110,4 +110,3 @@ export function installTraceback(options) {
110
110
  process.on("unhandledRejection", report);
111
111
  installed = report;
112
112
  }
113
- //# sourceMappingURL=traceback.js.map
@@ -14,4 +14,3 @@ export declare class Align implements Renderable, Measurable {
14
14
  maximum: number;
15
15
  };
16
16
  }
17
- //# sourceMappingURL=align.d.ts.map
@@ -44,4 +44,3 @@ export class Align {
44
44
  return { minimum: 1, maximum: options.maxWidth };
45
45
  }
46
46
  }
47
- //# sourceMappingURL=align.js.map
@@ -40,6 +40,18 @@ export declare class Columns implements Renderable, Measurable {
40
40
  * cropped forty cells of content down to `"x"` with no error at all.
41
41
  */
42
42
  private _itemWidth;
43
+ /**
44
+ * The declared column width, bounded by the width offered.
45
+ *
46
+ * [LAW:single-enforcer] A declared width is what a column asks for, not what
47
+ * it takes — the contract `Table._outerWidth` keeps for a declared table
48
+ * width. Read by `_divide` for render and by `_naturalWidth` for measure, so
49
+ * the two answer from one number: laid out at the raw declared width, a
50
+ * six-cell column offered three emitted six-cell lines while `measure`
51
+ * reported three, and the terminal's soft wrap took the frame of everything
52
+ * printed after it.
53
+ */
54
+ private _declaredWidth;
43
55
  /** The width at which every item sits on one row: n columns and the gutters between them. */
44
56
  private _naturalWidth;
45
57
  measure(rawOptions: RenderOptions): {
@@ -47,4 +59,3 @@ export declare class Columns implements Renderable, Measurable {
47
59
  maximum: number;
48
60
  };
49
61
  }
50
- //# sourceMappingURL=columns.d.ts.map
@@ -7,6 +7,16 @@ import { RichText } from "../core/text.js";
7
7
  import { isMeasurable, withBoundedWidth, withCellWidth } from "../core/protocol.js";
8
8
  import { cellCount } from "../core/cells.js";
9
9
  function toRenderable(item) {
10
+ // [LAW:single-enforcer] A `RichText` passed directly implements `render`
11
+ // and would otherwise leave through the passthrough arm below untouched,
12
+ // keeping its default `end: "\n"` (rich-text-5ai) — the same gap the code
13
+ // review found in table.ts's `toRenderable`. A column item is a row
14
+ // fragment, not a printed unit, same as every other embedding site.
15
+ if (item instanceof RichText) {
16
+ const copy = item.copy();
17
+ copy.end = "";
18
+ return copy;
19
+ }
10
20
  if (typeof item === "object" && item !== null && "render" in item) {
11
21
  return item;
12
22
  }
@@ -78,9 +88,10 @@ export class Columns {
78
88
  _divide(options) {
79
89
  const maxWidth = options.maxWidth;
80
90
  const gutter = this.gutterWidth;
81
- if (this.colWidth !== undefined) {
82
- const numCols = Math.max(1, Math.floor((maxWidth + gutter) / (this.colWidth + gutter)));
83
- return { numCols, colWidths: new Array(numCols).fill(this.colWidth) };
91
+ const declared = this._declaredWidth(options);
92
+ if (declared !== undefined) {
93
+ const numCols = Math.max(1, Math.floor((maxWidth + gutter) / (declared + gutter)));
94
+ return { numCols, colWidths: new Array(numCols).fill(declared) };
84
95
  }
85
96
  if (this.equal) {
86
97
  const itemWidth = this._itemWidth(options);
@@ -118,12 +129,26 @@ export class Columns {
118
129
  }
119
130
  return widest;
120
131
  }
132
+ /**
133
+ * The declared column width, bounded by the width offered.
134
+ *
135
+ * [LAW:single-enforcer] A declared width is what a column asks for, not what
136
+ * it takes — the contract `Table._outerWidth` keeps for a declared table
137
+ * width. Read by `_divide` for render and by `_naturalWidth` for measure, so
138
+ * the two answer from one number: laid out at the raw declared width, a
139
+ * six-cell column offered three emitted six-cell lines while `measure`
140
+ * reported three, and the terminal's soft wrap took the frame of everything
141
+ * printed after it.
142
+ */
143
+ _declaredWidth(options) {
144
+ return this.colWidth === undefined ? undefined : Math.min(this.colWidth, options.maxWidth);
145
+ }
121
146
  /** The width at which every item sits on one row: n columns and the gutters between them. */
122
147
  _naturalWidth(options) {
123
148
  const count = this.renderables.length;
124
149
  if (count === 0)
125
150
  return 0;
126
- const width = this.colWidth ?? this._itemWidth(options);
151
+ const width = this._declaredWidth(options) ?? this._itemWidth(options);
127
152
  return count * width + this.gutterWidth * (count - 1);
128
153
  }
129
154
  measure(rawOptions) {
@@ -141,4 +166,3 @@ export class Columns {
141
166
  return { minimum: Math.min(1, maximum), maximum };
142
167
  }
143
168
  }
144
- //# sourceMappingURL=columns.js.map
@@ -13,4 +13,3 @@ export declare class Constrain implements Renderable, Measurable {
13
13
  maximum: number;
14
14
  };
15
15
  }
16
- //# sourceMappingURL=constrain.d.ts.map
@@ -35,4 +35,3 @@ export class Constrain {
35
35
  return { minimum: 1, maximum: options.maxWidth };
36
36
  }
37
37
  }
38
- //# sourceMappingURL=constrain.js.map
@@ -39,4 +39,3 @@ export declare class FlexStrip<T extends StyledRenderable = StyledRenderable> im
39
39
  maximum: number;
40
40
  };
41
41
  }
42
- //# sourceMappingURL=flexStrip.d.ts.map
@@ -198,4 +198,3 @@ export class FlexStrip {
198
198
  return { minimum, maximum };
199
199
  }
200
200
  }
201
- //# sourceMappingURL=flexStrip.js.map
@@ -9,4 +9,3 @@ export declare class Group implements Renderable {
9
9
  constructor(...renderables: Renderable[]);
10
10
  render(options: RenderOptions): Iterable<Segment>;
11
11
  }
12
- //# sourceMappingURL=group.d.ts.map
@@ -13,4 +13,3 @@ export class Group {
13
13
  }
14
14
  }
15
15
  }
16
- //# sourceMappingURL=group.js.map
@@ -90,4 +90,3 @@ export declare class Layout implements Renderable, Measurable {
90
90
  maximum: number;
91
91
  };
92
92
  }
93
- //# sourceMappingURL=layout.d.ts.map
@@ -16,6 +16,24 @@ import { cellCount } from "../core/cells.js";
16
16
  function growthRatio(ratio) {
17
17
  return Number.isFinite(ratio) && ratio > 0 ? ratio : 0;
18
18
  }
19
+ // [LAW:single-enforcer] A leaf's content is a pane, not a printed unit — the
20
+ // same reason panel.ts and table.ts clear `end` on a `RichText` they embed.
21
+ // The string branch already built one with `end: ""`; a `RichText` passed
22
+ // directly needs the same treatment, or it keeps its default `end: "\n"`
23
+ // (rich-text-5ai code review) and draws a trailing blank row through
24
+ // `Segment.cropLines`, which — unlike table.ts's `splitLines`-based cell
25
+ // rendering — does not normalize a trailing empty line away.
26
+ function toRenderable(renderable) {
27
+ if (typeof renderable === "string") {
28
+ return new RichText(renderable, { end: "" });
29
+ }
30
+ if (renderable instanceof RichText) {
31
+ const copy = renderable.copy();
32
+ copy.end = "";
33
+ return copy;
34
+ }
35
+ return renderable;
36
+ }
19
37
  export class Layout {
20
38
  name;
21
39
  visible;
@@ -27,9 +45,7 @@ export class Layout {
27
45
  _splitDirection;
28
46
  constructor(renderable, options) {
29
47
  if (renderable !== undefined) {
30
- this._renderable = typeof renderable === "string"
31
- ? new RichText(renderable, { end: "" })
32
- : renderable;
48
+ this._renderable = toRenderable(renderable);
33
49
  }
34
50
  this.name = options?.name;
35
51
  this.ratio = options?.ratio ?? 1;
@@ -94,9 +110,7 @@ export class Layout {
94
110
  this._splitDirection = "row";
95
111
  }
96
112
  update(renderable) {
97
- this._renderable = typeof renderable === "string"
98
- ? new RichText(renderable, { end: "" })
99
- : renderable;
113
+ this._renderable = toRenderable(renderable);
100
114
  }
101
115
  getByName(name) {
102
116
  if (this.name === name)
@@ -299,4 +313,3 @@ export class Layout {
299
313
  return { minimum: Math.min(this.minimumSize, maximum), maximum };
300
314
  }
301
315
  }
302
- //# sourceMappingURL=layout.js.map
@@ -45,4 +45,3 @@ export declare class Live {
45
45
  private _clearLast;
46
46
  private _writeCursorControl;
47
47
  }
48
- //# sourceMappingURL=live.d.ts.map
@@ -129,4 +129,3 @@ export class Live {
129
129
  this._console.file.write(show ? "\x1b[?25h" : "\x1b[?25l");
130
130
  }
131
131
  }
132
- //# sourceMappingURL=live.js.map
@@ -22,4 +22,3 @@ export declare class Markdown implements Renderable, Measurable {
22
22
  maximum: number;
23
23
  };
24
24
  }
25
- //# sourceMappingURL=markdown.d.ts.map
@@ -180,4 +180,3 @@ export class Markdown {
180
180
  return { minimum: 1, maximum: options.maxWidth };
181
181
  }
182
182
  }
183
- //# sourceMappingURL=markdown.js.map
@@ -36,4 +36,3 @@ export declare class Padding implements Renderable, Measurable {
36
36
  maximum: number;
37
37
  };
38
38
  }
39
- //# sourceMappingURL=padding.d.ts.map
@@ -138,4 +138,3 @@ export class Padding {
138
138
  return { minimum: overhead, maximum: options.maxWidth };
139
139
  }
140
140
  }
141
- //# sourceMappingURL=padding.js.map
@@ -114,4 +114,3 @@ export declare class Panel implements Renderable, Measurable {
114
114
  private _resolveAccessory;
115
115
  static fit(content: string | RichText | Renderable, options?: Omit<PanelOptions, "expand">): Panel;
116
116
  }
117
- //# sourceMappingURL=panel.d.ts.map
@@ -55,10 +55,19 @@ function borderTextStyle(options, own, border) {
55
55
  return own === undefined ? border : getStyle(options, own);
56
56
  }
57
57
  function toRenderable(content) {
58
+ // [LAW:one-type-per-behavior] Content embedded in a panel is a line, not a
59
+ // printed unit — the same reason columns, table cells, tree labels, and
60
+ // every other embedding site build their RichText with `end: ""`. Now that
61
+ // `RichText.render` honors `end` uniformly (rich-text-5ai), leaving this at
62
+ // the default "\n" would draw a trailing blank row whenever content ends
63
+ // with a literal newline.
58
64
  if (typeof content === "string")
59
- return new RichText(content);
60
- if (content instanceof RichText)
61
- return content;
65
+ return new RichText(content, { end: "" });
66
+ if (content instanceof RichText) {
67
+ const copy = content.copy();
68
+ copy.end = "";
69
+ return copy;
70
+ }
62
71
  return content;
63
72
  }
64
73
  export class Panel {
@@ -311,4 +320,3 @@ export class Panel {
311
320
  return new Panel(content, { ...options, expand: false });
312
321
  }
313
322
  }
314
- //# sourceMappingURL=panel.js.map
@@ -88,4 +88,3 @@ export declare function track<T>(iterable: Iterable<T>, options?: {
88
88
  console?: Console;
89
89
  }): Iterable<T>;
90
90
  export {};
91
- //# sourceMappingURL=progress.d.ts.map
@@ -23,7 +23,13 @@ export class TextColumn {
23
23
  // Use a callback so `$&`/`$1`/`$$` in the task description aren't
24
24
  // reinterpreted by String.replace as replacement patterns.
25
25
  const formatted = this.format.replace(/\{task\.description\}/g, () => description);
26
- yield* renderMarkup(formatted).render(options);
26
+ // [LAW:one-type-per-behavior] A column is a row fragment, not a printed
27
+ // line, so it clears `end` the same way `toCellText` does in table.ts —
28
+ // `renderMarkup` returns a fresh `RichText` each call, so it is safe to
29
+ // mutate directly rather than copy.
30
+ const text = renderMarkup(formatted);
31
+ text.end = "";
32
+ yield* text.render(options);
27
33
  }
28
34
  }
29
35
  export class BarColumn {
@@ -233,4 +239,3 @@ export function* track(iterable, options) {
233
239
  progress.stop();
234
240
  }
235
241
  }
236
- //# sourceMappingURL=progress.js.map
@@ -29,4 +29,3 @@ export declare class ProgressBar implements Renderable, Measurable {
29
29
  maximum: number;
30
30
  };
31
31
  }
32
- //# sourceMappingURL=progressBar.d.ts.map
@@ -50,4 +50,3 @@ export class ProgressBar {
50
50
  return { minimum: 4, maximum: w };
51
51
  }
52
52
  }
53
- //# sourceMappingURL=progressBar.js.map
@@ -47,4 +47,3 @@ export declare class FloatPrompt {
47
47
  export declare class Confirm {
48
48
  static ask(promptText: string, input: PromptInput, options?: PromptOptions<boolean>): Promise<boolean>;
49
49
  }
50
- //# sourceMappingURL=prompt.d.ts.map
@@ -123,4 +123,3 @@ export class Confirm {
123
123
  }
124
124
  }
125
125
  }
126
- //# sourceMappingURL=prompt.js.map
@@ -22,4 +22,3 @@ export declare class Rule implements Renderable, Measurable {
22
22
  maximum: number;
23
23
  };
24
24
  }
25
- //# sourceMappingURL=rule.d.ts.map
@@ -88,4 +88,3 @@ function repeatToWidth(char, width) {
88
88
  const gap = width - w;
89
89
  return gap > 0 ? result + " ".repeat(gap) : result;
90
90
  }
91
- //# sourceMappingURL=rule.js.map
@@ -27,4 +27,3 @@ export declare class Spinner implements Renderable, Measurable {
27
27
  maximum: number;
28
28
  };
29
29
  }
30
- //# sourceMappingURL=spinner.d.ts.map
@@ -62,4 +62,3 @@ export class Spinner {
62
62
  return { minimum: frameWidth, maximum: total };
63
63
  }
64
64
  }
65
- //# sourceMappingURL=spinner.js.map
@@ -21,4 +21,3 @@ export declare class Status {
21
21
  stop(): void;
22
22
  update(message: string): void;
23
23
  }
24
- //# sourceMappingURL=status.d.ts.map
@@ -58,4 +58,3 @@ export class Status {
58
58
  this._live.update(this._renderable, { refresh: true });
59
59
  }
60
60
  }
61
- //# sourceMappingURL=status.js.map
@@ -33,4 +33,3 @@ export declare class Syntax implements Renderable, Measurable {
33
33
  private _highlight;
34
34
  static fromPath(_filePath: string, _options?: SyntaxOptions): Syntax;
35
35
  }
36
- //# sourceMappingURL=syntax.d.ts.map
@@ -112,4 +112,3 @@ export class Syntax {
112
112
  throw new Error("Syntax.fromPath requires file system access — use the constructor with code string instead");
113
113
  }
114
114
  }
115
- //# sourceMappingURL=syntax.js.map
@@ -180,4 +180,3 @@ export declare class Table implements Renderable, Measurable {
180
180
  private _renderRow;
181
181
  private _renderTitle;
182
182
  }
183
- //# sourceMappingURL=table.d.ts.map
@@ -35,8 +35,14 @@ function toCellText(content) {
35
35
  return text;
36
36
  }
37
37
  function toRenderable(content) {
38
- // A `RichText` leaves through this arm too — it implements `Renderable`, so
39
- // the prototype carries `render` and the instance is returned untouched.
38
+ // [LAW:single-enforcer] `toCellText` is the one place that clears a cell's
39
+ // `end` — route a directly-passed `RichText` through it rather than letting
40
+ // it leave via the passthrough arm below untouched (rich-text-5ai code
41
+ // review): the passthrough exists for a genuine non-text `Renderable` (a
42
+ // nested `Panel` or `Table`), which carries no `end` to clear.
43
+ if (content instanceof RichText) {
44
+ return toCellText(content);
45
+ }
40
46
  if (typeof content === "object" && content !== null && "render" in content) {
41
47
  return content;
42
48
  }
@@ -689,4 +695,3 @@ export class Table {
689
695
  }
690
696
  }
691
697
  }
692
- //# sourceMappingURL=table.js.map
@@ -6,25 +6,26 @@
6
6
  * `process.exit`, so that lives behind the node seam as `installTraceback` in
7
7
  * `src/node/traceback.ts` — which is what keeps this module, and therefore the
8
8
  * main barrel, importable in a browser.
9
+ *
10
+ * [LAW:types-are-the-program] `TracebackOptions` names only what the renderer
11
+ * reads. There is no `showLocals`: an `Error` carries a stack of locations and
12
+ * nothing of the values in scope at them. The one way to get those in node —
13
+ * an inspector session pausing on exceptions — would have to pause on every
14
+ * throw, caught ones included, to serve `new Traceback(caughtError)`, and it
15
+ * cannot exist in a browser at all. Nor is there a `width` or `theme`: those
16
+ * sized and coloured a source-code excerpt this renderer does not produce.
9
17
  */
10
18
  import { Segment } from "../core/segment.js";
11
19
  import type { Renderable, RenderOptions } from "../core/protocol.js";
12
20
  export interface TracebackOptions {
13
- showLocals?: boolean;
14
21
  suppress?: string[];
15
22
  maxFrames?: number;
16
- width?: number;
17
- theme?: string;
18
23
  }
19
24
  export declare class Traceback implements Renderable {
20
25
  readonly error: Error;
21
26
  readonly maxFrames: number;
22
27
  readonly suppress: string[];
23
- readonly showLocals: boolean;
24
- readonly width: number | undefined;
25
- readonly theme: string | undefined;
26
28
  constructor(error: Error, options?: TracebackOptions);
27
29
  render(options: RenderOptions): Iterable<Segment>;
28
30
  private _renderFrame;
29
31
  }
30
- //# sourceMappingURL=traceback.d.ts.map
@@ -6,6 +6,14 @@
6
6
  * `process.exit`, so that lives behind the node seam as `installTraceback` in
7
7
  * `src/node/traceback.ts` — which is what keeps this module, and therefore the
8
8
  * main barrel, importable in a browser.
9
+ *
10
+ * [LAW:types-are-the-program] `TracebackOptions` names only what the renderer
11
+ * reads. There is no `showLocals`: an `Error` carries a stack of locations and
12
+ * nothing of the values in scope at them. The one way to get those in node —
13
+ * an inspector session pausing on exceptions — would have to pause on every
14
+ * throw, caught ones included, to serve `new Traceback(caughtError)`, and it
15
+ * cannot exist in a browser at all. Nor is there a `width` or `theme`: those
16
+ * sized and coloured a source-code excerpt this renderer does not produce.
9
17
  */
10
18
  import { Segment } from "../core/segment.js";
11
19
  import { Style } from "../core/style.js";
@@ -34,16 +42,10 @@ export class Traceback {
34
42
  error;
35
43
  maxFrames;
36
44
  suppress;
37
- showLocals;
38
- width;
39
- theme;
40
45
  constructor(error, options) {
41
46
  this.error = error;
42
47
  this.maxFrames = options?.maxFrames ?? 100;
43
48
  this.suppress = options?.suppress ?? [];
44
- this.showLocals = options?.showLocals ?? false;
45
- this.width = options?.width;
46
- this.theme = options?.theme;
47
49
  }
48
50
  *render(options) {
49
51
  const excTypeStyle = getStyle(options, "traceback.exc_type");
@@ -66,9 +68,12 @@ export class Traceback {
66
68
  : frames;
67
69
  let displayFrames = filteredFrames;
68
70
  if (this.maxFrames > 0 && displayFrames.length > this.maxFrames) {
69
- const half = Math.floor(this.maxFrames / 2);
70
- const first = displayFrames.slice(0, half);
71
- const last = displayFrames.slice(-half);
71
+ // Spend the budget exactly: the tail takes `maxFrames - head` rather than
72
+ // a second `head`, so an odd budget shows every frame it counts, and it
73
+ // slices from an index because `slice(-0)` is the whole array.
74
+ const head = Math.floor(this.maxFrames / 2);
75
+ const first = displayFrames.slice(0, head);
76
+ const last = displayFrames.slice(displayFrames.length - (this.maxFrames - head));
72
77
  const omitted = displayFrames.length - this.maxFrames;
73
78
  for (const frame of first) {
74
79
  yield* this._renderFrame(frame, options);
@@ -102,4 +107,3 @@ export class Traceback {
102
107
  yield Segment.line();
103
108
  }
104
109
  }
105
- //# sourceMappingURL=traceback.js.map
@@ -52,4 +52,3 @@ export declare class Tree implements Renderable, Measurable {
52
52
  maximum: number;
53
53
  };
54
54
  }
55
- //# sourceMappingURL=tree.d.ts.map
@@ -157,4 +157,3 @@ export class Tree {
157
157
  return { minimum: Math.min(4, maximum), maximum };
158
158
  }
159
159
  }
160
- //# sourceMappingURL=tree.js.map
@@ -75,4 +75,3 @@ import type { FuncMap } from "@promptctl/go-template-js";
75
75
  * `richTextStyleFuncs()`'s `fg`/`bg` to paint them onto text.
76
76
  */
77
77
  export declare function colorFuncs(): FuncMap;
78
- //# sourceMappingURL=color-funcs.d.ts.map
@@ -209,4 +209,3 @@ export function colorFuncs() {
209
209
  ...oklchAxisFuncs(),
210
210
  };
211
211
  }
212
- //# sourceMappingURL=color-funcs.js.map
@@ -22,4 +22,3 @@ import { RichText } from "../core/text.js";
22
22
  * Conflict resolution: `Style.add` — the outer (newly applied) style wins.
23
23
  */
24
24
  export declare function applyStyleToFragment(child: unknown, style: Style): RichText;
25
- //# sourceMappingURL=helpers.d.ts.map
@@ -46,4 +46,3 @@ function baseStyleOf(style) {
46
46
  throw new TypeError(`template function cannot style a fragment whose base style "${style}" is not a style definition: a style name resolves only against the theme of a render`, { cause: err });
47
47
  }
48
48
  }
49
- //# sourceMappingURL=helpers.js.map
@@ -103,4 +103,3 @@ export declare function renderTemplate(engine: Engine<RichText>, source: string,
103
103
  maxWidth?: number;
104
104
  errorStyle?: string;
105
105
  }): Segment[];
106
- //# sourceMappingURL=index.d.ts.map
@@ -139,4 +139,3 @@ function safeErrorStyle(spec) {
139
139
  return FALLBACK_ERROR_STYLE;
140
140
  }
141
141
  }
142
- //# sourceMappingURL=index.js.map
@@ -92,4 +92,3 @@ import type { Palette } from "../themes/palette.js";
92
92
  * ```
93
93
  */
94
94
  export declare function paletteFuncs(getPalette: () => Palette): FuncMap;
95
- //# sourceMappingURL=palette-funcs.d.ts.map
@@ -149,4 +149,3 @@ export function paletteFuncs(getPalette) {
149
149
  };
150
150
  return { color: colorFunc, ramp: rampFunc };
151
151
  }
152
- //# sourceMappingURL=palette-funcs.js.map
@@ -26,4 +26,3 @@ import type { FuncMap } from "@promptctl/go-template-js";
26
26
  * [LAW:one-way-deps] — nothing here imports a palette.
27
27
  */
28
28
  export declare function richTextStyleFuncs(): FuncMap;
29
- //# sourceMappingURL=style-funcs.d.ts.map
@@ -149,4 +149,3 @@ export function richTextStyleFuncs() {
149
149
  style: styleSpecFunc,
150
150
  };
151
151
  }
152
- //# sourceMappingURL=style-funcs.js.map
@@ -34,4 +34,3 @@ export interface BaseColors {
34
34
  * - `surface` = background blended 5% toward foreground
35
35
  */
36
36
  export declare function buildPalette(name: string, dark: boolean, base: BaseColors): Palette;
37
- //# sourceMappingURL=buildPalette.d.ts.map
@@ -54,4 +54,3 @@ export function buildPalette(name, dark, base) {
54
54
  }
55
55
  return new Palette(name, dark, vars);
56
56
  }
57
- //# sourceMappingURL=buildPalette.js.map
@@ -60,4 +60,3 @@ export declare function contrastRatio(a: ColorRgba, b: ColorRgba): number;
60
60
  * lightness moves — there is no caller-side "should I check contrast" branch.
61
61
  */
62
62
  export declare function ensureContrast(fg: ColorRgba, bg: ColorRgba, minRatio?: number): ColorRgba;
63
- //# sourceMappingURL=colorMath.d.ts.map
@@ -177,4 +177,3 @@ export function ensureContrast(fg, bg, minRatio = 4.5) {
177
177
  }
178
178
  return new Oklch(pass, lab.c, lab.h, lab.alpha).toRgba();
179
179
  }
180
- //# sourceMappingURL=colorMath.js.map
@@ -49,4 +49,3 @@ export declare function parseHexColor(hex: string): ColorRgba;
49
49
  * @throws {ColorRefError} on malformed hex or an unknown palette name.
50
50
  */
51
51
  export declare function resolveColorRef(palette: Palette, ref: string): ColorRgba;
52
- //# sourceMappingURL=colorRef.d.ts.map
@@ -94,4 +94,3 @@ function suggest(palette, miss) {
94
94
  .slice(0, SUGGESTION_LIMIT);
95
95
  return near.length === 0 ? "" : `; did you mean: ${near.join(", ")}`;
96
96
  }
97
- //# sourceMappingURL=colorRef.js.map
@@ -1,4 +1,3 @@
1
1
  import type { ThemePaletteData } from "./types.js";
2
2
  declare const theme: ThemePaletteData;
3
3
  export default theme;
4
- //# sourceMappingURL=atom-one-dark.d.ts.map
@@ -156,4 +156,3 @@ const theme = {
156
156
  },
157
157
  };
158
158
  export default theme;
159
- //# sourceMappingURL=atom-one-dark.js.map
@@ -1,4 +1,3 @@
1
1
  import type { ThemePaletteData } from "./types.js";
2
2
  declare const theme: ThemePaletteData;
3
3
  export default theme;
4
- //# sourceMappingURL=atom-one-light.d.ts.map
@@ -156,4 +156,3 @@ const theme = {
156
156
  },
157
157
  };
158
158
  export default theme;
159
- //# sourceMappingURL=atom-one-light.js.map