@scalar/api-reference 1.28.5 → 1.28.7
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 +41 -0
- package/dist/browser/standalone.js +6284 -6218
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +26 -15
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +128 -129
- 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/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +57 -55
- 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/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +24 -24
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +4 -2
- 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 +18 -17
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +4 -4
- package/dist/components/Content/Schema/Schema.vue2.js +79 -67
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +143 -141
- 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 +83 -99
- package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +41 -36
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +38 -36
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
- 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 +2 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarElement.vue2.js +40 -39
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
- 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 +2 -1
- 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 +2 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +6 -8
- package/dist/features/Operation/Operation.vue.d.ts +2 -0
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +13 -10
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
- 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 +20 -18
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
- 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 +20 -18
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +2 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
- 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 +29 -24
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
- 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 +66 -56
- 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 +2 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +9 -9
- package/dist/helpers/index.d.ts +4 -4
- package/dist/helpers/scrollToId.d.ts.map +1 -1
- package/dist/helpers/specHelpers.js +15 -14
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +7 -2
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +43 -33
- package/dist/hooks/useNavState.d.ts +13 -4
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +52 -47
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +3 -2
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -76
- package/dist/libs/operation.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +4 -4
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -10
- package/dist/helpers/getVariableNames.js +0 -7
- package/dist/helpers/hasSecuritySchemes.js +0 -7
- package/dist/helpers/mapFromObject.js +0 -7
- package/dist/helpers/mergeAllObjects.js +0 -7
- package/dist/hooks/useClientStore.d.ts +0 -2
- package/dist/hooks/useClientStore.d.ts.map +0 -1
- package/dist/hooks/useClientStore.js +0 -5
- package/dist/hooks/useRefOnMount.d.ts +0 -6
- package/dist/hooks/useRefOnMount.d.ts.map +0 -1
- package/dist/hooks/useRefOnMount.js +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EACV,yBAAyB,EACzB,oCAAoC,EACrC,MAAM,6BAA6B,CAAA;AAUpC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EACV,OAAO,CAAC,yBAAyB,CAAC,GAClC,OAAO,CAAC,yBAAyB,CAAC,EAAE,GACpC,OAAO,CAAC,oCAAoC,CAAC,CAAA;CAClD,CAAC;;AA4FF,wBAOG"}
|
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as u, toRef as p, ref as n, provide as d, openBlock as _, createBlock as h, unref as e, withCtx as g, createVNode as x, isRef as V } from "vue";
|
|
2
|
+
import b from "./SingleApiReference.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { useMultipleDocuments as
|
|
5
|
-
import
|
|
6
|
-
|
|
4
|
+
import { useMultipleDocuments as v } from "../hooks/useMultipleDocuments.js";
|
|
5
|
+
import { NAV_STATE_SYMBOL as A } from "../hooks/useNavState.js";
|
|
6
|
+
import B from "./DocumentSelector/DocumentSelector.vue.js";
|
|
7
|
+
const N = /* @__PURE__ */ u({
|
|
7
8
|
__name: "ApiReference",
|
|
8
9
|
props: {
|
|
9
10
|
configuration: {}
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
setup(i) {
|
|
13
|
+
const r = i, {
|
|
14
|
+
availableDocuments: a,
|
|
15
|
+
selectedConfiguration: s,
|
|
16
|
+
selectedDocumentIndex: o,
|
|
17
|
+
isIntersectionEnabled: c,
|
|
18
|
+
hash: f,
|
|
19
|
+
hashPrefix: l
|
|
20
|
+
} = v({
|
|
21
|
+
configuration: p(r, "configuration"),
|
|
22
|
+
isIntersectionEnabled: n(!1),
|
|
23
|
+
hash: n(""),
|
|
24
|
+
hashPrefix: n("")
|
|
14
25
|
});
|
|
15
|
-
return (
|
|
16
|
-
"document-selector":
|
|
17
|
-
|
|
18
|
-
modelValue: o
|
|
19
|
-
"onUpdate:modelValue":
|
|
20
|
-
options:
|
|
26
|
+
return d(A, { isIntersectionEnabled: c, hash: f, hashPrefix: l }), (C, t) => (_(), h(b, { configuration: e(s) }, {
|
|
27
|
+
"document-selector": g(() => [
|
|
28
|
+
x(e(B), {
|
|
29
|
+
modelValue: e(o),
|
|
30
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => V(o) ? o.value = m : null),
|
|
31
|
+
options: e(a)
|
|
21
32
|
}, null, 8, ["modelValue", "options"])
|
|
22
33
|
]),
|
|
23
34
|
_: 1
|
|
@@ -25,5 +36,5 @@ const B = /* @__PURE__ */ a({
|
|
|
25
36
|
}
|
|
26
37
|
});
|
|
27
38
|
export {
|
|
28
|
-
|
|
39
|
+
N as default
|
|
29
40
|
};
|
|
@@ -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":"AAqnBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA+QxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA1eZ,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+e/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA7hBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAoiB9D,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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-afcca023"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as default
|
|
8
8
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { LAYOUT_SYMBOL as
|
|
4
|
-
import { createWorkspaceStore as
|
|
5
|
-
import { addScalarClassesToHeadless as $e, ScalarErrorBoundary as
|
|
6
|
-
import { defaultStateFactory as
|
|
7
|
-
import { hasObtrusiveScrollbars as
|
|
8
|
-
import { apiReferenceConfigurationSchema as
|
|
9
|
-
import { useToasts as
|
|
10
|
-
import { useMediaQuery as
|
|
11
|
-
import
|
|
12
|
-
import { CONFIGURATION_SYMBOL as
|
|
13
|
-
import { useHttpClientStore as
|
|
14
|
-
import { downloadSpecBus as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { useSidebar as
|
|
19
|
-
import { useNavState as
|
|
20
|
-
import { sleep as
|
|
21
|
-
const
|
|
1
|
+
import { defineComponent as ie, computed as g, ref as $, onBeforeMount as A, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as w, openBlock as y, createElementBlock as C, Fragment as H, createElementVNode as d, normalizeClass as fe, unref as i, normalizeStyle as me, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as v, createCommentVNode as E, withDirectives as ve, vShow as Se, createSlots as he } from "vue";
|
|
2
|
+
import { provideUseId as ge } 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 D } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
|
|
8
|
+
import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
|
|
9
|
+
import { useToasts as ke, ScalarToasts as Fe } from "@scalar/use-toasts";
|
|
10
|
+
import { useMediaQuery as Le, useResizeObserver as Pe, useDebounceFn as Me } from "@vueuse/core";
|
|
11
|
+
import Be from "./GettingStarted.vue.js";
|
|
12
|
+
import { CONFIGURATION_SYMBOL as Ae } from "../hooks/useConfig.js";
|
|
13
|
+
import { useHttpClientStore as He } from "../stores/useHttpClientStore.js";
|
|
14
|
+
import { downloadSpecBus as _, downloadSpecFile as De } from "../helpers/specDownloads.js";
|
|
15
|
+
import _e from "./Sidebar/Sidebar.vue.js";
|
|
16
|
+
import Ne from "./Content/Content.vue.js";
|
|
17
|
+
import Ue from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
18
|
+
import { useSidebar as ze } from "../hooks/useSidebar.js";
|
|
19
|
+
import { useNavState as Ye } from "../hooks/useNavState.js";
|
|
20
|
+
import { sleep as Ve } from "../helpers/sleep.js";
|
|
21
|
+
const Ge = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label"], Ke = { class: "references-navigation-list" }, Qe = { class: "references-editor" }, qe = { class: "references-editor-textarea" }, Je = ["aria-label"], Xe = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "references-footer"
|
|
24
|
-
},
|
|
24
|
+
}, gt = /* @__PURE__ */ ie({
|
|
25
25
|
inheritAttrs: !1,
|
|
26
26
|
__name: "ApiReferenceLayout",
|
|
27
27
|
props: {
|
|
@@ -30,99 +30,98 @@ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label
|
|
|
30
30
|
rawSpec: {}
|
|
31
31
|
},
|
|
32
32
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
() =>
|
|
36
|
-
), { initializeToasts:
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
setup(N) {
|
|
34
|
+
const f = N, t = g(
|
|
35
|
+
() => Ie.parse(f.configuration)
|
|
36
|
+
), { initializeToasts: U, toast: z } = ke();
|
|
37
|
+
U((e) => z(e));
|
|
38
|
+
const Y = Le("(min-width: 1150px)"), V = $("100dvh"), S = $(null);
|
|
39
|
+
Pe(S, (e) => {
|
|
40
|
+
V.value = e[0].contentRect.height + "px";
|
|
41
41
|
});
|
|
42
|
-
const
|
|
43
|
-
breadcrumb:
|
|
42
|
+
const G = g(Ee), {
|
|
43
|
+
breadcrumb: W,
|
|
44
44
|
collapsedSidebarItems: b,
|
|
45
|
-
isSidebarOpen:
|
|
46
|
-
setCollapsedSidebarItem:
|
|
47
|
-
hideModels:
|
|
48
|
-
defaultOpenAllTags:
|
|
49
|
-
setParsedSpec:
|
|
50
|
-
scrollToOperation:
|
|
51
|
-
} =
|
|
52
|
-
getReferenceHash:
|
|
53
|
-
getPathRoutingId:
|
|
54
|
-
getSectionId:
|
|
55
|
-
getTagId:
|
|
56
|
-
hash:
|
|
57
|
-
isIntersectionEnabled:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(T.value ? window.location.pathname : "") + window.location.hash
|
|
45
|
+
isSidebarOpen: j,
|
|
46
|
+
setCollapsedSidebarItem: O,
|
|
47
|
+
hideModels: K,
|
|
48
|
+
defaultOpenAllTags: Q,
|
|
49
|
+
setParsedSpec: q,
|
|
50
|
+
scrollToOperation: J
|
|
51
|
+
} = ze(), {
|
|
52
|
+
getReferenceHash: X,
|
|
53
|
+
getPathRoutingId: I,
|
|
54
|
+
getSectionId: Z,
|
|
55
|
+
getTagId: x,
|
|
56
|
+
hash: ee,
|
|
57
|
+
isIntersectionEnabled: k,
|
|
58
|
+
updateHash: F,
|
|
59
|
+
replaceUrlState: te
|
|
60
|
+
} = Ye();
|
|
61
|
+
if (t.value.redirect && typeof window < "u") {
|
|
62
|
+
const e = t.value.redirect(
|
|
63
|
+
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
65
64
|
);
|
|
66
65
|
e && history.replaceState({}, "", e);
|
|
67
66
|
}
|
|
68
|
-
|
|
69
|
-
const
|
|
67
|
+
A(() => F());
|
|
68
|
+
const L = async (e) => {
|
|
70
69
|
var a;
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
70
|
+
k.value = !1, F(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await Ve(100), k.value = !0;
|
|
71
|
+
}, P = $(0);
|
|
72
|
+
A(() => $e()), le(() => {
|
|
74
73
|
var o, s, r;
|
|
75
|
-
history.scrollRestoration = "manual",
|
|
76
|
-
|
|
74
|
+
history.scrollRestoration = "manual", _.on(({ specTitle: n }) => {
|
|
75
|
+
De(f.rawSpec, n);
|
|
77
76
|
});
|
|
78
77
|
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();
|
|
79
78
|
if (e && a) {
|
|
80
79
|
const n = a.top - e.top;
|
|
81
|
-
|
|
80
|
+
P.value = n < 2 ? 0 : n;
|
|
82
81
|
}
|
|
83
82
|
window.onhashchange = () => {
|
|
84
|
-
|
|
85
|
-
}, window.onpopstate = () =>
|
|
83
|
+
L(X());
|
|
84
|
+
}, window.onpopstate = () => t.value.pathRouting && L(I(window.location.pathname));
|
|
86
85
|
});
|
|
87
|
-
const
|
|
88
|
-
() =>
|
|
89
|
-
),
|
|
86
|
+
const ae = g(
|
|
87
|
+
() => Y.value || !t.value.isEditable
|
|
88
|
+
), M = Me((e) => {
|
|
90
89
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
91
90
|
const o = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
|
|
92
|
-
|
|
91
|
+
te("", o + window.location.search);
|
|
93
92
|
}
|
|
94
|
-
}),
|
|
95
|
-
breadcrumb:
|
|
96
|
-
spec:
|
|
93
|
+
}), l = g(() => ({
|
|
94
|
+
breadcrumb: W.value,
|
|
95
|
+
spec: f.parsedSpec
|
|
97
96
|
}));
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}),
|
|
97
|
+
de(() => {
|
|
98
|
+
_.reset();
|
|
99
|
+
}), R(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
|
|
101
100
|
var a, o;
|
|
102
|
-
const e =
|
|
103
|
-
if (e && (e.payload || (e.payload = { data:
|
|
104
|
-
const s =
|
|
105
|
-
|
|
101
|
+
const e = ce();
|
|
102
|
+
if (e && (e.payload || (e.payload = { data: D() }), (a = e.payload).data || (a.data = D()), t.value.pathRouting)) {
|
|
103
|
+
const s = I(e.url);
|
|
104
|
+
ee.value = s, e.payload.data.hash = s;
|
|
106
105
|
for (const r in b)
|
|
107
106
|
Object.hasOwn(b, r) && delete b[r];
|
|
108
107
|
if (s)
|
|
109
|
-
|
|
108
|
+
O(Z(s), !0);
|
|
110
109
|
else {
|
|
111
|
-
const r = (o =
|
|
112
|
-
r &&
|
|
110
|
+
const r = (o = f.parsedSpec.tags) == null ? void 0 : o[0];
|
|
111
|
+
r && O(x(r), !0);
|
|
113
112
|
}
|
|
114
113
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = b;
|
|
115
114
|
}
|
|
116
|
-
}),
|
|
117
|
-
const
|
|
115
|
+
}), ge(() => pe());
|
|
116
|
+
const T = we({
|
|
118
117
|
useLocalStorage: !1,
|
|
119
118
|
...t.value
|
|
120
119
|
});
|
|
121
|
-
|
|
122
|
-
() =>
|
|
120
|
+
R(
|
|
121
|
+
() => f.rawSpec,
|
|
123
122
|
(e) => {
|
|
124
123
|
var a;
|
|
125
|
-
return e &&
|
|
124
|
+
return e && T.importSpecFile(e, "default", {
|
|
126
125
|
shouldLoad: !1,
|
|
127
126
|
documentUrl: (a = t.value.spec) == null ? void 0 : a.url,
|
|
128
127
|
setCollectionSecurity: !0,
|
|
@@ -130,11 +129,11 @@ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label
|
|
|
130
129
|
});
|
|
131
130
|
},
|
|
132
131
|
{ immediate: !0 }
|
|
133
|
-
), w(
|
|
134
|
-
const
|
|
135
|
-
w(
|
|
136
|
-
function
|
|
137
|
-
|
|
132
|
+
), w(ye, T);
|
|
133
|
+
const oe = Ce(T);
|
|
134
|
+
w(Te, oe), w(be, "modal"), w(Ae, t);
|
|
135
|
+
function B(e, a) {
|
|
136
|
+
R(
|
|
138
137
|
() => t.value[e],
|
|
139
138
|
(o) => {
|
|
140
139
|
typeof o < "u" && a(o);
|
|
@@ -142,58 +141,58 @@ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label
|
|
|
142
141
|
{ immediate: !0 }
|
|
143
142
|
);
|
|
144
143
|
}
|
|
145
|
-
const { setExcludedClients:
|
|
146
|
-
|
|
147
|
-
const
|
|
144
|
+
const { setExcludedClients: re, setDefaultHttpClient: se } = He();
|
|
145
|
+
B("defaultHttpClient", se), B("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
|
|
146
|
+
const ne = g(
|
|
148
147
|
() => `<style>
|
|
149
|
-
${
|
|
148
|
+
${Oe(t.value.theme, {
|
|
150
149
|
fonts: t.value.withDefaultFonts
|
|
151
150
|
})}</style>`
|
|
152
151
|
);
|
|
153
152
|
return (e, a) => {
|
|
154
153
|
var o, s, r;
|
|
155
|
-
return y(), C(
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
return y(), C(H, null, [
|
|
155
|
+
d("div", { innerHTML: ne.value }, null, 8, Ge),
|
|
156
|
+
d("div", {
|
|
158
157
|
ref_key: "documentEl",
|
|
159
158
|
ref: S,
|
|
160
|
-
class:
|
|
159
|
+
class: fe(["scalar-app scalar-api-reference references-layout", [
|
|
161
160
|
{
|
|
162
|
-
"scalar-scrollbars-obtrusive":
|
|
161
|
+
"scalar-scrollbars-obtrusive": G.value,
|
|
163
162
|
"references-editable": t.value.isEditable,
|
|
164
163
|
"references-sidebar": t.value.showSidebar,
|
|
165
|
-
"references-sidebar-mobile-open":
|
|
164
|
+
"references-sidebar-mobile-open": i(j),
|
|
166
165
|
"references-classic": t.value.layout === "classic"
|
|
167
166
|
},
|
|
168
167
|
e.$attrs.class
|
|
169
168
|
]]),
|
|
170
|
-
style:
|
|
171
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
169
|
+
style: me({
|
|
170
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${P.value}px)`
|
|
172
171
|
}),
|
|
173
172
|
onScrollPassive: a[4] || (a[4] = //@ts-ignore
|
|
174
|
-
(...n) =>
|
|
173
|
+
(...n) => i(M) && i(M)(...n))
|
|
175
174
|
}, [
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
d("div", We, [
|
|
176
|
+
u(e.$slots, "header", c(p(l.value)), void 0, !0)
|
|
178
177
|
]),
|
|
179
178
|
t.value.showSidebar ? (y(), C("aside", {
|
|
180
179
|
key: 0,
|
|
181
180
|
"aria-label": `Sidebar for ${(o = e.parsedSpec.info) == null ? void 0 : o.title}`,
|
|
182
181
|
class: "references-navigation t-doc__sidebar"
|
|
183
182
|
}, [
|
|
184
|
-
|
|
185
|
-
m(
|
|
183
|
+
d("div", Ke, [
|
|
184
|
+
m(i(Re), null, {
|
|
186
185
|
default: v(() => [
|
|
187
|
-
m(
|
|
186
|
+
m(i(_e), {
|
|
188
187
|
operationsSorter: t.value.operationsSorter,
|
|
189
188
|
parsedSpec: e.parsedSpec,
|
|
190
189
|
tagsSorter: t.value.tagsSorter
|
|
191
190
|
}, {
|
|
192
191
|
"sidebar-start": v(() => [
|
|
193
|
-
|
|
192
|
+
u(e.$slots, "sidebar-start", c(p(l.value)), void 0, !0)
|
|
194
193
|
]),
|
|
195
194
|
"sidebar-end": v(() => [
|
|
196
|
-
|
|
195
|
+
u(e.$slots, "sidebar-end", c(p(l.value)), void 0, !0)
|
|
197
196
|
]),
|
|
198
197
|
_: 3
|
|
199
198
|
}, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
|
|
@@ -201,28 +200,28 @@ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label
|
|
|
201
200
|
_: 3
|
|
202
201
|
})
|
|
203
202
|
])
|
|
204
|
-
], 8,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
], 8, je)) : E("", !0),
|
|
204
|
+
ve(d("div", Qe, [
|
|
205
|
+
d("div", qe, [
|
|
206
|
+
u(e.$slots, "editor", c(p(l.value)), void 0, !0)
|
|
208
207
|
])
|
|
209
208
|
], 512), [
|
|
210
|
-
[
|
|
209
|
+
[Se, t.value.isEditable]
|
|
211
210
|
]),
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
ae.value ? (y(), C(H, { key: 1 }, [
|
|
212
|
+
d("main", {
|
|
214
213
|
"aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
|
|
215
214
|
class: "references-rendered"
|
|
216
215
|
}, [
|
|
217
|
-
m(
|
|
216
|
+
m(i(Ne), {
|
|
218
217
|
layout: t.value.layout,
|
|
219
218
|
parsedSpec: e.parsedSpec
|
|
220
|
-
},
|
|
219
|
+
}, he({
|
|
221
220
|
start: v(() => [
|
|
222
|
-
|
|
221
|
+
u(e.$slots, "content-start", c(p(l.value)), void 0, !0)
|
|
223
222
|
]),
|
|
224
223
|
end: v(() => [
|
|
225
|
-
|
|
224
|
+
u(e.$slots, "content-end", c(p(l.value)), void 0, !0)
|
|
226
225
|
]),
|
|
227
226
|
_: 2
|
|
228
227
|
}, [
|
|
@@ -231,7 +230,7 @@ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label
|
|
|
231
230
|
fn: v(() => {
|
|
232
231
|
var n;
|
|
233
232
|
return [
|
|
234
|
-
m(
|
|
233
|
+
m(Be, {
|
|
235
234
|
theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
|
|
236
235
|
onChangeTheme: a[0] || (a[0] = (h) => e.$emit("changeTheme", h)),
|
|
237
236
|
onLinkSwaggerFile: a[1] || (a[1] = (h) => e.$emit("linkSwaggerFile")),
|
|
@@ -243,18 +242,18 @@ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label
|
|
|
243
242
|
key: "0"
|
|
244
243
|
} : void 0
|
|
245
244
|
]), 1032, ["layout", "parsedSpec"])
|
|
246
|
-
], 8,
|
|
247
|
-
e.$slots.footer ? (y(), C("div",
|
|
248
|
-
|
|
249
|
-
])) :
|
|
250
|
-
], 64)) :
|
|
251
|
-
m(
|
|
245
|
+
], 8, Je),
|
|
246
|
+
e.$slots.footer ? (y(), C("div", Xe, [
|
|
247
|
+
u(e.$slots, "footer", c(p(l.value)), void 0, !0)
|
|
248
|
+
])) : E("", !0)
|
|
249
|
+
], 64)) : E("", !0),
|
|
250
|
+
m(i(Ue), { configuration: t.value }, null, 8, ["configuration"])
|
|
252
251
|
], 38),
|
|
253
|
-
m(
|
|
252
|
+
m(i(Fe))
|
|
254
253
|
], 64);
|
|
255
254
|
};
|
|
256
255
|
}
|
|
257
256
|
});
|
|
258
257
|
export {
|
|
259
|
-
|
|
258
|
+
gt as default
|
|
260
259
|
};
|
|
@@ -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":";AAmTA,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 i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a8ebef7d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -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":"AA0RA,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;WA6NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA1TR,QAAQ,GAAG,SAAS;6EAiU/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-c1080683"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|