@inspectr/ui 1.8.0 → 1.8.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 (90) hide show
  1. package/dist/abap-Bs8kvjsq.js +1398 -0
  2. package/dist/apex-Dspwrl5m.js +326 -0
  3. package/dist/azcli-k1BiOau1.js +68 -0
  4. package/dist/bat-BIP72KWc.js +100 -0
  5. package/dist/bicep-VhQeYhS3.js +102 -0
  6. package/dist/cameligo-DnuAXtHg.js +174 -0
  7. package/dist/clojure-BAuDPsal.js +761 -0
  8. package/dist/coffee-BV06qSnj.js +232 -0
  9. package/dist/cpp-Cz8Jeyrf.js +389 -0
  10. package/dist/csharp-F6hhlXFb.js +326 -0
  11. package/dist/csp-KzlEHCyI.js +53 -0
  12. package/dist/css-e4FKntZ3.js +187 -0
  13. package/dist/cssMode-CCxwJWiv.js +1571 -0
  14. package/dist/cypher-CpvDGKRr.js +263 -0
  15. package/dist/dart-DdHeFWR0.js +281 -0
  16. package/dist/dockerfile-aoNXDcio.js +130 -0
  17. package/dist/ecl-C4Q0DYuA.js +456 -0
  18. package/dist/editor.main-CP-oXbVe.js +110802 -0
  19. package/dist/elixir-C9X42b0T.js +569 -0
  20. package/dist/flow9-Bff42pfB.js +142 -0
  21. package/dist/freemarker2-BZveqxNO.js +989 -0
  22. package/dist/fsharp-C6vPAsHG.js +217 -0
  23. package/dist/go-DEr8zx9f.js +218 -0
  24. package/dist/graphql-BiNBBRFh.js +151 -0
  25. package/dist/handlebars-DFLvXTZ8.js +419 -0
  26. package/dist/hcl-2T9lKuFg.js +183 -0
  27. package/dist/html-DxXqfwFE.js +308 -0
  28. package/dist/htmlMode-C9gIo-LK.js +1581 -0
  29. package/dist/ini-CZGtssYM.js +71 -0
  30. package/dist/inspectr-ui.es.js +14597 -14415
  31. package/dist/inspectr-ui.umd.js +1180 -125
  32. package/dist/java-B260NeH3.js +232 -0
  33. package/dist/javascript-CYYD6pGr.js +70 -0
  34. package/dist/jsonMode-jVbIoPc6.js +1996 -0
  35. package/dist/julia-kuNLM9c5.js +511 -0
  36. package/dist/kotlin-Bz6kAefA.js +253 -0
  37. package/dist/less-AZUtS89I.js +162 -0
  38. package/dist/lexon-BcmgnyRb.js +157 -0
  39. package/dist/liquid-PYsubg5u.js +240 -0
  40. package/dist/lua-Dz1RbATg.js +162 -0
  41. package/dist/m3-CIMooLFn.js +210 -0
  42. package/dist/markdown-C1BsCK9P.js +229 -0
  43. package/dist/mdx-DRJsmowz.js +165 -0
  44. package/dist/mips-BovsnfLQ.js +198 -0
  45. package/dist/msdax-CiRB2ZB-.js +375 -0
  46. package/dist/mysql-BwdpPE19.js +878 -0
  47. package/dist/objective-c-D4nfHfso.js +183 -0
  48. package/dist/pascal--j5-PYtz.js +251 -0
  49. package/dist/pascaligo-C7TcJxNL.js +164 -0
  50. package/dist/perl-BzEWqUb5.js +626 -0
  51. package/dist/pgsql-B_KZ0mGX.js +851 -0
  52. package/dist/php-A19QHzQV.js +500 -0
  53. package/dist/pla-COeKY1hA.js +137 -0
  54. package/dist/postiats-BfMp7zJL.js +907 -0
  55. package/dist/powerquery-B0TS_5Gb.js +890 -0
  56. package/dist/powershell-5jSbKdYB.js +239 -0
  57. package/dist/protobuf-YgnOutn3.js +420 -0
  58. package/dist/pug-DLej6kn5.js +402 -0
  59. package/dist/python-M8MItOfu.js +301 -0
  60. package/dist/qsharp-AhjqtSHB.js +301 -0
  61. package/dist/r-D-F4P80w.js +243 -0
  62. package/dist/razor-CkROrZip.js +550 -0
  63. package/dist/redis-hwwIlMnV.js +302 -0
  64. package/dist/redshift-Bcm_kjEG.js +809 -0
  65. package/dist/restructuredtext-CrdzfPP-.js +174 -0
  66. package/dist/ruby-QC2UNm1s.js +511 -0
  67. package/dist/rust-5aqiQ3L5.js +343 -0
  68. package/dist/sb-B1g1ZfLJ.js +115 -0
  69. package/dist/scala-C2U4R5Gb.js +370 -0
  70. package/dist/scheme-DeFRbslr.js +108 -0
  71. package/dist/scss-RSTCiCmI.js +262 -0
  72. package/dist/shell-BpF-iNu8.js +221 -0
  73. package/dist/solidity-C00r2mbQ.js +1367 -0
  74. package/dist/sophia-DVW5ZKDB.js +199 -0
  75. package/dist/sparql-B0nmpxeX.js +201 -0
  76. package/dist/sql-CJwKPERn.js +853 -0
  77. package/dist/st-DPlKG5DT.js +416 -0
  78. package/dist/swift-YZBAbVHV.js +309 -0
  79. package/dist/systemverilog-CDQSaH63.js +576 -0
  80. package/dist/tcl-Dlu8sp6Q.js +232 -0
  81. package/dist/tsMode-D1me_v4f.js +886 -0
  82. package/dist/twig-C5TO7-kw.js +392 -0
  83. package/dist/typescript-D8U3Pc3R.js +343 -0
  84. package/dist/typespec-BsmjDEu7.js +117 -0
  85. package/dist/ui.css +1 -1
  86. package/dist/vb-ChHvIDrk.js +372 -0
  87. package/dist/wgsl-XEp1ju8c.js +439 -0
  88. package/dist/xml-CTIvZv70.js +95 -0
  89. package/dist/yaml-BgbINe9U.js +206 -0
  90. package/package.json +3 -1
