@scalar/api-reference 1.28.33 → 1.29.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 +83 -0
- package/dist/browser/standalone.js +12818 -13331
- 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 +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- 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.js +2 -2
- package/dist/components/Content/Content.vue2.js +31 -32
- 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 → SchemaComposition.vue.d.ts} +3 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaComposition.vue.js +187 -0
- package/dist/components/Content/Schema/SchemaComposition.vue2.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- 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 +31 -30
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +0 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +8 -9
- 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 +165 -146
- 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/Schema/helpers/optimizeValueForDisplay.d.ts +3 -2
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +13 -13
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts +12 -0
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/schema-composition.js +8 -0
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +4 -0
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -0
- 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/Layouts.vue.d.ts +3 -0
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.js +14 -23
- 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 +51 -45
- 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/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 +1 -0
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +25 -22
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- 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 +186 -146
- 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 +11 -10
- 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 +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -43
- 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 +22 -27
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -7
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -167
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"AA2FA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;AAmBF,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,8SAOnB,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 "./Anchor.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2f3e206c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as l, useId as p, createElementBlock as c, openBlock as u, createElementVNode as o, unref as s, renderSlot as m, withModifiers as f, createVNode as b, withCtx as _, createTextVNode as h } from "vue";
|
|
2
2
|
import { useClipboard as y } from "@scalar/use-hooks/useClipboard";
|
|
3
|
-
import C from "
|
|
4
|
-
import
|
|
5
|
-
const
|
|
3
|
+
import { useNavState as C } from "../../hooks/useNavState.js";
|
|
4
|
+
import k from "../ScreenReader.vue.js";
|
|
5
|
+
const N = { class: "label" }, x = ["id"], S = { class: "anchor" }, V = ["aria-describedby"], I = /* @__PURE__ */ l({
|
|
6
6
|
__name: "Anchor",
|
|
7
7
|
props: {
|
|
8
8
|
id: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
setup(n) {
|
|
11
|
+
const t = p(), { copyToClipboard: r } = y(), { getHashedUrl: a } = C(), d = () => {
|
|
12
|
+
r(a(n.id));
|
|
13
|
+
};
|
|
14
|
+
return (i, e) => (u(), c("span", N, [
|
|
15
|
+
o("span", {
|
|
16
|
+
id: s(t),
|
|
15
17
|
class: "contents"
|
|
16
18
|
}, [
|
|
17
|
-
|
|
18
|
-
], 8,
|
|
19
|
-
|
|
20
|
-
e[
|
|
21
|
-
|
|
22
|
-
"aria-describedby": s(
|
|
19
|
+
m(i.$slots, "default", {}, void 0, !0)
|
|
20
|
+
], 8, x),
|
|
21
|
+
o("span", S, [
|
|
22
|
+
e[2] || (e[2] = o("span", null, "", -1)),
|
|
23
|
+
o("button", {
|
|
24
|
+
"aria-describedby": s(t),
|
|
23
25
|
class: "anchor-copy",
|
|
24
26
|
type: "button",
|
|
25
|
-
onClick:
|
|
27
|
+
onClick: f(d, ["stop"])
|
|
26
28
|
}, [
|
|
27
|
-
e[
|
|
28
|
-
|
|
29
|
-
default:
|
|
30
|
-
|
|
29
|
+
e[1] || (e[1] = o("span", { "aria-hidden": "true" }, "#", -1)),
|
|
30
|
+
b(k, null, {
|
|
31
|
+
default: _(() => e[0] || (e[0] = [
|
|
32
|
+
h("Copy link")
|
|
31
33
|
])),
|
|
32
34
|
_: 1
|
|
33
35
|
})
|
|
34
|
-
], 8,
|
|
36
|
+
], 8, V)
|
|
35
37
|
])
|
|
36
38
|
]));
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
41
|
export {
|
|
40
|
-
|
|
42
|
+
I as default
|
|
41
43
|
};
|
|
@@ -31,18 +31,18 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
31
31
|
id: ThemeId;
|
|
32
32
|
label: string;
|
|
33
33
|
}) => any;
|
|
34
|
-
updateContent: (value: string) => any;
|
|
35
34
|
loadSwaggerFile: () => any;
|
|
36
35
|
linkSwaggerFile: () => any;
|
|
36
|
+
updateContent: (value: string) => any;
|
|
37
37
|
toggleDarkMode: () => any;
|
|
38
38
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
39
|
onChangeTheme?: ((args_0: {
|
|
40
40
|
id: ThemeId;
|
|
41
41
|
label: string;
|
|
42
42
|
}) => any) | undefined;
|
|
43
|
-
onUpdateContent?: ((value: string) => any) | undefined;
|
|
44
43
|
onLoadSwaggerFile?: (() => any) | undefined;
|
|
45
44
|
onLinkSwaggerFile?: (() => any) | undefined;
|
|
45
|
+
onUpdateContent?: ((value: string) => any) | undefined;
|
|
46
46
|
onToggleDarkMode?: (() => any) | undefined;
|
|
47
47
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
48
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAkoBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAgCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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 "./ApiReferenceLayout.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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-20e6362d"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as h, ref as
|
|
1
|
+
import { defineComponent as ie, computed as h, ref as E, onBeforeMount as F, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as D, createElementVNode as d, createVNode as m, unref as i, normalizeStyle as fe, normalizeClass as me, createCommentVNode as $, withDirectives as ve, renderSlot as u, normalizeProps as c, guardReactiveProps as p, withCtx as v, vShow as Se, createSlots as ge } from "vue";
|
|
2
2
|
import { provideUseId as he } from "@headlessui/vue";
|
|
3
3
|
import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
|
|
4
4
|
import { createWorkspaceStore as we, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
|
|
5
|
-
import { addScalarClassesToHeadless as
|
|
6
|
-
import { defaultStateFactory as
|
|
7
|
-
import { hasObtrusiveScrollbars as
|
|
5
|
+
import { addScalarClassesToHeadless as Ee, ScalarErrorBoundary as Re } from "@scalar/components";
|
|
6
|
+
import { defaultStateFactory as N } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { hasObtrusiveScrollbars as $e, getThemeStyles as Oe } from "@scalar/themes";
|
|
8
8
|
import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
|
|
9
9
|
import { useToasts as Le, ScalarToasts as Me } from "@scalar/use-toasts";
|
|
10
|
-
import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import Ue from "
|
|
18
|
-
import Ye from "
|
|
19
|
-
import ze from "../
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
10
|
+
import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as Ae } from "@vueuse/core";
|
|
11
|
+
import Be from "./GettingStarted.vue.js";
|
|
12
|
+
import { sleep as Fe } from "../helpers/sleep.js";
|
|
13
|
+
import { CONFIGURATION_SYMBOL as De } from "../hooks/useConfig.js";
|
|
14
|
+
import { useNavState as Ne } from "../hooks/useNavState.js";
|
|
15
|
+
import { useSidebar as _e } from "../hooks/useSidebar.js";
|
|
16
|
+
import { downloadEventBus as _, downloadDocument as He } from "../libs/download.js";
|
|
17
|
+
import { useHttpClientStore as Ue } from "../stores/useHttpClientStore.js";
|
|
18
|
+
import { PLUGIN_MANAGER_SYMBOL as Ye } from "../plugins/hooks/usePluginManager.js";
|
|
19
|
+
import { createPluginManager as ze } from "../plugins/plugin-manager.js";
|
|
20
|
+
import Ge from "./Sidebar/Sidebar.vue.js";
|
|
21
|
+
import Ve from "./Content/Content.vue.js";
|
|
22
|
+
import We from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
23
23
|
const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label"], qe = { class: "references-navigation-list" }, Je = { class: "references-editor" }, Xe = { class: "references-editor-textarea" }, Ze = ["aria-label"], xe = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "references-footer"
|
|
@@ -37,11 +37,11 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
37
37
|
() => Ie.parse(f.configuration)
|
|
38
38
|
), { initializeToasts: U, toast: Y } = Le();
|
|
39
39
|
U((e) => Y(e));
|
|
40
|
-
const z = Pe("(min-width: 1150px)"), G =
|
|
40
|
+
const z = Pe("(min-width: 1150px)"), G = E("100dvh"), S = E(null);
|
|
41
41
|
ke(S, (e) => {
|
|
42
42
|
G.value = e[0].contentRect.height + "px";
|
|
43
43
|
});
|
|
44
|
-
const V = h(
|
|
44
|
+
const V = h($e), {
|
|
45
45
|
breadcrumb: W,
|
|
46
46
|
collapsedSidebarItems: w,
|
|
47
47
|
isSidebarOpen: j,
|
|
@@ -50,7 +50,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
50
50
|
defaultOpenAllTags: Q,
|
|
51
51
|
setParsedSpec: q,
|
|
52
52
|
scrollToOperation: J
|
|
53
|
-
} =
|
|
53
|
+
} = _e(), {
|
|
54
54
|
getReferenceId: X,
|
|
55
55
|
getPathRoutingId: I,
|
|
56
56
|
getSectionId: Z,
|
|
@@ -59,22 +59,22 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
59
59
|
isIntersectionEnabled: L,
|
|
60
60
|
updateHash: M,
|
|
61
61
|
replaceUrlState: te
|
|
62
|
-
} =
|
|
62
|
+
} = Ne(t);
|
|
63
63
|
if (t.value.redirect && typeof window < "u") {
|
|
64
64
|
const e = t.value.redirect(
|
|
65
65
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
66
66
|
);
|
|
67
67
|
e && history.replaceState({}, "", e);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
F(() => M());
|
|
70
70
|
const P = async (e) => {
|
|
71
71
|
var a;
|
|
72
|
-
L.value = !1, M(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await
|
|
73
|
-
}, k =
|
|
74
|
-
|
|
72
|
+
L.value = !1, M(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await Fe(100), L.value = !0;
|
|
73
|
+
}, k = E(0);
|
|
74
|
+
F(() => Ee()), le(() => {
|
|
75
75
|
var o, s, r;
|
|
76
|
-
history.scrollRestoration = "manual",
|
|
77
|
-
|
|
76
|
+
history.scrollRestoration = "manual", _.on(({ filename: n }) => {
|
|
77
|
+
He(f.rawSpec, n);
|
|
78
78
|
});
|
|
79
79
|
const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
|
|
80
80
|
if (e && a) {
|
|
@@ -87,7 +87,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
87
87
|
});
|
|
88
88
|
const ae = h(
|
|
89
89
|
() => z.value || !t.value.isEditable
|
|
90
|
-
),
|
|
90
|
+
), A = Ae((e) => {
|
|
91
91
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
92
92
|
const o = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
|
|
93
93
|
te("", o + window.location.search);
|
|
@@ -97,11 +97,11 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
97
97
|
spec: f.parsedSpec
|
|
98
98
|
}));
|
|
99
99
|
de(() => {
|
|
100
|
-
|
|
101
|
-
}),
|
|
100
|
+
_.reset();
|
|
101
|
+
}), R(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
|
|
102
102
|
var a, o;
|
|
103
103
|
const e = ce();
|
|
104
|
-
if (e && (e.payload || (e.payload = { data:
|
|
104
|
+
if (e && (e.payload || (e.payload = { data: N() }), (a = e.payload).data || (a.data = N()), t.value.pathRouting)) {
|
|
105
105
|
const s = I(e.url);
|
|
106
106
|
ee.value = s, e.payload.data.hash = s;
|
|
107
107
|
for (const r in w)
|
|
@@ -119,7 +119,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
119
119
|
useLocalStorage: !1,
|
|
120
120
|
...t.value
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
R(
|
|
123
123
|
() => f.rawSpec,
|
|
124
124
|
(e) => {
|
|
125
125
|
var a;
|
|
@@ -133,15 +133,15 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
133
133
|
{ immediate: !0 }
|
|
134
134
|
), b(ye, T);
|
|
135
135
|
const oe = Ce(T);
|
|
136
|
-
b(Te, oe), b(be, "modal"), b(
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
b(Te, oe), b(be, "modal"), b(De, t), b(
|
|
137
|
+
Ye,
|
|
138
|
+
ze({
|
|
139
139
|
// TODO: Get plugins from the configuration
|
|
140
140
|
plugins: t.value.plugins
|
|
141
141
|
})
|
|
142
142
|
);
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function B(e, a) {
|
|
144
|
+
R(
|
|
145
145
|
() => t.value[e],
|
|
146
146
|
(o) => {
|
|
147
147
|
typeof o < "u" && a(o);
|
|
@@ -149,8 +149,8 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
149
149
|
{ immediate: !0 }
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
|
-
const { setExcludedClients: re, setDefaultHttpClient: se } =
|
|
153
|
-
|
|
152
|
+
const { setExcludedClients: re, setDefaultHttpClient: se } = Ue();
|
|
153
|
+
B("defaultHttpClient", se), B("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
|
|
154
154
|
const ne = h(
|
|
155
155
|
() => `<style>
|
|
156
156
|
${Oe(t.value.theme, {
|
|
@@ -159,7 +159,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
159
159
|
);
|
|
160
160
|
return (e, a) => {
|
|
161
161
|
var o, s, r;
|
|
162
|
-
return C(), y(
|
|
162
|
+
return C(), y(D, null, [
|
|
163
163
|
d("div", { innerHTML: ne.value }, null, 8, je),
|
|
164
164
|
d("div", {
|
|
165
165
|
ref_key: "documentEl",
|
|
@@ -178,7 +178,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
178
178
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${k.value}px)`
|
|
179
179
|
}),
|
|
180
180
|
onScrollPassive: a[4] || (a[4] = //@ts-ignore
|
|
181
|
-
(...n) => i(
|
|
181
|
+
(...n) => i(A) && i(A)(...n))
|
|
182
182
|
}, [
|
|
183
183
|
d("div", Ke, [
|
|
184
184
|
u(e.$slots, "header", c(p(l.value)), void 0, !0)
|
|
@@ -189,9 +189,9 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
189
189
|
class: "references-navigation t-doc__sidebar"
|
|
190
190
|
}, [
|
|
191
191
|
d("div", qe, [
|
|
192
|
-
m(i(
|
|
192
|
+
m(i(Re), null, {
|
|
193
193
|
default: v(() => [
|
|
194
|
-
m(i(
|
|
194
|
+
m(i(Ge), {
|
|
195
195
|
operationsSorter: t.value.operationsSorter,
|
|
196
196
|
parsedSpec: e.parsedSpec,
|
|
197
197
|
tagsSorter: t.value.tagsSorter
|
|
@@ -208,7 +208,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
208
208
|
_: 3
|
|
209
209
|
})
|
|
210
210
|
])
|
|
211
|
-
], 8, Qe)) :
|
|
211
|
+
], 8, Qe)) : $("", !0),
|
|
212
212
|
ve(d("div", Je, [
|
|
213
213
|
d("div", Xe, [
|
|
214
214
|
u(e.$slots, "editor", c(p(l.value)), void 0, !0)
|
|
@@ -216,12 +216,12 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
216
216
|
], 512), [
|
|
217
217
|
[Se, t.value.isEditable]
|
|
218
218
|
]),
|
|
219
|
-
ae.value ? (C(), y(
|
|
219
|
+
ae.value ? (C(), y(D, { key: 1 }, [
|
|
220
220
|
d("main", {
|
|
221
221
|
"aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
|
|
222
222
|
class: "references-rendered"
|
|
223
223
|
}, [
|
|
224
|
-
m(i(
|
|
224
|
+
m(i(Ve), {
|
|
225
225
|
layout: t.value.layout,
|
|
226
226
|
parsedSpec: e.parsedSpec
|
|
227
227
|
}, ge({
|
|
@@ -238,7 +238,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
238
238
|
fn: v(() => {
|
|
239
239
|
var n;
|
|
240
240
|
return [
|
|
241
|
-
m(
|
|
241
|
+
m(Be, {
|
|
242
242
|
theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
|
|
243
243
|
onChangeTheme: a[0] || (a[0] = (g) => e.$emit("changeTheme", g)),
|
|
244
244
|
onLinkSwaggerFile: a[1] || (a[1] = (g) => e.$emit("linkSwaggerFile")),
|
|
@@ -253,9 +253,9 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
|
|
|
253
253
|
], 8, Ze),
|
|
254
254
|
e.$slots.footer ? (C(), y("div", xe, [
|
|
255
255
|
u(e.$slots, "footer", c(p(l.value)), void 0, !0)
|
|
256
|
-
])) :
|
|
257
|
-
], 64)) :
|
|
258
|
-
m(i(
|
|
256
|
+
])) : $("", !0)
|
|
257
|
+
], 64)) : $("", !0),
|
|
258
|
+
m(i(We), {
|
|
259
259
|
configuration: t.value,
|
|
260
260
|
parsedSpec: e.parsedSpec
|
|
261
261
|
}, null, 8, ["configuration", "parsedSpec"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AA0bA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.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-02957b63"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -2,9 +2,9 @@ import { defineComponent as B, ref as N, useId as h, watch as V, computed as F,
|
|
|
2
2
|
import { TabGroup as j, TabList as D, TabPanels as G, TabPanel as M } from "@headlessui/vue";
|
|
3
3
|
import { useWorkspace as O } from "@scalar/api-client/store";
|
|
4
4
|
import { ScalarMarkdown as W, ScalarCodeBlock as q } from "@scalar/components";
|
|
5
|
-
import z from "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
5
|
+
import { useHttpClientStore as z } from "../../../stores/useHttpClientStore.js";
|
|
6
|
+
import J from "./ClientSelector.vue.js";
|
|
7
|
+
import { useFeaturedHttpClients as Q } from "./useFeaturedHttpClients.js";
|
|
8
8
|
const R = { key: 0 }, U = ["id"], Y = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "selected-client card-footer -outline-offset-2",
|
|
@@ -26,7 +26,7 @@ const R = { key: 0 }, U = ["id"], Y = {
|
|
|
26
26
|
getTargetTitle: L,
|
|
27
27
|
httpClient: r,
|
|
28
28
|
setHttpClient: w
|
|
29
|
-
} =
|
|
29
|
+
} = z(), { featuredClients: d, isFeatured: I } = Q(), K = O(), b = N(0), v = h(), g = h();
|
|
30
30
|
V(
|
|
31
31
|
r,
|
|
32
32
|
(a) => {
|
|
@@ -70,7 +70,7 @@ const R = { key: 0 }, U = ["id"], Y = {
|
|
|
70
70
|
class: "client-libraries-list"
|
|
71
71
|
}, {
|
|
72
72
|
default: m(() => [
|
|
73
|
-
i(
|
|
73
|
+
i(J, {
|
|
74
74
|
featured: e(d),
|
|
75
75
|
morePanel: e(g)
|
|
76
76
|
}, null, 8, ["featured", "morePanel"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;CAAE,CAAA;AAE7F;;GAEG;AACH,wBAAgB,sBAAsB;IAwClC,gCAAgC;;IAEhC,mCAAmC;yBANT,eAAe;EAS5C"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31544942"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { defineComponent as F, computed as m, createElementBlock as i, openBlock as
|
|
1
|
+
import { defineComponent as F, computed as m, createElementBlock as i, openBlock as t, Fragment as u, createStaticVNode as G, createElementVNode as A, renderSlot as f, createBlock as a, createCommentVNode as l, unref as r, withCtx as V, createVNode as v, normalizeClass as I, renderList as O } from "vue";
|
|
2
2
|
import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
|
|
3
3
|
import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
4
|
import { ScalarErrorBoundary as J } from "@scalar/components";
|
|
5
5
|
import { getSlugUid as K } from "@scalar/oas-utils/transforms";
|
|
6
6
|
import { useConfig as P } from "../../hooks/useConfig.js";
|
|
7
|
-
import Q from "
|
|
7
|
+
import { useSidebar as Q } from "../../hooks/useSidebar.js";
|
|
8
|
+
import { getModels as S, hasModels as T } from "../../libs/openapi.js";
|
|
9
|
+
import X from "./Lazy/Loading.vue.js";
|
|
8
10
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
11
|
+
import Y from "./Introduction/Introduction.vue.js";
|
|
12
|
+
import Z from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
13
|
+
import _ from "./ClientLibraries/ClientLibraries.vue.js";
|
|
12
14
|
import E from "./Tag/TagList.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import { getModels as S } from "../../helpers/getModels.js";
|
|
18
|
-
import { hasModels as re } from "../../helpers/hasModels.js";
|
|
19
|
-
const se = { class: "narrow-references-container" }, ae = {
|
|
15
|
+
import x from "../../features/Operation/Webhooks.vue.js";
|
|
16
|
+
import ee from "./Models/ModelsAccordion.vue.js";
|
|
17
|
+
import re from "./Models/Models.vue.js";
|
|
18
|
+
const se = { class: "narrow-references-container" }, te = {
|
|
20
19
|
key: 0,
|
|
21
20
|
class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm [--scalar-address-bar-height:0px]"
|
|
22
|
-
},
|
|
21
|
+
}, ae = {
|
|
23
22
|
key: 1,
|
|
24
23
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item"
|
|
25
|
-
},
|
|
24
|
+
}, Ce = /* @__PURE__ */ F({
|
|
26
25
|
__name: "Content",
|
|
27
26
|
props: {
|
|
28
27
|
parsedSpec: {},
|
|
29
28
|
layout: { default: "modern" }
|
|
30
29
|
},
|
|
31
30
|
setup(U) {
|
|
32
|
-
const $ = U, p = P(), { hideModels: M } =
|
|
31
|
+
const $ = U, p = P(), { hideModels: M } = Q(), { collections: B, securitySchemes: N, servers: y } = R(), {
|
|
33
32
|
activeCollection: W,
|
|
34
33
|
activeEnvVariables: L,
|
|
35
34
|
activeEnvironment: j,
|
|
@@ -54,19 +53,19 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
54
53
|
() => $.layout === "classic" ? "after" : "aside"
|
|
55
54
|
);
|
|
56
55
|
return (e, k) => {
|
|
57
|
-
var
|
|
58
|
-
return
|
|
59
|
-
k[0] || (k[0] = G('<div class="section-flare" data-v-
|
|
56
|
+
var g, b, C, w;
|
|
57
|
+
return t(), i(u, null, [
|
|
58
|
+
k[0] || (k[0] = G('<div class="section-flare" data-v-31544942><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div></div>', 1)),
|
|
60
59
|
A("div", se, [
|
|
61
60
|
f(e.$slots, "start", {}, void 0, !0),
|
|
62
|
-
s.value ? (
|
|
61
|
+
s.value ? (t(), a(r(X), {
|
|
63
62
|
key: 0,
|
|
64
63
|
collection: s.value,
|
|
65
64
|
layout: e.layout,
|
|
66
65
|
parsedSpec: e.parsedSpec,
|
|
67
66
|
server: c.value
|
|
68
67
|
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
|
|
69
|
-
(
|
|
68
|
+
(b = (g = e.parsedSpec) == null ? void 0 : g.info) != null && b.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (t(), a(r(Y), {
|
|
70
69
|
key: 1,
|
|
71
70
|
info: e.parsedSpec.info,
|
|
72
71
|
parsedSpec: e.parsedSpec
|
|
@@ -79,13 +78,13 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
79
78
|
A("div", {
|
|
80
79
|
class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
81
80
|
}, [
|
|
82
|
-
(o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (
|
|
83
|
-
v(r(
|
|
81
|
+
(o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (t(), i("div", te, [
|
|
82
|
+
v(r(Z), {
|
|
84
83
|
collection: s.value,
|
|
85
84
|
server: c.value
|
|
86
85
|
}, null, 8, ["collection", "server"])
|
|
87
86
|
])) : l("", !0),
|
|
88
|
-
s.value && r(h) && Object.keys(r(N) ?? {}).length ? (
|
|
87
|
+
s.value && r(h) && Object.keys(r(N) ?? {}).length ? (t(), i("div", ae, [
|
|
89
88
|
v(r(H), {
|
|
90
89
|
collection: s.value,
|
|
91
90
|
envVariables: r(L),
|
|
@@ -98,7 +97,7 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
98
97
|
workspace: r(h)
|
|
99
98
|
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
100
99
|
])) : l("", !0),
|
|
101
|
-
v(r(
|
|
100
|
+
v(r(_), { class: "introduction-card-item scalar-reference-intro-clients" })
|
|
102
101
|
], 2)
|
|
103
102
|
];
|
|
104
103
|
}),
|
|
@@ -107,8 +106,8 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
107
106
|
]),
|
|
108
107
|
_: 2
|
|
109
108
|
}, 1032, ["info", "parsedSpec"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
|
|
110
|
-
e.parsedSpec.tags && s.value ? (
|
|
111
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
109
|
+
e.parsedSpec.tags && s.value ? (t(), i(u, { key: 3 }, [
|
|
110
|
+
e.parsedSpec["x-tagGroups"] ? (t(!0), i(u, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (t(), a(r(E), {
|
|
112
111
|
key: n.name,
|
|
113
112
|
collection: s.value,
|
|
114
113
|
layout: e.layout,
|
|
@@ -118,7 +117,7 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
118
117
|
var d;
|
|
119
118
|
return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === o);
|
|
120
119
|
}).filter((o) => !!o)
|
|
121
|
-
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (
|
|
120
|
+
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(E), {
|
|
122
121
|
key: 1,
|
|
123
122
|
collection: s.value,
|
|
124
123
|
layout: e.layout,
|
|
@@ -128,15 +127,15 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
128
127
|
tags: e.parsedSpec.tags
|
|
129
128
|
}, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
|
|
130
129
|
], 64)) : l("", !0),
|
|
131
|
-
e.parsedSpec.webhooks ? (
|
|
130
|
+
e.parsedSpec.webhooks ? (t(), a(r(x), {
|
|
132
131
|
key: 4,
|
|
133
132
|
webhooks: e.parsedSpec.webhooks
|
|
134
133
|
}, null, 8, ["webhooks"])) : l("", !0),
|
|
135
|
-
r(
|
|
136
|
-
e.layout === "classic" ? (
|
|
134
|
+
r(T)(e.parsedSpec) && !r(M) ? (t(), i(u, { key: 5 }, [
|
|
135
|
+
e.layout === "classic" ? (t(), a(r(ee), {
|
|
137
136
|
key: 0,
|
|
138
137
|
schemas: r(S)(e.parsedSpec)
|
|
139
|
-
}, null, 8, ["schemas"])) : (
|
|
138
|
+
}, null, 8, ["schemas"])) : (t(), a(r(re), {
|
|
140
139
|
key: 1,
|
|
141
140
|
schemas: r(S)(e.parsedSpec)
|
|
142
141
|
}, null, 8, ["schemas"]))
|
|
@@ -148,5 +147,5 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
148
147
|
}
|
|
149
148
|
});
|
|
150
149
|
export {
|
|
151
|
-
|
|
150
|
+
Ce as default
|
|
152
151
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Introduction.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35f3c001"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|