@wrongstack/tui 0.316.2 → 0.317.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/dist/components/help-overlay.d.ts +11 -4
- package/dist/components/history/index.d.ts +1 -1
- package/dist/components/history/stream-box.d.ts +6 -0
- package/dist/components/history/types.d.ts +5 -0
- package/dist/components/history/utils.d.ts +1 -1
- package/dist/components/history.d.ts +1 -1
- package/dist/components/scrollable-history.d.ts +1 -1
- package/dist/index.js +564 -328
- package/dist/terminal-width.d.ts +11 -3
- package/package.json +7 -7
package/dist/terminal-width.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ export declare function truncateDisplayStart(value: string, maxWidth: number, el
|
|
|
22
22
|
/** Split without bisecting a grapheme cluster; input is expected to be ANSI-free. */
|
|
23
23
|
export declare function splitDisplay(value: string, maxWidth: number): [head: string, tail: string];
|
|
24
24
|
export declare function padDisplayEnd(value: string, width: number): string;
|
|
25
|
+
/**
|
|
26
|
+
* One-line frame rule of exactly `width` display columns for `width >= 6`
|
|
27
|
+
* (labels are truncated to fit; the auxiliary right label yields first).
|
|
28
|
+
* Narrower widths degrade to bare corners narrower than `width`.
|
|
29
|
+
*/
|
|
25
30
|
export declare function frameRule(width: number, leftLabel: string, rightLabel?: string, edge?: 'top' | 'bottom'): string;
|
|
26
31
|
/**
|
|
27
32
|
* Structural split of a top/bottom frame rule that reserves — but does not
|
|
@@ -37,9 +42,12 @@ export declare function frameRule(width: number, leftLabel: string, rightLabel?:
|
|
|
37
42
|
* `tail` = ` ─` + right corner
|
|
38
43
|
*
|
|
39
44
|
* Invariant: `displayWidth(head) + reservedRightWidth + displayWidth(tail) === width`
|
|
40
|
-
* for any `width ≥
|
|
41
|
-
*
|
|
42
|
-
*
|
|
45
|
+
* for every renderable geometry — any `width ≥ 6` with no slot, and any
|
|
46
|
+
* `width ≥ reservedRightWidth + 9` with one (the label prefix needs its
|
|
47
|
+
* `─ ` / ` ` bookends beside the slot). Narrower widths or oversized slots
|
|
48
|
+
* degrade to bare corners. The chip's live content — spinner, rolling word,
|
|
49
|
+
* growing dots — must still be padded to exactly `reservedRightWidth` by
|
|
50
|
+
* the caller so the right corner never jitters.
|
|
43
51
|
*/
|
|
44
52
|
export declare function frameRuleParts(width: number, leftLabel: string, reservedRightWidth: number, edge?: 'top' | 'bottom'): {
|
|
45
53
|
head: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.317.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"!dist/**/*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wrongstack/core": "0.
|
|
30
|
-
"@wrongstack/kanban": "0.
|
|
31
|
-
"@wrongstack/runtime": "0.
|
|
32
|
-
"@wrongstack/sage": "0.
|
|
33
|
-
"@wrongstack/sdd": "0.
|
|
34
|
-
"@wrongstack/tools": "0.
|
|
29
|
+
"@wrongstack/core": "0.317.2",
|
|
30
|
+
"@wrongstack/kanban": "0.317.2",
|
|
31
|
+
"@wrongstack/runtime": "0.317.2",
|
|
32
|
+
"@wrongstack/sage": "0.317.2",
|
|
33
|
+
"@wrongstack/sdd": "0.317.2",
|
|
34
|
+
"@wrongstack/tools": "0.317.2",
|
|
35
35
|
"ink": "7.1.1",
|
|
36
36
|
"react": "^19.2.8",
|
|
37
37
|
"string-width": "8.2.2",
|