@scalar/components 0.4.3 → 0.4.5
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.
- package/LICENSE +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.js +246 -605
- package/dist/prism-autoloader-Dlh8Vzlw.js +370 -0
- package/dist/prism-autoloader-hGN9n4IP.cjs +1 -0
- package/package.json +7 -11
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
if (typeof Prism > "u" || typeof document > "u")
|
|
3
|
+
return;
|
|
4
|
+
var j = (
|
|
5
|
+
/*dependencies_placeholder[*/
|
|
6
|
+
{
|
|
7
|
+
javascript: "clike",
|
|
8
|
+
actionscript: "javascript",
|
|
9
|
+
apex: [
|
|
10
|
+
"clike",
|
|
11
|
+
"sql"
|
|
12
|
+
],
|
|
13
|
+
arduino: "cpp",
|
|
14
|
+
aspnet: [
|
|
15
|
+
"markup",
|
|
16
|
+
"csharp"
|
|
17
|
+
],
|
|
18
|
+
birb: "clike",
|
|
19
|
+
bison: "c",
|
|
20
|
+
c: "clike",
|
|
21
|
+
csharp: "clike",
|
|
22
|
+
cpp: "c",
|
|
23
|
+
cfscript: "clike",
|
|
24
|
+
chaiscript: [
|
|
25
|
+
"clike",
|
|
26
|
+
"cpp"
|
|
27
|
+
],
|
|
28
|
+
cilkc: "c",
|
|
29
|
+
cilkcpp: "cpp",
|
|
30
|
+
coffeescript: "javascript",
|
|
31
|
+
crystal: "ruby",
|
|
32
|
+
"css-extras": "css",
|
|
33
|
+
d: "clike",
|
|
34
|
+
dart: "clike",
|
|
35
|
+
django: "markup-templating",
|
|
36
|
+
ejs: [
|
|
37
|
+
"javascript",
|
|
38
|
+
"markup-templating"
|
|
39
|
+
],
|
|
40
|
+
etlua: [
|
|
41
|
+
"lua",
|
|
42
|
+
"markup-templating"
|
|
43
|
+
],
|
|
44
|
+
erb: [
|
|
45
|
+
"ruby",
|
|
46
|
+
"markup-templating"
|
|
47
|
+
],
|
|
48
|
+
fsharp: "clike",
|
|
49
|
+
"firestore-security-rules": "clike",
|
|
50
|
+
flow: "javascript",
|
|
51
|
+
ftl: "markup-templating",
|
|
52
|
+
gml: "clike",
|
|
53
|
+
glsl: "c",
|
|
54
|
+
go: "clike",
|
|
55
|
+
gradle: "clike",
|
|
56
|
+
groovy: "clike",
|
|
57
|
+
haml: "ruby",
|
|
58
|
+
handlebars: "markup-templating",
|
|
59
|
+
haxe: "clike",
|
|
60
|
+
hlsl: "c",
|
|
61
|
+
idris: "haskell",
|
|
62
|
+
java: "clike",
|
|
63
|
+
javadoc: [
|
|
64
|
+
"markup",
|
|
65
|
+
"java",
|
|
66
|
+
"javadoclike"
|
|
67
|
+
],
|
|
68
|
+
jolie: "clike",
|
|
69
|
+
jsdoc: [
|
|
70
|
+
"javascript",
|
|
71
|
+
"javadoclike",
|
|
72
|
+
"typescript"
|
|
73
|
+
],
|
|
74
|
+
"js-extras": "javascript",
|
|
75
|
+
json5: "json",
|
|
76
|
+
jsonp: "json",
|
|
77
|
+
"js-templates": "javascript",
|
|
78
|
+
kotlin: "clike",
|
|
79
|
+
latte: [
|
|
80
|
+
"clike",
|
|
81
|
+
"markup-templating",
|
|
82
|
+
"php"
|
|
83
|
+
],
|
|
84
|
+
less: "css",
|
|
85
|
+
lilypond: "scheme",
|
|
86
|
+
liquid: "markup-templating",
|
|
87
|
+
markdown: "markup",
|
|
88
|
+
"markup-templating": "markup",
|
|
89
|
+
mongodb: "javascript",
|
|
90
|
+
n4js: "javascript",
|
|
91
|
+
objectivec: "c",
|
|
92
|
+
opencl: "c",
|
|
93
|
+
parser: "markup",
|
|
94
|
+
php: "markup-templating",
|
|
95
|
+
phpdoc: [
|
|
96
|
+
"php",
|
|
97
|
+
"javadoclike"
|
|
98
|
+
],
|
|
99
|
+
"php-extras": "php",
|
|
100
|
+
plsql: "sql",
|
|
101
|
+
processing: "clike",
|
|
102
|
+
protobuf: "clike",
|
|
103
|
+
pug: [
|
|
104
|
+
"markup",
|
|
105
|
+
"javascript"
|
|
106
|
+
],
|
|
107
|
+
purebasic: "clike",
|
|
108
|
+
purescript: "haskell",
|
|
109
|
+
qsharp: "clike",
|
|
110
|
+
qml: "javascript",
|
|
111
|
+
qore: "clike",
|
|
112
|
+
racket: "scheme",
|
|
113
|
+
cshtml: [
|
|
114
|
+
"markup",
|
|
115
|
+
"csharp"
|
|
116
|
+
],
|
|
117
|
+
jsx: [
|
|
118
|
+
"markup",
|
|
119
|
+
"javascript"
|
|
120
|
+
],
|
|
121
|
+
tsx: [
|
|
122
|
+
"jsx",
|
|
123
|
+
"typescript"
|
|
124
|
+
],
|
|
125
|
+
reason: "clike",
|
|
126
|
+
ruby: "clike",
|
|
127
|
+
sass: "css",
|
|
128
|
+
scss: "css",
|
|
129
|
+
scala: "java",
|
|
130
|
+
"shell-session": "bash",
|
|
131
|
+
smarty: "markup-templating",
|
|
132
|
+
solidity: "clike",
|
|
133
|
+
soy: "markup-templating",
|
|
134
|
+
sparql: "turtle",
|
|
135
|
+
sqf: "clike",
|
|
136
|
+
squirrel: "clike",
|
|
137
|
+
stata: [
|
|
138
|
+
"mata",
|
|
139
|
+
"java",
|
|
140
|
+
"python"
|
|
141
|
+
],
|
|
142
|
+
"t4-cs": [
|
|
143
|
+
"t4-templating",
|
|
144
|
+
"csharp"
|
|
145
|
+
],
|
|
146
|
+
"t4-vb": [
|
|
147
|
+
"t4-templating",
|
|
148
|
+
"vbnet"
|
|
149
|
+
],
|
|
150
|
+
tap: "yaml",
|
|
151
|
+
tt2: [
|
|
152
|
+
"clike",
|
|
153
|
+
"markup-templating"
|
|
154
|
+
],
|
|
155
|
+
textile: "markup",
|
|
156
|
+
twig: "markup-templating",
|
|
157
|
+
typescript: "javascript",
|
|
158
|
+
v: "clike",
|
|
159
|
+
vala: "clike",
|
|
160
|
+
vbnet: "basic",
|
|
161
|
+
velocity: "markup",
|
|
162
|
+
wiki: "markup",
|
|
163
|
+
xeora: "markup",
|
|
164
|
+
"xml-doc": "markup",
|
|
165
|
+
xquery: "markup"
|
|
166
|
+
}
|
|
167
|
+
), d = (
|
|
168
|
+
/*aliases_placeholder[*/
|
|
169
|
+
{
|
|
170
|
+
html: "markup",
|
|
171
|
+
xml: "markup",
|
|
172
|
+
svg: "markup",
|
|
173
|
+
mathml: "markup",
|
|
174
|
+
ssml: "markup",
|
|
175
|
+
atom: "markup",
|
|
176
|
+
rss: "markup",
|
|
177
|
+
js: "javascript",
|
|
178
|
+
g4: "antlr4",
|
|
179
|
+
ino: "arduino",
|
|
180
|
+
"arm-asm": "armasm",
|
|
181
|
+
art: "arturo",
|
|
182
|
+
adoc: "asciidoc",
|
|
183
|
+
avs: "avisynth",
|
|
184
|
+
avdl: "avro-idl",
|
|
185
|
+
gawk: "awk",
|
|
186
|
+
sh: "bash",
|
|
187
|
+
shell: "bash",
|
|
188
|
+
shortcode: "bbcode",
|
|
189
|
+
rbnf: "bnf",
|
|
190
|
+
oscript: "bsl",
|
|
191
|
+
cs: "csharp",
|
|
192
|
+
dotnet: "csharp",
|
|
193
|
+
cfc: "cfscript",
|
|
194
|
+
"cilk-c": "cilkc",
|
|
195
|
+
"cilk-cpp": "cilkcpp",
|
|
196
|
+
cilk: "cilkcpp",
|
|
197
|
+
coffee: "coffeescript",
|
|
198
|
+
conc: "concurnas",
|
|
199
|
+
jinja2: "django",
|
|
200
|
+
"dns-zone": "dns-zone-file",
|
|
201
|
+
dockerfile: "docker",
|
|
202
|
+
gv: "dot",
|
|
203
|
+
eta: "ejs",
|
|
204
|
+
xlsx: "excel-formula",
|
|
205
|
+
xls: "excel-formula",
|
|
206
|
+
gamemakerlanguage: "gml",
|
|
207
|
+
po: "gettext",
|
|
208
|
+
gni: "gn",
|
|
209
|
+
ld: "linker-script",
|
|
210
|
+
"go-mod": "go-module",
|
|
211
|
+
hbs: "handlebars",
|
|
212
|
+
mustache: "handlebars",
|
|
213
|
+
hs: "haskell",
|
|
214
|
+
idr: "idris",
|
|
215
|
+
gitignore: "ignore",
|
|
216
|
+
hgignore: "ignore",
|
|
217
|
+
npmignore: "ignore",
|
|
218
|
+
webmanifest: "json",
|
|
219
|
+
kt: "kotlin",
|
|
220
|
+
kts: "kotlin",
|
|
221
|
+
kum: "kumir",
|
|
222
|
+
tex: "latex",
|
|
223
|
+
context: "latex",
|
|
224
|
+
ly: "lilypond",
|
|
225
|
+
emacs: "lisp",
|
|
226
|
+
elisp: "lisp",
|
|
227
|
+
"emacs-lisp": "lisp",
|
|
228
|
+
md: "markdown",
|
|
229
|
+
moon: "moonscript",
|
|
230
|
+
n4jsd: "n4js",
|
|
231
|
+
nani: "naniscript",
|
|
232
|
+
objc: "objectivec",
|
|
233
|
+
qasm: "openqasm",
|
|
234
|
+
objectpascal: "pascal",
|
|
235
|
+
px: "pcaxis",
|
|
236
|
+
pcode: "peoplecode",
|
|
237
|
+
plantuml: "plant-uml",
|
|
238
|
+
pq: "powerquery",
|
|
239
|
+
mscript: "powerquery",
|
|
240
|
+
pbfasm: "purebasic",
|
|
241
|
+
purs: "purescript",
|
|
242
|
+
py: "python",
|
|
243
|
+
qs: "qsharp",
|
|
244
|
+
rkt: "racket",
|
|
245
|
+
razor: "cshtml",
|
|
246
|
+
rpy: "renpy",
|
|
247
|
+
res: "rescript",
|
|
248
|
+
robot: "robotframework",
|
|
249
|
+
rb: "ruby",
|
|
250
|
+
"sh-session": "shell-session",
|
|
251
|
+
shellsession: "shell-session",
|
|
252
|
+
smlnj: "sml",
|
|
253
|
+
sol: "solidity",
|
|
254
|
+
sln: "solution-file",
|
|
255
|
+
rq: "sparql",
|
|
256
|
+
sclang: "supercollider",
|
|
257
|
+
t4: "t4-cs",
|
|
258
|
+
trickle: "tremor",
|
|
259
|
+
troy: "tremor",
|
|
260
|
+
trig: "turtle",
|
|
261
|
+
ts: "typescript",
|
|
262
|
+
tsconfig: "typoscript",
|
|
263
|
+
uscript: "unrealscript",
|
|
264
|
+
uc: "unrealscript",
|
|
265
|
+
url: "uri",
|
|
266
|
+
vb: "visual-basic",
|
|
267
|
+
vba: "visual-basic",
|
|
268
|
+
webidl: "web-idl",
|
|
269
|
+
mathematica: "wolfram",
|
|
270
|
+
nb: "wolfram",
|
|
271
|
+
wl: "wolfram",
|
|
272
|
+
xeoracube: "xeora",
|
|
273
|
+
yml: "yaml"
|
|
274
|
+
}
|
|
275
|
+
), l = {}, y = "none", p = "components/", u = Prism.util.currentScript();
|
|
276
|
+
if (u) {
|
|
277
|
+
var k = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, f = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, g = u.getAttribute("data-autoloader-path");
|
|
278
|
+
if (g != null)
|
|
279
|
+
p = g.trim().replace(/\/?$/, "/");
|
|
280
|
+
else {
|
|
281
|
+
var n = u.src;
|
|
282
|
+
k.test(n) ? p = n.replace(k, "components/") : f.test(n) && (p = n.replace(f, "$1components/"));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
var h = Prism.plugins.autoloader = {
|
|
286
|
+
languages_path: p,
|
|
287
|
+
use_minified: !0,
|
|
288
|
+
loadLanguages: m
|
|
289
|
+
};
|
|
290
|
+
function x(e, a, i) {
|
|
291
|
+
var r = document.createElement("script");
|
|
292
|
+
r.src = e, r.async = !0, r.onload = function() {
|
|
293
|
+
document.body.removeChild(r), a && a();
|
|
294
|
+
}, r.onerror = function() {
|
|
295
|
+
document.body.removeChild(r), i && i();
|
|
296
|
+
}, document.body.appendChild(r);
|
|
297
|
+
}
|
|
298
|
+
function q(e) {
|
|
299
|
+
var a = (e.getAttribute("data-dependencies") || "").trim();
|
|
300
|
+
if (!a) {
|
|
301
|
+
var i = e.parentElement;
|
|
302
|
+
i && i.tagName.toLowerCase() === "pre" && (a = (i.getAttribute("data-dependencies") || "").trim());
|
|
303
|
+
}
|
|
304
|
+
return a ? a.split(/\s*,\s*/g) : [];
|
|
305
|
+
}
|
|
306
|
+
function v(e) {
|
|
307
|
+
if (e.indexOf("!") >= 0)
|
|
308
|
+
return !1;
|
|
309
|
+
if (e = d[e] || e, e in Prism.languages)
|
|
310
|
+
return !0;
|
|
311
|
+
var a = l[e];
|
|
312
|
+
return a && !a.error && a.loading === !1;
|
|
313
|
+
}
|
|
314
|
+
function w(e) {
|
|
315
|
+
return h.languages_path + "prism-" + e + (h.use_minified ? ".min" : "") + ".js";
|
|
316
|
+
}
|
|
317
|
+
function m(e, a, i) {
|
|
318
|
+
typeof e == "string" && (e = [e]);
|
|
319
|
+
var r = e.length, c = 0, s = !1;
|
|
320
|
+
if (r === 0) {
|
|
321
|
+
a && setTimeout(a, 0);
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
function t() {
|
|
325
|
+
s || (c++, c === r && a && a(e));
|
|
326
|
+
}
|
|
327
|
+
e.forEach(function(b) {
|
|
328
|
+
_(b, t, function() {
|
|
329
|
+
s || (s = !0, i && i(b));
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function _(e, a, i) {
|
|
334
|
+
var r = e.indexOf("!") >= 0;
|
|
335
|
+
e = e.replace("!", ""), e = d[e] || e;
|
|
336
|
+
function c() {
|
|
337
|
+
var t = l[e];
|
|
338
|
+
t || (t = l[e] = {
|
|
339
|
+
callbacks: []
|
|
340
|
+
}), t.callbacks.push({
|
|
341
|
+
success: a,
|
|
342
|
+
error: i
|
|
343
|
+
}), !r && v(e) ? o(e, "success") : !r && t.error ? o(e, "error") : (r || !t.loading) && (t.loading = !0, t.error = !1, x(w(e), function() {
|
|
344
|
+
t.loading = !1, o(e, "success");
|
|
345
|
+
}, function() {
|
|
346
|
+
t.loading = !1, t.error = !0, o(e, "error");
|
|
347
|
+
}));
|
|
348
|
+
}
|
|
349
|
+
var s = j[e];
|
|
350
|
+
s && s.length ? m(s, c, i) : c();
|
|
351
|
+
}
|
|
352
|
+
function o(e, a) {
|
|
353
|
+
if (l[e]) {
|
|
354
|
+
for (var i = l[e].callbacks, r = 0, c = i.length; r < c; r++) {
|
|
355
|
+
var s = i[r][a];
|
|
356
|
+
s && setTimeout(s, 0);
|
|
357
|
+
}
|
|
358
|
+
i.length = 0;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
Prism.hooks.add("complete", function(e) {
|
|
362
|
+
var a = e.element, i = e.language;
|
|
363
|
+
if (!(!a || !i || i === y)) {
|
|
364
|
+
var r = q(a);
|
|
365
|
+
/^diff-./i.test(i) ? (r.push("diff"), r.push(i.substr(5))) : r.push(i), r.every(v) || m(r, function() {
|
|
366
|
+
Prism.highlightElement(a);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(function(){if(typeof Prism>"u"||typeof document>"u")return;var j={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",cfscript:"clike",chaiscript:["clike","cpp"],cilkc:"c",cilkcpp:"cpp",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",gradle:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",idris:"haskell",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",liquid:"markup-templating",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qsharp:"clike",qml:"javascript",qore:"clike",racket:"scheme",cshtml:["markup","csharp"],jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",squirrel:"clike",stata:["mata","java","python"],"t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup-templating",typescript:"javascript",v:"clike",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},d={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",ino:"arduino","arm-asm":"armasm",art:"arturo",adoc:"asciidoc",avs:"avisynth",avdl:"avro-idl",gawk:"awk",sh:"bash",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",cfc:"cfscript","cilk-c":"cilkc","cilk-cpp":"cilkcpp",cilk:"cilkcpp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",gv:"dot",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",po:"gettext",gni:"gn",ld:"linker-script","go-mod":"go-module",hbs:"handlebars",mustache:"handlebars",hs:"haskell",idr:"idris",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",kum:"kumir",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",qasm:"openqasm",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",plantuml:"plant-uml",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",qs:"qsharp",rkt:"racket",razor:"cshtml",rpy:"renpy",res:"rescript",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",sclang:"supercollider",t4:"t4-cs",trickle:"tremor",troy:"tremor",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",url:"uri",vb:"visual-basic",vba:"visual-basic",webidl:"web-idl",mathematica:"wolfram",nb:"wolfram",wl:"wolfram",xeoracube:"xeora",yml:"yaml"},l={},y="none",p="components/",u=Prism.util.currentScript();if(u){var k=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,f=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,g=u.getAttribute("data-autoloader-path");if(g!=null)p=g.trim().replace(/\/?$/,"/");else{var n=u.src;k.test(n)?p=n.replace(k,"components/"):f.test(n)&&(p=n.replace(f,"$1components/"))}}var h=Prism.plugins.autoloader={languages_path:p,use_minified:!0,loadLanguages:m};function x(e,a,i){var r=document.createElement("script");r.src=e,r.async=!0,r.onload=function(){document.body.removeChild(r),a&&a()},r.onerror=function(){document.body.removeChild(r),i&&i()},document.body.appendChild(r)}function q(e){var a=(e.getAttribute("data-dependencies")||"").trim();if(!a){var i=e.parentElement;i&&i.tagName.toLowerCase()==="pre"&&(a=(i.getAttribute("data-dependencies")||"").trim())}return a?a.split(/\s*,\s*/g):[]}function v(e){if(e.indexOf("!")>=0)return!1;if(e=d[e]||e,e in Prism.languages)return!0;var a=l[e];return a&&!a.error&&a.loading===!1}function w(e){return h.languages_path+"prism-"+e+(h.use_minified?".min":"")+".js"}function m(e,a,i){typeof e=="string"&&(e=[e]);var r=e.length,c=0,s=!1;if(r===0){a&&setTimeout(a,0);return}function t(){s||(c++,c===r&&a&&a(e))}e.forEach(function(b){_(b,t,function(){s||(s=!0,i&&i(b))})})}function _(e,a,i){var r=e.indexOf("!")>=0;e=e.replace("!",""),e=d[e]||e;function c(){var t=l[e];t||(t=l[e]={callbacks:[]}),t.callbacks.push({success:a,error:i}),!r&&v(e)?o(e,"success"):!r&&t.error?o(e,"error"):(r||!t.loading)&&(t.loading=!0,t.error=!1,x(w(e),function(){t.loading=!1,o(e,"success")},function(){t.loading=!1,t.error=!0,o(e,"error")}))}var s=j[e];s&&s.length?m(s,c,i):c()}function o(e,a){if(l[e]){for(var i=l[e].callbacks,r=0,c=i.length;r<c;r++){var s=i[r][a];s&&setTimeout(s,0)}i.length=0}}Prism.hooks.add("complete",function(e){var a=e.element,i=e.language;if(!(!a||!i||i===y)){var r=q(a);/^diff-./i.test(i)?(r.push("diff"),r.push(i.substr(5))):r.push(i),r.every(v)||m(r,function(){Prism.highlightElement(a)})}})})();
|
package/package.json
CHANGED
|
@@ -5,21 +5,17 @@
|
|
|
5
5
|
"author": "Scalar (https://github.com/scalar)",
|
|
6
6
|
"homepage": "https://github.com/scalar/scalar",
|
|
7
7
|
"bugs": "https://github.com/scalar/scalar/issues/new/choose",
|
|
8
|
-
"version": "0.4.
|
|
8
|
+
"version": "0.4.5",
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=18"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
|
-
"main": "./dist/index.
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"import": "./dist/index.js",
|
|
18
|
-
"require": "./dist/index.
|
|
19
|
-
},
|
|
20
|
-
"./style.css": {
|
|
21
|
-
"import": "./dist/style.css",
|
|
22
|
-
"require": "./dist/style.css"
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
21
|
"files": [
|
|
@@ -48,7 +44,7 @@
|
|
|
48
44
|
"@storybook/vue3-vite": "^7.5.2",
|
|
49
45
|
"@tsconfig/node18": "^18.2.2",
|
|
50
46
|
"@types/jsdom": "^21.1.3",
|
|
51
|
-
"@types/node": "^20.
|
|
47
|
+
"@types/node": "^20.8.4",
|
|
52
48
|
"@types/prismjs": "^1.26.3",
|
|
53
49
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
54
50
|
"@vue/test-utils": "^2.4.1",
|
|
@@ -70,7 +66,7 @@
|
|
|
70
66
|
"vitest": "^1.2.2",
|
|
71
67
|
"vue": "^3.3.0",
|
|
72
68
|
"vue-tsc": "^1.8.19",
|
|
73
|
-
"@scalar/themes": "0.6.
|
|
69
|
+
"@scalar/themes": "0.6.5"
|
|
74
70
|
},
|
|
75
71
|
"peerDependencies": {
|
|
76
72
|
"vue": "^3.3.0"
|
|
@@ -79,12 +75,12 @@
|
|
|
79
75
|
"build": "run-p types:check \"build-only {@}\" --",
|
|
80
76
|
"build-only": "vite build",
|
|
81
77
|
"build:storybook": "storybook build",
|
|
82
|
-
"dev": "storybook dev -p
|
|
78
|
+
"dev": "storybook dev -p 5100",
|
|
83
79
|
"format": "pnpm prettier --write .",
|
|
84
80
|
"format:check": "pnpm prettier --check .",
|
|
85
81
|
"lint:check": "eslint .",
|
|
86
82
|
"lint:fix": "eslint . --fix",
|
|
87
|
-
"storybook": "storybook dev -p
|
|
83
|
+
"storybook": "storybook dev -p 5100",
|
|
88
84
|
"test": "vitest",
|
|
89
85
|
"typegen:icons": "node --no-warnings --loader ts-node/esm ./src/scripts/typegen.ts",
|
|
90
86
|
"types:check": "vue-tsc --noEmit --composite false"
|