@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,71 +1,85 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
1
|
+
import { defineComponent as y, useId as k, computed as u, openBlock as s, createBlock as i, unref as e, withCtx as l, createVNode as o, createTextVNode as M, createElementVNode as g, normalizeClass as I, createElementBlock as N, Fragment as C, renderList as L, createCommentVNode as f } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as B } from "@scalar/components";
|
|
3
|
+
import H from "../../ShowMoreButton.vue.js";
|
|
4
|
+
import w from "../../Section/SectionContainer.vue.js";
|
|
5
|
+
import E from "../../Section/Section.vue.js";
|
|
6
|
+
import O from "../../Section/SectionHeader.vue.js";
|
|
7
|
+
import p from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
+
import h from "../Lazy/Lazy.vue2.js";
|
|
9
|
+
import V from "../../Section/CompactSection.vue.js";
|
|
10
|
+
import z from "../Schema/SchemaHeading.vue.js";
|
|
11
|
+
import A from "../Schema/Schema.vue.js";
|
|
12
|
+
import { useSidebar as T } from "../../../hooks/useSidebar.js";
|
|
13
|
+
import { useNavState as j } from "../../../hooks/useNavState.js";
|
|
14
|
+
const S = 10, R = /* @__PURE__ */ y({
|
|
14
15
|
__name: "Models",
|
|
15
16
|
props: {
|
|
16
17
|
schemas: {}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
() => Object.keys(
|
|
21
|
-
),
|
|
22
|
-
const r = Object.keys(
|
|
23
|
-
return
|
|
19
|
+
setup(_) {
|
|
20
|
+
const m = _, n = k(), { collapsedSidebarItems: v } = T(), { getModelId: a } = j(), d = u(
|
|
21
|
+
() => Object.keys(m.schemas ?? {}).length <= S || v[a()]
|
|
22
|
+
), b = u(() => {
|
|
23
|
+
const r = Object.keys(m.schemas ?? {});
|
|
24
|
+
return d.value ? r : r.slice(0, S);
|
|
24
25
|
});
|
|
25
|
-
return (r,
|
|
26
|
+
return (r, c) => r.schemas ? (s(), i(e(w), {
|
|
26
27
|
key: 0,
|
|
27
28
|
id: "models"
|
|
28
29
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
default: l(() => [
|
|
31
|
+
o(e(E), { "aria-labelledby": e(n) }, {
|
|
32
|
+
default: l(() => [
|
|
33
|
+
o(e(O), null, {
|
|
34
|
+
default: l(() => [
|
|
35
|
+
o(e(p), {
|
|
36
|
+
id: e(n),
|
|
37
|
+
level: 2
|
|
38
|
+
}, {
|
|
39
|
+
default: l(() => c[0] || (c[0] = [
|
|
40
|
+
M(" Models ")
|
|
41
|
+
])),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["id"])
|
|
44
|
+
]),
|
|
36
45
|
_: 1
|
|
37
46
|
}),
|
|
38
|
-
|
|
47
|
+
o(e(h), {
|
|
39
48
|
id: "models",
|
|
40
49
|
isLazy: !1
|
|
41
50
|
}),
|
|
42
|
-
|
|
43
|
-
class:
|
|
51
|
+
g("div", {
|
|
52
|
+
class: I(["models-list", { "models-list-truncated": !d.value }])
|
|
44
53
|
}, [
|
|
45
|
-
(
|
|
46
|
-
id: e(
|
|
47
|
-
key:
|
|
54
|
+
(s(!0), N(C, null, L(b.value, (t) => (s(), i(e(h), {
|
|
55
|
+
id: e(a)({ name: t }),
|
|
56
|
+
key: t,
|
|
48
57
|
isLazy: ""
|
|
49
58
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
id: e(
|
|
59
|
+
default: l(() => [
|
|
60
|
+
o(e(V), {
|
|
61
|
+
id: e(a)({ name: t }),
|
|
53
62
|
class: "models-list-item",
|
|
54
|
-
label:
|
|
63
|
+
label: t
|
|
55
64
|
}, {
|
|
56
|
-
heading:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
65
|
+
heading: l(() => [
|
|
66
|
+
o(e(p), { level: 3 }, {
|
|
67
|
+
default: l(() => [
|
|
68
|
+
o(e(z), {
|
|
69
|
+
name: t,
|
|
70
|
+
value: r.schemas[t]
|
|
71
|
+
}, null, 8, ["name", "value"])
|
|
72
|
+
]),
|
|
73
|
+
_: 2
|
|
74
|
+
}, 1024)
|
|
61
75
|
]),
|
|
62
|
-
default:
|
|
63
|
-
|
|
64
|
-
default:
|
|
65
|
-
|
|
76
|
+
default: l(() => [
|
|
77
|
+
o(e(B), null, {
|
|
78
|
+
default: l(() => [
|
|
79
|
+
o(e(A), {
|
|
66
80
|
hideHeading: !0,
|
|
67
81
|
noncollapsible: "",
|
|
68
|
-
value: r.schemas[
|
|
82
|
+
value: r.schemas[t]
|
|
69
83
|
}, null, 8, ["value"])
|
|
70
84
|
]),
|
|
71
85
|
_: 2
|
|
@@ -77,19 +91,19 @@ const p = 10, J = /* @__PURE__ */ v({
|
|
|
77
91
|
_: 2
|
|
78
92
|
}, 1032, ["id"]))), 128))
|
|
79
93
|
], 2),
|
|
80
|
-
|
|
94
|
+
d.value ? f("", !0) : (s(), i(H, {
|
|
81
95
|
key: 0,
|
|
82
|
-
id: e(
|
|
96
|
+
id: e(a)(),
|
|
83
97
|
class: "show-more-models"
|
|
84
98
|
}, null, 8, ["id"]))
|
|
85
99
|
]),
|
|
86
100
|
_: 1
|
|
87
|
-
})
|
|
101
|
+
}, 8, ["aria-labelledby"])
|
|
88
102
|
]),
|
|
89
103
|
_: 1
|
|
90
|
-
})) :
|
|
104
|
+
})) : f("", !0);
|
|
91
105
|
}
|
|
92
106
|
});
|
|
93
107
|
export {
|
|
94
|
-
|
|
108
|
+
R as default
|
|
95
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAe9E,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAqKF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModelsAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7dbbcdb5"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,79 +1,85 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, computed as A, openBlock as t, createBlock as c, unref as e, withCtx as o, createVNode as n, createTextVNode as C, createElementBlock as u, Fragment as v, renderList as k, createCommentVNode as N } from "vue";
|
|
2
2
|
import y from "../../Section/SectionContainerAccordion.vue.js";
|
|
3
3
|
import B from "../../Section/SectionHeader.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import H from "../../Section/SectionAccordion.vue.js";
|
|
5
|
+
import M from "../../Anchor/Anchor.vue.js";
|
|
6
|
+
import V from "../../Section/SectionHeaderTag.vue.js";
|
|
6
7
|
import j from "../Schema/SchemaHeading.vue.js";
|
|
7
8
|
import S from "../Schema/SchemaProperty.vue.js";
|
|
8
|
-
import { useNavState as
|
|
9
|
-
const
|
|
9
|
+
import { useNavState as O } from "../../../hooks/useNavState.js";
|
|
10
|
+
const T = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "properties"
|
|
12
|
-
}, h = { key: 1 },
|
|
13
|
+
}, h = { key: 1 }, J = /* @__PURE__ */ x({
|
|
13
14
|
__name: "ModelsAccordion",
|
|
14
15
|
props: {
|
|
15
16
|
schemas: {}
|
|
16
17
|
},
|
|
17
18
|
setup(b) {
|
|
18
|
-
const
|
|
19
|
+
const s = b, g = A(() => s.schemas ? Object.entries(s.schemas).map(([m, i]) => ({
|
|
19
20
|
name: m,
|
|
20
|
-
schema:
|
|
21
|
-
})) : []), { getModelId: a } =
|
|
22
|
-
return (m,
|
|
21
|
+
schema: i
|
|
22
|
+
})) : []), { getModelId: a } = O();
|
|
23
|
+
return (m, i) => s.schemas ? (t(), c(e(y), {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "reference-models"
|
|
25
26
|
}, {
|
|
26
27
|
title: o(() => [
|
|
27
|
-
|
|
28
|
-
default: o(() =>
|
|
29
|
-
|
|
28
|
+
n(e(B), { level: 2 }, {
|
|
29
|
+
default: o(() => i[0] || (i[0] = [
|
|
30
|
+
C("Models")
|
|
30
31
|
])),
|
|
31
32
|
_: 1
|
|
32
33
|
})
|
|
33
34
|
]),
|
|
34
35
|
default: o(() => [
|
|
35
|
-
(t(!0),
|
|
36
|
+
(t(!0), u(v, null, k(g.value, ({ name: l, schema: r }) => (t(), c(e(H), {
|
|
36
37
|
id: e(a)({ name: l }),
|
|
37
38
|
key: l,
|
|
38
39
|
label: l
|
|
39
40
|
}, {
|
|
40
41
|
title: o(() => [
|
|
41
|
-
|
|
42
|
+
n(e(M), {
|
|
42
43
|
id: e(a)({ name: l }),
|
|
43
44
|
class: "reference-models-anchor"
|
|
44
45
|
}, {
|
|
45
46
|
default: o(() => [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
n(e(V), { level: 3 }, {
|
|
48
|
+
default: o(() => [
|
|
49
|
+
n(e(j), {
|
|
50
|
+
class: "reference-models-label",
|
|
51
|
+
name: l,
|
|
52
|
+
value: r
|
|
53
|
+
}, null, 8, ["name", "value"])
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1024)
|
|
51
57
|
]),
|
|
52
58
|
_: 2
|
|
53
59
|
}, 1032, ["id"])
|
|
54
60
|
]),
|
|
55
61
|
default: o(() => [
|
|
56
|
-
r != null && r.properties ? (t(),
|
|
57
|
-
(t(!0),
|
|
58
|
-
var
|
|
62
|
+
r != null && r.properties ? (t(), u("div", T, [
|
|
63
|
+
(t(!0), u(v, null, k(Object.entries(r.properties), ([d, q]) => {
|
|
64
|
+
var f, p, _;
|
|
59
65
|
return t(), c(e(S), {
|
|
60
|
-
key:
|
|
61
|
-
name:
|
|
62
|
-
required: ((
|
|
63
|
-
value:
|
|
66
|
+
key: d,
|
|
67
|
+
name: d,
|
|
68
|
+
required: ((f = r.required) == null ? void 0 : f.includes(d)) || ((_ = (p = r.properties) == null ? void 0 : p[d]) == null ? void 0 : _.required) === !0,
|
|
69
|
+
value: q
|
|
64
70
|
}, null, 8, ["name", "required", "value"]);
|
|
65
71
|
}), 128))
|
|
66
|
-
])) : (t(),
|
|
67
|
-
|
|
72
|
+
])) : (t(), u("div", h, [
|
|
73
|
+
n(e(S), { value: r }, null, 8, ["value"])
|
|
68
74
|
]))
|
|
69
75
|
]),
|
|
70
76
|
_: 2
|
|
71
77
|
}, 1032, ["id", "label"]))), 128))
|
|
72
78
|
]),
|
|
73
79
|
_: 1
|
|
74
|
-
})) :
|
|
80
|
+
})) : N("", !0);
|
|
75
81
|
}
|
|
76
82
|
});
|
|
77
83
|
export {
|
|
78
|
-
|
|
84
|
+
J as default
|
|
79
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,cAAc,UAAqC,CAAA;AAEhE;;GAEG;AACH,wBAAgB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,cAAc,UAAqC,CAAA;AAEhE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAqDzG"}
|
|
@@ -2,6 +2,7 @@ import type { Tag } from '@scalar/types/legacy';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
id?: string;
|
|
4
4
|
tag: Tag;
|
|
5
|
+
headerId?: string;
|
|
5
6
|
isCollapsed?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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":"AA6JA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;AAqBrE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4PF,wBAOG"}
|
|
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f24da23a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,56 +1,73 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as b, computed as I, openBlock as n, createBlock as s, unref as e, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as i, createCommentVNode as f, createElementVNode as c, createElementBlock as C, Fragment as H, renderList as V, withModifiers as w, normalizeClass as B } from "vue";
|
|
2
|
+
import { ScalarMarkdown as E } from "@scalar/components";
|
|
3
|
+
import { isOperationDeprecated as T } from "../../../helpers/operation.js";
|
|
4
|
+
import h from "../../ScreenReader.vue.js";
|
|
5
|
+
import $ from "../../Section/Section.vue.js";
|
|
6
6
|
import O from "../../Section/SectionHeader.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import M from "../../Section/
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import A from "../../Card/
|
|
13
|
-
import F from "../../Card/
|
|
14
|
-
import L from "../../
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
|
|
7
|
+
import D from "../../Anchor/Anchor.vue.js";
|
|
8
|
+
import k from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import M from "../../Section/SectionContent.vue.js";
|
|
10
|
+
import z from "../../Section/SectionColumns.vue.js";
|
|
11
|
+
import S from "../../Section/SectionColumn.vue.js";
|
|
12
|
+
import A from "../../Card/Card.vue.js";
|
|
13
|
+
import F from "../../Card/CardHeader.vue.js";
|
|
14
|
+
import L from "../../Card/CardContent.vue.js";
|
|
15
|
+
import R from "../../HttpMethod/HttpMethod.vue.js";
|
|
16
|
+
import { useNavState as U } from "../../../hooks/useNavState.js";
|
|
17
|
+
import { useSidebar as j } from "../../../hooks/useSidebar.js";
|
|
18
|
+
const q = ["aria-label"], G = ["href", "onClick"], ie = /* @__PURE__ */ b({
|
|
18
19
|
__name: "Endpoints",
|
|
19
20
|
props: {
|
|
20
21
|
id: {},
|
|
21
22
|
tag: {},
|
|
23
|
+
headerId: {},
|
|
22
24
|
isCollapsed: { type: Boolean }
|
|
23
25
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
setup(v) {
|
|
27
|
+
const m = v, { getOperationId: p, getTagId: y } = U(), { scrollToOperation: _ } = j(), u = I(() => m.tag["x-displayName"] ?? m.tag.name), N = async (t) => {
|
|
28
|
+
const r = p(t, m.tag);
|
|
29
|
+
_(r);
|
|
28
30
|
};
|
|
29
|
-
return (t,
|
|
31
|
+
return (t, r) => (n(), s(e($), {
|
|
30
32
|
id: t.id,
|
|
31
|
-
label: t.tag.name.toUpperCase()
|
|
33
|
+
label: t.tag.name.toUpperCase(),
|
|
34
|
+
role: "none"
|
|
32
35
|
}, {
|
|
33
36
|
default: a(() => [
|
|
34
|
-
o(e(O),
|
|
37
|
+
o(e(O), null, {
|
|
35
38
|
default: a(() => [
|
|
36
|
-
o(e(
|
|
37
|
-
id: e(
|
|
39
|
+
o(e(D), {
|
|
40
|
+
id: e(y)(t.tag)
|
|
38
41
|
}, {
|
|
39
42
|
default: a(() => [
|
|
40
|
-
|
|
43
|
+
o(e(k), {
|
|
44
|
+
id: t.headerId,
|
|
45
|
+
level: 2
|
|
46
|
+
}, {
|
|
47
|
+
default: a(() => [
|
|
48
|
+
d(i(u.value) + " ", 1),
|
|
49
|
+
t.isCollapsed ? (n(), s(h, { key: 0 }, {
|
|
50
|
+
default: a(() => r[0] || (r[0] = [
|
|
51
|
+
d(" (Collapsed)")
|
|
52
|
+
])),
|
|
53
|
+
_: 1
|
|
54
|
+
})) : f("", !0)
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}, 8, ["id"])
|
|
41
58
|
]),
|
|
42
59
|
_: 1
|
|
43
60
|
}, 8, ["id"])
|
|
44
61
|
]),
|
|
45
62
|
_: 1
|
|
46
63
|
}),
|
|
47
|
-
o(e(
|
|
64
|
+
o(e(M), null, {
|
|
48
65
|
default: a(() => [
|
|
49
|
-
o(e(
|
|
66
|
+
o(e(z), null, {
|
|
50
67
|
default: a(() => [
|
|
51
|
-
o(e(
|
|
68
|
+
o(e(S), null, {
|
|
52
69
|
default: a(() => [
|
|
53
|
-
o(e(
|
|
70
|
+
o(e(E), {
|
|
54
71
|
clamp: t.isCollapsed ? "7" : !1,
|
|
55
72
|
value: t.tag.description,
|
|
56
73
|
withImages: ""
|
|
@@ -58,62 +75,72 @@ const j = ["aria-label"], q = ["href", "onClick"], se = /* @__PURE__ */ v({
|
|
|
58
75
|
]),
|
|
59
76
|
_: 1
|
|
60
77
|
}),
|
|
61
|
-
o(e(
|
|
78
|
+
o(e(S), null, {
|
|
62
79
|
default: a(() => {
|
|
63
|
-
var
|
|
80
|
+
var g;
|
|
64
81
|
return [
|
|
65
|
-
((
|
|
82
|
+
((g = t.tag.operations) == null ? void 0 : g.length) > 0 ? (n(), s(e(A), {
|
|
66
83
|
key: 0,
|
|
67
84
|
class: "scalar-card-sticky"
|
|
68
85
|
}, {
|
|
69
86
|
default: a(() => [
|
|
70
|
-
o(e(
|
|
87
|
+
o(e(F), { muted: "" }, {
|
|
71
88
|
default: a(() => [
|
|
72
|
-
o(
|
|
89
|
+
o(h, null, {
|
|
73
90
|
default: a(() => [
|
|
74
|
-
|
|
91
|
+
d(i(u.value), 1)
|
|
75
92
|
]),
|
|
76
93
|
_: 1
|
|
77
94
|
}),
|
|
78
|
-
|
|
95
|
+
r[1] || (r[1] = d(" Endpoints "))
|
|
79
96
|
]),
|
|
80
97
|
_: 1
|
|
81
98
|
}),
|
|
82
|
-
o(e(
|
|
99
|
+
o(e(L), {
|
|
83
100
|
class: "custom-scroll",
|
|
84
101
|
muted: ""
|
|
85
102
|
}, {
|
|
86
103
|
default: a(() => [
|
|
87
104
|
c("ul", {
|
|
88
|
-
"aria-label": `${
|
|
105
|
+
"aria-label": `${u.value} endpoints`,
|
|
89
106
|
class: "endpoints"
|
|
90
107
|
}, [
|
|
91
|
-
(n(!0),
|
|
92
|
-
key: e(
|
|
108
|
+
(n(!0), C(H, null, V(t.tag.operations, (l) => (n(), C("li", {
|
|
109
|
+
key: e(p)(l, t.tag),
|
|
93
110
|
class: "contents"
|
|
94
111
|
}, [
|
|
112
|
+
t.isCollapsed ? (n(), s(e(k), {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "sr-only",
|
|
115
|
+
level: 3
|
|
116
|
+
}, {
|
|
117
|
+
default: a(() => [
|
|
118
|
+
d(i(l.name) + " (Hidden) ", 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1024)) : f("", !0),
|
|
95
122
|
c("a", {
|
|
96
123
|
class: "endpoint",
|
|
97
|
-
href: `#${e(
|
|
98
|
-
onClick:
|
|
124
|
+
href: `#${e(p)(l, t.tag)}`,
|
|
125
|
+
onClick: w((J) => N(l), ["prevent"])
|
|
99
126
|
}, [
|
|
100
|
-
o(e(
|
|
101
|
-
method:
|
|
127
|
+
o(e(R), {
|
|
128
|
+
method: l.httpVerb
|
|
102
129
|
}, null, 8, ["method"]),
|
|
103
130
|
c("span", {
|
|
104
|
-
class:
|
|
105
|
-
deprecated: e(
|
|
131
|
+
class: B(["endpoint-path", {
|
|
132
|
+
deprecated: e(T)(l)
|
|
106
133
|
}])
|
|
107
|
-
},
|
|
108
|
-
], 8,
|
|
134
|
+
}, i(l.path), 3)
|
|
135
|
+
], 8, G)
|
|
109
136
|
]))), 128))
|
|
110
|
-
], 8,
|
|
137
|
+
], 8, q)
|
|
111
138
|
]),
|
|
112
139
|
_: 1
|
|
113
140
|
})
|
|
114
141
|
]),
|
|
115
142
|
_: 1
|
|
116
|
-
})) :
|
|
143
|
+
})) : f("", !0)
|
|
117
144
|
];
|
|
118
145
|
}),
|
|
119
146
|
_: 1
|
|
@@ -130,5 +157,5 @@ const j = ["aria-label"], q = ["href", "onClick"], se = /* @__PURE__ */ v({
|
|
|
130
157
|
}
|
|
131
158
|
});
|
|
132
159
|
export {
|
|
133
|
-
|
|
160
|
+
ie as default
|
|
134
161
|
};
|
|
@@ -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":"AA0EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AASpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4Dk/gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7CxohB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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 "./Tag.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3a840364"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|