@effect-tui/react 0.1.0-alpha.1 → 0.1.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-tui/react",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.1",
4
4
  "description": "React bindings for @effect-tui/core",
5
5
  "type": "module",
6
6
  "files": [
package/src/index.ts CHANGED
@@ -52,6 +52,7 @@ export type { TextProps } from "./hosts/text.js"
52
52
  export type { SpacerProps } from "./hosts/spacer.js"
53
53
  export type { VStackProps } from "./hosts/vstack.js"
54
54
  export type { HStackProps } from "./hosts/hstack.js"
55
+ export type { ZStackProps } from "./hosts/zstack.js"
55
56
  export type { BoxProps, BorderKind } from "./hosts/box.js"
56
57
  export type { CanvasProps, DrawContext } from "./hosts/canvas.js"
57
58
 
package/src/renderer.ts CHANGED
@@ -236,12 +236,13 @@ export function createRenderer(options?: RendererOptions): TuiRenderer {
236
236
  for (let y = 0; y < height; y++) {
237
237
  if (!rowChanged(prevBuffer, nextBuffer, y, width)) continue
238
238
  output += ANSI.cursor.to(1, y + 1)
239
- output += ANSI.line.clear
239
+ // Clear the row using default style to avoid carrying stale backgrounds.
240
+ output += palette.sgr(0) + ANSI.line.clear
240
241
  output += emitRowWithReset(nextBuffer, palette, y, width)
241
242
  }
242
243
  } else {
243
244
  // Full redraw (tests/manual mode)
244
- stdout.write(ANSI.cursor.to(1, 1))
245
+ stdout.write(ANSI.cursor.to(1, 1) + palette.sgr(0))
245
246
  for (let y = 0; y < height; y++) {
246
247
  output += emitRowWithReset(nextBuffer, palette, y, width)
247
248
  if (y < height - 1) output += "\r\n"