@scalar/api-reference 1.25.35 → 1.25.37
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 +21 -0
- package/dist/browser/standalone.js +13407 -13399
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +3 -12
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +21 -21
- package/dist/components/ApiClientModal.vue.d.ts +3 -12
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +4 -13
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +8 -17
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/CardContent.vue.d.ts +1 -10
- package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
- package/dist/components/Card/CardFooter.vue.d.ts +1 -10
- package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts +1 -10
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.d.ts +1 -1
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.d.ts +4 -4
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +1 -1
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +3 -12
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +14 -14
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +56 -56
- package/dist/components/Content/Content.vue.d.ts +3 -12
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue2.js +41 -41
- package/dist/components/Content/Introduction/Description.vue.d.ts +3 -12
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +3 -12
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Lazy.vue.d.ts +4 -27
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts +4 -25
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts +3 -12
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue2.js +32 -32
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +30 -30
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +6 -15
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +45 -45
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +37 -37
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.d.ts +3 -12
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue2.js +35 -35
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +3 -12
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +4 -27
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.d.ts +4 -27
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.d.ts +3 -12
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts +3 -12
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts +3 -12
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +16 -16
- package/dist/components/Content/Schema/Schema.vue.d.ts +4 -25
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +3 -12
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -29
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -85
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +3 -12
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +11 -11
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +4 -27
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +114 -114
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +3 -12
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue2.js +11 -11
- package/dist/components/Content/Tag/Tag.vue.d.ts +3 -12
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +3 -12
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts +3 -12
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue2.js +22 -22
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts +3 -12
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +39 -39
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +6 -15
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts +6 -15
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +14 -14
- package/dist/components/GettingStarted.vue.d.ts +9 -18
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +32 -32
- package/dist/components/HelpfulLink.vue.d.ts +3 -12
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -12
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +6 -15
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +5 -14
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +5 -14
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +5 -14
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts +4 -25
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +6 -15
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +4 -25
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts +3 -12
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +3 -12
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +3 -12
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +4 -25
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +4 -29
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +3 -12
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue2.js +9 -9
- package/dist/components/Sidebar/Sidebar.vue.d.ts +3 -12
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +24 -24
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +253 -13
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +3 -12
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +8 -29
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue2.js +41 -41
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts +3 -12
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +19 -19
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +3 -12
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +6 -15
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts +6 -15
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts +3 -12
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +83 -83
- package/dist/features/Search/SearchButton.vue.d.ts +4 -25
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue2.js +27 -27
- package/dist/features/Search/SearchModal.vue.d.ts +3 -12
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue2.js +66 -66
- package/dist/features/Search/useSearchIndex.d.ts +2 -2
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useNavState.d.ts +3 -3
- package/dist/hooks/useReactiveSpec.d.ts +2 -2
- package/dist/hooks/useRefOnMount.d.ts +1 -1
- package/dist/hooks/useRefOnMount.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormButton.vue.d.ts +2 -2
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +3 -12
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue2.js +21 -21
- package/dist/legacy/components/SecurityScheme.vue.d.ts +3 -12
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue2.js +147 -147
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +6 -15
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +37 -37
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +6 -15
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +36 -36
- package/dist/legacy/stores/useRequestStore.d.ts +7 -3
- package/dist/legacy/stores/useRequestStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
import { lazyBus as
|
|
4
|
-
import
|
|
5
|
-
import { useSearchIndex as
|
|
6
|
-
import { useSidebar as
|
|
7
|
-
import { scrollToId as
|
|
8
|
-
const
|
|
9
|
-
/* @__PURE__ */ d("span", null, "↑↓ Navigate"),
|
|
10
|
-
/* @__PURE__ */ d("span", null, "⏎ Select")
|
|
11
|
-
], -1)), re = /* @__PURE__ */ $({
|
|
1
|
+
import { defineComponent as M, toRef as U, ref as q, watch as I, openBlock as f, createBlock as k, unref as a, withKeys as h, withModifiers as S, withCtx as n, createElementVNode as c, createVNode as v, isRef as L, createTextVNode as g, toDisplayString as p, createElementBlock as z, Fragment as D, renderList as H, createSlots as K, normalizeClass as P } from "vue";
|
|
2
|
+
import { ScalarModal as O, ScalarSearchInput as W, ScalarSearchResultList as Y, ScalarSearchResultItem as j } from "@scalar/components";
|
|
3
|
+
import { lazyBus as A } from "../../components/Content/Lazy/lazyBus.js";
|
|
4
|
+
import G from "../../components/Sidebar/SidebarHttpBadge.vue.js";
|
|
5
|
+
import { useSearchIndex as J } from "./useSearchIndex.js";
|
|
6
|
+
import { useSidebar as Q } from "../../hooks/useSidebar.js";
|
|
7
|
+
import { scrollToId as b } from "../../helpers/scrollToId.js";
|
|
8
|
+
const ae = /* @__PURE__ */ M({
|
|
12
9
|
__name: "SearchModal",
|
|
13
10
|
props: {
|
|
14
11
|
parsedSpec: {},
|
|
15
12
|
modalState: {}
|
|
16
13
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
14
|
+
setup(C) {
|
|
15
|
+
const d = C, V = U(d, "parsedSpec"), {
|
|
19
16
|
resetSearch: B,
|
|
20
17
|
fuseSearch: x,
|
|
21
|
-
selectedSearchResult:
|
|
22
|
-
searchResultsWithPlaceholderResults:
|
|
23
|
-
searchText:
|
|
24
|
-
} =
|
|
18
|
+
selectedSearchResult: r,
|
|
19
|
+
searchResultsWithPlaceholderResults: i,
|
|
20
|
+
searchText: m
|
|
21
|
+
} = J({
|
|
25
22
|
specification: V
|
|
26
23
|
}), F = {
|
|
27
24
|
heading: "DocsPage",
|
|
@@ -29,112 +26,112 @@ const Z = (i) => (P("data-v-fc89d20d"), i = i(), O(), i), y = /* @__PURE__ */ Z(
|
|
|
29
26
|
req: "Terminal",
|
|
30
27
|
tag: "CodeFolder",
|
|
31
28
|
webhook: "Terminal"
|
|
32
|
-
}, N =
|
|
33
|
-
|
|
34
|
-
() =>
|
|
29
|
+
}, N = q(null);
|
|
30
|
+
I(
|
|
31
|
+
() => d.modalState.open,
|
|
35
32
|
(o) => {
|
|
36
33
|
o && B();
|
|
37
34
|
}
|
|
38
35
|
);
|
|
39
|
-
const { setCollapsedSidebarItem: T } =
|
|
36
|
+
const { setCollapsedSidebarItem: T } = Q(), E = /#(tag\/[^/]*)/;
|
|
40
37
|
function R(o) {
|
|
41
38
|
let t = "models";
|
|
42
39
|
const e = o.item.href.match(E);
|
|
43
40
|
e != null && e.length && e.length > 1 && (t = e[1]), T(t, !0);
|
|
44
|
-
const
|
|
45
|
-
if (document.getElementById(
|
|
46
|
-
|
|
41
|
+
const l = o.item.href.replace("#", "");
|
|
42
|
+
if (document.getElementById(l))
|
|
43
|
+
b(l), d.modalState.hide();
|
|
47
44
|
else {
|
|
48
|
-
const
|
|
49
|
-
u.id ===
|
|
45
|
+
const s = A.on((u) => {
|
|
46
|
+
u.id === l && (b(l), s(), d.modalState.hide());
|
|
50
47
|
});
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
|
-
|
|
50
|
+
I(r, (o) => {
|
|
54
51
|
var e;
|
|
55
|
-
const t =
|
|
52
|
+
const t = i.value[o];
|
|
56
53
|
(e = document.getElementById(t.item.href)) == null || e.scrollIntoView({
|
|
57
54
|
behavior: "smooth",
|
|
58
55
|
block: "nearest"
|
|
59
56
|
});
|
|
60
57
|
});
|
|
61
58
|
const w = (o) => {
|
|
62
|
-
const t = o === "up" ? -1 : 1, e =
|
|
63
|
-
|
|
59
|
+
const t = o === "up" ? -1 : 1, e = i.value.length, l = (r.value + t + e) % e;
|
|
60
|
+
r.value = l;
|
|
64
61
|
};
|
|
65
|
-
function
|
|
62
|
+
function $(o) {
|
|
66
63
|
const t = new URL(window.location.href);
|
|
67
64
|
return t.hash = o, t.toString();
|
|
68
65
|
}
|
|
69
|
-
return (o, t) => (
|
|
66
|
+
return (o, t) => (f(), k(a(O), {
|
|
70
67
|
state: o.modalState,
|
|
71
68
|
variant: "search",
|
|
72
69
|
onKeydown: [
|
|
73
|
-
t[1] || (t[1] = S(
|
|
74
|
-
t[2] || (t[2] = S(
|
|
75
|
-
a(
|
|
70
|
+
t[1] || (t[1] = h(S((e) => w("down"), ["stop", "prevent"]), ["down"])),
|
|
71
|
+
t[2] || (t[2] = h(S((e) => R(
|
|
72
|
+
a(i)[a(r)]
|
|
76
73
|
), ["stop", "prevent"]), ["enter"])),
|
|
77
|
-
t[3] || (t[3] = S(
|
|
74
|
+
t[3] || (t[3] = h(S((e) => w("up"), ["stop", "prevent"]), ["up"]))
|
|
78
75
|
]
|
|
79
76
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
|
|
77
|
+
default: n(() => [
|
|
78
|
+
c("div", {
|
|
82
79
|
ref_key: "searchModalRef",
|
|
83
80
|
ref: N,
|
|
84
81
|
class: "ref-search-container"
|
|
85
82
|
}, [
|
|
86
|
-
|
|
87
|
-
modelValue: a(
|
|
88
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
83
|
+
v(a(W), {
|
|
84
|
+
modelValue: a(m),
|
|
85
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => L(m) ? m.value = e : null),
|
|
89
86
|
onInput: a(x)
|
|
90
87
|
}, null, 8, ["modelValue", "onInput"])
|
|
91
88
|
], 512),
|
|
92
|
-
|
|
89
|
+
v(a(Y), {
|
|
93
90
|
class: "ref-search-results custom-scroll",
|
|
94
|
-
noResults: !a(
|
|
91
|
+
noResults: !a(i).length
|
|
95
92
|
}, {
|
|
96
|
-
query:
|
|
97
|
-
|
|
93
|
+
query: n(() => [
|
|
94
|
+
g(p(a(m)), 1)
|
|
98
95
|
]),
|
|
99
|
-
default:
|
|
100
|
-
(
|
|
96
|
+
default: n(() => [
|
|
97
|
+
(f(!0), z(D, null, H(a(i), (e, l) => (f(), k(a(j), {
|
|
101
98
|
id: e.item.href,
|
|
102
99
|
key: e.refIndex,
|
|
103
|
-
active: a(
|
|
104
|
-
href:
|
|
100
|
+
active: a(r) === l,
|
|
101
|
+
href: $(e.item.href),
|
|
105
102
|
icon: F[e.item.type],
|
|
106
|
-
onClick: (
|
|
107
|
-
onFocus: (
|
|
108
|
-
},
|
|
109
|
-
default:
|
|
110
|
-
var
|
|
103
|
+
onClick: (s) => R(e),
|
|
104
|
+
onFocus: (s) => r.value = l
|
|
105
|
+
}, K({
|
|
106
|
+
default: n(() => {
|
|
107
|
+
var s, u;
|
|
111
108
|
return [
|
|
112
|
-
|
|
113
|
-
class:
|
|
114
|
-
deprecated: (u = (
|
|
109
|
+
c("span", {
|
|
110
|
+
class: P({
|
|
111
|
+
deprecated: (u = (s = e.item.operation) == null ? void 0 : s.information) == null ? void 0 : u.deprecated
|
|
115
112
|
})
|
|
116
|
-
},
|
|
113
|
+
}, p(e.item.title), 3)
|
|
117
114
|
];
|
|
118
115
|
}),
|
|
119
116
|
_: 2
|
|
120
117
|
}, [
|
|
121
118
|
(e.item.httpVerb || e.item.path) && e.item.path !== e.item.title ? {
|
|
122
119
|
name: "description",
|
|
123
|
-
fn:
|
|
124
|
-
|
|
120
|
+
fn: n(() => [
|
|
121
|
+
g(p(e.item.path), 1)
|
|
125
122
|
]),
|
|
126
123
|
key: "0"
|
|
127
124
|
} : e.item.description ? {
|
|
128
125
|
name: "description",
|
|
129
|
-
fn:
|
|
130
|
-
|
|
126
|
+
fn: n(() => [
|
|
127
|
+
g(p(e.item.description), 1)
|
|
131
128
|
]),
|
|
132
129
|
key: "1"
|
|
133
130
|
} : void 0,
|
|
134
131
|
e.item.type === "req" ? {
|
|
135
132
|
name: "addon",
|
|
136
|
-
fn:
|
|
137
|
-
|
|
133
|
+
fn: n(() => [
|
|
134
|
+
v(G, {
|
|
138
135
|
method: e.item.httpVerb ?? "get"
|
|
139
136
|
}, null, 8, ["method"])
|
|
140
137
|
]),
|
|
@@ -144,12 +141,15 @@ const Z = (i) => (P("data-v-fc89d20d"), i = i(), O(), i), y = /* @__PURE__ */ Z(
|
|
|
144
141
|
]),
|
|
145
142
|
_: 1
|
|
146
143
|
}, 8, ["noResults"]),
|
|
147
|
-
|
|
144
|
+
t[4] || (t[4] = c("div", { class: "ref-search-meta" }, [
|
|
145
|
+
c("span", null, "↑↓ Navigate"),
|
|
146
|
+
c("span", null, "⏎ Select")
|
|
147
|
+
], -1))
|
|
148
148
|
]),
|
|
149
149
|
_: 1
|
|
150
150
|
}, 8, ["state"]));
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
export {
|
|
154
|
-
|
|
154
|
+
ae as default
|
|
155
155
|
};
|
|
@@ -23,8 +23,8 @@ export declare function useSearchIndex({ specification, }: {
|
|
|
23
23
|
}): {
|
|
24
24
|
resetSearch: () => void;
|
|
25
25
|
fuseSearch: () => void;
|
|
26
|
-
selectedSearchResult: Ref<number>;
|
|
26
|
+
selectedSearchResult: Ref<number, number>;
|
|
27
27
|
searchResultsWithPlaceholderResults: import("vue").ComputedRef<FuseResult<FuseData>[]>;
|
|
28
|
-
searchText: Ref<string>;
|
|
28
|
+
searchText: Ref<string, string>;
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=useSearchIndex.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** This hook helps with retrieving the dark mode setting from local storage or from system settings. */
|
|
2
2
|
export declare function useDarkModeState(isDarkInitially?: boolean, forceDarkModeState?: 'dark' | 'light'): {
|
|
3
|
-
isDark: import("vue").Ref<boolean>;
|
|
3
|
+
isDark: import("vue").Ref<boolean, boolean>;
|
|
4
4
|
toggleDarkMode: () => void;
|
|
5
5
|
setDarkMode: (value: boolean) => void;
|
|
6
6
|
};
|
|
@@ -8,7 +8,7 @@ import type { PathRouting } from '../types';
|
|
|
8
8
|
* when clicking on sidebar links or going backwards
|
|
9
9
|
*/
|
|
10
10
|
export declare const useNavState: () => {
|
|
11
|
-
hash: import("vue").Ref<string>;
|
|
11
|
+
hash: import("vue").Ref<string, string>;
|
|
12
12
|
getWebhookId: (name?: string, httpVerb?: string) => string;
|
|
13
13
|
getModelId: (name?: string) => string;
|
|
14
14
|
getHeadingId: (heading: Heading) => string;
|
|
@@ -16,8 +16,8 @@ export declare const useNavState: () => {
|
|
|
16
16
|
getPathRoutingId: (pathName: string) => string;
|
|
17
17
|
getSectionId: (hashStr?: string) => string;
|
|
18
18
|
getTagId: ({ name }: Tag) => string;
|
|
19
|
-
isIntersectionEnabled: import("vue").Ref<boolean>;
|
|
20
|
-
pathRouting: import("vue").Ref<PathRouting | undefined>;
|
|
19
|
+
isIntersectionEnabled: import("vue").Ref<boolean, boolean>;
|
|
20
|
+
pathRouting: import("vue").Ref<PathRouting | undefined, PathRouting | undefined>;
|
|
21
21
|
updateHash: () => void;
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=useNavState.d.ts.map
|
|
@@ -7,7 +7,7 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
7
7
|
specConfig?: MaybeRefOrGetter<SpecConfiguration>;
|
|
8
8
|
proxy?: MaybeRefOrGetter<string>;
|
|
9
9
|
}): {
|
|
10
|
-
rawSpec: import("vue").Ref<string>;
|
|
10
|
+
rawSpec: import("vue").Ref<string, string>;
|
|
11
11
|
parsedSpec: {
|
|
12
12
|
tags?: {
|
|
13
13
|
name: string;
|
|
@@ -215,6 +215,6 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
215
215
|
}[] | undefined;
|
|
216
216
|
security?: import("@scalar/openapi-types").OpenAPIV3.SecurityRequirementObject[] | undefined;
|
|
217
217
|
};
|
|
218
|
-
specErrors: import("vue").Ref<string | null>;
|
|
218
|
+
specErrors: import("vue").Ref<string | null, string | null>;
|
|
219
219
|
};
|
|
220
220
|
//# sourceMappingURL=useReactiveSpec.d.ts.map
|
|
@@ -2,5 +2,5 @@ import { type Ref } from 'vue';
|
|
|
2
2
|
/**
|
|
3
3
|
* Set a ref value on mount when needed to access properties that are not SSR-friendly.
|
|
4
4
|
*/
|
|
5
|
-
export declare function useRefOnMount<T>(setter: () => T): Ref<T | null>;
|
|
5
|
+
export declare function useRefOnMount<T>(setter: () => T): Ref<T | null, T | null>;
|
|
6
6
|
//# sourceMappingURL=useRefOnMount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRefOnMount.d.ts","sourceRoot":"","sources":["../../src/hooks/useRefOnMount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkB,MAAM,KAAK,CAAA;AAE9C;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"useRefOnMount.d.ts","sourceRoot":"","sources":["../../src/hooks/useRefOnMount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkB,MAAM,KAAK,CAAA;AAE9C;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,2BAQ/C"}
|
|
@@ -39,13 +39,13 @@ export declare function useSidebar(options?: ParsedSpecOption & SorterOption): {
|
|
|
39
39
|
entries: SidebarEntry[];
|
|
40
40
|
titles: Record<string, string>;
|
|
41
41
|
}>;
|
|
42
|
-
isSidebarOpen: import("vue").Ref<boolean>;
|
|
42
|
+
isSidebarOpen: import("vue").Ref<boolean, boolean>;
|
|
43
43
|
collapsedSidebarItems: CollapsedSidebarItems;
|
|
44
44
|
toggleCollapsedSidebarItem: typeof toggleCollapsedSidebarItem;
|
|
45
45
|
setCollapsedSidebarItem: typeof setCollapsedSidebarItem;
|
|
46
|
-
hideModels: import("vue").Ref<boolean>;
|
|
46
|
+
hideModels: import("vue").Ref<boolean, boolean>;
|
|
47
47
|
setParsedSpec: typeof setParsedSpec;
|
|
48
|
-
defaultOpenAllTags: import("vue").Ref<boolean>;
|
|
48
|
+
defaultOpenAllTags: import("vue").Ref<boolean, boolean>;
|
|
49
49
|
scrollToOperation: (operationId: string) => void;
|
|
50
50
|
};
|
|
51
51
|
export {};
|