@scalar/api-reference 1.32.1 → 1.32.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -0
- package/README.md +1 -1
- package/dist/browser/standalone.js +15738 -15439
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +163 -158
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.js +2 -2
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.js +3 -3
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +89 -89
- 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 +59 -56
- package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
- package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/RenderString.vue.js +14 -0
- package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
- package/dist/components/Content/Schema/Schema.vue.d.ts +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 +76 -75
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
- 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 +96 -170
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
- 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 +155 -160
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +6 -6
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +13 -10
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -60
- 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 +13 -13
- package/dist/features/Search/SearchButton.vue.d.ts +1 -0
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +36 -34
- package/dist/features/Search/SearchModal.vue.d.ts +1 -0
- 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 +112 -112
- package/dist/features/Search/useSearchIndex.d.ts +4 -3
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +119 -82
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
- package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/base-url/BaseUrl.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
- package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
- package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
- package/dist/features/traverse-schema/index.d.ts +1 -1
- package/dist/features/traverse-schema/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +15 -1
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +66 -47
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
- package/package.json +18 -18
- package/dist/hooks/useOperation.d.ts +0 -16
- package/dist/hooks/useOperation.d.ts.map +0 -1
- package/dist/hooks/useOperation.js +0 -27
|
@@ -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":"AAyuBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAqCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAyShB,iBAAS,cAAc;WAoYT,OAAO,IAA6B;;wBAznBV,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;;6BACrC,GAAG;;wBADQ,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;;6BACrC,GAAG;;;;;;EA6nB/B;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAtsBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA6sB9D,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"}
|
|
@@ -4,7 +4,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
7
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c81c86d6"]]);
|
|
8
8
|
export {
|
|
9
9
|
a as default
|
|
10
10
|
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
1
|
+
import { defineComponent as ge, computed as M, provide as S, ref as T, onBeforeMount as he, onMounted as K, watch as D, toValue as z, onUnmounted as Se, useId as be, createElementBlock as f, openBlock as n, Fragment as G, createElementVNode as p, createVNode as v, normalizeStyle as ye, normalizeClass as we, unref as r, createCommentVNode as i, withDirectives as ke, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as l, vShow as Ce, createSlots as $e } from "vue";
|
|
2
|
+
import { provideUseId as Me } from "@headlessui/vue";
|
|
3
3
|
import { OpenApiClientButton as Te } from "@scalar/api-client/components";
|
|
4
4
|
import { LAYOUT_SYMBOL as De } from "@scalar/api-client/hooks";
|
|
5
|
-
import { WORKSPACE_SYMBOL as Ee, ACTIVE_ENTITIES_SYMBOL as
|
|
6
|
-
import { addScalarClassesToHeadless as
|
|
7
|
-
import { sleep as
|
|
8
|
-
import { hasObtrusiveScrollbars as
|
|
9
|
-
import { apiReferenceConfigurationSchema as
|
|
10
|
-
import { useBreakpoints as
|
|
11
|
-
import { useToasts as
|
|
12
|
-
import { useMediaQuery as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { parse as
|
|
17
|
-
import { CONFIGURATION_SYMBOL as
|
|
18
|
-
import { useNavState as
|
|
19
|
-
import { downloadEventBus as
|
|
20
|
-
import { createEmptySpecification as
|
|
21
|
-
import { useHttpClientStore as
|
|
22
|
-
import { useDocumentSource as
|
|
23
|
-
import { OPENAPI_VERSION_SYMBOL as
|
|
24
|
-
import { useSidebar as
|
|
25
|
-
import { PLUGIN_MANAGER_SYMBOL as
|
|
26
|
-
import { createPluginManager as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
const st = ["innerHTML"],
|
|
5
|
+
import { WORKSPACE_SYMBOL as Ee, ACTIVE_ENTITIES_SYMBOL as Oe } from "@scalar/api-client/store";
|
|
6
|
+
import { addScalarClassesToHeadless as Ie, ScalarErrorBoundary as Be, ScalarSidebarFooter as Re, ScalarColorModeToggleButton as Le, ScalarColorModeToggleIcon as He } from "@scalar/components";
|
|
7
|
+
import { sleep as _e } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as Ae, getThemeStyles as Pe } from "@scalar/themes";
|
|
9
|
+
import { apiReferenceConfigurationSchema as Fe } from "@scalar/types/api-reference";
|
|
10
|
+
import { useBreakpoints as Ne } from "@scalar/use-hooks/useBreakpoints";
|
|
11
|
+
import { useToasts as Ve, ScalarToasts as Ue } from "@scalar/use-toasts";
|
|
12
|
+
import { useMediaQuery as Ye, useResizeObserver as Ke, useDebounceFn as ze } from "@vueuse/core";
|
|
13
|
+
import Ge from "./ClassicHeader.vue.js";
|
|
14
|
+
import Qe from "./GettingStarted.vue.js";
|
|
15
|
+
import We from "./MobileHeader.vue.js";
|
|
16
|
+
import { parse as je } from "../helpers/parse.js";
|
|
17
|
+
import { CONFIGURATION_SYMBOL as qe } from "../hooks/useConfig.js";
|
|
18
|
+
import { useNavState as Je } from "../hooks/useNavState.js";
|
|
19
|
+
import { downloadEventBus as Q, downloadDocument as Xe } from "../libs/download.js";
|
|
20
|
+
import { createEmptySpecification as Ze } from "../libs/openapi.js";
|
|
21
|
+
import { useHttpClientStore as xe } from "../stores/useHttpClientStore.js";
|
|
22
|
+
import { useDocumentSource as et } from "../features/document-source/hooks/useDocumentSource.js";
|
|
23
|
+
import { OPENAPI_VERSION_SYMBOL as tt } from "../features/download-link/openapi-version-symbol.js";
|
|
24
|
+
import { useSidebar as ot } from "../features/sidebar/hooks/useSidebar.js";
|
|
25
|
+
import { PLUGIN_MANAGER_SYMBOL as rt } from "../plugins/hooks/usePluginManager.js";
|
|
26
|
+
import { createPluginManager as at } from "../plugins/plugin-manager.js";
|
|
27
|
+
import nt from "../features/sidebar/components/Sidebar.vue.js";
|
|
28
|
+
import W from "../features/Search/SearchButton.vue.js";
|
|
29
|
+
import it from "./Content/Content.vue.js";
|
|
30
|
+
import lt from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
31
|
+
const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label"], ct = { class: "references-navigation-list" }, mt = { key: 0 }, ft = {
|
|
32
32
|
key: 1,
|
|
33
33
|
class: "scalar-api-references-standalone-search"
|
|
34
|
-
},
|
|
34
|
+
}, vt = { key: 1 }, pt = { class: "references-editor" }, gt = { class: "references-editor-textarea" }, ht = ["aria-label"], St = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "w-64 *:!p-0 empty:hidden"
|
|
37
|
-
},
|
|
37
|
+
}, bt = {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "references-footer"
|
|
40
|
-
},
|
|
40
|
+
}, Jt = /* @__PURE__ */ ge({
|
|
41
41
|
inheritAttrs: !1,
|
|
42
42
|
__name: "ApiReferenceLayout",
|
|
43
43
|
props: {
|
|
@@ -49,35 +49,35 @@ const st = ["innerHTML"], lt = { class: "references-header" }, ut = ["aria-label
|
|
|
49
49
|
rawSpec: {}
|
|
50
50
|
},
|
|
51
51
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
52
|
-
setup(
|
|
53
|
-
const t =
|
|
54
|
-
() =>
|
|
55
|
-
), { initializeToasts:
|
|
56
|
-
|
|
52
|
+
setup(E) {
|
|
53
|
+
const t = M(
|
|
54
|
+
() => Fe.parse(E.configuration)
|
|
55
|
+
), { initializeToasts: j, toast: q } = Ve();
|
|
56
|
+
j((e) => q(e));
|
|
57
57
|
const {
|
|
58
|
-
originalDocument:
|
|
59
|
-
originalOpenApiVersion:
|
|
58
|
+
originalDocument: J,
|
|
59
|
+
originalOpenApiVersion: X,
|
|
60
60
|
dereferencedDocument: u,
|
|
61
|
-
workspaceStore:
|
|
62
|
-
activeEntitiesStore:
|
|
63
|
-
} =
|
|
61
|
+
workspaceStore: Z,
|
|
62
|
+
activeEntitiesStore: x
|
|
63
|
+
} = et({
|
|
64
64
|
configuration: t,
|
|
65
|
-
dereferencedDocument:
|
|
66
|
-
originalDocument:
|
|
65
|
+
dereferencedDocument: E.dereferencedDocument,
|
|
66
|
+
originalDocument: E.originalDocument
|
|
67
67
|
});
|
|
68
|
-
S(
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
S(tt, X), S(Ee, Z), S(Oe, x);
|
|
69
|
+
const ee = Ye("(min-width: 1150px)"), te = T("100dvh"), y = T(null);
|
|
70
|
+
Ke(y, (e) => {
|
|
71
|
+
te.value = e[0].contentRect.height + "px";
|
|
72
72
|
});
|
|
73
|
-
const
|
|
73
|
+
const oe = M(Ae), R = Je(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: re, items: H } = ot(u, {
|
|
74
74
|
...R,
|
|
75
75
|
config: t
|
|
76
76
|
}), {
|
|
77
|
-
getReferenceId:
|
|
78
|
-
getPathRoutingId:
|
|
79
|
-
getSectionId:
|
|
80
|
-
getTagId:
|
|
77
|
+
getReferenceId: ae,
|
|
78
|
+
getPathRoutingId: ne,
|
|
79
|
+
getSectionId: ie,
|
|
80
|
+
getTagId: le,
|
|
81
81
|
hash: O,
|
|
82
82
|
isIntersectionEnabled: _,
|
|
83
83
|
updateHash: A,
|
|
@@ -89,14 +89,14 @@ const st = ["innerHTML"], lt = { class: "references-header" }, ut = ["aria-label
|
|
|
89
89
|
);
|
|
90
90
|
e && history.replaceState({}, "", e);
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
A(),
|
|
92
|
+
he(() => {
|
|
93
|
+
A(), Ie();
|
|
94
94
|
});
|
|
95
95
|
const P = async (e) => {
|
|
96
96
|
var o;
|
|
97
|
-
_.value = !1, A(), e ?
|
|
98
|
-
}, F =
|
|
99
|
-
|
|
97
|
+
_.value = !1, A(), e ? re(e) : (o = y.value) == null || o.scrollTo(0, 0), await _e(100), _.value = !0;
|
|
98
|
+
}, F = T(0);
|
|
99
|
+
K(() => {
|
|
100
100
|
var a, k, C;
|
|
101
101
|
history.scrollRestoration = "manual";
|
|
102
102
|
const e = (k = (a = y.value) == null ? void 0 : a.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = (C = y.value) == null ? void 0 : C.getBoundingClientRect();
|
|
@@ -105,61 +105,61 @@ const st = ["innerHTML"], lt = { class: "references-header" }, ut = ["aria-label
|
|
|
105
105
|
F.value = $ < 2 ? 0 : $;
|
|
106
106
|
}
|
|
107
107
|
window.onhashchange = () => {
|
|
108
|
-
P(
|
|
109
|
-
}, window.onpopstate = () => t.value.pathRouting && P(
|
|
108
|
+
P(ae());
|
|
109
|
+
}, window.onpopstate = () => t.value.pathRouting && P(ne(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
|
|
110
110
|
});
|
|
111
|
-
const
|
|
112
|
-
() =>
|
|
113
|
-
), N =
|
|
111
|
+
const de = M(
|
|
112
|
+
() => ee.value || !t.value.isEditable
|
|
113
|
+
), N = ze(() => {
|
|
114
114
|
window.scrollY < 50 && se("");
|
|
115
|
-
}), ue =
|
|
116
|
-
|
|
115
|
+
}), ue = T(!1);
|
|
116
|
+
D(u, (e) => {
|
|
117
117
|
var o;
|
|
118
118
|
if (O.value) {
|
|
119
|
-
const a =
|
|
119
|
+
const a = ie(O.value);
|
|
120
120
|
a && L(a, !0);
|
|
121
121
|
} else {
|
|
122
122
|
const a = (o = e.tags) == null ? void 0 : o[0];
|
|
123
|
-
a && L(
|
|
123
|
+
a && L(le(a), !0);
|
|
124
124
|
}
|
|
125
125
|
ue.value = !0;
|
|
126
126
|
});
|
|
127
|
-
const w =
|
|
128
|
-
|
|
127
|
+
const w = T(Ze());
|
|
128
|
+
D(
|
|
129
129
|
u,
|
|
130
130
|
async (e) => {
|
|
131
131
|
if (!e)
|
|
132
132
|
return;
|
|
133
|
-
const o = await
|
|
133
|
+
const o = await je(e, H.value.entries);
|
|
134
134
|
w.value = o;
|
|
135
135
|
},
|
|
136
136
|
{ immediate: !0 }
|
|
137
137
|
);
|
|
138
|
-
const
|
|
138
|
+
const c = M(() => {
|
|
139
139
|
var e;
|
|
140
140
|
return {
|
|
141
141
|
spec: w.value,
|
|
142
142
|
breadcrumb: ((e = H.value) == null ? void 0 : e.titles.get(O.value)) ?? ""
|
|
143
143
|
};
|
|
144
144
|
});
|
|
145
|
-
|
|
146
|
-
() =>
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
K(
|
|
146
|
+
() => Q.on(({ filename: e, format: o }) => {
|
|
147
|
+
Xe(
|
|
148
|
+
z(J) || z(E.rawSpec) || "",
|
|
149
149
|
e,
|
|
150
150
|
o
|
|
151
151
|
);
|
|
152
152
|
})
|
|
153
|
-
),
|
|
154
|
-
window.removeEventListener("scroll", N),
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
), Se(() => {
|
|
154
|
+
window.removeEventListener("scroll", N), Q.reset();
|
|
155
|
+
}), Me(() => be()), S(De, "modal"), S(qe, t), S(
|
|
156
|
+
rt,
|
|
157
|
+
at({
|
|
158
158
|
plugins: t.value.plugins
|
|
159
159
|
})
|
|
160
160
|
);
|
|
161
161
|
function V(e, o) {
|
|
162
|
-
|
|
162
|
+
D(
|
|
163
163
|
() => t.value[e],
|
|
164
164
|
(a) => {
|
|
165
165
|
typeof a < "u" && o(a);
|
|
@@ -167,29 +167,29 @@ const st = ["innerHTML"], lt = { class: "references-header" }, ut = ["aria-label
|
|
|
167
167
|
{ immediate: !0 }
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
|
-
const { setExcludedClients:
|
|
171
|
-
V("defaultHttpClient",
|
|
172
|
-
const
|
|
170
|
+
const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
|
|
171
|
+
V("defaultHttpClient", me), V("hiddenClients", ce);
|
|
172
|
+
const fe = M(
|
|
173
173
|
() => `<style>
|
|
174
|
-
${
|
|
174
|
+
${Pe(t.value.theme, {
|
|
175
175
|
fonts: t.value.withDefaultFonts
|
|
176
176
|
})}</style>`
|
|
177
|
-
), { mediaQueries:
|
|
178
|
-
return
|
|
177
|
+
), { mediaQueries: ve } = Ne(), pe = !1;
|
|
178
|
+
return D(ve.lg, (e, o) => {
|
|
179
179
|
o && !e && (I.value = !1);
|
|
180
|
-
}),
|
|
180
|
+
}), D(O, (e, o) => {
|
|
181
181
|
e && e !== o && (I.value = !1);
|
|
182
182
|
}), (e, o) => {
|
|
183
183
|
var a, k, C, $, U;
|
|
184
|
-
return n(),
|
|
185
|
-
p("div", { innerHTML:
|
|
184
|
+
return n(), f(G, null, [
|
|
185
|
+
p("div", { innerHTML: fe.value }, null, 8, st),
|
|
186
186
|
p("div", {
|
|
187
187
|
ref_key: "documentEl",
|
|
188
188
|
ref: y,
|
|
189
|
-
class:
|
|
189
|
+
class: we(["scalar-app scalar-api-reference references-layout", [
|
|
190
190
|
{
|
|
191
191
|
"scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
|
|
192
|
-
"scalar-scrollbars-obtrusive":
|
|
192
|
+
"scalar-scrollbars-obtrusive": oe.value,
|
|
193
193
|
"references-editable": t.value.isEditable,
|
|
194
194
|
"references-sidebar": t.value.showSidebar,
|
|
195
195
|
"references-sidebar-mobile-open": r(I),
|
|
@@ -197,56 +197,57 @@ const st = ["innerHTML"], lt = { class: "references-header" }, ut = ["aria-label
|
|
|
197
197
|
},
|
|
198
198
|
e.$attrs.class
|
|
199
199
|
]]),
|
|
200
|
-
style:
|
|
200
|
+
style: ye({
|
|
201
201
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
|
|
202
202
|
})
|
|
203
203
|
}, [
|
|
204
|
-
p("div",
|
|
205
|
-
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (n(), b(
|
|
204
|
+
p("div", dt, [
|
|
205
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (n(), b(We, {
|
|
206
206
|
key: 0,
|
|
207
|
-
breadcrumb:
|
|
207
|
+
breadcrumb: c.value.breadcrumb
|
|
208
208
|
}, null, 8, ["breadcrumb"])) : i("", !0),
|
|
209
|
-
|
|
209
|
+
d(e.$slots, "header", g(h(c.value)), void 0, !0)
|
|
210
210
|
]),
|
|
211
|
-
t.value.showSidebar ? (n(),
|
|
211
|
+
t.value.showSidebar ? (n(), f("aside", {
|
|
212
212
|
key: 0,
|
|
213
213
|
"aria-label": `Sidebar for ${(k = (a = r(u)) == null ? void 0 : a.info) == null ? void 0 : k.title}`,
|
|
214
214
|
class: "references-navigation t-doc__sidebar"
|
|
215
215
|
}, [
|
|
216
|
-
p("div",
|
|
217
|
-
|
|
218
|
-
default:
|
|
219
|
-
var
|
|
216
|
+
p("div", ct, [
|
|
217
|
+
v(r(Be), null, {
|
|
218
|
+
default: l(() => {
|
|
219
|
+
var s, m;
|
|
220
220
|
return [
|
|
221
|
-
|
|
222
|
-
title: ((
|
|
221
|
+
v(r(nt), {
|
|
222
|
+
title: ((m = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
|
|
223
223
|
}, {
|
|
224
|
-
"sidebar-start":
|
|
225
|
-
var B;
|
|
224
|
+
"sidebar-start": l(() => {
|
|
225
|
+
var B, Y;
|
|
226
226
|
return [
|
|
227
|
-
e.$slots["document-selector"] ? (n(),
|
|
228
|
-
|
|
227
|
+
e.$slots["document-selector"] ? (n(), f("div", mt, [
|
|
228
|
+
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
229
229
|
])) : i("", !0),
|
|
230
|
-
t.value.hideSearch ? i("", !0) : (n(),
|
|
231
|
-
|
|
230
|
+
t.value.hideSearch ? i("", !0) : (n(), f("div", ft, [
|
|
231
|
+
v(r(W), {
|
|
232
232
|
searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
|
|
233
|
+
hideModels: (Y = t.value) == null ? void 0 : Y.hideModels,
|
|
233
234
|
spec: w.value
|
|
234
|
-
}, null, 8, ["searchHotKey", "spec"])
|
|
235
|
+
}, null, 8, ["searchHotKey", "hideModels", "spec"])
|
|
235
236
|
])),
|
|
236
|
-
|
|
237
|
+
d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
|
|
237
238
|
];
|
|
238
239
|
}),
|
|
239
|
-
"sidebar-end":
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
toggle:
|
|
243
|
-
t.value.hideDarkModeToggle ? (n(),
|
|
240
|
+
"sidebar-end": l(() => [
|
|
241
|
+
d(e.$slots, "sidebar-end", g(h(c.value)), () => [
|
|
242
|
+
v(r(Re), { class: "darklight-reference" }, {
|
|
243
|
+
toggle: l(() => [
|
|
244
|
+
t.value.hideDarkModeToggle ? (n(), f("span", vt)) : (n(), b(r(Le), {
|
|
244
245
|
key: 0,
|
|
245
246
|
modelValue: e.isDark,
|
|
246
247
|
"onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
|
|
247
248
|
}, null, 8, ["modelValue"]))
|
|
248
249
|
]),
|
|
249
|
-
default:
|
|
250
|
+
default: l(() => [
|
|
250
251
|
t.value.hideClientButton ? i("", !0) : (n(), b(r(Te), {
|
|
251
252
|
key: 0,
|
|
252
253
|
buttonSource: "sidebar",
|
|
@@ -267,88 +268,92 @@ const st = ["innerHTML"], lt = { class: "references-header" }, ut = ["aria-label
|
|
|
267
268
|
})
|
|
268
269
|
])
|
|
269
270
|
], 8, ut)) : i("", !0),
|
|
270
|
-
|
|
271
|
-
p("div",
|
|
272
|
-
|
|
271
|
+
ke(p("div", pt, [
|
|
272
|
+
p("div", gt, [
|
|
273
|
+
d(e.$slots, "editor", g(h(c.value)), void 0, !0)
|
|
273
274
|
])
|
|
274
275
|
], 512), [
|
|
275
|
-
[
|
|
276
|
+
[Ce, t.value.isEditable]
|
|
276
277
|
]),
|
|
277
|
-
|
|
278
|
+
de.value ? (n(), f(G, { key: 1 }, [
|
|
278
279
|
p("main", {
|
|
279
280
|
"aria-label": `Open API Documentation for ${($ = (C = r(u)) == null ? void 0 : C.info) == null ? void 0 : $.title}`,
|
|
280
281
|
class: "references-rendered"
|
|
281
282
|
}, [
|
|
282
|
-
|
|
283
|
+
v(r(it), {
|
|
283
284
|
layout: t.value.layout,
|
|
284
285
|
document: r(u),
|
|
285
286
|
parsedSpec: w.value
|
|
286
|
-
},
|
|
287
|
-
start:
|
|
288
|
-
|
|
289
|
-
t.value.layout === "classic" ? (n(), b(
|
|
290
|
-
"dark-mode-toggle":
|
|
291
|
-
t.value.hideDarkModeToggle ? i("", !0) : (n(), b(r(
|
|
287
|
+
}, $e({
|
|
288
|
+
start: l(() => [
|
|
289
|
+
d(e.$slots, "content-start", g(h(c.value)), () => [
|
|
290
|
+
t.value.layout === "classic" ? (n(), b(Ge, { key: 0 }, {
|
|
291
|
+
"dark-mode-toggle": l(() => [
|
|
292
|
+
t.value.hideDarkModeToggle ? i("", !0) : (n(), b(r(He), {
|
|
292
293
|
key: 0,
|
|
293
294
|
class: "text-c-2 hover:text-c-1",
|
|
294
295
|
mode: e.isDark ? "dark" : "light",
|
|
295
296
|
style: { transform: "scale(1.4)" },
|
|
296
297
|
variant: "icon",
|
|
297
|
-
onClick: o[1] || (o[1] = (
|
|
298
|
+
onClick: o[1] || (o[1] = (s) => e.$emit("toggleDarkMode"))
|
|
298
299
|
}, null, 8, ["mode"]))
|
|
299
300
|
]),
|
|
300
|
-
default:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
301
|
+
default: l(() => {
|
|
302
|
+
var s;
|
|
303
|
+
return [
|
|
304
|
+
e.$slots["document-selector"] ? (n(), f("div", St, [
|
|
305
|
+
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
306
|
+
])) : i("", !0),
|
|
307
|
+
t.value.hideSearch ? i("", !0) : (n(), b(r(W), {
|
|
308
|
+
key: 1,
|
|
309
|
+
class: "t-doc__sidebar max-w-64",
|
|
310
|
+
searchHotKey: t.value.searchHotKey,
|
|
311
|
+
hideModels: (s = t.value) == null ? void 0 : s.hideModels,
|
|
312
|
+
spec: w.value
|
|
313
|
+
}, null, 8, ["searchHotKey", "hideModels", "spec"]))
|
|
314
|
+
];
|
|
315
|
+
}),
|
|
311
316
|
_: 3
|
|
312
317
|
})) : i("", !0)
|
|
313
318
|
], !0)
|
|
314
319
|
]),
|
|
315
|
-
end:
|
|
316
|
-
|
|
320
|
+
end: l(() => [
|
|
321
|
+
d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
|
|
317
322
|
]),
|
|
318
323
|
_: 2
|
|
319
324
|
}, [
|
|
320
325
|
(U = t.value) != null && U.isEditable ? {
|
|
321
326
|
name: "empty-state",
|
|
322
|
-
fn:
|
|
323
|
-
var
|
|
327
|
+
fn: l(() => {
|
|
328
|
+
var s;
|
|
324
329
|
return [
|
|
325
|
-
|
|
326
|
-
theme: ((
|
|
327
|
-
onChangeTheme: o[2] || (o[2] = (
|
|
328
|
-
onLinkSwaggerFile: o[3] || (o[3] = (
|
|
329
|
-
onLoadSwaggerFile: o[4] || (o[4] = (
|
|
330
|
-
onUpdateContent: o[5] || (o[5] = (
|
|
330
|
+
v(Qe, {
|
|
331
|
+
theme: ((s = t.value) == null ? void 0 : s.theme) || "default",
|
|
332
|
+
onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
|
|
333
|
+
onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
|
|
334
|
+
onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
|
|
335
|
+
onUpdateContent: o[5] || (o[5] = (m) => e.$emit("updateContent", m))
|
|
331
336
|
}, null, 8, ["theme"])
|
|
332
337
|
];
|
|
333
338
|
}),
|
|
334
339
|
key: "0"
|
|
335
340
|
} : void 0
|
|
336
341
|
]), 1032, ["layout", "document", "parsedSpec"])
|
|
337
|
-
], 8,
|
|
338
|
-
e.$slots.footer ? (n(),
|
|
339
|
-
|
|
342
|
+
], 8, ht),
|
|
343
|
+
e.$slots.footer ? (n(), f("div", bt, [
|
|
344
|
+
d(e.$slots, "footer", g(h(c.value)), void 0, !0)
|
|
340
345
|
])) : i("", !0)
|
|
341
346
|
], 64)) : i("", !0),
|
|
342
|
-
|
|
347
|
+
v(r(lt), {
|
|
343
348
|
configuration: t.value,
|
|
344
349
|
dereferencedDocument: r(u)
|
|
345
350
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
346
351
|
], 6),
|
|
347
|
-
|
|
352
|
+
v(r(Ue))
|
|
348
353
|
], 64);
|
|
349
354
|
};
|
|
350
355
|
}
|
|
351
356
|
});
|
|
352
357
|
export {
|
|
353
|
-
|
|
358
|
+
Jt as default
|
|
354
359
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;WAgDT,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"}
|
|
@@ -7,7 +7,7 @@ function s(e, a) {
|
|
|
7
7
|
r(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-
|
|
10
|
+
const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-75480129"]]);
|
|
11
11
|
export {
|
|
12
12
|
l as default
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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 "./CardHeader.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-34675578"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTab.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTab.vue"],"names":[],"mappings":"AAkFA,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAMnB,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,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./CardTab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-faa0eb23"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardTabHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTabHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardTabHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTabHeader.vue"],"names":[],"mappings":"AA+DA,iBAAS,cAAc;WAuFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAOnB,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./CardTabHeader.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-e70e2978"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-21cf9eeb"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-82c08547"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Introduction.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-943f535d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -13,8 +13,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
server?: Server;
|
|
14
14
|
layout?: "modern" | "classic";
|
|
15
15
|
parsedSpec: Spec;
|
|
16
|
-
}> & Readonly<{}>, {
|
|
17
|
-
layout: "modern" | "classic";
|
|
18
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
17
|
export default _default;
|
|
20
18
|
//# sourceMappingURL=Loading.vue.d.ts.map
|