@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/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/renderer.d.ts.map +1 -1
- package/dist/src/renderer.js +3 -2
- package/dist/src/renderer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/renderer.ts +3 -2
package/package.json
CHANGED
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
|
-
|
|
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"
|