@jboltai/tokui 0.1.0 → 0.1.2

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": "@jboltai/tokui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "TokUI — Zero-dependency streaming UI description & rendering framework for AI chat. Describe UI with a tiny DSL, stream over SSE, render to real DOM incrementally.",
5
5
  "keywords": [
6
6
  "tokui",
@@ -66,7 +66,7 @@
66
66
  "LICENSE"
67
67
  ],
68
68
  "engines": {
69
- "node": ">=18"
69
+ "node": ">=20"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public",
@@ -88,7 +88,8 @@
88
88
  "test:table": "node tests/test-table.js",
89
89
  "typecheck": "tsc",
90
90
  "coverage": "c8 --include='src/**/*.js' --exclude='src/server/**' npm run test:all",
91
- "server": "node src/server/sse-server.js",
91
+ "server": "node demo/server/sse-server.js",
92
+ "demo:sync": "npm run build && cp dist/tokui.umd.js dist/tokui.css demo/lib/",
92
93
  "dev": "vite",
93
94
  "build": "vite build --mode lib",
94
95
  "build:lib": "vite build --mode lib",
@@ -253,6 +253,8 @@ class TokUIBuilder {
253
253
  }
254
254
  /** 卡片页脚 */
255
255
  ft(attrs) { return this._open('ft', attrs); }
256
+ /** 打印区(容器模式:配合 [btn print:ID] 触发 1:1 打印) */
257
+ printArea(attrs) { return this._open('print-area', attrs); }
256
258
  /** 栅格行(使用 row_layout 避免与 table.row 冲突) */
257
259
  row_layout(attrs) { return this._open('row', attrs); }
258
260
  /** 栅格列 */