@opentui/core 0.1.86 → 0.1.88

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 +4 -3
  13. package/3d.js.map +15 -15
  14. package/Renderable.d.ts +7 -7
  15. package/animation/Timeline.d.ts +1 -1
  16. package/buffer.d.ts +6 -6
  17. package/console.d.ts +7 -4
  18. package/edit-buffer.d.ts +4 -4
  19. package/editor-view.d.ts +4 -4
  20. package/index-e4hzc2j2.js +113 -0
  21. package/index-e4hzc2j2.js.map +10 -0
  22. package/{index-4sjb8n0n.js → index-nkrr8a4c.js} +2476 -1743
  23. package/index-nkrr8a4c.js.map +64 -0
  24. package/index-nyw5p3ep.js +12619 -0
  25. package/index-nyw5p3ep.js.map +43 -0
  26. package/index.d.ts +20 -17
  27. package/index.js +83 -11490
  28. package/index.js.map +3 -34
  29. package/lib/KeyHandler.d.ts +8 -8
  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 +15 -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 -19
  38. package/lib/objects-in-viewport.d.ts +1 -1
  39. package/lib/parse.keypress-kitty.d.ts +1 -1
  40. package/lib/parse.mouse.d.ts +2 -2
  41. package/lib/paste.d.ts +7 -0
  42. package/lib/renderable.validations.d.ts +2 -2
  43. package/lib/selection.d.ts +2 -2
  44. package/lib/stdin-parser.d.ts +76 -0
  45. package/lib/styled-text.d.ts +2 -2
  46. package/lib/terminal-palette.d.ts +11 -4
  47. package/lib/tree-sitter/client.d.ts +1 -1
  48. package/lib/tree-sitter/default-parsers.d.ts +1 -1
  49. package/lib/tree-sitter/download-utils.d.ts +1 -1
  50. package/lib/tree-sitter/index.d.ts +7 -7
  51. package/lib/tree-sitter-styled-text.d.ts +5 -5
  52. package/package.json +17 -7
  53. package/parser.worker.js +7 -7
  54. package/parser.worker.js.map +4 -4
  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/filters.d.ts +1 -1
  59. package/renderables/ASCIIFont.d.ts +6 -6
  60. package/renderables/Box.d.ts +5 -5
  61. package/renderables/Code.d.ts +10 -8
  62. package/renderables/Diff.d.ts +13 -6
  63. package/renderables/EditBufferRenderable.d.ts +8 -8
  64. package/renderables/FrameBuffer.d.ts +3 -3
  65. package/renderables/Input.d.ts +3 -3
  66. package/renderables/LineNumberRenderable.d.ts +4 -4
  67. package/renderables/Markdown.d.ts +9 -9
  68. package/renderables/ScrollBar.d.ts +6 -6
  69. package/renderables/ScrollBox.d.ts +9 -8
  70. package/renderables/Select.d.ts +7 -7
  71. package/renderables/Slider.d.ts +1 -1
  72. package/renderables/TabSelect.d.ts +6 -6
  73. package/renderables/Text.d.ts +7 -7
  74. package/renderables/TextBufferRenderable.d.ts +9 -9
  75. package/renderables/TextNode.d.ts +6 -6
  76. package/renderables/Textarea.d.ts +7 -7
  77. package/renderables/TimeToFirstDraw.d.ts +24 -0
  78. package/renderables/__tests__/renderable-test-utils.d.ts +8 -3
  79. package/renderables/composition/VRenderable.d.ts +3 -3
  80. package/renderables/composition/constructs.d.ts +14 -14
  81. package/renderables/composition/vnode.d.ts +2 -2
  82. package/renderables/index.d.ts +22 -21
  83. package/renderer.d.ts +26 -17
  84. package/runtime-plugin-support.d.ts +3 -0
  85. package/runtime-plugin-support.js +29 -0
  86. package/runtime-plugin-support.js.map +10 -0
  87. package/runtime-plugin.d.ts +11 -0
  88. package/runtime-plugin.js +16 -0
  89. package/runtime-plugin.js.map +9 -0
  90. package/syntax-style.d.ts +2 -2
  91. package/testing/manual-clock.d.ts +16 -0
  92. package/testing/mock-keys.d.ts +2 -1
  93. package/testing/mock-mouse.d.ts +1 -1
  94. package/testing/mock-tree-sitter-client.d.ts +2 -2
  95. package/testing/test-recorder.d.ts +1 -1
  96. package/testing/test-renderer.d.ts +4 -4
  97. package/testing.d.ts +6 -6
  98. package/testing.js +12 -7
  99. package/testing.js.map +7 -7
  100. package/text-buffer-view.d.ts +4 -4
  101. package/text-buffer.d.ts +5 -5
  102. package/types.d.ts +13 -8
  103. package/utils.d.ts +1 -1
  104. package/zig-structs.d.ts +7 -7
  105. package/zig.d.ts +6 -6
  106. package/index-4sjb8n0n.js.map +0 -62
  107. package/lib/stdin-buffer.d.ts +0 -44
