@opentui/core 0.5.7 → 0.5.9

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.5.7",
7
+ "version": "0.5.9",
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": {
@@ -75,13 +75,13 @@
75
75
  "web-tree-sitter": "0.25.10"
76
76
  },
77
77
  "optionalDependencies": {
78
- "@opentui/core-darwin-x64": "0.5.7",
79
- "@opentui/core-darwin-arm64": "0.5.7",
80
- "@opentui/core-linux-x64": "0.5.7",
81
- "@opentui/core-linux-arm64": "0.5.7",
82
- "@opentui/core-win32-x64": "0.5.7",
83
- "@opentui/core-win32-arm64": "0.5.7",
84
- "@opentui/core-linux-x64-musl": "0.5.7",
85
- "@opentui/core-linux-arm64-musl": "0.5.7"
78
+ "@opentui/core-darwin-x64": "0.5.9",
79
+ "@opentui/core-darwin-arm64": "0.5.9",
80
+ "@opentui/core-linux-x64": "0.5.9",
81
+ "@opentui/core-linux-arm64": "0.5.9",
82
+ "@opentui/core-win32-x64": "0.5.9",
83
+ "@opentui/core-win32-arm64": "0.5.9",
84
+ "@opentui/core-linux-x64-musl": "0.5.9",
85
+ "@opentui/core-linux-arm64-musl": "0.5.9"
86
86
  }
87
87
  }
package/post/effects.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare class DistortionEffect {
23
23
  export declare class VignetteEffect {
24
24
  private _strength;
25
25
  private precomputedAttenuationCellMask;
26
+ private precomputedAttenuation;
26
27
  private cachedWidth;
27
28
  private cachedHeight;
28
29
  private static zeroMatrix;
@@ -30,6 +31,7 @@ export declare class VignetteEffect {
30
31
  set strength(newStrength: number);
31
32
  get strength(): number;
32
33
  private _computeFactors;
34
+ private _preserveGraphemeRuns;
33
35
  /**
34
36
  * Applies the vignette effect using native colorMatrix with a zero matrix.
35
37
  * The zero matrix maps all colors to black, and the attenuation cell masks
package/testing.bun.js CHANGED
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  ANSI,
4
4
  CliRenderer
5
- } from "./chunk-bun-z4gs6jzg.js";
5
+ } from "./chunk-bun-jxfx3h5k.js";
6
6
  import {
7
7
  SystemClock,
8
8
  TreeSitterClient
9
- } from "./chunk-bun-xmsp0nqq.js";
9
+ } from "./chunk-bun-b0662dgp.js";
10
10
 
11
11
  // src/testing/mock-keys.ts
12
12
  import { Buffer as Buffer2 } from "buffer";
package/testing.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ANSI,
3
3
  CliRenderer
4
- } from "./chunk-node-591ssncm.js";
4
+ } from "./chunk-node-dcyj0dm5.js";
5
5
  import {
6
6
  SystemClock,
7
7
  TreeSitterClient
8
- } from "./chunk-node-267dafd8.js";
8
+ } from "./chunk-node-zcz10bhr.js";
9
9
 
10
10
  // src/testing/mock-keys.ts
11
11
  import { Buffer as Buffer2 } from "node:buffer";
package/text-buffer.d.ts CHANGED
@@ -18,7 +18,6 @@ export declare class TextBuffer {
18
18
  private bufferPtr;
19
19
  private _length;
20
20
  private _byteSize;
21
- private _lineInfo?;
22
21
  private _destroyed;
23
22
  private _syntaxStyle?;
24
23
  private _textBytes?;
package/types.d.ts CHANGED
@@ -51,7 +51,7 @@ export declare enum TargetChannel {
51
51
  BG = 2,
52
52
  Both = 3
53
53
  }
54
- export type WidthMethod = "wcwidth" | "unicode";
54
+ export type WidthMethod = "wcwidth" | "unicode" | "unicode-wide";
55
55
  export type TerminalMultiplexer = "none" | "tmux" | "zellij" | "screen" | "unknown";
56
56
  export type TerminalCapabilityState = "unknown" | "supported" | "unsupported";
57
57
  export type ImageRenderProtocol = "auto" | "kitty" | "sixel" | "blocks";
package/yoga.bun.js CHANGED
@@ -93,7 +93,7 @@ import {
93
93
  WRAP_WRAP_REVERSE,
94
94
  Wrap,
95
95
  yoga_default
96
- } from "./chunk-bun-xmsp0nqq.js";
96
+ } from "./chunk-bun-b0662dgp.js";
97
97
  export {
98
98
  yoga_default as default,
99
99
  Wrap,
package/yoga.js CHANGED
@@ -92,7 +92,7 @@ import {
92
92
  WRAP_WRAP_REVERSE,
93
93
  Wrap,
94
94
  yoga_default
95
- } from "./chunk-node-267dafd8.js";
95
+ } from "./chunk-node-zcz10bhr.js";
96
96
  export {
97
97
  yoga_default as default,
98
98
  Wrap,
package/zig-structs.d.ts CHANGED
@@ -38,6 +38,7 @@ export declare const VisualCursorStruct: import("bun-ffi-structs").DefineStructR
38
38
  export declare const TerminalCapabilitiesStruct: import("bun-ffi-structs").DefineStructReturnType<[readonly ["kitty_keyboard", "bool_u8"], readonly ["kitty_graphics", "bool_u8"], readonly ["rgb", "bool_u8"], readonly ["ansi256", "bool_u8"], readonly ["unicode", import("bun-ffi-structs").EnumDef<{
39
39
  wcwidth: number;
40
40
  unicode: number;
41
+ "unicode-wide": number;
41
42
  }>], readonly ["sgr_pixels", "bool_u8"], readonly ["color_scheme_updates", "bool_u8"], readonly ["explicit_width", "bool_u8"], readonly ["scaled_text", "bool_u8"], readonly ["sixel", "bool_u8"], readonly ["focus_tracking", "bool_u8"], readonly ["sync", "bool_u8"], readonly ["bracketed_paste", "bool_u8"], readonly ["hyperlinks", "bool_u8"], readonly ["osc52", "bool_u8"], readonly ["notifications", "bool_u8"], readonly ["explicit_cursor_positioning", "bool_u8"], readonly ["remote", "bool_u8"], readonly ["multiplexer", import("bun-ffi-structs").EnumDef<{
42
43
  none: number;
43
44
  tmux: number;
package/zig.d.ts CHANGED
@@ -523,6 +523,7 @@ export interface RenderLib extends AudioEngineLib {
523
523
  editBufferGetCursorPosition: (buffer: EditBufferHandle) => LogicalCursor;
524
524
  editBufferGetId: (buffer: EditBufferHandle) => number;
525
525
  editBufferGetTextBuffer: (buffer: EditBufferHandle) => TextBufferHandle;
526
+ editBufferSetTabWidth: (buffer: EditBufferHandle, width: number) => void;
526
527
  editBufferDebugLogRope: (buffer: EditBufferHandle) => void;
527
528
  editBufferUndo: (buffer: EditBufferHandle, maxLength: number) => Uint8Array | null;
528
529
  editBufferRedo: (buffer: EditBufferHandle, maxLength: number) => Uint8Array | null;