@next_term/native 0.1.0-next.0 → 0.1.0-next.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rahul Pandita
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next_term/native",
3
- "version": "0.1.0-next.0",
3
+ "version": "0.1.0-next.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,15 +16,12 @@
16
16
  "import": "./dist/index.js"
17
17
  }
18
18
  },
19
- "scripts": {
20
- "build": "tsc"
21
- },
22
19
  "peerDependencies": {
23
20
  "react": "^18.0.0 || ^19.0.0",
24
21
  "react-native": ">=0.73.0"
25
22
  },
26
23
  "dependencies": {
27
- "@next_term/core": "workspace:*"
24
+ "@next_term/core": "0.0.1-next.5"
28
25
  },
29
26
  "devDependencies": {
30
27
  "typescript": "^5.5.0",
@@ -37,5 +34,8 @@
37
34
  ],
38
35
  "publishConfig": {
39
36
  "access": "public"
37
+ },
38
+ "scripts": {
39
+ "build": "tsc"
40
40
  }
41
- }
41
+ }