@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/README.md +44 -37
- package/{chunk-bun-xmsp0nqq.js → chunk-bun-b0662dgp.js} +33 -22
- package/{chunk-bun-xmsp0nqq.js.map → chunk-bun-b0662dgp.js.map} +7 -7
- package/{chunk-bun-z4gs6jzg.js → chunk-bun-jxfx3h5k.js} +24 -13
- package/chunk-bun-jxfx3h5k.js.map +32 -0
- package/{chunk-node-591ssncm.js → chunk-node-dcyj0dm5.js} +24 -13
- package/chunk-node-dcyj0dm5.js.map +32 -0
- package/{chunk-node-267dafd8.js → chunk-node-zcz10bhr.js} +33 -22
- package/{chunk-node-267dafd8.js.map → chunk-node-zcz10bhr.js.map} +7 -7
- package/edit-buffer.d.ts +2 -0
- package/index.bun.js +44 -6
- package/index.bun.js.map +4 -4
- package/index.node.js +44 -6
- package/index.node.js.map +4 -4
- package/package.json +9 -9
- package/post/effects.d.ts +2 -0
- package/testing.bun.js +2 -2
- package/testing.js +2 -2
- package/text-buffer.d.ts +0 -1
- package/types.d.ts +1 -1
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
- package/zig-structs.d.ts +1 -0
- package/zig.d.ts +1 -0
- package/chunk-bun-z4gs6jzg.js.map +0 -32
- package/chunk-node-591ssncm.js.map +0 -32
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
|
+
"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.
|
|
79
|
-
"@opentui/core-darwin-arm64": "0.5.
|
|
80
|
-
"@opentui/core-linux-x64": "0.5.
|
|
81
|
-
"@opentui/core-linux-arm64": "0.5.
|
|
82
|
-
"@opentui/core-win32-x64": "0.5.
|
|
83
|
-
"@opentui/core-win32-arm64": "0.5.
|
|
84
|
-
"@opentui/core-linux-x64-musl": "0.5.
|
|
85
|
-
"@opentui/core-linux-arm64-musl": "0.5.
|
|
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-
|
|
5
|
+
} from "./chunk-bun-jxfx3h5k.js";
|
|
6
6
|
import {
|
|
7
7
|
SystemClock,
|
|
8
8
|
TreeSitterClient
|
|
9
|
-
} from "./chunk-bun-
|
|
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-
|
|
4
|
+
} from "./chunk-node-dcyj0dm5.js";
|
|
5
5
|
import {
|
|
6
6
|
SystemClock,
|
|
7
7
|
TreeSitterClient
|
|
8
|
-
} from "./chunk-node-
|
|
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
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
package/yoga.js
CHANGED
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;
|