@opentui/core 0.3.2 → 0.3.3

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.
@@ -4,6 +4,7 @@ export type { GrowthPolicy, NativeSpanFeedOptions, NativeSpanFeedStats } from ".
4
4
  export type DataHandler = (data: Uint8Array) => void | Promise<void>;
5
5
  /**
6
6
  * Zero-copy wrapper over Zig memory; not a full stream interface.
7
+ * Chunk and state typed-array views are borrowed and invalid after destroy.
7
8
  */
8
9
  export declare class NativeSpanFeed {
9
10
  static create(options?: NativeSpanFeedOptions): NativeSpanFeed;
package/buffer.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RGBA } from "./lib/index.js";
2
- import { type RenderLib } from "./zig.js";
2
+ import { type OptimizedBufferHandle, type RenderLib } from "./zig.js";
3
3
  import { type Pointer, type PointerInput } from "./platform/ffi.js";
4
4
  import { type BorderStyle, type BorderSides } from "./lib/index.js";
5
5
  import { TargetChannel, type WidthMethod, type CapturedLine } from "./types.js";
@@ -16,7 +16,7 @@ export declare class OptimizedBuffer {
16
16
  respectAlpha: boolean;
17
17
  private _rawBuffers;
18
18
  private _destroyed;
19
- get ptr(): Pointer;
19
+ get ptr(): OptimizedBufferHandle;
20
20
  private guard;
21
21
  private ensureRawBufferViews;
22
22
  get buffers(): {
@@ -25,7 +25,7 @@ export declare class OptimizedBuffer {
25
25
  bg: Uint16Array;
26
26
  attributes: Uint32Array;
27
27
  };
28
- constructor(lib: RenderLib, ptr: Pointer, width: number, height: number, options: {
28
+ constructor(lib: RenderLib, ptr: OptimizedBufferHandle, width: number, height: number, options: {
29
29
  respectAlpha?: boolean;
30
30
  id?: string;
31
31
  widthMethod?: WidthMethod;
@@ -74,6 +74,7 @@ export declare class OptimizedBuffer {
74
74
  backgroundColor: RGBA;
75
75
  shouldFill?: boolean;
76
76
  title?: string;
77
+ titleColor?: RGBA;
77
78
  titleAlignment?: "left" | "center" | "right";
78
79
  bottomTitle?: string;
79
80
  bottomTitleAlignment?: "left" | "center" | "right";
package/edit-buffer.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { type LogicalCursor, type RenderLib } from "./zig.js";
2
- import { type Pointer } from "./platform/ffi.js";
1
+ import { type EditBufferHandle, type LogicalCursor, type RenderLib } from "./zig.js";
3
2
  import { type WidthMethod, type Highlight } from "./types.js";
4
3
  import { RGBA } from "./lib/RGBA.js";
5
4
  import { EventEmitter } from "events";
@@ -21,11 +20,11 @@ export declare class EditBuffer extends EventEmitter {
21
20
  private _singleTextBytes;
22
21
  private _singleTextMemId;
23
22
  private _syntaxStyle?;
24
- constructor(lib: RenderLib, ptr: Pointer);
23
+ constructor(lib: RenderLib, ptr: EditBufferHandle);
25
24
  static create(widthMethod: WidthMethod): EditBuffer;
26
25
  private static subscribeToNativeEvents;
27
26
  private guard;
28
- get ptr(): Pointer;
27
+ get ptr(): EditBufferHandle;
29
28
  /**
30
29
  * Set text and completely reset the buffer state (clears history, resets add_buffer).
31
30
  * Use this for initial text setting or when you want a clean slate.
package/editor-view.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { RGBA } from "./lib/RGBA.js";
2
- import { type RenderLib, type VisualCursor, type LineInfo } from "./zig.js";
3
- import { type Pointer } from "./platform/ffi.js";
2
+ import { type EditorViewHandle, type RenderLib, type VisualCursor, type LineInfo } from "./zig.js";
4
3
  import type { EditBuffer } from "./edit-buffer.js";
5
4
  export interface Viewport {
6
5
  offsetY: number;
@@ -16,10 +15,10 @@ export declare class EditorView {
16
15
  private _destroyed;
17
16
  private _extmarksController?;
18
17
  private _textBufferViewPtr?;
19
- constructor(lib: RenderLib, ptr: Pointer, editBuffer: EditBuffer);
18
+ constructor(lib: RenderLib, ptr: EditorViewHandle, editBuffer: EditBuffer);
20
19
  static create(editBuffer: EditBuffer, viewportWidth: number, viewportHeight: number): EditorView;
21
20
  private guard;
22
- get ptr(): Pointer;
21
+ get ptr(): EditorViewHandle;
23
22
  setViewportSize(width: number, height: number): void;
24
23
  setViewport(x: number, y: number, width: number, height: number, moveCursor?: boolean): void;
25
24
  getViewport(): Viewport;
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createRuntimePlugin
4
- } from "./index-m0bc6bw1.js";
4
+ } from "./index-mbck6rbg.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-vdnak5x1.js.map
44
+ //# sourceMappingURL=index-jh82sd41.js.map
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_src
4
- } from "./index-3mx8q5t1.js";
4
+ } from "./index-qndc8vq8.js";
5
5
  import {
6
6
  __require
7
- } from "./index-218h9p3f.js";
7
+ } from "./index-mn090kzf.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-m0bc6bw1.js.map
421
+ //# sourceMappingURL=index-mbck6rbg.js.map