@opentui/core 0.1.87 → 0.1.89

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 (107) hide show
  1. package/3d/ThreeRenderable.d.ts +4 -4
  2. package/3d/WGPURenderer.d.ts +4 -4
  3. package/3d/animation/ExplodingSpriteEffect.d.ts +2 -2
  4. package/3d/animation/PhysicsExplodingSpriteEffect.d.ts +3 -3
  5. package/3d/animation/SpriteAnimator.d.ts +1 -1
  6. package/3d/animation/SpriteParticleGenerator.d.ts +1 -1
  7. package/3d/canvas.d.ts +2 -2
  8. package/3d/index.d.ts +12 -12
  9. package/3d/physics/PlanckPhysicsAdapter.d.ts +1 -1
  10. package/3d/physics/RapierPhysicsAdapter.d.ts +1 -1
  11. package/3d.d.ts +1 -1
  12. package/3d.js +1 -1
  13. package/3d.js.map +12 -12
  14. package/Renderable.d.ts +7 -7
  15. package/animation/Timeline.d.ts +1 -1
  16. package/buffer.d.ts +6 -4
  17. package/console.d.ts +7 -4
  18. package/edit-buffer.d.ts +4 -4
  19. package/editor-view.d.ts +3 -3
  20. package/{index-0wbvecnk.js → index-e89anq5x.js} +864 -175
  21. package/index-e89anq5x.js.map +64 -0
  22. package/index-rs5zwr4j.js +12373 -0
  23. package/index-rs5zwr4j.js.map +43 -0
  24. package/index-tae5jwnc.js +188 -0
  25. package/index-tae5jwnc.js.map +10 -0
  26. package/index.d.ts +20 -17
  27. package/index.js +86 -11596
  28. package/index.js.map +3 -35
  29. package/lib/KeyHandler.d.ts +7 -4
  30. package/lib/ascii.font.d.ts +2 -2
  31. package/lib/border.d.ts +1 -1
  32. package/lib/clipboard.d.ts +1 -1
  33. package/lib/clock.d.ts +4 -0
  34. package/lib/extmarks-history.d.ts +1 -1
  35. package/lib/extmarks.d.ts +2 -2
  36. package/lib/hast-styled-text.d.ts +3 -3
  37. package/lib/index.d.ts +21 -20
  38. package/lib/objects-in-viewport.d.ts +1 -1
  39. package/lib/parse.keypress-kitty.d.ts +1 -1
  40. package/lib/paste.d.ts +7 -0
  41. package/lib/renderable.validations.d.ts +2 -2
  42. package/lib/selection.d.ts +2 -2
  43. package/lib/stdin-parser.d.ts +14 -2
  44. package/lib/styled-text.d.ts +2 -2
  45. package/lib/terminal-palette.d.ts +4 -2
  46. package/lib/tree-sitter/client.d.ts +1 -1
  47. package/lib/tree-sitter/index.d.ts +7 -7
  48. package/lib/tree-sitter/parsers-config.d.ts +15 -0
  49. package/lib/tree-sitter/resolve-ft.d.ts +3 -0
  50. package/lib/tree-sitter/types.d.ts +1 -0
  51. package/lib/tree-sitter-styled-text.d.ts +5 -5
  52. package/package.json +17 -7
  53. package/parser.worker.js +52 -18
  54. package/parser.worker.js.map +3 -3
  55. package/plugins/core-slot.d.ts +72 -0
  56. package/plugins/registry.d.ts +38 -0
  57. package/plugins/types.d.ts +34 -0
  58. package/post/effects.d.ts +147 -0
  59. package/post/filters.d.ts +28 -68
  60. package/post/matrices.d.ts +20 -0
  61. package/renderables/ASCIIFont.d.ts +6 -6
  62. package/renderables/Box.d.ts +5 -5
  63. package/renderables/Code.d.ts +10 -8
  64. package/renderables/Diff.d.ts +7 -7
  65. package/renderables/EditBufferRenderable.d.ts +8 -8
  66. package/renderables/FrameBuffer.d.ts +3 -3
  67. package/renderables/Input.d.ts +3 -3
  68. package/renderables/LineNumberRenderable.d.ts +4 -4
  69. package/renderables/Markdown.d.ts +17 -9
  70. package/renderables/ScrollBar.d.ts +6 -6
  71. package/renderables/ScrollBox.d.ts +9 -8
  72. package/renderables/Select.d.ts +7 -7
  73. package/renderables/Slider.d.ts +1 -1
  74. package/renderables/TabSelect.d.ts +6 -6
  75. package/renderables/Text.d.ts +7 -7
  76. package/renderables/TextBufferRenderable.d.ts +9 -9
  77. package/renderables/TextNode.d.ts +6 -6
  78. package/renderables/Textarea.d.ts +7 -7
  79. package/renderables/__tests__/renderable-test-utils.d.ts +8 -3
  80. package/renderables/composition/VRenderable.d.ts +3 -3
  81. package/renderables/composition/constructs.d.ts +14 -14
  82. package/renderables/composition/vnode.d.ts +2 -2
  83. package/renderables/index.d.ts +22 -22
  84. package/renderer.d.ts +28 -16
  85. package/runtime-plugin-support.d.ts +3 -0
  86. package/runtime-plugin-support.js +29 -0
  87. package/runtime-plugin-support.js.map +10 -0
  88. package/runtime-plugin.d.ts +11 -0
  89. package/runtime-plugin.js +16 -0
  90. package/runtime-plugin.js.map +9 -0
  91. package/syntax-style.d.ts +2 -2
  92. package/testing/manual-clock.d.ts +1 -0
  93. package/testing/mock-keys.d.ts +2 -1
  94. package/testing/mock-mouse.d.ts +1 -1
  95. package/testing/mock-tree-sitter-client.d.ts +2 -2
  96. package/testing/test-recorder.d.ts +1 -1
  97. package/testing/test-renderer.d.ts +4 -4
  98. package/testing.d.ts +6 -6
  99. package/testing.js +12 -7
  100. package/testing.js.map +7 -7
  101. package/text-buffer-view.d.ts +3 -3
  102. package/text-buffer.d.ts +5 -5
  103. package/types.d.ts +9 -4
  104. package/utils.d.ts +1 -1
  105. package/zig-structs.d.ts +1 -1
  106. package/zig.d.ts +7 -5
  107. package/index-0wbvecnk.js.map +0 -63
