@next_term/native 0.1.0-next.0 → 0.1.0-next.3
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/dist/TerminalSurface.d.ts +33 -0
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TerminalSurface — wraps the native platform view for terminal rendering.
|
|
3
|
+
*
|
|
4
|
+
* In a full implementation this would use requireNativeComponent() or a
|
|
5
|
+
* Fabric component to host a Metal / Vulkan surface. In the JS-fallback
|
|
6
|
+
* mode it renders a plain View that a Skia Canvas can draw into.
|
|
7
|
+
*
|
|
8
|
+
* This module is intentionally thin — the NativeTerminal component handles
|
|
9
|
+
* all logic and passes render commands through.
|
|
10
|
+
*/
|
|
11
|
+
import React from "react";
|
|
12
|
+
export interface TerminalSurfaceProps {
|
|
13
|
+
/** Surface width in device-independent pixels. */
|
|
14
|
+
width: number;
|
|
15
|
+
/** Surface height in device-independent pixels. */
|
|
16
|
+
height: number;
|
|
17
|
+
/** Accessibility label for the terminal view. */
|
|
18
|
+
accessibilityLabel?: string;
|
|
19
|
+
/** Style overrides. */
|
|
20
|
+
style?: Record<string, unknown>;
|
|
21
|
+
/** Children (e.g. Skia Canvas). */
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A placeholder surface component. In production this would be replaced by
|
|
26
|
+
* a native Fabric component that hosts the GPU rendering surface.
|
|
27
|
+
*
|
|
28
|
+
* For now it renders a React Native View-compatible element. Since we can't
|
|
29
|
+
* import `react-native` (it's a peer dep), the component returns a basic
|
|
30
|
+
* React element that RN's View would be swapped into by the consumer.
|
|
31
|
+
*/
|
|
32
|
+
export declare const TerminalSurface: React.FC<TerminalSurfaceProps>;
|
|
33
|
+
//# sourceMappingURL=TerminalSurface.d.ts.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { GestureHandler, GestureState } from "./input/GestureHandler.js";
|
|
2
|
+
export type { KeyModifiers } from "./input/KeyboardHandler.js";
|
|
3
|
+
export { KeyboardHandler } from "./input/KeyboardHandler.js";
|
|
4
|
+
export type { NativeTerminalHandle, NativeTerminalProps } from "./NativeTerminal.js";
|
|
5
|
+
export { NativeTerminal } from "./NativeTerminal.js";
|
|
6
|
+
export type { INativeRenderer, NativeRendererConfig } from "./renderer/NativeRenderer.js";
|
|
7
|
+
export type { RenderCommand } from "./renderer/SkiaRenderer.js";
|
|
8
|
+
export { SkiaRenderer } from "./renderer/SkiaRenderer.js";
|
|
9
|
+
export type { TerminalSurfaceProps } from "./TerminalSurface.js";
|
|
10
|
+
export { TerminalSurface } from "./TerminalSurface.js";
|
|
11
|
+
export type { NativeTerminalCoreSpec } from "./turbo-module/NativeTerminalCore.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|