@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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.
Files changed (112) hide show
  1. package/package.json +1 -1
  2. package/dist/abap-CrvW7_qN.js +0 -1398
  3. package/dist/apex-BAOI8p1v.js +0 -327
  4. package/dist/assets/css.worker-Cb0JI69t.js +0 -93
  5. package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
  6. package/dist/assets/html.worker-BNFZMwEc.js +0 -470
  7. package/dist/assets/json.worker-BCybXpia.js +0 -58
  8. package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
  9. package/dist/azcli-BlCk_UqW.js +0 -68
  10. package/dist/bat-DPoEelVx.js +0 -100
  11. package/dist/bicep-Cp1F394l.js +0 -102
  12. package/dist/cameligo-CWqtSlQs.js +0 -174
  13. package/dist/clojure-CKBp32Gf.js +0 -761
  14. package/dist/coffee-CDo6vc-J.js +0 -232
  15. package/dist/cpp-DokufPgf.js +0 -389
  16. package/dist/csharp-BQi3szM0.js +0 -326
  17. package/dist/csp-BSGtCCZ-.js +0 -53
  18. package/dist/css-DEPFDJfb.js +0 -187
  19. package/dist/cssMode-BoaW_8EY.js +0 -141
  20. package/dist/cypher-DAb1vOxS.js +0 -263
  21. package/dist/dart-C8p4jewR.js +0 -281
  22. package/dist/dockerfile-DP0iLFPN.js +0 -130
  23. package/dist/ecl-BDQHA6fi.js +0 -456
  24. package/dist/elixir-D4II6kDM.js +0 -569
  25. package/dist/flow9-StcnL-VB.js +0 -142
  26. package/dist/freemarker2-DLxAEbra.js +0 -982
  27. package/dist/fsharp-DdUVp3EN.js +0 -217
  28. package/dist/go-D1-I258M.js +0 -218
  29. package/dist/graphql-DWkL3f8U.js +0 -151
  30. package/dist/handlebars-H1fAc7pY.js +0 -412
  31. package/dist/hcl-D_0MNifv.js +0 -183
  32. package/dist/html-Bjh5RSoV.js +0 -301
  33. package/dist/htmlMode-XE4-FvOp.js +0 -152
  34. package/dist/index-BtAApC8Z.js +0 -129109
  35. package/dist/ini-C4I2-MT7.js +0 -71
  36. package/dist/java-OBvaP_SS.js +0 -232
  37. package/dist/javascript-BL-y8a3N.js +0 -70
  38. package/dist/jsonMode-BO164Oml.js +0 -569
  39. package/dist/julia-BmDH8Kkf.js +0 -511
  40. package/dist/kotlin-Dhu5AGOD.js +0 -252
  41. package/dist/less-CzmjXREq.js +0 -162
  42. package/dist/lexon-CV2c4pN9.js +0 -157
  43. package/dist/liquid-B4OW2xCW.js +0 -233
  44. package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
  45. package/dist/lua-CFY5U8qF.js +0 -162
  46. package/dist/m3-BL_AnZVh.js +0 -210
  47. package/dist/markdown-CWKQPXCv.js +0 -229
  48. package/dist/mdx-BscoYQtT.js +0 -158
  49. package/dist/mips-ButYmJ5E.js +0 -198
  50. package/dist/monaco-editor.es.js +0 -5
  51. package/dist/monaco-editor.umd.js +0 -1234
  52. package/dist/msdax-C3cnXqDh.js +0 -375
  53. package/dist/mysql-YlSHaf6G.js +0 -878
  54. package/dist/objective-c-Dwnlproe.js +0 -183
  55. package/dist/pascal-UzGbSWEN.js +0 -251
  56. package/dist/pascaligo-CslTgu68.js +0 -164
  57. package/dist/perl-oj6r_mgw.js +0 -626
  58. package/dist/pgsql-DSBO0Mev.js +0 -851
  59. package/dist/php-YzCD--7j.js +0 -500
  60. package/dist/pla-CmylB8vQ.js +0 -137
  61. package/dist/postiats-CLFW5gNY.js +0 -907
  62. package/dist/powerquery-CmOWUvlh.js +0 -890
  63. package/dist/powershell-fHQcmBLK.js +0 -239
  64. package/dist/protobuf-p5BArb-9.js +0 -420
  65. package/dist/pug-gVdUDvqf.js +0 -402
  66. package/dist/python-CdwN88xa.js +0 -294
  67. package/dist/qsharp-DnrWSUlt.js +0 -301
  68. package/dist/r-Cv309K2z.js +0 -243
  69. package/dist/razor-BzIEQn-i.js +0 -543
  70. package/dist/redis-DTcS4wMj.js +0 -302
  71. package/dist/redshift-hLxZVESM.js +0 -809
  72. package/dist/restructuredtext-C898lK4f.js +0 -174
  73. package/dist/ruby-CgKtnJIQ.js +0 -511
  74. package/dist/rust-bj8oxVnh.js +0 -343
  75. package/dist/sb-DWynz26l.js +0 -115
  76. package/dist/scala-BL5z1UEd.js +0 -370
  77. package/dist/scheme-DUJsH6VU.js +0 -108
  78. package/dist/scss-CxjmhvaL.js +0 -262
  79. package/dist/shell-D14Zs1dF.js +0 -221
  80. package/dist/solidity-WyRm-BGK.js +0 -1367
  81. package/dist/sophia-CKk-_Oa5.js +0 -199
  82. package/dist/sparql-DHtmINMZ.js +0 -201
  83. package/dist/sql-Dqaj5JHC.js +0 -853
  84. package/dist/st-Bj2IIaop.js +0 -416
  85. package/dist/style.css +0 -1
  86. package/dist/swift-DwxP72iM.js +0 -312
  87. package/dist/systemverilog-D7wJfuql.js +0 -576
  88. package/dist/tcl-0ApMt-eC.js +0 -232
  89. package/dist/tsMode-Bm7Ao8a0.js +0 -946
  90. package/dist/twig-DxwbdmvQ.js +0 -392
  91. package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
  92. package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
  93. package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
  94. package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
  95. package/dist/types/composables/useI18n.d.ts +0 -9
  96. package/dist/types/composables/useI18n.d.ts.map +0 -1
  97. package/dist/types/composables/useMonacoEditor.d.ts +0 -25
  98. package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
  99. package/dist/types/constants/index.d.ts +0 -3
  100. package/dist/types/constants/index.d.ts.map +0 -1
  101. package/dist/types/index.d.ts +0 -5
  102. package/dist/types/index.d.ts.map +0 -1
  103. package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
  104. package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
  105. package/dist/types/types/index.d.ts +0 -69
  106. package/dist/types/types/index.d.ts.map +0 -1
  107. package/dist/typescript-xVL7xVgf.js +0 -336
  108. package/dist/typespec-Fd-JwSuS.js +0 -117
  109. package/dist/vb-CxuyYE1I.js +0 -372
  110. package/dist/wgsl-DoEGc31J.js +0 -439
  111. package/dist/xml-5AZvXygb.js +0 -88
  112. package/dist/yaml-BpKYQQZ4.js +0 -199
