@opentui/core 0.6.0 → 0.6.2

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.
@@ -307,6 +307,14 @@ export declare const nativeSymbols: {
307
307
  readonly args: readonly ["ptr", "buffer", "u32", "u32", "u32", "u32", "u32", "ptr", "u32", "buffer"];
308
308
  readonly returns: "i32";
309
309
  };
310
+ readonly ot_edit_buffer_measure_text: {
311
+ readonly args: readonly ["ptr", "buffer", "ptr", "u32", "buffer"];
312
+ readonly returns: "i32";
313
+ };
314
+ readonly ot_edit_measure_text: {
315
+ readonly args: readonly ["ptr", "ptr", "u32", "u32", "u32", "buffer"];
316
+ readonly returns: "i32";
317
+ };
310
318
  readonly ot_edit_buffer_set_defaults: {
311
319
  readonly args: readonly ["ptr", "buffer", "u32", "buffer"];
312
320
  readonly returns: "i32";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.node.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.6.0",
7
+ "version": "0.6.2",
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": {
@@ -72,20 +72,19 @@
72
72
  "bun-ffi-structs": "0.3.1",
73
73
  "diff": "9.0.0",
74
74
  "marked": "17.0.1",
75
- "string-width": "7.2.0",
76
- "strip-ansi": "7.1.2"
75
+ "string-width": "7.2.0"
77
76
  },
78
77
  "peerDependencies": {
79
78
  "web-tree-sitter": "0.25.10"
80
79
  },
81
80
  "optionalDependencies": {
82
- "@opentui/core-darwin-x64": "0.6.0",
83
- "@opentui/core-darwin-arm64": "0.6.0",
84
- "@opentui/core-linux-x64": "0.6.0",
85
- "@opentui/core-linux-arm64": "0.6.0",
86
- "@opentui/core-win32-x64": "0.6.0",
87
- "@opentui/core-win32-arm64": "0.6.0",
88
- "@opentui/core-linux-x64-musl": "0.6.0",
89
- "@opentui/core-linux-arm64-musl": "0.6.0"
81
+ "@opentui/core-darwin-x64": "0.6.2",
82
+ "@opentui/core-darwin-arm64": "0.6.2",
83
+ "@opentui/core-linux-x64": "0.6.2",
84
+ "@opentui/core-linux-arm64": "0.6.2",
85
+ "@opentui/core-win32-x64": "0.6.2",
86
+ "@opentui/core-win32-arm64": "0.6.2",
87
+ "@opentui/core-linux-x64-musl": "0.6.2",
88
+ "@opentui/core-linux-arm64-musl": "0.6.2"
90
89
  }
91
90
  }
@@ -12,7 +12,6 @@ export interface ResolveBundledFilePathOptions {
12
12
  }
13
13
  export declare const sleep: (msOrDate: number | Date) => Promise<void>;
14
14
  export declare const stringWidth: (text: string) => number;
15
- export declare const stripANSI: (text: string) => string;
16
15
  export declare const writeFile: (destination: string | URL, data: string | ArrayBufferView, options?: WriteFileOptions) => Promise<number>;
17
16
  export declare function resolveBundledFilePath(key: string, loadBundledFile: () => Promise<FileImportModule>, fallbackPath: FilePathFallback, metaUrl: string, options?: ResolveBundledFilePathOptions): Promise<string>;
18
17
  export {};
package/testing.bun.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  TreeSitterClient2,
5
5
  ANSI,
6
6
  CliRenderer2
7
- } from "./chunk-bun-s01c2jyn.js";
8
- import"./chunk-bun-tsc14mt5.js";
7
+ } from "./chunk-bun-ehstr7d7.js";
8
+ import"./chunk-bun-b3p27aka.js";
9
9
 
10
10
  // src/testing/mock-keys.ts
11
11
  import { Buffer as Buffer2 } from "buffer";
package/testing.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  TreeSitterClient2,
4
4
  ANSI,
5
5
  CliRenderer2
6
- } from "./chunk-node-hjr2tm60.js";
7
- import"./chunk-node-df90qrqc.js";
6
+ } from "./chunk-node-fs50qdd7.js";
7
+ import"./chunk-node-jt82vcf9.js";
8
8
 
9
9
  // src/testing/mock-keys.ts
10
10
  import { Buffer as Buffer2 } from "node:buffer";
package/yoga.bun.js CHANGED
@@ -95,7 +95,7 @@ import {
95
95
  Config2,
96
96
  Node2,
97
97
  yoga_default
98
- } from "./chunk-bun-tsc14mt5.js";
98
+ } from "./chunk-bun-b3p27aka.js";
99
99
  export {
100
100
  ALIGN_AUTO2 as ALIGN_AUTO,
101
101
  ALIGN_BASELINE2 as ALIGN_BASELINE,
package/yoga.js CHANGED
@@ -94,7 +94,7 @@ import {
94
94
  Config2,
95
95
  Node2,
96
96
  yoga_default
97
- } from "./chunk-node-df90qrqc.js";
97
+ } from "./chunk-node-jt82vcf9.js";
98
98
  export {
99
99
  ALIGN_AUTO2 as ALIGN_AUTO,
100
100
  ALIGN_BASELINE2 as ALIGN_BASELINE,
package/zig.d.ts CHANGED
@@ -961,6 +961,7 @@ export declare class FFIRenderLib {
961
961
  private clipboardServices;
962
962
  private clipboardOperations;
963
963
  private audioEngines;
964
+ private editMeasureContext?;
964
965
  private readonly invalidStandaloneHandle;
965
966
  readonly encoder: TextEncoder;
966
967
  private readonly emptyBytes;
@@ -1081,6 +1082,8 @@ export declare class FFIRenderLib {
1081
1082
  contextEditBufferHistory(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, redo: boolean): string | null;
1082
1083
  contextEditBufferGetPosition(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, query: NativeEditPositionQuery, a?: number, b?: number): LogicalCursor | null;
1083
1084
  contextEditBufferGetRange(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, byCoords: boolean, startRow: number, startCol: number, endRow: number, endCol: number): string;
1085
+ contextEditBufferMeasureText(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, bytes: Uint8Array): number;
1086
+ editMeasureText(bytes: Uint8Array, widthMethod: WidthMethod, tabWidth: number): number;
1084
1087
  contextEditBufferSetDefaults(context: NativeContextHandle, editBuffer: ContextEditBufferHandle, mask: NativeEditorStyleMask, style: NativeEditorStyle): void;
1085
1088
  contextSyntaxStyleRegister(context: NativeContextHandle, style: ContextSyntaxStyleHandle, name: string, definition: NativeEditorStyle): number;
1086
1089
  contextSyntaxStyleResolveByName(context: NativeContextHandle, style: ContextSyntaxStyleHandle, name: string): number | null;