@opentui/core 0.6.1 → 0.6.3
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/NativeSession.d.ts +3 -0
- package/{chunk-bun-wsqkxxm5.js → chunk-bun-e2gttx65.js} +106 -3
- package/chunk-bun-e2gttx65.js.map +35 -0
- package/{chunk-bun-ww65h9av.js → chunk-bun-qphgryjx.js} +30 -6
- package/{chunk-bun-ww65h9av.js.map → chunk-bun-qphgryjx.js.map} +7 -7
- package/{chunk-node-f7c1g447.js → chunk-node-6rc18den.js} +106 -3
- package/chunk-node-6rc18den.js.map +34 -0
- package/{chunk-node-jh6t3wnm.js → chunk-node-j1h89sfg.js} +30 -6
- package/{chunk-node-jh6t3wnm.js.map → chunk-node-j1h89sfg.js.map} +7 -7
- package/edit-buffer.d.ts +11 -1
- package/index.bun.js +38 -3
- package/index.bun.js.map +3 -3
- package/index.node.js +38 -3
- package/index.node.js.map +3 -3
- package/lib/terminal-capability-detection.d.ts +1 -0
- package/native-abi.generated.d.ts +70 -0
- package/package.json +9 -9
- package/renderer.d.ts +8 -1
- package/testing.bun.js +4 -3
- package/testing.bun.js.map +3 -3
- package/testing.js +4 -3
- package/testing.js.map +3 -3
- package/types.d.ts +32 -0
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
- package/zig.d.ts +6 -1
- package/chunk-bun-wsqkxxm5.js.map +0 -35
- package/chunk-node-f7c1g447.js.map +0 -34
package/index.node.js
CHANGED
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
resolveRenderLib2,
|
|
110
110
|
MeasureMode2,
|
|
111
111
|
exports_yoga
|
|
112
|
-
} from "./chunk-node-
|
|
112
|
+
} from "./chunk-node-6rc18den.js";
|
|
113
113
|
import {
|
|
114
114
|
isValidBorderStyle2,
|
|
115
115
|
parseBorderStyle2,
|
|
@@ -202,6 +202,7 @@ import {
|
|
|
202
202
|
TextBuffer2,
|
|
203
203
|
TextBufferView2,
|
|
204
204
|
EditBuffer2,
|
|
205
|
+
measureEditText2,
|
|
205
206
|
EditorView2,
|
|
206
207
|
Timeline2,
|
|
207
208
|
engine2,
|
|
@@ -240,7 +241,7 @@ import {
|
|
|
240
241
|
CliRenderEvents2,
|
|
241
242
|
RendererControlState2,
|
|
242
243
|
CliRenderer2
|
|
243
|
-
} from "./chunk-node-
|
|
244
|
+
} from "./chunk-node-j1h89sfg.js";
|
|
244
245
|
// src/post/effects.ts
|
|
245
246
|
function toU8(value) {
|
|
246
247
|
return Math.round(Math.max(0, Math.min(1, Number.isFinite(value) ? value : 0)) * 255);
|
|
@@ -8166,9 +8167,42 @@ function physicalKey(key) {
|
|
|
8166
8167
|
return `Digit${name}`;
|
|
8167
8168
|
if (/^f([1-9]|1[0-9]|2[0-5])$/i.test(key.name))
|
|
8168
8169
|
return key.name.toUpperCase();
|
|
8170
|
+
if (/^kp[0-9]$/i.test(key.name))
|
|
8171
|
+
return `Numpad${key.name.slice(2)}`;
|
|
8169
8172
|
return {
|
|
8170
8173
|
backspace: "Backspace",
|
|
8171
8174
|
clear: "NumpadBegin",
|
|
8175
|
+
kpdecimal: "NumpadDecimal",
|
|
8176
|
+
kpdivide: "NumpadDivide",
|
|
8177
|
+
kpmultiply: "NumpadMultiply",
|
|
8178
|
+
kpminus: "NumpadSubtract",
|
|
8179
|
+
kpplus: "NumpadAdd",
|
|
8180
|
+
kpenter: "NumpadEnter",
|
|
8181
|
+
kpequal: "NumpadEqual",
|
|
8182
|
+
kpseparator: "NumpadSeparator",
|
|
8183
|
+
kpleft: "NumpadLeft",
|
|
8184
|
+
kpright: "NumpadRight",
|
|
8185
|
+
kpup: "NumpadUp",
|
|
8186
|
+
kpdown: "NumpadDown",
|
|
8187
|
+
kppageup: "NumpadPageUp",
|
|
8188
|
+
kppagedown: "NumpadPageDown",
|
|
8189
|
+
kphome: "NumpadHome",
|
|
8190
|
+
kpend: "NumpadEnd",
|
|
8191
|
+
kpinsert: "NumpadInsert",
|
|
8192
|
+
kpdelete: "NumpadDelete",
|
|
8193
|
+
capslock: "CapsLock",
|
|
8194
|
+
scrolllock: "ScrollLock",
|
|
8195
|
+
numlock: "NumLock",
|
|
8196
|
+
printscreen: "PrintScreen",
|
|
8197
|
+
pause: "Pause",
|
|
8198
|
+
leftshift: "ShiftLeft",
|
|
8199
|
+
leftctrl: "ControlLeft",
|
|
8200
|
+
leftalt: "AltLeft",
|
|
8201
|
+
leftsuper: "MetaLeft",
|
|
8202
|
+
rightshift: "ShiftRight",
|
|
8203
|
+
rightctrl: "ControlRight",
|
|
8204
|
+
rightalt: "AltRight",
|
|
8205
|
+
rightsuper: "MetaRight",
|
|
8172
8206
|
enter: "Enter",
|
|
8173
8207
|
return: "Enter",
|
|
8174
8208
|
space: "Space",
|
|
@@ -15347,6 +15381,7 @@ export {
|
|
|
15347
15381
|
link2 as link,
|
|
15348
15382
|
magenta2 as magenta,
|
|
15349
15383
|
maybeMakeRenderable2 as maybeMakeRenderable,
|
|
15384
|
+
measureEditText2 as measureEditText,
|
|
15350
15385
|
measureText2 as measureText,
|
|
15351
15386
|
nonAlphanumericKeys2 as nonAlphanumericKeys,
|
|
15352
15387
|
normalizeColorValue2 as normalizeColorValue,
|
|
@@ -15399,5 +15434,5 @@ export {
|
|
|
15399
15434
|
yellow2 as yellow
|
|
15400
15435
|
};
|
|
15401
15436
|
|
|
15402
|
-
//# debugId=
|
|
15437
|
+
//# debugId=2BCB6EA6471E32B364756E2164756E21
|
|
15403
15438
|
//# sourceMappingURL=index.node.js.map
|