@scalar/api-reference 1.28.32 → 1.28.34
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 +62 -0
- package/dist/browser/standalone.js +7541 -7368
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +24 -22
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +50 -50
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +56 -56
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
- package/dist/components/Content/Lazy/Loading.vue.js +22 -22
- 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 +17 -17
- 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/Models/ModelsAccordion.vue2.js +14 -14
- package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- 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 +2 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +99 -5
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +2 -165
- 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 +27 -26
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +142 -138
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +8 -8
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
- package/dist/components/GettingStarted.vue.d.ts +2 -2
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +4 -4
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -1
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +30 -21
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
- package/dist/features/ApiClientModal/index.d.ts +1 -1
- package/dist/features/ApiClientModal/index.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +170 -90
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +33 -28
- 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 +17 -17
- 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 +12 -12
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/Webhooks.vue2.js +13 -13
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
- 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 +38 -32
- package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +13 -12
- 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 +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- 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 +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +20 -21
- package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
- package/dist/helpers/is-mac-os.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +1 -1
- package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
- package/dist/helpers/scroll-to-id.d.ts.map +1 -0
- package/dist/helpers/sleep.d.ts +0 -2
- package/dist/helpers/sleep.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +28 -28
- package/dist/hooks/useReactiveSpec.js +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +45 -49
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -28
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/legacy/fixtures/index.d.ts.map +1 -1
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/libs/download.d.ts +9 -0
- package/dist/libs/download.d.ts.map +1 -0
- package/dist/libs/download.js +19 -0
- package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
- package/dist/libs/markdown.d.ts.map +1 -0
- package/dist/libs/markdown.js +18 -0
- package/dist/libs/openapi.d.ts +56 -0
- package/dist/libs/openapi.d.ts.map +1 -0
- package/dist/libs/openapi.js +102 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -45
- package/dist/types.d.ts.map +1 -1
- package/package.json +21 -21
- package/dist/esm.js +0 -34
- package/dist/helpers/createEmptySpecification.d.ts +0 -8
- package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
- package/dist/helpers/createEmptySpecification.js +0 -27
- package/dist/helpers/deepMerge.d.ts +0 -5
- package/dist/helpers/deepMerge.d.ts.map +0 -1
- package/dist/helpers/deepMerge.js +0 -8
- package/dist/helpers/generateParameters.d.ts +0 -6
- package/dist/helpers/generateParameters.d.ts.map +0 -1
- package/dist/helpers/get-request.d.ts +0 -59
- package/dist/helpers/get-request.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
- package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
- package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
- package/dist/helpers/getLowestHeadingLevel.js +0 -7
- package/dist/helpers/getModels.d.ts +0 -7
- package/dist/helpers/getModels.d.ts.map +0 -1
- package/dist/helpers/getModels.js +0 -22
- package/dist/helpers/getVariableNames.d.ts +0 -5
- package/dist/helpers/getVariableNames.d.ts.map +0 -1
- package/dist/helpers/hasModels.d.ts +0 -3
- package/dist/helpers/hasModels.d.ts.map +0 -1
- package/dist/helpers/hasModels.js +0 -5
- package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
- package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.d.ts +0 -3
- package/dist/helpers/hasWebhooks.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.js +0 -4
- package/dist/helpers/index.d.ts +0 -17
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/isMacOs.d.ts.map +0 -1
- package/dist/helpers/mapFromObject.d.ts +0 -8
- package/dist/helpers/mapFromObject.d.ts.map +0 -1
- package/dist/helpers/mergeAllObjects.d.ts +0 -5
- package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
- package/dist/helpers/scrollToId.d.ts.map +0 -1
- package/dist/helpers/specDownloads.d.ts +0 -7
- package/dist/helpers/specDownloads.d.ts.map +0 -1
- package/dist/helpers/specDownloads.js +0 -19
- package/dist/helpers/specHelpers.d.ts +0 -16
- package/dist/helpers/specHelpers.d.ts.map +0 -1
- package/dist/helpers/specHelpers.js +0 -36
- package/dist/helpers/waitFor.d.ts +0 -5
- package/dist/helpers/waitFor.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
- package/dist/legacy/index.d.ts +0 -5
- package/dist/legacy/index.d.ts.map +0 -1
- package/dist/legacy/types.d.ts +0 -94
- package/dist/legacy/types.d.ts.map +0 -1
- package/dist/libs/operation.d.ts +0 -15
- package/dist/libs/operation.d.ts.map +0 -1
- package/dist/libs/operation.js +0 -16
- package/dist/stores/index.d.ts +0 -2
- package/dist/stores/index.d.ts.map +0 -1
- /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
- /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as S, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as i, unref as o, withCtx as l, resolveDynamicComponent as B, createVNode as v } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as T } from "@scalar/components";
|
|
3
|
-
import $ from "
|
|
4
|
-
import b from "
|
|
3
|
+
import { useNavState as $ } from "../../../hooks/useNavState.js";
|
|
4
|
+
import { useSidebar as b } from "../../../hooks/useSidebar.js";
|
|
5
|
+
import C from "./TagAccordion.vue.js";
|
|
6
|
+
import O from "./TagSection.vue.js";
|
|
5
7
|
import L from "../Lazy/Lazy.vue2.js";
|
|
6
|
-
import
|
|
7
|
-
import { useNavState as O } from "../../../hooks/useNavState.js";
|
|
8
|
-
import { useSidebar as _ } from "../../../hooks/useSidebar.js";
|
|
8
|
+
import _ from "../../../features/Operation/Operation.vue.js";
|
|
9
9
|
const q = /* @__PURE__ */ S({
|
|
10
10
|
__name: "TagList",
|
|
11
11
|
props: {
|
|
@@ -17,8 +17,8 @@ const q = /* @__PURE__ */ S({
|
|
|
17
17
|
schemas: {}
|
|
18
18
|
},
|
|
19
19
|
setup(c) {
|
|
20
|
-
const { getOperationId: n, getTagId: r, hash: z } =
|
|
21
|
-
() => c.layout === "classic" ?
|
|
20
|
+
const { getOperationId: n, getTagId: r, hash: z } = $(), { collapsedSidebarItems: m } = b(), I = f(
|
|
21
|
+
() => c.layout === "classic" ? C : O
|
|
22
22
|
), g = f(
|
|
23
23
|
() => c.tags.findIndex((e) => !m[r(e)]) + 1
|
|
24
24
|
), u = (e) => c.layout !== "classic" && !z.value.startsWith("model") && e > g.value;
|
|
@@ -43,7 +43,7 @@ const q = /* @__PURE__ */ S({
|
|
|
43
43
|
default: l(() => [
|
|
44
44
|
v(o(T), null, {
|
|
45
45
|
default: l(() => [
|
|
46
|
-
v(o(
|
|
46
|
+
v(o(_), {
|
|
47
47
|
id: o(n)(a, t),
|
|
48
48
|
collection: e.collection,
|
|
49
49
|
layout: e.layout,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DwmgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C9vgB;AAmBD,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 "./TagSection.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-41ba0495"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as k, ref as f, useId as y, computed as u, createBlock as l, openBlock as n, unref as o, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as v, nextTick as T } from "vue";
|
|
2
|
-
import I from "
|
|
3
|
-
import w from "
|
|
4
|
-
import B from "
|
|
2
|
+
import I from "./Tag.vue.js";
|
|
3
|
+
import w from "../../ShowMoreButton.vue.js";
|
|
4
|
+
import { useNavState as B } from "../../../hooks/useNavState.js";
|
|
5
5
|
import { useSidebar as R } from "../../../hooks/useSidebar.js";
|
|
6
|
-
import
|
|
6
|
+
import N from "../../Section/SectionContainer.vue.js";
|
|
7
7
|
const M = /* @__PURE__ */ k({
|
|
8
8
|
__name: "TagSection",
|
|
9
9
|
props: {
|
|
@@ -13,7 +13,7 @@ const M = /* @__PURE__ */ k({
|
|
|
13
13
|
spec: {}
|
|
14
14
|
},
|
|
15
15
|
setup(m) {
|
|
16
|
-
const a = m, p = f(), r = f(), i = y(), { collapsedSidebarItems: s } = R(), { getTagId: c } =
|
|
16
|
+
const a = m, p = f(), r = f(), i = y(), { collapsedSidebarItems: s } = R(), { getTagId: c } = B(), d = u(
|
|
17
17
|
() => {
|
|
18
18
|
var e, t;
|
|
19
19
|
return ((e = a.spec.tags) == null ? void 0 : e.length) && ((t = a.spec.tags) == null ? void 0 : t.length) > 1;
|
|
@@ -28,7 +28,7 @@ const M = /* @__PURE__ */ k({
|
|
|
28
28
|
var e, t;
|
|
29
29
|
await T(), (t = (e = r.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
|
|
30
30
|
}
|
|
31
|
-
return (e, t) => (n(), l(o(
|
|
31
|
+
return (e, t) => (n(), l(o(N), {
|
|
32
32
|
ref_key: "sectionContainerRef",
|
|
33
33
|
ref: p,
|
|
34
34
|
"aria-labelledby": o(i),
|
|
@@ -36,7 +36,7 @@ const M = /* @__PURE__ */ k({
|
|
|
36
36
|
role: "region"
|
|
37
37
|
}, {
|
|
38
38
|
default: C(() => [
|
|
39
|
-
g.value ? (n(), l(
|
|
39
|
+
g.value ? (n(), l(I, {
|
|
40
40
|
key: 0,
|
|
41
41
|
id: e.id,
|
|
42
42
|
collection: e.collection,
|
|
@@ -44,7 +44,7 @@ const M = /* @__PURE__ */ k({
|
|
|
44
44
|
isCollapsed: !o(s)[o(c)(e.tag)],
|
|
45
45
|
tag: e.tag
|
|
46
46
|
}, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
|
|
47
|
-
!o(s)[o(c)(e.tag)] && d.value ? (n(), l(
|
|
47
|
+
!o(s)[o(c)(e.tag)] && d.value ? (n(), l(w, {
|
|
48
48
|
key: 1,
|
|
49
49
|
id: e.id ?? "",
|
|
50
50
|
"aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
|
|
@@ -7,17 +7,17 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
7
7
|
id: ThemeId;
|
|
8
8
|
label: string;
|
|
9
9
|
}) => any;
|
|
10
|
-
updateContent: (value: string) => any;
|
|
11
10
|
loadSwaggerFile: () => any;
|
|
12
11
|
linkSwaggerFile: () => any;
|
|
12
|
+
updateContent: (value: string) => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
14
|
onChangeTheme?: ((args_0: {
|
|
15
15
|
id: ThemeId;
|
|
16
16
|
label: string;
|
|
17
17
|
}) => any) | undefined;
|
|
18
|
-
onUpdateContent?: ((value: string) => any) | undefined;
|
|
19
18
|
onLoadSwaggerFile?: (() => any) | undefined;
|
|
20
19
|
onLinkSwaggerFile?: (() => any) | undefined;
|
|
20
|
+
onUpdateContent?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
22
|
export default _default;
|
|
23
23
|
//# sourceMappingURL=GettingStarted.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAsChB,iBAAS,cAAc;WA6JT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-34d51ca9"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -4,9 +4,9 @@ import { ScalarSidebarFooter as K, ScalarColorModeToggleButton as L } from "@sca
|
|
|
4
4
|
import { useBreakpoints as N } from "@scalar/use-hooks/useBreakpoints";
|
|
5
5
|
import R from "../ApiReferenceLayout.vue.js";
|
|
6
6
|
import U from "../MobileHeader.vue.js";
|
|
7
|
-
import z from "../../
|
|
7
|
+
import { useNavState as z } from "../../hooks/useNavState.js";
|
|
8
8
|
import { useSidebar as A } from "../../hooks/useSidebar.js";
|
|
9
|
-
import
|
|
9
|
+
import O from "../../features/Search/SearchButton.vue.js";
|
|
10
10
|
const P = { key: 0 }, T = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "scalar-api-references-standalone-search"
|
|
@@ -24,7 +24,7 @@ const P = { key: 0 }, T = {
|
|
|
24
24
|
c(k.lg, (e, o) => {
|
|
25
25
|
o && !e && (a.value = !1);
|
|
26
26
|
});
|
|
27
|
-
const { hash: y } =
|
|
27
|
+
const { hash: y } = z();
|
|
28
28
|
return c(y, (e, o) => {
|
|
29
29
|
e && e !== o && (a.value = !1);
|
|
30
30
|
}), (e, o) => (t(), u(R, {
|
|
@@ -50,7 +50,7 @@ const P = { key: 0 }, T = {
|
|
|
50
50
|
m(e.$slots, "document-selector", {}, void 0, !0)
|
|
51
51
|
])) : d("", !0),
|
|
52
52
|
l.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
|
|
53
|
-
f(s(
|
|
53
|
+
f(s(O), {
|
|
54
54
|
searchHotKey: (i = l.configuration) == null ? void 0 : i.searchHotKey,
|
|
55
55
|
spec: r
|
|
56
56
|
}, null, 8, ["searchHotKey", "spec"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./MobileHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9e59635"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CompactSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c00bde82"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent as u, ref as m, useId as f, watch as v, nextTick as h,
|
|
|
2
2
|
import { ScalarIcon as _ } from "@scalar/components";
|
|
3
3
|
import w from "../Anchor/Anchor.vue.js";
|
|
4
4
|
import N from "./Section.vue.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { scrollToId as y } from "../../helpers/scroll-to-id.js";
|
|
6
|
+
import { useNavState as B } from "../../hooks/useNavState.js";
|
|
7
7
|
const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-expanded"], R = /* @__PURE__ */ u({
|
|
8
8
|
__name: "CompactSection",
|
|
9
9
|
props: {
|
|
@@ -11,11 +11,11 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
|
|
|
11
11
|
label: {}
|
|
12
12
|
},
|
|
13
13
|
setup(d) {
|
|
14
|
-
const a = d, { hash: p } =
|
|
14
|
+
const a = d, { hash: p } = B(), e = m(!1), l = f();
|
|
15
15
|
return v(
|
|
16
16
|
p,
|
|
17
17
|
async (o) => {
|
|
18
|
-
o === a.id && !e.value && (e.value = !0, await h(),
|
|
18
|
+
o === a.id && !e.value && (e.value = !0, await h(), y(a.id));
|
|
19
19
|
},
|
|
20
20
|
{ immediate: !0 }
|
|
21
21
|
), (o, i) => (n(), b("div", I, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AA2EA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAwBF,iBAAS,cAAc;WAoET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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 "./Section.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-945f79c4"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b460b827"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AA4EA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;;AA+EF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-892a5475"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAyQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAOhD,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIlE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAoGnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,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 "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e603f439"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, createElementBlock as d, openBlock as r, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as v, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as h } from "vue";
|
|
2
2
|
import m from "./SidebarElement.vue.js";
|
|
3
3
|
import g from "./SidebarGroup.vue.js";
|
|
4
|
+
import { sleep as C } from "../../helpers/sleep.js";
|
|
4
5
|
import { useNavState as D } from "../../hooks/useNavState.js";
|
|
5
6
|
import { useSidebar as H } from "../../hooks/useSidebar.js";
|
|
6
|
-
import { sleep as C } from "../../helpers/sleep.js";
|
|
7
7
|
const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, W = /* @__PURE__ */ F({
|
|
8
8
|
__name: "Sidebar",
|
|
9
9
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA4WA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAyEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0477809f"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as A, createElementBlock as p, openBlock as s, createElementVNode as r, renderSlot as v, createCommentVNode as l, normalizeClass as T, unref as c, createTextVNode as h, withModifiers as V, createVNode as C, withCtx as E, toDisplayString as u, createBlock as N } from "vue";
|
|
2
2
|
import { ScalarSidebarGroupToggle as O, ScalarIcon as R } from "@scalar/components";
|
|
3
3
|
import { combineUrlAndPath as U } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import {
|
|
5
|
-
import I from "./SidebarHttpBadge.vue.js";
|
|
4
|
+
import { scrollToId as H } from "../../helpers/scroll-to-id.js";
|
|
6
5
|
import { sleep as k } from "../../helpers/sleep.js";
|
|
6
|
+
import { useConfig as I } from "../../hooks/useConfig.js";
|
|
7
7
|
import { useNavState as P } from "../../hooks/useNavState.js";
|
|
8
|
-
import
|
|
8
|
+
import D from "./SidebarHttpBadge.vue.js";
|
|
9
9
|
const L = ["id"], M = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "sidebar-heading-chevron"
|
|
@@ -26,7 +26,7 @@ const L = ["id"], M = {
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["toggleOpen"],
|
|
28
28
|
setup(y, { emit: w }) {
|
|
29
|
-
const i = y, m = w, { getFullHash: f, isIntersectionEnabled: d, replaceUrlState: S } = P(), n =
|
|
29
|
+
const i = y, m = w, { getFullHash: f, isIntersectionEnabled: d, replaceUrlState: S } = P(), n = I(), g = async () => {
|
|
30
30
|
var e, t;
|
|
31
31
|
d.value = !1, i.hasChildren && m("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await k(100), d.value = !0;
|
|
32
32
|
}, B = () => {
|
|
@@ -39,7 +39,7 @@ const L = ["id"], M = {
|
|
|
39
39
|
return `#${f(i.item.id)}`;
|
|
40
40
|
}, $ = async (e) => {
|
|
41
41
|
var t, a, o, b;
|
|
42
|
-
(a = (t = n.value).onSidebarClick) == null || a.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), (b = (o = i.item) == null ? void 0 : o.select) == null || b.call(o), m("toggleOpen"), d.value = !1, S(i.item.id),
|
|
42
|
+
(a = (t = n.value).onSidebarClick) == null || a.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), (b = (o = i.item) == null ? void 0 : o.select) == null || b.call(o), m("toggleOpen"), d.value = !1, S(i.item.id), H(i.item.id), await k(100), d.value = !0);
|
|
43
43
|
};
|
|
44
44
|
return (e, t) => {
|
|
45
45
|
var a, o;
|
|
@@ -86,7 +86,7 @@ const L = ["id"], M = {
|
|
|
86
86
|
e.item.httpVerb && !e.hasChildren ? (s(), p("p", j, [
|
|
87
87
|
t[1] || (t[1] = h(" ")),
|
|
88
88
|
t[2] || (t[2] = r("span", { class: "sr-only" }, "HTTP Method: ", -1)),
|
|
89
|
-
C(
|
|
89
|
+
C(D, {
|
|
90
90
|
active: e.isActive,
|
|
91
91
|
method: e.item.httpVerb
|
|
92
92
|
}, null, 8, ["active", "method"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAY5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/SpecificationExtension.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/SpecificationExtension.vue"],"names":[],"mappings":"AAkFA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AAyHF,wBAMG"}
|
|
@@ -1,40 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { usePluginManager as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as E, computed as c, createElementBlock as l, createCommentVNode as _, openBlock as r, Fragment as k, renderList as y, createBlock as o, unref as C, withCtx as h, resolveDynamicComponent as s, mergeProps as p } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
|
+
import { usePluginManager as b } from "../../plugins/hooks/usePluginManager.js";
|
|
4
|
+
const N = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-base"
|
|
7
|
-
},
|
|
7
|
+
}, O = /* @__PURE__ */ E({
|
|
8
8
|
__name: "SpecificationExtension",
|
|
9
9
|
props: {
|
|
10
10
|
value: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { getSpecificationExtensions:
|
|
14
|
-
function
|
|
15
|
-
return Object.keys(
|
|
16
|
-
(
|
|
12
|
+
setup(i) {
|
|
13
|
+
const { getSpecificationExtensions: f } = b();
|
|
14
|
+
function d(t) {
|
|
15
|
+
return Object.keys(t ?? {}).filter(
|
|
16
|
+
(n) => n.startsWith("x-")
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function v(t) {
|
|
20
|
+
return t.flatMap((n) => f(n)).filter((n) => n.component);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
() =>
|
|
22
|
+
const g = c(() => d(i.value)), a = c(
|
|
23
|
+
() => v(g.value)
|
|
24
24
|
);
|
|
25
|
-
return (
|
|
26
|
-
(
|
|
27
|
-
default:
|
|
28
|
-
var
|
|
25
|
+
return (t, n) => typeof t.value == "object" && a.value.length ? (r(), l("div", N, [
|
|
26
|
+
(r(!0), l(k, null, y(a.value, (e) => (r(), o(C(B), null, {
|
|
27
|
+
default: h(() => {
|
|
28
|
+
var u, m;
|
|
29
29
|
return [
|
|
30
|
-
(
|
|
30
|
+
e.renderer ? (r(), o(s(e.renderer), p({
|
|
31
|
+
key: 0,
|
|
32
|
+
ref_for: !0
|
|
33
|
+
}, {
|
|
34
|
+
[e.name]: (u = t.value) == null ? void 0 : u[e.name],
|
|
35
|
+
component: e.component
|
|
36
|
+
}), null, 16)) : (r(), o(s(e.component), p({
|
|
37
|
+
key: 1,
|
|
38
|
+
ref_for: !0
|
|
39
|
+
}, { [e.name]: (m = t.value) == null ? void 0 : m[e.name] }), null, 16))
|
|
31
40
|
];
|
|
32
41
|
}),
|
|
33
42
|
_: 2
|
|
34
43
|
}, 1024))), 256))
|
|
35
|
-
])) :
|
|
44
|
+
])) : _("", !0);
|
|
36
45
|
}
|
|
37
46
|
});
|
|
38
47
|
export {
|
|
39
|
-
|
|
48
|
+
O as default
|
|
40
49
|
};
|
|
@@ -4,8 +4,8 @@ import { mutateSecuritySchemeDiff as C } from "@scalar/api-client/views/Request/
|
|
|
4
4
|
import { getServersFromOpenApiDocument as U } from "@scalar/oas-utils/transforms";
|
|
5
5
|
import { watchDebounced as B } from "@vueuse/core";
|
|
6
6
|
import D from "microdiff";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useNavState as _ } from "../../hooks/useNavState.js";
|
|
8
|
+
import { useApiClient as y } from "./useApiClient.js";
|
|
9
9
|
import { useExampleStore as I } from "../../legacy/stores/useExampleStore.js";
|
|
10
10
|
const G = /* @__PURE__ */ h({
|
|
11
11
|
__name: "ApiClientModal",
|
|
@@ -14,7 +14,7 @@ const G = /* @__PURE__ */ h({
|
|
|
14
14
|
parsedSpec: {}
|
|
15
15
|
},
|
|
16
16
|
setup(i) {
|
|
17
|
-
const c = S(null), { client: o, init: v } =
|
|
17
|
+
const c = S(null), { client: o, init: v } = y(), { selectedExampleKey: d, operationId: l } = I(), s = k(), r = A(), { isIntersectionEnabled: m } = _();
|
|
18
18
|
return E(() => {
|
|
19
19
|
c.value && v({
|
|
20
20
|
el: c.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|