@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.
- package/dist/{abap-D0Neqhq6.js → abap-CrvW7_qN.js} +1 -7
- package/dist/{apex-B5LhxkeG.js → apex-BAOI8p1v.js} +4 -9
- package/dist/assets/css.worker-Cb0JI69t.js +93 -0
- package/dist/assets/editor.worker-DzMH9hFo.js +26 -0
- package/dist/assets/html.worker-BNFZMwEc.js +470 -0
- package/dist/assets/json.worker-BCybXpia.js +58 -0
- package/dist/assets/ts.worker-DAVh1bw1.js +67731 -0
- package/dist/{azcli-BrBH0QTU.js → azcli-BlCk_UqW.js} +1 -7
- package/dist/{bat-BfzAov64.js → bat-DPoEelVx.js} +1 -7
- package/dist/{bicep-C3bCSWel.js → bicep-Cp1F394l.js} +7 -13
- package/dist/{cameligo-sFL5plcd.js → cameligo-CWqtSlQs.js} +1 -7
- package/dist/{clojure-CfeExRz0.js → clojure-CKBp32Gf.js} +1 -7
- package/dist/{coffee-Xws5K0WL.js → coffee-CDo6vc-J.js} +3 -9
- package/dist/{cpp-CqOUEpxN.js → cpp-DokufPgf.js} +1 -7
- package/dist/{csharp-DVLiBOZb.js → csharp-BQi3szM0.js} +1 -7
- package/dist/{csp-DVFp9bw5.js → csp-BSGtCCZ-.js} +1 -7
- package/dist/{css-DwARn2R6.js → css-DEPFDJfb.js} +1 -7
- package/dist/cssMode-CoIMiITW.js +141 -0
- package/dist/{cypher-uY0Mffat.js → cypher-DAb1vOxS.js} +1 -7
- package/dist/{dart-D27H-mX_.js → dart-C8p4jewR.js} +1 -7
- package/dist/{dockerfile-CmV85WZK.js → dockerfile-DP0iLFPN.js} +1 -7
- package/dist/{ecl--fKn7yzB.js → ecl-BDQHA6fi.js} +1 -7
- package/dist/{elixir-DUhH17ON.js → elixir-D4II6kDM.js} +1 -7
- package/dist/{flow9-B3Dx2LLe.js → flow9-StcnL-VB.js} +1 -7
- package/dist/{freemarker2-DrnILGvf.js → freemarker2-BicaFOyj.js} +42 -55
- package/dist/{fsharp-SyqBfUAR.js → fsharp-DdUVp3EN.js} +1 -7
- package/dist/{go-BbMR2tdT.js → go-D1-I258M.js} +1 -7
- package/dist/{graphql-DDJE6tIl.js → graphql-DWkL3f8U.js} +1 -7
- package/dist/{handlebars-D2vGkdp7.js → handlebars-DDeLWwwt.js} +10 -23
- package/dist/{hcl-YBvpaUqf.js → hcl-D_0MNifv.js} +1 -7
- package/dist/{html-D3HI-WFO.js → html-BcKPVefE.js} +10 -23
- package/dist/htmlMode-BSsYu3sx.js +152 -0
- package/dist/{editor.main-BVWEsGeM.js → index-CS38iXeV.js} +115116 -98283
- package/dist/{ini-Ct73dBtM.js → ini-C4I2-MT7.js} +1 -7
- package/dist/{java-C_jlkwoG.js → java-OBvaP_SS.js} +1 -7
- package/dist/{javascript-DLZMP-Wa.js → javascript-DFhT72G7.js} +2 -8
- package/dist/jsonMode-BtUkp6V9.js +569 -0
- package/dist/{julia-D8WE5U1e.js → julia-BmDH8Kkf.js} +1 -7
- package/dist/{kotlin-Zy9aq5yB.js → kotlin-Dhu5AGOD.js} +7 -14
- package/dist/{less-sZ0iHtE8.js → less-CzmjXREq.js} +1 -7
- package/dist/{lexon-CsdNL29A.js → lexon-CV2c4pN9.js} +1 -7
- package/dist/{liquid-CnqLoV0A.js → liquid-BnR5lV1C.js} +10 -23
- package/dist/lspLanguageFeatures-B9LRR-g_.js +1458 -0
- package/dist/{lua-C2YJo0zw.js → lua-CFY5U8qF.js} +1 -7
- package/dist/{m3-CPLP40SG.js → m3-BL_AnZVh.js} +1 -7
- package/dist/{markdown-B1mf5e0R.js → markdown-CWKQPXCv.js} +1 -7
- package/dist/{mdx-C6hXTTY6.js → mdx-DKAGILxT.js} +15 -28
- package/dist/{mips-DA33BZX1.js → mips-ButYmJ5E.js} +1 -7
- package/dist/monaco-editor.es.js +3 -228
- package/dist/monaco-editor.umd.js +515 -1194
- package/dist/{msdax-CCYFIQsP.js → msdax-C3cnXqDh.js} +1 -7
- package/dist/{mysql-hjmIjL-D.js → mysql-YlSHaf6G.js} +1 -7
- package/dist/{objective-c-RRCpEmqC.js → objective-c-Dwnlproe.js} +1 -7
- package/dist/{pascal-CeV8XfxB.js → pascal-UzGbSWEN.js} +1 -7
- package/dist/{pascaligo-IEEGVJAJ.js → pascaligo-CslTgu68.js} +1 -7
- package/dist/{perl-B5-QbHq_.js → perl-oj6r_mgw.js} +1 -7
- package/dist/{pgsql-s6kqEJmi.js → pgsql-DSBO0Mev.js} +1 -7
- package/dist/{php-CWWqzOo8.js → php-YzCD--7j.js} +1 -7
- package/dist/{pla-FSvb_YP_.js → pla-CmylB8vQ.js} +1 -7
- package/dist/{postiats-DQdscQXO.js → postiats-CLFW5gNY.js} +1 -7
- package/dist/{powerquery-CtA5JA1I.js → powerquery-CmOWUvlh.js} +1 -7
- package/dist/{powershell-DglEq96N.js → powershell-fHQcmBLK.js} +1 -7
- package/dist/{protobuf-BSepub3e.js → protobuf-p5BArb-9.js} +1 -7
- package/dist/{pug-B1847F4G.js → pug-gVdUDvqf.js} +1 -7
- package/dist/{python-CGI_fE8F.js → python-DKzFUQKC.js} +6 -19
- package/dist/{qsharp-D4i0Nqg9.js → qsharp-DnrWSUlt.js} +1 -7
- package/dist/{r-cdRigKxa.js → r-Cv309K2z.js} +1 -7
- package/dist/{razor-DNVpjohl.js → razor-PaU3XDMf.js} +10 -23
- package/dist/{redis-D9MFxvE8.js → redis-DTcS4wMj.js} +1 -7
- package/dist/{redshift-CmCnsvL-.js → redshift-hLxZVESM.js} +1 -7
- package/dist/{restructuredtext-CWy8J51t.js → restructuredtext-C898lK4f.js} +1 -7
- package/dist/{ruby-WP-c36m5.js → ruby-CgKtnJIQ.js} +1 -7
- package/dist/{rust-Q9FLdYpu.js → rust-bj8oxVnh.js} +1 -7
- package/dist/{sb-C54-JBGT.js → sb-DWynz26l.js} +1 -7
- package/dist/{scala-CzbFImc5.js → scala-BL5z1UEd.js} +1 -7
- package/dist/{scheme-BhfDmYN3.js → scheme-DUJsH6VU.js} +1 -7
- package/dist/{scss-CEmiBXpS.js → scss-CxjmhvaL.js} +1 -7
- package/dist/{shell-Bmc1VhG0.js → shell-D14Zs1dF.js} +1 -7
- package/dist/{solidity-C9Q2I8Hh.js → solidity-WyRm-BGK.js} +1 -7
- package/dist/{sophia-jWa1UyKz.js → sophia-CKk-_Oa5.js} +1 -7
- package/dist/{sparql-CM7jctbc.js → sparql-DHtmINMZ.js} +1 -7
- package/dist/{sql-WzihTkbg.js → sql-Dqaj5JHC.js} +1 -7
- package/dist/{st-6y7_3aup.js → st-Bj2IIaop.js} +1 -7
- package/dist/style.css +1 -1
- package/dist/{swift-k-0zxG_D.js → swift-DwxP72iM.js} +4 -10
- package/dist/{systemverilog-Pnr5_rIP.js → systemverilog-D7wJfuql.js} +1 -7
- package/dist/{tcl-fNPXval8.js → tcl-0ApMt-eC.js} +1 -7
- package/dist/tsMode-DvEUQx0s.js +946 -0
- package/dist/{twig-L2MkztkV.js → twig-DxwbdmvQ.js} +1 -7
- package/dist/types/composables/useMonacoEditor.d.ts +2 -2
- package/dist/types/composables/useMonacoEditor.d.ts.map +1 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +1 -77
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +1 -1
- package/dist/{typescript-C2FvJtQm.js → typescript-CTTN_Zo7.js} +9 -22
- package/dist/{typespec-Cqqo-3Pt.js → typespec-Fd-JwSuS.js} +5 -11
- package/dist/{vb-B5YC2xN9.js → vb-CxuyYE1I.js} +1 -7
- package/dist/{wgsl-B-_uRex7.js → wgsl-DoEGc31J.js} +2 -8
- package/dist/{xml-e_XsfZP6.js → xml-DTUwxRkW.js} +7 -20
- package/dist/{yaml-DOzdDlyx.js → yaml-DFeVkZUP.js} +6 -19
- package/package.json +8 -8
- package/dist/cssMode-BRHW0OjB.js +0 -1577
- package/dist/htmlMode-CNpiDTvN.js +0 -1587
- package/dist/jsonMode-CEQtUpLb.js +0 -2002
- package/dist/tsMode-CRUDJ1Gx.js +0 -895
|
@@ -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 t = {
|
|
1
|
+
const t = {
|
|
8
2
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
9
3
|
comments: {
|
|
10
4
|
blockComment: ["{#", "#}"]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
2
2
|
import type { MaybeComputedElementRef, MaybeElement } from '@vueuse/core';
|
|
3
3
|
import type { UseMonacoEditorOptions } from '../types';
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ import type { UseMonacoEditorOptions } from '../types';
|
|
|
8
8
|
* @returns {object} An object containing the editor instance and utility methods.
|
|
9
9
|
*/
|
|
10
10
|
export declare function useMonacoEditor<T extends MaybeElement>(target: MaybeComputedElementRef<T>, options: UseMonacoEditorOptions): {
|
|
11
|
-
editor:
|
|
11
|
+
editor: monaco.editor.IStandaloneCodeEditor | undefined;
|
|
12
12
|
editorStates: {
|
|
13
13
|
editorStatus: import("..").EditorStatus;
|
|
14
14
|
searchBoxIsRevealed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMonacoEditor.d.ts","sourceRoot":"","sources":["../../../src/composables/useMonacoEditor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useMonacoEditor.d.ts","sourceRoot":"","sources":["../../../src/composables/useMonacoEditor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAUvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACzE,OAAO,KAAK,EAAsB,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAmD1E;;;;;EAKE;AACF,wBAAgB,eAAe,CAAC,CAAC,SAAS,YAAY,EACpD,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,EAClC,OAAO,EAAE,sBAAsB;;;;;;;;0BAqBF,MAAM,KAAG,IAAI;4BAOX,OAAO,KAAG,IAAI;iBAG3B,IAAI;;8BAkBS,IAAI;iCAXC,MAAM,KAAG,IAAI;EAmIlD"}
|
|
@@ -1,78 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
parse: import("vitest").Mock<() => {
|
|
3
|
-
toString: () => "mock://uri";
|
|
4
|
-
}>;
|
|
5
|
-
};
|
|
6
|
-
export declare const editor: {
|
|
7
|
-
create: import("vitest").Mock<() => {
|
|
8
|
-
setValue: import("vitest").Mock<(...args: any[]) => any>;
|
|
9
|
-
getValue: import("vitest").Mock<() => string>;
|
|
10
|
-
onDidChangeModelContent: import("vitest").Mock<(...args: any[]) => any>;
|
|
11
|
-
updateOptions: import("vitest").Mock<(...args: any[]) => any>;
|
|
12
|
-
focus: import("vitest").Mock<(...args: any[]) => any>;
|
|
13
|
-
trigger: import("vitest").Mock<(...args: any[]) => any>;
|
|
14
|
-
dispose: import("vitest").Mock<(...args: any[]) => any>;
|
|
15
|
-
getModel: import("vitest").Mock<() => {
|
|
16
|
-
uri: {
|
|
17
|
-
toString: () => "mock://model";
|
|
18
|
-
};
|
|
19
|
-
dispose: import("vitest").Mock<(...args: any[]) => any>;
|
|
20
|
-
}>;
|
|
21
|
-
getContribution: import("vitest").Mock<() => {
|
|
22
|
-
getState: import("vitest").Mock<() => {
|
|
23
|
-
isRevealed: boolean;
|
|
24
|
-
onFindReplaceStateChange: import("vitest").Mock<(...args: any[]) => any>;
|
|
25
|
-
}>;
|
|
26
|
-
closeFindWidget: import("vitest").Mock<(...args: any[]) => any>;
|
|
27
|
-
}>;
|
|
28
|
-
}>;
|
|
29
|
-
remeasureFonts: import("vitest").Mock<(...args: any[]) => any>;
|
|
30
|
-
createModel: import("vitest").Mock<() => {}>;
|
|
31
|
-
};
|
|
32
|
-
export declare const languages: {
|
|
33
|
-
getLanguages: import("vitest").Mock<() => {
|
|
34
|
-
id: string;
|
|
35
|
-
}[]>;
|
|
36
|
-
register: import("vitest").Mock<(...args: any[]) => any>;
|
|
37
|
-
};
|
|
38
|
-
declare const _default: {
|
|
39
|
-
Uri: {
|
|
40
|
-
parse: import("vitest").Mock<() => {
|
|
41
|
-
toString: () => "mock://uri";
|
|
42
|
-
}>;
|
|
43
|
-
};
|
|
44
|
-
editor: {
|
|
45
|
-
create: import("vitest").Mock<() => {
|
|
46
|
-
setValue: import("vitest").Mock<(...args: any[]) => any>;
|
|
47
|
-
getValue: import("vitest").Mock<() => string>;
|
|
48
|
-
onDidChangeModelContent: import("vitest").Mock<(...args: any[]) => any>;
|
|
49
|
-
updateOptions: import("vitest").Mock<(...args: any[]) => any>;
|
|
50
|
-
focus: import("vitest").Mock<(...args: any[]) => any>;
|
|
51
|
-
trigger: import("vitest").Mock<(...args: any[]) => any>;
|
|
52
|
-
dispose: import("vitest").Mock<(...args: any[]) => any>;
|
|
53
|
-
getModel: import("vitest").Mock<() => {
|
|
54
|
-
uri: {
|
|
55
|
-
toString: () => "mock://model";
|
|
56
|
-
};
|
|
57
|
-
dispose: import("vitest").Mock<(...args: any[]) => any>;
|
|
58
|
-
}>;
|
|
59
|
-
getContribution: import("vitest").Mock<() => {
|
|
60
|
-
getState: import("vitest").Mock<() => {
|
|
61
|
-
isRevealed: boolean;
|
|
62
|
-
onFindReplaceStateChange: import("vitest").Mock<(...args: any[]) => any>;
|
|
63
|
-
}>;
|
|
64
|
-
closeFindWidget: import("vitest").Mock<(...args: any[]) => any>;
|
|
65
|
-
}>;
|
|
66
|
-
}>;
|
|
67
|
-
remeasureFonts: import("vitest").Mock<(...args: any[]) => any>;
|
|
68
|
-
createModel: import("vitest").Mock<() => {}>;
|
|
69
|
-
};
|
|
70
|
-
languages: {
|
|
71
|
-
getLanguages: import("vitest").Mock<() => {
|
|
72
|
-
id: string;
|
|
73
|
-
}[]>;
|
|
74
|
-
register: import("vitest").Mock<(...args: any[]) => any>;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export default _default;
|
|
1
|
+
export {};
|
|
78
2
|
//# sourceMappingURL=monaco-editor-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-editor-api.d.ts","sourceRoot":"","sources":["../../../../src/tests/mocks/monaco-editor-api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"monaco-editor-api.d.ts","sourceRoot":"","sources":["../../../../src/tests/mocks/monaco-editor-api.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import {
|
|
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 c = Object.defineProperty, a = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, g = Object.prototype.hasOwnProperty, l = (t, e, o, i) => {
|
|
9
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
-
for (let n of p(e))
|
|
11
|
-
!g.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = a(e, n)) || i.enumerable });
|
|
12
|
-
return t;
|
|
13
|
-
}, d = (t, e, o) => (l(t, e, "default"), o), r = {};
|
|
14
|
-
d(r, s);
|
|
15
|
-
var x = {
|
|
1
|
+
import { l as e } from "./index-CS38iXeV.js";
|
|
2
|
+
const n = {
|
|
16
3
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
17
4
|
comments: {
|
|
18
5
|
lineComment: "//",
|
|
@@ -29,7 +16,7 @@ var x = {
|
|
|
29
16
|
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
|
30
17
|
afterText: /^\s*\*\/$/,
|
|
31
18
|
action: {
|
|
32
|
-
indentAction:
|
|
19
|
+
indentAction: e.IndentAction.IndentOutdent,
|
|
33
20
|
appendText: " * "
|
|
34
21
|
}
|
|
35
22
|
},
|
|
@@ -37,7 +24,7 @@ var x = {
|
|
|
37
24
|
// e.g. /** ...|
|
|
38
25
|
beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
|
|
39
26
|
action: {
|
|
40
|
-
indentAction:
|
|
27
|
+
indentAction: e.IndentAction.None,
|
|
41
28
|
appendText: " * "
|
|
42
29
|
}
|
|
43
30
|
},
|
|
@@ -45,7 +32,7 @@ var x = {
|
|
|
45
32
|
// e.g. * ...|
|
|
46
33
|
beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
|
|
47
34
|
action: {
|
|
48
|
-
indentAction:
|
|
35
|
+
indentAction: e.IndentAction.None,
|
|
49
36
|
appendText: "* "
|
|
50
37
|
}
|
|
51
38
|
},
|
|
@@ -53,7 +40,7 @@ var x = {
|
|
|
53
40
|
// e.g. */|
|
|
54
41
|
beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
|
|
55
42
|
action: {
|
|
56
|
-
indentAction:
|
|
43
|
+
indentAction: e.IndentAction.None,
|
|
57
44
|
removeText: 1
|
|
58
45
|
}
|
|
59
46
|
}
|
|
@@ -73,7 +60,7 @@ var x = {
|
|
|
73
60
|
end: new RegExp("^\\s*//\\s*#?endregion\\b")
|
|
74
61
|
}
|
|
75
62
|
}
|
|
76
|
-
},
|
|
63
|
+
}, o = {
|
|
77
64
|
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
78
65
|
defaultToken: "invalid",
|
|
79
66
|
tokenPostfix: ".ts",
|
|
@@ -344,6 +331,6 @@ var x = {
|
|
|
344
331
|
}
|
|
345
332
|
};
|
|
346
333
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
334
|
+
n as conf,
|
|
335
|
+
o as language
|
|
349
336
|
};
|
|
@@ -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 o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, r = "[_a-zA-Z]", i = "[_a-zA-Z0-9]", t = o(`${r}${i}*`), a = o("[_a-zA-Z-0-9]+"), s = [
|
|
1
|
+
const o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, i = "[_a-zA-Z]", r = "[_a-zA-Z0-9]", t = o(`${i}${r}*`), s = o("[_a-zA-Z-0-9]+"), c = [
|
|
8
2
|
"import",
|
|
9
3
|
"model",
|
|
10
4
|
"scalar",
|
|
@@ -25,7 +19,7 @@ var o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, r = "[_a-zA-Z]", i = "[_a-zA
|
|
|
25
19
|
"dec",
|
|
26
20
|
"extern",
|
|
27
21
|
"fn"
|
|
28
|
-
],
|
|
22
|
+
], a = ["true", "false", "null", "unknown", "never"], g = "[ \\t\\r\\n]", l = "[0-9]+", k = {
|
|
29
23
|
comments: {
|
|
30
24
|
lineComment: "//",
|
|
31
25
|
blockComment: ["/*", "*/"]
|
|
@@ -67,8 +61,8 @@ var o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, r = "[_a-zA-Z]", i = "[_a-zA
|
|
|
67
61
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
68
62
|
],
|
|
69
63
|
symbols: /[=:;<>]+/,
|
|
70
|
-
keywords:
|
|
71
|
-
namedLiterals:
|
|
64
|
+
keywords: c,
|
|
65
|
+
namedLiterals: a,
|
|
72
66
|
escapes: '\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',
|
|
73
67
|
tokenizer: {
|
|
74
68
|
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
@@ -113,7 +107,7 @@ var o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, r = "[_a-zA-Z]", i = "[_a-zA
|
|
|
113
107
|
}
|
|
114
108
|
},
|
|
115
109
|
{ regex: `@${t}`, action: { token: "tag" } },
|
|
116
|
-
{ regex: `#${
|
|
110
|
+
{ regex: `#${s}`, action: { token: "directive" } }
|
|
117
111
|
]
|
|
118
112
|
}
|
|
119
113
|
};
|
|
@@ -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,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 g = {
|
|
1
|
+
const g = {
|
|
8
2
|
comments: {
|
|
9
3
|
lineComment: "//",
|
|
10
4
|
blockComment: ["/*", "*/"]
|
|
@@ -32,7 +26,7 @@ function e(i) {
|
|
|
32
26
|
a[r].length > 0 && o.push(a[r]);
|
|
33
27
|
return o;
|
|
34
28
|
}
|
|
35
|
-
|
|
29
|
+
const s = e("true false"), c = e(`
|
|
36
30
|
alias
|
|
37
31
|
break
|
|
38
32
|
case
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import {
|
|
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 m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, i) => {
|
|
9
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
-
for (let n of l(e))
|
|
11
|
-
!d.call(t, n) && n !== o && m(t, n, { get: () => e[n], enumerable: !(i = c(e, n)) || i.enumerable });
|
|
12
|
-
return t;
|
|
13
|
-
}, s = (t, e, o) => (p(t, e, "default"), o), a = {};
|
|
14
|
-
s(a, r);
|
|
15
|
-
var g = {
|
|
1
|
+
import { l as e } from "./index-CS38iXeV.js";
|
|
2
|
+
const n = {
|
|
16
3
|
comments: {
|
|
17
4
|
blockComment: ["<!--", "-->"]
|
|
18
5
|
},
|
|
@@ -32,15 +19,15 @@ var g = {
|
|
|
32
19
|
beforeText: new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
|
|
33
20
|
afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
|
|
34
21
|
action: {
|
|
35
|
-
indentAction:
|
|
22
|
+
indentAction: e.IndentAction.IndentOutdent
|
|
36
23
|
}
|
|
37
24
|
},
|
|
38
25
|
{
|
|
39
26
|
beforeText: new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", "i"),
|
|
40
|
-
action: { indentAction:
|
|
27
|
+
action: { indentAction: e.IndentAction.Indent }
|
|
41
28
|
}
|
|
42
29
|
]
|
|
43
|
-
},
|
|
30
|
+
}, o = {
|
|
44
31
|
defaultToken: "",
|
|
45
32
|
tokenPostfix: ".xml",
|
|
46
33
|
ignoreCase: !0,
|
|
@@ -96,6 +83,6 @@ var g = {
|
|
|
96
83
|
}
|
|
97
84
|
};
|
|
98
85
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
86
|
+
n as conf,
|
|
87
|
+
o as language
|
|
101
88
|
};
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import {
|
|
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, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, d = (n, e, r, o) => {
|
|
9
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
-
for (let t of u(e))
|
|
11
|
-
!s.call(n, t) && t !== r && i(n, t, { get: () => e[t], enumerable: !(o = c(e, t)) || o.enumerable });
|
|
12
|
-
return n;
|
|
13
|
-
}, m = (n, e, r) => (d(n, e, "default"), r), a = {};
|
|
14
|
-
m(a, l);
|
|
15
|
-
var p = {
|
|
1
|
+
import { l as e } from "./index-CS38iXeV.js";
|
|
2
|
+
const t = {
|
|
16
3
|
comments: {
|
|
17
4
|
lineComment: "#"
|
|
18
5
|
},
|
|
@@ -42,11 +29,11 @@ var p = {
|
|
|
42
29
|
{
|
|
43
30
|
beforeText: /:\s*$/,
|
|
44
31
|
action: {
|
|
45
|
-
indentAction:
|
|
32
|
+
indentAction: e.IndentAction.Indent
|
|
46
33
|
}
|
|
47
34
|
}
|
|
48
35
|
]
|
|
49
|
-
},
|
|
36
|
+
}, o = {
|
|
50
37
|
tokenPostfix: ".yaml",
|
|
51
38
|
brackets: [
|
|
52
39
|
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
@@ -207,6 +194,6 @@ var p = {
|
|
|
207
194
|
}
|
|
208
195
|
};
|
|
209
196
|
export {
|
|
210
|
-
|
|
211
|
-
|
|
197
|
+
t as conf,
|
|
198
|
+
o as language
|
|
212
199
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/monaco-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/monaco-editor.umd.js",
|
|
6
6
|
"module": "./dist/monaco-editor.es.js",
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"extends": "../../../package.json"
|
|
36
36
|
},
|
|
37
37
|
"distSizeChecker": {
|
|
38
|
-
"warningLimit": "
|
|
39
|
-
"errorLimit": "
|
|
38
|
+
"warningLimit": "19.5MB",
|
|
39
|
+
"errorLimit": "20MB"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@kong/kongponents": "
|
|
43
|
-
"monaco-editor": ">=0.
|
|
42
|
+
"@kong/kongponents": ">=9.42.0 <10.0.0",
|
|
43
|
+
"monaco-editor": ">=0.55.0 <1.0.0",
|
|
44
44
|
"vue": "^3.5.22"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@kong/design-tokens": "1.18.1",
|
|
48
|
-
"@kong/kongponents": "9.
|
|
49
|
-
"monaco-editor": "
|
|
48
|
+
"@kong/kongponents": "9.46.1",
|
|
49
|
+
"monaco-editor": "^0.55.1",
|
|
50
50
|
"vue": "^3.5.22"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@vueuse/core": "^
|
|
53
|
+
"@vueuse/core": "^14.0.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"dev": "cross-env USE_SANDBOX=true vite",
|