@scalar/api-reference 1.24.73 → 1.24.75
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 +27 -0
- package/dist/browser/standalone.js +12564 -12621
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +37 -36
- package/dist/components/Card/Card.vue.js +4 -4
- package/dist/components/Card/CardContent.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +4 -4
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +9 -9
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +19 -19
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +27 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue.js +7 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue2.js +41 -0
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +10 -7
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +5 -0
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue2.js +54 -19
- package/dist/components/Content/Operation/Parameters.vue.d.ts +5 -0
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.js +2 -2
- package/dist/components/Content/Operation/Parameters.vue2.js +16 -14
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.js +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/Schema.vue2.js +57 -65
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +63 -58
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +5 -76
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +76 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +16 -15
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -21
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +12 -12
- package/dist/hooks/useReactiveSpec.d.ts +2 -0
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useResponses.d.ts +2 -1
- package/dist/hooks/useResponses.d.ts.map +1 -1
- package/dist/hooks/useResponses.js +12 -11
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.js +2 -2
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/legacy/stores/useOpenApiStore.d.ts +2 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -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":"AA4HA,OAAO,KAAK,EAA0B,cAAc,EAAE,MAAM,UAAU,CAAA;AAyFtE,iBAAS,cAAc;oBAkFM,GAAG;oBACH,GAAG;EAqB/B;AACD,QAAA,MAAM,eAAe;sCAmHoB,IAAI;;;UA5G3C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAExG,eAAO,MAAM,sBAAsB,IAAK,CAAC;AACzC,OAAO,QAAQ,KAAK,CAAC;IACpB,UAAU,gBAAgB;KAAG;CAC7B;AACD,OAAO,CAAC,MAAM,CAAC;IACd,KAAK,uBAAuB,GAAG,OAAO,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,CAAC;IAC/E,KAAK,aAAa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import { defineComponent as
|
|
2
|
-
import { migrateThemeVariables as
|
|
3
|
-
import { useSeoMeta as
|
|
4
|
-
import { useDarkModeState as
|
|
5
|
-
import { useReactiveSpec as
|
|
6
|
-
import
|
|
7
|
-
import { useHttpClientStore as
|
|
8
|
-
import { useAuthenticationStore as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as T, watch as u, computed as g, toRef as C, openBlock as v, createElementBlock as $, Fragment as b, createBlock as A, resolveDynamicComponent as B, withCtx as c, createTextVNode as E, toDisplayString as H, createCommentVNode as N, createVNode as R, unref as a, renderSlot as S } from "vue";
|
|
2
|
+
import { migrateThemeVariables as V } from "@scalar/themes";
|
|
3
|
+
import { useSeoMeta as _ } from "@unhead/vue";
|
|
4
|
+
import { useDarkModeState as F } from "../hooks/useDarkModeState.js";
|
|
5
|
+
import { useReactiveSpec as U } from "../hooks/useReactiveSpec.js";
|
|
6
|
+
import j from "./Layouts/Layouts.vue.js";
|
|
7
|
+
import { useHttpClientStore as q } from "../stores/useHttpClientStore.js";
|
|
8
|
+
import { useAuthenticationStore as z } from "../legacy/stores/useAuthenticationStore.js";
|
|
9
|
+
const W = /* @__PURE__ */ T({
|
|
10
10
|
__name: "ApiReference",
|
|
11
11
|
props: {
|
|
12
12
|
configuration: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["updateContent"],
|
|
15
|
-
setup(
|
|
16
|
-
var
|
|
17
|
-
const r =
|
|
18
|
-
(
|
|
15
|
+
setup(k) {
|
|
16
|
+
var m, l, d;
|
|
17
|
+
const r = k, { toggleDarkMode: p, isDark: f } = F(
|
|
18
|
+
(m = r.configuration) == null ? void 0 : m.darkMode,
|
|
19
|
+
(l = r.configuration) == null ? void 0 : l.forceDarkModeState
|
|
19
20
|
);
|
|
20
21
|
u(
|
|
21
22
|
() => {
|
|
@@ -23,16 +24,16 @@ const Q = /* @__PURE__ */ x({
|
|
|
23
24
|
return (e = r.configuration) == null ? void 0 : e.darkMode;
|
|
24
25
|
},
|
|
25
26
|
(e) => {
|
|
26
|
-
e !==
|
|
27
|
+
e !== f.value && p();
|
|
27
28
|
}
|
|
28
29
|
);
|
|
29
|
-
const i =
|
|
30
|
+
const i = g(() => {
|
|
30
31
|
var e, t;
|
|
31
32
|
if ((e = r.configuration) != null && e.customCss)
|
|
32
|
-
return
|
|
33
|
+
return V((t = r.configuration) == null ? void 0 : t.customCss);
|
|
33
34
|
});
|
|
34
35
|
u(i, () => console.log(i.value));
|
|
35
|
-
const o =
|
|
36
|
+
const o = g(() => {
|
|
36
37
|
var e;
|
|
37
38
|
return {
|
|
38
39
|
spec: {
|
|
@@ -48,7 +49,7 @@ const Q = /* @__PURE__ */ x({
|
|
|
48
49
|
customCss: i.value
|
|
49
50
|
};
|
|
50
51
|
});
|
|
51
|
-
(
|
|
52
|
+
(d = o.value) != null && d.metaData && _(o.value.metaData);
|
|
52
53
|
function s(e, t) {
|
|
53
54
|
u(
|
|
54
55
|
() => {
|
|
@@ -61,36 +62,36 @@ const Q = /* @__PURE__ */ x({
|
|
|
61
62
|
{ immediate: !0 }
|
|
62
63
|
);
|
|
63
64
|
}
|
|
64
|
-
const { setAuthentication:
|
|
65
|
-
s("authentication",
|
|
66
|
-
const { setExcludedClients:
|
|
67
|
-
s("defaultHttpClient",
|
|
68
|
-
const { parsedSpec: h, rawSpec:
|
|
69
|
-
proxy:
|
|
70
|
-
specConfig:
|
|
65
|
+
const { setAuthentication: D } = z();
|
|
66
|
+
s("authentication", D);
|
|
67
|
+
const { setExcludedClients: y, setDefaultHttpClient: M } = q();
|
|
68
|
+
s("defaultHttpClient", M), s("hiddenClients", y);
|
|
69
|
+
const { parsedSpec: h, rawSpec: w } = U({
|
|
70
|
+
proxy: C(() => o.value.proxy || ""),
|
|
71
|
+
specConfig: C(() => o.value.spec || {})
|
|
71
72
|
});
|
|
72
73
|
return (e, t) => {
|
|
73
74
|
var n;
|
|
74
|
-
return
|
|
75
|
-
(n = o.value) != null && n.customCss ? (
|
|
75
|
+
return v(), $(b, null, [
|
|
76
|
+
(n = o.value) != null && n.customCss ? (v(), A(B("style"), { key: 0 }, {
|
|
76
77
|
default: c(() => [
|
|
77
|
-
|
|
78
|
+
E(H(o.value.customCss), 1)
|
|
78
79
|
]),
|
|
79
80
|
_: 1
|
|
80
|
-
})) :
|
|
81
|
-
|
|
81
|
+
})) : N("", !0),
|
|
82
|
+
R(a(j), {
|
|
82
83
|
configuration: o.value,
|
|
83
|
-
isDark: a(
|
|
84
|
+
isDark: a(f),
|
|
84
85
|
parsedSpec: a(h),
|
|
85
|
-
rawSpec: a(
|
|
86
|
+
rawSpec: a(w),
|
|
86
87
|
onToggleDarkMode: t[0] || (t[0] = () => a(p)()),
|
|
87
|
-
onUpdateContent: t[1] || (t[1] = (
|
|
88
|
+
onUpdateContent: t[1] || (t[1] = (x) => e.$emit("updateContent", x))
|
|
88
89
|
}, {
|
|
89
90
|
footer: c(() => [
|
|
90
|
-
|
|
91
|
+
S(e.$slots, "footer")
|
|
91
92
|
]),
|
|
92
93
|
"content-end": c(() => [
|
|
93
|
-
|
|
94
|
+
S(e.$slots, "footer")
|
|
94
95
|
]),
|
|
95
96
|
_: 3
|
|
96
97
|
}, 8, ["configuration", "isDark", "parsedSpec", "rawSpec"])
|
|
@@ -99,5 +100,5 @@ const Q = /* @__PURE__ */ x({
|
|
|
99
100
|
}
|
|
100
101
|
});
|
|
101
102
|
export {
|
|
102
|
-
|
|
103
|
+
W as default
|
|
103
104
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as t, renderSlot as o } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
return r(), t("div",
|
|
4
|
+
const n = {}, s = { class: "scalar-card" };
|
|
5
|
+
function a(e, d) {
|
|
6
|
+
return r(), t("div", s, [
|
|
7
7
|
o(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const i = /* @__PURE__ */ c(
|
|
10
|
+
const i = /* @__PURE__ */ c(n, [["render", a], ["__scopeId", "data-v-38801681"]]);
|
|
11
11
|
export {
|
|
12
12
|
i as default
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CardContent.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dd83e46e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d 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
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dbf83e74"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as r, createElementBlock as i, unref as t, Fragment as d, createElementVNode as o, createVNode as p, toDisplayString as n, createCommentVNode as m, pushScopeId as _, popScopeId as u } from "vue";
|
|
2
2
|
import f from "./ClientSelector.vue.js";
|
|
3
3
|
import { useHttpClientStore as h } from "../../../stores/useHttpClientStore.js";
|
|
4
|
-
const C = (e) => (_("data-v-
|
|
4
|
+
const C = (e) => (_("data-v-dbf83e74"), e = e(), u(), e), g = /* @__PURE__ */ C(() => /* @__PURE__ */ o("div", { class: "client-libraries-heading" }, "Client Libraries", -1)), v = {
|
|
5
5
|
class: "selected-client card-footer",
|
|
6
6
|
muted: ""
|
|
7
7
|
}, N = /* @__PURE__ */ s({
|
|
8
8
|
__name: "ClientLibraries",
|
|
9
9
|
setup(e) {
|
|
10
10
|
const { availableTargets: l, httpTargetTitle: a, httpClientTitle: c } = h();
|
|
11
|
-
return (
|
|
11
|
+
return (S, b) => (r(), i("div", null, [
|
|
12
12
|
t(l).length ? (r(), i(d, { key: 0 }, [
|
|
13
|
-
|
|
13
|
+
g,
|
|
14
14
|
o("div", null, [
|
|
15
15
|
p(f)
|
|
16
16
|
]),
|
|
17
|
-
o("div",
|
|
17
|
+
o("div", v, n(t(c)) + " " + n(t(a)), 1)
|
|
18
18
|
], 64)) : m("", !0)
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4951736c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as I, ref as w, openBlock as n, createElementBlock as l, Fragment as
|
|
1
|
+
import { defineComponent as I, ref as w, openBlock as n, createElementBlock as l, Fragment as _, renderList as d, unref as t, normalizeClass as a, createElementVNode as c, createVNode as k, toDisplayString as f, createCommentVNode as N, pushScopeId as x, popScopeId as z } from "vue";
|
|
2
2
|
import { ScalarIcon as v } from "@scalar/components";
|
|
3
3
|
import { useHttpClientStore as B } from "../../../stores/useHttpClientStore.js";
|
|
4
|
-
const M = (o) => (x("data-v-
|
|
4
|
+
const M = (o) => (x("data-v-4951736c"), o = o(), z(), o), T = ["onClick"], J = ["value"], O = ["label"], V = ["value"], $ = { class: "client-libraries-icon__more" }, E = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "client-libraries-icon",
|
|
7
7
|
height: "50",
|
|
@@ -55,7 +55,7 @@ const M = (o) => (x("data-v-f38d55c9"), o = o(), z(), o), T = ["onClick"], J = [
|
|
|
55
55
|
ref: C,
|
|
56
56
|
class: "client-libraries-content"
|
|
57
57
|
}, [
|
|
58
|
-
(n(!0), l(
|
|
58
|
+
(n(!0), l(_, null, d(t(p), (e) => (n(), l("div", {
|
|
59
59
|
key: e.clientKey,
|
|
60
60
|
class: a(["client-libraries rendered-code-sdks", {
|
|
61
61
|
"client-libraries__active": S(e)
|
|
@@ -65,12 +65,12 @@ const M = (o) => (x("data-v-f38d55c9"), o = o(), z(), o), T = ["onClick"], J = [
|
|
|
65
65
|
c("div", {
|
|
66
66
|
class: a(`client-libraries-icon__${e.targetKey}`)
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
k(t(v), {
|
|
69
69
|
class: "client-libraries-icon",
|
|
70
70
|
icon: K(e.targetKey)
|
|
71
71
|
}, null, 8, ["icon"])
|
|
72
72
|
], 2),
|
|
73
|
-
c("span", null,
|
|
73
|
+
c("span", null, f(t(b)(e)), 1)
|
|
74
74
|
], 10, T))), 128)),
|
|
75
75
|
c("div", {
|
|
76
76
|
class: a(["client-libraries client-libraries__select", {
|
|
@@ -82,17 +82,17 @@ const M = (o) => (x("data-v-f38d55c9"), o = o(), z(), o), T = ["onClick"], J = [
|
|
|
82
82
|
value: JSON.stringify(t(r)),
|
|
83
83
|
onInput: s[0] || (s[0] = (e) => t(g)(JSON.parse(e.target.value)))
|
|
84
84
|
}, [
|
|
85
|
-
(n(!0), l(
|
|
85
|
+
(n(!0), l(_, null, d(t(y), (e) => (n(), l("optgroup", {
|
|
86
86
|
key: e.key,
|
|
87
87
|
label: e.title
|
|
88
88
|
}, [
|
|
89
|
-
(n(!0), l(
|
|
89
|
+
(n(!0), l(_, null, d(e.clients, (u) => (n(), l("option", {
|
|
90
90
|
key: u.key,
|
|
91
91
|
value: JSON.stringify({
|
|
92
92
|
targetKey: e.key,
|
|
93
93
|
clientKey: u.key
|
|
94
94
|
})
|
|
95
|
-
},
|
|
95
|
+
}, f(t(m)({
|
|
96
96
|
targetKey: e.key,
|
|
97
97
|
clientKey: u.key
|
|
98
98
|
})), 9, V))), 128))
|
|
@@ -103,7 +103,7 @@ const M = (o) => (x("data-v-f38d55c9"), o = o(), z(), o), T = ["onClick"], J = [
|
|
|
103
103
|
key: 0,
|
|
104
104
|
class: a(`client-libraries-icon__${t(r).targetKey}`)
|
|
105
105
|
}, [
|
|
106
|
-
|
|
106
|
+
k(t(v), {
|
|
107
107
|
class: "client-libraries-icon",
|
|
108
108
|
icon: K(t(r).targetKey)
|
|
109
109
|
}, null, 8, ["icon"])
|
|
@@ -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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-db9e3854"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as O, computed as m, openBlock as r, createElementBlock as n, Fragment as c, createElementVNode as
|
|
1
|
+
import { defineComponent as O, computed as m, openBlock as r, createElementBlock as n, Fragment as c, createElementVNode as h, renderSlot as u, createVNode as l, unref as o, createBlock as s, withCtx as p, normalizeClass as T, renderList as k, resolveDynamicComponent as L, createCommentVNode as C, createStaticVNode as E } from "vue";
|
|
2
2
|
import R from "./Tag/TagAccordion.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import W from "./Tag/Tag.vue.js";
|
|
4
|
+
import D from "./Operation/OperationAccordion.vue.js";
|
|
5
|
+
import F from "./Operation/Operation.vue.js";
|
|
6
6
|
import j from "./Lazy/Loading.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import q from "./Introduction/Introduction.vue.js";
|
|
9
9
|
import G from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
10
10
|
import H from "./Authentication/Authentication.vue.js";
|
|
11
11
|
import J from "./ClientLibraries/ClientLibraries.vue.js";
|
|
12
|
-
import
|
|
12
|
+
import $ from "./Lazy/Lazy.vue.js";
|
|
13
13
|
import K from "./Webhooks/Webhooks.vue.js";
|
|
14
14
|
import P from "./Models/ModelsAccordion.vue.js";
|
|
15
15
|
import Q from "./Models/Models.vue.js";
|
|
@@ -17,7 +17,7 @@ import { useSidebar as X } from "../../hooks/useSidebar.js";
|
|
|
17
17
|
import { hasModels as Y } from "../../helpers/hasModels.js";
|
|
18
18
|
import { getModels as w } from "../../helpers/getModels.js";
|
|
19
19
|
import { useNavState as Z } from "../../hooks/useNavState.js";
|
|
20
|
-
const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-
|
|
20
|
+
const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-db9e3854><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div><div class="section-flare-item" data-v-db9e3854></div></div>', 1), x = { class: "narrow-references-container" }, ke = /* @__PURE__ */ O({
|
|
21
21
|
__name: "Content",
|
|
22
22
|
props: {
|
|
23
23
|
parsedSpec: {},
|
|
@@ -28,29 +28,29 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-de854e34><div cla
|
|
|
28
28
|
},
|
|
29
29
|
setup(z) {
|
|
30
30
|
const i = z, { getOperationId: f, getTagId: d, hash: I } = Z(), { hideModels: M, collapsedSidebarItems: N } = X(), V = m(
|
|
31
|
-
() => i.layout === "accordion" ? R :
|
|
31
|
+
() => i.layout === "accordion" ? R : W
|
|
32
32
|
), A = m(
|
|
33
|
-
() => i.layout === "accordion" ?
|
|
33
|
+
() => i.layout === "accordion" ? D : F
|
|
34
34
|
), U = m(
|
|
35
35
|
() => i.layout === "accordion" ? "after" : "aside"
|
|
36
36
|
), g = i.layout !== "accordion" && !I.value.startsWith("model");
|
|
37
37
|
return (e, ee) => {
|
|
38
|
-
var v, y, S,
|
|
38
|
+
var v, y, S, b;
|
|
39
39
|
return r(), n(c, null, [
|
|
40
40
|
_,
|
|
41
|
-
|
|
41
|
+
h("div", x, [
|
|
42
42
|
u(e.$slots, "start", {}, void 0, !0),
|
|
43
43
|
l(o(j), {
|
|
44
44
|
layout: e.layout,
|
|
45
45
|
parsedSpec: e.parsedSpec
|
|
46
46
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
47
|
-
(y = (v = e.parsedSpec) == null ? void 0 : v.info) != null && y.title || (
|
|
47
|
+
(y = (v = e.parsedSpec) == null ? void 0 : v.info) != null && y.title || (b = (S = e.parsedSpec) == null ? void 0 : S.info) != null && b.description ? (r(), s(o(q), {
|
|
48
48
|
key: 0,
|
|
49
49
|
info: e.parsedSpec.info,
|
|
50
50
|
parsedSpec: e.parsedSpec
|
|
51
51
|
}, {
|
|
52
52
|
[U.value]: p(() => [
|
|
53
|
-
|
|
53
|
+
h("div", {
|
|
54
54
|
class: T(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
|
|
55
55
|
}, [
|
|
56
56
|
l(o(G), {
|
|
@@ -69,25 +69,25 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-de854e34><div cla
|
|
|
69
69
|
]),
|
|
70
70
|
_: 2
|
|
71
71
|
}, 1032, ["info", "parsedSpec"])) : u(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
72
|
-
(r(!0), n(c, null,
|
|
72
|
+
(r(!0), n(c, null, k(e.parsedSpec.tags, (a) => (r(), s(o($), {
|
|
73
73
|
id: o(d)(a),
|
|
74
74
|
key: o(d)(a),
|
|
75
75
|
isLazy: o(g) && !o(N)[o(d)(a)]
|
|
76
76
|
}, {
|
|
77
77
|
default: p(() => [
|
|
78
|
-
(r(), s(
|
|
78
|
+
(r(), s(L(V.value), {
|
|
79
79
|
id: o(d)(a),
|
|
80
80
|
spec: e.parsedSpec,
|
|
81
81
|
tag: a
|
|
82
82
|
}, {
|
|
83
83
|
default: p(() => [
|
|
84
|
-
(r(!0), n(c, null,
|
|
84
|
+
(r(!0), n(c, null, k(a.operations, (t, B) => (r(), s(o($), {
|
|
85
85
|
id: o(f)(t, a),
|
|
86
86
|
key: `${t.httpVerb}-${t.operationId}`,
|
|
87
87
|
isLazy: B > 0
|
|
88
88
|
}, {
|
|
89
89
|
default: p(() => [
|
|
90
|
-
(r(), s(
|
|
90
|
+
(r(), s(L(A.value), {
|
|
91
91
|
id: o(f)(t, a),
|
|
92
92
|
operation: t,
|
|
93
93
|
tag: a
|
|
@@ -104,7 +104,7 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-de854e34><div cla
|
|
|
104
104
|
e.parsedSpec.webhooks ? (r(), s(o(K), {
|
|
105
105
|
key: 2,
|
|
106
106
|
webhooks: e.parsedSpec.webhooks
|
|
107
|
-
}, null, 8, ["webhooks"])) :
|
|
107
|
+
}, null, 8, ["webhooks"])) : C("", !0),
|
|
108
108
|
o(Y)(e.parsedSpec) && !o(M) ? (r(), n(c, { key: 3 }, [
|
|
109
109
|
e.layout === "accordion" ? (r(), s(o(P), {
|
|
110
110
|
key: 0,
|
|
@@ -113,7 +113,7 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-de854e34><div cla
|
|
|
113
113
|
key: 1,
|
|
114
114
|
schemas: o(w)(e.parsedSpec)
|
|
115
115
|
}, null, 8, ["schemas"]))
|
|
116
|
-
], 64)) :
|
|
116
|
+
], 64)) : C("", !0),
|
|
117
117
|
u(e.$slots, "end", {}, void 0, !0)
|
|
118
118
|
])
|
|
119
119
|
], 64);
|
|
@@ -121,5 +121,5 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-de854e34><div cla
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
export {
|
|
124
|
-
|
|
124
|
+
ke as default
|
|
125
125
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ContentType, RequestBody } from '@scalar/oas-utils';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
requestBody?: RequestBody;
|
|
4
|
+
defaultValue?: ContentType;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
selectContentType: (payload: {
|
|
7
|
+
contentType: ContentType;
|
|
8
|
+
}) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
10
|
+
requestBody?: RequestBody;
|
|
11
|
+
defaultValue?: ContentType;
|
|
12
|
+
}>>> & {
|
|
13
|
+
onSelectContentType?: ((payload: {
|
|
14
|
+
contentType: ContentType;
|
|
15
|
+
}) => any) | undefined;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=ContentTypeSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ContentTypeSelect.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;;kBAMjD,WAAW;mBACV,WAAW;;;qBAIuB,WAAW;;;kBAL9C,WAAW;mBACV,WAAW;;;qBAIuB,WAAW;;;AA0F9D,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as v, computed as g, ref as C, openBlock as o, createElementBlock as l, normalizeClass as f, createElementVNode as _, toDisplayString as d, Fragment as B, renderList as h, createCommentVNode as T } from "vue";
|
|
2
|
+
const q = ["value"], V = ["value"], k = /* @__PURE__ */ v({
|
|
3
|
+
__name: "ContentTypeSelect",
|
|
4
|
+
props: {
|
|
5
|
+
requestBody: {},
|
|
6
|
+
defaultValue: {}
|
|
7
|
+
},
|
|
8
|
+
emits: ["selectContentType"],
|
|
9
|
+
setup(p, { emit: i }) {
|
|
10
|
+
const e = p, m = i, y = (t) => {
|
|
11
|
+
const n = t.target.value;
|
|
12
|
+
a.value = n, m("selectContentType", { contentType: n });
|
|
13
|
+
}, s = g(() => {
|
|
14
|
+
var t;
|
|
15
|
+
return (t = e.requestBody) != null && t.content ? Object.keys(e.requestBody.content) : [];
|
|
16
|
+
}), a = C(
|
|
17
|
+
e.defaultValue || s.value[0]
|
|
18
|
+
);
|
|
19
|
+
return (t, c) => {
|
|
20
|
+
var n;
|
|
21
|
+
return o(), l("div", {
|
|
22
|
+
class: f(["content-type-select", { "content-type-no-select": s.value.length <= 1 }])
|
|
23
|
+
}, [
|
|
24
|
+
_("span", null, d(a.value), 1),
|
|
25
|
+
e != null && e.requestBody && s.value.length > 1 ? (o(), l("select", {
|
|
26
|
+
key: 0,
|
|
27
|
+
value: a.value,
|
|
28
|
+
onChange: c[0] || (c[0] = (r) => y(r))
|
|
29
|
+
}, [
|
|
30
|
+
(o(!0), l(B, null, h((n = e.requestBody) == null ? void 0 : n.content, (r, u) => (o(), l("option", {
|
|
31
|
+
key: u,
|
|
32
|
+
value: u
|
|
33
|
+
}, d(u), 9, V))), 128))
|
|
34
|
+
], 40, q)) : T("", !0)
|
|
35
|
+
], 2);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
k as default
|
|
41
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointDetails.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointDetails.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EndpointDetails.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointDetails.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;eAQ1B,oBAAoB;;eAApB,oBAAoB;;AA8JvD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -4,15 +4,15 @@ import o from "./Parameters.vue.js";
|
|
|
4
4
|
import q from "./RequestBody.vue.js";
|
|
5
5
|
import { useResponses as k } from "../../../hooks/useResponses.js";
|
|
6
6
|
import { useOperation as P } from "../../../hooks/useOperation.js";
|
|
7
|
-
const v = { class: "endpoint-details" }, w = { class: "endpoint-description" },
|
|
7
|
+
const v = { class: "endpoint-details" }, w = { class: "endpoint-description" }, I = /* @__PURE__ */ u({
|
|
8
8
|
__name: "EndpointDetails",
|
|
9
9
|
props: {
|
|
10
10
|
operation: {}
|
|
11
11
|
},
|
|
12
12
|
setup(l) {
|
|
13
|
-
const
|
|
13
|
+
const m = l, { parameterMap: s } = P(m), { responses: c } = k(m.operation);
|
|
14
14
|
return (p, C) => {
|
|
15
|
-
var
|
|
15
|
+
var n, i;
|
|
16
16
|
return d(), _("div", v, [
|
|
17
17
|
f("div", w, [
|
|
18
18
|
e(t(B), {
|
|
@@ -61,16 +61,19 @@ const v = { class: "endpoint-details" }, w = { class: "endpoint-description" },
|
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}, 8, ["parameters"]),
|
|
64
|
-
(
|
|
64
|
+
(n = p.operation.information) != null && n.requestBody ? (d(), y(q, {
|
|
65
65
|
key: 0,
|
|
66
|
-
requestBody: (
|
|
66
|
+
requestBody: (i = p.operation.information) == null ? void 0 : i.requestBody
|
|
67
67
|
}, {
|
|
68
68
|
title: r(() => [
|
|
69
69
|
a("Body")
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
72
|
}, 8, ["requestBody"])) : h("", !0),
|
|
73
|
-
e(o, {
|
|
73
|
+
e(o, {
|
|
74
|
+
collapsableItems: !0,
|
|
75
|
+
parameters: t(c)
|
|
76
|
+
}, {
|
|
74
77
|
title: r(() => [
|
|
75
78
|
a("Responses")
|
|
76
79
|
]),
|
|
@@ -81,5 +84,5 @@ const v = { class: "endpoint-details" }, w = { class: "endpoint-description" },
|
|
|
81
84
|
}
|
|
82
85
|
});
|
|
83
86
|
export {
|
|
84
|
-
|
|
87
|
+
I as default
|
|
85
88
|
};
|
|
@@ -2,15 +2,20 @@ import type { Parameters } from '@scalar/oas-utils';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
parameter: Parameters;
|
|
4
4
|
showChildren?: boolean;
|
|
5
|
+
collapsableItems?: boolean;
|
|
5
6
|
}>, {
|
|
6
7
|
showChildren: boolean;
|
|
8
|
+
collapsableItems: boolean;
|
|
7
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
8
10
|
parameter: Parameters;
|
|
9
11
|
showChildren?: boolean;
|
|
12
|
+
collapsableItems?: boolean;
|
|
10
13
|
}>, {
|
|
11
14
|
showChildren: boolean;
|
|
15
|
+
collapsableItems: boolean;
|
|
12
16
|
}>>>, {
|
|
13
17
|
showChildren: boolean;
|
|
18
|
+
collapsableItems: boolean;
|
|
14
19
|
}, {}>;
|
|
15
20
|
export default _default;
|
|
16
21
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,mBAAmB,CAAA;;eASjD,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;eAFf,UAAU;mBACN,OAAO;uBACH,OAAO;;;;;kBADX,OAAO;sBACH,OAAO;;AAoM9B,wBAMG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const a = /* @__PURE__ */
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-decfd300"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|