@opentui/core 0.6.4 → 0.6.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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.node.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.6.4",
7
+ "version": "0.6.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": {
@@ -78,13 +78,13 @@
78
78
  "web-tree-sitter": "0.25.10"
79
79
  },
80
80
  "optionalDependencies": {
81
- "@opentui/core-darwin-x64": "0.6.4",
82
- "@opentui/core-darwin-arm64": "0.6.4",
83
- "@opentui/core-linux-x64": "0.6.4",
84
- "@opentui/core-linux-arm64": "0.6.4",
85
- "@opentui/core-win32-x64": "0.6.4",
86
- "@opentui/core-win32-arm64": "0.6.4",
87
- "@opentui/core-linux-x64-musl": "0.6.4",
88
- "@opentui/core-linux-arm64-musl": "0.6.4"
81
+ "@opentui/core-darwin-x64": "0.6.6",
82
+ "@opentui/core-darwin-arm64": "0.6.6",
83
+ "@opentui/core-linux-x64": "0.6.6",
84
+ "@opentui/core-linux-arm64": "0.6.6",
85
+ "@opentui/core-win32-x64": "0.6.6",
86
+ "@opentui/core-win32-arm64": "0.6.6",
87
+ "@opentui/core-linux-x64-musl": "0.6.6",
88
+ "@opentui/core-linux-arm64-musl": "0.6.6"
89
89
  }
90
90
  }
