@scalar/api-reference 1.25.71 → 1.25.74
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 +75 -0
- package/dist/browser/standalone.js +12267 -12210
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +56 -57
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +160 -143
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/Content.vue.d.ts +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +59 -53
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +32 -32
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +42 -36
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +10 -11
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +12 -12
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +19 -19
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +34 -28
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +30 -29
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -8
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.js +4 -4
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts +2 -2
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +16 -14
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +3 -2
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +6 -4
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +5 -5
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +124 -120
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +7 -7
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +3 -4
- package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -89
- package/dist/helpers/getExampleCode.d.ts +2 -2
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +11 -11
- package/dist/helpers/parse.d.ts +2 -2
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +3 -3
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +12 -15
- package/dist/hooks/useReactiveSpec.d.ts +24 -2
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +4 -4
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +3 -3
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
- package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, openBlock as l, createElementBlock as t, normalizeClass as
|
|
1
|
+
import { defineComponent as A, openBlock as l, createElementBlock as t, normalizeClass as T, createVNode as s, createSlots as L, withCtx as v, createTextVNode as U, toDisplayString as i, unref as u, createCommentVNode as r, createElementVNode as c, Fragment as n, renderList as d, createBlock as k } from "vue";
|
|
2
2
|
import { Disclosure as M, DisclosurePanel as V, DisclosureButton as $ } from "@headlessui/vue";
|
|
3
3
|
import { ScalarMarkdown as g, ScalarIcon as G } from "@scalar/components";
|
|
4
4
|
import y from "./Schema.vue.js";
|
|
@@ -68,11 +68,11 @@ const K = {
|
|
|
68
68
|
}, m = function(e) {
|
|
69
69
|
var a;
|
|
70
70
|
return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
|
|
71
|
-
},
|
|
71
|
+
}, Z = ["oneOf", "anyOf", "allOf", "not"];
|
|
72
72
|
return (e, a) => {
|
|
73
|
-
var D, C, E, P, j, w, N, O, q, F, I,
|
|
73
|
+
var D, C, E, P, j, w, N, O, q, F, I, z;
|
|
74
74
|
return l(), t("div", {
|
|
75
|
-
class:
|
|
75
|
+
class: T(["property", [
|
|
76
76
|
`property--level-${e.level}`,
|
|
77
77
|
{
|
|
78
78
|
"property--compact": e.compact,
|
|
@@ -89,7 +89,7 @@ const K = {
|
|
|
89
89
|
e.name ? {
|
|
90
90
|
name: "name",
|
|
91
91
|
fn: v(() => [
|
|
92
|
-
|
|
92
|
+
U(i(e.name), 1)
|
|
93
93
|
]),
|
|
94
94
|
key: "0"
|
|
95
95
|
} : void 0
|
|
@@ -148,11 +148,11 @@ const K = {
|
|
|
148
148
|
s(u($), { class: "enum-toggle-button" }, {
|
|
149
149
|
default: v(() => [
|
|
150
150
|
s(u(G), {
|
|
151
|
-
class:
|
|
151
|
+
class: T(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
|
|
152
152
|
icon: "Add",
|
|
153
|
-
|
|
153
|
+
size: "sm"
|
|
154
154
|
}, null, 8, ["class"]),
|
|
155
|
-
|
|
155
|
+
U(" " + i(o ? "Hide values" : "Show all values"), 1)
|
|
156
156
|
]),
|
|
157
157
|
_: 2
|
|
158
158
|
}, 1024)
|
|
@@ -168,7 +168,7 @@ const K = {
|
|
|
168
168
|
value: e.value
|
|
169
169
|
}, null, 8, ["compact", "level", "value"])
|
|
170
170
|
])) : r("", !0),
|
|
171
|
-
(
|
|
171
|
+
(z = e.value) != null && z.items ? (l(), t(n, { key: 6 }, [
|
|
172
172
|
["object"].includes(e.value.items.type) ? (l(), t("div", se, [
|
|
173
173
|
s(y, {
|
|
174
174
|
compact: e.compact,
|
|
@@ -177,8 +177,8 @@ const K = {
|
|
|
177
177
|
}, null, 8, ["compact", "level", "value"])
|
|
178
178
|
])) : r("", !0)
|
|
179
179
|
], 64)) : r("", !0),
|
|
180
|
-
(l(), t(n, null, d(
|
|
181
|
-
var p,
|
|
180
|
+
(l(), t(n, null, d(Z, (o) => {
|
|
181
|
+
var p, H, R;
|
|
182
182
|
return l(), t(n, { key: o }, [
|
|
183
183
|
(p = e.value) != null && p[o] ? (l(), t("div", ne, [
|
|
184
184
|
(l(!0), t(n, null, d(e.value[o], (f, h) => (l(), k(y, {
|
|
@@ -188,7 +188,7 @@ const K = {
|
|
|
188
188
|
value: f
|
|
189
189
|
}, null, 8, ["compact", "level", "value"]))), 128))
|
|
190
190
|
])) : r("", !0),
|
|
191
|
-
(
|
|
191
|
+
(R = (H = e.value) == null ? void 0 : H.items) != null && R[o] && e.level < 3 ? (l(), t("div", ie, [
|
|
192
192
|
(l(!0), t(n, null, d(e.value.items[o], (f, h) => (l(), k(y, {
|
|
193
193
|
key: h,
|
|
194
194
|
compact: e.compact,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Endpoints.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-72ede5ca"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -2,11 +2,11 @@ import { defineComponent as y, computed as N, openBlock as n, createBlock as g,
|
|
|
2
2
|
import { ScalarMarkdown as I } from "@scalar/components";
|
|
3
3
|
import $ from "../../ScreenReader.vue.js";
|
|
4
4
|
import H from "../../Section/Section.vue.js";
|
|
5
|
-
import T from "../../Section/
|
|
6
|
-
import M from "../../
|
|
5
|
+
import T from "../../Section/SectionHeader.vue.js";
|
|
6
|
+
import M from "../../Anchor/Anchor.vue.js";
|
|
7
|
+
import O from "../../Section/SectionContent.vue.js";
|
|
8
|
+
import z from "../../Section/SectionColumns.vue.js";
|
|
7
9
|
import h from "../../Section/SectionColumn.vue.js";
|
|
8
|
-
import O from "../../Section/SectionHeader.vue.js";
|
|
9
|
-
import z from "../../Anchor/Anchor.vue.js";
|
|
10
10
|
import A from "../../Card/Card.vue.js";
|
|
11
11
|
import D from "../../Card/CardHeader.vue.js";
|
|
12
12
|
import F from "../../Card/CardContent.vue.js";
|
|
@@ -30,25 +30,25 @@ const j = ["aria-label"], q = ["href", "onClick"], ne = /* @__PURE__ */ y({
|
|
|
30
30
|
label: t.tag.name.toUpperCase()
|
|
31
31
|
}, {
|
|
32
32
|
default: a(() => [
|
|
33
|
-
o(e(T),
|
|
33
|
+
o(e(T), { level: 2 }, {
|
|
34
34
|
default: a(() => [
|
|
35
|
-
o(e(M),
|
|
35
|
+
o(e(M), {
|
|
36
|
+
id: e(S)(t.tag)
|
|
37
|
+
}, {
|
|
38
|
+
default: a(() => [
|
|
39
|
+
m(p(d.value), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["id"])
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}),
|
|
46
|
+
o(e(O), null, {
|
|
47
|
+
default: a(() => [
|
|
48
|
+
o(e(z), null, {
|
|
36
49
|
default: a(() => [
|
|
37
50
|
o(e(h), null, {
|
|
38
51
|
default: a(() => [
|
|
39
|
-
o(e(O), { level: 2 }, {
|
|
40
|
-
default: a(() => [
|
|
41
|
-
o(e(z), {
|
|
42
|
-
id: e(S)(t.tag)
|
|
43
|
-
}, {
|
|
44
|
-
default: a(() => [
|
|
45
|
-
m(p(d.value), 1)
|
|
46
|
-
]),
|
|
47
|
-
_: 1
|
|
48
|
-
}, 8, ["id"])
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}),
|
|
52
52
|
o(e(I), {
|
|
53
53
|
clamp: t.isCollapsed ? "7" : !1,
|
|
54
54
|
value: t.tag.description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAUF,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TagAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-18f8a087"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;;AA6GF,wBAMG"}
|
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as g, computed as v, openBlock as r, createElementBlock as c, Fragment as m, renderList as d, createBlock as l, unref as e, withCtx as s, resolveDynamicComponent as B, createVNode as p } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as I } from "@scalar/components";
|
|
3
|
+
import S from "./TagAccordion.vue.js";
|
|
4
|
+
import T from "./Tag.vue.js";
|
|
5
|
+
import f from "../Lazy/Lazy.vue2.js";
|
|
6
|
+
import $ from "../../../features/Operation/Operation.vue.js";
|
|
7
|
+
import { useSidebar as b } from "../../../hooks/useSidebar.js";
|
|
7
8
|
import { useNavState as C } from "../../../hooks/useNavState.js";
|
|
8
|
-
const
|
|
9
|
+
const j = /* @__PURE__ */ g({
|
|
9
10
|
__name: "TagList",
|
|
10
11
|
props: {
|
|
11
12
|
tags: {},
|
|
12
13
|
spec: {},
|
|
13
14
|
layout: {}
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
() =>
|
|
18
|
-
),
|
|
19
|
-
return (
|
|
16
|
+
setup(y) {
|
|
17
|
+
const n = y, { getOperationId: u, getTagId: a, hash: _ } = C(), { collapsedSidebarItems: L } = b(), h = v(
|
|
18
|
+
() => n.layout === "classic" ? S : T
|
|
19
|
+
), k = n.layout !== "classic" && !_.value.startsWith("model");
|
|
20
|
+
return (i, E) => (r(!0), c(m, null, d(i.tags, (t) => (r(), l(e(f), {
|
|
20
21
|
id: e(a)(t),
|
|
21
22
|
key: e(a)(t),
|
|
22
|
-
isLazy: e(
|
|
23
|
+
isLazy: e(k) && !e(L)[e(a)(t)]
|
|
23
24
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
(r(),
|
|
25
|
+
default: s(() => [
|
|
26
|
+
(r(), l(B(h.value), {
|
|
26
27
|
id: e(a)(t),
|
|
27
|
-
spec:
|
|
28
|
+
spec: i.spec,
|
|
28
29
|
tag: t
|
|
29
30
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
(r(!0),
|
|
32
|
-
id: e(
|
|
31
|
+
default: s(() => [
|
|
32
|
+
(r(!0), c(m, null, d(t.operations, (o, z) => (r(), l(e(f), {
|
|
33
|
+
id: e(u)(o, t),
|
|
33
34
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
34
|
-
isLazy:
|
|
35
|
+
isLazy: z > 0
|
|
35
36
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
default: s(() => [
|
|
38
|
+
p(e(I), null, {
|
|
39
|
+
default: s(() => [
|
|
40
|
+
p(e($), {
|
|
41
|
+
id: e(u)(o, t),
|
|
42
|
+
layout: i.layout,
|
|
43
|
+
operation: o,
|
|
44
|
+
tag: t
|
|
45
|
+
}, null, 8, ["id", "layout", "operation", "tag"])
|
|
46
|
+
]),
|
|
47
|
+
_: 2
|
|
48
|
+
}, 1024)
|
|
43
49
|
]),
|
|
44
50
|
_: 2
|
|
45
51
|
}, 1032, ["id", "isLazy"]))), 128))
|
|
@@ -52,5 +58,5 @@ const O = /* @__PURE__ */ z({
|
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
export {
|
|
55
|
-
|
|
61
|
+
j as default
|
|
56
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAuC7E,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;;;EAKjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a7cab07f"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, useSlots as b, watch as d, openBlock as i, createBlock as s, normalizeClass as v, createSlots as y, withCtx as l, unref as p, isRef as D, createCommentVNode as u, createElementBlock as C, createVNode as M, createElementVNode as B, renderList as w, renderSlot as N, normalizeProps as $, guardReactiveProps as H } from "vue";
|
|
2
2
|
import { OpenApiClientButton as K } from "@scalar/api-client/components";
|
|
3
3
|
import { useBreakpoints as L } from "@scalar/use-hooks/useBreakpoints";
|
|
4
4
|
import R from "../ApiReferenceLayout.vue.js";
|
|
@@ -10,7 +10,7 @@ import { useNavState as E } from "../../hooks/useNavState.js";
|
|
|
10
10
|
const O = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "scalar-api-references-standalone-search"
|
|
13
|
-
}, P = { class: "darklight-reference" }, X = /* @__PURE__ */
|
|
13
|
+
}, P = { class: "darklight-reference" }, X = /* @__PURE__ */ h({
|
|
14
14
|
__name: "ModernLayout",
|
|
15
15
|
props: {
|
|
16
16
|
configuration: {},
|
|
@@ -19,16 +19,16 @@ const O = {
|
|
|
19
19
|
isDark: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
emits: ["toggleDarkMode", "updateContent"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
d(
|
|
25
|
-
o && !e && (
|
|
22
|
+
setup(c) {
|
|
23
|
+
const n = c, f = b(), { mediaQueries: m } = L(), { isSidebarOpen: a } = A(), g = !1;
|
|
24
|
+
d(m.lg, (e, o) => {
|
|
25
|
+
o && !e && (a.value = !1);
|
|
26
26
|
});
|
|
27
|
-
const { hash:
|
|
28
|
-
return d(
|
|
29
|
-
e && e !== o && (
|
|
30
|
-
}), (e, o) => (i(),
|
|
31
|
-
class:
|
|
27
|
+
const { hash: S } = E();
|
|
28
|
+
return d(S, (e, o) => {
|
|
29
|
+
e && e !== o && (a.value = !1);
|
|
30
|
+
}), (e, o) => (i(), s(R, {
|
|
31
|
+
class: v({
|
|
32
32
|
"scalar-api-references-standalone-mobile": e.configuration.showSidebar
|
|
33
33
|
}),
|
|
34
34
|
configuration: e.configuration,
|
|
@@ -36,36 +36,37 @@ const O = {
|
|
|
36
36
|
rawSpec: e.rawSpec,
|
|
37
37
|
onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
|
|
38
38
|
}, y({
|
|
39
|
-
header:
|
|
40
|
-
|
|
39
|
+
header: l(() => [
|
|
40
|
+
n.configuration.showSidebar ? (i(), s(T, {
|
|
41
41
|
key: 0,
|
|
42
|
-
open:
|
|
43
|
-
"onUpdate:open": o[0] || (o[0] = (r) =>
|
|
42
|
+
open: p(a),
|
|
43
|
+
"onUpdate:open": o[0] || (o[0] = (r) => D(a) ? a.value = r : null)
|
|
44
44
|
}, null, 8, ["open"])) : u("", !0)
|
|
45
45
|
]),
|
|
46
|
-
"sidebar-start":
|
|
46
|
+
"sidebar-start": l(({ spec: r }) => {
|
|
47
47
|
var t;
|
|
48
48
|
return [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
searchHotKey: (t =
|
|
49
|
+
n.configuration.hideSearch ? u("", !0) : (i(), C("div", O, [
|
|
50
|
+
M(p(V), {
|
|
51
|
+
searchHotKey: (t = n.configuration) == null ? void 0 : t.searchHotKey,
|
|
52
52
|
spec: r
|
|
53
53
|
}, null, 8, ["searchHotKey", "spec"])
|
|
54
54
|
]))
|
|
55
55
|
];
|
|
56
56
|
}),
|
|
57
|
-
"sidebar-end":
|
|
57
|
+
"sidebar-end": l(() => {
|
|
58
58
|
var r;
|
|
59
59
|
return [
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
B("div", P, [
|
|
61
|
+
n.configuration.hideClientButton ? u("", !0) : (i(), s(p(K), {
|
|
62
|
+
key: 0,
|
|
62
63
|
buttonSource: "sidebar",
|
|
63
64
|
integration: e.configuration._integration,
|
|
64
|
-
isDevelopment:
|
|
65
|
+
isDevelopment: g,
|
|
65
66
|
url: (r = e.configuration.spec) == null ? void 0 : r.url
|
|
66
|
-
}, null, 8, ["integration", "url"]),
|
|
67
|
-
|
|
68
|
-
key:
|
|
67
|
+
}, null, 8, ["integration", "url"])),
|
|
68
|
+
n.configuration.hideDarkModeToggle ? u("", !0) : (i(), s(p(z), {
|
|
69
|
+
key: 1,
|
|
69
70
|
isDarkMode: e.isDark,
|
|
70
71
|
onToggleDarkMode: o[1] || (o[1] = (t) => e.$emit("toggleDarkMode"))
|
|
71
72
|
}, null, 8, ["isDarkMode"]))
|
|
@@ -74,10 +75,10 @@ const O = {
|
|
|
74
75
|
}),
|
|
75
76
|
_: 2
|
|
76
77
|
}, [
|
|
77
|
-
|
|
78
|
+
w(f, (r, t) => ({
|
|
78
79
|
name: t,
|
|
79
|
-
fn:
|
|
80
|
-
N(e.$slots, t, $(H(
|
|
80
|
+
fn: l((k) => [
|
|
81
|
+
N(e.$slots, t, $(H(k || {})), void 0, !0)
|
|
81
82
|
])
|
|
82
83
|
}))
|
|
83
84
|
]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CompactSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-85dc7ad0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, ref as p, watch as u, nextTick as f, openBlock as a, createElementBlock as v, createElementVNode as h, normalizeClass as b, createVNode as i, unref as
|
|
2
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as m, ref as p, watch as u, nextTick as f, openBlock as a, createElementBlock as v, createElementVNode as h, normalizeClass as b, createVNode as i, unref as n, withCtx as r, renderSlot as s, createBlock as C, createCommentVNode as k } from "vue";
|
|
2
|
+
import { ScalarIcon as g } from "@scalar/components";
|
|
3
3
|
import S from "../Anchor/Anchor.vue.js";
|
|
4
4
|
import w from "./Section.vue.js";
|
|
5
5
|
import { scrollToId as N } from "../../helpers/scrollToId.js";
|
|
@@ -26,31 +26,32 @@ const V = ["aria-expanded"], x = /* @__PURE__ */ m({
|
|
|
26
26
|
class: b(["collapsible-section-trigger", { "collapsible-section-trigger-open": e.value }]),
|
|
27
27
|
onClick: t[0] || (t[0] = (_) => e.value = !e.value)
|
|
28
28
|
}, [
|
|
29
|
-
i(
|
|
29
|
+
i(n(g), {
|
|
30
30
|
icon: e.value ? "ChevronDown" : "ChevronRight",
|
|
31
|
-
size: "
|
|
31
|
+
size: "md",
|
|
32
|
+
thickness: "1.5"
|
|
32
33
|
}, null, 8, ["icon"]),
|
|
33
34
|
i(S, {
|
|
34
35
|
id: o.id,
|
|
35
36
|
class: "collapsible-section-header"
|
|
36
37
|
}, {
|
|
37
|
-
default:
|
|
38
|
+
default: r(() => [
|
|
38
39
|
s(o.$slots, "heading", {}, void 0, !0)
|
|
39
40
|
]),
|
|
40
41
|
_: 3
|
|
41
42
|
}, 8, ["id"])
|
|
42
43
|
], 2),
|
|
43
|
-
e.value ? (a(), C(
|
|
44
|
+
e.value ? (a(), C(n(w), {
|
|
44
45
|
key: 0,
|
|
45
46
|
id: o.id,
|
|
46
47
|
class: "collapsible-section-content",
|
|
47
48
|
label: o.label
|
|
48
49
|
}, {
|
|
49
|
-
default:
|
|
50
|
+
default: r(() => [
|
|
50
51
|
s(o.$slots, "default", {}, void 0, !0)
|
|
51
52
|
]),
|
|
52
53
|
_: 3
|
|
53
|
-
}, 8, ["id", "label"])) :
|
|
54
|
+
}, 8, ["id", "label"])) : k("", !0)
|
|
54
55
|
], 8, V));
|
|
55
56
|
}
|
|
56
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionColumn.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionColumn.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SectionColumn.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionColumn.vue"],"names":[],"mappings":"AAwBA,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as t, renderSlot as
|
|
1
|
+
import { openBlock as o, createElementBlock as t, renderSlot as c } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
3
|
+
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const r = {}, s = { class: "section-column" };
|
|
5
5
|
function d(e, _) {
|
|
6
6
|
return o(), t("div", s, [
|
|
7
|
-
|
|
7
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const f = /* @__PURE__ */
|
|
10
|
+
const f = /* @__PURE__ */ n(r, [["render", d], ["__scopeId", "data-v-699c28e3"]]);
|
|
11
11
|
export {
|
|
12
12
|
f as default
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAoGA,iBAAS,cAAc;WA8FT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionContainerAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a30b4ff"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -9,14 +9,14 @@ declare function __VLS_template(): {
|
|
|
9
9
|
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
11
|
refs: {};
|
|
12
|
-
rootEl:
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
16
|
loading: boolean;
|
|
17
17
|
tight: boolean;
|
|
18
18
|
level: number;
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
21
|
export default _default;
|
|
22
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue"],"names":[],"mappings":"AA+DA,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAoB1E,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;aAlGU,OAAO;WAAU,OAAO;WAAU,MAAM;wFA0GrE,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b6aef53d"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, openBlock as o, createElementBlock as l, createBlock as t, resolveDynamicComponent as n, normalizeClass as r, withCtx as s, renderSlot as i } from "vue";
|
|
2
|
+
import d from "../LoadingSkeleton.vue.js";
|
|
3
|
+
const p = { class: "section-header-wrapper" }, h = /* @__PURE__ */ a({
|
|
4
4
|
__name: "SectionHeader",
|
|
5
5
|
props: {
|
|
6
6
|
loading: { type: Boolean, default: !1 },
|
|
7
7
|
tight: { type: Boolean, default: !1 },
|
|
8
8
|
level: { default: 1 }
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
return (e,
|
|
12
|
-
key:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
s(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
setup(c) {
|
|
11
|
+
return (e, f) => (o(), l("div", p, [
|
|
12
|
+
e.loading ? (o(), t(d, { key: 0 })) : (o(), t(n(`h${e.level}`), {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: r(["section-header", { tight: e.tight }])
|
|
15
|
+
}, {
|
|
16
|
+
default: s(() => [
|
|
17
|
+
i(e.$slots, "default", {}, void 0, !0)
|
|
18
|
+
]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 8, ["class"]))
|
|
21
|
+
]));
|
|
20
22
|
}
|
|
21
23
|
});
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
h as default
|
|
24
26
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-252cd03d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA+UA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAqEF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f2a62314"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -24,8 +24,8 @@ const D = ["id"], L = {
|
|
|
24
24
|
open: { type: Boolean }
|
|
25
25
|
},
|
|
26
26
|
emits: ["toggleOpen"],
|
|
27
|
-
setup(
|
|
28
|
-
const t =
|
|
27
|
+
setup(k, { emit: C }) {
|
|
28
|
+
const t = k, p = C, { hash: w, isIntersectionEnabled: l, pathRouting: r } = T(), m = async () => {
|
|
29
29
|
var e, i;
|
|
30
30
|
t.hasChildren && p("toggleOpen"), (i = (e = t.item) == null ? void 0 : e.select) == null || i.call(e), t.open && (l.value = !1, await g(100), l.value = !0);
|
|
31
31
|
}, y = () => {
|
|
@@ -64,6 +64,7 @@ const D = ["id"], L = {
|
|
|
64
64
|
icon: e.open ? "ChevronDown" : "ChevronRight",
|
|
65
65
|
label: `${e.open ? "Collapse" : "Expand"} ${e.item.title}`,
|
|
66
66
|
size: "xs",
|
|
67
|
+
thickness: "1.5",
|
|
67
68
|
onClick: V(m, ["stop"])
|
|
68
69
|
}, null, 8, ["aria-expanded", "icon", "label"]),
|
|
69
70
|
i[0] || (i[0] = f(" "))
|