@scalar/api-reference 1.31.11 → 1.31.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 +30 -0
- package/dist/browser/standalone.js +12820 -11753
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +3 -3
- 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 +27 -26
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +73 -73
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +12 -14
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +97 -73
- package/dist/helpers/parse.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -15
- package/dist/libs/openapi.js +24 -24
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +8 -7
- package/package.json +10 -10
|
@@ -9,10 +9,10 @@ const g = /* @__PURE__ */ r({
|
|
|
9
9
|
},
|
|
10
10
|
setup(i) {
|
|
11
11
|
const o = p();
|
|
12
|
-
return (e,
|
|
13
|
-
|
|
12
|
+
return (e, f) => (n(), t(a, {
|
|
13
|
+
getWorkspaceStore: () => c(o),
|
|
14
14
|
configuration: e.configuration
|
|
15
|
-
}, null, 8, ["
|
|
15
|
+
}, null, 8, ["getWorkspaceStore", "configuration"]));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
@@ -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":"AAupBA,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;;AAipB1B,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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-28e7d196"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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 g, unref as p, Fragment as v, renderList as M, createElementVNode as k } from "vue";
|
|
2
2
|
import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
|
|
3
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
6
|
import T from "./Schema.vue.js";
|
|
7
|
-
import
|
|
7
|
+
import U 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,10 +20,10 @@ 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" }, ge = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "property-enum-values"
|
|
26
|
-
},
|
|
26
|
+
}, ve = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
|
|
27
27
|
key: 4,
|
|
28
28
|
class: "children"
|
|
29
29
|
}, De = {
|
|
@@ -51,8 +51,8 @@ const pe = {
|
|
|
51
51
|
isDiscriminator: { type: Boolean }
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:modelValue"],
|
|
54
|
-
setup(
|
|
55
|
-
const D =
|
|
54
|
+
setup(q, { emit: F }) {
|
|
55
|
+
const D = q, $ = F, E = {
|
|
56
56
|
integer: {
|
|
57
57
|
_default: "Integer numbers.",
|
|
58
58
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -62,10 +62,11 @@ const pe = {
|
|
|
62
62
|
date: "full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21",
|
|
63
63
|
"date-time": "the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",
|
|
64
64
|
password: "a hint to UIs to mask the input",
|
|
65
|
+
base64: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
65
66
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
67
|
binary: "binary data, used to describe files"
|
|
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
|
+
}, 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 || e.contentEncoding || "_default"], u = (e) => {
|
|
69
70
|
var n;
|
|
70
71
|
return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
|
|
71
72
|
}, H = o(
|
|
@@ -82,7 +83,7 @@ const pe = {
|
|
|
82
83
|
return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (D.discriminatorMapping ? Object.keys(D.discriminatorMapping)[0] : "");
|
|
83
84
|
}), 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
85
|
$("update:modelValue", e);
|
|
85
|
-
},
|
|
86
|
+
}, w = o(() => {
|
|
86
87
|
const e = i.value;
|
|
87
88
|
if (!(e != null && e.items) || typeof e.items != "object")
|
|
88
89
|
return !1;
|
|
@@ -90,8 +91,8 @@ const pe = {
|
|
|
90
91
|
return "type" in n && ["object"].includes(n.type) || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
|
|
91
92
|
}), G = (e) => {
|
|
92
93
|
const n = i.value;
|
|
93
|
-
return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !
|
|
94
|
-
}, J = o(() =>
|
|
94
|
+
return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !w.value;
|
|
95
|
+
}, J = o(() => w.value), K = o(() => {
|
|
95
96
|
if (!i.value)
|
|
96
97
|
return !1;
|
|
97
98
|
const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), y = e.properties || e.additionalProperties;
|
|
@@ -116,7 +117,7 @@ const pe = {
|
|
|
116
117
|
]])
|
|
117
118
|
}, {
|
|
118
119
|
default: f(() => {
|
|
119
|
-
var N, S,
|
|
120
|
+
var N, S, A;
|
|
120
121
|
return [
|
|
121
122
|
X(
|
|
122
123
|
i.value,
|
|
@@ -137,14 +138,14 @@ const pe = {
|
|
|
137
138
|
e.name ? {
|
|
138
139
|
name: "name",
|
|
139
140
|
fn: f(() => [
|
|
140
|
-
B(
|
|
141
|
+
B(g(e.name), 1)
|
|
141
142
|
]),
|
|
142
143
|
key: "0"
|
|
143
144
|
} : void 0,
|
|
144
145
|
(N = i.value) != null && N.example ? {
|
|
145
146
|
name: "example",
|
|
146
147
|
fn: f(() => [
|
|
147
|
-
B(" Example: " +
|
|
148
|
+
B(" Example: " + g(i.value.example), 1)
|
|
148
149
|
]),
|
|
149
150
|
key: "1"
|
|
150
151
|
} : void 0
|
|
@@ -160,14 +161,14 @@ const pe = {
|
|
|
160
161
|
])) : l("", !0),
|
|
161
162
|
((S = u(i.value)) == null ? void 0 : S.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
|
|
162
163
|
Q.value ? (t(), r("div", ue, [
|
|
163
|
-
(t(!0), r(
|
|
164
|
+
(t(!0), r(v, null, M(u(i.value), (a) => {
|
|
164
165
|
var c, b;
|
|
165
166
|
return t(), r("div", {
|
|
166
167
|
key: a,
|
|
167
168
|
class: "property"
|
|
168
169
|
}, [
|
|
169
170
|
k("div", ye, [
|
|
170
|
-
k("div", he,
|
|
171
|
+
k("div", he, g(a), 1)
|
|
171
172
|
]),
|
|
172
173
|
k("div", fe, [
|
|
173
174
|
m(p(O), {
|
|
@@ -176,22 +177,22 @@ const pe = {
|
|
|
176
177
|
])
|
|
177
178
|
]);
|
|
178
179
|
}), 128))
|
|
179
|
-
])) : (t(), r("ul",
|
|
180
|
-
(t(!0), r(
|
|
180
|
+
])) : (t(), r("ul", ge, [
|
|
181
|
+
(t(!0), r(v, null, M(z.value, (a) => (t(), r("li", {
|
|
181
182
|
key: a,
|
|
182
183
|
class: "property-enum-value"
|
|
183
184
|
}, [
|
|
184
|
-
k("span",
|
|
185
|
+
k("span", ve, g(a), 1)
|
|
185
186
|
]))), 128)),
|
|
186
187
|
H.value ? (t(), h(p(ee), { key: 0 }, {
|
|
187
188
|
default: f(({ open: a }) => [
|
|
188
189
|
m(p(ne), null, {
|
|
189
190
|
default: f(() => [
|
|
190
|
-
(t(!0), r(
|
|
191
|
+
(t(!0), r(v, null, M(L.value, (c) => (t(), r("li", {
|
|
191
192
|
key: c,
|
|
192
193
|
class: "property-enum-value"
|
|
193
194
|
}, [
|
|
194
|
-
k("span", be,
|
|
195
|
+
k("span", be, g(c), 1)
|
|
195
196
|
]))), 128))
|
|
196
197
|
]),
|
|
197
198
|
_: 1
|
|
@@ -203,7 +204,7 @@ const pe = {
|
|
|
203
204
|
icon: "Add",
|
|
204
205
|
size: "sm"
|
|
205
206
|
}, null, 8, ["class"]),
|
|
206
|
-
B(" " +
|
|
207
|
+
B(" " + g(a ? "Hide values" : "Show all values"), 1)
|
|
207
208
|
]),
|
|
208
209
|
_: 2
|
|
209
210
|
}, 1024)
|
|
@@ -226,7 +227,7 @@ const pe = {
|
|
|
226
227
|
"onUpdate:modelValue": j
|
|
227
228
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
228
229
|
])) : l("", !0),
|
|
229
|
-
(
|
|
230
|
+
(A = i.value) != null && A.items && typeof i.value.items == "object" ? (t(), r(v, { key: 5 }, [
|
|
230
231
|
J.value ? (t(), r("div", De, [
|
|
231
232
|
m(T, {
|
|
232
233
|
compact: e.compact,
|
|
@@ -242,10 +243,10 @@ const pe = {
|
|
|
242
243
|
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
243
244
|
])) : l("", !0)
|
|
244
245
|
], 64)) : l("", !0),
|
|
245
|
-
(t(!0), r(
|
|
246
|
+
(t(!0), r(v, null, M(p(re), (a) => {
|
|
246
247
|
var c, b, I;
|
|
247
|
-
return t(), r(
|
|
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(
|
|
248
|
+
return t(), r(v, { key: a }, [
|
|
249
|
+
(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(U, {
|
|
249
250
|
key: 0,
|
|
250
251
|
compact: e.compact,
|
|
251
252
|
composition: a,
|
|
@@ -255,7 +256,7 @@ const pe = {
|
|
|
255
256
|
noncollapsible: e.noncollapsible,
|
|
256
257
|
schemas: e.schemas,
|
|
257
258
|
value: i.value
|
|
258
|
-
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : G(a) ? (t(), h(
|
|
259
|
+
}, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : G(a) ? (t(), h(U, {
|
|
259
260
|
key: 1,
|
|
260
261
|
compact: e.compact,
|
|
261
262
|
composition: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA0UA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,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;CAClB,CAAC;AAuFF,iBAAS,cAAc;WAyVT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,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 "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-71dbcd77"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as F, computed as B, createElementBlock as n, openBlock as u, createCommentVNode as
|
|
2
|
-
import { isDefined as
|
|
1
|
+
import { defineComponent as F, computed as B, createElementBlock as n, openBlock as u, createCommentVNode as i, createBlock as d, normalizeClass as j, renderSlot as A, Fragment as k, createTextVNode as l, withCtx as a, createVNode as g, toDisplayString as m, unref as v } from "vue";
|
|
2
|
+
import { isDefined as p } from "@scalar/helpers/array/is-defined";
|
|
3
3
|
import z from "./SchemaPropertyExamples.vue.js";
|
|
4
4
|
import S from "../../ScreenReader.vue.js";
|
|
5
5
|
import { getDiscriminatorSchemaName as H } from "../../../hooks/useDiscriminator.js";
|
|
6
6
|
import { getModelName as J } from "./helpers/schema-name.js";
|
|
7
7
|
import o from "./SchemaPropertyDetail.vue.js";
|
|
8
|
-
import
|
|
8
|
+
import C from "../../Badge/Badge.vue.js";
|
|
9
9
|
const R = { class: "property-heading" }, G = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "property-discriminator"
|
|
@@ -42,69 +42,69 @@ const R = { class: "property-heading" }, G = {
|
|
|
42
42
|
hideModelNames: { type: Boolean, default: !1 },
|
|
43
43
|
schemas: {}
|
|
44
44
|
},
|
|
45
|
-
setup(
|
|
46
|
-
const
|
|
47
|
-
var e, t, s, f,
|
|
48
|
-
if (
|
|
49
|
-
return (t =
|
|
50
|
-
if (((f = (s =
|
|
51
|
-
return
|
|
52
|
-
if ((
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
55
|
-
if (((N =
|
|
56
|
-
return
|
|
45
|
+
setup(r) {
|
|
46
|
+
const L = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, D = B(() => {
|
|
47
|
+
var e, t, s, f, y, N;
|
|
48
|
+
if (p((e = r.value) == null ? void 0 : e.const))
|
|
49
|
+
return (t = r.value) == null ? void 0 : t.const;
|
|
50
|
+
if (((f = (s = r.value) == null ? void 0 : s.enum) == null ? void 0 : f.length) === 1)
|
|
51
|
+
return r.value.enum[0];
|
|
52
|
+
if ((y = r.value) != null && y.items) {
|
|
53
|
+
if (p(r.value.items.const))
|
|
54
|
+
return r.value.items.const;
|
|
55
|
+
if (((N = r.value.items.enum) == null ? void 0 : N.length) === 1)
|
|
56
|
+
return r.value.items.enum[0];
|
|
57
57
|
}
|
|
58
58
|
return null;
|
|
59
59
|
}), T = B(() => {
|
|
60
|
-
var e, t, s, f;
|
|
61
|
-
return Array.isArray((e =
|
|
62
|
-
}), M = B(() =>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
var e, t, s, f, y;
|
|
61
|
+
return Array.isArray((e = r.value) == null ? void 0 : e.type) ? r.value.type.join(" | ") : (t = r.value) != null && t.title ? r.value.title : (s = r.value) != null && s.name ? r.value.name : (f = r.value) != null && f.type && r.value.contentEncoding ? `${r.value.type} • ${r.value.contentEncoding}` : ((y = r.value) == null ? void 0 : y.type) ?? "";
|
|
62
|
+
}), M = B(() => r.value ? J(
|
|
63
|
+
r.value,
|
|
64
|
+
r.schemas,
|
|
65
|
+
r.hideModelNames,
|
|
66
66
|
H
|
|
67
67
|
) : null);
|
|
68
68
|
return (e, t) => {
|
|
69
|
-
var s, f,
|
|
69
|
+
var s, f, y, N, q, w, E, P, $, I, O, V;
|
|
70
70
|
return u(), n("div", R, [
|
|
71
71
|
e.$slots.name ? (u(), n("div", {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: j(["property-name", { deprecated: (s = e.value) == null ? void 0 : s.deprecated }])
|
|
74
74
|
}, [
|
|
75
|
-
e.pattern ? (u(), n(
|
|
75
|
+
e.pattern ? (u(), n(k, { key: 1 }, [
|
|
76
76
|
t[0] || (t[0] = l("/")),
|
|
77
|
-
|
|
77
|
+
A(e.$slots, "name", {}, void 0, !0),
|
|
78
78
|
t[1] || (t[1] = l("/"))
|
|
79
|
-
], 64)) :
|
|
80
|
-
], 2)) :
|
|
81
|
-
(f = e.value) != null && f.isDiscriminator ? (u(), n("div", G, " Discriminator ")) :
|
|
82
|
-
e.value ? (u(), n(
|
|
83
|
-
(
|
|
79
|
+
], 64)) : A(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
80
|
+
], 2)) : i("", !0),
|
|
81
|
+
(f = e.value) != null && f.isDiscriminator ? (u(), n("div", G, " Discriminator ")) : i("", !0),
|
|
82
|
+
e.value ? (u(), n(k, { key: 2 }, [
|
|
83
|
+
(y = e.value) != null && y.type ? (u(), d(o, { key: 0 }, {
|
|
84
84
|
default: a(() => {
|
|
85
|
-
var
|
|
85
|
+
var b;
|
|
86
86
|
return [
|
|
87
|
-
|
|
87
|
+
g(S, null, {
|
|
88
88
|
default: a(() => t[2] || (t[2] = [
|
|
89
89
|
l("Type:")
|
|
90
90
|
])),
|
|
91
91
|
_: 1
|
|
92
92
|
}),
|
|
93
|
-
M.value ? (u(), n(
|
|
93
|
+
M.value ? (u(), n(k, { key: 0 }, [
|
|
94
94
|
l(m(M.value), 1)
|
|
95
|
-
], 64)) : (u(), n(
|
|
96
|
-
l(m(T.value) + " " + m((
|
|
95
|
+
], 64)) : (u(), n(k, { key: 1 }, [
|
|
96
|
+
l(m(T.value) + " " + m((b = e.value) != null && b.nullable ? " | nullable" : ""), 1)
|
|
97
97
|
], 64))
|
|
98
98
|
];
|
|
99
99
|
}),
|
|
100
100
|
_: 1
|
|
101
|
-
})) :
|
|
101
|
+
})) : i("", !0),
|
|
102
102
|
e.value.minItems || e.value.maxItems ? (u(), d(o, { key: 1 }, {
|
|
103
103
|
default: a(() => [
|
|
104
104
|
l(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
|
-
})) :
|
|
107
|
+
})) : i("", !0),
|
|
108
108
|
e.value.minLength ? (u(), d(o, { key: 2 }, {
|
|
109
109
|
prefix: a(() => t[3] || (t[3] = [
|
|
110
110
|
l("min:")
|
|
@@ -113,7 +113,7 @@ const R = { class: "property-heading" }, G = {
|
|
|
113
113
|
l(" " + m(e.value.minLength), 1)
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
|
-
})) :
|
|
116
|
+
})) : i("", !0),
|
|
117
117
|
e.value.maxLength ? (u(), d(o, { key: 3 }, {
|
|
118
118
|
prefix: a(() => t[4] || (t[4] = [
|
|
119
119
|
l("max:")
|
|
@@ -122,16 +122,16 @@ const R = { class: "property-heading" }, G = {
|
|
|
122
122
|
l(" " + m(e.value.maxLength), 1)
|
|
123
123
|
]),
|
|
124
124
|
_: 1
|
|
125
|
-
})) :
|
|
125
|
+
})) : i("", !0),
|
|
126
126
|
e.value.uniqueItems ? (u(), d(o, { key: 4 }, {
|
|
127
127
|
default: a(() => t[5] || (t[5] = [
|
|
128
128
|
l(" unique! ")
|
|
129
129
|
])),
|
|
130
130
|
_: 1
|
|
131
|
-
})) :
|
|
131
|
+
})) : i("", !0),
|
|
132
132
|
e.value.format ? (u(), d(o, { key: 5 }, {
|
|
133
133
|
default: a(() => [
|
|
134
|
-
|
|
134
|
+
g(S, null, {
|
|
135
135
|
default: a(() => t[6] || (t[6] = [
|
|
136
136
|
l("Format:")
|
|
137
137
|
])),
|
|
@@ -140,8 +140,8 @@ const R = { class: "property-heading" }, G = {
|
|
|
140
140
|
l(" " + m(e.value.format), 1)
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
|
-
})) :
|
|
144
|
-
|
|
143
|
+
})) : i("", !0),
|
|
144
|
+
v(p)(e.value.minimum) && e.value.exclusiveMinimum ? (u(), d(o, { key: 6 }, {
|
|
145
145
|
prefix: a(() => t[7] || (t[7] = [
|
|
146
146
|
l("greater than:")
|
|
147
147
|
])),
|
|
@@ -149,8 +149,8 @@ const R = { class: "property-heading" }, G = {
|
|
|
149
149
|
l(" " + m(e.value.minimum), 1)
|
|
150
150
|
]),
|
|
151
151
|
_: 1
|
|
152
|
-
})) :
|
|
153
|
-
|
|
152
|
+
})) : i("", !0),
|
|
153
|
+
v(p)(e.value.minimum) && !e.value.exclusiveMinimum ? (u(), d(o, { key: 7 }, {
|
|
154
154
|
prefix: a(() => t[8] || (t[8] = [
|
|
155
155
|
l("min:")
|
|
156
156
|
])),
|
|
@@ -158,8 +158,8 @@ const R = { class: "property-heading" }, G = {
|
|
|
158
158
|
l(" " + m(e.value.minimum), 1)
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
161
|
-
})) :
|
|
162
|
-
|
|
161
|
+
})) : i("", !0),
|
|
162
|
+
v(p)(e.value.maximum) && e.value.exclusiveMaximum ? (u(), d(o, { key: 8 }, {
|
|
163
163
|
prefix: a(() => t[9] || (t[9] = [
|
|
164
164
|
l("less than:")
|
|
165
165
|
])),
|
|
@@ -167,8 +167,8 @@ const R = { class: "property-heading" }, G = {
|
|
|
167
167
|
l(" " + m(e.value.maximum), 1)
|
|
168
168
|
]),
|
|
169
169
|
_: 1
|
|
170
|
-
})) :
|
|
171
|
-
|
|
170
|
+
})) : i("", !0),
|
|
171
|
+
v(p)(e.value.maximum) && !e.value.exclusiveMaximum ? (u(), d(o, { key: 9 }, {
|
|
172
172
|
prefix: a(() => t[10] || (t[10] = [
|
|
173
173
|
l("max:")
|
|
174
174
|
])),
|
|
@@ -176,8 +176,8 @@ const R = { class: "property-heading" }, G = {
|
|
|
176
176
|
l(" " + m(e.value.maximum), 1)
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
|
-
})) :
|
|
180
|
-
|
|
179
|
+
})) : i("", !0),
|
|
180
|
+
v(p)(e.value.multipleOf) ? (u(), d(o, { key: 10 }, {
|
|
181
181
|
prefix: a(() => t[11] || (t[11] = [
|
|
182
182
|
l("multiple of:")
|
|
183
183
|
])),
|
|
@@ -185,14 +185,14 @@ const R = { class: "property-heading" }, G = {
|
|
|
185
185
|
l(" " + m(e.value.multipleOf), 1)
|
|
186
186
|
]),
|
|
187
187
|
_: 1
|
|
188
|
-
})) :
|
|
188
|
+
})) : i("", !0),
|
|
189
189
|
e.value.pattern ? (u(), d(o, {
|
|
190
190
|
key: 11,
|
|
191
191
|
code: "",
|
|
192
192
|
truncate: ""
|
|
193
193
|
}, {
|
|
194
194
|
default: a(() => [
|
|
195
|
-
|
|
195
|
+
g(S, null, {
|
|
196
196
|
default: a(() => t[12] || (t[12] = [
|
|
197
197
|
l("Pattern:")
|
|
198
198
|
])),
|
|
@@ -201,13 +201,13 @@ const R = { class: "property-heading" }, G = {
|
|
|
201
201
|
l(" " + m(e.value.pattern), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
|
-
})) :
|
|
204
|
+
})) : i("", !0),
|
|
205
205
|
e.$props.enum ? (u(), d(o, { key: 12 }, {
|
|
206
206
|
default: a(() => t[13] || (t[13] = [
|
|
207
207
|
l("enum")
|
|
208
208
|
])),
|
|
209
209
|
_: 1
|
|
210
|
-
})) :
|
|
210
|
+
})) : i("", !0),
|
|
211
211
|
e.value.default !== void 0 ? (u(), d(o, {
|
|
212
212
|
key: 13,
|
|
213
213
|
truncate: ""
|
|
@@ -216,36 +216,36 @@ const R = { class: "property-heading" }, G = {
|
|
|
216
216
|
l("default:")
|
|
217
217
|
])),
|
|
218
218
|
default: a(() => [
|
|
219
|
-
l(" " + m(
|
|
219
|
+
l(" " + m(L(e.value)), 1)
|
|
220
220
|
]),
|
|
221
221
|
_: 1
|
|
222
|
-
})) :
|
|
223
|
-
], 64)) :
|
|
222
|
+
})) : i("", !0)
|
|
223
|
+
], 64)) : i("", !0),
|
|
224
224
|
e.additional ? (u(), n("div", K, [
|
|
225
|
-
(N = e.value) != null && N["x-additionalPropertiesName"] ? (u(), n(
|
|
225
|
+
(N = e.value) != null && N["x-additionalPropertiesName"] ? (u(), n(k, { key: 0 }, [
|
|
226
226
|
l(m(e.value["x-additionalPropertiesName"]), 1)
|
|
227
|
-
], 64)) : (u(), n(
|
|
227
|
+
], 64)) : (u(), n(k, { key: 1 }, [
|
|
228
228
|
l("additional properties")
|
|
229
229
|
], 64))
|
|
230
|
-
])) :
|
|
230
|
+
])) : i("", !0),
|
|
231
231
|
e.pattern ? (u(), n("div", Q, [
|
|
232
|
-
|
|
232
|
+
g(v(C), null, {
|
|
233
233
|
default: a(() => t[15] || (t[15] = [
|
|
234
234
|
l("pattern")
|
|
235
235
|
])),
|
|
236
236
|
_: 1
|
|
237
237
|
})
|
|
238
|
-
])) :
|
|
238
|
+
])) : i("", !0),
|
|
239
239
|
(q = e.value) != null && q.deprecated ? (u(), n("div", U, [
|
|
240
|
-
|
|
240
|
+
g(v(C), null, {
|
|
241
241
|
default: a(() => t[16] || (t[16] = [
|
|
242
242
|
l("deprecated")
|
|
243
243
|
])),
|
|
244
244
|
_: 1
|
|
245
245
|
})
|
|
246
|
-
])) :
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
])) : i("", !0),
|
|
247
|
+
v(p)(D.value) ? (u(), n("div", W, [
|
|
248
|
+
g(o, { truncate: "" }, {
|
|
249
249
|
prefix: a(() => t[17] || (t[17] = [
|
|
250
250
|
l("const:")
|
|
251
251
|
])),
|
|
@@ -254,21 +254,21 @@ const R = { class: "property-heading" }, G = {
|
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
256
256
|
})
|
|
257
|
-
])) : (u(), n(
|
|
257
|
+
])) : (u(), n(k, { key: 7 }, [
|
|
258
258
|
((w = e.value) == null ? void 0 : w.nullable) === !0 ? (u(), d(o, { key: 0 }, {
|
|
259
259
|
default: a(() => t[18] || (t[18] = [
|
|
260
260
|
l(" nullable ")
|
|
261
261
|
])),
|
|
262
262
|
_: 1
|
|
263
|
-
})) :
|
|
263
|
+
})) : i("", !0)
|
|
264
264
|
], 64)),
|
|
265
|
-
(
|
|
266
|
-
e.required ? (u(), n("div", Z, " required ")) :
|
|
265
|
+
(E = e.value) != null && E.writeOnly ? (u(), n("div", X, " write-only ")) : (P = e.value) != null && P.readOnly ? (u(), n("div", Y, " read-only ")) : i("", !0),
|
|
266
|
+
e.required ? (u(), n("div", Z, " required ")) : i("", !0),
|
|
267
267
|
e.withExamples ? (u(), d(z, {
|
|
268
268
|
key: 11,
|
|
269
|
-
examples: (
|
|
270
|
-
example: ((
|
|
271
|
-
}, null, 8, ["examples", "example"])) :
|
|
269
|
+
examples: ($ = e.value) == null ? void 0 : $.examples,
|
|
270
|
+
example: ((I = e.value) == null ? void 0 : I.example) || ((V = (O = e.value) == null ? void 0 : O.items) == null ? void 0 : V.example)
|
|
271
|
+
}, null, 8, ["examples", "example"])) : i("", !0)
|
|
272
272
|
]);
|
|
273
273
|
};
|
|
274
274
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAuDzG;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAuDzG;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CA8B3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CA2Df;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify as p } from "flatted";
|
|
2
|
-
function
|
|
2
|
+
function m(t, r) {
|
|
3
3
|
if (!t)
|
|
4
4
|
return null;
|
|
5
5
|
if ("title" in t && t.title)
|
|
@@ -27,30 +27,28 @@ function d(t, r) {
|
|
|
27
27
|
}
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function $(t, r) {
|
|
31
31
|
var i, n;
|
|
32
32
|
if (!t || !r || typeof r != "object")
|
|
33
33
|
return null;
|
|
34
34
|
for (const [e, y] of Object.entries(r))
|
|
35
|
-
if (y.type === t.type && (t.type === "array" && ((i = y.items) == null ? void 0 : i.type) === ((n = t.items) == null ? void 0 : n.type) || t.type === "object" && y.properties && t.properties && p(y.properties) === p(t.properties) || t.type !== "array" && t.type !== "object" && (
|
|
36
|
-
(o) => o !== "type" && !["title", "description"].includes(o)
|
|
37
|
-
) || $(e))))
|
|
35
|
+
if (y.type === t.type && (t.type === "array" && ((i = y.items) == null ? void 0 : i.type) === ((n = t.items) == null ? void 0 : n.type) || t.type === "object" && y.properties && t.properties && p(y.properties) === p(t.properties) || t.type !== "array" && t.type !== "object" && b(e)))
|
|
38
36
|
return e;
|
|
39
37
|
return null;
|
|
40
38
|
}
|
|
41
39
|
function f(t, r) {
|
|
42
40
|
return t === "array" ? `${t} ${r}[]` : `${t} ${r}`;
|
|
43
41
|
}
|
|
44
|
-
function
|
|
42
|
+
function d(t, r, i = !1, n) {
|
|
45
43
|
var s;
|
|
46
44
|
if (!(t != null && t.type))
|
|
47
45
|
return null;
|
|
48
46
|
if (i)
|
|
49
47
|
return t.type === "array" && ((s = t.items) != null && s.type) ? `array ${t.items.type}[]` : null;
|
|
50
|
-
const e =
|
|
48
|
+
const e = m(t, r);
|
|
51
49
|
if (e && (t.title || t.name))
|
|
52
50
|
return t.type === "array" ? `array ${e}[]` : e;
|
|
53
|
-
const y =
|
|
51
|
+
const y = $(t, r);
|
|
54
52
|
if (y)
|
|
55
53
|
return t.type === "array" ? `array ${y}[]` : y;
|
|
56
54
|
if (t.type === "array" && t.items) {
|
|
@@ -61,18 +59,18 @@ function j(t, r, i = !1, n) {
|
|
|
61
59
|
}
|
|
62
60
|
if (t.items.title || t.items.name)
|
|
63
61
|
return f(t.type, t.items.title || t.items.name);
|
|
64
|
-
const o =
|
|
62
|
+
const o = m(t.items, r);
|
|
65
63
|
return o && o !== t.items.type ? f(t.type, o) : t.items.type ? f(t.type, t.items.type) : f(t.type, "object");
|
|
66
64
|
}
|
|
67
65
|
return e && e !== t.type ? e.startsWith("Array of ") ? `array ${e.replace("Array of ", "")}[]` : e : null;
|
|
68
66
|
}
|
|
69
|
-
function
|
|
67
|
+
function b(t) {
|
|
70
68
|
return !t || ["anyOf", "oneOf", "allOf"].includes(t) ? !1 : /[A-Z]/.test(t) || /\s/.test(t) || /\(\d+\)/.test(t);
|
|
71
69
|
}
|
|
72
70
|
export {
|
|
73
71
|
f as formatTypeWithModel,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
d as getModelName,
|
|
73
|
+
m as getModelNameFromSchema,
|
|
74
|
+
$ as getSchemaNameFromSchemas,
|
|
75
|
+
b as hasName
|
|
78
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useSearchIndex.d.ts","sourceRoot":"","sources":["../../../src/features/Search/useSearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,IAAI,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACnF,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAGpD,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,sBAAsB,CAAA;AAMlE,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,oBAAoB,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,aAAa,GACd,EAAE;IACD,aAAa,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;CACzB;uBA0ByB,IAAI;sBAbL,IAAI;;;;;EAsM5B"}
|