@floegence/floe-webapp-core 0.35.23 → 0.35.24
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,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
function r(...p) {
|
|
2
|
+
return () => Promise.all(p.map((t) => t()));
|
|
3
|
+
}
|
|
4
|
+
const n = {
|
|
2
5
|
"": "plaintext",
|
|
3
6
|
text: "plaintext",
|
|
4
7
|
plaintext: "plaintext",
|
|
@@ -43,14 +46,29 @@ const s = {
|
|
|
43
46
|
vue: "plaintext",
|
|
44
47
|
svelte: "plaintext",
|
|
45
48
|
groovy: "plaintext"
|
|
46
|
-
},
|
|
49
|
+
}, a = {
|
|
47
50
|
javascript: () => import("monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js"),
|
|
48
51
|
typescript: () => import("monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js"),
|
|
49
52
|
json: () => import("monaco-editor/esm/vs/language/json/monaco.contribution.js"),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
// Monaco's HTML/CSS language-service contributions do not register standalone
|
|
54
|
+
// tokenizers by themselves, so editable syntax coloring must load the paired
|
|
55
|
+
// basic-language contribution alongside the rich language-service runtime.
|
|
56
|
+
html: r(
|
|
57
|
+
() => import("monaco-editor/esm/vs/basic-languages/html/html.contribution.js"),
|
|
58
|
+
() => import("monaco-editor/esm/vs/language/html/monaco.contribution.js")
|
|
59
|
+
),
|
|
60
|
+
css: r(
|
|
61
|
+
() => import("monaco-editor/esm/vs/basic-languages/css/css.contribution.js"),
|
|
62
|
+
() => import("monaco-editor/esm/vs/language/css/monaco.contribution.js")
|
|
63
|
+
),
|
|
64
|
+
scss: r(
|
|
65
|
+
() => import("monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js"),
|
|
66
|
+
() => import("monaco-editor/esm/vs/language/css/monaco.contribution.js")
|
|
67
|
+
),
|
|
68
|
+
less: r(
|
|
69
|
+
() => import("monaco-editor/esm/vs/basic-languages/less/less.contribution.js"),
|
|
70
|
+
() => import("monaco-editor/esm/vs/language/css/monaco.contribution.js")
|
|
71
|
+
),
|
|
54
72
|
markdown: () => import("monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js"),
|
|
55
73
|
yaml: () => import("monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js"),
|
|
56
74
|
ini: () => import("monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js"),
|
|
@@ -78,33 +96,33 @@ const s = {
|
|
|
78
96
|
bat: () => import("monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js"),
|
|
79
97
|
powershell: () => import("monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js")
|
|
80
98
|
}, e = /* @__PURE__ */ new Map();
|
|
81
|
-
function
|
|
99
|
+
function c(p) {
|
|
82
100
|
const t = String(p ?? "").trim().toLowerCase();
|
|
83
|
-
return (
|
|
101
|
+
return (n[t] ?? t) || "plaintext";
|
|
84
102
|
}
|
|
85
|
-
function
|
|
103
|
+
function l(p, t) {
|
|
86
104
|
if (t)
|
|
87
105
|
return () => {
|
|
88
106
|
const i = e.get(p);
|
|
89
107
|
if (i) return i;
|
|
90
|
-
const
|
|
91
|
-
}).catch((
|
|
92
|
-
throw e.delete(p),
|
|
108
|
+
const o = t().then(() => {
|
|
109
|
+
}).catch((s) => {
|
|
110
|
+
throw e.delete(p), s;
|
|
93
111
|
});
|
|
94
|
-
return e.set(p,
|
|
112
|
+
return e.set(p, o), o;
|
|
95
113
|
};
|
|
96
114
|
}
|
|
97
|
-
function
|
|
98
|
-
const t =
|
|
115
|
+
function m(p) {
|
|
116
|
+
const t = c(p), i = l(t, a[t]);
|
|
99
117
|
return {
|
|
100
118
|
id: t,
|
|
101
119
|
load: i
|
|
102
120
|
};
|
|
103
121
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
122
|
+
function h(p) {
|
|
123
|
+
return m(p).id !== "plaintext" || c(p) === "plaintext";
|
|
106
124
|
}
|
|
107
125
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
126
|
+
h as isCodeEditorLanguageSupported,
|
|
127
|
+
m as resolveCodeEditorLanguageSpec
|
|
110
128
|
};
|