@kong-ui-public/monaco-editor 0.1.2-pr.2609.2ce4f4787.0 → 0.2.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 (104) hide show
  1. package/dist/{abap-D0Neqhq6.js → abap-CrvW7_qN.js} +1 -7
  2. package/dist/{apex-B5LhxkeG.js → apex-BAOI8p1v.js} +4 -9
  3. package/dist/assets/css.worker-Cb0JI69t.js +93 -0
  4. package/dist/assets/editor.worker-DzMH9hFo.js +26 -0
  5. package/dist/assets/html.worker-BNFZMwEc.js +470 -0
  6. package/dist/assets/json.worker-BCybXpia.js +58 -0
  7. package/dist/assets/ts.worker-DAVh1bw1.js +67731 -0
  8. package/dist/{azcli-BrBH0QTU.js → azcli-BlCk_UqW.js} +1 -7
  9. package/dist/{bat-BfzAov64.js → bat-DPoEelVx.js} +1 -7
  10. package/dist/{bicep-C3bCSWel.js → bicep-Cp1F394l.js} +7 -13
  11. package/dist/{cameligo-sFL5plcd.js → cameligo-CWqtSlQs.js} +1 -7
  12. package/dist/{clojure-CfeExRz0.js → clojure-CKBp32Gf.js} +1 -7
  13. package/dist/{coffee-Xws5K0WL.js → coffee-CDo6vc-J.js} +3 -9
  14. package/dist/{cpp-CqOUEpxN.js → cpp-DokufPgf.js} +1 -7
  15. package/dist/{csharp-DVLiBOZb.js → csharp-BQi3szM0.js} +1 -7
  16. package/dist/{csp-DVFp9bw5.js → csp-BSGtCCZ-.js} +1 -7
  17. package/dist/{css-DwARn2R6.js → css-DEPFDJfb.js} +1 -7
  18. package/dist/cssMode-CoIMiITW.js +141 -0
  19. package/dist/{cypher-uY0Mffat.js → cypher-DAb1vOxS.js} +1 -7
  20. package/dist/{dart-D27H-mX_.js → dart-C8p4jewR.js} +1 -7
  21. package/dist/{dockerfile-CmV85WZK.js → dockerfile-DP0iLFPN.js} +1 -7
  22. package/dist/{ecl--fKn7yzB.js → ecl-BDQHA6fi.js} +1 -7
  23. package/dist/{elixir-DUhH17ON.js → elixir-D4II6kDM.js} +1 -7
  24. package/dist/{flow9-B3Dx2LLe.js → flow9-StcnL-VB.js} +1 -7
  25. package/dist/{freemarker2-DrnILGvf.js → freemarker2-BicaFOyj.js} +42 -55
  26. package/dist/{fsharp-SyqBfUAR.js → fsharp-DdUVp3EN.js} +1 -7
  27. package/dist/{go-BbMR2tdT.js → go-D1-I258M.js} +1 -7
  28. package/dist/{graphql-DDJE6tIl.js → graphql-DWkL3f8U.js} +1 -7
  29. package/dist/{handlebars-D2vGkdp7.js → handlebars-DDeLWwwt.js} +10 -23
  30. package/dist/{hcl-YBvpaUqf.js → hcl-D_0MNifv.js} +1 -7
  31. package/dist/{html-D3HI-WFO.js → html-BcKPVefE.js} +10 -23
  32. package/dist/htmlMode-BSsYu3sx.js +152 -0
  33. package/dist/{editor.main-BVWEsGeM.js → index-CS38iXeV.js} +115116 -98283
  34. package/dist/{ini-Ct73dBtM.js → ini-C4I2-MT7.js} +1 -7
  35. package/dist/{java-C_jlkwoG.js → java-OBvaP_SS.js} +1 -7
  36. package/dist/{javascript-DLZMP-Wa.js → javascript-DFhT72G7.js} +2 -8
  37. package/dist/jsonMode-BtUkp6V9.js +569 -0
  38. package/dist/{julia-D8WE5U1e.js → julia-BmDH8Kkf.js} +1 -7
  39. package/dist/{kotlin-Zy9aq5yB.js → kotlin-Dhu5AGOD.js} +7 -14
  40. package/dist/{less-sZ0iHtE8.js → less-CzmjXREq.js} +1 -7
  41. package/dist/{lexon-CsdNL29A.js → lexon-CV2c4pN9.js} +1 -7
  42. package/dist/{liquid-CnqLoV0A.js → liquid-BnR5lV1C.js} +10 -23
  43. package/dist/lspLanguageFeatures-B9LRR-g_.js +1458 -0
  44. package/dist/{lua-C2YJo0zw.js → lua-CFY5U8qF.js} +1 -7
  45. package/dist/{m3-CPLP40SG.js → m3-BL_AnZVh.js} +1 -7
  46. package/dist/{markdown-B1mf5e0R.js → markdown-CWKQPXCv.js} +1 -7
  47. package/dist/{mdx-C6hXTTY6.js → mdx-DKAGILxT.js} +15 -28
  48. package/dist/{mips-DA33BZX1.js → mips-ButYmJ5E.js} +1 -7
  49. package/dist/monaco-editor.es.js +3 -228
  50. package/dist/monaco-editor.umd.js +515 -1194
  51. package/dist/{msdax-CCYFIQsP.js → msdax-C3cnXqDh.js} +1 -7
  52. package/dist/{mysql-hjmIjL-D.js → mysql-YlSHaf6G.js} +1 -7
  53. package/dist/{objective-c-RRCpEmqC.js → objective-c-Dwnlproe.js} +1 -7
  54. package/dist/{pascal-CeV8XfxB.js → pascal-UzGbSWEN.js} +1 -7
  55. package/dist/{pascaligo-IEEGVJAJ.js → pascaligo-CslTgu68.js} +1 -7
  56. package/dist/{perl-B5-QbHq_.js → perl-oj6r_mgw.js} +1 -7
  57. package/dist/{pgsql-s6kqEJmi.js → pgsql-DSBO0Mev.js} +1 -7
  58. package/dist/{php-CWWqzOo8.js → php-YzCD--7j.js} +1 -7
  59. package/dist/{pla-FSvb_YP_.js → pla-CmylB8vQ.js} +1 -7
  60. package/dist/{postiats-DQdscQXO.js → postiats-CLFW5gNY.js} +1 -7
  61. package/dist/{powerquery-CtA5JA1I.js → powerquery-CmOWUvlh.js} +1 -7
  62. package/dist/{powershell-DglEq96N.js → powershell-fHQcmBLK.js} +1 -7
  63. package/dist/{protobuf-BSepub3e.js → protobuf-p5BArb-9.js} +1 -7
  64. package/dist/{pug-B1847F4G.js → pug-gVdUDvqf.js} +1 -7
  65. package/dist/{python-CGI_fE8F.js → python-DKzFUQKC.js} +6 -19
  66. package/dist/{qsharp-D4i0Nqg9.js → qsharp-DnrWSUlt.js} +1 -7
  67. package/dist/{r-cdRigKxa.js → r-Cv309K2z.js} +1 -7
  68. package/dist/{razor-DNVpjohl.js → razor-PaU3XDMf.js} +10 -23
  69. package/dist/{redis-D9MFxvE8.js → redis-DTcS4wMj.js} +1 -7
  70. package/dist/{redshift-CmCnsvL-.js → redshift-hLxZVESM.js} +1 -7
  71. package/dist/{restructuredtext-CWy8J51t.js → restructuredtext-C898lK4f.js} +1 -7
  72. package/dist/{ruby-WP-c36m5.js → ruby-CgKtnJIQ.js} +1 -7
  73. package/dist/{rust-Q9FLdYpu.js → rust-bj8oxVnh.js} +1 -7
  74. package/dist/{sb-C54-JBGT.js → sb-DWynz26l.js} +1 -7
  75. package/dist/{scala-CzbFImc5.js → scala-BL5z1UEd.js} +1 -7
  76. package/dist/{scheme-BhfDmYN3.js → scheme-DUJsH6VU.js} +1 -7
  77. package/dist/{scss-CEmiBXpS.js → scss-CxjmhvaL.js} +1 -7
  78. package/dist/{shell-Bmc1VhG0.js → shell-D14Zs1dF.js} +1 -7
  79. package/dist/{solidity-C9Q2I8Hh.js → solidity-WyRm-BGK.js} +1 -7
  80. package/dist/{sophia-jWa1UyKz.js → sophia-CKk-_Oa5.js} +1 -7
  81. package/dist/{sparql-CM7jctbc.js → sparql-DHtmINMZ.js} +1 -7
  82. package/dist/{sql-WzihTkbg.js → sql-Dqaj5JHC.js} +1 -7
  83. package/dist/{st-6y7_3aup.js → st-Bj2IIaop.js} +1 -7
  84. package/dist/style.css +1 -1
  85. package/dist/{swift-k-0zxG_D.js → swift-DwxP72iM.js} +4 -10
  86. package/dist/{systemverilog-Pnr5_rIP.js → systemverilog-D7wJfuql.js} +1 -7
  87. package/dist/{tcl-fNPXval8.js → tcl-0ApMt-eC.js} +1 -7
  88. package/dist/tsMode-DvEUQx0s.js +946 -0
  89. package/dist/{twig-L2MkztkV.js → twig-DxwbdmvQ.js} +1 -7
  90. package/dist/types/composables/useMonacoEditor.d.ts +2 -2
  91. package/dist/types/composables/useMonacoEditor.d.ts.map +1 -1
  92. package/dist/types/tests/mocks/monaco-editor-api.d.ts +1 -77
  93. package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +1 -1
  94. package/dist/{typescript-C2FvJtQm.js → typescript-CTTN_Zo7.js} +9 -22
  95. package/dist/{typespec-Cqqo-3Pt.js → typespec-Fd-JwSuS.js} +5 -11
  96. package/dist/{vb-B5YC2xN9.js → vb-CxuyYE1I.js} +1 -7
  97. package/dist/{wgsl-B-_uRex7.js → wgsl-DoEGc31J.js} +2 -8
  98. package/dist/{xml-e_XsfZP6.js → xml-DTUwxRkW.js} +7 -20
  99. package/dist/{yaml-DOzdDlyx.js → yaml-DFeVkZUP.js} +6 -19
  100. package/package.json +8 -8
  101. package/dist/cssMode-BRHW0OjB.js +0 -1577
  102. package/dist/htmlMode-CNpiDTvN.js +0 -1587
  103. package/dist/jsonMode-CEQtUpLb.js +0 -2002
  104. package/dist/tsMode-CRUDJ1Gx.js +0 -895
