@scalar/api-reference 1.25.67 → 1.25.69
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 +41 -0
- package/dist/browser/standalone.js +5085 -5069
- package/dist/browser/webpack-stats.json +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 +19 -19
- 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/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.js +2 -2
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +1343 -2467
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +55 -52
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormGroup.vue.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +25 -30
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/CardFormGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardFormGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/CardFormGroup.vue"],"names":[],"mappings":"AAsBA,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -7,7 +7,7 @@ function s(r, a) {
|
|
|
7
7
|
t(r.$slots, "default", {}, void 0, !0)
|
|
8
8
|
]);
|
|
9
9
|
}
|
|
10
|
-
const p = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-
|
|
10
|
+
const p = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-2715671a"]]);
|
|
11
11
|
export {
|
|
12
12
|
p as default
|
|
13
13
|
};
|
|
@@ -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":"AAiMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EACF,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;CACpD,CAAC;;;;;;AAgOF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SecuritySchemeSelector.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0b5602b1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,52 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { useApiClient as
|
|
4
|
-
import { useAuthenticationStore as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as _, onMounted as z, onServerPrefetch as I, computed as l, openBlock as S, createElementBlock as K, toDisplayString as m, createBlock as P, unref as s, withCtx as v, createVNode as b, createElementVNode as U, createTextVNode as $, createCommentVNode as D } from "vue";
|
|
2
|
+
import { ScalarListbox as E, ScalarButton as H, ScalarIcon as M } from "@scalar/components";
|
|
3
|
+
import { useApiClient as T } from "../../features/ApiClientModal/useApiClient.js";
|
|
4
|
+
import { useAuthenticationStore as F } from "../stores/useAuthenticationStore.js";
|
|
5
|
+
const W = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "security-scheme-label text-sm text-c-3"
|
|
8
|
-
},
|
|
8
|
+
}, R = /* @__PURE__ */ _({
|
|
9
9
|
__name: "SecuritySchemeSelector",
|
|
10
10
|
props: {
|
|
11
11
|
value: {}
|
|
12
12
|
},
|
|
13
13
|
emits: ["input"],
|
|
14
14
|
setup(A, { emit: w }) {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
c.preferredSecurityScheme ||
|
|
15
|
+
const i = A, C = w, { authentication: c, setAuthentication: O } = F(), { client: p } = T();
|
|
16
|
+
z(() => {
|
|
17
|
+
c.preferredSecurityScheme || u(Object.keys(i.value ?? {})[0] ?? null);
|
|
18
18
|
});
|
|
19
|
-
const
|
|
19
|
+
const u = (e) => {
|
|
20
20
|
var t;
|
|
21
21
|
if (O({
|
|
22
22
|
preferredSecurityScheme: e
|
|
23
23
|
}), (t = p.value) != null && t.store) {
|
|
24
|
-
const {
|
|
25
|
-
|
|
26
|
-
collections: o,
|
|
27
|
-
collectionMutators: x,
|
|
28
|
-
securitySchemes: j
|
|
29
|
-
} = p.value.store, f = (r == null ? void 0 : r.uid) ?? Object.keys(o)[0], y = Object.values(j).find(
|
|
30
|
-
({ nameKey: _ }) => _ === e
|
|
24
|
+
const { collections: r, collectionMutators: o, securitySchemes: x } = p.value.store, f = Object.keys(r)[0], y = Object.values(x).find(
|
|
25
|
+
({ nameKey: j }) => j === e
|
|
31
26
|
);
|
|
32
|
-
y && f &&
|
|
27
|
+
y && f && o.edit(f, "selectedSecuritySchemeUids", [
|
|
33
28
|
y.uid
|
|
34
29
|
]);
|
|
35
30
|
}
|
|
36
31
|
C("input", e);
|
|
37
32
|
};
|
|
38
|
-
|
|
39
|
-
() =>
|
|
33
|
+
I(
|
|
34
|
+
() => u(Object.keys(i.value ?? {})[0] ?? null)
|
|
40
35
|
);
|
|
41
36
|
const B = (e) => !(e != null && e.type), L = (e) => e.type.toLowerCase() === "apikey", g = (e) => e.type === "http" && e.scheme.toLowerCase() === "basic" || e.type.toLowerCase() === "basic", k = (e) => e.type === "http" && e.scheme.toLowerCase() === "bearer", N = (e) => e.type.toLowerCase() === "oauth2", a = (e, t) => `${V(e)} (${t})`, V = (e) => {
|
|
42
37
|
var t, r;
|
|
43
38
|
return B(e) ? "No Authentication" : L(e) ? "API Key" : g(e) ? "Basic Authentication" : k(e) ? "Bearer Authentication" : N(e) ? (t = e.flows) != null && t.implicit ? "OAuth 2.0 Implicit" : (r = e.flows) != null && r.password ? "OAuth 2.0 Password" : "OAuth 2.0" : `${e.type} (not yet supported)`;
|
|
44
|
-
}, n = l(() => Object.keys(
|
|
39
|
+
}, n = l(() => Object.keys(i.value ?? {})), d = l(
|
|
45
40
|
() => n.value.map((e) => {
|
|
46
41
|
var t;
|
|
47
42
|
return {
|
|
48
43
|
id: e,
|
|
49
|
-
label: a((t =
|
|
44
|
+
label: a((t = i.value) == null ? void 0 : t[e], e)
|
|
50
45
|
};
|
|
51
46
|
})
|
|
52
47
|
), h = l({
|
|
@@ -56,11 +51,11 @@ const q = {
|
|
|
56
51
|
(t) => t.id === c.preferredSecurityScheme
|
|
57
52
|
);
|
|
58
53
|
},
|
|
59
|
-
set: (e) =>
|
|
54
|
+
set: (e) => u((e == null ? void 0 : e.id) ?? "")
|
|
60
55
|
});
|
|
61
56
|
return (e, t) => {
|
|
62
57
|
var r;
|
|
63
|
-
return n.value.length === 1 ? (S(),
|
|
58
|
+
return n.value.length === 1 ? (S(), K("div", W, m(a((r = e.value) == null ? void 0 : r[n.value[0]], n.value[0])), 1)) : n.value.length > 1 ? (S(), P(s(E), {
|
|
64
59
|
key: 1,
|
|
65
60
|
modelValue: h.value,
|
|
66
61
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => h.value = o),
|
|
@@ -69,7 +64,7 @@ const q = {
|
|
|
69
64
|
resize: ""
|
|
70
65
|
}, {
|
|
71
66
|
default: v(() => [
|
|
72
|
-
b(s(
|
|
67
|
+
b(s(H), {
|
|
73
68
|
class: "security-scheme-button",
|
|
74
69
|
fullWidth: "",
|
|
75
70
|
variant: "ghost"
|
|
@@ -77,12 +72,12 @@ const q = {
|
|
|
77
72
|
default: v(() => {
|
|
78
73
|
var o;
|
|
79
74
|
return [
|
|
80
|
-
t[1] || (t[1] =
|
|
81
|
-
|
|
75
|
+
t[1] || (t[1] = U("span", { class: "sr-only" }, "Selected:", -1)),
|
|
76
|
+
$(" " + m(s(c).preferredSecurityScheme ? a(
|
|
82
77
|
(o = e.value) == null ? void 0 : o[s(c).preferredSecurityScheme],
|
|
83
78
|
s(c).preferredSecurityScheme
|
|
84
79
|
) : "No Authentication") + " ", 1),
|
|
85
|
-
b(s(
|
|
80
|
+
b(s(M), {
|
|
86
81
|
icon: "ChevronDown",
|
|
87
82
|
size: "xs"
|
|
88
83
|
})
|
|
@@ -92,10 +87,10 @@ const q = {
|
|
|
92
87
|
})
|
|
93
88
|
]),
|
|
94
89
|
_: 1
|
|
95
|
-
}, 8, ["modelValue", "options"])) :
|
|
90
|
+
}, 8, ["modelValue", "options"])) : D("", !0);
|
|
96
91
|
};
|
|
97
92
|
}
|
|
98
93
|
});
|
|
99
94
|
export {
|
|
100
|
-
|
|
95
|
+
R as default
|
|
101
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOpenApiStore.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/useOpenApiStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGhE,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAA;IACxC,cAAc,EACV,SAAS,CAAC,yBAAyB,EAAE,GACrC,WAAW,CAAC,yBAAyB,EAAE,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,uBAAuB,QAAO,YAGzC,CAAA;AAoBF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useOpenApiStore.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/useOpenApiStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGhE,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAA;IACxC,cAAc,EACV,SAAS,CAAC,yBAAyB,EAAE,GACrC,WAAW,CAAC,yBAAyB,EAAE,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,uBAAuB,QAAO,YAGzC,CAAA;AAoBF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAKk1L,UAAW,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAhC54L,SAAS,CAAC,yBAAyB,EAAE,GACrC,WAAW,CAAC,yBAAyB,EAAE;;iCAUT,oBAAoB,GAAG,SAAS;2CAQ/C,WAAW,CAAC,yBAAyB,EAAE,GAAG,SAAS;CAYtE,CAAA"}
|