@opentui/core 0.0.0-20260604-5b641b77 → 0.0.0-20260604-29fa4a8a

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 (55) hide show
  1. package/NativeSpanFeed.d.ts +4 -0
  2. package/Renderable.d.ts +1 -7
  3. package/buffer.d.ts +0 -1
  4. package/index-52jnbjwg.js +25742 -0
  5. package/index-52jnbjwg.js.map +84 -0
  6. package/index.d.ts +1 -1
  7. package/index.js +11130 -119
  8. package/index.js.map +29 -3
  9. package/lib/selection.d.ts +2 -1
  10. package/lib/singleton.d.ts +1 -0
  11. package/lib/tree-sitter/client.d.ts +8 -1
  12. package/lib/tree-sitter/index.d.ts +1 -0
  13. package/lib/tree-sitter/types.d.ts +104 -1
  14. package/lib/tree-sitter/update-assets.js +8 -6
  15. package/lib/tree-sitter/update-assets.js.map +3 -3
  16. package/lib/yoga.options.d.ts +1 -1
  17. package/package.json +25 -37
  18. package/parser.worker.js +396 -78
  19. package/parser.worker.js.map +8 -7
  20. package/platform/ffi.d.ts +6 -3
  21. package/platform/test.d.ts +12 -0
  22. package/platform/worker.d.ts +26 -4
  23. package/renderables/Box.d.ts +0 -4
  24. package/renderables/Code.d.ts +1 -12
  25. package/renderables/Diff.d.ts +0 -5
  26. package/renderables/Markdown.d.ts +1 -11
  27. package/runtime-plugin-support-configure.js +36 -19
  28. package/runtime-plugin-support-configure.js.map +1 -9
  29. package/runtime-plugin-support-configure.node.js +15 -0
  30. package/runtime-plugin-support.js +4 -20
  31. package/runtime-plugin-support.js.map +1 -10
  32. package/runtime-plugin-support.node.js +15 -0
  33. package/runtime-plugin.js +473 -17
  34. package/runtime-plugin.js.map +1 -9
  35. package/runtime-plugin.node.js +15 -0
  36. package/testing/bun-test-node.d.ts +87 -0
  37. package/testing/mock-tree-sitter-client.d.ts +4 -0
  38. package/testing.js +16 -12
  39. package/testing.js.map +3 -3
  40. package/zig.d.ts +2 -61
  41. package/index-3h2m3m95.js +0 -15343
  42. package/index-3h2m3m95.js.map +0 -57
  43. package/index-4mkbecg2.js +0 -11671
  44. package/index-4mkbecg2.js.map +0 -35
  45. package/index-ax4q52m8.js +0 -9951
  46. package/index-ax4q52m8.js.map +0 -33
  47. package/index-p2qd2k4t.js +0 -421
  48. package/index-p2qd2k4t.js.map +0 -10
  49. package/index-ypxh3d9y.js +0 -44
  50. package/index-ypxh3d9y.js.map +0 -10
  51. package/tests/yoga-upstream/tools/MeasureCounter.d.ts +0 -16
  52. package/tests/yoga-upstream/tools/utils.d.ts +0 -11
  53. package/yoga.d.ts +0 -439
  54. package/yoga.js +0 -194
  55. package/yoga.js.map +0 -9
@@ -27,6 +27,8 @@ export declare class NativeSpanFeed {
27
27
  private inCallback;
28
28
  private closeQueued;
29
29
  private idleResolvers;
30
+ private pendingHandlerError;
31
+ private pendingHandlerErrorQueued;
30
32
  private constructor();
31
33
  private ensureDrainBuffer;
32
34
  onData(handler: DataHandler): () => void;
@@ -42,6 +44,8 @@ export declare class NativeSpanFeed {
42
44
  idle(): Promise<void>;
43
45
  private handleEvent;
44
46
  private decrementRefcount;
47
+ private queuePendingHandlerError;
48
+ private throwPendingHandlerError;
45
49
  private drainOnce;
46
50
  drainAll(): void;
47
51
  }
package/Renderable.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "events";
2
- import { type Node as YogaNode } from "./yoga.js";
2
+ import { type Node as YogaNode } from "yoga-layout";
3
3
  import { OptimizedBuffer } from "./buffer.js";
4
4
  import type { KeyEvent, PasteEvent } from "./lib/KeyHandler.js";
5
5
  import type { Selection } from "./lib/selection.js";
@@ -275,7 +275,6 @@ export declare abstract class Renderable extends BaseRenderable {
275
275
  render(buffer: OptimizedBuffer, deltaTime: number): void;
276
276
  protected _hasVisibleChildFilter(): boolean;
277
277
  protected _getVisibleChildren(): number[];
278
- canReuseRenderCommandList(): boolean;
279
278
  protected onUpdate(deltaTime: number): void;
280
279
  protected getScissorRect(): {
281
280
  x: number;
@@ -337,15 +336,10 @@ interface RenderCommandPopOpacity extends RenderCommandBase {
337
336
  export type RenderCommand = RenderCommandPushScissorRect | RenderCommandPopScissorRect | RenderCommandRender | RenderCommandPushOpacity | RenderCommandPopOpacity;
338
337
  export declare class RootRenderable extends Renderable {
339
338
  private renderList;
340
- private appliedLayoutGeneration;
341
- private appliedRenderListRevision;
342
- private renderListReusable;
343
339
  constructor(ctx: RenderContext);
344
340
  render(buffer: OptimizedBuffer, deltaTime: number): void;
345
341
  protected propagateLiveCount(delta: number): void;
346
342
  calculateLayout(): void;
347
- private syncExternalLayoutGeneration;
348
- private canReuseCurrentRenderList;
349
343
  resize(width: number, height: number): void;
350
344
  }
351
345
  export {};
package/buffer.d.ts CHANGED
@@ -74,7 +74,6 @@ export declare class OptimizedBuffer {
74
74
  backgroundColor: RGBA;
75
75
  shouldFill?: boolean;
76
76
  title?: string;
77
- titleColor?: RGBA;
78
77
  titleAlignment?: "left" | "center" | "right";
79
78
  bottomTitle?: string;
80
79
  bottomTitleAlignment?: "left" | "center" | "right";