@scalar/api-reference 1.25.66 → 1.25.68
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 +42 -0
- package/dist/browser/standalone.js +14512 -14576
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +21 -21
- 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 +3 -3
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +7 -10
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +16 -16
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +25 -22
- package/dist/features/ApiClientModal/useApiClient.d.ts +1345 -2467
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +71 -70
- package/dist/index.js +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +25 -30
- package/dist/legacy/stores/index.d.ts +1 -0
- package/dist/legacy/stores/index.d.ts.map +1 -1
- package/dist/legacy/stores/useExampleStore.d.ts +5 -0
- package/dist/legacy/stores/useExampleStore.d.ts.map +1 -0
- package/dist/legacy/stores/useExampleStore.js +8 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as b, watch as u, computed as c, toRef as m, openBlock as C, createElementBlock as A, Fragment as B, createBlock as E, resolveDynamicComponent as H, withCtx as
|
|
1
|
+
import { defineComponent as b, watch as u, computed as c, toRef as m, openBlock as C, createElementBlock as A, Fragment as B, createBlock as E, resolveDynamicComponent as H, withCtx as d, createTextVNode as N, toDisplayString as R, createCommentVNode as V, createVNode as _, unref as i, renderSlot as g } from "vue";
|
|
2
2
|
import { migrateThemeVariables as F } from "@scalar/themes";
|
|
3
|
-
import { useColorMode as
|
|
4
|
-
import { useSeoMeta as
|
|
5
|
-
import { useFavicon as
|
|
6
|
-
import { useReactiveSpec as
|
|
7
|
-
import
|
|
8
|
-
import { useHttpClientStore as
|
|
9
|
-
import { useAuthenticationStore as
|
|
3
|
+
import { useColorMode as L } from "@scalar/use-hooks/useColorMode";
|
|
4
|
+
import { useSeoMeta as U } from "@unhead/vue";
|
|
5
|
+
import { useFavicon as j } from "@vueuse/core";
|
|
6
|
+
import { useReactiveSpec as q } from "../hooks/useReactiveSpec.js";
|
|
7
|
+
import z from "./Layouts/Layouts.vue.js";
|
|
8
|
+
import { useHttpClientStore as G } from "../stores/useHttpClientStore.js";
|
|
9
|
+
import { useAuthenticationStore as I } from "../legacy/stores/useAuthenticationStore.js";
|
|
10
10
|
const ee = /* @__PURE__ */ b({
|
|
11
11
|
__name: "ApiReference",
|
|
12
12
|
props: {
|
|
@@ -14,9 +14,9 @@ const ee = /* @__PURE__ */ b({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["updateContent"],
|
|
16
16
|
setup(v) {
|
|
17
|
-
var
|
|
18
|
-
const n = v, { setColorMode: S, toggleColorMode: k,
|
|
19
|
-
initialColorMode: (
|
|
17
|
+
var l, f, p;
|
|
18
|
+
const n = v, { setColorMode: S, toggleColorMode: k, darkLightMode: M } = L({
|
|
19
|
+
initialColorMode: (l = n.configuration) != null && l.darkMode ? "dark" : void 0,
|
|
20
20
|
overrideColorMode: (f = n.configuration) == null ? void 0 : f.forceDarkModeState
|
|
21
21
|
});
|
|
22
22
|
u(
|
|
@@ -48,7 +48,7 @@ const ee = /* @__PURE__ */ b({
|
|
|
48
48
|
customCss: a.value
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
|
-
(p = o.value) != null && p.metaData &&
|
|
51
|
+
(p = o.value) != null && p.metaData && U(o.value.metaData);
|
|
52
52
|
function s(e, t) {
|
|
53
53
|
u(
|
|
54
54
|
() => {
|
|
@@ -61,24 +61,24 @@ const ee = /* @__PURE__ */ b({
|
|
|
61
61
|
{ immediate: !0 }
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
|
-
const { setAuthentication: D } =
|
|
64
|
+
const { setAuthentication: D } = I();
|
|
65
65
|
s("authentication", D);
|
|
66
|
-
const { setExcludedClients:
|
|
67
|
-
s("defaultHttpClient",
|
|
68
|
-
const { parsedSpec: w, rawSpec: x } =
|
|
66
|
+
const { setExcludedClients: h, setDefaultHttpClient: y } = G();
|
|
67
|
+
s("defaultHttpClient", y), s("hiddenClients", h);
|
|
68
|
+
const { parsedSpec: w, rawSpec: x } = q({
|
|
69
69
|
proxy: m(() => o.value.proxy || ""),
|
|
70
70
|
specConfig: m(() => o.value.spec || {})
|
|
71
71
|
}), T = c(() => o.value.favicon);
|
|
72
|
-
return
|
|
72
|
+
return j(T), (e, t) => {
|
|
73
73
|
var r;
|
|
74
74
|
return C(), A(B, null, [
|
|
75
75
|
(r = o.value) != null && r.customCss ? (C(), E(H("style"), { key: 0 }, {
|
|
76
|
-
default:
|
|
76
|
+
default: d(() => [
|
|
77
77
|
N(R(o.value.customCss), 1)
|
|
78
78
|
]),
|
|
79
79
|
_: 1
|
|
80
80
|
})) : V("", !0),
|
|
81
|
-
_(i(
|
|
81
|
+
_(i(z), {
|
|
82
82
|
configuration: o.value,
|
|
83
83
|
isDark: i(M) === "dark",
|
|
84
84
|
parsedSpec: i(w),
|
|
@@ -86,10 +86,10 @@ const ee = /* @__PURE__ */ b({
|
|
|
86
86
|
onToggleDarkMode: t[0] || (t[0] = () => i(k)()),
|
|
87
87
|
onUpdateContent: t[1] || (t[1] = ($) => e.$emit("updateContent", $))
|
|
88
88
|
}, {
|
|
89
|
-
footer:
|
|
89
|
+
footer: d(() => [
|
|
90
90
|
g(e.$slots, "footer")
|
|
91
91
|
]),
|
|
92
|
-
"content-end":
|
|
92
|
+
"content-end": d(() => [
|
|
93
93
|
g(e.$slots, "footer")
|
|
94
94
|
]),
|
|
95
95
|
_: 3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBxD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAChC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAcF,iBAAS,cAAc;WA6LT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8991912b"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, computed as L, openBlock as
|
|
1
|
+
import { defineComponent as M, computed as L, openBlock as s, createElementBlock as o, Fragment as t, createStaticVNode as N, createElementVNode as b, renderSlot as p, createVNode as i, unref as r, createBlock as a, withCtx as U, normalizeClass as V, renderList as B, createCommentVNode as n } from "vue";
|
|
2
2
|
import A from "./Lazy/Loading.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import E from "./Introduction/Introduction.vue.js";
|
|
@@ -12,7 +12,7 @@ import W from "./Models/Models.vue.js";
|
|
|
12
12
|
import { useSidebar as j } from "../../hooks/useSidebar.js";
|
|
13
13
|
import { hasModels as q } from "../../helpers/hasModels.js";
|
|
14
14
|
import { getModels as h } from "../../helpers/getModels.js";
|
|
15
|
-
const D = { class: "narrow-references-container" },
|
|
15
|
+
const D = { class: "narrow-references-container" }, se = /* @__PURE__ */ M({
|
|
16
16
|
__name: "Content",
|
|
17
17
|
props: {
|
|
18
18
|
parsedSpec: {},
|
|
@@ -27,15 +27,15 @@ const D = { class: "narrow-references-container" }, re = /* @__PURE__ */ M({
|
|
|
27
27
|
);
|
|
28
28
|
return (e, c) => {
|
|
29
29
|
var m, u, f, v;
|
|
30
|
-
return
|
|
31
|
-
c[0] || (c[0] = N('<div class="section-flare" data-v-
|
|
30
|
+
return s(), o(t, null, [
|
|
31
|
+
c[0] || (c[0] = N('<div class="section-flare" data-v-8991912b><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div><div class="section-flare-item" data-v-8991912b></div></div>', 1)),
|
|
32
32
|
b("div", D, [
|
|
33
33
|
p(e.$slots, "start", {}, void 0, !0),
|
|
34
|
-
i(
|
|
34
|
+
i(r(A), {
|
|
35
35
|
layout: e.layout,
|
|
36
36
|
parsedSpec: e.parsedSpec
|
|
37
37
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
38
|
-
(u = (m = e.parsedSpec) == null ? void 0 : m.info) != null && u.title || (v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.description ? (
|
|
38
|
+
(u = (m = e.parsedSpec) == null ? void 0 : m.info) != null && u.title || (v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.description ? (s(), a(r(E), {
|
|
39
39
|
key: 0,
|
|
40
40
|
info: e.parsedSpec.info,
|
|
41
41
|
parsedSpec: e.parsedSpec
|
|
@@ -44,24 +44,24 @@ const D = { class: "narrow-references-container" }, re = /* @__PURE__ */ M({
|
|
|
44
44
|
b("div", {
|
|
45
45
|
class: V(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
|
|
46
46
|
}, [
|
|
47
|
-
i(
|
|
47
|
+
i(r(R), {
|
|
48
48
|
class: "introduction-card-item",
|
|
49
49
|
defaultServerUrl: e.baseServerURL,
|
|
50
50
|
servers: l.servers,
|
|
51
51
|
specification: e.parsedSpec
|
|
52
52
|
}, null, 8, ["defaultServerUrl", "servers", "specification"]),
|
|
53
|
-
i(
|
|
53
|
+
i(r(z), {
|
|
54
54
|
class: "introduction-card-item",
|
|
55
55
|
parsedSpec: e.parsedSpec,
|
|
56
56
|
proxy: e.proxy
|
|
57
57
|
}, null, 8, ["parsedSpec", "proxy"]),
|
|
58
|
-
i(
|
|
58
|
+
i(r(F), { class: "introduction-card-item" })
|
|
59
59
|
], 2)
|
|
60
60
|
]),
|
|
61
61
|
_: 2
|
|
62
62
|
}, 1032, ["info", "parsedSpec"])) : p(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
63
|
-
e.parsedSpec.tags ? (
|
|
64
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
63
|
+
e.parsedSpec.tags ? (s(), o(t, { key: 2 }, [
|
|
64
|
+
e.parsedSpec["x-tagGroups"] ? (s(!0), o(t, { key: 0 }, B(e.parsedSpec["x-tagGroups"], (S) => (s(), a(r(k), {
|
|
65
65
|
key: S.name,
|
|
66
66
|
layout: e.layout,
|
|
67
67
|
spec: e.parsedSpec,
|
|
@@ -69,24 +69,24 @@ const D = { class: "narrow-references-container" }, re = /* @__PURE__ */ M({
|
|
|
69
69
|
var y;
|
|
70
70
|
return (y = e.parsedSpec.tags) == null ? void 0 : y.find(($) => $.name === d);
|
|
71
71
|
}).filter((d) => !!d)
|
|
72
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (
|
|
72
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (s(), a(r(k), {
|
|
73
73
|
key: 1,
|
|
74
74
|
layout: e.layout,
|
|
75
75
|
spec: e.parsedSpec,
|
|
76
76
|
tags: e.parsedSpec.tags
|
|
77
77
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
78
78
|
], 64)) : n("", !0),
|
|
79
|
-
e.parsedSpec.webhooks ? (
|
|
79
|
+
e.parsedSpec.webhooks ? (s(), a(r(G), {
|
|
80
80
|
key: 3,
|
|
81
81
|
webhooks: e.parsedSpec.webhooks
|
|
82
82
|
}, null, 8, ["webhooks"])) : n("", !0),
|
|
83
|
-
|
|
84
|
-
e.layout === "accordion" ? (
|
|
83
|
+
r(q)(e.parsedSpec) && !r(w) ? (s(), o(t, { key: 4 }, [
|
|
84
|
+
e.layout === "accordion" ? (s(), a(r(I), {
|
|
85
85
|
key: 0,
|
|
86
|
-
schemas:
|
|
87
|
-
}, null, 8, ["schemas"])) : (
|
|
86
|
+
schemas: r(h)(e.parsedSpec)
|
|
87
|
+
}, null, 8, ["schemas"])) : (s(), a(r(W), {
|
|
88
88
|
key: 1,
|
|
89
|
-
schemas:
|
|
89
|
+
schemas: r(h)(e.parsedSpec)
|
|
90
90
|
}, null, 8, ["schemas"]))
|
|
91
91
|
], 64)) : n("", !0),
|
|
92
92
|
p(e.$slots, "end", {}, void 0, !0)
|
|
@@ -96,5 +96,5 @@ const D = { class: "narrow-references-container" }, re = /* @__PURE__ */ M({
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
se as default
|
|
100
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAyYA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AA0WrB,0BAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-555aa6ba"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAgNA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;AA0BJ,iBAAS,cAAc;WA0QT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAzTN,OAAO;wFAiUpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-67b44dbd"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -14,15 +14,12 @@ const C = { class: "property-heading" }, D = {
|
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "property-const"
|
|
16
16
|
}, E = {
|
|
17
|
-
key: 4,
|
|
18
|
-
class: "property-details"
|
|
19
|
-
}, F = {
|
|
20
17
|
key: 5,
|
|
21
18
|
class: "property-write-only"
|
|
22
|
-
},
|
|
19
|
+
}, F = {
|
|
23
20
|
key: 6,
|
|
24
21
|
class: "property-read-only"
|
|
25
|
-
},
|
|
22
|
+
}, H = {
|
|
26
23
|
key: 7,
|
|
27
24
|
class: "property-required"
|
|
28
25
|
}, K = /* @__PURE__ */ P({
|
|
@@ -33,7 +30,7 @@ const C = { class: "property-heading" }, D = {
|
|
|
33
30
|
required: { type: Boolean, default: !1 },
|
|
34
31
|
additional: { type: Boolean }
|
|
35
32
|
},
|
|
36
|
-
setup(
|
|
33
|
+
setup(T) {
|
|
37
34
|
const A = ["oneOf", "anyOf", "allOf", "not"], M = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
|
|
38
35
|
return (e, r) => {
|
|
39
36
|
var f, k, g, B, q, I, L;
|
|
@@ -66,7 +63,7 @@ const C = { class: "property-heading" }, D = {
|
|
|
66
63
|
]),
|
|
67
64
|
_: 1
|
|
68
65
|
})
|
|
69
|
-
])) : (q = e.value) != null && q.type ? (u(), n(
|
|
66
|
+
])) : (q = e.value) != null && q.type ? (u(), n(s, { key: 4 }, [
|
|
70
67
|
v(o, null, {
|
|
71
68
|
default: l(() => {
|
|
72
69
|
var m, p, y;
|
|
@@ -177,8 +174,8 @@ const C = { class: "property-heading" }, D = {
|
|
|
177
174
|
]),
|
|
178
175
|
_: 1
|
|
179
176
|
})) : t("", !0)
|
|
180
|
-
])) : t("", !0),
|
|
181
|
-
(I = e.value) != null && I.writeOnly ? (u(), n("div",
|
|
177
|
+
], 64)) : t("", !0),
|
|
178
|
+
(I = e.value) != null && I.writeOnly ? (u(), n("div", E, " write-only ")) : (L = e.value) != null && L.readOnly ? (u(), n("div", F, " read-only ")) : t("", !0),
|
|
182
179
|
(u(!0), n(s, null, V(A.filter((m) => {
|
|
183
180
|
var p, y, N;
|
|
184
181
|
return ((p = e.value) == null ? void 0 : p[m]) || ((N = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : N[m]);
|
|
@@ -188,7 +185,7 @@ const C = { class: "property-heading" }, D = {
|
|
|
188
185
|
]),
|
|
189
186
|
_: 2
|
|
190
187
|
}, 1024))), 128)),
|
|
191
|
-
e.required ? (u(), n("div",
|
|
188
|
+
e.required ? (u(), n("div", H, " required ")) : t("", !0)
|
|
192
189
|
]);
|
|
193
190
|
};
|
|
194
191
|
}
|
|
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3ef10b83"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
e as default
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as b, useSlots as
|
|
1
|
+
import { defineComponent as b, useSlots as v, watch as d, openBlock as i, createBlock as p, normalizeClass as D, createSlots as y, withCtx as s, unref as l, isRef as M, createCommentVNode as u, createElementBlock as C, createVNode as c, createElementVNode as w, renderList as B, renderSlot as N, normalizeProps as $, guardReactiveProps as H } from "vue";
|
|
2
2
|
import { OpenApiClientButton as K } from "@scalar/api-client/components";
|
|
3
|
-
import {
|
|
3
|
+
import { useBreakpoints as L } from "@scalar/use-hooks/useBreakpoints";
|
|
4
4
|
import R from "../ApiReferenceLayout.vue.js";
|
|
5
5
|
import T from "../MobileHeader.vue.js";
|
|
6
6
|
import V from "../../features/Search/SearchButton.vue.js";
|
|
@@ -20,15 +20,15 @@ const O = {
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["toggleDarkMode", "updateContent"],
|
|
22
22
|
setup(f) {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const a = f, m = v(), { mediaQueries: g } = L(), { isSidebarOpen: n } = A(), S = !1;
|
|
24
|
+
d(g.lg, (e, o) => {
|
|
25
|
+
o && !e && (n.value = !1);
|
|
26
26
|
});
|
|
27
27
|
const { hash: k } = E();
|
|
28
|
-
return
|
|
29
|
-
e && e !== o && (
|
|
28
|
+
return d(k, (e, o) => {
|
|
29
|
+
e && e !== o && (n.value = !1);
|
|
30
30
|
}), (e, o) => (i(), p(R, {
|
|
31
|
-
class:
|
|
31
|
+
class: D({
|
|
32
32
|
"scalar-api-references-standalone-mobile": e.configuration.showSidebar
|
|
33
33
|
}),
|
|
34
34
|
configuration: e.configuration,
|
|
@@ -37,18 +37,18 @@ const O = {
|
|
|
37
37
|
onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
|
|
38
38
|
}, y({
|
|
39
39
|
header: s(() => [
|
|
40
|
-
|
|
40
|
+
a.configuration.showSidebar ? (i(), p(T, {
|
|
41
41
|
key: 0,
|
|
42
|
-
open: l(
|
|
43
|
-
"onUpdate:open": o[0] || (o[0] = (r) =>
|
|
44
|
-
}, null, 8, ["open"])) :
|
|
42
|
+
open: l(n),
|
|
43
|
+
"onUpdate:open": o[0] || (o[0] = (r) => M(n) ? n.value = r : null)
|
|
44
|
+
}, null, 8, ["open"])) : u("", !0)
|
|
45
45
|
]),
|
|
46
46
|
"sidebar-start": s(({ spec: r }) => {
|
|
47
47
|
var t;
|
|
48
48
|
return [
|
|
49
|
-
|
|
49
|
+
a.configuration.hideSearch ? u("", !0) : (i(), C("div", O, [
|
|
50
50
|
c(l(V), {
|
|
51
|
-
searchHotKey: (t =
|
|
51
|
+
searchHotKey: (t = a.configuration) == null ? void 0 : t.searchHotKey,
|
|
52
52
|
spec: r
|
|
53
53
|
}, null, 8, ["searchHotKey", "spec"])
|
|
54
54
|
]))
|
|
@@ -57,14 +57,14 @@ const O = {
|
|
|
57
57
|
"sidebar-end": s(() => {
|
|
58
58
|
var r;
|
|
59
59
|
return [
|
|
60
|
-
|
|
60
|
+
w("div", P, [
|
|
61
61
|
c(l(K), {
|
|
62
62
|
buttonSource: "sidebar",
|
|
63
63
|
integration: e.configuration._integration,
|
|
64
64
|
isDevelopment: S,
|
|
65
65
|
url: (r = e.configuration.spec) == null ? void 0 : r.url
|
|
66
66
|
}, null, 8, ["integration", "url"]),
|
|
67
|
-
|
|
67
|
+
a.configuration.hideDarkModeToggle ? u("", !0) : (i(), p(l(z), {
|
|
68
68
|
key: 0,
|
|
69
69
|
isDarkMode: e.isDark,
|
|
70
70
|
onToggleDarkMode: o[1] || (o[1] = (t) => e.$emit("toggleDarkMode"))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AA6HA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,wBAAwB,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAUpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAI3D,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAA;YAC7B,wCAAwC;YACxC,YAAY,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;YACvC;;;eAGG;YACH,UAAU,EAAE,OAAO,UAAU,CAAA;SAC9B,GAAG,GAAG;;;;EA0FR;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAOlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AAsGF,wBAOG"}
|
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useApiClient as
|
|
3
|
-
import { useServerStore as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as m, ref as v, onMounted as d, watch as a, onBeforeUnmount as S, openBlock as x, createElementBlock as g } from "vue";
|
|
2
|
+
import { useApiClient as _ } from "./useApiClient.js";
|
|
3
|
+
import { useServerStore as C } from "../../legacy/stores/useServerStore.js";
|
|
4
|
+
import { useExampleStore as E } from "../../legacy/stores/useExampleStore.js";
|
|
5
|
+
import { getUrlFromServerState as U } from "../../legacy/helpers/getUrlFromServerState.js";
|
|
6
|
+
const I = /* @__PURE__ */ m({
|
|
6
7
|
__name: "ApiClientModal",
|
|
7
8
|
props: {
|
|
8
9
|
configuration: {}
|
|
9
10
|
},
|
|
10
11
|
setup(i) {
|
|
11
|
-
const
|
|
12
|
-
return
|
|
13
|
-
if (!
|
|
14
|
-
(await
|
|
15
|
-
el:
|
|
12
|
+
const n = v(null), { server: o, setServer: c } = C(), { client: t, init: s } = _(), { selectedExampleKey: f, operationId: l } = E();
|
|
13
|
+
return d(async () => {
|
|
14
|
+
if (!n.value) return;
|
|
15
|
+
(await s({
|
|
16
|
+
el: n.value,
|
|
16
17
|
configuration: i.configuration
|
|
17
18
|
})).onUpdateServer((r) => {
|
|
18
19
|
if (!o.servers) return;
|
|
19
|
-
const
|
|
20
|
-
|
|
20
|
+
const u = o.servers.findIndex((p) => p.url === r);
|
|
21
|
+
u >= 0 && c({ selectedServer: u });
|
|
21
22
|
});
|
|
22
|
-
}),
|
|
23
|
-
const { originalUrl: r } =
|
|
24
|
-
r &&
|
|
25
|
-
}),
|
|
23
|
+
}), a(o, (e) => {
|
|
24
|
+
const { originalUrl: r } = U(e);
|
|
25
|
+
r && t.value && t.value.updateServer(r);
|
|
26
|
+
}), a(
|
|
26
27
|
() => i.configuration,
|
|
27
28
|
(e) => {
|
|
28
29
|
var r;
|
|
29
|
-
return e && ((r =
|
|
30
|
+
return e && ((r = t.value) == null ? void 0 : r.updateConfig(e));
|
|
30
31
|
},
|
|
31
32
|
{ deep: !0 }
|
|
32
|
-
),
|
|
33
|
+
), a(f, (e) => {
|
|
34
|
+
t.value && e && l.value && t.value.updateExample(e, l.value);
|
|
35
|
+
}), S(() => {
|
|
33
36
|
var e;
|
|
34
|
-
return (e =
|
|
35
|
-
}), (e, r) => (
|
|
37
|
+
return (e = t.value) == null ? void 0 : e.app.unmount();
|
|
38
|
+
}), (e, r) => (x(), g("div", {
|
|
36
39
|
ref_key: "el",
|
|
37
|
-
ref:
|
|
40
|
+
ref: n
|
|
38
41
|
}, null, 512));
|
|
39
42
|
}
|
|
40
43
|
});
|
|
41
44
|
export {
|
|
42
|
-
|
|
45
|
+
I as default
|
|
43
46
|
};
|