@illuma-ai/code-sandbox 1.2.2 → 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.
@@ -1,27 +1,18 @@
1
1
  /**
2
- * Terminal — Git-bash inspired terminal output panel.
3
- *
4
- * Renders process stdout/stderr with color-coded output:
5
- * - Commands ($ ...) get a green prompt + white command
6
- * - stderr lines get red text
7
- * - Success markers (checkmarks) get green
8
- * - Warnings get yellow
9
- * - Package names get purple
10
- * - URLs and paths get cyan
11
- * - Exit codes get colored by status
2
+ * Terminal — Clean monochrome terminal output panel with minimize toggle.
12
3
  *
13
4
  * Uses a simple div-based approach (not xterm.js) to keep the bundle lean.
14
5
  * Auto-scrolls to bottom as new output arrives.
6
+ * Minimize/expand state is controlled by the parent via props.
15
7
  */
16
8
  import type { TerminalProps } from "../types";
17
9
  /**
18
- * Terminal component — renders process output in a git-bash inspired panel.
10
+ * Terminal component — renders process output in a clean monochrome panel.
19
11
  *
20
12
  * Features:
21
- * - Color-coded output (commands, errors, warnings, info, packages)
22
- * - Monospace font stack (Cascadia Code → JetBrains Mono → Fira Code → fallback)
13
+ * - Monospace font with proper line spacing
23
14
  * - Auto-scroll to bottom on new output
15
+ * - Minimize/expand toggle via chevron in header (parent-controlled)
24
16
  * - Modern thin scrollbar matching the sandbox theme
25
- * - Dark background separate from editor for visual distinction
26
17
  */
27
- 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;