@gkucmierz/nano-ui 1.7.8 → 1.8.9

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.
Binary file
Binary file
@@ -0,0 +1,57 @@
1
+ var e = {
2
+ id: "api",
3
+ name: "API Reference",
4
+ aliases: ["api"],
5
+ grammar: (e) => ({
6
+ name: "API Reference",
7
+ aliases: ["api"],
8
+ contains: [
9
+ e.C_LINE_COMMENT_MODE,
10
+ e.C_BLOCK_COMMENT_MODE,
11
+ {
12
+ className: "comment",
13
+ begin: /<!--/,
14
+ end: /-->/
15
+ },
16
+ {
17
+ className: "comment",
18
+ begin: /\s+--?\s+/,
19
+ end: /$/,
20
+ relevance: 0
21
+ },
22
+ e.QUOTE_STRING_MODE,
23
+ e.APOS_STRING_MODE,
24
+ e.NUMBER_MODE,
25
+ {
26
+ className: "literal",
27
+ match: /\b(true|false|null|undefined)\b/
28
+ },
29
+ {
30
+ scope: "title.class",
31
+ match: /\b(String|Number|Boolean|Array|Object|Function|Promise|Symbol|BigInt|Date|RegExp|Map|Set|Event|HTMLElement|Element|Node|VNode)\b/
32
+ },
33
+ {
34
+ className: "keyword",
35
+ match: /\b(required|optional|default|readonly|v-model)\b/
36
+ },
37
+ {
38
+ className: "symbol",
39
+ match: /#[a-zA-Z0-9_-]+/
40
+ },
41
+ {
42
+ className: "variable",
43
+ match: /@[a-zA-Z0-9_:-]+/
44
+ },
45
+ {
46
+ scope: "title.function",
47
+ match: /\b[a-zA-Z_][a-zA-Z0-9_]*(?=\s*\()/
48
+ },
49
+ {
50
+ className: "attr",
51
+ match: /^[ \t]*[a-zA-Z_][a-zA-Z0-9_]*(?=\s*:)/
52
+ }
53
+ ]
54
+ })
55
+ };
56
+ //#endregion
57
+ export { e as apiParser, e as default };
@@ -0,0 +1,69 @@
1
+ var e = {
2
+ id: "bash",
3
+ name: "Bash / Shell",
4
+ aliases: [
5
+ "bash",
6
+ "sh",
7
+ "zsh",
8
+ "shell"
9
+ ],
10
+ grammar: (e) => ({
11
+ name: "Bash",
12
+ aliases: [
13
+ "sh",
14
+ "zsh",
15
+ "shell"
16
+ ],
17
+ keywords: {
18
+ $pattern: /\b[a-zA-Z_-][a-zA-Z0-9_.-]*\b/,
19
+ built_in: /* @__PURE__ */ "npm.npx.pnpm.pnpx.yarn.bun.bunx.node.deno.git.docker.docker-compose.compose.kubectl.curl.wget.ssh.sudo.brew.apt.apk.cargo.rustc.pip.pip3.python.python3.make.cat.grep.find.sed.awk.ls.mkdir.rm.cp.mv.chmod.chown.systemctl.journalctl.tar.gzip.unzip.vim.nano.tail.head.echo.cd.pwd.clear.export.alias.source.exit.history.which.whoami".split("."),
20
+ keyword: (/* @__PURE__ */ "install.i.add.remove.rm.update.upgrade.run.build.test.dev.start.preview.lint.init.create.publish.commit.push.pull.checkout.clone.status.diff.branch.merge.rebase.stash.tag.log.show.reset.up.down.ps.exec.logs.stop.restart.apply.get.describe.delete".split(".")).concat([
21
+ "if",
22
+ "then",
23
+ "else",
24
+ "elif",
25
+ "fi",
26
+ "for",
27
+ "while",
28
+ "until",
29
+ "in",
30
+ "do",
31
+ "done",
32
+ "case",
33
+ "esac",
34
+ "function",
35
+ "select",
36
+ "return"
37
+ ]),
38
+ literal: [
39
+ "true",
40
+ "false",
41
+ "null"
42
+ ]
43
+ },
44
+ contains: [
45
+ e.HASH_COMMENT_MODE,
46
+ e.QUOTE_STRING_MODE,
47
+ e.APOS_STRING_MODE,
48
+ e.NUMBER_MODE,
49
+ {
50
+ className: "punctuation",
51
+ match: /^\s*\$\s+/
52
+ },
53
+ {
54
+ className: "attr",
55
+ match: /--?[a-zA-Z0-9][-a-zA-Z0-9]*/
56
+ },
57
+ {
58
+ className: "string",
59
+ match: /@[a-zA-Z0-9_-]+\/[a-zA-Z0-9_.-]+(?:@[a-zA-Z0-9_.-]+)?/
60
+ },
61
+ {
62
+ className: "variable",
63
+ match: /\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{[^}]+\}/
64
+ }
65
+ ]
66
+ })
67
+ };
68
+ //#endregion
69
+ export { e as bashParser, e as default };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../css-Ib3kM2Cd.js";
2
+ export { e as cssParser, e as default };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../diff-DZQrcgwC.js";
2
+ export { e as default, e as diffParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../dockerfile-DULRXVBi.js";
2
+ export { e as default, e as dockerfileParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../go-B4JomEJg.js";
2
+ export { e as default, e as goParser };
@@ -0,0 +1,17 @@
1
+ import { t as e } from "../javascript-CDG16pPH.js";
2
+ import { t } from "../typescript-B73FzJSL.js";
3
+ import { n, t as r } from "../vue-CDhgx6jw.js";
4
+ import { t as i } from "../css-Ib3kM2Cd.js";
5
+ import { t as a } from "../json-DULVD1iv.js";
6
+ import { bashParser as o } from "./bash.js";
7
+ import { t as s } from "../markdown-Cw4KhrBM.js";
8
+ import { t as c } from "../rust-uBzAvQqQ.js";
9
+ import { t as l } from "../python-DtWgL250.js";
10
+ import { t as u } from "../sql-vMRKzCFG.js";
11
+ import { t as d } from "../yaml-CpLX_AnF.js";
12
+ import { t as f } from "../go-B4JomEJg.js";
13
+ import { t as p } from "../dockerfile-DULRXVBi.js";
14
+ import { t as m } from "../diff-DZQrcgwC.js";
15
+ import { apiParser as h } from "./api.js";
16
+ import { a as g, i as _, n as v, o as y, r as b, t as x } from "../parsers-De7BcaZl.js";
17
+ export { x as ALL_PARSERS, v as CORE_PARSERS, b as EXTRA_PARSERS, g as NANOSOUND_COMPLETIONS, _ as PARSER_MAP, h as apiParser, o as bashParser, i as cssParser, m as diffParser, p as dockerfileParser, f as goParser, r as htmlParser, e as javascriptParser, a as jsonParser, s as markdownParser, y as nanosoundParser, l as pythonParser, c as rustParser, u as sqlParser, t as typescriptParser, n as vueParser, d as yamlParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../javascript-CDG16pPH.js";
2
+ export { e as default, e as javascriptParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../json-DULVD1iv.js";
2
+ export { e as default, e as jsonParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../markdown-Cw4KhrBM.js";
2
+ export { e as default, e as markdownParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../python-DtWgL250.js";
2
+ export { e as default, e as pythonParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../rust-uBzAvQqQ.js";
2
+ export { e as default, e as rustParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../sql-vMRKzCFG.js";
2
+ export { e as default, e as sqlParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../typescript-B73FzJSL.js";
2
+ export { e as default, e as typescriptParser };
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../vue-CDhgx6jw.js";
2
+ export { e as default, e as vueParser, t as htmlParser };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../yaml-CpLX_AnF.js";
2
+ export { e as default, e as yamlParser };
@@ -0,0 +1,282 @@
1
+ import { t as e } from "./javascript-CDG16pPH.js";
2
+ import { t } from "./typescript-B73FzJSL.js";
3
+ import { n, t as r } from "./vue-CDhgx6jw.js";
4
+ import { t as i } from "./css-Ib3kM2Cd.js";
5
+ import { t as a } from "./json-DULVD1iv.js";
6
+ import { bashParser as o } from "./parsers/bash.js";
7
+ import { t as s } from "./markdown-Cw4KhrBM.js";
8
+ import { t as c } from "./rust-uBzAvQqQ.js";
9
+ import { t as l } from "./python-DtWgL250.js";
10
+ import { t as u } from "./sql-vMRKzCFG.js";
11
+ import { t as d } from "./yaml-CpLX_AnF.js";
12
+ import { t as f } from "./go-B4JomEJg.js";
13
+ import { t as p } from "./dockerfile-DULRXVBi.js";
14
+ import { t as m } from "./diff-DZQrcgwC.js";
15
+ import { apiParser as h } from "./parsers/api.js";
16
+ //#region src/parsers/nanosound.js
17
+ var g = (e) => ({
18
+ name: "NanoSound DSL",
19
+ aliases: [
20
+ "nanosound",
21
+ "nsd",
22
+ "sound"
23
+ ],
24
+ contains: [
25
+ e.HASH_COMMENT_MODE,
26
+ e.C_LINE_COMMENT_MODE,
27
+ e.C_BLOCK_COMMENT_MODE,
28
+ {
29
+ className: "symbol",
30
+ match: /\b\d+(?:\.\d+)?(?:ms|s)(?=\s*:)/
31
+ },
32
+ {
33
+ className: "attr",
34
+ match: /\b(?:detune|duty|q|ripple|fb|feedback|order|mix|gain|pan|seed|fm)(?=\s*:)/
35
+ },
36
+ {
37
+ className: "number",
38
+ match: /[+-]?\b\d+(?:\.\d+)?(?:kHz|Hz|ms|s|ct|%)?\b/
39
+ },
40
+ {
41
+ className: "literal",
42
+ match: /\b(?:easeOutCubic|easeInQuad|easeInOutSine|linear|exp)\b/
43
+ },
44
+ {
45
+ className: "keyword",
46
+ match: /\b(?:seq|glide)\b/
47
+ },
48
+ {
49
+ scope: "title.function",
50
+ match: /\b(?:sin|tri|saw|sqr|pulse|noise|pink|brown)\b(?=\s*\()/
51
+ },
52
+ {
53
+ className: "built_in",
54
+ match: /\b(?:expDecay|adsr|perc|hanning|lpf|hpf|bpf|notch|allpass|cheby|chebyWave|comb)\b(?=\s*\()/
55
+ },
56
+ {
57
+ className: "operator",
58
+ match: /[+*]/
59
+ }
60
+ ]
61
+ }), _ = [
62
+ {
63
+ label: "sin",
64
+ insertText: "sin(440Hz)",
65
+ detail: "Oscylator sinusoidalny (czysta fala podstawowa)",
66
+ kind: "osc"
67
+ },
68
+ {
69
+ label: "tri",
70
+ insertText: "tri(330Hz)",
71
+ detail: "Oscylator trójkątny (ciepłe nieparzyste harmoniczne)",
72
+ kind: "osc"
73
+ },
74
+ {
75
+ label: "saw",
76
+ insertText: "saw(220Hz)",
77
+ detail: "Oscylator piłokształtny (bogate spektrum harmoniczne)",
78
+ kind: "osc"
79
+ },
80
+ {
81
+ label: "sqr",
82
+ insertText: "sqr(440Hz)",
83
+ detail: "Oscylator prostokątny 50% (brzmienie retro / 8-bit)",
84
+ kind: "osc"
85
+ },
86
+ {
87
+ label: "pulse",
88
+ insertText: "pulse(440Hz, duty:0.25)",
89
+ detail: "Oscylator impulsowy PWM z regulowanym wypełnieniem duty",
90
+ kind: "osc"
91
+ },
92
+ {
93
+ label: "noise",
94
+ insertText: "noise()",
95
+ detail: "Deterministyczny szum biały (xorshift32 PRNG)",
96
+ kind: "osc"
97
+ },
98
+ {
99
+ label: "pink",
100
+ insertText: "pink()",
101
+ detail: "Szum różowy (-3 dB/oktawę, filtr Kelleta)",
102
+ kind: "osc"
103
+ },
104
+ {
105
+ label: "brown",
106
+ insertText: "brown()",
107
+ detail: "Szum brązowy / czerwony (-6 dB/oktawę, całkowany proces Wienera)",
108
+ kind: "osc"
109
+ },
110
+ {
111
+ label: "glide",
112
+ insertText: "glide(240Hz, 720Hz, easeOutCubic, 65ms)",
113
+ detail: "Ciągłe fazowo glissando częstotliwości f0 -> f1",
114
+ kind: "mod"
115
+ },
116
+ {
117
+ label: "expDecay",
118
+ insertText: "expDecay(120ms)",
119
+ detail: "Wykładnicza obwiednia zaniku amplitudy e^(-t/tau)",
120
+ kind: "env"
121
+ },
122
+ {
123
+ label: "adsr",
124
+ insertText: "adsr(2ms, 20ms, 0.5, 60ms)",
125
+ detail: "4-etapowa obwiednia Attack-Decay-Sustain-Release",
126
+ kind: "env"
127
+ },
128
+ {
129
+ label: "perc",
130
+ insertText: "perc(2ms, 45ms)",
131
+ detail: "Perkusyjna obwiednia uderzeniowa (Attack + Decay)",
132
+ kind: "env"
133
+ },
134
+ {
135
+ label: "hanning",
136
+ insertText: "hanning(80ms)",
137
+ detail: "Symetryczne okno dzwonowe Hanninga 0.5*(1 - cos(2*pi*t/T))",
138
+ kind: "env"
139
+ },
140
+ {
141
+ label: "lpf",
142
+ insertText: "lpf(1800Hz, q:1.2)",
143
+ detail: "Filtr dolnoprzepustowy Chamberlin SVF 12 dB/oct",
144
+ kind: "filter"
145
+ },
146
+ {
147
+ label: "hpf",
148
+ insertText: "hpf(800Hz, q:0.9)",
149
+ detail: "Filtr górnoprzepustowy Chamberlin SVF",
150
+ kind: "filter"
151
+ },
152
+ {
153
+ label: "bpf",
154
+ insertText: "bpf(1400Hz, q:2.4)",
155
+ detail: "Filtr środkowoprzepustowy (rezonansowy) Chamberlin SVF",
156
+ kind: "filter"
157
+ },
158
+ {
159
+ label: "notch",
160
+ insertText: "notch(1200Hz, q:2.2)",
161
+ detail: "Filtr pasmowozaporowy (Band-Stop / wycięcie rezonansu)",
162
+ kind: "filter"
163
+ },
164
+ {
165
+ label: "allpass",
166
+ insertText: "allpass(900Hz, q:1.8)",
167
+ detail: "Filtr wszechprzepustowy (dyspersja fazowa / sprężyna)",
168
+ kind: "filter"
169
+ },
170
+ {
171
+ label: "cheby",
172
+ insertText: "cheby(1600Hz, ripple:1.8)",
173
+ detail: "4-biegunowy filtr Czebyszewa Typu I (24 dB/oct + passband ripple)",
174
+ kind: "filter"
175
+ },
176
+ {
177
+ label: "chebyWave",
178
+ insertText: "chebyWave(order:3, mix:0.55)",
179
+ detail: "Nieliniowy generator harmonicznych wielomianami Czebyszewa T_n(x)",
180
+ kind: "mod"
181
+ },
182
+ {
183
+ label: "comb",
184
+ insertText: "comb(2.8ms, fb:0.78)",
185
+ detail: "Filtr grzebieniowy Karplusa-Stronga (struna / metalowa rurka)",
186
+ kind: "filter"
187
+ },
188
+ {
189
+ label: "seq",
190
+ insertText: "seq(0ms: sin(523.25Hz) * expDecay(90ms), 70ms: sin(659.25Hz) * expDecay(140ms))",
191
+ detail: "Sekwencer wielotaktowy z przesunięciami czasowymi",
192
+ kind: "seq"
193
+ },
194
+ {
195
+ label: "easeOutCubic",
196
+ insertText: "easeOutCubic",
197
+ detail: "Krzywa wygaszania 1 - (1 - t)^3 dla glide()",
198
+ kind: "curve"
199
+ },
200
+ {
201
+ label: "easeInQuad",
202
+ insertText: "easeInQuad",
203
+ detail: "Krzywa przyspieszania t^2 dla glide()",
204
+ kind: "curve"
205
+ },
206
+ {
207
+ label: "easeInOutSine",
208
+ insertText: "easeInOutSine",
209
+ detail: "Gładka krzywa sinusoidalna S-curve dla glide()",
210
+ kind: "curve"
211
+ },
212
+ {
213
+ label: "detune",
214
+ insertText: "detune:+5ct",
215
+ detail: "Odstrojenie mikrotonalne w centach (100ct = półton)",
216
+ kind: "param"
217
+ },
218
+ {
219
+ label: "duty",
220
+ insertText: "duty:0.25",
221
+ detail: "Współczynnik wypełnienia fali impulsowej (0.05..0.95)",
222
+ kind: "param"
223
+ }
224
+ ], v = {
225
+ id: "nanosound",
226
+ name: "NanoSound DSL",
227
+ aliases: [
228
+ "nanosound",
229
+ "nsd",
230
+ "sound"
231
+ ],
232
+ grammar: g
233
+ }, y = [
234
+ e,
235
+ t,
236
+ n,
237
+ i,
238
+ a,
239
+ o,
240
+ s,
241
+ m,
242
+ h,
243
+ v
244
+ ], b = [
245
+ c,
246
+ l,
247
+ u,
248
+ d,
249
+ f,
250
+ p
251
+ ], x = [...y, ...b], S = {
252
+ javascript: e,
253
+ js: e,
254
+ typescript: t,
255
+ ts: t,
256
+ vue: n,
257
+ html: r,
258
+ xml: n,
259
+ css: i,
260
+ json: a,
261
+ bash: o,
262
+ sh: o,
263
+ markdown: s,
264
+ md: s,
265
+ rust: c,
266
+ rs: c,
267
+ python: l,
268
+ py: l,
269
+ sql: u,
270
+ yaml: d,
271
+ yml: d,
272
+ go: f,
273
+ dockerfile: p,
274
+ docker: p,
275
+ diff: m,
276
+ api: h,
277
+ nanosound: v,
278
+ nsd: v,
279
+ sound: v
280
+ };
281
+ //#endregion
282
+ export { _ as a, S as i, y as n, v as o, b as r, x as t };