datacontract-editor 0.1.10 → 0.1.12

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 (94) hide show
  1. package/README.md +1 -3
  2. package/bin/datacontract-editor.js +73 -29
  3. package/dist/assets/editor.worker-4.7.0.js +30 -9034
  4. package/dist/assets/yaml.worker-4.7.0.js +432 -26435
  5. package/dist/datacontract-editor.css +2 -1
  6. package/dist/datacontract-editor.es.js +82727 -77765
  7. package/dist/monaco-4.7.0.js +114774 -125871
  8. package/dist/rolldown-runtime-DY7j01NX.js +30 -0
  9. package/package.json +20 -12
  10. package/dist/abap-Bs8kvjsq.js +0 -1398
  11. package/dist/apex-Dspwrl5m.js +0 -326
  12. package/dist/azcli-k1BiOau1.js +0 -68
  13. package/dist/bat-BIP72KWc.js +0 -100
  14. package/dist/bicep-VhQeYhS3.js +0 -102
  15. package/dist/cameligo-DnuAXtHg.js +0 -174
  16. package/dist/clojure-BAuDPsal.js +0 -761
  17. package/dist/coffee-BV06qSnj.js +0 -232
  18. package/dist/cpp-Cz8Jeyrf.js +0 -389
  19. package/dist/csharp-F6hhlXFb.js +0 -326
  20. package/dist/csp-KzlEHCyI.js +0 -53
  21. package/dist/css-e4FKntZ3.js +0 -187
  22. package/dist/cssMode-BNkTa2xp.js +0 -1618
  23. package/dist/cypher-CpvDGKRr.js +0 -263
  24. package/dist/dart-DdHeFWR0.js +0 -281
  25. package/dist/dockerfile-aoNXDcio.js +0 -130
  26. package/dist/ecl-C4Q0DYuA.js +0 -456
  27. package/dist/elixir-C9X42b0T.js +0 -569
  28. package/dist/flow9-Bff42pfB.js +0 -142
  29. package/dist/freemarker2-Dyfzmb5A.js +0 -989
  30. package/dist/fsharp-C6vPAsHG.js +0 -217
  31. package/dist/go-DEr8zx9f.js +0 -218
  32. package/dist/graphql-BiNBBRFh.js +0 -151
  33. package/dist/handlebars-BtDNI-uC.js +0 -419
  34. package/dist/hcl-2T9lKuFg.js +0 -183
  35. package/dist/html-Cn4TGw_o.js +0 -308
  36. package/dist/htmlMode-Bf84vbo2.js +0 -1628
  37. package/dist/ini-CZGtssYM.js +0 -71
  38. package/dist/java-B260NeH3.js +0 -232
  39. package/dist/javascript-B86Kac07.js +0 -70
  40. package/dist/jsonMode-Ckgg5lAE.js +0 -2051
  41. package/dist/julia-kuNLM9c5.js +0 -511
  42. package/dist/kotlin-Bz6kAefA.js +0 -253
  43. package/dist/less-AZUtS89I.js +0 -162
  44. package/dist/lexon-BcmgnyRb.js +0 -157
  45. package/dist/liquid-D0NPwuu_.js +0 -240
  46. package/dist/lua-Dz1RbATg.js +0 -162
  47. package/dist/m3-CIMooLFn.js +0 -210
  48. package/dist/markdown-C1BsCK9P.js +0 -229
  49. package/dist/mdx-QFRSBtVQ.js +0 -165
  50. package/dist/mips-BovsnfLQ.js +0 -198
  51. package/dist/msdax-CiRB2ZB-.js +0 -375
  52. package/dist/mysql-BwdpPE19.js +0 -878
  53. package/dist/objective-c-D4nfHfso.js +0 -183
  54. package/dist/pascal--j5-PYtz.js +0 -251
  55. package/dist/pascaligo-C7TcJxNL.js +0 -164
  56. package/dist/perl-BzEWqUb5.js +0 -626
  57. package/dist/pgsql-B_KZ0mGX.js +0 -851
  58. package/dist/php-A19QHzQV.js +0 -500
  59. package/dist/pla-COeKY1hA.js +0 -137
  60. package/dist/postiats-BfMp7zJL.js +0 -907
  61. package/dist/powerquery-B0TS_5Gb.js +0 -890
  62. package/dist/powershell-5jSbKdYB.js +0 -239
  63. package/dist/protobuf-YgnOutn3.js +0 -420
  64. package/dist/pug-DLej6kn5.js +0 -402
  65. package/dist/python-C8RW9B6A.js +0 -301
  66. package/dist/qsharp-AhjqtSHB.js +0 -301
  67. package/dist/r-D-F4P80w.js +0 -243
  68. package/dist/razor-CLZqdY_r.js +0 -550
  69. package/dist/redis-hwwIlMnV.js +0 -302
  70. package/dist/redshift-Bcm_kjEG.js +0 -809
  71. package/dist/restructuredtext-CrdzfPP-.js +0 -174
  72. package/dist/ruby-QC2UNm1s.js +0 -511
  73. package/dist/rust-5aqiQ3L5.js +0 -343
  74. package/dist/sb-B1g1ZfLJ.js +0 -115
  75. package/dist/scala-C2U4R5Gb.js +0 -370
  76. package/dist/scheme-DeFRbslr.js +0 -108
  77. package/dist/scss-RSTCiCmI.js +0 -262
  78. package/dist/shell-BpF-iNu8.js +0 -221
  79. package/dist/solidity-C00r2mbQ.js +0 -1367
  80. package/dist/sophia-DVW5ZKDB.js +0 -199
  81. package/dist/sparql-B0nmpxeX.js +0 -201
  82. package/dist/sql-CJwKPERn.js +0 -853
  83. package/dist/st-DPlKG5DT.js +0 -416
  84. package/dist/swift-YZBAbVHV.js +0 -309
  85. package/dist/systemverilog-CDQSaH63.js +0 -576
  86. package/dist/tcl-Dlu8sp6Q.js +0 -232
  87. package/dist/tsMode-yleMwhPq.js +0 -933
  88. package/dist/twig-C5TO7-kw.js +0 -392
  89. package/dist/typescript-CJBeebKU.js +0 -343
  90. package/dist/typespec-BsmjDEu7.js +0 -117
  91. package/dist/vb-ChHvIDrk.js +0 -372
  92. package/dist/wgsl-XEp1ju8c.js +0 -439
  93. package/dist/xml-vC-NMVX1.js +0 -95
  94. package/dist/yaml-Dlf2VF-T.js +0 -206
@@ -1,343 +0,0 @@
1
- import { d as s } from "./monaco-4.7.0.js";
2
- var c = Object.defineProperty, a = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, g = Object.prototype.hasOwnProperty, d = (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
- }, l = (t, e, o) => (d(t, e, "default"), o), r = {};
8
- l(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
- };
@@ -1,117 +0,0 @@
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
- };