@opentui/core 0.6.1 → 0.6.2

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/index.node.js CHANGED
@@ -109,7 +109,7 @@ import {
109
109
  resolveRenderLib2,
110
110
  MeasureMode2,
111
111
  exports_yoga
112
- } from "./chunk-node-f7c1g447.js";
112
+ } from "./chunk-node-jt82vcf9.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-jh6t3wnm.js";
244
+ } from "./chunk-node-fs50qdd7.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=D7CA8DED54CBCCD364756E2164756E21
15437
+ //# debugId=2BCB6EA6471E32B364756E2164756E21
15403
15438
  //# sourceMappingURL=index.node.js.map