@fairyhunter13/opentui-core 0.1.133 → 0.1.134

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.
@@ -177,6 +177,7 @@ import {
177
177
  stringToStyledText,
178
178
  stripAnsiSequences,
179
179
  t,
180
+ terminalNamedSingleStrokeKeys,
180
181
  treeSitterToStyledText,
181
182
  treeSitterToTextChunks,
182
183
  underline,
@@ -184,7 +185,7 @@ import {
184
185
  white,
185
186
  wrapWithDelegates,
186
187
  yellow
187
- } from "./index-cs6ygy1c.js";
188
+ } from "./index-n2b7w731.js";
188
189
 
189
190
  // src/index.ts
190
191
  var exports_src2 = {};
@@ -198,6 +199,7 @@ __export(exports_src2, {
198
199
  underline: () => underline,
199
200
  treeSitterToTextChunks: () => treeSitterToTextChunks,
200
201
  treeSitterToStyledText: () => treeSitterToStyledText,
202
+ terminalNamedSingleStrokeKeys: () => terminalNamedSingleStrokeKeys,
201
203
  t: () => t,
202
204
  stripAnsiSequences: () => stripAnsiSequences,
203
205
  stringToStyledText: () => stringToStyledText,
@@ -272,6 +274,7 @@ __export(exports_src2, {
272
274
  dim: () => dim,
273
275
  detectLinks: () => detectLinks,
274
276
  delegate: () => delegate,
277
+ defaultTextareaKeyBindings: () => defaultTextareaKeyBindings,
275
278
  decodePasteBytes: () => decodePasteBytes,
276
279
  decodeColorTag: () => decodeColorTag,
277
280
  cyan: () => cyan,
@@ -4889,7 +4892,7 @@ class DiffRenderable extends Renderable {
4889
4892
  }
4890
4893
  }
4891
4894
  // src/renderables/Textarea.ts
4892
- var defaultTextareaKeybindings = [
4895
+ var defaultTextareaKeyBindings = [
4893
4896
  { name: "left", action: "move-left" },
4894
4897
  { name: "right", action: "move-right" },
4895
4898
  { name: "up", action: "move-up" },
@@ -4991,7 +4994,7 @@ class TextareaRenderable extends EditBufferRenderable {
4991
4994
  this._placeholderColor = parseColor(options.placeholderColor ?? defaults.placeholderColor);
4992
4995
  this._keyAliasMap = mergeKeyAliases(defaultKeyAliases, options.keyAliasMap || {});
4993
4996
  this._keyBindings = options.keyBindings || [];
4994
- const mergedBindings = mergeKeyBindings(defaultTextareaKeybindings, this._keyBindings);
4997
+ const mergedBindings = mergeKeyBindings(defaultTextareaKeyBindings, this._keyBindings);
4995
4998
  this._keyBindingsMap = buildKeyBindingsMap(mergedBindings, this._keyAliasMap);
4996
4999
  this._actionHandlers = this.buildActionHandlers();
4997
5000
  this._submitListener = options.onSubmit;
@@ -5059,11 +5062,13 @@ class TextareaRenderable extends EditBufferRenderable {
5059
5062
  this.insertText(stripAnsiSequences(decodePasteBytes(event.bytes)));
5060
5063
  }
5061
5064
  handleKeyPress(key) {
5062
- const action = getKeyBindingAction(this._keyBindingsMap, key);
5063
- if (action) {
5064
- const handler = this._actionHandlers.get(action);
5065
- if (handler) {
5066
- return handler();
5065
+ if (this.traits.suspend !== true) {
5066
+ const action = getKeyBindingAction(this._keyBindingsMap, key);
5067
+ if (action) {
5068
+ const handler = this._actionHandlers.get(action);
5069
+ if (handler) {
5070
+ return handler();
5071
+ }
5067
5072
  }
5068
5073
  }
5069
5074
  if (!key.ctrl && !key.meta && !key.super && !key.hyper) {
@@ -5177,12 +5182,12 @@ class TextareaRenderable extends EditBufferRenderable {
5177
5182
  }
5178
5183
  set keyBindings(bindings) {
5179
5184
  this._keyBindings = bindings;
5180
- const mergedBindings = mergeKeyBindings(defaultTextareaKeybindings, bindings);
5185
+ const mergedBindings = mergeKeyBindings(defaultTextareaKeyBindings, bindings);
5181
5186
  this._keyBindingsMap = buildKeyBindingsMap(mergedBindings, this._keyAliasMap);
5182
5187
  }
5183
5188
  set keyAliasMap(aliases) {
5184
5189
  this._keyAliasMap = mergeKeyAliases(defaultKeyAliases, aliases);
5185
- const mergedBindings = mergeKeyBindings(defaultTextareaKeybindings, this._keyBindings);
5190
+ const mergedBindings = mergeKeyBindings(defaultTextareaKeyBindings, this._keyBindings);
5186
5191
  this._keyBindingsMap = buildKeyBindingsMap(mergedBindings, this._keyAliasMap);
5187
5192
  }
5188
5193
  get extmarks() {
@@ -10979,7 +10984,7 @@ class TimeToFirstDrawRenderable extends Renderable {
10979
10984
  return Math.max(0, Math.floor(value));
10980
10985
  }
10981
10986
  }
10982
- export { DistortionEffect, VignetteEffect, CloudsEffect, FlamesEffect, CRTRollingBarEffect, RainbowTextEffect, applyScanlines, applyInvert, applyNoise, applyChromaticAberration, applyAsciiArt, applyBrightness, applyGain, applySaturation, BloomEffect, SEPIA_MATRIX, PROTANOPIA_SIM_MATRIX, DEUTERANOPIA_SIM_MATRIX, TRITANOPIA_SIM_MATRIX, ACHROMATOPSIA_MATRIX, PROTANOPIA_COMP_MATRIX, DEUTERANOPIA_COMP_MATRIX, TRITANOPIA_COMP_MATRIX, TECHNICOLOR_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, GREENSCALE_MATRIX, GRAYSCALE_MATRIX, INVERT_MATRIX, Timeline, engine, createTimeline, SlotRegistry, createSlotRegistry, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, NativeSpanFeed, FrameBufferRenderable, ASCIIFontRenderable, Generic, Box, Text, ASCIIFont, Input, Select, TabSelect, FrameBuffer, Code, ScrollBox, vstyles, VRenderable, LineNumberRenderable, DiffRenderable, TextareaRenderable, InputRenderableEvents, InputRenderable, TextTableRenderable, MarkdownRenderable, SliderRenderable, ScrollBarRenderable, ArrowRenderable, ScrollBoxRenderable, SelectRenderableEvents, SelectRenderable, TabSelectRenderableEvents, TabSelectRenderable, TimeToFirstDrawRenderable, exports_src2 as exports_src };
10987
+ export { DistortionEffect, VignetteEffect, CloudsEffect, FlamesEffect, CRTRollingBarEffect, RainbowTextEffect, applyScanlines, applyInvert, applyNoise, applyChromaticAberration, applyAsciiArt, applyBrightness, applyGain, applySaturation, BloomEffect, SEPIA_MATRIX, PROTANOPIA_SIM_MATRIX, DEUTERANOPIA_SIM_MATRIX, TRITANOPIA_SIM_MATRIX, ACHROMATOPSIA_MATRIX, PROTANOPIA_COMP_MATRIX, DEUTERANOPIA_COMP_MATRIX, TRITANOPIA_COMP_MATRIX, TECHNICOLOR_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, GREENSCALE_MATRIX, GRAYSCALE_MATRIX, INVERT_MATRIX, Timeline, engine, createTimeline, SlotRegistry, createSlotRegistry, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, NativeSpanFeed, FrameBufferRenderable, ASCIIFontRenderable, Generic, Box, Text, ASCIIFont, Input, Select, TabSelect, FrameBuffer, Code, ScrollBox, vstyles, VRenderable, LineNumberRenderable, DiffRenderable, defaultTextareaKeyBindings, TextareaRenderable, InputRenderableEvents, InputRenderable, TextTableRenderable, MarkdownRenderable, SliderRenderable, ScrollBarRenderable, ArrowRenderable, ScrollBoxRenderable, SelectRenderableEvents, SelectRenderable, TabSelectRenderableEvents, TabSelectRenderable, TimeToFirstDrawRenderable, exports_src2 as exports_src };
10983
10988
 
10984
- //# debugId=D5DC53DA1CFEC6EF64756E2164756E21
10985
- //# sourceMappingURL=index-1mvpesey.js.map
10989
+ //# debugId=D3FC2ECA7A25F07564756E2164756E21
10990
+ //# sourceMappingURL=index-x59exf1c.js.map