@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createRuntimePlugin
4
- } from "./index-mbck6rbg.js";
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-jh82sd41.js.map
44
+ //# sourceMappingURL=index-8t841rbx.js.map
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_src
4
- } from "./index-qndc8vq8.js";
4
+ } from "./index-0nvgrgam.js";
5
5
  import {
6
6
  __require
7
- } from "./index-mn090kzf.js";
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-mbck6rbg.js.map
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-qndc8vq8.js";
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-mn090kzf.js";
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.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.3",
73
- "@opentui/core-darwin-arm64": "0.3.3",
74
- "@opentui/core-linux-x64": "0.3.3",
75
- "@opentui/core-linux-arm64": "0.3.3",
76
- "@opentui/core-win32-x64": "0.3.3",
77
- "@opentui/core-win32-arm64": "0.3.3",
78
- "@opentui/core-linux-x64-musl": "0.3.3",
79
- "@opentui/core-linux-arm64-musl": "0.3.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
  }
@@ -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-jh82sd41.js";
4
+ } from "./index-8t841rbx.js";
5
5
  import {
6
6
  createRuntimePlugin,
7
7
  runtimeModuleIdForSpecifier
8
- } from "./index-mbck6rbg.js";
9
- import"./index-qndc8vq8.js";
10
- import"./index-mn090kzf.js";
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-jh82sd41.js";
4
+ } from "./index-8t841rbx.js";
5
5
  import {
6
6
  createRuntimePlugin,
7
7
  runtimeModuleIdForSpecifier
8
- } from "./index-mbck6rbg.js";
9
- import"./index-qndc8vq8.js";
10
- import"./index-mn090kzf.js";
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-mbck6rbg.js";
7
- import"./index-qndc8vq8.js";
8
- import"./index-mn090kzf.js";
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
@@ -3,7 +3,7 @@ import {
3
3
  ANSI,
4
4
  CliRenderer,
5
5
  TreeSitterClient
6
- } from "./index-mn090kzf.js";
6
+ } from "./index-54s7pk0d.js";
7
7
 
8
8
  // src/testing/mock-keys.ts
9
9
  import { Buffer as Buffer2 } from "buffer";