@opentui/core 0.1.62 → 0.1.63

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/3d.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  __export,
6
6
  __require,
7
7
  __toESM
8
- } from "./index-mrwvcpzb.js";
8
+ } from "./index-689t9q65.js";
9
9
 
10
10
  // ../../node_modules/omggif/omggif.js
11
11
  var require_omggif = __commonJS((exports) => {
@@ -7605,6 +7605,7 @@ class TreeSitterClient extends EventEmitter3 {
7605
7605
  async destroy() {
7606
7606
  if (this.initializeResolvers) {
7607
7607
  clearTimeout(this.initializeResolvers.timeoutId);
7608
+ this.initializeResolvers.reject(new Error("Client destroyed during initialization"));
7608
7609
  this.initializeResolvers = undefined;
7609
7610
  }
7610
7611
  for (const [messageId, callback] of this.messageCallbacks.entries()) {
@@ -15146,16 +15147,31 @@ registerEnvVar({
15146
15147
  type: "boolean",
15147
15148
  default: false
15148
15149
  });
15149
- var KITTY_FLAG_ALTERNATE_KEYS = 1;
15150
+ var KITTY_FLAG_DISAMBIGUATE = 1;
15150
15151
  var KITTY_FLAG_EVENT_TYPES = 2;
15152
+ var KITTY_FLAG_ALTERNATE_KEYS = 4;
15153
+ var KITTY_FLAG_ALL_KEYS_AS_ESCAPES = 8;
15154
+ var KITTY_FLAG_REPORT_TEXT = 16;
15151
15155
  function buildKittyKeyboardFlags(config) {
15152
15156
  if (!config) {
15153
15157
  return 0;
15154
15158
  }
15155
- let flags = KITTY_FLAG_ALTERNATE_KEYS;
15156
- if (config.events) {
15159
+ let flags = 0;
15160
+ if (config.disambiguate !== false) {
15161
+ flags |= KITTY_FLAG_DISAMBIGUATE;
15162
+ }
15163
+ if (config.alternateKeys !== false) {
15164
+ flags |= KITTY_FLAG_ALTERNATE_KEYS;
15165
+ }
15166
+ if (config.events === true) {
15157
15167
  flags |= KITTY_FLAG_EVENT_TYPES;
15158
15168
  }
15169
+ if (config.allKeysAsEscapes === true) {
15170
+ flags |= KITTY_FLAG_ALL_KEYS_AS_ESCAPES;
15171
+ }
15172
+ if (config.reportText === true) {
15173
+ flags |= KITTY_FLAG_REPORT_TEXT;
15174
+ }
15159
15175
  return flags;
15160
15176
  }
15161
15177
 
@@ -15667,7 +15683,7 @@ Captured output:
15667
15683
  return this.lib.getKittyKeyboardFlags(this.rendererPtr) > 0;
15668
15684
  }
15669
15685
  set useKittyKeyboard(use) {
15670
- const flags = use ? KITTY_FLAG_ALTERNATE_KEYS : 0;
15686
+ const flags = use ? KITTY_FLAG_DISAMBIGUATE | KITTY_FLAG_ALTERNATE_KEYS : 0;
15671
15687
  this.lib.setKittyKeyboardFlags(this.rendererPtr, flags);
15672
15688
  }
15673
15689
  set experimental_splitHeight(splitHeight) {
@@ -16576,5 +16592,5 @@ Captured output:
16576
16592
 
16577
16593
  export { __toESM, __commonJS, __export, __require, Edge, Gutter, MeasureMode, exports_src, BorderChars, getBorderFromSides, getBorderSides, borderCharsToArray, BorderCharArrays, nonAlphanumericKeys, parseKeypress, KeyEvent, PasteEvent, KeyHandler, InternalKeyHandler, RGBA, hexToRgb, rgbToHex, hsvToRgb, parseColor, fonts, measureText, getCharacterPositions, coordinateToCharacterIndex, renderFontToFrameBuffer, TextAttributes, DebugOverlayCorner, createTextAttributes, visualizeRenderableTree, isStyledText, StyledText, stringToStyledText, black, red, green, yellow, blue, magenta, cyan, white, brightBlack, brightRed, brightGreen, brightYellow, brightBlue, brightMagenta, brightCyan, brightWhite, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bold, italic, underline, strikethrough, dim, reverse, blink, fg, bg, t, hastToStyledText, LinearScrollAccel, MacOSScrollAccel, StdinBuffer, parseAlign, parseBoxSizing, parseDimension, parseDirection, parseDisplay, parseEdge, parseFlexDirection, parseGutter, parseJustify, parseLogLevel, parseMeasureMode, parseOverflow, parsePositionType, parseUnit, parseWrap, MouseParser, Selection, convertGlobalToLocalSelection, ASCIIFontSelectionHelper, envRegistry, registerEnvVar, clearEnvCache, generateEnvMarkdown, generateEnvColored, env, treeSitterToTextChunks, treeSitterToStyledText, addDefaultParsers, TreeSitterClient, DataPathsManager, getDataPaths, extToFiletype, pathToFiletype, main, getTreeSitterClient, ExtmarksController, createExtmarksController, TerminalPalette, createTerminalPalette, TextBuffer, LogLevel2 as LogLevel, setRenderLibPath, resolveRenderLib, OptimizedBuffer, h, isVNode, maybeMakeRenderable, wrapWithDelegates, instantiate, delegate, isValidPercentage, LayoutEvents, RenderableEvents, isRenderable, BaseRenderable, Renderable, RootRenderable, ANSI, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingKey, buildKeyBindingsMap, capture, ConsolePosition, TerminalConsole, getObjectsInViewport, buildKittyKeyboardFlags, MouseEvent, MouseButton, createCliRenderer, CliRenderEvents, RendererControlState, CliRenderer };
16578
16594
 
16579
- //# debugId=7D82DD76DE3E9D9064756E2164756E21
16580
- //# sourceMappingURL=index-mrwvcpzb.js.map
16595
+ //# debugId=C92528FA268EFFA664756E2164756E21
16596
+ //# sourceMappingURL=index-689t9q65.js.map