@opentui/core 0.5.13 → 0.5.15
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/{chunk-bun-awdjbppg.js → chunk-bun-3qwevekk.js} +25 -12
- package/{chunk-bun-awdjbppg.js.map → chunk-bun-3qwevekk.js.map} +3 -3
- package/{chunk-bun-sjw2d9bq.js → chunk-bun-6rvkxs1v.js} +16 -10
- package/{chunk-bun-sjw2d9bq.js.map → chunk-bun-6rvkxs1v.js.map} +4 -4
- package/{chunk-node-fz19wge8.js → chunk-node-f3yste6w.js} +25 -12
- package/{chunk-node-fz19wge8.js.map → chunk-node-f3yste6w.js.map} +3 -3
- package/{chunk-node-80p7e6t6.js → chunk-node-tfvyz31s.js} +16 -10
- package/{chunk-node-80p7e6t6.js.map → chunk-node-tfvyz31s.js.map} +4 -4
- package/index.bun.js +31 -26
- package/index.bun.js.map +4 -4
- package/index.node.js +31 -26
- package/index.node.js.map +4 -4
- package/package.json +9 -9
- package/renderables/Diff.d.ts +3 -1
- package/renderables/LineNumberRenderable.d.ts +1 -1
- package/renderer.d.ts +2 -0
- package/runtime-plugin-support-configure.d.ts +1 -1
- package/runtime-plugin-support-configure.js +11 -0
- package/runtime-plugin-support-configure.js.map +1 -1
- package/runtime-plugin-support.d.ts +1 -1
- package/runtime-plugin-support.js.map +1 -1
- package/runtime-plugin.d.ts +2 -0
- package/runtime-plugin.js +18 -3
- package/runtime-plugin.js.map +1 -1
- package/testing.bun.js +2 -2
- package/testing.js +2 -2
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
NativeMeasureTargetKind2,
|
|
43
43
|
resolveRenderLib2,
|
|
44
44
|
yoga_default
|
|
45
|
-
} from "./chunk-bun-
|
|
45
|
+
} from "./chunk-bun-6rvkxs1v.js";
|
|
46
46
|
|
|
47
47
|
// src/syntax-style.ts
|
|
48
48
|
function convertThemeToStyles2(theme) {
|
|
@@ -7254,6 +7254,7 @@ class CliRenderer2 extends EventEmitter5 {
|
|
|
7254
7254
|
hasLoggedStdinParserError = false;
|
|
7255
7255
|
animationRequest = new Map;
|
|
7256
7256
|
resizeTimeoutId = null;
|
|
7257
|
+
pendingResizeSawDifferentSize = false;
|
|
7257
7258
|
capabilityTimeoutId = null;
|
|
7258
7259
|
kittyTransportTimer = null;
|
|
7259
7260
|
kittyTransportMode;
|
|
@@ -7700,14 +7701,14 @@ Captured external output:
|
|
|
7700
7701
|
this.capturedRenderable = renderable;
|
|
7701
7702
|
}
|
|
7702
7703
|
addToHitGrid(x, y, width, height, id) {
|
|
7703
|
-
if (!this._useMouse)
|
|
7704
|
+
if (!this._useMouse || width <= 0 || height <= 0)
|
|
7704
7705
|
return;
|
|
7705
7706
|
if (id !== this.capturedRenderable?.num) {
|
|
7706
7707
|
this.lib.addToHitGrid(this.rendererPtr, x, y, width, height, id);
|
|
7707
7708
|
}
|
|
7708
7709
|
}
|
|
7709
7710
|
pushHitGridScissorRect(x, y, width, height) {
|
|
7710
|
-
this.lib.hitGridPushScissorRect(this.rendererPtr, x, y, width, height);
|
|
7711
|
+
this.lib.hitGridPushScissorRect(this.rendererPtr, x, y, Math.max(0, width), Math.max(0, height));
|
|
7711
7712
|
}
|
|
7712
7713
|
popHitGridScissorRect() {
|
|
7713
7714
|
this.lib.hitGridPopScissorRect(this.rendererPtr);
|
|
@@ -9505,19 +9506,26 @@ Captured external output:
|
|
|
9505
9506
|
handleResize(width, height) {
|
|
9506
9507
|
if (this._isDestroyed)
|
|
9507
9508
|
return;
|
|
9508
|
-
if (this.
|
|
9509
|
-
this.
|
|
9510
|
-
return;
|
|
9511
|
-
}
|
|
9509
|
+
if (width !== this._terminalWidth || height !== this._terminalHeight)
|
|
9510
|
+
this.pendingResizeSawDifferentSize = true;
|
|
9512
9511
|
if (this.resizeTimeoutId !== null) {
|
|
9513
9512
|
this.clock.clearTimeout(this.resizeTimeoutId);
|
|
9514
9513
|
this.resizeTimeoutId = null;
|
|
9515
9514
|
}
|
|
9515
|
+
if (this._splitHeight > 0) {
|
|
9516
|
+
this.applyPendingResize(width, height);
|
|
9517
|
+
return;
|
|
9518
|
+
}
|
|
9516
9519
|
this.resizeTimeoutId = this.clock.setTimeout(() => {
|
|
9517
9520
|
this.resizeTimeoutId = null;
|
|
9518
|
-
this.
|
|
9521
|
+
this.applyPendingResize(width, height);
|
|
9519
9522
|
}, this.resizeDebounceDelay);
|
|
9520
9523
|
}
|
|
9524
|
+
applyPendingResize(width, height) {
|
|
9525
|
+
const sawDifferentSize = this.pendingResizeSawDifferentSize;
|
|
9526
|
+
this.pendingResizeSawDifferentSize = false;
|
|
9527
|
+
this.processResize(width, height, sawDifferentSize);
|
|
9528
|
+
}
|
|
9521
9529
|
queryPixelResolution() {
|
|
9522
9530
|
this.pixelResolutionRequeryPending = true;
|
|
9523
9531
|
if (this._controlState === "explicit_suspended" /* EXPLICIT_SUSPENDED */ || this.waitingForPixelResolution)
|
|
@@ -9527,9 +9535,14 @@ Captured external output:
|
|
|
9527
9535
|
this.updateStdinParserProtocolContext({ pixelResolutionQueryActive: true });
|
|
9528
9536
|
this.lib.queryPixelResolution(this.rendererPtr);
|
|
9529
9537
|
}
|
|
9530
|
-
processResize(width, height) {
|
|
9531
|
-
if (width === this._terminalWidth && height === this._terminalHeight)
|
|
9538
|
+
processResize(width, height, repaintIfUnchanged = false) {
|
|
9539
|
+
if (width === this._terminalWidth && height === this._terminalHeight) {
|
|
9540
|
+
if (repaintIfUnchanged) {
|
|
9541
|
+
this.forceFullRepaintRequested = true;
|
|
9542
|
+
this.requestRender();
|
|
9543
|
+
}
|
|
9532
9544
|
return;
|
|
9545
|
+
}
|
|
9533
9546
|
if (this._terminalIsSetup && this._controlState !== "explicit_suspended" /* EXPLICIT_SUSPENDED */ && !this.isSplitCursorSeedFrameBlocked()) {
|
|
9534
9547
|
this.flushPendingSplitOutputBeforeTransition();
|
|
9535
9548
|
}
|
|
@@ -10514,5 +10527,5 @@ Captured external output:
|
|
|
10514
10527
|
|
|
10515
10528
|
export { convertThemeToStyles2, SyntaxStyle2, h2, isVNode2, maybeMakeRenderable2, wrapWithDelegates2, instantiate2, delegate2, LayoutEvents2, RenderableEvents2, isRenderable2, BaseRenderable2, Renderable2, RootRenderable2, TextBufferView2, EditBuffer2, EditorView2, ANSI, BoxRenderable2, TextBufferRenderable2, CodeRenderable2, isTextNodeRenderable2, TextNodeRenderable2, RootTextNodeRenderable2, TextRenderable2, NativeSpanFeed2, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingAction, buildKeyBindingsMap, capture2, ConsolePosition2, TerminalConsole2, getObjectsInViewport, EditBufferRenderableEvents2, isEditBufferRenderable2, EditBufferRenderable2, buildKittyKeyboardFlags2, MouseEvent2, MouseButton2, createCliRenderer2, CliRenderEvents2, RendererControlState2, CliRenderer2 };
|
|
10516
10529
|
|
|
10517
|
-
//# debugId=
|
|
10518
|
-
//# sourceMappingURL=chunk-bun-
|
|
10530
|
+
//# debugId=B1417C68EF4B2E1C64756E2164756E21
|
|
10531
|
+
//# sourceMappingURL=chunk-bun-3qwevekk.js.map
|