@opentui/core 0.6.0 → 0.6.1
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-tsc14mt5.js → chunk-bun-wsqkxxm5.js} +12 -4
- package/chunk-bun-wsqkxxm5.js.map +35 -0
- package/{chunk-bun-s01c2jyn.js → chunk-bun-ww65h9av.js} +18 -64
- package/{chunk-node-hjr2tm60.js.map → chunk-bun-ww65h9av.js.map} +5 -5
- package/{chunk-node-df90qrqc.js → chunk-node-f7c1g447.js} +12 -4
- package/chunk-node-f7c1g447.js.map +34 -0
- package/{chunk-node-hjr2tm60.js → chunk-node-jh6t3wnm.js} +18 -64
- package/{chunk-bun-s01c2jyn.js.map → chunk-node-jh6t3wnm.js.map} +5 -5
- package/edit-buffer.d.ts +5 -0
- package/index.bun.js +6 -7
- package/index.bun.js.map +4 -4
- package/index.node.js +6 -7
- package/index.node.js.map +4 -4
- package/native-abi.generated.d.ts +4 -0
- package/package.json +10 -11
- package/platform/runtime.d.ts +0 -1
- 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 +1 -0
- package/chunk-bun-tsc14mt5.js.map +0 -35
- package/chunk-node-df90qrqc.js.map +0 -34
|
@@ -307,6 +307,10 @@ export declare const nativeSymbols: {
|
|
|
307
307
|
readonly args: readonly ["ptr", "buffer", "u32", "u32", "u32", "u32", "u32", "ptr", "u32", "buffer"];
|
|
308
308
|
readonly returns: "i32";
|
|
309
309
|
};
|
|
310
|
+
readonly ot_edit_buffer_measure_text: {
|
|
311
|
+
readonly args: readonly ["ptr", "buffer", "ptr", "u32", "buffer"];
|
|
312
|
+
readonly returns: "i32";
|
|
313
|
+
};
|
|
310
314
|
readonly ot_edit_buffer_set_defaults: {
|
|
311
315
|
readonly args: readonly ["ptr", "buffer", "u32", "buffer"];
|
|
312
316
|
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.1",
|
|
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": {
|
|
@@ -72,20 +72,19 @@
|
|
|
72
72
|
"bun-ffi-structs": "0.3.1",
|
|
73
73
|
"diff": "9.0.0",
|
|
74
74
|
"marked": "17.0.1",
|
|
75
|
-
"string-width": "7.2.0"
|
|
76
|
-
"strip-ansi": "7.1.2"
|
|
75
|
+
"string-width": "7.2.0"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
78
|
"web-tree-sitter": "0.25.10"
|
|
80
79
|
},
|
|
81
80
|
"optionalDependencies": {
|
|
82
|
-
"@opentui/core-darwin-x64": "0.6.
|
|
83
|
-
"@opentui/core-darwin-arm64": "0.6.
|
|
84
|
-
"@opentui/core-linux-x64": "0.6.
|
|
85
|
-
"@opentui/core-linux-arm64": "0.6.
|
|
86
|
-
"@opentui/core-win32-x64": "0.6.
|
|
87
|
-
"@opentui/core-win32-arm64": "0.6.
|
|
88
|
-
"@opentui/core-linux-x64-musl": "0.6.
|
|
89
|
-
"@opentui/core-linux-arm64-musl": "0.6.
|
|
81
|
+
"@opentui/core-darwin-x64": "0.6.1",
|
|
82
|
+
"@opentui/core-darwin-arm64": "0.6.1",
|
|
83
|
+
"@opentui/core-linux-x64": "0.6.1",
|
|
84
|
+
"@opentui/core-linux-arm64": "0.6.1",
|
|
85
|
+
"@opentui/core-win32-x64": "0.6.1",
|
|
86
|
+
"@opentui/core-win32-arm64": "0.6.1",
|
|
87
|
+
"@opentui/core-linux-x64-musl": "0.6.1",
|
|
88
|
+
"@opentui/core-linux-arm64-musl": "0.6.1"
|
|
90
89
|
}
|
|
91
90
|
}
|
package/platform/runtime.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export interface ResolveBundledFilePathOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const sleep: (msOrDate: number | Date) => Promise<void>;
|
|
14
14
|
export declare const stringWidth: (text: string) => number;
|
|
15
|
-
export declare const stripANSI: (text: string) => string;
|
|
16
15
|
export declare const writeFile: (destination: string | URL, data: string | ArrayBufferView, options?: WriteFileOptions) => Promise<number>;
|
|
17
16
|
export declare function resolveBundledFilePath(key: string, loadBundledFile: () => Promise<FileImportModule>, fallbackPath: FilePathFallback, metaUrl: string, options?: ResolveBundledFilePathOptions): Promise<string>;
|
|
18
17
|
export {};
|
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-ww65h9av.js";
|
|
8
|
+
import"./chunk-bun-wsqkxxm5.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-jh6t3wnm.js";
|
|
7
|
+
import"./chunk-node-f7c1g447.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
|
@@ -1081,6 +1081,7 @@ export declare class FFIRenderLib {
|
|
|
1081
1081
|
contextEditBufferHistory(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, redo: boolean): string | null;
|
|
1082
1082
|
contextEditBufferGetPosition(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, query: NativeEditPositionQuery, a?: number, b?: number): LogicalCursor | null;
|
|
1083
1083
|
contextEditBufferGetRange(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, byCoords: boolean, startRow: number, startCol: number, endRow: number, endCol: number): string;
|
|
1084
|
+
contextEditBufferMeasureText(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, bytes: Uint8Array): number;
|
|
1084
1085
|
contextEditBufferSetDefaults(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, mask: NativeEditorStyleMask, style: NativeEditorStyle): void;
|
|
1085
1086
|
contextSyntaxStyleRegister(context: NativeContextHandle, style: ContextSyntaxStyleHandle, name: string, definition: NativeEditorStyle): number;
|
|
1086
1087
|
contextSyntaxStyleResolveByName(context: NativeContextHandle, style: ContextSyntaxStyleHandle, name: string): number | null;
|