@@ -0,0 +1,343 @@
1
+ import { m as s } from "./editor.main-CP-oXbVe.js";
2
+ var c = Object.defineProperty, a = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, g = Object.prototype.hasOwnProperty, l = (t, e, o, i) => {
3
+ if (e && typeof e == "object" || typeof e == "function")
4
+ for (let n of p(e))
5
+ !g.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = a(e, n)) || i.enumerable });
6
+ return t;
7
+ }, d = (t, e, o) => (l(t, e, "default"), o), r = {};
8
+ d(r, s);
9
+ var x = {
10
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
11
+ comments: {
12
+ lineComment: "//",
13
+ blockComment: ["/*", "*/"]
14
+ },
15
+ brackets: [
16
+ ["{", "}"],
17
+ ["[", "]"],
18
+ ["(", ")"]
19
+ ],
20
+ onEnterRules: [
21
+ {
22
+ // e.g. /** | */
23
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
24
+ afterText: /^\s*\*\/$/,
25
+ action: {
26
+ indentAction: r.languages.IndentAction.IndentOutdent,
27
+ appendText: " * "
28
+ }
29
+ },
30
+ {
31
+ // e.g. /** ...|
32
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
33
+ action: {
34
+ indentAction: r.languages.IndentAction.None,
35
+ appendText: " * "
36
+ }
37
+ },
38
+ {
39
+ // e.g. * ...|
40
+ beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
41
+ action: {
42
+ indentAction: r.languages.IndentAction.None,
43
+ appendText: "* "
44
+ }
45
+ },
46
+ {
47
+ // e.g. */|
48
+ beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
49
+ action: {
50
+ indentAction: r.languages.IndentAction.None,
51
+ removeText: 1
52
+ }
53
+ }
54
+ ],
55
+ autoClosingPairs: [
56
+ { open: "{", close: "}" },
57
+ { open: "[", close: "]" },
58
+ { open: "(", close: ")" },
59
+ { open: '"', close: '"', notIn: ["string"] },
60
+ { open: "'", close: "'", notIn: ["string", "comment"] },
61
+ { open: "`", close: "`", notIn: ["string", "comment"] },
62
+ { open: "/**", close: " */", notIn: ["string"] }
63
+ ],
64
+ folding: {
65
+ markers: {
66
+ start: new RegExp("^\\s*//\\s*#?region\\b"),
67
+ end: new RegExp("^\\s*//\\s*#?endregion\\b")
68
+ }
69
+ }
70
+ }, b = {
71
+ // Set defaultToken to invalid to see what you do not tokenize yet
72
+ defaultToken: "invalid",
73
+ tokenPostfix: ".ts",
74
+ keywords: [
75
+ // Should match the keys of textToKeywordObj in
76
+ // https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts
77
+ "abstract",
78
+ "any",
79
+ "as",
80
+ "asserts",
81
+ "bigint",
82
+ "boolean",
83
+ "break",
84
+ "case",
85
+ "catch",
86
+ "class",
87
+ "continue",
88
+ "const",
89
+ "constructor",
90
+ "debugger",
91
+ "declare",
92
+ "default",
93
+ "delete",
94
+ "do",
95
+ "else",
96
+ "enum",
97
+ "export",
98
+ "extends",
99
+ "false",
100
+ "finally",
101
+ "for",
102
+ "from",
103
+ "function",
104
+ "get",
105
+ "if",
106
+ "implements",
107
+ "import",
108
+ "in",
109
+ "infer",
110
+ "instanceof",
111
+ "interface",
112
+ "is",
113
+ "keyof",
114
+ "let",
115
+ "module",
116
+ "namespace",
117
+ "never",
118
+ "new",
119
+ "null",
120
+ "number",
121
+ "object",
122
+ "out",
123
+ "package",
124
+ "private",
125
+ "protected",
126
+ "public",
127
+ "override",
128
+ "readonly",
129
+ "require",
130
+ "global",
131
+ "return",
132
+ "satisfies",
133
+ "set",
134
+ "static",
135
+ "string",
136
+ "super",
137
+ "switch",
138
+ "symbol",
139
+ "this",
140
+ "throw",
141
+ "true",
142
+ "try",
143
+ "type",
144
+ "typeof",
145
+ "undefined",
146
+ "unique",
147
+ "unknown",
148
+ "var",
149
+ "void",
150
+ "while",
151
+ "with",
152
+ "yield",
153
+ "async",
154
+ "await",
155
+ "of"
156
+ ],
157
+ operators: [
158
+ "<=",
159
+ ">=",
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
+ "<<=",
195
+ ">>=",
196
+ ">>>=",
197
+ "&=",
198
+ "|=",
199
+ "^=",
200
+ "@"
201
+ ],
202
+ // we include these common regular expressions
203
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
204
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
205
+ digits: /\d+(_+\d+)*/,
206
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
207
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
208
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
209
+ regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
210
+ regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
211
+ // The main tokenizer for our languages
212
+ tokenizer: {
213
+ root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
214
+ common: [
215
+ // identifiers and keywords
216
+ [
217
+ /#?[a-z_$][\w$]*/,
218
+ {
219
+ cases: {
220
+ "@keywords": "keyword",
221
+ "@default": "identifier"
222
+ }
223
+ }
224
+ ],
225
+ [/[A-Z][\w\$]*/, "type.identifier"],
226
+ // to show class names nicely
227
+ // [/[A-Z][\w\$]*/, 'identifier'],
228
+ // whitespace
229
+ { include: "@whitespace" },
230
+ // regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
231
+ [
232
+ /\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
233
+ { token: "regexp", bracket: "@open", next: "@regexp" }
234
+ ],
235
+ // delimiters and operators
236
+ [/[()\[\]]/, "@brackets"],
237
+ [/[<>](?!@symbols)/, "@brackets"],
238
+ [/!(?=([^=]|$))/, "delimiter"],
239
+ [
240
+ /@symbols/,
241
+ {
242
+ cases: {
243
+ "@operators": "delimiter",
244
+ "@default": ""
245
+ }
246
+ }
247
+ ],
248
+ // numbers
249
+ [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
250
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
251
+ [/0[xX](@hexdigits)n?/, "number.hex"],
252
+ [/0[oO]?(@octaldigits)n?/, "number.octal"],
253
+ [/0[bB](@binarydigits)n?/, "number.binary"],
254
+ [/(@digits)n?/, "number"],
255
+ // delimiter: after number because of .\d floats
256
+ [/[;,.]/, "delimiter"],
257
+ // strings
258
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
259
+ // non-teminated string
260
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
261
+ // non-teminated string
262
+ [/"/, "string", "@string_double"],
263
+ [/'/, "string", "@string_single"],
264
+ [/`/, "string", "@string_backtick"]
265
+ ],
266
+ whitespace: [
267
+ [/[ \t\r\n]+/, ""],
268
+ [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
269
+ [/\/\*/, "comment", "@comment"],
270
+ [/\/\/.*$/, "comment"]
271
+ ],
272
+ comment: [
273
+ [/[^\/*]+/, "comment"],
274
+ [/\*\//, "comment", "@pop"],
275
+ [/[\/*]/, "comment"]
276
+ ],
277
+ jsdoc: [
278
+ [/[^\/*]+/, "comment.doc"],
279
+ [/\*\//, "comment.doc", "@pop"],
280
+ [/[\/*]/, "comment.doc"]
281
+ ],
282
+ // We match regular expression quite precisely
283
+ regexp: [
284
+ [
285
+ /(\{)(\d+(?:,\d*)?)(\})/,
286
+ ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
287
+ ],
288
+ [
289
+ /(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
290
+ ["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
291
+ ],
292
+ [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
293
+ [/[()]/, "regexp.escape.control"],
294
+ [/@regexpctl/, "regexp.escape.control"],
295
+ [/[^\\\/]/, "regexp"],
296
+ [/@regexpesc/, "regexp.escape"],
297
+ [/\\\./, "regexp.invalid"],
298
+ [/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
299
+ ],
300
+ regexrange: [
301
+ [/-/, "regexp.escape.control"],
302
+ [/\^/, "regexp.invalid"],
303
+ [/@regexpesc/, "regexp.escape"],
304
+ [/[^\]]/, "regexp"],
305
+ [
306
+ /\]/,
307
+ {
308
+ token: "regexp.escape.control",
309
+ next: "@pop",
310
+ bracket: "@close"
311
+ }
312
+ ]
313
+ ],
314
+ string_double: [
315
+ [/[^\\"]+/, "string"],
316
+ [/@escapes/, "string.escape"],
317
+ [/\\./, "string.escape.invalid"],
318
+ [/"/, "string", "@pop"]
319
+ ],
320
+ string_single: [
321
+ [/[^\\']+/, "string"],
322
+ [/@escapes/, "string.escape"],
323
+ [/\\./, "string.escape.invalid"],
324
+ [/'/, "string", "@pop"]
325
+ ],
326
+ string_backtick: [
327
+ [/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
328
+ [/[^\\`$]+/, "string"],
329
+ [/@escapes/, "string.escape"],
330
+ [/\\./, "string.escape.invalid"],
331
+ [/`/, "string", "@pop"]
332
+ ],
333
+ bracketCounting: [
334
+ [/\{/, "delimiter.bracket", "@bracketCounting"],
335
+ [/\}/, "delimiter.bracket", "@pop"],
336
+ { include: "common" }
337
+ ]
338
+ }
339
+ };
340
+ export {
341
+ x as conf,
342
+ b as language
343
+ };
@@ -0,0 +1,117 @@
1
+ var o = (e) => `\\b${e}\\b`, n = (e) => `(?!${e})`, r = "[_a-zA-Z]", i = "[_a-zA-Z0-9]", t = o(`${r}${i}*`), a = o("[_a-zA-Z-0-9]+"), s = [
2
+ "import",
3
+ "model",
4
+ "scalar",
5
+ "namespace",
6
+ "op",
7
+ "interface",
8
+ "union",
9
+ "using",
10
+ "is",
11
+ "extends",
12
+ "enum",
13
+ "alias",
14
+ "return",
15
+ "void",
16
+ "if",
17
+ "else",
18
+ "projection",
19
+ "dec",
20
+ "extern",
21
+ "fn"
22
+ ], c = ["true", "false", "null", "unknown", "never"], g = "[ \\t\\r\\n]", l = "[0-9]+", k = {
23
+ comments: {
24
+ lineComment: "//",
25
+ blockComment: ["/*", "*/"]
26
+ },
27
+ brackets: [
28
+ ["{", "}"],
29
+ ["[", "]"],
30
+ ["(", ")"]
31
+ ],
32
+ autoClosingPairs: [
33
+ { open: "{", close: "}" },
34
+ { open: "[", close: "]" },
35
+ { open: "(", close: ")" },
36
+ { open: '"', close: '"' },
37
+ { open: "/**", close: " */", notIn: ["string"] }
38
+ ],
39
+ surroundingPairs: [
40
+ { open: "{", close: "}" },
41
+ { open: "[", close: "]" },
42
+ { open: "(", close: ")" },
43
+ { open: '"', close: '"' }
44
+ ],
45
+ indentationRules: {
46
+ decreaseIndentPattern: new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),
47
+ increaseIndentPattern: new RegExp(
48
+ "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
49
+ ),
50
+ // e.g. * ...| or */| or *-----*/|
51
+ unIndentedLinePattern: new RegExp(
52
+ "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
53
+ )
54
+ }
55
+ }, x = {
56
+ defaultToken: "",
57
+ tokenPostfix: ".tsp",
58
+ brackets: [
59
+ { open: "{", close: "}", token: "delimiter.curly" },
60
+ { open: "[", close: "]", token: "delimiter.square" },
61
+ { open: "(", close: ")", token: "delimiter.parenthesis" }
62
+ ],
63
+ symbols: /[=:;<>]+/,
64
+ keywords: s,
65
+ namedLiterals: c,
66
+ escapes: '\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',
67
+ tokenizer: {
68
+ root: [{ include: "@expression" }, { include: "@whitespace" }],
69
+ stringVerbatim: [
70
+ { regex: '(|"|"")[^"]', action: { token: "string" } },
71
+ { regex: `"""${n('"')}`, action: { token: "string", next: "@pop" } }
72
+ ],
73
+ stringLiteral: [
74
+ { regex: "\\${", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
75
+ { regex: '[^\\\\"$]+', action: { token: "string" } },
76
+ { regex: "@escapes", action: { token: "string.escape" } },
77
+ { regex: "\\\\.", action: { token: "string.escape.invalid" } },
78
+ { regex: '"', action: { token: "string", next: "@pop" } }
79
+ ],
80
+ bracketCounting: [
81
+ { regex: "{", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
82
+ { regex: "}", action: { token: "delimiter.bracket", next: "@pop" } },
83
+ { include: "@expression" }
84
+ ],
85
+ comment: [
86
+ { regex: "[^\\*]+", action: { token: "comment" } },
87
+ { regex: "\\*\\/", action: { token: "comment", next: "@pop" } },
88
+ { regex: "[\\/*]", action: { token: "comment" } }
89
+ ],
90
+ whitespace: [
91
+ { regex: g },
92
+ { regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
93
+ { regex: "\\/\\/.*$", action: { token: "comment" } }
94
+ ],
95
+ expression: [
96
+ { regex: '"""', action: { token: "string", next: "@stringVerbatim" } },
97
+ { regex: `"${n('""')}`, action: { token: "string", next: "@stringLiteral" } },
98
+ { regex: l, action: { token: "number" } },
99
+ {
100
+ regex: t,
101
+ action: {
102
+ cases: {
103
+ "@keywords": { token: "keyword" },
104
+ "@namedLiterals": { token: "keyword" },
105
+ "@default": { token: "identifier" }
106
+ }
107
+ }
108
+ },
109
+ { regex: `@${t}`, action: { token: "tag" } },
110
+ { regex: `#${a}`, action: { token: "directive" } }
111
+ ]
112
+ }
113
+ };
114
+ export {
115
+ k as conf,
116
+ x as language
117
+ };