@scalar/api-reference 1.31.9 → 1.31.11
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 +23 -0
- package/dist/browser/standalone.js +1906 -1901
- 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 +125 -118
- 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 +38 -38
- 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 +27 -27
- 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 +101 -92
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +21 -13
- package/dist/components/MobileHeader.vue.d.ts +4 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/MobileHeader.vue2.js +18 -19
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +20 -20
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as f, createElementBlock as i, openBlock as
|
|
1
|
+
import { defineComponent as F, computed as f, createElementBlock as i, openBlock as s, Fragment as v, createStaticVNode as G, createElementVNode as E, renderSlot as y, createBlock as t, createCommentVNode as c, unref as r, withCtx as U, createVNode as m, normalizeClass as I, renderList as O } from "vue";
|
|
2
2
|
import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
|
|
3
3
|
import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
|
|
4
4
|
import { ScalarErrorBoundary as J } from "@scalar/components";
|
|
@@ -16,7 +16,7 @@ import x from "./Models/Models.vue.js";
|
|
|
16
16
|
const ee = { class: "narrow-references-container" }, re = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
|
|
19
|
-
},
|
|
19
|
+
}, ae = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
22
22
|
}, he = /* @__PURE__ */ F({
|
|
@@ -32,7 +32,7 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
32
32
|
activeEnvVariables: L,
|
|
33
33
|
activeEnvironment: j,
|
|
34
34
|
activeWorkspace: g
|
|
35
|
-
} = D(),
|
|
35
|
+
} = D(), a = f(() => {
|
|
36
36
|
if (u.value.slug) {
|
|
37
37
|
const e = B[K(u.value.slug)];
|
|
38
38
|
if (e)
|
|
@@ -40,31 +40,31 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
40
40
|
}
|
|
41
41
|
return W.value;
|
|
42
42
|
}), o = f(() => {
|
|
43
|
-
if (
|
|
44
|
-
if (
|
|
45
|
-
const e = h[
|
|
43
|
+
if (a.value) {
|
|
44
|
+
if (a.value.selectedServerUid) {
|
|
45
|
+
const e = h[a.value.selectedServerUid];
|
|
46
46
|
if (e)
|
|
47
47
|
return e;
|
|
48
48
|
}
|
|
49
|
-
return h[
|
|
49
|
+
return h[a.value.servers[0]];
|
|
50
50
|
}
|
|
51
51
|
}), q = f(
|
|
52
52
|
() => M.layout === "classic" ? "after" : "aside"
|
|
53
53
|
);
|
|
54
54
|
return (e, k) => {
|
|
55
55
|
var b, C, w, A, V;
|
|
56
|
-
return
|
|
57
|
-
k[0] || (k[0] = G('<div class="section-flare" data-v-
|
|
56
|
+
return s(), i(v, null, [
|
|
57
|
+
k[0] || (k[0] = G('<div class="section-flare" data-v-86bac6ee><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div></div>', 1)),
|
|
58
58
|
E("div", ee, [
|
|
59
59
|
y(e.$slots, "start", {}, void 0, !0),
|
|
60
|
-
|
|
60
|
+
a.value ? (s(), t(r(T), {
|
|
61
61
|
key: 0,
|
|
62
|
-
collection:
|
|
62
|
+
collection: a.value,
|
|
63
63
|
layout: e.layout,
|
|
64
64
|
parsedSpec: e.parsedSpec,
|
|
65
65
|
server: o.value
|
|
66
66
|
}, null, 8, ["collection", "layout", "parsedSpec", "server"])) : c("", !0),
|
|
67
|
-
(C = (b = e.document) == null ? void 0 : b.info) != null && C.title || (A = (w = e.document) == null ? void 0 : w.info) != null && A.description ? (
|
|
67
|
+
(C = (b = e.document) == null ? void 0 : b.info) != null && C.title || (A = (w = e.document) == null ? void 0 : w.info) != null && A.description ? (s(), t(r(X), {
|
|
68
68
|
key: 1,
|
|
69
69
|
document: e.document
|
|
70
70
|
}, {
|
|
@@ -76,20 +76,20 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
76
76
|
E("div", {
|
|
77
77
|
class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
|
|
78
78
|
}, [
|
|
79
|
-
(l = (n =
|
|
79
|
+
(l = (n = a.value) == null ? void 0 : n.servers) != null && l.length ? (s(), i("div", re, [
|
|
80
80
|
m(r(Y), {
|
|
81
|
-
collection:
|
|
81
|
+
collection: a.value,
|
|
82
82
|
server: o.value
|
|
83
83
|
}, null, 8, ["collection", "server"])
|
|
84
84
|
])) : c("", !0),
|
|
85
|
-
|
|
85
|
+
a.value && r(g) && Object.keys(r(N) ?? {}).length ? (s(), i("div", ae, [
|
|
86
86
|
m(r(H), {
|
|
87
|
-
collection:
|
|
87
|
+
collection: a.value,
|
|
88
88
|
envVariables: r(L),
|
|
89
89
|
environment: r(j),
|
|
90
90
|
layout: "reference",
|
|
91
91
|
persistAuth: r(u).persistAuth,
|
|
92
|
-
selectedSecuritySchemeUids: ((d =
|
|
92
|
+
selectedSecuritySchemeUids: ((d = a.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
|
|
93
93
|
server: o.value,
|
|
94
94
|
title: "Authentication",
|
|
95
95
|
workspace: r(g)
|
|
@@ -104,10 +104,10 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
104
104
|
]),
|
|
105
105
|
_: 2
|
|
106
106
|
}, 1032, ["document"])) : y(e.$slots, "empty-state", { key: 2 }, void 0, !0),
|
|
107
|
-
e.parsedSpec.tags &&
|
|
108
|
-
e.parsedSpec["x-tagGroups"] ? (
|
|
107
|
+
e.parsedSpec.tags && a.value ? (s(), i(v, { key: 3 }, [
|
|
108
|
+
e.parsedSpec["x-tagGroups"] ? (s(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (s(), t(r(S), {
|
|
109
109
|
key: n.name,
|
|
110
|
-
collection:
|
|
110
|
+
collection: a.value,
|
|
111
111
|
layout: e.layout,
|
|
112
112
|
server: o.value,
|
|
113
113
|
spec: e.parsedSpec,
|
|
@@ -115,9 +115,9 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
115
115
|
var d;
|
|
116
116
|
return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === l);
|
|
117
117
|
}).filter((l) => !!l)
|
|
118
|
-
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (
|
|
118
|
+
}, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (s(), t(r(S), {
|
|
119
119
|
key: 1,
|
|
120
|
-
collection:
|
|
120
|
+
collection: a.value,
|
|
121
121
|
layout: e.layout,
|
|
122
122
|
schemas: r(p)(e.parsedSpec),
|
|
123
123
|
server: o.value,
|
|
@@ -125,10 +125,10 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
125
125
|
tags: e.parsedSpec.tags
|
|
126
126
|
}, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
|
|
127
127
|
], 64)) : c("", !0),
|
|
128
|
-
(V = e.parsedSpec.webhooks) != null && V.length &&
|
|
128
|
+
(V = e.parsedSpec.webhooks) != null && V.length && a.value ? (s(), t(r(S), {
|
|
129
129
|
key: 4,
|
|
130
130
|
id: "webhooks",
|
|
131
|
-
collection:
|
|
131
|
+
collection: a.value,
|
|
132
132
|
layout: e.layout,
|
|
133
133
|
schemas: r(p)(e.parsedSpec),
|
|
134
134
|
server: o.value,
|
|
@@ -141,11 +141,11 @@ const ee = { class: "narrow-references-container" }, re = {
|
|
|
141
141
|
}
|
|
142
142
|
]
|
|
143
143
|
}, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"])) : c("", !0),
|
|
144
|
-
r(Q)(e.parsedSpec) && !r(u).hideModels ? (
|
|
145
|
-
e.layout === "classic" ? (
|
|
144
|
+
r(Q)(e.parsedSpec) && !r(u).hideModels ? (s(), i(v, { key: 5 }, [
|
|
145
|
+
e.layout === "classic" ? (s(), t(r(_), {
|
|
146
146
|
key: 0,
|
|
147
147
|
schemas: r(p)(e.parsedSpec)
|
|
148
|
-
}, null, 8, ["schemas"])) : (
|
|
148
|
+
}, null, 8, ["schemas"])) : (s(), t(r(x), {
|
|
149
149
|
key: 1,
|
|
150
150
|
schemas: r(p)(e.parsedSpec)
|
|
151
151
|
}, null, 8, ["schemas"]))
|
|
@@ -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":"AAopBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,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;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAKA,OAAO;kBADT,OAAO;;AA8oB1B,0BASG"}
|
|
@@ -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 m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5fc4e3c4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as W, computed as
|
|
1
|
+
import { defineComponent as W, computed as o, inject as Y, createBlock as h, openBlock as t, resolveDynamicComponent as _, normalizeClass as R, withCtx as f, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as B, toDisplayString as v, unref as p, Fragment as g, renderList as M, createElementVNode as k } from "vue";
|
|
2
2
|
import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
|
|
3
|
-
import { ScalarMarkdown as
|
|
3
|
+
import { ScalarMarkdown as O, ScalarIcon as te } from "@scalar/components";
|
|
4
4
|
import { optimizeValueForDisplay as ae, compositions as re } from "./helpers/optimizeValueForDisplay.js";
|
|
5
5
|
import { DISCRIMINATOR_CONTEXT as oe } from "../../../hooks/useDiscriminator.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import T from "./Schema.vue.js";
|
|
7
|
+
import q from "./SchemaComposition.vue.js";
|
|
8
8
|
import se from "./SchemaDiscriminator.vue.js";
|
|
9
9
|
import le from "./SchemaPropertyHeading.vue.js";
|
|
10
10
|
import me from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
@@ -20,13 +20,13 @@ const pe = {
|
|
|
20
20
|
}, ue = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "property-list"
|
|
23
|
-
}, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" },
|
|
23
|
+
}, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ve = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "property-enum-values"
|
|
26
|
-
},
|
|
26
|
+
}, ge = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
|
|
27
27
|
key: 4,
|
|
28
28
|
class: "children"
|
|
29
|
-
},
|
|
29
|
+
}, De = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "children"
|
|
32
32
|
}, Ve = /* @__PURE__ */ W({
|
|
@@ -51,8 +51,8 @@ const pe = {
|
|
|
51
51
|
isDiscriminator: { type: Boolean }
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:modelValue"],
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
54
|
+
setup(F, { emit: U }) {
|
|
55
|
+
const D = F, $ = U, E = {
|
|
56
56
|
integer: {
|
|
57
57
|
_default: "Integer numbers.",
|
|
58
58
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,63 +65,69 @@ const pe = {
|
|
|
65
65
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
66
|
binary: "binary data, used to describe files"
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, P = (e, n) => n != null && n.properties || n != null && n.additionalProperties || n != null && n.patternProperties || n != null && n.allOf ? null : e || (n == null ? void 0 : n.description) || null, C = (e) => !e || !E[e.type] ? null : E[e.type][e.format || "_default"], u = (e) => {
|
|
69
69
|
var n;
|
|
70
70
|
return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
|
|
71
|
-
},
|
|
72
|
-
() =>
|
|
73
|
-
),
|
|
74
|
-
() =>
|
|
75
|
-
),
|
|
76
|
-
() =>
|
|
77
|
-
), i =
|
|
71
|
+
}, H = o(
|
|
72
|
+
() => u(i.value).length > 9
|
|
73
|
+
), V = o(() => H.value ? 5 : 9), z = o(
|
|
74
|
+
() => u(i.value).slice(0, V.value)
|
|
75
|
+
), L = o(
|
|
76
|
+
() => u(i.value).slice(V.value)
|
|
77
|
+
), i = o(() => ae(D.value)), d = Y(oe, null), s = o(() => {
|
|
78
78
|
var e;
|
|
79
|
-
return
|
|
80
|
-
}),
|
|
79
|
+
return D.level > 0 ? i.value : (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema : i.value;
|
|
80
|
+
}), Z = o(() => {
|
|
81
81
|
var e;
|
|
82
|
-
return ((e =
|
|
83
|
-
}),
|
|
84
|
-
|
|
85
|
-
},
|
|
82
|
+
return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (D.discriminatorMapping ? Object.keys(D.discriminatorMapping)[0] : "");
|
|
83
|
+
}), X = (e, n, y, N, S) => n || y || N || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || S, j = (e) => {
|
|
84
|
+
$("update:modelValue", e);
|
|
85
|
+
}, A = o(() => {
|
|
86
86
|
const e = i.value;
|
|
87
87
|
if (!(e != null && e.items) || typeof e.items != "object")
|
|
88
88
|
return !1;
|
|
89
89
|
const n = e.items;
|
|
90
90
|
return "type" in n && ["object"].includes(n.type) || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
|
|
91
|
-
}),
|
|
91
|
+
}), G = (e) => {
|
|
92
92
|
const n = i.value;
|
|
93
|
-
return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !
|
|
94
|
-
},
|
|
93
|
+
return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !A.value;
|
|
94
|
+
}, J = o(() => A.value), K = o(() => {
|
|
95
95
|
if (!i.value)
|
|
96
96
|
return !1;
|
|
97
|
-
const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"),
|
|
98
|
-
return n &&
|
|
97
|
+
const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), y = e.properties || e.additionalProperties;
|
|
98
|
+
return n && y;
|
|
99
|
+
}), Q = o(() => {
|
|
100
|
+
var n;
|
|
101
|
+
if (!((n = i.value) != null && n["x-enumDescriptions"]))
|
|
102
|
+
return !1;
|
|
103
|
+
const e = i.value["x-enumDescriptions"];
|
|
104
|
+
return typeof e == "object" && !Array.isArray(e);
|
|
99
105
|
});
|
|
100
106
|
return (e, n) => {
|
|
101
|
-
var
|
|
102
|
-
return t(),
|
|
103
|
-
class:
|
|
104
|
-
(
|
|
107
|
+
var y;
|
|
108
|
+
return t(), h(_(e.is ?? "li"), {
|
|
109
|
+
class: R(["property", [
|
|
110
|
+
(P(e.description, i.value), ""),
|
|
105
111
|
`property--level-${e.level}`,
|
|
106
112
|
{
|
|
107
113
|
"property--compact": e.compact,
|
|
108
|
-
"property--deprecated": (
|
|
114
|
+
"property--deprecated": (y = i.value) == null ? void 0 : y.deprecated
|
|
109
115
|
}
|
|
110
116
|
]])
|
|
111
117
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
var N,
|
|
118
|
+
default: f(() => {
|
|
119
|
+
var N, S, w;
|
|
114
120
|
return [
|
|
115
|
-
|
|
121
|
+
X(
|
|
116
122
|
i.value,
|
|
117
123
|
e.name,
|
|
118
124
|
e.additional,
|
|
119
125
|
e.pattern,
|
|
120
126
|
e.required
|
|
121
|
-
) ? (t(),
|
|
127
|
+
) ? (t(), h(le, {
|
|
122
128
|
key: 0,
|
|
123
129
|
additional: e.additional,
|
|
124
|
-
enum:
|
|
130
|
+
enum: u(i.value).length > 0,
|
|
125
131
|
pattern: e.pattern,
|
|
126
132
|
required: e.required,
|
|
127
133
|
value: i.value,
|
|
@@ -130,71 +136,74 @@ const pe = {
|
|
|
130
136
|
}, x({ _: 2 }, [
|
|
131
137
|
e.name ? {
|
|
132
138
|
name: "name",
|
|
133
|
-
fn:
|
|
134
|
-
|
|
139
|
+
fn: f(() => [
|
|
140
|
+
B(v(e.name), 1)
|
|
135
141
|
]),
|
|
136
142
|
key: "0"
|
|
137
143
|
} : void 0,
|
|
138
144
|
(N = i.value) != null && N.example ? {
|
|
139
145
|
name: "example",
|
|
140
|
-
fn:
|
|
141
|
-
|
|
146
|
+
fn: f(() => [
|
|
147
|
+
B(" Example: " + v(i.value.example), 1)
|
|
142
148
|
]),
|
|
143
149
|
key: "1"
|
|
144
150
|
} : void 0
|
|
145
151
|
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
|
|
146
|
-
|
|
147
|
-
m(p(
|
|
148
|
-
value:
|
|
152
|
+
P(e.description, i.value) ? (t(), r("div", pe, [
|
|
153
|
+
m(p(O), {
|
|
154
|
+
value: P(e.description, i.value)
|
|
149
155
|
}, null, 8, ["value"])
|
|
150
156
|
])) : C(i.value) ? (t(), r("div", ce, [
|
|
151
|
-
m(p(
|
|
157
|
+
m(p(O), {
|
|
152
158
|
value: C(i.value) || ""
|
|
153
159
|
}, null, 8, ["value"])
|
|
154
160
|
])) : l("", !0),
|
|
155
|
-
((
|
|
156
|
-
|
|
157
|
-
(t(!0), r(g, null,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
161
|
+
((S = u(i.value)) == null ? void 0 : S.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
|
|
162
|
+
Q.value ? (t(), r("div", ue, [
|
|
163
|
+
(t(!0), r(g, null, M(u(i.value), (a) => {
|
|
164
|
+
var c, b;
|
|
165
|
+
return t(), r("div", {
|
|
166
|
+
key: a,
|
|
167
|
+
class: "property"
|
|
168
|
+
}, [
|
|
169
|
+
k("div", ye, [
|
|
170
|
+
k("div", he, v(a), 1)
|
|
171
|
+
]),
|
|
172
|
+
k("div", fe, [
|
|
173
|
+
m(p(O), {
|
|
174
|
+
value: (b = (c = i.value) == null ? void 0 : c["x-enumDescriptions"]) == null ? void 0 : b[a]
|
|
175
|
+
}, null, 8, ["value"])
|
|
176
|
+
])
|
|
177
|
+
]);
|
|
178
|
+
}), 128))
|
|
179
|
+
])) : (t(), r("ul", ve, [
|
|
180
|
+
(t(!0), r(g, null, M(z.value, (a) => (t(), r("li", {
|
|
172
181
|
key: a,
|
|
173
182
|
class: "property-enum-value"
|
|
174
183
|
}, [
|
|
175
|
-
|
|
184
|
+
k("span", ge, v(a), 1)
|
|
176
185
|
]))), 128)),
|
|
177
|
-
|
|
178
|
-
default:
|
|
186
|
+
H.value ? (t(), h(p(ee), { key: 0 }, {
|
|
187
|
+
default: f(({ open: a }) => [
|
|
179
188
|
m(p(ne), null, {
|
|
180
|
-
default:
|
|
181
|
-
(t(!0), r(g, null,
|
|
182
|
-
key:
|
|
189
|
+
default: f(() => [
|
|
190
|
+
(t(!0), r(g, null, M(L.value, (c) => (t(), r("li", {
|
|
191
|
+
key: c,
|
|
183
192
|
class: "property-enum-value"
|
|
184
193
|
}, [
|
|
185
|
-
|
|
194
|
+
k("span", be, v(c), 1)
|
|
186
195
|
]))), 128))
|
|
187
196
|
]),
|
|
188
197
|
_: 1
|
|
189
198
|
}),
|
|
190
199
|
m(p(ie), { class: "enum-toggle-button" }, {
|
|
191
|
-
default:
|
|
200
|
+
default: f(() => [
|
|
192
201
|
m(p(te), {
|
|
193
|
-
class:
|
|
202
|
+
class: R(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
|
|
194
203
|
icon: "Add",
|
|
195
204
|
size: "sm"
|
|
196
205
|
}, null, 8, ["class"]),
|
|
197
|
-
|
|
206
|
+
B(" " + v(a ? "Hide values" : "Show all values"), 1)
|
|
198
207
|
]),
|
|
199
208
|
_: 2
|
|
200
209
|
}, 1024)
|
|
@@ -203,40 +212,40 @@ const pe = {
|
|
|
203
212
|
})) : l("", !0)
|
|
204
213
|
]))
|
|
205
214
|
])) : l("", !0),
|
|
206
|
-
|
|
207
|
-
m(
|
|
215
|
+
K.value ? (t(), r("div", ke, [
|
|
216
|
+
m(T, {
|
|
208
217
|
compact: e.compact,
|
|
209
218
|
level: e.level + 1,
|
|
210
219
|
name: e.name,
|
|
211
220
|
noncollapsible: e.noncollapsible,
|
|
212
|
-
value:
|
|
213
|
-
resolvedSchema:
|
|
221
|
+
value: s.value,
|
|
222
|
+
resolvedSchema: s.value,
|
|
214
223
|
discriminatorMapping: e.discriminatorMapping,
|
|
215
224
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
216
225
|
schemas: e.schemas,
|
|
217
|
-
"onUpdate:modelValue":
|
|
226
|
+
"onUpdate:modelValue": j
|
|
218
227
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
219
228
|
])) : l("", !0),
|
|
220
|
-
(
|
|
221
|
-
|
|
222
|
-
m(
|
|
229
|
+
(w = i.value) != null && w.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
|
|
230
|
+
J.value ? (t(), r("div", De, [
|
|
231
|
+
m(T, {
|
|
223
232
|
compact: e.compact,
|
|
224
233
|
level: e.level + 1,
|
|
225
234
|
name: e.name,
|
|
226
235
|
noncollapsible: e.noncollapsible,
|
|
227
|
-
value:
|
|
228
|
-
resolvedSchema:
|
|
236
|
+
value: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
|
|
237
|
+
resolvedSchema: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
|
|
229
238
|
discriminatorMapping: e.discriminatorMapping,
|
|
230
239
|
discriminatorPropertyName: e.discriminatorPropertyName,
|
|
231
240
|
schemas: e.schemas,
|
|
232
|
-
"onUpdate:modelValue":
|
|
241
|
+
"onUpdate:modelValue": j
|
|
233
242
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
234
243
|
])) : l("", !0)
|
|
235
244
|
], 64)) : l("", !0),
|
|
236
|
-
(t(!0), r(g, null,
|
|
237
|
-
var
|
|
245
|
+
(t(!0), r(g, null, M(p(re), (a) => {
|
|
246
|
+
var c, b, I;
|
|
238
247
|
return t(), r(g, { key: a }, [
|
|
239
|
-
(
|
|
248
|
+
(c = i.value) != null && c[a] && !((b = i.value) != null && b.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), h(q, {
|
|
240
249
|
key: 0,
|
|
241
250
|
compact: e.compact,
|
|
242
251
|
composition: a,
|
|
@@ -246,7 +255,7 @@ const pe = {
|
|
|
246
255
|
noncollapsible: e.noncollapsible,
|
|
247
256
|
schemas: e.schemas,
|
|
248
257
|
value: i.value
|
|
249
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) :
|
|
258
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : G(a) ? (t(), h(q, {
|
|
250
259
|
key: 1,
|
|
251
260
|
compact: e.compact,
|
|
252
261
|
composition: a,
|
|
@@ -255,15 +264,15 @@ const pe = {
|
|
|
255
264
|
name: e.name,
|
|
256
265
|
noncollapsible: e.noncollapsible,
|
|
257
266
|
schemas: e.schemas,
|
|
258
|
-
value: (
|
|
267
|
+
value: (I = i.value) == null ? void 0 : I.items
|
|
259
268
|
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
|
|
260
269
|
], 64);
|
|
261
270
|
}), 128)),
|
|
262
|
-
e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(),
|
|
271
|
+
e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), h(se, {
|
|
263
272
|
key: 6,
|
|
264
273
|
"discriminator-mapping": e.discriminatorMapping,
|
|
265
|
-
discriminator:
|
|
266
|
-
"onUpdate:modelValue":
|
|
274
|
+
discriminator: Z.value,
|
|
275
|
+
"onUpdate:modelValue": j
|
|
267
276
|
}, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
|
|
268
277
|
m(p(me), { value: i.value }, null, 8, ["value"])
|
|
269
278
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAG9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAG9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAuEzG"}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
import { mergeAllOfSchemas as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
var
|
|
1
|
+
import { mergeAllOfSchemas as y } from "./merge-all-of-schemas.js";
|
|
2
|
+
const m = ["oneOf", "anyOf", "allOf", "not"];
|
|
3
|
+
function O(i) {
|
|
4
|
+
var p;
|
|
5
5
|
if (!i || typeof i != "object")
|
|
6
6
|
return i;
|
|
7
7
|
let r = { ...i };
|
|
8
|
-
const o =
|
|
8
|
+
const o = m.find((t) => r == null ? void 0 : r[t]);
|
|
9
9
|
if (!o || o === "not")
|
|
10
10
|
return r;
|
|
11
|
-
const
|
|
12
|
-
if (!Array.isArray(
|
|
11
|
+
const c = r == null ? void 0 : r[o];
|
|
12
|
+
if (!Array.isArray(c))
|
|
13
13
|
return r;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const l = c.map((t) => {
|
|
15
|
+
if (t.allOf && Array.isArray(t.allOf)) {
|
|
16
|
+
const s = y(t.allOf);
|
|
17
|
+
return Object.keys(t).forEach((f) => {
|
|
18
|
+
!m.includes(f) && !(f in s) && (s[f] = t[f]);
|
|
19
|
+
}), s;
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
});
|
|
23
|
+
l.some((t) => t.type === "null") && (r.nullable = !0);
|
|
24
|
+
const n = l.filter((t) => t.type !== "null");
|
|
25
|
+
return n.length === 1 && (r != null && r[o]) ? (r = { ...r, ...n[0] }, r == null || delete r[o], r) : (Array.isArray(r == null ? void 0 : r[o]) && ((p = r == null ? void 0 : r[o]) == null ? void 0 : p.length) > 1 && (r[o] = n), r);
|
|
18
26
|
}
|
|
19
27
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
m as compositions,
|
|
29
|
+
O as optimizeValueForDisplay
|
|
22
30
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
breadcrumb: string;
|
|
3
|
+
};
|
|
1
4
|
declare function __VLS_template(): {
|
|
2
5
|
attrs: Partial<{}>;
|
|
3
6
|
slots: {
|
|
@@ -7,7 +10,7 @@ declare function __VLS_template(): {
|
|
|
7
10
|
rootEl: HTMLDivElement;
|
|
8
11
|
};
|
|
9
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
13
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
15
|
export default _default;
|
|
13
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":"AAuEA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AAQF,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,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 "./MobileHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-fa8b013a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|