@illuma-ai/code-sandbox 1.2.1 → 1.3.0
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/components/Terminal.d.ts +11 -8
- package/dist/index.cjs +77 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8064 -7755
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/FileTree.tsx +365 -35
- package/src/components/Terminal.tsx +84 -41
- package/src/components/Workbench.tsx +41 -17
- package/src/index.ts +4 -0
- package/src/styles.css +62 -4
- package/src/types.ts +4 -0
- package/dist/code-sandbox.css +0 -1
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Terminal —
|
|
2
|
+
* Terminal — Clean monochrome terminal output panel with minimize toggle.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* Auto-scrolls to
|
|
4
|
+
* Uses a simple div-based approach (not xterm.js) to keep the bundle lean.
|
|
5
|
+
* Auto-scrolls to bottom as new output arrives.
|
|
6
|
+
* Minimize/expand state is controlled by the parent via props.
|
|
6
7
|
*/
|
|
7
8
|
import type { TerminalProps } from "../types";
|
|
8
9
|
/**
|
|
9
|
-
* Terminal component — renders process
|
|
10
|
+
* Terminal component — renders process output in a clean monochrome panel.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Features:
|
|
13
|
+
* - Monospace font with proper line spacing
|
|
14
|
+
* - Auto-scroll to bottom on new output
|
|
15
|
+
* - Minimize/expand toggle via chevron in header (parent-controlled)
|
|
16
|
+
* - Modern thin scrollbar matching the sandbox theme
|
|
14
17
|
*/
|
|
15
|
-
export declare function Terminal({ output, className }: TerminalProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function Terminal({ output, className, minimized, onToggleMinimize, }: TerminalProps): import("react/jsx-runtime").JSX.Element;
|