@jboltai/tokui 0.2.3 → 0.2.4

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.2.3",
3
+ "version": "0.2.4",
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",
@@ -95,6 +95,10 @@ export declare class TokUIBuilder {
95
95
  floatButton(attrs?: BuilderAttrs): this;
96
96
  masonry(attrs?: BuilderAttrs): this;
97
97
 
98
+ // —— 高级网格布局(容器,需 end() 闭合)——
99
+ grid(attrs?: BuilderAttrs): this;
100
+ cell(attrs?: BuilderAttrs): this;
101
+
98
102
  // —— 表格辅助 ——
99
103
  thead(attrs?: BuilderAttrs): this;
100
104
  theadCols(cols: any[]): this;
@@ -296,6 +296,10 @@ class TokUIBuilder {
296
296
  row_layout(attrs) { return this._open('row', attrs); }
297
297
  /** 栅格列 */
298
298
  col_layout(attrs) { return this._open('col', attrs); }
299
+ /** 高级网格容器(显式二维网格:cols/rows 轨道、areas 模板区域、gap/h 等) */
300
+ grid(attrs) { return this._open('grid', attrs); }
301
+ /** 网格单元(grid 子容器:area 区域名 / c 列跨 / r 行跨 / align / justify) */
302
+ cell(attrs) { return this._open('cell', attrs); }
299
303
  /** 列表 */
300
304
  list(attrs) { return this._open('list', attrs); }
301
305
  /** 列表项(有内容自闭合 [item 文本],无内容开容器供嵌套子 list)。