@vincemakes/kiso-tui 0.21.1 → 0.22.0

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.
Files changed (2) hide show
  1. package/dist/compositor.js +11 -0
  2. package/package.json +2 -2
@@ -2849,6 +2849,17 @@ export class Body {
2849
2849
  #space(i, prev, rows) {
2850
2850
  if (i > 0 && this.#cells[i]?.kind === "md" && this.#cells[i - 1]?.kind === "md")
2851
2851
  return rows;
2852
+ // R7a, extended to the SETTLED side (R9 P2 / D4). R7a made the LIVE
2853
+ // block claim the spacing its fold will take, so a settle changed a
2854
+ // row's content and not its position. That held while a settled
2855
+ // tool cell was one row; D4 makes it five, and `bodySpacing` gives a
2856
+ // blank for a multi-row cell — so the blank appeared at the settle
2857
+ // and pushed the head row down by one, which is the exact defect
2858
+ // R7a closed. A tool cell is spaced by the ONE-ROW stand-in on both
2859
+ // sides now: the fold is what every form of this cell is spaced
2860
+ // against, live, settled and folded alike.
2861
+ if (this.#cells[i]?.kind === "tool")
2862
+ return [...bodySpacing(this.#lastDrawn(i, prev), ["x"]).slice(0, -1), ...rows];
2852
2863
  return bodySpacing(this.#lastDrawn(i, prev), rows);
2853
2864
  }
2854
2865
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-tui",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "kiso tui — the pure terminal layer (cell renderer, dock, raw editor, diff, palette). Zero runtime dependencies: input is data, output is bytes.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,6 +35,6 @@
35
35
  },
36
36
  "homepage": "https://github.com/vincemakes/kiso/tree/main/packages/tui#readme",
37
37
  "dependencies": {
38
- "@vincemakes/kiso-tui-cells": "0.21.1"
38
+ "@vincemakes/kiso-tui-cells": "0.22.0"
39
39
  }
40
40
  }