@scalar/api-reference 1.32.8 → 1.32.9
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 +6 -0
- package/dist/blocks/constants.js +6 -0
- package/dist/blocks/helpers/getPointer.js +12 -0
- package/dist/blocks/hooks/useBlockProps.d.ts +31 -0
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -0
- package/dist/blocks/hooks/useBlockProps.js +24 -0
- package/dist/browser/standalone.js +14550 -14647
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +176 -164
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +5 -5
- package/dist/features/Operation/Operation.vue.d.ts +6 -6
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +49 -50
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +6 -8
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +28 -21
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +3 -5
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -33
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +12 -11
- 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 +162 -164
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +13 -12
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +117 -111
- package/dist/features/api-client-modal/useApiClient.d.ts +5795 -5795
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/example-request/ExamplePicker.vue.d.ts +13 -0
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +1 -0
- package/dist/features/example-request/ExamplePicker.vue.js +7 -0
- package/dist/features/example-request/ExamplePicker.vue2.js +57 -0
- package/dist/features/example-request/ExampleRequest.vue.d.ts +85 -0
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -0
- package/dist/features/example-request/ExampleRequest.vue.js +7 -0
- package/dist/features/example-request/ExampleRequest.vue2.js +348 -0
- package/dist/features/example-request/TextSelect.vue.d.ts +34 -0
- package/dist/features/example-request/TextSelect.vue.d.ts.map +1 -0
- package/dist/features/example-request/TextSelect.vue.js +48 -0
- package/dist/features/example-request/TextSelect.vue3.js +5 -0
- package/dist/features/example-request/index.d.ts +3 -0
- package/dist/features/example-request/index.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +50 -51
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +2 -3
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +19 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -13
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -3
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +86 -113
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +3 -20
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/package.json +10 -10
- package/dist/helpers/convert-security-scheme.js +0 -23
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -64
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -212
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -35
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -29
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/events/definitions.js +0 -7
- package/dist/v2/hooks/useStore.js +0 -14
|
@@ -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":"AAwuBA,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
|
|
7
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-125cbb58"]]);
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
c as default
|
|
10
10
|
};
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { OpenApiClientButton as
|
|
4
|
-
import { LAYOUT_SYMBOL as
|
|
5
|
-
import { WORKSPACE_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 {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
|
|
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
|
+
import { OpenApiClientButton as Te } from "@scalar/api-client/components";
|
|
4
|
+
import { LAYOUT_SYMBOL as De } from "@scalar/api-client/hooks";
|
|
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 = {
|
|
31
32
|
key: 1,
|
|
32
33
|
class: "scalar-api-references-standalone-search"
|
|
33
|
-
},
|
|
34
|
+
}, vt = { key: 1 }, pt = { class: "references-editor" }, gt = { class: "references-editor-textarea" }, ht = ["aria-label"], St = {
|
|
34
35
|
key: 0,
|
|
35
36
|
class: "w-64 *:!p-0 empty:hidden"
|
|
36
|
-
},
|
|
37
|
+
}, bt = {
|
|
37
38
|
key: 0,
|
|
38
39
|
class: "references-footer"
|
|
39
|
-
},
|
|
40
|
+
}, Jt = /* @__PURE__ */ ge({
|
|
40
41
|
inheritAttrs: !1,
|
|
41
42
|
__name: "ApiReferenceLayout",
|
|
42
43
|
props: {
|
|
@@ -48,39 +49,39 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
48
49
|
rawSpec: {}
|
|
49
50
|
},
|
|
50
51
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
51
|
-
setup(
|
|
52
|
-
const t =
|
|
53
|
-
() =>
|
|
54
|
-
), { initializeToasts:
|
|
55
|
-
|
|
52
|
+
setup(E) {
|
|
53
|
+
const t = M(
|
|
54
|
+
() => Fe.parse(E.configuration)
|
|
55
|
+
), { initializeToasts: j, toast: q } = Ve();
|
|
56
|
+
j((e) => q(e));
|
|
56
57
|
const {
|
|
57
|
-
originalDocument:
|
|
58
|
-
originalOpenApiVersion:
|
|
58
|
+
originalDocument: J,
|
|
59
|
+
originalOpenApiVersion: X,
|
|
59
60
|
dereferencedDocument: u,
|
|
60
|
-
workspaceStore:
|
|
61
|
-
activeEntitiesStore:
|
|
62
|
-
} =
|
|
61
|
+
workspaceStore: Z,
|
|
62
|
+
activeEntitiesStore: x
|
|
63
|
+
} = et({
|
|
63
64
|
configuration: t,
|
|
64
|
-
dereferencedDocument:
|
|
65
|
-
originalDocument:
|
|
65
|
+
dereferencedDocument: E.dereferencedDocument,
|
|
66
|
+
originalDocument: E.originalDocument
|
|
66
67
|
});
|
|
67
|
-
S(
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
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";
|
|
71
72
|
});
|
|
72
|
-
const
|
|
73
|
+
const oe = M(Ae), R = Je(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: re, items: H } = ot(u, {
|
|
73
74
|
...R,
|
|
74
75
|
config: t
|
|
75
76
|
}), {
|
|
76
|
-
getReferenceId:
|
|
77
|
-
getPathRoutingId:
|
|
78
|
-
getSectionId:
|
|
77
|
+
getReferenceId: ae,
|
|
78
|
+
getPathRoutingId: ne,
|
|
79
|
+
getSectionId: ie,
|
|
79
80
|
getTagId: le,
|
|
80
|
-
hash:
|
|
81
|
-
isIntersectionEnabled:
|
|
82
|
-
updateHash:
|
|
83
|
-
replaceUrlState:
|
|
81
|
+
hash: O,
|
|
82
|
+
isIntersectionEnabled: _,
|
|
83
|
+
updateHash: A,
|
|
84
|
+
replaceUrlState: se
|
|
84
85
|
} = R;
|
|
85
86
|
if (t.value.redirect && typeof window < "u") {
|
|
86
87
|
const e = t.value.redirect(
|
|
@@ -88,96 +89,107 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
88
89
|
);
|
|
89
90
|
e && history.replaceState({}, "", e);
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
he(() => {
|
|
93
|
+
A(), Ie();
|
|
93
94
|
});
|
|
94
|
-
const
|
|
95
|
+
const P = async (e) => {
|
|
95
96
|
var o;
|
|
96
|
-
|
|
97
|
-
}, F =
|
|
98
|
-
|
|
99
|
-
var
|
|
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
|
+
var a, k, C;
|
|
100
101
|
history.scrollRestoration = "manual";
|
|
101
|
-
const e = (k = (
|
|
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();
|
|
102
103
|
if (e && o) {
|
|
103
|
-
const
|
|
104
|
-
F.value =
|
|
104
|
+
const $ = o.top - e.top;
|
|
105
|
+
F.value = $ < 2 ? 0 : $;
|
|
105
106
|
}
|
|
106
107
|
window.onhashchange = () => {
|
|
107
|
-
|
|
108
|
-
}, window.onpopstate = () => t.value.pathRouting &&
|
|
108
|
+
P(ae());
|
|
109
|
+
}, window.onpopstate = () => t.value.pathRouting && P(ne(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
|
|
109
110
|
});
|
|
110
|
-
const
|
|
111
|
-
() =>
|
|
112
|
-
), N =
|
|
113
|
-
window.scrollY < 50 &&
|
|
114
|
-
}),
|
|
115
|
-
|
|
111
|
+
const de = M(
|
|
112
|
+
() => ee.value || !t.value.isEditable
|
|
113
|
+
), N = ze(() => {
|
|
114
|
+
window.scrollY < 50 && se("");
|
|
115
|
+
}), ue = T(!1);
|
|
116
|
+
D(u, (e) => {
|
|
116
117
|
var o;
|
|
117
|
-
if (
|
|
118
|
-
const
|
|
119
|
-
|
|
118
|
+
if (O.value) {
|
|
119
|
+
const a = ie(O.value);
|
|
120
|
+
a && L(a, !0);
|
|
120
121
|
} else {
|
|
121
|
-
const
|
|
122
|
-
|
|
122
|
+
const a = (o = e.tags) == null ? void 0 : o[0];
|
|
123
|
+
a && L(le(a), !0);
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
+
ue.value = !0;
|
|
125
126
|
});
|
|
126
|
-
const w =
|
|
127
|
-
|
|
127
|
+
const w = T(Ze());
|
|
128
|
+
D(
|
|
128
129
|
u,
|
|
129
130
|
async (e) => {
|
|
130
131
|
if (!e)
|
|
131
132
|
return;
|
|
132
|
-
const o = await
|
|
133
|
+
const o = await je(e, H.value.entries);
|
|
133
134
|
w.value = o;
|
|
134
135
|
},
|
|
135
136
|
{ immediate: !0 }
|
|
136
137
|
);
|
|
137
|
-
const c =
|
|
138
|
+
const c = M(() => {
|
|
138
139
|
var e;
|
|
139
140
|
return {
|
|
140
141
|
spec: w.value,
|
|
141
|
-
breadcrumb: ((e =
|
|
142
|
+
breadcrumb: ((e = H.value) == null ? void 0 : e.titles.get(O.value)) ?? ""
|
|
142
143
|
};
|
|
143
144
|
});
|
|
144
|
-
|
|
145
|
-
() =>
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
K(
|
|
146
|
+
() => Q.on(({ filename: e, format: o }) => {
|
|
147
|
+
Xe(
|
|
148
|
+
z(J) || z(E.rawSpec) || "",
|
|
148
149
|
e,
|
|
149
150
|
o
|
|
150
151
|
);
|
|
151
152
|
})
|
|
152
|
-
),
|
|
153
|
-
window.removeEventListener("scroll", N),
|
|
154
|
-
}),
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
), Se(() => {
|
|
154
|
+
window.removeEventListener("scroll", N), Q.reset();
|
|
155
|
+
}), Me(() => be()), S(De, "modal"), S(qe, t), S(
|
|
156
|
+
rt,
|
|
157
|
+
at({
|
|
157
158
|
plugins: t.value.plugins
|
|
158
159
|
})
|
|
159
160
|
);
|
|
160
|
-
|
|
161
|
+
function V(e, o) {
|
|
162
|
+
D(
|
|
163
|
+
() => t.value[e],
|
|
164
|
+
(a) => {
|
|
165
|
+
typeof a < "u" && o(a);
|
|
166
|
+
},
|
|
167
|
+
{ immediate: !0 }
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
|
|
171
|
+
V("defaultHttpClient", me), V("hiddenClients", ce);
|
|
172
|
+
const fe = M(
|
|
161
173
|
() => `<style>
|
|
162
|
-
${
|
|
174
|
+
${Pe(t.value.theme, {
|
|
163
175
|
fonts: t.value.withDefaultFonts
|
|
164
176
|
})}</style>`
|
|
165
|
-
), { mediaQueries:
|
|
166
|
-
return
|
|
177
|
+
), { mediaQueries: ve } = Ne(), pe = !1;
|
|
178
|
+
return D(ve.lg, (e, o) => {
|
|
167
179
|
o && !e && (I.value = !1);
|
|
168
|
-
}), O
|
|
180
|
+
}), D(O, (e, o) => {
|
|
169
181
|
e && e !== o && (I.value = !1);
|
|
170
182
|
}), (e, o) => {
|
|
171
|
-
var
|
|
172
|
-
return
|
|
173
|
-
p("div", { innerHTML:
|
|
183
|
+
var a, k, C, $, U;
|
|
184
|
+
return n(), f(G, null, [
|
|
185
|
+
p("div", { innerHTML: fe.value }, null, 8, st),
|
|
174
186
|
p("div", {
|
|
175
187
|
ref_key: "documentEl",
|
|
176
188
|
ref: y,
|
|
177
|
-
class:
|
|
189
|
+
class: we(["scalar-app scalar-api-reference references-layout", [
|
|
178
190
|
{
|
|
179
191
|
"scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
|
|
180
|
-
"scalar-scrollbars-obtrusive":
|
|
192
|
+
"scalar-scrollbars-obtrusive": oe.value,
|
|
181
193
|
"references-editable": t.value.isEditable,
|
|
182
194
|
"references-sidebar": t.value.showSidebar,
|
|
183
195
|
"references-sidebar-mobile-open": r(I),
|
|
@@ -185,62 +197,62 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
185
197
|
},
|
|
186
198
|
e.$attrs.class
|
|
187
199
|
]]),
|
|
188
|
-
style:
|
|
200
|
+
style: ye({
|
|
189
201
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
|
|
190
202
|
})
|
|
191
203
|
}, [
|
|
192
|
-
p("div",
|
|
193
|
-
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (
|
|
204
|
+
p("div", dt, [
|
|
205
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (n(), b(We, {
|
|
194
206
|
key: 0,
|
|
195
207
|
breadcrumb: c.value.breadcrumb
|
|
196
|
-
}, null, 8, ["breadcrumb"])) :
|
|
208
|
+
}, null, 8, ["breadcrumb"])) : i("", !0),
|
|
197
209
|
d(e.$slots, "header", g(h(c.value)), void 0, !0)
|
|
198
210
|
]),
|
|
199
|
-
t.value.showSidebar ? (
|
|
211
|
+
t.value.showSidebar ? (n(), f("aside", {
|
|
200
212
|
key: 0,
|
|
201
|
-
"aria-label": `Sidebar for ${(k = (
|
|
213
|
+
"aria-label": `Sidebar for ${(k = (a = r(u)) == null ? void 0 : a.info) == null ? void 0 : k.title}`,
|
|
202
214
|
class: "references-navigation t-doc__sidebar"
|
|
203
215
|
}, [
|
|
204
|
-
p("div",
|
|
205
|
-
v(r(
|
|
206
|
-
default:
|
|
207
|
-
var
|
|
216
|
+
p("div", ct, [
|
|
217
|
+
v(r(Be), null, {
|
|
218
|
+
default: l(() => {
|
|
219
|
+
var s, m;
|
|
208
220
|
return [
|
|
209
|
-
v(r(
|
|
210
|
-
title: ((m = (
|
|
221
|
+
v(r(nt), {
|
|
222
|
+
title: ((m = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
|
|
211
223
|
}, {
|
|
212
|
-
"sidebar-start":
|
|
213
|
-
var B,
|
|
224
|
+
"sidebar-start": l(() => {
|
|
225
|
+
var B, Y;
|
|
214
226
|
return [
|
|
215
|
-
e.$slots["document-selector"] ? (
|
|
227
|
+
e.$slots["document-selector"] ? (n(), f("div", mt, [
|
|
216
228
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
217
|
-
])) :
|
|
218
|
-
t.value.hideSearch ?
|
|
219
|
-
v(r(
|
|
229
|
+
])) : i("", !0),
|
|
230
|
+
t.value.hideSearch ? i("", !0) : (n(), f("div", ft, [
|
|
231
|
+
v(r(W), {
|
|
220
232
|
searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
|
|
221
|
-
hideModels: (
|
|
233
|
+
hideModels: (Y = t.value) == null ? void 0 : Y.hideModels,
|
|
222
234
|
spec: w.value
|
|
223
235
|
}, null, 8, ["searchHotKey", "hideModels", "spec"])
|
|
224
236
|
])),
|
|
225
237
|
d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
|
|
226
238
|
];
|
|
227
239
|
}),
|
|
228
|
-
"sidebar-end":
|
|
240
|
+
"sidebar-end": l(() => [
|
|
229
241
|
d(e.$slots, "sidebar-end", g(h(c.value)), () => [
|
|
230
|
-
v(r(
|
|
231
|
-
toggle:
|
|
232
|
-
t.value.hideDarkModeToggle ? (
|
|
242
|
+
v(r(Re), { class: "darklight-reference" }, {
|
|
243
|
+
toggle: l(() => [
|
|
244
|
+
t.value.hideDarkModeToggle ? (n(), f("span", vt)) : (n(), b(r(Le), {
|
|
233
245
|
key: 0,
|
|
234
246
|
modelValue: e.isDark,
|
|
235
247
|
"onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
|
|
236
248
|
}, null, 8, ["modelValue"]))
|
|
237
249
|
]),
|
|
238
|
-
default:
|
|
239
|
-
t.value.hideClientButton ?
|
|
250
|
+
default: l(() => [
|
|
251
|
+
t.value.hideClientButton ? i("", !0) : (n(), b(r(Te), {
|
|
240
252
|
key: 0,
|
|
241
253
|
buttonSource: "sidebar",
|
|
242
254
|
integration: t.value._integration,
|
|
243
|
-
isDevelopment:
|
|
255
|
+
isDevelopment: pe,
|
|
244
256
|
url: t.value.url
|
|
245
257
|
}, null, 8, ["integration", "url"]))
|
|
246
258
|
]),
|
|
@@ -255,68 +267,68 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
255
267
|
_: 3
|
|
256
268
|
})
|
|
257
269
|
])
|
|
258
|
-
], 8,
|
|
259
|
-
|
|
260
|
-
p("div",
|
|
270
|
+
], 8, ut)) : i("", !0),
|
|
271
|
+
ke(p("div", pt, [
|
|
272
|
+
p("div", gt, [
|
|
261
273
|
d(e.$slots, "editor", g(h(c.value)), void 0, !0)
|
|
262
274
|
])
|
|
263
275
|
], 512), [
|
|
264
|
-
[
|
|
276
|
+
[Ce, t.value.isEditable]
|
|
265
277
|
]),
|
|
266
|
-
|
|
278
|
+
de.value ? (n(), f(G, { key: 1 }, [
|
|
267
279
|
p("main", {
|
|
268
|
-
"aria-label": `Open API Documentation for ${(
|
|
280
|
+
"aria-label": `Open API Documentation for ${($ = (C = r(u)) == null ? void 0 : C.info) == null ? void 0 : $.title}`,
|
|
269
281
|
class: "references-rendered"
|
|
270
282
|
}, [
|
|
271
|
-
v(r(
|
|
283
|
+
v(r(it), {
|
|
272
284
|
layout: t.value.layout,
|
|
273
285
|
document: r(u),
|
|
274
286
|
parsedSpec: w.value
|
|
275
|
-
},
|
|
276
|
-
start:
|
|
287
|
+
}, $e({
|
|
288
|
+
start: l(() => [
|
|
277
289
|
d(e.$slots, "content-start", g(h(c.value)), () => [
|
|
278
|
-
t.value.layout === "classic" ? (
|
|
279
|
-
"dark-mode-toggle":
|
|
280
|
-
t.value.hideDarkModeToggle ?
|
|
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), {
|
|
281
293
|
key: 0,
|
|
282
294
|
class: "text-c-2 hover:text-c-1",
|
|
283
295
|
mode: e.isDark ? "dark" : "light",
|
|
284
296
|
style: { transform: "scale(1.4)" },
|
|
285
297
|
variant: "icon",
|
|
286
|
-
onClick: o[1] || (o[1] = (
|
|
298
|
+
onClick: o[1] || (o[1] = (s) => e.$emit("toggleDarkMode"))
|
|
287
299
|
}, null, 8, ["mode"]))
|
|
288
300
|
]),
|
|
289
|
-
default:
|
|
290
|
-
var
|
|
301
|
+
default: l(() => {
|
|
302
|
+
var s;
|
|
291
303
|
return [
|
|
292
|
-
e.$slots["document-selector"] ? (
|
|
304
|
+
e.$slots["document-selector"] ? (n(), f("div", St, [
|
|
293
305
|
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
294
|
-
])) :
|
|
295
|
-
t.value.hideSearch ?
|
|
306
|
+
])) : i("", !0),
|
|
307
|
+
t.value.hideSearch ? i("", !0) : (n(), b(r(W), {
|
|
296
308
|
key: 1,
|
|
297
309
|
class: "t-doc__sidebar max-w-64",
|
|
298
310
|
searchHotKey: t.value.searchHotKey,
|
|
299
|
-
hideModels: (
|
|
311
|
+
hideModels: (s = t.value) == null ? void 0 : s.hideModels,
|
|
300
312
|
spec: w.value
|
|
301
313
|
}, null, 8, ["searchHotKey", "hideModels", "spec"]))
|
|
302
314
|
];
|
|
303
315
|
}),
|
|
304
316
|
_: 3
|
|
305
|
-
})) :
|
|
317
|
+
})) : i("", !0)
|
|
306
318
|
], !0)
|
|
307
319
|
]),
|
|
308
|
-
end:
|
|
320
|
+
end: l(() => [
|
|
309
321
|
d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
|
|
310
322
|
]),
|
|
311
323
|
_: 2
|
|
312
324
|
}, [
|
|
313
|
-
(
|
|
325
|
+
(U = t.value) != null && U.isEditable ? {
|
|
314
326
|
name: "empty-state",
|
|
315
|
-
fn:
|
|
316
|
-
var
|
|
327
|
+
fn: l(() => {
|
|
328
|
+
var s;
|
|
317
329
|
return [
|
|
318
|
-
v(
|
|
319
|
-
theme: ((
|
|
330
|
+
v(Qe, {
|
|
331
|
+
theme: ((s = t.value) == null ? void 0 : s.theme) || "default",
|
|
320
332
|
onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
|
|
321
333
|
onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
|
|
322
334
|
onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
|
|
@@ -327,21 +339,21 @@ const at = ["innerHTML"], st = { class: "references-header" }, lt = ["aria-label
|
|
|
327
339
|
key: "0"
|
|
328
340
|
} : void 0
|
|
329
341
|
]), 1032, ["layout", "document", "parsedSpec"])
|
|
330
|
-
], 8,
|
|
331
|
-
e.$slots.footer ? (
|
|
342
|
+
], 8, ht),
|
|
343
|
+
e.$slots.footer ? (n(), f("div", bt, [
|
|
332
344
|
d(e.$slots, "footer", g(h(c.value)), void 0, !0)
|
|
333
|
-
])) :
|
|
334
|
-
], 64)) :
|
|
335
|
-
v(r(
|
|
345
|
+
])) : i("", !0)
|
|
346
|
+
], 64)) : i("", !0),
|
|
347
|
+
v(r(lt), {
|
|
336
348
|
configuration: t.value,
|
|
337
349
|
dereferencedDocument: r(u)
|
|
338
350
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
339
351
|
], 6),
|
|
340
|
-
v(r(
|
|
352
|
+
v(r(Ue))
|
|
341
353
|
], 64);
|
|
342
354
|
};
|
|
343
355
|
}
|
|
344
356
|
});
|
|
345
357
|
export {
|
|
346
|
-
|
|
358
|
+
Jt as default
|
|
347
359
|
};
|
|
@@ -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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff689cb1"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -18,7 +18,7 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
18
18
|
}, ce = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
21
|
-
},
|
|
21
|
+
}, be = /* @__PURE__ */ D({
|
|
22
22
|
__name: "Content",
|
|
23
23
|
props: {
|
|
24
24
|
document: {},
|
|
@@ -51,9 +51,9 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
51
51
|
() => j.layout === "classic" ? "after" : "aside"
|
|
52
52
|
);
|
|
53
53
|
return (e, k) => {
|
|
54
|
-
var g,
|
|
54
|
+
var g, b, C, w, A, V, E, U, $, B, N;
|
|
55
55
|
return r(), l(m, null, [
|
|
56
|
-
k[0] || (k[0] = H('<div class="section-flare" data-v-
|
|
56
|
+
k[0] || (k[0] = H('<div class="section-flare" data-v-ff689cb1><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div><div class="section-flare-item" data-v-ff689cb1></div></div>', 1)),
|
|
57
57
|
M("div", se, [
|
|
58
58
|
f(e.$slots, "start", {}, void 0, !0),
|
|
59
59
|
o.value ? (r(), s(t(_), {
|
|
@@ -64,7 +64,7 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
64
64
|
parsedSpec: e.parsedSpec,
|
|
65
65
|
server: a.value
|
|
66
66
|
}, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : i("", !0),
|
|
67
|
-
(
|
|
67
|
+
(b = (g = e.document) == null ? void 0 : g.info) != null && b.title || (w = (C = e.document) == null ? void 0 : C.info) != null && w.description ? (r(), s(t(x), {
|
|
68
68
|
key: 1,
|
|
69
69
|
document: e.document
|
|
70
70
|
}, {
|
|
@@ -158,5 +158,5 @@ const se = { class: "narrow-references-container" }, ae = {
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
be as default
|
|
162
162
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
1
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
3
2
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
4
3
|
type __VLS_Props = {
|
|
4
|
+
document?: OpenAPIV3_1.Document;
|
|
5
5
|
path: string;
|
|
6
|
-
method:
|
|
6
|
+
method: OpenAPIV3_1.HttpMethods;
|
|
7
7
|
isWebhook?: boolean;
|
|
8
8
|
layout?: 'modern' | 'classic';
|
|
9
9
|
id: string;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `document` instead
|
|
12
|
+
*/
|
|
12
13
|
collection: Collection;
|
|
13
|
-
|
|
14
|
-
document?: OpenAPIV3_1.Document;
|
|
14
|
+
server: Server | undefined;
|
|
15
15
|
};
|
|
16
16
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAYxD,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAC;;AAuKF,wBAMG"}
|