@devtron-labs/devtron-fe-common-lib 1.2.1 → 1.2.2-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.
Files changed (250) hide show
  1. package/dist/@code-editor-Dnez6SNz.js +19415 -0
  2. package/dist/@common-rjsf-CxHLK-MT.js +571 -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/@vendor-RU8AW1bK.js +20473 -0
  9. package/dist/Common/CIPipeline.Types.d.ts +26 -1
  10. package/dist/Common/Constants.d.ts +1 -0
  11. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
  12. package/dist/Common/CustomTagSelector/Types.d.ts +19 -14
  13. package/dist/Common/Helper.d.ts +2 -1
  14. package/dist/Common/Types.d.ts +20 -2
  15. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +2 -0
  16. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +2 -0
  17. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +2 -0
  18. package/dist/Shared/Components/DynamicDataTable/index.d.ts +2 -0
  19. package/dist/Shared/Components/DynamicDataTable/types.d.ts +178 -0
  20. package/dist/Shared/Components/DynamicDataTable/utils.d.ts +5 -0
  21. package/dist/Shared/Components/SelectPicker/type.d.ts +5 -4
  22. package/dist/Shared/Components/SelectTextArea/SelectTextArea.d.ts +2 -0
  23. package/dist/Shared/Components/SelectTextArea/index.d.ts +2 -0
  24. package/dist/Shared/Components/SelectTextArea/types.d.ts +12 -0
  25. package/dist/Shared/Components/index.d.ts +1 -0
  26. package/dist/Shared/types.d.ts +19 -1
  27. package/dist/assets/@code-editor.css +1 -0
  28. package/dist/assets/@common-rjsf.css +1 -0
  29. package/dist/assets/@monaco-editor.css +1 -0
  30. package/dist/assets/@react-dates.css +1 -0
  31. package/dist/assets/@vendor.css +1 -0
  32. package/dist/assets/app-not-deployed.acdf0271.png +0 -0
  33. package/dist/assets/delete-medium.baa284da.svg +1 -0
  34. package/dist/assets/empty-noresult@2x.022ec87c.png +0 -0
  35. package/dist/assets/ic-abort.0d2773e9.svg +1 -0
  36. package/dist/assets/ic-aborted.e7288a6c.svg +1 -0
  37. package/dist/assets/ic-add.cfaa779b.svg +1 -0
  38. package/dist/assets/ic-appstatus-cancelled.05bb3352.svg +1 -0
  39. package/dist/assets/ic-arrow-backward.d951202a.svg +1 -0
  40. package/dist/assets/ic-arrow-counter-clockwise.01cbb0e1.svg +1 -0
  41. package/dist/assets/ic-arrow-down.18e5e332.svg +1 -0
  42. package/dist/assets/ic-arrow-forward.a2b8ab45.svg +1 -0
  43. package/dist/assets/ic-arrow-out.6aea09d0.svg +1 -0
  44. package/dist/assets/ic-arrow-right.f942ee03.svg +1 -0
  45. package/dist/assets/ic-arrow-square-out.1be837ac.svg +1 -0
  46. package/dist/assets/ic-arrow-up-down.945ee496.svg +1 -0
  47. package/dist/assets/ic-bold.2140b7c6.svg +1 -0
  48. package/dist/assets/ic-book-open.7cb94ee8.svg +1 -0
  49. package/dist/assets/ic-bot.f1d4abcc.svg +1 -0
  50. package/dist/assets/ic-branch.8db43d66.svg +1 -0
  51. package/dist/assets/ic-calendar.984accc5.svg +1 -0
  52. package/dist/assets/ic-calender-blank.963e3423.svg +1 -0
  53. package/dist/assets/ic-caret-down-small.2cc24039.svg +1 -0
  54. package/dist/assets/ic-caret-down.1666c029.svg +1 -0
  55. package/dist/assets/ic-caret-left-small.fe00c98d.svg +1 -0
  56. package/dist/assets/ic-charts.f41e185f.svg +1 -0
  57. package/dist/assets/ic-chat-circle-dots.e15514f8.svg +1 -0
  58. package/dist/assets/ic-check-all.0376437d.svg +1 -0
  59. package/dist/assets/ic-check-circle.ad80d835.svg +1 -0
  60. package/dist/assets/ic-check-grey.f556e371.svg +1 -0
  61. package/dist/assets/ic-check-square.2a3d3fb9.svg +1 -0
  62. package/dist/assets/ic-check.27c51fa1.svg +1 -0
  63. package/dist/assets/ic-checked-list.aba26c40.svg +1 -0
  64. package/dist/assets/ic-chevron-down.fc70d7a7.svg +1 -0
  65. package/dist/assets/ic-circle.05f86ff6.svg +1 -0
  66. package/dist/assets/ic-clair.ba79956f.svg +1 -0
  67. package/dist/assets/ic-clear-square.e60de021.svg +1 -0
  68. package/dist/assets/ic-clock.c21a2d14.svg +1 -0
  69. package/dist/assets/ic-close.43adc42a.svg +1 -0
  70. package/dist/assets/ic-code-commit.161a6b3c.svg +1 -0
  71. package/dist/assets/ic-code.1d1d4dd8.svg +1 -0
  72. package/dist/assets/ic-collapse-all.fd7b27b1.svg +1 -0
  73. package/dist/assets/ic-commit.e3113dd9.svg +1 -0
  74. package/dist/assets/ic-compare.0ee3e4cf.svg +1 -0
  75. package/dist/assets/ic-copy.94cee0fb.svg +1 -0
  76. package/dist/assets/ic-cpu.8be677ee.svg +1 -0
  77. package/dist/assets/ic-cross.01e03666.svg +1 -0
  78. package/dist/assets/ic-delete-interactive.304dd293.svg +1 -0
  79. package/dist/assets/ic-diff-file-added.0deb6763.svg +1 -0
  80. package/dist/assets/ic-diff-file-removed.2ed80281.svg +1 -0
  81. package/dist/assets/ic-diff-file-updated.c8740f72.svg +1 -0
  82. package/dist/assets/ic-disconnected.551d6161.svg +1 -0
  83. package/dist/assets/ic-discord-fill.1a1b291d.svg +1 -0
  84. package/dist/assets/ic-docker.48906f4d.svg +1 -0
  85. package/dist/assets/ic-download.c30437cd.svg +1 -0
  86. package/dist/assets/ic-drag.3f71e8aa.svg +1 -0
  87. package/dist/assets/ic-edit-file.a782640f.svg +1 -0
  88. package/dist/assets/ic-enter.cab07082.svg +1 -0
  89. package/dist/assets/ic-error-cross.bf21e563.svg +1 -0
  90. package/dist/assets/ic-error-exclamation.c224de09.svg +1 -0
  91. package/dist/assets/ic-error-medium.ea542259.svg +1 -0
  92. package/dist/assets/ic-error.a25d2f0d.svg +1 -0
  93. package/dist/assets/ic-errorInfo.d8d674b8.svg +1 -0
  94. package/dist/assets/ic-exit-fullscreen.1ae582d1.svg +1 -0
  95. package/dist/assets/ic-expand-all.a0744f9f.svg +1 -0
  96. package/dist/assets/ic-expand.ab992205.svg +1 -0
  97. package/dist/assets/ic-feedback.d32fa6b0.svg +1 -0
  98. package/dist/assets/ic-file-code.21a1f748.svg +1 -0
  99. package/dist/assets/ic-file-text.f9563710.svg +1 -0
  100. package/dist/assets/ic-files.fc290dee.svg +1 -0
  101. package/dist/assets/ic-filter-applied.9fc48d0f.svg +1 -0
  102. package/dist/assets/ic-filter.8f403d6f.svg +1 -0
  103. package/dist/assets/ic-folder.051cd30d.svg +1 -0
  104. package/dist/assets/ic-fullscreen-2.f138a5e8.svg +1 -0
  105. package/dist/assets/ic-fullscreen.b05e5087.svg +1 -0
  106. package/dist/assets/ic-hash.cd11c334.svg +1 -0
  107. package/dist/assets/ic-header.a91a9800.svg +1 -0
  108. package/dist/assets/ic-help-outline.9c012a0c.svg +1 -0
  109. package/dist/assets/ic-help.39c58c34.svg +1 -0
  110. package/dist/assets/ic-image.2a8ed117.svg +1 -0
  111. package/dist/assets/ic-in-progress.0598554b.svg +1 -0
  112. package/dist/assets/ic-info-filled-override.99e8094a.svg +1 -0
  113. package/dist/assets/ic-info-filled.4b0b46d1.svg +1 -0
  114. package/dist/assets/ic-info-outline.f4be8a1e.svg +1 -0
  115. package/dist/assets/ic-info-outlined.f4fa3224.svg +1 -0
  116. package/dist/assets/ic-italic.358ca070.svg +1 -0
  117. package/dist/assets/ic-k8s-job.f4414c10.svg +1 -0
  118. package/dist/assets/ic-lego-block.ee4b63f1.svg +1 -0
  119. package/dist/assets/ic-lines.395ef3db.svg +1 -0
  120. package/dist/assets/ic-link.8453e775.svg +1 -0
  121. package/dist/assets/ic-loading-failure.aa68693d.png +0 -0
  122. package/dist/assets/ic-locked.3b9eff02.svg +1 -0
  123. package/dist/assets/ic-mechanical-operation.08b38afd.svg +1 -0
  124. package/dist/assets/ic-medium-info.eee4a07b.svg +1 -0
  125. package/dist/assets/ic-megaphone.b9f9a901.svg +1 -0
  126. package/dist/assets/ic-memory.c4159f96.svg +1 -0
  127. package/dist/assets/ic-message.be6dba43.svg +1 -0
  128. package/dist/assets/ic-minus.df865aaf.svg +1 -0
  129. package/dist/assets/ic-nav-rocket.9e50bb61.svg +1 -0
  130. package/dist/assets/ic-not-authorized.2d8e208f.svg +1 -0
  131. package/dist/assets/ic-not-found.86f588bf.svg +1 -0
  132. package/dist/assets/ic-onboarding.c98f9ef9.svg +1 -0
  133. package/dist/assets/ic-open-in-new.6aea09d0.svg +1 -0
  134. package/dist/assets/ic-ordered-list.879dc7c8.svg +1 -0
  135. package/dist/assets/ic-page-not-found.da74a367.svg +1 -0
  136. package/dist/assets/ic-pencil.c75a6acc.svg +1 -0
  137. package/dist/assets/ic-person.f78738ac.svg +1 -0
  138. package/dist/assets/ic-pull-request.31d0c981.svg +1 -0
  139. package/dist/assets/ic-pulsate-status.9264740e.svg +1 -0
  140. package/dist/assets/ic-quote.10768489.svg +1 -0
  141. package/dist/assets/ic-regex.e14a4ea3.svg +1 -0
  142. package/dist/assets/ic-rocket-fail.874e54ce.svg +1 -0
  143. package/dist/assets/ic-rotate-devtron.200e165b.svg +1 -0
  144. package/dist/assets/ic-search.976327f1.svg +1 -0
  145. package/dist/assets/ic-sort-arrow-down.5cf54d08.svg +1 -0
  146. package/dist/assets/ic-stamp.8689f42d.svg +1 -0
  147. package/dist/assets/ic-strikethrough.a1652ad9.svg +1 -0
  148. package/dist/assets/ic-success.8c8fe69d.svg +1 -0
  149. package/dist/assets/ic-tag.1613fc59.svg +1 -0
  150. package/dist/assets/ic-timeout-red.5eda1010.svg +1 -0
  151. package/dist/assets/ic-timer.b62145ec.svg +1 -0
  152. package/dist/assets/ic-trivy.d5338454.svg +1 -0
  153. package/dist/assets/ic-unordered-list.42c1cbbc.svg +1 -0
  154. package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +1 -0
  155. package/dist/assets/ic-vulnerability-not-found.d8a4d43c.svg +1 -0
  156. package/dist/assets/ic-warning-y5.2ad9d7f4.svg +1 -0
  157. package/dist/assets/ic-warning.10bcf8bd.svg +1 -0
  158. package/dist/assets/ic-webhook.d4431b07.svg +1 -0
  159. package/dist/assets/ic-world.1f6a5eaf.svg +1 -0
  160. package/dist/assets/inject-tag.28e72db6.svg +1 -0
  161. package/dist/assets/lifebuoy.7d8fdf27.png +0 -0
  162. package/dist/assets/no-artifact@2x.6afc74bc.png +0 -0
  163. package/dist/index.js +500 -493
  164. package/package.json +9 -6
  165. package/dist/abap-DttVK1gE.js +0 -1314
  166. package/dist/apex-BjfHvyb2.js +0 -315
  167. package/dist/assets/index.css +0 -1
  168. package/dist/azcli-Ws-Trf8e.js +0 -74
  169. package/dist/bat-CeCHpU9_.js +0 -95
  170. package/dist/bicep-C7a7aEmi.js +0 -108
  171. package/dist/cameligo-CJeEIvX4.js +0 -168
  172. package/dist/clojure-CEKXhLdU.js +0 -754
  173. package/dist/coffee-CKu3e6V1.js +0 -228
  174. package/dist/cpp-CvUiT5Ec.js +0 -390
  175. package/dist/csharp-PmU9HJkB.js +0 -320
  176. package/dist/csp-DULvRLPF.js +0 -57
  177. package/dist/css-CNWXQPpt.js +0 -186
  178. package/dist/cssMode-BwIubxAf.js +0 -1446
  179. package/dist/cypher-CYHOQS2R.js +0 -262
  180. package/dist/dart-BjGx-9Jk.js +0 -270
  181. package/dist/dockerfile-D0WaVIZ2.js +0 -132
  182. package/dist/ecl-CijaJu-p.js +0 -454
  183. package/dist/elixir-BI5Tc37S.js +0 -489
  184. package/dist/flow9-BApGtQOO.js +0 -141
  185. package/dist/freemarker2-Dn_s71Cb.js +0 -643
  186. package/dist/fsharp-VeKgt2eG.js +0 -210
  187. package/dist/go-Cl8cKDlN.js +0 -208
  188. package/dist/graphql-PfgPBmj4.js +0 -141
  189. package/dist/handlebars-Vf7Trm2J.js +0 -391
  190. package/dist/hcl-CG4VZSkm.js +0 -177
  191. package/dist/html-CpqIDz48.js +0 -281
  192. package/dist/htmlMode-DcWZDkAT.js +0 -1456
  193. package/dist/index-BJNO-ng7.js +0 -163447
  194. package/dist/ini-EhiBNPZF.js +0 -68
  195. package/dist/java-DPbnXhoY.js +0 -221
  196. package/dist/javascript-BBE6BZiS.js +0 -75
  197. package/dist/jsonMode-C1oLrBG3.js +0 -1866
  198. package/dist/julia-Bw7EYexg.js +0 -496
  199. package/dist/kotlin-BNXLDoV0.js +0 -245
  200. package/dist/less-DtuF_id_.js +0 -168
  201. package/dist/lexon-DpB0-37O.js +0 -151
  202. package/dist/liquid-BZNbXt_g.js +0 -238
  203. package/dist/lua-CzRNOk9S.js +0 -157
  204. package/dist/m3-pXPmDwal.js +0 -210
  205. package/dist/markdown-CeQ3rxjn.js +0 -202
  206. package/dist/mdx-BYFrSBEp.js +0 -171
  207. package/dist/mips-DyE0VSNz.js +0 -194
  208. package/dist/msdax-CbdkoqRa.js +0 -377
  209. package/dist/mysql-B86-uHNu.js +0 -876
  210. package/dist/objective-c-1xvkKPId.js +0 -188
  211. package/dist/pascal-DcyFhj80.js +0 -245
  212. package/dist/pascaligo-QnM0hvMG.js +0 -158
  213. package/dist/perl-Bqp3FbU4.js +0 -599
  214. package/dist/pgsql-HdG7BG_Z.js +0 -847
  215. package/dist/php-zf7L2p7t.js +0 -471
  216. package/dist/pla-3Ykqsyzl.js +0 -131
  217. package/dist/postiats-D1v08O4B.js +0 -544
  218. package/dist/powerquery-CiQ9b1-b.js +0 -890
  219. package/dist/powershell-DFNK6VaX.js +0 -233
  220. package/dist/protobuf-D5P2Z6tc.js +0 -422
  221. package/dist/pug-BeyMX5am.js +0 -393
  222. package/dist/python-B4eUWeOE.js +0 -259
  223. package/dist/qsharp-DcFOTjuP.js +0 -282
  224. package/dist/r-B3aJPcWp.js +0 -245
  225. package/dist/razor-BdW-c8kb.js +0 -512
  226. package/dist/redis-CyC__Tub.js +0 -298
  227. package/dist/redshift-NqbcQPcY.js +0 -806
  228. package/dist/restructuredtext-CZMxBkap.js +0 -162
  229. package/dist/ruby-C_jEtDv5.js +0 -444
  230. package/dist/rust-WAeitMCC.js +0 -337
  231. package/dist/sb-CSBm2pED.js +0 -110
  232. package/dist/scala-D76PhKmh.js +0 -353
  233. package/dist/scheme-CBSAjRuO.js +0 -114
  234. package/dist/scss-BHY8wFFg.js +0 -244
  235. package/dist/shell-Cwju9_l8.js +0 -224
  236. package/dist/solidity-BV1-nze3.js +0 -1351
  237. package/dist/sophia-DfoUlGAs.js +0 -190
  238. package/dist/sparql-4kfArTtK.js +0 -193
  239. package/dist/sql-DIpn0HSX.js +0 -818
  240. package/dist/st-BgJ_KDZh.js +0 -415
  241. package/dist/swift-D-ucEgIi.js +0 -315
  242. package/dist/systemverilog-DjkH5zuo.js +0 -556
  243. package/dist/tcl-gd8XLKJA.js +0 -232
  244. package/dist/tsMode-nSp3XKbP.js +0 -810
  245. package/dist/twig-D5XtTFGM.js +0 -323
  246. package/dist/typescript-BKssCHzW.js +0 -328
  247. package/dist/vb-DYqqYAf3.js +0 -364
  248. package/dist/wgsl-CkZE0qf3.js +0 -420
  249. package/dist/xml-Dp1OMsuE.js +0 -95
  250. package/dist/yaml-jWo4JOLk.js +0 -184
