@scalar/api-reference 1.28.13 → 1.28.14
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 +16 -0
- package/dist/browser/standalone.js +7124 -7120
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.js +7 -7
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +18 -19
- package/dist/components/Content/Lazy/Loading.vue.d.ts +8 -17
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +50 -44
- 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 +84 -71
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +1 -0
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +23 -20
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -1
- 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 +159 -148
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -0
- 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/RequestBody.vue2.js +29 -26
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +42 -29
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +3 -3
- package/dist/features/Search/SearchModal.vue2.js +102 -96
- package/dist/features/Search/useSearchIndex.d.ts +2 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +55 -52
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarMarkdown as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { defineComponent as V, computed as E, openBlock as a, createBlock as i, unref as r, withCtx as d, createElementVNode as j, normalizeClass as p, createElementBlock as o, createCommentVNode as s, withDirectives as w, createVNode as y, createTextVNode as v, toDisplayString as k, vShow as z, normalizeStyle as T, Fragment as n, renderList as A } from "vue";
|
|
2
|
+
import { Disclosure as $, DisclosureButton as D, DisclosurePanel as F } from "@headlessui/vue";
|
|
3
|
+
import { ScalarMarkdown as I, ScalarIcon as g } from "@scalar/components";
|
|
4
|
+
import q from "../../ScreenReader.vue.js";
|
|
5
|
+
import L from "./SchemaHeading.vue.js";
|
|
6
|
+
import h from "./SchemaProperty.vue.js";
|
|
7
|
+
const M = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "schema-card-description"
|
|
9
|
-
},
|
|
10
|
+
}, R = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "schema-properties"
|
|
12
|
-
},
|
|
13
|
+
}, X = /* @__PURE__ */ V({
|
|
13
14
|
__name: "Schema",
|
|
14
15
|
props: {
|
|
15
16
|
value: { type: [Object, Boolean] },
|
|
@@ -21,83 +22,95 @@ const L = {
|
|
|
21
22
|
additionalProperties: { type: Boolean },
|
|
22
23
|
schemas: {}
|
|
23
24
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
return (e,
|
|
25
|
+
setup(N) {
|
|
26
|
+
const f = N, b = E(() => !(f.noncollapsible || f.level === 0)), H = (e) => f.noncollapsible && e.stopPropagation();
|
|
27
|
+
return (e, P) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), i(r($), {
|
|
27
28
|
key: 0,
|
|
28
29
|
defaultOpen: e.noncollapsible
|
|
29
30
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
var
|
|
31
|
+
default: d(({ open: t }) => {
|
|
32
|
+
var S;
|
|
32
33
|
return [
|
|
33
|
-
|
|
34
|
-
class:
|
|
34
|
+
j("div", {
|
|
35
|
+
class: p(["schema-card", [
|
|
35
36
|
`schema-card--level-${e.level}`,
|
|
36
|
-
{ "schema-card--compact": e.compact, "schema-card--open":
|
|
37
|
-
{ "border-t-1/2": e.additionalProperties &&
|
|
37
|
+
{ "schema-card--compact": e.compact, "schema-card--open": t },
|
|
38
|
+
{ "border-t-1/2": e.additionalProperties && t }
|
|
38
39
|
]])
|
|
39
40
|
}, [
|
|
40
|
-
(
|
|
41
|
-
e.value.enum ?
|
|
41
|
+
(S = e.value) != null && S.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), o("div", M, [
|
|
42
|
+
e.value.enum ? s("", !0) : (a(), i(r(I), {
|
|
42
43
|
key: 0,
|
|
43
44
|
value: e.value.description
|
|
44
45
|
}, null, 8, ["value"]))
|
|
45
|
-
])) :
|
|
46
|
-
|
|
47
|
-
class:
|
|
48
|
-
"schema-properties-open":
|
|
46
|
+
])) : s("", !0),
|
|
47
|
+
j("div", {
|
|
48
|
+
class: p(["schema-properties", {
|
|
49
|
+
"schema-properties-open": t
|
|
49
50
|
}])
|
|
50
51
|
}, [
|
|
51
|
-
e.additionalProperties ?
|
|
52
|
-
|
|
52
|
+
e.additionalProperties ? w((a(), o("div", R, [
|
|
53
|
+
y(r(D), {
|
|
53
54
|
as: "button",
|
|
54
55
|
class: "schema-card-title schema-card-title--compact",
|
|
55
|
-
onClickCapture:
|
|
56
|
+
onClickCapture: H
|
|
56
57
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
58
|
+
default: d(() => [
|
|
59
|
+
y(r(g), {
|
|
59
60
|
class: "schema-card-title-icon",
|
|
60
61
|
icon: "Add",
|
|
61
62
|
size: "sm"
|
|
62
63
|
}),
|
|
63
|
-
|
|
64
|
+
P[0] || (P[0] = v(" Show additional properties ")),
|
|
65
|
+
e.name ? (a(), i(q, { key: 0 }, {
|
|
66
|
+
default: d(() => [
|
|
67
|
+
v("for " + k(e.name), 1)
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})) : s("", !0)
|
|
64
71
|
]),
|
|
65
72
|
_: 1
|
|
66
73
|
})
|
|
67
74
|
], 512)), [
|
|
68
|
-
[
|
|
69
|
-
]) :
|
|
75
|
+
[z, !t]
|
|
76
|
+
]) : w((a(), i(r(D), {
|
|
70
77
|
key: 1,
|
|
71
78
|
as: e.noncollapsible ? "div" : "button",
|
|
72
|
-
class:
|
|
73
|
-
style:
|
|
79
|
+
class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
|
|
80
|
+
style: T({
|
|
74
81
|
top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
|
|
75
82
|
}),
|
|
76
|
-
onClickCapture:
|
|
83
|
+
onClickCapture: H
|
|
77
84
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
var
|
|
85
|
+
default: d(() => {
|
|
86
|
+
var u, m, l;
|
|
80
87
|
return [
|
|
81
|
-
e.compact ? (a(),
|
|
82
|
-
|
|
88
|
+
e.compact ? (a(), o(n, { key: 0 }, [
|
|
89
|
+
b.value ? (a(), i(r(g), {
|
|
83
90
|
key: 0,
|
|
84
|
-
class:
|
|
91
|
+
class: p(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
|
|
85
92
|
icon: "Add",
|
|
86
93
|
size: "sm"
|
|
87
|
-
}, null, 8, ["class"])) :
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
], 64)) : (a(),
|
|
91
|
-
|
|
92
|
-
], 64))
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
}, null, 8, ["class"])) : s("", !0),
|
|
95
|
+
t ? (a(), o(n, { key: 1 }, [
|
|
96
|
+
v(" Hide " + k(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
|
|
97
|
+
], 64)) : (a(), o(n, { key: 2 }, [
|
|
98
|
+
v(" Show " + k(((m = e.value) == null ? void 0 : m.title) ?? "Child Attributes"), 1)
|
|
99
|
+
], 64)),
|
|
100
|
+
e.name ? (a(), i(q, { key: 3 }, {
|
|
101
|
+
default: d(() => [
|
|
102
|
+
v("for " + k(e.name), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})) : s("", !0)
|
|
106
|
+
], 64)) : (a(), o(n, { key: 1 }, [
|
|
107
|
+
b.value ? (a(), i(r(g), {
|
|
95
108
|
key: 0,
|
|
96
|
-
class:
|
|
109
|
+
class: p(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
|
|
97
110
|
icon: "Add",
|
|
98
111
|
size: "sm"
|
|
99
|
-
}, null, 8, ["class"])) :
|
|
100
|
-
|
|
112
|
+
}, null, 8, ["class"])) : s("", !0),
|
|
113
|
+
y(L, {
|
|
101
114
|
name: ((l = e.value) == null ? void 0 : l.title) ?? e.name,
|
|
102
115
|
value: e.value
|
|
103
116
|
}, null, 8, ["name", "value"])
|
|
@@ -106,32 +119,32 @@ const L = {
|
|
|
106
119
|
}),
|
|
107
120
|
_: 2
|
|
108
121
|
}, 1032, ["as", "class", "style"])), [
|
|
109
|
-
[
|
|
122
|
+
[z, !e.hideHeading && !(e.noncollapsible && e.compact)]
|
|
110
123
|
]),
|
|
111
|
-
|
|
124
|
+
y(r(F), {
|
|
112
125
|
as: "ul",
|
|
113
126
|
static: e.noncollapsible
|
|
114
127
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
var
|
|
128
|
+
default: d(() => {
|
|
129
|
+
var u, m;
|
|
117
130
|
return [
|
|
118
|
-
e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(),
|
|
119
|
-
e.value.properties ? (a(!0),
|
|
120
|
-
var c, C,
|
|
121
|
-
return a(), i(
|
|
131
|
+
e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), o(n, { key: 0 }, [
|
|
132
|
+
e.value.properties ? (a(!0), o(n, { key: 0 }, A(Object.keys((u = e.value) == null ? void 0 : u.properties), (l) => {
|
|
133
|
+
var c, C, O, B;
|
|
134
|
+
return a(), i(h, {
|
|
122
135
|
key: l,
|
|
123
136
|
compact: e.compact,
|
|
124
137
|
hideHeading: e.hideHeading,
|
|
125
138
|
level: e.level + 1,
|
|
126
139
|
name: l,
|
|
127
|
-
required: ((c = e.value.required) == null ? void 0 : c.includes(l)) || ((
|
|
140
|
+
required: ((c = e.value.required) == null ? void 0 : c.includes(l)) || ((O = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : O.required) === !0,
|
|
128
141
|
schemas: e.schemas,
|
|
129
|
-
value: (
|
|
142
|
+
value: (B = e.value.properties) == null ? void 0 : B[l]
|
|
130
143
|
}, null, 8, ["compact", "hideHeading", "level", "name", "required", "schemas", "value"]);
|
|
131
|
-
}), 128)) :
|
|
132
|
-
e.value.patternProperties ? (a(!0),
|
|
144
|
+
}), 128)) : s("", !0),
|
|
145
|
+
e.value.patternProperties ? (a(!0), o(n, { key: 1 }, A(Object.keys((m = e.value) == null ? void 0 : m.patternProperties), (l) => {
|
|
133
146
|
var c;
|
|
134
|
-
return a(), i(
|
|
147
|
+
return a(), i(h, {
|
|
135
148
|
key: l,
|
|
136
149
|
compact: e.compact,
|
|
137
150
|
hideHeading: e.hideHeading,
|
|
@@ -141,9 +154,9 @@ const L = {
|
|
|
141
154
|
schemas: e.schemas,
|
|
142
155
|
value: (c = e.value.patternProperties) == null ? void 0 : c[l]
|
|
143
156
|
}, null, 8, ["compact", "hideHeading", "level", "name", "schemas", "value"]);
|
|
144
|
-
}), 128)) :
|
|
145
|
-
e.value.additionalProperties ? (a(),
|
|
146
|
-
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), i(
|
|
157
|
+
}), 128)) : s("", !0),
|
|
158
|
+
e.value.additionalProperties ? (a(), o(n, { key: 2 }, [
|
|
159
|
+
e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), i(h, {
|
|
147
160
|
key: 0,
|
|
148
161
|
additional: "",
|
|
149
162
|
compact: e.compact,
|
|
@@ -155,7 +168,7 @@ const L = {
|
|
|
155
168
|
type: "anything",
|
|
156
169
|
...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
|
|
157
170
|
}
|
|
158
|
-
}, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), i(
|
|
171
|
+
}, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), i(h, {
|
|
159
172
|
key: 1,
|
|
160
173
|
additional: "",
|
|
161
174
|
compact: e.compact,
|
|
@@ -165,8 +178,8 @@ const L = {
|
|
|
165
178
|
schemas: e.schemas,
|
|
166
179
|
value: e.value.additionalProperties
|
|
167
180
|
}, null, 8, ["compact", "hideHeading", "level", "schemas", "value"]))
|
|
168
|
-
], 64)) :
|
|
169
|
-
], 64)) : (a(), i(
|
|
181
|
+
], 64)) : s("", !0)
|
|
182
|
+
], 64)) : (a(), i(h, {
|
|
170
183
|
key: 1,
|
|
171
184
|
compact: e.compact,
|
|
172
185
|
hideHeading: e.hideHeading,
|
|
@@ -183,9 +196,9 @@ const L = {
|
|
|
183
196
|
];
|
|
184
197
|
}),
|
|
185
198
|
_: 1
|
|
186
|
-
}, 8, ["defaultOpen"])) :
|
|
199
|
+
}, 8, ["defaultOpen"])) : s("", !0);
|
|
187
200
|
}
|
|
188
201
|
});
|
|
189
202
|
export {
|
|
190
|
-
|
|
203
|
+
X as default
|
|
191
204
|
};
|
|
@@ -2,6 +2,7 @@ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
discriminator: string;
|
|
4
4
|
schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
|
|
5
|
+
name?: string;
|
|
5
6
|
value: Record<string, any>;
|
|
6
7
|
level: number;
|
|
7
8
|
compact?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA+QF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaDiscriminator.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-183d834f"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as S, ref as A, openBlock as
|
|
1
|
+
import { defineComponent as S, ref as A, openBlock as n, createElementBlock as c, createBlock as l, unref as i, withCtx as o, createVNode as d, createElementVNode as p, toDisplayString as f, Fragment as y, renderList as b, normalizeClass as q } from "vue";
|
|
2
2
|
import { TabGroup as B, TabList as T, Tab as j, TabPanel as H } from "@headlessui/vue";
|
|
3
3
|
import { cva as N, cx as V } from "@scalar/components";
|
|
4
4
|
import { stringify as v } from "flatted";
|
|
5
5
|
import g from "./Schema.vue.js";
|
|
6
|
-
const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "flex items-center gap-1.5" }, D = { class: "schema-tab-label z-1 relative" },
|
|
6
|
+
const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "flex items-center gap-1.5" }, D = { class: "schema-tab-label z-1 relative" }, I = /* @__PURE__ */ S({
|
|
7
7
|
__name: "SchemaDiscriminator",
|
|
8
8
|
props: {
|
|
9
9
|
discriminator: {},
|
|
10
10
|
schemas: {},
|
|
11
|
+
name: {},
|
|
11
12
|
value: {},
|
|
12
13
|
level: {},
|
|
13
14
|
compact: { type: Boolean },
|
|
@@ -22,12 +23,12 @@ const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "f
|
|
|
22
23
|
false: "text-c-3"
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
}),
|
|
26
|
+
}), m = (e) => {
|
|
26
27
|
if (!Array.isArray(e) || e.length === 0)
|
|
27
28
|
return {};
|
|
28
29
|
if (e.length > 0 && e[0].allOf) {
|
|
29
30
|
const a = e.flatMap((r) => r.allOf || []);
|
|
30
|
-
return
|
|
31
|
+
return m(a);
|
|
31
32
|
}
|
|
32
33
|
return e.reduce((a, r) => {
|
|
33
34
|
if (!r || typeof r != "object")
|
|
@@ -54,22 +55,22 @@ const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "f
|
|
|
54
55
|
}
|
|
55
56
|
return null;
|
|
56
57
|
}, C = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (a) => a.toUpperCase()).toLowerCase().replace(/^(\w)/, (a) => a.toUpperCase());
|
|
57
|
-
return (e, a) => (
|
|
58
|
-
e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (
|
|
59
|
-
default:
|
|
60
|
-
|
|
61
|
-
default:
|
|
58
|
+
return (e, a) => (n(), c("div", w, [
|
|
59
|
+
e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (n(), l(i(B), { key: 0 }, {
|
|
60
|
+
default: o(() => [
|
|
61
|
+
d(i(T), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
|
|
62
|
+
default: o(() => [
|
|
62
63
|
p("span", z, f(C(e.discriminator)), 1),
|
|
63
64
|
p("div", L, [
|
|
64
|
-
(
|
|
65
|
+
(n(!0), c(y, null, b(e.value[e.discriminator], (r, t) => (n(), l(i(j), {
|
|
65
66
|
key: t,
|
|
66
67
|
class: q([
|
|
67
68
|
"cursor-pointer",
|
|
68
|
-
|
|
69
|
+
i(V)(i(k)({ selected: u.value === t }))
|
|
69
70
|
]),
|
|
70
71
|
onClick: (E) => u.value = t
|
|
71
72
|
}, {
|
|
72
|
-
default:
|
|
73
|
+
default: o(() => [
|
|
73
74
|
p("span", D, f(O(r) || "Schema"), 1)
|
|
74
75
|
]),
|
|
75
76
|
_: 2
|
|
@@ -78,34 +79,36 @@ const w = { class: "property-rule" }, z = { class: "text-c-3" }, L = { class: "f
|
|
|
78
79
|
]),
|
|
79
80
|
_: 1
|
|
80
81
|
}),
|
|
81
|
-
(
|
|
82
|
+
(n(!0), c(y, null, b(e.value[e.discriminator], (r, t) => (n(), l(i(H), {
|
|
82
83
|
key: t,
|
|
83
84
|
class: "discriminator-panel"
|
|
84
85
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
|
|
86
|
+
default: o(() => [
|
|
87
|
+
d(g, {
|
|
87
88
|
compact: e.compact,
|
|
88
89
|
hideHeading: e.hideHeading,
|
|
90
|
+
name: e.name,
|
|
89
91
|
noncollapsible: !0,
|
|
90
92
|
schemas: e.schemas,
|
|
91
93
|
value: r
|
|
92
|
-
}, null, 8, ["compact", "hideHeading", "schemas", "value"])
|
|
94
|
+
}, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
|
|
93
95
|
]),
|
|
94
96
|
_: 2
|
|
95
97
|
}, 1024))), 128))
|
|
96
98
|
]),
|
|
97
99
|
_: 1
|
|
98
|
-
})) : (
|
|
100
|
+
})) : (n(), l(g, {
|
|
99
101
|
key: 1,
|
|
100
102
|
compact: e.compact,
|
|
101
103
|
level: e.level,
|
|
104
|
+
name: e.name,
|
|
102
105
|
noncollapsible: e.level == 0,
|
|
103
106
|
schemas: e.schemas,
|
|
104
|
-
value:
|
|
105
|
-
}, null, 8, ["compact", "level", "noncollapsible", "schemas", "value"]))
|
|
107
|
+
value: m(e.value[e.discriminator])
|
|
108
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
106
109
|
]));
|
|
107
110
|
}
|
|
108
111
|
});
|
|
109
112
|
export {
|
|
110
|
-
|
|
113
|
+
I as default
|
|
111
114
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
+
import { type Component } from 'vue';
|
|
2
3
|
/**
|
|
3
4
|
* Note: We’re taking in a prop called `value` which should be a JSON Schema.
|
|
4
5
|
*
|
|
@@ -6,6 +7,7 @@ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
|
6
7
|
* So you should basically use the optimizedValue everywhere in the component.
|
|
7
8
|
*/
|
|
8
9
|
type __VLS_Props = {
|
|
10
|
+
is?: string | Component;
|
|
9
11
|
value?: Record<string, any>;
|
|
10
12
|
level?: number;
|
|
11
13
|
name?: string;
|
|
@@ -23,6 +25,6 @@ declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
23
25
|
level: number;
|
|
24
26
|
compact: boolean;
|
|
25
27
|
withExamples: boolean;
|
|
26
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
29
|
export default _default_1;
|
|
28
30
|
//# sourceMappingURL=SchemaProperty.vue.d.ts.map
|
|
@@ -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":"AAkhBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAa9C;;;;;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,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,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAie1B,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 m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f831b9af"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|