@opentui/core 0.3.3 → 0.3.4
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/{index-qndc8vq8.js → index-0nvgrgam.js} +2098 -2084
- package/{index-qndc8vq8.js.map → index-0nvgrgam.js.map} +5 -5
- package/{index-mn090kzf.js → index-54s7pk0d.js} +26 -6
- package/{index-mn090kzf.js.map → index-54s7pk0d.js.map} +3 -3
- package/{index-jh82sd41.js → index-8t841rbx.js} +2 -2
- package/{index-mbck6rbg.js → index-r49y8kdq.js} +3 -3
- package/index.js +2 -2
- package/package.json +9 -9
- package/renderables/Code.d.ts +4 -0
- package/renderables/Markdown.d.ts +1 -0
- package/runtime-plugin-support-configure.js +4 -4
- package/runtime-plugin-support.js +4 -4
- package/runtime-plugin.js +3 -3
- package/testing.js +1 -1
- /package/{index-jh82sd41.js.map → index-8t841rbx.js.map} +0 -0
- /package/{index-mbck6rbg.js.map → index-r49y8kdq.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createRuntimePlugin
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-r49y8kdq.js";
|
|
5
5
|
|
|
6
6
|
// src/runtime-plugin-support-configure.ts
|
|
7
7
|
var {plugin: registerBunPlugin } = globalThis.Bun;
|
|
@@ -41,4 +41,4 @@ function ensureRuntimePluginSupport(options = {}) {
|
|
|
41
41
|
export { ensureRuntimePluginSupport };
|
|
42
42
|
|
|
43
43
|
//# debugId=09C0597CB92E654F64756E2164756E21
|
|
44
|
-
//# sourceMappingURL=index-
|
|
44
|
+
//# sourceMappingURL=index-8t841rbx.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
exports_src
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-0nvgrgam.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-54s7pk0d.js";
|
|
8
8
|
|
|
9
9
|
// src/runtime-plugin.ts
|
|
10
10
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -418,4 +418,4 @@ function createRuntimePlugin(input = {}) {
|
|
|
418
418
|
export { isCoreRuntimeModuleSpecifier, runtimeModuleIdForSpecifier, createRuntimePlugin };
|
|
419
419
|
|
|
420
420
|
//# debugId=4F4ECA92927B118964756E2164756E21
|
|
421
|
-
//# sourceMappingURL=index-
|
|
421
|
+
//# sourceMappingURL=index-r49y8kdq.js.map
|
package/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
resolveCoreSlot,
|
|
73
73
|
setupAudio,
|
|
74
74
|
vstyles
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-0nvgrgam.js";
|
|
76
76
|
import {
|
|
77
77
|
ASCIIFontSelectionHelper,
|
|
78
78
|
ATTRIBUTE_BASE_BITS,
|
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
white,
|
|
248
248
|
wrapWithDelegates,
|
|
249
249
|
yellow
|
|
250
|
-
} from "./index-
|
|
250
|
+
} from "./index-54s7pk0d.js";
|
|
251
251
|
export {
|
|
252
252
|
yellow,
|
|
253
253
|
wrapWithDelegates,
|
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.3.
|
|
7
|
+
"version": "0.3.4",
|
|
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": {
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"web-tree-sitter": "0.25.10"
|
|
70
70
|
},
|
|
71
71
|
"optionalDependencies": {
|
|
72
|
-
"@opentui/core-darwin-x64": "0.3.
|
|
73
|
-
"@opentui/core-darwin-arm64": "0.3.
|
|
74
|
-
"@opentui/core-linux-x64": "0.3.
|
|
75
|
-
"@opentui/core-linux-arm64": "0.3.
|
|
76
|
-
"@opentui/core-win32-x64": "0.3.
|
|
77
|
-
"@opentui/core-win32-arm64": "0.3.
|
|
78
|
-
"@opentui/core-linux-x64-musl": "0.3.
|
|
79
|
-
"@opentui/core-linux-arm64-musl": "0.3.
|
|
72
|
+
"@opentui/core-darwin-x64": "0.3.4",
|
|
73
|
+
"@opentui/core-darwin-arm64": "0.3.4",
|
|
74
|
+
"@opentui/core-linux-x64": "0.3.4",
|
|
75
|
+
"@opentui/core-linux-arm64": "0.3.4",
|
|
76
|
+
"@opentui/core-win32-x64": "0.3.4",
|
|
77
|
+
"@opentui/core-win32-arm64": "0.3.4",
|
|
78
|
+
"@opentui/core-linux-x64-musl": "0.3.4",
|
|
79
|
+
"@opentui/core-linux-arm64-musl": "0.3.4"
|
|
80
80
|
}
|
|
81
81
|
}
|
package/renderables/Code.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type LineInfo, type RenderContext } from "../types.js";
|
|
2
|
+
import { StyledText } from "../lib/styled-text.js";
|
|
2
3
|
import { SyntaxStyle } from "../syntax-style.js";
|
|
3
4
|
import { TreeSitterClient } from "../lib/tree-sitter/index.js";
|
|
4
5
|
import { TextBufferRenderable, type TextBufferOptions } from "./TextBufferRenderable.js";
|
|
@@ -23,6 +24,7 @@ export interface CodeOptions extends TextBufferOptions {
|
|
|
23
24
|
conceal?: boolean;
|
|
24
25
|
drawUnstyledText?: boolean;
|
|
25
26
|
streaming?: boolean;
|
|
27
|
+
initialStyledText?: StyledText;
|
|
26
28
|
baseHighlight?: string;
|
|
27
29
|
onHighlight?: OnHighlightCallback;
|
|
28
30
|
onChunks?: OnChunksCallback;
|
|
@@ -39,6 +41,7 @@ export declare class CodeRenderable extends TextBufferRenderable {
|
|
|
39
41
|
private _drawUnstyledText;
|
|
40
42
|
private _shouldRenderTextBuffer;
|
|
41
43
|
private _streaming;
|
|
44
|
+
private _initialStyledText?;
|
|
42
45
|
private _hadInitialContent;
|
|
43
46
|
private _lastHighlights;
|
|
44
47
|
private _baseHighlight?;
|
|
@@ -70,6 +73,7 @@ export declare class CodeRenderable extends TextBufferRenderable {
|
|
|
70
73
|
get drawUnstyledText(): boolean;
|
|
71
74
|
set drawUnstyledText(value: boolean);
|
|
72
75
|
get streaming(): boolean;
|
|
76
|
+
set initialStyledText(value: StyledText | undefined);
|
|
73
77
|
set streaming(value: boolean);
|
|
74
78
|
get treeSitterClient(): TreeSitterClient;
|
|
75
79
|
set treeSitterClient(value: TreeSitterClient);
|
|
@@ -179,6 +179,7 @@ export declare class MarkdownRenderable extends Renderable {
|
|
|
179
179
|
private getStyle;
|
|
180
180
|
private createChunk;
|
|
181
181
|
private createDefaultChunk;
|
|
182
|
+
private createInitialStyledText;
|
|
182
183
|
private renderInlineContent;
|
|
183
184
|
private renderInlineToken;
|
|
184
185
|
private renderInlineTokenWithStyle;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ensureRuntimePluginSupport
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-8t841rbx.js";
|
|
5
5
|
import {
|
|
6
6
|
createRuntimePlugin,
|
|
7
7
|
runtimeModuleIdForSpecifier
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-r49y8kdq.js";
|
|
9
|
+
import"./index-0nvgrgam.js";
|
|
10
|
+
import"./index-54s7pk0d.js";
|
|
11
11
|
export {
|
|
12
12
|
runtimeModuleIdForSpecifier,
|
|
13
13
|
ensureRuntimePluginSupport,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ensureRuntimePluginSupport
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-8t841rbx.js";
|
|
5
5
|
import {
|
|
6
6
|
createRuntimePlugin,
|
|
7
7
|
runtimeModuleIdForSpecifier
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
8
|
+
} from "./index-r49y8kdq.js";
|
|
9
|
+
import"./index-0nvgrgam.js";
|
|
10
|
+
import"./index-54s7pk0d.js";
|
|
11
11
|
// src/runtime-plugin-support.ts
|
|
12
12
|
ensureRuntimePluginSupport();
|
|
13
13
|
export {
|
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-r49y8kdq.js";
|
|
7
|
+
import"./index-0nvgrgam.js";
|
|
8
|
+
import"./index-54s7pk0d.js";
|
|
9
9
|
export {
|
|
10
10
|
runtimeModuleIdForSpecifier,
|
|
11
11
|
isCoreRuntimeModuleSpecifier,
|
package/testing.js
CHANGED
|
File without changes
|
|
File without changes
|