@scalar/api-reference 1.25.25 → 1.25.27
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 +36 -0
- package/dist/browser/standalone.js +10747 -10739
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.js +30 -18
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +48 -48
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +22 -35
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +5 -5
- 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 +40 -37
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +4 -4
- 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 +17 -17
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.js +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue2.js +15 -18
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +1 -1
- package/dist/legacy/components/SecurityScheme.vue2.js +59 -59
- package/dist/style.css +1 -1
- package/package.json +12 -11
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, computed as n, openBlock as r, createElementBlock as v, createVNode as u, unref as l, withCtx as i, normalizeClass as V, createElementVNode as _, renderSlot as S, createBlock as h, createCommentVNode as g } from "vue";
|
|
2
2
|
import { ScalarListbox as C, ScalarButton as k, ScalarIcon as x } from "@scalar/components";
|
|
3
|
-
const B = { class: "w-full" }, w = { class: "custom-scroll" }, b = /* @__PURE__ */
|
|
3
|
+
const B = { class: "w-full" }, w = { class: "custom-scroll" }, b = /* @__PURE__ */ f({
|
|
4
4
|
__name: "ServerUrlSelect",
|
|
5
5
|
props: {
|
|
6
6
|
options: {},
|
|
7
|
-
|
|
7
|
+
modelValue: {}
|
|
8
8
|
},
|
|
9
|
-
emits: ["
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
() =>
|
|
9
|
+
emits: ["update:modelValue"],
|
|
10
|
+
setup(d, { emit: c }) {
|
|
11
|
+
const a = d, m = c, o = n(
|
|
12
|
+
() => a.options.map((e, t) => ({
|
|
13
13
|
id: t.toString(),
|
|
14
14
|
label: e.url ?? ""
|
|
15
15
|
}))
|
|
16
|
-
), s =
|
|
16
|
+
), s = n({
|
|
17
17
|
get: () => {
|
|
18
18
|
var e;
|
|
19
|
-
return (e = o.value) == null ? void 0 : e.find((t) => t.id ===
|
|
19
|
+
return (e = o.value) == null ? void 0 : e.find((t) => t.id === a.modelValue.toString());
|
|
20
20
|
},
|
|
21
|
-
set: (e) => m("
|
|
21
|
+
set: (e) => m("update:modelValue", parseInt((e == null ? void 0 : e.id) ?? "", 10))
|
|
22
22
|
});
|
|
23
|
-
return (e, t) => (r(),
|
|
24
|
-
|
|
23
|
+
return (e, t) => (r(), v("div", B, [
|
|
24
|
+
u(l(C), {
|
|
25
25
|
modelValue: s.value,
|
|
26
26
|
"onUpdate:modelValue": t[0] || (t[0] = (p) => s.value = p),
|
|
27
27
|
options: o.value,
|
|
28
28
|
resize: ""
|
|
29
29
|
}, {
|
|
30
30
|
default: i(() => [
|
|
31
|
-
|
|
32
|
-
class:
|
|
31
|
+
u(l(k), {
|
|
32
|
+
class: V(["url-select", { "pointer-events-none": o.value.length <= 1 }]),
|
|
33
33
|
fullWidth: "",
|
|
34
34
|
variant: "ghost"
|
|
35
35
|
}, {
|
|
36
36
|
default: i(() => [
|
|
37
37
|
_("span", w, [
|
|
38
|
-
|
|
38
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
39
39
|
]),
|
|
40
|
-
o.value.length > 1 ? (r(),
|
|
40
|
+
o.value.length > 1 ? (r(), h(l(x), {
|
|
41
41
|
key: 0,
|
|
42
42
|
icon: "ChevronDown",
|
|
43
43
|
size: "xs"
|
|
44
|
-
})) :
|
|
44
|
+
})) : g("", !0)
|
|
45
45
|
]),
|
|
46
46
|
_: 3
|
|
47
47
|
}, 8, ["class"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ExampleRequest.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e225631"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponse.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponse.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;;cAKxC,OAAO,CAAC,cAAc;;cAAtB,OAAO,CAAC,cAAc;;AAoGlC,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 "./ExampleResponse.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-076c28f6"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as l, openBlock as o, createBlock as p, unref as n, createElementBlock as c } from "vue";
|
|
2
2
|
import { ScalarCodeBlock as m } from "@scalar/components";
|
|
3
|
-
import { prettyPrintJson as l } from "@scalar/oas-utils/helpers";
|
|
4
3
|
import { getExampleFromSchema as d } from "@scalar/oas-utils/spec-getters";
|
|
5
|
-
const
|
|
4
|
+
const i = {
|
|
6
5
|
key: 2,
|
|
7
6
|
class: "empty-state"
|
|
8
|
-
},
|
|
7
|
+
}, _ = /* @__PURE__ */ l({
|
|
9
8
|
__name: "ExampleResponse",
|
|
10
9
|
props: {
|
|
11
10
|
response: {}
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (
|
|
15
|
-
var s, t, r,
|
|
16
|
-
return (s =
|
|
12
|
+
setup(f) {
|
|
13
|
+
return (e, k) => {
|
|
14
|
+
var s, t, r, a;
|
|
15
|
+
return (s = e.response) != null && s.example ? (o(), p(n(m), {
|
|
17
16
|
key: 0,
|
|
18
17
|
class: "bg-b-2",
|
|
19
|
-
content:
|
|
18
|
+
content: (t = e.response) == null ? void 0 : t.example,
|
|
20
19
|
lang: "json"
|
|
21
|
-
}, null, 8, ["content"])) : (r =
|
|
20
|
+
}, null, 8, ["content"])) : (r = e.response) != null && r.schema ? (o(), p(n(m), {
|
|
22
21
|
key: 1,
|
|
23
22
|
class: "bg-b-2",
|
|
24
|
-
content:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
})
|
|
29
|
-
),
|
|
23
|
+
content: n(d)((a = e.response) == null ? void 0 : a.schema, {
|
|
24
|
+
emptyString: "…",
|
|
25
|
+
mode: "read"
|
|
26
|
+
}),
|
|
30
27
|
lang: "json"
|
|
31
|
-
}, null, 8, ["content"])) : (
|
|
28
|
+
}, null, 8, ["content"])) : (o(), c("div", i, " No Body "));
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
31
|
});
|
|
35
32
|
export {
|
|
36
|
-
|
|
33
|
+
_ as default
|
|
37
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ExampleResponses.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2dae81fd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ import q from "../../components/Card/CardContent.vue.js";
|
|
|
9
9
|
import G from "../../components/Card/CardFooter.vue.js";
|
|
10
10
|
import Q from "../ExampleRequest/ExamplePicker.vue.js";
|
|
11
11
|
import { useClipboard as X } from "../../hooks/useClipboard.js";
|
|
12
|
-
const Y = (u) => (A("data-v-
|
|
12
|
+
const Y = (u) => (A("data-v-2dae81fd"), u = u(), D(), u), Z = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "scalar-card-checkbox"
|
|
15
15
|
}, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ E("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {
|