@scalar/api-reference 1.25.122 → 1.25.124
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 +72 -0
- package/dist/blocks/constants.d.ts.map +1 -1
- package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/browser/standalone.js +21533 -21032
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +0 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +27 -23
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +135 -128
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.js +7 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +33 -33
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Introduction/Description.vue2.js +7 -7
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +44 -39
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +65 -59
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +66 -52
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +37 -31
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +1 -0
- 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 +79 -52
- 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 +29 -26
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +22 -19
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +25 -25
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +6 -6
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +1 -6
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +12 -16
- package/dist/components/Section/SectionHeaderTag.vue.d.ts +21 -0
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -0
- package/dist/components/Section/SectionHeaderTag.vue.js +7 -0
- package/dist/components/Section/SectionHeaderTag.vue2.js +18 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +14 -14
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/esm.js +1 -3
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +414 -510
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +20 -21
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +47 -47
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +5 -5
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +3 -3
- package/dist/features/Operation/Webhooks.vue2.js +74 -60
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +8 -8
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +26 -47
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- 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 +11 -11
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +80 -69
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +1 -1
- package/dist/features/Search/SearchButton.vue2.js +30 -18
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +1 -1
- package/dist/features/Search/SearchModal.vue2.js +104 -95
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +11 -17
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
- package/dist/features/TestRequestButton/TestRequestButton.vue2.js +6 -6
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/isMacOs.d.ts.map +1 -1
- package/dist/helpers/operation.d.ts.map +1 -1
- package/dist/helpers/parse.js +62 -62
- package/dist/helpers/specDownloads.d.ts.map +1 -1
- package/dist/helpers/specHelpers.d.ts.map +1 -1
- package/dist/helpers/waitFor.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
- package/dist/hooks/useDeprecationWarnings.js +1 -5
- package/dist/hooks/useNavState.d.ts +1 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +3 -10
- package/dist/hooks/useReactiveSpec.d.ts +8 -8
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +12 -13
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +38 -48
- package/dist/index.js +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeRequestMethod.js +2 -6
- package/dist/legacy/types.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.d.ts +11 -0
- package/dist/standalone/lib/html-api.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.d.ts +51 -0
- package/dist/standalone/lib/html-rendering.d.ts.map +1 -0
- package/dist/standalone/lib/html-rendering.js +54 -0
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +0 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -15
|
@@ -1,87 +1,101 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { defineComponent as O, computed as m, useId as H, openBlock as r, createBlock as n, unref as e, withCtx as s, createVNode as i, createTextVNode as S, createElementVNode as z, normalizeClass as A, createElementBlock as b, Fragment as h, renderList as _, toDisplayString as E, createCommentVNode as d } from "vue";
|
|
2
|
+
import { ScalarMarkdown as M } from "@scalar/components";
|
|
3
|
+
import T from "../../components/ShowMoreButton.vue.js";
|
|
4
|
+
import j from "./components/Webhook.vue.js";
|
|
5
|
+
import F from "../../components/Section/SectionContainer.vue.js";
|
|
6
|
+
import K from "../../components/Section/Section.vue.js";
|
|
7
|
+
import D from "../../components/Section/SectionHeader.vue.js";
|
|
8
|
+
import g from "../../components/Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import I from "../../components/Content/Lazy/Lazy.vue2.js";
|
|
10
|
+
import X from "../../components/Section/CompactSection.vue.js";
|
|
11
|
+
import { useNavState as Y } from "../../hooks/useNavState.js";
|
|
12
|
+
import { useSidebar as $ } from "../../hooks/useSidebar.js";
|
|
13
|
+
const N = 10, te = /* @__PURE__ */ O({
|
|
13
14
|
__name: "Webhooks",
|
|
14
15
|
props: {
|
|
15
16
|
webhooks: {}
|
|
16
17
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
() =>
|
|
20
|
-
),
|
|
21
|
-
const
|
|
22
|
-
return c.value ?
|
|
18
|
+
setup(W) {
|
|
19
|
+
const C = W, u = m(() => Object.keys(C.webhooks ?? {})), w = H(), { getWebhookId: k } = Y(), { collapsedSidebarItems: B } = $(), c = m(
|
|
20
|
+
() => u.value.length <= N || B[k()]
|
|
21
|
+
), L = m(() => {
|
|
22
|
+
const t = u.value;
|
|
23
|
+
return c.value ? t : t.slice(0, N);
|
|
23
24
|
});
|
|
24
|
-
return (
|
|
25
|
+
return (t, f) => u.value.length ? (r(), n(e(F), {
|
|
25
26
|
key: 0,
|
|
26
27
|
id: "webhooks"
|
|
27
28
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
30
|
-
default:
|
|
31
|
-
|
|
32
|
-
default:
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
default: s(() => [
|
|
30
|
+
i(e(K), { "aria-labelledby": e(w) }, {
|
|
31
|
+
default: s(() => [
|
|
32
|
+
i(e(D), null, {
|
|
33
|
+
default: s(() => [
|
|
34
|
+
i(e(g), {
|
|
35
|
+
id: e(w),
|
|
36
|
+
level: 2
|
|
37
|
+
}, {
|
|
38
|
+
default: s(() => f[0] || (f[0] = [
|
|
39
|
+
S(" Webhooks ")
|
|
40
|
+
])),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["id"])
|
|
43
|
+
]),
|
|
35
44
|
_: 1
|
|
36
45
|
}),
|
|
37
|
-
|
|
46
|
+
i(e(I), {
|
|
38
47
|
id: "webhooks",
|
|
39
48
|
isLazy: !1
|
|
40
49
|
}),
|
|
41
|
-
|
|
42
|
-
class:
|
|
50
|
+
z("div", {
|
|
51
|
+
class: A(["webhooks-list", { "webhooks-list-truncated": !c.value }])
|
|
43
52
|
}, [
|
|
44
|
-
(
|
|
45
|
-
var
|
|
46
|
-
return
|
|
47
|
-
(
|
|
48
|
-
(
|
|
49
|
-
), (
|
|
50
|
-
id:
|
|
51
|
-
key:
|
|
53
|
+
(r(!0), b(h, null, _(L.value, (o) => {
|
|
54
|
+
var p;
|
|
55
|
+
return r(), b(h, { key: o }, [
|
|
56
|
+
(r(!0), b(h, null, _(Object.keys(
|
|
57
|
+
(p = t.webhooks) == null ? void 0 : p[o]
|
|
58
|
+
), (l) => (r(), n(e(I), {
|
|
59
|
+
id: e(k)({ name: o, method: l }),
|
|
60
|
+
key: l,
|
|
52
61
|
isLazy: ""
|
|
53
62
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
var
|
|
63
|
+
default: s(() => {
|
|
64
|
+
var y;
|
|
56
65
|
return [
|
|
57
|
-
(
|
|
66
|
+
(y = t.webhooks) != null && y[o] ? (r(), n(e(X), {
|
|
58
67
|
key: 0,
|
|
59
|
-
id:
|
|
68
|
+
id: e(k)({ name: o, method: l }),
|
|
60
69
|
class: "webhooks-list-item",
|
|
61
|
-
label:
|
|
70
|
+
label: o
|
|
62
71
|
}, {
|
|
63
|
-
heading:
|
|
64
|
-
|
|
72
|
+
heading: s(() => [
|
|
73
|
+
i(e(g), { level: 3 }, {
|
|
74
|
+
default: s(() => {
|
|
75
|
+
var a;
|
|
76
|
+
return [
|
|
77
|
+
S(E((a = t.webhooks[o][l]) == null ? void 0 : a.name), 1)
|
|
78
|
+
];
|
|
79
|
+
}),
|
|
80
|
+
_: 2
|
|
81
|
+
}, 1024)
|
|
82
|
+
]),
|
|
83
|
+
default: s(() => {
|
|
84
|
+
var a, v;
|
|
65
85
|
return [
|
|
66
|
-
|
|
67
|
-
];
|
|
68
|
-
}),
|
|
69
|
-
default: l(() => {
|
|
70
|
-
var i, v;
|
|
71
|
-
return [
|
|
72
|
-
(i = o.webhooks[e][r]) != null && i.description ? (s(), n(t(E), {
|
|
86
|
+
(a = t.webhooks[o][l]) != null && a.description ? (r(), n(e(M), {
|
|
73
87
|
key: 0,
|
|
74
88
|
class: "webhook-section-description",
|
|
75
|
-
value: (v =
|
|
89
|
+
value: (v = t.webhooks[o][l]) == null ? void 0 : v.description,
|
|
76
90
|
withImages: ""
|
|
77
|
-
}, null, 8, ["value"])) :
|
|
78
|
-
|
|
79
|
-
webhook:
|
|
91
|
+
}, null, 8, ["value"])) : d("", !0),
|
|
92
|
+
i(j, {
|
|
93
|
+
webhook: t.webhooks[o][l]
|
|
80
94
|
}, null, 8, ["webhook"])
|
|
81
95
|
];
|
|
82
96
|
}),
|
|
83
97
|
_: 2
|
|
84
|
-
}, 1032, ["id", "label"])) :
|
|
98
|
+
}, 1032, ["id", "label"])) : d("", !0)
|
|
85
99
|
];
|
|
86
100
|
}),
|
|
87
101
|
_: 2
|
|
@@ -89,19 +103,19 @@ const g = 10, x = /* @__PURE__ */ B({
|
|
|
89
103
|
], 64);
|
|
90
104
|
}), 128))
|
|
91
105
|
], 2),
|
|
92
|
-
c.value ?
|
|
106
|
+
c.value ? d("", !0) : (r(), n(T, {
|
|
93
107
|
key: 0,
|
|
94
108
|
id: "webhooks",
|
|
95
109
|
class: "show-more-webhooks"
|
|
96
110
|
}))
|
|
97
111
|
]),
|
|
98
112
|
_: 1
|
|
99
|
-
})
|
|
113
|
+
}, 8, ["aria-labelledby"])
|
|
100
114
|
]),
|
|
101
115
|
_: 1
|
|
102
|
-
})) :
|
|
116
|
+
})) : d("", !0);
|
|
103
117
|
}
|
|
104
118
|
});
|
|
105
119
|
export {
|
|
106
|
-
|
|
120
|
+
te as default
|
|
107
121
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAIiD,WAAW;;;;qBAAX,WAAW;;;AA2G9D,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ContentTypeSelect.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d8f8fe37"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterHeaders.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"ParameterHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterHeaders.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;AAM5E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAE,CAAA;CACjD,CAAC;;AAiJF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./ParameterHeaders.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */ r
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(r, [["__scopeId", "data-v-4e43270c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, openBlock as e, createBlock as m, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as i, createTextVNode as u, renderList as _ } from "vue";
|
|
2
|
-
import v from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { Disclosure as v, DisclosureButton as k, DisclosurePanel as B } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIcon as H } from "@scalar/components";
|
|
4
|
+
import S from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
5
5
|
const V = /* @__PURE__ */ f({
|
|
6
6
|
__name: "ParameterHeaders",
|
|
7
7
|
props: {
|
|
@@ -11,7 +11,7 @@ const V = /* @__PURE__ */ f({
|
|
|
11
11
|
function h(t) {
|
|
12
12
|
return t.schema !== void 0;
|
|
13
13
|
}
|
|
14
|
-
return (t, y) => (e(), m(a(
|
|
14
|
+
return (t, y) => (e(), m(a(v), null, {
|
|
15
15
|
default: c(({ open: r }) => [
|
|
16
16
|
p("div", {
|
|
17
17
|
class: o(["headers-card headers-card--compact", [{ "headers-card--open": r }]])
|
|
@@ -19,14 +19,14 @@ const V = /* @__PURE__ */ f({
|
|
|
19
19
|
p("div", {
|
|
20
20
|
class: o(["headers-properties", { "headers-properties-open": r }])
|
|
21
21
|
}, [
|
|
22
|
-
d(a(
|
|
22
|
+
d(a(k), {
|
|
23
23
|
class: "headers-card-title headers-card-title--compact",
|
|
24
24
|
style: {
|
|
25
25
|
top: "calc(var(--refs-header-height)))"
|
|
26
26
|
}
|
|
27
27
|
}, {
|
|
28
28
|
default: c(() => [
|
|
29
|
-
d(a(
|
|
29
|
+
d(a(H), {
|
|
30
30
|
class: o(["headers-card-title-icon", { "headers-card-title-icon--open": r }]),
|
|
31
31
|
icon: "Add",
|
|
32
32
|
size: "sm"
|
|
@@ -39,9 +39,9 @@ const V = /* @__PURE__ */ f({
|
|
|
39
39
|
]),
|
|
40
40
|
_: 2
|
|
41
41
|
}, 1024),
|
|
42
|
-
d(a(
|
|
42
|
+
d(a(B), null, {
|
|
43
43
|
default: c(() => [
|
|
44
|
-
(e(!0), l(i, null, _(t.headers, (s, n) => (e(), m(
|
|
44
|
+
(e(!0), l(i, null, _(t.headers, (s, n) => (e(), m(S, {
|
|
45
45
|
key: n,
|
|
46
46
|
description: s.description,
|
|
47
47
|
name: `${n}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AA2OA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAY/E,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;kBADe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAwQ9B,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4cb60599"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, computed as c, ref as w, openBlock as o, createElementBlock as B, createVNode as n, unref as t, withCtx as p, createBlock as i, normalizeClass as S, createTextVNode as E, toDisplayString as y, createElementVNode as d, createCommentVNode as l } from "vue";
|
|
2
2
|
import { Disclosure as b, DisclosureButton as V, DisclosurePanel as q } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as D, ScalarMarkdown as P } from "@scalar/components";
|
|
4
4
|
import T from "../../../components/ScreenReader.vue.js";
|
|
@@ -8,7 +8,7 @@ import j from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
|
8
8
|
const _ = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "parameter-item"
|
|
11
|
-
}, O = { class: "parameter-item-name" }, R = { class: "parameter-item-type" }, z = { class: "absolute right-0" }, K = /* @__PURE__ */
|
|
11
|
+
}, O = { class: "parameter-item-name" }, R = { class: "parameter-item-type" }, z = { class: "absolute right-0 top-2.5 opacity-0 group-hover/parameter-item-trigger:opacity-100" }, K = /* @__PURE__ */ C({
|
|
12
12
|
__name: "ParameterListItem",
|
|
13
13
|
props: {
|
|
14
14
|
parameter: {},
|
|
@@ -17,25 +17,25 @@ const _ = {
|
|
|
17
17
|
withExamples: { type: Boolean, default: !0 }
|
|
18
18
|
},
|
|
19
19
|
setup(v) {
|
|
20
|
-
const a = v,
|
|
21
|
-
|
|
20
|
+
const a = v, g = c(() => a.parameter.content ? Object.keys(a.parameter.content) : []), s = w(
|
|
21
|
+
g.value[0]
|
|
22
22
|
);
|
|
23
23
|
a.parameter.content && "application/json" in a.parameter.content && (s.value = "application/json");
|
|
24
|
-
const r = c(() => !!(a.collapsableItems && a.parameter.content)),
|
|
25
|
-
return (e, f) =>
|
|
26
|
-
|
|
24
|
+
const r = c(() => !!(a.collapsableItems && a.parameter.content)), k = c(() => a.parameter.readOnly !== !0);
|
|
25
|
+
return (e, f) => k.value ? (o(), B("li", _, [
|
|
26
|
+
n(t(b), null, {
|
|
27
27
|
default: p(({ open: u }) => [
|
|
28
|
-
r.value ? (
|
|
28
|
+
r.value ? (o(), i(t(V), {
|
|
29
29
|
key: 0,
|
|
30
|
-
class:
|
|
30
|
+
class: S(["parameter-item-trigger group/parameter-item-trigger flex", { "parameter-item-trigger-open": u }])
|
|
31
31
|
}, {
|
|
32
32
|
default: p(() => [
|
|
33
|
-
|
|
33
|
+
n(t(D), {
|
|
34
34
|
class: "parameter-item-icon",
|
|
35
35
|
icon: u ? "ChevronDown" : "ChevronRight",
|
|
36
36
|
thickness: "1.5"
|
|
37
37
|
}, null, 8, ["icon"]),
|
|
38
|
-
|
|
38
|
+
n(T, null, {
|
|
39
39
|
default: p(() => [
|
|
40
40
|
E(y(u ? "Collapse" : "Expand"), 1)
|
|
41
41
|
]),
|
|
@@ -43,14 +43,14 @@ const _ = {
|
|
|
43
43
|
}, 1024),
|
|
44
44
|
d("span", O, y(e.parameter.name), 1),
|
|
45
45
|
d("span", R, [
|
|
46
|
-
e.parameter.description ? (
|
|
46
|
+
e.parameter.description ? (o(), i(t(P), {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "markdown",
|
|
49
49
|
value: e.parameter.description
|
|
50
50
|
}, null, 8, ["value"])) : l("", !0)
|
|
51
51
|
]),
|
|
52
52
|
d("div", z, [
|
|
53
|
-
r.value && a.parameter.content ? (
|
|
53
|
+
r.value && a.parameter.content ? (o(), i(I, {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "parameter-item-content-type",
|
|
56
56
|
defaultValue: s.value,
|
|
@@ -61,18 +61,18 @@ const _ = {
|
|
|
61
61
|
]),
|
|
62
62
|
_: 2
|
|
63
63
|
}, 1032, ["class"])) : l("", !0),
|
|
64
|
-
|
|
64
|
+
n(t(q), {
|
|
65
65
|
class: "parameter-item-container parameter-item-container-markdown",
|
|
66
66
|
static: !r.value
|
|
67
67
|
}, {
|
|
68
68
|
default: p(() => {
|
|
69
69
|
var m, h;
|
|
70
70
|
return [
|
|
71
|
-
e.parameter.headers ? (
|
|
71
|
+
e.parameter.headers ? (o(), i(N, {
|
|
72
72
|
key: 0,
|
|
73
73
|
headers: e.parameter.headers
|
|
74
74
|
}, null, 8, ["headers"])) : l("", !0),
|
|
75
|
-
|
|
75
|
+
n(t(j), {
|
|
76
76
|
compact: "",
|
|
77
77
|
description: r.value ? "" : e.parameter.description,
|
|
78
78
|
name: r.value ? "" : e.parameter.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAqBjD,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33a8cfe4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,65 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "request-body-description"
|
|
7
|
-
}, z = {
|
|
1
|
+
import { defineComponent as p, computed as v, ref as f, openBlock as d, createElementBlock as c, createElementVNode as q, renderSlot as B, createVNode as i, unref as h, createCommentVNode as y } from "vue";
|
|
2
|
+
import C from "./ContentTypeSelect.vue.js";
|
|
3
|
+
import b from "../../../components/Content/Schema/Schema.vue.js";
|
|
4
|
+
const k = { key: 0 }, V = { class: "request-body-title" }, S = {
|
|
8
5
|
key: 0,
|
|
9
6
|
class: "request-body-schema"
|
|
10
|
-
},
|
|
7
|
+
}, j = /* @__PURE__ */ p({
|
|
11
8
|
__name: "RequestBody",
|
|
12
9
|
props: {
|
|
13
10
|
requestBody: {}
|
|
14
11
|
},
|
|
15
|
-
setup(
|
|
16
|
-
var
|
|
17
|
-
const
|
|
12
|
+
setup(o) {
|
|
13
|
+
var l;
|
|
14
|
+
const n = v(
|
|
18
15
|
() => {
|
|
19
16
|
var e;
|
|
20
|
-
return Object.keys(((e =
|
|
17
|
+
return Object.keys(((e = o.requestBody) == null ? void 0 : e.content) ?? {});
|
|
21
18
|
}
|
|
22
|
-
), t =
|
|
23
|
-
return (
|
|
24
|
-
var
|
|
25
|
-
return e.requestBody ? (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
}, [
|
|
33
|
-
u("span", null, q(t.value), 1),
|
|
34
|
-
e.requestBody && l.value.length > 1 ? S((o(), s("select", {
|
|
35
|
-
key: 0,
|
|
36
|
-
"onUpdate:modelValue": i[0] || (i[0] = (p) => t.value = p)
|
|
37
|
-
}, [
|
|
38
|
-
(o(!0), s(_, null, V((c = e.requestBody) == null ? void 0 : c.content, (p, r) => (o(), s("option", {
|
|
39
|
-
key: r,
|
|
40
|
-
value: r
|
|
41
|
-
}, q(r), 9, M))), 128))
|
|
42
|
-
], 512)), [
|
|
43
|
-
[N, t.value]
|
|
44
|
-
]) : n("", !0)
|
|
45
|
-
], 2),
|
|
46
|
-
e.requestBody.description ? (o(), s("div", T, [
|
|
47
|
-
B(h(j), {
|
|
48
|
-
value: e.requestBody.description
|
|
49
|
-
}, null, 8, ["value"])
|
|
50
|
-
])) : n("", !0)
|
|
19
|
+
), t = f("application/json");
|
|
20
|
+
return (l = o.requestBody) != null && l.content && n.value.length > 0 && (t.value = n.value[0]), (e, s) => {
|
|
21
|
+
var u, r, a;
|
|
22
|
+
return e.requestBody ? (d(), c("div", k, [
|
|
23
|
+
q("div", V, [
|
|
24
|
+
B(e.$slots, "title", {}, void 0, !0),
|
|
25
|
+
i(C, {
|
|
26
|
+
defaultValue: t.value,
|
|
27
|
+
requestBody: e.requestBody,
|
|
28
|
+
onSelectContentType: s[0] || (s[0] = ({ contentType: m }) => t.value = m)
|
|
29
|
+
}, null, 8, ["defaultValue", "requestBody"])
|
|
51
30
|
]),
|
|
52
|
-
(
|
|
53
|
-
|
|
31
|
+
(u = e.requestBody.content) != null && u[t.value] ? (d(), c("div", S, [
|
|
32
|
+
i(h(b), {
|
|
54
33
|
compact: "",
|
|
55
34
|
noncollapsible: "",
|
|
56
|
-
value: (
|
|
35
|
+
value: (a = (r = e.requestBody.content) == null ? void 0 : r[t.value]) == null ? void 0 : a.schema
|
|
57
36
|
}, null, 8, ["value"])
|
|
58
|
-
])) :
|
|
59
|
-
])) :
|
|
37
|
+
])) : y("", !0)
|
|
38
|
+
])) : y("", !0);
|
|
60
39
|
};
|
|
61
40
|
}
|
|
62
41
|
});
|
|
63
42
|
export {
|
|
64
|
-
|
|
43
|
+
j as default
|
|
65
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGtF;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAOhD,MAAM;qBACC,MAAM;iBACV,oBAAoB;kBACnB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;SAAE;;EAkBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAoTA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAuBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;;AAsQF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-572e9cc0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as v, openBlock as a, createBlock as s, unref as e, createSlots as y, withCtx as n, createElementVNode as t, createVNode as r, toDisplayString as m, normalizeClass as O, createTextVNode as _, createCommentVNode as c, withModifiers as C } from "vue";
|
|
2
|
-
import b from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { ScalarIcon as b, ScalarIconButton as k, ScalarMarkdown as g } from "@scalar/components";
|
|
3
|
+
import { useClipboard as S } from "@scalar/use-hooks/useClipboard";
|
|
4
|
+
import B from "../../../components/OperationPath.vue.js";
|
|
5
|
+
import { useConfig as R } from "../../../hooks/useConfig.js";
|
|
6
6
|
import w from "../components/OperationParameters.vue.js";
|
|
7
7
|
import I from "../components/OperationResponses.vue.js";
|
|
8
8
|
import N from "../../../components/Section/SectionAccordion.vue.js";
|
|
@@ -23,7 +23,7 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
|
|
|
23
23
|
transformedOperation: {}
|
|
24
24
|
},
|
|
25
25
|
setup(K) {
|
|
26
|
-
const { copyToClipboard: u } =
|
|
26
|
+
const { copyToClipboard: u } = S(), h = R();
|
|
27
27
|
return (o, p) => {
|
|
28
28
|
var l;
|
|
29
29
|
return a(), s(e(N), {
|
|
@@ -32,7 +32,7 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
|
|
|
32
32
|
transparent: ""
|
|
33
33
|
}, y({
|
|
34
34
|
title: n(() => [
|
|
35
|
-
t("
|
|
35
|
+
t("div", L, [
|
|
36
36
|
t("div", M, [
|
|
37
37
|
r(e(T), {
|
|
38
38
|
class: "endpoint-type",
|
|
@@ -44,9 +44,9 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
|
|
|
44
44
|
class: "endpoint-anchor"
|
|
45
45
|
}, {
|
|
46
46
|
default: n(() => [
|
|
47
|
-
t("
|
|
47
|
+
t("h3", P, [
|
|
48
48
|
t("div", U, [
|
|
49
|
-
r(
|
|
49
|
+
r(B, {
|
|
50
50
|
deprecated: e($)(o.transformedOperation),
|
|
51
51
|
path: o.operation.path
|
|
52
52
|
}, null, 8, ["deprecated", "path"])
|
|
@@ -74,13 +74,13 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
|
|
|
74
74
|
i ? (a(), s(e(z), {
|
|
75
75
|
key: 0,
|
|
76
76
|
operation: o.operation
|
|
77
|
-
}, null, 8, ["operation"])) : (d = e(h)) != null && d.hideTestRequestButton ? c("", !0) : (a(), s(e(
|
|
77
|
+
}, null, 8, ["operation"])) : (d = e(h)) != null && d.hideTestRequestButton ? c("", !0) : (a(), s(e(b), {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "endpoint-try-hint",
|
|
80
80
|
icon: "Play",
|
|
81
81
|
thickness: "1.75px"
|
|
82
82
|
})),
|
|
83
|
-
r(e(
|
|
83
|
+
r(e(k), {
|
|
84
84
|
class: "endpoint-copy",
|
|
85
85
|
icon: "Clipboard",
|
|
86
86
|
label: "Copy endpoint URL",
|
|
@@ -121,7 +121,7 @@ const L = { class: "operation-title" }, M = { class: "operation-details" }, P =
|
|
|
121
121
|
fn: n(() => {
|
|
122
122
|
var i;
|
|
123
123
|
return [
|
|
124
|
-
r(e(
|
|
124
|
+
r(e(g), {
|
|
125
125
|
value: (i = o.operation) == null ? void 0 : i.description,
|
|
126
126
|
withImages: ""
|
|
127
127
|
}, null, 8, ["value"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AA4BhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;;AAsOF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.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-135b2d14"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|