@scalar/api-reference 1.25.113 → 1.25.114
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 +27 -0
- package/dist/browser/standalone.js +7272 -7231
- package/dist/browser/webpack-stats.json +1 -1
- 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 +65 -59
- 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/Introduction/Description.vue2.js +24 -24
- package/dist/components/Content/Introduction/Introduction.vue2.js +13 -13
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +67 -56
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -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 +68 -66
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -0
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +101 -85
- package/dist/components/Content/Schema/helpers/formatExample.js +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +58 -58
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useRequestExample.js +1 -1
- package/dist/helpers/get-request.d.ts +1 -1
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -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":"AA0OA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwBJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArRR,QAAQ,GAAG,SAAS;6EA4R/B,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"}
|
|
@@ -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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-589904f0"]]);
|
|
6
6
|
export {
|
|
7
7
|
_ as default
|
|
8
8
|
};
|
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useActiveEntities as
|
|
3
|
-
import { RequestAuth as
|
|
4
|
-
import { ScalarErrorBoundary as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as V, computed as U, openBlock as t, createElementBlock as a, Fragment as p, createStaticVNode as W, createElementVNode as h, renderSlot as m, createVNode as d, unref as s, createBlock as o, withCtx as g, normalizeClass as L, createCommentVNode as l, renderList as j } from "vue";
|
|
2
|
+
import { useWorkspace as q, useActiveEntities as z } from "@scalar/api-client/store";
|
|
3
|
+
import { RequestAuth as F } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
|
+
import { ScalarErrorBoundary as G } from "@scalar/components";
|
|
5
|
+
import I from "./Lazy/Loading.vue.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useSidebar as
|
|
15
|
-
import { hasModels as
|
|
16
|
-
import { getModels as
|
|
17
|
-
const
|
|
7
|
+
import O from "./Introduction/Introduction.vue.js";
|
|
8
|
+
import R from "../../features/BaseUrl/BaseUrl.vue.js";
|
|
9
|
+
import D from "./ClientLibraries/ClientLibraries.vue.js";
|
|
10
|
+
import b from "./Tag/TagList.vue.js";
|
|
11
|
+
import H from "../../features/Operation/Webhooks.vue.js";
|
|
12
|
+
import J from "./Models/ModelsAccordion.vue.js";
|
|
13
|
+
import K from "./Models/Models.vue.js";
|
|
14
|
+
import { useSidebar as P } from "../../hooks/useSidebar.js";
|
|
15
|
+
import { hasModels as Q } from "../../helpers/hasModels.js";
|
|
16
|
+
import { getModels as w } from "../../helpers/getModels.js";
|
|
17
|
+
const T = { class: "narrow-references-container" }, X = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
|
|
20
|
-
},
|
|
20
|
+
}, Y = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "scalar-client introduction-card-item"
|
|
23
|
+
}, ue = /* @__PURE__ */ V({
|
|
21
24
|
__name: "Content",
|
|
22
25
|
props: {
|
|
23
26
|
parsedSpec: {},
|
|
24
27
|
layout: { default: "modern" }
|
|
25
28
|
},
|
|
26
29
|
setup(C) {
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
30
|
+
const $ = C, { hideModels: M } = P(), { securitySchemes: A } = q(), { activeCollection: n, activeServer: B, activeWorkspace: u } = z(), E = U(
|
|
31
|
+
() => $.layout === "classic" ? "after" : "aside"
|
|
29
32
|
);
|
|
30
33
|
return (e, f) => {
|
|
31
|
-
var v, S, y,
|
|
32
|
-
return t(),
|
|
33
|
-
f[0] || (f[0] =
|
|
34
|
-
|
|
34
|
+
var v, S, y, k;
|
|
35
|
+
return t(), a(p, null, [
|
|
36
|
+
f[0] || (f[0] = W('<div class="section-flare" data-v-589904f0><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div></div>', 1)),
|
|
37
|
+
h("div", T, [
|
|
35
38
|
m(e.$slots, "start", {}, void 0, !0),
|
|
36
|
-
|
|
39
|
+
d(s(I), {
|
|
37
40
|
layout: e.layout,
|
|
38
41
|
parsedSpec: e.parsedSpec
|
|
39
42
|
}, null, 8, ["layout", "parsedSpec"]),
|
|
40
|
-
(S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (
|
|
43
|
+
(S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (t(), o(s(O), {
|
|
41
44
|
key: 0,
|
|
42
45
|
info: e.parsedSpec.info,
|
|
43
46
|
parsedSpec: e.parsedSpec
|
|
44
47
|
}, {
|
|
45
|
-
[
|
|
46
|
-
|
|
47
|
-
default:
|
|
48
|
-
var
|
|
48
|
+
[E.value]: g(() => [
|
|
49
|
+
d(s(G), null, {
|
|
50
|
+
default: g(() => {
|
|
51
|
+
var i, r, c;
|
|
49
52
|
return [
|
|
50
|
-
|
|
51
|
-
class:
|
|
53
|
+
h("div", {
|
|
54
|
+
class: L(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
52
55
|
}, [
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
])) :
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
(r = (i = s(n)) == null ? void 0 : i.servers) != null && r.length ? (t(), a("div", X, [
|
|
57
|
+
d(s(R))
|
|
58
|
+
])) : l("", !0),
|
|
59
|
+
s(n) && s(u) && Object.keys(s(A) ?? {}).length ? (t(), a("div", Y, [
|
|
60
|
+
d(s(F), {
|
|
61
|
+
collection: s(n),
|
|
58
62
|
layout: "reference",
|
|
59
|
-
selectedSecuritySchemeUids: ((
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
selectedSecuritySchemeUids: ((c = s(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
|
|
64
|
+
server: s(B),
|
|
65
|
+
title: "Authentication",
|
|
66
|
+
workspace: s(u)
|
|
67
|
+
}, null, 8, ["collection", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
68
|
+
])) : l("", !0),
|
|
69
|
+
d(s(D), { class: "introduction-card-item" })
|
|
64
70
|
], 2)
|
|
65
71
|
];
|
|
66
72
|
}),
|
|
@@ -69,35 +75,35 @@ const K = { class: "narrow-references-container" }, O = {
|
|
|
69
75
|
]),
|
|
70
76
|
_: 2
|
|
71
77
|
}, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
|
|
72
|
-
e.parsedSpec.tags ? (t(),
|
|
73
|
-
e.parsedSpec["x-tagGroups"] ? (t(!0),
|
|
74
|
-
key:
|
|
78
|
+
e.parsedSpec.tags ? (t(), a(p, { key: 2 }, [
|
|
79
|
+
e.parsedSpec["x-tagGroups"] ? (t(!0), a(p, { key: 0 }, j(e.parsedSpec["x-tagGroups"], (i) => (t(), o(s(b), {
|
|
80
|
+
key: i.name,
|
|
75
81
|
layout: e.layout,
|
|
76
82
|
spec: e.parsedSpec,
|
|
77
|
-
tags:
|
|
78
|
-
var
|
|
79
|
-
return (
|
|
80
|
-
}).filter((
|
|
81
|
-
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(),
|
|
83
|
+
tags: i.tags.map((r) => {
|
|
84
|
+
var c;
|
|
85
|
+
return (c = e.parsedSpec.tags) == null ? void 0 : c.find((N) => N.name === r);
|
|
86
|
+
}).filter((r) => !!r)
|
|
87
|
+
}, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), o(s(b), {
|
|
82
88
|
key: 1,
|
|
83
89
|
layout: e.layout,
|
|
84
90
|
spec: e.parsedSpec,
|
|
85
91
|
tags: e.parsedSpec.tags
|
|
86
92
|
}, null, 8, ["layout", "spec", "tags"]))
|
|
87
|
-
], 64)) :
|
|
88
|
-
e.parsedSpec.webhooks ? (t(),
|
|
93
|
+
], 64)) : l("", !0),
|
|
94
|
+
e.parsedSpec.webhooks ? (t(), o(s(H), {
|
|
89
95
|
key: 3,
|
|
90
96
|
webhooks: e.parsedSpec.webhooks
|
|
91
|
-
}, null, 8, ["webhooks"])) :
|
|
92
|
-
s(
|
|
93
|
-
e.layout === "classic" ? (t(),
|
|
97
|
+
}, null, 8, ["webhooks"])) : l("", !0),
|
|
98
|
+
s(Q)(e.parsedSpec) && !s(M) ? (t(), a(p, { key: 4 }, [
|
|
99
|
+
e.layout === "classic" ? (t(), o(s(J), {
|
|
94
100
|
key: 0,
|
|
95
|
-
schemas: s(
|
|
96
|
-
}, null, 8, ["schemas"])) : (t(),
|
|
101
|
+
schemas: s(w)(e.parsedSpec)
|
|
102
|
+
}, null, 8, ["schemas"])) : (t(), o(s(K), {
|
|
97
103
|
key: 1,
|
|
98
|
-
schemas: s(
|
|
104
|
+
schemas: s(w)(e.parsedSpec)
|
|
99
105
|
}, null, 8, ["schemas"]))
|
|
100
|
-
], 64)) :
|
|
106
|
+
], 64)) : l("", !0),
|
|
101
107
|
m(e.$slots, "end", {}, void 0, !0)
|
|
102
108
|
])
|
|
103
109
|
], 64);
|
|
@@ -105,5 +111,5 @@ const K = { class: "narrow-references-container" }, O = {
|
|
|
105
111
|
}
|
|
106
112
|
});
|
|
107
113
|
export {
|
|
108
|
-
|
|
114
|
+
ue as default
|
|
109
115
|
};
|
|
@@ -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":"AAiIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
|
|
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa3d93c5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as H, computed as I, openBlock as n, createElementBlock as a, Fragment as u, renderList as S, createBlock as s, unref as i, withCtx as w, createVNode as C, createCommentVNode as B } from "vue";
|
|
2
|
+
import N from "../../IntersectionObserver.vue.js";
|
|
3
|
+
import { useNavState as b } from "../../../hooks/useNavState.js";
|
|
4
|
+
import { splitContent as x, getHeadings as E } from "@scalar/code-highlight/markdown";
|
|
3
5
|
import { ScalarMarkdown as c } from "@scalar/components";
|
|
4
6
|
import d from "github-slugger";
|
|
5
|
-
|
|
6
|
-
import { useNavState as x } from "../../../hooks/useNavState.js";
|
|
7
|
-
const E = {
|
|
7
|
+
const F = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "introduction-description"
|
|
10
|
-
},
|
|
10
|
+
}, U = /* @__PURE__ */ H({
|
|
11
11
|
__name: "Description",
|
|
12
12
|
props: {
|
|
13
13
|
value: {}
|
|
@@ -17,48 +17,48 @@ const E = {
|
|
|
17
17
|
if (!o.value)
|
|
18
18
|
return [];
|
|
19
19
|
const e = new d();
|
|
20
|
-
return
|
|
21
|
-
const [r] =
|
|
20
|
+
return x(o.value).map((t) => {
|
|
21
|
+
const [r] = E(t);
|
|
22
22
|
return {
|
|
23
|
-
id: r ?
|
|
23
|
+
id: r ? l({
|
|
24
24
|
...r,
|
|
25
25
|
slug: e.slug(r.value)
|
|
26
26
|
}) : void 0,
|
|
27
27
|
content: t
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
|
-
}), { getHeadingId:
|
|
31
|
-
function
|
|
32
|
-
|
|
30
|
+
}), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = b();
|
|
31
|
+
function h(e = "") {
|
|
32
|
+
f.value && v(e);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const _ = new d(), k = (e) => (e.data = {
|
|
35
35
|
hProperties: {
|
|
36
|
-
id:
|
|
36
|
+
id: l({
|
|
37
37
|
depth: e.depth,
|
|
38
38
|
value: e.children[0].value,
|
|
39
|
-
slug:
|
|
39
|
+
slug: _.slug(e.children[0].value)
|
|
40
40
|
})
|
|
41
41
|
}
|
|
42
42
|
}, e);
|
|
43
|
-
return (e,
|
|
44
|
-
(n(!0),
|
|
43
|
+
return (e, y) => e.value ? (n(), a("div", F, [
|
|
44
|
+
(n(!0), a(u, null, S(p.value, (t) => (n(), a(u, {
|
|
45
45
|
key: t.id
|
|
46
46
|
}, [
|
|
47
|
-
t.id ? (n(),
|
|
47
|
+
t.id ? (n(), s(N, {
|
|
48
48
|
key: 0,
|
|
49
|
-
id: t.id,
|
|
49
|
+
id: i(g)(t.id),
|
|
50
50
|
class: "introduction-description-heading",
|
|
51
|
-
onIntersecting: () =>
|
|
51
|
+
onIntersecting: () => h(t.id)
|
|
52
52
|
}, {
|
|
53
53
|
default: w(() => [
|
|
54
|
-
C(
|
|
55
|
-
transform:
|
|
54
|
+
C(i(c), {
|
|
55
|
+
transform: k,
|
|
56
56
|
transformType: "heading",
|
|
57
57
|
value: t.content
|
|
58
58
|
}, null, 8, ["value"])
|
|
59
59
|
]),
|
|
60
60
|
_: 2
|
|
61
|
-
}, 1032, ["id", "onIntersecting"])) : (n(),
|
|
61
|
+
}, 1032, ["id", "onIntersecting"])) : (n(), s(i(c), {
|
|
62
62
|
key: 1,
|
|
63
63
|
value: t.content,
|
|
64
64
|
withImages: ""
|
|
@@ -68,5 +68,5 @@ const E = {
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
U as default
|
|
72
72
|
};
|
|
@@ -7,23 +7,23 @@ import b from "../../Section/Section.vue.js";
|
|
|
7
7
|
import B from "../../Section/SectionContent.vue.js";
|
|
8
8
|
import _ from "../../Badge/Badge.vue.js";
|
|
9
9
|
import D from "../../Section/SectionHeader.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
10
|
+
import H from "../../Section/SectionColumns.vue.js";
|
|
11
|
+
import k from "../../Section/SectionColumn.vue.js";
|
|
12
|
+
const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ */ V({
|
|
13
13
|
__name: "Introduction",
|
|
14
14
|
props: {
|
|
15
15
|
info: {},
|
|
16
16
|
parsedSpec: {}
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const o =
|
|
18
|
+
setup(y) {
|
|
19
|
+
const o = y, p = a(
|
|
20
20
|
() => {
|
|
21
21
|
var e, r;
|
|
22
22
|
return ((e = o.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = o.parsedSpec) == null ? void 0 : r.swagger) ?? "";
|
|
23
23
|
}
|
|
24
|
-
),
|
|
24
|
+
), C = new $(), h = a(() => {
|
|
25
25
|
var e;
|
|
26
|
-
return
|
|
26
|
+
return C.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
|
|
27
27
|
}), c = a(() => {
|
|
28
28
|
var e, r;
|
|
29
29
|
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;
|
|
@@ -38,7 +38,7 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
|
|
|
38
38
|
loading: !((m = e.info) != null && m.description) && !((v = e.info) != null && v.title)
|
|
39
39
|
}, {
|
|
40
40
|
default: i(() => [
|
|
41
|
-
g("div",
|
|
41
|
+
g("div", A, [
|
|
42
42
|
c.value ? (l(), s(t(_), { key: 0 }, {
|
|
43
43
|
default: i(() => [
|
|
44
44
|
d(u(c.value), 1)
|
|
@@ -62,10 +62,10 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
|
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
64
|
}, 8, ["loading"]),
|
|
65
|
-
n(w, { specTitle:
|
|
66
|
-
n(t(
|
|
65
|
+
n(w, { specTitle: h.value }, null, 8, ["specTitle"]),
|
|
66
|
+
n(t(H), null, {
|
|
67
67
|
default: i(() => [
|
|
68
|
-
n(t(
|
|
68
|
+
n(t(k), null, {
|
|
69
69
|
default: i(() => [
|
|
70
70
|
n(N, {
|
|
71
71
|
value: e.info.description
|
|
@@ -73,9 +73,9 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
|
|
|
73
73
|
]),
|
|
74
74
|
_: 1
|
|
75
75
|
}),
|
|
76
|
-
e.$slots.aside ? (l(), s(t(
|
|
76
|
+
e.$slots.aside ? (l(), s(t(k), { key: 0 }, {
|
|
77
77
|
default: i(() => [
|
|
78
|
-
g("div",
|
|
78
|
+
g("div", E, [
|
|
79
79
|
S(e.$slots, "aside", {}, void 0, !0)
|
|
80
80
|
])
|
|
81
81
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAsSA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAoTlB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Schema.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f48d0197"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as q, computed as z, openBlock as l, createBlock as t, unref as n, withCtx as y, createElementVNode as S, normalizeClass as d, createElementBlock as o, createVNode as m, createCommentVNode as r, withDirectives as A, normalizeStyle as H, Fragment as i, createTextVNode as C, toDisplayString as B, vShow as N, renderList as j } from "vue";
|
|
2
|
+
import { Disclosure as V, DisclosureButton as E, DisclosurePanel as T } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as $, ScalarIcon as O } from "@scalar/components";
|
|
4
|
+
import F from "./SchemaHeading.vue.js";
|
|
5
|
+
import v from "./SchemaProperty.vue.js";
|
|
6
|
+
const I = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "schema-card-description"
|
|
9
|
-
},
|
|
9
|
+
}, R = /* @__PURE__ */ q({
|
|
10
10
|
__name: "Schema",
|
|
11
11
|
props: {
|
|
12
12
|
value: { type: [Object, Boolean] },
|
|
@@ -16,61 +16,61 @@ const F = {
|
|
|
16
16
|
noncollapsible: { type: Boolean },
|
|
17
17
|
hideHeading: { type: Boolean }
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
return (e,
|
|
19
|
+
setup(w) {
|
|
20
|
+
const h = w, k = z(() => !(h.noncollapsible || h.level === 0)), D = (e) => h.noncollapsible && e.stopPropagation();
|
|
21
|
+
return (e, L) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(n(V), {
|
|
22
22
|
key: 0,
|
|
23
23
|
defaultOpen: e.noncollapsible
|
|
24
24
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
var
|
|
25
|
+
default: y(({ open: s }) => {
|
|
26
|
+
var f;
|
|
27
27
|
return [
|
|
28
|
-
|
|
29
|
-
class:
|
|
28
|
+
S("div", {
|
|
29
|
+
class: d(["schema-card", [
|
|
30
30
|
`schema-card--level-${e.level}`,
|
|
31
31
|
{ "schema-card--compact": e.compact, "schema-card--open": s }
|
|
32
32
|
]])
|
|
33
33
|
}, [
|
|
34
|
-
(
|
|
35
|
-
|
|
34
|
+
(f = e.value) != null && f.description && typeof e.value.description == "string" ? (l(), o("div", I, [
|
|
35
|
+
m(n($), {
|
|
36
36
|
value: e.value.description
|
|
37
37
|
}, null, 8, ["value"])
|
|
38
|
-
])) :
|
|
39
|
-
|
|
40
|
-
class:
|
|
38
|
+
])) : r("", !0),
|
|
39
|
+
S("div", {
|
|
40
|
+
class: d(["schema-properties", { "schema-properties-open": s }])
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
A(m(n(E), {
|
|
43
43
|
as: e.noncollapsible ? "div" : "button",
|
|
44
|
-
class:
|
|
45
|
-
style:
|
|
44
|
+
class: d(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
45
|
+
style: H({
|
|
46
46
|
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
47
47
|
}),
|
|
48
|
-
onClickCapture:
|
|
48
|
+
onClickCapture: D
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
var c, a
|
|
50
|
+
default: y(() => {
|
|
51
|
+
var u, c, a;
|
|
52
52
|
return [
|
|
53
|
-
e.compact ? (l(), o(
|
|
54
|
-
|
|
53
|
+
e.compact ? (l(), o(i, { key: 0 }, [
|
|
54
|
+
k.value ? (l(), t(n(O), {
|
|
55
55
|
key: 0,
|
|
56
|
-
class:
|
|
56
|
+
class: d(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
|
|
57
57
|
icon: "Add",
|
|
58
58
|
size: "sm"
|
|
59
|
-
}, null, 8, ["class"])) :
|
|
60
|
-
s ? (l(), o(
|
|
61
|
-
|
|
62
|
-
], 64)) : (l(), o(
|
|
63
|
-
|
|
59
|
+
}, null, 8, ["class"])) : r("", !0),
|
|
60
|
+
s ? (l(), o(i, { key: 1 }, [
|
|
61
|
+
C(" Hide " + B(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
|
|
62
|
+
], 64)) : (l(), o(i, { key: 2 }, [
|
|
63
|
+
C(" Show " + B(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
|
|
64
64
|
], 64))
|
|
65
|
-
], 64)) : (l(), o(
|
|
66
|
-
|
|
65
|
+
], 64)) : (l(), o(i, { key: 1 }, [
|
|
66
|
+
k.value ? (l(), t(n(O), {
|
|
67
67
|
key: 0,
|
|
68
|
-
class:
|
|
68
|
+
class: d(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
|
|
69
69
|
icon: "Add",
|
|
70
70
|
size: "sm"
|
|
71
|
-
}, null, 8, ["class"])) :
|
|
72
|
-
|
|
73
|
-
name: ((
|
|
71
|
+
}, null, 8, ["class"])) : r("", !0),
|
|
72
|
+
m(F, {
|
|
73
|
+
name: ((a = e.value) == null ? void 0 : a.title) ?? e.name,
|
|
74
74
|
value: e.value
|
|
75
75
|
}, null, 8, ["name", "value"])
|
|
76
76
|
], 64))
|
|
@@ -78,26 +78,37 @@ const F = {
|
|
|
78
78
|
}),
|
|
79
79
|
_: 2
|
|
80
80
|
}, 1032, ["as", "class", "style"]), [
|
|
81
|
-
[
|
|
81
|
+
[N, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
82
82
|
]),
|
|
83
|
-
|
|
84
|
-
default:
|
|
85
|
-
var c;
|
|
83
|
+
m(n(T), { static: e.noncollapsible }, {
|
|
84
|
+
default: y(() => {
|
|
85
|
+
var u, c;
|
|
86
86
|
return [
|
|
87
|
-
e.value.properties || e.value.additionalProperties ? (l(), o(
|
|
88
|
-
e.value.properties ? (l(!0), o(
|
|
89
|
-
var
|
|
90
|
-
return l(),
|
|
87
|
+
e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (l(), o(i, { key: 0 }, [
|
|
88
|
+
e.value.properties ? (l(!0), o(i, { key: 0 }, j(Object.keys((u = e.value) == null ? void 0 : u.properties), (a) => {
|
|
89
|
+
var p, b, P, g;
|
|
90
|
+
return l(), t(v, {
|
|
91
91
|
key: a,
|
|
92
92
|
compact: e.compact,
|
|
93
93
|
level: e.level,
|
|
94
94
|
name: a,
|
|
95
|
-
required: ((
|
|
95
|
+
required: ((p = e.value.required) == null ? void 0 : p.includes(a)) || ((P = (b = e.value.properties) == null ? void 0 : b[a]) == null ? void 0 : P.required) === !0,
|
|
96
96
|
value: (g = e.value.properties) == null ? void 0 : g[a]
|
|
97
97
|
}, null, 8, ["compact", "level", "name", "required", "value"]);
|
|
98
|
-
}), 128)) :
|
|
99
|
-
e.value.
|
|
100
|
-
|
|
98
|
+
}), 128)) : r("", !0),
|
|
99
|
+
e.value.patternProperties ? (l(!0), o(i, { key: 1 }, j(Object.keys((c = e.value) == null ? void 0 : c.patternProperties), (a) => {
|
|
100
|
+
var p;
|
|
101
|
+
return l(), t(v, {
|
|
102
|
+
key: a,
|
|
103
|
+
compact: e.compact,
|
|
104
|
+
level: e.level,
|
|
105
|
+
name: a,
|
|
106
|
+
pattern: "",
|
|
107
|
+
value: (p = e.value.patternProperties) == null ? void 0 : p[a]
|
|
108
|
+
}, null, 8, ["compact", "level", "name", "value"]);
|
|
109
|
+
}), 128)) : r("", !0),
|
|
110
|
+
e.value.additionalProperties ? (l(), o(i, { key: 2 }, [
|
|
111
|
+
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(v, {
|
|
101
112
|
key: 0,
|
|
102
113
|
additional: "",
|
|
103
114
|
compact: e.compact,
|
|
@@ -107,7 +118,7 @@ const F = {
|
|
|
107
118
|
type: "anything",
|
|
108
119
|
...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
|
|
109
120
|
}
|
|
110
|
-
}, null, 8, ["compact", "level", "value"])) : (l(),
|
|
121
|
+
}, null, 8, ["compact", "level", "value"])) : (l(), t(v, {
|
|
111
122
|
key: 1,
|
|
112
123
|
additional: "",
|
|
113
124
|
compact: e.compact,
|
|
@@ -115,8 +126,8 @@ const F = {
|
|
|
115
126
|
noncollapsible: "",
|
|
116
127
|
value: e.value.additionalProperties
|
|
117
128
|
}, null, 8, ["compact", "level", "value"]))
|
|
118
|
-
], 64)) :
|
|
119
|
-
], 64)) : (l(),
|
|
129
|
+
], 64)) : r("", !0)
|
|
130
|
+
], 64)) : (l(), t(v, {
|
|
120
131
|
key: 1,
|
|
121
132
|
compact: e.compact,
|
|
122
133
|
level: e.level,
|
|
@@ -132,9 +143,9 @@ const F = {
|
|
|
132
143
|
];
|
|
133
144
|
}),
|
|
134
145
|
_: 1
|
|
135
|
-
}, 8, ["defaultOpen"])) :
|
|
146
|
+
}, 8, ["defaultOpen"])) : r("", !0);
|
|
136
147
|
}
|
|
137
148
|
});
|
|
138
149
|
export {
|
|
139
|
-
|
|
150
|
+
R as default
|
|
140
151
|
};
|
|
@@ -6,6 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
compact?: boolean;
|
|
7
7
|
description?: string;
|
|
8
8
|
additional?: boolean;
|
|
9
|
+
pattern?: boolean;
|
|
9
10
|
withExamples?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
@@ -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":"AAicA,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;;AA8Y1B,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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a8cba913"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|