@devtron-labs/devtron-fe-common-lib 0.0.81-beta-8 → 0.0.82

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 (132) hide show
  1. package/dist/Common/Api.d.ts +1 -0
  2. package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
  3. package/dist/Common/Common.service.d.ts +3 -6
  4. package/dist/Common/Constants.d.ts +13 -10
  5. package/dist/Common/ErrorPage.d.ts +1 -1
  6. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  7. package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
  8. package/dist/Common/GenericDescription/constant.d.ts +2 -0
  9. package/dist/Common/GenericDescription/index.d.ts +2 -0
  10. package/dist/Common/GenericDescription/types.d.ts +14 -0
  11. package/dist/Common/Helper.d.ts +11 -2
  12. package/dist/Common/Markdown/constant.d.ts +28 -0
  13. package/dist/Common/Types.d.ts +56 -18
  14. package/dist/Common/index.d.ts +1 -1
  15. package/dist/Pages/index.d.ts +0 -1
  16. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  17. package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
  18. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
  19. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
  20. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
  21. package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
  22. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
  23. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  24. package/dist/Shared/Components/Header/types.d.ts +7 -9
  25. package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
  26. package/dist/Shared/Components/index.d.ts +1 -0
  27. package/dist/Shared/Helpers.d.ts +2 -1
  28. package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
  29. package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
  30. package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
  31. package/dist/Shared/Providers/index.d.ts +1 -0
  32. package/dist/Shared/constants.d.ts +14 -0
  33. package/dist/Shared/index.d.ts +1 -0
  34. package/dist/Shared/types.d.ts +88 -13
  35. package/dist/Shared/validations.d.ts +10 -1
  36. package/dist/assets/index.css +1 -1
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +20827 -302
  39. package/package.json +10 -7
  40. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
  41. package/dist/Common/CodeEditor/index.d.ts +0 -2
  42. package/dist/Common/CodeEditor/types.d.ts +0 -86
  43. package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
  44. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
  45. package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
  46. package/dist/abap-5361cc9f.js +0 -1314
  47. package/dist/apex-f9413e6f.js +0 -315
  48. package/dist/assets/editor.worker-60ba9509.js +0 -12
  49. package/dist/assets/yaml.worker-cc1a551a.js +0 -471
  50. package/dist/azcli-36f2cb5e.js +0 -74
  51. package/dist/bat-6b05202d.js +0 -95
  52. package/dist/bicep-788415e3.js +0 -108
  53. package/dist/cameligo-4e85ec93.js +0 -168
  54. package/dist/clojure-40fa5799.js +0 -754
  55. package/dist/coffee-f557f5e0.js +0 -228
  56. package/dist/cpp-ebbf7759.js +0 -390
  57. package/dist/csharp-1616f566.js +0 -320
  58. package/dist/csp-5f0bc3c4.js +0 -57
  59. package/dist/css-2b1aec9b.js +0 -186
  60. package/dist/cssMode-f6d332a1.js +0 -1446
  61. package/dist/cypher-b12b4ba8.js +0 -262
  62. package/dist/dart-e0d70030.js +0 -270
  63. package/dist/dockerfile-f9d4b2b0.js +0 -132
  64. package/dist/ecl-5b91fdec.js +0 -454
  65. package/dist/elixir-deffd5a6.js +0 -489
  66. package/dist/flow9-84cd00d7.js +0 -141
  67. package/dist/freemarker2-8e23f5a4.js +0 -643
  68. package/dist/fsharp-d296151f.js +0 -210
  69. package/dist/go-7e72ff3b.js +0 -208
  70. package/dist/graphql-a93568a1.js +0 -141
  71. package/dist/handlebars-f1c6ec5a.js +0 -391
  72. package/dist/hcl-b3994d8f.js +0 -177
  73. package/dist/html-1a4d5d9a.js +0 -281
  74. package/dist/htmlMode-05b8c00b.js +0 -1456
  75. package/dist/index-83e46ae3.js +0 -128536
  76. package/dist/ini-df84509a.js +0 -68
  77. package/dist/java-fba3d046.js +0 -221
  78. package/dist/javascript-823e6a19.js +0 -75
  79. package/dist/jsonMode-052d75cd.js +0 -1867
  80. package/dist/julia-cefd45f6.js +0 -496
  81. package/dist/kotlin-b87b6942.js +0 -245
  82. package/dist/less-8a7f37bc.js +0 -168
  83. package/dist/lexon-cb95cd13.js +0 -151
  84. package/dist/liquid-13a0b36f.js +0 -238
  85. package/dist/lua-6d5b3ea4.js +0 -157
  86. package/dist/m3-d0daf5d0.js +0 -210
  87. package/dist/markdown-48bb0c6f.js +0 -202
  88. package/dist/mdx-32e942cd.js +0 -171
  89. package/dist/mips-20dcf886.js +0 -194
  90. package/dist/msdax-e9759e23.js +0 -377
  91. package/dist/mysql-95f335b2.js +0 -876
  92. package/dist/objective-c-ad0cfb47.js +0 -188
  93. package/dist/pascal-eda19dc3.js +0 -245
  94. package/dist/pascaligo-b7e0c89b.js +0 -158
  95. package/dist/perl-bbe5d32a.js +0 -599
  96. package/dist/pgsql-7ebaee1c.js +0 -847
  97. package/dist/php-2526756d.js +0 -471
  98. package/dist/pla-9ebd6f68.js +0 -131
  99. package/dist/postiats-9ac05cf6.js +0 -544
  100. package/dist/powerquery-1cae399d.js +0 -890
  101. package/dist/powershell-093b5b87.js +0 -233
  102. package/dist/protobuf-37993cbc.js +0 -422
  103. package/dist/pug-c2a5db5f.js +0 -393
  104. package/dist/python-37bf24cb.js +0 -259
  105. package/dist/qsharp-1450aac5.js +0 -282
  106. package/dist/r-a0642b90.js +0 -245
  107. package/dist/razor-991b6ccc.js +0 -512
  108. package/dist/redis-405cb63d.js +0 -298
  109. package/dist/redshift-830f82de.js +0 -806
  110. package/dist/restructuredtext-d81f5ef4.js +0 -162
  111. package/dist/ruby-d607b87e.js +0 -444
  112. package/dist/rust-86e74dbb.js +0 -337
  113. package/dist/sb-b7e5010d.js +0 -110
  114. package/dist/scala-a4d4a3c6.js +0 -353
  115. package/dist/scheme-81927e94.js +0 -114
  116. package/dist/scss-3f112fcd.js +0 -244
  117. package/dist/shell-d795bcaa.js +0 -224
  118. package/dist/solidity-5b556d3e.js +0 -1351
  119. package/dist/sophia-1da55998.js +0 -190
  120. package/dist/sparql-ac34318e.js +0 -193
  121. package/dist/sql-eef6393b.js +0 -818
  122. package/dist/st-758b1972.js +0 -415
  123. package/dist/swift-63cb1847.js +0 -315
  124. package/dist/systemverilog-2538c608.js +0 -556
  125. package/dist/tcl-53e6282a.js +0 -232
  126. package/dist/tsMode-018c5c46.js +0 -811
  127. package/dist/twig-80c3dc23.js +0 -323
  128. package/dist/typescript-26297d38.js +0 -328
  129. package/dist/vb-32089525.js +0 -364
  130. package/dist/wgsl-e681d5a0.js +0 -420
  131. package/dist/xml-c99083fc.js +0 -95
  132. package/dist/yaml-0347fb0c.js +0 -184
