@threadlabs/looma 0.18.6 → 0.19.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 (220) hide show
  1. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +34 -3
  2. package/components/ui-editor-table-overlay/ui-editor-table-overlay.js +55 -0
  3. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +7 -2
  4. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +29 -0
  5. package/components/ui-tree-item/ui-tree-item.html +5 -5
  6. package/components/ui-tree-item/ui-tree-item.js +20 -3
  7. package/dist/index.js +1 -1
  8. package/editor/chunks/extensions.js +24 -3
  9. package/editor/extensions/preset.d.ts +2 -0
  10. package/editor/extensions/table-commands.d.ts +1 -1
  11. package/editor/table-overlay.d.ts +8 -3
  12. package/package.json +2 -1
  13. package/styles/ui-editor-table-overlay.css +30 -0
  14. package/styles/ui-editor-table-toolbar.css +7 -2
  15. package/styles/ui-tree-item.css +5 -5
  16. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  17. package/vanilla/UiEditorTableOverlay.js +9 -3
  18. package/vue/UiEditorTableOverlay.d.ts +8 -0
  19. package/vue/UiEditorTableOverlay.vue +45 -2
  20. package/vue/UiEditorTableToolbar.vue +7 -2
  21. package/vue/UiTreeItem.vue +5 -5
  22. package/vue/chunks/1c.js +106 -0
  23. package/vue/chunks/UiEditorTableOverlay.js +14 -4
  24. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  25. package/vue/chunks/UiTreeItem.js +1 -1
  26. package/vue/chunks/abnf.js +61 -0
  27. package/vue/chunks/accesslog.js +72 -0
  28. package/vue/chunks/actionscript.js +139 -0
  29. package/vue/chunks/ada.js +183 -0
  30. package/vue/chunks/angelscript.js +141 -0
  31. package/vue/chunks/apache.js +88 -0
  32. package/vue/chunks/applescript.js +99 -0
  33. package/vue/chunks/arcade.js +405 -0
  34. package/vue/chunks/arduino.js +871 -0
  35. package/vue/chunks/armasm.js +65 -0
  36. package/vue/chunks/asciidoc.js +181 -0
  37. package/vue/chunks/aspectj.js +202 -0
  38. package/vue/chunks/autohotkey.js +54 -0
  39. package/vue/chunks/autoit.js +132 -0
  40. package/vue/chunks/avrasm.js +46 -0
  41. package/vue/chunks/awk.js +58 -0
  42. package/vue/chunks/axapta.js +167 -0
  43. package/vue/chunks/bash.js +358 -0
  44. package/vue/chunks/basic.js +221 -0
  45. package/vue/chunks/bnf.js +27 -0
  46. package/vue/chunks/brainfuck.js +40 -0
  47. package/vue/chunks/c.js +265 -0
  48. package/vue/chunks/cal.js +136 -0
  49. package/vue/chunks/capnproto.js +86 -0
  50. package/vue/chunks/ceylon.js +125 -0
  51. package/vue/chunks/clean.js +54 -0
  52. package/vue/chunks/clojure-repl.js +17 -0
  53. package/vue/chunks/clojure.js +133 -0
  54. package/vue/chunks/cmake.js +23 -0
  55. package/vue/chunks/coffeescript.js +291 -0
  56. package/vue/chunks/coq.js +436 -0
  57. package/vue/chunks/cos.js +77 -0
  58. package/vue/chunks/cpp.js +492 -0
  59. package/vue/chunks/crmsh.js +80 -0
  60. package/vue/chunks/crystal.js +260 -0
  61. package/vue/chunks/csharp.js +376 -0
  62. package/vue/chunks/csp.js +52 -0
  63. package/vue/chunks/css.js +890 -0
  64. package/vue/chunks/d.js +184 -0
  65. package/vue/chunks/dart.js +226 -0
  66. package/vue/chunks/delphi.js +227 -0
  67. package/vue/chunks/diff.js +40 -0
  68. package/vue/chunks/django.js +43 -0
  69. package/vue/chunks/dns.js +66 -0
  70. package/vue/chunks/dockerfile.js +35 -0
  71. package/vue/chunks/dos.js +147 -0
  72. package/vue/chunks/dsconfig.js +55 -0
  73. package/vue/chunks/dts.js +119 -0
  74. package/vue/chunks/dust.js +33 -0
  75. package/vue/chunks/ebnf.js +40 -0
  76. package/vue/chunks/elixir.js +241 -0
  77. package/vue/chunks/elm.js +103 -0
  78. package/vue/chunks/erb.js +17 -0
  79. package/vue/chunks/erlang-repl.js +41 -0
  80. package/vue/chunks/erlang.js +236 -0
  81. package/vue/chunks/excel.js +562 -0
  82. package/vue/chunks/fix.js +30 -0
  83. package/vue/chunks/flix.js +60 -0
  84. package/vue/chunks/fortran.js +543 -0
  85. package/vue/chunks/fsharp.js +440 -0
  86. package/vue/chunks/gams.js +134 -0
  87. package/vue/chunks/gauss.js +167 -0
  88. package/vue/chunks/gcode.js +131 -0
  89. package/vue/chunks/gherkin.js +41 -0
  90. package/vue/chunks/glsl.js +25 -0
  91. package/vue/chunks/gml.js +3119 -0
  92. package/vue/chunks/go.js +140 -0
  93. package/vue/chunks/golo.js +72 -0
  94. package/vue/chunks/gradle.js +181 -0
  95. package/vue/chunks/graphql.js +68 -0
  96. package/vue/chunks/groovy.js +159 -0
  97. package/vue/chunks/haml.js +96 -0
  98. package/vue/chunks/handlebars.js +191 -0
  99. package/vue/chunks/haskell.js +149 -0
  100. package/vue/chunks/haxe.js +142 -0
  101. package/vue/chunks/hsp.js +45 -0
  102. package/vue/chunks/http.js +77 -0
  103. package/vue/chunks/hy.js +92 -0
  104. package/vue/chunks/inform7.js +45 -0
  105. package/vue/chunks/ini.js +94 -0
  106. package/vue/chunks/irpf90.js +52 -0
  107. package/vue/chunks/isbl.js +112 -0
  108. package/vue/chunks/java.js +237 -0
  109. package/vue/chunks/javascript.js +570 -0
  110. package/vue/chunks/jboss-cli.js +46 -0
  111. package/vue/chunks/json.js +45 -0
  112. package/vue/chunks/julia-repl.js +18 -0
  113. package/vue/chunks/julia.js +353 -0
  114. package/vue/chunks/kotlin.js +216 -0
  115. package/vue/chunks/lasso.js +127 -0
  116. package/vue/chunks/latex.js +206 -0
  117. package/vue/chunks/ldif.js +25 -0
  118. package/vue/chunks/leaf.js +72 -0
  119. package/vue/chunks/less.js +953 -0
  120. package/vue/chunks/lisp.js +119 -0
  121. package/vue/chunks/livecodeserver.js +86 -0
  122. package/vue/chunks/livescript.js +309 -0
  123. package/vue/chunks/llvm.js +77 -0
  124. package/vue/chunks/lsl.js +55 -0
  125. package/vue/chunks/lua.js +49 -0
  126. package/vue/chunks/makefile.js +62 -0
  127. package/vue/chunks/markdown.js +194 -0
  128. package/vue/chunks/mathematica.js +7317 -0
  129. package/vue/chunks/matlab.js +70 -0
  130. package/vue/chunks/maxima.js +38 -0
  131. package/vue/chunks/mel.js +24 -0
  132. package/vue/chunks/mercury.js +62 -0
  133. package/vue/chunks/mipsasm.js +53 -0
  134. package/vue/chunks/mizar.js +10 -0
  135. package/vue/chunks/mojolicious.js +27 -0
  136. package/vue/chunks/monkey.js +158 -0
  137. package/vue/chunks/moonscript.js +102 -0
  138. package/vue/chunks/n1ql.js +346 -0
  139. package/vue/chunks/nestedtext.js +66 -0
  140. package/vue/chunks/nginx.js +127 -0
  141. package/vue/chunks/nim.js +174 -0
  142. package/vue/chunks/nix.js +334 -0
  143. package/vue/chunks/node-repl.js +20 -0
  144. package/vue/chunks/nsis.js +515 -0
  145. package/vue/chunks/objectivec.js +235 -0
  146. package/vue/chunks/ocaml.js +52 -0
  147. package/vue/chunks/openscad.js +66 -0
  148. package/vue/chunks/oxygene.js +58 -0
  149. package/vue/chunks/parser3.js +40 -0
  150. package/vue/chunks/perl.js +454 -0
  151. package/vue/chunks/pf.js +30 -0
  152. package/vue/chunks/pgsql.js +196 -0
  153. package/vue/chunks/php-template.js +43 -0
  154. package/vue/chunks/php.js +527 -0
  155. package/vue/chunks/plaintext.js +10 -0
  156. package/vue/chunks/pony.js +60 -0
  157. package/vue/chunks/powershell.js +208 -0
  158. package/vue/chunks/processing.js +407 -0
  159. package/vue/chunks/profile.js +38 -0
  160. package/vue/chunks/prolog.js +62 -0
  161. package/vue/chunks/properties.js +45 -0
  162. package/vue/chunks/protobuf.js +63 -0
  163. package/vue/chunks/puppet.js +87 -0
  164. package/vue/chunks/purebasic.js +42 -0
  165. package/vue/chunks/python-repl.js +19 -0
  166. package/vue/chunks/python.js +357 -0
  167. package/vue/chunks/q.js +21 -0
  168. package/vue/chunks/qml.js +134 -0
  169. package/vue/chunks/r.js +145 -0
  170. package/vue/chunks/reasonml.js +134 -0
  171. package/vue/chunks/rib.js +16 -0
  172. package/vue/chunks/roboconf.js +54 -0
  173. package/vue/chunks/routeros.js +109 -0
  174. package/vue/chunks/rsl.js +138 -0
  175. package/vue/chunks/ruby.js +322 -0
  176. package/vue/chunks/ruleslanguage.js +26 -0
  177. package/vue/chunks/rust.js +296 -0
  178. package/vue/chunks/sas.js +533 -0
  179. package/vue/chunks/scala.js +173 -0
  180. package/vue/chunks/scheme.js +118 -0
  181. package/vue/chunks/scilab.js +45 -0
  182. package/vue/chunks/scss.js +900 -0
  183. package/vue/chunks/shell.js +18 -0
  184. package/vue/chunks/smali.js +113 -0
  185. package/vue/chunks/smalltalk.js +59 -0
  186. package/vue/chunks/sml.js +49 -0
  187. package/vue/chunks/sqf.js +2599 -0
  188. package/vue/chunks/sql.js +624 -0
  189. package/vue/chunks/stan.js +471 -0
  190. package/vue/chunks/stata.js +33 -0
  191. package/vue/chunks/step21.js +53 -0
  192. package/vue/chunks/stylus.js +925 -0
  193. package/vue/chunks/subunit.js +34 -0
  194. package/vue/chunks/swift.js +699 -0
  195. package/vue/chunks/taggerscript.js +37 -0
  196. package/vue/chunks/tap.js +30 -0
  197. package/vue/chunks/tcl.js +165 -0
  198. package/vue/chunks/thrift.js +65 -0
  199. package/vue/chunks/tp.js +155 -0
  200. package/vue/chunks/twig.js +232 -0
  201. package/vue/chunks/typescript.js +672 -0
  202. package/vue/chunks/vala.js +39 -0
  203. package/vue/chunks/vbnet.js +86 -0
  204. package/vue/chunks/vbscript-html.js +14 -0
  205. package/vue/chunks/vbscript.js +200 -0
  206. package/vue/chunks/verilog.js +534 -0
  207. package/vue/chunks/vhdl.js +190 -0
  208. package/vue/chunks/vim.js +54 -0
  209. package/vue/chunks/wasm.js +111 -0
  210. package/vue/chunks/wren.js +229 -0
  211. package/vue/chunks/x86asm.js +64 -0
  212. package/vue/chunks/xl.js +192 -0
  213. package/vue/chunks/xml.js +175 -0
  214. package/vue/chunks/xquery.js +303 -0
  215. package/vue/chunks/yaml.js +159 -0
  216. package/vue/chunks/zephir.js +74 -0
  217. package/vue/components.css +204 -170
  218. package/vue/editor/LoomaEditor.d.ts +7 -7
  219. package/vue/editor/code-language-catalog.d.ts +196 -0
  220. package/vue/editor/index.js +290 -20