@@ -1,233 +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"] },
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
- ],
32
- folding: {
33
- markers: {
34
- start: new RegExp("^\\s*#region\\b"),
35
- end: new RegExp("^\\s*#endregion\\b")
36
- }
37
- }
38
- }, n = {
39
- defaultToken: "",
40
- ignoreCase: !0,
41
- tokenPostfix: ".ps1",
42
- brackets: [
43
- { token: "delimiter.curly", open: "{", close: "}" },
44
- { token: "delimiter.square", open: "[", close: "]" },
45
- { token: "delimiter.parenthesis", open: "(", close: ")" }
46
- ],
47
- keywords: [
48
- "begin",
49
- "break",
50
- "catch",
51
- "class",
52
- "continue",
53
- "data",
54
- "define",
55
- "do",
56
- "dynamicparam",
57
- "else",
58
- "elseif",
59
- "end",
60
- "exit",
61
- "filter",
62
- "finally",
63
- "for",
64
- "foreach",
65
- "from",
66
- "function",
67
- "if",
68
- "in",
69
- "param",
70
- "process",
71
- "return",
72
- "switch",
73
- "throw",
74
- "trap",
75
- "try",
76
- "until",
77
- "using",
78
- "var",
79
- "while",
80
- "workflow",
81
- "parallel",
82
- "sequence",
83
- "inlinescript",
84
- "configuration"
85
- ],
86
- helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,
87
- symbols: /[=><!~?&%|+\-*\/\^;\.,]+/,
88
- escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
89
- tokenizer: {
90
- root: [
91
- [
92
- /[a-zA-Z_][\w-]*/,
93
- {
94
- cases: {
95
- "@keywords": { token: "keyword.$0" },
96
- "@default": ""
97
- }
98
- }
99
- ],
100
- [/[ \t\r\n]+/, ""],
101
- [/^:\w*/, "metatag"],
102
- [
103
- /\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,
104
- "variable"
105
- ],
106
- [/<#/, "comment", "@comment"],
107
- [/#.*$/, "comment"],
108
- [/[{}()\[\]]/, "@brackets"],
109
- [/@symbols/, "delimiter"],
110
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
111
- [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
112
- [/\d+?/, "number"],
113
- [/[;,.]/, "delimiter"],
114
- [/\@"/, "string", '@herestring."'],
115
- [/\@'/, "string", "@herestring.'"],
116
- [
117
- /"/,
118
- {
119
- cases: {
120
- "@eos": "string",
121
- "@default": { token: "string", next: '@string."' }
122
- }
123
- }
124
- ],
125
- [
126
- /'/,
127
- {
128
- cases: {
129
- "@eos": "string",
130
- "@default": { token: "string", next: "@string.'" }
131
- }
132
- }
133
- ]
134
- ],
135
- string: [
136
- [
137
- /[^"'\$`]+/,
138
- {
139
- cases: {
140
- "@eos": { token: "string", next: "@popall" },
141
- "@default": "string"
142
- }
143
- }
144
- ],
145
- [
146
- /@escapes/,
147
- {
148
- cases: {
149
- "@eos": { token: "string.escape", next: "@popall" },
150
- "@default": "string.escape"
151
- }
152
- }
153
- ],
154
- [
155
- /`./,
156
- {
157
- cases: {
158
- "@eos": {
159
- token: "string.escape.invalid",
160
- next: "@popall"
161
- },
162
- "@default": "string.escape.invalid"
163
- }
164
- }
165
- ],
166
- [
167
- /\$[\w]+$/,
168
- {
169
- cases: {
170
- '$S2=="': { token: "variable", next: "@popall" },
171
- "@default": { token: "string", next: "@popall" }
172
- }
173
- }
174
- ],
175
- [
176
- /\$[\w]+/,
177
- {
178
- cases: {
179
- '$S2=="': "variable",
180
- "@default": "string"
181
- }
182
- }
183
- ],
184
- [
185
- /["']/,
186
- {
187
- cases: {
188
- "$#==$S2": { token: "string", next: "@pop" },
189
- "@default": {
190
- cases: {
191
- "@eos": { token: "string", next: "@popall" },
192
- "@default": "string"
193
- }
194
- }
195
- }
196
- }
197
- ]
198
- ],
199
- herestring: [
200
- [
201
- /^\s*(["'])@/,
202
- {
203
- cases: {
204
- "$1==$S2": { token: "string", next: "@pop" },
205
- "@default": "string"
206
- }
207
- }
208
- ],
209
- [/[^\$`]+/, "string"],
210
- [/@escapes/, "string.escape"],
211
- [/`./, "string.escape.invalid"],
212
- [
213
- /\$[\w]+/,
214
- {
215
- cases: {
216
- '$S2=="': "variable",
217
- "@default": "string"
218
- }
219
- }
220
- ]
221
- ],
222
- comment: [
223
- [/[^#\.]+/, "comment"],
224
- [/#>/, "comment", "@pop"],
225
- [/(\.)(@helpKeywords)(?!\w)/, { token: "comment.keyword.$2" }],
226
- [/[\.#]/, "comment"]
227
- ]
228
- }
229
- };
230
- export {
231
- e as conf,
232
- n as language
233
- };
@@ -1,422 +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 = ["true", "false"], t = {
8
- comments: {
9
- lineComment: "//",
10
- blockComment: ["/*", "*/"]
11
- },
12
- brackets: [
13
- ["{", "}"],
14
- ["[", "]"],
15
- ["(", ")"],
16
- ["<", ">"]
17
- ],
18
- surroundingPairs: [
19
- { open: "{", close: "}" },
20
- { open: "[", close: "]" },
21
- { open: "(", close: ")" },
22
- { open: "<", close: ">" },
23
- { open: '"', close: '"' },
24
- { open: "'", close: "'" }
25
- ],
26
- autoClosingPairs: [
27
- { open: "{", close: "}" },
28
- { open: "[", close: "]" },
29
- { open: "(", close: ")" },
30
- { open: "<", close: ">" },
31
- { open: '"', close: '"', notIn: ["string"] },
32
- { open: "'", close: "'", notIn: ["string"] }
33
- ],
34
- autoCloseBefore: `.,=}])>'
35
- `,
36
- indentationRules: {
37
- increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
38
- decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
39
- }
40
- }, n = {
41
- defaultToken: "",
42
- tokenPostfix: ".proto",
43
- brackets: [
44
- { open: "{", close: "}", token: "delimiter.curly" },
45
- { open: "[", close: "]", token: "delimiter.square" },
46
- { open: "(", close: ")", token: "delimiter.parenthesis" },
47
- { open: "<", close: ">", token: "delimiter.angle" }
48
- ],
49
- symbols: /[=><!~?:&|+\-*/^%]+/,
50
- keywords: [
51
- "syntax",
52
- "import",
53
- "weak",
54
- "public",
55
- "package",
56
- "option",
57
- "repeated",
58
- "oneof",
59
- "map",
60
- "reserved",
61
- "to",
62
- "max",
63
- "enum",
64
- "message",
65
- "service",
66
- "rpc",
67
- "stream",
68
- "returns",
69
- "package",
70
- "optional",
71
- "true",
72
- "false"
73
- ],
74
- builtinTypes: [
75
- "double",
76
- "float",
77
- "int32",
78
- "int64",
79
- "uint32",
80
- "uint64",
81
- "sint32",
82
- "sint64",
83
- "fixed32",
84
- "fixed64",
85
- "sfixed32",
86
- "sfixed64",
87
- "bool",
88
- "string",
89
- "bytes"
90
- ],
91
- operators: ["=", "+", "-"],
92
- namedLiterals: e,
93
- escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
94
- identifier: /[a-zA-Z]\w*/,
95
- fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
96
- optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
97
- messageName: /@identifier/,
98
- enumName: /@identifier/,
99
- messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
100
- enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
101
- floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
102
- exponent: /[eE]\s*[+-]?\s*[0-9]+/,
103
- boolLit: /true\b|false\b/,
104
- decimalLit: /[1-9][0-9]*/,
105
- octalLit: /0[0-7]*/,
106
- hexLit: /0[xX][0-9a-fA-F]+/,
107
- type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
108
- keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
109
- tokenizer: {
110
- root: [
111
- { include: "@whitespace" },
112
- [/syntax/, "keyword"],
113
- [/=/, "operators"],
114
- [/;/, "delimiter"],
115
- [
116
- /(")(proto3)(")/,
117
- ["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
118
- ],
119
- [
120
- /(")(proto2)(")/,
121
- ["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
122
- ],
123
- [
124
- /.*?/,
125
- { token: "", switchTo: "@topLevel.proto2" }
126
- ]
127
- ],
128
- topLevel: [
129
- { include: "@whitespace" },
130
- { include: "@constant" },
131
- [/=/, "operators"],
132
- [/[;.]/, "delimiter"],
133
- [
134
- /@fullIdentifier/,
135
- {
136
- cases: {
137
- option: { token: "keyword", next: "@option.$S2" },
138
- enum: { token: "keyword", next: "@enumDecl.$S2" },
139
- message: { token: "keyword", next: "@messageDecl.$S2" },
140
- service: { token: "keyword", next: "@serviceDecl.$S2" },
141
- extend: {
142
- cases: {
143
- "$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
144
- }
145
- },
146
- "@keywords": "keyword",
147
- "@default": "identifier"
148
- }
149
- }
150
- ]
151
- ],
152
- enumDecl: [
153
- { include: "@whitespace" },
154
- [/@identifier/, "type.identifier"],
155
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
156
- ],
157
- enumBody: [
158
- { include: "@whitespace" },
159
- { include: "@constant" },
160
- [/=/, "operators"],
161
- [/;/, "delimiter"],
162
- [/option\b/, "keyword", "@option.$S2"],
163
- [/@identifier/, "identifier"],
164
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
165
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
166
- ],
167
- messageDecl: [
168
- { include: "@whitespace" },
169
- [/@identifier/, "type.identifier"],
170
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
171
- ],
172
- messageBody: [
173
- { include: "@whitespace" },
174
- { include: "@constant" },
175
- [/=/, "operators"],
176
- [/;/, "delimiter"],
177
- [
178
- "(map)(s*)(<)",
179
- ["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
180
- ],
181
- [
182
- /@identifier/,
183
- {
184
- cases: {
185
- option: { token: "keyword", next: "@option.$S2" },
186
- enum: { token: "keyword", next: "@enumDecl.$S2" },
187
- message: { token: "keyword", next: "@messageDecl.$S2" },
188
- oneof: { token: "keyword", next: "@oneofDecl.$S2" },
189
- extensions: {
190
- cases: {
191
- "$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
192
- }
193
- },
194
- reserved: { token: "keyword", next: "@reserved.$S2" },
195
- "(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
196
- required: {
197
- cases: {
198
- "$S2==proto2": { token: "keyword", next: "@field.$S2" }
199
- }
200
- },
201
- "$S2==proto3": { token: "@rematch", next: "@field.$S2" }
202
- }
203
- }
204
- ],
205
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
206
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
207
- ],
208
- extendDecl: [
209
- { include: "@whitespace" },
210
- [/@identifier/, "type.identifier"],
211
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
212
- ],
213
- extendBody: [
214
- { include: "@whitespace" },
215
- { include: "@constant" },
216
- [/;/, "delimiter"],
217
- [/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
218
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
219
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
220
- ],
221
- options: [
222
- { include: "@whitespace" },
223
- { include: "@constant" },
224
- [/;/, "delimiter"],
225
- [/@optionName/, "annotation"],
226
- [/[()]/, "annotation.brackets"],
227
- [/=/, "operator"],
228
- [/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
229
- ],
230
- option: [
231
- { include: "@whitespace" },
232
- [/@optionName/, "annotation"],
233
- [/[()]/, "annotation.brackets"],
234
- [/=/, "operator", "@pop"]
235
- ],
236
- oneofDecl: [
237
- { include: "@whitespace" },
238
- [/@identifier/, "identifier"],
239
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
240
- ],
241
- oneofBody: [
242
- { include: "@whitespace" },
243
- { include: "@constant" },
244
- [/;/, "delimiter"],
245
- [/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
246
- [
247
- /@fullIdentifier|\./,
248
- {
249
- cases: {
250
- "@builtinTypes": "keyword",
251
- "@default": "type.identifier"
252
- }
253
- }
254
- ],
255
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
256
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
257
- ],
258
- reserved: [
259
- { include: "@whitespace" },
260
- [/,/, "delimiter"],
261
- [/;/, "delimiter", "@pop"],
262
- { include: "@constant" },
263
- [/to\b|max\b/, "keyword"]
264
- ],
265
- map: [
266
- { include: "@whitespace" },
267
- [
268
- /@fullIdentifier|\./,
269
- {
270
- cases: {
271
- "@builtinTypes": "keyword",
272
- "@default": "type.identifier"
273
- }
274
- }
275
- ],
276
- [/,/, "delimiter"],
277
- [/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
278
- ],
279
- field: [
280
- { include: "@whitespace" },
281
- [
282
- "group",
283
- {
284
- cases: {
285
- "$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
286
- }
287
- }
288
- ],
289
- [/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
290
- [
291
- /@fullIdentifier|\./,
292
- {
293
- cases: {
294
- "@builtinTypes": "keyword",
295
- "@default": "type.identifier"
296
- }
297
- }
298
- ]
299
- ],
300
- groupDecl: [
301
- { include: "@whitespace" },
302
- [/@identifier/, "identifier"],
303
- ["=", "operator"],
304
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
305
- { include: "@constant" }
306
- ],
307
- type: [
308
- { include: "@whitespace" },
309
- [/@identifier/, "type.identifier", "@pop"],
310
- [/./, "delimiter"]
311
- ],
312
- identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
313
- serviceDecl: [
314
- { include: "@whitespace" },
315
- [/@identifier/, "identifier"],
316
- [/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
317
- ],
318
- serviceBody: [
319
- { include: "@whitespace" },
320
- { include: "@constant" },
321
- [/;/, "delimiter"],
322
- [/option\b/, "keyword", "@option.$S2"],
323
- [/rpc\b/, "keyword", "@rpc.$S2"],
324
- [/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
325
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
326
- ],
327
- rpc: [
328
- { include: "@whitespace" },
329
- [/@identifier/, "identifier"],
330
- [/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
331
- [/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
332
- [/;/, "delimiter", "@pop"]
333
- ],
334
- request: [
335
- { include: "@whitespace" },
336
- [
337
- /@messageType/,
338
- {
339
- cases: {
340
- stream: { token: "keyword", next: "@type.$S2" },
341
- "@default": "type.identifier"
342
- }
343
- }
344
- ],
345
- [/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
346
- ],
347
- returns: [
348
- { include: "@whitespace" },
349
- [/returns\b/, "keyword"],
350
- [/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
351
- ],
352
- response: [
353
- { include: "@whitespace" },
354
- [
355
- /@messageType/,
356
- {
357
- cases: {
358
- stream: { token: "keyword", next: "@type.$S2" },
359
- "@default": "type.identifier"
360
- }
361
- }
362
- ],
363
- [/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
364
- ],
365
- methodOptions: [
366
- { include: "@whitespace" },
367
- { include: "@constant" },
368
- [/;/, "delimiter"],
369
- ["option", "keyword"],
370
- [/@optionName/, "annotation"],
371
- [/[()]/, "annotation.brackets"],
372
- [/=/, "operator"],
373
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
374
- ],
375
- comment: [
376
- [/[^\/*]+/, "comment"],
377
- [/\/\*/, "comment", "@push"],
378
- ["\\*/", "comment", "@pop"],
379
- [/[\/*]/, "comment"]
380
- ],
381
- string: [
382
- [/[^\\"]+/, "string"],
383
- [/@escapes/, "string.escape"],
384
- [/\\./, "string.escape.invalid"],
385
- [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
386
- ],
387
- stringSingle: [
388
- [/[^\\']+/, "string"],
389
- [/@escapes/, "string.escape"],
390
- [/\\./, "string.escape.invalid"],
391
- [/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
392
- ],
393
- constant: [
394
- ["@boolLit", "keyword.constant"],
395
- ["@hexLit", "number.hex"],
396
- ["@octalLit", "number.octal"],
397
- ["@decimalLit", "number"],
398
- ["@floatLit", "number.float"],
399
- [/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
400
- [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
401
- [/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
402
- [/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
403
- [/identifier/, "identifier"]
404
- ],
405
- whitespace: [
406
- [/[ \t\r\n]+/, "white"],
407
- [/\/\*/, "comment", "@comment"],
408
- [/\/\/.*$/, "comment"]
409
- ],
410
- prototext: [
411
- { include: "@whitespace" },
412
- { include: "@constant" },
413
- [/@identifier/, "identifier"],
414
- [/[:;]/, "delimiter"],
415
- [/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
416
- ]
417
- }
418
- };
419
- export {
420
- t as conf,
421
- n as language
422
- };