@@ -41,6 +41,7 @@ export declare class ASCIIFontRenderable extends FrameBufferRenderable {
41
41
  set color(value: ColorInput | ColorInput[]);
42
42
  get backgroundColor(): ColorInput;
43
43
  set backgroundColor(value: ColorInput);
44
+ protected defaultDimension(kind: "width" | "height"): number;
44
45
  private updateDimensions;
45
46
  shouldStartSelection(x: number, y: number): boolean;
46
47
  onSelectionChanged(selection: Selection | null): boolean;
@@ -79,7 +79,8 @@ export declare class BoxRenderable extends Renderable {
79
79
  set shouldFill(value: boolean);
80
80
  protected getNativeScenePaint(): NativeScenePaint;
81
81
  private applyYogaGap;
82
- set gap(gap: number | `${number}%` | undefined);
83
- set rowGap(rowGap: number | `${number}%` | undefined);
84
- set columnGap(columnGap: number | `${number}%` | undefined);
82
+ set gap(gap: number | `${number}%` | null | undefined);
83
+ set rowGap(rowGap: number | `${number}%` | null | undefined);
84
+ set columnGap(columnGap: number | `${number}%` | null | undefined);
85
+ private setGapStyle;
85
86
  }
@@ -37,7 +37,9 @@ export declare class EmbeddedTerminalRenderable extends Renderable {
37
37
  private selection;
38
38
  private composedHookGeneration;
39
39
  private _transparentBackground;
40
+ private readonly sizeDefaults;
40
41
  constructor(ctx: RenderContext, options: EmbeddedTerminalOptions);
42
+ protected defaultDimension(kind: "width" | "height"): number;
41
43
  get onData(): ((data: Uint8Array, source: EmbeddedTerminalDataSource) => void) | undefined;
42
44
  set onData(value: ((data: Uint8Array, source: EmbeddedTerminalDataSource) => void) | undefined);
43
45
  get onTerminalResize(): ((cols: number, rows: number) => void) | undefined;
@@ -42,6 +42,7 @@ export declare class InputRenderable extends TextareaRenderable {
42
42
  * Insert text - strip newlines and enforce maxLength
43
43
  */
44
44
  insertText(text: string): void;
45
+ protected defaultDimension(kind: "width" | "height"): number | "auto" | `${number}%`;
45
46
  get value(): string;
46
47
  set value(value: string);
47
48
  focus(): void;
@@ -79,5 +79,7 @@ export declare class ArrowRenderable extends Renderable {
79
79
  set arrowChars(value: ArrowOptions["arrowChars"]);
80
80
  private setNativeSceneArrow;
81
81
  protected renderSelf(buffer: OptimizedBuffer): void;
82
+ protected defaultDimension(kind: "width" | "height"): number | "auto" | `${number}%`;
83
+ private glyphWidth;
82
84
  private getArrowChar;
83
85
  }
@@ -58,6 +58,7 @@ export declare class TabSelectRenderable extends Renderable {
58
58
  private _keyBindings;
59
59
  constructor(ctx: RenderContext, options: TabSelectRenderableOptions);
60
60
  private calculateDynamicHeight;
61
+ protected defaultDimension(kind: "width" | "height"): number | "auto" | `${number}%`;
61
62
  protected renderSelf(buffer: OptimizedBuffer, deltaTime: number): void;
62
63
  private refreshFrameBuffer;
63
64
  private truncateText;
@@ -13,6 +13,7 @@ export declare class TimeToFirstDrawRenderable extends Renderable {
13
13
  private label;
14
14
  private precision;
15
15
  constructor(ctx: RenderContext, options?: TimeToFirstDrawOptions);
16
+ protected defaultDimension(kind: "width" | "height"): number | `${number}%`;
16
17
  get runtimeMs(): number | null;
17
18
  set fg(value: ColorInput);
18
19
  set color(value: ColorInput);
package/testing.bun.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  TreeSitterClient2,
5
5
  ANSI,
6
6
  CliRenderer2
7
- } from "./chunk-bun-qphgryjx.js";
8
- import"./chunk-bun-e2gttx65.js";
7
+ } from "./chunk-bun-6qjat6qa.js";
8
+ import"./chunk-bun-jztcnb74.js";
9
9
 
10
10
  // src/testing/mock-keys.ts
11
11
  import { Buffer as Buffer2 } from "buffer";
package/testing.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  TreeSitterClient2,
4
4
  ANSI,
5
5
  CliRenderer2
6
- } from "./chunk-node-j1h89sfg.js";
7
- import"./chunk-node-6rc18den.js";
6
+ } from "./chunk-node-2rg7pskw.js";
7
+ import"./chunk-node-p43t2gam.js";
8
8
 
9
9
  // src/testing/mock-keys.ts
10
10
  import { Buffer as Buffer2 } from "node:buffer";
package/yoga.bun.js CHANGED
@@ -95,7 +95,7 @@ import {
95
95
  Config2,
96
96
  Node2,
97
97
  yoga_default
98
- } from "./chunk-bun-e2gttx65.js";
98
+ } from "./chunk-bun-jztcnb74.js";
99
99
  export {
100
100
  ALIGN_AUTO2 as ALIGN_AUTO,
101
101
  ALIGN_BASELINE2 as ALIGN_BASELINE,
package/yoga.js CHANGED
@@ -94,7 +94,7 @@ import {
94
94
  Config2,
95
95
  Node2,
96
96
  yoga_default
97
- } from "./chunk-node-6rc18den.js";
97
+ } from "./chunk-node-p43t2gam.js";
98
98
  export {
99
99
  ALIGN_AUTO2 as ALIGN_AUTO,
100
100
  ALIGN_BASELINE2 as ALIGN_BASELINE,
package/zig.d.ts CHANGED
@@ -669,7 +669,7 @@ export declare enum NativeStatus {
669
669
  export declare class NativeError extends Error {
670
670
  readonly operation: string;
671
671
  readonly status: NativeStatus;
672
- constructor(operation: string, status: NativeStatus);
672
+ constructor(operation: string, status: NativeStatus, reason?: string);
673
673
  }
674
674
  export type AudioEngineHandle = NativeHandle<"audio_engine">;
675
675
  export type ImageHandle = ContextImageHandle;
@@ -947,8 +947,8 @@ export declare class FFIRenderLib {
947
947
  private readonly hitTestOutput;
948
948
  private readonly bufferStackInput;
949
949
  private readonly bufferStackOutput;
950
- private drawTextBytes;
951
- private drawBottomBytes;
950
+ private readonly drawTextBytes;
951
+ private readonly drawBottomBytes;
952
952
  private opentui;
953
953
  private iccCacheClient;
954
954
  private readonly yogaLayout;