@@ -1,301 +0,0 @@
1
- import { l as e } from "./index-BtAApC8Z.js";
2
- const t = [
3
- "area",
4
- "base",
5
- "br",
6
- "col",
7
- "embed",
8
- "hr",
9
- "img",
10
- "input",
11
- "keygen",
12
- "link",
13
- "menuitem",
14
- "meta",
15
- "param",
16
- "source",
17
- "track",
18
- "wbr"
19
- ], i = {
20
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
21
- comments: {
22
- blockComment: ["<!--", "-->"]
23
- },
24
- brackets: [
25
- ["<!--", "-->"],
26
- ["<", ">"],
27
- ["{", "}"],
28
- ["(", ")"]
29
- ],
30
- autoClosingPairs: [
31
- { open: "{", close: "}" },
32
- { open: "[", close: "]" },
33
- { open: "(", close: ")" },
34
- { open: '"', close: '"' },
35
- { open: "'", close: "'" }
36
- ],
37
- surroundingPairs: [
38
- { open: '"', close: '"' },
39
- { open: "'", close: "'" },
40
- { open: "{", close: "}" },
41
- { open: "[", close: "]" },
42
- { open: "(", close: ")" },
43
- { open: "<", close: ">" }
44
- ],
45
- onEnterRules: [
46
- {
47
- beforeText: new RegExp(
48
- `<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
49
- "i"
50
- ),
51
- afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
52
- action: {
53
- indentAction: e.IndentAction.IndentOutdent
54
- }
55
- },
56
- {
57
- beforeText: new RegExp(
58
- `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
59
- "i"
60
- ),
61
- action: { indentAction: e.IndentAction.Indent }
62
- }
63
- ],
64
- folding: {
65
- markers: {
66
- start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
67
- end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
68
- }
69
- }
70
- }, r = {
71
- defaultToken: "",
72
- tokenPostfix: ".html",
73
- ignoreCase: !0,
74
- // The main tokenizer for our languages
75
- tokenizer: {
76
- root: [
77
- [/<!DOCTYPE/, "metatag", "@doctype"],
78
- [/<!--/, "comment", "@comment"],
79
- [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
80
- [/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
81
- [/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
82
- [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
83
- [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
84
- [/</, "delimiter"],
85
- [/[^<]+/]
86
- // text
87
- ],
88
- doctype: [
89
- [/[^>]+/, "metatag.content"],
90
- [/>/, "metatag", "@pop"]
91
- ],
92
- comment: [
93
- [/-->/, "comment", "@pop"],
94
- [/[^-]+/, "comment.content"],
95
- [/./, "comment.content"]
96
- ],
97
- otherTag: [
98
- [/\/?>/, "delimiter", "@pop"],
99
- [/"([^"]*)"/, "attribute.value"],
100
- [/'([^']*)'/, "attribute.value"],
101
- [/[\w\-]+/, "attribute.name"],
102
- [/=/, "delimiter"],
103
- [/[ \t\r\n]+/]
104
- // whitespace
105
- ],
106
- // -- BEGIN <script> tags handling
107
- // After <script
108
- script: [
109
- [/type/, "attribute.name", "@scriptAfterType"],
110
- [/"([^"]*)"/, "attribute.value"],
111
- [/'([^']*)'/, "attribute.value"],
112
- [/[\w\-]+/, "attribute.name"],
113
- [/=/, "delimiter"],
114
- [
115
- />/,
116
- {
117
- token: "delimiter",
118
- next: "@scriptEmbedded",
119
- nextEmbedded: "text/javascript"
120
- }
121
- ],
122
- [/[ \t\r\n]+/],
123
- // whitespace
124
- [/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
125
- ],
126
- // After <script ... type
127
- scriptAfterType: [
128
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
129
- [
130
- />/,
131
- {
132
- token: "delimiter",
133
- next: "@scriptEmbedded",
134
- nextEmbedded: "text/javascript"
135
- }
136
- ],
137
- // cover invalid e.g. <script type>
138
- [/[ \t\r\n]+/],
139
- // whitespace
140
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
141
- ],
142
- // After <script ... type =
143
- scriptAfterTypeEquals: [
144
- [
145
- /"module"/,
146
- {
147
- token: "attribute.value",
148
- switchTo: "@scriptWithCustomType.text/javascript"
149
- }
150
- ],
151
- [
152
- /'module'/,
153
- {
154
- token: "attribute.value",
155
- switchTo: "@scriptWithCustomType.text/javascript"
156
- }
157
- ],
158
- [
159
- /"([^"]*)"/,
160
- {
161
- token: "attribute.value",
162
- switchTo: "@scriptWithCustomType.$1"
163
- }
164
- ],
165
- [
166
- /'([^']*)'/,
167
- {
168
- token: "attribute.value",
169
- switchTo: "@scriptWithCustomType.$1"
170
- }
171
- ],
172
- [
173
- />/,
174
- {
175
- token: "delimiter",
176
- next: "@scriptEmbedded",
177
- nextEmbedded: "text/javascript"
178
- }
179
- ],
180
- // cover invalid e.g. <script type=>
181
- [/[ \t\r\n]+/],
182
- // whitespace
183
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
184
- ],
185
- // After <script ... type = $S2
186
- scriptWithCustomType: [
187
- [
188
- />/,
189
- {
190
- token: "delimiter",
191
- next: "@scriptEmbedded.$S2",
192
- nextEmbedded: "$S2"
193
- }
194
- ],
195
- [/"([^"]*)"/, "attribute.value"],
196
- [/'([^']*)'/, "attribute.value"],
197
- [/[\w\-]+/, "attribute.name"],
198
- [/=/, "delimiter"],
199
- [/[ \t\r\n]+/],
200
- // whitespace
201
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
202
- ],
203
- scriptEmbedded: [
204
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
205
- [/[^<]+/, ""]
206
- ],
207
- // -- END <script> tags handling
208
- // -- BEGIN <style> tags handling
209
- // After <style
210
- style: [
211
- [/type/, "attribute.name", "@styleAfterType"],
212
- [/"([^"]*)"/, "attribute.value"],
213
- [/'([^']*)'/, "attribute.value"],
214
- [/[\w\-]+/, "attribute.name"],
215
- [/=/, "delimiter"],
216
- [
217
- />/,
218
- {
219
- token: "delimiter",
220
- next: "@styleEmbedded",
221
- nextEmbedded: "text/css"
222
- }
223
- ],
224
- [/[ \t\r\n]+/],
225
- // whitespace
226
- [/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
227
- ],
228
- // After <style ... type
229
- styleAfterType: [
230
- [/=/, "delimiter", "@styleAfterTypeEquals"],
231
- [
232
- />/,
233
- {
234
- token: "delimiter",
235
- next: "@styleEmbedded",
236
- nextEmbedded: "text/css"
237
- }
238
- ],
239
- // cover invalid e.g. <style type>
240
- [/[ \t\r\n]+/],
241
- // whitespace
242
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
243
- ],
244
- // After <style ... type =
245
- styleAfterTypeEquals: [
246
- [
247
- /"([^"]*)"/,
248
- {
249
- token: "attribute.value",
250
- switchTo: "@styleWithCustomType.$1"
251
- }
252
- ],
253
- [
254
- /'([^']*)'/,
255
- {
256
- token: "attribute.value",
257
- switchTo: "@styleWithCustomType.$1"
258
- }
259
- ],
260
- [
261
- />/,
262
- {
263
- token: "delimiter",
264
- next: "@styleEmbedded",
265
- nextEmbedded: "text/css"
266
- }
267
- ],
268
- // cover invalid e.g. <style type=>
269
- [/[ \t\r\n]+/],
270
- // whitespace
271
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
272
- ],
273
- // After <style ... type = $S2
274
- styleWithCustomType: [
275
- [
276
- />/,
277
- {
278
- token: "delimiter",
279
- next: "@styleEmbedded.$S2",
280
- nextEmbedded: "$S2"
281
- }
282
- ],
283
- [/"([^"]*)"/, "attribute.value"],
284
- [/'([^']*)'/, "attribute.value"],
285
- [/[\w\-]+/, "attribute.name"],
286
- [/=/, "delimiter"],
287
- [/[ \t\r\n]+/],
288
- // whitespace
289
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
290
- ],
291
- styleEmbedded: [
292
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
293
- [/[^<]+/, ""]
294
- ]
295
- // -- END <style> tags handling
296
- }
297
- };
298
- export {
299
- i as conf,
300
- r as language
301
- };
@@ -1,152 +0,0 @@
1
- import { c as D, l as t } from "./index-BtAApC8Z.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-CLOLvtro.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-CLOLvtro.js";
4
- const I = 2 * 60 * 1e3;
5
- class f {
6
- constructor(n) {
7
- this._defaults = n, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
8
- }
9
- _stopWorker() {
10
- this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
11
- }
12
- dispose() {
13
- clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
14
- }
15
- _checkIfIdle() {
16
- if (!this._worker)
17
- return;
18
- Date.now() - this._lastUsedTime > I && this._stopWorker();
19
- }
20
- _getClient() {
21
- return this._lastUsedTime = Date.now(), this._client || (this._worker = D({
22
- // module that exports the create() method and returns a `HTMLWorker` instance
23
- moduleId: "vs/language/html/htmlWorker",
24
- createWorker: () => new Worker(new URL(
25
- /* @vite-ignore */
26
- "/assets/html.worker-BNFZMwEc.js",
27
- import.meta.url
28
- ), { type: "module" }),
29
- // passed in to the create() method
30
- createData: {
31
- languageSettings: this._defaults.options,
32
- languageId: this._defaults.languageId
33
- },
34
- label: this._defaults.languageId
35
- }), this._client = this._worker.getProxy()), this._client;
36
- }
37
- getLanguageServiceWorker(...n) {
38
- let e;
39
- return this._getClient().then((r) => {
40
- e = r;
41
- }).then((r) => {
42
- if (this._worker)
43
- return this._worker.withSyncedResources(n);
44
- }).then((r) => e);
45
- }
46
- }
47
- class v extends R {
48
- constructor(n) {
49
- super(n, [".", ":", "<", '"', "=", "/"]);
50
- }
51
- }
52
- function C(i) {
53
- const n = new f(i), e = (...s) => n.getLanguageServiceWorker(...s);
54
- let r = i.languageId;
55
- t.registerCompletionItemProvider(r, new v(e)), t.registerHoverProvider(r, new d(e)), t.registerDocumentHighlightProvider(
56
- r,
57
- new l(e)
58
- ), t.registerLinkProvider(r, new c(e)), t.registerFoldingRangeProvider(
59
- r,
60
- new u(e)
61
- ), t.registerDocumentSymbolProvider(
62
- r,
63
- new h(e)
64
- ), t.registerSelectionRangeProvider(
65
- r,
66
- new m(e)
67
- ), t.registerRenameProvider(r, new p(e)), r === "html" && (t.registerDocumentFormattingEditProvider(
68
- r,
69
- new w(e)
70
- ), t.registerDocumentRangeFormattingEditProvider(
71
- r,
72
- new _(e)
73
- ));
74
- }
75
- function F(i) {
76
- const n = [], e = [], r = new f(i);
77
- n.push(r);
78
- const s = (...o) => r.getLanguageServiceWorker(...o);
79
- function P() {
80
- const { languageId: o, modeConfiguration: a } = i;
81
- k(e), a.completionItems && e.push(
82
- t.registerCompletionItemProvider(o, new v(s))
83
- ), a.hovers && e.push(
84
- t.registerHoverProvider(o, new d(s))
85
- ), a.documentHighlights && e.push(
86
- t.registerDocumentHighlightProvider(
87
- o,
88
- new l(s)
89
- )
90
- ), a.links && e.push(
91
- t.registerLinkProvider(o, new c(s))
92
- ), a.documentSymbols && e.push(
93
- t.registerDocumentSymbolProvider(
94
- o,
95
- new h(s)
96
- )
97
- ), a.rename && e.push(
98
- t.registerRenameProvider(o, new p(s))
99
- ), a.foldingRanges && e.push(
100
- t.registerFoldingRangeProvider(
101
- o,
102
- new u(s)
103
- )
104
- ), a.selectionRanges && e.push(
105
- t.registerSelectionRangeProvider(
106
- o,
107
- new m(s)
108
- )
109
- ), a.documentFormattingEdits && e.push(
110
- t.registerDocumentFormattingEditProvider(
111
- o,
112
- new w(s)
113
- )
114
- ), a.documentRangeFormattingEdits && e.push(
115
- t.registerDocumentRangeFormattingEditProvider(
116
- o,
117
- new _(s)
118
- )
119
- );
120
- }
121
- return P(), n.push(g(e)), g(n);
122
- }
123
- function g(i) {
124
- return { dispose: () => k(i) };
125
- }
126
- function k(i) {
127
- for (; i.length; )
128
- i.pop().dispose();
129
- }
130
- export {
131
- R as CompletionAdapter,
132
- E as DefinitionAdapter,
133
- H as DiagnosticsAdapter,
134
- b as DocumentColorAdapter,
135
- w as DocumentFormattingEditProvider,
136
- l as DocumentHighlightAdapter,
137
- c as DocumentLinkAdapter,
138
- _ as DocumentRangeFormattingEditProvider,
139
- h as DocumentSymbolAdapter,
140
- u as FoldingRangeAdapter,
141
- d as HoverAdapter,
142
- y as ReferenceAdapter,
143
- p as RenameAdapter,
144
- m as SelectionRangeAdapter,
145
- f as WorkerManager,
146
- T as fromPosition,
147
- U as fromRange,
148
- F as setupMode,
149
- C as setupMode1,
150
- x as toRange,
151
- M as toTextEdit
152
- };