@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.
- package/3d/ThreeRenderable.d.ts +4 -4
- package/3d/WGPURenderer.d.ts +4 -4
- package/3d/animation/ExplodingSpriteEffect.d.ts +2 -2
- package/3d/animation/PhysicsExplodingSpriteEffect.d.ts +3 -3
- package/3d/animation/SpriteAnimator.d.ts +1 -1
- package/3d/animation/SpriteParticleGenerator.d.ts +1 -1
- package/3d/canvas.d.ts +2 -2
- package/3d/index.d.ts +12 -12
- package/3d/physics/PlanckPhysicsAdapter.d.ts +1 -1
- package/3d/physics/RapierPhysicsAdapter.d.ts +1 -1
- package/3d.d.ts +1 -1
- package/3d.js +4 -3
- package/3d.js.map +15 -15
- package/Renderable.d.ts +7 -7
- package/animation/Timeline.d.ts +1 -1
- package/buffer.d.ts +6 -6
- package/console.d.ts +7 -4
- package/edit-buffer.d.ts +4 -4
- package/editor-view.d.ts +4 -4
- package/index-e4hzc2j2.js +113 -0
- package/index-e4hzc2j2.js.map +10 -0
- package/{index-4sjb8n0n.js → index-nkrr8a4c.js} +2476 -1743
- package/index-nkrr8a4c.js.map +64 -0
- package/index-nyw5p3ep.js +12619 -0
- package/index-nyw5p3ep.js.map +43 -0
- package/index.d.ts +20 -17
- package/index.js +83 -11490
- package/index.js.map +3 -34
- package/lib/KeyHandler.d.ts +8 -8
- package/lib/ascii.font.d.ts +2 -2
- package/lib/border.d.ts +1 -1
- package/lib/clipboard.d.ts +1 -1
- package/lib/clock.d.ts +15 -0
- package/lib/extmarks-history.d.ts +1 -1
- package/lib/extmarks.d.ts +2 -2
- package/lib/hast-styled-text.d.ts +3 -3
- package/lib/index.d.ts +21 -19
- package/lib/objects-in-viewport.d.ts +1 -1
- package/lib/parse.keypress-kitty.d.ts +1 -1
- package/lib/parse.mouse.d.ts +2 -2
- package/lib/paste.d.ts +7 -0
- package/lib/renderable.validations.d.ts +2 -2
- package/lib/selection.d.ts +2 -2
- package/lib/stdin-parser.d.ts +76 -0
- package/lib/styled-text.d.ts +2 -2
- package/lib/terminal-palette.d.ts +11 -4
- package/lib/tree-sitter/client.d.ts +1 -1
- package/lib/tree-sitter/default-parsers.d.ts +1 -1
- package/lib/tree-sitter/download-utils.d.ts +1 -1
- package/lib/tree-sitter/index.d.ts +7 -7
- package/lib/tree-sitter-styled-text.d.ts +5 -5
- package/package.json +17 -7
- package/parser.worker.js +7 -7
- package/parser.worker.js.map +4 -4
- package/plugins/core-slot.d.ts +72 -0
- package/plugins/registry.d.ts +38 -0
- package/plugins/types.d.ts +34 -0
- package/post/filters.d.ts +1 -1
- package/renderables/ASCIIFont.d.ts +6 -6
- package/renderables/Box.d.ts +5 -5
- package/renderables/Code.d.ts +10 -8
- package/renderables/Diff.d.ts +13 -6
- package/renderables/EditBufferRenderable.d.ts +8 -8
- package/renderables/FrameBuffer.d.ts +3 -3
- package/renderables/Input.d.ts +3 -3
- package/renderables/LineNumberRenderable.d.ts +4 -4
- package/renderables/Markdown.d.ts +9 -9
- package/renderables/ScrollBar.d.ts +6 -6
- package/renderables/ScrollBox.d.ts +9 -8
- package/renderables/Select.d.ts +7 -7
- package/renderables/Slider.d.ts +1 -1
- package/renderables/TabSelect.d.ts +6 -6
- package/renderables/Text.d.ts +7 -7
- package/renderables/TextBufferRenderable.d.ts +9 -9
- package/renderables/TextNode.d.ts +6 -6
- package/renderables/Textarea.d.ts +7 -7
- package/renderables/TimeToFirstDraw.d.ts +24 -0
- package/renderables/__tests__/renderable-test-utils.d.ts +8 -3
- package/renderables/composition/VRenderable.d.ts +3 -3
- package/renderables/composition/constructs.d.ts +14 -14
- package/renderables/composition/vnode.d.ts +2 -2
- package/renderables/index.d.ts +22 -21
- package/renderer.d.ts +26 -17
- package/runtime-plugin-support.d.ts +3 -0
- package/runtime-plugin-support.js +29 -0
- package/runtime-plugin-support.js.map +10 -0
- package/runtime-plugin.d.ts +11 -0
- package/runtime-plugin.js +16 -0
- package/runtime-plugin.js.map +9 -0
- package/syntax-style.d.ts +2 -2
- package/testing/manual-clock.d.ts +16 -0
- package/testing/mock-keys.d.ts +2 -1
- package/testing/mock-mouse.d.ts +1 -1
- package/testing/mock-tree-sitter-client.d.ts +2 -2
- package/testing/test-recorder.d.ts +1 -1
- package/testing/test-renderer.d.ts +4 -4
- package/testing.d.ts +6 -6
- package/testing.js +12 -7
- package/testing.js.map +7 -7
- package/text-buffer-view.d.ts +4 -4
- package/text-buffer.d.ts +5 -5
- package/types.d.ts +13 -8
- package/utils.d.ts +1 -1
- package/zig-structs.d.ts +7 -7
- package/zig.d.ts +6 -6
- package/index-4sjb8n0n.js.map +0 -62
- package/lib/stdin-buffer.d.ts +0 -44
package/3d/ThreeRenderable.d.ts
CHANGED
|
@@ -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;
|
package/3d/WGPURenderer.d.ts
CHANGED
|
@@ -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-
|
|
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
|
|
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=
|
|
34041
|
+
//# debugId=A1DB4608951A660F64756E2164756E21
|
|
34041
34042
|
//# sourceMappingURL=3d.js.map
|