package/Renderable.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter } from "events";
2
2
  import { type Node as YogaNode } from "yoga-layout";
3
- import { OptimizedBuffer } from "./buffer";
4
- import type { KeyEvent, PasteEvent } from "./lib/KeyHandler";
5
- import type { Selection } from "./lib/selection";
6
- import { type AlignString, type FlexDirectionString, type JustifyString, type OverflowString, type PositionTypeString, type WrapString } from "./lib/yoga.options";
7
- import { type VNode } from "./renderables/composition/vnode";
8
- import type { MouseEvent } from "./renderer";
9
- import type { RenderContext } from "./types";
3
+ import { OptimizedBuffer } from "./buffer.js";
4
+ import type { KeyEvent, PasteEvent } from "./lib/KeyHandler.js";
5
+ import type { Selection } from "./lib/selection.js";
6
+ import { type AlignString, type FlexDirectionString, type JustifyString, type OverflowString, type PositionTypeString, type WrapString } from "./lib/yoga.options.js";
7
+ import { type VNode } from "./renderables/composition/vnode.js";
8
+ import type { MouseEvent } from "./renderer.js";
9
+ import type { RenderContext } from "./types.js";
10
10
  declare const BrandedRenderable: unique symbol;
11
11
  export declare enum LayoutEvents {
12
12
  LAYOUT_CHANGED = "layout-changed",
@@ -1,4 +1,4 @@
1
- import type { CliRenderer } from "../renderer";
1
+ import type { CliRenderer } from "../renderer.js";
2
2
  export interface TimelineOptions {
3
3
  duration?: number;
4
4
  loop?: boolean;
package/buffer.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { RGBA } from "./lib";
2
2
  import { type RenderLib } from "./zig";
3
3
  import { type Pointer } from "bun:ffi";
4
- import { type BorderStyle, type BorderSides } from "./lib";
5
- import { type WidthMethod, type CapturedLine } from "./types";
6
- import type { TextBufferView } from "./text-buffer-view";
7
- import type { EditorView } from "./editor-view";
4
+ import { type BorderStyle, type BorderSides } from "./lib/index.js";
5
+ import { TargetChannel, type WidthMethod, type CapturedLine } from "./types.js";
6
+ import type { TextBufferView } from "./text-buffer-view.js";
7
+ import type { EditorView } from "./editor-view.js";
8
8
  export declare class OptimizedBuffer {
9
9
  private static fbIdCounter;
10
10
  id: string;
@@ -50,6 +50,8 @@ export declare class OptimizedBuffer {
50
50
  fgColor?: RGBA;
51
51
  } | null): void;
52
52
  fillRect(x: number, y: number, width: number, height: number, bg: RGBA): void;
53
+ colorMatrix(matrix: Float32Array, cellMask: Float32Array, strength?: number, target?: TargetChannel): void;
54
+ colorMatrixUniform(matrix: Float32Array, strength?: number, target?: TargetChannel): void;
53
55
  drawFrameBuffer(destX: number, destY: number, frameBuffer: OptimizedBuffer, sourceX?: number, sourceY?: number, sourceWidth?: number, sourceHeight?: number): void;
54
56
  destroy(): void;
55
57
  drawTextBuffer(textBufferView: TextBufferView, x: number, y: number): void;
package/console.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { EventEmitter } from "events";
2
- import type { CliRenderer, ColorInput, MouseEvent } from ".";
3
- import { OptimizedBuffer } from "./buffer";
4
- import { Capture } from "./lib/output.capture";
5
- import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "./lib/keymapping";
2
+ import type { CliRenderer, ColorInput, MouseEvent } from "./index.js";
3
+ import { OptimizedBuffer } from "./buffer.js";
4
+ import { type Clock } from "./lib/clock.js";
5
+ import { Capture } from "./lib/output.capture.js";
6
+ import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "./lib/keymapping.js";
6
7
  export declare const capture: Capture;
7
8
  export declare enum ConsolePosition {
8
9
  TOP = "top",
@@ -34,6 +35,7 @@ export interface ConsoleOptions {
34
35
  keyAliasMap?: KeyAliasMap;
35
36
  selectionColor?: ColorInput;
36
37
  copyButtonColor?: ColorInput;
38
+ clock?: Clock;
37
39
  }
38
40
  export declare class TerminalConsole extends EventEmitter {
39
41
  private isVisible;
@@ -59,6 +61,7 @@ export declare class TerminalConsole extends EventEmitter {
59
61
  private _isDragging;
60
62
  private _copyButtonBounds;
61
63
  private _autoScrollInterval;
64
+ private readonly clock;
62
65
  private _keyBindingsMap;
63
66
  private _keyAliasMap;
64
67
  private _keyBindings;
package/edit-buffer.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { type LogicalCursor, type RenderLib } from "./zig";
1
+ import { type LogicalCursor, type RenderLib } from "./zig.js";
2
2
  import { type Pointer } from "bun:ffi";
3
- import { type WidthMethod, type Highlight } from "./types";
4
- import { RGBA } from "./lib/RGBA";
3
+ import { type WidthMethod, type Highlight } from "./types.js";
4
+ import { RGBA } from "./lib/RGBA.js";
5
5
  import { EventEmitter } from "events";
6
- import type { SyntaxStyle } from "./syntax-style";
6
+ import type { SyntaxStyle } from "./syntax-style.js";
7
7
  export type { LogicalCursor };
8
8
  /**
9
9
  * EditBuffer provides a text editing buffer with cursor management,
package/editor-view.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { RGBA } from "./lib/RGBA";
2
- import { type RenderLib, type VisualCursor, type LineInfo } from "./zig";
1
+ import { RGBA } from "./lib/RGBA.js";
2
+ import { type RenderLib, type VisualCursor, type LineInfo } from "./zig.js";
3
3
  import { type Pointer } from "bun:ffi";
4
- import type { EditBuffer } from "./edit-buffer";
4
+ import type { EditBuffer } from "./edit-buffer.js";
5
5
  export interface Viewport {
6
6
  offsetY: number;
7
7
  offsetX: number;