@opentui/keymap 0.0.0-20260423-618ea9b1 → 0.1.106
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/README.md +19 -2
- package/addons/index.js +925 -280
- package/addons/opentui/index.js +926 -282
- package/html.js +960 -257
- package/index.js +906 -257
- package/opentui.js +960 -257
- package/package.json +4 -4
- package/react/index.js +14 -15
- package/solid/index.js +6 -7
- package/src/addons/opentui/edit-buffer-bindings.d.ts +4 -2
- package/src/addons/universal/enabled.d.ts +3 -8
- package/src/addons/universal/index.d.ts +3 -2
- package/src/addons/universal/metadata.d.ts +3 -0
- package/src/addons/universal/neovim-disambiguation.d.ts +10 -0
- package/src/index.d.ts +1 -1
- package/src/keymap.d.ts +5 -1
- package/src/react/index.d.ts +2 -4
- package/src/services/activation.d.ts +16 -6
- package/src/services/command-catalog.d.ts +13 -1
- package/src/services/command-executor.d.ts +1 -0
- package/src/services/compiler.d.ts +2 -2
- package/src/services/conditions.d.ts +2 -2
- package/src/services/dispatch.d.ts +29 -2
- package/src/services/layers.d.ts +9 -2
- package/src/services/notify.d.ts +1 -0
- package/src/services/primitives/active-layers.d.ts +6 -3
- package/src/services/state.d.ts +23 -10
- package/src/solid/index.d.ts +2 -4
- package/src/types.d.ts +52 -22
- package/src/keymap-benchmark.d.ts +0 -1
package/README.md
CHANGED
|
@@ -35,6 +35,24 @@ createRoot(renderer).render(
|
|
|
35
35
|
)
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
## Field Model
|
|
39
|
+
|
|
40
|
+
Layer fields are for activation requirements and binding-compilation inputs.
|
|
41
|
+
They do not compile into public attrs.
|
|
42
|
+
|
|
43
|
+
Binding and command fields can compile metadata into attrs that later appear on
|
|
44
|
+
active bindings, active keys, and command query results.
|
|
45
|
+
|
|
46
|
+
## Re-entry
|
|
47
|
+
|
|
48
|
+
Runtime/data-style re-entry is supported during dispatch. For example, command
|
|
49
|
+
handlers, intercepts, and pending-sequence listeners may read or write runtime
|
|
50
|
+
data and manage pending-sequence state.
|
|
51
|
+
|
|
52
|
+
Structural re-entry is currently unsupported. Do not register or unregister
|
|
53
|
+
layers, tokens, parsers, resolvers, or other environment-shaping state while a
|
|
54
|
+
dispatch is in flight.
|
|
55
|
+
|
|
38
56
|
## Installation
|
|
39
57
|
|
|
40
58
|
```bash
|
|
@@ -47,8 +65,7 @@ bun install @opentui/keymap
|
|
|
47
65
|
bun run build
|
|
48
66
|
bun run test
|
|
49
67
|
bun src/keymap-benchmark.ts
|
|
50
|
-
bun run serve:keymap-html
|
|
51
68
|
```
|
|
52
69
|
|
|
53
70
|
- `bun src/keymap-benchmark.ts` runs the benchmark suite from `src/keymap-benchmark.ts`.
|
|
54
|
-
-
|
|
71
|
+
- The HTML demo now lives in the docs app at `/demos/keymap-html/` under `packages/web`.
|