@bixlab/mtone 0.9.0 → 0.11.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.
@@ -0,0 +1,377 @@
1
+ // src/typography-languages.generated.ts
2
+ var languageNames = [
3
+ "abap",
4
+ "actionscript-3",
5
+ "ada",
6
+ "ahk",
7
+ "ahk2",
8
+ "angular-expression",
9
+ "angular-html",
10
+ "angular-inline-style",
11
+ "angular-inline-template",
12
+ "angular-let-declaration",
13
+ "angular-template",
14
+ "angular-template-blocks",
15
+ "angular-ts",
16
+ "apache",
17
+ "apex",
18
+ "apl",
19
+ "applescript",
20
+ "ara",
21
+ "asciidoc",
22
+ "asm",
23
+ "astro",
24
+ "awk",
25
+ "ballerina",
26
+ "bat",
27
+ "beancount",
28
+ "berry",
29
+ "bibtex",
30
+ "bicep",
31
+ "bird2",
32
+ "blade",
33
+ "bsl",
34
+ "c",
35
+ "c3",
36
+ "cadence",
37
+ "cairo",
38
+ "chapel",
39
+ "clarity",
40
+ "clojure",
41
+ "cmake",
42
+ "cobol",
43
+ "codeowners",
44
+ "codeql",
45
+ "coffee",
46
+ "common-lisp",
47
+ "coq",
48
+ "cpp",
49
+ "cpp-macro",
50
+ "crystal",
51
+ "csharp",
52
+ "css",
53
+ "csv",
54
+ "cue",
55
+ "cypher",
56
+ "d",
57
+ "dart",
58
+ "dax",
59
+ "desktop",
60
+ "diff",
61
+ "docker",
62
+ "dotenv",
63
+ "dream-maker",
64
+ "edge",
65
+ "elixir",
66
+ "elm",
67
+ "emacs-lisp",
68
+ "erb",
69
+ "erlang",
70
+ "es-tag-css",
71
+ "es-tag-glsl",
72
+ "es-tag-html",
73
+ "es-tag-sql",
74
+ "es-tag-xml",
75
+ "fennel",
76
+ "fish",
77
+ "fluent",
78
+ "fortran-fixed-form",
79
+ "fortran-free-form",
80
+ "fsharp",
81
+ "gdresource",
82
+ "gdscript",
83
+ "gdshader",
84
+ "genie",
85
+ "gherkin",
86
+ "git-commit",
87
+ "git-rebase",
88
+ "gleam",
89
+ "glimmer-js",
90
+ "glimmer-ts",
91
+ "glsl",
92
+ "gn",
93
+ "gnuplot",
94
+ "go",
95
+ "graphql",
96
+ "groovy",
97
+ "hack",
98
+ "haml",
99
+ "handlebars",
100
+ "haskell",
101
+ "haxe",
102
+ "hcl",
103
+ "hjson",
104
+ "hlsl",
105
+ "html",
106
+ "html-derivative",
107
+ "http",
108
+ "hurl",
109
+ "hxml",
110
+ "hy",
111
+ "imba",
112
+ "ini",
113
+ "java",
114
+ "javascript",
115
+ "jinja",
116
+ "jinja-html",
117
+ "jison",
118
+ "json",
119
+ "json5",
120
+ "jsonc",
121
+ "jsonl",
122
+ "jsonnet",
123
+ "jssm",
124
+ "jsx",
125
+ "julia",
126
+ "just",
127
+ "kdl",
128
+ "kotlin",
129
+ "kusto",
130
+ "latex",
131
+ "lean",
132
+ "less",
133
+ "liquid",
134
+ "llvm",
135
+ "log",
136
+ "logo",
137
+ "lua",
138
+ "luau",
139
+ "make",
140
+ "markdown",
141
+ "markdown-nix",
142
+ "markdown-vue",
143
+ "marko",
144
+ "matlab",
145
+ "mdc",
146
+ "mdx",
147
+ "mermaid",
148
+ "mipsasm",
149
+ "mojo",
150
+ "moonbit",
151
+ "move",
152
+ "narrat",
153
+ "nextflow",
154
+ "nextflow-groovy",
155
+ "nginx",
156
+ "nim",
157
+ "nix",
158
+ "nsis",
159
+ "nushell",
160
+ "objective-c",
161
+ "objective-cpp",
162
+ "ocaml",
163
+ "odin",
164
+ "openscad",
165
+ "org",
166
+ "pascal",
167
+ "perl",
168
+ "php",
169
+ "pkl",
170
+ "plsql",
171
+ "po",
172
+ "polar",
173
+ "postcss",
174
+ "powerquery",
175
+ "powershell",
176
+ "prisma",
177
+ "prolog",
178
+ "proto",
179
+ "pug",
180
+ "puppet",
181
+ "purescript",
182
+ "python",
183
+ "qml",
184
+ "qmldir",
185
+ "qss",
186
+ "r",
187
+ "racket",
188
+ "raku",
189
+ "razor",
190
+ "rbs",
191
+ "reg",
192
+ "regexp",
193
+ "rel",
194
+ "riscv",
195
+ "ron",
196
+ "rosmsg",
197
+ "rst",
198
+ "ruby",
199
+ "rust",
200
+ "sas",
201
+ "sass",
202
+ "scala",
203
+ "scheme",
204
+ "scss",
205
+ "sdbl",
206
+ "shaderlab",
207
+ "shellscript",
208
+ "shellsession",
209
+ "smalltalk",
210
+ "smithy",
211
+ "solidity",
212
+ "soy",
213
+ "sparql",
214
+ "splunk",
215
+ "sql",
216
+ "ssh-config",
217
+ "stata",
218
+ "stylus",
219
+ "surrealql",
220
+ "svelte",
221
+ "swift",
222
+ "system-verilog",
223
+ "systemd",
224
+ "talonscript",
225
+ "tasl",
226
+ "tcl",
227
+ "templ",
228
+ "terraform",
229
+ "tex",
230
+ "toml",
231
+ "ts-tags",
232
+ "tsv",
233
+ "tsx",
234
+ "turtle",
235
+ "twig",
236
+ "typescript",
237
+ "typespec",
238
+ "typst",
239
+ "v",
240
+ "vala",
241
+ "vb",
242
+ "verilog",
243
+ "vhdl",
244
+ "viml",
245
+ "vue",
246
+ "vue-directives",
247
+ "vue-html",
248
+ "vue-interpolations",
249
+ "vue-sfc-style-variable-injection",
250
+ "vue-vine",
251
+ "vyper",
252
+ "wasm",
253
+ "wenyan",
254
+ "wgsl",
255
+ "wikitext",
256
+ "wit",
257
+ "wolfram",
258
+ "xml",
259
+ "xsl",
260
+ "yaml",
261
+ "zenscript",
262
+ "zig"
263
+ ];
264
+ var languageAliases = {
265
+ "1c": "bsl",
266
+ "1c-query": "sdbl",
267
+ "actionscript": "actionscript-3",
268
+ "adoc": "asciidoc",
269
+ "ahk1": "ahk",
270
+ "as3": "actionscript-3",
271
+ "bash": "shellscript",
272
+ "batch": "bat",
273
+ "be": "berry",
274
+ "bird": "bird2",
275
+ "cdc": "cadence",
276
+ "chpl": "chapel",
277
+ "cjs": "javascript",
278
+ "clj": "clojure",
279
+ "closure-templates": "soy",
280
+ "cmd": "bat",
281
+ "coffeescript": "coffee",
282
+ "console": "shellsession",
283
+ "cql": "cypher",
284
+ "cs": "csharp",
285
+ "cts": "typescript",
286
+ "dockerfile": "docker",
287
+ "elisp": "emacs-lisp",
288
+ "erl": "erlang",
289
+ "f": "fortran-fixed-form",
290
+ "f03": "fortran-free-form",
291
+ "f08": "fortran-free-form",
292
+ "f18": "fortran-free-form",
293
+ "f77": "fortran-fixed-form",
294
+ "f90": "fortran-free-form",
295
+ "f95": "fortran-free-form",
296
+ "for": "fortran-fixed-form",
297
+ "fs": "fsharp",
298
+ "fsl": "jssm",
299
+ "ftl": "fluent",
300
+ "gd": "gdscript",
301
+ "gjs": "glimmer-js",
302
+ "gql": "graphql",
303
+ "gts": "glimmer-ts",
304
+ "hbs": "handlebars",
305
+ "hs": "haskell",
306
+ "jade": "pug",
307
+ "jl": "julia",
308
+ "js": "javascript",
309
+ "justfile": "just",
310
+ "kql": "kusto",
311
+ "kt": "kotlin",
312
+ "kts": "kotlin",
313
+ "lean4": "lean",
314
+ "lisp": "common-lisp",
315
+ "lit": "ts-tags",
316
+ "makefile": "make",
317
+ "mbt": "moonbit",
318
+ "mbti": "moonbit",
319
+ "md": "markdown",
320
+ "mediawiki": "wikitext",
321
+ "mips": "mipsasm",
322
+ "mjs": "javascript",
323
+ "mmd": "mermaid",
324
+ "mts": "typescript",
325
+ "nar": "narrat",
326
+ "nf": "nextflow",
327
+ "nu": "nushell",
328
+ "objc": "objective-c",
329
+ "perl6": "raku",
330
+ "pot": "po",
331
+ "potx": "po",
332
+ "properties": "ini",
333
+ "protobuf": "proto",
334
+ "ps": "powershell",
335
+ "ps1": "powershell",
336
+ "pwsh": "powershell",
337
+ "py": "python",
338
+ "ql": "codeql",
339
+ "rb": "ruby",
340
+ "regex": "regexp",
341
+ "rs": "rust",
342
+ "ruby-signature": "rbs",
343
+ "scad": "openscad",
344
+ "sh": "shellscript",
345
+ "shader": "shaderlab",
346
+ "shell": "shellscript",
347
+ "spl": "splunk",
348
+ "styl": "stylus",
349
+ "surql": "surrealql",
350
+ "talon": "talonscript",
351
+ "tf": "terraform",
352
+ "tfvars": "terraform",
353
+ "tres": "gdresource",
354
+ "ts": "typescript",
355
+ "tscn": "gdresource",
356
+ "tsp": "typespec",
357
+ "typ": "typst",
358
+ "vim": "viml",
359
+ "vimscript": "viml",
360
+ "vy": "vyper",
361
+ "wiki": "wikitext",
362
+ "wl": "wolfram",
363
+ "yml": "yaml",
364
+ "zsh": "shellscript"
365
+ };
366
+
367
+ // src/typography-language.ts
368
+ var canonical = new Set(languageNames);
369
+ function resolveCodeLanguage(language) {
370
+ const id = language.trim().toLowerCase();
371
+ if (canonical.has(id)) return id;
372
+ return Object.hasOwn(languageAliases, id) ? languageAliases[id] : void 0;
373
+ }
374
+
375
+ export {
376
+ resolveCodeLanguage
377
+ };