@vincemakes/kiso-tui-cells 0.24.1 → 0.24.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.d.ts +21 -0
- package/dist/components.js +32 -0
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -376,6 +376,27 @@ export declare const CAP_PREVIEW = 5;
|
|
|
376
376
|
/** The rows a card costs besides its window: two pads, the head, two
|
|
377
377
|
* blanks and the status row. Below this there is no card (DC-43). */
|
|
378
378
|
export declare const CARD_CHROME = 6;
|
|
379
|
+
/**
|
|
380
|
+
* 0.24.2 ③ — the appended expansion, as a CARD.
|
|
381
|
+
*
|
|
382
|
+
* `ctrl+o` used to append bare ground under a `✦` — the turn recap's own
|
|
383
|
+
* mark, one symbol for two meanings (§4.1) — in a page where every other
|
|
384
|
+
* piece of machine work is a card. And it lands after the recap, so the
|
|
385
|
+
* only tie to the call it came from was that mark's sentence.
|
|
386
|
+
*
|
|
387
|
+
* The card's head row names the call, which is the tie, so the mark is
|
|
388
|
+
* not needed for it. The body is the WHOLE result: an expansion that
|
|
389
|
+
* capped would be no expansion.
|
|
390
|
+
*
|
|
391
|
+
* Expanding IN PLACE is a different problem — committed rows are final
|
|
392
|
+
* (§7.1) — and it waits for route B (DC-50).
|
|
393
|
+
*/
|
|
394
|
+
export declare function expandedCard(verb: string, target: string, meta: string, sections: readonly string[], outcome: string, W: number): string[];
|
|
395
|
+
/** 0.24.2 ② — the live region's `thinking…` placeholder: dim italic at
|
|
396
|
+
* column 2, no glyph, the SAME shape a thinking paragraph takes so that
|
|
397
|
+
* whatever arrives replaces it in place. Never committed — see the
|
|
398
|
+
* compositor's #project for why that is what makes it allowed. */
|
|
399
|
+
export declare function thinkingRow(): string;
|
|
379
400
|
/**
|
|
380
401
|
* R4 — the standing act slot.
|
|
381
402
|
*
|
package/dist/components.js
CHANGED
|
@@ -1570,6 +1570,38 @@ function slabBlock(head, body, outcome, W) {
|
|
|
1570
1570
|
return [...top, slabRow("", W)];
|
|
1571
1571
|
return [...top, slabRow("", W), ...noteRow(outcome, W, "body").map((r) => slabRow(r, W)), slabRow("", W)];
|
|
1572
1572
|
}
|
|
1573
|
+
/**
|
|
1574
|
+
* 0.24.2 ③ — the appended expansion, as a CARD.
|
|
1575
|
+
*
|
|
1576
|
+
* `ctrl+o` used to append bare ground under a `✦` — the turn recap's own
|
|
1577
|
+
* mark, one symbol for two meanings (§4.1) — in a page where every other
|
|
1578
|
+
* piece of machine work is a card. And it lands after the recap, so the
|
|
1579
|
+
* only tie to the call it came from was that mark's sentence.
|
|
1580
|
+
*
|
|
1581
|
+
* The card's head row names the call, which is the tie, so the mark is
|
|
1582
|
+
* not needed for it. The body is the WHOLE result: an expansion that
|
|
1583
|
+
* capped would be no expansion.
|
|
1584
|
+
*
|
|
1585
|
+
* Expanding IN PLACE is a different problem — committed rows are final
|
|
1586
|
+
* (§7.1) — and it waits for route B (DC-50).
|
|
1587
|
+
*/
|
|
1588
|
+
export function expandedCard(verb, target, meta, sections, outcome, W) {
|
|
1589
|
+
const p = palette();
|
|
1590
|
+
const head = cutLine(` ${verb} ${p.bold}${escapeTerminal(target)}${p.reset}${slabPaints() ? p.washDim : p.dim} · ${escapeTerminal(meta)}${slabPaints() ? p.washDimEnd : p.reset}`, W);
|
|
1591
|
+
const body = [];
|
|
1592
|
+
for (const raw of sections)
|
|
1593
|
+
for (const row of blockRows(raw, W, slabPaints() ? "body" : "dim"))
|
|
1594
|
+
body.push(row);
|
|
1595
|
+
return slabBlock(head, body, outcome, W);
|
|
1596
|
+
}
|
|
1597
|
+
/** 0.24.2 ② — the live region's `thinking…` placeholder: dim italic at
|
|
1598
|
+
* column 2, no glyph, the SAME shape a thinking paragraph takes so that
|
|
1599
|
+
* whatever arrives replaces it in place. Never committed — see the
|
|
1600
|
+
* compositor's #project for why that is what makes it allowed. */
|
|
1601
|
+
export function thinkingRow() {
|
|
1602
|
+
const p = palette();
|
|
1603
|
+
return `${THINK_COL}${p.dim}${p.italic}thinking…${p.italicEnd}${p.reset}`;
|
|
1604
|
+
}
|
|
1573
1605
|
/** R8a — stamp `└` on a block's FIRST row, after every slice and note
|
|
1574
1606
|
* has been assembled, so the mark is always on the first row actually
|
|
1575
1607
|
* emitted rather than on one a cap may have dropped. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tui-cells",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.2",
|
|
4
4
|
"description": "kiso tui-cells — the components cell renderer (components, diff, width, the render slice). Zero runtime dependencies: input is data, output is bytes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|