@scalar/api-reference 1.30.0 → 1.31.1
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 +50 -0
- package/dist/browser/standalone.js +6690 -6569
- 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 +9 -7
- 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 +294 -84
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +21 -4
- 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 +158 -131
- 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.d.ts +2 -3
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
- 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 +12 -3
- 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 +133 -103
- 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 +133 -126
- 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.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +19 -17
- package/dist/components/Layouts/Layouts.vue.js +11 -9
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +2 -2
- package/dist/components/Section/SectionAccordion.vue2.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +4 -4
- 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/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
- 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 +178 -127
- 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/Operation.vue.js +29 -23
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
- 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 +7 -3
- 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/components/RequestBody.vue2.js +41 -36
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +7 -3
- 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 +84 -79
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
- 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 +66 -57
- 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/hooks/useDiscriminator.d.ts +53 -0
- package/dist/hooks/useDiscriminator.d.ts.map +1 -0
- package/dist/hooks/useDiscriminator.js +149 -0
- package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
- package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
- package/dist/hooks/useOperationDiscriminator.js +57 -0
- 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 +15 -16
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
- package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
- 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,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as E, ref as v, watch as H, onMounted as K, withDirectives as M, createElementBlock as f, openBlock as l, normalizeClass as j, createBlock as m, createCommentVNode as
|
|
1
|
+
import { defineComponent as E, ref as v, watch as H, onMounted as K, withDirectives as M, createElementBlock as f, openBlock as l, normalizeClass as j, createBlock as m, createCommentVNode as b, Fragment as h, renderList as k, unref as r, withCtx as c, createVNode as S, createTextVNode as A, toDisplayString as F, vShow as P } from "vue";
|
|
2
2
|
import { lazyBus as q } from "./lazyBus.js";
|
|
3
|
-
import { scrollToId as
|
|
3
|
+
import { scrollToId as C } from "../../../helpers/scroll-to-id.js";
|
|
4
4
|
import { useNavState as G } from "../../../hooks/useNavState.js";
|
|
5
|
-
import { getModels as
|
|
5
|
+
import { getModels as y } from "../../../libs/openapi.js";
|
|
6
6
|
import J from "../Tag/TagSection.vue.js";
|
|
7
7
|
import Q from "../../../features/Operation/Operation.vue.js";
|
|
8
8
|
import R from "../../Section/SectionContainer.vue.js";
|
|
@@ -12,7 +12,7 @@ import Y from "../../Section/SectionHeader.vue.js";
|
|
|
12
12
|
import Z from "../../Anchor/Anchor.vue.js";
|
|
13
13
|
import ee from "../../Section/SectionHeaderTag.vue.js";
|
|
14
14
|
import te from "../Schema/Schema.vue.js";
|
|
15
|
-
const
|
|
15
|
+
const _ = v(!1), ge = /* @__PURE__ */ E({
|
|
16
16
|
__name: "Loading",
|
|
17
17
|
props: {
|
|
18
18
|
collection: {},
|
|
@@ -21,8 +21,8 @@ const C = v(!1), ge = /* @__PURE__ */ E({
|
|
|
21
21
|
parsedSpec: {}
|
|
22
22
|
},
|
|
23
23
|
setup(V) {
|
|
24
|
-
const i = V,
|
|
25
|
-
!
|
|
24
|
+
const i = V, L = v(!1), I = v([]), w = v([]), { getModelId: z, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: g } = G(), O = v(
|
|
25
|
+
!_.value && i.layout !== "classic" && a.value
|
|
26
26
|
);
|
|
27
27
|
H(
|
|
28
28
|
() => {
|
|
@@ -36,54 +36,54 @@ const C = v(!1), ge = /* @__PURE__ */ E({
|
|
|
36
36
|
const n = B();
|
|
37
37
|
if (n.startsWith("tag")) {
|
|
38
38
|
let o = 0;
|
|
39
|
-
const
|
|
40
|
-
(
|
|
39
|
+
const d = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
|
|
40
|
+
(T) => N(T) === n
|
|
41
41
|
)) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
|
|
42
42
|
if ((s == null ? void 0 : s.length) === 4) {
|
|
43
|
-
const
|
|
44
|
-
o = (u = i.parsedSpec.tags[
|
|
45
|
-
({ httpVerb: x, path: D }) =>
|
|
43
|
+
const T = s[2], $ = "/" + s[3];
|
|
44
|
+
o = (u = i.parsedSpec.tags[d]) == null ? void 0 : u.operations.findIndex(
|
|
45
|
+
({ httpVerb: x, path: D }) => T === x && $ === D
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
|
-
const p = i.parsedSpec.tags[
|
|
48
|
+
const p = i.parsedSpec.tags[d];
|
|
49
49
|
if (!p)
|
|
50
50
|
return;
|
|
51
|
-
p.name !== "default" && (
|
|
51
|
+
p.name !== "default" && (L.value = n !== a.value && n.startsWith("tag")), I.value.push({
|
|
52
52
|
...p,
|
|
53
53
|
lazyOperations: p.operations.slice(
|
|
54
54
|
o,
|
|
55
55
|
o + 2
|
|
56
56
|
)
|
|
57
|
-
});
|
|
57
|
+
}), a.value.includes("/description/") && (typeof window < "u" && C(a.value), setTimeout(() => g.value = !0, 1e3));
|
|
58
58
|
} else if (a.value.startsWith("model")) {
|
|
59
|
-
const o = Object.keys(
|
|
59
|
+
const o = Object.keys(y(i.parsedSpec) ?? {}), [, d] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === d);
|
|
60
60
|
if (s === -1)
|
|
61
61
|
return;
|
|
62
|
-
|
|
62
|
+
w.value = o.slice(s, s + 3);
|
|
63
63
|
} else
|
|
64
|
-
typeof window < "u" &&
|
|
64
|
+
typeof window < "u" && C(a.value), setTimeout(() => g.value = !0, 1e3);
|
|
65
65
|
},
|
|
66
66
|
{ immediate: !0 }
|
|
67
67
|
);
|
|
68
68
|
const W = q.on(({ id: t }) => {
|
|
69
69
|
const n = a.value;
|
|
70
70
|
!n || t !== n || (W(), setTimeout(() => {
|
|
71
|
-
typeof window < "u" &&
|
|
72
|
-
|
|
71
|
+
typeof window < "u" && C(n), O.value = !1, _.value = !0, setTimeout(() => {
|
|
72
|
+
g.value = !0;
|
|
73
73
|
}, 1e3);
|
|
74
74
|
}, 300));
|
|
75
75
|
});
|
|
76
76
|
return K(() => {
|
|
77
|
-
a.value || (
|
|
78
|
-
|
|
77
|
+
a.value || (_.value = !0, setTimeout(() => {
|
|
78
|
+
g.value = !0;
|
|
79
79
|
}, 1e3));
|
|
80
80
|
}), (t, n) => M((l(), f("div", {
|
|
81
81
|
class: j(["references-loading", {
|
|
82
|
-
"references-loading-hidden-tag":
|
|
83
|
-
"references-loading-top-spacer":
|
|
82
|
+
"references-loading-hidden-tag": L.value,
|
|
83
|
+
"references-loading-top-spacer": I.value.length
|
|
84
84
|
}])
|
|
85
85
|
}, [
|
|
86
|
-
(l(!0), f(
|
|
86
|
+
(l(!0), f(h, null, k(I.value, (e, u) => (l(), f(h, {
|
|
87
87
|
key: e.name + u
|
|
88
88
|
}, [
|
|
89
89
|
e.operations && e.operations.length > 0 ? (l(), m(r(J), {
|
|
@@ -92,8 +92,8 @@ const C = v(!1), ge = /* @__PURE__ */ E({
|
|
|
92
92
|
spec: t.parsedSpec,
|
|
93
93
|
tag: e
|
|
94
94
|
}, {
|
|
95
|
-
default:
|
|
96
|
-
(l(!0), f(
|
|
95
|
+
default: c(() => [
|
|
96
|
+
(l(!0), f(h, null, k(e.lazyOperations, (o) => (l(), m(r(Q), {
|
|
97
97
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
98
98
|
collection: t.collection,
|
|
99
99
|
layout: t.layout,
|
|
@@ -102,32 +102,32 @@ const C = v(!1), ge = /* @__PURE__ */ E({
|
|
|
102
102
|
}, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
|
|
103
103
|
]),
|
|
104
104
|
_: 2
|
|
105
|
-
}, 1032, ["collection", "spec", "tag"])) :
|
|
105
|
+
}, 1032, ["collection", "spec", "tag"])) : b("", !0)
|
|
106
106
|
], 64))), 128)),
|
|
107
|
-
|
|
108
|
-
default:
|
|
109
|
-
(l(!0), f(
|
|
107
|
+
w.value.length ? (l(), m(r(R), { key: 0 }, {
|
|
108
|
+
default: c(() => [
|
|
109
|
+
(l(!0), f(h, null, k(w.value, (e) => (l(), m(r(U), {
|
|
110
110
|
key: e,
|
|
111
111
|
label: e
|
|
112
112
|
}, {
|
|
113
|
-
default:
|
|
113
|
+
default: c(() => {
|
|
114
114
|
var u;
|
|
115
115
|
return [
|
|
116
|
-
(u = r(
|
|
117
|
-
default:
|
|
116
|
+
(u = r(y)(t.parsedSpec)) != null && u[e] ? (l(), m(r(X), { key: 0 }, {
|
|
117
|
+
default: c(() => {
|
|
118
118
|
var o;
|
|
119
119
|
return [
|
|
120
|
-
|
|
121
|
-
default:
|
|
122
|
-
|
|
120
|
+
S(r(Y), null, {
|
|
121
|
+
default: c(() => [
|
|
122
|
+
S(r(Z), {
|
|
123
123
|
id: r(z)({ name: e })
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
default:
|
|
128
|
-
var
|
|
125
|
+
default: c(() => [
|
|
126
|
+
S(r(ee), { level: 2 }, {
|
|
127
|
+
default: c(() => {
|
|
128
|
+
var d;
|
|
129
129
|
return [
|
|
130
|
-
A(F(((
|
|
130
|
+
A(F(((d = r(y)(t.parsedSpec)) == null ? void 0 : d[e]).title ?? e), 1)
|
|
131
131
|
];
|
|
132
132
|
}),
|
|
133
133
|
_: 2
|
|
@@ -138,24 +138,24 @@ const C = v(!1), ge = /* @__PURE__ */ E({
|
|
|
138
138
|
]),
|
|
139
139
|
_: 2
|
|
140
140
|
}, 1024),
|
|
141
|
-
|
|
141
|
+
S(r(te), {
|
|
142
142
|
name: e,
|
|
143
143
|
noncollapsible: "",
|
|
144
|
-
value: (o = r(
|
|
144
|
+
value: (o = r(y)(t.parsedSpec)) == null ? void 0 : o[e]
|
|
145
145
|
}, null, 8, ["name", "value"])
|
|
146
146
|
];
|
|
147
147
|
}),
|
|
148
148
|
_: 2
|
|
149
|
-
}, 1024)) :
|
|
149
|
+
}, 1024)) : b("", !0)
|
|
150
150
|
];
|
|
151
151
|
}),
|
|
152
152
|
_: 2
|
|
153
153
|
}, 1032, ["label"]))), 128))
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
|
-
})) :
|
|
156
|
+
})) : b("", !0)
|
|
157
157
|
], 2)), [
|
|
158
|
-
[P,
|
|
158
|
+
[P, O.value]
|
|
159
159
|
]);
|
|
160
160
|
}
|
|
161
161
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
schemas?:
|
|
3
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAmBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAqMF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Models.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-125be711"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, useId as
|
|
1
|
+
import { defineComponent as y, useId as M, computed as u, createBlock as m, createCommentVNode as f, openBlock as r, unref as e, withCtx as l, createVNode as o, createElementVNode as k, createTextVNode as N, normalizeClass as g, createElementBlock as I, Fragment as C, renderList as L } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
3
|
import { useNavState as H } from "../../../hooks/useNavState.js";
|
|
4
4
|
import { useSidebar as w } from "../../../hooks/useSidebar.js";
|
|
@@ -17,7 +17,7 @@ const S = 10, U = /* @__PURE__ */ y({
|
|
|
17
17
|
schemas: {}
|
|
18
18
|
},
|
|
19
19
|
setup(v) {
|
|
20
|
-
const i = v, n =
|
|
20
|
+
const i = v, n = M(), { collapsedSidebarItems: _ } = w(), { getModelId: a } = H(), d = u(
|
|
21
21
|
() => Object.keys(i.schemas ?? {}).length <= S || _[a()]
|
|
22
22
|
), b = u(() => {
|
|
23
23
|
const t = Object.keys(i.schemas ?? {});
|
|
@@ -37,7 +37,7 @@ const S = 10, U = /* @__PURE__ */ y({
|
|
|
37
37
|
level: 2
|
|
38
38
|
}, {
|
|
39
39
|
default: l(() => c[0] || (c[0] = [
|
|
40
|
-
|
|
40
|
+
N(" Models ")
|
|
41
41
|
])),
|
|
42
42
|
_: 1
|
|
43
43
|
}, 8, ["id"])
|
|
@@ -48,10 +48,10 @@ const S = 10, U = /* @__PURE__ */ y({
|
|
|
48
48
|
id: "models",
|
|
49
49
|
isLazy: !1
|
|
50
50
|
}),
|
|
51
|
-
|
|
52
|
-
class:
|
|
51
|
+
k("div", {
|
|
52
|
+
class: g(["models-list", { "models-list-truncated": !d.value }])
|
|
53
53
|
}, [
|
|
54
|
-
(r(!0),
|
|
54
|
+
(r(!0), I(C, null, L(b.value, (s) => (r(), m(e(h), {
|
|
55
55
|
id: e(a)({ name: s }),
|
|
56
56
|
key: s,
|
|
57
57
|
isLazy: ""
|
|
@@ -77,9 +77,11 @@ const S = 10, U = /* @__PURE__ */ y({
|
|
|
77
77
|
o(e(B), null, {
|
|
78
78
|
default: l(() => [
|
|
79
79
|
o(e(T), {
|
|
80
|
-
hideHeading: !0,
|
|
81
80
|
noncollapsible: "",
|
|
81
|
+
hideHeading: !0,
|
|
82
|
+
hideModelNames: !0,
|
|
82
83
|
schemas: t.schemas,
|
|
84
|
+
level: 1,
|
|
83
85
|
value: t.schemas[s]
|
|
84
86
|
}, null, 8, ["schemas", "value"])
|
|
85
87
|
]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
schemas?:
|
|
3
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAgBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAqKF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModelsAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ce1dd773"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|