@scalar/api-reference 1.24.35 → 1.24.37
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 +24 -0
- package/dist/browser/standalone.js +7192 -6870
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -3
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.js +2 -2
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Description.vue.js +2 -2
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +2 -2
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +8 -5
- package/dist/components/Content/Schema/Schema.vue2.js +4 -4
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
- package/dist/components/GettingStarted.vue.d.ts +4 -5
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +4 -4
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -138
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type ThemeId } from '@scalar/themes';
|
|
2
1
|
import type { ReferenceLayoutProps, ReferenceSlotProps } from '../types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Omit<ReferenceLayoutProps, "isDark">>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
3
|
changeTheme: (args_0: {
|
|
5
|
-
id:
|
|
4
|
+
id: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
6
5
|
label: string;
|
|
7
6
|
}) => void;
|
|
8
7
|
updateContent: (value: string) => void;
|
|
@@ -11,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
10
|
toggleDarkMode: () => void;
|
|
12
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Omit<ReferenceLayoutProps, "isDark">>>> & {
|
|
13
12
|
onChangeTheme?: ((args_0: {
|
|
14
|
-
id:
|
|
13
|
+
id: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
15
14
|
label: string;
|
|
16
15
|
}) => any) | undefined;
|
|
17
16
|
onUpdateContent?: ((value: string) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAqjBA,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8gBjB,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 "./CardHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ef7873bc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":";;;;;AA6SA,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 "./Description.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61b651b9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PathResponses.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-93ecf383"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -9,7 +9,7 @@ import q from "../../../Card/CardContent.vue.js";
|
|
|
9
9
|
import G from "../../../Card/CardFooter.vue.js";
|
|
10
10
|
import Q from "../../../../features/ExampleRequest/ExamplePicker.vue.js";
|
|
11
11
|
import { useClipboard as X } from "../../../../hooks/useClipboard.js";
|
|
12
|
-
const Y = (u) => (P("data-v-
|
|
12
|
+
const Y = (u) => (P("data-v-93ecf383"), u = u(), A(), u), Z = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "scalar-card-checkbox"
|
|
15
15
|
}, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ w("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {
|
|
@@ -80,7 +80,7 @@ const Y = (u) => (P("data-v-ee2bb75a"), u = u(), A(), u), Z = {
|
|
|
80
80
|
}, [
|
|
81
81
|
b(s(D), {
|
|
82
82
|
icon: "Clipboard",
|
|
83
|
-
width: "
|
|
83
|
+
width: "12px",
|
|
84
84
|
x: "asd"
|
|
85
85
|
})
|
|
86
86
|
])) : f("", !0),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./TestRequestButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-be8a64ac"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as r, createElementBlock as
|
|
1
|
+
import { defineComponent as n, openBlock as r, createElementBlock as s, withModifiers as a, unref as p, createVNode as i, pushScopeId as c, popScopeId as m, createElementVNode as d } from "vue";
|
|
2
2
|
import { ScalarIcon as u } from "@scalar/components";
|
|
3
3
|
import { apiClientBus as l } from "../../api-client-bus.js";
|
|
4
|
-
const h = (e) => (c("data-v-
|
|
4
|
+
const h = (e) => (c("data-v-be8a64ac"), e = e(), m(), e), f = ["method"], _ = /* @__PURE__ */ h(() => /* @__PURE__ */ d("span", null, "Test Request", -1)), V = /* @__PURE__ */ n({
|
|
5
5
|
__name: "TestRequestButton",
|
|
6
6
|
props: {
|
|
7
7
|
operation: {}
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
return (t, o) => (r(),
|
|
10
|
+
return (t, o) => (r(), s("button", {
|
|
11
11
|
class: "show-api-client-button",
|
|
12
12
|
method: t.operation.httpVerb,
|
|
13
13
|
type: "button",
|
|
14
|
-
onClick: o[0] || (o[0] =
|
|
14
|
+
onClick: o[0] || (o[0] = a((b) => p(l).emit({
|
|
15
15
|
open: {
|
|
16
16
|
path: t.operation.path,
|
|
17
17
|
method: t.operation.httpVerb
|
|
18
18
|
}
|
|
19
19
|
}), ["stop"]))
|
|
20
20
|
}, [
|
|
21
|
-
|
|
21
|
+
i(p(u), {
|
|
22
|
+
icon: "Play",
|
|
23
|
+
size: "sm"
|
|
24
|
+
}),
|
|
22
25
|
_
|
|
23
26
|
], 8, f));
|
|
24
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, computed as
|
|
1
|
+
import { defineComponent as j, computed as D, openBlock as l, createBlock as i, unref as p, withCtx as y, createElementVNode as k, normalizeClass as d, createElementBlock as a, createVNode as v, createCommentVNode as r, withDirectives as O, normalizeStyle as q, Fragment as t, createTextVNode as C, toDisplayString as P, vShow as z, renderList as I, pushScopeId as N, popScopeId as V } from "vue";
|
|
2
2
|
import { Disclosure as A, DisclosureButton as E, DisclosurePanel as H } from "@headlessui/vue";
|
|
3
3
|
import { ScalarMarkdown as T, ScalarIcon as $ } from "@scalar/components";
|
|
4
4
|
import F from "./SchemaHeading.vue.js";
|
|
@@ -14,14 +14,14 @@ const L = (s) => (N("data-v-25443e6c"), s = s(), V(), s), M = {
|
|
|
14
14
|
], Y = /* @__PURE__ */ j({
|
|
15
15
|
__name: "Schema",
|
|
16
16
|
props: {
|
|
17
|
-
value: {
|
|
17
|
+
value: {},
|
|
18
18
|
level: { default: 0 },
|
|
19
19
|
name: {},
|
|
20
20
|
compact: { type: Boolean },
|
|
21
21
|
noncollapsible: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
setup(s) {
|
|
24
|
-
const h = s, f =
|
|
24
|
+
const h = s, f = D(() => !(h.noncollapsible || h.level === 0)), B = (e) => h.noncollapsible && e.stopPropagation();
|
|
25
25
|
return (e, J) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(p(A), {
|
|
26
26
|
key: 0,
|
|
27
27
|
defaultOpen: e.noncollapsible
|
|
@@ -43,7 +43,7 @@ const L = (s) => (N("data-v-25443e6c"), s = s(), V(), s), M = {
|
|
|
43
43
|
k("div", {
|
|
44
44
|
class: d(["schema-properties", { "schema-properties-open": n }])
|
|
45
45
|
}, [
|
|
46
|
-
|
|
46
|
+
O(v(p(E), {
|
|
47
47
|
as: e.noncollapsible ? "div" : "button",
|
|
48
48
|
class: d(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
49
49
|
style: q({
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as v, openBlock as a, createElementBlock as t, createElementVNode as k, Fragment as n, createTextVNode as
|
|
1
|
+
import { defineComponent as v, openBlock as a, createElementBlock as t, createElementVNode as k, Fragment as n, createTextVNode as l, createCommentVNode as o, toDisplayString as r } from "vue";
|
|
2
2
|
const d = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "schema-type"
|
|
5
5
|
}, c = ["title"], j = /* @__PURE__ */ v({
|
|
6
6
|
__name: "SchemaHeading",
|
|
7
7
|
props: {
|
|
8
|
-
value: {
|
|
8
|
+
value: {},
|
|
9
9
|
name: {}
|
|
10
10
|
},
|
|
11
11
|
setup(f) {
|
|
12
12
|
return (e, h) => {
|
|
13
|
-
var
|
|
13
|
+
var u, m, p, y, s, i;
|
|
14
14
|
return typeof e.value == "object" ? (a(), t("span", d, [
|
|
15
15
|
k("span", {
|
|
16
16
|
class: "schema-type-icon",
|
|
17
17
|
title: typeof e.value.type == "string" ? e.value.type : Array.isArray(e.value.type) ? e.value.type.join(" | ") : "unkown type"
|
|
18
18
|
}, [
|
|
19
19
|
e.value.type === "object" ? (a(), t(n, { key: 0 }, [
|
|
20
|
-
|
|
21
|
-
], 64)) :
|
|
20
|
+
l(" {} ")
|
|
21
|
+
], 64)) : o("", !0),
|
|
22
22
|
e.value.type === "array" ? (a(), t(n, { key: 1 }, [
|
|
23
|
-
|
|
24
|
-
], 64)) :
|
|
23
|
+
l(" [] ")
|
|
24
|
+
], 64)) : o("", !0),
|
|
25
25
|
e.value.enum ? (a(), t(n, { key: 2 }, [
|
|
26
|
-
|
|
27
|
-
], 64)) :
|
|
26
|
+
l(" enum ")
|
|
27
|
+
], 64)) : o("", !0)
|
|
28
28
|
], 8, c),
|
|
29
|
-
(
|
|
30
|
-
|
|
29
|
+
(m = (u = e.value) == null ? void 0 : u.xml) != null && m.name && ((y = (p = e.value) == null ? void 0 : p.xml) == null ? void 0 : y.name) !== "##default" ? (a(), t(n, { key: 0 }, [
|
|
30
|
+
l(" <" + r((i = (s = e.value) == null ? void 0 : s.xml) == null ? void 0 : i.name) + " /> ", 1)
|
|
31
31
|
], 64)) : e.name ? (a(), t(n, { key: 1 }, [
|
|
32
|
-
|
|
32
|
+
l(r(e.name), 1)
|
|
33
33
|
], 64)) : (a(), t(n, { key: 2 }, [
|
|
34
|
-
|
|
34
|
+
l(r(e.value.type), 1)
|
|
35
35
|
], 64))
|
|
36
|
-
])) :
|
|
36
|
+
])) : o("", !0);
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
});
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { type ThemeId } from '@scalar/themes';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
theme:
|
|
2
|
+
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
4
3
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
4
|
changeTheme: (args_0: {
|
|
6
|
-
id:
|
|
5
|
+
id: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
7
6
|
label: string;
|
|
8
7
|
}) => void;
|
|
9
8
|
loadSwaggerFile: () => void;
|
|
10
9
|
linkSwaggerFile: () => void;
|
|
11
10
|
updateContent: (value: string) => void;
|
|
12
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
-
theme:
|
|
12
|
+
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
14
13
|
}>>> & {
|
|
15
14
|
onChangeTheme?: ((args_0: {
|
|
16
|
-
id:
|
|
15
|
+
id: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
17
16
|
label: string;
|
|
18
17
|
}) => any) | undefined;
|
|
19
18
|
onUpdateContent?: ((value: string) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAquBA,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AAmXA,OAAO,KAAK,EACV,oBAAoB,EAGpB,oBAAoB,EACrB,MAAM,mBAAmB,CAAA;;;;;;;;;;;AAgf1B,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
|
-
import
|
|
1
|
+
import e from "./ExampleRequest.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-eedd3e3e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|