@vincemakes/kiso-tui 0.40.6 → 0.40.7
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/panel-input.js +4 -1
- package/package.json +2 -2
package/dist/panel-input.js
CHANGED
|
@@ -41,6 +41,9 @@ export class PanelInput {
|
|
|
41
41
|
* (restored at close — commit AND cancel), the panel takes the
|
|
42
42
|
* keys and the input row's lead, the composer's own bands close. */
|
|
43
43
|
begin(view, onCommit, opts) {
|
|
44
|
+
// MP-1 (0.40.7): a pick opens on the row its caller names as current
|
|
45
|
+
const initial = view.pick?.initial;
|
|
46
|
+
const start = view.pick !== undefined && initial !== undefined && Number.isInteger(initial) && initial >= 0 && initial < view.pick.options.length ? initial : 0;
|
|
44
47
|
this.#panel = {
|
|
45
48
|
view,
|
|
46
49
|
phase: "options",
|
|
@@ -49,7 +52,7 @@ export class PanelInput {
|
|
|
49
52
|
safer: opts?.safer,
|
|
50
53
|
saferRun: null,
|
|
51
54
|
ask: view.ask === undefined ? null : askStart(view.ask),
|
|
52
|
-
pick: view.pick === undefined ? null : { cursor:
|
|
55
|
+
pick: view.pick === undefined ? null : { cursor: start, phase: "options", level: startLevel(view.pick.options[start]) },
|
|
53
56
|
onCommit,
|
|
54
57
|
stash: this.host.stash(),
|
|
55
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-tui",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.7",
|
|
4
4
|
"description": "kiso tui \u2014 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.40.
|
|
38
|
+
"@vincemakes/kiso-tui-cells": "0.40.7"
|
|
39
39
|
}
|
|
40
40
|
}
|