@devtron-labs/devtron-fe-common-lib 0.0.81-beta-8 → 0.0.82-beta-1
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/Common/Api.d.ts +1 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
- package/dist/Common/Common.service.d.ts +3 -6
- package/dist/Common/Constants.d.ts +13 -10
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
- package/dist/Common/GenericDescription/constant.d.ts +2 -0
- package/dist/Common/GenericDescription/index.d.ts +2 -0
- package/dist/Common/GenericDescription/types.d.ts +14 -0
- package/dist/Common/Helper.d.ts +12 -2
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Hooks/useStateFilters/index.d.ts +2 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -0
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +17 -0
- package/dist/Common/Markdown/constant.d.ts +28 -0
- package/dist/Common/Types.d.ts +56 -18
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
- package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +7 -9
- package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +5 -3
- package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
- package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
- package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +14 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +88 -13
- package/dist/Shared/validations.d.ts +10 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20856 -302
- package/package.json +10 -7
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
- package/dist/Common/CodeEditor/index.d.ts +0 -2
- package/dist/Common/CodeEditor/types.d.ts +0 -86
- package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
- package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
- package/dist/abap-5361cc9f.js +0 -1314
- package/dist/apex-f9413e6f.js +0 -315
- package/dist/assets/editor.worker-60ba9509.js +0 -12
- package/dist/assets/yaml.worker-cc1a551a.js +0 -471
- package/dist/azcli-36f2cb5e.js +0 -74
- package/dist/bat-6b05202d.js +0 -95
- package/dist/bicep-788415e3.js +0 -108
- package/dist/cameligo-4e85ec93.js +0 -168
- package/dist/clojure-40fa5799.js +0 -754
- package/dist/coffee-f557f5e0.js +0 -228
- package/dist/cpp-ebbf7759.js +0 -390
- package/dist/csharp-1616f566.js +0 -320
- package/dist/csp-5f0bc3c4.js +0 -57
- package/dist/css-2b1aec9b.js +0 -186
- package/dist/cssMode-f6d332a1.js +0 -1446
- package/dist/cypher-b12b4ba8.js +0 -262
- package/dist/dart-e0d70030.js +0 -270
- package/dist/dockerfile-f9d4b2b0.js +0 -132
- package/dist/ecl-5b91fdec.js +0 -454
- package/dist/elixir-deffd5a6.js +0 -489
- package/dist/flow9-84cd00d7.js +0 -141
- package/dist/freemarker2-8e23f5a4.js +0 -643
- package/dist/fsharp-d296151f.js +0 -210
- package/dist/go-7e72ff3b.js +0 -208
- package/dist/graphql-a93568a1.js +0 -141
- package/dist/handlebars-f1c6ec5a.js +0 -391
- package/dist/hcl-b3994d8f.js +0 -177
- package/dist/html-1a4d5d9a.js +0 -281
- package/dist/htmlMode-05b8c00b.js +0 -1456
- package/dist/index-83e46ae3.js +0 -128536
- package/dist/ini-df84509a.js +0 -68
- package/dist/java-fba3d046.js +0 -221
- package/dist/javascript-823e6a19.js +0 -75
- package/dist/jsonMode-052d75cd.js +0 -1867
- package/dist/julia-cefd45f6.js +0 -496
- package/dist/kotlin-b87b6942.js +0 -245
- package/dist/less-8a7f37bc.js +0 -168
- package/dist/lexon-cb95cd13.js +0 -151
- package/dist/liquid-13a0b36f.js +0 -238
- package/dist/lua-6d5b3ea4.js +0 -157
- package/dist/m3-d0daf5d0.js +0 -210
- package/dist/markdown-48bb0c6f.js +0 -202
- package/dist/mdx-32e942cd.js +0 -171
- package/dist/mips-20dcf886.js +0 -194
- package/dist/msdax-e9759e23.js +0 -377
- package/dist/mysql-95f335b2.js +0 -876
- package/dist/objective-c-ad0cfb47.js +0 -188
- package/dist/pascal-eda19dc3.js +0 -245
- package/dist/pascaligo-b7e0c89b.js +0 -158
- package/dist/perl-bbe5d32a.js +0 -599
- package/dist/pgsql-7ebaee1c.js +0 -847
- package/dist/php-2526756d.js +0 -471
- package/dist/pla-9ebd6f68.js +0 -131
- package/dist/postiats-9ac05cf6.js +0 -544
- package/dist/powerquery-1cae399d.js +0 -890
- package/dist/powershell-093b5b87.js +0 -233
- package/dist/protobuf-37993cbc.js +0 -422
- package/dist/pug-c2a5db5f.js +0 -393
- package/dist/python-37bf24cb.js +0 -259
- package/dist/qsharp-1450aac5.js +0 -282
- package/dist/r-a0642b90.js +0 -245
- package/dist/razor-991b6ccc.js +0 -512
- package/dist/redis-405cb63d.js +0 -298
- package/dist/redshift-830f82de.js +0 -806
- package/dist/restructuredtext-d81f5ef4.js +0 -162
- package/dist/ruby-d607b87e.js +0 -444
- package/dist/rust-86e74dbb.js +0 -337
- package/dist/sb-b7e5010d.js +0 -110
- package/dist/scala-a4d4a3c6.js +0 -353
- package/dist/scheme-81927e94.js +0 -114
- package/dist/scss-3f112fcd.js +0 -244
- package/dist/shell-d795bcaa.js +0 -224
- package/dist/solidity-5b556d3e.js +0 -1351
- package/dist/sophia-1da55998.js +0 -190
- package/dist/sparql-ac34318e.js +0 -193
- package/dist/sql-eef6393b.js +0 -818
- package/dist/st-758b1972.js +0 -415
- package/dist/swift-63cb1847.js +0 -315
- package/dist/systemverilog-2538c608.js +0 -556
- package/dist/tcl-53e6282a.js +0 -232
- package/dist/tsMode-018c5c46.js +0 -811
- package/dist/twig-80c3dc23.js +0 -323
- package/dist/typescript-26297d38.js +0 -328
- package/dist/vb-32089525.js +0 -364
- package/dist/wgsl-e681d5a0.js +0 -420
- package/dist/xml-c99083fc.js +0 -95
- package/dist/yaml-0347fb0c.js +0 -184
package/dist/azcli-36f2cb5e.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
8
|
-
comments: {
|
|
9
|
-
lineComment: "#"
|
|
10
|
-
}
|
|
11
|
-
}, t = {
|
|
12
|
-
defaultToken: "keyword",
|
|
13
|
-
ignoreCase: !0,
|
|
14
|
-
tokenPostfix: ".azcli",
|
|
15
|
-
str: /[^#\s]/,
|
|
16
|
-
tokenizer: {
|
|
17
|
-
root: [
|
|
18
|
-
{ include: "@comment" },
|
|
19
|
-
[
|
|
20
|
-
/\s-+@str*\s*/,
|
|
21
|
-
{
|
|
22
|
-
cases: {
|
|
23
|
-
"@eos": { token: "key.identifier", next: "@popall" },
|
|
24
|
-
"@default": { token: "key.identifier", next: "@type" }
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
/^-+@str*\s*/,
|
|
30
|
-
{
|
|
31
|
-
cases: {
|
|
32
|
-
"@eos": { token: "key.identifier", next: "@popall" },
|
|
33
|
-
"@default": { token: "key.identifier", next: "@type" }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
],
|
|
38
|
-
type: [
|
|
39
|
-
{ include: "@comment" },
|
|
40
|
-
[
|
|
41
|
-
/-+@str*\s*/,
|
|
42
|
-
{
|
|
43
|
-
cases: {
|
|
44
|
-
"@eos": { token: "key.identifier", next: "@popall" },
|
|
45
|
-
"@default": "key.identifier"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
/@str+\s*/,
|
|
51
|
-
{
|
|
52
|
-
cases: {
|
|
53
|
-
"@eos": { token: "string", next: "@popall" },
|
|
54
|
-
"@default": "string"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
],
|
|
59
|
-
comment: [
|
|
60
|
-
[
|
|
61
|
-
/#.*$/,
|
|
62
|
-
{
|
|
63
|
-
cases: {
|
|
64
|
-
"@eos": { token: "comment", next: "@popall" }
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
e as conf,
|
|
73
|
-
t as language
|
|
74
|
-
};
|
package/dist/bat-6b05202d.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
8
|
-
comments: {
|
|
9
|
-
lineComment: "REM"
|
|
10
|
-
},
|
|
11
|
-
brackets: [
|
|
12
|
-
["{", "}"],
|
|
13
|
-
["[", "]"],
|
|
14
|
-
["(", ")"]
|
|
15
|
-
],
|
|
16
|
-
autoClosingPairs: [
|
|
17
|
-
{ open: "{", close: "}" },
|
|
18
|
-
{ open: "[", close: "]" },
|
|
19
|
-
{ open: "(", close: ")" },
|
|
20
|
-
{ open: '"', close: '"' }
|
|
21
|
-
],
|
|
22
|
-
surroundingPairs: [
|
|
23
|
-
{ open: "[", close: "]" },
|
|
24
|
-
{ open: "(", close: ")" },
|
|
25
|
-
{ open: '"', close: '"' }
|
|
26
|
-
],
|
|
27
|
-
folding: {
|
|
28
|
-
markers: {
|
|
29
|
-
start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"),
|
|
30
|
-
end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}, s = {
|
|
34
|
-
defaultToken: "",
|
|
35
|
-
ignoreCase: !0,
|
|
36
|
-
tokenPostfix: ".bat",
|
|
37
|
-
brackets: [
|
|
38
|
-
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
39
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
40
|
-
{ token: "delimiter.square", open: "[", close: "]" }
|
|
41
|
-
],
|
|
42
|
-
keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,
|
|
43
|
-
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
|
44
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
45
|
-
tokenizer: {
|
|
46
|
-
root: [
|
|
47
|
-
[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]],
|
|
48
|
-
[/(\@?)(@keywords)(?!\w)/, [{ token: "keyword" }, { token: "keyword.$2" }]],
|
|
49
|
-
[/[ \t\r\n]+/, ""],
|
|
50
|
-
[/setlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
51
|
-
[/endlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
52
|
-
[/[a-zA-Z_]\w*/, ""],
|
|
53
|
-
[/:\w*/, "metatag"],
|
|
54
|
-
[/%[^%]+%/, "variable"],
|
|
55
|
-
[/%%[\w]+(?!\w)/, "variable"],
|
|
56
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
57
|
-
[/@symbols/, "delimiter"],
|
|
58
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
59
|
-
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
60
|
-
[/\d+/, "number"],
|
|
61
|
-
[/[;,.]/, "delimiter"],
|
|
62
|
-
[/"/, "string", '@string."'],
|
|
63
|
-
[/'/, "string", "@string.'"]
|
|
64
|
-
],
|
|
65
|
-
string: [
|
|
66
|
-
[
|
|
67
|
-
/[^\\"'%]+/,
|
|
68
|
-
{
|
|
69
|
-
cases: {
|
|
70
|
-
"@eos": { token: "string", next: "@popall" },
|
|
71
|
-
"@default": "string"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
[/@escapes/, "string.escape"],
|
|
76
|
-
[/\\./, "string.escape.invalid"],
|
|
77
|
-
[/%[\w ]+%/, "variable"],
|
|
78
|
-
[/%%[\w]+(?!\w)/, "variable"],
|
|
79
|
-
[
|
|
80
|
-
/["']/,
|
|
81
|
-
{
|
|
82
|
-
cases: {
|
|
83
|
-
"$#==$S2": { token: "string", next: "@pop" },
|
|
84
|
-
"@default": "string"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
[/$/, "string", "@popall"]
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
e as conf,
|
|
94
|
-
s as language
|
|
95
|
-
};
|
package/dist/bicep-788415e3.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o}*`), i = [
|
|
8
|
-
"targetScope",
|
|
9
|
-
"resource",
|
|
10
|
-
"module",
|
|
11
|
-
"param",
|
|
12
|
-
"var",
|
|
13
|
-
"output",
|
|
14
|
-
"for",
|
|
15
|
-
"in",
|
|
16
|
-
"if",
|
|
17
|
-
"existing"
|
|
18
|
-
], a = ["true", "false", "null"], s = "[ \\t\\r\\n]", c = "[0-9]+", g = {
|
|
19
|
-
comments: {
|
|
20
|
-
lineComment: "//",
|
|
21
|
-
blockComment: ["/*", "*/"]
|
|
22
|
-
},
|
|
23
|
-
brackets: [
|
|
24
|
-
["{", "}"],
|
|
25
|
-
["[", "]"],
|
|
26
|
-
["(", ")"]
|
|
27
|
-
],
|
|
28
|
-
surroundingPairs: [
|
|
29
|
-
{ open: "{", close: "}" },
|
|
30
|
-
{ open: "[", close: "]" },
|
|
31
|
-
{ open: "(", close: ")" },
|
|
32
|
-
{ open: "'", close: "'" },
|
|
33
|
-
{ open: "'''", close: "'''" }
|
|
34
|
-
],
|
|
35
|
-
autoClosingPairs: [
|
|
36
|
-
{ open: "{", close: "}" },
|
|
37
|
-
{ open: "[", close: "]" },
|
|
38
|
-
{ open: "(", close: ")" },
|
|
39
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
40
|
-
{ open: "'''", close: "'''", notIn: ["string", "comment"] }
|
|
41
|
-
],
|
|
42
|
-
autoCloseBefore: `:.,=}])'
|
|
43
|
-
`,
|
|
44
|
-
indentationRules: {
|
|
45
|
-
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
46
|
-
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
47
|
-
}
|
|
48
|
-
}, l = {
|
|
49
|
-
defaultToken: "",
|
|
50
|
-
tokenPostfix: ".bicep",
|
|
51
|
-
brackets: [
|
|
52
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
53
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
|
54
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
55
|
-
],
|
|
56
|
-
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
57
|
-
keywords: i,
|
|
58
|
-
namedLiterals: a,
|
|
59
|
-
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
60
|
-
tokenizer: {
|
|
61
|
-
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
62
|
-
stringVerbatim: [
|
|
63
|
-
{ regex: "(|'|'')[^']", action: { token: "string" } },
|
|
64
|
-
{ regex: "'''", action: { token: "string.quote", next: "@pop" } }
|
|
65
|
-
],
|
|
66
|
-
stringLiteral: [
|
|
67
|
-
{ regex: "\\${", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
68
|
-
{ regex: "[^\\\\'$]+", action: { token: "string" } },
|
|
69
|
-
{ regex: "@escapes", action: { token: "string.escape" } },
|
|
70
|
-
{ regex: "\\\\.", action: { token: "string.escape.invalid" } },
|
|
71
|
-
{ regex: "'", action: { token: "string", next: "@pop" } }
|
|
72
|
-
],
|
|
73
|
-
bracketCounting: [
|
|
74
|
-
{ regex: "{", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
75
|
-
{ regex: "}", action: { token: "delimiter.bracket", next: "@pop" } },
|
|
76
|
-
{ include: "expression" }
|
|
77
|
-
],
|
|
78
|
-
comment: [
|
|
79
|
-
{ regex: "[^\\*]+", action: { token: "comment" } },
|
|
80
|
-
{ regex: "\\*\\/", action: { token: "comment", next: "@pop" } },
|
|
81
|
-
{ regex: "[\\/*]", action: { token: "comment" } }
|
|
82
|
-
],
|
|
83
|
-
whitespace: [
|
|
84
|
-
{ regex: s },
|
|
85
|
-
{ regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
|
|
86
|
-
{ regex: "\\/\\/.*$", action: { token: "comment" } }
|
|
87
|
-
],
|
|
88
|
-
expression: [
|
|
89
|
-
{ regex: "'''", action: { token: "string.quote", next: "@stringVerbatim" } },
|
|
90
|
-
{ regex: "'", action: { token: "string.quote", next: "@stringLiteral" } },
|
|
91
|
-
{ regex: c, action: { token: "number" } },
|
|
92
|
-
{
|
|
93
|
-
regex: r,
|
|
94
|
-
action: {
|
|
95
|
-
cases: {
|
|
96
|
-
"@keywords": { token: "keyword" },
|
|
97
|
-
"@namedLiterals": { token: "keyword" },
|
|
98
|
-
"@default": { token: "identifier" }
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
export {
|
|
106
|
-
g as conf,
|
|
107
|
-
l as language
|
|
108
|
-
};
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
var e = {
|
|
8
|
-
comments: {
|
|
9
|
-
lineComment: "//",
|
|
10
|
-
blockComment: ["(*", "*)"]
|
|
11
|
-
},
|
|
12
|
-
brackets: [
|
|
13
|
-
["{", "}"],
|
|
14
|
-
["[", "]"],
|
|
15
|
-
["(", ")"],
|
|
16
|
-
["<", ">"]
|
|
17
|
-
],
|
|
18
|
-
autoClosingPairs: [
|
|
19
|
-
{ open: "{", close: "}" },
|
|
20
|
-
{ open: "[", close: "]" },
|
|
21
|
-
{ open: "(", close: ")" },
|
|
22
|
-
{ open: "<", close: ">" },
|
|
23
|
-
{ open: "'", close: "'" },
|
|
24
|
-
{ open: '"', close: '"' },
|
|
25
|
-
{ open: "(*", close: "*)" }
|
|
26
|
-
],
|
|
27
|
-
surroundingPairs: [
|
|
28
|
-
{ open: "{", close: "}" },
|
|
29
|
-
{ open: "[", close: "]" },
|
|
30
|
-
{ open: "(", close: ")" },
|
|
31
|
-
{ open: "<", close: ">" },
|
|
32
|
-
{ open: "'", close: "'" },
|
|
33
|
-
{ open: '"', close: '"' },
|
|
34
|
-
{ open: "(*", close: "*)" }
|
|
35
|
-
]
|
|
36
|
-
}, o = {
|
|
37
|
-
defaultToken: "",
|
|
38
|
-
tokenPostfix: ".cameligo",
|
|
39
|
-
ignoreCase: !0,
|
|
40
|
-
brackets: [
|
|
41
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
42
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
|
43
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
44
|
-
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
45
|
-
],
|
|
46
|
-
keywords: [
|
|
47
|
-
"abs",
|
|
48
|
-
"assert",
|
|
49
|
-
"block",
|
|
50
|
-
"Bytes",
|
|
51
|
-
"case",
|
|
52
|
-
"Crypto",
|
|
53
|
-
"Current",
|
|
54
|
-
"else",
|
|
55
|
-
"failwith",
|
|
56
|
-
"false",
|
|
57
|
-
"for",
|
|
58
|
-
"fun",
|
|
59
|
-
"if",
|
|
60
|
-
"in",
|
|
61
|
-
"let",
|
|
62
|
-
"let%entry",
|
|
63
|
-
"let%init",
|
|
64
|
-
"List",
|
|
65
|
-
"list",
|
|
66
|
-
"Map",
|
|
67
|
-
"map",
|
|
68
|
-
"match",
|
|
69
|
-
"match%nat",
|
|
70
|
-
"mod",
|
|
71
|
-
"not",
|
|
72
|
-
"operation",
|
|
73
|
-
"Operation",
|
|
74
|
-
"of",
|
|
75
|
-
"record",
|
|
76
|
-
"Set",
|
|
77
|
-
"set",
|
|
78
|
-
"sender",
|
|
79
|
-
"skip",
|
|
80
|
-
"source",
|
|
81
|
-
"String",
|
|
82
|
-
"then",
|
|
83
|
-
"to",
|
|
84
|
-
"true",
|
|
85
|
-
"type",
|
|
86
|
-
"with"
|
|
87
|
-
],
|
|
88
|
-
typeKeywords: ["int", "unit", "string", "tz", "nat", "bool"],
|
|
89
|
-
operators: [
|
|
90
|
-
"=",
|
|
91
|
-
">",
|
|
92
|
-
"<",
|
|
93
|
-
"<=",
|
|
94
|
-
">=",
|
|
95
|
-
"<>",
|
|
96
|
-
":",
|
|
97
|
-
":=",
|
|
98
|
-
"and",
|
|
99
|
-
"mod",
|
|
100
|
-
"or",
|
|
101
|
-
"+",
|
|
102
|
-
"-",
|
|
103
|
-
"*",
|
|
104
|
-
"/",
|
|
105
|
-
"@",
|
|
106
|
-
"&",
|
|
107
|
-
"^",
|
|
108
|
-
"%",
|
|
109
|
-
"->",
|
|
110
|
-
"<-",
|
|
111
|
-
"&&",
|
|
112
|
-
"||"
|
|
113
|
-
],
|
|
114
|
-
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
|
115
|
-
tokenizer: {
|
|
116
|
-
root: [
|
|
117
|
-
[
|
|
118
|
-
/[a-zA-Z_][\w]*/,
|
|
119
|
-
{
|
|
120
|
-
cases: {
|
|
121
|
-
"@keywords": { token: "keyword.$0" },
|
|
122
|
-
"@default": "identifier"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
{ include: "@whitespace" },
|
|
127
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
128
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
|
129
|
-
[
|
|
130
|
-
/@symbols/,
|
|
131
|
-
{
|
|
132
|
-
cases: {
|
|
133
|
-
"@operators": "delimiter",
|
|
134
|
-
"@default": ""
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
139
|
-
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
|
140
|
-
[/\d+/, "number"],
|
|
141
|
-
[/[;,.]/, "delimiter"],
|
|
142
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
143
|
-
[/'/, "string", "@string"],
|
|
144
|
-
[/'[^\\']'/, "string"],
|
|
145
|
-
[/'/, "string.invalid"],
|
|
146
|
-
[/\#\d+/, "string"]
|
|
147
|
-
],
|
|
148
|
-
comment: [
|
|
149
|
-
[/[^\(\*]+/, "comment"],
|
|
150
|
-
[/\*\)/, "comment", "@pop"],
|
|
151
|
-
[/\(\*/, "comment"]
|
|
152
|
-
],
|
|
153
|
-
string: [
|
|
154
|
-
[/[^\\']+/, "string"],
|
|
155
|
-
[/\\./, "string.escape.invalid"],
|
|
156
|
-
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
157
|
-
],
|
|
158
|
-
whitespace: [
|
|
159
|
-
[/[ \t\r\n]+/, "white"],
|
|
160
|
-
[/\(\*/, "comment", "@comment"],
|
|
161
|
-
[/\/\/.*$/, "comment"]
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
export {
|
|
166
|
-
e as conf,
|
|
167
|
-
o as language
|
|
168
|
-
};
|