@scalar/api-reference 1.29.3 → 1.31.0
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 +58 -0
- package/README.md +13 -114
- package/dist/browser/standalone.js +6525 -6416
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +164 -181
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +5 -5
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +46 -46
- package/dist/components/Content/Models/Models.vue.d.ts +2 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +7 -6
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.preview.d.ts +98 -56
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +6 -3
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue2.js +140 -97
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +13 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +49 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +4 -0
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -2
- 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/Content/Schema/SchemaProperty.vue2.js +40 -38
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
- 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 +147 -143
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +9 -1
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-discriminator.js +45 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.js +10 -8
- package/dist/components/Layouts/Layouts.vue.js +11 -9
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +27 -33
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
- package/dist/features/ApiClientModal/useApiClient.d.ts +224 -204
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
- package/dist/features/DocumentSource/index.d.ts +2 -0
- package/dist/features/DocumentSource/index.d.ts.map +1 -0
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
- package/dist/features/DownloadLink/index.d.ts +1 -0
- package/dist/features/DownloadLink/index.d.ts.map +1 -1
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
- package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
- package/dist/features/Operation/Operation.vue.d.ts +2 -2
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
- package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +14 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.js +7 -0
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +62 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +10 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +30 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +4 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +55 -55
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -79
- package/dist/features/Operation/types/schemas.d.ts +3 -0
- package/dist/features/Operation/types/schemas.d.ts.map +1 -0
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/helpers/local-storage.d.ts +8 -0
- package/dist/helpers/local-storage.d.ts.map +1 -0
- package/dist/helpers/local-storage.js +6 -0
- package/dist/helpers/measure.d.ts +21 -0
- package/dist/helpers/measure.d.ts.map +1 -0
- package/dist/helpers/measure.js +7 -0
- package/dist/helpers/parse.d.ts +3 -5
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +64 -86
- package/dist/helpers/scroll-to-id.d.ts.map +1 -1
- package/dist/helpers/scroll-to-id.js +18 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -35
- package/dist/libs/openapi.d.ts +3 -3
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +35 -42
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.js +15 -15
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +19 -18
- package/dist/style.css +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -16
- package/dist/hooks/useReactiveSpec.d.ts +0 -448
- package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
- package/dist/hooks/useReactiveSpec.js +0 -59
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import { defineComponent as z, computed as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import { stringify as g } from "flatted";
|
|
1
|
+
import { defineComponent as z, computed as g, createElementBlock as n, openBlock as a, createCommentVNode as i, createBlock as o, normalizeClass as H, renderSlot as E, Fragment as v, createTextVNode as u, withCtx as r, createVNode as p, toDisplayString as m, unref as N } from "vue";
|
|
2
|
+
import { isDefined as b } from "@scalar/oas-utils/helpers";
|
|
4
3
|
import { compositions as J } from "./helpers/schema-composition.js";
|
|
5
4
|
import R from "./SchemaPropertyExamples.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import B from "../../ScreenReader.vue.js";
|
|
6
|
+
import y from "./SchemaPropertyDetail.vue.js";
|
|
7
|
+
import L from "../../Badge/Badge.vue.js";
|
|
9
8
|
const W = { class: "property-heading" }, G = {
|
|
10
|
-
key:
|
|
11
|
-
class: "property-
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "property-discriminator"
|
|
12
11
|
}, K = {
|
|
13
12
|
key: 3,
|
|
14
|
-
class: "property-
|
|
13
|
+
class: "property-additional"
|
|
15
14
|
}, Q = {
|
|
16
15
|
key: 4,
|
|
17
|
-
class: "property-
|
|
16
|
+
class: "property-pattern"
|
|
18
17
|
}, U = {
|
|
19
18
|
key: 5,
|
|
20
|
-
class: "property-
|
|
19
|
+
class: "property-deprecated"
|
|
21
20
|
}, X = {
|
|
22
|
-
key:
|
|
23
|
-
class: "property-
|
|
21
|
+
key: 6,
|
|
22
|
+
class: "property-const"
|
|
24
23
|
}, Y = {
|
|
25
24
|
key: 8,
|
|
26
|
-
class: "property-
|
|
25
|
+
class: "property-write-only"
|
|
27
26
|
}, Z = {
|
|
28
27
|
key: 9,
|
|
28
|
+
class: "property-read-only"
|
|
29
|
+
}, h = {
|
|
30
|
+
key: 10,
|
|
29
31
|
class: "property-required"
|
|
30
32
|
}, ae = /* @__PURE__ */ z({
|
|
31
33
|
__name: "SchemaPropertyHeading",
|
|
@@ -36,249 +38,251 @@ const W = { class: "property-heading" }, G = {
|
|
|
36
38
|
additional: { type: Boolean },
|
|
37
39
|
pattern: { type: Boolean },
|
|
38
40
|
withExamples: { type: Boolean, default: !0 },
|
|
41
|
+
hideModelNames: { type: Boolean, default: !1 },
|
|
39
42
|
schemas: {}
|
|
40
43
|
},
|
|
41
|
-
setup(
|
|
42
|
-
J.find((e) => !
|
|
43
|
-
const
|
|
44
|
+
setup(l) {
|
|
45
|
+
J.find((e) => !l.value || typeof l.value != "object" ? !1 : e in l.value || l.value.items && typeof l.value.items == "object" && e in l.value.items);
|
|
46
|
+
const O = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, M = (e) => {
|
|
47
|
+
var t, f;
|
|
44
48
|
if (!e)
|
|
45
49
|
return null;
|
|
46
50
|
if (e.title)
|
|
47
51
|
return e.title;
|
|
48
52
|
if (e.name)
|
|
49
53
|
return e.name;
|
|
50
|
-
if (
|
|
51
|
-
for (const [
|
|
52
|
-
if (
|
|
53
|
-
return
|
|
54
|
-
if (e.type === "object" && e.properties) {
|
|
55
|
-
for (const [t, o] of Object.entries(u.schemas))
|
|
56
|
-
if (g(o.properties) === g(e.properties))
|
|
57
|
-
return t;
|
|
58
|
-
}
|
|
54
|
+
if (l.schemas && typeof l.schemas == "object") {
|
|
55
|
+
for (const [d, s] of Object.entries(l.schemas))
|
|
56
|
+
if (s.type === e.type && (e.type === "array" && ((t = s.items) == null ? void 0 : t.type) === ((f = e.items) == null ? void 0 : f.type) || e.type === "object" && s.properties && e.properties || e.type !== "array" && e.type !== "object"))
|
|
57
|
+
return d;
|
|
59
58
|
}
|
|
60
59
|
return null;
|
|
61
|
-
},
|
|
62
|
-
var e, t,
|
|
63
|
-
if (
|
|
64
|
-
return (t =
|
|
65
|
-
if (((
|
|
66
|
-
return
|
|
67
|
-
if ((
|
|
68
|
-
if (
|
|
69
|
-
return
|
|
70
|
-
if (((k =
|
|
71
|
-
return
|
|
60
|
+
}, $ = g(() => {
|
|
61
|
+
var e, t, f, d, s, k;
|
|
62
|
+
if (b((e = l.value) == null ? void 0 : e.const))
|
|
63
|
+
return (t = l.value) == null ? void 0 : t.const;
|
|
64
|
+
if (((d = (f = l.value) == null ? void 0 : f.enum) == null ? void 0 : d.length) === 1)
|
|
65
|
+
return l.value.enum[0];
|
|
66
|
+
if ((s = l.value) != null && s.items) {
|
|
67
|
+
if (b(l.value.items.const))
|
|
68
|
+
return l.value.items.const;
|
|
69
|
+
if (((k = l.value.items.enum) == null ? void 0 : k.length) === 1)
|
|
70
|
+
return l.value.items.enum[0];
|
|
72
71
|
}
|
|
73
72
|
return null;
|
|
74
|
-
}), T =
|
|
75
|
-
var e, t,
|
|
76
|
-
return Array.isArray((e =
|
|
77
|
-
}), F = (e, t) => e === "array" ? `${e} ${t}[]` : `${e} ${t}`,
|
|
78
|
-
var t,
|
|
79
|
-
if (!((t =
|
|
73
|
+
}), T = g(() => {
|
|
74
|
+
var e, t, f, d;
|
|
75
|
+
return Array.isArray((e = l.value) == null ? void 0 : e.type) ? l.value.type.join(" | ") : (t = l.value) != null && t.title ? l.value.title : (f = l.value) != null && f.name ? l.value.name : ((d = l.value) == null ? void 0 : d.type) ?? "";
|
|
76
|
+
}), F = (e, t) => e === "array" ? `${e} ${t}[]` : `${e} ${t}`, S = g(() => {
|
|
77
|
+
var t, f, d;
|
|
78
|
+
if (!((t = l.value) != null && t.type))
|
|
80
79
|
return null;
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
if (l.hideModelNames)
|
|
81
|
+
return l.value.type === "array" && ((f = l.value.items) != null && f.type) ? `array ${l.value.items.type}[]` : null;
|
|
82
|
+
const e = M(l.value);
|
|
83
|
+
if (e)
|
|
84
|
+
return l.value.type === "array" ? `array ${e}[]` : e;
|
|
85
|
+
if (l.value.type === "array" && ((d = l.value.items) != null && d.type)) {
|
|
86
|
+
const s = M(l.value.items) || l.value.items.type;
|
|
87
|
+
return F(l.value.type, s);
|
|
84
88
|
}
|
|
85
|
-
|
|
86
|
-
return e || null;
|
|
89
|
+
return null;
|
|
87
90
|
});
|
|
88
91
|
return (e, t) => {
|
|
89
|
-
var
|
|
90
|
-
return a(),
|
|
91
|
-
e.$slots.name ? (a(),
|
|
92
|
+
var f, d, s, k, j, q, w, D, P, V, I, A;
|
|
93
|
+
return a(), n("div", W, [
|
|
94
|
+
e.$slots.name ? (a(), n("div", {
|
|
92
95
|
key: 0,
|
|
93
|
-
class: H(["property-name", { deprecated: (
|
|
96
|
+
class: H(["property-name", { deprecated: (f = e.value) == null ? void 0 : f.deprecated }])
|
|
94
97
|
}, [
|
|
95
|
-
e.pattern ? (a(),
|
|
96
|
-
t[0] || (t[0] =
|
|
97
|
-
|
|
98
|
-
t[1] || (t[1] =
|
|
99
|
-
], 64)) :
|
|
100
|
-
], 2)) :
|
|
101
|
-
e.value ? (a(),
|
|
102
|
-
|
|
98
|
+
e.pattern ? (a(), n(v, { key: 1 }, [
|
|
99
|
+
t[0] || (t[0] = u("/")),
|
|
100
|
+
E(e.$slots, "name", {}, void 0, !0),
|
|
101
|
+
t[1] || (t[1] = u("/"))
|
|
102
|
+
], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
103
|
+
], 2)) : i("", !0),
|
|
104
|
+
(d = e.value) != null && d.isDiscriminator ? (a(), n("div", G, " Discriminator ")) : i("", !0),
|
|
105
|
+
e.value ? (a(), n(v, { key: 2 }, [
|
|
106
|
+
(s = e.value) != null && s.type ? (a(), o(y, { key: 0 }, {
|
|
103
107
|
default: r(() => {
|
|
104
108
|
var C;
|
|
105
109
|
return [
|
|
106
|
-
|
|
110
|
+
p(B, null, {
|
|
107
111
|
default: r(() => t[2] || (t[2] = [
|
|
108
|
-
|
|
112
|
+
u("Type:")
|
|
109
113
|
])),
|
|
110
114
|
_: 1
|
|
111
115
|
}),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
], 64)) : (a(),
|
|
115
|
-
|
|
116
|
+
S.value ? (a(), n(v, { key: 0 }, [
|
|
117
|
+
u(m(S.value), 1)
|
|
118
|
+
], 64)) : (a(), n(v, { key: 1 }, [
|
|
119
|
+
u(m(T.value) + " " + m((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
|
|
116
120
|
], 64))
|
|
117
121
|
];
|
|
118
122
|
}),
|
|
119
123
|
_: 1
|
|
120
|
-
})) :
|
|
121
|
-
e.value.minItems || e.value.maxItems ? (a(),
|
|
124
|
+
})) : i("", !0),
|
|
125
|
+
e.value.minItems || e.value.maxItems ? (a(), o(y, { key: 1 }, {
|
|
122
126
|
default: r(() => [
|
|
123
|
-
|
|
127
|
+
u(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
|
|
124
128
|
]),
|
|
125
129
|
_: 1
|
|
126
|
-
})) :
|
|
127
|
-
e.value.minLength ? (a(),
|
|
130
|
+
})) : i("", !0),
|
|
131
|
+
e.value.minLength ? (a(), o(y, { key: 2 }, {
|
|
128
132
|
prefix: r(() => t[3] || (t[3] = [
|
|
129
|
-
|
|
133
|
+
u("min:")
|
|
130
134
|
])),
|
|
131
135
|
default: r(() => [
|
|
132
|
-
|
|
136
|
+
u(" " + m(e.value.minLength), 1)
|
|
133
137
|
]),
|
|
134
138
|
_: 1
|
|
135
|
-
})) :
|
|
136
|
-
e.value.maxLength ? (a(),
|
|
139
|
+
})) : i("", !0),
|
|
140
|
+
e.value.maxLength ? (a(), o(y, { key: 3 }, {
|
|
137
141
|
prefix: r(() => t[4] || (t[4] = [
|
|
138
|
-
|
|
142
|
+
u("max:")
|
|
139
143
|
])),
|
|
140
144
|
default: r(() => [
|
|
141
|
-
|
|
145
|
+
u(" " + m(e.value.maxLength), 1)
|
|
142
146
|
]),
|
|
143
147
|
_: 1
|
|
144
|
-
})) :
|
|
145
|
-
e.value.uniqueItems ? (a(),
|
|
148
|
+
})) : i("", !0),
|
|
149
|
+
e.value.uniqueItems ? (a(), o(y, { key: 4 }, {
|
|
146
150
|
default: r(() => t[5] || (t[5] = [
|
|
147
|
-
|
|
151
|
+
u(" unique! ")
|
|
148
152
|
])),
|
|
149
153
|
_: 1
|
|
150
|
-
})) :
|
|
151
|
-
e.value.format ? (a(),
|
|
154
|
+
})) : i("", !0),
|
|
155
|
+
e.value.format ? (a(), o(y, { key: 5 }, {
|
|
152
156
|
default: r(() => [
|
|
153
|
-
|
|
157
|
+
p(B, null, {
|
|
154
158
|
default: r(() => t[6] || (t[6] = [
|
|
155
|
-
|
|
159
|
+
u("Format:")
|
|
156
160
|
])),
|
|
157
161
|
_: 1
|
|
158
162
|
}),
|
|
159
|
-
|
|
163
|
+
u(" " + m(e.value.format), 1)
|
|
160
164
|
]),
|
|
161
165
|
_: 1
|
|
162
|
-
})) :
|
|
163
|
-
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (a(),
|
|
166
|
+
})) : i("", !0),
|
|
167
|
+
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (a(), o(y, { key: 6 }, {
|
|
164
168
|
prefix: r(() => t[7] || (t[7] = [
|
|
165
|
-
|
|
169
|
+
u("greater than:")
|
|
166
170
|
])),
|
|
167
171
|
default: r(() => [
|
|
168
|
-
|
|
172
|
+
u(" " + m(e.value.minimum), 1)
|
|
169
173
|
]),
|
|
170
174
|
_: 1
|
|
171
|
-
})) :
|
|
172
|
-
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (a(),
|
|
175
|
+
})) : i("", !0),
|
|
176
|
+
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (a(), o(y, { key: 7 }, {
|
|
173
177
|
prefix: r(() => t[8] || (t[8] = [
|
|
174
|
-
|
|
178
|
+
u("min:")
|
|
175
179
|
])),
|
|
176
180
|
default: r(() => [
|
|
177
|
-
|
|
181
|
+
u(" " + m(e.value.minimum), 1)
|
|
178
182
|
]),
|
|
179
183
|
_: 1
|
|
180
|
-
})) :
|
|
181
|
-
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (a(),
|
|
184
|
+
})) : i("", !0),
|
|
185
|
+
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (a(), o(y, { key: 8 }, {
|
|
182
186
|
prefix: r(() => t[9] || (t[9] = [
|
|
183
|
-
|
|
187
|
+
u("less than:")
|
|
184
188
|
])),
|
|
185
189
|
default: r(() => [
|
|
186
|
-
|
|
190
|
+
u(" " + m(e.value.maximum), 1)
|
|
187
191
|
]),
|
|
188
192
|
_: 1
|
|
189
|
-
})) :
|
|
190
|
-
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (a(),
|
|
193
|
+
})) : i("", !0),
|
|
194
|
+
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (a(), o(y, { key: 9 }, {
|
|
191
195
|
prefix: r(() => t[10] || (t[10] = [
|
|
192
|
-
|
|
196
|
+
u("max:")
|
|
193
197
|
])),
|
|
194
198
|
default: r(() => [
|
|
195
|
-
|
|
199
|
+
u(" " + m(e.value.maximum), 1)
|
|
196
200
|
]),
|
|
197
201
|
_: 1
|
|
198
|
-
})) :
|
|
199
|
-
e.value.pattern ? (a(),
|
|
202
|
+
})) : i("", !0),
|
|
203
|
+
e.value.pattern ? (a(), o(y, {
|
|
200
204
|
key: 10,
|
|
201
205
|
code: "",
|
|
202
206
|
truncate: ""
|
|
203
207
|
}, {
|
|
204
208
|
default: r(() => [
|
|
205
|
-
|
|
209
|
+
p(B, null, {
|
|
206
210
|
default: r(() => t[11] || (t[11] = [
|
|
207
|
-
|
|
211
|
+
u("Pattern:")
|
|
208
212
|
])),
|
|
209
213
|
_: 1
|
|
210
214
|
}),
|
|
211
|
-
|
|
215
|
+
u(" " + m(e.value.pattern), 1)
|
|
212
216
|
]),
|
|
213
217
|
_: 1
|
|
214
|
-
})) :
|
|
215
|
-
e.$props.enum ? (a(),
|
|
218
|
+
})) : i("", !0),
|
|
219
|
+
e.$props.enum ? (a(), o(y, { key: 11 }, {
|
|
216
220
|
default: r(() => t[12] || (t[12] = [
|
|
217
|
-
|
|
221
|
+
u("enum")
|
|
218
222
|
])),
|
|
219
223
|
_: 1
|
|
220
|
-
})) :
|
|
221
|
-
e.value.default !== void 0 ? (a(),
|
|
224
|
+
})) : i("", !0),
|
|
225
|
+
e.value.default !== void 0 ? (a(), o(y, {
|
|
222
226
|
key: 12,
|
|
223
227
|
truncate: ""
|
|
224
228
|
}, {
|
|
225
229
|
prefix: r(() => t[13] || (t[13] = [
|
|
226
|
-
|
|
230
|
+
u("default:")
|
|
227
231
|
])),
|
|
228
232
|
default: r(() => [
|
|
229
|
-
|
|
233
|
+
u(" " + m(O(e.value)), 1)
|
|
230
234
|
]),
|
|
231
235
|
_: 1
|
|
232
|
-
})) :
|
|
233
|
-
], 64)) :
|
|
234
|
-
e.additional ? (a(),
|
|
235
|
-
(
|
|
236
|
-
|
|
237
|
-
], 64)) : (a(),
|
|
238
|
-
|
|
236
|
+
})) : i("", !0)
|
|
237
|
+
], 64)) : i("", !0),
|
|
238
|
+
e.additional ? (a(), n("div", K, [
|
|
239
|
+
(k = e.value) != null && k["x-additionalPropertiesName"] ? (a(), n(v, { key: 0 }, [
|
|
240
|
+
u(m(e.value["x-additionalPropertiesName"]), 1)
|
|
241
|
+
], 64)) : (a(), n(v, { key: 1 }, [
|
|
242
|
+
u("additional properties")
|
|
239
243
|
], 64))
|
|
240
|
-
])) :
|
|
241
|
-
e.pattern ? (a(),
|
|
242
|
-
|
|
244
|
+
])) : i("", !0),
|
|
245
|
+
e.pattern ? (a(), n("div", Q, [
|
|
246
|
+
p(N(L), null, {
|
|
243
247
|
default: r(() => t[14] || (t[14] = [
|
|
244
|
-
|
|
248
|
+
u("pattern")
|
|
245
249
|
])),
|
|
246
250
|
_: 1
|
|
247
251
|
})
|
|
248
|
-
])) :
|
|
249
|
-
(
|
|
250
|
-
|
|
252
|
+
])) : i("", !0),
|
|
253
|
+
(j = e.value) != null && j.deprecated ? (a(), n("div", U, [
|
|
254
|
+
p(N(L), null, {
|
|
251
255
|
default: r(() => t[15] || (t[15] = [
|
|
252
|
-
|
|
256
|
+
u("deprecated")
|
|
253
257
|
])),
|
|
254
258
|
_: 1
|
|
255
259
|
})
|
|
256
|
-
])) :
|
|
257
|
-
N(
|
|
258
|
-
|
|
260
|
+
])) : i("", !0),
|
|
261
|
+
N(b)($.value) ? (a(), n("div", X, [
|
|
262
|
+
p(y, { truncate: "" }, {
|
|
259
263
|
prefix: r(() => t[16] || (t[16] = [
|
|
260
|
-
|
|
264
|
+
u("const:")
|
|
261
265
|
])),
|
|
262
266
|
default: r(() => [
|
|
263
|
-
|
|
267
|
+
u(" " + m($.value), 1)
|
|
264
268
|
]),
|
|
265
269
|
_: 1
|
|
266
270
|
})
|
|
267
|
-
])) : (a(),
|
|
268
|
-
((
|
|
271
|
+
])) : (a(), n(v, { key: 7 }, [
|
|
272
|
+
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (a(), o(y, { key: 0 }, {
|
|
269
273
|
default: r(() => t[17] || (t[17] = [
|
|
270
|
-
|
|
274
|
+
u(" nullable ")
|
|
271
275
|
])),
|
|
272
276
|
_: 1
|
|
273
|
-
})) :
|
|
277
|
+
})) : i("", !0)
|
|
274
278
|
], 64)),
|
|
275
|
-
(
|
|
276
|
-
e.required ? (a(),
|
|
277
|
-
e.withExamples ? (a(),
|
|
278
|
-
key:
|
|
279
|
+
(w = e.value) != null && w.writeOnly ? (a(), n("div", Y, " write-only ")) : (D = e.value) != null && D.readOnly ? (a(), n("div", Z, " read-only ")) : i("", !0),
|
|
280
|
+
e.required ? (a(), n("div", h, " required ")) : i("", !0),
|
|
281
|
+
e.withExamples ? (a(), o(R, {
|
|
282
|
+
key: 11,
|
|
279
283
|
examples: (P = e.value) == null ? void 0 : P.examples,
|
|
280
|
-
example: ((
|
|
281
|
-
}, null, 8, ["examples", "example"])) :
|
|
284
|
+
example: ((V = e.value) == null ? void 0 : V.example) || ((A = (I = e.value) == null ? void 0 : I.items) == null ? void 0 : A.example)
|
|
285
|
+
}, null, 8, ["examples", "example"])) : i("", !0)
|
|
282
286
|
]);
|
|
283
287
|
};
|
|
284
288
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type SchemaObject =
|
|
1
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
+
type SchemaObject = OpenAPIV3_1.SchemaObject;
|
|
3
3
|
/**
|
|
4
4
|
* Merges multiple OpenAPI schema objects into a single schema object.
|
|
5
5
|
* Handles nested allOf compositions and merges properties recursively.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,KAAK,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA;AAQ5C;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,SAAI,GAAG,YAAY,CA4ClF"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
+
export type DiscriminatorMapping = NonNullable<OpenAPIV3_1.DiscriminatorObject['mapping']>;
|
|
3
|
+
export type DiscriminatorPropertyName = OpenAPIV3_1.DiscriminatorObject['propertyName'];
|
|
4
|
+
/** Get discriminator mapping from schema */
|
|
5
|
+
export declare function getDiscriminatorMapping(schema: OpenAPIV3_1.SchemaObject): DiscriminatorMapping | undefined;
|
|
2
6
|
/** Get discriminator property name from schema */
|
|
3
|
-
export declare function getDiscriminatorPropertyName(schema: OpenAPIV3_1.SchemaObject):
|
|
7
|
+
export declare function getDiscriminatorPropertyName(schema: OpenAPIV3_1.SchemaObject): DiscriminatorPropertyName | undefined;
|
|
8
|
+
/** Check if schema has a discriminator */
|
|
9
|
+
export declare function hasDiscriminator(schema: OpenAPIV3_1.SchemaObject): boolean;
|
|
10
|
+
/** Merge discriminator schemas */
|
|
11
|
+
export declare function mergeDiscriminatorSchemas(baseSchema: OpenAPIV3_1.SchemaObject, selectedType: string, schemas: Record<string, OpenAPIV3_1.SchemaObject>): OpenAPIV3_1.SchemaObject | undefined;
|
|
4
12
|
//# sourceMappingURL=schema-discriminator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-discriminator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,kDAAkD;AAClD,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"schema-discriminator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAA;AAE1F,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAA;AAEvF,4CAA4C;AAC5C,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,oBAAoB,GAAG,SAAS,CAM1G;AAED,kDAAkD;AAClD,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,yBAAyB,GAAG,SAAS,CAEpH;AAED,0CAA0C;AAC1C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,OAAO,CAE1E;AAED,kCAAkC;AAClC,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,WAAW,CAAC,YAAY,EACpC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAChD,WAAW,CAAC,YAAY,GAAG,SAAS,CA0DtC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function c(r) {
|
|
2
|
+
var i;
|
|
3
|
+
if ((i = r.discriminator) != null && i.mapping)
|
|
4
|
+
return r.discriminator.mapping;
|
|
5
|
+
}
|
|
6
|
+
function m(r) {
|
|
7
|
+
var i;
|
|
8
|
+
return (i = r.discriminator) == null ? void 0 : i.propertyName;
|
|
9
|
+
}
|
|
10
|
+
function q(r, i, d) {
|
|
11
|
+
var s;
|
|
12
|
+
if (!((s = r.discriminator) != null && s.mapping) || !i)
|
|
13
|
+
return;
|
|
14
|
+
const u = r.discriminator.mapping[i];
|
|
15
|
+
if (!u)
|
|
16
|
+
return;
|
|
17
|
+
const o = u.split("/").pop();
|
|
18
|
+
if (!o || !d[o])
|
|
19
|
+
return;
|
|
20
|
+
const t = d[o];
|
|
21
|
+
if (t.allOf) {
|
|
22
|
+
const n = {
|
|
23
|
+
type: t.type,
|
|
24
|
+
properties: {},
|
|
25
|
+
required: []
|
|
26
|
+
}, f = {}, p = /* @__PURE__ */ new Set();
|
|
27
|
+
r.required && r.required.forEach((e) => p.add(e));
|
|
28
|
+
for (const e of t.allOf)
|
|
29
|
+
"properties" in e && Object.assign(f, e.properties), "required" in e && Array.isArray(e.required) && e.required.forEach((a) => p.add(a));
|
|
30
|
+
return n.properties = f, n.required = Array.from(p), n;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
type: t.type || r.type,
|
|
34
|
+
properties: {
|
|
35
|
+
...r.properties || {},
|
|
36
|
+
...t.properties || {}
|
|
37
|
+
},
|
|
38
|
+
required: [...r.required || [], ...t.required || []]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
c as getDiscriminatorMapping,
|
|
43
|
+
m as getDiscriminatorPropertyName,
|
|
44
|
+
q as mergeDiscriminatorSchemas
|
|
45
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
3
|
import type { Spec, Tag as TagType } from '@scalar/types/legacy';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
collection: Collection;
|
|
@@ -7,7 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
spec: Spec;
|
|
8
8
|
layout?: 'modern' | 'classic';
|
|
9
9
|
server?: Server;
|
|
10
|
-
schemas?:
|
|
10
|
+
schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
11
11
|
};
|
|
12
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AA+HF,wBAMG"}
|
|
@@ -4,9 +4,9 @@ const w = {
|
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "document-selector -mb-1 p-3 pb-0"
|
|
6
6
|
}, S = {
|
|
7
|
-
class: "group/dropdown-label hover:bg-b-2 text-c-2
|
|
7
|
+
class: "group/dropdown-label hover:bg-b-2 text-c-2 flex w-full cursor-pointer items-center rounded border py-1.75 pr-1.5 pl-1.75",
|
|
8
8
|
tabindex: "0"
|
|
9
|
-
}, k = { class: "text-c-1 overflow-hidden text-
|
|
9
|
+
}, k = { class: "text-c-1 overflow-hidden text-sm font-medium text-ellipsis" }, N = /* @__PURE__ */ b({
|
|
10
10
|
__name: "DocumentSelector",
|
|
11
11
|
props: {
|
|
12
12
|
options: {},
|
|
@@ -49,7 +49,7 @@ const w = {
|
|
|
49
49
|
}),
|
|
50
50
|
c("span", k, V(((t = s.value) == null ? void 0 : t.label) || "Select API"), 1),
|
|
51
51
|
i(a(d), {
|
|
52
|
-
class: "group-hover/dropdown-label:text-c-1 ml-auto
|
|
52
|
+
class: "group-hover/dropdown-label:text-c-1 mr-2 ml-auto",
|
|
53
53
|
icon: "ChevronDown",
|
|
54
54
|
size: "sm",
|
|
55
55
|
thickness: "2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as g, useSlots as S, computed as k, createBlock as c, openBlock as r, createSlots as y, withCtx as a, createVNode as C, createElementBlock as h, createCommentVNode as i, renderSlot as d, unref as p, renderList as v, normalizeProps as w, guardReactiveProps as
|
|
2
|
-
import { ScalarColorModeToggleIcon as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as g, useSlots as S, computed as k, createBlock as c, openBlock as r, createSlots as y, withCtx as a, createVNode as C, createElementBlock as h, createCommentVNode as i, renderSlot as d, unref as p, renderList as v, normalizeProps as w, guardReactiveProps as D } from "vue";
|
|
2
|
+
import { ScalarColorModeToggleIcon as $ } from "@scalar/components";
|
|
3
|
+
import B from "../ApiReferenceLayout.vue.js";
|
|
4
4
|
import H from "../ClassicHeader.vue.js";
|
|
5
5
|
import M from "../../features/Search/SearchButton.vue.js";
|
|
6
6
|
const K = {
|
|
@@ -10,14 +10,16 @@ const K = {
|
|
|
10
10
|
__name: "ClassicLayout",
|
|
11
11
|
props: {
|
|
12
12
|
configuration: {},
|
|
13
|
+
dereferencedDocument: {},
|
|
14
|
+
originalDocument: {},
|
|
15
|
+
isDark: { type: Boolean },
|
|
13
16
|
parsedSpec: {},
|
|
14
|
-
rawSpec: {}
|
|
15
|
-
isDark: { type: Boolean }
|
|
17
|
+
rawSpec: {}
|
|
16
18
|
},
|
|
17
19
|
emits: ["toggleDarkMode", "updateContent"],
|
|
18
20
|
setup(u) {
|
|
19
21
|
const n = u, m = S(), l = k(() => ({ ...n.configuration, showSidebar: !1 }));
|
|
20
|
-
return (e, o) => (r(), c(
|
|
22
|
+
return (e, o) => (r(), c(B, {
|
|
21
23
|
configuration: l.value,
|
|
22
24
|
parsedSpec: e.parsedSpec,
|
|
23
25
|
rawSpec: e.rawSpec,
|
|
@@ -26,7 +28,7 @@ const K = {
|
|
|
26
28
|
"content-start": a(({ spec: t }) => [
|
|
27
29
|
C(H, null, {
|
|
28
30
|
"dark-mode-toggle": a(() => [
|
|
29
|
-
n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p(
|
|
31
|
+
n.configuration.hideDarkModeToggle ? i("", !0) : (r(), c(p($), {
|
|
30
32
|
key: 0,
|
|
31
33
|
class: "text-c-2 hover:text-c-1",
|
|
32
34
|
mode: e.isDark ? "dark" : "light",
|
|
@@ -54,7 +56,7 @@ const K = {
|
|
|
54
56
|
v(m, (t, s) => ({
|
|
55
57
|
name: s,
|
|
56
58
|
fn: a((f) => [
|
|
57
|
-
d(e.$slots, s, w(
|
|
59
|
+
d(e.$slots, s, w(D(f || {})))
|
|
58
60
|
])
|
|
59
61
|
}))
|
|
60
62
|
]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
|