@opentui/core 0.5.8 → 0.5.9

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.
@@ -11576,7 +11576,6 @@ class TextBuffer {
11576
11576
  bufferPtr;
11577
11577
  _length = 0;
11578
11578
  _byteSize = 0;
11579
- _lineInfo;
11580
11579
  _destroyed = false;
11581
11580
  _syntaxStyle;
11582
11581
  _textBytes;
@@ -11605,7 +11604,6 @@ class TextBuffer {
11605
11604
  this.lib.textBufferSetTextFromMem(this.bufferPtr, this._memId);
11606
11605
  this._length = this.lib.textBufferGetLength(this.bufferPtr);
11607
11606
  this._byteSize = this.lib.textBufferGetByteSize(this.bufferPtr);
11608
- this._lineInfo = undefined;
11609
11607
  this._appendedChunks = [];
11610
11608
  }
11611
11609
  append(text) {
@@ -11615,7 +11613,6 @@ class TextBuffer {
11615
11613
  this.lib.textBufferAppend(this.bufferPtr, textBytes);
11616
11614
  this._length = this.lib.textBufferGetLength(this.bufferPtr);
11617
11615
  this._byteSize = this.lib.textBufferGetByteSize(this.bufferPtr);
11618
- this._lineInfo = undefined;
11619
11616
  }
11620
11617
  loadFile(path3) {
11621
11618
  this.guard();
@@ -11625,7 +11622,6 @@ class TextBuffer {
11625
11622
  }
11626
11623
  this._length = this.lib.textBufferGetLength(this.bufferPtr);
11627
11624
  this._byteSize = this.lib.textBufferGetByteSize(this.bufferPtr);
11628
- this._lineInfo = undefined;
11629
11625
  this._textBytes = undefined;
11630
11626
  }
11631
11627
  setStyledText(text) {
@@ -11633,7 +11629,6 @@ class TextBuffer {
11633
11629
  this.lib.textBufferSetStyledText(this.bufferPtr, text.chunks);
11634
11630
  this._length = this.lib.textBufferGetLength(this.bufferPtr);
11635
11631
  this._byteSize = this.lib.textBufferGetByteSize(this.bufferPtr);
11636
- this._lineInfo = undefined;
11637
11632
  }
11638
11633
  setDefaultFg(fg2) {
11639
11634
  this.guard();
@@ -11728,6 +11723,7 @@ class TextBuffer {
11728
11723
  setTabWidth(width) {
11729
11724
  this.guard();
11730
11725
  this.lib.textBufferSetTabWidth(this.bufferPtr, width);
11726
+ this._length = this.lib.textBufferGetLength(this.bufferPtr);
11731
11727
  }
11732
11728
  getTabWidth() {
11733
11729
  this.guard();
@@ -11738,7 +11734,6 @@ class TextBuffer {
11738
11734
  this.lib.textBufferClear(this.bufferPtr);
11739
11735
  this._length = 0;
11740
11736
  this._byteSize = 0;
11741
- this._lineInfo = undefined;
11742
11737
  this._textBytes = undefined;
11743
11738
  this._appendedChunks = [];
11744
11739
  }
@@ -11747,7 +11742,6 @@ class TextBuffer {
11747
11742
  this.lib.textBufferReset(this.bufferPtr);
11748
11743
  this._length = 0;
11749
11744
  this._byteSize = 0;
11750
- this._lineInfo = undefined;
11751
11745
  this._textBytes = undefined;
11752
11746
  this._memId = undefined;
11753
11747
  this._appendedChunks = [];
@@ -14433,7 +14427,7 @@ function getOpenTUILib(libPath) {
14433
14427
  },
14434
14428
  editorViewGetViewport: {
14435
14429
  args: ["u32", "buffer", "buffer", "buffer", "buffer"],
14436
- returns: "void"
14430
+ returns: "bool"
14437
14431
  },
14438
14432
  editorViewSetScrollMargin: {
14439
14433
  args: ["u32", "f32"],
@@ -14563,6 +14557,10 @@ function getOpenTUILib(libPath) {
14563
14557
  args: ["u32"],
14564
14558
  returns: "u32"
14565
14559
  },
14560
+ editBufferSetTabWidth: {
14561
+ args: ["u32", "u8"],
14562
+ returns: "void"
14563
+ },
14566
14564
  editBufferDebugLogRope: {
14567
14565
  args: ["u32"],
14568
14566
  returns: "void"
@@ -16893,6 +16891,9 @@ class FFIRenderLib {
16893
16891
  }
16894
16892
  return result;
16895
16893
  }
16894
+ editBufferSetTabWidth(buffer, width) {
16895
+ this.opentui.symbols.editBufferSetTabWidth(buffer, width);
16896
+ }
16896
16897
  editBufferDebugLogRope(buffer) {
16897
16898
  this.opentui.symbols.editBufferDebugLogRope(buffer);
16898
16899
  }
@@ -18609,5 +18610,5 @@ var yoga_default = Yoga;
18609
18610
 
18610
18611
  export { toArrayBuffer, singleton, envRegistry, registerEnvVar, clearEnvCache, generateEnvMarkdown, generateEnvColored, env, sleep, stringWidth2 as stringWidth, resolveBundledFilePath, DEFAULT_FOREGROUND_RGB, DEFAULT_BACKGROUND_RGB, normalizeIndexedColorIndex, ansi256IndexToRgb, RGBA, normalizeColorValue, hexToRgb, rgbToHex, hsvToRgb, parseColor, isValidBorderStyle, parseBorderStyle, BorderChars, getBorderFromSides, getBorderSides, borderCharsToArray, BorderCharArrays, KeyEvent, PasteEvent, KeyHandler, InternalKeyHandler, fonts, measureText, getCharacterPositions, coordinateToCharacterIndex, renderFontToFrameBuffer, TextAttributes, ATTRIBUTE_BASE_BITS, ATTRIBUTE_BASE_MASK, getBaseAttributes, DebugOverlayCorner, TargetChannel, createTextAttributes, attributesWithLink, getLinkId, 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, link, t, hastToStyledText, SystemClock, nonAlphanumericKeys, terminalNamedSingleStrokeKeys, parseKeypress, LinearScrollAccel, MacOSScrollAccel, parseAlign, parseAlignItems, parseBoxSizing, parseDimension, parseDirection, parseDisplay, parseEdge, parseFlexDirection, parseGutter, parseJustify, parseLogLevel, parseMeasureMode, parseOverflow, parsePositionType, parseUnit, parseWrap, MouseParser, Selection, convertGlobalToLocalSelection, ASCIIFontSelectionHelper, StdinParser, treeSitterToTextChunks, treeSitterToStyledText, addDefaultParsers, TreeSitterClient, DataPathsManager, getDataPaths, extensionToFiletype, basenameToFiletype, extToFiletype, pathToFiletype, infoStringToFiletype, getTreeSitterClient, destroyTreeSitterClient, ExtmarksController, createExtmarksController, TerminalPalette, createTerminalPalette, normalizeTerminalPalette, buildTerminalPaletteSignature, decodePasteBytes, stripAnsiSequences, createHostClipboard, createClipboard, ClipboardTarget, createRendererClipboardAdapter, Clipboard, detectLinks, OptimizedBuffer, TextBuffer, SpanInfoStruct, NativeAudioStreamFormat, NativeAudioStreamState, NativeAudioStreamStateNames, NativeAudioStreamCloseReason, NativeAudioStreamState2 as NativeAudioStreamState1, NativeAudioStreamCloseReason2 as NativeAudioStreamCloseReason1, NativeAudioStreamFormat2 as NativeAudioStreamFormat1, NativeClipboardOperationStatus, NativeClipboardStartStatus, NativeClipboardCancelStatus, NativeClipboardCopyStatus, NativeClipboardDestroyStatus, NativeClipboardShutdownStatus, LogLevel2 as LogLevel, NativeMeasureTargetKind, setRenderLibPath, resolveRenderLib, Align, BoxSizing, Dimension, Direction, Display, Edge, Errata, ExperimentalFeature, FlexDirection, Gutter, Justify, LogLevel as LogLevel1, MeasureMode, NodeType, Overflow, PositionType, Unit, Wrap, ALIGN_AUTO, ALIGN_FLEX_START, ALIGN_CENTER, ALIGN_FLEX_END, ALIGN_STRETCH, ALIGN_BASELINE, ALIGN_SPACE_BETWEEN, ALIGN_SPACE_AROUND, ALIGN_SPACE_EVENLY, BOX_SIZING_BORDER_BOX, BOX_SIZING_CONTENT_BOX, DIMENSION_WIDTH, DIMENSION_HEIGHT, DIRECTION_INHERIT, DIRECTION_LTR, DIRECTION_RTL, DISPLAY_FLEX, DISPLAY_NONE, DISPLAY_CONTENTS, EDGE_LEFT, EDGE_TOP, EDGE_RIGHT, EDGE_BOTTOM, EDGE_START, EDGE_END, EDGE_HORIZONTAL, EDGE_VERTICAL, EDGE_ALL, ERRATA_NONE, ERRATA_STRETCH_FLEX_BASIS, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE, ERRATA_ALL, ERRATA_CLASSIC, EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS, FLEX_DIRECTION_COLUMN, FLEX_DIRECTION_COLUMN_REVERSE, FLEX_DIRECTION_ROW, FLEX_DIRECTION_ROW_REVERSE, GUTTER_COLUMN, GUTTER_ROW, GUTTER_ALL, JUSTIFY_FLEX_START, JUSTIFY_CENTER, JUSTIFY_FLEX_END, JUSTIFY_SPACE_BETWEEN, JUSTIFY_SPACE_AROUND, JUSTIFY_SPACE_EVENLY, LOG_LEVEL_ERROR, LOG_LEVEL_WARN, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_VERBOSE, LOG_LEVEL_FATAL, MEASURE_MODE_UNDEFINED, MEASURE_MODE_EXACTLY, MEASURE_MODE_AT_MOST, NODE_TYPE_DEFAULT, NODE_TYPE_TEXT, OVERFLOW_VISIBLE, OVERFLOW_HIDDEN, OVERFLOW_SCROLL, POSITION_TYPE_STATIC, POSITION_TYPE_RELATIVE, POSITION_TYPE_ABSOLUTE, UNIT_UNDEFINED, UNIT_POINT, UNIT_PERCENT, UNIT_AUTO, WRAP_NO_WRAP, WRAP_WRAP, WRAP_WRAP_REVERSE, Config, Node, exports_yoga, yoga_default };
18611
18612
 
18612
- //# debugId=629581C67E2214E264756E2164756E21
18613
- //# sourceMappingURL=chunk-bun-2956gvaq.js.map
18613
+ //# debugId=A1152A2EED56A71564756E2164756E21
18614
+ //# sourceMappingURL=chunk-bun-b0662dgp.js.map