@opentui/core 0.1.62 → 0.1.63
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/3d.js +1 -1
- package/{index-mrwvcpzb.js → index-689t9q65.js} +22 -6
- package/{index-mrwvcpzb.js.map → index-689t9q65.js.map} +4 -4
- package/index.js +1 -1
- package/package.json +7 -7
- package/renderer.d.ts +18 -6
- package/testing.js +1 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.63",
|
|
8
8
|
"description": "OpenTUI is a TypeScript library for building terminal user interfaces (TUIs)",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"bun-webgpu": "0.1.4",
|
|
57
57
|
"planck": "^1.4.2",
|
|
58
58
|
"three": "0.177.0",
|
|
59
|
-
"@opentui/core-darwin-x64": "0.1.
|
|
60
|
-
"@opentui/core-darwin-arm64": "0.1.
|
|
61
|
-
"@opentui/core-linux-x64": "0.1.
|
|
62
|
-
"@opentui/core-linux-arm64": "0.1.
|
|
63
|
-
"@opentui/core-win32-x64": "0.1.
|
|
64
|
-
"@opentui/core-win32-arm64": "0.1.
|
|
59
|
+
"@opentui/core-darwin-x64": "0.1.63",
|
|
60
|
+
"@opentui/core-darwin-arm64": "0.1.63",
|
|
61
|
+
"@opentui/core-linux-x64": "0.1.63",
|
|
62
|
+
"@opentui/core-linux-arm64": "0.1.63",
|
|
63
|
+
"@opentui/core-win32-x64": "0.1.63",
|
|
64
|
+
"@opentui/core-win32-arm64": "0.1.63"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/renderer.d.ts
CHANGED
|
@@ -29,9 +29,7 @@ export interface CliRendererConfig {
|
|
|
29
29
|
useAlternateScreen?: boolean;
|
|
30
30
|
useConsole?: boolean;
|
|
31
31
|
experimental_splitHeight?: number;
|
|
32
|
-
useKittyKeyboard?:
|
|
33
|
-
events?: boolean;
|
|
34
|
-
} | null;
|
|
32
|
+
useKittyKeyboard?: KittyKeyboardOptions | null;
|
|
35
33
|
backgroundColor?: ColorInput;
|
|
36
34
|
openConsoleOnError?: boolean;
|
|
37
35
|
prependInputHandlers?: ((sequence: string) => boolean)[];
|
|
@@ -41,15 +39,29 @@ export type PixelResolution = {
|
|
|
41
39
|
width: number;
|
|
42
40
|
height: number;
|
|
43
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Kitty Keyboard Protocol configuration options
|
|
44
|
+
* See: https://sw.kovidgoyal.net/kitty/keyboard-protocol/#progressive-enhancement
|
|
45
|
+
*/
|
|
46
|
+
export interface KittyKeyboardOptions {
|
|
47
|
+
/** Disambiguate escape codes (fixes ESC timing, alt+key ambiguity, ctrl+c as event). Default: true */
|
|
48
|
+
disambiguate?: boolean;
|
|
49
|
+
/** Report alternate keys (numpad, shifted, base layout) for cross-keyboard shortcuts. Default: true */
|
|
50
|
+
alternateKeys?: boolean;
|
|
51
|
+
/** Report event types (press/repeat/release). Default: false */
|
|
52
|
+
events?: boolean;
|
|
53
|
+
/** Report all keys as escape codes. Default: false */
|
|
54
|
+
allKeysAsEscapes?: boolean;
|
|
55
|
+
/** Report text associated with key events. Default: false */
|
|
56
|
+
reportText?: boolean;
|
|
57
|
+
}
|
|
44
58
|
/**
|
|
45
59
|
* Build kitty keyboard protocol flags based on configuration
|
|
46
60
|
* @param config Kitty keyboard configuration object (null/undefined = disabled)
|
|
47
61
|
* @returns The combined flags value (0 = disabled, >0 = enabled)
|
|
48
62
|
* @internal Exported for testing
|
|
49
63
|
*/
|
|
50
|
-
export declare function buildKittyKeyboardFlags(config:
|
|
51
|
-
events?: boolean;
|
|
52
|
-
} | null | undefined): number;
|
|
64
|
+
export declare function buildKittyKeyboardFlags(config: KittyKeyboardOptions | null | undefined): number;
|
|
53
65
|
export declare class MouseEvent {
|
|
54
66
|
readonly type: MouseEventType;
|
|
55
67
|
readonly button: number;
|