@opentui/core 0.5.16 → 0.6.0

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 (91) hide show
  1. package/NativeScene.d.ts +185 -0
  2. package/NativeSession.d.ts +134 -0
  3. package/NativeSpanFeed.d.ts +1 -4
  4. package/README.md +5 -3
  5. package/Renderable.d.ts +162 -67
  6. package/animation/Timeline.d.ts +11 -1
  7. package/assets/typescriptreact/highlights.scm +758 -0
  8. package/assets/typescriptreact/tree-sitter-tsx.wasm +0 -0
  9. package/buffer.d.ts +76 -36
  10. package/chunk-bun-s01c2jyn.js +24914 -0
  11. package/chunk-bun-s01c2jyn.js.map +69 -0
  12. package/chunk-bun-tsc14mt5.js +12515 -0
  13. package/chunk-bun-tsc14mt5.js.map +35 -0
  14. package/chunk-node-df90qrqc.js +12495 -0
  15. package/chunk-node-df90qrqc.js.map +34 -0
  16. package/chunk-node-hjr2tm60.js +24913 -0
  17. package/chunk-node-hjr2tm60.js.map +69 -0
  18. package/edit-buffer.d.ts +18 -20
  19. package/editor-view.d.ts +13 -5
  20. package/image.d.ts +18 -7
  21. package/index.bun.js +2387 -2899
  22. package/index.bun.js.map +20 -22
  23. package/index.d.ts +6 -2
  24. package/index.node.js +2387 -2899
  25. package/index.node.js.map +20 -24
  26. package/lib/buffer-access.d.ts +6 -0
  27. package/lib/clipboard.d.ts +0 -9
  28. package/lib/extmarks.d.ts +4 -1
  29. package/lib/tree-sitter/parsers-config.d.ts +9 -9
  30. package/native-abi.generated.d.ts +5496 -0
  31. package/node-assets.js +6 -2
  32. package/node-assets.js.map +3 -3
  33. package/package.json +10 -10
  34. package/parser.worker.js +14 -2
  35. package/parser.worker.js.map +3 -3
  36. package/renderables/ASCIIFont.d.ts +5 -5
  37. package/renderables/Box.d.ts +8 -8
  38. package/renderables/Code.d.ts +6 -2
  39. package/renderables/Diff.d.ts +4 -2
  40. package/renderables/EditBufferRenderable.d.ts +8 -10
  41. package/renderables/EmbeddedTerminal.d.ts +4 -2
  42. package/renderables/FrameBuffer.d.ts +3 -1
  43. package/renderables/Image.d.ts +3 -1
  44. package/renderables/Input.d.ts +0 -5
  45. package/renderables/LineNumberRenderable.d.ts +3 -1
  46. package/renderables/Markdown.d.ts +5 -2
  47. package/renderables/ScrollBar.d.ts +7 -1
  48. package/renderables/ScrollBox.d.ts +4 -6
  49. package/renderables/Select.d.ts +2 -1
  50. package/renderables/Slider.d.ts +7 -5
  51. package/renderables/TabSelect.d.ts +2 -1
  52. package/renderables/Text.d.ts +5 -4
  53. package/renderables/TextBufferRenderable.d.ts +10 -9
  54. package/renderables/TextNode.d.ts +8 -0
  55. package/renderables/TextTable.d.ts +1 -1
  56. package/renderables/Textarea.d.ts +1 -1
  57. package/renderables/index.d.ts +1 -1
  58. package/renderer.d.ts +90 -67
  59. package/session-buffer.d.ts +4 -0
  60. package/syntax-style.d.ts +9 -7
  61. package/testing/harness.d.ts +33 -0
  62. package/testing/manual-clock.d.ts +2 -0
  63. package/testing/test-renderer.d.ts +3 -0
  64. package/testing/test-streams.d.ts +20 -2
  65. package/testing.bun.js +60 -49
  66. package/testing.bun.js.map +6 -6
  67. package/testing.js +60 -49
  68. package/testing.js.map +6 -6
  69. package/tests/native-log-worker-child.d.ts +1 -0
  70. package/tests/native-symbol-stubs.d.ts +5 -0
  71. package/tests/yoga-callback-boundary-child.d.ts +1 -0
  72. package/tests/yoga-default-config-worker-child.d.ts +1 -0
  73. package/text-buffer-view.d.ts +11 -4
  74. package/text-buffer.d.ts +24 -9
  75. package/types.d.ts +4 -4
  76. package/yoga.bun.js +6 -2
  77. package/yoga.bun.js.map +1 -1
  78. package/yoga.d.ts +91 -56
  79. package/yoga.internal.d.ts +78 -0
  80. package/yoga.js +6 -2
  81. package/yoga.js.map +1 -1
  82. package/zig-structs.d.ts +13 -98
  83. package/zig.d.ts +1304 -583
  84. package/chunk-bun-3qwevekk.js +0 -10531
  85. package/chunk-bun-3qwevekk.js.map +0 -32
  86. package/chunk-bun-6rvkxs1v.js +0 -18862
  87. package/chunk-bun-6rvkxs1v.js.map +0 -64
  88. package/chunk-node-f3yste6w.js +0 -10530
  89. package/chunk-node-f3yste6w.js.map +0 -32
  90. package/chunk-node-tfvyz31s.js +0 -18844
  91. package/chunk-node-tfvyz31s.js.map +0 -63
package/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./Renderable.js";
2
2
  export * from "./types.js";
