@scalar/api-reference 1.25.115 → 1.25.118
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 +76 -0
- package/dist/browser/standalone.js +15973 -15829
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +39 -38
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +58 -60
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +6 -0
- 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 +124 -120
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +1 -3
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +36 -38
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +59 -55
- package/dist/features/ApiClientModal/useApiClient.d.ts +208 -128
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +6 -4
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +130 -119
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +2 -2
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +86 -91
- package/dist/features/Operation/Operation.vue.d.ts +4 -5
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +34 -41
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -6
- 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 +54 -51
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -6
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +71 -71
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +1 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useConfig.js +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +26 -24
- package/dist/hooks/useReactiveSpec.d.ts +1 -1
- package/dist/index.js +66 -72
- package/dist/style.css +1 -1
- package/package.json +12 -12
- package/dist/features/Operation/hooks/useRequestExample.d.ts +0 -17
- package/dist/features/Operation/hooks/useRequestExample.d.ts.map +0 -1
- package/dist/features/Operation/hooks/useRequestExample.js +0 -68
- package/dist/helpers/convertRequestToHarRequest.d.ts +0 -7
- package/dist/helpers/convertRequestToHarRequest.d.ts.map +0 -1
- package/dist/helpers/convertRequestToHarRequest.js +0 -64
- package/dist/helpers/get-request.js +0 -6
- package/dist/helpers/getExampleCode.d.ts +0 -8
- package/dist/helpers/getExampleCode.d.ts.map +0 -1
- package/dist/helpers/getExampleCode.js +0 -16
- package/dist/helpers/joinWithSlash.d.ts +0 -5
- package/dist/helpers/joinWithSlash.d.ts.map +0 -1
- package/dist/helpers/joinWithSlash.js +0 -4
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.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-10065932"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -136,7 +136,7 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
|
|
|
136
136
|
{ immediate: !0 }
|
|
137
137
|
), v(Ce, w);
|
|
138
138
|
const oe = Te(w);
|
|
139
|
-
v($e, oe), v(ye, "modal"), v(he, o.configuration);
|
|
139
|
+
v($e, oe), v(ye, "modal"), v(he, o.configuration ?? {});
|
|
140
140
|
function L(e, t) {
|
|
141
141
|
T(
|
|
142
142
|
() => o.configuration[e],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAkBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAwCF,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./Introduction.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-0336cd4f"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as $, computed as u, onMounted as w, openBlock as l, createBlock as s, unref as t, withCtx as i, createVNode as n, createElementVNode as S, createTextVNode as f, toDisplayString as d, createCommentVNode as p, renderSlot as _ } from "vue";
|
|
2
|
+
import { useConfig as N } from "../../../hooks/useConfig.js";
|
|
3
|
+
import T from "github-slugger";
|
|
4
|
+
import b from "../../../features/DownloadLink/DownloadLink.vue.js";
|
|
5
|
+
import B from "./Description.vue.js";
|
|
6
|
+
import D from "../../Section/SectionContainer.vue.js";
|
|
7
|
+
import H from "../../Section/Section.vue.js";
|
|
8
|
+
import A from "../../Section/SectionContent.vue.js";
|
|
9
|
+
import C from "../../Badge/Badge.vue.js";
|
|
10
|
+
import E from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
import F from "../../Section/SectionColumns.vue.js";
|
|
11
12
|
import k from "../../Section/SectionColumn.vue.js";
|
|
12
|
-
const
|
|
13
|
+
const G = { class: "badges" }, I = { class: "sticky-cards" }, W = /* @__PURE__ */ $({
|
|
13
14
|
__name: "Introduction",
|
|
14
15
|
props: {
|
|
15
16
|
info: {},
|
|
16
17
|
parsedSpec: {}
|
|
17
18
|
},
|
|
18
19
|
setup(y) {
|
|
19
|
-
const o = y,
|
|
20
|
+
const o = y, m = u(
|
|
20
21
|
() => {
|
|
21
22
|
var e, r;
|
|
22
23
|
return ((e = o.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = o.parsedSpec) == null ? void 0 : r.swagger) ?? "";
|
|
23
24
|
}
|
|
24
|
-
),
|
|
25
|
+
), h = new T(), V = u(() => {
|
|
25
26
|
var e;
|
|
26
|
-
return
|
|
27
|
-
}), c =
|
|
27
|
+
return h.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
|
|
28
|
+
}), c = u(() => {
|
|
28
29
|
var e, r;
|
|
29
30
|
return typeof ((e = o.info) == null ? void 0 : e.version) == "string" ? o.info.version.toString().match(/^\d/) ? `v${o.info.version}` : o.info.version : typeof ((r = o.info) == null ? void 0 : r.version) == "number" ? `v${o.info.version}` : void 0;
|
|
30
|
-
});
|
|
31
|
-
return (e, r) => (l(), s(t(
|
|
31
|
+
}), { onLoaded: a } = N();
|
|
32
|
+
return w(() => a == null ? void 0 : a()), (e, r) => (l(), s(t(D), null, {
|
|
32
33
|
default: i(() => [
|
|
33
|
-
n(t(
|
|
34
|
+
n(t(H), { class: "introduction-section gap-12" }, {
|
|
34
35
|
default: i(() => {
|
|
35
|
-
var
|
|
36
|
+
var v, g;
|
|
36
37
|
return [
|
|
37
|
-
n(t(
|
|
38
|
-
loading: !((
|
|
38
|
+
n(t(A), {
|
|
39
|
+
loading: !((v = e.info) != null && v.description) && !((g = e.info) != null && g.title)
|
|
39
40
|
}, {
|
|
40
41
|
default: i(() => [
|
|
41
|
-
|
|
42
|
-
c.value ? (l(), s(t(
|
|
42
|
+
S("div", G, [
|
|
43
|
+
c.value ? (l(), s(t(C), { key: 0 }, {
|
|
43
44
|
default: i(() => [
|
|
44
|
-
d(
|
|
45
|
+
f(d(c.value), 1)
|
|
45
46
|
]),
|
|
46
47
|
_: 1
|
|
47
|
-
})) :
|
|
48
|
-
|
|
48
|
+
})) : p("", !0),
|
|
49
|
+
m.value ? (l(), s(t(C), { key: 1 }, {
|
|
49
50
|
default: i(() => [
|
|
50
|
-
|
|
51
|
+
f("OAS " + d(m.value), 1)
|
|
51
52
|
]),
|
|
52
53
|
_: 1
|
|
53
|
-
})) :
|
|
54
|
+
})) : p("", !0)
|
|
54
55
|
]),
|
|
55
|
-
n(t(
|
|
56
|
+
n(t(E), {
|
|
56
57
|
level: 1,
|
|
57
58
|
loading: !e.info.title,
|
|
58
59
|
tight: ""
|
|
59
60
|
}, {
|
|
60
61
|
default: i(() => [
|
|
61
|
-
d(
|
|
62
|
+
f(d(e.info.title), 1)
|
|
62
63
|
]),
|
|
63
64
|
_: 1
|
|
64
65
|
}, 8, ["loading"]),
|
|
65
|
-
n(
|
|
66
|
-
n(t(
|
|
66
|
+
n(b, { specTitle: V.value }, null, 8, ["specTitle"]),
|
|
67
|
+
n(t(F), null, {
|
|
67
68
|
default: i(() => [
|
|
68
69
|
n(t(k), null, {
|
|
69
70
|
default: i(() => [
|
|
70
|
-
n(
|
|
71
|
+
n(B, {
|
|
71
72
|
value: e.info.description
|
|
72
73
|
}, null, 8, ["value"])
|
|
73
74
|
]),
|
|
@@ -75,19 +76,19 @@ const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ *
|
|
|
75
76
|
}),
|
|
76
77
|
e.$slots.aside ? (l(), s(t(k), { key: 0 }, {
|
|
77
78
|
default: i(() => [
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
S("div", I, [
|
|
80
|
+
_(e.$slots, "aside", {}, void 0, !0)
|
|
80
81
|
])
|
|
81
82
|
]),
|
|
82
83
|
_: 3
|
|
83
|
-
})) :
|
|
84
|
+
})) : p("", !0)
|
|
84
85
|
]),
|
|
85
86
|
_: 3
|
|
86
87
|
})
|
|
87
88
|
]),
|
|
88
89
|
_: 3
|
|
89
90
|
}, 8, ["loading"]),
|
|
90
|
-
|
|
91
|
+
_(e.$slots, "after", {}, void 0, !0)
|
|
91
92
|
];
|
|
92
93
|
}),
|
|
93
94
|
_: 3
|
|
@@ -98,5 +99,5 @@ const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ *
|
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
W as default
|
|
102
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAwQjC,wBAQG"}
|
|
@@ -1,122 +1,120 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { lazyBus as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useNavState as
|
|
13
|
-
import { getModels as
|
|
14
|
-
import { scrollToId as
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as D, ref as v, watch as K, onMounted as M, withDirectives as j, openBlock as n, createElementBlock as f, normalizeClass as F, Fragment as g, renderList as k, createBlock as m, unref as t, withCtx as p, createCommentVNode as w, createVNode as C, createTextVNode as H, toDisplayString as P, vShow as q } from "vue";
|
|
2
|
+
import { useActiveEntities as G } from "@scalar/api-client/store";
|
|
3
|
+
import { lazyBus as J } from "./lazyBus.js";
|
|
4
|
+
import Q from "../Tag/Tag.vue.js";
|
|
5
|
+
import R from "../../../features/Operation/Operation.vue.js";
|
|
6
|
+
import U from "../../Section/SectionContainer.vue.js";
|
|
7
|
+
import X from "../../Section/Section.vue.js";
|
|
8
|
+
import Y from "../../Section/SectionContent.vue.js";
|
|
9
|
+
import Z from "../../Section/SectionHeader.vue.js";
|
|
10
|
+
import ee from "../../Anchor/Anchor.vue.js";
|
|
11
|
+
import te from "../Schema/Schema.vue.js";
|
|
12
|
+
import { useNavState as oe } from "../../../hooks/useNavState.js";
|
|
13
|
+
import { getModels as h } from "../../../helpers/getModels.js";
|
|
14
|
+
import { scrollToId as x } from "../../../helpers/scrollToId.js";
|
|
15
|
+
const he = /* @__PURE__ */ D({
|
|
16
16
|
__name: "Loading",
|
|
17
17
|
props: {
|
|
18
18
|
layout: { default: "modern" },
|
|
19
19
|
parsedSpec: {}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const i =
|
|
23
|
-
|
|
21
|
+
setup(L) {
|
|
22
|
+
const i = L, T = v(!1), S = v([]), y = v([]), { activeCollection: O, activeServer: V } = G(), { getModelId: z, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: I } = oe(), _ = v(i.layout !== "classic" && a.value);
|
|
23
|
+
K(
|
|
24
24
|
() => {
|
|
25
25
|
var r;
|
|
26
26
|
return (r = i.parsedSpec.tags) == null ? void 0 : r.length;
|
|
27
27
|
},
|
|
28
28
|
(r) => {
|
|
29
29
|
var e, u;
|
|
30
|
-
if (!
|
|
30
|
+
if (!a.value || typeof r != "number" || !i.parsedSpec.tags)
|
|
31
31
|
return;
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
32
|
+
const s = B();
|
|
33
|
+
if (s.startsWith("tag")) {
|
|
34
34
|
let o = 0;
|
|
35
35
|
const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
|
|
36
|
-
(
|
|
37
|
-
)) ?? 0,
|
|
38
|
-
if ((
|
|
39
|
-
const
|
|
36
|
+
(b) => N(b) === s
|
|
37
|
+
)) ?? 0, l = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
|
|
38
|
+
if ((l == null ? void 0 : l.length) === 4) {
|
|
39
|
+
const b = l[2], W = "/" + l[3];
|
|
40
40
|
o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
|
|
41
|
-
({ httpVerb: $, path:
|
|
41
|
+
({ httpVerb: $, path: A }) => b === $ && W === A
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
const d = i.parsedSpec.tags[c];
|
|
45
45
|
if (!d) return;
|
|
46
|
-
d.name !== "default" && (
|
|
46
|
+
d.name !== "default" && (T.value = s !== a.value && s.startsWith("tag")), S.value.push({
|
|
47
47
|
...d,
|
|
48
48
|
lazyOperations: d.operations.slice(
|
|
49
49
|
o,
|
|
50
50
|
o + 2
|
|
51
51
|
)
|
|
52
52
|
});
|
|
53
|
-
} else if (
|
|
54
|
-
const o = Object.keys(
|
|
55
|
-
if (
|
|
56
|
-
|
|
53
|
+
} else if (a.value.startsWith("model")) {
|
|
54
|
+
const o = Object.keys(h(i.parsedSpec) ?? {}), [, c] = a.value.toLowerCase().split("/"), l = a.value === "models" ? 0 : o.findIndex((d) => d.toLowerCase() === c);
|
|
55
|
+
if (l === -1) return;
|
|
56
|
+
y.value = o.slice(l, l + 3);
|
|
57
57
|
} else
|
|
58
|
-
typeof window < "u" &&
|
|
58
|
+
typeof window < "u" && x(a.value), setTimeout(() => I.value = !0, 1e3);
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
!
|
|
65
|
-
typeof window < "u" &&
|
|
62
|
+
const E = J.on(({ id: r }) => {
|
|
63
|
+
const s = a.value;
|
|
64
|
+
!s || r !== s || (E(), setTimeout(() => {
|
|
65
|
+
typeof window < "u" && x(s), _.value = !1, setTimeout(() => I.value = !0, 1e3);
|
|
66
66
|
}, 300));
|
|
67
67
|
});
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
}), (r,
|
|
68
|
+
return M(() => {
|
|
69
|
+
a.value || setTimeout(() => I.value = !0, 1e3);
|
|
70
|
+
}), (r, s) => j((n(), f("div", {
|
|
71
71
|
class: F(["references-loading", {
|
|
72
|
-
"references-loading-hidden-tag":
|
|
73
|
-
"references-loading-top-spacer":
|
|
72
|
+
"references-loading-hidden-tag": T.value,
|
|
73
|
+
"references-loading-top-spacer": S.value.length
|
|
74
74
|
}])
|
|
75
75
|
}, [
|
|
76
|
-
(
|
|
76
|
+
(n(!0), f(g, null, k(S.value, (e, u) => (n(), f(g, {
|
|
77
77
|
key: e.name + u
|
|
78
78
|
}, [
|
|
79
|
-
e.operations && e.operations.length > 0 ? (
|
|
79
|
+
e.operations && e.operations.length > 0 ? (n(), m(t(Q), {
|
|
80
80
|
key: 0,
|
|
81
81
|
spec: r.parsedSpec,
|
|
82
82
|
tag: e
|
|
83
83
|
}, {
|
|
84
84
|
default: p(() => [
|
|
85
|
-
(
|
|
85
|
+
(n(!0), f(g, null, k(e.lazyOperations, (o) => (n(), m(t(R), {
|
|
86
86
|
key: `${o.httpVerb}-${o.operationId}`,
|
|
87
|
+
collection: t(O),
|
|
87
88
|
layout: r.layout,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
securitySchemes: t(V),
|
|
92
|
-
tag: e
|
|
93
|
-
}, null, 8, ["layout", "operation", "requestExamples", "requests", "securitySchemes", "tag"]))), 128))
|
|
89
|
+
server: t(V),
|
|
90
|
+
transformedOperation: o
|
|
91
|
+
}, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
|
|
94
92
|
]),
|
|
95
93
|
_: 2
|
|
96
94
|
}, 1032, ["spec", "tag"])) : w("", !0)
|
|
97
95
|
], 64))), 128)),
|
|
98
|
-
|
|
96
|
+
y.value.length ? (n(), m(t(U), { key: 0 }, {
|
|
99
97
|
default: p(() => [
|
|
100
|
-
(
|
|
98
|
+
(n(!0), f(g, null, k(y.value, (e) => (n(), m(t(X), {
|
|
101
99
|
key: e,
|
|
102
100
|
label: e
|
|
103
101
|
}, {
|
|
104
102
|
default: p(() => {
|
|
105
103
|
var u;
|
|
106
104
|
return [
|
|
107
|
-
(u = t(
|
|
105
|
+
(u = t(h)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
|
|
108
106
|
default: p(() => {
|
|
109
107
|
var o;
|
|
110
108
|
return [
|
|
111
|
-
|
|
109
|
+
C(t(Z), { level: 2 }, {
|
|
112
110
|
default: p(() => [
|
|
113
|
-
|
|
111
|
+
C(t(ee), {
|
|
114
112
|
id: t(z)({ name: e })
|
|
115
113
|
}, {
|
|
116
114
|
default: p(() => {
|
|
117
115
|
var c;
|
|
118
116
|
return [
|
|
119
|
-
H(P(((c = t(
|
|
117
|
+
H(P(((c = t(h)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
|
|
120
118
|
];
|
|
121
119
|
}),
|
|
122
120
|
_: 2
|
|
@@ -124,10 +122,10 @@ const ye = /* @__PURE__ */ K({
|
|
|
124
122
|
]),
|
|
125
123
|
_: 2
|
|
126
124
|
}, 1024),
|
|
127
|
-
|
|
125
|
+
C(t(te), {
|
|
128
126
|
name: e,
|
|
129
127
|
noncollapsible: "",
|
|
130
|
-
value: (o = t(
|
|
128
|
+
value: (o = t(h)(r.parsedSpec)) == null ? void 0 : o[e]
|
|
131
129
|
}, null, 8, ["name", "value"])
|
|
132
130
|
];
|
|
133
131
|
}),
|
|
@@ -141,10 +139,10 @@ const ye = /* @__PURE__ */ K({
|
|
|
141
139
|
_: 1
|
|
142
140
|
})) : w("", !0)
|
|
143
141
|
], 2)), [
|
|
144
|
-
[
|
|
142
|
+
[q, _.value]
|
|
145
143
|
]);
|
|
146
144
|
}
|
|
147
145
|
});
|
|
148
146
|
export {
|
|
149
|
-
|
|
147
|
+
he as default
|
|
150
148
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note: We’re taking in a prop called `value` which should be a JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* We’re using `optimizeValueForDisplay` to merge null types in discriminators (anyOf, allOf, oneOf, not).
|
|
5
|
+
* So you should basically use the optimizedValue everywhere in the component.
|
|
6
|
+
*/
|
|
1
7
|
type __VLS_Props = {
|
|
2
8
|
value?: Record<string, any>;
|
|
3
9
|
level?: number;
|
|
@@ -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":"AAqfA;;;;;GAKG;AAEH,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;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA2b1B,0BAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-17d98b59"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|