@scalar/api-reference 1.25.34 → 1.25.36
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 +10 -0
- package/dist/browser/standalone.js +6706 -6670
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +3 -3
- package/dist/components/ApiReferenceLayout.vue2.js +137 -133
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- 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 +61 -46
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +19 -19
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +39 -32
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrl.vue.js +2 -3
- package/dist/features/BaseUrl/ServerUrl.vue2.js +13 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +37 -36
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +37 -31
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +39 -35
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +2 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +4 -4
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +11 -9
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
- package/dist/features/DownloadLink/DownloadLink.vue2.js +12 -11
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +2 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue2.js +39 -23
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +67 -45
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as v, computed as r, openBlock as f, createBlock as S, unref as t, withCtx as c, createVNode as i, createElementVNode as d, createTextVNode as h, toDisplayString as V, pushScopeId as _, popScopeId as g } from "vue";
|
|
2
|
+
import { ScalarListbox as b, ScalarButton as x, ScalarIcon as I } from "@scalar/components";
|
|
3
|
+
const w = (o) => (_("data-v-1eae5319"), o = o(), g(), o), B = /* @__PURE__ */ w(() => /* @__PURE__ */ d("span", { class: "sr-only" }, "Selected:", -1)), k = /* @__PURE__ */ v({
|
|
4
4
|
__name: "ServerVariablesSelect",
|
|
5
5
|
props: {
|
|
6
6
|
enum: {},
|
|
7
|
-
value: {}
|
|
7
|
+
value: {},
|
|
8
|
+
controls: {}
|
|
8
9
|
},
|
|
9
10
|
emits: ["change"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
() =>
|
|
13
|
-
), n =
|
|
14
|
-
get: () =>
|
|
15
|
-
set: (e) =>
|
|
11
|
+
setup(o, { emit: u }) {
|
|
12
|
+
const a = o, p = u, l = r(
|
|
13
|
+
() => a.enum.map((e) => ({ id: e, label: e }))
|
|
14
|
+
), n = r({
|
|
15
|
+
get: () => l.value.find((e) => e.id === a.value),
|
|
16
|
+
set: (e) => p("change", (e == null ? void 0 : e.id) ?? "")
|
|
16
17
|
});
|
|
17
|
-
return (e, s) => (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
18
|
+
return (e, s) => (f(), S(t(b), {
|
|
19
|
+
modelValue: n.value,
|
|
20
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
|
|
21
|
+
fullWidth: "",
|
|
22
|
+
options: l.value
|
|
23
|
+
}, {
|
|
24
|
+
default: c(() => [
|
|
25
|
+
i(t(x), {
|
|
26
|
+
"aria-controls": e.controls,
|
|
27
|
+
class: "variable-select",
|
|
28
|
+
fullWidth: "",
|
|
29
|
+
variant: "ghost"
|
|
30
|
+
}, {
|
|
31
|
+
default: c(() => [
|
|
32
|
+
d("span", null, [
|
|
33
|
+
B,
|
|
34
|
+
h(" " + V(e.value), 1)
|
|
35
35
|
]),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
i(t(I), {
|
|
37
|
+
icon: "ChevronDown",
|
|
38
|
+
size: "xs"
|
|
39
|
+
})
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["aria-controls"])
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["modelValue", "options"]));
|
|
42
46
|
}
|
|
43
47
|
});
|
|
44
48
|
export {
|
|
45
|
-
|
|
49
|
+
k as default
|
|
46
50
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
value: string;
|
|
3
|
+
controls?: string;
|
|
3
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
5
|
change: (v: string) => void;
|
|
5
6
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
7
|
value: string;
|
|
8
|
+
controls?: string;
|
|
7
9
|
}>>> & {
|
|
8
10
|
onChange?: ((v: string) => any) | undefined;
|
|
9
11
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerVariablesTextbox.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesTextbox.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ServerVariablesTextbox.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesTextbox.vue"],"names":[],"mappings":";WAmDS,MAAM;eACF,MAAM;;;;WADV,MAAM;eACF,MAAM;;;;AAwDnB,wBAOG;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
|
-
import
|
|
1
|
+
import e from "./ServerVariablesTextbox.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-0edbbce4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const x = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as c, computed as p, withDirectives as i, openBlock as u, createElementBlock as m, vModelText as d } from "vue";
|
|
2
|
+
const v = ["aria-controls"], x = /* @__PURE__ */ c({
|
|
3
3
|
__name: "ServerVariablesTextbox",
|
|
4
4
|
props: {
|
|
5
|
-
value: {}
|
|
5
|
+
value: {},
|
|
6
|
+
controls: {}
|
|
6
7
|
},
|
|
7
8
|
emits: ["change"],
|
|
8
9
|
setup(l, { emit: a }) {
|
|
9
|
-
const n = l, s = a,
|
|
10
|
+
const n = l, s = a, t = p({
|
|
10
11
|
get: () => n.value,
|
|
11
|
-
set: (
|
|
12
|
+
set: (e) => s("change", e)
|
|
12
13
|
});
|
|
13
|
-
return (
|
|
14
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
14
|
+
return (e, o) => i((u(), m("input", {
|
|
15
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
|
|
16
|
+
"aria-controls": e.controls,
|
|
15
17
|
autocomplete: "off",
|
|
16
18
|
class: "variable-textbox",
|
|
17
19
|
placeholder: "value",
|
|
18
20
|
spellcheck: "false",
|
|
19
21
|
type: "text"
|
|
20
|
-
}, null,
|
|
21
|
-
[
|
|
22
|
+
}, null, 8, v)), [
|
|
23
|
+
[d, t.value]
|
|
22
24
|
]);
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../src/features/DownloadLink/DownloadLink.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../src/features/DownloadLink/DownloadLink.vue"],"names":[],"mappings":";gBA4Ec,MAAM;;gBAAN,MAAM;;AAqEpB,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 "./DownloadLink.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-4ae6d175"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { defineComponent as m, inject as d, openBlock as o, createElementBlock as e, unref as t, Fragment as _, createCommentVNode as u } from "vue";
|
|
2
|
-
import { HIDE_DOWNLOAD_BUTTON_SYMBOL as D, OPENAPI_DOCUMENT_URL_SYMBOL as
|
|
3
|
-
import { downloadSpecBus as
|
|
4
|
-
const
|
|
2
|
+
import { HIDE_DOWNLOAD_BUTTON_SYMBOL as D, OPENAPI_DOCUMENT_URL_SYMBOL as k } from "../../helpers/provideSymbols.js";
|
|
3
|
+
import { downloadSpecBus as w } from "../../helpers/specDownloads.js";
|
|
4
|
+
const O = { class: "download" }, f = ["href"], A = /* @__PURE__ */ m({
|
|
5
5
|
__name: "DownloadLink",
|
|
6
6
|
props: {
|
|
7
7
|
specTitle: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
const r = s,
|
|
11
|
-
|
|
10
|
+
const r = s, i = d(D), n = d(k), p = () => {
|
|
11
|
+
w.emit({ id: "", specTitle: r.specTitle });
|
|
12
12
|
};
|
|
13
13
|
return (b, B) => {
|
|
14
|
-
var
|
|
15
|
-
return o(), e("div",
|
|
16
|
-
(
|
|
17
|
-
(
|
|
14
|
+
var l, c, a;
|
|
15
|
+
return o(), e("div", O, [
|
|
16
|
+
(l = t(i)) != null && l() ? u("", !0) : (o(), e(_, { key: 0 }, [
|
|
17
|
+
(c = t(n)) != null && c() ? (o(), e("a", {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "download-button",
|
|
20
20
|
download: "",
|
|
21
21
|
href: (a = t(n)) == null ? void 0 : a(),
|
|
22
22
|
target: "_blank"
|
|
23
|
-
}, " Download OpenAPI Document ", 8,
|
|
23
|
+
}, " Download OpenAPI Document ", 8, f)) : (o(), e("button", {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "download-button",
|
|
26
|
+
role: "link",
|
|
26
27
|
type: "button",
|
|
27
|
-
onClick:
|
|
28
|
+
onClick: p
|
|
28
29
|
}, " Download OpenAPI Document "))
|
|
29
30
|
], 64))
|
|
30
31
|
]);
|