@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,100 +1,105 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { useSidebar as
|
|
14
|
-
import { useNavState as
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as b, openBlock as n, createBlock as c, unref as e, withCtx as a, createVNode as o, createTextVNode as p, toDisplayString as u, createElementVNode as f, createElementBlock as g, Fragment as y, renderList as V, normalizeClass as E, createCommentVNode as I } from "vue";
|
|
2
|
+
import { ScalarMarkdown as w } from "@scalar/components";
|
|
3
|
+
import A from "../../Section/Section.vue.js";
|
|
4
|
+
import B from "../../Section/SectionContent.vue.js";
|
|
5
|
+
import H from "../../Section/SectionColumns.vue.js";
|
|
6
|
+
import C from "../../Section/SectionColumn.vue.js";
|
|
7
|
+
import T from "../../Section/SectionHeader.vue.js";
|
|
8
|
+
import O from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import $ from "../../Card/Card.vue.js";
|
|
10
|
+
import z from "../../Card/CardHeader.vue.js";
|
|
11
|
+
import D from "../../Card/CardContent.vue.js";
|
|
12
|
+
import F from "../../HttpMethod/HttpMethod.vue.js";
|
|
13
|
+
import { useSidebar as L } from "../../../hooks/useSidebar.js";
|
|
14
|
+
import { useNavState as M } from "../../../hooks/useNavState.js";
|
|
15
|
+
const U = { class: "endpoints" }, j = ["onClick"], re = /* @__PURE__ */ b({
|
|
16
16
|
__name: "Endpoints",
|
|
17
17
|
props: {
|
|
18
18
|
id: {},
|
|
19
19
|
tag: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["observeAndNavigate"],
|
|
22
|
-
setup(
|
|
23
|
-
const l =
|
|
24
|
-
|
|
22
|
+
setup(_, { emit: h }) {
|
|
23
|
+
const l = _, v = h, { getOperationId: i, getTagId: d } = M(), { setCollapsedSidebarItem: S } = L(), k = (t) => {
|
|
24
|
+
v("observeAndNavigate", t);
|
|
25
25
|
};
|
|
26
|
-
async function
|
|
27
|
-
|
|
26
|
+
async function N(t) {
|
|
27
|
+
k(i(t, l.tag)), S(d(l.tag), !0);
|
|
28
28
|
}
|
|
29
|
-
return (t,
|
|
29
|
+
return (t, q) => (n(), c(e(A), {
|
|
30
30
|
id: t.id,
|
|
31
31
|
label: t.tag.name.toUpperCase()
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
id: e(
|
|
33
|
+
default: a(() => [
|
|
34
|
+
o(e(B), null, {
|
|
35
|
+
default: a(() => [
|
|
36
|
+
o(e(H), null, {
|
|
37
|
+
default: a(() => [
|
|
38
|
+
o(e(C), null, {
|
|
39
|
+
default: a(() => [
|
|
40
|
+
o(e(T), { level: 2 }, {
|
|
41
|
+
default: a(() => [
|
|
42
|
+
o(e(O), {
|
|
43
|
+
id: e(d)(t.tag)
|
|
44
44
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
u(
|
|
45
|
+
default: a(() => [
|
|
46
|
+
p(u(t.tag["x-displayName"] ?? t.tag.name), 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["id"])
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
52
52
|
}),
|
|
53
|
-
|
|
53
|
+
o(e(w), {
|
|
54
54
|
value: t.tag.description,
|
|
55
55
|
withImages: ""
|
|
56
56
|
}, null, 8, ["value"])
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}),
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
var
|
|
60
|
+
o(e(C), null, {
|
|
61
|
+
default: a(() => {
|
|
62
|
+
var m;
|
|
63
63
|
return [
|
|
64
|
-
((
|
|
64
|
+
((m = t.tag.operations) == null ? void 0 : m.length) > 0 ? (n(), c(e($), {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "scalar-card-sticky"
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
68
|
+
default: a(() => [
|
|
69
|
+
o(e(z), { muted: "" }, {
|
|
70
|
+
default: a(() => [
|
|
71
|
+
p("Endpoints")
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}),
|
|
75
|
-
|
|
75
|
+
o(e(D), {
|
|
76
76
|
class: "custom-scroll",
|
|
77
77
|
muted: ""
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
(n(!0),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
default: a(() => [
|
|
80
|
+
f("div", U, [
|
|
81
|
+
(n(!0), g(y, null, V(t.tag.operations, (r) => {
|
|
82
|
+
var s;
|
|
83
|
+
return n(), g("a", {
|
|
84
|
+
key: e(i)(r, t.tag),
|
|
85
|
+
class: "endpoint",
|
|
86
|
+
onClick: (G) => N(r)
|
|
87
|
+
}, [
|
|
88
|
+
o(e(F), {
|
|
89
|
+
method: r.httpVerb
|
|
90
|
+
}, null, 8, ["method"]),
|
|
91
|
+
f("span", {
|
|
92
|
+
class: E({ deprecated: (s = r.information) == null ? void 0 : s.deprecated })
|
|
93
|
+
}, u(r.path), 3)
|
|
94
|
+
], 8, j);
|
|
95
|
+
}), 128))
|
|
91
96
|
])
|
|
92
97
|
]),
|
|
93
98
|
_: 1
|
|
94
99
|
})
|
|
95
100
|
]),
|
|
96
101
|
_: 1
|
|
97
|
-
})) :
|
|
102
|
+
})) : I("", !0)
|
|
98
103
|
];
|
|
99
104
|
}),
|
|
100
105
|
_: 1
|
|
@@ -111,5 +116,5 @@ const M = { class: "endpoints" }, U = ["onClick"], oe = /* @__PURE__ */ N({
|
|
|
111
116
|
}
|
|
112
117
|
});
|
|
113
118
|
export {
|
|
114
|
-
|
|
119
|
+
re as default
|
|
115
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AA8DlD,iBAAS,cAAc;qBA2EO,GAAG;EAsBhC;AACD,QAAA,MAAM,eAAe;SApJd,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;aAwJV,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 o from "./Tag.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-8ef9660c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;;cAiBrC,QAAQ;;cAAR,QAAQ;;AAuKpB,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"}
|
|
@@ -1,78 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import I from "../../Section/Section.vue.js";
|
|
6
|
-
import O from "../../Section/SectionContent.vue.js";
|
|
7
|
-
import W from "../../Section/SectionHeader.vue.js";
|
|
8
|
-
import A from "../../Anchor/Anchor.vue.js";
|
|
9
|
-
import { useNavState as D } from "../../../hooks/useNavState.js";
|
|
10
|
-
const F = /* @__PURE__ */ N("div", { id: "webhooks" }, null, -1), P = /* @__PURE__ */ v({
|
|
11
|
-
__name: "Webhooks",
|
|
12
|
-
props: {
|
|
13
|
-
webhooks: {}
|
|
14
|
-
},
|
|
15
|
-
setup(y) {
|
|
16
|
-
const _ = y, k = S(() => Object.keys(_.webhooks ?? {})), { getWebhookId: c } = D();
|
|
17
|
-
return (l, H) => k.value.length ? (r(), i(o(E), { key: 0 }, {
|
|
18
|
-
default: n(() => [
|
|
19
|
-
F,
|
|
20
|
-
(r(!0), s(u, null, b(k.value, (e) => {
|
|
21
|
-
var m;
|
|
22
|
-
return r(), s(u, { key: e }, [
|
|
23
|
-
(r(!0), s(u, null, b(Object.keys(
|
|
24
|
-
(m = l.webhooks) == null ? void 0 : m[e]
|
|
25
|
-
), (t) => (r(), i(o(I), {
|
|
26
|
-
id: o(c)(e, t),
|
|
27
|
-
key: t,
|
|
28
|
-
label: e
|
|
29
|
-
}, {
|
|
30
|
-
default: n(() => {
|
|
31
|
-
var f;
|
|
32
|
-
return [
|
|
33
|
-
(f = l.webhooks) != null && f[e] ? (r(), i(o(O), { key: 0 }, {
|
|
34
|
-
default: n(() => {
|
|
35
|
-
var p, w;
|
|
36
|
-
return [
|
|
37
|
-
a(o(W), { level: 2 }, {
|
|
38
|
-
default: n(() => [
|
|
39
|
-
a(o(A), {
|
|
40
|
-
id: o(c)(e, t)
|
|
41
|
-
}, {
|
|
42
|
-
default: n(() => {
|
|
43
|
-
var h;
|
|
44
|
-
return [
|
|
45
|
-
g(C((h = l.webhooks[e][t]) == null ? void 0 : h.name), 1)
|
|
46
|
-
];
|
|
47
|
-
}),
|
|
48
|
-
_: 2
|
|
49
|
-
}, 1032, ["id"])
|
|
50
|
-
]),
|
|
51
|
-
_: 2
|
|
52
|
-
}, 1024),
|
|
53
|
-
(p = l.webhooks[e][t]) != null && p.description ? (r(), i(o(B), {
|
|
54
|
-
key: 0,
|
|
55
|
-
value: (w = l.webhooks[e][t]) == null ? void 0 : w.description,
|
|
56
|
-
withImages: ""
|
|
57
|
-
}, null, 8, ["value"])) : d("", !0),
|
|
58
|
-
a(j, {
|
|
59
|
-
webhook: l.webhooks[e][t]
|
|
60
|
-
}, null, 8, ["webhook"])
|
|
61
|
-
];
|
|
62
|
-
}),
|
|
63
|
-
_: 2
|
|
64
|
-
}, 1024)) : d("", !0)
|
|
65
|
-
];
|
|
66
|
-
}),
|
|
67
|
-
_: 2
|
|
68
|
-
}, 1032, ["id", "label"]))), 128))
|
|
69
|
-
], 64);
|
|
70
|
-
}), 128))
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
})) : d("", !0);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
1
|
+
import o from "./Webhooks.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1eb04ed"]]);
|
|
76
5
|
export {
|
|
77
|
-
|
|
6
|
+
m as default
|
|
78
7
|
};
|
|
@@ -1,4 +1,78 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as y, computed as v, openBlock as r, createBlock as s, unref as o, withCtx as n, createElementBlock as d, Fragment as u, renderList as S, createVNode as c, createTextVNode as g, toDisplayString as C, createCommentVNode as a, pushScopeId as I, popScopeId as N, createElementVNode as B } from "vue";
|
|
2
|
+
import { ScalarMarkdown as j } from "@scalar/components";
|
|
3
|
+
import E from "./Webhook.vue.js";
|
|
4
|
+
import O from "../../Section/SectionContainer.vue.js";
|
|
5
|
+
import W from "../../Section/Section.vue.js";
|
|
6
|
+
import A from "../../Section/SectionContent.vue.js";
|
|
7
|
+
import D from "../../Section/SectionHeader.vue.js";
|
|
8
|
+
import F from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import { useNavState as H } from "../../../hooks/useNavState.js";
|
|
10
|
+
const K = (l) => (I("data-v-f1eb04ed"), l = l(), N(), l), L = /* @__PURE__ */ K(() => /* @__PURE__ */ B("div", { id: "webhooks" }, null, -1)), U = /* @__PURE__ */ y({
|
|
11
|
+
__name: "Webhooks",
|
|
12
|
+
props: {
|
|
13
|
+
webhooks: {}
|
|
14
|
+
},
|
|
15
|
+
setup(l) {
|
|
16
|
+
const _ = l, k = v(() => Object.keys(_.webhooks ?? {})), { getWebhookId: m } = H();
|
|
17
|
+
return (i, M) => k.value.length ? (r(), s(o(O), { key: 0 }, {
|
|
18
|
+
default: n(() => [
|
|
19
|
+
L,
|
|
20
|
+
(r(!0), d(u, null, S(k.value, (e) => {
|
|
21
|
+
var p;
|
|
22
|
+
return r(), d(u, { key: e }, [
|
|
23
|
+
(r(!0), d(u, null, S(Object.keys(
|
|
24
|
+
(p = i.webhooks) == null ? void 0 : p[e]
|
|
25
|
+
), (t) => (r(), s(o(W), {
|
|
26
|
+
id: o(m)(e, t),
|
|
27
|
+
key: t,
|
|
28
|
+
label: e
|
|
29
|
+
}, {
|
|
30
|
+
default: n(() => {
|
|
31
|
+
var f;
|
|
32
|
+
return [
|
|
33
|
+
(f = i.webhooks) != null && f[e] ? (r(), s(o(A), { key: 0 }, {
|
|
34
|
+
default: n(() => {
|
|
35
|
+
var h, w;
|
|
36
|
+
return [
|
|
37
|
+
c(o(D), { level: 2 }, {
|
|
38
|
+
default: n(() => [
|
|
39
|
+
c(o(F), {
|
|
40
|
+
id: o(m)(e, t)
|
|
41
|
+
}, {
|
|
42
|
+
default: n(() => {
|
|
43
|
+
var b;
|
|
44
|
+
return [
|
|
45
|
+
g(C((b = i.webhooks[e][t]) == null ? void 0 : b.name), 1)
|
|
46
|
+
];
|
|
47
|
+
}),
|
|
48
|
+
_: 2
|
|
49
|
+
}, 1032, ["id"])
|
|
50
|
+
]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1024),
|
|
53
|
+
(h = i.webhooks[e][t]) != null && h.description ? (r(), s(o(j), {
|
|
54
|
+
key: 0,
|
|
55
|
+
value: (w = i.webhooks[e][t]) == null ? void 0 : w.description,
|
|
56
|
+
withImages: ""
|
|
57
|
+
}, null, 8, ["value"])) : a("", !0),
|
|
58
|
+
c(E, {
|
|
59
|
+
webhook: i.webhooks[e][t]
|
|
60
|
+
}, null, 8, ["webhook"])
|
|
61
|
+
];
|
|
62
|
+
}),
|
|
63
|
+
_: 2
|
|
64
|
+
}, 1024)) : a("", !0)
|
|
65
|
+
];
|
|
66
|
+
}),
|
|
67
|
+
_: 2
|
|
68
|
+
}, 1032, ["id", "label"]))), 128))
|
|
69
|
+
], 64);
|
|
70
|
+
}), 128))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})) : a("", !0);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
2
76
|
export {
|
|
3
|
-
|
|
77
|
+
U as default
|
|
4
78
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DarkModeToggle.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfb18750"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as s, createVNode as
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as s, createVNode as d, unref as c, pushScopeId as i, popScopeId as p } from "vue";
|
|
2
2
|
import { ScalarIcon as l } from "@scalar/components";
|
|
3
|
-
const k = (e) => (i("data-v-
|
|
3
|
+
const k = (e) => (i("data-v-bfb18750"), e = e(), p(), e), m = { class: "darklight-reference" }, g = { key: 0 }, _ = { key: 1 }, h = /* @__PURE__ */ k(() => /* @__PURE__ */ s("a", {
|
|
4
4
|
class: "darklight-reference-promo",
|
|
5
5
|
href: "https://www.scalar.com",
|
|
6
6
|
target: "_blank"
|
|
@@ -17,7 +17,7 @@ const k = (e) => (i("data-v-c2022750"), e = e(), p(), e), m = { class: "darkligh
|
|
|
17
17
|
type: "button",
|
|
18
18
|
onClick: a[0] || (a[0] = (f) => r.$emit("toggleDarkMode"))
|
|
19
19
|
}, [
|
|
20
|
-
c(
|
|
20
|
+
d(c(l), {
|
|
21
21
|
icon: "LightDarkModeToggle",
|
|
22
22
|
size: "md"
|
|
23
23
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA0B7E,iBAAS,cAAc,0DAiItB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as f, useSlots as g, computed as k, openBlock as i, createBlock as p, createSlots as S, withCtx as t, createVNode as d, unref as l, createCommentVNode as D, renderList as C, renderSlot as y, normalizeProps as M, guardReactiveProps as w } from "vue";
|
|
2
|
+
import h from "../ApiReferenceLayout.vue.js";
|
|
3
3
|
import v from "../ClassicHeader.vue.js";
|
|
4
4
|
import B from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
5
5
|
import H from "../../features/Search/SearchButton.vue.js";
|
|
6
|
-
const
|
|
6
|
+
const N = /* @__PURE__ */ f({
|
|
7
7
|
__name: "ClassicLayout",
|
|
8
8
|
props: {
|
|
9
9
|
configuration: {},
|
|
@@ -12,24 +12,25 @@ const P = /* @__PURE__ */ u({
|
|
|
12
12
|
isDark: { type: Boolean }
|
|
13
13
|
},
|
|
14
14
|
emits: ["toggleDarkMode", "updateContent"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
return (e, o) => (
|
|
15
|
+
setup(c) {
|
|
16
|
+
const n = c, u = g(), s = k(() => ({ ...n.configuration, showSidebar: !1 }));
|
|
17
|
+
return (e, o) => (i(), p(h, {
|
|
18
18
|
configuration: s.value,
|
|
19
19
|
parsedSpec: e.parsedSpec,
|
|
20
20
|
rawSpec: e.rawSpec,
|
|
21
21
|
onUpdateContent: o[1] || (o[1] = (r) => e.$emit("updateContent", r))
|
|
22
|
-
},
|
|
22
|
+
}, S({
|
|
23
23
|
"content-start": t(({ spec: r }) => [
|
|
24
|
-
|
|
24
|
+
d(v, null, {
|
|
25
25
|
"dark-mode-toggle": t(() => [
|
|
26
|
-
n(p(B), {
|
|
26
|
+
n.configuration.hideDarkModeToggle ? D("", !0) : (i(), p(l(B), {
|
|
27
|
+
key: 0,
|
|
27
28
|
isDarkMode: e.isDark,
|
|
28
29
|
onToggleDarkMode: o[0] || (o[0] = (a) => e.$emit("toggleDarkMode"))
|
|
29
|
-
}, null, 8, ["isDarkMode"])
|
|
30
|
+
}, null, 8, ["isDarkMode"]))
|
|
30
31
|
]),
|
|
31
32
|
default: t(() => [
|
|
32
|
-
|
|
33
|
+
d(l(H), {
|
|
33
34
|
class: "t-doc__sidebar",
|
|
34
35
|
searchHotKey: s.value.searchHotKey,
|
|
35
36
|
spec: r
|
|
@@ -40,15 +41,15 @@ const P = /* @__PURE__ */ u({
|
|
|
40
41
|
]),
|
|
41
42
|
_: 2
|
|
42
43
|
}, [
|
|
43
|
-
|
|
44
|
+
C(u, (r, a) => ({
|
|
44
45
|
name: a,
|
|
45
|
-
fn: t((
|
|
46
|
-
|
|
46
|
+
fn: t((m) => [
|
|
47
|
+
y(e.$slots, a, M(w(m || {})))
|
|
47
48
|
])
|
|
48
49
|
}))
|
|
49
50
|
]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
N as default
|
|
54
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAqC7E,iBAAS,cAAc,0DAoJtB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9fe2e3b4"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as k, useSlots as M, watch as
|
|
1
|
+
import { defineComponent as k, useSlots as M, watch as l, openBlock as i, createBlock as p, normalizeClass as b, createSlots as h, withCtx as n, unref as d, isRef as y, createCommentVNode as u, createElementVNode as D, createVNode as v, renderList as w, renderSlot as C, normalizeProps as B, guardReactiveProps as N } from "vue";
|
|
2
2
|
import { useMediaQuery as $ } from "@vueuse/core";
|
|
3
3
|
import H from "../ApiReferenceLayout.vue.js";
|
|
4
4
|
import K from "../MobileHeader.vue.js";
|
|
5
5
|
import L from "../../features/Search/SearchButton.vue.js";
|
|
6
6
|
import R from "../DarkModeToggle/DarkModeToggle.vue.js";
|
|
7
|
-
import { useSidebar as
|
|
8
|
-
import { useNavState as
|
|
9
|
-
const
|
|
7
|
+
import { useSidebar as T } from "../../hooks/useSidebar.js";
|
|
8
|
+
import { useNavState as V } from "../../hooks/useNavState.js";
|
|
9
|
+
const z = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__ */ k({
|
|
10
10
|
__name: "ModernLayout",
|
|
11
11
|
props: {
|
|
12
12
|
configuration: {},
|
|
@@ -16,14 +16,14 @@ const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["toggleDarkMode", "updateContent"],
|
|
18
18
|
setup(c) {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const s = c, f = M(), m = $("(max-width: 1000px)"), { isSidebarOpen: a } = T();
|
|
20
|
+
l(m, (e, o) => {
|
|
21
21
|
e && !o && (a.value = !1);
|
|
22
22
|
});
|
|
23
|
-
const { hash:
|
|
24
|
-
return
|
|
23
|
+
const { hash: g } = V();
|
|
24
|
+
return l(g, (e, o) => {
|
|
25
25
|
e && e !== o && (a.value = !1);
|
|
26
|
-
}), (e, o) => (
|
|
26
|
+
}), (e, o) => (i(), p(H, {
|
|
27
27
|
class: b({
|
|
28
28
|
"scalar-api-references-standalone-mobile": e.configuration.showSidebar
|
|
29
29
|
}),
|
|
@@ -33,35 +33,36 @@ const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__
|
|
|
33
33
|
onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
|
|
34
34
|
}, h({
|
|
35
35
|
header: n(() => [
|
|
36
|
-
|
|
36
|
+
s.configuration.showSidebar ? (i(), p(K, {
|
|
37
37
|
key: 0,
|
|
38
|
-
open:
|
|
39
|
-
"onUpdate:open": o[0] || (o[0] = (r) =>
|
|
40
|
-
}, null, 8, ["open"])) :
|
|
38
|
+
open: d(a),
|
|
39
|
+
"onUpdate:open": o[0] || (o[0] = (r) => y(a) ? a.value = r : null)
|
|
40
|
+
}, null, 8, ["open"])) : u("", !0)
|
|
41
41
|
]),
|
|
42
42
|
"sidebar-start": n(({ spec: r }) => {
|
|
43
43
|
var t;
|
|
44
44
|
return [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
searchHotKey: (t =
|
|
45
|
+
D("div", z, [
|
|
46
|
+
v(d(L), {
|
|
47
|
+
searchHotKey: (t = s.configuration) == null ? void 0 : t.searchHotKey,
|
|
48
48
|
spec: r
|
|
49
49
|
}, null, 8, ["searchHotKey", "spec"])
|
|
50
50
|
])
|
|
51
51
|
];
|
|
52
52
|
}),
|
|
53
53
|
"sidebar-end": n(() => [
|
|
54
|
-
u(
|
|
54
|
+
s.configuration.hideDarkModeToggle ? u("", !0) : (i(), p(d(R), {
|
|
55
|
+
key: 0,
|
|
55
56
|
isDarkMode: e.isDark,
|
|
56
57
|
onToggleDarkMode: o[1] || (o[1] = (r) => e.$emit("toggleDarkMode"))
|
|
57
|
-
}, null, 8, ["isDarkMode"])
|
|
58
|
+
}, null, 8, ["isDarkMode"]))
|
|
58
59
|
]),
|
|
59
60
|
_: 2
|
|
60
61
|
}, [
|
|
61
|
-
|
|
62
|
+
w(f, (r, t) => ({
|
|
62
63
|
name: t,
|
|
63
|
-
fn: n((
|
|
64
|
-
C(e.$slots, t, B(N(
|
|
64
|
+
fn: n((S) => [
|
|
65
|
+
C(e.$slots, t, B(N(S || {})), void 0, !0)
|
|
65
66
|
])
|
|
66
67
|
}))
|
|
67
68
|
]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Section.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-fc324287"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -7,7 +7,7 @@ function i(e, a) {
|
|
|
7
7
|
n(e.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const l = /* @__PURE__ */ r(c, [["render", i], ["__scopeId", "data-v-
|
|
10
|
+
const l = /* @__PURE__ */ r(c, [["render", i], ["__scopeId", "data-v-823b8471"]]);
|
|
11
11
|
export {
|
|
12
12
|
l as default
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":";QAsEM,MAAM;;QAAN,MAAM;;AAmEZ,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.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-b1ddf847"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,KAAK,gBAAgB,EAA2B,MAAM,aAAa,CAAA;AAwE5E,iBAAS,cAAc;6BA8Oc,GAAG;2BACJ,GAAG;EAuBtC;AACD,QAAA,MAAM,eAAe;gBAxUL,IAAI;;gBAAJ,IAAI;gCA8UlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-4420a9a3"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|