@opentui/core 0.1.99 → 0.1.101

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.js CHANGED
@@ -79,7 +79,7 @@ import {
79
79
  registerCorePlugin,
80
80
  resolveCoreSlot,
81
81
  vstyles
82
- } from "./index-fedv7szb.js";
82
+ } from "./index-ekbq0zm9.js";
83
83
  import {
84
84
  ASCIIFontSelectionHelper,
85
85
  ATTRIBUTE_BASE_BITS,
@@ -236,7 +236,7 @@ import {
236
236
  white,
237
237
  wrapWithDelegates,
238
238
  yellow
239
- } from "./index-8978gvk3.js";
239
+ } from "./index-xsfpee0k.js";
240
240
  export {
241
241
  yellow,
242
242
  wrapWithDelegates,
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.1.99",
7
+ "version": "0.1.101",
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": {
@@ -67,11 +67,11 @@
67
67
  "bun-webgpu": "0.1.5",
68
68
  "planck": "^1.4.2",
69
69
  "three": "0.177.0",
70
- "@opentui/core-darwin-x64": "0.1.99",
71
- "@opentui/core-darwin-arm64": "0.1.99",
72
- "@opentui/core-linux-x64": "0.1.99",
73
- "@opentui/core-linux-arm64": "0.1.99",
74
- "@opentui/core-win32-x64": "0.1.99",
75
- "@opentui/core-win32-arm64": "0.1.99"
70
+ "@opentui/core-darwin-x64": "0.1.101",
71
+ "@opentui/core-darwin-arm64": "0.1.101",
72
+ "@opentui/core-linux-x64": "0.1.101",
73
+ "@opentui/core-linux-arm64": "0.1.101",
74
+ "@opentui/core-win32-x64": "0.1.101",
75
+ "@opentui/core-win32-arm64": "0.1.101"
76
76
  }
77
77
  }
package/renderer.d.ts CHANGED
@@ -166,6 +166,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
166
166
  private renderTimeout;
167
167
  private lastTime;
168
168
  private frameCount;
169
+ private _frameId;
169
170
  private lastFpsTime;
170
171
  private currentFps;
171
172
  private targetFrameTime;
@@ -226,6 +227,10 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
226
227
  private _paletteDetectionPromise;
227
228
  private _onDestroy?;
228
229
  private _themeMode;
230
+ private _themeModeSource;
231
+ private _themeFallbackPending;
232
+ private _themeOscForeground;
233
+ private _themeOscBackground;
229
234
  private _terminalFocusState;
230
235
  private sequenceHandlers;
231
236
  private prependedInputHandlers;
@@ -257,6 +262,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
257
262
  popHitGridScissorRect(): void;
258
263
  clearHitGridScissorRects(): void;
259
264
  get widthMethod(): WidthMethod;
265
+ get frameId(): number;
260
266
  private writeOut;
261
267
  requestRender(): void;
262
268
  private activateFrame;
@@ -289,6 +295,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
289
295
  get currentControlState(): string;
290
296
  get capabilities(): any | null;
291
297
  get themeMode(): ThemeMode | null;
298
+ waitForThemeMode(timeoutMs?: number): Promise<ThemeMode | null>;
292
299
  getDebugInputs(): Array<{
293
300
  timestamp: string;
294
301
  sequence: string;
@@ -313,6 +320,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
313
320
  private capabilityHandler;
314
321
  private focusHandler;
315
322
  private themeModeHandler;
323
+ private applyThemeMode;
316
324
  private dispatchSequenceHandlers;
317
325
  private drainStdinParser;
318
326
  private handleStdinEvent;
@@ -342,6 +350,12 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
342
350
  corner?: DebugOverlayCorner;
343
351
  }): void;
344
352
  setTerminalTitle(title: string): void;
353
+ /**
354
+ * Reset the terminal background color to its default via OSC 111.
355
+ * Called automatically by destroy() and suspend(), but exposed for
356
+ * consumers that need explicit control (e.g. before SIGTSTP).
357
+ */
358
+ resetTerminalBgColor(): void;
345
359
  copyToClipboardOSC52(text: string, target?: ClipboardTarget): boolean;
346
360
  clearClipboardOSC52(target?: ClipboardTarget): boolean;
347
361
  isOsc52Supported(): boolean;
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createRuntimePlugin,
4
4
  runtimeModuleIdForSpecifier
5
- } from "./index-gb4b75s8.js";
6
- import"./index-fedv7szb.js";
7
- import"./index-8978gvk3.js";
5
+ } from "./index-9qfn9g6r.js";
6
+ import"./index-ekbq0zm9.js";
7
+ import"./index-xsfpee0k.js";
8
8
 
9
9
  // src/runtime-plugin-support.ts
10
10
  var {plugin: registerBunPlugin } = globalThis.Bun;
package/runtime-plugin.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  createRuntimePlugin,
4
4
  isCoreRuntimeModuleSpecifier,
5
5
  runtimeModuleIdForSpecifier
6
- } from "./index-gb4b75s8.js";
7
- import"./index-fedv7szb.js";
8
- import"./index-8978gvk3.js";
6
+ } from "./index-9qfn9g6r.js";
7
+ import"./index-ekbq0zm9.js";
8
+ import"./index-xsfpee0k.js";
9
9
  export {
10
10
  runtimeModuleIdForSpecifier,
11
11
  isCoreRuntimeModuleSpecifier,
package/testing.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  CliRenderer,
5
5
  TreeSitterClient,
6
6
  resolveRenderLib
7
- } from "./index-8978gvk3.js";
7
+ } from "./index-xsfpee0k.js";
8
8
 
9
9
  // src/testing/test-renderer.ts
10
10
  import { Readable, Writable } from "stream";
package/types.d.ts CHANGED
@@ -63,6 +63,8 @@ export interface RenderContext extends EventEmitter {
63
63
  clearHitGridScissorRects: () => void;
64
64
  width: number;
65
65
  height: number;
66
+ /** Monotonic, bumped once per `loop()` iteration. Lets renderables dedupe per-frame work. */
67
+ frameId: number;
66
68
  requestRender: () => void;
67
69
  setCursorPosition: (x: number, y: number, visible: boolean) => void;
68
70
  setCursorStyle: (options: CursorStyleOptions) => void;