@@ -1,18 +1,5 @@
1
- import { m as l } from "./editor.main-BVWEsGeM.js";
2
- /*!-----------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
5
- * Released under the MIT license
6
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
7
- *-----------------------------------------------------------------------------*/
8
- var i = Object.defineProperty, s = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, p = (t, e, r, m) => {
9
- if (e && typeof e == "object" || typeof e == "function")
10
- for (let n of d(e))
11
- !c.call(t, n) && n !== r && i(t, n, { get: () => e[n], enumerable: !(m = s(e, n)) || m.enumerable });
12
- return t;
13
- }, h = (t, e, r) => (p(t, e, "default"), r), a = {};
14
- h(a, l);
15
- var o = [
1
+ import { l as e } from "./index-CS38iXeV.js";
2
+ const t = [
16
3
  "area",
17
4
  "base",
18
5
  "br",
@@ -29,7 +16,7 @@ var o = [
29
16
  "source",
30
17
  "track",
31
18
  "wbr"
32
- ], u = {
19
+ ], a = {
33
20
  wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
34
21
  comments: {
35
22
  blockComment: ["{{!--", "--}}"]
@@ -56,23 +43,23 @@ var o = [
56
43
  onEnterRules: [
57
44
  {
58
45
  beforeText: new RegExp(
59
- `<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
46
+ `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
60
47
  "i"
61
48
  ),
62
49
  afterText: /^<\/(\w[\w\d]*)\s*>$/i,
63
50
  action: {
64
- indentAction: a.languages.IndentAction.IndentOutdent
51
+ indentAction: e.IndentAction.IndentOutdent
65
52
  }
66
53
  },
67
54
  {
68
55
  beforeText: new RegExp(
69
- `<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
56
+ `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
70
57
  "i"
71
58
  ),
72
- action: { indentAction: a.languages.IndentAction.Indent }
59
+ action: { indentAction: e.IndentAction.Indent }
73
60
  }
74
61
  ]
75
- }, y = {
62
+ }, m = {
76
63
  defaultToken: "",
77
64
  tokenPostfix: "",
78
65
  // ignoreCase: true,
@@ -420,6 +407,6 @@ var o = [
420
407
  }
421
408
  };
422
409
  export {
423
- u as conf,
424
- y as language
410
+ a as conf,
411
+ m as language
425
412
  };
@@ -1,10 +1,4 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/
7
- var e = {
1
+ const e = {
8
2
  comments: {
9
3
  lineComment: "#",
10
4
  blockComment: ["/*", "*/"]
@@ -1,18 +1,5 @@
1
- import { m as s } from "./editor.main-BVWEsGeM.js";
2
- /*!-----------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
5
- * Released under the MIT license
6
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
7
- *-----------------------------------------------------------------------------*/
8
- var d = Object.defineProperty, p = Object.getOwnPropertyDescriptor, m = Object.getOwnPropertyNames, l = Object.prototype.hasOwnProperty, c = (t, e, n, o) => {
9
- if (e && typeof e == "object" || typeof e == "function")
10
- for (let r of m(e))
11
- !l.call(t, r) && r !== n && d(t, r, { get: () => e[r], enumerable: !(o = p(e, r)) || o.enumerable });
12
- return t;
13
- }, u = (t, e, n) => (c(t, e, "default"), n), i = {};
14
- u(i, s);
15
- var a = [
1
+ import { l as e } from "./index-CS38iXeV.js";
2
+ const t = [
16
3
  "area",
17
4
  "base",
18
5
  "br",
@@ -29,7 +16,7 @@ var a = [
29
16
  "source",
30
17
  "track",
31
18
  "wbr"
32
- ], x = {
19
+ ], i = {
33
20
  wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
34
21
  comments: {
35
22
  blockComment: ["<!--", "-->"]
@@ -58,20 +45,20 @@ var a = [
58
45
  onEnterRules: [
59
46
  {
60
47
  beforeText: new RegExp(
61
- `<(?!(?:${a.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
48
+ `<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
62
49
  "i"
63
50
  ),
64
51
  afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
65
52
  action: {
66
- indentAction: i.languages.IndentAction.IndentOutdent
53
+ indentAction: e.IndentAction.IndentOutdent
67
54
  }
68
55
  },
69
56
  {
70
57
  beforeText: new RegExp(
71
- `<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
58
+ `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
72
59
  "i"
73
60
  ),
74
- action: { indentAction: i.languages.IndentAction.Indent }
61
+ action: { indentAction: e.IndentAction.Indent }
75
62
  }
76
63
  ],
77
64
  folding: {
@@ -80,7 +67,7 @@ var a = [
80
67
  end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
81
68
  }
82
69
  }
83
- }, y = {
70
+ }, r = {
84
71
  defaultToken: "",
85
72
  tokenPostfix: ".html",
86
73
  ignoreCase: !0,
@@ -309,6 +296,6 @@ var a = [
309
296
  }
310
297
  };
311
298
  export {
312
- x as conf,
313
- y as language
299
+ i as conf,
300
+ r as language
314
301
  };
@@ -0,0 +1,152 @@
1
+ import { c as D, l as t } from "./index-CS38iXeV.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-B9LRR-g_.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-B9LRR-g_.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
+ };