@scalar/api-reference 1.28.30 → 1.28.32
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/CHANGELOG.md +33 -0
- package/dist/blocks/constants.js +2 -4
- package/dist/browser/standalone.js +14161 -14196
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -2
- package/dist/components/ApiReference.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +17 -14
- package/dist/components/Badge/Badge.vue.js +2 -2
- package/dist/components/Card/Card.vue.js +2 -2
- package/dist/components/Card/CardContent.vue2.js +2 -2
- package/dist/components/Card/CardFooter.vue2.js +2 -2
- package/dist/components/Card/CardHeader.vue2.js +2 -2
- package/dist/components/Card/CardTab.vue2.js +2 -2
- package/dist/components/Card/CardTabHeader.vue2.js +6 -6
- package/dist/components/ClassicHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +1 -1
- package/dist/components/Content/Content.vue2.js +1 -1
- package/dist/components/Content/Introduction/Description.vue2.js +5 -5
- package/dist/components/Content/Introduction/Introduction.vue2.js +15 -15
- package/dist/components/Content/Lazy/Loading.vue.js +7 -7
- package/dist/components/Content/Models/Models.vue2.js +7 -7
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +13 -13
- package/dist/components/Content/Schema/Schema.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +9 -9
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +1 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +148 -148
- package/dist/components/Content/Tag/OperationsList.vue2.js +5 -5
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +9 -9
- package/dist/components/Content/Tag/Tag.vue.js +5 -5
- package/dist/components/Content/Tag/TagAccordion.vue2.js +4 -4
- package/dist/components/Content/Tag/TagList.vue.js +1 -1
- package/dist/components/Content/Tag/TagSection.vue2.js +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +5 -5
- package/dist/components/GettingStarted.vue2.js +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
- package/dist/components/IntersectionObserver.vue.js +2 -2
- package/dist/components/Layouts/ClassicLayout.vue.js +5 -5
- package/dist/components/Layouts/Layouts.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +5 -5
- package/dist/components/LoadingSkeleton.vue2.js +2 -2
- package/dist/components/MobileHeader.vue2.js +5 -5
- package/dist/components/OperationPath.vue2.js +4 -4
- package/dist/components/ScreenReader.vue2.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue2.js +2 -2
- package/dist/components/Section/SectionAccordion.vue2.js +1 -1
- package/dist/components/Section/SectionColumn.vue.js +2 -2
- package/dist/components/Section/SectionColumns.vue.js +2 -2
- package/dist/components/Section/SectionContainer.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +2 -2
- package/dist/components/Section/SectionContent.vue2.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue2.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/components/Sidebar/SidebarGroup.vue2.js +2 -2
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +2 -2
- package/dist/components/SingleApiReference.vue.js +5 -5
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +5 -5
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -0
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +51 -29
- package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
- package/dist/features/BaseUrl/BaseUrl.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +5 -5
- package/dist/features/ExampleRequest/ExamplePicker.vue2.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
- package/dist/features/ExampleRequest/TextSelect.vue.js +6 -6
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +23 -23
- package/dist/features/Operation/Operation.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +3 -3
- package/dist/features/Operation/components/OperationParameters.vue.js +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +1 -1
- package/dist/features/Operation/components/ParameterList.vue2.js +4 -4
- package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -17
- package/dist/features/Operation/components/RequestBody.vue2.js +5 -5
- package/dist/features/Operation/components/Webhook.vue2.js +5 -5
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +20 -20
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +3 -3
- package/dist/features/Search/SearchButton.vue2.js +4 -4
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +5 -5
- package/dist/hooks/useNavState.js +1 -1
- package/dist/hooks/useSidebar.js +13 -13
- package/dist/index.js +21 -21
- package/dist/stores/useHttpClientStore.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as h,
|
|
1
|
+
import { defineComponent as u, computed as h, createElementBlock as O, createCommentVNode as s, unref as t, openBlock as i, createBlock as g, createElementVNode as l, withCtx as k, createTextVNode as C, toDisplayString as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
|
|
2
2
|
import { useWorkspace as N } from "@scalar/api-client/store";
|
|
3
3
|
import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
|
|
4
4
|
import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
|
|
@@ -31,21 +31,21 @@ const b = ["href"], F = /* @__PURE__ */ u({
|
|
|
31
31
|
var e, o;
|
|
32
32
|
return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
|
|
33
33
|
});
|
|
34
|
-
return (e, o) => t(r) ? (
|
|
34
|
+
return (e, o) => t(r) ? (i(), O("li", {
|
|
35
35
|
key: t(n)(e.transformedOperation, e.tag),
|
|
36
36
|
class: "contents"
|
|
37
37
|
}, [
|
|
38
|
-
e.isCollapsed ? (
|
|
38
|
+
e.isCollapsed ? (i(), g(t(T), {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "sr-only",
|
|
41
41
|
level: 3
|
|
42
42
|
}, {
|
|
43
43
|
default: k(() => [
|
|
44
|
-
C(
|
|
44
|
+
C(m(f.value) + " (Hidden) ", 1)
|
|
45
45
|
]),
|
|
46
46
|
_: 1
|
|
47
|
-
})) :
|
|
48
|
-
|
|
47
|
+
})) : s("", !0),
|
|
48
|
+
l("a", {
|
|
49
49
|
class: "endpoint",
|
|
50
50
|
href: `#${t(n)(e.transformedOperation, e.tag)}`,
|
|
51
51
|
onClick: o[0] || (o[0] = v((D) => c(e.transformedOperation), ["prevent"]))
|
|
@@ -54,13 +54,13 @@ const b = ["href"], F = /* @__PURE__ */ u({
|
|
|
54
54
|
class: "endpoint-method",
|
|
55
55
|
method: t(r).method
|
|
56
56
|
}, null, 8, ["method"]),
|
|
57
|
-
|
|
57
|
+
l("span", {
|
|
58
58
|
class: B(["endpoint-path", {
|
|
59
59
|
deprecated: t(I)(t(r))
|
|
60
60
|
}])
|
|
61
|
-
},
|
|
61
|
+
}, m(t(r).path), 3)
|
|
62
62
|
], 8, b)
|
|
63
|
-
])) :
|
|
63
|
+
])) : s("", !0);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, computed as g,
|
|
1
|
+
import { defineComponent as c, computed as g, createBlock as n, openBlock as m, unref as e, withCtx as a, withDirectives as C, createVNode as t, createTextVNode as d, createCommentVNode as S, toDisplayString as v, vShow as h } from "vue";
|
|
2
2
|
import { ScalarMarkdown as w } from "@scalar/components";
|
|
3
3
|
import N from "../../ScreenReader.vue.js";
|
|
4
4
|
import { useConfig as _ } from "../../../hooks/useConfig.js";
|
|
@@ -23,7 +23,7 @@ const K = /* @__PURE__ */ c({
|
|
|
23
23
|
},
|
|
24
24
|
setup(s) {
|
|
25
25
|
const l = s, { getTagId: u } = k(), i = _(), f = g(() => l.tag["x-displayName"] ?? l.tag.name);
|
|
26
|
-
return (o, r) => (
|
|
26
|
+
return (o, r) => (m(), n(e(I), {
|
|
27
27
|
id: o.id,
|
|
28
28
|
label: o.tag.name.toUpperCase(),
|
|
29
29
|
role: "none"
|
|
@@ -40,13 +40,13 @@ const K = /* @__PURE__ */ c({
|
|
|
40
40
|
level: 2
|
|
41
41
|
}, {
|
|
42
42
|
default: a(() => [
|
|
43
|
-
d(
|
|
44
|
-
o.isCollapsed ? (
|
|
43
|
+
d(v(f.value) + " ", 1),
|
|
44
|
+
o.isCollapsed ? (m(), n(N, { key: 0 }, {
|
|
45
45
|
default: a(() => r[0] || (r[0] = [
|
|
46
46
|
d(" (Collapsed)")
|
|
47
47
|
])),
|
|
48
48
|
_: 1
|
|
49
|
-
})) :
|
|
49
|
+
})) : S("", !0)
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}, 8, ["id"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
|
|
2
2
|
import { ScalarMarkdown as m } from "@scalar/components";
|
|
3
3
|
import p from "../../Section/SectionContainerAccordion.vue.js";
|
|
4
4
|
import f from "../../Section/SectionHeader.vue.js";
|
|
@@ -12,7 +12,7 @@ const B = /* @__PURE__ */ i({
|
|
|
12
12
|
},
|
|
13
13
|
setup(S) {
|
|
14
14
|
const { getTagId: r } = _();
|
|
15
|
-
return (o, v) => (
|
|
15
|
+
return (o, v) => (c(), n(e(p), { class: "tag-section" }, {
|
|
16
16
|
title: t(() => [
|
|
17
17
|
a(e(f), { class: "tag-name" }, {
|
|
18
18
|
default: t(() => [
|
|
@@ -22,7 +22,7 @@ const B = /* @__PURE__ */ i({
|
|
|
22
22
|
default: t(() => [
|
|
23
23
|
a(e(g), { level: 2 }, {
|
|
24
24
|
default: t(() => [
|
|
25
|
-
|
|
25
|
+
d(s(o.tag.name), 1)
|
|
26
26
|
]),
|
|
27
27
|
_: 1
|
|
28
28
|
})
|
|
@@ -39,7 +39,7 @@ const B = /* @__PURE__ */ i({
|
|
|
39
39
|
}, null, 8, ["value"])
|
|
40
40
|
]),
|
|
41
41
|
default: t(() => [
|
|
42
|
-
|
|
42
|
+
l(o.$slots, "default", {}, void 0, !0)
|
|
43
43
|
]),
|
|
44
44
|
_: 3
|
|
45
45
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, computed as f,
|
|
1
|
+
import { defineComponent as S, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as i, unref as o, withCtx as l, resolveDynamicComponent as B, createVNode as v } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as T } from "@scalar/components";
|
|
3
3
|
import $ from "./TagAccordion.vue.js";
|
|
4
4
|
import b from "./TagSection.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, ref as f, useId as y, computed as u,
|
|
1
|
+
import { defineComponent as k, ref as f, useId as y, computed as u, createBlock as l, openBlock as n, unref as o, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as v, nextTick as T } from "vue";
|
|
2
2
|
import I from "../../ShowMoreButton.vue.js";
|
|
3
3
|
import w from "./Tag.vue.js";
|
|
4
4
|
import B from "../../Section/SectionContainer.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, computed as n,
|
|
1
|
+
import { defineComponent as b, computed as n, createElementBlock as f, createCommentVNode as v, openBlock as h, createVNode as i, unref as a, withCtx as x, createElementVNode as c, toDisplayString as V } from "vue";
|
|
2
2
|
import { ScalarListbox as g, ScalarIcon as d } from "@scalar/components";
|
|
3
3
|
const w = {
|
|
4
4
|
key: 0,
|
|
@@ -30,14 +30,14 @@ const w = {
|
|
|
30
30
|
get: () => r.value.find(({ id: e }) => e === String(l.modelValue)),
|
|
31
31
|
set: (e) => u("update:modelValue", Number(e.id))
|
|
32
32
|
});
|
|
33
|
-
return (e, o) => p.value ? (
|
|
33
|
+
return (e, o) => p.value ? (h(), f("div", w, [
|
|
34
34
|
i(a(g), {
|
|
35
35
|
modelValue: s.value,
|
|
36
36
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => s.value = t),
|
|
37
37
|
options: r.value,
|
|
38
38
|
resize: ""
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: x(() => {
|
|
41
41
|
var t;
|
|
42
42
|
return [
|
|
43
43
|
c("div", S, [
|
|
@@ -47,7 +47,7 @@ const w = {
|
|
|
47
47
|
size: "sm",
|
|
48
48
|
thickness: "2"
|
|
49
49
|
}),
|
|
50
|
-
c("span", k,
|
|
50
|
+
c("span", k, V(((t = s.value) == null ? void 0 : t.label) || "Select API"), 1),
|
|
51
51
|
i(a(d), {
|
|
52
52
|
class: "group-hover/dropdown-label:text-c-1 ml-auto mr-2",
|
|
53
53
|
icon: "ChevronDown",
|
|
@@ -59,7 +59,7 @@ const w = {
|
|
|
59
59
|
}),
|
|
60
60
|
_: 1
|
|
61
61
|
}, 8, ["modelValue", "options"])
|
|
62
|
-
])) :
|
|
62
|
+
])) : v("", !0);
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b,
|
|
1
|
+
import { defineComponent as b, createElementBlock as o, openBlock as d, createElementVNode as e, createStaticVNode as r, createVNode as i, unref as l, withCtx as n, createTextVNode as p, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
|
|
2
2
|
import { ScalarButton as c } from "@scalar/components";
|
|
3
3
|
import { themeLabels as f } from "@scalar/themes";
|
|
4
4
|
const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ b({
|
|
@@ -26,7 +26,7 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
|
|
|
26
26
|
);
|
|
27
27
|
g("updateContent", await s.text());
|
|
28
28
|
}
|
|
29
|
-
return (s, a) => (
|
|
29
|
+
return (s, a) => (d(), o("div", C, [
|
|
30
30
|
e("div", S, [
|
|
31
31
|
a[3] || (a[3] = r('<div class="start-logo" data-v-0f473adb><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0f473adb></path></svg></div><h1 class="start-h1" data-v-0f473adb>Swagger Editor</h1><p class="start-p" data-v-0f473adb> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
32
32
|
e("div", x, [
|
|
@@ -55,7 +55,7 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
|
|
|
55
55
|
a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0f473adb><div class="start-h2" data-v-0f473adb>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0f473adb><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0f473adb></path></svg><span data-v-0f473adb>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0f473adb><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g data-v-0f473adb><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path></g></svg><span data-v-0f473adb>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0f473adb><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="currentColor" fill-rule="nonzero" data-v-0f473adb><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0f473adb></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0f473adb></polygon></g></svg><span data-v-0f473adb>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0f473adb><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="none" fill-rule="evenodd" data-v-0f473adb><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0f473adb></circle><g stroke="currentColor" data-v-0f473adb><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0f473adb></ellipse></g></g></svg><span data-v-0f473adb>React</span></a></div>', 1)),
|
|
56
56
|
e("div", Z, [
|
|
57
57
|
a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
|
|
58
|
-
(
|
|
58
|
+
(d(), o(u, null, w(m, (t) => e("div", {
|
|
59
59
|
key: t,
|
|
60
60
|
class: y(["start-item", { "start-item-active": t === s.theme }]),
|
|
61
61
|
onClick: (B) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as r,
|
|
1
|
+
import { defineComponent as u, computed as r, createBlock as p, openBlock as i, resolveDynamicComponent as m, normalizeStyle as c, withCtx as d, renderSlot as v, normalizeProps as h, guardReactiveProps as f, createTextVNode as y, toDisplayString as b } from "vue";
|
|
2
2
|
import { requestMethodAbbreviations as C, requestMethodColors as z } from "./constants.js";
|
|
3
3
|
import { isRequestMethod as l } from "./utils/isRequestMethod.js";
|
|
4
4
|
const S = /* @__PURE__ */ u({
|
|
@@ -11,7 +11,7 @@ const S = /* @__PURE__ */ u({
|
|
|
11
11
|
},
|
|
12
12
|
setup(s) {
|
|
13
13
|
const n = s, e = r(() => n.method.trim().toUpperCase()), t = r(() => l(e.value) ? C[e.value] : e.value.slice(0, 4)), a = r(() => l(e.value) ? z[e.value] : "var(--scalar-color-ghost)");
|
|
14
|
-
return (o, M) => (
|
|
14
|
+
return (o, M) => (i(), p(m(o.as ?? "span"), {
|
|
15
15
|
style: c({ [o.property || "color"]: a.value })
|
|
16
16
|
}, {
|
|
17
17
|
default: d(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, ref as l, onMounted as p,
|
|
1
|
+
import { defineComponent as f, ref as l, onMounted as p, createBlock as d, openBlock as h, resolveDynamicComponent as u, withCtx as m, renderSlot as g } from "vue";
|
|
2
2
|
import { useIntersectionObserver as v } from "@vueuse/core";
|
|
3
3
|
const x = /* @__PURE__ */ f({
|
|
4
4
|
__name: "IntersectionObserver",
|
|
@@ -26,7 +26,7 @@ const x = /* @__PURE__ */ f({
|
|
|
26
26
|
e
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
}), (e, t) => (
|
|
29
|
+
}), (e, t) => (h(), d(u(e.is ?? "div"), {
|
|
30
30
|
id: e.id,
|
|
31
31
|
ref_key: "intersectionObserverRef",
|
|
32
32
|
ref: n
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, useSlots as S, computed as k,
|
|
1
|
+
import { defineComponent as g, useSlots as S, computed as k, createBlock as c, openBlock as r, createSlots as y, withCtx as a, createVNode as C, createElementBlock as h, createCommentVNode as i, renderSlot as d, unref as p, renderList as v, normalizeProps as w, guardReactiveProps as $ } from "vue";
|
|
2
2
|
import { ScalarColorModeToggleIcon as B } from "@scalar/components";
|
|
3
3
|
import D from "../ApiReferenceLayout.vue.js";
|
|
4
4
|
import H from "../ClassicHeader.vue.js";
|
|
@@ -26,7 +26,7 @@ const K = {
|
|
|
26
26
|
"content-start": a(({ spec: t }) => [
|
|
27
27
|
C(H, null, {
|
|
28
28
|
"dark-mode-toggle": a(() => [
|
|
29
|
-
n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(
|
|
29
|
+
n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p(B), {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "text-c-2 hover:text-c-1",
|
|
32
32
|
mode: e.isDark ? "dark" : "light",
|
|
@@ -37,9 +37,9 @@ const K = {
|
|
|
37
37
|
]),
|
|
38
38
|
default: a(() => [
|
|
39
39
|
e.$slots["document-selector"] ? (r(), h("div", K, [
|
|
40
|
-
|
|
40
|
+
d(e.$slots, "document-selector")
|
|
41
41
|
])) : i("", !0),
|
|
42
|
-
n.configuration.hideSearch ? i("", !0) : (r(), c(
|
|
42
|
+
n.configuration.hideSearch ? i("", !0) : (r(), c(p(M), {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "t-doc__sidebar",
|
|
45
45
|
searchHotKey: l.value.searchHotKey,
|
|
@@ -54,7 +54,7 @@ const K = {
|
|
|
54
54
|
v(m, (t, s) => ({
|
|
55
55
|
name: s,
|
|
56
56
|
fn: a((f) => [
|
|
57
|
-
|
|
57
|
+
d(e.$slots, s, w($(f || {})))
|
|
58
58
|
])
|
|
59
59
|
}))
|
|
60
60
|
]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, useSlots as f, computed as g,
|
|
1
|
+
import { defineComponent as c, useSlots as f, computed as g, createBlock as y, openBlock as k, resolveDynamicComponent as C, mergeProps as S, createSlots as $, withCtx as n, renderSlot as s, renderList as D, normalizeProps as v, guardReactiveProps as L } from "vue";
|
|
2
2
|
import M from "./ClassicLayout.vue.js";
|
|
3
3
|
import a from "./ModernLayout.vue.js";
|
|
4
4
|
const b = /* @__PURE__ */ c({
|
|
@@ -19,7 +19,7 @@ const b = /* @__PURE__ */ c({
|
|
|
19
19
|
modern: a,
|
|
20
20
|
classic: M
|
|
21
21
|
};
|
|
22
|
-
return (e, o) => (
|
|
22
|
+
return (e, o) => (k(), y(C(u[e.configuration.layout ?? "modern"] ?? a), S(p, {
|
|
23
23
|
onToggleDarkMode: o[0] || (o[0] = (t) => e.$emit("toggleDarkMode")),
|
|
24
24
|
onUpdateContent: o[1] || (o[1] = (t) => e.$emit("updateContent", t))
|
|
25
25
|
}), $({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as v, useSlots as C, watch as c,
|
|
1
|
+
import { defineComponent as v, useSlots as C, watch as c, createBlock as u, openBlock as t, normalizeClass as B, createSlots as w, withCtx as n, createVNode as f, unref as s, createCommentVNode as d, createElementBlock as p, renderSlot as m, isRef as D, renderList as M, normalizeProps as $, guardReactiveProps as V } from "vue";
|
|
2
2
|
import { OpenApiClientButton as H } from "@scalar/api-client/components";
|
|
3
3
|
import { ScalarSidebarFooter as K, ScalarColorModeToggleButton as L } from "@scalar/components";
|
|
4
4
|
import { useBreakpoints as N } from "@scalar/use-hooks/useBreakpoints";
|
|
@@ -47,10 +47,10 @@ const P = { key: 0 }, T = {
|
|
|
47
47
|
var i;
|
|
48
48
|
return [
|
|
49
49
|
e.$slots["document-selector"] ? (t(), p("div", P, [
|
|
50
|
-
|
|
50
|
+
m(e.$slots, "document-selector", {}, void 0, !0)
|
|
51
51
|
])) : d("", !0),
|
|
52
52
|
l.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
|
|
53
|
-
|
|
53
|
+
f(s(z), {
|
|
54
54
|
searchHotKey: (i = l.configuration) == null ? void 0 : i.searchHotKey,
|
|
55
55
|
spec: r
|
|
56
56
|
}, null, 8, ["searchHotKey", "spec"])
|
|
@@ -58,7 +58,7 @@ const P = { key: 0 }, T = {
|
|
|
58
58
|
];
|
|
59
59
|
}),
|
|
60
60
|
"sidebar-end": n(() => [
|
|
61
|
-
|
|
61
|
+
f(s(K), { class: "darklight-reference" }, {
|
|
62
62
|
toggle: n(() => [
|
|
63
63
|
l.configuration.hideDarkModeToggle ? (t(), p("span", E)) : (t(), u(s(L), {
|
|
64
64
|
key: 0,
|
|
@@ -83,7 +83,7 @@ const P = { key: 0 }, T = {
|
|
|
83
83
|
M(S, (r, i) => ({
|
|
84
84
|
name: i,
|
|
85
85
|
fn: n((b) => [
|
|
86
|
-
|
|
86
|
+
m(e.$slots, i, $(V(b || {})), void 0, !0)
|
|
87
87
|
])
|
|
88
88
|
}))
|
|
89
89
|
]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as s,
|
|
1
|
+
import { defineComponent as s, createElementBlock as n, openBlock as l, Fragment as o, renderList as t, normalizeClass as a } from "vue";
|
|
2
2
|
const m = /* @__PURE__ */ s({
|
|
3
3
|
__name: "LoadingSkeleton",
|
|
4
4
|
props: {
|
|
5
5
|
lines: { default: 1 }
|
|
6
6
|
},
|
|
7
7
|
setup(i) {
|
|
8
|
-
return (e, p) => (
|
|
8
|
+
return (e, p) => (l(!0), n(o, null, t([...Array(e.lines).keys()], (r) => (l(), n("div", {
|
|
9
9
|
key: r,
|
|
10
10
|
class: a(["loading", { "single-line": e.lines === 1 }])
|
|
11
11
|
}, null, 2))), 128));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createElementBlock as a, openBlock as i, createVNode as l, createElementVNode as n, unref as r, toDisplayString as p, renderSlot as d } from "vue";
|
|
2
2
|
import { ScalarIconButton as c } from "@scalar/components";
|
|
3
3
|
import { useSidebar as m } from "../hooks/useSidebar.js";
|
|
4
4
|
const u = { class: "references-mobile-header t-doc__header" }, b = { class: "references-mobile-breadcrumbs" }, f = { class: "references-mobile-header-actions" }, M = /* @__PURE__ */ t({
|
|
@@ -9,15 +9,15 @@ const u = { class: "references-mobile-header t-doc__header" }, b = { class: "ref
|
|
|
9
9
|
emits: ["update:open"],
|
|
10
10
|
setup(_) {
|
|
11
11
|
const { breadcrumb: s } = m();
|
|
12
|
-
return (e, o) => (
|
|
13
|
-
l(
|
|
12
|
+
return (e, o) => (i(), a("div", u, [
|
|
13
|
+
l(r(c), {
|
|
14
14
|
icon: e.open ? "Close" : "Menu",
|
|
15
15
|
label: e.open ? "Close Menu" : "Open Menu",
|
|
16
16
|
size: "md",
|
|
17
17
|
onClick: o[0] || (o[0] = (h) => e.$emit("update:open", !e.open))
|
|
18
18
|
}, null, 8, ["icon", "label"]),
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
n("span", b, p(r(s)), 1),
|
|
20
|
+
n("div", f, [
|
|
21
21
|
d(e.$slots, "actions", {}, void 0, !0)
|
|
22
22
|
])
|
|
23
23
|
]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, computed as m,
|
|
1
|
+
import { defineComponent as d, computed as m, createElementBlock as e, openBlock as t, normalizeClass as h, Fragment as o, renderList as u, toDisplayString as r, createTextVNode as _ } from "vue";
|
|
2
2
|
const k = { key: 0 }, B = /* @__PURE__ */ d({
|
|
3
3
|
__name: "OperationPath",
|
|
4
4
|
props: {
|
|
@@ -7,11 +7,11 @@ const k = { key: 0 }, B = /* @__PURE__ */ d({
|
|
|
7
7
|
},
|
|
8
8
|
setup(s) {
|
|
9
9
|
const p = s, c = (a) => a.startsWith("{") && a.endsWith("}"), i = m(() => p.path.split(/({[^}]+})/));
|
|
10
|
-
return (a, y) => (
|
|
10
|
+
return (a, y) => (t(), e("span", {
|
|
11
11
|
class: h(["operation-path", { deprecated: a.deprecated }])
|
|
12
12
|
}, [
|
|
13
|
-
(
|
|
14
|
-
c(n) ? (
|
|
13
|
+
(t(!0), e(o, null, u(i.value, (n, l) => (t(), e(o, { key: l }, [
|
|
14
|
+
c(n) ? (t(), e("em", k, r(n), 1)) : (t(), e(o, { key: 1 }, [
|
|
15
15
|
_(r(n), 1)
|
|
16
16
|
], 64))
|
|
17
17
|
], 64))), 128))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createElementBlock as t, renderSlot as o, openBlock as n } from "vue";
|
|
2
2
|
const s = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "screenreader-only"
|
|
@@ -8,7 +8,7 @@ const s = {
|
|
|
8
8
|
if: { type: Boolean, default: !0 }
|
|
9
9
|
},
|
|
10
10
|
setup(a) {
|
|
11
|
-
return (e, l) => e.$props.if ? (
|
|
11
|
+
return (e, l) => e.$props.if ? (n(), t("span", s, [
|
|
12
12
|
o(e.$slots, "default", {}, void 0, !0)
|
|
13
13
|
])) : o(e.$slots, "default", { key: 1 }, void 0, !0);
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, ref as m, useId as f, watch as v, nextTick as h,
|
|
1
|
+
import { defineComponent as u, ref as m, useId as f, watch as v, nextTick as h, createElementBlock as b, openBlock as n, createElementVNode as C, createBlock as k, createCommentVNode as g, normalizeClass as S, unref as t, createVNode as r, withCtx as s, renderSlot as c } from "vue";
|
|
2
2
|
import { ScalarIcon as _ } from "@scalar/components";
|
|
3
3
|
import w from "../Anchor/Anchor.vue.js";
|
|
4
4
|
import N from "./Section.vue.js";
|
|
@@ -23,7 +23,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
23
23
|
id: o.id,
|
|
24
24
|
"aria-controls": t(l),
|
|
25
25
|
"aria-expanded": e.value,
|
|
26
|
-
class:
|
|
26
|
+
class: S(["collapsible-section-trigger", { "collapsible-section-trigger-open": e.value }]),
|
|
27
27
|
type: "button",
|
|
28
28
|
onClick: i[0] || (i[0] = ($) => e.value = !e.value)
|
|
29
29
|
}, [
|
|
@@ -42,7 +42,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
42
42
|
_: 3
|
|
43
43
|
}, 8, ["id"])
|
|
44
44
|
], 10, V),
|
|
45
|
-
e.value ? (n(),
|
|
45
|
+
e.value ? (n(), k(N, {
|
|
46
46
|
key: 0,
|
|
47
47
|
id: t(l),
|
|
48
48
|
class: "collapsible-section-content",
|
|
@@ -52,7 +52,7 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
52
52
|
c(o.$slots, "default", {}, void 0, !0)
|
|
53
53
|
]),
|
|
54
54
|
_: 3
|
|
55
|
-
}, 8, ["id", "label"])) :
|
|
55
|
+
}, 8, ["id", "label"])) : g("", !0)
|
|
56
56
|
]));
|
|
57
57
|
}
|
|
58
58
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d,
|
|
1
|
+
import { defineComponent as d, createBlock as c, openBlock as m, withCtx as p, renderSlot as f } from "vue";
|
|
2
2
|
import u from "../IntersectionObserver.vue.js";
|
|
3
3
|
import { useNavState as S } from "../../hooks/useNavState.js";
|
|
4
4
|
import { useSidebar as _ } from "../../hooks/useSidebar.js";
|
|
@@ -14,7 +14,7 @@ const v = /* @__PURE__ */ d({
|
|
|
14
14
|
var t, o;
|
|
15
15
|
!e.label || !n.value || (s(e.id ?? ""), ((t = e.id) != null && t.startsWith("model") || (o = e.id) != null && o.startsWith("webhook")) && a(r(e.id), !0));
|
|
16
16
|
}
|
|
17
|
-
return (t, o) => (
|
|
17
|
+
return (t, o) => (m(), c(u, {
|
|
18
18
|
is: "section",
|
|
19
19
|
id: t.id,
|
|
20
20
|
class: "section",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as m,
|
|
1
|
+
import { defineComponent as p, ref as m, createBlock as f, openBlock as c, withCtx as t, createVNode as s, unref as e, normalizeClass as _, createElementVNode as a, createElementBlock as d, createCommentVNode as l, renderSlot as n } from "vue";
|
|
2
2
|
import { Disclosure as v, DisclosureButton as h, DisclosurePanel as $ } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as k } from "@scalar/components";
|
|
4
4
|
import { useElementHover as C } from "@vueuse/core";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as o, openBlock as t, renderSlot as c } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const r = {}, s = { class: "section-column" };
|
|
5
5
|
function d(e, _) {
|
|
6
|
-
return
|
|
6
|
+
return t(), o("div", s, [
|
|
7
7
|
c(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as o, openBlock as t, renderSlot as n } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const r = {}, s = { class: "section-columns" };
|
|
5
5
|
function d(e, _) {
|
|
6
|
-
return
|
|
6
|
+
return t(), o("div", s, [
|
|
7
7
|
n(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as t, openBlock as o, renderSlot as n } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const c = {}, s = { class: "section-container" };
|
|
5
5
|
function a(e, i) {
|
|
6
|
-
return
|
|
6
|
+
return o(), t("div", s, [
|
|
7
7
|
n(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as r,
|
|
1
|
+
import { defineComponent as r, createElementBlock as i, openBlock as a, createVNode as o, unref as e, withCtx as t, createElementVNode as l, renderSlot as n } from "vue";
|
|
2
2
|
import { Disclosure as d, DisclosureButton as u, DisclosurePanel as _ } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as f } from "@scalar/components";
|
|
4
4
|
const p = { class: "section-accordion-wrapper" }, m = { class: "section-accordion-title" }, B = /* @__PURE__ */ r({
|
|
5
5
|
__name: "SectionContainerAccordion",
|
|
6
6
|
setup(h) {
|
|
7
|
-
return (c, v) => (
|
|
7
|
+
return (c, v) => (a(), i("div", p, [
|
|
8
8
|
o(e(d), {
|
|
9
9
|
as: "div",
|
|
10
10
|
class: "section-accordion",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t,
|
|
1
|
+
import { defineComponent as t, createElementBlock as n, openBlock as o, renderSlot as l, createBlock as r } from "vue";
|
|
2
2
|
import a from "../LoadingSkeleton.vue.js";
|
|
3
3
|
const s = { class: "section-content" }, f = /* @__PURE__ */ t({
|
|
4
4
|
__name: "SectionContent",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
1
|
+
import { defineComponent as n, createElementBlock as t, openBlock as o, createBlock as r, normalizeClass as a, renderSlot as i } from "vue";
|
|
2
2
|
import s from "../LoadingSkeleton.vue.js";
|
|
3
3
|
const l = { class: "section-header-wrapper" }, h = /* @__PURE__ */ n({
|
|
4
4
|
__name: "SectionHeader",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, createBlock as t, openBlock as l, resolveDynamicComponent as r, withCtx as a, renderSlot as n } from "vue";
|
|
2
2
|
const d = /* @__PURE__ */ o({
|
|
3
3
|
__name: "SectionHeaderTag",
|
|
4
4
|
props: {
|
|
5
5
|
level: { default: 1 }
|
|
6
6
|
},
|
|
7
7
|
setup(s) {
|
|
8
|
-
return (e, c) => (
|
|
8
|
+
return (e, c) => (l(), t(r(`h${e.level}`), { class: "section-header-label" }, {
|
|
9
9
|
default: a(() => [
|
|
10
10
|
n(e.$slots, "default", {}, void 0, !0)
|
|
11
11
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, createElementBlock as s, openBlock as a, createTextVNode as m, createVNode as l, unref as u } from "vue";
|
|
2
2
|
import { ScalarIcon as d } from "@scalar/components";
|
|
3
3
|
import { useConfig as f } from "../hooks/useConfig.js";
|
|
4
4
|
import { useSidebar as p } from "../hooks/useSidebar.js";
|
|
@@ -12,7 +12,7 @@ const b = /* @__PURE__ */ i({
|
|
|
12
12
|
var e, o;
|
|
13
13
|
n(t.id, !0), (o = (e = r.value).onShowMore) == null || o.call(e, t.id);
|
|
14
14
|
};
|
|
15
|
-
return (e, o) => (
|
|
15
|
+
return (e, o) => (a(), s("button", {
|
|
16
16
|
class: "show-more",
|
|
17
17
|
type: "button",
|
|
18
18
|
onClick: c
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L,
|
|
1
|
+
import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, createElementBlock as d, openBlock as r, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as v, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as h } from "vue";
|
|
2
2
|
import m from "./SidebarElement.vue.js";
|
|
3
3
|
import g from "./SidebarGroup.vue.js";
|
|
4
4
|
import { useNavState as D } from "../../hooks/useNavState.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A,
|
|
1
|
+
import { defineComponent as A, createElementBlock as p, openBlock as s, createElementVNode as r, renderSlot as v, createCommentVNode as l, normalizeClass as T, unref as c, createTextVNode as h, withModifiers as V, createVNode as C, withCtx as E, toDisplayString as u, createBlock as N } from "vue";
|
|
2
2
|
import { ScalarSidebarGroupToggle as O, ScalarIcon as R } from "@scalar/components";
|
|
3
3
|
import { combineUrlAndPath as U } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useConfig as H } from "../../hooks/useConfig.js";
|
|
@@ -62,7 +62,7 @@ const L = ["id"], M = {
|
|
|
62
62
|
type: "button",
|
|
63
63
|
onClick: V(g, ["stop"])
|
|
64
64
|
}, [
|
|
65
|
-
|
|
65
|
+
C(c(O), { open: e.open }, {
|
|
66
66
|
label: E(() => [
|
|
67
67
|
h(u(e.open ? "Collapse" : "Expand") + " " + u(e.item.title), 1)
|
|
68
68
|
]),
|
|
@@ -86,16 +86,16 @@ const L = ["id"], M = {
|
|
|
86
86
|
e.item.httpVerb && !e.hasChildren ? (s(), p("p", j, [
|
|
87
87
|
t[1] || (t[1] = h(" ")),
|
|
88
88
|
t[2] || (t[2] = r("span", { class: "sr-only" }, "HTTP Method: ", -1)),
|
|
89
|
-
|
|
89
|
+
C(I, {
|
|
90
90
|
active: e.isActive,
|
|
91
91
|
method: e.item.httpVerb
|
|
92
92
|
}, null, 8, ["active", "method"])
|
|
93
93
|
])) : l("", !0)
|
|
94
94
|
], 8, F)
|
|
95
95
|
], 2),
|
|
96
|
-
e.open ?
|
|
96
|
+
e.open ? v(e.$slots, "default", { key: 0 }, void 0, !0) : l("", !0),
|
|
97
97
|
e.$slots["action-menu"] ? (s(), p("div", q, [
|
|
98
|
-
|
|
98
|
+
v(e.$slots, "action-menu", {}, void 0, !0)
|
|
99
99
|
])) : l("", !0)
|
|
100
100
|
], 8, L);
|
|
101
101
|
};
|