@@ -1,320 +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
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
9
- comments: {
10
- lineComment: "//",
11
- blockComment: ["/*", "*/"]
12
- },
13
- brackets: [
14
- ["{", "}"],
15
- ["[", "]"],
16
- ["(", ")"]
17
- ],
18
- autoClosingPairs: [
19
- { open: "{", close: "}" },
20
- { open: "[", close: "]" },
21
- { open: "(", close: ")" },
22
- { open: "'", close: "'", notIn: ["string", "comment"] },
23
- { open: '"', close: '"', notIn: ["string", "comment"] }
24
- ],
25
- surroundingPairs: [
26
- { open: "{", close: "}" },
27
- { open: "[", close: "]" },
28
- { open: "(", close: ")" },
29
- { open: "<", close: ">" },
30
- { open: "'", close: "'" },
31
- { open: '"', close: '"' }
32
- ],
33
- folding: {
34
- markers: {
35
- start: new RegExp("^\\s*#region\\b"),
36
- end: new RegExp("^\\s*#endregion\\b")
37
- }
38
- }
39
- }, t = {
40
- defaultToken: "",
41
- tokenPostfix: ".cs",
42
- brackets: [
43
- { open: "{", close: "}", token: "delimiter.curly" },
44
- { open: "[", close: "]", token: "delimiter.square" },
45
- { open: "(", close: ")", token: "delimiter.parenthesis" },
46
- { open: "<", close: ">", token: "delimiter.angle" }
47
- ],
48
- keywords: [
49
- "extern",
50
- "alias",
51
- "using",
52
- "bool",
53
- "decimal",
54
- "sbyte",
55
- "byte",
56
- "short",
57
- "ushort",
58
- "int",
59
- "uint",
60
- "long",
61
- "ulong",
62
- "char",
63
- "float",
64
- "double",
65
- "object",
66
- "dynamic",
67
- "string",
68
- "assembly",
69
- "is",
70
- "as",
71
- "ref",
72
- "out",
73
- "this",
74
- "base",
75
- "new",
76
- "typeof",
77
- "void",
78
- "checked",
79
- "unchecked",
80
- "default",
81
- "delegate",
82
- "var",
83
- "const",
84
- "if",
85
- "else",
86
- "switch",
87
- "case",
88
- "while",
89
- "do",
90
- "for",
91
- "foreach",
92
- "in",
93
- "break",
94
- "continue",
95
- "goto",
96
- "return",
97
- "throw",
98
- "try",
99
- "catch",
100
- "finally",
101
- "lock",
102
- "yield",
103
- "from",
104
- "let",
105
- "where",
106
- "join",
107
- "on",
108
- "equals",
109
- "into",
110
- "orderby",
111
- "ascending",
112
- "descending",
113
- "select",
114
- "group",
115
- "by",
116
- "namespace",
117
- "partial",
118
- "class",
119
- "field",
120
- "event",
121
- "method",
122
- "param",
123
- "public",
124
- "protected",
125
- "internal",
126
- "private",
127
- "abstract",
128
- "sealed",
129
- "static",
130
- "struct",
131
- "readonly",
132
- "volatile",
133
- "virtual",
134
- "override",
135
- "params",
136
- "get",
137
- "set",
138
- "add",
139
- "remove",
140
- "operator",
141
- "true",
142
- "false",
143
- "implicit",
144
- "explicit",
145
- "interface",
146
- "enum",
147
- "null",
148
- "async",
149
- "await",
150
- "fixed",
151
- "sizeof",
152
- "stackalloc",
153
- "unsafe",
154
- "nameof",
155
- "when"
156
- ],
157
- namespaceFollows: ["namespace", "using"],
158
- parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
159
- operators: [
160
- "=",
161
- "??",
162
- "||",
163
- "&&",
164
- "|",
165
- "^",
166
- "&",
167
- "==",
168
- "!=",
169
- "<=",
170
- ">=",
171
- "<<",
172
- "+",
173
- "-",
174
- "*",
175
- "/",
176
- "%",
177
- "!",
178
- "~",
179
- "++",
180
- "--",
181
- "+=",
182
- "-=",
183
- "*=",
184
- "/=",
185
- "%=",
186
- "&=",
187
- "|=",
188
- "^=",
189
- "<<=",
190
- ">>=",
191
- ">>",
192
- "=>"
193
- ],
194
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
195
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
196
- tokenizer: {
197
- root: [
198
- [
199
- /\@?[a-zA-Z_]\w*/,
200
- {
201
- cases: {
202
- "@namespaceFollows": {
203
- token: "keyword.$0",
204
- next: "@namespace"
205
- },
206
- "@keywords": {
207
- token: "keyword.$0",
208
- next: "@qualified"
209
- },
210
- "@default": { token: "identifier", next: "@qualified" }
211
- }
212
- }
213
- ],
214
- { include: "@whitespace" },
215
- [
216
- /}/,
217
- {
218
- cases: {
219
- "$S2==interpolatedstring": {
220
- token: "string.quote",
221
- next: "@pop"
222
- },
223
- "$S2==litinterpstring": {
224
- token: "string.quote",
225
- next: "@pop"
226
- },
227
- "@default": "@brackets"
228
- }
229
- }
230
- ],
231
- [/[{}()\[\]]/, "@brackets"],
232
- [/[<>](?!@symbols)/, "@brackets"],
233
- [
234
- /@symbols/,
235
- {
236
- cases: {
237
- "@operators": "delimiter",
238
- "@default": ""
239
- }
240
- }
241
- ],
242
- [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
243
- [/0[xX][0-9a-fA-F_]+/, "number.hex"],
244
- [/0[bB][01_]+/, "number.hex"],
245
- [/[0-9_]+/, "number"],
246
- [/[;,.]/, "delimiter"],
247
- [/"([^"\\]|\\.)*$/, "string.invalid"],
248
- [/"/, { token: "string.quote", next: "@string" }],
249
- [/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
250
- [/\@"/, { token: "string.quote", next: "@litstring" }],
251
- [/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
252
- [/'[^\\']'/, "string"],
253
- [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
254
- [/'/, "string.invalid"]
255
- ],
256
- qualified: [
257
- [
258
- /[a-zA-Z_][\w]*/,
259
- {
260
- cases: {
261
- "@keywords": { token: "keyword.$0" },
262
- "@default": "identifier"
263
- }
264
- }
265
- ],
266
- [/\./, "delimiter"],
267
- ["", "", "@pop"]
268
- ],
269
- namespace: [
270
- { include: "@whitespace" },
271
- [/[A-Z]\w*/, "namespace"],
272
- [/[\.=]/, "delimiter"],
273
- ["", "", "@pop"]
274
- ],
275
- comment: [
276
- [/[^\/*]+/, "comment"],
277
- ["\\*/", "comment", "@pop"],
278
- [/[\/*]/, "comment"]
279
- ],
280
- string: [
281
- [/[^\\"]+/, "string"],
282
- [/@escapes/, "string.escape"],
283
- [/\\./, "string.escape.invalid"],
284
- [/"/, { token: "string.quote", next: "@pop" }]
285
- ],
286
- litstring: [
287
- [/[^"]+/, "string"],
288
- [/""/, "string.escape"],
289
- [/"/, { token: "string.quote", next: "@pop" }]
290
- ],
291
- litinterpstring: [
292
- [/[^"{]+/, "string"],
293
- [/""/, "string.escape"],
294
- [/{{/, "string.escape"],
295
- [/}}/, "string.escape"],
296
- [/{/, { token: "string.quote", next: "root.litinterpstring" }],
297
- [/"/, { token: "string.quote", next: "@pop" }]
298
- ],
299
- interpolatedstring: [
300
- [/[^\\"{]+/, "string"],
301
- [/@escapes/, "string.escape"],
302
- [/\\./, "string.escape.invalid"],
303
- [/{{/, "string.escape"],
304
- [/}}/, "string.escape"],
305
- [/{/, { token: "string.quote", next: "root.interpolatedstring" }],
306
- [/"/, { token: "string.quote", next: "@pop" }]
307
- ],
308
- whitespace: [
309
- [/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
310
- [/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
311
- [/[ \t\v\f\r\n]+/, ""],
312
- [/\/\*/, "comment", "@comment"],
313
- [/\/\/.*$/, "comment"]
314
- ]
315
- }
316
- };
317
- export {
318
- e as conf,
319
- t as language
320
- };
@@ -1,57 +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 t = {
8
- brackets: [],
9
- autoClosingPairs: [],
10
- surroundingPairs: []
11
- }, r = {
12
- keywords: [],
13
- typeKeywords: [],
14
- tokenPostfix: ".csp",
15
- operators: [],
16
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
17
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
18
- tokenizer: {
19
- root: [
20
- [/child-src/, "string.quote"],
21
- [/connect-src/, "string.quote"],
22
- [/default-src/, "string.quote"],
23
- [/font-src/, "string.quote"],
24
- [/frame-src/, "string.quote"],
25
- [/img-src/, "string.quote"],
26
- [/manifest-src/, "string.quote"],
27
- [/media-src/, "string.quote"],
28
- [/object-src/, "string.quote"],
29
- [/script-src/, "string.quote"],
30
- [/style-src/, "string.quote"],
31
- [/worker-src/, "string.quote"],
32
- [/base-uri/, "string.quote"],
33
- [/plugin-types/, "string.quote"],
34
- [/sandbox/, "string.quote"],
35
- [/disown-opener/, "string.quote"],
36
- [/form-action/, "string.quote"],
37
- [/frame-ancestors/, "string.quote"],
38
- [/report-uri/, "string.quote"],
39
- [/report-to/, "string.quote"],
40
- [/upgrade-insecure-requests/, "string.quote"],
41
- [/block-all-mixed-content/, "string.quote"],
42
- [/require-sri-for/, "string.quote"],
43
- [/reflected-xss/, "string.quote"],
44
- [/referrer/, "string.quote"],
45
- [/policy-uri/, "string.quote"],
46
- [/'self'/, "string.quote"],
47
- [/'unsafe-inline'/, "string.quote"],
48
- [/'unsafe-eval'/, "string.quote"],
49
- [/'strict-dynamic'/, "string.quote"],
50
- [/'unsafe-hashed-attributes'/, "string.quote"]
51
- ]
52
- }
53
- };
54
- export {
55
- t as conf,
56
- r as language
57
- };
@@ -1,186 +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
- wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
9
- comments: {
10
- blockComment: ["/*", "*/"]
11
- },
12
- brackets: [
13
- ["{", "}"],
14
- ["[", "]"],
15
- ["(", ")"]
16
- ],
17
- autoClosingPairs: [
18
- { open: "{", close: "}", notIn: ["string", "comment"] },
19
- { open: "[", close: "]", notIn: ["string", "comment"] },
20
- { open: "(", close: ")", notIn: ["string", "comment"] },
21
- { open: '"', close: '"', notIn: ["string", "comment"] },
22
- { open: "'", close: "'", notIn: ["string", "comment"] }
23
- ],
24
- surroundingPairs: [
25
- { open: "{", close: "}" },
26
- { open: "[", close: "]" },
27
- { open: "(", close: ")" },
28
- { open: '"', close: '"' },
29
- { open: "'", close: "'" }
30
- ],
31
- folding: {
32
- markers: {
33
- start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
34
- end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
35
- }
36
- }
37
- }, t = {
38
- defaultToken: "",
39
- tokenPostfix: ".css",
40
- ws: `[
41
- \r\f]*`,
42
- identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
43
- brackets: [
44
- { open: "{", close: "}", token: "delimiter.bracket" },
45
- { open: "[", close: "]", token: "delimiter.bracket" },
46
- { open: "(", close: ")", token: "delimiter.parenthesis" },
47
- { open: "<", close: ">", token: "delimiter.angle" }
48
- ],
49
- tokenizer: {
50
- root: [{ include: "@selector" }],
51
- selector: [
52
- { include: "@comments" },
53
- { include: "@import" },
54
- { include: "@strings" },
55
- [
56
- "[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
57
- { token: "keyword", next: "@keyframedeclaration" }
58
- ],
59
- ["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
60
- ["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
61
- [
62
- "(url-prefix)(\\()",
63
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
64
- ],
65
- [
66
- "(url)(\\()",
67
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
68
- ],
69
- { include: "@selectorname" },
70
- ["[\\*]", "tag"],
71
- ["[>\\+,]", "delimiter"],
72
- ["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
73
- ["{", { token: "delimiter.bracket", next: "@selectorbody" }]
74
- ],
75
- selectorbody: [
76
- { include: "@comments" },
77
- ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
78
- ["}", { token: "delimiter.bracket", next: "@pop" }]
79
- ],
80
- selectorname: [
81
- ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
82
- ],
83
- selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
84
- term: [
85
- { include: "@comments" },
86
- [
87
- "(url-prefix)(\\()",
88
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
89
- ],
90
- [
91
- "(url)(\\()",
92
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
93
- ],
94
- { include: "@functioninvocation" },
95
- { include: "@numbers" },
96
- { include: "@name" },
97
- { include: "@strings" },
98
- ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
99
- [",", "delimiter"]
100
- ],
101
- rulevalue: [
102
- { include: "@comments" },
103
- { include: "@strings" },
104
- { include: "@term" },
105
- ["!important", "keyword"],
106
- [";", "delimiter", "@pop"],
107
- ["(?=})", { token: "", next: "@pop" }]
108
- ],
109
- warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
110
- import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
111
- urldeclaration: [
112
- { include: "@strings" },
113
- [`[^)\r
114
- ]+`, "string"],
115
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
116
- ],
117
- parenthizedterm: [
118
- { include: "@term" },
119
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
120
- ],
121
- declarationbody: [
122
- { include: "@term" },
123
- [";", "delimiter", "@pop"],
124
- ["(?=})", { token: "", next: "@pop" }]
125
- ],
126
- comments: [
127
- ["\\/\\*", "comment", "@comment"],
128
- ["\\/\\/+.*", "comment"]
129
- ],
130
- comment: [
131
- ["\\*\\/", "comment", "@pop"],
132
- [/[^*/]+/, "comment"],
133
- [/./, "comment"]
134
- ],
135
- name: [["@identifier", "attribute.value"]],
136
- numbers: [
137
- ["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
138
- ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
139
- ],
140
- units: [
141
- [
142
- "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
143
- "attribute.value.unit",
144
- "@pop"
145
- ]
146
- ],
147
- keyframedeclaration: [
148
- ["@identifier", "attribute.value"],
149
- ["{", { token: "delimiter.bracket", switchTo: "@keyframebody" }]
150
- ],
151
- keyframebody: [
152
- { include: "@term" },
153
- ["{", { token: "delimiter.bracket", next: "@selectorbody" }],
154
- ["}", { token: "delimiter.bracket", next: "@pop" }]
155
- ],
156
- functioninvocation: [
157
- ["@identifier\\(", { token: "attribute.value", next: "@functionarguments" }]
158
- ],
159
- functionarguments: [
160
- ["\\$@identifier@ws:", "attribute.name"],
161
- ["[,]", "delimiter"],
162
- { include: "@term" },
163
- ["\\)", { token: "attribute.value", next: "@pop" }]
164
- ],
165
- strings: [
166
- ['~?"', { token: "string", next: "@stringenddoublequote" }],
167
- ["~?'", { token: "string", next: "@stringendquote" }]
168
- ],
169
- stringenddoublequote: [
170
- ["\\\\.", "string"],
171
- ['"', { token: "string", next: "@pop" }],
172
- [/[^\\"]+/, "string"],
173
- [".", "string"]
174
- ],
175
- stringendquote: [
176
- ["\\\\.", "string"],
177
- ["'", { token: "string", next: "@pop" }],
178
- [/[^\\']+/, "string"],
179
- [".", "string"]
180
- ]
181
- }
182
- };
183
- export {
184
- e as conf,
185
- t as language
186
- };