@@ -0,0 +1,334 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/nix.js
2
+ /** @type LanguageFn */
3
+ function nix(hljs) {
4
+ const regex = hljs.regex;
5
+ const KEYWORDS = {
6
+ keyword: [
7
+ "assert",
8
+ "else",
9
+ "if",
10
+ "in",
11
+ "inherit",
12
+ "let",
13
+ "or",
14
+ "rec",
15
+ "then",
16
+ "with"
17
+ ],
18
+ literal: [
19
+ "true",
20
+ "false",
21
+ "null"
22
+ ],
23
+ built_in: [
24
+ "abort",
25
+ "baseNameOf",
26
+ "builtins",
27
+ "derivation",
28
+ "derivationStrict",
29
+ "dirOf",
30
+ "fetchGit",
31
+ "fetchMercurial",
32
+ "fetchTarball",
33
+ "fetchTree",
34
+ "fromTOML",
35
+ "import",
36
+ "isNull",
37
+ "map",
38
+ "placeholder",
39
+ "removeAttrs",
40
+ "scopedImport",
41
+ "throw",
42
+ "toString"
43
+ ]
44
+ };
45
+ const BUILTINS = {
46
+ scope: "built_in",
47
+ match: regex.either(...[
48
+ "abort",
49
+ "add",
50
+ "addDrvOutputDependencies",
51
+ "addErrorContext",
52
+ "all",
53
+ "any",
54
+ "appendContext",
55
+ "attrNames",
56
+ "attrValues",
57
+ "baseNameOf",
58
+ "bitAnd",
59
+ "bitOr",
60
+ "bitXor",
61
+ "break",
62
+ "builtins",
63
+ "catAttrs",
64
+ "ceil",
65
+ "compareVersions",
66
+ "concatLists",
67
+ "concatMap",
68
+ "concatStringsSep",
69
+ "convertHash",
70
+ "currentSystem",
71
+ "currentTime",
72
+ "deepSeq",
73
+ "derivation",
74
+ "derivationStrict",
75
+ "dirOf",
76
+ "div",
77
+ "elem",
78
+ "elemAt",
79
+ "false",
80
+ "fetchGit",
81
+ "fetchMercurial",
82
+ "fetchTarball",
83
+ "fetchTree",
84
+ "fetchurl",
85
+ "filter",
86
+ "filterSource",
87
+ "findFile",
88
+ "flakeRefToString",
89
+ "floor",
90
+ "foldl'",
91
+ "fromJSON",
92
+ "fromTOML",
93
+ "functionArgs",
94
+ "genList",
95
+ "genericClosure",
96
+ "getAttr",
97
+ "getContext",
98
+ "getEnv",
99
+ "getFlake",
100
+ "groupBy",
101
+ "hasAttr",
102
+ "hasContext",
103
+ "hashFile",
104
+ "hashString",
105
+ "head",
106
+ "import",
107
+ "intersectAttrs",
108
+ "isAttrs",
109
+ "isBool",
110
+ "isFloat",
111
+ "isFunction",
112
+ "isInt",
113
+ "isList",
114
+ "isNull",
115
+ "isPath",
116
+ "isString",
117
+ "langVersion",
118
+ "length",
119
+ "lessThan",
120
+ "listToAttrs",
121
+ "map",
122
+ "mapAttrs",
123
+ "match",
124
+ "mul",
125
+ "nixPath",
126
+ "nixVersion",
127
+ "null",
128
+ "parseDrvName",
129
+ "parseFlakeRef",
130
+ "partition",
131
+ "path",
132
+ "pathExists",
133
+ "placeholder",
134
+ "readDir",
135
+ "readFile",
136
+ "readFileType",
137
+ "removeAttrs",
138
+ "replaceStrings",
139
+ "scopedImport",
140
+ "seq",
141
+ "sort",
142
+ "split",
143
+ "splitVersion",
144
+ "storeDir",
145
+ "storePath",
146
+ "stringLength",
147
+ "sub",
148
+ "substring",
149
+ "tail",
150
+ "throw",
151
+ "toFile",
152
+ "toJSON",
153
+ "toPath",
154
+ "toString",
155
+ "toXML",
156
+ "trace",
157
+ "traceVerbose",
158
+ "true",
159
+ "tryEval",
160
+ "typeOf",
161
+ "unsafeDiscardOutputDependency",
162
+ "unsafeDiscardStringContext",
163
+ "unsafeGetAttrPos",
164
+ "warn",
165
+ "zipAttrsWith"
166
+ ].map((b) => `builtins\\.${b}`)),
167
+ relevance: 10
168
+ };
169
+ const IDENTIFIER_REGEX = "[A-Za-z_][A-Za-z0-9_'-]*";
170
+ const LOOKUP_PATH = {
171
+ scope: "symbol",
172
+ match: new RegExp(`<${IDENTIFIER_REGEX}(/${IDENTIFIER_REGEX})*>`)
173
+ };
174
+ const PATH_PIECE = "[A-Za-z0-9_\\+\\.-]+";
175
+ const PATH = {
176
+ scope: "symbol",
177
+ match: new RegExp(`(\\.\\.|\\.|~)?/(${PATH_PIECE})?(/${PATH_PIECE})*(?=[\\s;])`)
178
+ };
179
+ const OPERATOR_WITHOUT_MINUS_REGEX = regex.either(...[
180
+ "==",
181
+ "=",
182
+ "\\+\\+",
183
+ "\\+",
184
+ "<=",
185
+ "<\\|",
186
+ "<",
187
+ ">=",
188
+ ">",
189
+ "->",
190
+ "//",
191
+ "/",
192
+ "!=",
193
+ "!",
194
+ "\\|\\|",
195
+ "\\|>",
196
+ "\\?",
197
+ "\\*",
198
+ "&&"
199
+ ]);
200
+ const OPERATOR = {
201
+ scope: "operator",
202
+ match: regex.concat(OPERATOR_WITHOUT_MINUS_REGEX, /(?!-)/),
203
+ relevance: 0
204
+ };
205
+ const NUMBER = {
206
+ scope: "number",
207
+ match: new RegExp(`${hljs.NUMBER_RE}(?!-)`),
208
+ relevance: 0
209
+ };
210
+ const MINUS_OPERATOR = {
211
+ variants: [
212
+ {
213
+ scope: "operator",
214
+ beforeMatch: /\s/,
215
+ begin: /-(?!>)/
216
+ },
217
+ {
218
+ begin: [
219
+ new RegExp(`${hljs.NUMBER_RE}`),
220
+ /-/,
221
+ /(?!>)/
222
+ ],
223
+ beginScope: {
224
+ 1: "number",
225
+ 2: "operator"
226
+ }
227
+ },
228
+ {
229
+ begin: [
230
+ OPERATOR_WITHOUT_MINUS_REGEX,
231
+ /-/,
232
+ /(?!>)/
233
+ ],
234
+ beginScope: {
235
+ 1: "operator",
236
+ 2: "operator"
237
+ }
238
+ }
239
+ ],
240
+ relevance: 0
241
+ };
242
+ const ATTRS = {
243
+ beforeMatch: /(^|\{|;)\s*/,
244
+ begin: new RegExp(`${IDENTIFIER_REGEX}(\\.${IDENTIFIER_REGEX})*\\s*=(?!=)`),
245
+ returnBegin: true,
246
+ relevance: 0,
247
+ contains: [{
248
+ scope: "attr",
249
+ match: new RegExp(`${IDENTIFIER_REGEX}(\\.${IDENTIFIER_REGEX})*(?=\\s*=)`),
250
+ relevance: .2
251
+ }]
252
+ };
253
+ const NORMAL_ESCAPED_DOLLAR = {
254
+ scope: "char.escape",
255
+ match: /\\\$/
256
+ };
257
+ const INDENTED_ESCAPED_DOLLAR = {
258
+ scope: "char.escape",
259
+ match: /''\$/
260
+ };
261
+ const ANTIQUOTE = {
262
+ scope: "subst",
263
+ begin: /\$\{/,
264
+ end: /\}/,
265
+ keywords: KEYWORDS
266
+ };
267
+ const ESCAPED_DOUBLEQUOTE = {
268
+ scope: "char.escape",
269
+ match: /'''/
270
+ };
271
+ const ESCAPED_LITERAL = {
272
+ scope: "char.escape",
273
+ match: /\\(?!\$)./
274
+ };
275
+ const STRING = {
276
+ scope: "string",
277
+ variants: [{
278
+ begin: "''",
279
+ end: "''",
280
+ contains: [
281
+ INDENTED_ESCAPED_DOLLAR,
282
+ ANTIQUOTE,
283
+ ESCAPED_DOUBLEQUOTE,
284
+ ESCAPED_LITERAL
285
+ ]
286
+ }, {
287
+ begin: "\"",
288
+ end: "\"",
289
+ contains: [
290
+ NORMAL_ESCAPED_DOLLAR,
291
+ ANTIQUOTE,
292
+ ESCAPED_LITERAL
293
+ ]
294
+ }]
295
+ };
296
+ const FUNCTION_PARAMS = {
297
+ scope: "params",
298
+ match: new RegExp(`${IDENTIFIER_REGEX}\\s*:(?=\\s)`)
299
+ };
300
+ const EXPRESSIONS = [
301
+ NUMBER,
302
+ hljs.HASH_COMMENT_MODE,
303
+ hljs.C_BLOCK_COMMENT_MODE,
304
+ hljs.COMMENT(/\/\*\*(?!\/)/, /\*\//, {
305
+ subLanguage: "markdown",
306
+ relevance: 0
307
+ }),
308
+ BUILTINS,
309
+ STRING,
310
+ LOOKUP_PATH,
311
+ PATH,
312
+ FUNCTION_PARAMS,
313
+ ATTRS,
314
+ MINUS_OPERATOR,
315
+ OPERATOR
316
+ ];
317
+ ANTIQUOTE.contains = EXPRESSIONS;
318
+ return {
319
+ name: "Nix",
320
+ aliases: ["nixos"],
321
+ keywords: KEYWORDS,
322
+ contains: EXPRESSIONS.concat([{
323
+ scope: "meta.prompt",
324
+ match: /^nix-repl>(?=\s)/,
325
+ relevance: 10
326
+ }, {
327
+ scope: "meta",
328
+ beforeMatch: /\s+/,
329
+ begin: /:([a-z]+|\?)/
330
+ }])
331
+ };
332
+ }
333
+ //#endregion
334
+ export { nix as default };
@@ -0,0 +1,20 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.11.2/node_modules/highlight.js/es/languages/node-repl.js
2
+ /** @type LanguageFn */
3
+ function nodeRepl(hljs) {
4
+ return {
5
+ name: "Node REPL",
6
+ contains: [{
7
+ className: "meta.prompt",
8
+ starts: {
9
+ end: / |$/,
10
+ starts: {
11
+ end: "$",
12
+ subLanguage: "javascript"
13
+ }
14
+ },
15
+ variants: [{ begin: /^>(?=[ ]|$)/ }, { begin: /^\.\.\.(?=[ ]|$)/ }]
16
+ }]
17
+ };
18
+ }
19
+ //#endregion
20
+ export { nodeRepl as default };