@innovatorved/code-lab 0.7.0 → 0.7.1
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 -2
- package/CHANGELOG.md +20 -0
- package/README.md +2 -2
- package/dist/apps/web/src/index.d.ts +0 -9
- package/dist/code-lab-sql.esm.js +19 -19
- package/dist/code-lab-sql.umd.js +20 -20
- package/dist/code-lab.css +1 -1
- package/dist/code-lab.d.ts +1 -1
- package/dist/code-lab.esm.js +679 -1439
- package/dist/code-lab.js +678 -1438
- package/dist/extensions/cpp.esm.js +132 -8760
- package/dist/extensions/cpp.js +124 -8770
- package/dist/extensions/guided-lab.esm.js +33 -6836
- package/dist/extensions/guided-lab.js +33 -6854
- package/dist/extensions/javascript.esm.js +1 -36
- package/dist/extensions/javascript.js +1 -58
- package/dist/extensions/python.esm.js +79 -8118
- package/dist/extensions/python.js +79 -8136
- package/dist/extensions/typescript.esm.js +1 -55
- package/dist/extensions/typescript.js +1 -77
- package/dist/modular-kernel.d.ts +0 -4
- package/dist/preview-sw.js +1 -1
- package/dist/runtime.esm.js +77 -77
- package/dist/runtime.js +77 -77
- package/dist/schemas.d.ts +9 -0
- package/dist/schemas.esm.js +33 -6815
- package/dist/schemas.js +33 -6831
- package/dist/shell.esm.js +33 -33
- package/dist/shell.js +33 -33
- package/dist/terminal.esm.js +8 -6
- package/dist/terminal.js +6 -6
- package/dist/workbench/command-palette.d.ts +0 -4
- package/dist/workbench/index.d.ts +0 -20
- package/dist/workbench/intellisense.d.ts +1 -7
- package/package.json +3 -10
- package/src/code-lab.css +4 -502
- package/src/extensions/cpp.ts +11 -29
- package/src/extensions/guided-lab.ts +6 -2
- package/src/extensions/python.ts +9 -3
- package/src/modular-kernel.ts +0 -4
- package/src/runtime.ts +124 -39
- package/src/schemas.ts +2 -2
- package/src/shell.ts +3 -0
- package/src/terminal.ts +4 -2
- package/src/workbench/command-palette.ts +22 -302
- package/src/workbench/diff-editor.ts +2 -0
- package/src/workbench/icons.ts +1 -1
- package/src/workbench/index.ts +0 -15
- package/src/workbench/intellisense.ts +17 -4
- package/src/workbench.ts +68 -375
- package/dist/code-lab.umd.js +0 -6117
- package/dist/packages/editor/src/index.d.ts +0 -118
- package/dist/packages/preview/src/index.d.ts +0 -34
- package/dist/packages/runtime/src/index.d.ts +0 -47
- package/dist/packages/terminal/src/index.d.ts +0 -54
- package/dist/workbench/drawer.d.ts +0 -18
- package/dist/workbench/file-tree.d.ts +0 -11
- package/dist/workbench/guided-pane.d.ts +0 -11
- package/dist/workbench/styles.d.ts +0 -4
- package/dist/workbench/toolbar.d.ts +0 -17
- package/packages/commands/README.md +0 -7
- package/packages/commands/package.json +0 -16
- package/packages/commands/src/index.ts +0 -467
- package/packages/commands/tsconfig.json +0 -22
- package/packages/core/README.md +0 -12
- package/packages/core/package.json +0 -13
- package/packages/core/src/di.ts +0 -147
- package/packages/core/src/disposable.ts +0 -112
- package/packages/core/src/errors.ts +0 -205
- package/packages/core/src/events.ts +0 -157
- package/packages/core/src/index.ts +0 -49
- package/packages/core/src/path.ts +0 -118
- package/packages/core/src/registry.ts +0 -61
- package/packages/core/tsconfig.json +0 -19
- package/packages/editor/README.md +0 -9
- package/packages/editor/package.json +0 -18
- package/packages/editor/src/index.ts +0 -344
- package/packages/editor/tsconfig.json +0 -24
- package/packages/fs/README.md +0 -7
- package/packages/fs/package.json +0 -16
- package/packages/fs/src/backends.ts +0 -301
- package/packages/fs/src/index.ts +0 -18
- package/packages/fs/src/types.ts +0 -44
- package/packages/fs/src/vfs-service.ts +0 -257
- package/packages/fs/tsconfig.json +0 -22
- package/packages/preview/README.md +0 -3
- package/packages/preview/package.json +0 -16
- package/packages/preview/src/index.ts +0 -125
- package/packages/preview/tsconfig.json +0 -22
- package/packages/runtime/README.md +0 -3
- package/packages/runtime/package.json +0 -17
- package/packages/runtime/src/index.ts +0 -134
- package/packages/runtime/tsconfig.json +0 -23
- package/packages/settings/README.md +0 -7
- package/packages/settings/package.json +0 -16
- package/packages/settings/src/builtin-schemas.ts +0 -262
- package/packages/settings/src/configuration-service.ts +0 -609
- package/packages/settings/src/index.ts +0 -38
- package/packages/settings/src/jsonc.ts +0 -189
- package/packages/settings/src/schema.ts +0 -164
- package/packages/settings/tsconfig.json +0 -22
- package/packages/sql/README.md +0 -12
- package/packages/sql/package.json +0 -13
- package/packages/sql/src/completions.ts +0 -359
- package/packages/sql/src/diagnostics.ts +0 -200
- package/packages/sql/src/formatter.ts +0 -271
- package/packages/sql/src/index.ts +0 -54
- package/packages/sql/src/sql-editor.ts +0 -802
- package/packages/sql/src/styles.ts +0 -524
- package/packages/sql/src/tokenizer.ts +0 -457
- package/packages/sql/src/types.ts +0 -148
- package/packages/sql/tsconfig.json +0 -19
- package/packages/terminal/README.md +0 -3
- package/packages/terminal/package.json +0 -16
- package/packages/terminal/src/index.ts +0 -183
- package/packages/terminal/tsconfig.json +0 -22
- package/packages/ui/README.md +0 -8
- package/packages/ui/package.json +0 -18
- package/packages/ui/src/index.ts +0 -40
- package/packages/ui/src/observability.ts +0 -173
- package/packages/ui/src/plugin-registry.ts +0 -289
- package/packages/ui/src/settings-dialog.ts +0 -939
- package/packages/ui/src/themes.ts +0 -333
- package/packages/ui/tsconfig.json +0 -24
- package/src/workbench/drawer.ts +0 -157
- package/src/workbench/file-tree.ts +0 -51
- package/src/workbench/guided-pane.ts +0 -43
- package/src/workbench/styles.ts +0 -211
- package/src/workbench/toolbar.ts +0 -182
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function javascriptExtension(workbench, options = {}) {
|
|
3
|
-
if (!workbench) return workbench;
|
|
4
|
-
if (!workbench.enabledLanguages || !(workbench.enabledLanguages instanceof Set)) {
|
|
5
|
-
workbench.enabledLanguages = /* @__PURE__ */ new Set(["js"]);
|
|
6
|
-
} else {
|
|
7
|
-
workbench.enabledLanguages.add("js");
|
|
8
|
-
}
|
|
9
|
-
if (options.files && typeof options.files === "object") {
|
|
10
|
-
workbench.jsFiles = { ...workbench.jsFiles || {}, ...options.files };
|
|
11
|
-
}
|
|
12
|
-
if (options.entry && !workbench.entry) {
|
|
13
|
-
workbench.entry = options.entry;
|
|
14
|
-
}
|
|
15
|
-
workbench.hasMultipleLanguages = workbench.enabledLanguages.size > 1;
|
|
16
|
-
if (typeof workbench._renderShell === "function" && workbench.container) {
|
|
17
|
-
workbench._renderShell();
|
|
18
|
-
if (typeof workbench._bindEvents === "function") workbench._bindEvents();
|
|
19
|
-
if (typeof workbench._renderFileLists === "function") workbench._renderFileLists();
|
|
20
|
-
}
|
|
21
|
-
return workbench;
|
|
22
|
-
}
|
|
23
|
-
function createJavaScriptExtension(options = {}) {
|
|
24
|
-
const plugin = (workbench) => javascriptExtension(workbench, options);
|
|
25
|
-
plugin.extensionName = "javascript";
|
|
26
|
-
plugin.languageId = "js";
|
|
27
|
-
return plugin;
|
|
28
|
-
}
|
|
29
|
-
var jsExtension = javascriptExtension;
|
|
30
|
-
var javascript_default = javascriptExtension;
|
|
31
|
-
export {
|
|
32
|
-
createJavaScriptExtension,
|
|
33
|
-
javascript_default as default,
|
|
34
|
-
javascriptExtension,
|
|
35
|
-
jsExtension
|
|
36
|
-
};
|
|
1
|
+
function n(e,t={}){return e&&(!e.enabledLanguages||!(e.enabledLanguages instanceof Set)?e.enabledLanguages=new Set(["js"]):e.enabledLanguages.add("js"),t.files&&typeof t.files=="object"&&(e.jsFiles={...e.jsFiles||{},...t.files}),t.entry&&!e.entry&&(e.entry=t.entry),e.hasMultipleLanguages=e.enabledLanguages.size>1,typeof e._renderShell=="function"&&e.container&&(e._renderShell(),typeof e._bindEvents=="function"&&e._bindEvents(),typeof e._renderFileLists=="function"&&e._renderFileLists()),e)}function s(e={}){let t=i=>n(i,e);return t.extensionName="javascript",t.languageId="js",t}var a=n,f=n;export{s as createJavaScriptExtension,f as default,n as javascriptExtension,a as jsExtension};
|
|
@@ -1,59 +1,2 @@
|
|
|
1
|
-
var CodeLabJavaScript = (() => {
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/extensions/javascript.ts
|
|
21
|
-
var javascript_exports = {};
|
|
22
|
-
__export(javascript_exports, {
|
|
23
|
-
createJavaScriptExtension: () => createJavaScriptExtension,
|
|
24
|
-
default: () => javascript_default,
|
|
25
|
-
javascriptExtension: () => javascriptExtension,
|
|
26
|
-
jsExtension: () => jsExtension
|
|
27
|
-
});
|
|
28
|
-
function javascriptExtension(workbench, options = {}) {
|
|
29
|
-
if (!workbench) return workbench;
|
|
30
|
-
if (!workbench.enabledLanguages || !(workbench.enabledLanguages instanceof Set)) {
|
|
31
|
-
workbench.enabledLanguages = /* @__PURE__ */ new Set(["js"]);
|
|
32
|
-
} else {
|
|
33
|
-
workbench.enabledLanguages.add("js");
|
|
34
|
-
}
|
|
35
|
-
if (options.files && typeof options.files === "object") {
|
|
36
|
-
workbench.jsFiles = { ...workbench.jsFiles || {}, ...options.files };
|
|
37
|
-
}
|
|
38
|
-
if (options.entry && !workbench.entry) {
|
|
39
|
-
workbench.entry = options.entry;
|
|
40
|
-
}
|
|
41
|
-
workbench.hasMultipleLanguages = workbench.enabledLanguages.size > 1;
|
|
42
|
-
if (typeof workbench._renderShell === "function" && workbench.container) {
|
|
43
|
-
workbench._renderShell();
|
|
44
|
-
if (typeof workbench._bindEvents === "function") workbench._bindEvents();
|
|
45
|
-
if (typeof workbench._renderFileLists === "function") workbench._renderFileLists();
|
|
46
|
-
}
|
|
47
|
-
return workbench;
|
|
48
|
-
}
|
|
49
|
-
function createJavaScriptExtension(options = {}) {
|
|
50
|
-
const plugin = (workbench) => javascriptExtension(workbench, options);
|
|
51
|
-
plugin.extensionName = "javascript";
|
|
52
|
-
plugin.languageId = "js";
|
|
53
|
-
return plugin;
|
|
54
|
-
}
|
|
55
|
-
var jsExtension = javascriptExtension;
|
|
56
|
-
var javascript_default = javascriptExtension;
|
|
57
|
-
return __toCommonJS(javascript_exports);
|
|
58
|
-
})();
|
|
1
|
+
var CodeLabJavaScript=(()=>{var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var u=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of g(t))!r.call(e,i)&&i!==n&&a(e,i,{get:()=>t[i],enumerable:!(f=l(t,i))||f.enumerable});return e};var p=e=>d(a({},"__esModule",{value:!0}),e);var v={};u(v,{createJavaScriptExtension:()=>x,default:()=>j,javascriptExtension:()=>s,jsExtension:()=>y});function s(e,t={}){return e&&(!e.enabledLanguages||!(e.enabledLanguages instanceof Set)?e.enabledLanguages=new Set(["js"]):e.enabledLanguages.add("js"),t.files&&typeof t.files=="object"&&(e.jsFiles={...e.jsFiles||{},...t.files}),t.entry&&!e.entry&&(e.entry=t.entry),e.hasMultipleLanguages=e.enabledLanguages.size>1,typeof e._renderShell=="function"&&e.container&&(e._renderShell(),typeof e._bindEvents=="function"&&e._bindEvents(),typeof e._renderFileLists=="function"&&e._renderFileLists()),e)}function x(e={}){let t=n=>s(n,e);return t.extensionName="javascript",t.languageId="js",t}var y=s,j=s;return p(v);})();
|
|
59
2
|
if(typeof module!=="undefined"&&module.exports)module.exports=CodeLabJavaScript;if(typeof globalThis!=="undefined")globalThis.CodeLabJavaScript=CodeLabJavaScript;
|