@devtron-labs/devtron-fe-common-lib 1.1.5 → 1.1.6-beta-2

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 (116) hide show
  1. package/dist/@code-editor-Vbkor1r4.js +18991 -0
  2. package/dist/@common-rjsf-6UM_zh8b.js +567 -0
  3. package/dist/@framer-motion-DHY98qq3.js +3437 -0
  4. package/dist/@moment-C_WeV3Af.js +2609 -0
  5. package/dist/@monaco-editor-34kqzg3G.js +70451 -0
  6. package/dist/@react-dates-WNnwjI5S.js +7708 -0
  7. package/dist/@react-select-BbR996pa.js +2636 -0
  8. package/dist/@src-assets-images-DamVa6cS.js +14 -0
  9. package/dist/@vendor-RU8AW1bK.js +20473 -0
  10. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +2 -1
  11. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  12. package/dist/Common/RJSF/Form.d.ts +1 -1
  13. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +3 -0
  14. package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
  15. package/dist/Shared/Components/Backdrop/types.d.ts +8 -0
  16. package/dist/Shared/Components/ConfirmationModal/ConfirmationModal.d.ts +3 -0
  17. package/dist/Shared/Components/ConfirmationModal/index.d.ts +2 -0
  18. package/dist/Shared/Components/ConfirmationModal/types.d.ts +50 -0
  19. package/dist/Shared/Components/ConfirmationModal/utils.d.ts +6 -0
  20. package/dist/Shared/Components/index.d.ts +1 -0
  21. package/dist/Shared/Helpers.d.ts +2 -1
  22. package/dist/Shared/constants.d.ts +1 -0
  23. package/dist/Shared/types.d.ts +4 -0
  24. package/dist/assets/@code-editor.css +1 -0
  25. package/dist/assets/@common-rjsf.css +1 -0
  26. package/dist/assets/@monaco-editor.css +1 -0
  27. package/dist/assets/@react-dates.css +1 -0
  28. package/dist/assets/@vendor.css +1 -0
  29. package/dist/index.js +433 -428
  30. package/package.json +5 -5
  31. package/dist/abap-DttVK1gE.js +0 -1314
  32. package/dist/apex-BjfHvyb2.js +0 -315
  33. package/dist/assets/index.css +0 -1
  34. package/dist/azcli-Ws-Trf8e.js +0 -74
  35. package/dist/bat-CeCHpU9_.js +0 -95
  36. package/dist/bicep-C7a7aEmi.js +0 -108
  37. package/dist/cameligo-CJeEIvX4.js +0 -168
  38. package/dist/clojure-CEKXhLdU.js +0 -754
  39. package/dist/coffee-CKu3e6V1.js +0 -228
  40. package/dist/cpp-CvUiT5Ec.js +0 -390
  41. package/dist/csharp-PmU9HJkB.js +0 -320
  42. package/dist/csp-DULvRLPF.js +0 -57
  43. package/dist/css-CNWXQPpt.js +0 -186
  44. package/dist/cssMode-BsTjp5T1.js +0 -1446
  45. package/dist/cypher-CYHOQS2R.js +0 -262
  46. package/dist/dart-BjGx-9Jk.js +0 -270
  47. package/dist/dockerfile-D0WaVIZ2.js +0 -132
  48. package/dist/ecl-CijaJu-p.js +0 -454
  49. package/dist/elixir-BI5Tc37S.js +0 -489
  50. package/dist/flow9-BApGtQOO.js +0 -141
  51. package/dist/freemarker2-DJtqwgcS.js +0 -643
  52. package/dist/fsharp-VeKgt2eG.js +0 -210
  53. package/dist/go-Cl8cKDlN.js +0 -208
  54. package/dist/graphql-PfgPBmj4.js +0 -141
  55. package/dist/handlebars-A27t-Ka7.js +0 -391
  56. package/dist/hcl-CG4VZSkm.js +0 -177
  57. package/dist/html-oZx5D2e1.js +0 -281
  58. package/dist/htmlMode-BbYfuAfq.js +0 -1456
  59. package/dist/index-Bqp36Zxu.js +0 -159232
  60. package/dist/ini-EhiBNPZF.js +0 -68
  61. package/dist/java-DPbnXhoY.js +0 -221
  62. package/dist/javascript-7Ns1hZ1u.js +0 -75
  63. package/dist/jsonMode-CSHwDjDg.js +0 -1866
  64. package/dist/julia-Bw7EYexg.js +0 -496
  65. package/dist/kotlin-BNXLDoV0.js +0 -245
  66. package/dist/less-DtuF_id_.js +0 -168
  67. package/dist/lexon-DpB0-37O.js +0 -151
  68. package/dist/liquid-CJAHXY0w.js +0 -238
  69. package/dist/lua-CzRNOk9S.js +0 -157
  70. package/dist/m3-pXPmDwal.js +0 -210
  71. package/dist/markdown-CeQ3rxjn.js +0 -202
  72. package/dist/mdx-vt9h9Xpz.js +0 -171
  73. package/dist/mips-DyE0VSNz.js +0 -194
  74. package/dist/msdax-CbdkoqRa.js +0 -377
  75. package/dist/mysql-B86-uHNu.js +0 -876
  76. package/dist/objective-c-1xvkKPId.js +0 -188
  77. package/dist/pascal-DcyFhj80.js +0 -245
  78. package/dist/pascaligo-QnM0hvMG.js +0 -158
  79. package/dist/perl-Bqp3FbU4.js +0 -599
  80. package/dist/pgsql-HdG7BG_Z.js +0 -847
  81. package/dist/php-zf7L2p7t.js +0 -471
  82. package/dist/pla-3Ykqsyzl.js +0 -131
  83. package/dist/postiats-D1v08O4B.js +0 -544
  84. package/dist/powerquery-CiQ9b1-b.js +0 -890
  85. package/dist/powershell-DFNK6VaX.js +0 -233
  86. package/dist/protobuf-D5P2Z6tc.js +0 -422
  87. package/dist/pug-BeyMX5am.js +0 -393
  88. package/dist/python-CnibeM_K.js +0 -259
  89. package/dist/qsharp-DcFOTjuP.js +0 -282
  90. package/dist/r-B3aJPcWp.js +0 -245
  91. package/dist/razor-BWWjrM8Q.js +0 -512
  92. package/dist/redis-CyC__Tub.js +0 -298
  93. package/dist/redshift-NqbcQPcY.js +0 -806
  94. package/dist/restructuredtext-CZMxBkap.js +0 -162
  95. package/dist/ruby-C_jEtDv5.js +0 -444
  96. package/dist/rust-WAeitMCC.js +0 -337
  97. package/dist/sb-CSBm2pED.js +0 -110
  98. package/dist/scala-D76PhKmh.js +0 -353
  99. package/dist/scheme-CBSAjRuO.js +0 -114
  100. package/dist/scss-BHY8wFFg.js +0 -244
  101. package/dist/shell-Cwju9_l8.js +0 -224
  102. package/dist/solidity-BV1-nze3.js +0 -1351
  103. package/dist/sophia-DfoUlGAs.js +0 -190
  104. package/dist/sparql-4kfArTtK.js +0 -193
  105. package/dist/sql-DIpn0HSX.js +0 -818
  106. package/dist/st-BgJ_KDZh.js +0 -415
  107. package/dist/swift-D-ucEgIi.js +0 -315
  108. package/dist/systemverilog-DjkH5zuo.js +0 -556
  109. package/dist/tcl-gd8XLKJA.js +0 -232
  110. package/dist/tsMode-Ddl20Rd2.js +0 -810
  111. package/dist/twig-D5XtTFGM.js +0 -323
  112. package/dist/typescript-DJik4e7z.js +0 -328
  113. package/dist/vb-DYqqYAf3.js +0 -364
  114. package/dist/wgsl-CkZE0qf3.js +0 -420
  115. package/dist/xml-D3mR990w.js +0 -95
  116. package/dist/yaml-IjO78BY4.js +0 -184