@@ -1,8 +1,8 @@
1
1
  import { OrthographicCamera, PerspectiveCamera, Scene } from "three";
2
- import { OptimizedBuffer } from "../buffer";
3
- import { Renderable, type RenderableOptions } from "../Renderable";
4
- import type { RenderContext } from "../types";
5
- import { ThreeCliRenderer, type ThreeCliRendererOptions } from "./WGPURenderer";
2
+ import { OptimizedBuffer } from "../buffer.js";
3
+ import { Renderable, type RenderableOptions } from "../Renderable.js";
4
+ import type { RenderContext } from "../types.js";
5
+ import { ThreeCliRenderer, type ThreeCliRendererOptions } from "./WGPURenderer.js";
6
6
  export interface ThreeRenderableOptions extends RenderableOptions<ThreeRenderable> {
7
7
  scene?: Scene | null;
8
8
  camera?: PerspectiveCamera | OrthographicCamera;
@@ -1,8 +1,8 @@
1
1
  import { PerspectiveCamera, OrthographicCamera, Scene } from "three";
2
- import type { OptimizedBuffer } from "../buffer";
3
- import { RGBA } from "../lib/RGBA";
4
- import { SuperSampleAlgorithm } from "./canvas";
5
- import { type CliRenderer } from "../renderer";
2
+ import type { OptimizedBuffer } from "../buffer.js";
3
+ import { RGBA } from "../lib/RGBA.js";
4
+ import { SuperSampleAlgorithm } from "./canvas.js";
5
+ import { type CliRenderer } from "../renderer.js";
6
6
  export declare enum SuperSampleType {
7
7
  NONE = "none",
8
8
  GPU = "gpu",
@@ -1,7 +1,7 @@
1
1
  import * as THREE from "three";
2
2
  import { NodeMaterial } from "three/webgpu";
3
- import type { TiledSprite, SpriteDefinition, SpriteAnimator } from "./SpriteAnimator";
4
- import type { SpriteResource } from "../SpriteResourceManager";
3
+ import type { TiledSprite, SpriteDefinition, SpriteAnimator } from "./SpriteAnimator.js";
4
+ import type { SpriteResource } from "../SpriteResourceManager.js";
5
5
  export interface ExplosionEffectParameters {
6
6
  numRows: number;
7
7
  numCols: number;
@@ -1,8 +1,8 @@
1
1
  import * as THREE from "three";
2
2
  import { NodeMaterial } from "three/webgpu";
3
- import type { TiledSprite, SpriteDefinition, SpriteAnimator } from "./SpriteAnimator";
4
- import type { PhysicsWorld } from "../physics/physics-interface";
5
- import type { SpriteResource } from "../SpriteResourceManager";
3
+ import type { TiledSprite, SpriteDefinition, SpriteAnimator } from "./SpriteAnimator.js";
4
+ import type { PhysicsWorld } from "../physics/physics-interface.js";
5
+ import type { SpriteResource } from "../SpriteResourceManager.js";
6
6
  export interface PhysicsExplosionEffectParameters {
7
7
  numRows: number;
8
8
  numCols: number;
@@ -1,7 +1,7 @@
1
1
  import * as THREE from "three";
2
2
  import { NodeMaterial } from "three/webgpu";
3
3
  import type { Scene } from "three";
4
- import { type SpriteResource, InstanceManager } from "../SpriteResourceManager";
4
+ import { type SpriteResource, InstanceManager } from "../SpriteResourceManager.js";
5
5
  export interface AnimationStateConfig {
6
6
  imagePath: string;
7
7
  sheetNumFrames: number;
@@ -1,6 +1,6 @@
1
1
  import * as THREE from "three";
2
2
  import { NodeMaterial } from "three/webgpu";
3
- import type { SpriteResource } from "../SpriteResourceManager";
3
+ import type { SpriteResource } from "../SpriteResourceManager.js";
4
4
  export interface ParticleEffectParameters {
5
5
  resource: SpriteResource;
6
6
  animNumFrames?: number;
package/3d/canvas.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GPUCanvasContextMock } from "bun-webgpu";
2
- import { SuperSampleType } from "./WGPURenderer";
3
- import type { OptimizedBuffer } from "../buffer";
2
+ import { SuperSampleType } from "./WGPURenderer.js";
3
+ import type { OptimizedBuffer } from "../buffer.js";
4
4
  export declare enum SuperSampleAlgorithm {
5
5
  STANDARD = 0,
6
6
  PRE_SQUEEZED = 1
package/3d/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export * from "./WGPURenderer";
2
- export * from "./ThreeRenderable";
3
- export * from "./TextureUtils";
4
- export * from "./canvas";
5
- export * from "./SpriteUtils";
6
- export * from "./animation/SpriteAnimator";
7
- export * from "./animation/ExplodingSpriteEffect";
8
- export * from "./animation/SpriteParticleGenerator";
9
- export * from "./animation/PhysicsExplodingSpriteEffect";
10
- export * from "./physics/RapierPhysicsAdapter";
11
- export * from "./physics/PlanckPhysicsAdapter";
12
- export * from "./SpriteResourceManager";
1
+ export * from "./WGPURenderer.js";
2
+ export * from "./ThreeRenderable.js";
3
+ export * from "./TextureUtils.js";
4
+ export * from "./canvas.js";
5
+ export * from "./SpriteUtils.js";
6
+ export * from "./animation/SpriteAnimator.js";
7
+ export * from "./animation/ExplodingSpriteEffect.js";
8
+ export * from "./animation/SpriteParticleGenerator.js";
9
+ export * from "./animation/PhysicsExplodingSpriteEffect.js";
10
+ export * from "./physics/RapierPhysicsAdapter.js";
11
+ export * from "./physics/PlanckPhysicsAdapter.js";
12
+ export * from "./SpriteResourceManager.js";
@@ -1,5 +1,5 @@
1
1
  import * as planck from "planck";
2
- import type { PhysicsVector2, PhysicsRigidBodyDesc, PhysicsColliderDesc, PhysicsRigidBody, PhysicsWorld } from "./physics-interface";
2
+ import type { PhysicsVector2, PhysicsRigidBodyDesc, PhysicsColliderDesc, PhysicsRigidBody, PhysicsWorld } from "./physics-interface.js";
3
3
  export declare class PlanckRigidBody implements PhysicsRigidBody {
4
4
  private planckBody;
5
5
  constructor(planckBody: planck.Body);
@@ -1,5 +1,5 @@
1
1
  import RAPIER from "@dimforge/rapier2d-simd-compat";
2
- import type { PhysicsVector2, PhysicsRigidBodyDesc, PhysicsColliderDesc, PhysicsRigidBody, PhysicsWorld } from "./physics-interface";
2
+ import type { PhysicsVector2, PhysicsRigidBodyDesc, PhysicsColliderDesc, PhysicsRigidBody, PhysicsWorld } from "./physics-interface.js";
3
3
  export declare class RapierRigidBody implements PhysicsRigidBody {
4
4
  private rapierBody;
5
5
  constructor(rapierBody: RAPIER.RigidBody);
package/3d.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./3d/index";
1
+ export * from "./3d/index.js";
2
2
  export * as THREE from "three";
package/3d.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  __export,
7
7
  __require,
8
8
  __toESM
9
- } from "./index-4sjb8n0n.js";
9
+ } from "./index-nkrr8a4c.js";
10
10
 
11
11
  // ../../node_modules/.bun/omggif@1.0.10/node_modules/omggif/omggif.js
12
12
  var require_omggif = __commonJS((exports) => {
@@ -32176,11 +32176,12 @@ class ThreeRenderable extends Renderable {
32176
32176
  }
32177
32177
  }
32178
32178
  // src/3d/TextureUtils.ts
32179
+ import { readFile as readFile2 } from "fs/promises";
32179
32180
  import { Color as Color2, DataTexture, NearestFilter, ClampToEdgeWrapping, RGBAFormat, UnsignedByteType } from "three";
32180
32181
  class TextureUtils {
32181
32182
  static async loadTextureFromFile(path) {
32182
32183
  try {
32183
- const buffer = await Bun.file(path).arrayBuffer();
32184
+ const buffer = await readFile2(path);
32184
32185
  const image2 = await Jimp.read(buffer);
32185
32186
  image2.flip({ horizontal: false, vertical: true });
32186
32187
  const texture = new DataTexture(image2.bitmap.data, image2.bitmap.width, image2.bitmap.height, RGBAFormat, UnsignedByteType);
@@ -34037,5 +34038,5 @@ export {
34037
34038
  CLICanvas
34038
34039
  };
34039
34040
 
34040
- //# debugId=A658FFDC4E7D1D3B64756E2164756E21
34041
+ //# debugId=A1DB4608951A660F64756E2164756E21
34041
34042
  //# sourceMappingURL=3d.js.map