@scalar/api-reference 1.30.0 → 1.31.0
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 +42 -0
- package/dist/browser/standalone.js +6352 -6334
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +164 -181
- 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/ClientLibraries/ClientLibraries.vue2.js +56 -51
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +5 -5
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +46 -46
- package/dist/components/Content/Models/Models.vue.d.ts +2 -2
- 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 +7 -6
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.preview.d.ts +98 -56
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
- 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 +127 -118
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +40 -38
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +152 -152
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
- package/dist/components/Layouts/Layouts.vue.js +11 -9
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +27 -33
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
- package/dist/features/ApiClientModal/useApiClient.d.ts +196 -196
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
- package/dist/features/DocumentSource/index.d.ts +2 -0
- package/dist/features/DocumentSource/index.d.ts.map +1 -0
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
- package/dist/features/DownloadLink/index.d.ts +1 -0
- package/dist/features/DownloadLink/index.d.ts.map +1 -1
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
- package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
- package/dist/features/Operation/Operation.vue.d.ts +2 -2
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -2
- 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/ClassicLayout.vue2.js +55 -55
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +35 -32
- package/dist/features/Operation/types/schemas.d.ts +2 -2
- package/dist/features/Operation/types/schemas.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/helpers/local-storage.d.ts +8 -0
- package/dist/helpers/local-storage.d.ts.map +1 -0
- package/dist/helpers/local-storage.js +6 -0
- package/dist/helpers/measure.d.ts +21 -0
- package/dist/helpers/measure.d.ts.map +1 -0
- package/dist/helpers/measure.js +7 -0
- package/dist/helpers/parse.d.ts +3 -5
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +64 -86
- package/dist/helpers/scroll-to-id.d.ts.map +1 -1
- package/dist/helpers/scroll-to-id.js +18 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -35
- package/dist/libs/openapi.d.ts +3 -3
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +35 -42
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.js +15 -15
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +19 -18
- package/dist/style.css +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -14
- package/dist/hooks/useReactiveSpec.d.ts +0 -448
- package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
- package/dist/hooks/useReactiveSpec.js +0 -59
|
@@ -1,115 +1,120 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TabGroup as
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
import { ScalarMarkdown as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as K, ref as w, useId as h, watch as P, onMounted as B, computed as F, createElementBlock as l, createCommentVNode as _, unref as e, openBlock as r, createVNode as i, withCtx as m, createElementVNode as V, Fragment as y, renderList as H, createBlock as A, createTextVNode as D, toDisplayString as p } from "vue";
|
|
2
|
+
import { TabGroup as M, TabList as O, TabPanels as R, TabPanel as j } from "@headlessui/vue";
|
|
3
|
+
import { useWorkspace as G } from "@scalar/api-client/store";
|
|
4
|
+
import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
|
|
5
|
+
import { REFERENCE_LS_KEYS as Y } from "../../../helpers/local-storage.js";
|
|
6
|
+
import { useHttpClientStore as q } from "../../../stores/useHttpClientStore.js";
|
|
7
|
+
import z from "./ClientSelector.vue.js";
|
|
7
8
|
import { useFeaturedHttpClients as Q } from "./useFeaturedHttpClients.js";
|
|
8
|
-
const
|
|
9
|
+
const U = { key: 0 }, Z = ["id"], $ = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "selected-client card-footer -outline-offset-2",
|
|
11
12
|
role: "tabpanel",
|
|
12
13
|
tabindex: "0"
|
|
13
|
-
},
|
|
14
|
+
}, X = {
|
|
14
15
|
key: 1,
|
|
15
16
|
class: "selected-client card-footer -outline-offset-2",
|
|
16
17
|
role: "tabpanel",
|
|
17
18
|
tabindex: "1"
|
|
18
|
-
},
|
|
19
|
+
}, ee = ["id"], de = /* @__PURE__ */ K({
|
|
19
20
|
__name: "ClientLibraries",
|
|
20
|
-
setup(
|
|
21
|
+
setup(te) {
|
|
21
22
|
const {
|
|
22
|
-
availableTargets:
|
|
23
|
+
availableTargets: T,
|
|
23
24
|
httpTargetTitle: k,
|
|
24
25
|
httpClientTitle: x,
|
|
25
|
-
getClientTitle:
|
|
26
|
+
getClientTitle: E,
|
|
26
27
|
getTargetTitle: L,
|
|
27
|
-
httpClient:
|
|
28
|
-
setHttpClient:
|
|
29
|
-
} =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
(
|
|
28
|
+
httpClient: n,
|
|
29
|
+
setHttpClient: b
|
|
30
|
+
} = q(), { featuredClients: d, isFeatured: S } = Q(), I = G(), g = w(0), v = h(), C = h();
|
|
31
|
+
P(
|
|
32
|
+
n,
|
|
33
|
+
(t) => {
|
|
34
|
+
t && (g.value = d.findIndex(
|
|
35
|
+
(o) => o.targetKey === t.targetKey && o.clientKey === t.clientKey
|
|
35
36
|
));
|
|
36
37
|
},
|
|
37
38
|
{ immediate: !0 }
|
|
38
39
|
);
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
function N(t) {
|
|
41
|
+
const o = d[t];
|
|
42
|
+
o && b(o);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
B(() => {
|
|
45
|
+
const t = localStorage.getItem(Y.SELECTED_CLIENT);
|
|
46
|
+
t && b(JSON.parse(t));
|
|
47
|
+
});
|
|
48
|
+
const a = F(() => {
|
|
44
49
|
var c;
|
|
45
|
-
const
|
|
46
|
-
if (!Array.isArray(
|
|
50
|
+
const t = Object.values(I.collections)[0], o = (c = t == null ? void 0 : t.info) == null ? void 0 : c["x-scalar-sdk-installation"];
|
|
51
|
+
if (!Array.isArray(o) || !(o != null && o.length))
|
|
47
52
|
return;
|
|
48
|
-
const s =
|
|
53
|
+
const s = o.find(
|
|
49
54
|
(u) => {
|
|
50
55
|
var f;
|
|
51
|
-
return u.lang.toLowerCase() === ((f =
|
|
56
|
+
return u.lang.toLowerCase() === ((f = n == null ? void 0 : n.targetKey) == null ? void 0 : f.toLowerCase());
|
|
52
57
|
}
|
|
53
58
|
);
|
|
54
59
|
if (s)
|
|
55
60
|
return s;
|
|
56
61
|
});
|
|
57
|
-
return (
|
|
58
|
-
i(e(
|
|
62
|
+
return (t, o) => e(T).length ? (r(), l("div", U, [
|
|
63
|
+
i(e(M), {
|
|
59
64
|
manual: "",
|
|
60
|
-
selectedIndex:
|
|
61
|
-
onChange:
|
|
65
|
+
selectedIndex: g.value,
|
|
66
|
+
onChange: N
|
|
62
67
|
}, {
|
|
63
68
|
default: m(() => [
|
|
64
|
-
|
|
69
|
+
V("div", {
|
|
65
70
|
id: e(v),
|
|
66
71
|
class: "client-libraries-heading"
|
|
67
|
-
}, " Client Libraries ", 8,
|
|
68
|
-
i(e(
|
|
72
|
+
}, " Client Libraries ", 8, Z),
|
|
73
|
+
i(e(O), {
|
|
69
74
|
"aria-labelledby": e(v),
|
|
70
75
|
class: "client-libraries-list"
|
|
71
76
|
}, {
|
|
72
77
|
default: m(() => [
|
|
73
|
-
i(
|
|
78
|
+
i(z, {
|
|
74
79
|
featured: e(d),
|
|
75
|
-
morePanel: e(
|
|
80
|
+
morePanel: e(C)
|
|
76
81
|
}, null, 8, ["featured", "morePanel"])
|
|
77
82
|
]),
|
|
78
83
|
_: 1
|
|
79
84
|
}, 8, ["aria-labelledby"]),
|
|
80
|
-
i(e(
|
|
85
|
+
i(e(R), null, {
|
|
81
86
|
default: m(() => {
|
|
82
87
|
var s, c;
|
|
83
88
|
return [
|
|
84
|
-
(s =
|
|
85
|
-
|
|
86
|
-
i(e(
|
|
87
|
-
value:
|
|
89
|
+
(s = a.value) != null && s.source || (c = a.value) != null && c.description ? (r(), l(y, { key: 0 }, [
|
|
90
|
+
a.value.description ? (r(), l("div", $, [
|
|
91
|
+
i(e(J), {
|
|
92
|
+
value: a.value.description
|
|
88
93
|
}, null, 8, ["value"])
|
|
89
94
|
])) : _("", !0),
|
|
90
|
-
|
|
91
|
-
i(e(
|
|
95
|
+
a.value.source ? (r(), l("div", X, [
|
|
96
|
+
i(e(W), {
|
|
92
97
|
lang: "shell",
|
|
93
|
-
content:
|
|
98
|
+
content: a.value.source,
|
|
94
99
|
copy: !1,
|
|
95
100
|
class: "min-h-6 p-1"
|
|
96
101
|
}, null, 8, ["content"])
|
|
97
102
|
])) : _("", !0)
|
|
98
|
-
], 64)) : e(
|
|
103
|
+
], 64)) : e(n) && e(S)(e(n)) ? (r(!0), l(y, { key: 1 }, H(e(d), (u, f) => (r(), A(e(j), {
|
|
99
104
|
key: f,
|
|
100
105
|
class: "selected-client card-footer -outline-offset-2"
|
|
101
106
|
}, {
|
|
102
107
|
default: m(() => [
|
|
103
|
-
|
|
108
|
+
D(p(e(E)(u)) + " " + p(e(L)(u)), 1)
|
|
104
109
|
]),
|
|
105
110
|
_: 2
|
|
106
|
-
}, 1024))), 128)) : (
|
|
111
|
+
}, 1024))), 128)) : (r(), l("div", {
|
|
107
112
|
key: 2,
|
|
108
|
-
id: e(
|
|
113
|
+
id: e(C),
|
|
109
114
|
class: "selected-client card-footer -outline-offset-2",
|
|
110
115
|
role: "tabpanel",
|
|
111
116
|
tabindex: "0"
|
|
112
|
-
}, p(e(x)) + " " + p(e(k)), 9,
|
|
117
|
+
}, p(e(x)) + " " + p(e(k)), 9, ee))
|
|
113
118
|
];
|
|
114
119
|
}),
|
|
115
120
|
_: 1
|
|
@@ -121,5 +126,5 @@ const R = { key: 0 }, U = ["id"], Y = {
|
|
|
121
126
|
}
|
|
122
127
|
});
|
|
123
128
|
export {
|
|
124
|
-
|
|
129
|
+
de as default
|
|
125
130
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAoRA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAyDJ,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAoRA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAyDJ,iBAAS,cAAc;WAgOT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA9TR,QAAQ,GAAG,SAAS;6EAqU/B,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-42df8515"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -17,10 +17,10 @@ import ee from "./Models/ModelsAccordion.vue.js";
|
|
|
17
17
|
import re from "./Models/Models.vue.js";
|
|
18
18
|
const se = { class: "narrow-references-container" }, te = {
|
|
19
19
|
key: 0,
|
|
20
|
-
class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm [--scalar-address-bar-height:0px]"
|
|
20
|
+
class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
|
|
21
21
|
}, ae = {
|
|
22
22
|
key: 1,
|
|
23
|
-
class: "scalar-reference-intro-auth scalar-client introduction-card-item"
|
|
23
|
+
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
24
24
|
}, Ce = /* @__PURE__ */ F({
|
|
25
25
|
__name: "Content",
|
|
26
26
|
props: {
|
|
@@ -53,9 +53,9 @@ const se = { class: "narrow-references-container" }, te = {
|
|
|
53
53
|
() => $.layout === "classic" ? "after" : "aside"
|
|
54
54
|
);
|
|
55
55
|
return (e, k) => {
|
|
56
|
-
var
|
|
56
|
+
var g, b, C, w;
|
|
57
57
|
return t(), i(u, null, [
|
|
58
|
-
k[0] || (k[0] = G('<div class="section-flare" data-v-
|
|
58
|
+
k[0] || (k[0] = G('<div class="section-flare" data-v-42df8515><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div></div>', 1)),
|
|
59
59
|
A("div", se, [
|
|
60
60
|
f(e.$slots, "start", {}, void 0, !0),
|
|
61
61
|
s.value ? (t(), a(r(X), {
|
|
@@ -65,7 +65,7 @@ const se = { class: "narrow-references-container" }, te = {
|
|
|
65
65
|
parsedSpec: e.parsedSpec,
|
|
66
66
|
server: c.value
|
|
67
67
|
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
|
|
68
|
-
(
|
|
68
|
+
(b = (g = e.parsedSpec) == null ? void 0 : g.info) != null && b.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (t(), a(r(Y), {
|
|
69
69
|
key: 1,
|
|
70
70
|
info: e.parsedSpec.info,
|
|
71
71
|
parsedSpec: e.parsedSpec
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { Spec } from '@scalar/types/legacy';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
info: Partial<
|
|
4
|
+
info: Partial<OpenAPIV3_1.InfoObject>;
|
|
5
5
|
parsedSpec: Spec;
|
|
6
6
|
};
|
|
7
7
|
declare function __VLS_template(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAwBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;IACrC,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAgCF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,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 "./Introduction.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-d1b2118d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,114 +1,108 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import L from "github-slugger";
|
|
1
|
+
import { defineComponent as y, inject as I, computed as L, onMounted as O, createBlock as l, openBlock as a, unref as e, withCtx as t, createVNode as i, renderSlot as g, createElementVNode as S, createCommentVNode as s, createTextVNode as d, toDisplayString as f } from "vue";
|
|
3
2
|
import { useConfig as V } from "../../../hooks/useConfig.js";
|
|
4
|
-
import { useNavState as
|
|
5
|
-
import { DEFAULT_INTRODUCTION_SLUG as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
3
|
+
import { useNavState as $ } from "../../../hooks/useNavState.js";
|
|
4
|
+
import { DEFAULT_INTRODUCTION_SLUG as D } from "../../../hooks/useSidebar.js";
|
|
5
|
+
import T from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
6
|
+
import B from "./Description.vue.js";
|
|
7
|
+
import { OPENAPI_VERSION_SYMBOL as E } from "../../../features/DownloadLink/openapi-version-symbol.js";
|
|
8
|
+
import A from "../../Section/SectionContainer.vue.js";
|
|
9
|
+
import H from "../../Section/Section.vue.js";
|
|
10
|
+
import U from "../../Section/SectionContent.vue.js";
|
|
11
|
+
import _ from "../../Badge/Badge.vue.js";
|
|
12
|
+
import w from "../../Section/SectionHeader.vue.js";
|
|
13
|
+
import M from "../../Section/SectionHeaderTag.vue.js";
|
|
14
|
+
import P from "../../Section/SectionColumns.vue.js";
|
|
15
|
+
import C from "../../Section/SectionColumn.vue.js";
|
|
16
|
+
import N from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
17
|
+
const R = { class: "flex gap-1" }, b = { class: "sticky-cards" }, io = /* @__PURE__ */ y({
|
|
18
18
|
__name: "Introduction",
|
|
19
19
|
props: {
|
|
20
20
|
info: {},
|
|
21
21
|
parsedSpec: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const n =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), p = s(() => {
|
|
33
|
-
var e, r;
|
|
34
|
-
return typeof ((e = n.info) == null ? void 0 : e.version) == "string" ? n.info.version.toString().match(/^\d/) ? `v${n.info.version}` : n.info.version : typeof ((r = n.info) == null ? void 0 : r.version) == "number" ? `v${n.info.version}` : void 0;
|
|
35
|
-
}), c = V();
|
|
36
|
-
return I(() => {
|
|
37
|
-
var e, r;
|
|
38
|
-
return (r = (e = c.value).onLoaded) == null ? void 0 : r.call(e);
|
|
39
|
-
}), (e, r) => (a(), l(o(U), null, {
|
|
23
|
+
setup(h) {
|
|
24
|
+
const n = h, { getHeadingId: k } = $(), u = I(E), m = L(() => {
|
|
25
|
+
var o, r;
|
|
26
|
+
return typeof ((o = n.info) == null ? void 0 : o.version) == "string" ? n.info.version.toString().match(/^\d/) ? `v${n.info.version}` : n.info.version : typeof ((r = n.info) == null ? void 0 : r.version) == "number" ? `v${n.info.version}` : void 0;
|
|
27
|
+
}), p = V();
|
|
28
|
+
return O(() => {
|
|
29
|
+
var o, r;
|
|
30
|
+
return (r = (o = p.value).onLoaded) == null ? void 0 : r.call(o);
|
|
31
|
+
}), (o, r) => (a(), l(e(A), null, {
|
|
40
32
|
default: t(() => [
|
|
41
|
-
i(
|
|
33
|
+
i(e(H), {
|
|
42
34
|
class: "introduction-section gap-12",
|
|
43
|
-
id:
|
|
44
|
-
slug:
|
|
35
|
+
id: e(k)({
|
|
36
|
+
slug: e(D),
|
|
45
37
|
depth: 1,
|
|
46
38
|
value: "Introduction"
|
|
47
39
|
})
|
|
48
40
|
}, {
|
|
49
41
|
default: t(() => {
|
|
50
|
-
var
|
|
42
|
+
var c, v;
|
|
51
43
|
return [
|
|
52
|
-
i(
|
|
53
|
-
loading:
|
|
44
|
+
i(e(U), {
|
|
45
|
+
loading: e(p).isLoading ?? (!((c = o.info) != null && c.description) && !((v = o.info) != null && v.title))
|
|
54
46
|
}, {
|
|
55
47
|
default: t(() => [
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
S("div", R, [
|
|
49
|
+
m.value ? (a(), l(e(_), { key: 0 }, {
|
|
58
50
|
default: t(() => [
|
|
59
|
-
d(f(
|
|
51
|
+
d(f(m.value), 1)
|
|
60
52
|
]),
|
|
61
53
|
_: 1
|
|
62
|
-
})) :
|
|
63
|
-
|
|
54
|
+
})) : s("", !0),
|
|
55
|
+
e(u) ? (a(), l(e(_), { key: 1 }, {
|
|
64
56
|
default: t(() => [
|
|
65
|
-
d("OAS " + f(
|
|
57
|
+
d("OAS " + f(e(u)), 1)
|
|
66
58
|
]),
|
|
67
59
|
_: 1
|
|
68
|
-
})) :
|
|
60
|
+
})) : s("", !0)
|
|
69
61
|
]),
|
|
70
|
-
i(
|
|
71
|
-
loading: !
|
|
62
|
+
i(e(w), {
|
|
63
|
+
loading: !o.info.title,
|
|
72
64
|
tight: ""
|
|
73
65
|
}, {
|
|
74
66
|
default: t(() => [
|
|
75
|
-
i(
|
|
67
|
+
i(e(M), { level: 1 }, {
|
|
76
68
|
default: t(() => [
|
|
77
|
-
d(f(
|
|
69
|
+
d(f(o.info.title), 1)
|
|
78
70
|
]),
|
|
79
71
|
_: 1
|
|
80
72
|
})
|
|
81
73
|
]),
|
|
82
74
|
_: 1
|
|
83
75
|
}, 8, ["loading"]),
|
|
84
|
-
i(
|
|
76
|
+
i(e(P), null, {
|
|
85
77
|
default: t(() => [
|
|
86
|
-
i(
|
|
78
|
+
i(e(C), null, {
|
|
87
79
|
default: t(() => [
|
|
88
|
-
i(
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
i(T, {
|
|
81
|
+
title: o.info.title
|
|
82
|
+
}, null, 8, ["title"]),
|
|
83
|
+
i(B, {
|
|
84
|
+
value: o.info.description
|
|
91
85
|
}, null, 8, ["value"])
|
|
92
86
|
]),
|
|
93
87
|
_: 1
|
|
94
88
|
}),
|
|
95
|
-
|
|
89
|
+
o.$slots.aside ? (a(), l(e(C), { key: 0 }, {
|
|
96
90
|
default: t(() => [
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
S("div", b, [
|
|
92
|
+
g(o.$slots, "aside", {}, void 0, !0)
|
|
99
93
|
])
|
|
100
94
|
]),
|
|
101
95
|
_: 3
|
|
102
|
-
})) :
|
|
96
|
+
})) : s("", !0)
|
|
103
97
|
]),
|
|
104
98
|
_: 3
|
|
105
99
|
}),
|
|
106
|
-
i(
|
|
107
|
-
i(
|
|
100
|
+
i(e(N), { value: o.parsedSpec }, null, 8, ["value"]),
|
|
101
|
+
i(e(N), { value: o.info }, null, 8, ["value"])
|
|
108
102
|
]),
|
|
109
103
|
_: 3
|
|
110
104
|
}, 8, ["loading"]),
|
|
111
|
-
|
|
105
|
+
g(o.$slots, "after", {}, void 0, !0)
|
|
112
106
|
];
|
|
113
107
|
}),
|
|
114
108
|
_: 3
|
|
@@ -119,5 +113,5 @@ const M = { class: "flex gap-1" }, R = { class: "sticky-cards" }, ne = /* @__PUR
|
|
|
119
113
|
}
|
|
120
114
|
});
|
|
121
115
|
export {
|
|
122
|
-
|
|
116
|
+
io as default
|
|
123
117
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA6QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAwCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBA4UK"}
|