@opentui/core 0.1.79 → 0.1.80

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/3d.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  __export,
7
7
  __require,
8
8
  __toESM
9
- } from "./index-zrvzvh6r.js";
9
+ } from "./index-vnvba6q9.js";
10
10
 
11
11
  // ../../node_modules/.bun/omggif@1.0.10/node_modules/omggif/omggif.js
12
12
  var require_omggif = __commonJS((exports) => {
@@ -0,0 +1,41 @@
1
+ import { type Pointer } from "bun:ffi";
2
+ import type { NativeSpanFeedOptions } from "./zig-structs";
3
+ export type { GrowthPolicy, NativeSpanFeedOptions, NativeSpanFeedStats } from "./zig-structs";
4
+ export type DataHandler = (data: Uint8Array) => void | Promise<void>;
5
+ /**
6
+ * Zero-copy wrapper over Zig memory; not a full stream interface.
7
+ */
8
+ export declare class NativeSpanFeed {
9
+ static create(options?: NativeSpanFeedOptions): NativeSpanFeed;
10
+ static attach(streamPtr: bigint | number, _options?: NativeSpanFeedOptions): NativeSpanFeed;
11
+ readonly streamPtr: Pointer;
12
+ private readonly lib;
13
+ private readonly eventHandler;
14
+ private chunkMap;
15
+ private chunkSizes;
16
+ private dataHandlers;
17
+ private errorHandlers;
18
+ private drainBuffer;
19
+ private stateBuffer;
20
+ private closed;
21
+ private destroyed;
22
+ private draining;
23
+ private pendingDataAvailable;
24
+ private pendingClose;
25
+ private closing;
26
+ private pendingAsyncHandlers;
27
+ private inCallback;
28
+ private closeQueued;
29
+ private constructor();
30
+ private ensureDrainBuffer;
31
+ onData(handler: DataHandler): () => void;
32
+ onError(handler: (code: number) => void): () => void;
33
+ close(): void;
34
+ private processPendingClose;
35
+ private performClose;
36
+ private finalizeDestroy;
37
+ private handleEvent;
38
+ private decrementRefcount;
39
+ private drainOnce;
40
+ drainAll(): void;
41
+ }
package/README.md CHANGED
@@ -42,6 +42,10 @@ bun run bench:native
42
42
 
43
43
  See [src/zig/bench.zig](src/zig/bench.zig) for available options like `--filter` and `--mem`.
44
44
 
45
+ NativeSpanFeed TypeScript benchmarks:
46
+
47
+ - [src/benchmark/native-span-feed-benchmark.md](src/benchmark/native-span-feed-benchmark.md)
48
+
45
49
  ## CLI Renderer
46
50
 
47
51
  ### Renderables