online-compiler-widget 1.0.3 → 1.0.5
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/{cssMode-nHrB9Mnr.js → cssMode-51r3zeoX.js} +3 -3
- package/dist/{freemarker2-BoiXdkJM.js → freemarker2-Dryc83OH.js} +1 -1
- package/dist/{handlebars-C7PJzkmo.js → handlebars-CFqhC-RF.js} +1 -1
- package/dist/{html-D_xe_tUa.js → html-xG9FubLm.js} +1 -1
- package/dist/{htmlMode-Dk_luXu_.js → htmlMode-CL_zNQaG.js} +3 -3
- package/dist/{index-Ds0EJmOd.js → index-CNd5k1g-.js} +34 -34
- package/dist/index.d.ts +412 -0
- package/dist/index.js +1 -1
- package/dist/{javascript-CUK67ITD.js → javascript-DBAZQTih.js} +1 -1
- package/dist/{jsonMode-BIAYTpVF.js → jsonMode-CQA4Q9zL.js} +3 -3
- package/dist/{liquid-Cgsk8EmK.js → liquid-DtAPPwIy.js} +1 -1
- package/dist/{lspLanguageFeatures-HqO1l9Me.js → lspLanguageFeatures-DTdAGxCM.js} +1 -1
- package/dist/{mdx-QboWmT4M.js → mdx-D_MA3eIc.js} +1 -1
- package/dist/{python-kIZaMFF7.js → python-Dm3Rbgtc.js} +1 -1
- package/dist/{razor-ms2cCMGp.js → razor-CfIE724O.js} +1 -1
- package/dist/{tsMode-BiXWAJYS.js → tsMode-CESu8luU.js} +1 -1
- package/dist/{typescript-ByMmjZ38.js → typescript-D7huPAPa.js} +1 -1
- package/dist/{xml-iOXTZgNN.js → xml-DD0g2Gyb.js} +1 -1
- package/dist/{yaml-RRlyy-QW.js → yaml-CYLxpBTf.js} +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as h, l as s } from "./index-
|
|
2
|
-
import { C as c, H as u, D as p, a as m, R as f, b as _, c as w, d as k, F as v, e as D, S as P, f as R, g as I } from "./lspLanguageFeatures-
|
|
3
|
-
import { h as b, i as H, j as y, t as U, k as T } from "./lspLanguageFeatures-
|
|
1
|
+
import { c as h, l as s } from "./index-CNd5k1g-.js";
|
|
2
|
+
import { C as c, H as u, D as p, a as m, R as f, b as _, c as w, d as k, F as v, e as D, S as P, f as R, g as I } from "./lspLanguageFeatures-DTdAGxCM.js";
|
|
3
|
+
import { h as b, i as H, j as y, t as U, k as T } from "./lspLanguageFeatures-DTdAGxCM.js";
|
|
4
4
|
const C = 2 * 60 * 1e3;
|
|
5
5
|
class A {
|
|
6
6
|
constructor(o) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as D, l as t } from "./index-
|
|
2
|
-
import { H as d, D as l, h as c, F as u, b as h, S as m, c as p, f as w, g as _, C as R } from "./lspLanguageFeatures-
|
|
3
|
-
import { a as E, e as H, d as b, R as y, i as T, j as U, t as x, k as M } from "./lspLanguageFeatures-
|
|
1
|
+
import { c as D, l as t } from "./index-CNd5k1g-.js";
|
|
2
|
+
import { H as d, D as l, h as c, F as u, b as h, S as m, c as p, f as w, g as _, C as R } from "./lspLanguageFeatures-DTdAGxCM.js";
|
|
3
|
+
import { a as E, e as H, d as b, R as y, i as T, j as U, t as x, k as M } from "./lspLanguageFeatures-DTdAGxCM.js";
|
|
4
4
|
const I = 2 * 60 * 1e3;
|
|
5
5
|
class f {
|
|
6
6
|
constructor(n) {
|
|
@@ -462,7 +462,7 @@ const Fse = "FileExplorer-module__fileExplorer___uaB0I", Wse = "FileExplorer-mod
|
|
|
462
462
|
children: p ? "▼" : "▶"
|
|
463
463
|
}
|
|
464
464
|
),
|
|
465
|
-
/* @__PURE__ */ fe.jsx("span", { className: ht.itemIcon, children: f ? /* @__PURE__ */ fe.jsx(
|
|
465
|
+
/* @__PURE__ */ fe.jsx("span", { className: ht.itemIcon, children: f ? /* @__PURE__ */ fe.jsx("img", { src: voe, className: ht.folderIcon }) : /* @__PURE__ */ fe.jsx("span", { className: ht.fileIcon, children: "📄" }) }),
|
|
466
466
|
i ? /* @__PURE__ */ fe.jsx("div", { className: ht.editContainer, children: /* @__PURE__ */ fe.jsx(
|
|
467
467
|
"input",
|
|
468
468
|
{
|
|
@@ -848,7 +848,7 @@ const Fse = "FileExplorer-module__fileExplorer___uaB0I", Wse = "FileExplorer-mod
|
|
|
848
848
|
}
|
|
849
849
|
),
|
|
850
850
|
/* @__PURE__ */ fe.jsxs("div", { className: ht.header, children: [
|
|
851
|
-
/* @__PURE__ */ fe.jsx(
|
|
851
|
+
/* @__PURE__ */ fe.jsx("img", { src: Coe, className: ht.documentIcon }),
|
|
852
852
|
/* @__PURE__ */ fe.jsx("span", { children: "Файлы" }),
|
|
853
853
|
/* @__PURE__ */ fe.jsxs("div", { className: ht.addButtonWrapper, children: [
|
|
854
854
|
/* @__PURE__ */ fe.jsx(
|
|
@@ -858,7 +858,7 @@ const Fse = "FileExplorer-module__fileExplorer___uaB0I", Wse = "FileExplorer-mod
|
|
|
858
858
|
onClick: () => T(!D),
|
|
859
859
|
className: ht.addButton,
|
|
860
860
|
title: "Создать файл или папку",
|
|
861
|
-
children: /* @__PURE__ */ fe.jsx(
|
|
861
|
+
children: /* @__PURE__ */ fe.jsx("img", { src: woe, className: ht.plusIcon })
|
|
862
862
|
}
|
|
863
863
|
),
|
|
864
864
|
D && /* @__PURE__ */ fe.jsxs("div", { className: ht.contextMenu, ref: J, children: [
|
|
@@ -126212,7 +126212,7 @@ const nH = {
|
|
|
126212
126212
|
sH
|
|
126213
126213
|
);
|
|
126214
126214
|
function oH() {
|
|
126215
|
-
return import("./cssMode-
|
|
126215
|
+
return import("./cssMode-51r3zeoX.js");
|
|
126216
126216
|
}
|
|
126217
126217
|
Pe.onLanguage("less", () => {
|
|
126218
126218
|
oH().then((o) => o.setupMode(Kne));
|
|
@@ -126303,7 +126303,7 @@ const Yw = "html", cK = "handlebars", dK = "razor", Zne = oR(
|
|
|
126303
126303
|
sR(dK)
|
|
126304
126304
|
), F7e = Xne.defaults;
|
|
126305
126305
|
function W7e() {
|
|
126306
|
-
return import("./htmlMode-
|
|
126306
|
+
return import("./htmlMode-CL_zNQaG.js");
|
|
126307
126307
|
}
|
|
126308
126308
|
function oR(o, e = nR, t = sR(o)) {
|
|
126309
126309
|
const i = new M7e(o, e, t);
|
|
@@ -126377,7 +126377,7 @@ const V7e = {
|
|
|
126377
126377
|
z7e
|
|
126378
126378
|
), U7e = () => Jne().then((o) => o.getWorker());
|
|
126379
126379
|
function Jne() {
|
|
126380
|
-
return import("./jsonMode-
|
|
126380
|
+
return import("./jsonMode-CQA4Q9zL.js");
|
|
126381
126381
|
}
|
|
126382
126382
|
Pe.register({
|
|
126383
126383
|
id: "json",
|
|
@@ -126523,7 +126523,7 @@ const q7e = j7e, rse = {
|
|
|
126523
126523
|
rse
|
|
126524
126524
|
), G7e = () => rR().then((o) => o.getTypeScriptWorker()), K7e = () => rR().then((o) => o.getJavaScriptWorker());
|
|
126525
126525
|
function rR() {
|
|
126526
|
-
return import("./tsMode-
|
|
126526
|
+
return import("./tsMode-CESu8luU.js");
|
|
126527
126527
|
}
|
|
126528
126528
|
Pe.onLanguage("typescript", () => rR().then((o) => o.setupTypeScript(ase)));
|
|
126529
126529
|
Pe.onLanguage("javascript", () => rR().then((o) => o.setupJavaScript(lse)));
|
|
@@ -126696,37 +126696,37 @@ De({
|
|
|
126696
126696
|
id: "freemarker2",
|
|
126697
126697
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
126698
126698
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
126699
|
-
loader: () => import("./freemarker2-
|
|
126699
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagAutoInterpolationDollar)
|
|
126700
126700
|
});
|
|
126701
126701
|
De({
|
|
126702
126702
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
126703
126703
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
126704
|
-
loader: () => import("./freemarker2-
|
|
126704
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagAngleInterpolationDollar)
|
|
126705
126705
|
});
|
|
126706
126706
|
De({
|
|
126707
126707
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
126708
126708
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
126709
|
-
loader: () => import("./freemarker2-
|
|
126709
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagBracketInterpolationDollar)
|
|
126710
126710
|
});
|
|
126711
126711
|
De({
|
|
126712
126712
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
126713
126713
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
126714
|
-
loader: () => import("./freemarker2-
|
|
126714
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagAngleInterpolationBracket)
|
|
126715
126715
|
});
|
|
126716
126716
|
De({
|
|
126717
126717
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
126718
126718
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
126719
|
-
loader: () => import("./freemarker2-
|
|
126719
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagBracketInterpolationBracket)
|
|
126720
126720
|
});
|
|
126721
126721
|
De({
|
|
126722
126722
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
126723
126723
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
126724
|
-
loader: () => import("./freemarker2-
|
|
126724
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagAutoInterpolationDollar)
|
|
126725
126725
|
});
|
|
126726
126726
|
De({
|
|
126727
126727
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
126728
126728
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
126729
|
-
loader: () => import("./freemarker2-
|
|
126729
|
+
loader: () => import("./freemarker2-Dryc83OH.js").then((o) => o.TagAutoInterpolationBracket)
|
|
126730
126730
|
});
|
|
126731
126731
|
De({
|
|
126732
126732
|
id: "go",
|
|
@@ -126746,7 +126746,7 @@ De({
|
|
|
126746
126746
|
extensions: [".handlebars", ".hbs"],
|
|
126747
126747
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
126748
126748
|
mimetypes: ["text/x-handlebars-template"],
|
|
126749
|
-
loader: () => import("./handlebars-
|
|
126749
|
+
loader: () => import("./handlebars-CFqhC-RF.js")
|
|
126750
126750
|
});
|
|
126751
126751
|
De({
|
|
126752
126752
|
id: "hcl",
|
|
@@ -126759,7 +126759,7 @@ De({
|
|
|
126759
126759
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
126760
126760
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
126761
126761
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
126762
|
-
loader: () => import("./html-
|
|
126762
|
+
loader: () => import("./html-xG9FubLm.js")
|
|
126763
126763
|
});
|
|
126764
126764
|
De({
|
|
126765
126765
|
id: "ini",
|
|
@@ -126782,7 +126782,7 @@ De({
|
|
|
126782
126782
|
filenames: ["jakefile"],
|
|
126783
126783
|
aliases: ["JavaScript", "javascript", "js"],
|
|
126784
126784
|
mimetypes: ["text/javascript"],
|
|
126785
|
-
loader: () => import("./javascript-
|
|
126785
|
+
loader: () => import("./javascript-DBAZQTih.js")
|
|
126786
126786
|
});
|
|
126787
126787
|
De({
|
|
126788
126788
|
id: "julia",
|
|
@@ -126821,7 +126821,7 @@ De({
|
|
|
126821
126821
|
extensions: [".liquid", ".html.liquid"],
|
|
126822
126822
|
aliases: ["Liquid", "liquid"],
|
|
126823
126823
|
mimetypes: ["application/liquid"],
|
|
126824
|
-
loader: () => import("./liquid-
|
|
126824
|
+
loader: () => import("./liquid-DtAPPwIy.js")
|
|
126825
126825
|
});
|
|
126826
126826
|
De({
|
|
126827
126827
|
id: "m3",
|
|
@@ -126839,7 +126839,7 @@ De({
|
|
|
126839
126839
|
id: "mdx",
|
|
126840
126840
|
extensions: [".mdx"],
|
|
126841
126841
|
aliases: ["MDX", "mdx"],
|
|
126842
|
-
loader: () => import("./mdx-
|
|
126842
|
+
loader: () => import("./mdx-D_MA3eIc.js")
|
|
126843
126843
|
});
|
|
126844
126844
|
De({
|
|
126845
126845
|
id: "mips",
|
|
@@ -126938,7 +126938,7 @@ De({
|
|
|
126938
126938
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
126939
126939
|
aliases: ["Python", "py"],
|
|
126940
126940
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
126941
|
-
loader: () => import("./python-
|
|
126941
|
+
loader: () => import("./python-Dm3Rbgtc.js")
|
|
126942
126942
|
});
|
|
126943
126943
|
De({
|
|
126944
126944
|
id: "qsharp",
|
|
@@ -126957,7 +126957,7 @@ De({
|
|
|
126957
126957
|
extensions: [".cshtml"],
|
|
126958
126958
|
aliases: ["Razor", "razor"],
|
|
126959
126959
|
mimetypes: ["text/x-cshtml"],
|
|
126960
|
-
loader: () => import("./razor-
|
|
126960
|
+
loader: () => import("./razor-CfIE724O.js")
|
|
126961
126961
|
});
|
|
126962
126962
|
De({
|
|
126963
126963
|
id: "redis",
|
|
@@ -127089,7 +127089,7 @@ De({
|
|
|
127089
127089
|
extensions: [".ts", ".tsx", ".cts", ".mts"],
|
|
127090
127090
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
127091
127091
|
mimetypes: ["text/typescript"],
|
|
127092
|
-
loader: () => import("./typescript-
|
|
127092
|
+
loader: () => import("./typescript-D7huPAPa.js")
|
|
127093
127093
|
});
|
|
127094
127094
|
De({
|
|
127095
127095
|
id: "typespec",
|
|
@@ -127133,14 +127133,14 @@ De({
|
|
|
127133
127133
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
127134
127134
|
aliases: ["XML", "xml"],
|
|
127135
127135
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
127136
|
-
loader: () => import("./xml-
|
|
127136
|
+
loader: () => import("./xml-DD0g2Gyb.js")
|
|
127137
127137
|
});
|
|
127138
127138
|
De({
|
|
127139
127139
|
id: "yaml",
|
|
127140
127140
|
extensions: [".yaml", ".yml"],
|
|
127141
127141
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
127142
127142
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
127143
|
-
loader: () => import("./yaml-
|
|
127143
|
+
loader: () => import("./yaml-CYLxpBTf.js")
|
|
127144
127144
|
});
|
|
127145
127145
|
var Y7e = Object.defineProperty, X7e = (o, e, t) => e in o ? Y7e(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, it = (o, e, t) => X7e(o, typeof e != "symbol" ? e + "" : e, t), LL, hK, kL, BP, IL;
|
|
127146
127146
|
function Q7e(o) {
|
|
@@ -128195,7 +128195,7 @@ const v8e = "MonacoEditorWrapper-module__editorContainer___cSQ9x", w8e = "Monaco
|
|
|
128195
128195
|
className: `${cr.tab} ${e === "output" ? cr.active : ""}`,
|
|
128196
128196
|
onClick: () => t("output"),
|
|
128197
128197
|
children: [
|
|
128198
|
-
/* @__PURE__ */ fe.jsx(
|
|
128198
|
+
/* @__PURE__ */ fe.jsx("img", { src: SK, className: cr.icon }),
|
|
128199
128199
|
/* @__PURE__ */ fe.jsx("span", { children: "Вывод" })
|
|
128200
128200
|
]
|
|
128201
128201
|
}
|
|
@@ -128206,7 +128206,7 @@ const v8e = "MonacoEditorWrapper-module__editorContainer___cSQ9x", w8e = "Monaco
|
|
|
128206
128206
|
className: `${cr.tab} ${e === "history" ? cr.active : ""}`,
|
|
128207
128207
|
onClick: () => t("history"),
|
|
128208
128208
|
children: [
|
|
128209
|
-
/* @__PURE__ */ fe.jsx(
|
|
128209
|
+
/* @__PURE__ */ fe.jsx("img", { src: yK, className: cr.icon }),
|
|
128210
128210
|
/* @__PURE__ */ fe.jsx("span", { children: "История" })
|
|
128211
128211
|
]
|
|
128212
128212
|
}
|
|
@@ -128214,13 +128214,13 @@ const v8e = "MonacoEditorWrapper-module__editorContainer___cSQ9x", w8e = "Monaco
|
|
|
128214
128214
|
] }),
|
|
128215
128215
|
/* @__PURE__ */ fe.jsxs("div", { className: cr.content, children: [
|
|
128216
128216
|
!o && e === "output" && /* @__PURE__ */ fe.jsxs("div", { className: cr.placeholder, children: [
|
|
128217
|
-
/* @__PURE__ */ fe.jsx(
|
|
128217
|
+
/* @__PURE__ */ fe.jsx("img", { src: SK, className: cr.bigIcon }),
|
|
128218
128218
|
/* @__PURE__ */ fe.jsx("p", { children: "Нет результата кода" }),
|
|
128219
128219
|
/* @__PURE__ */ fe.jsx("small", { children: "Запустите свой код, чтобы увидеть результат" })
|
|
128220
128220
|
] }),
|
|
128221
128221
|
/* @__PURE__ */ fe.jsx("p", { className: cr.output, children: o }),
|
|
128222
128222
|
e === "history" && /* @__PURE__ */ fe.jsxs("div", { className: cr.placeholder, children: [
|
|
128223
|
-
/* @__PURE__ */ fe.jsx(
|
|
128223
|
+
/* @__PURE__ */ fe.jsx("img", { src: yK, className: cr.bigIcon }),
|
|
128224
128224
|
/* @__PURE__ */ fe.jsx("p", { children: "История пуста" })
|
|
128225
128225
|
] })
|
|
128226
128226
|
] })
|
|
@@ -129014,15 +129014,15 @@ const X8e = "data:image/svg+xml,%3csvg%20viewBox='0%200%209%209'%20fill='none'%2
|
|
|
129014
129014
|
saveIcon: a6e
|
|
129015
129015
|
}, l6e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3cpolygon%20points='7%205%2019%2012%207%2019'%20/%3e%3c/svg%3e", c6e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3crect%20x='7'%20y='7'%20width='10'%20height='10'%20rx='2'%20/%3e%3c/svg%3e", d6e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='2048'%20height='2048'%20viewBox='0%200%202048%202048'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M279.999%20255.999l1176%200c6.67914,0%2012.7193,2.72953%2017.0705,7.13268l311.899%20311.899%200.0011811%20-0.0011811c4.68662,4.68544%207.02875,10.8284%207.02875,16.9701l0.0011811%200%200%201176c0,13.2543%20-10.7457,24%20-24,24l-1488%200c-13.2543,0%20-24,-10.7457%20-24,-24l0%20-1488c0,-13.2543%2010.7457,-24%2024,-24zm1166.06%2048l-1142.06%200%200%201440%201440%200%200%20-1142.06%20-297.938%20-297.938z'/%3e%3cpath%20d='M643.041%20255.999l761.917%200c13.2543,0%2024,10.7457%2024,24l0%20327.999c0,13.2543%20-10.7457,24%20-24,24l-761.917%200c-13.2543,0%20-24,-10.7457%20-24,-24l0%20-327.999c0,-13.2543%2010.7457,-24%2024,-24zm737.917%2048l-713.917%200%200%20279.999%20713.917%200%200%20-279.999z'/%3e%3cpath%20d='M545.435%20903.999l957.131%200c13.2543,0%2024,10.7457%2024,24l0%20840.002c0,13.2543%20-10.7457,24%20-24,24l-957.131%200c-13.2543,0%20-24,-10.7457%20-24,-24l0%20-840.002c0,-13.2543%2010.7457,-24%2024,-24zm933.131%2048l-909.131%200%200%20792.002%20909.131%200%200%20-792.002z'/%3e%3cpolygon%20points='704,1148%201344,1148%201344,1100%20704,1100'/%3e%3cpolygon%20points='704,1372%201344,1372%201344,1324%20704,1324'/%3e%3cpolygon%20points='704,1596%201344,1596%201344,1548%20704,1548'/%3e%3cpath%20d='M1240%20279.999c0,-13.2543%20-10.7457,-24%20-24,-24%20-13.2543,0%20-24,10.7457%20-24,24l0%20327.999c0,13.2543%2010.7457,24%2024,24%2013.2543,0%2024,-10.7457%2024,-24l0%20-327.999zm-208.001%20327.999c0,13.2543%2010.7457,24%2024,24%2013.2543,0%2024,-10.7457%2024,-24l0%20-327.999c0,-13.2543%20-10.7457,-24%20-24,-24%20-13.2543,0%20-24,10.7457%20-24,24l0%20327.999z'/%3e%3c/g%3e%3c/svg%3e", h6e = (o) => /* @__PURE__ */ fe.jsxs("div", { className: ic.runContainer, children: [
|
|
129016
129016
|
/* @__PURE__ */ fe.jsxs("button", { className: ic.runButton, onClick: o.run, children: [
|
|
129017
|
-
/* @__PURE__ */ fe.jsx(
|
|
129017
|
+
/* @__PURE__ */ fe.jsx("img", { src: l6e, className: ic.startIcon }),
|
|
129018
129018
|
/* @__PURE__ */ fe.jsx("p", { className: ic.runText, children: "Run" })
|
|
129019
129019
|
] }),
|
|
129020
129020
|
/* @__PURE__ */ fe.jsxs("button", { className: ic.stopButton, onClick: o.stop, children: [
|
|
129021
|
-
/* @__PURE__ */ fe.jsx(
|
|
129021
|
+
/* @__PURE__ */ fe.jsx("img", { src: c6e, className: ic.stopIcon }),
|
|
129022
129022
|
/* @__PURE__ */ fe.jsx("p", { className: ic.runText, children: "Stop" })
|
|
129023
129023
|
] }),
|
|
129024
129024
|
/* @__PURE__ */ fe.jsxs("button", { className: ic.saveButton, onClick: o.save, children: [
|
|
129025
|
-
/* @__PURE__ */ fe.jsx(
|
|
129025
|
+
/* @__PURE__ */ fe.jsx("img", { src: d6e, className: ic.saveIcon }),
|
|
129026
129026
|
/* @__PURE__ */ fe.jsx("p", { className: ic.runText, children: "Save" })
|
|
129027
129027
|
] })
|
|
129028
129028
|
] }), u6e = ({ id: o, isNew: e, data: t, setNodeHeight: i }) => {
|
|
@@ -129117,10 +129117,10 @@ Console.WriteLine("Hello, World!");`
|
|
|
129117
129117
|
/* @__PURE__ */ fe.jsx("div", { className: "drag-handle__custom", children: /* @__PURE__ */ fe.jsxs("div", { className: Ao.header, children: [
|
|
129118
129118
|
/* @__PURE__ */ fe.jsx("h4", { children: "Code Block" }),
|
|
129119
129119
|
/* @__PURE__ */ fe.jsxs("div", { className: Ao.shieldContainer, children: [
|
|
129120
|
-
/* @__PURE__ */ fe.jsx(
|
|
129121
|
-
/* @__PURE__ */ fe.jsx(
|
|
129120
|
+
/* @__PURE__ */ fe.jsx("img", { src: X8e, className: Ao.shield }),
|
|
129121
|
+
/* @__PURE__ */ fe.jsx("img", { src: Q8e, className: Ao.badge })
|
|
129122
129122
|
] }),
|
|
129123
|
-
/* @__PURE__ */ fe.jsx("button", { className: Ao.closeButton, onClick: j, children: P ? /* @__PURE__ */ fe.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", children: /* @__PURE__ */ fe.jsx("path", { d: "M4 8h8M8 4v8", stroke: "currentColor", strokeWidth: "2" }) }) : /* @__PURE__ */ fe.jsx(
|
|
129123
|
+
/* @__PURE__ */ fe.jsx("button", { className: Ao.closeButton, onClick: j, children: P ? /* @__PURE__ */ fe.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", children: /* @__PURE__ */ fe.jsx("path", { d: "M4 8h8M8 4v8", stroke: "currentColor", strokeWidth: "2" }) }) : /* @__PURE__ */ fe.jsx("img", { src: J8e, className: Ao.close }) })
|
|
129124
129124
|
] }) }),
|
|
129125
129125
|
!P && /* @__PURE__ */ fe.jsxs("div", { className: Ao.body, children: [
|
|
129126
129126
|
/* @__PURE__ */ fe.jsxs("div", { className: Ao.panel, style: { width: D }, children: [
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { Dispatch } from 'react';
|
|
5
|
+
import { JSX } from 'react/jsx-runtime';
|
|
6
|
+
import { RawAxiosRequestConfig } from 'axios';
|
|
7
|
+
import { SetStateAction } from 'react';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* CompilerWidgetApi
|
|
11
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
12
|
+
*
|
|
13
|
+
* The version of the OpenAPI document: 1.0
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17
|
+
* https://openapi-generator.tech
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
declare interface AWSv4Configuration {
|
|
21
|
+
options?: {
|
|
22
|
+
region?: string;
|
|
23
|
+
service?: string;
|
|
24
|
+
};
|
|
25
|
+
credentials?: {
|
|
26
|
+
accessKeyId?: string;
|
|
27
|
+
secretAccessKey?: string;
|
|
28
|
+
sessionToken?: string;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class BaseAPI {
|
|
33
|
+
protected basePath: string;
|
|
34
|
+
protected axios: AxiosInstance;
|
|
35
|
+
protected configuration: Configuration | undefined;
|
|
36
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare interface CompilationError {
|
|
40
|
+
'errorCode'?: string | null;
|
|
41
|
+
'message'?: string | null;
|
|
42
|
+
'startLine'?: number;
|
|
43
|
+
'endLine'?: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* CompilerApi - object-oriented interface
|
|
48
|
+
*/
|
|
49
|
+
export declare class CompilerApi extends BaseAPI {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {string} projectId
|
|
53
|
+
* @param {CompileRequest} [compileRequest]
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
apiCompileProjectProjectIdCompilePost(projectId: string, compileRequest?: CompileRequest, options?: RawAxiosRequestConfig): Promise<AxiosResponse<CompileResult, any, {}>>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @param {string} projectId
|
|
61
|
+
* @param {RunRequest} [runRequest]
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
apiCompileProjectProjectIdRunPost(projectId: string, runRequest?: RunRequest, options?: RawAxiosRequestConfig): Promise<AxiosResponse<RunResult, any, {}>>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @param {string} projectId
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
apiCompileProjectProjectIdStatusGet(projectId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<ProcessStatus, any, {}>>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @param {string} projectId
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
apiCompileProjectProjectIdStopPost(projectId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<void, any, {}>>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
apiCompileRunningProjectsGet(options?: RawAxiosRequestConfig): Promise<AxiosResponse<RunningProjectInfo[], any, {}>>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare interface CompileRequest {
|
|
89
|
+
'mainFile'?: string | null;
|
|
90
|
+
'optimize'?: boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare interface CompileResult {
|
|
94
|
+
'success'?: boolean;
|
|
95
|
+
'output'?: string | null;
|
|
96
|
+
'errors'?: Array<CompilationError> | null;
|
|
97
|
+
'projectId'?: string;
|
|
98
|
+
'compiledAt'?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare const CompilerWidget: default_2.NamedExoticComponent<CompilerWidgetProps>;
|
|
102
|
+
|
|
103
|
+
export declare const CompilerWidgetNode: (props: any) => JSX.Element;
|
|
104
|
+
|
|
105
|
+
declare interface CompilerWidgetProps {
|
|
106
|
+
id: string;
|
|
107
|
+
isNew: boolean;
|
|
108
|
+
data?: {
|
|
109
|
+
initialFiles?: Record<string, string>;
|
|
110
|
+
language?: 'csharp' | 'js';
|
|
111
|
+
};
|
|
112
|
+
setNodeHeight?: (id: string, height: number) => void;
|
|
113
|
+
getInfo?: (info: GetInfoModel_2) => void;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare class Configuration {
|
|
117
|
+
/**
|
|
118
|
+
* parameter for apiKey security
|
|
119
|
+
* @param name security name
|
|
120
|
+
*/
|
|
121
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
122
|
+
/**
|
|
123
|
+
* parameter for basic security
|
|
124
|
+
*/
|
|
125
|
+
username?: string;
|
|
126
|
+
/**
|
|
127
|
+
* parameter for basic security
|
|
128
|
+
*/
|
|
129
|
+
password?: string;
|
|
130
|
+
/**
|
|
131
|
+
* parameter for oauth2 security
|
|
132
|
+
* @param name security name
|
|
133
|
+
* @param scopes oauth2 scope
|
|
134
|
+
*/
|
|
135
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
136
|
+
/**
|
|
137
|
+
* parameter for aws4 signature security
|
|
138
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
139
|
+
* @param {string} options.region - aws region
|
|
140
|
+
* @param {string} options.service - name of the service.
|
|
141
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
142
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
143
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
144
|
+
* @memberof Configuration
|
|
145
|
+
*/
|
|
146
|
+
awsv4?: AWSv4Configuration;
|
|
147
|
+
/**
|
|
148
|
+
* override base path
|
|
149
|
+
*/
|
|
150
|
+
basePath?: string;
|
|
151
|
+
/**
|
|
152
|
+
* override server index
|
|
153
|
+
*/
|
|
154
|
+
serverIndex?: number;
|
|
155
|
+
/**
|
|
156
|
+
* base options for axios calls
|
|
157
|
+
*/
|
|
158
|
+
baseOptions?: any;
|
|
159
|
+
/**
|
|
160
|
+
* The FormData constructor that will be used to create multipart form data
|
|
161
|
+
* requests. You can inject this here so that execution environments that
|
|
162
|
+
* do not support the FormData class can still run the generated client.
|
|
163
|
+
*
|
|
164
|
+
* @type {new () => FormData}
|
|
165
|
+
*/
|
|
166
|
+
formDataCtor?: new () => any;
|
|
167
|
+
constructor(param?: ConfigurationParameters);
|
|
168
|
+
/**
|
|
169
|
+
* Check if the given MIME is a JSON MIME.
|
|
170
|
+
* JSON MIME examples:
|
|
171
|
+
* application/json
|
|
172
|
+
* application/json; charset=UTF8
|
|
173
|
+
* APPLICATION/JSON
|
|
174
|
+
* application/vnd.company+json
|
|
175
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
176
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
177
|
+
*/
|
|
178
|
+
isJsonMime(mime: string): boolean;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare interface ConfigurationParameters {
|
|
182
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
183
|
+
username?: string;
|
|
184
|
+
password?: string;
|
|
185
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
186
|
+
awsv4?: AWSv4Configuration;
|
|
187
|
+
basePath?: string;
|
|
188
|
+
serverIndex?: number;
|
|
189
|
+
baseOptions?: any;
|
|
190
|
+
formDataCtor?: new () => any;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare interface CreateFileDto {
|
|
194
|
+
'name'?: string | null;
|
|
195
|
+
'path'?: string | null;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export declare interface EditorDocument {
|
|
199
|
+
id: string;
|
|
200
|
+
path: string;
|
|
201
|
+
name: string;
|
|
202
|
+
language: "javascript" | "csharp";
|
|
203
|
+
content: string;
|
|
204
|
+
modified: boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* FileApi - object-oriented interface
|
|
209
|
+
*/
|
|
210
|
+
export declare class FileApi extends BaseAPI {
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @param {string} fileId
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
apiFilesFileIdDeletePost(fileId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<void, any, {}>>;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @param {string} fileId
|
|
221
|
+
* @param {string} [file]
|
|
222
|
+
* @param {string} [body]
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
apiFilesFileIdMovePost(fileId: string, file?: string, body?: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<void, any, {}>>;
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @param {string} fileId
|
|
230
|
+
* @param {RenameFileDto} [renameFileDto]
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
apiFilesFileIdRenamePost(fileId: string, renameFileDto?: RenameFileDto, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string, any, {}>>;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @param {string} fileId
|
|
238
|
+
* @param {UpdateFileDto} [updateFileDto]
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
apiFilesFileIdSavePost(fileId: string, updateFileDto?: UpdateFileDto, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string, any, {}>>;
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @param {string} projectId
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
apiFilesProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<FileMetadata[], any, {}>>;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @param {string} projectId
|
|
253
|
+
* @param {PathChangeRequest} [pathChangeRequest]
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
apiFilesProjectProjectIdChangeAllPathsPost(projectId: string, pathChangeRequest?: PathChangeRequest, options?: RawAxiosRequestConfig): Promise<AxiosResponse<void, any, {}>>;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @param {string} projectId
|
|
261
|
+
* @param {CreateFileDto} [createFileDto]
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
apiFilesProjectProjectIdPost(projectId: string, createFileDto?: CreateFileDto, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string, any, {}>>;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @param {string} fileId
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
apiFilesReadFileIdGet(fileId: string, options?: RawAxiosRequestConfig): Promise<AxiosResponse<string, any, {}>>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export declare const FileExplorer: default_2.FC<FileExplorerProps>;
|
|
276
|
+
|
|
277
|
+
declare interface FileExplorerProps {
|
|
278
|
+
documents: EditorDocument[];
|
|
279
|
+
selectedId: string | null;
|
|
280
|
+
onSelect: (id: string) => void;
|
|
281
|
+
onAdd: (fileName: string, parentPath?: string) => void;
|
|
282
|
+
onRename: (id: string, newName: string) => void;
|
|
283
|
+
onDelete: (id: string) => void;
|
|
284
|
+
onMove: (fileId: string, newPath: string) => void;
|
|
285
|
+
onFolderRename: (id: string, oldPath: string, newPath: string) => void;
|
|
286
|
+
changeAllDocPath: (oldPath: string, newPath: string) => void;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
declare interface FileMetadata {
|
|
290
|
+
'fileId'?: string;
|
|
291
|
+
'fileName'?: string | null;
|
|
292
|
+
'projectId'?: string;
|
|
293
|
+
'path'?: string | null;
|
|
294
|
+
'physicalPath'?: string | null;
|
|
295
|
+
'existsOnDisk'?: boolean;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export declare function getInfo(model: GetInfoModel): Promise<boolean>;
|
|
299
|
+
|
|
300
|
+
export declare interface GetInfoModel {
|
|
301
|
+
widgetId: string;
|
|
302
|
+
userId: number;
|
|
303
|
+
role: string;
|
|
304
|
+
config: string;
|
|
305
|
+
board: {
|
|
306
|
+
id: number;
|
|
307
|
+
name: string;
|
|
308
|
+
parentId: number;
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare interface GetInfoModel_2 {
|
|
313
|
+
"widgetId": number;
|
|
314
|
+
"userId": number;
|
|
315
|
+
"role": string;
|
|
316
|
+
"config": string;
|
|
317
|
+
"board": {
|
|
318
|
+
"id": number;
|
|
319
|
+
"name": string;
|
|
320
|
+
"parentId": number;
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export declare const MonacoEditorWrapper: default_2.FC<MonacoEditorWrapperProps>;
|
|
325
|
+
|
|
326
|
+
declare interface MonacoEditorWrapperProps {
|
|
327
|
+
code: string;
|
|
328
|
+
language: string;
|
|
329
|
+
onChange: (value: string) => void;
|
|
330
|
+
theme?: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare const OutputPanel: default_2.FC<OutputPanelProps>;
|
|
334
|
+
|
|
335
|
+
declare interface OutputPanelProps {
|
|
336
|
+
output: string;
|
|
337
|
+
history: string[];
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare interface PathChangeRequest {
|
|
341
|
+
'oldPath'?: string | null;
|
|
342
|
+
'newPath'?: string | null;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
declare interface ProcessStatus {
|
|
346
|
+
'projectId'?: string;
|
|
347
|
+
'isRunning'?: boolean;
|
|
348
|
+
'processId'?: string | null;
|
|
349
|
+
'startedAt'?: string | null;
|
|
350
|
+
'uptime'?: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
declare interface RenameFileDto {
|
|
354
|
+
'name'?: string | null;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export declare const RunContainer: default_2.FC<RunContainerProps>;
|
|
358
|
+
|
|
359
|
+
declare interface RunContainerProps {
|
|
360
|
+
run: () => void;
|
|
361
|
+
stop: () => void;
|
|
362
|
+
save: () => void;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare interface RunningProjectInfo {
|
|
366
|
+
'projectId'?: string;
|
|
367
|
+
'processId'?: string | null;
|
|
368
|
+
'startedAt'?: string;
|
|
369
|
+
'uptime'?: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare interface RunRequest {
|
|
373
|
+
'mainFile'?: string | null;
|
|
374
|
+
'environmentVariables'?: {
|
|
375
|
+
[key: string]: string;
|
|
376
|
+
} | null;
|
|
377
|
+
'timeoutSeconds'?: number | null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
declare interface RunResult {
|
|
381
|
+
'success'?: boolean;
|
|
382
|
+
'output'?: string | null;
|
|
383
|
+
'errors'?: Array<CompilationError> | null;
|
|
384
|
+
'processId'?: string | null;
|
|
385
|
+
'projectId'?: string;
|
|
386
|
+
'startedAt'?: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
declare interface UpdateFileDto {
|
|
390
|
+
'content'?: string | null;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export declare function useCompiler(id: string, isNew: boolean, initialFiles?: Record<string, string>): {
|
|
394
|
+
documents: EditorDocument[];
|
|
395
|
+
selectedDocument: EditorDocument | null;
|
|
396
|
+
selectedId: string | null;
|
|
397
|
+
setSelectedId: Dispatch<SetStateAction<string | null>>;
|
|
398
|
+
setDocumentContent: (id: string, newContent: string) => void;
|
|
399
|
+
addDocument: (fileName?: string, path?: string) => void;
|
|
400
|
+
updatePath: (id: string, oldPath: string, newPath: string) => void;
|
|
401
|
+
updateDocPath: (fileId: string, newPath: string) => void;
|
|
402
|
+
updateDocument: (id: string, patch: Partial<EditorDocument>) => void;
|
|
403
|
+
deleteDocument: (id: string) => void;
|
|
404
|
+
updateOneDocPath: (id: string, newPath: string) => void;
|
|
405
|
+
run: () => Promise<void>;
|
|
406
|
+
stop: () => void;
|
|
407
|
+
output: string;
|
|
408
|
+
saveAll: () => void;
|
|
409
|
+
history: never[];
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as o, b as r, C as p, i as s, g as t, F as l, d as n, O as C, f as m, u } from "./index-
|
|
1
|
+
import { h as o, b as r, C as p, i as s, g as t, F as l, d as n, O as C, f as m, u } from "./index-CNd5k1g-.js";
|
|
2
2
|
import "@xyflow/react";
|
|
3
3
|
export {
|
|
4
4
|
o as CompilerApi,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as P, l as _, e as B } from "./index-
|
|
2
|
-
import { f as y, g as J, C as Q, H as Y, b as G, d as X, F as Z, S as $, e as K } from "./lspLanguageFeatures-
|
|
3
|
-
import { a as Ae, D as Oe, h as Ie, R as Ne, c as Le, i as Ee, j as Ue, t as De, k as Be } from "./lspLanguageFeatures-
|
|
1
|
+
import { c as P, l as _, e as B } from "./index-CNd5k1g-.js";
|
|
2
|
+
import { f as y, g as J, C as Q, H as Y, b as G, d as X, F as Z, S as $, e as K } from "./lspLanguageFeatures-DTdAGxCM.js";
|
|
3
|
+
import { a as Ae, D as Oe, h as Ie, R as Ne, c as Le, i as Ee, j as Ue, t as De, k as Be } from "./lspLanguageFeatures-DTdAGxCM.js";
|
|
4
4
|
const x = 2 * 60 * 1e3;
|
|
5
5
|
class C {
|
|
6
6
|
constructor(i) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as M, e as w, U as F, a as P, M as v, l as f, t as K, R as O } from "./index-
|
|
1
|
+
import { c as M, e as w, U as F, a as P, M as v, l as f, t as K, R as O } from "./index-CNd5k1g-.js";
|
|
2
2
|
class E {
|
|
3
3
|
constructor(e, t) {
|
|
4
4
|
this._modeId = e, this._defaults = t, this._worker = null, this._client = null, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker()), this._updateExtraLibsToken = 0, this._extraLibsChangeListener = this._defaults.onDidExtraLibsChange(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "online-compiler-widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"sass": "^1.97.2",
|
|
37
37
|
"typescript": "^5.0.0",
|
|
38
38
|
"vite": "^5.0.0",
|
|
39
|
+
"vite-plugin-dts": "^4.5.4",
|
|
39
40
|
"vite-plugin-svgr": "^4.0.0"
|
|
40
41
|
}
|
|
41
42
|
}
|