@opentui/core 0.2.4 → 0.2.6
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/{index-gdtdtsgp.js → index-1jjj58r2.js} +2 -2
- package/{index-4w8751xf.js → index-3hyr3wkd.js} +2 -2
- package/{index-8csdw3z7.js → index-64dvh5m8.js} +3 -3
- package/{index-hmk8xzt3.js → index-s460mpf9.js} +327 -66
- package/{index-hmk8xzt3.js.map → index-s460mpf9.js.map} +5 -5
- package/index.js +2 -2
- package/lib/stdin-parser.d.ts +2 -0
- package/package.json +7 -7
- package/renderer.d.ts +15 -1
- package/runtime-plugin-support-configure.js +4 -4
- package/runtime-plugin-support.js +4 -4
- package/runtime-plugin.js +3 -3
- package/testing.js +1 -1
- package/zig.d.ts +2 -1
- /package/{index-gdtdtsgp.js.map → index-1jjj58r2.js.map} +0 -0
- /package/{index-4w8751xf.js.map → index-3hyr3wkd.js.map} +0 -0
- /package/{index-8csdw3z7.js.map → index-64dvh5m8.js.map} +0 -0
package/index.js
CHANGED
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
registerCorePlugin,
|
|
71
71
|
resolveCoreSlot,
|
|
72
72
|
vstyles
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-3hyr3wkd.js";
|
|
74
74
|
import {
|
|
75
75
|
ASCIIFontSelectionHelper,
|
|
76
76
|
ATTRIBUTE_BASE_BITS,
|
|
@@ -245,7 +245,7 @@ import {
|
|
|
245
245
|
white,
|
|
246
246
|
wrapWithDelegates,
|
|
247
247
|
yellow
|
|
248
|
-
} from "./index-
|
|
248
|
+
} from "./index-s460mpf9.js";
|
|
249
249
|
export {
|
|
250
250
|
yellow,
|
|
251
251
|
wrapWithDelegates,
|
package/lib/stdin-parser.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export declare class StdinParser {
|
|
|
61
61
|
constructor(options?: StdinParserOptions);
|
|
62
62
|
get bufferCapacity(): number;
|
|
63
63
|
updateProtocolContext(patch: Partial<StdinParserProtocolContext>): void;
|
|
64
|
+
private getAbortableStartupCursorCprState;
|
|
65
|
+
abortPendingStartupCursorCpr(): void;
|
|
64
66
|
push(data: Uint8Array): void;
|
|
65
67
|
read(): StdinEvent | null;
|
|
66
68
|
drain(onEvent: (event: StdinEvent) => void): void;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.2.
|
|
7
|
+
"version": "0.2.6",
|
|
8
8
|
"description": "OpenTUI is a TypeScript library on a native Zig core for building terminal user interfaces (TUIs)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"web-tree-sitter": "0.25.10"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@opentui/core-darwin-x64": "0.2.
|
|
68
|
-
"@opentui/core-darwin-arm64": "0.2.
|
|
69
|
-
"@opentui/core-linux-x64": "0.2.
|
|
70
|
-
"@opentui/core-linux-arm64": "0.2.
|
|
71
|
-
"@opentui/core-win32-x64": "0.2.
|
|
72
|
-
"@opentui/core-win32-arm64": "0.2.
|
|
67
|
+
"@opentui/core-darwin-x64": "0.2.6",
|
|
68
|
+
"@opentui/core-darwin-arm64": "0.2.6",
|
|
69
|
+
"@opentui/core-linux-x64": "0.2.6",
|
|
70
|
+
"@opentui/core-linux-arm64": "0.2.6",
|
|
71
|
+
"@opentui/core-win32-x64": "0.2.6",
|
|
72
|
+
"@opentui/core-win32-arm64": "0.2.6"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/renderer.d.ts
CHANGED
|
@@ -240,6 +240,8 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
|
|
|
240
240
|
private clearOnShutdown;
|
|
241
241
|
private _suspendedMouseEnabled;
|
|
242
242
|
private _previousControlState;
|
|
243
|
+
private pendingSuspendedTerminalSetup;
|
|
244
|
+
private suspendedNonAltSurfacePreserved;
|
|
243
245
|
private capturedRenderable?;
|
|
244
246
|
private lastOverRenderableNum;
|
|
245
247
|
private lastOverRenderable?;
|
|
@@ -256,6 +258,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
|
|
|
256
258
|
private _terminalHeight;
|
|
257
259
|
private _terminalIsSetup;
|
|
258
260
|
private externalOutputQueue;
|
|
261
|
+
private pendingExternalOutputMode;
|
|
259
262
|
private realStdoutWrite;
|
|
260
263
|
private _useConsole;
|
|
261
264
|
private sigwinchHandler;
|
|
@@ -338,6 +341,10 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
|
|
|
338
341
|
set footerHeight(footerHeight: number);
|
|
339
342
|
get externalOutputMode(): ExternalOutputMode;
|
|
340
343
|
set externalOutputMode(mode: ExternalOutputMode);
|
|
344
|
+
private applyExternalOutputMode;
|
|
345
|
+
private afterExternalOutputModeChanged;
|
|
346
|
+
private applyPendingExternalOutputModeIfReady;
|
|
347
|
+
private flushPendingSplitOutputBeforeLeavingSplitFooter;
|
|
341
348
|
get liveRequestCount(): number;
|
|
342
349
|
get currentControlState(): string;
|
|
343
350
|
get capabilities(): any | null;
|
|
@@ -354,8 +361,10 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
|
|
|
354
361
|
private getSnapshotWidth;
|
|
355
362
|
private getSnapshotHeight;
|
|
356
363
|
private getSnapshotRowWidths;
|
|
357
|
-
private
|
|
364
|
+
private advanceSplitTailColumn;
|
|
365
|
+
private getSplitTailColumnAfterCommit;
|
|
358
366
|
private recordSplitCommit;
|
|
367
|
+
private getPendingSplitTailColumn;
|
|
359
368
|
private enqueueRenderedScrollbackCommit;
|
|
360
369
|
private enqueueSplitCommit;
|
|
361
370
|
private createStdoutSnapshotCommit;
|
|
@@ -365,9 +374,14 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
|
|
|
365
374
|
private interceptStdoutWrite;
|
|
366
375
|
private getSplitPinnedRenderOffset;
|
|
367
376
|
private getSplitCursorSeedRows;
|
|
377
|
+
private isSplitCursorSeedFrameBlocked;
|
|
378
|
+
private canFlushSplitOutputBeforeTransition;
|
|
379
|
+
private clearSplitStartupCursorSeed;
|
|
380
|
+
private abortSplitStartupCursorSeed;
|
|
368
381
|
private flushPendingSplitOutputBeforeTransition;
|
|
369
382
|
private resetSplitScrollback;
|
|
370
383
|
private syncSplitScrollback;
|
|
384
|
+
private getSplitOutputOffset;
|
|
371
385
|
private clearPendingSplitFooterTransition;
|
|
372
386
|
private setPendingSplitFooterTransition;
|
|
373
387
|
private syncSplitFooterState;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ensureRuntimePluginSupport
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1jjj58r2.js";
|
|
5
5
|
import {
|
|
6
6
|
createRuntimePlugin,
|
|
7
7
|
runtimeModuleIdForSpecifier
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-64dvh5m8.js";
|
|
9
|
+
import"./index-3hyr3wkd.js";
|
|
10
|
+
import"./index-s460mpf9.js";
|
|
11
11
|
export {
|
|
12
12
|
runtimeModuleIdForSpecifier,
|
|
13
13
|
ensureRuntimePluginSupport,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ensureRuntimePluginSupport
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1jjj58r2.js";
|
|
5
5
|
import {
|
|
6
6
|
createRuntimePlugin,
|
|
7
7
|
runtimeModuleIdForSpecifier
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-64dvh5m8.js";
|
|
9
|
+
import"./index-3hyr3wkd.js";
|
|
10
|
+
import"./index-s460mpf9.js";
|
|
11
11
|
// src/runtime-plugin-support.ts
|
|
12
12
|
ensureRuntimePluginSupport();
|
|
13
13
|
export {
|
package/runtime-plugin.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createRuntimePlugin,
|
|
4
4
|
isCoreRuntimeModuleSpecifier,
|
|
5
5
|
runtimeModuleIdForSpecifier
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
6
|
+
} from "./index-64dvh5m8.js";
|
|
7
|
+
import"./index-3hyr3wkd.js";
|
|
8
|
+
import"./index-s460mpf9.js";
|
|
9
9
|
export {
|
|
10
10
|
runtimeModuleIdForSpecifier,
|
|
11
11
|
isCoreRuntimeModuleSpecifier,
|
package/testing.js
CHANGED
package/zig.d.ts
CHANGED
|
@@ -51,7 +51,8 @@ export interface RenderLib {
|
|
|
51
51
|
setRenderOffset: (renderer: Pointer, offset: number) => void;
|
|
52
52
|
resetSplitScrollback: (renderer: Pointer, seedRows: number, pinnedRenderOffset: number) => number;
|
|
53
53
|
syncSplitScrollback: (renderer: Pointer, pinnedRenderOffset: number) => number;
|
|
54
|
-
|
|
54
|
+
getSplitOutputOffset: (renderer: Pointer, surfaceOffset: number) => number;
|
|
55
|
+
setPendingSplitFooterTransition: (renderer: Pointer, mode: number, sourceTopLine: number, sourceHeight: number, targetTopLine: number, targetHeight: number, scrollLines: number) => void;
|
|
55
56
|
clearPendingSplitFooterTransition: (renderer: Pointer) => void;
|
|
56
57
|
updateStats: (renderer: Pointer, time: number, fps: number, frameCallbackTime: number) => void;
|
|
57
58
|
updateMemoryStats: (renderer: Pointer, heapUsed: number, heapTotal: number, arrayBuffers: number) => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|