@vincemakes/kiso-tui 0.25.0 → 0.26.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.
@@ -17,7 +17,7 @@
17
17
  * Every number is a count the ledger already carries. Nothing here
18
18
  * estimates, projects, or predicts.
19
19
  */
20
- import { palette } from "./render.js";
20
+ import { palette } from "./lines.js";
21
21
  const BAR_CELLS = 12;
22
22
  /** k-units for the ledger's columns: 25700 → 25.7k, 300 → 300, 11 → 11.
23
23
  *
package/dist/editor.d.ts CHANGED
@@ -83,6 +83,8 @@ export declare class Editor {
83
83
  /** R3a — Shift+Tab: the approval-tier cycle. The MEANING lives in the
84
84
  * CLI (which tier follows which); the editor only reports the key. */
85
85
  onModeCycle(cb: () => void): void;
86
+ /** E1 §3 — the copy key (ctrl+x). */
87
+ onCopy(cb: () => void): void;
86
88
  onExpand(cb: () => void): void;
87
89
  /** KC2 §2: the redirect chain — the gesture hands the buffer's text
88
90
  * over while the run is told to stop. Mirrors onEscape (a list, so
@@ -145,10 +147,7 @@ export declare class Editor {
145
147
  selected: number;
146
148
  capped: boolean;
147
149
  } | null;
148
- /** Open the picker on a bound card source. The composer is cleared
149
- * (the buffer becomes the filter query) and `onPick` receives the
150
- * chosen id — or null when the human leaves without picking, which
151
- * is a first-class outcome and not an error. */
150
+ /** Open the picker on a bound card source (PickInput, S5). */
152
151
  beginPick(cards: () => readonly SessionCardView[], onPick: (id: string | null) => void): void;
153
152
  pickState(): SessionPickState | null;
154
153
  /** One-shot question mode: the NEXT submit answers, not a turn. */
@@ -156,9 +155,9 @@ export declare class Editor {
156
155
  /** Cancel a pending question — the buffer stays (its text becomes the
157
156
  * next turn on Enter, the readline re-emit equivalent). */
158
157
  cancelQuestion(): void;
159
- /** W21: open the approval panel. The current buffer is stashed
160
- * (restored at close — commit AND cancel), the panel takes the
161
- * keys and the input row's lead, the menu closes. */
158
+ /** W21: open the approval panel (PanelInput, S5): the buffer is
159
+ * stashed and restored at close, the panel takes the keys and the
160
+ * input row's lead, the composer's own bands close. */
162
161
  beginPanel(view: PanelView, onCommit: (v: PanelVerdict) => void, opts?: {
163
162
  safer?: () => Promise<SaferAnswer>;
164
163
  }): void;