@opentui/core 0.1.47 → 0.1.48

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.js CHANGED
@@ -136,7 +136,7 @@ import {
136
136
  white,
137
137
  wrapWithDelegates,
138
138
  yellow
139
- } from "./index-f5t80vp1.js";
139
+ } from "./index-rkpj2eng.js";
140
140
  // src/text-buffer-view.ts
141
141
  class TextBufferView {
142
142
  lib;
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.47",
7
+ "version": "0.1.48",
8
8
  "description": "OpenTUI is a TypeScript library for building terminal user interfaces (TUIs)",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -55,11 +55,11 @@
55
55
  "bun-webgpu": "0.1.4",
56
56
  "planck": "^1.4.2",
57
57
  "three": "0.177.0",
58
- "@opentui/core-darwin-x64": "0.1.47",
59
- "@opentui/core-darwin-arm64": "0.1.47",
60
- "@opentui/core-linux-x64": "0.1.47",
61
- "@opentui/core-linux-arm64": "0.1.47",
62
- "@opentui/core-win32-x64": "0.1.47",
63
- "@opentui/core-win32-arm64": "0.1.47"
58
+ "@opentui/core-darwin-x64": "0.1.48",
59
+ "@opentui/core-darwin-arm64": "0.1.48",
60
+ "@opentui/core-linux-x64": "0.1.48",
61
+ "@opentui/core-linux-arm64": "0.1.48",
62
+ "@opentui/core-win32-x64": "0.1.48",
63
+ "@opentui/core-win32-arm64": "0.1.48"
64
64
  }
65
65
  }
package/testing.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  CliRenderer,
5
5
  TreeSitterClient,
6
6
  resolveRenderLib
7
- } from "./index-f5t80vp1.js";
7
+ } from "./index-rkpj2eng.js";
8
8
 
9
9
  // src/testing/test-renderer.ts
10
10
  import { Readable } from "stream";
package/zig-structs.d.ts CHANGED
@@ -28,3 +28,4 @@ export declare const TerminalCapabilitiesStruct: import("bun-ffi-structs").Defin
28
28
  }], readonly ["term_version", "char*"], readonly ["term_version_len", "u64", {
29
29
  readonly lengthOf: "term_version";
30
30
  }], readonly ["term_from_xtversion", "bool_u8"]], {}>;
31
+ export declare const EncodedCharStruct: import("bun-ffi-structs").DefineStructReturnType<[readonly ["width", "u8"], readonly ["char", "u32"]], {}>;
package/zig.d.ts CHANGED
@@ -261,6 +261,21 @@ export interface RenderLib {
261
261
  syntaxStyleGetStyleCount: (style: Pointer) => number;
262
262
  getTerminalCapabilities: (renderer: Pointer) => any;
263
263
  processCapabilityResponse: (renderer: Pointer, response: string) => void;
264
+ encodeUnicode: (text: string, widthMethod: WidthMethod) => {
265
+ ptr: Pointer;
266
+ data: Array<{
267
+ width: number;
268
+ char: number;
269
+ }>;
270
+ } | null;
271
+ freeUnicode: (encoded: {
272
+ ptr: Pointer;
273
+ data: Array<{
274
+ width: number;
275
+ char: number;
276
+ }>;
277
+ }) => void;
278
+ bufferDrawChar: (buffer: Pointer, char: number, x: number, y: number, fg: RGBA, bg: RGBA, attributes?: number) => void;
264
279
  onNativeEvent: (name: string, handler: (data: ArrayBuffer) => void) => void;
265
280
  onceNativeEvent: (name: string, handler: (data: ArrayBuffer) => void) => void;
266
281
  offNativeEvent: (name: string, handler: (data: ArrayBuffer) => void) => void;