@scalar/api-reference 1.25.99 → 1.25.100
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 +18 -0
- package/dist/browser/standalone.js +1724 -1722
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +44 -43
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +35 -35
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -78
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +170 -162
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientLibraries.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-35fd541a"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AAmiBA,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClientSelector.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b29373e8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { useHttpClientStore as
|
|
4
|
-
const I = ["onClick"], $ = ["value"],
|
|
1
|
+
import { defineComponent as S, ref as x, openBlock as l, createElementBlock as r, Fragment as u, renderList as d, unref as t, normalizeClass as o, createElementVNode as a, createVNode as f, toDisplayString as m, createCommentVNode as w } from "vue";
|
|
2
|
+
import { ScalarIcon as h } from "@scalar/components";
|
|
3
|
+
import { useHttpClientStore as N } from "../../../stores/useHttpClientStore.js";
|
|
4
|
+
const I = ["onClick"], $ = { class: "client-libraries-text" }, z = ["value"], B = ["label"], M = ["aria-label", "value"], T = {
|
|
5
5
|
"aria-hidden": "true",
|
|
6
6
|
class: "client-libraries-icon__more"
|
|
7
|
-
},
|
|
7
|
+
}, J = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "client-libraries-icon",
|
|
10
10
|
height: "50",
|
|
@@ -12,19 +12,20 @@ const I = ["onClick"], $ = ["value"], z = ["label"], B = ["aria-label", "value"]
|
|
|
12
12
|
viewBox: "0 0 50 50",
|
|
13
13
|
width: "50",
|
|
14
14
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
-
},
|
|
15
|
+
}, L = {
|
|
16
16
|
key: 0,
|
|
17
|
-
"aria-hidden": "true"
|
|
18
|
-
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
class: "client-libraries-text"
|
|
19
|
+
}, F = /* @__PURE__ */ S({
|
|
19
20
|
__name: "ClientSelector",
|
|
20
|
-
setup(
|
|
21
|
+
setup(O) {
|
|
21
22
|
const {
|
|
22
|
-
httpClient:
|
|
23
|
+
httpClient: s,
|
|
23
24
|
setHttpClient: g,
|
|
24
25
|
availableTargets: y,
|
|
25
26
|
getClientTitle: p,
|
|
26
|
-
getTargetTitle:
|
|
27
|
-
} =
|
|
27
|
+
getTargetTitle: k
|
|
28
|
+
} = N(), v = x(), K = [
|
|
28
29
|
{
|
|
29
30
|
targetKey: "shell",
|
|
30
31
|
clientKey: "curl"
|
|
@@ -49,88 +50,88 @@ const I = ["onClick"], $ = ["value"], z = ["label"], B = ["aria-label", "value"]
|
|
|
49
50
|
(i) => y.value.find((n) => n.key === i.targetKey && n.clients.find(
|
|
50
51
|
(e) => e.client === i.clientKey
|
|
51
52
|
))
|
|
52
|
-
), _ = (i) => `programming-language-${i === "js" ? "javascript" : i}`, C = (i) => i.targetKey ===
|
|
53
|
+
), _ = (i) => `programming-language-${i === "js" ? "javascript" : i}`, C = (i) => i.targetKey === s.targetKey && i.clientKey === s.clientKey, b = (i) => K.some(
|
|
53
54
|
(n) => n.targetKey === i.targetKey && n.clientKey === i.clientKey
|
|
54
55
|
);
|
|
55
56
|
return (i, n) => (l(), r("div", {
|
|
56
57
|
ref_key: "containerRef",
|
|
57
|
-
ref:
|
|
58
|
+
ref: v,
|
|
58
59
|
class: "client-libraries-content"
|
|
59
60
|
}, [
|
|
60
61
|
(l(!0), r(u, null, d(t(K), (e) => (l(), r("button", {
|
|
61
62
|
key: e.clientKey,
|
|
62
63
|
"aria-hidden": "true",
|
|
63
|
-
class:
|
|
64
|
+
class: o(["client-libraries rendered-code-sdks", {
|
|
64
65
|
"client-libraries__active": C(e)
|
|
65
66
|
}]),
|
|
66
67
|
tabindex: "-1",
|
|
67
68
|
type: "button",
|
|
68
69
|
onClick: () => t(g)(e)
|
|
69
70
|
}, [
|
|
70
|
-
|
|
71
|
-
class:
|
|
71
|
+
a("div", {
|
|
72
|
+
class: o(`client-libraries-icon__${e.targetKey}`)
|
|
72
73
|
}, [
|
|
73
|
-
f(t(
|
|
74
|
+
f(t(h), {
|
|
74
75
|
class: "client-libraries-icon",
|
|
75
76
|
icon: _(e.targetKey)
|
|
76
77
|
}, null, 8, ["icon"])
|
|
77
78
|
], 2),
|
|
78
|
-
|
|
79
|
+
a("span", $, m(t(k)(e)), 1)
|
|
79
80
|
], 10, I))), 128)),
|
|
80
|
-
|
|
81
|
-
class:
|
|
82
|
-
"client-libraries__active": t(
|
|
81
|
+
a("label", {
|
|
82
|
+
class: o(["client-libraries client-libraries__select", {
|
|
83
|
+
"client-libraries__active": t(s) && !b(t(s))
|
|
83
84
|
}])
|
|
84
85
|
}, [
|
|
85
|
-
n[2] || (n[2] =
|
|
86
|
-
|
|
86
|
+
n[2] || (n[2] = a("span", { class: "sr-only" }, "Select Client Library", -1)),
|
|
87
|
+
a("select", {
|
|
87
88
|
class: "language-select",
|
|
88
|
-
value: JSON.stringify(t(
|
|
89
|
+
value: JSON.stringify(t(s)),
|
|
89
90
|
onInput: n[0] || (n[0] = (e) => t(g)(JSON.parse(e.target.value)))
|
|
90
91
|
}, [
|
|
91
92
|
(l(!0), r(u, null, d(t(y), (e) => (l(), r("optgroup", {
|
|
92
93
|
key: e.key,
|
|
93
94
|
label: e.title
|
|
94
95
|
}, [
|
|
95
|
-
(l(!0), r(u, null, d(e.clients, (
|
|
96
|
-
key:
|
|
96
|
+
(l(!0), r(u, null, d(e.clients, (c) => (l(), r("option", {
|
|
97
|
+
key: c.client,
|
|
97
98
|
"aria-label": `${e.title} ${t(p)({
|
|
98
99
|
targetKey: e.key,
|
|
99
|
-
clientKey:
|
|
100
|
+
clientKey: c.client
|
|
100
101
|
})}`,
|
|
101
102
|
value: JSON.stringify({
|
|
102
103
|
targetKey: e.key,
|
|
103
|
-
clientKey:
|
|
104
|
+
clientKey: c.client
|
|
104
105
|
})
|
|
105
106
|
}, m(t(p)({
|
|
106
107
|
targetKey: e.key,
|
|
107
|
-
clientKey:
|
|
108
|
-
})), 9,
|
|
109
|
-
], 8,
|
|
110
|
-
], 40,
|
|
111
|
-
|
|
112
|
-
t(
|
|
108
|
+
clientKey: c.client
|
|
109
|
+
})), 9, M))), 128))
|
|
110
|
+
], 8, B))), 128))
|
|
111
|
+
], 40, z),
|
|
112
|
+
a("div", T, [
|
|
113
|
+
t(s) && !b(t(s)) ? (l(), r("div", {
|
|
113
114
|
key: 0,
|
|
114
|
-
class:
|
|
115
|
+
class: o(`client-libraries-icon__${t(s).targetKey}`)
|
|
115
116
|
}, [
|
|
116
|
-
f(t(
|
|
117
|
+
f(t(h), {
|
|
117
118
|
class: "client-libraries-icon",
|
|
118
|
-
icon: _(t(
|
|
119
|
+
icon: _(t(s).targetKey)
|
|
119
120
|
}, null, 8, ["icon"])
|
|
120
|
-
], 2)) : (l(), r("svg",
|
|
121
|
-
|
|
121
|
+
], 2)) : (l(), r("svg", J, n[1] || (n[1] = [
|
|
122
|
+
a("g", {
|
|
122
123
|
fill: "currentColor",
|
|
123
124
|
"fill-rule": "nonzero"
|
|
124
125
|
}, [
|
|
125
|
-
|
|
126
|
+
a("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
|
|
126
127
|
], -1)
|
|
127
128
|
])))
|
|
128
129
|
]),
|
|
129
|
-
t(y).length ? (l(), r("span",
|
|
130
|
+
t(y).length ? (l(), r("span", L, " More ")) : w("", !0)
|
|
130
131
|
], 2)
|
|
131
132
|
], 512));
|
|
132
133
|
}
|
|
133
134
|
});
|
|
134
135
|
export {
|
|
135
|
-
|
|
136
|
+
F as default
|
|
136
137
|
};
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-25d74a5d"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as A, computed as B, openBlock as
|
|
1
|
+
import { defineComponent as A, computed as B, openBlock as a, createElementBlock as i, Fragment as d, createStaticVNode as E, createElementVNode as c, renderSlot as n, createVNode as o, unref as s, createBlock as r, withCtx as k, normalizeClass as L, renderList as N, createCommentVNode as p } from "vue";
|
|
2
2
|
import { useActiveEntities as V } from "@scalar/api-client/store";
|
|
3
|
-
import {
|
|
3
|
+
import { RequestAuth as R } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
4
|
import { ScalarErrorBoundary as q } from "@scalar/components";
|
|
5
5
|
import z from "./Lazy/Loading.vue.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useSidebar as
|
|
15
|
-
import { hasModels as
|
|
16
|
-
import { getModels as
|
|
17
|
-
const
|
|
7
|
+
import F from "./Introduction/Introduction.vue.js";
|
|
8
|
+
import G from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
9
|
+
import I from "./ClientLibraries/ClientLibraries.vue.js";
|
|
10
|
+
import g from "./Tag/TagList.vue.js";
|
|
11
|
+
import W from "../../features/Operation/Webhooks.vue.js";
|
|
12
|
+
import j from "./Models/ModelsAccordion.vue.js";
|
|
13
|
+
import D from "./Models/Models.vue.js";
|
|
14
|
+
import { useSidebar as H } from "../../hooks/useSidebar.js";
|
|
15
|
+
import { hasModels as J } from "../../helpers/hasModels.js";
|
|
16
|
+
import { getModels as b } from "../../helpers/getModels.js";
|
|
17
|
+
const K = { class: "narrow-references-container" }, O = { class: "scalar-client introduction-card-item" }, le = /* @__PURE__ */ A({
|
|
18
18
|
__name: "Content",
|
|
19
19
|
props: {
|
|
20
20
|
parsedSpec: {},
|
|
@@ -23,20 +23,20 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
|
|
|
23
23
|
servers: {}
|
|
24
24
|
},
|
|
25
25
|
setup(C) {
|
|
26
|
-
const m = C, { hideModels: w } =
|
|
26
|
+
const m = C, { hideModels: w } = H(), { activeCollection: U } = V(), $ = B(
|
|
27
27
|
() => m.layout === "classic" ? "after" : "aside"
|
|
28
28
|
);
|
|
29
29
|
return (e, u) => {
|
|
30
30
|
var f, v, S, y;
|
|
31
|
-
return
|
|
32
|
-
u[0] || (u[0] = E('<div class="section-flare" data-v-
|
|
33
|
-
|
|
31
|
+
return a(), i(d, null, [
|
|
32
|
+
u[0] || (u[0] = E('<div class="section-flare" data-v-25d74a5d><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div></div>', 1)),
|
|
33
|
+
c("div", K, [
|
|
34
34
|
n(e.$slots, "start", {}, void 0, !0),
|
|
35
35
|
o(s(z), {
|
|
36
36
|
layout: e.layout,
|
|
37
37
|
parsedSpec: e.parsedSpec
|
|
38
38
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
39
|
-
(v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.title || (y = (S = e.parsedSpec) == null ? void 0 : S.info) != null && y.description ? (
|
|
39
|
+
(v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.title || (y = (S = e.parsedSpec) == null ? void 0 : S.info) != null && y.description ? (a(), r(s(F), {
|
|
40
40
|
key: 0,
|
|
41
41
|
info: e.parsedSpec.info,
|
|
42
42
|
parsedSpec: e.parsedSpec
|
|
@@ -46,23 +46,23 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
|
|
|
46
46
|
default: k(() => {
|
|
47
47
|
var t;
|
|
48
48
|
return [
|
|
49
|
-
|
|
49
|
+
c("div", {
|
|
50
50
|
class: L(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
51
51
|
}, [
|
|
52
|
-
o(s(
|
|
52
|
+
o(s(G), {
|
|
53
53
|
class: "introduction-card-item",
|
|
54
54
|
defaultServerUrl: e.baseServerURL,
|
|
55
55
|
servers: m.servers,
|
|
56
56
|
specification: e.parsedSpec
|
|
57
57
|
}, null, 8, ["defaultServerUrl", "servers", "specification"]),
|
|
58
|
-
|
|
58
|
+
c("div", O, [
|
|
59
59
|
o(s(R), {
|
|
60
60
|
layout: "reference",
|
|
61
61
|
selectedSecuritySchemeUids: ((t = s(U)) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [],
|
|
62
62
|
title: "Authentication"
|
|
63
63
|
}, null, 8, ["selectedSecuritySchemeUids"])
|
|
64
64
|
]),
|
|
65
|
-
o(s(
|
|
65
|
+
o(s(I), { class: "introduction-card-item" })
|
|
66
66
|
], 2)
|
|
67
67
|
];
|
|
68
68
|
}),
|
|
@@ -71,33 +71,33 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
|
|
|
71
71
|
]),
|
|
72
72
|
_: 2
|
|
73
73
|
}, 1032, ["info", "parsedSpec"])) : n(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
74
|
-
e.parsedSpec.tags ? (
|
|
75
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
74
|
+
e.parsedSpec.tags ? (a(), i(d, { key: 2 }, [
|
|
75
|
+
e.parsedSpec["x-tagGroups"] ? (a(!0), i(d, { key: 0 }, N(e.parsedSpec["x-tagGroups"], (t) => (a(), r(s(g), {
|
|
76
76
|
key: t.name,
|
|
77
77
|
layout: e.layout,
|
|
78
78
|
spec: e.parsedSpec,
|
|
79
|
-
tags: t.tags.map((
|
|
79
|
+
tags: t.tags.map((l) => {
|
|
80
80
|
var h;
|
|
81
|
-
return (h = e.parsedSpec.tags) == null ? void 0 : h.find((M) => M.name ===
|
|
82
|
-
}).filter((
|
|
83
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
81
|
+
return (h = e.parsedSpec.tags) == null ? void 0 : h.find((M) => M.name === l);
|
|
82
|
+
}).filter((l) => !!l)
|
|
83
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (a(), r(s(g), {
|
|
84
84
|
key: 1,
|
|
85
85
|
layout: e.layout,
|
|
86
86
|
spec: e.parsedSpec,
|
|
87
87
|
tags: e.parsedSpec.tags
|
|
88
88
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
89
89
|
], 64)) : p("", !0),
|
|
90
|
-
e.parsedSpec.webhooks ? (
|
|
90
|
+
e.parsedSpec.webhooks ? (a(), r(s(W), {
|
|
91
91
|
key: 3,
|
|
92
92
|
webhooks: e.parsedSpec.webhooks
|
|
93
93
|
}, null, 8, ["webhooks"])) : p("", !0),
|
|
94
|
-
s(
|
|
95
|
-
e.layout === "classic" ? (
|
|
94
|
+
s(J)(e.parsedSpec) && !s(w) ? (a(), i(d, { key: 4 }, [
|
|
95
|
+
e.layout === "classic" ? (a(), r(s(j), {
|
|
96
96
|
key: 0,
|
|
97
|
-
schemas: s(
|
|
98
|
-
}, null, 8, ["schemas"])) : (
|
|
97
|
+
schemas: s(b)(e.parsedSpec)
|
|
98
|
+
}, null, 8, ["schemas"])) : (a(), r(s(D), {
|
|
99
99
|
key: 1,
|
|
100
|
-
schemas: s(
|
|
100
|
+
schemas: s(b)(e.parsedSpec)
|
|
101
101
|
}, null, 8, ["schemas"]))
|
|
102
102
|
], 64)) : p("", !0),
|
|
103
103
|
n(e.$slots, "end", {}, void 0, !0)
|
|
@@ -107,5 +107,5 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
le as default
|
|
111
111
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA+aA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AAuYrB,0BAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c75bd9a9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|