@innovatorved/code-lab 0.6.0 → 0.7.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/ARCHITECTURE.md +1 -1
- package/CHANGELOG.md +23 -0
- package/README.md +38 -1
- package/dist/code-lab-sql.css +87 -64
- package/dist/code-lab-sql.esm.js +109 -86
- package/dist/code-lab-sql.umd.js +110 -87
- package/dist/code-lab.css +1 -1
- package/dist/code-lab.d.ts +19 -1
- package/dist/code-lab.esm.js +1261 -900
- package/dist/code-lab.js +1260 -899
- package/dist/code-lab.umd.js +1260 -899
- package/dist/extensions/cpp.esm.js +9 -0
- package/dist/extensions/cpp.js +9 -0
- package/dist/extensions/guided-lab.esm.js +9 -0
- package/dist/extensions/guided-lab.js +9 -0
- package/dist/extensions/python.esm.js +9 -0
- package/dist/extensions/python.js +9 -0
- package/dist/index.d.ts +1 -1
- package/dist/packages/sql/src/styles.d.ts +1 -1
- package/dist/packages/ui/src/settings-dialog.d.ts +2 -0
- package/dist/preview-sw.js +1 -1
- package/dist/runtime.esm.js +70 -70
- package/dist/runtime.js +70 -70
- package/dist/schemas.d.ts +13 -1
- package/dist/schemas.esm.js +9 -0
- package/dist/schemas.js +9 -0
- package/dist/shell.esm.js +250 -244
- package/dist/shell.js +250 -244
- package/dist/terminal.esm.js +1 -1
- package/dist/terminal.js +1 -1
- package/dist/workbench/index.d.ts +1 -1
- package/dist/workbench/intellisense.d.ts +1 -1
- package/dist/workbench/styles.d.ts +1 -1
- package/package.json +1 -1
- package/packages/commands/package.json +1 -1
- package/packages/core/package.json +1 -1
- package/packages/editor/package.json +1 -1
- package/packages/fs/package.json +1 -1
- package/packages/preview/package.json +1 -1
- package/packages/runtime/package.json +1 -1
- package/packages/settings/package.json +1 -1
- package/packages/settings/src/builtin-schemas.ts +16 -0
- package/packages/sql/package.json +1 -1
- package/packages/sql/src/styles.ts +87 -64
- package/packages/terminal/package.json +1 -1
- package/packages/ui/package.json +1 -1
- package/packages/ui/src/observability.ts +12 -14
- package/packages/ui/src/settings-dialog.ts +409 -57
- package/packages/ui/src/themes.ts +78 -78
- package/src/code-lab.css +757 -310
- package/src/index.ts +1 -1
- package/src/runtime.ts +29 -3
- package/src/schemas.ts +10 -1
- package/src/shell.ts +106 -16
- package/src/workbench/diff-editor.ts +5 -1
- package/src/workbench/drawer.ts +5 -5
- package/src/workbench/icons.ts +5 -5
- package/src/workbench/intellisense.ts +94 -82
- package/src/workbench/styles.ts +58 -54
- package/src/workbench/toolbar.ts +1 -1
- package/src/workbench/xterm-adapter.ts +61 -56
- package/src/workbench.ts +462 -173
package/ARCHITECTURE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# `@innovatorved/code-lab` Architecture (v0.
|
|
1
|
+
# `@innovatorved/code-lab` Architecture (v0.7.0)
|
|
2
2
|
|
|
3
3
|
`@innovatorved/code-lab` is an embeddable, browser-native Node.js v22 + Bun v1.1 + WASI C++20 + Python 3.12 IDE, first-class SQL playground (`@innovatorved/code-lab/sql`), POSIX shell, PTY terminal, and virtual execution sandbox with self-contained browser bundles (zero runtime dependencies in `dist/*`; Zod schemas available under `@innovatorved/code-lab/schemas`; modular extensions under `@innovatorved/code-lab/extensions/{guided-lab,javascript,typescript,cpp,python}`).
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,29 @@ All notable changes to `@innovatorved/code-lab` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.7.0] - 2026-11-19
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Drag-and-Drop Local OS File Upload into Explorer (`src/workbench.ts`, `src/code-lab.css`)**:
|
|
11
|
+
- Drop local files from the OS onto the Explorer root or any folder to import them into the workspace and shell VFS (`importDroppedFiles`), with visual `.drag-over` drop highlights, copy cursor feedback, 2 MB per-file guard, and reserved-path (`.git`, `node_modules`) protection.
|
|
12
|
+
- **Zen / Focus Mode (`src/workbench.ts`, `src/code-lab.css`)**:
|
|
13
|
+
- Added `toggleZenMode()` (also exposed on `<code-lab>` and `dist/code-lab.d.ts`), wired into the **View → Zen Mode** menu and Command Palette (`View: Toggle Zen Mode`), hiding the sidebar, bottom panel, status bar, and activity bar and restoring prior layout state on exit.
|
|
14
|
+
- **Customizable Initialization Settings & Embed Examples (`src/workbench.ts`, `packages/ui/src/settings-dialog.ts`, `examples/`)**:
|
|
15
|
+
- Seed editable user defaults via `options.settings` / `options.userSettings` / `options.config` and lock specific settings via `options.overrides` / `lockSettings: true`, with inline Settings UI validation and workspace override badges.
|
|
16
|
+
- Added standalone embed examples (`examples/react-embed.html`, `examples/nextjs-embed.tsx`, `examples/web-component.html`, `examples/sql-only.html`) and Cloud IDE CI verification.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **Terminal Foreground Server Lifecycle & Multi-Session Isolation (`src/workbench.ts`, `src/shell.ts`)**:
|
|
20
|
+
- Prevented auto-running projects on `git clone`; held foreground servers (`serve`, `npm run dev`, `vite`, `node server.js`, `bun run server.ts`, `python3 -m http.server`) in the terminal until `Ctrl+C` while keeping sibling terminal sessions isolated with per-session running, abort, output, and environment state.
|
|
21
|
+
|
|
22
|
+
## [0.6.1] - 2026-11-16
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- **Unified Geist Monochrome Design System (`src/code-lab.css`, `packages/ui/src/themes.ts`, `packages/ui/src/settings-dialog.ts`, `packages/sql/src/styles.ts`, `src/workbench/`)**:
|
|
26
|
+
- Replaced all copied VS Code blue tokens (`#0078d4`, `#005fb8`, `#04395e`) with the unified **Charcoal Ink** (`#0f0f10` canvas, `#141415` chrome, `#18181a` surface, `#27272a` hairline border, `#f4f4f5` primary ink/CTA) and **Warm Paper** (`#ffffff` canvas, `#f7f7f5` chrome, `#f1f1ee` surface, `#e6e4df` hairline border, `#18181b` primary ink/CTA) design system shared across `system-design-in-depth`, `dsa-in-depth`, and `interview-copilot-admin`, with seamless `--ds-*` / `--*` host CSS custom-property inheritance.
|
|
27
|
+
- Standardized typography on **Geist** (`--cl-font-sans`) for UI chrome and **Geist Mono** (`--cl-font-mono`) for code editors, Monaco `DiffEditor`, `@xterm/xterm` terminal, and standalone SQL editor, backed by a tokenized type scale (`--cl-text-2xs` through `--cl-text-xl`).
|
|
28
|
+
- Refactored ad-hoc inline `style="..."` font sizes and colors across Settings UI (`@code-lab/ui`), Observability, modals, and workbench panels into reusable `.cl-ui-*` and `.cl-settings-*` component classes.
|
|
29
|
+
|
|
7
30
|
## [0.6.0] - 2026-11-15
|
|
8
31
|
|
|
9
32
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# @innovatorved/code-lab
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/innovatorved/code-lab/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@innovatorved/code-lab)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](https://code-lab.vedgupta.in/)
|
|
7
|
+
|
|
8
|
+
Modular browser-native IDE workbench (`v0.7.0`), Web Worker runtime for Node.js, Bun, TypeScript, C++20 WebAssembly, and Python 3.12 WebAssembly, POSIX shell with 73 UNIX coreutils, and lightweight SQL playground built with strict TypeScript and Zod schemas — zero backend servers or cross-origin isolation headers required.
|
|
9
|
+
|
|
10
|
+
**[Try the Live Cloud IDE →](https://code-lab.vedgupta.in/)**
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
## Highlights
|
|
@@ -45,13 +52,24 @@ import '@innovatorved/code-lab/code-lab.css';
|
|
|
45
52
|
const lab = CodeLab.mount('#editor', {
|
|
46
53
|
id: 'http-demo',
|
|
47
54
|
title: 'Bun HTTP Server',
|
|
55
|
+
lang: 'ts', // 'js' | 'ts' | 'sql' | 'py' | 'cpp'
|
|
56
|
+
showLanguageSelector: true,
|
|
48
57
|
entry: 'server.ts',
|
|
58
|
+
// Pass user-customizable settings on init (or use `overrides` / `lockSettings: true` to lock them)
|
|
59
|
+
settings: {
|
|
60
|
+
'workbench.colorTheme': 'dark',
|
|
61
|
+
'editor.fontSize': 14,
|
|
62
|
+
'terminal.fontSize': 13,
|
|
63
|
+
'sql.defaultDialect': 'postgres'
|
|
64
|
+
},
|
|
49
65
|
files: {
|
|
50
66
|
'server.ts': 'Bun.serve({ port: 3000, fetch: () => Response.json({ ok: true }) });\n'
|
|
51
67
|
}
|
|
52
68
|
});
|
|
53
69
|
```
|
|
54
70
|
|
|
71
|
+
Foreground servers started in the terminal (`serve`, `npm run dev`, `node server.js`, `bun run server.ts`) hold the terminal open until `Ctrl+C` (`SIGINT`) and automatically free their virtual port on exit. Append `&` (e.g., `node server.js &`) or open a second terminal session (`+`) to run commands concurrently.
|
|
72
|
+
|
|
55
73
|
### Lightweight SQL Inline Editor & Playground
|
|
56
74
|
|
|
57
75
|
```ts
|
|
@@ -88,6 +106,25 @@ const sql = createSqlEditor(document.getElementById('sql')!, {
|
|
|
88
106
|
Full guides and API references live on the **[GitHub Wiki](https://github.com/innovatorved/code-lab/wiki)**.
|
|
89
107
|
|
|
90
108
|
|
|
109
|
+
## Embed Examples
|
|
110
|
+
|
|
111
|
+
Ready-to-copy starters live in `examples/`:
|
|
112
|
+
- [`examples/vanilla-embed.html`](./examples/vanilla-embed.html) — Zero-build CDN embed with customizable `settings`, language switcher, and Bun/TS server.
|
|
113
|
+
- [`examples/react-embed.tsx`](./examples/react-embed.tsx) — Reusable React / Next.js client component wrapper.
|
|
114
|
+
- [`examples/guided-lab-embed.html`](./examples/guided-lab-embed.html) — Step-by-step Guided Lab with hints, starter/solution files, and tests.
|
|
115
|
+
- [`examples/sql-playground-embed.html`](./examples/sql-playground-embed.html) — Standalone PostgreSQL / SQLite playground (~17 KB gzipped).
|
|
116
|
+
|
|
117
|
+
## Repository Layout
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
├── packages/ # Layered workspace packages (core, fs, settings, commands, editor, terminal, runtime, preview, ui, sql)
|
|
121
|
+
├── src/ # Workbench shell, POSIX shell, virtual runtime, SCM, search, diagnostics & language extensions
|
|
122
|
+
├── apps/web/ # Reference browser workbench entrypoint
|
|
123
|
+
├── examples/cloud-ide # Full Astro Cloud IDE demo app
|
|
124
|
+
├── tests/ # 48 unit/integration suites, E2E suites, and Playwright browser specs
|
|
125
|
+
└── tools/ # Build bundler, linter, architecture boundary checker, and gzip size guard
|
|
126
|
+
```
|
|
127
|
+
|
|
91
128
|
## Development
|
|
92
129
|
|
|
93
130
|
```bash
|
package/dist/code-lab-sql.css
CHANGED
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
/* @innovatorved/code-lab/sql — Lightweight SQL Editor & Playground Styles */
|
|
2
2
|
.cl-sql-root {
|
|
3
|
-
--cl-bg: var(--code-bg, var(--
|
|
4
|
-
--cl-fg: var(--code-fg, var(--fg, #
|
|
5
|
-
--cl-accent: var(--accent, #
|
|
6
|
-
--cl-
|
|
7
|
-
--cl-
|
|
8
|
-
--cl-
|
|
9
|
-
--cl-
|
|
10
|
-
--cl-
|
|
11
|
-
--cl-
|
|
12
|
-
--cl-
|
|
3
|
+
--cl-bg: var(--code-bg, var(--ds-canvas, var(--bg, #0f0f10)));
|
|
4
|
+
--cl-fg: var(--code-fg, var(--ds-ink, var(--fg, #f4f4f5)));
|
|
5
|
+
--cl-accent: var(--brand-accent, var(--accent, #f4f4f5));
|
|
6
|
+
--cl-accent-fg: var(--brand-accent-ink, var(--accent-fg, #0f0f10));
|
|
7
|
+
--cl-border: var(--ds-border, var(--border, #27272a));
|
|
8
|
+
--cl-font-sans: var(--ds-font-sans, var(--font-sans, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif));
|
|
9
|
+
--cl-font-mono: var(--ds-font-mono, var(--font-mono, "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace));
|
|
10
|
+
--cl-text-2xs: var(--ds-text-2xs, 0.6875rem);
|
|
11
|
+
--cl-text-xs: var(--ds-text-xs, 0.75rem);
|
|
12
|
+
--cl-text-sm: var(--ds-text-sm, 0.8125rem);
|
|
13
|
+
--cl-sql-gutter-bg: var(--ds-canvas-subtle, var(--bg-alt, #141415));
|
|
14
|
+
--cl-sql-gutter-fg: var(--ds-ink-faint, #8e8e97);
|
|
15
|
+
--cl-sql-popup-bg: var(--ds-surface, #18181a);
|
|
16
|
+
--cl-sql-popup-hover: var(--ds-surface-active, #28282b);
|
|
17
|
+
--cl-sql-selection: rgba(244, 244, 245, 0.18);
|
|
18
|
+
--cl-sql-kw: #f87171;
|
|
13
19
|
--cl-sql-fn: #c084fc;
|
|
14
|
-
--cl-sql-type: #
|
|
20
|
+
--cl-sql-type: #fb923c;
|
|
15
21
|
--cl-sql-str: #86efac;
|
|
16
|
-
--cl-sql-num: #
|
|
17
|
-
--cl-sql-op: #
|
|
18
|
-
--cl-sql-param: #
|
|
19
|
-
--cl-sql-qident: #
|
|
20
|
-
--cl-sql-comment: #
|
|
21
|
-
--cl-sql-error: #
|
|
22
|
-
--cl-sql-warn: #
|
|
23
|
-
--cl-sql-font-size:
|
|
22
|
+
--cl-sql-num: #fcd34d;
|
|
23
|
+
--cl-sql-op: #d4d4d8;
|
|
24
|
+
--cl-sql-param: #fbbf24;
|
|
25
|
+
--cl-sql-qident: #e4e4e7;
|
|
26
|
+
--cl-sql-comment: #8e8e97;
|
|
27
|
+
--cl-sql-error: #f87171;
|
|
28
|
+
--cl-sql-warn: #fbbf24;
|
|
29
|
+
--cl-sql-font-size: 0.8125rem;
|
|
24
30
|
--cl-sql-line-height: 1.55;
|
|
25
31
|
|
|
26
32
|
color-scheme: dark;
|
|
@@ -34,29 +40,33 @@
|
|
|
34
40
|
background: var(--cl-bg);
|
|
35
41
|
color: var(--cl-fg);
|
|
36
42
|
accent-color: var(--cl-accent);
|
|
37
|
-
font-family: var(--cl-font-
|
|
43
|
+
font-family: var(--cl-font-sans);
|
|
38
44
|
container-type: inline-size;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.cl-sql-root[data-cl-sql-theme="light"],
|
|
42
48
|
:root[data-theme="light"] .cl-sql-root:not([data-cl-sql-theme="dark"]) {
|
|
43
|
-
--cl-bg: var(--code-bg, var(--surface, #ffffff));
|
|
44
|
-
--cl-fg: var(--code-fg, var(--fg, #
|
|
45
|
-
--cl-accent: var(--accent, #
|
|
46
|
-
--cl-
|
|
47
|
-
--cl-
|
|
48
|
-
--cl-sql-gutter-
|
|
49
|
+
--cl-bg: var(--code-bg, var(--ds-surface, var(--surface, #ffffff)));
|
|
50
|
+
--cl-fg: var(--code-fg, var(--ds-ink, var(--fg, #18181b)));
|
|
51
|
+
--cl-accent: var(--brand-accent, var(--accent, #18181b));
|
|
52
|
+
--cl-accent-fg: var(--brand-accent-ink, var(--accent-fg, #ffffff));
|
|
53
|
+
--cl-border: var(--ds-border, var(--border, #e6e4df));
|
|
54
|
+
--cl-sql-gutter-bg: var(--ds-canvas, var(--bg, #f7f7f5));
|
|
55
|
+
--cl-sql-gutter-fg: var(--ds-ink-faint, #6e6a64);
|
|
49
56
|
--cl-sql-popup-bg: #ffffff;
|
|
50
|
-
--cl-sql-popup-hover:
|
|
51
|
-
--cl-sql-
|
|
52
|
-
--cl-sql-
|
|
53
|
-
--cl-sql-
|
|
54
|
-
--cl-sql-
|
|
55
|
-
--cl-sql-
|
|
56
|
-
--cl-sql-
|
|
57
|
-
--cl-sql-
|
|
58
|
-
--cl-sql-
|
|
59
|
-
--cl-sql-
|
|
57
|
+
--cl-sql-popup-hover: #ecebe7;
|
|
58
|
+
--cl-sql-selection: rgba(24, 24, 27, 0.14);
|
|
59
|
+
--cl-sql-kw: #c2410c;
|
|
60
|
+
--cl-sql-fn: #6d28d9;
|
|
61
|
+
--cl-sql-type: #9a3412;
|
|
62
|
+
--cl-sql-str: #067647;
|
|
63
|
+
--cl-sql-num: #b54708;
|
|
64
|
+
--cl-sql-op: #3f3f46;
|
|
65
|
+
--cl-sql-param: #b54708;
|
|
66
|
+
--cl-sql-qident: #18181b;
|
|
67
|
+
--cl-sql-comment: #6e6a64;
|
|
68
|
+
--cl-sql-error: #b42318;
|
|
69
|
+
--cl-sql-warn: #b54708;
|
|
60
70
|
color-scheme: light;
|
|
61
71
|
background: var(--cl-bg);
|
|
62
72
|
color: var(--cl-fg);
|
|
@@ -76,7 +86,7 @@
|
|
|
76
86
|
gap: 8px;
|
|
77
87
|
padding: 6px 10px;
|
|
78
88
|
border-bottom: 1px solid var(--cl-border);
|
|
79
|
-
font-size:
|
|
89
|
+
font-size: var(--cl-text-xs);
|
|
80
90
|
background: var(--cl-sql-gutter-bg);
|
|
81
91
|
border-radius: 7px 7px 0 0;
|
|
82
92
|
}
|
|
@@ -92,13 +102,14 @@
|
|
|
92
102
|
.cl-sql-dialect-pill {
|
|
93
103
|
display: inline-flex;
|
|
94
104
|
align-items: center;
|
|
95
|
-
padding: 2px
|
|
105
|
+
padding: 2px 8px;
|
|
96
106
|
border-radius: 999px;
|
|
97
|
-
font-
|
|
107
|
+
font-family: var(--cl-font-mono);
|
|
108
|
+
font-size: var(--cl-text-2xs);
|
|
98
109
|
font-weight: 600;
|
|
99
110
|
letter-spacing: 0.02em;
|
|
100
111
|
border: 1px solid var(--cl-border);
|
|
101
|
-
color: var(--cl-
|
|
112
|
+
color: var(--cl-fg);
|
|
102
113
|
}
|
|
103
114
|
|
|
104
115
|
.cl-sql-btn {
|
|
@@ -107,15 +118,16 @@
|
|
|
107
118
|
align-items: center;
|
|
108
119
|
gap: 5px;
|
|
109
120
|
padding: 4px 10px;
|
|
110
|
-
border-radius:
|
|
121
|
+
border-radius: 6px;
|
|
111
122
|
border: 1px solid var(--cl-border);
|
|
112
123
|
background: transparent;
|
|
113
124
|
color: var(--cl-fg);
|
|
114
|
-
font-family:
|
|
115
|
-
font-size:
|
|
125
|
+
font-family: var(--cl-font-sans);
|
|
126
|
+
font-size: var(--cl-text-xs);
|
|
116
127
|
font-weight: 500;
|
|
117
128
|
cursor: pointer;
|
|
118
129
|
touch-action: manipulation;
|
|
130
|
+
transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
|
|
119
131
|
}
|
|
120
132
|
|
|
121
133
|
.cl-sql-btn:hover {
|
|
@@ -125,11 +137,11 @@
|
|
|
125
137
|
.cl-sql-btn-primary {
|
|
126
138
|
background: var(--cl-accent);
|
|
127
139
|
border-color: var(--cl-accent);
|
|
128
|
-
color:
|
|
140
|
+
color: var(--cl-accent-fg);
|
|
129
141
|
}
|
|
130
142
|
|
|
131
143
|
.cl-sql-btn:focus-visible {
|
|
132
|
-
outline:
|
|
144
|
+
outline: 1px solid var(--cl-accent);
|
|
133
145
|
outline-offset: 2px;
|
|
134
146
|
}
|
|
135
147
|
|
|
@@ -163,12 +175,12 @@
|
|
|
163
175
|
border-left: 1px solid var(--cl-border);
|
|
164
176
|
padding: 10px 12px;
|
|
165
177
|
overflow: auto;
|
|
166
|
-
font-size:
|
|
178
|
+
font-size: var(--cl-text-sm);
|
|
167
179
|
}
|
|
168
180
|
|
|
169
181
|
.cl-sql-ResultsEmpty {
|
|
170
182
|
color: var(--cl-sql-gutter-fg);
|
|
171
|
-
font-size:
|
|
183
|
+
font-size: var(--cl-text-xs);
|
|
172
184
|
}
|
|
173
185
|
|
|
174
186
|
.cl-sql-surface {
|
|
@@ -187,6 +199,8 @@
|
|
|
187
199
|
background: var(--cl-sql-gutter-bg);
|
|
188
200
|
border-right: 1px solid var(--cl-border);
|
|
189
201
|
color: var(--cl-sql-gutter-fg);
|
|
202
|
+
font-family: var(--cl-font-mono);
|
|
203
|
+
font-variant-numeric: tabular-nums;
|
|
190
204
|
font-size: var(--cl-sql-font-size);
|
|
191
205
|
line-height: var(--cl-sql-line-height);
|
|
192
206
|
overflow: hidden;
|
|
@@ -281,7 +295,7 @@
|
|
|
281
295
|
}
|
|
282
296
|
|
|
283
297
|
.cl-sql-textarea::selection {
|
|
284
|
-
background:
|
|
298
|
+
background: var(--cl-sql-selection);
|
|
285
299
|
}
|
|
286
300
|
|
|
287
301
|
.cl-sql-textarea:focus-visible {
|
|
@@ -326,11 +340,12 @@
|
|
|
326
340
|
|
|
327
341
|
.cl-sql-diagnostics {
|
|
328
342
|
display: none;
|
|
329
|
-
padding:
|
|
343
|
+
padding: 8px 12px;
|
|
330
344
|
border-top: 1px solid var(--cl-border);
|
|
331
|
-
font-
|
|
345
|
+
font-family: var(--cl-font-sans);
|
|
346
|
+
font-size: var(--cl-text-xs);
|
|
332
347
|
line-height: 1.45;
|
|
333
|
-
background: rgba(239, 68, 68, 0.
|
|
348
|
+
background: rgba(239, 68, 68, 0.08);
|
|
334
349
|
color: var(--cl-fg);
|
|
335
350
|
}
|
|
336
351
|
|
|
@@ -346,8 +361,9 @@
|
|
|
346
361
|
}
|
|
347
362
|
|
|
348
363
|
.cl-sql-diag-badge {
|
|
349
|
-
font-
|
|
350
|
-
font-
|
|
364
|
+
font-family: var(--cl-font-mono);
|
|
365
|
+
font-size: var(--cl-text-2xs);
|
|
366
|
+
font-weight: 600;
|
|
351
367
|
text-transform: uppercase;
|
|
352
368
|
padding: 1px 5px;
|
|
353
369
|
border-radius: 4px;
|
|
@@ -357,14 +373,14 @@
|
|
|
357
373
|
|
|
358
374
|
.cl-sql-diag-badge[data-severity="warning"] {
|
|
359
375
|
background: var(--cl-sql-warn);
|
|
360
|
-
color: #
|
|
376
|
+
color: #09090b;
|
|
361
377
|
}
|
|
362
378
|
|
|
363
379
|
.cl-sql-diag-hint {
|
|
364
380
|
width: 100%;
|
|
365
381
|
margin-top: 2px;
|
|
366
382
|
color: var(--cl-sql-gutter-fg);
|
|
367
|
-
font-size:
|
|
383
|
+
font-size: var(--cl-text-xs);
|
|
368
384
|
}
|
|
369
385
|
|
|
370
386
|
/* Schema-aware completion popup */
|
|
@@ -381,10 +397,11 @@
|
|
|
381
397
|
padding: 4px;
|
|
382
398
|
list-style: none;
|
|
383
399
|
border: 1px solid var(--cl-border);
|
|
384
|
-
border-radius:
|
|
400
|
+
border-radius: 8px;
|
|
385
401
|
background: var(--cl-sql-popup-bg);
|
|
386
|
-
box-shadow: 0
|
|
387
|
-
font-
|
|
402
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
|
|
403
|
+
font-family: var(--cl-font-sans);
|
|
404
|
+
font-size: var(--cl-text-xs);
|
|
388
405
|
}
|
|
389
406
|
|
|
390
407
|
.cl-sql-completions[data-open="true"] {
|
|
@@ -397,7 +414,7 @@
|
|
|
397
414
|
justify-content: space-between;
|
|
398
415
|
gap: 8px;
|
|
399
416
|
padding: 5px 8px;
|
|
400
|
-
border-radius:
|
|
417
|
+
border-radius: 6px;
|
|
401
418
|
cursor: pointer;
|
|
402
419
|
touch-action: manipulation;
|
|
403
420
|
}
|
|
@@ -421,14 +438,17 @@
|
|
|
421
438
|
width: 18px;
|
|
422
439
|
height: 18px;
|
|
423
440
|
border-radius: 4px;
|
|
441
|
+
font-family: var(--cl-font-mono);
|
|
424
442
|
font-size: 10px;
|
|
425
443
|
font-weight: 700;
|
|
426
|
-
|
|
427
|
-
|
|
444
|
+
border: 1px solid var(--cl-border);
|
|
445
|
+
background: var(--cl-sql-gutter-bg);
|
|
446
|
+
color: var(--cl-fg);
|
|
428
447
|
flex-shrink: 0;
|
|
429
448
|
}
|
|
430
449
|
|
|
431
450
|
.cl-sql-comp-label {
|
|
451
|
+
font-family: var(--cl-font-mono);
|
|
432
452
|
font-weight: 600;
|
|
433
453
|
overflow: hidden;
|
|
434
454
|
text-overflow: ellipsis;
|
|
@@ -440,11 +460,12 @@
|
|
|
440
460
|
align-items: center;
|
|
441
461
|
gap: 5px;
|
|
442
462
|
flex-shrink: 0;
|
|
443
|
-
font-size:
|
|
463
|
+
font-size: var(--cl-text-2xs);
|
|
444
464
|
color: var(--cl-sql-gutter-fg);
|
|
445
465
|
}
|
|
446
466
|
|
|
447
467
|
.cl-sql-comp-badge {
|
|
468
|
+
font-family: var(--cl-font-mono);
|
|
448
469
|
padding: 1px 5px;
|
|
449
470
|
border-radius: 4px;
|
|
450
471
|
border: 1px solid var(--cl-border);
|
|
@@ -455,9 +476,11 @@
|
|
|
455
476
|
display: flex;
|
|
456
477
|
align-items: center;
|
|
457
478
|
justify-content: space-between;
|
|
458
|
-
padding:
|
|
479
|
+
padding: 4px 10px;
|
|
459
480
|
border-top: 1px solid var(--cl-border);
|
|
460
|
-
font-
|
|
481
|
+
font-family: var(--cl-font-sans);
|
|
482
|
+
font-size: var(--cl-text-2xs);
|
|
483
|
+
font-variant-numeric: tabular-nums;
|
|
461
484
|
color: var(--cl-sql-gutter-fg);
|
|
462
485
|
}
|
|
463
486
|
|