3
3
  export * from "./utils.js";
4
4
  export * from "./buffer.js";
5
+ export * from "./session-buffer.js";
5
6
  export * from "./text-buffer.js";
6
7
  export * from "./text-buffer-view.js";
7
8
  export * from "./edit-buffer.js";
@@ -10,20 +11,23 @@ export * from "./syntax-style.js";
10
11
  export * from "./post/effects.js";
11
12
  export * from "./post/filters.js";
12
13
  export * from "./post/matrices.js";
13
- export * from "./animation/Timeline.js";
14
+ export { Timeline, createTimeline, engine, getTimelineEngine } from "./animation/Timeline.js";
15
+ export type { TimelineOptions, AnimationOptions, JSAnimation, EasingFunctions } from "./animation/Timeline.js";
14
16
  export * from "./lib/index.js";
15
17
  export * from "./renderer.js";
16
18
  export * from "./plugins/types.js";
17
19
  export * from "./plugins/registry.js";
18
20
  export * from "./plugins/core-slot.js";
19
21
  export * from "./NativeSpanFeed.js";
22
+ export * from "./NativeSession.js";
20
23
  export * from "./audio.js";
21
24
  export type { AudioStreamDemuxOutput, AudioStreamDemuxer, AudioStreamDemuxerFactory } from "./audio-stream/demuxer.js";
22
25
  export { createIcyStreamDemuxer } from "./audio-stream/icy/demuxer.js";
23
26
  export type { IcyStreamDemuxerOptions } from "./audio-stream/icy/demuxer.js";
24
27
  export * from "./image.js";
25
28
  export * from "./renderables/index.js";
26
- export * from "./zig.js";
29
+ export { FFIRenderLib, LogLevel, MAX_LINK_URL_BYTES, NATIVE_BUFFER_TEXT_BYTES_MAX, NATIVE_EDGE_NONE, NATIVE_SESSION_CONTROL_PACKET_BYTES, NativeAudioStreamCloseReason, NativeAudioStreamFormat, NativeAudioStreamState, NativeBorder, NativeClipboardCancelStatus, NativeClipboardCopyStatus, NativeClipboardDestroyStatus, NativeClipboardOperationStatus, NativeClipboardShutdownStatus, NativeClipboardStartStatus, NativeEditCommand, NativeEditEvent, NativeEditHighlightOperation, NativeEditPositionQuery, NativeEditorCommand, NativeEditorPositionQuery, NativeEditorSelectionOperation, NativeEditorStyleMask, NativeError, NativeSceneFrame, NativeSceneHook, NativeScenePaintPhase, NativeSessionPumpStatus, NativeSessionRenderStatus, NativeSessionState, NativeSessionTerminalPhase, NativeStatus, NativeTextViewCommand, resolveRenderLib, setRenderLibPath, } from "./zig.js";
30
+ export type { AllocatorStats, AudioEngineHandle, AudioEngineLib, AudioStreamCreateOptions, BuildOptions, ClipboardOperationHandle, ClipboardServiceHandle, ContextBufferHandle, ContextEditBufferHandle, ContextEditorViewHandle, ContextEmbeddedTerminalHandle, ContextImageHandle, ContextImagePixelsHandle, ContextObjectHandle, ContextSyntaxStyleHandle, ContextTextBufferHandle, ContextTextBufferViewHandle, ContextUnicodeHandle, CursorState, EmbeddedTerminalCursor, EmbeddedTerminalKey, EmbeddedTerminalMouse, ImageHandle, LineInfo, LogicalCursor, MeasureResult, NativeAudioCaptureStats, NativeAudioStreamStats, NativeBufferDraw, NativeBufferGrid, NativeBufferStack, NativeBufferedOutput, NativeContextBufferLease, NativeContextBufferOptions, NativeContextEditBufferOptions, NativeContextHandle, NativeContextImageDraw, NativeContextOptions, NativeDrawingTarget, NativeEditBufferInfo, NativeEditEventName, NativeEditorReplacement, NativeEditorSelection, NativeEditorStyle, NativeEditorViewInfo, NativeEditorViewport, NativeEncodedStyledText, NativeHandle, NativeOutputTicket, NativeRenderStats, NativeSceneArrowOptions, NativeSceneBoxDetails, NativeSceneEditorOptions, NativeSceneFrameOptions, NativeSceneFrameRequest, NativeSceneLayout, NativeScenePaint, NativeScenePaintSlot, NativeScenePaintUpdate, NativeSceneSliderOptions, NativeSceneTextMetrics, NativeSceneTextOptions, NativeSceneTextSelectionOptions, NativeSessionBufferLease, NativeSessionCapabilities, NativeSessionControl, NativeSessionCursorOptions, NativeSessionKittyImageTransportStatus, NativeSessionOptions, NativeSessionPumpResult, NativeSessionRendererOptions, NativeSessionRendererState, NativeSessionSplitControl, NativeSessionTerminalOptions, NativeSpanFeedEventHandler, NativeSplitSnapshot, NativeTextBufferInfo, NativeYogaDirtiedCallback, NativeYogaLayout, NativeYogaMeasureCallback, RenderLib, SceneNodeHandle, SessionBuffer, SessionHandle, VisualCursor, } from "./zig.js";
27
31
  export * from "./console.js";
28
32
  export { resolveBundledFilePath } from "./platform/runtime.js";
29
33
  export * as Yoga from "./yoga.js";