@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 +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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
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":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA8RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA6MF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.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-502b1c76"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAyDJ,iBAAS,cAAc;WA+NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7TR,QAAQ,GAAG,SAAS;6EAoU/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 "./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
|
};
|