@scalar/components 0.16.1 → 0.16.3
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/dist/components/ScalarIcon/logos/Astro.svg.js +14 -0
- package/dist/components/ScalarIcon/logos/index.d.ts +1 -1
- package/dist/components/ScalarIcon/logos/index.d.ts.map +1 -1
- package/dist/components/ScalarIcon/utils/index.js +66 -64
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.d.ts +2 -2
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.js +21 -19
- package/dist/components/ScalarMarkdown/types.d.ts +10 -0
- package/dist/components/ScalarMarkdown/types.d.ts.map +1 -1
- package/package.json +3 -7
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElementBlock as e, openBlock as o } from "vue";
|
|
2
|
+
const t = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 24 24"
|
|
6
|
+
};
|
|
7
|
+
function n(r, c) {
|
|
8
|
+
return o(), e("svg", t);
|
|
9
|
+
}
|
|
10
|
+
const l = { render: n };
|
|
11
|
+
export {
|
|
12
|
+
l as default,
|
|
13
|
+
n as render
|
|
14
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LOGOS: readonly ["Adonisjs", "Docusaurus", "Dotnet", "Elysiajs", "Express", "Fastapi", "Fastify", "Go", "Hono", "Laravel", "Litestar", "Nestjs", "Nextjs", "Nitro", "Nuxt", "Openapi", "Platformatic", "React", "Rust", "Svelte", "Vue"];
|
|
1
|
+
export declare const LOGOS: readonly ["Adonisjs", "Astro", "Docusaurus", "Dotnet", "Elysiajs", "Express", "Fastapi", "Fastify", "Go", "Hono", "Laravel", "Litestar", "Nestjs", "Nextjs", "Nitro", "Nuxt", "Openapi", "Platformatic", "React", "Rust", "Svelte", "Vue"];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScalarIcon/logos/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScalarIcon/logos/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,4OAuBR,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as a from "../icons/Add.svg.js";
|
|
2
2
|
import * as m from "../icons/AddTab.svg.js";
|
|
3
3
|
import * as i from "../icons/Alert.svg.js";
|
|
4
4
|
import * as n from "../icons/ArrowLeft.svg.js";
|
|
@@ -20,9 +20,9 @@ import * as b from "../icons/CodeFolder.svg.js";
|
|
|
20
20
|
import * as j from "../icons/Cog.svg.js";
|
|
21
21
|
import * as D from "../icons/Collection.svg.js";
|
|
22
22
|
import * as S from "../icons/Cookie.svg.js";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
23
|
+
import * as A from "../icons/DarkMode.svg.js";
|
|
24
|
+
import * as F from "../icons/Delete.svg.js";
|
|
25
|
+
import * as y from "../icons/Discord.svg.js";
|
|
26
26
|
import * as E from "../icons/DocsPage.svg.js";
|
|
27
27
|
import * as H from "../icons/Download.svg.js";
|
|
28
28
|
import * as R from "../icons/Duplicate.svg.js";
|
|
@@ -51,8 +51,8 @@ import * as _ from "../icons/LightMode.svg.js";
|
|
|
51
51
|
import * as oo from "../icons/Link.svg.js";
|
|
52
52
|
import * as ro from "../icons/Lock.svg.js";
|
|
53
53
|
import * as so from "../icons/Logo.svg.js";
|
|
54
|
-
import * as
|
|
55
|
-
import * as
|
|
54
|
+
import * as go from "../icons/Magic.svg.js";
|
|
55
|
+
import * as ao from "../icons/Markdown.svg.js";
|
|
56
56
|
import * as mo from "../icons/Menu.svg.js";
|
|
57
57
|
import * as io from "../icons/NotAllowed.svg.js";
|
|
58
58
|
import * as no from "../icons/Page.svg.js";
|
|
@@ -73,9 +73,9 @@ import * as bo from "../icons/Unwatch.svg.js";
|
|
|
73
73
|
import * as jo from "../icons/Upload.svg.js";
|
|
74
74
|
import * as Do from "../icons/User.svg.js";
|
|
75
75
|
import * as So from "../icons/UserSwitch.svg.js";
|
|
76
|
-
import * as
|
|
77
|
-
import * as
|
|
78
|
-
import * as
|
|
76
|
+
import * as Ao from "../icons/Users.svg.js";
|
|
77
|
+
import * as Fo from "../icons/Versions.svg.js";
|
|
78
|
+
import * as yo from "../icons/Wallet.svg.js";
|
|
79
79
|
import * as Eo from "../icons/Watch.svg.js";
|
|
80
80
|
import * as Ho from "../icons/Workspace.svg.js";
|
|
81
81
|
import * as Ro from "../icons/programming-framework-angular.svg.js";
|
|
@@ -104,8 +104,8 @@ import * as _o from "../icons/programming-language-php.svg.js";
|
|
|
104
104
|
import * as or from "../icons/programming-language-powershell.svg.js";
|
|
105
105
|
import * as rr from "../icons/programming-language-python.svg.js";
|
|
106
106
|
import * as sr from "../icons/programming-language-r.svg.js";
|
|
107
|
-
import * as
|
|
108
|
-
import * as
|
|
107
|
+
import * as gr from "../icons/programming-language-ruby.svg.js";
|
|
108
|
+
import * as ar from "../icons/programming-language-rust.svg.js";
|
|
109
109
|
import * as mr from "../icons/programming-language-scala.svg.js";
|
|
110
110
|
import * as ir from "../icons/programming-language-shell.svg.js";
|
|
111
111
|
import * as nr from "../icons/programming-language-swift.svg.js";
|
|
@@ -114,28 +114,29 @@ import * as pr from "../icons/programming-script-code.svg.js";
|
|
|
114
114
|
import * as er from "../icons/programming-tool-git.svg.js";
|
|
115
115
|
import * as cr from "../icons/programming-tool-tailwindcss.svg.js";
|
|
116
116
|
import * as lr from "../logos/Adonisjs.svg.js";
|
|
117
|
-
import * as fr from "../logos/
|
|
118
|
-
import * as vr from "../logos/
|
|
119
|
-
import * as ur from "../logos/
|
|
120
|
-
import * as dr from "../logos/
|
|
121
|
-
import * as Lr from "../logos/
|
|
122
|
-
import * as hr from "../logos/
|
|
123
|
-
import * as wr from "../logos/
|
|
124
|
-
import * as kr from "../logos/
|
|
125
|
-
import * as Cr from "../logos/
|
|
126
|
-
import * as br from "../logos/
|
|
127
|
-
import * as jr from "../logos/
|
|
128
|
-
import * as Dr from "../logos/
|
|
129
|
-
import * as Sr from "../logos/
|
|
117
|
+
import * as fr from "../logos/Astro.svg.js";
|
|
118
|
+
import * as vr from "../logos/Docusaurus.svg.js";
|
|
119
|
+
import * as ur from "../logos/Dotnet.svg.js";
|
|
120
|
+
import * as dr from "../logos/Elysiajs.svg.js";
|
|
121
|
+
import * as Lr from "../logos/Express.svg.js";
|
|
122
|
+
import * as hr from "../logos/Fastapi.svg.js";
|
|
123
|
+
import * as wr from "../logos/Fastify.svg.js";
|
|
124
|
+
import * as kr from "../logos/Go.svg.js";
|
|
125
|
+
import * as Cr from "../logos/Hono.svg.js";
|
|
126
|
+
import * as br from "../logos/Laravel.svg.js";
|
|
127
|
+
import * as jr from "../logos/Litestar.svg.js";
|
|
128
|
+
import * as Dr from "../logos/Nestjs.svg.js";
|
|
129
|
+
import * as Sr from "../logos/Nextjs.svg.js";
|
|
130
|
+
import * as Ar from "../logos/Nitro.svg.js";
|
|
130
131
|
import * as Fr from "../logos/Nuxt.svg.js";
|
|
131
132
|
import * as yr from "../logos/Openapi.svg.js";
|
|
132
|
-
import * as
|
|
133
|
-
import * as
|
|
134
|
-
import * as
|
|
135
|
-
import * as
|
|
136
|
-
import * as
|
|
133
|
+
import * as Er from "../logos/Platformatic.svg.js";
|
|
134
|
+
import * as Hr from "../logos/React.svg.js";
|
|
135
|
+
import * as Rr from "../logos/Rust.svg.js";
|
|
136
|
+
import * as Tr from "../logos/Svelte.svg.js";
|
|
137
|
+
import * as Ur from "../logos/Vue.svg.js";
|
|
137
138
|
const s = /* @__PURE__ */ Object.assign({
|
|
138
|
-
"../icons/Add.svg":
|
|
139
|
+
"../icons/Add.svg": a,
|
|
139
140
|
"../icons/AddTab.svg": m,
|
|
140
141
|
"../icons/Alert.svg": i,
|
|
141
142
|
"../icons/ArrowLeft.svg": n,
|
|
@@ -157,9 +158,9 @@ const s = /* @__PURE__ */ Object.assign({
|
|
|
157
158
|
"../icons/Cog.svg": j,
|
|
158
159
|
"../icons/Collection.svg": D,
|
|
159
160
|
"../icons/Cookie.svg": S,
|
|
160
|
-
"../icons/DarkMode.svg":
|
|
161
|
-
"../icons/Delete.svg":
|
|
162
|
-
"../icons/Discord.svg":
|
|
161
|
+
"../icons/DarkMode.svg": A,
|
|
162
|
+
"../icons/Delete.svg": F,
|
|
163
|
+
"../icons/Discord.svg": y,
|
|
163
164
|
"../icons/DocsPage.svg": E,
|
|
164
165
|
"../icons/Download.svg": H,
|
|
165
166
|
"../icons/Duplicate.svg": R,
|
|
@@ -188,8 +189,8 @@ const s = /* @__PURE__ */ Object.assign({
|
|
|
188
189
|
"../icons/Link.svg": oo,
|
|
189
190
|
"../icons/Lock.svg": ro,
|
|
190
191
|
"../icons/Logo.svg": so,
|
|
191
|
-
"../icons/Magic.svg":
|
|
192
|
-
"../icons/Markdown.svg":
|
|
192
|
+
"../icons/Magic.svg": go,
|
|
193
|
+
"../icons/Markdown.svg": ao,
|
|
193
194
|
"../icons/Menu.svg": mo,
|
|
194
195
|
"../icons/NotAllowed.svg": io,
|
|
195
196
|
"../icons/Page.svg": no,
|
|
@@ -210,9 +211,9 @@ const s = /* @__PURE__ */ Object.assign({
|
|
|
210
211
|
"../icons/Upload.svg": jo,
|
|
211
212
|
"../icons/User.svg": Do,
|
|
212
213
|
"../icons/UserSwitch.svg": So,
|
|
213
|
-
"../icons/Users.svg":
|
|
214
|
-
"../icons/Versions.svg":
|
|
215
|
-
"../icons/Wallet.svg":
|
|
214
|
+
"../icons/Users.svg": Ao,
|
|
215
|
+
"../icons/Versions.svg": Fo,
|
|
216
|
+
"../icons/Wallet.svg": yo,
|
|
216
217
|
"../icons/Watch.svg": Eo,
|
|
217
218
|
"../icons/Workspace.svg": Ho,
|
|
218
219
|
"../icons/programming-framework-angular.svg": Ro,
|
|
@@ -241,8 +242,8 @@ const s = /* @__PURE__ */ Object.assign({
|
|
|
241
242
|
"../icons/programming-language-powershell.svg": or,
|
|
242
243
|
"../icons/programming-language-python.svg": rr,
|
|
243
244
|
"../icons/programming-language-r.svg": sr,
|
|
244
|
-
"../icons/programming-language-ruby.svg":
|
|
245
|
-
"../icons/programming-language-rust.svg":
|
|
245
|
+
"../icons/programming-language-ruby.svg": gr,
|
|
246
|
+
"../icons/programming-language-rust.svg": ar,
|
|
246
247
|
"../icons/programming-language-scala.svg": mr,
|
|
247
248
|
"../icons/programming-language-shell.svg": ir,
|
|
248
249
|
"../icons/programming-language-swift.svg": nr,
|
|
@@ -250,36 +251,37 @@ const s = /* @__PURE__ */ Object.assign({
|
|
|
250
251
|
"../icons/programming-script-code.svg": pr,
|
|
251
252
|
"../icons/programming-tool-git.svg": er,
|
|
252
253
|
"../icons/programming-tool-tailwindcss.svg": cr
|
|
253
|
-
}),
|
|
254
|
+
}), g = /* @__PURE__ */ Object.assign({
|
|
254
255
|
"../logos/Adonisjs.svg": lr,
|
|
255
|
-
"../logos/
|
|
256
|
-
"../logos/
|
|
257
|
-
"../logos/
|
|
258
|
-
"../logos/
|
|
259
|
-
"../logos/
|
|
260
|
-
"../logos/
|
|
261
|
-
"../logos/
|
|
262
|
-
"../logos/
|
|
263
|
-
"../logos/
|
|
264
|
-
"../logos/
|
|
265
|
-
"../logos/
|
|
266
|
-
"../logos/
|
|
267
|
-
"../logos/
|
|
256
|
+
"../logos/Astro.svg": fr,
|
|
257
|
+
"../logos/Docusaurus.svg": vr,
|
|
258
|
+
"../logos/Dotnet.svg": ur,
|
|
259
|
+
"../logos/Elysiajs.svg": dr,
|
|
260
|
+
"../logos/Express.svg": Lr,
|
|
261
|
+
"../logos/Fastapi.svg": hr,
|
|
262
|
+
"../logos/Fastify.svg": wr,
|
|
263
|
+
"../logos/Go.svg": kr,
|
|
264
|
+
"../logos/Hono.svg": Cr,
|
|
265
|
+
"../logos/Laravel.svg": br,
|
|
266
|
+
"../logos/Litestar.svg": jr,
|
|
267
|
+
"../logos/Nestjs.svg": Dr,
|
|
268
|
+
"../logos/Nextjs.svg": Sr,
|
|
269
|
+
"../logos/Nitro.svg": Ar,
|
|
268
270
|
"../logos/Nuxt.svg": Fr,
|
|
269
271
|
"../logos/Openapi.svg": yr,
|
|
270
|
-
"../logos/Platformatic.svg":
|
|
271
|
-
"../logos/React.svg":
|
|
272
|
-
"../logos/Rust.svg":
|
|
273
|
-
"../logos/Svelte.svg":
|
|
274
|
-
"../logos/Vue.svg":
|
|
275
|
-
}),
|
|
272
|
+
"../logos/Platformatic.svg": Er,
|
|
273
|
+
"../logos/React.svg": Hr,
|
|
274
|
+
"../logos/Rust.svg": Rr,
|
|
275
|
+
"../logos/Svelte.svg": Tr,
|
|
276
|
+
"../logos/Vue.svg": Ur
|
|
277
|
+
}), xr = (o) => {
|
|
276
278
|
const r = `../icons/${o}.svg`;
|
|
277
279
|
return s[r] ? s[r] : (console.warn(`Could not find icon: ${o}`), null);
|
|
278
|
-
},
|
|
280
|
+
}, Pr = (o) => {
|
|
279
281
|
const r = `../logos/${o}.svg`;
|
|
280
|
-
return
|
|
282
|
+
return g[r] ? g[r] : (console.warn(`Could not find icon: ${o}`), null);
|
|
281
283
|
};
|
|
282
284
|
export {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
+
xr as getIcon,
|
|
286
|
+
Pr as getLogo
|
|
285
287
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type __VLS_Props =
|
|
1
|
+
import type { ScalarMarkdownSummaryProps } from './types';
|
|
2
|
+
type __VLS_Props = ScalarMarkdownSummaryProps;
|
|
3
3
|
type __VLS_PublicProps = __VLS_Props & {
|
|
4
4
|
/** * Whether the summary is open. */
|
|
5
5
|
modelValue?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMarkdownSummary.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdownSummary.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ScalarMarkdownSummary.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdownSummary.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEzD,KAAK,WAAW,GAAG,0BAA0B,CAAC;AAmC9C,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA+DF,QAAA,IAAuB,OAAO;;CAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA0B9C,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as p, mergeModels as f, createPropsRestProxy as v, useId as h, useModel as y, useTemplateRef as w, ref as k, onMounted as
|
|
1
|
+
import { defineComponent as p, mergeModels as f, createPropsRestProxy as v, useId as h, useModel as y, useTemplateRef as w, ref as k, onMounted as g, createElementBlock as u, openBlock as c, normalizeProps as x, guardReactiveProps as B, unref as a, createVNode as M, createCommentVNode as P, mergeProps as V, normalizeClass as b, renderSlot as C, createTextVNode as S, toDisplayString as T } from "vue";
|
|
2
2
|
import { useBindCx as R } from "@scalar/use-hooks/useBindCx";
|
|
3
|
-
import { useResizeObserver as
|
|
4
|
-
import
|
|
3
|
+
import { useResizeObserver as z } from "@vueuse/core";
|
|
4
|
+
import N from "./ScalarMarkdown.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
const
|
|
6
|
+
const _ = ["aria-controls", "aria-expanded"], E = /* @__PURE__ */ p({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "ScalarMarkdownSummary",
|
|
9
9
|
props: /* @__PURE__ */ f({
|
|
@@ -13,44 +13,46 @@ const N = ["aria-controls", "aria-expanded"], E = /* @__PURE__ */ p({
|
|
|
13
13
|
transform: { type: Function },
|
|
14
14
|
transformType: {},
|
|
15
15
|
clamp: { default: 1 },
|
|
16
|
-
anchorPrefix: {}
|
|
16
|
+
anchorPrefix: {},
|
|
17
|
+
controlled: { type: Boolean }
|
|
17
18
|
}, {
|
|
18
19
|
modelValue: { type: Boolean, default: !1 },
|
|
19
20
|
modelModifiers: {}
|
|
20
21
|
}),
|
|
21
22
|
emits: ["update:modelValue"],
|
|
22
23
|
setup(r) {
|
|
23
|
-
const
|
|
24
|
-
|
|
24
|
+
const m = v(r, ["clamp"]), l = h(), e = y(r, "modelValue"), t = w("scalar-markdown"), n = k(!1);
|
|
25
|
+
z(() => t.value?.el, s);
|
|
25
26
|
function s() {
|
|
26
|
-
const o =
|
|
27
|
+
const o = t.value?.el;
|
|
27
28
|
o && (n.value = o.scrollHeight > o.clientHeight || o.scrollWidth > o.clientWidth);
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
g(s);
|
|
30
31
|
const { cx: d } = R();
|
|
31
|
-
return (o, i) => (
|
|
32
|
+
return (o, i) => (c(), u("div", x(B(
|
|
32
33
|
a(d)(
|
|
33
34
|
"group/summary flex gap-0.5",
|
|
34
35
|
e.value ? "flex-col" : "flex-row items-baseline"
|
|
35
36
|
)
|
|
36
37
|
)), [
|
|
37
|
-
M(
|
|
38
|
-
id: a(
|
|
39
|
-
|
|
40
|
-
clamp: e.value ? void 0 : o.clamp
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
M(N, V(m, {
|
|
39
|
+
id: a(l),
|
|
40
|
+
ref: "scalar-markdown",
|
|
41
|
+
clamp: e.value ? void 0 : o.clamp,
|
|
42
|
+
class: { "markdown-summary truncate": !e.value }
|
|
43
|
+
}), null, 16, ["id", "clamp", "class"]),
|
|
44
|
+
!o.controlled && (n.value || e.value) ? (c(), u("button", {
|
|
43
45
|
key: 0,
|
|
46
|
+
"aria-controls": a(l),
|
|
47
|
+
"aria-expanded": e.value,
|
|
44
48
|
class: b(["whitespace-nowrap font-medium hover:underline", { "self-end": e.value }]),
|
|
45
49
|
type: "button",
|
|
46
|
-
"aria-controls": a(t),
|
|
47
|
-
"aria-expanded": e.value,
|
|
48
50
|
onClick: i[0] || (i[0] = ($) => e.value = !e.value)
|
|
49
51
|
}, [
|
|
50
52
|
C(o.$slots, "button", { open: e.value }, () => [
|
|
51
53
|
S(T(e.value ? " Show Less" : "More"), 1)
|
|
52
54
|
])
|
|
53
|
-
], 10,
|
|
55
|
+
], 10, _)) : P("", !0)
|
|
54
56
|
], 16));
|
|
55
57
|
}
|
|
56
58
|
});
|
|
@@ -36,4 +36,14 @@ export type ScalarMarkdownProps = {
|
|
|
36
36
|
*/
|
|
37
37
|
anchorPrefix?: string;
|
|
38
38
|
};
|
|
39
|
+
export type ScalarMarkdownSummaryProps = ScalarMarkdownProps & {
|
|
40
|
+
/**
|
|
41
|
+
* Allows the summary's open and closed state to
|
|
42
|
+
* be controlled by the parent component and hides
|
|
43
|
+
* the "More" and "Less" buttons.
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
controlled?: boolean;
|
|
48
|
+
};
|
|
39
49
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/components"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.16.
|
|
13
|
+
"version": "0.16.3",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"vue": "^3.5.21",
|
|
41
41
|
"vue-component-type-helpers": "^3.0.4",
|
|
42
42
|
"@scalar/code-highlight": "0.2.0",
|
|
43
|
-
"@scalar/
|
|
43
|
+
"@scalar/helpers": "0.1.1",
|
|
44
|
+
"@scalar/oas-utils": "0.6.3",
|
|
44
45
|
"@scalar/icons": "0.5.0",
|
|
45
|
-
"@scalar/helpers": "0.0.13",
|
|
46
46
|
"@scalar/themes": "0.13.23",
|
|
47
47
|
"@scalar/use-hooks": "0.3.0",
|
|
48
48
|
"@scalar/use-toasts": "0.9.0"
|
|
@@ -83,14 +83,10 @@
|
|
|
83
83
|
"lint:check": "eslint . && pnpm lint:icons",
|
|
84
84
|
"lint:fix": "eslint . --fix",
|
|
85
85
|
"lint:icons": "svglint src/components/ScalarIcon/icons/*.svg --config src/components/ScalarIcon/.svglintrc.js",
|
|
86
|
-
"playwright:cleanup-docker": "docker rm -f scalar-playwright 2>/dev/null || true",
|
|
87
86
|
"preview": "vite preview --outDir storybook-static -c test/vite.config.ts 1>&2",
|
|
88
87
|
"test": "vitest",
|
|
89
88
|
"test:e2e": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test",
|
|
90
89
|
"test:e2e:ci": "CI=1 playwright test",
|
|
91
|
-
"test:e2e:playwright": "pnpm playwright:cleanup-docker && docker run --network=host -e PORT=5001 --rm --tty --name scalar-playwright scalarapi/playwright:1.56.0",
|
|
92
|
-
"test:e2e:report": "playwright show-report",
|
|
93
|
-
"test:e2e:ui": "pnpm test:e2e --ui",
|
|
94
90
|
"test:e2e:update": "pnpm test:e2e --update-snapshots",
|
|
95
91
|
"typegen:icons": "vite-node ./src/scripts/typegen.ts",
|
|
96
92
|
"types:build": "scalar-types-build-vue",
|