@easbot/tui 0.3.26 → 0.3.28

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.en.md CHANGED
@@ -6,6 +6,9 @@ Minimal terminal UI framework with differential rendering and synchronized outpu
6
6
 
7
7
  > Ported and extended from pi-tui, with full control over the underlying implementation to support EASBot applications.
8
8
 
9
+ ## Version
10
+
11
+ v0.3.28
9
12
  ## Features
10
13
 
11
14
  - **Differential Rendering**: Three-strategy rendering system that only updates what changed
@@ -20,7 +23,7 @@ Minimal terminal UI framework with differential rendering and synchronized outpu
20
23
  ## Quick Start
21
24
 
22
25
  ```typescript
23
- import { TUI, Text, Editor, ProcessTerminal } from "@easbot/tui";
26
+ import { TUI, Text, Editor, ProcessTerminal } from '@easbot/tui';
24
27
 
25
28
  // Create terminal
26
29
  const terminal = new ProcessTerminal();
@@ -29,11 +32,11 @@ const terminal = new ProcessTerminal();
29
32
  const tui = new TUI(terminal);
30
33
 
31
34
  // Add components
32
- tui.addChild(new Text("Welcome to my app!"));
35
+ tui.addChild(new Text('Welcome to my app!'));
33
36
 
34
37
  const editor = new Editor(tui, editorTheme);
35
38
  editor.onSubmit = (text) => {
36
- console.log("Submitted:", text);
39
+ console.log('Submitted:', text);
37
40
  tui.addChild(new Text(`You said: ${text}`));
38
41
  };
39
42
  tui.addChild(editor);
package/README.md CHANGED
@@ -6,6 +6,9 @@
6
6
 
7
7
  > 基于 pi-tui 移植和扩展,完全掌控底层实现,支撑 EASBot 应用。
8
8
 
9
+ ## 版本
10
+
11
+ v0.3.28
9
12
  ## 特性
10
13
 
11
14
  - **差异渲染**: 三策略渲染系统,仅更新变化的内容
@@ -20,7 +23,7 @@
20
23
  ## 快速开始
21
24
 
22
25
  ```typescript
23
- import { TUI, Text, Editor, ProcessTerminal } from "@easbot/tui";
26
+ import { TUI, Text, Editor, ProcessTerminal } from '@easbot/tui';
24
27
 
25
28
  // 创建终端
26
29
  const terminal = new ProcessTerminal();
@@ -29,11 +32,11 @@ const terminal = new ProcessTerminal();
29
32
  const tui = new TUI(terminal);
30
33
 
31
34
  // 添加组件
32
- tui.addChild(new Text("欢迎使用我的应用!"));
35
+ tui.addChild(new Text('欢迎使用我的应用!'));
33
36
 
34
37
  const editor = new Editor(tui, editorTheme);
35
38
  editor.onSubmit = (text) => {
36
- console.log("已提交:", text);
39
+ console.log('已提交:', text);
37
40
  tui.addChild(new Text(`你说: ${text}`));
38
41
  };
39
42
  tui.addChild(editor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easbot/tui",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "description": "EASBot Terminal User Interface library - A fully autonomous TUI rendering engine ported and extended from pi-tui",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",