@rlabs-inc/tui 0.2.3 → 0.3.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.
package/README.md CHANGED
@@ -92,10 +92,27 @@ bun run examples/tests/03-layout-flex.ts
92
92
 
93
93
  ## Documentation
94
94
 
95
- - [CLAUDE.md](./CLAUDE.md) - Development guide and philosophy
96
- - [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md) - Deep dive into the architecture
97
- - [docs/API.md](./docs/API.md) - Complete API reference
98
- - [docs/BIND_PRIMITIVE.md](./docs/BIND_PRIMITIVE.md) - Understanding reactivity
95
+ ### Getting Started
96
+ - [Installation](./docs/getting-started/installation.md) - Requirements and setup
97
+ - [Quick Start](./docs/getting-started/quick-start.md) - Hello world in 5 minutes
98
+ - [Core Concepts](./docs/getting-started/concepts.md) - Understand the fundamentals
99
+ - [First App Tutorial](./docs/getting-started/first-app.md) - Build a complete app
100
+
101
+ ### User Guides
102
+ - [Primitives](./docs/guides/primitives/) - box, text, each, show, when
103
+ - [Layout](./docs/guides/layout/flexbox.md) - Flexbox layout system
104
+ - [Styling](./docs/guides/styling/colors.md) - Colors, themes, borders
105
+ - [Reactivity](./docs/guides/reactivity/signals.md) - Signals and reactivity
106
+ - [Patterns](./docs/guides/patterns/component-patterns.md) - Building components
107
+
108
+ ### Reference
109
+ - [API Reference](./docs/api/README.md) - Complete API documentation
110
+ - [Architecture](./docs/contributing/architecture.md) - Deep dive into internals
111
+ - [Examples](./docs/examples/README.md) - 100+ working examples
112
+
113
+ ### Contributing
114
+ - [Development Setup](./docs/contributing/development.md) - Get started contributing
115
+ - [Internals](./docs/contributing/internals/) - Engine deep-dives
99
116
 
100
117
  ## Primitives
101
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rlabs-inc/tui",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "The Terminal UI Framework for TypeScript/Bun - Blazing-fast, fine-grained reactive terminal UI with complete flexbox layout",
5
5
  "module": "index.ts",
6
6
  "main": "index.ts",
@@ -62,9 +62,9 @@ export class AppendRegionRenderer {
62
62
  process.stdout.write(ansi.cursorUp(this.previousHeight))
63
63
  process.stdout.write(ansi.eraseDown)
64
64
  } else {
65
- // Active area exceeded viewport - clear terminal
66
- // History that scrolled up is already in scrollback, so this is fine
67
- process.stdout.write(ansi.clearTerminal)
65
+ // Active area exceeded viewport - clear visible screen only
66
+ // Use clearViewport (not clearTerminal) to preserve scrollback history
67
+ process.stdout.write(ansi.clearViewport)
68
68
  }
69
69
  }
70
70
 
@@ -92,8 +92,8 @@ export class AppendRegionRenderer {
92
92
  process.stdout.write(ansi.cursorUp(this.previousHeight))
93
93
  process.stdout.write(ansi.eraseDown)
94
94
  } else {
95
- // Active area exceeded viewport - clear terminal
96
- process.stdout.write(ansi.clearTerminal)
95
+ // Active area exceeded viewport - clear visible screen only
96
+ process.stdout.write(ansi.clearViewport)
97
97
  }
98
98
  this.previousHeight = 0
99
99
  }