@innovatorved/code-lab 0.1.4 → 0.1.6
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 +2 -1
- package/README.md +4 -2
- package/dist/code-lab.css +49 -0
- package/dist/code-lab.d.ts +3 -1
- package/dist/code-lab.esm.js +1472 -87
- package/dist/code-lab.js +1462 -86
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.esm.js +783 -32
- package/dist/runtime.js +740 -21
- package/dist/schemas.esm.js +4191 -0
- package/dist/schemas.js +4207 -0
- package/dist/shell.esm.js +657 -64
- package/dist/shell.js +657 -64
- package/dist/terminal.esm.js +7 -1
- package/package.json +9 -4
- package/src/code-lab.css +49 -0
- package/src/runtime.js +740 -21
- package/src/runtime.ts +741 -21
- package/src/shell.js +657 -64
- package/src/shell.ts +657 -64
- package/src/workbench.js +64 -1
- package/src/workbench.ts +64 -1
package/dist/terminal.esm.js
CHANGED
|
@@ -1071,6 +1071,9 @@ const createTerminal = CodeLabTerminal.createTerminal;
|
|
|
1071
1071
|
const createPTYTerminalEngine = CodeLabTerminal.createPTYTerminalEngine;
|
|
1072
1072
|
const ansiToHtml = CodeLabTerminal.ansiToHtml;
|
|
1073
1073
|
const parseAnsiToHtml = CodeLabTerminal.parseAnsiToHtml;
|
|
1074
|
+
const escapeHtml = CodeLabTerminal.escapeHtml;
|
|
1075
|
+
const ANSI_CODE_MAP = CodeLabTerminal.ANSI_CODE_MAP;
|
|
1076
|
+
const resolveAnsiControlCodes = CodeLabTerminal.resolveAnsiControlCodes;
|
|
1074
1077
|
|
|
1075
1078
|
export {
|
|
1076
1079
|
CodeLabTerminal,
|
|
@@ -1078,6 +1081,9 @@ export {
|
|
|
1078
1081
|
createTerminal,
|
|
1079
1082
|
createPTYTerminalEngine,
|
|
1080
1083
|
ansiToHtml,
|
|
1081
|
-
parseAnsiToHtml
|
|
1084
|
+
parseAnsiToHtml,
|
|
1085
|
+
escapeHtml,
|
|
1086
|
+
ANSI_CODE_MAP,
|
|
1087
|
+
resolveAnsiControlCodes
|
|
1082
1088
|
};
|
|
1083
1089
|
export default CodeLabTerminal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovatorved/code-lab",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Standalone browser-native IDE Workbench, POSIX Shell & Coreutils, PTY Terminal, and Web Worker Node.js/Bun Virtual Runtime.",
|
|
5
5
|
"main": "./dist/code-lab.js",
|
|
6
6
|
"module": "./dist/code-lab.esm.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"./schemas": {
|
|
41
41
|
"types": "./dist/schemas.d.ts",
|
|
42
|
-
"import": "./dist/schemas.js",
|
|
42
|
+
"import": "./dist/schemas.esm.js",
|
|
43
43
|
"require": "./dist/schemas.js",
|
|
44
44
|
"default": "./dist/schemas.js"
|
|
45
45
|
},
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"./sample": "./dist/sample.html",
|
|
51
51
|
"./preview-sw.js": "./dist/preview-sw.js",
|
|
52
52
|
"./preview-sw": "./dist/preview-sw.js",
|
|
53
|
-
"./sw": "./dist/preview-sw.js"
|
|
53
|
+
"./sw": "./dist/preview-sw.js",
|
|
54
|
+
"./package.json": "./package.json"
|
|
54
55
|
},
|
|
55
56
|
"files": [
|
|
56
57
|
"dist",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"build": "bun run tools/bundle.js",
|
|
73
74
|
"typecheck": "bun x tsc --noEmit",
|
|
74
75
|
"test": "bun run tests/test-all-builds.js",
|
|
75
|
-
"test:all": "bun run tools/bundle.js && bun run tests/test-all-builds.js && bun run tests/test-runtime-advanced.js && bun run tests/test-option1-shell-bun-http.js && bun run tests/test-coreutils-adversarial.js && bun run tests/test-stress-shell.js && bun run tests/test-workbench-ui.js && bun run tests/test-terminal-streaming.js && bun run tests/test-git-clone-streaming.js && bun run tests/test-m1-adversarial-challenger.js && bun run tests/test-m1-interruption-lifecycle-stress.js && bun run tests/test-gfm-markdown.js && bun run tests/test-m2-adversarial-syntax.js && bun run tests/test-m2-adversarial-interactive.js && bun run tests/test-web-preview.js && bun run tests/test-preview-sw.js",
|
|
76
|
+
"test:all": "bun run tools/bundle.js && bun run tests/test-all-builds.js && bun run tests/test-runtime-advanced.js && bun run tests/test-option1-shell-bun-http.js && bun run tests/test-frameworks.js && bun run tests/test-esm-exports.js && bun run tests/test-installer-integrity.js && bun run tests/test-coreutils-adversarial.js && bun run tests/test-stress-shell.js && bun run tests/test-workbench-ui.js && bun run tests/test-terminal-streaming.js && bun run tests/test-git-clone-streaming.js && bun run tests/test-m1-adversarial-challenger.js && bun run tests/test-m1-interruption-lifecycle-stress.js && bun run tests/test-gfm-markdown.js && bun run tests/test-m2-adversarial-syntax.js && bun run tests/test-m2-adversarial-interactive.js && bun run tests/test-web-preview.js && bun run tests/test-preview-sw.js",
|
|
76
77
|
"pack:check": "bun pm pack --dry-run"
|
|
77
78
|
},
|
|
78
79
|
"dependencies": {
|
|
@@ -83,6 +84,10 @@
|
|
|
83
84
|
"esbuild": "^0.24.0",
|
|
84
85
|
"typescript": "^5.6.3"
|
|
85
86
|
},
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public",
|
|
89
|
+
"registry": "https://registry.npmjs.org/"
|
|
90
|
+
},
|
|
86
91
|
"keywords": [
|
|
87
92
|
"ide",
|
|
88
93
|
"code-playground",
|
package/src/code-lab.css
CHANGED
|
@@ -4353,3 +4353,52 @@ code-lab,
|
|
|
4353
4353
|
font-size: 11px;
|
|
4354
4354
|
color: var(--cl-fg-faint);
|
|
4355
4355
|
}
|
|
4356
|
+
|
|
4357
|
+
.codelab-preview-empty {
|
|
4358
|
+
display: flex;
|
|
4359
|
+
flex-direction: column;
|
|
4360
|
+
align-items: center;
|
|
4361
|
+
gap: 8px;
|
|
4362
|
+
padding: 28px 20px;
|
|
4363
|
+
text-align: center;
|
|
4364
|
+
border-top: 1px solid var(--cl-border);
|
|
4365
|
+
background: var(--cl-bg-subtle, transparent);
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
.codelab-preview-empty__icon {
|
|
4369
|
+
display: inline-flex;
|
|
4370
|
+
align-items: center;
|
|
4371
|
+
justify-content: center;
|
|
4372
|
+
width: 38px;
|
|
4373
|
+
height: 38px;
|
|
4374
|
+
border-radius: 50%;
|
|
4375
|
+
color: var(--cl-accent, #4f9cf9);
|
|
4376
|
+
background: color-mix(in srgb, var(--cl-accent, #4f9cf9) 14%, transparent);
|
|
4377
|
+
}
|
|
4378
|
+
|
|
4379
|
+
.codelab-preview-empty__title {
|
|
4380
|
+
font-size: 13px;
|
|
4381
|
+
font-weight: 600;
|
|
4382
|
+
color: var(--cl-fg);
|
|
4383
|
+
}
|
|
4384
|
+
|
|
4385
|
+
.codelab-preview-empty__text {
|
|
4386
|
+
max-width: 440px;
|
|
4387
|
+
font-size: 12px;
|
|
4388
|
+
line-height: 1.5;
|
|
4389
|
+
color: var(--cl-fg-muted);
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
.codelab-preview-empty__text code,
|
|
4393
|
+
.codelab-preview-empty__hint code {
|
|
4394
|
+
font-family: var(--cl-font-mono);
|
|
4395
|
+
font-size: 11px;
|
|
4396
|
+
padding: 1px 5px;
|
|
4397
|
+
border-radius: 4px;
|
|
4398
|
+
background: color-mix(in srgb, var(--cl-fg, #fff) 8%, transparent);
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
.codelab-preview-empty__hint {
|
|
4402
|
+
font-size: 11px;
|
|
4403
|
+
color: var(--cl-fg-faint);
|
|
4404
|
+
}
|