@opentui/core 0.5.7 → 0.5.8

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.
@@ -41,7 +41,7 @@ import {
41
41
  toArrayBuffer,
42
42
  treeSitterToTextChunks,
43
43
  yoga_default
44
- } from "./chunk-bun-xmsp0nqq.js";
44
+ } from "./chunk-bun-2956gvaq.js";
45
45
 
46
46
  // src/Renderable.ts
47
47
  import { EventEmitter } from "events";
@@ -7608,8 +7608,7 @@ Captured external output:
7608
7608
  this.lib.hitGridClearScissorRects(this.rendererPtr);
7609
7609
  }
7610
7610
  get widthMethod() {
7611
- const caps = this.capabilities;
7612
- return caps?.unicode === "wcwidth" ? "wcwidth" : "unicode";
7611
+ return this.capabilities?.unicode ?? this.nextRenderBuffer.widthMethod;
7613
7612
  }
7614
7613
  get frameId() {
7615
7614
  return this._frameId;
@@ -9168,7 +9167,7 @@ Captured external output:
9168
9167
  }
9169
9168
  return true;
9170
9169
  }
9171
- if (mouseEvent.type === "up" && this.currentSelection?.isDragging) {
9170
+ if (mouseEvent.type === "up" && mouseEvent.button === 0 /* LEFT */ && this.currentSelection?.isDragging) {
9172
9171
  if (maybeRenderable) {
9173
9172
  const event2 = new MouseEvent(maybeRenderable, {
9174
9173
  ...mouseEvent,
@@ -9241,7 +9240,7 @@ Captured external output:
9241
9240
  this.setCapturedRenderable(undefined);
9242
9241
  this.lastOverRenderable = undefined;
9243
9242
  }
9244
- if (!event?.defaultPrevented && mouseEvent.type === "down" && this.currentSelection) {
9243
+ if (!event?.defaultPrevented && mouseEvent.type === "down" && mouseEvent.button === 0 /* LEFT */ && this.currentSelection) {
9245
9244
  this.clearSelection();
9246
9245
  }
9247
9246
  return true;
@@ -10310,5 +10309,5 @@ Captured external output:
10310
10309
 
10311
10310
  export { h, isVNode, maybeMakeRenderable, wrapWithDelegates, instantiate, delegate, LayoutEvents, RenderableEvents, isRenderable, BaseRenderable, Renderable, RootRenderable, TextBufferView, EditBuffer, EditorView, convertThemeToStyles, SyntaxStyle, ANSI, BoxRenderable, TextBufferRenderable, CodeRenderable, isTextNodeRenderable, TextNodeRenderable, RootTextNodeRenderable, TextRenderable, NativeSpanFeed, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingAction, buildKeyBindingsMap, capture, ConsolePosition, TerminalConsole, getObjectsInViewport, EditBufferRenderableEvents, isEditBufferRenderable, EditBufferRenderable, buildKittyKeyboardFlags, MouseEvent, MouseButton, createCliRenderer, CliRenderEvents, RendererControlState, CliRenderer };
10312
10311
 
10313
- //# debugId=EED85776C714E18564756E2164756E21
10314
- //# sourceMappingURL=chunk-bun-z4gs6jzg.js.map
10312
+ //# debugId=9482A117F731D7E464756E2164756E21
10313
+ //# sourceMappingURL=chunk-bun-b3exa82d.js.map