@scalar/api-reference 1.31.3 → 1.31.6
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 +55 -0
- package/dist/browser/standalone.js +15752 -15637
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +6 -6
- package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -2
- package/dist/components/ApiReferenceLayout.vue2.js +230 -153
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +81 -101
- 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 +114 -105
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
- package/dist/components/Content/Schema/helpers/schema-name.js +13 -21
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +35 -34
- package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +3 -3
- package/dist/components/GettingStarted.vue2.js +23 -23
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +6 -6
- 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 +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
- package/dist/features/DownloadLink/DownloadLink.vue2.js +21 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +16 -16
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +29 -28
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
- package/dist/features/sidebar/index.d.ts +2 -0
- package/dist/features/sidebar/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
- package/dist/features/traverse-schema/index.d.ts +4 -0
- package/dist/features/traverse-schema/index.d.ts.map +1 -0
- package/dist/features/traverse-schema/types.d.ts +51 -0
- package/dist/features/traverse-schema/types.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +16 -16
- package/dist/hooks/useNavState.d.ts +9 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -29
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +69 -68
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -44
- package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
- package/dist/libs/openapi.js +32 -32
- package/dist/stores/useHttpClientStore.js +9 -8
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
- package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
- package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
- package/dist/v2/events/definitions.d.ts +35 -0
- package/dist/v2/events/definitions.d.ts.map +1 -0
- package/dist/v2/events/index.d.ts +3 -0
- package/dist/v2/events/index.d.ts.map +1 -0
- package/dist/v2/events/listeners.d.ts +8 -0
- package/dist/v2/events/listeners.d.ts.map +1 -0
- package/dist/v2/events/listeners.js +15 -0
- package/dist/v2/styles.d.ts +2 -0
- package/dist/v2/styles.d.ts.map +1 -0
- package/package.json +13 -11
- package/dist/components/HttpMethod/constants.d.ts +0 -9
- package/dist/components/HttpMethod/constants.d.ts.map +0 -1
- package/dist/components/HttpMethod/constants.js +0 -36
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
- package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
- package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
- package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
- package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
- package/dist/components/Layouts/Layouts.vue.js +0 -35
- package/dist/components/Layouts/Layouts.vue2.js +0 -4
- package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
- package/dist/components/Layouts/ModernLayout.vue.js +0 -8
- package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
- package/dist/components/Layouts/index.d.ts +0 -2
- package/dist/components/Layouts/index.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.d.ts +0 -29
- package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
- package/dist/components/SingleApiReference.vue.js +0 -57
- package/dist/components/SingleApiReference.vue3.js +0 -5
- package/dist/helpers/freeze-element.d.ts +0 -11
- package/dist/helpers/freeze-element.d.ts.map +0 -1
- package/dist/helpers/freeze-element.js +0 -20
- package/dist/helpers/is-mac-os.d.ts +0 -5
- package/dist/helpers/is-mac-os.d.ts.map +0 -1
- package/dist/helpers/is-mac-os.js +0 -4
- package/dist/helpers/measure.d.ts +0 -21
- package/dist/helpers/measure.d.ts.map +0 -1
- package/dist/helpers/measure.js +0 -7
- package/dist/helpers/scroll-to-id.d.ts +0 -7
- package/dist/helpers/scroll-to-id.d.ts.map +0 -1
- package/dist/helpers/scroll-to-id.js +0 -21
- package/dist/helpers/sleep.d.ts +0 -6
- package/dist/helpers/sleep.d.ts.map +0 -1
- package/dist/helpers/sleep.js +0 -4
- package/dist/legacy/helpers/index.d.ts +0 -2
- package/dist/legacy/helpers/index.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
package/dist/hooks/useSidebar.js
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { lazyBus as
|
|
2
|
-
import { scrollToId as F } from "
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import { getHeadingsFromMarkdown as
|
|
5
|
-
import { isOperationDeprecated as U, hasModels as
|
|
6
|
-
import { ssrState as
|
|
7
|
-
import { reactive as
|
|
8
|
-
|
|
1
|
+
import { lazyBus as Z } from "../components/Content/Lazy/lazyBus.js";
|
|
2
|
+
import { scrollToId as F } from "@scalar/helpers/dom/scroll-to-id";
|
|
3
|
+
import { useNavState as $ } from "./useNavState.js";
|
|
4
|
+
import { getHeadingsFromMarkdown as ee, getLowestHeadingLevel as z } from "../libs/markdown.js";
|
|
5
|
+
import { isOperationDeprecated as U, hasModels as te, getModels as _, hasWebhooks as se } from "../libs/openapi.js";
|
|
6
|
+
import { ssrState as re } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { reactive as q, ref as w, watch as N, computed as J } from "vue";
|
|
8
|
+
import { operationIdParams as P } from "../features/traverse-schema/helpers/operation-id-params.js";
|
|
9
|
+
const oe = "introduction", O = w(null), c = w(void 0), g = q({});
|
|
9
10
|
function R(t) {
|
|
10
|
-
var p, s,
|
|
11
|
-
g.tagsSorter === "alpha" ? t.tags = (p = t.tags) == null ? void 0 : p.sort((r,
|
|
12
|
-
const a = (r,
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
}, i = (r,
|
|
11
|
+
var p, s, n;
|
|
12
|
+
g.tagsSorter === "alpha" ? t.tags = (p = t.tags) == null ? void 0 : p.sort((r, l) => r.name.localeCompare(l.name)) : typeof g.tagsSorter == "function" && (t.tags = (s = t.tags) == null ? void 0 : s.sort(g.tagsSorter));
|
|
13
|
+
const a = (r, l) => {
|
|
14
|
+
const I = r.name ?? r.path, m = l.name ?? l.path;
|
|
15
|
+
return I.localeCompare(m);
|
|
16
|
+
}, i = (r, l) => r.httpVerb.localeCompare(l.httpVerb);
|
|
16
17
|
let d;
|
|
17
|
-
return g.operationsSorter === "alpha" ? d = a : g.operationsSorter === "method" ? d = i : typeof g.operationsSorter == "function" && (d = g.operationsSorter), d && ((
|
|
18
|
-
var
|
|
19
|
-
r.operations = (
|
|
18
|
+
return g.operationsSorter === "alpha" ? d = a : g.operationsSorter === "method" ? d = i : typeof g.operationsSorter == "function" && (d = g.operationsSorter), d && ((n = t.tags) == null || n.forEach((r) => {
|
|
19
|
+
var l;
|
|
20
|
+
r.operations = (l = r.operations) == null ? void 0 : l.sort(d);
|
|
20
21
|
})), c.value = t;
|
|
21
22
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
23
|
+
const K = w(!1), Q = w(!1), y = q(re["useSidebarContent-collapsedSidebarItems"] ?? {});
|
|
24
|
+
function ae(t) {
|
|
24
25
|
y[t] = !y[t];
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function T(t, a) {
|
|
27
28
|
y[t] = a;
|
|
28
29
|
}
|
|
29
30
|
const x = w([]);
|
|
30
|
-
function
|
|
31
|
-
const a =
|
|
31
|
+
function ie(t) {
|
|
32
|
+
const a = ee(t), i = z(a);
|
|
32
33
|
return a.filter((d) => (
|
|
33
34
|
// highest level, eg. # Introduction
|
|
34
35
|
d.depth === i || // second highest level, eg. ## Authentication
|
|
35
36
|
d.depth === i + 1
|
|
36
37
|
));
|
|
37
38
|
}
|
|
38
|
-
const
|
|
39
|
+
const X = J(() => {
|
|
39
40
|
var M, C, E, B, D, L, j, G, V, W;
|
|
40
41
|
if (!O.value)
|
|
41
42
|
return { entries: [], titles: {} };
|
|
42
|
-
const { getHeadingId: t, getModelId: a, getOperationId: i, getTagId: d, getWebhookId: p } = O.value, s = {},
|
|
43
|
+
const { getHeadingId: t, getModelId: a, getOperationId: i, getTagId: d, getWebhookId: p } = O.value, s = {}, n = [];
|
|
43
44
|
let r = null;
|
|
44
45
|
x.value.forEach((e) => {
|
|
45
46
|
var o;
|
|
@@ -48,13 +49,13 @@ const Q = q(() => {
|
|
|
48
49
|
title: e.value,
|
|
49
50
|
show: !0,
|
|
50
51
|
children: []
|
|
51
|
-
},
|
|
52
|
+
}, n.push(r)) : r && ((o = r.children) == null || o.push({
|
|
52
53
|
id: t(e),
|
|
53
54
|
title: e.value,
|
|
54
55
|
show: !0
|
|
55
56
|
}));
|
|
56
57
|
});
|
|
57
|
-
const
|
|
58
|
+
const l = (C = (M = c.value) == null ? void 0 : M.tags) == null ? void 0 : C[0], m = l && ((e) => (e == null ? void 0 : e.length) !== 1 || e[0].name !== "default" || e[0].description !== "")((E = c.value) == null ? void 0 : E.tags) ? (D = (B = c.value) == null ? void 0 : B.tags) == null ? void 0 : D.filter((e) => {
|
|
58
59
|
var o;
|
|
59
60
|
return ((o = e.operations) == null ? void 0 : o.length) > 0;
|
|
60
61
|
}).map((e) => {
|
|
@@ -66,7 +67,7 @@ const Q = q(() => {
|
|
|
66
67
|
show: !0,
|
|
67
68
|
children: (o = e.operations) == null ? void 0 : o.map((u) => {
|
|
68
69
|
var v, b;
|
|
69
|
-
const f = i(u, e), h = u.name ?? u.path;
|
|
70
|
+
const f = i(P(u), e), h = u.name ?? u.path;
|
|
70
71
|
return s[f] = h, {
|
|
71
72
|
id: f,
|
|
72
73
|
title: h,
|
|
@@ -82,9 +83,9 @@ const Q = q(() => {
|
|
|
82
83
|
};
|
|
83
84
|
})
|
|
84
85
|
};
|
|
85
|
-
}) : (L =
|
|
86
|
+
}) : (L = l == null ? void 0 : l.operations) == null ? void 0 : L.map((e) => {
|
|
86
87
|
var f, h;
|
|
87
|
-
const o = i(e,
|
|
88
|
+
const o = i(P(e), l), u = e.name ?? e.path;
|
|
88
89
|
return s[o] = u, {
|
|
89
90
|
id: o,
|
|
90
91
|
title: u,
|
|
@@ -99,7 +100,7 @@ const Q = q(() => {
|
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
102
|
});
|
|
102
|
-
let S =
|
|
103
|
+
let S = te(c.value) && !K.value ? [
|
|
103
104
|
{
|
|
104
105
|
id: a(),
|
|
105
106
|
title: "Models",
|
|
@@ -114,7 +115,7 @@ const Q = q(() => {
|
|
|
114
115
|
};
|
|
115
116
|
})
|
|
116
117
|
}
|
|
117
|
-
] : [], k =
|
|
118
|
+
] : [], k = se(c.value) ? [
|
|
118
119
|
{
|
|
119
120
|
id: p(),
|
|
120
121
|
title: "Webhooks",
|
|
@@ -136,7 +137,7 @@ const Q = q(() => {
|
|
|
136
137
|
})
|
|
137
138
|
}
|
|
138
139
|
] : [];
|
|
139
|
-
const
|
|
140
|
+
const Y = (G = c.value) != null && G["x-tagGroups"] ? (W = (V = c.value) == null ? void 0 : V["x-tagGroups"]) == null ? void 0 : W.map((e) => {
|
|
140
141
|
var f;
|
|
141
142
|
const o = [];
|
|
142
143
|
return (f = e.tags) == null || f.map((h) => {
|
|
@@ -156,92 +157,92 @@ const Q = q(() => {
|
|
|
156
157
|
isGroup: !0
|
|
157
158
|
};
|
|
158
159
|
}) : void 0, H = [
|
|
159
|
-
...
|
|
160
|
-
...
|
|
160
|
+
...n,
|
|
161
|
+
...Y ?? m ?? [],
|
|
161
162
|
...k,
|
|
162
163
|
...S
|
|
163
164
|
];
|
|
164
|
-
return
|
|
165
|
-
|
|
165
|
+
return Q.value && H.forEach((e) => {
|
|
166
|
+
T(e.id, !0), e.show = !0;
|
|
166
167
|
}), {
|
|
167
168
|
entries: H,
|
|
168
169
|
titles: s
|
|
169
170
|
};
|
|
170
|
-
}),
|
|
171
|
+
}), ne = w(!1), le = J(() => {
|
|
171
172
|
var t, a, i;
|
|
172
|
-
return ((i = (t =
|
|
173
|
-
}),
|
|
173
|
+
return ((i = (t = X.value) == null ? void 0 : t.titles) == null ? void 0 : i[((a = O.value) == null ? void 0 : a.hash) ?? ""]) ?? "";
|
|
174
|
+
}), ue = (t, a) => {
|
|
174
175
|
var d;
|
|
175
176
|
const i = (d = O.value) == null ? void 0 : d.getSectionId(t);
|
|
176
177
|
if (i && i !== t)
|
|
177
178
|
if (y[i])
|
|
178
179
|
F(t, a);
|
|
179
180
|
else {
|
|
180
|
-
const p =
|
|
181
|
+
const p = Z.on((s) => {
|
|
181
182
|
s.id === t && (F(t, a), p());
|
|
182
183
|
});
|
|
183
|
-
|
|
184
|
+
T(i, !0);
|
|
184
185
|
}
|
|
185
186
|
};
|
|
186
|
-
function
|
|
187
|
+
function be(t) {
|
|
187
188
|
Object.assign(g, t);
|
|
188
|
-
const a =
|
|
189
|
+
const a = $();
|
|
189
190
|
O.value = a;
|
|
190
191
|
const { hash: i, getSectionId: d, getTagId: p } = a;
|
|
191
192
|
return t != null && t.parsedSpec && (R(t.parsedSpec), N(
|
|
192
193
|
() => {
|
|
193
|
-
var s,
|
|
194
|
-
return (
|
|
194
|
+
var s, n;
|
|
195
|
+
return (n = (s = c.value) == null ? void 0 : s.tags) == null ? void 0 : n.length;
|
|
195
196
|
},
|
|
196
197
|
() => {
|
|
197
|
-
var s,
|
|
198
|
+
var s, n;
|
|
198
199
|
if (i.value) {
|
|
199
200
|
const r = d(i.value);
|
|
200
|
-
r &&
|
|
201
|
+
r && T(r, !0);
|
|
201
202
|
} else {
|
|
202
|
-
const r = (
|
|
203
|
-
r &&
|
|
203
|
+
const r = (n = (s = c.value) == null ? void 0 : s.tags) == null ? void 0 : n[0];
|
|
204
|
+
r && T(p(r), !0);
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
), N(
|
|
207
208
|
() => {
|
|
208
|
-
var s,
|
|
209
|
-
return (
|
|
209
|
+
var s, n;
|
|
210
|
+
return (n = (s = c.value) == null ? void 0 : s.info) == null ? void 0 : n.description;
|
|
210
211
|
},
|
|
211
212
|
() => {
|
|
212
|
-
var r,
|
|
213
|
-
const s = (
|
|
213
|
+
var r, l, I, m;
|
|
214
|
+
const s = (I = (l = (r = c.value) == null ? void 0 : r.info) == null ? void 0 : l.description) == null ? void 0 : I.trim();
|
|
214
215
|
if (!s)
|
|
215
216
|
return x.value = [];
|
|
216
|
-
const
|
|
217
|
+
const n = ie(s);
|
|
217
218
|
if (s && !s.startsWith("#")) {
|
|
218
219
|
const S = {
|
|
219
|
-
depth: ((m =
|
|
220
|
+
depth: ((m = n[0]) == null ? void 0 : m.depth) ?? 1,
|
|
220
221
|
value: "Introduction",
|
|
221
|
-
slug:
|
|
222
|
+
slug: oe
|
|
222
223
|
};
|
|
223
|
-
|
|
224
|
+
n.unshift(S);
|
|
224
225
|
}
|
|
225
|
-
return x.value =
|
|
226
|
+
return x.value = n;
|
|
226
227
|
},
|
|
227
228
|
{
|
|
228
229
|
immediate: !0
|
|
229
230
|
}
|
|
230
231
|
)), {
|
|
231
232
|
breadcrumb: le,
|
|
232
|
-
items:
|
|
233
|
-
isSidebarOpen:
|
|
233
|
+
items: X,
|
|
234
|
+
isSidebarOpen: ne,
|
|
234
235
|
collapsedSidebarItems: y,
|
|
235
|
-
toggleCollapsedSidebarItem:
|
|
236
|
-
setCollapsedSidebarItem:
|
|
237
|
-
hideModels:
|
|
236
|
+
toggleCollapsedSidebarItem: ae,
|
|
237
|
+
setCollapsedSidebarItem: T,
|
|
238
|
+
hideModels: K,
|
|
238
239
|
setParsedSpec: R,
|
|
239
|
-
defaultOpenAllTags:
|
|
240
|
-
scrollToOperation:
|
|
240
|
+
defaultOpenAllTags: Q,
|
|
241
|
+
scrollToOperation: ue
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
244
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
oe as DEFAULT_INTRODUCTION_SLUG,
|
|
246
|
+
ue as scrollToOperation,
|
|
247
|
+
be as useSidebar
|
|
247
248
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export { default as ApiReference } from './components/ApiReference.vue.js';
|
|
2
|
-
export { default as SingleApiReference } from './components/SingleApiReference.vue.js';
|
|
3
2
|
export { default as ApiReferenceLayout } from './components/ApiReferenceLayout.vue.js';
|
|
4
|
-
export { default as ModernLayout } from './components/Layouts/ModernLayout.vue.js';
|
|
5
3
|
export { SearchButton, SearchModal } from './features/Search';
|
|
6
4
|
export { default as GettingStarted } from './components/GettingStarted.vue.js';
|
|
7
5
|
export { createApiReference } from './standalone/lib/html-api.js';
|
|
8
6
|
export { Sidebar } from './components/Sidebar';
|
|
9
7
|
export { Card, CardHeader, CardContent, CardFooter, CardTabHeader, CardTab } from './components/Card';
|
|
10
|
-
export { Layouts } from './components/Layouts';
|
|
11
8
|
export { parse } from './helpers/parse.js';
|
|
12
9
|
export { createEmptySpecification } from './libs/openapi.js';
|
|
13
10
|
export { useNavState } from './hooks/useNavState.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGrG,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,YAAY,EACV,yBAAyB,EACzB,cAAc,GACf,MAAM,SAAS,CAAA"}
|