@opentui/core 0.0.0-20260711-50570ec3 → 0.0.0-20260715-e41c067a
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-node-saw9mbt9.js → index-qmbf8p8x.js} +20 -6
- package/{chunk-node-saw9mbt9.js.map → index-qmbf8p8x.js.map} +3 -3
- package/{chunk-node-6pxevh3h.js → index-y6278spm.js} +1218 -386
- package/index-y6278spm.js.map +61 -0
- package/{index.node.js → index.js} +22 -4
- package/{index.bun.js.map → index.js.map} +2 -2
- package/lib/clipboard.d.ts +120 -0
- package/lib/host-clipboard.internal.d.ts +24 -0
- package/lib/host-clipboard.native.d.ts +2 -0
- package/lib/host-clipboard.native.scheduler.d.ts +14 -0
- package/lib/tree-sitter/default-parsers.d.ts +0 -1
- package/lib/tree-sitter/parsers-config.d.ts +2 -2
- package/lib/tree-sitter/types.d.ts +0 -1
- package/lib/tree-sitter/update-assets.js +59 -95
- package/lib/tree-sitter/update-assets.js.map +3 -3
- package/package.json +13 -23
- package/parser.worker.js +190 -3352
- package/parser.worker.js.map +12 -18
- package/platform/runtime.d.ts +1 -1
- package/renderer.d.ts +5 -2
- package/runtime-plugin.js +2 -2
- package/runtime-plugin.js.map +1 -1
- package/testing.js +2 -2
- package/yoga.js +1 -1
- package/zig.d.ts +88 -0
- package/chunk-bun-246crk4h.js +0 -16216
- package/chunk-bun-246crk4h.js.map +0 -62
- package/chunk-bun-yb2m6rdt.js +0 -10046
- package/chunk-bun-yb2m6rdt.js.map +0 -32
- package/chunk-node-6pxevh3h.js.map +0 -61
- package/index.bun.js +0 -11710
- package/index.node.js.map +0 -62
- package/lib/tree-sitter/default-parser-assets.bun.d.ts +0 -1
- package/node-asset-target.d.ts +0 -12
- package/node-assets.d.ts +0 -7
- package/node-assets.js +0 -261
- package/node-assets.js.map +0 -16
- package/platform/assets.d.ts +0 -5
- package/platform/runtime-assets.bun.d.ts +0 -4
- package/platform/runtime-assets.node.d.ts +0 -4
- package/testing.bun.js +0 -1005
- package/testing.bun.js.map +0 -18
- package/yoga.bun.js +0 -194
- package/yoga.bun.js.map +0 -9
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
toArrayBuffer,
|
|
41
41
|
treeSitterToTextChunks,
|
|
42
42
|
yoga_default
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./index-y6278spm.js";
|
|
44
44
|
|
|
45
45
|
// src/Renderable.ts
|
|
46
46
|
import { EventEmitter } from "events";
|
|
@@ -6999,6 +6999,7 @@ class CliRenderer extends EventEmitter5 {
|
|
|
6999
6999
|
animationRequest = new Map;
|
|
7000
7000
|
resizeTimeoutId = null;
|
|
7001
7001
|
capabilityTimeoutId = null;
|
|
7002
|
+
terminalKeepAliveTimer = null;
|
|
7002
7003
|
xtVersionWaiters = new Set;
|
|
7003
7004
|
splitStartupSeedTimeoutId = null;
|
|
7004
7005
|
pendingSplitStartupCursorSeed = false;
|
|
@@ -7217,8 +7218,8 @@ Captured external output:
|
|
|
7217
7218
|
"SIGQUIT",
|
|
7218
7219
|
"SIGABRT",
|
|
7219
7220
|
"SIGHUP",
|
|
7220
|
-
"SIGBREAK",
|
|
7221
7221
|
"SIGPIPE",
|
|
7222
|
+
"SIGBREAK",
|
|
7222
7223
|
"SIGBUS"
|
|
7223
7224
|
];
|
|
7224
7225
|
this.clipboard = new Clipboard(this.lib, this.rendererPtr);
|
|
@@ -7262,7 +7263,6 @@ Captured external output:
|
|
|
7262
7263
|
process.on("warning", this.warningHandler);
|
|
7263
7264
|
process.on("uncaughtException", this.handleError);
|
|
7264
7265
|
process.on("unhandledRejection", this.handleError);
|
|
7265
|
-
process.on("beforeExit", this.exitHandler);
|
|
7266
7266
|
const useKittyForParsing = kittyConfig !== null;
|
|
7267
7267
|
this._keyHandler = new InternalKeyHandler;
|
|
7268
7268
|
this._keyHandler.on("keypress", (event) => {
|
|
@@ -7346,6 +7346,17 @@ Captured external output:
|
|
|
7346
7346
|
});
|
|
7347
7347
|
this._exitListenersAdded = true;
|
|
7348
7348
|
}
|
|
7349
|
+
startTerminalKeepAlive() {
|
|
7350
|
+
if (this.stdin !== process.stdin || this.terminalKeepAliveTimer !== null)
|
|
7351
|
+
return;
|
|
7352
|
+
this.terminalKeepAliveTimer = setInterval(() => {}, 60000);
|
|
7353
|
+
}
|
|
7354
|
+
stopTerminalKeepAlive() {
|
|
7355
|
+
if (this.terminalKeepAliveTimer === null)
|
|
7356
|
+
return;
|
|
7357
|
+
clearInterval(this.terminalKeepAliveTimer);
|
|
7358
|
+
this.terminalKeepAliveTimer = null;
|
|
7359
|
+
}
|
|
7349
7360
|
removeExitListeners() {
|
|
7350
7361
|
if (!this._exitListenersAdded || this.exitSignals.length === 0)
|
|
7351
7362
|
return;
|
|
@@ -8879,6 +8890,7 @@ Captured external output:
|
|
|
8879
8890
|
}
|
|
8880
8891
|
this.stdin.on("data", this.stdinListener);
|
|
8881
8892
|
this.stdin.resume();
|
|
8893
|
+
this.startTerminalKeepAlive();
|
|
8882
8894
|
}
|
|
8883
8895
|
dispatchMouseEvent(target, attributes) {
|
|
8884
8896
|
const event = new MouseEvent(target, attributes);
|
|
@@ -9335,6 +9347,7 @@ Captured external output:
|
|
|
9335
9347
|
});
|
|
9336
9348
|
this.stdinParser?.reset();
|
|
9337
9349
|
this.stdin.removeListener("data", this.stdinListener);
|
|
9350
|
+
this.stopTerminalKeepAlive();
|
|
9338
9351
|
this.themeModeState.cancelRefresh();
|
|
9339
9352
|
this.lib.suspendRenderer(this.rendererPtr);
|
|
9340
9353
|
if (this.stdin.setRawMode) {
|
|
@@ -9349,6 +9362,7 @@ Captured external output:
|
|
|
9349
9362
|
while (this.stdin.read() !== null) {}
|
|
9350
9363
|
this.stdin.on("data", this.stdinListener);
|
|
9351
9364
|
this.stdin.resume();
|
|
9365
|
+
this.startTerminalKeepAlive();
|
|
9352
9366
|
this.addExitListeners();
|
|
9353
9367
|
const resumePreservedNonAltSurface = this.pendingSuspendedTerminalSetup && this._screenMode !== "alternate-screen" && this.suspendedNonAltSurfacePreserved && this.renderOffset > 0;
|
|
9354
9368
|
if (this.pendingSuspendedTerminalSetup) {
|
|
@@ -9429,7 +9443,6 @@ Captured external output:
|
|
|
9429
9443
|
process.removeListener("uncaughtException", this.handleError);
|
|
9430
9444
|
process.removeListener("unhandledRejection", this.handleError);
|
|
9431
9445
|
process.removeListener("warning", this.warningHandler);
|
|
9432
|
-
process.removeListener("beforeExit", this.exitHandler);
|
|
9433
9446
|
this.removeExitListeners();
|
|
9434
9447
|
if (this.resizeTimeoutId !== null) {
|
|
9435
9448
|
this.clock.clearTimeout(this.resizeTimeoutId);
|
|
@@ -9460,6 +9473,7 @@ Captured external output:
|
|
|
9460
9473
|
this._useMouse = false;
|
|
9461
9474
|
this.setCapturedRenderable(undefined);
|
|
9462
9475
|
this.stdin.removeListener("data", this.stdinListener);
|
|
9476
|
+
this.stopTerminalKeepAlive();
|
|
9463
9477
|
if (this.stdin.setRawMode) {
|
|
9464
9478
|
try {
|
|
9465
9479
|
this.stdin.setRawMode(false);
|
|
@@ -10041,5 +10055,5 @@ Captured external output:
|
|
|
10041
10055
|
|
|
10042
10056
|
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 };
|
|
10043
10057
|
|
|
10044
|
-
//# debugId=
|
|
10045
|
-
//# sourceMappingURL=
|
|
10058
|
+
//# debugId=B3F389F13D80B70B64756E2164756E21
|
|
10059
|
+
//# sourceMappingURL=index-qmbf8p8x.js.map
|