@scalar/api-reference 1.25.122 → 1.25.123
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 +57 -0
- package/dist/blocks/constants.d.ts.map +1 -1
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/browser/standalone.js +21532 -21032
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +0 -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 +27 -23
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +135 -128
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.js +7 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +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 +33 -33
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Introduction/Description.vue2.js +7 -7
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +44 -39
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +65 -59
- 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 +66 -52
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +37 -31
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +1 -0
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +79 -52
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Tag/Tag.vue2.js +29 -26
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +22 -19
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +25 -25
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +6 -6
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +1 -6
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +12 -16
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +21 -0
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +7 -0
- package/dist/components/Section/SectionHeaderTag.vue2.js +18 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +14 -14
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/esm.js +1 -3
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +414 -510
- 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 +20 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +47 -47
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +5 -5
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +74 -60
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +8 -8
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- 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 +26 -47
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- 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 +11 -11
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +80 -69
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +1 -1
- package/dist/features/Search/SearchButton.vue2.js +30 -18
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +104 -95
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +11 -17
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +6 -6
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/isMacOs.d.ts.map +1 -1
- package/dist/helpers/operation.d.ts.map +1 -1
- package/dist/helpers/parse.js +62 -62
- package/dist/helpers/specDownloads.d.ts.map +1 -1
- package/dist/helpers/specHelpers.d.ts.map +1 -1
- package/dist/helpers/waitFor.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +1 -5
- package/dist/hooks/useNavState.d.ts +1 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +3 -10
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +12 -13
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +38 -48
- package/dist/index.js +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +2 -6
- package/dist/legacy/types.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +11 -0
- package/dist/standalone/lib/html-api.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.d.ts +51 -0
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.js +54 -0
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -14
|
@@ -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":"AAyFA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;AAgBF,iBAAS,cAAc;WAgET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAYD,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 _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-498e73bd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useClipboard as
|
|
3
|
-
import
|
|
4
|
-
import { useNavState as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as a, useId as l, openBlock as p, createElementBlock as u, createElementVNode as t, unref as s, renderSlot as c, withModifiers as m, createVNode as f, withCtx as b, createTextVNode as _ } from "vue";
|
|
2
|
+
import { useClipboard as y } from "@scalar/use-hooks/useClipboard";
|
|
3
|
+
import C from "../ScreenReader.vue.js";
|
|
4
|
+
import { useNavState as h } from "../../hooks/useNavState.js";
|
|
5
|
+
const k = { class: "label" }, N = ["id"], v = { class: "anchor" }, I = ["aria-describedby"], E = /* @__PURE__ */ a({
|
|
6
6
|
__name: "Anchor",
|
|
7
7
|
props: {
|
|
8
8
|
id: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const { copyToClipboard:
|
|
12
|
-
return (o,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
setup(S) {
|
|
11
|
+
const n = l(), { copyToClipboard: r } = y(), { getHashedUrl: d } = h(), i = (o) => d(o);
|
|
12
|
+
return (o, e) => (p(), u("span", k, [
|
|
13
|
+
t("span", {
|
|
14
|
+
id: s(n),
|
|
15
|
+
class: "contents"
|
|
16
|
+
}, [
|
|
17
|
+
c(o.$slots, "default", {}, void 0, !0)
|
|
18
|
+
], 8, N),
|
|
19
|
+
t("span", v, [
|
|
20
|
+
e[3] || (e[3] = t("span", null, "", -1)),
|
|
21
|
+
t("button", {
|
|
22
|
+
"aria-describedby": s(n),
|
|
17
23
|
class: "anchor-copy",
|
|
18
24
|
type: "button",
|
|
19
|
-
onClick:
|
|
25
|
+
onClick: e[0] || (e[0] = m((V) => s(r)(i(o.id)), ["stop"]))
|
|
20
26
|
}, [
|
|
21
|
-
|
|
22
|
-
f(
|
|
23
|
-
default:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
]),
|
|
28
|
-
_: 3
|
|
27
|
+
e[2] || (e[2] = t("span", { "aria-hidden": "true" }, "#", -1)),
|
|
28
|
+
f(C, null, {
|
|
29
|
+
default: b(() => e[1] || (e[1] = [
|
|
30
|
+
_("Copy link")
|
|
31
|
+
])),
|
|
32
|
+
_: 1
|
|
29
33
|
})
|
|
30
|
-
])
|
|
34
|
+
], 8, I)
|
|
31
35
|
])
|
|
32
36
|
]));
|
|
33
37
|
}
|
|
34
38
|
});
|
|
35
39
|
export {
|
|
36
|
-
|
|
40
|
+
E as default
|
|
37
41
|
};
|
|
@@ -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":"AA8nBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAuBvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA2RxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA1fZ,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;;;;;;EA+f/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAxiBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA+iB9D,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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6712abf1"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default
|
|
8
8
|
};
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { defineComponent as se, ref as $, computed as v, onBeforeMount as M, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ce, useSSRContext as ue, getCurrentInstance as fe, provide as b, openBlock as w, createElementBlock as y, Fragment as D, createElementVNode as d, normalizeClass as pe, unref as s, normalizeStyle as me, renderSlot as c, normalizeProps as u, guardReactiveProps as f, createVNode as p, withCtx as m, createCommentVNode as E, withDirectives as ge, vShow as Se, createSlots as he } from "vue";
|
|
2
|
+
import { provideUseId as ve } from "@headlessui/vue";
|
|
3
|
+
import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
|
|
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 $e, ScalarErrorBoundary as Re } from "@scalar/components";
|
|
6
|
+
import { defaultStateFactory as H } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { hasObtrusiveScrollbars as Ee, getThemeStyles as Ie } from "@scalar/themes";
|
|
8
|
+
import { useToasts as Oe, ScalarToasts as ke } from "@scalar/use-toasts";
|
|
9
|
+
import { useMediaQuery as Ae, useResizeObserver as Be, useDebounceFn as Fe } from "@vueuse/core";
|
|
10
|
+
import { CONFIGURATION_SYMBOL as Le } from "../hooks/useConfig.js";
|
|
11
|
+
import { useHttpClientStore as Pe } from "../stores/useHttpClientStore.js";
|
|
12
12
|
import Me from "./GettingStarted.vue.js";
|
|
13
|
-
import { downloadSpecBus as
|
|
14
|
-
import { useDeprecationWarnings as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { useSidebar as
|
|
19
|
-
import { useNavState as
|
|
20
|
-
import { sleep as
|
|
21
|
-
const
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "references-navigation t-doc__sidebar"
|
|
24
|
-
}, je = { class: "references-navigation-list" }, Qe = { class: "references-editor" }, qe = { class: "references-editor-textarea" }, Je = ["aria-label"], Xe = {
|
|
13
|
+
import { downloadSpecBus as U, downloadSpecFile as De } from "../helpers/specDownloads.js";
|
|
14
|
+
import { useDeprecationWarnings as He } from "../hooks/useDeprecationWarnings.js";
|
|
15
|
+
import Ue from "./Sidebar/Sidebar.vue.js";
|
|
16
|
+
import Ne from "./Content/Content.vue.js";
|
|
17
|
+
import Ye from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
18
|
+
import { useSidebar as ze } from "../hooks/useSidebar.js";
|
|
19
|
+
import { useNavState as Ve } from "../hooks/useNavState.js";
|
|
20
|
+
import { sleep as We } from "../helpers/sleep.js";
|
|
21
|
+
const Ge = ["innerHTML"], Ke = { class: "references-header" }, je = ["aria-label"], Qe = { class: "references-navigation-list" }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
|
|
25
22
|
key: 0,
|
|
26
23
|
class: "references-footer"
|
|
27
|
-
},
|
|
24
|
+
}, vt = /* @__PURE__ */ se({
|
|
28
25
|
inheritAttrs: !1,
|
|
29
26
|
__name: "ApiReferenceLayout",
|
|
30
27
|
props: {
|
|
@@ -33,100 +30,106 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
|
33
30
|
rawSpec: {}
|
|
34
31
|
},
|
|
35
32
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
36
|
-
setup(
|
|
37
|
-
const o =
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
setup(N) {
|
|
34
|
+
const o = N, { initializeToasts: Y, toast: z } = Oe();
|
|
35
|
+
Y((e) => z(e));
|
|
36
|
+
const V = Ae("(min-width: 1150px)"), W = $("100dvh"), g = $(null);
|
|
37
|
+
Be(g, (e) => {
|
|
38
|
+
W.value = e[0].contentRect.height + "px";
|
|
42
39
|
});
|
|
43
|
-
const
|
|
44
|
-
breadcrumb:
|
|
45
|
-
collapsedSidebarItems:
|
|
46
|
-
isSidebarOpen:
|
|
47
|
-
setCollapsedSidebarItem:
|
|
48
|
-
hideModels:
|
|
49
|
-
defaultOpenAllTags:
|
|
50
|
-
setParsedSpec:
|
|
51
|
-
scrollToOperation:
|
|
52
|
-
} =
|
|
53
|
-
getReferenceHash:
|
|
54
|
-
getPathRoutingId:
|
|
55
|
-
getSectionId:
|
|
56
|
-
getTagId:
|
|
57
|
-
hash:
|
|
58
|
-
isIntersectionEnabled:
|
|
59
|
-
pathRouting:
|
|
60
|
-
updateHash:
|
|
61
|
-
replaceUrlState:
|
|
62
|
-
} =
|
|
63
|
-
|
|
64
|
-
|
|
40
|
+
const G = v(Ee), {
|
|
41
|
+
breadcrumb: K,
|
|
42
|
+
collapsedSidebarItems: h,
|
|
43
|
+
isSidebarOpen: j,
|
|
44
|
+
setCollapsedSidebarItem: I,
|
|
45
|
+
hideModels: Q,
|
|
46
|
+
defaultOpenAllTags: q,
|
|
47
|
+
setParsedSpec: J,
|
|
48
|
+
scrollToOperation: X
|
|
49
|
+
} = ze(), {
|
|
50
|
+
getReferenceHash: Z,
|
|
51
|
+
getPathRoutingId: O,
|
|
52
|
+
getSectionId: _,
|
|
53
|
+
getTagId: x,
|
|
54
|
+
hash: ee,
|
|
55
|
+
isIntersectionEnabled: k,
|
|
56
|
+
pathRouting: C,
|
|
57
|
+
updateHash: A,
|
|
58
|
+
replaceUrlState: te
|
|
59
|
+
} = Ve();
|
|
60
|
+
if (o.configuration.pathRouting && (C.value = o.configuration.pathRouting), o.configuration.redirect && typeof window < "u") {
|
|
61
|
+
const e = o.configuration.redirect(
|
|
62
|
+
(C.value ? window.location.pathname : "") + window.location.hash
|
|
63
|
+
);
|
|
64
|
+
e && history.replaceState({}, "", e);
|
|
65
|
+
}
|
|
66
|
+
M(() => A());
|
|
67
|
+
const B = async (e) => {
|
|
65
68
|
var t;
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
M(() =>
|
|
69
|
+
k.value = !1, A(), e ? X(e) : (t = g.value) == null || t.scrollTo(0, 0), await We(100), k.value = !0;
|
|
70
|
+
}, F = $(0);
|
|
71
|
+
M(() => $e()), le(() => {
|
|
69
72
|
var r, a, n;
|
|
70
|
-
history.scrollRestoration = "manual",
|
|
71
|
-
|
|
73
|
+
history.scrollRestoration = "manual", U.on(({ specTitle: i }) => {
|
|
74
|
+
De(o.rawSpec, i);
|
|
72
75
|
});
|
|
73
76
|
const e = (a = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), t = (n = g.value) == null ? void 0 : n.getBoundingClientRect();
|
|
74
77
|
if (e && t) {
|
|
75
78
|
const i = t.top - e.top;
|
|
76
|
-
|
|
79
|
+
F.value = i < 2 ? 0 : i;
|
|
77
80
|
}
|
|
78
81
|
window.onhashchange = () => {
|
|
79
|
-
|
|
80
|
-
}, window.onpopstate = () =>
|
|
82
|
+
B(Z());
|
|
83
|
+
}, window.onpopstate = () => C.value && B(O(window.location.pathname));
|
|
81
84
|
});
|
|
82
|
-
const
|
|
83
|
-
() =>
|
|
84
|
-
),
|
|
85
|
+
const oe = v(
|
|
86
|
+
() => V.value || !o.configuration.isEditable
|
|
87
|
+
), L = Fe((e) => {
|
|
85
88
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
86
89
|
const r = o.configuration.pathRouting ? o.configuration.pathRouting.basePath : window.location.pathname;
|
|
87
|
-
|
|
90
|
+
te("", r + window.location.search);
|
|
88
91
|
}
|
|
89
|
-
}), l =
|
|
90
|
-
breadcrumb:
|
|
92
|
+
}), l = v(() => ({
|
|
93
|
+
breadcrumb: K.value,
|
|
91
94
|
spec: o.parsedSpec
|
|
92
95
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}),
|
|
96
|
+
de(() => {
|
|
97
|
+
U.reset();
|
|
98
|
+
}), R(() => o.parsedSpec, J, { deep: !0 }), ce(() => {
|
|
96
99
|
var t, r;
|
|
97
|
-
const e =
|
|
98
|
-
if (e && (e.payload || (e.payload = { data:
|
|
99
|
-
const a =
|
|
100
|
-
|
|
101
|
-
for (const n in
|
|
102
|
-
Object.hasOwn(
|
|
100
|
+
const e = ue();
|
|
101
|
+
if (e && (e.payload || (e.payload = { data: H() }), (t = e.payload).data || (t.data = H()), o.configuration.pathRouting)) {
|
|
102
|
+
const a = O(e.url);
|
|
103
|
+
ee.value = a, e.payload.data.hash = a;
|
|
104
|
+
for (const n in h)
|
|
105
|
+
Object.hasOwn(h, n) && delete h[n];
|
|
103
106
|
if (a)
|
|
104
|
-
|
|
107
|
+
I(_(a), !0);
|
|
105
108
|
else {
|
|
106
109
|
const n = (r = o.parsedSpec.tags) == null ? void 0 : r[0];
|
|
107
|
-
n &&
|
|
110
|
+
n && I(x(n), !0);
|
|
108
111
|
}
|
|
109
|
-
e.payload.data["useSidebarContent-collapsedSidebarItems"] =
|
|
112
|
+
e.payload.data["useSidebarContent-collapsedSidebarItems"] = h;
|
|
110
113
|
}
|
|
111
|
-
}),
|
|
114
|
+
}), ve(() => {
|
|
112
115
|
var a;
|
|
113
|
-
const e =
|
|
116
|
+
const e = fe(), t = "scalar-instance-id";
|
|
114
117
|
if (!e) return t;
|
|
115
118
|
let r = e.uid;
|
|
116
119
|
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(t)), `${t}-${r}`;
|
|
117
120
|
});
|
|
118
|
-
const
|
|
121
|
+
const T = we({
|
|
119
122
|
proxyUrl: o.configuration.proxyUrl || o.configuration.proxy,
|
|
120
123
|
themeId: o.configuration.theme,
|
|
121
124
|
useLocalStorage: !1,
|
|
122
125
|
hideClientButton: o.configuration.hideClientButton,
|
|
123
126
|
integration: o.configuration._integration
|
|
124
127
|
});
|
|
125
|
-
|
|
128
|
+
R(
|
|
126
129
|
() => o.rawSpec,
|
|
127
130
|
(e) => {
|
|
128
131
|
var t;
|
|
129
|
-
return e &&
|
|
132
|
+
return e && T.importSpecFile(e, "default", {
|
|
130
133
|
shouldLoad: !1,
|
|
131
134
|
documentUrl: (t = o.configuration.spec) == null ? void 0 : t.url,
|
|
132
135
|
setCollectionSecurity: !0,
|
|
@@ -134,11 +137,11 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
|
134
137
|
});
|
|
135
138
|
},
|
|
136
139
|
{ immediate: !0 }
|
|
137
|
-
),
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
), b(ye, T);
|
|
141
|
+
const re = Ce(T);
|
|
142
|
+
b(Te, re), b(be, "modal"), b(Le, o.configuration ?? {});
|
|
143
|
+
function P(e, t) {
|
|
144
|
+
R(
|
|
142
145
|
() => o.configuration[e],
|
|
143
146
|
(r) => {
|
|
144
147
|
typeof r < "u" && t(r);
|
|
@@ -146,45 +149,49 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
|
146
149
|
{ immediate: !0 }
|
|
147
150
|
);
|
|
148
151
|
}
|
|
149
|
-
const { setExcludedClients:
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
+
const { setExcludedClients: ae, setDefaultHttpClient: ne } = Pe();
|
|
153
|
+
P("defaultHttpClient", ne), P("hiddenClients", ae), Q.value = o.configuration.hideModels ?? !1, q.value = o.configuration.defaultOpenAllTags ?? !1, He(o.configuration);
|
|
154
|
+
const ie = v(
|
|
152
155
|
() => `<style>
|
|
153
|
-
${
|
|
156
|
+
${Ie(o.configuration.theme, {
|
|
154
157
|
fonts: o.configuration.withDefaultFonts
|
|
155
158
|
})}</style>`
|
|
156
159
|
);
|
|
157
160
|
return (e, t) => {
|
|
158
|
-
var r, a;
|
|
159
|
-
return
|
|
160
|
-
d("div", { innerHTML:
|
|
161
|
+
var r, a, n;
|
|
162
|
+
return w(), y(D, null, [
|
|
163
|
+
d("div", { innerHTML: ie.value }, null, 8, Ge),
|
|
161
164
|
d("div", {
|
|
162
165
|
ref_key: "documentEl",
|
|
163
166
|
ref: g,
|
|
164
|
-
class:
|
|
167
|
+
class: pe(["scalar-app scalar-api-reference references-layout", [
|
|
165
168
|
{
|
|
166
|
-
"scalar-scrollbars-obtrusive":
|
|
169
|
+
"scalar-scrollbars-obtrusive": G.value,
|
|
167
170
|
"references-editable": e.configuration.isEditable,
|
|
168
171
|
"references-sidebar": e.configuration.showSidebar,
|
|
169
|
-
"references-sidebar-mobile-open": s(
|
|
172
|
+
"references-sidebar-mobile-open": s(j),
|
|
170
173
|
"references-classic": e.configuration.layout === "classic"
|
|
171
174
|
},
|
|
172
175
|
e.$attrs.class
|
|
173
176
|
]]),
|
|
174
|
-
style:
|
|
175
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
177
|
+
style: me({
|
|
178
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
|
|
176
179
|
}),
|
|
177
180
|
onScrollPassive: t[4] || (t[4] = //@ts-ignore
|
|
178
|
-
(...
|
|
181
|
+
(...i) => s(L) && s(L)(...i))
|
|
179
182
|
}, [
|
|
180
|
-
d("div",
|
|
183
|
+
d("div", Ke, [
|
|
181
184
|
c(e.$slots, "header", u(f(l.value)), void 0, !0)
|
|
182
185
|
]),
|
|
183
|
-
e.configuration.showSidebar ? (
|
|
184
|
-
|
|
186
|
+
e.configuration.showSidebar ? (w(), y("aside", {
|
|
187
|
+
key: 0,
|
|
188
|
+
"aria-label": `Sidebar for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
|
|
189
|
+
class: "references-navigation t-doc__sidebar"
|
|
190
|
+
}, [
|
|
191
|
+
d("div", Qe, [
|
|
185
192
|
p(s(Re), null, {
|
|
186
193
|
default: m(() => [
|
|
187
|
-
p(s(
|
|
194
|
+
p(s(Ue), {
|
|
188
195
|
operationsSorter: e.configuration.operationsSorter,
|
|
189
196
|
parsedSpec: e.parsedSpec,
|
|
190
197
|
tagsSorter: e.configuration.tagsSorter
|
|
@@ -201,23 +208,23 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
|
201
208
|
_: 3
|
|
202
209
|
})
|
|
203
210
|
])
|
|
204
|
-
])) :
|
|
205
|
-
|
|
206
|
-
d("div",
|
|
211
|
+
], 8, je)) : E("", !0),
|
|
212
|
+
ge(d("div", qe, [
|
|
213
|
+
d("div", Je, [
|
|
207
214
|
c(e.$slots, "editor", u(f(l.value)), void 0, !0)
|
|
208
215
|
])
|
|
209
216
|
], 512), [
|
|
210
|
-
[
|
|
217
|
+
[Se, e.configuration.isEditable]
|
|
211
218
|
]),
|
|
212
|
-
|
|
213
|
-
d("
|
|
214
|
-
"aria-label": `Open API Documentation for ${(
|
|
219
|
+
oe.value ? (w(), y(D, { key: 1 }, [
|
|
220
|
+
d("main", {
|
|
221
|
+
"aria-label": `Open API Documentation for ${(a = e.parsedSpec.info) == null ? void 0 : a.title}`,
|
|
215
222
|
class: "references-rendered"
|
|
216
223
|
}, [
|
|
217
|
-
p(s(
|
|
224
|
+
p(s(Ne), {
|
|
218
225
|
layout: e.configuration.layout,
|
|
219
226
|
parsedSpec: e.parsedSpec
|
|
220
|
-
},
|
|
227
|
+
}, he({
|
|
221
228
|
start: m(() => [
|
|
222
229
|
c(e.$slots, "content-start", u(f(l.value)), void 0, !0)
|
|
223
230
|
]),
|
|
@@ -226,35 +233,35 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
|
226
233
|
]),
|
|
227
234
|
_: 2
|
|
228
235
|
}, [
|
|
229
|
-
(
|
|
236
|
+
(n = e.configuration) != null && n.isEditable ? {
|
|
230
237
|
name: "empty-state",
|
|
231
238
|
fn: m(() => {
|
|
232
|
-
var
|
|
239
|
+
var i;
|
|
233
240
|
return [
|
|
234
241
|
p(Me, {
|
|
235
|
-
theme: ((
|
|
236
|
-
onChangeTheme: t[0] || (t[0] = (
|
|
237
|
-
onLinkSwaggerFile: t[1] || (t[1] = (
|
|
238
|
-
onLoadSwaggerFile: t[2] || (t[2] = (
|
|
239
|
-
onUpdateContent: t[3] || (t[3] = (
|
|
242
|
+
theme: ((i = e.configuration) == null ? void 0 : i.theme) || "default",
|
|
243
|
+
onChangeTheme: t[0] || (t[0] = (S) => e.$emit("changeTheme", S)),
|
|
244
|
+
onLinkSwaggerFile: t[1] || (t[1] = (S) => e.$emit("linkSwaggerFile")),
|
|
245
|
+
onLoadSwaggerFile: t[2] || (t[2] = (S) => e.$emit("loadSwaggerFile")),
|
|
246
|
+
onUpdateContent: t[3] || (t[3] = (S) => e.$emit("updateContent", S))
|
|
240
247
|
}, null, 8, ["theme"])
|
|
241
248
|
];
|
|
242
249
|
}),
|
|
243
250
|
key: "0"
|
|
244
251
|
} : void 0
|
|
245
252
|
]), 1032, ["layout", "parsedSpec"])
|
|
246
|
-
], 8,
|
|
247
|
-
e.$slots.footer ? (
|
|
253
|
+
], 8, Xe),
|
|
254
|
+
e.$slots.footer ? (w(), y("div", Ze, [
|
|
248
255
|
c(e.$slots, "footer", u(f(l.value)), void 0, !0)
|
|
249
|
-
])) :
|
|
250
|
-
], 64)) :
|
|
251
|
-
p(s(
|
|
256
|
+
])) : E("", !0)
|
|
257
|
+
], 64)) : E("", !0),
|
|
258
|
+
p(s(Ye), { configuration: e.configuration }, null, 8, ["configuration"])
|
|
252
259
|
], 38),
|
|
253
|
-
p(s(
|
|
260
|
+
p(s(ke))
|
|
254
261
|
], 64);
|
|
255
262
|
};
|
|
256
263
|
}
|
|
257
264
|
});
|
|
258
265
|
export {
|
|
259
|
-
|
|
266
|
+
vt as default
|
|
260
267
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.vue"],"names":[],"mappings":"AA4CA,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as t, renderSlot as
|
|
1
|
+
import { openBlock as r, createElementBlock as t, renderSlot as c } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
return r(), t("div",
|
|
7
|
-
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const d = {}, n = { class: "scalar-card" };
|
|
5
|
+
function s(e, a) {
|
|
6
|
+
return r(), t("div", n, [
|
|
7
|
+
c(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const i = /* @__PURE__ */
|
|
10
|
+
const i = /* @__PURE__ */ o(d, [["render", s], ["__scopeId", "data-v-0cd98c35"]]);
|
|
11
11
|
export {
|
|
12
12
|
i as default
|
|
13
13
|
};
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d826575d"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAkPA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAkPA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AA8BJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7RR,QAAQ,GAAG,SAAS;6EAoS/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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c18ef22"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
f as default
|
|
8
8
|
};
|