@opentui/core 0.1.97 → 0.1.98
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/Renderable.d.ts +3 -0
- package/console.d.ts +2 -1
- package/{index-kgg0v67t.js → index-e4g80551.js} +164 -104
- package/{index-kgg0v67t.js.map → index-e4g80551.js.map} +12 -12
- package/{index-9y4vegye.js → index-ks829haj.js} +9 -32
- package/{index-9y4vegye.js.map → index-ks829haj.js.map} +8 -8
- package/{index-bzjr4q9g.js → index-qs64hr08.js} +3 -3
- package/index.js +2 -2
- package/lib/keymapping.d.ts +10 -2
- package/lib/tree-sitter/default-parsers.d.ts +1 -1
- package/package.json +7 -7
- package/renderables/Slider.d.ts +4 -1
- package/renderables/TextNode.d.ts +1 -1
- package/renderer.d.ts +1 -0
- package/runtime-plugin-support.js +3 -3
- package/runtime-plugin.js +3 -3
- package/testing.js +1 -1
- package/types.d.ts +1 -0
- /package/{index-bzjr4q9g.js.map → index-qs64hr08.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
exports_src
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ks829haj.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-e4g80551.js";
|
|
8
8
|
|
|
9
9
|
// src/runtime-plugin.ts
|
|
10
10
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -408,4 +408,4 @@ function createRuntimePlugin(input = {}) {
|
|
|
408
408
|
export { isCoreRuntimeModuleSpecifier, runtimeModuleIdForSpecifier, createRuntimePlugin };
|
|
409
409
|
|
|
410
410
|
//# debugId=5D58E30F1E057B9664756E2164756E21
|
|
411
|
-
//# sourceMappingURL=index-
|
|
411
|
+
//# sourceMappingURL=index-qs64hr08.js.map
|
package/index.js
CHANGED
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
registerCorePlugin,
|
|
80
80
|
resolveCoreSlot,
|
|
81
81
|
vstyles
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-ks829haj.js";
|
|
83
83
|
import {
|
|
84
84
|
ASCIIFontSelectionHelper,
|
|
85
85
|
ATTRIBUTE_BASE_BITS,
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
white,
|
|
237
237
|
wrapWithDelegates,
|
|
238
238
|
yellow
|
|
239
|
-
} from "./index-
|
|
239
|
+
} from "./index-e4g80551.js";
|
|
240
240
|
export {
|
|
241
241
|
yellow,
|
|
242
242
|
wrapWithDelegates,
|
package/lib/keymapping.d.ts
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface KeyBindingLike {
|
|
2
2
|
name: string;
|
|
3
3
|
ctrl?: boolean;
|
|
4
4
|
shift?: boolean;
|
|
5
5
|
meta?: boolean;
|
|
6
6
|
super?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface KeyBinding<Action extends string = string> extends KeyBindingLike {
|
|
7
9
|
action: Action;
|
|
8
10
|
}
|
|
11
|
+
export interface KeyBindingLookup extends KeyBindingLike {
|
|
12
|
+
baseCode?: number;
|
|
13
|
+
}
|
|
9
14
|
export type KeyAliasMap = Record<string, string>;
|
|
10
15
|
export declare const defaultKeyAliases: KeyAliasMap;
|
|
11
16
|
export declare function mergeKeyAliases(defaults: KeyAliasMap, custom: KeyAliasMap): KeyAliasMap;
|
|
12
17
|
export declare function mergeKeyBindings<Action extends string>(defaults: KeyBinding<Action>[], custom: KeyBinding<Action>[]): KeyBinding<Action>[];
|
|
13
|
-
export declare function getKeyBindingKey
|
|
18
|
+
export declare function getKeyBindingKey(binding: KeyBindingLike): string;
|
|
19
|
+
export declare function getKeyBindingKeys(binding: KeyBindingLookup): string[];
|
|
20
|
+
export declare function getKeyBindingAction<Action extends string>(map: Map<string, Action>, binding: KeyBindingLookup): Action | undefined;
|
|
21
|
+
export declare function matchesKeyBinding(binding: KeyBindingLookup, match: KeyBindingLike): boolean;
|
|
14
22
|
export declare function buildKeyBindingsMap<Action extends string>(bindings: KeyBinding<Action>[], aliasMap?: KeyAliasMap): Map<string, Action>;
|
|
15
23
|
/**
|
|
16
24
|
* Converts a key binding to a human-readable string representation
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FiletypeParserOptions } from "./types
|
|
1
|
+
import type { FiletypeParserOptions } from "./types";
|
|
2
2
|
export declare function getParsers(): FiletypeParserOptions[];
|
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.98",
|
|
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": {
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"bun-webgpu": "0.1.5",
|
|
68
68
|
"planck": "^1.4.2",
|
|
69
69
|
"three": "0.177.0",
|
|
70
|
-
"@opentui/core-darwin-x64": "0.1.
|
|
71
|
-
"@opentui/core-darwin-arm64": "0.1.
|
|
72
|
-
"@opentui/core-linux-x64": "0.1.
|
|
73
|
-
"@opentui/core-linux-arm64": "0.1.
|
|
74
|
-
"@opentui/core-win32-x64": "0.1.
|
|
75
|
-
"@opentui/core-win32-arm64": "0.1.
|
|
70
|
+
"@opentui/core-darwin-x64": "0.1.98",
|
|
71
|
+
"@opentui/core-darwin-arm64": "0.1.98",
|
|
72
|
+
"@opentui/core-linux-x64": "0.1.98",
|
|
73
|
+
"@opentui/core-linux-arm64": "0.1.98",
|
|
74
|
+
"@opentui/core-win32-x64": "0.1.98",
|
|
75
|
+
"@opentui/core-win32-arm64": "0.1.98"
|
|
76
76
|
}
|
|
77
77
|
}
|
package/renderables/Slider.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RenderableOptions, Renderable } from "../Renderable.js";
|
|
2
|
+
import { type RenderContext } from "../types.js";
|
|
3
|
+
import { type ColorInput, RGBA } from "../lib/RGBA.js";
|
|
4
|
+
import { OptimizedBuffer } from "../buffer.js";
|
|
2
5
|
export interface SliderOptions extends RenderableOptions<SliderRenderable> {
|
|
3
6
|
orientation: "vertical" | "horizontal";
|
|
4
7
|
value?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextRenderable } from "./
|
|
1
|
+
import type { TextRenderable } from "./Text.js";
|
|
2
2
|
import { BaseRenderable, type BaseRenderableOptions } from "../Renderable.js";
|
|
3
3
|
import { RGBA } from "../lib/RGBA.js";
|
|
4
4
|
import { StyledText } from "../lib/styled-text.js";
|
package/renderer.d.ts
CHANGED
|
@@ -250,6 +250,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
|
|
|
250
250
|
private normalizeClockTime;
|
|
251
251
|
private getElapsedMs;
|
|
252
252
|
focusRenderable(renderable: Renderable): void;
|
|
253
|
+
blurRenderable(renderable: Renderable): void;
|
|
253
254
|
private setCapturedRenderable;
|
|
254
255
|
addToHitGrid(x: number, y: number, width: number, height: number, id: number): void;
|
|
255
256
|
pushHitGridScissorRect(x: number, y: number, width: number, height: number): void;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createRuntimePlugin,
|
|
4
4
|
runtimeModuleIdForSpecifier
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
5
|
+
} from "./index-qs64hr08.js";
|
|
6
|
+
import"./index-ks829haj.js";
|
|
7
|
+
import"./index-e4g80551.js";
|
|
8
8
|
|
|
9
9
|
// src/runtime-plugin-support.ts
|
|
10
10
|
var {plugin: registerBunPlugin } = globalThis.Bun;
|
package/runtime-plugin.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createRuntimePlugin,
|
|
4
4
|
isCoreRuntimeModuleSpecifier,
|
|
5
5
|
runtimeModuleIdForSpecifier
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
6
|
+
} from "./index-qs64hr08.js";
|
|
7
|
+
import"./index-ks829haj.js";
|
|
8
|
+
import"./index-e4g80551.js";
|
|
9
9
|
export {
|
|
10
10
|
runtimeModuleIdForSpecifier,
|
|
11
11
|
isCoreRuntimeModuleSpecifier,
|
package/testing.js
CHANGED
package/types.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export interface RenderContext extends EventEmitter {
|
|
|
78
78
|
currentFocusedRenderable: Renderable | null;
|
|
79
79
|
currentFocusedEditor: EditBufferRenderable | null;
|
|
80
80
|
focusRenderable: (renderable: Renderable) => void;
|
|
81
|
+
blurRenderable: (renderable: Renderable) => void;
|
|
81
82
|
registerLifecyclePass: (renderable: Renderable) => void;
|
|
82
83
|
unregisterLifecyclePass: (renderable: Renderable) => void;
|
|
83
84
|
getLifecyclePasses: () => Set<Renderable>;
|
|
File without changes
|