@opentui/core 0.7.0 → 0.8.1

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 (54) hide show
  1. package/NativeScene.d.ts +18 -4
  2. package/NativeSession.d.ts +22 -2
  3. package/Renderable.d.ts +20 -2
  4. package/animation/Timeline.d.ts +9 -0
  5. package/buffer.d.ts +8 -2
  6. package/{chunk-bun-zevtbcf6.js → chunk-bun-ved2tpxm.js} +834 -320
  7. package/chunk-bun-ved2tpxm.js.map +70 -0
  8. package/{chunk-bun-qkpm62w1.js → chunk-bun-wdetc10w.js} +483 -29
  9. package/chunk-bun-wdetc10w.js.map +35 -0
  10. package/{chunk-node-mzgnr3sw.js → chunk-node-m8mjyx7h.js} +483 -29
  11. package/chunk-node-m8mjyx7h.js.map +34 -0
  12. package/{chunk-node-7bcmqh18.js → chunk-node-tpjmjvn7.js} +834 -320
  13. package/chunk-node-tpjmjvn7.js.map +70 -0
  14. package/edit-buffer.d.ts +4 -0
  15. package/index.bun.js +1453 -859
  16. package/index.bun.js.map +15 -13
  17. package/index.d.ts +1 -1
  18. package/index.node.js +1453 -859
  19. package/index.node.js.map +16 -12
  20. package/lib/extmarks.d.ts +3 -1
  21. package/lib/stdin-parser-native.d.ts +2 -0
  22. package/lib/stdin-parser.d.ts +2 -0
  23. package/lib/terminal-capability-detection.d.ts +6 -1
  24. package/native-abi.generated.d.ts +478 -6
  25. package/package.json +9 -9
  26. package/renderables/FrameBuffer.d.ts +1 -0
  27. package/renderables/Image.d.ts +13 -1
  28. package/renderables/LineNumberRenderable.d.ts +1 -1
  29. package/renderables/Markdown.d.ts +1 -1
  30. package/renderables/ScrollBar.d.ts +6 -0
  31. package/renderables/ScrollBox.d.ts +84 -44
  32. package/renderables/ScrollBoxParts.d.ts +165 -0
  33. package/renderables/Select.d.ts +0 -2
  34. package/renderables/TabSelect.d.ts +0 -3
  35. package/renderables/TextTable.d.ts +1 -8
  36. package/renderables/Video.d.ts +126 -0
  37. package/renderables/index.d.ts +2 -1
  38. package/renderer-theme-mode.d.ts +1 -6
  39. package/renderer.d.ts +44 -5
  40. package/testing/test-renderer.d.ts +2 -0
  41. package/testing.bun.js +7 -6
  42. package/testing.bun.js.map +3 -3
  43. package/testing.js +7 -6
  44. package/testing.js.map +3 -3
  45. package/types.d.ts +11 -0
  46. package/yoga.bun.js +1 -1
  47. package/yoga.internal.d.ts +3 -3
  48. package/yoga.js +1 -1
  49. package/zig-structs.d.ts +1 -0
  50. package/zig.d.ts +132 -10
  51. package/chunk-bun-qkpm62w1.js.map +0 -35
  52. package/chunk-bun-zevtbcf6.js.map +0 -70
  53. package/chunk-node-7bcmqh18.js.map +0 -70
  54. package/chunk-node-mzgnr3sw.js.map +0 -34
package/lib/extmarks.d.ts CHANGED
@@ -69,7 +69,9 @@ export declare class ExtmarksController {
69
69
  adjustExtmarksAfterDeletion(deleteOffset: number, length: number, updateHighlights?: boolean): void;
70
70
  private offsetToPosition;
71
71
  private positionToOffset;
72
- private getNextCursorOffset;
72
+ /** Cells an edit adds to the document, negative when it removes them. A grapheme rejoined across the edit changes widths, so measure the end. */
73
+ private measureChange;
74
+ private shiftExtmarks;
73
75
  private updateHighlights;
74
76
  private offsetExcludingNewlines;
75
77
  create(options: ExtmarkOptions): number;
@@ -38,6 +38,8 @@ export declare class NativeStdinParser {
38
38
  private destroyed;
39
39
  constructor(options?: NativeStdinParserOptions);
40
40
  updateProtocolContext(patch: Partial<StdinParserProtocolContext>): void;
41
+ /** A bracketed paste has started and not yet ended. */
42
+ get pasting(): boolean;
41
43
  push(data: Uint8Array): void;
42
44
  read(): StdinEvent | null;
43
45
  drain(onEvent: (event: StdinEvent) => void): void;
@@ -28,6 +28,8 @@ export interface StdinParserProtocolContext {
28
28
  pixelResolutionQueryActive: boolean;
29
29
  explicitWidthCprActive: boolean;
30
30
  startupCursorCprActive: boolean;
31
+ /** Native only: a query batch's DA1 reply is outstanding, so split replies wait for it without a deadline. */
32
+ replySentinelActive: boolean;
31
33
  }
32
34
  export interface StdinParserOptions {
33
35
  timeoutMs?: number;
@@ -3,7 +3,6 @@
3
3
  *
4
4
  * Detects various terminal capability response sequences:
5
5
  * - DECRPM (DEC Request Mode): ESC[?...;N$y where N is 0,1,2,3,4
6
- * - CPR (Cursor Position Report): ESC[row;colR (used for width detection)
7
6
  * - XTVersion: ESC P >| ... ESC \
8
7
  * - Kitty Graphics: ESC _ G ... ESC \
9
8
  * - Kitty Keyboard Query: ESC[?Nu where N is 0,1,2,etc
@@ -18,6 +17,12 @@
18
17
  * Returns true if the sequence matches any known capability response pattern.
19
18
  */
20
19
  export declare function isCapabilityResponse(sequence: string): boolean;
20
+ /**
21
+ * Check if a cursor position report answers the explicit width or scaled text probe: ESC[1;NR with N >= 2.
22
+ * ESC[1;1R means the cursor did not move, so the terminal has no width support. Shift, Alt and Ctrl+F3 send the
23
+ * same bytes, so only a report the parser classified as one may be checked.
24
+ */
25
+ export declare function isExplicitWidthReport(sequence: string): boolean;
21
26
  /**
22
27
  * Check if a sequence is a pixel resolution response.
23
28
  * Format: ESC[4;height;widtht