@next_term/react 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/index.d.ts +6 -0
- package/dist/pane-layout.d.ts +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { collectPaneIds } from "./pane-layout.js";
|
|
2
|
+
export type { TerminalHandle, TerminalProps } from "./Terminal.js";
|
|
3
|
+
export { Terminal } from "./Terminal.js";
|
|
4
|
+
export type { PaneLayout, TerminalPaneHandle, TerminalPaneProps } from "./TerminalPane.js";
|
|
5
|
+
export { TerminalPane } from "./TerminalPane.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PaneLayout — recursive layout tree for TerminalPane.
|
|
3
|
+
* Kept in a separate module so pure layout logic can be unit-tested without
|
|
4
|
+
* pulling in React/JSX.
|
|
5
|
+
*/
|
|
6
|
+
export type PaneLayout = {
|
|
7
|
+
type: "single";
|
|
8
|
+
id: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: "horizontal";
|
|
11
|
+
children: PaneLayout[];
|
|
12
|
+
sizes?: number[];
|
|
13
|
+
} | {
|
|
14
|
+
type: "vertical";
|
|
15
|
+
children: PaneLayout[];
|
|
16
|
+
sizes?: number[];
|
|
17
|
+
};
|
|
18
|
+
/** Collect all leaf pane ids from a layout tree (depth-first, left-to-right). */
|
|
19
|
+
export declare function collectPaneIds(layout: PaneLayout): string[];
|
|
20
|
+
//# sourceMappingURL=pane-layout.d.ts.map
|