@@ -1,391 +0,0 @@
1
- import { m as l } from "./index-Bqp36Zxu.js";
2
- /*!-----------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
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 = [
16
- "area",
17
- "base",
18
- "br",
19
- "col",
20
- "embed",
21
- "hr",
22
- "img",
23
- "input",
24
- "keygen",
25
- "link",
26
- "menuitem",
27
- "meta",
28
- "param",
29
- "source",
30
- "track",
31
- "wbr"
32
- ], u = {
33
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
34
- comments: {
35
- blockComment: ["{{!--", "--}}"]
36
- },
37
- brackets: [
38
- ["<!--", "-->"],
39
- ["<", ">"],
40
- ["{{", "}}"],
41
- ["{", "}"],
42
- ["(", ")"]
43
- ],
44
- autoClosingPairs: [
45
- { open: "{", close: "}" },
46
- { open: "[", close: "]" },
47
- { open: "(", close: ")" },
48
- { open: '"', close: '"' },
49
- { open: "'", close: "'" }
50
- ],
51
- surroundingPairs: [
52
- { open: "<", close: ">" },
53
- { open: '"', close: '"' },
54
- { open: "'", close: "'" }
55
- ],
56
- onEnterRules: [
57
- {
58
- beforeText: new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
59
- afterText: /^<\/(\w[\w\d]*)\s*>$/i,
60
- action: {
61
- indentAction: a.languages.IndentAction.IndentOutdent
62
- }
63
- },
64
- {
65
- beforeText: new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
66
- action: { indentAction: a.languages.IndentAction.Indent }
67
- }
68
- ]
69
- }, y = {
70
- defaultToken: "",
71
- tokenPostfix: "",
72
- tokenizer: {
73
- root: [
74
- [/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"],
75
- [/\{\{!/, "comment.start.handlebars", "@comment"],
76
- [/\{\{/, { token: "@rematch", switchTo: "@handlebarsInSimpleState.root" }],
77
- [/<!DOCTYPE/, "metatag.html", "@doctype"],
78
- [/<!--/, "comment.html", "@commentHtml"],
79
- [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
80
- [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
81
- [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
82
- [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
83
- [/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
84
- [/</, "delimiter.html"],
85
- [/\{/, "delimiter.html"],
86
- [/[^<{]+/]
87
- ],
88
- doctype: [
89
- [
90
- /\{\{/,
91
- {
92
- token: "@rematch",
93
- switchTo: "@handlebarsInSimpleState.comment"
94
- }
95
- ],
96
- [/[^>]+/, "metatag.content.html"],
97
- [/>/, "metatag.html", "@pop"]
98
- ],
99
- comment: [
100
- [/\}\}/, "comment.end.handlebars", "@pop"],
101
- [/./, "comment.content.handlebars"]
102
- ],
103
- commentBlock: [
104
- [/--\}\}/, "comment.block.end.handlebars", "@pop"],
105
- [/./, "comment.content.handlebars"]
106
- ],
107
- commentHtml: [
108
- [
109
- /\{\{/,
110
- {
111
- token: "@rematch",
112
- switchTo: "@handlebarsInSimpleState.comment"
113
- }
114
- ],
115
- [/-->/, "comment.html", "@pop"],
116
- [/[^-]+/, "comment.content.html"],
117
- [/./, "comment.content.html"]
118
- ],
119
- otherTag: [
120
- [
121
- /\{\{/,
122
- {
123
- token: "@rematch",
124
- switchTo: "@handlebarsInSimpleState.otherTag"
125
- }
126
- ],
127
- [/\/?>/, "delimiter.html", "@pop"],
128
- [/"([^"]*)"/, "attribute.value"],
129
- [/'([^']*)'/, "attribute.value"],
130
- [/[\w\-]+/, "attribute.name"],
131
- [/=/, "delimiter"],
132
- [/[ \t\r\n]+/]
133
- ],
134
- script: [
135
- [
136
- /\{\{/,
137
- {
138
- token: "@rematch",
139
- switchTo: "@handlebarsInSimpleState.script"
140
- }
141
- ],
142
- [/type/, "attribute.name", "@scriptAfterType"],
143
- [/"([^"]*)"/, "attribute.value"],
144
- [/'([^']*)'/, "attribute.value"],
145
- [/[\w\-]+/, "attribute.name"],
146
- [/=/, "delimiter"],
147
- [
148
- />/,
149
- {
150
- token: "delimiter.html",
151
- next: "@scriptEmbedded.text/javascript",
152
- nextEmbedded: "text/javascript"
153
- }
154
- ],
155
- [/[ \t\r\n]+/],
156
- [
157
- /(<\/)(script\s*)(>)/,
158
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
159
- ]
160
- ],
161
- scriptAfterType: [
162
- [
163
- /\{\{/,
164
- {
165
- token: "@rematch",
166
- switchTo: "@handlebarsInSimpleState.scriptAfterType"
167
- }
168
- ],
169
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
170
- [
171
- />/,
172
- {
173
- token: "delimiter.html",
174
- next: "@scriptEmbedded.text/javascript",
175
- nextEmbedded: "text/javascript"
176
- }
177
- ],
178
- [/[ \t\r\n]+/],
179
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
180
- ],
181
- scriptAfterTypeEquals: [
182
- [
183
- /\{\{/,
184
- {
185
- token: "@rematch",
186
- switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
187
- }
188
- ],
189
- [
190
- /"([^"]*)"/,
191
- {
192
- token: "attribute.value",
193
- switchTo: "@scriptWithCustomType.$1"
194
- }
195
- ],
196
- [
197
- /'([^']*)'/,
198
- {
199
- token: "attribute.value",
200
- switchTo: "@scriptWithCustomType.$1"
201
- }
202
- ],
203
- [
204
- />/,
205
- {
206
- token: "delimiter.html",
207
- next: "@scriptEmbedded.text/javascript",
208
- nextEmbedded: "text/javascript"
209
- }
210
- ],
211
- [/[ \t\r\n]+/],
212
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
213
- ],
214
- scriptWithCustomType: [
215
- [
216
- /\{\{/,
217
- {
218
- token: "@rematch",
219
- switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
220
- }
221
- ],
222
- [
223
- />/,
224
- {
225
- token: "delimiter.html",
226
- next: "@scriptEmbedded.$S2",
227
- nextEmbedded: "$S2"
228
- }
229
- ],
230
- [/"([^"]*)"/, "attribute.value"],
231
- [/'([^']*)'/, "attribute.value"],
232
- [/[\w\-]+/, "attribute.name"],
233
- [/=/, "delimiter"],
234
- [/[ \t\r\n]+/],
235
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
236
- ],
237
- scriptEmbedded: [
238
- [
239
- /\{\{/,
240
- {
241
- token: "@rematch",
242
- switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
243
- nextEmbedded: "@pop"
244
- }
245
- ],
246
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
247
- ],
248
- style: [
249
- [
250
- /\{\{/,
251
- {
252
- token: "@rematch",
253
- switchTo: "@handlebarsInSimpleState.style"
254
- }
255
- ],
256
- [/type/, "attribute.name", "@styleAfterType"],
257
- [/"([^"]*)"/, "attribute.value"],
258
- [/'([^']*)'/, "attribute.value"],
259
- [/[\w\-]+/, "attribute.name"],
260
- [/=/, "delimiter"],
261
- [
262
- />/,
263
- {
264
- token: "delimiter.html",
265
- next: "@styleEmbedded.text/css",
266
- nextEmbedded: "text/css"
267
- }
268
- ],
269
- [/[ \t\r\n]+/],
270
- [
271
- /(<\/)(style\s*)(>)/,
272
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
273
- ]
274
- ],
275
- styleAfterType: [
276
- [
277
- /\{\{/,
278
- {
279
- token: "@rematch",
280
- switchTo: "@handlebarsInSimpleState.styleAfterType"
281
- }
282
- ],
283
- [/=/, "delimiter", "@styleAfterTypeEquals"],
284
- [
285
- />/,
286
- {
287
- token: "delimiter.html",
288
- next: "@styleEmbedded.text/css",
289
- nextEmbedded: "text/css"
290
- }
291
- ],
292
- [/[ \t\r\n]+/],
293
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
294
- ],
295
- styleAfterTypeEquals: [
296
- [
297
- /\{\{/,
298
- {
299
- token: "@rematch",
300
- switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
301
- }
302
- ],
303
- [
304
- /"([^"]*)"/,
305
- {
306
- token: "attribute.value",
307
- switchTo: "@styleWithCustomType.$1"
308
- }
309
- ],
310
- [
311
- /'([^']*)'/,
312
- {
313
- token: "attribute.value",
314
- switchTo: "@styleWithCustomType.$1"
315
- }
316
- ],
317
- [
318
- />/,
319
- {
320
- token: "delimiter.html",
321
- next: "@styleEmbedded.text/css",
322
- nextEmbedded: "text/css"
323
- }
324
- ],
325
- [/[ \t\r\n]+/],
326
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
327
- ],
328
- styleWithCustomType: [
329
- [
330
- /\{\{/,
331
- {
332
- token: "@rematch",
333
- switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
334
- }
335
- ],
336
- [
337
- />/,
338
- {
339
- token: "delimiter.html",
340
- next: "@styleEmbedded.$S2",
341
- nextEmbedded: "$S2"
342
- }
343
- ],
344
- [/"([^"]*)"/, "attribute.value"],
345
- [/'([^']*)'/, "attribute.value"],
346
- [/[\w\-]+/, "attribute.name"],
347
- [/=/, "delimiter"],
348
- [/[ \t\r\n]+/],
349
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
350
- ],
351
- styleEmbedded: [
352
- [
353
- /\{\{/,
354
- {
355
- token: "@rematch",
356
- switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
357
- nextEmbedded: "@pop"
358
- }
359
- ],
360
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
361
- ],
362
- handlebarsInSimpleState: [
363
- [/\{\{\{?/, "delimiter.handlebars"],
364
- [/\}\}\}?/, { token: "delimiter.handlebars", switchTo: "@$S2.$S3" }],
365
- { include: "handlebarsRoot" }
366
- ],
367
- handlebarsInEmbeddedState: [
368
- [/\{\{\{?/, "delimiter.handlebars"],
369
- [
370
- /\}\}\}?/,
371
- {
372
- token: "delimiter.handlebars",
373
- switchTo: "@$S2.$S3",
374
- nextEmbedded: "$S3"
375
- }
376
- ],
377
- { include: "handlebarsRoot" }
378
- ],
379
- handlebarsRoot: [
380
- [/"[^"]*"/, "string.handlebars"],
381
- [/[#/][^\s}]+/, "keyword.helper.handlebars"],
382
- [/else\b/, "keyword.helper.handlebars"],
383
- [/[\s]+/],
384
- [/[^}]/, "variable.parameter.handlebars"]
385
- ]
386
- }
387
- };
388
- export {
389
- u as conf,
390
- y as language
391
- };
@@ -1,177 +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
- autoClosingPairs: [
18
- { open: "{", close: "}" },
19
- { open: "[", close: "]" },
20
- { open: "(", close: ")" },
21
- { open: '"', close: '"', notIn: ["string"] }
22
- ],
23
- surroundingPairs: [
24
- { open: "{", close: "}" },
25
- { open: "[", close: "]" },
26
- { open: "(", close: ")" },
27
- { open: '"', close: '"' }
28
- ]
29
- }, t = {
30
- defaultToken: "",
31
- tokenPostfix: ".hcl",
32
- keywords: [
33
- "var",
34
- "local",
35
- "path",
36
- "for_each",
37
- "any",
38
- "string",
39
- "number",
40
- "bool",
41
- "true",
42
- "false",
43
- "null",
44
- "if ",
45
- "else ",
46
- "endif ",
47
- "for ",
48
- "in",
49
- "endfor"
50
- ],
51
- operators: [
52
- "=",
53
- ">=",
54
- "<=",
55
- "==",
56
- "!=",
57
- "+",
58
- "-",
59
- "*",
60
- "/",
61
- "%",
62
- "&&",
63
- "||",
64
- "!",
65
- "<",
66
- ">",
67
- "?",
68
- "...",
69
- ":"
70
- ],
71
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
72
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
73
- terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
74
- terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
75
- tokenizer: {
76
- root: [
77
- [
78
- /^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
79
- ["type", "", "string", "", "string", "", "@brackets"]
80
- ],
81
- [
82
- /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
83
- ["identifier", "", "string", "", "string", "", "@brackets"]
84
- ],
85
- [
86
- /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
87
- ["identifier", "", "string", "", "operator", "", "@brackets"]
88
- ],
89
- { include: "@terraform" }
90
- ],
91
- terraform: [
92
- [/@terraformFunctions(\()/, ["type", "@brackets"]],
93
- [
94
- /[a-zA-Z_]\w*-*/,
95
- {
96
- cases: {
97
- "@keywords": { token: "keyword.$0" },
98
- "@default": "variable"
99
- }
100
- }
101
- ],
102
- { include: "@whitespace" },
103
- { include: "@heredoc" },
104
- [/[{}()\[\]]/, "@brackets"],
105
- [/[<>](?!@symbols)/, "@brackets"],
106
- [
107
- /@symbols/,
108
- {
109
- cases: {
110
- "@operators": "operator",
111
- "@default": ""
112
- }
113
- }
114
- ],
115
- [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
116
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
117
- [/\d[\d']*/, "number"],
118
- [/\d/, "number"],
119
- [/[;,.]/, "delimiter"],
120
- [/"/, "string", "@string"],
121
- [/'/, "invalid"]
122
- ],
123
- heredoc: [
124
- [/<<[-]*\s*["]?([\w\-]+)["]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
125
- ],
126
- heredocBody: [
127
- [
128
- /([\w\-]+)$/,
129
- {
130
- cases: {
131
- "$1==$S2": [
132
- {
133
- token: "string.heredoc.delimiter",
134
- next: "@popall"
135
- }
136
- ],
137
- "@default": "string.heredoc"
138
- }
139
- }
140
- ],
141
- [/./, "string.heredoc"]
142
- ],
143
- whitespace: [
144
- [/[ \t\r\n]+/, ""],
145
- [/\/\*/, "comment", "@comment"],
146
- [/\/\/.*$/, "comment"],
147
- [/#.*$/, "comment"]
148
- ],
149
- comment: [
150
- [/[^\/*]+/, "comment"],
151
- [/\*\//, "comment", "@pop"],
152
- [/[\/*]/, "comment"]
153
- ],
154
- string: [
155
- [/\$\{/, { token: "delimiter", next: "@stringExpression" }],
156
- [/[^\\"\$]+/, "string"],
157
- [/@escapes/, "string.escape"],
158
- [/\\./, "string.escape.invalid"],
159
- [/"/, "string", "@popall"]
160
- ],
161
- stringInsideExpression: [
162
- [/[^\\"]+/, "string"],
163
- [/@escapes/, "string.escape"],
164
- [/\\./, "string.escape.invalid"],
165
- [/"/, "string", "@pop"]
166
- ],
167
- stringExpression: [
168
- [/\}/, { token: "delimiter", next: "@pop" }],
169
- [/"/, "string", "@stringInsideExpression"],
170
- { include: "@terraform" }
171
- ]
172
- }
173
- };
174
- export {
175
- e as conf,
176
- t as language
177
- };