layoutz-1.0.0.0: CHANGELOG.md
# Changelog
## [1.0.0.0] - 2026-12-02
layoutz 1.0. The runtime has been rewritten.
Apps now get mouse clicks and scrolling,
keyboard focus, text inputs and select lists, overlays for popups, scrollable viewports,
and layouts that adapt to the terminal size and redraw when you resize it.
Views can be tested without a terminal: render them at a given size, or simulate clicks and keypresses.
From here on the API will be more stable, and breaking changes will be rare. This release does break
the 0.4 API, though. In short:
-- 0.4 -- 1.0
L View msg
layout [..] vstack [..]
tightRow [..] row [..] & gap 0
withColor ColorRed (box "Hi" xs) box "Hi" xs & fg ColorRed
withBorder BorderRound x x & border BorderRound
runAppWith opts app run opts app -- returns the final model
CmdExit / subBatch [..] cmdQuit / (<>)
styleDots loaderDots
renderText x T.pack (render x)
Also fixes the plotStackedBar legend colours (#51). Text is used internally now, but
the public API still takes String. Adds a dependency on unix (not on Windows).
## [0.4.0.0] - 2026-07-12
### Added
- Inline raster images via the kitty graphics protocol: `kittyImage`, `kittyImageFile`, `kittyRGB`, `kittyRGBA`. Images measure exactly `cols`×`rows` cells, so they compose with boxes, rows, tables, etc.
- One-shot `ask*` prompts that collapse to a single line once answered
- Progress `loader`s for wrapping work in build scripts and batch jobs: `loader`, `loaderStream`, and their `*Styled` variants
## [0.3.4.0] - 2026-03-31
### Added
- `renderText :: Element a => a -> Text` for rendering directly to `Data.Text.Text`.
- Unit tests for `renderText`.
### Changed
- Added `text` as an explicit dep on boot (stil technically zero dep by GHC standards)
- But easy to comment out `renderText` for porting to MicroHs
## [0.3.3.0] - 2026-03-14
### Added
- `runAppFinal`: like `runApp` but returns the final application state.
- `runAppWithFinal`: like `runAppWith` but returns the final application state.
- `runInline`: renders app inline without alt-screen, for embedded spinners/progress bars.
- New `InlineLoadingDemo` example.
## [0.3.2.0] - 2026-03-11
### Added
- `CmdExit` command for graceful app shutdown from within `appUpdate`.
- `cmdIsExit` helper to check if a command tree contains an exit.
### Fixed
- Haddock markup errors.
- `SpinnerDemo.hs` example.
## [0.3.1.0] - 2026-03-01
### Changed
- Documentation tweaks and Haddock polish.
## [0.3.0.0] - 2026-03-01
### Added
- TUI runtime (`LayoutzApp`, Elm Architecture style event loop).
- Keyboard input handling (`Key`, `readKey`).
- Commands (`Cmd`, `cmdFire`, `cmdTask`, `cmdAfterMs`).
- Subscriptions (`Sub`, `subKeyPress`, `subEveryMs`).
- `AppOptions` and `AppAlignment` for layout customization.
- Spinner animations (`SpinnerDots`, `SpinnerLine`, `SpinnerClock`, `SpinnerBounce`).
- Visualization primitives: `plotSparkline`, `plotLine`, `plotPie`, `plotBar`, `plotStackedBar`, `plotHeatmap`.
- Braille-based line and pie chart rendering.
- 256-color and RGB true-color support (`ColorFull`, `ColorTrue`).
- Text styles with `Semigroup` combining (`StyleBold <> StyleItalic`).
- `tightRow` for gapless horizontal layouts.
- `wrap` for word-boundary text wrapping.
- Ordered lists (`ol`) with nested numbering (arabic, alpha, roman).
## [0.1.0.0] - 2026-02-27
### Added
- Initial Haskell port of layoutz.
- Core DSL: `text`, `layout`, `box`, `row`, `center`, `ul`, `table`, `kv`, `tree`.
- Border styles: normal, double, thick, round, ASCII, block, dashed, dotted, half-block, markdown, custom.
- `withBorder`, `withColor`, `withStyle` combinators.
- ANSI-aware width calculation (`charWidth`, `visibleLength`).
- `hr`, `vr`, `pad`, `margin`, `chart`, `section`, `alignLeft`/`alignRight`/`alignCenter`/`justify`.
- `OverloadedStrings` support for `L`.