@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
|
@@ -4,9 +4,11 @@ declare function __VLS_template(): {
|
|
|
4
4
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
5
5
|
id: string;
|
|
6
6
|
type?: string;
|
|
7
|
+
label?: boolean;
|
|
7
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
8
9
|
id: string;
|
|
9
10
|
type?: string;
|
|
11
|
+
label?: boolean;
|
|
10
12
|
}>>>, {}, {}>;
|
|
11
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormTextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/CardFormTextInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardFormTextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/CardFormTextInput.vue"],"names":[],"mappings":"AAuKA,iBAAS,cAAc;qBAyEM,GAAG;EAiB/B;AACD,QAAA,MAAM,eAAe;QApHf,MAAM;WACH,MAAM;YACL,OAAO;;QAFX,MAAM;WACH,MAAM;YACL,OAAO;aAwHf,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 "./CardFormTextInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1473bccc"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,37 +1,53 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, ref as c, computed as u, openBlock as l, createElementBlock as n, createElementVNode as a, normalizeClass as m, renderSlot as f, mergeProps as h, createVNode as y, unref as v, withDirectives as _, vModelCheckbox as k, createCommentVNode as b, pushScopeId as w, popScopeId as S } from "vue";
|
|
2
|
+
import { ScalarIcon as C } from "@scalar/components";
|
|
3
|
+
const I = (o) => (w("data-v-1473bccc"), o = o(), S(), o), V = { class: "card-form-input" }, x = ["for"], B = ["id", "type"], N = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "card-form-input-mask"
|
|
6
|
+
}, g = /* @__PURE__ */ I(() => /* @__PURE__ */ a("span", { class: "sr-only" }, "Hide Password", -1)), E = ["aria-controls", "aria-expanded"], T = /* @__PURE__ */ i({
|
|
4
7
|
inheritAttrs: !1,
|
|
5
8
|
__name: "CardFormTextInput",
|
|
6
9
|
props: {
|
|
7
10
|
id: {},
|
|
8
|
-
type: {}
|
|
11
|
+
type: {},
|
|
12
|
+
label: { type: Boolean }
|
|
9
13
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
() =>
|
|
14
|
+
setup(o) {
|
|
15
|
+
const s = o, t = c(!0), d = u(
|
|
16
|
+
() => s.type === "password" ? t.value ? "password" : "text" : s.type ?? "text"
|
|
13
17
|
);
|
|
14
|
-
return (
|
|
15
|
-
a("label", {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
return (e, r) => (l(), n("div", V, [
|
|
19
|
+
a("label", {
|
|
20
|
+
class: m(["card-form-input-label", { "sr-only": !e.label }]),
|
|
21
|
+
for: e.id
|
|
22
|
+
}, [
|
|
23
|
+
f(e.$slots, "default", {}, void 0, !0)
|
|
24
|
+
], 10, x),
|
|
25
|
+
a("input", h(e.$attrs, {
|
|
26
|
+
id: e.id,
|
|
20
27
|
autocomplete: "off",
|
|
28
|
+
class: "card-form-input-text",
|
|
21
29
|
"data-1p-ignore": "",
|
|
22
30
|
spellcheck: "false",
|
|
23
|
-
type:
|
|
24
|
-
}), null, 16,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
type: d.value
|
|
32
|
+
}), null, 16, B),
|
|
33
|
+
e.type === "password" ? (l(), n("label", N, [
|
|
34
|
+
g,
|
|
35
|
+
y(v(C), {
|
|
36
|
+
class: "card-form-input-mask-icon",
|
|
37
|
+
icon: t.value ? "Show" : "Hide"
|
|
38
|
+
}, null, 8, ["icon"]),
|
|
39
|
+
_(a("input", {
|
|
40
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => t.value = p),
|
|
41
|
+
"aria-controls": e.id,
|
|
42
|
+
"aria-expanded": !t.value,
|
|
43
|
+
type: "checkbox"
|
|
44
|
+
}, null, 8, E), [
|
|
45
|
+
[k, t.value]
|
|
46
|
+
])
|
|
47
|
+
])) : b("", !0)
|
|
32
48
|
]));
|
|
33
49
|
}
|
|
34
50
|
});
|
|
35
51
|
export {
|
|
36
|
-
|
|
52
|
+
T as default
|
|
37
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;YASxE,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;;;YAF/C,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;;;AAoNrD,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
1
|
import e from "./SecuritySchemeSelector.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e94bff6c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,64 +1,86 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as k, onMounted as N, onServerPrefetch as O, computed as p, openBlock as f, createElementBlock as V, toDisplayString as S, createBlock as I, unref as r, withCtx as y, createVNode as m, createTextVNode as x, createCommentVNode as j, pushScopeId as z, popScopeId as K, createElementVNode as P } from "vue";
|
|
2
|
+
import { ScalarListbox as $, ScalarButton as D, ScalarIcon as E } from "@scalar/components";
|
|
3
3
|
import { useAuthenticationStore as H } from "../stores/useAuthenticationStore.js";
|
|
4
|
-
const
|
|
4
|
+
const T = (o) => (z("data-v-e94bff6c"), o = o(), K(), o), F = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "security-scheme-label"
|
|
7
|
-
},
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "security-scheme-selector"
|
|
10
|
-
}, q = { class: "security-scheme-label" }, G = ["value"], J = /* @__PURE__ */ M(() => /* @__PURE__ */ y("option", { value: "" }, "No Authentication", -1)), Q = ["value"], X = /* @__PURE__ */ N({
|
|
7
|
+
}, M = /* @__PURE__ */ T(() => /* @__PURE__ */ P("span", { class: "sr-only" }, "Selected:", -1)), G = /* @__PURE__ */ k({
|
|
11
8
|
__name: "SecuritySchemeSelector",
|
|
12
9
|
props: {
|
|
13
10
|
value: {}
|
|
14
11
|
},
|
|
15
12
|
emits: ["input"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
O(() => {
|
|
21
|
-
o.preferredSecurityScheme || p(Object.keys(l.value ?? {})[0] ?? null);
|
|
13
|
+
setup(o, { emit: v }) {
|
|
14
|
+
const a = o, b = v, { authentication: s, setAuthentication: A } = H();
|
|
15
|
+
N(() => {
|
|
16
|
+
s.preferredSecurityScheme || i(Object.keys(a.value ?? {})[0] ?? null);
|
|
22
17
|
});
|
|
23
|
-
const
|
|
18
|
+
const i = (e) => {
|
|
24
19
|
A({
|
|
25
20
|
preferredSecurityScheme: e
|
|
26
|
-
}),
|
|
21
|
+
}), b("input", e);
|
|
27
22
|
};
|
|
28
|
-
|
|
29
|
-
() =>
|
|
23
|
+
O(
|
|
24
|
+
() => i(Object.keys(a.value ?? {})[0] ?? null)
|
|
30
25
|
);
|
|
31
|
-
const w = (e) => !(e != null && e.type),
|
|
32
|
-
var t,
|
|
33
|
-
return w(e) ? "No Authentication" :
|
|
34
|
-
},
|
|
26
|
+
const w = (e) => !(e != null && e.type), C = (e) => e.type.toLowerCase() === "apikey", _ = (e) => e.type === "http" && e.scheme.toLowerCase() === "basic" || e.type.toLowerCase() === "basic", B = (e) => e.type === "http" && e.scheme.toLowerCase() === "bearer", L = (e) => e.type.toLowerCase() === "oauth2", l = (e, t) => `${g(e)} (${t})`, g = (e) => {
|
|
27
|
+
var t, n;
|
|
28
|
+
return w(e) ? "No Authentication" : C(e) ? "API Key" : _(e) ? "Basic Authentication" : B(e) ? "Bearer Authentication" : L(e) ? (t = e.flows) != null && t.implicit ? "OAuth 2.0 Implicit" : (n = e.flows) != null && n.password ? "OAuth 2.0 Password" : "OAuth 2.0" : `${e.type} (not yet supported)`;
|
|
29
|
+
}, c = p(() => Object.keys(a.value ?? {})), h = p(
|
|
30
|
+
() => c.value.map((e) => {
|
|
31
|
+
var t;
|
|
32
|
+
return {
|
|
33
|
+
id: e,
|
|
34
|
+
label: l((t = a.value) == null ? void 0 : t[e], e)
|
|
35
|
+
};
|
|
36
|
+
})
|
|
37
|
+
), d = p({
|
|
38
|
+
get: () => {
|
|
39
|
+
var e;
|
|
40
|
+
return (e = h.value) == null ? void 0 : e.find(
|
|
41
|
+
(t) => t.id === s.preferredSecurityScheme
|
|
42
|
+
);
|
|
43
|
+
},
|
|
44
|
+
set: (e) => i((e == null ? void 0 : e.id) ?? "")
|
|
45
|
+
});
|
|
35
46
|
return (e, t) => {
|
|
36
|
-
var
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
var n;
|
|
48
|
+
return c.value.length === 1 ? (f(), V("div", F, S(l((n = e.value) == null ? void 0 : n[c.value[0]], c.value[0])), 1)) : c.value.length > 1 ? (f(), I(r($), {
|
|
49
|
+
key: 1,
|
|
50
|
+
modelValue: d.value,
|
|
51
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => d.value = u),
|
|
52
|
+
label: "Security Scheme",
|
|
53
|
+
options: h.value,
|
|
54
|
+
resize: ""
|
|
55
|
+
}, {
|
|
56
|
+
default: y(() => [
|
|
57
|
+
m(r(D), {
|
|
58
|
+
class: "security-scheme-button",
|
|
59
|
+
fullWidth: "",
|
|
60
|
+
variant: "ghost"
|
|
61
|
+
}, {
|
|
62
|
+
default: y(() => {
|
|
63
|
+
var u;
|
|
64
|
+
return [
|
|
65
|
+
M,
|
|
66
|
+
x(" " + S(r(s).preferredSecurityScheme ? l(
|
|
67
|
+
(u = e.value) == null ? void 0 : u[r(s).preferredSecurityScheme],
|
|
68
|
+
r(s).preferredSecurityScheme
|
|
69
|
+
) : "No Authentication") + " ", 1),
|
|
70
|
+
m(r(E), {
|
|
71
|
+
icon: "ChevronDown",
|
|
72
|
+
size: "xs"
|
|
73
|
+
})
|
|
74
|
+
];
|
|
75
|
+
}),
|
|
76
|
+
_: 1
|
|
77
|
+
})
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["modelValue", "options"])) : j("", !0);
|
|
59
81
|
};
|
|
60
82
|
}
|
|
61
83
|
});
|
|
62
84
|
export {
|
|
63
|
-
|
|
85
|
+
G as default
|
|
64
86
|
};
|