@opentui/core 0.6.1 → 0.6.2
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/{chunk-bun-wsqkxxm5.js → chunk-bun-b3p27aka.js} +18 -3
- package/chunk-bun-b3p27aka.js.map +35 -0
- package/{chunk-bun-ww65h9av.js → chunk-bun-ehstr7d7.js} +9 -6
- package/{chunk-bun-ww65h9av.js.map → chunk-bun-ehstr7d7.js.map} +4 -4
- package/{chunk-node-jh6t3wnm.js → chunk-node-fs50qdd7.js} +9 -6
- package/{chunk-node-jh6t3wnm.js.map → chunk-node-fs50qdd7.js.map} +4 -4
- package/{chunk-node-f7c1g447.js → chunk-node-jt82vcf9.js} +18 -3
- package/chunk-node-jt82vcf9.js.map +34 -0
- package/edit-buffer.d.ts +11 -1
- package/index.bun.js +38 -3
- package/index.bun.js.map +3 -3
- package/index.node.js +38 -3
- package/index.node.js.map +3 -3
- package/native-abi.generated.d.ts +4 -0
- package/package.json +9 -9
- package/testing.bun.js +2 -2
- package/testing.js +2 -2
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
- package/zig.d.ts +2 -0
- package/chunk-bun-wsqkxxm5.js.map +0 -35
- package/chunk-node-f7c1g447.js.map +0 -34
|
@@ -311,6 +311,10 @@ export declare const nativeSymbols: {
|
|
|
311
311
|
readonly args: readonly ["ptr", "buffer", "ptr", "u32", "buffer"];
|
|
312
312
|
readonly returns: "i32";
|
|
313
313
|
};
|
|
314
|
+
readonly ot_edit_measure_text: {
|
|
315
|
+
readonly args: readonly ["ptr", "ptr", "u32", "u32", "u32", "buffer"];
|
|
316
|
+
readonly returns: "i32";
|
|
317
|
+
};
|
|
314
318
|
readonly ot_edit_buffer_set_defaults: {
|
|
315
319
|
readonly args: readonly ["ptr", "buffer", "u32", "buffer"];
|
|
316
320
|
readonly returns: "i32";
|
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.
|
|
7
|
+
"version": "0.6.2",
|
|
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.
|
|
82
|
-
"@opentui/core-darwin-arm64": "0.6.
|
|
83
|
-
"@opentui/core-linux-x64": "0.6.
|
|
84
|
-
"@opentui/core-linux-arm64": "0.6.
|
|
85
|
-
"@opentui/core-win32-x64": "0.6.
|
|
86
|
-
"@opentui/core-win32-arm64": "0.6.
|
|
87
|
-
"@opentui/core-linux-x64-musl": "0.6.
|
|
88
|
-
"@opentui/core-linux-arm64-musl": "0.6.
|
|
81
|
+
"@opentui/core-darwin-x64": "0.6.2",
|
|
82
|
+
"@opentui/core-darwin-arm64": "0.6.2",
|
|
83
|
+
"@opentui/core-linux-x64": "0.6.2",
|
|
84
|
+
"@opentui/core-linux-arm64": "0.6.2",
|
|
85
|
+
"@opentui/core-win32-x64": "0.6.2",
|
|
86
|
+
"@opentui/core-win32-arm64": "0.6.2",
|
|
87
|
+
"@opentui/core-linux-x64-musl": "0.6.2",
|
|
88
|
+
"@opentui/core-linux-arm64-musl": "0.6.2"
|
|
89
89
|
}
|
|
90
90
|
}
|
package/testing.bun.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
TreeSitterClient2,
|
|
5
5
|
ANSI,
|
|
6
6
|
CliRenderer2
|
|
7
|
-
} from "./chunk-bun-
|
|
8
|
-
import"./chunk-bun-
|
|
7
|
+
} from "./chunk-bun-ehstr7d7.js";
|
|
8
|
+
import"./chunk-bun-b3p27aka.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-
|
|
7
|
-
import"./chunk-node-
|
|
6
|
+
} from "./chunk-node-fs50qdd7.js";
|
|
7
|
+
import"./chunk-node-jt82vcf9.js";
|
|
8
8
|
|
|
9
9
|
// src/testing/mock-keys.ts
|
|
10
10
|
import { Buffer as Buffer2 } from "node:buffer";
|
package/yoga.bun.js
CHANGED
package/yoga.js
CHANGED
package/zig.d.ts
CHANGED
|
@@ -961,6 +961,7 @@ export declare class FFIRenderLib {
|
|
|
961
961
|
private clipboardServices;
|
|
962
962
|
private clipboardOperations;
|
|
963
963
|
private audioEngines;
|
|
964
|
+
private editMeasureContext?;
|
|
964
965
|
private readonly invalidStandaloneHandle;
|
|
965
966
|
readonly encoder: TextEncoder;
|
|
966
967
|
private readonly emptyBytes;
|
|
@@ -1082,6 +1083,7 @@ export declare class FFIRenderLib {
|
|
|
1082
1083
|
contextEditBufferGetPosition(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, query: NativeEditPositionQuery, a?: number, b?: number): LogicalCursor | null;
|
|
1083
1084
|
contextEditBufferGetRange(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, byCoords: boolean, startRow: number, startCol: number, endRow: number, endCol: number): string;
|
|
1084
1085
|
contextEditBufferMeasureText(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, bytes: Uint8Array): number;
|
|
1086
|
+
editMeasureText(bytes: Uint8Array, widthMethod: WidthMethod, tabWidth: number): number;
|
|
1085
1087
|
contextEditBufferSetDefaults(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, mask: NativeEditorStyleMask, style: NativeEditorStyle): void;
|
|
1086
1088
|
contextSyntaxStyleRegister(context: NativeContextHandle, style: ContextSyntaxStyleHandle, name: string, definition: NativeEditorStyle): number;
|
|
1087
1089
|
contextSyntaxStyleResolveByName(context: NativeContextHandle, style: ContextSyntaxStyleHandle, name: string): number | null;
|