@opentui/core 0.5.10 → 0.5.11

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.
Files changed (40) hide show
  1. package/README.md +2 -0
  2. package/audio.d.ts +6 -1
  3. package/{chunk-bun-9gqvxy8c.js → chunk-bun-37s3zwb6.js} +1181 -1036
  4. package/{chunk-bun-9gqvxy8c.js.map → chunk-bun-37s3zwb6.js.map} +7 -7
  5. package/{chunk-bun-bb3k0yt8.js → chunk-bun-bwjmgnxw.js} +647 -582
  6. package/chunk-bun-bwjmgnxw.js.map +32 -0
  7. package/{chunk-node-6bg8r2m7.js → chunk-node-54dhb2fr.js} +647 -582
  8. package/chunk-node-54dhb2fr.js.map +32 -0
  9. package/{chunk-node-f647ts9q.js → chunk-node-70eg2nhg.js} +1188 -1040
  10. package/{chunk-node-f647ts9q.js.map → chunk-node-70eg2nhg.js.map} +7 -7
  11. package/index.bun.js +1571 -1377
  12. package/index.bun.js.map +7 -7
  13. package/index.node.js +1571 -1377
  14. package/index.node.js.map +7 -7
  15. package/lib/detect-links.d.ts +5 -0
  16. package/lib/tree-sitter/update-assets.js +4 -4
  17. package/lib/tree-sitter/update-assets.js.map +2 -2
  18. package/lib/tree-sitter-styled-text.d.ts +4 -0
  19. package/package.json +13 -9
  20. package/parser.worker.js +7 -10
  21. package/parser.worker.js.map +2 -2
  22. package/renderables/Code.d.ts +6 -0
  23. package/renderables/Diff.d.ts +1 -2
  24. package/renderables/Markdown.d.ts +6 -0
  25. package/renderables/TextBufferRenderable.d.ts +2 -0
  26. package/renderer.d.ts +2 -0
  27. package/testing.bun.js +23 -23
  28. package/testing.bun.js.map +2 -2
  29. package/testing.js +23 -23
  30. package/testing.js.map +2 -2
  31. package/text-buffer-view.d.ts +1 -0
  32. package/types.d.ts +1 -0
  33. package/yoga.bun.js +187 -187
  34. package/yoga.bun.js.map +1 -1
  35. package/yoga.js +187 -187
  36. package/yoga.js.map +1 -1
  37. package/zig-structs.d.ts +8 -1
  38. package/zig.d.ts +4 -0
  39. package/chunk-bun-bb3k0yt8.js.map +0 -32
  40. package/chunk-node-6bg8r2m7.js.map +0 -32
package/README.md CHANGED
@@ -52,6 +52,8 @@ Then build your first app with the [quickstart](https://opentui.com/docs/getting
52
52
  `@opentui/core` runs on Bun 1.3.0 or later, or on Node.js 26.4.0 or later with ECMAScript modules (ESM) and
53
53
  `--experimental-ffi`.
54
54
 
55
+ Use Bun 1.4.0 or later on native Windows arm64.
56
+
55
57
  The native ABI and the generated platform packages, such as `@opentui/core-linux-x64`, are internal distribution
56
58
  surfaces, not application APIs.
57
59
 
package/audio.d.ts CHANGED
@@ -31,7 +31,7 @@ export interface AudioPlayOptions {
31
31
  groupId?: number;
32
32
  }
33
33
  export type AudioStreamBody = ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>;
34
- export type AudioStreamFormat = "mp3" | "flac";
34
+ export type AudioStreamFormat = "mp3" | "flac" | "pcm";
35
35
  export interface AudioStreamContentTypeContext {
36
36
  readonly format: AudioStreamFormat;
37
37
  readonly contentType: string | null;
@@ -75,6 +75,10 @@ export interface AudioStreamReconnectOptions {
75
75
  }
76
76
  export interface AudioStreamOptions {
77
77
  format?: AudioStreamFormat;
78
+ /** Required for raw PCM. Input consists of interleaved little-endian float32 samples. */
79
+ sampleFormat?: "f32le";
80
+ sampleRate?: number;
81
+ channels?: 1 | 2;
78
82
  volume?: number;
79
83
  pan?: number;
80
84
  groupId?: number;
@@ -257,6 +261,7 @@ export declare class AudioStream<M = AudioStreamMetadata> extends EventEmitter<A
257
261
  private readonly lifecycleController;
258
262
  private nativeStreamId;
259
263
  private nativeStats;
264
+ private readyGeneration;
260
265
  private activeAttempt;
261
266
  private pendingCleanup;
262
267
  private reconnectAttempts;