@scalar/api-reference 1.24.74 → 1.24.76
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 +26 -0
- package/dist/browser/standalone.js +7481 -7449
- 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 +71 -71
- package/dist/components/Content/Content.vue2.js +11 -11
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- 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/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +28 -22
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -6
- 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 +57 -60
- 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/Tag/Tag.vue2.js +21 -33
- 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/Section/SectionContainer.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +4 -4
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +11 -10
- 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/hooks/useSidebar.d.ts +9 -0
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +123 -108
- package/dist/index.js +20 -19
- 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/package.json +5 -5
- package/dist/components/Content/Tag/mutationObserver.d.ts +0 -3
- package/dist/components/Content/Tag/mutationObserver.d.ts.map +0 -1
- package/dist/components/Content/Tag/mutationObserver.js +0 -7
|
@@ -5,15 +5,20 @@ declare function __VLS_template(): {
|
|
|
5
5
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
6
|
parameters?: Parameters[];
|
|
7
7
|
showChildren?: boolean;
|
|
8
|
+
collapsableItems?: boolean;
|
|
8
9
|
}>, {
|
|
9
10
|
showChildren: boolean;
|
|
11
|
+
collapsableItems: boolean;
|
|
10
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
11
13
|
parameters?: Parameters[];
|
|
12
14
|
showChildren?: boolean;
|
|
15
|
+
collapsableItems?: boolean;
|
|
13
16
|
}>, {
|
|
14
17
|
showChildren: boolean;
|
|
18
|
+
collapsableItems: boolean;
|
|
15
19
|
}>>>, {
|
|
16
20
|
showChildren: boolean;
|
|
21
|
+
collapsableItems: boolean;
|
|
17
22
|
}, {}>;
|
|
18
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
19
24
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AA4BnD,iBAAS,cAAc;mBA0CI,GAAG;EAe7B;AACD,QAAA,MAAM,eAAe;iBA/EJ,UAAU,EAAE;mBACV,OAAO;uBACH,OAAO;;;;;iBAFb,UAAU,EAAE;mBACV,OAAO;uBACH,OAAO;;;;;kBADX,OAAO;sBACH,OAAO;MAmF5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,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,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 "./Parameters.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-425e9f7e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as o, openBlock as t, createElementBlock as l, createElementVNode as s, renderSlot as n, Fragment as m, renderList as p, createBlock as d, createCommentVNode as c } from "vue";
|
|
2
|
+
import i from "./ParameterItem.vue.js";
|
|
3
3
|
const h = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "parameters"
|
|
6
|
-
}, u = { class: "parameters-title" },
|
|
6
|
+
}, u = { class: "parameters-title" }, f = { class: "parameter-list" }, I = /* @__PURE__ */ o({
|
|
7
7
|
__name: "Parameters",
|
|
8
8
|
props: {
|
|
9
9
|
parameters: {},
|
|
10
|
-
showChildren: { type: Boolean, default: !1 }
|
|
10
|
+
showChildren: { type: Boolean, default: !1 },
|
|
11
|
+
collapsableItems: { type: Boolean, default: !1 }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
+
setup(_) {
|
|
13
14
|
return (e, C) => {
|
|
14
|
-
var
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
var r;
|
|
16
|
+
return (r = e.parameters) != null && r.length ? (t(), l("div", h, [
|
|
17
|
+
s("div", u, [
|
|
18
|
+
n(e.$slots, "title", {}, void 0, !0)
|
|
18
19
|
]),
|
|
19
|
-
|
|
20
|
-
(
|
|
20
|
+
s("ul", f, [
|
|
21
|
+
(t(!0), l(m, null, p(e.parameters, (a) => (t(), d(i, {
|
|
21
22
|
key: a.name,
|
|
23
|
+
collapsableItems: e.collapsableItems,
|
|
22
24
|
parameter: a,
|
|
23
25
|
showChildren: e.showChildren
|
|
24
|
-
}, null, 8, ["parameter", "showChildren"]))), 128))
|
|
26
|
+
}, null, 8, ["collapsableItems", "parameter", "showChildren"]))), 128))
|
|
25
27
|
])
|
|
26
|
-
])) :
|
|
28
|
+
])) : c("", !0);
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
});
|
|
30
32
|
export {
|
|
31
|
-
|
|
33
|
+
I as default
|
|
32
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";cAkMM,SAAS,GACT;QACE,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,MAAM,CAAC,EAAE,GAAG,CAAA;KACb;;cAJD,SAAS,GACT;QACE,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,MAAM,CAAC,EAAE,GAAG,CAAA;KACb;;AAuSP,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 "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-65d90380"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as D, openBlock as o, createBlock as a, unref as s, createElementBlock as t, Fragment as
|
|
1
|
+
import { defineComponent as D, openBlock as o, createBlock as a, unref as s, createElementBlock as t, Fragment as c, renderList as v, createElementVNode as C, toDisplayString as J, createVNode as L, createCommentVNode as P } from "vue";
|
|
2
2
|
import { ScalarCodeBlock as r } from "@scalar/components";
|
|
3
|
-
import { prettyPrintJson as
|
|
3
|
+
import { prettyPrintJson as V } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { getExampleFromSchema as l } from "@scalar/oas-utils/spec-getters";
|
|
5
5
|
const R = {
|
|
6
6
|
key: 0,
|
|
@@ -14,29 +14,31 @@ const R = {
|
|
|
14
14
|
response: {}
|
|
15
15
|
},
|
|
16
16
|
setup(G) {
|
|
17
|
-
const
|
|
17
|
+
const F = ["oneOf", "anyOf", "not"], p = (e) => e.reduce((i, m) => ({
|
|
18
18
|
...i,
|
|
19
19
|
...m
|
|
20
20
|
}), {});
|
|
21
21
|
return (e, i) => {
|
|
22
|
-
var m, d, h, y,
|
|
22
|
+
var m, d, g, h, y, u, f, k, b;
|
|
23
23
|
return (m = e.response) != null && m.example ? (o(), a(s(r), {
|
|
24
24
|
key: 0,
|
|
25
|
-
|
|
25
|
+
class: "bg-b-2",
|
|
26
|
+
content: s(V)((d = e.response) == null ? void 0 : d.example),
|
|
26
27
|
lang: "json"
|
|
27
|
-
}, null, 8, ["content"])) : (
|
|
28
|
-
(o(), t(
|
|
29
|
-
var j, O, B, E, N
|
|
30
|
-
return o(), t(
|
|
31
|
-
(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
(o(!0), t(
|
|
28
|
+
}, null, 8, ["content"])) : (g = e.response) != null && g.schema ? (o(), t(c, { key: 1 }, [
|
|
29
|
+
(o(), t(c, null, v(F, (n) => {
|
|
30
|
+
var S, j, O, B, E, N;
|
|
31
|
+
return o(), t(c, { key: n }, [
|
|
32
|
+
(S = e.response) != null && S.schema[n] && (((j = e.response) == null ? void 0 : j.schema[n].length) > 1 || n === "not") ? (o(), t("div", R, [
|
|
33
|
+
C("div", q, J(n), 1),
|
|
34
|
+
C("ol", w, [
|
|
35
|
+
(o(!0), t(c, null, v((O = e.response) == null ? void 0 : O.schema[n], (_, A) => (o(), t("li", {
|
|
35
36
|
key: A,
|
|
36
37
|
class: "rule-item"
|
|
37
38
|
}, [
|
|
38
39
|
L(s(r), {
|
|
39
|
-
|
|
40
|
+
class: "bg-b-2",
|
|
41
|
+
content: s(l)(_, {
|
|
40
42
|
emptyString: "…",
|
|
41
43
|
mode: "read"
|
|
42
44
|
}),
|
|
@@ -44,9 +46,10 @@ const R = {
|
|
|
44
46
|
}, null, 8, ["content"])
|
|
45
47
|
]))), 128))
|
|
46
48
|
])
|
|
47
|
-
])) : (
|
|
49
|
+
])) : (B = e.response) != null && B.schema[n] && ((E = e.response) == null ? void 0 : E.schema[n].length) === 1 ? (o(), a(s(r), {
|
|
48
50
|
key: 1,
|
|
49
|
-
|
|
51
|
+
class: "bg-b-2",
|
|
52
|
+
content: s(l)((N = e.response) == null ? void 0 : N.schema[n][0], {
|
|
50
53
|
emptyString: "…",
|
|
51
54
|
mode: "read"
|
|
52
55
|
}),
|
|
@@ -54,10 +57,11 @@ const R = {
|
|
|
54
57
|
}, null, 8, ["content"])) : P("", !0)
|
|
55
58
|
], 64);
|
|
56
59
|
}), 64)),
|
|
57
|
-
(
|
|
60
|
+
(h = e.response) != null && h.schema.allOf ? (o(), a(s(r), {
|
|
58
61
|
key: 0,
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
class: "bg-b-2",
|
|
63
|
+
content: p(
|
|
64
|
+
(y = e.response) == null ? void 0 : y.schema.allOf.map(
|
|
61
65
|
(n) => s(l)(n, {
|
|
62
66
|
emptyString: "…",
|
|
63
67
|
mode: "read"
|
|
@@ -67,7 +71,8 @@ const R = {
|
|
|
67
71
|
lang: "json"
|
|
68
72
|
}, null, 8, ["content"])) : (f = (u = e.response) == null ? void 0 : u.schema.items) != null && f.allOf ? (o(), a(s(r), {
|
|
69
73
|
key: 1,
|
|
70
|
-
|
|
74
|
+
class: "bg-b-2",
|
|
75
|
+
content: p(
|
|
71
76
|
(k = e.response) == null ? void 0 : k.schema.items.allOf.map(
|
|
72
77
|
(n) => s(l)(n, {
|
|
73
78
|
emptyString: "…",
|
|
@@ -78,8 +83,9 @@ const R = {
|
|
|
78
83
|
lang: "json"
|
|
79
84
|
}, null, 8, ["content"])) : (o(), a(s(r), {
|
|
80
85
|
key: 2,
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
class: "bg-b-2",
|
|
87
|
+
content: s(V)(
|
|
88
|
+
s(l)((b = e.response) == null ? void 0 : b.schema, {
|
|
83
89
|
emptyString: "…",
|
|
84
90
|
mode: "read"
|
|
85
91
|
})
|
|
@@ -2,14 +2,10 @@ import type { Tag } from '@scalar/oas-utils';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
id?: string;
|
|
4
4
|
tag: Tag;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
observeAndNavigate: (value: string) => void;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
8
6
|
id?: string;
|
|
9
7
|
tag: Tag;
|
|
10
|
-
}
|
|
11
|
-
onObserveAndNavigate?: ((value: string) => any) | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
8
|
+
}>>>, {}, {}>;
|
|
13
9
|
export default _default;
|
|
14
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
11
|
type __VLS_TypePropsToOption<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;SAAhB,MAAM;SAAO,GAAG;;AA2Q7C,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 "./Endpoints.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-416f90b1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,97 +1,94 @@
|
|
|
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 v, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as c, toDisplayString as p, createElementVNode as u, createElementBlock as f, Fragment as y, renderList as N, normalizeClass as V, createCommentVNode as b } from "vue";
|
|
2
|
+
import { ScalarMarkdown as E } from "@scalar/components";
|
|
3
|
+
import I from "../../Section/Section.vue.js";
|
|
4
|
+
import w from "../../Section/SectionContent.vue.js";
|
|
5
|
+
import B from "../../Section/SectionColumns.vue.js";
|
|
6
|
+
import g from "../../Section/SectionColumn.vue.js";
|
|
7
|
+
import H from "../../Section/SectionHeader.vue.js";
|
|
8
|
+
import T from "../../Anchor/Anchor.vue.js";
|
|
9
|
+
import O from "../../Card/Card.vue.js";
|
|
10
|
+
import $ from "../../Card/CardHeader.vue.js";
|
|
11
|
+
import z from "../../Card/CardContent.vue.js";
|
|
12
|
+
import A from "../../HttpMethod/HttpMethod.vue.js";
|
|
13
|
+
import { useSidebar as D } from "../../../hooks/useSidebar.js";
|
|
14
|
+
import { useNavState as F } from "../../../hooks/useNavState.js";
|
|
15
|
+
const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
|
|
16
16
|
__name: "Endpoints",
|
|
17
17
|
props: {
|
|
18
18
|
id: {},
|
|
19
19
|
tag: {}
|
|
20
20
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
setup(C) {
|
|
22
|
+
const _ = C, { getOperationId: l, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
|
|
23
|
+
const d = l(t, _.tag);
|
|
24
|
+
k(d);
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
k(i(t, l.tag)), S(d(l.tag), !0);
|
|
28
|
-
}
|
|
29
|
-
return (t, q) => (n(), c(e(A), {
|
|
26
|
+
return (t, d) => (n(), s(e(I), {
|
|
30
27
|
id: t.id,
|
|
31
28
|
label: t.tag.name.toUpperCase()
|
|
32
29
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
id: e(
|
|
30
|
+
default: o(() => [
|
|
31
|
+
a(e(w), null, {
|
|
32
|
+
default: o(() => [
|
|
33
|
+
a(e(B), null, {
|
|
34
|
+
default: o(() => [
|
|
35
|
+
a(e(g), null, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
a(e(H), { level: 2 }, {
|
|
38
|
+
default: o(() => [
|
|
39
|
+
a(e(T), {
|
|
40
|
+
id: e(h)(t.tag)
|
|
44
41
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
p(
|
|
42
|
+
default: o(() => [
|
|
43
|
+
c(p(t.tag["x-displayName"] ?? t.tag.name), 1)
|
|
47
44
|
]),
|
|
48
45
|
_: 1
|
|
49
46
|
}, 8, ["id"])
|
|
50
47
|
]),
|
|
51
48
|
_: 1
|
|
52
49
|
}),
|
|
53
|
-
|
|
50
|
+
a(e(E), {
|
|
54
51
|
value: t.tag.description,
|
|
55
52
|
withImages: ""
|
|
56
53
|
}, null, 8, ["value"])
|
|
57
54
|
]),
|
|
58
55
|
_: 1
|
|
59
56
|
}),
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
var
|
|
57
|
+
a(e(g), null, {
|
|
58
|
+
default: o(() => {
|
|
59
|
+
var i;
|
|
63
60
|
return [
|
|
64
|
-
((
|
|
61
|
+
((i = t.tag.operations) == null ? void 0 : i.length) > 0 ? (n(), s(e(O), {
|
|
65
62
|
key: 0,
|
|
66
63
|
class: "scalar-card-sticky"
|
|
67
64
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
|
|
65
|
+
default: o(() => [
|
|
66
|
+
a(e($), { muted: "" }, {
|
|
67
|
+
default: o(() => [
|
|
68
|
+
c("Endpoints")
|
|
72
69
|
]),
|
|
73
70
|
_: 1
|
|
74
71
|
}),
|
|
75
|
-
|
|
72
|
+
a(e(z), {
|
|
76
73
|
class: "custom-scroll",
|
|
77
74
|
muted: ""
|
|
78
75
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
(n(!0),
|
|
82
|
-
var
|
|
83
|
-
return n(),
|
|
84
|
-
key: e(
|
|
76
|
+
default: o(() => [
|
|
77
|
+
u("div", L, [
|
|
78
|
+
(n(!0), f(y, null, N(t.tag.operations, (r) => {
|
|
79
|
+
var m;
|
|
80
|
+
return n(), f("a", {
|
|
81
|
+
key: e(l)(r, t.tag),
|
|
85
82
|
class: "endpoint",
|
|
86
|
-
onClick: (
|
|
83
|
+
onClick: (U) => S(r)
|
|
87
84
|
}, [
|
|
88
|
-
|
|
85
|
+
a(e(A), {
|
|
89
86
|
method: r.httpVerb
|
|
90
87
|
}, null, 8, ["method"]),
|
|
91
|
-
|
|
92
|
-
class:
|
|
93
|
-
},
|
|
94
|
-
], 8,
|
|
88
|
+
u("span", {
|
|
89
|
+
class: V({ deprecated: (m = r.information) == null ? void 0 : m.deprecated })
|
|
90
|
+
}, p(r.path), 3)
|
|
91
|
+
], 8, M);
|
|
95
92
|
}), 128))
|
|
96
93
|
])
|
|
97
94
|
]),
|
|
@@ -99,7 +96,7 @@ const U = { class: "endpoints" }, j = ["onClick"], re = /* @__PURE__ */ b({
|
|
|
99
96
|
})
|
|
100
97
|
]),
|
|
101
98
|
_: 1
|
|
102
|
-
})) :
|
|
99
|
+
})) : b("", !0)
|
|
103
100
|
];
|
|
104
101
|
}),
|
|
105
102
|
_: 1
|
|
@@ -116,5 +113,5 @@ const U = { class: "endpoints" }, j = ["onClick"], re = /* @__PURE__ */ b({
|
|
|
116
113
|
}
|
|
117
114
|
});
|
|
118
115
|
export {
|
|
119
|
-
|
|
116
|
+
te as default
|
|
120
117
|
};
|
|
@@ -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":"AAqDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAkClD,iBAAS,cAAc;qBA6DO,GAAG;EAqBhC;AACD,QAAA,MAAM,eAAe;SA1Gd,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;aA8GV,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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33927e3b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,52 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const H = /* @__PURE__ */ b({
|
|
1
|
+
import { defineComponent as c, ref as f, computed as u, openBlock as r, createBlock as a, unref as i, withCtx as g, createCommentVNode as h, renderSlot as k } from "vue";
|
|
2
|
+
import C from "../../ShowMoreButton.vue.js";
|
|
3
|
+
import S from "./Endpoints.vue.js";
|
|
4
|
+
import y from "../../Section/SectionContainer.vue.js";
|
|
5
|
+
import { useSidebar as T } from "../../../hooks/useSidebar.js";
|
|
6
|
+
import { useNavState as v } from "../../../hooks/useNavState.js";
|
|
7
|
+
const _ = /* @__PURE__ */ c({
|
|
9
8
|
__name: "Tag",
|
|
10
9
|
props: {
|
|
11
10
|
id: {},
|
|
12
11
|
tag: {},
|
|
13
12
|
spec: {}
|
|
14
13
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
14
|
+
setup(s) {
|
|
15
|
+
const o = s, d = f(null), { collapsedSidebarItems: l } = T(), { getTagId: m } = v(), p = u(
|
|
17
16
|
() => {
|
|
18
|
-
var e,
|
|
19
|
-
return ((e =
|
|
17
|
+
var e, n, t;
|
|
18
|
+
return ((e = o.spec.tags) == null ? void 0 : e.length) !== 1 || ((n = o.tag) == null ? void 0 : n.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
|
|
20
19
|
}
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
}, u = (e) => {
|
|
24
|
-
N(s, (o, t) => {
|
|
25
|
-
o.forEach((v) => {
|
|
26
|
-
Array.from(v.addedNodes).some((c) => c instanceof HTMLElement && c.id === e) && (d(e), t.disconnect());
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
}, g = (e) => {
|
|
30
|
-
document.getElementById(e) ? d(e) : u(e);
|
|
31
|
-
};
|
|
32
|
-
return (e, o) => (r(), a(i(w), {
|
|
20
|
+
);
|
|
21
|
+
return (e, n) => (r(), a(i(y), {
|
|
33
22
|
ref_key: "sectionContainerRef",
|
|
34
|
-
ref:
|
|
23
|
+
ref: d,
|
|
35
24
|
class: "tag-section-container"
|
|
36
25
|
}, {
|
|
37
|
-
default:
|
|
26
|
+
default: g(() => {
|
|
38
27
|
var t;
|
|
39
28
|
return [
|
|
40
|
-
p.value ? (r(), a(
|
|
29
|
+
p.value ? (r(), a(S, {
|
|
41
30
|
key: 0,
|
|
42
31
|
id: e.id,
|
|
43
|
-
tag: e.tag
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
!i(l)[i(f)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), a(T, {
|
|
32
|
+
tag: e.tag
|
|
33
|
+
}, null, 8, ["id", "tag"])) : h("", !0),
|
|
34
|
+
!i(l)[i(m)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), a(C, {
|
|
47
35
|
key: 1,
|
|
48
36
|
id: e.id ?? ""
|
|
49
|
-
}, null, 8, ["id"])) :
|
|
37
|
+
}, null, 8, ["id"])) : k(e.$slots, "default", { key: 2 }, void 0, !0)
|
|
50
38
|
];
|
|
51
39
|
}),
|
|
52
40
|
_: 3
|
|
@@ -54,5 +42,5 @@ const H = /* @__PURE__ */ b({
|
|
|
54
42
|
}
|
|
55
43
|
});
|
|
56
44
|
export {
|
|
57
|
-
|
|
45
|
+
_ as default
|
|
58
46
|
};
|
|
@@ -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
|
};
|