zudoku 0.42.2 → 0.43.0
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/dist/app/entry.client.js +21 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/config/loader.d.ts +1 -16
- package/dist/config/loader.js +9 -90
- package/dist/config/loader.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +4 -2
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +8 -5
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +40 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/vite/config.js +1 -1
- package/dist/vite/config.js.map +1 -1
- package/lib/{OasProvider-CDtbrUG_.js → OasProvider-DOs0v9u7.js} +2 -2
- package/lib/{OasProvider-CDtbrUG_.js.map → OasProvider-DOs0v9u7.js.map} +1 -1
- package/lib/{OperationList-DTyJIxKW.js → OperationList-CKac6iap.js} +107 -78
- package/lib/{OperationList-DTyJIxKW.js.map → OperationList-CKac6iap.js.map} +1 -1
- package/lib/{SchemaList-B9lvArDe.js → SchemaList-BTX2mRMW.js} +3 -3
- package/lib/{SchemaList-B9lvArDe.js.map → SchemaList-BTX2mRMW.js.map} +1 -1
- package/lib/SchemaView-BYRn_-2l.js +388 -0
- package/lib/SchemaView-BYRn_-2l.js.map +1 -0
- package/lib/{index-Ckl3s_w-.js → index-DuB48L78.js} +4 -4
- package/lib/{index-Ckl3s_w-.js.map → index-DuB48L78.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -2
- package/src/app/entry.client.tsx +26 -0
- package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +4 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +31 -15
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +45 -0
- package/lib/SchemaView-DXjql-Bl.js +0 -356
- package/lib/SchemaView-DXjql-Bl.js.map +0 -1
|
@@ -3,15 +3,15 @@ import { d as gr, u as Ca, m as Ra, t as Ea } from "./hook-CldJlP5c.js";
|
|
|
3
3
|
import { H as ka } from "./RouteGuard-DRtEu9nh.js";
|
|
4
4
|
import { ChevronsUpDownIcon as Xn, CheckIcon as Na, CopyIcon as Aa, MinusIcon as Ia, PlusIcon as Ua, UnfoldVerticalIcon as La, FoldVerticalIcon as Fa, ChevronsDownUpIcon as _a } from "lucide-react";
|
|
5
5
|
import { b as Ba, c as Ha, a as Ma } from "./chunk-BAXFHI7N-BVBOl9s0.js";
|
|
6
|
-
import { c as _e, u as vr, d as Zn, C as ea, b as ta, a as fr, P as za, m as ra, e as Wa, U as Ja } from "./index-
|
|
6
|
+
import { c as _e, u as vr, d as Zn, C as ea, b as ta, a as fr, P as za, m as ra, e as Wa, U as Ja } from "./index-DuB48L78.js";
|
|
7
7
|
import { S as Ga, a as Va, b as Da, c as Qa, e as Ka } from "./Select-CT64Ou40.js";
|
|
8
8
|
import { C as Ya } from "./CategoryHeading-D06WK_Wo.js";
|
|
9
|
-
import { I as Xa, S as na, M as De, H as
|
|
9
|
+
import { I as Xa, S as na, M as De, H as Ue, P as pr } from "./Markdown-mFpg_n9p.js";
|
|
10
10
|
import { P as Za } from "./Pagination-DLPL5z77.js";
|
|
11
11
|
import { c as pe } from "./cn-qaFjX9_3.js";
|
|
12
12
|
import { useTransition as aa, useState as ve, useRef as oa, useEffect as br, useLayoutEffect as eo, useMemo as ia } from "react";
|
|
13
13
|
import { Button as sa } from "./ui/Button.js";
|
|
14
|
-
import { u as Qe, i as to, P as ro, E as Ur, a as no, S as dr, g as ao } from "./SchemaView-
|
|
14
|
+
import { u as Qe, i as to, P as ro, E as Ur, a as no, S as dr, g as ao } from "./SchemaView-BYRn_-2l.js";
|
|
15
15
|
import { u as xr } from "./context-Lrf2Y9bR.js";
|
|
16
16
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
17
17
|
import { c as oo } from "./index-CPNSgwSb.js";
|
|
@@ -197,7 +197,7 @@ const xo = (e, n) => e ? n(e) : void 0, $o = (e) => e.schema != null && typeof e
|
|
|
197
197
|
parameters: t,
|
|
198
198
|
id: a
|
|
199
199
|
}) => /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
200
|
-
/* @__PURE__ */ $.jsxs(
|
|
200
|
+
/* @__PURE__ */ $.jsxs(Ue, { level: 3, id: `${a}/${n}-parameters`, className: "capitalize", children: [
|
|
201
201
|
e && /* @__PURE__ */ $.jsxs(hr, { children: [
|
|
202
202
|
e,
|
|
203
203
|
" › "
|
|
@@ -1715,19 +1715,19 @@ ${s}` : ", ", i = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
|
|
|
1715
1715
|
${s}${n.join(o)}
|
|
1716
1716
|
${r}${c}` : e === "object" && n.length > 0 ? `${i} ${n.join(o)} ${c}` : `${i}${n.join(o)}${c}`;
|
|
1717
1717
|
}
|
|
1718
|
-
var
|
|
1718
|
+
var ke = (e, n, t) => {
|
|
1719
1719
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
1720
1720
|
case "[object Number]":
|
|
1721
1721
|
return e;
|
|
1722
1722
|
case "[object Array]": {
|
|
1723
1723
|
let a = !1;
|
|
1724
|
-
const l = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1),
|
|
1724
|
+
const l = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (a = Object.keys(s).length > 1), ke(s, n, t)));
|
|
1725
1725
|
return Yr("array", l, a, n.indent, t);
|
|
1726
1726
|
}
|
|
1727
1727
|
case "[object Object]": {
|
|
1728
1728
|
const a = [];
|
|
1729
1729
|
for (const l in e)
|
|
1730
|
-
a.push(`"${l}": ${
|
|
1730
|
+
a.push(`"${l}": ${ke(e[l], n, t)}`);
|
|
1731
1731
|
return Yr("object", a, n.pretty && a.length > 1, n.indent, t);
|
|
1732
1732
|
}
|
|
1733
1733
|
case "[object Null]":
|
|
@@ -1759,7 +1759,7 @@ var Ee = (e, n, t) => {
|
|
|
1759
1759
|
let m = !1, x = !1, v = !1;
|
|
1760
1760
|
switch (n.mimeType) {
|
|
1761
1761
|
case "application/json":
|
|
1762
|
-
n.jsonObj && (r(`payload = ${
|
|
1762
|
+
n.jsonObj && (r(`payload = ${ke(n.jsonObj, s)}`), v = !0, x = !0);
|
|
1763
1763
|
break;
|
|
1764
1764
|
case "multipart/form-data":
|
|
1765
1765
|
if (!n.params)
|
|
@@ -1767,7 +1767,7 @@ var Ee = (e, n, t) => {
|
|
|
1767
1767
|
if (y = {}, n.params.forEach((d) => {
|
|
1768
1768
|
d.fileName ? (d.contentType ? g[d.name] = `('${d.fileName}', open('${d.fileName}', 'rb'), '${d.contentType}')` : g[d.name] = `('${d.fileName}', open('${d.fileName}', 'rb'))`, m = !0) : (y[d.name] = d.value, x = !0);
|
|
1769
1769
|
}), m) {
|
|
1770
|
-
r(`files = ${
|
|
1770
|
+
r(`files = ${ke(g, s)}`), x && r(`payload = ${ke(y, s)}`);
|
|
1771
1771
|
const d = fe(u, "content-type");
|
|
1772
1772
|
d && delete u[d];
|
|
1773
1773
|
} else {
|
|
@@ -1780,7 +1780,7 @@ var Ee = (e, n, t) => {
|
|
|
1780
1780
|
break;
|
|
1781
1781
|
default: {
|
|
1782
1782
|
if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
|
|
1783
|
-
r(`payload = ${
|
|
1783
|
+
r(`payload = ${ke(n.paramsObj, s)}`), x = !0;
|
|
1784
1784
|
break;
|
|
1785
1785
|
}
|
|
1786
1786
|
const d = JSON.stringify(n.text);
|
|
@@ -2183,9 +2183,9 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2183
2183
|
ruby: qi,
|
|
2184
2184
|
shell: Ii,
|
|
2185
2185
|
swift: Li
|
|
2186
|
-
},
|
|
2186
|
+
}, Te = {}, Ie = { exports: {} };
|
|
2187
2187
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2188
|
-
var _i =
|
|
2188
|
+
var _i = Ie.exports, tn;
|
|
2189
2189
|
function Bi() {
|
|
2190
2190
|
return tn || (tn = 1, function(e, n) {
|
|
2191
2191
|
(function(t) {
|
|
@@ -2304,7 +2304,7 @@ function Bi() {
|
|
|
2304
2304
|
else
|
|
2305
2305
|
t.punycode = r;
|
|
2306
2306
|
})(_i);
|
|
2307
|
-
}(
|
|
2307
|
+
}(Ie, Ie.exports)), Ie.exports;
|
|
2308
2308
|
}
|
|
2309
2309
|
var mt, rn;
|
|
2310
2310
|
function pa() {
|
|
@@ -2797,13 +2797,13 @@ function jr() {
|
|
|
2797
2797
|
throw new o('"allowMissing" argument must be a boolean');
|
|
2798
2798
|
if (U(/^%?[^%]*%?$/, I) === null)
|
|
2799
2799
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2800
|
-
var B = K(I), Q = B.length > 0 ? B[0] : "", W = ne("%" + Q + "%", _), Y = W.name, ae = W.value, he = !1,
|
|
2801
|
-
|
|
2802
|
-
for (var
|
|
2803
|
-
var ye = B[
|
|
2804
|
-
if ((
|
|
2800
|
+
var B = K(I), Q = B.length > 0 ? B[0] : "", W = ne("%" + Q + "%", _), Y = W.name, ae = W.value, he = !1, we = W.alias;
|
|
2801
|
+
we && (Q = we[0], k(B, E([0, 1], we)));
|
|
2802
|
+
for (var Pe = 1, je = !0; Pe < B.length; Pe += 1) {
|
|
2803
|
+
var ye = B[Pe], qe = q(ye, 0, 1), Ce = q(ye, -1);
|
|
2804
|
+
if ((qe === '"' || qe === "'" || qe === "`" || Ce === '"' || Ce === "'" || Ce === "`") && qe !== Ce)
|
|
2805
2805
|
throw new r("property names with quotes must have matching quotes");
|
|
2806
|
-
if ((ye === "constructor" || !
|
|
2806
|
+
if ((ye === "constructor" || !je) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
|
|
2807
2807
|
ae = H[Y];
|
|
2808
2808
|
else if (ae != null) {
|
|
2809
2809
|
if (!(ye in ae)) {
|
|
@@ -2811,12 +2811,12 @@ function jr() {
|
|
|
2811
2811
|
throw new o("base intrinsic for " + I + " exists, but the property is not available.");
|
|
2812
2812
|
return;
|
|
2813
2813
|
}
|
|
2814
|
-
if (d &&
|
|
2815
|
-
var
|
|
2816
|
-
|
|
2814
|
+
if (d && Pe + 1 >= B.length) {
|
|
2815
|
+
var Se = d(ae, ye);
|
|
2816
|
+
je = !!Se, je && "get" in Se && !("originalValue" in Se.get) ? ae = Se.get : ae = ae[ye];
|
|
2817
2817
|
} else
|
|
2818
|
-
|
|
2819
|
-
|
|
2818
|
+
je = re(ae, ye), ae = ae[ye];
|
|
2819
|
+
je && !he && (H[Y] = ae);
|
|
2820
2820
|
}
|
|
2821
2821
|
}
|
|
2822
2822
|
return ae;
|
|
@@ -2972,7 +2972,7 @@ function gs() {
|
|
|
2972
2972
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
2973
2973
|
if (W(M, "numericSeparator") && typeof M.numericSeparator != "boolean")
|
|
2974
2974
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
2975
|
-
var
|
|
2975
|
+
var Oe = M.numericSeparator;
|
|
2976
2976
|
if (typeof S > "u")
|
|
2977
2977
|
return "undefined";
|
|
2978
2978
|
if (S === null)
|
|
@@ -2980,33 +2980,33 @@ function gs() {
|
|
|
2980
2980
|
if (typeof S == "boolean")
|
|
2981
2981
|
return S ? "true" : "false";
|
|
2982
2982
|
if (typeof S == "string")
|
|
2983
|
-
return
|
|
2983
|
+
return Se(S, M);
|
|
2984
2984
|
if (typeof S == "number") {
|
|
2985
2985
|
if (S === 0)
|
|
2986
2986
|
return 1 / 0 / S > 0 ? "0" : "-0";
|
|
2987
2987
|
var de = String(S);
|
|
2988
|
-
return
|
|
2988
|
+
return Oe ? A(S, de) : de;
|
|
2989
2989
|
}
|
|
2990
2990
|
if (typeof S == "bigint") {
|
|
2991
2991
|
var xe = String(S) + "n";
|
|
2992
|
-
return
|
|
2992
|
+
return Oe ? A(S, xe) : xe;
|
|
2993
2993
|
}
|
|
2994
2994
|
var at = typeof M.depth > "u" ? 5 : M.depth;
|
|
2995
2995
|
if (typeof ee > "u" && (ee = 0), ee >= at && at > 0 && typeof S == "object")
|
|
2996
2996
|
return U(S) ? "[Array]" : "[Object]";
|
|
2997
|
-
var
|
|
2997
|
+
var Re = Ta(M, ee);
|
|
2998
2998
|
if (typeof ie > "u")
|
|
2999
2999
|
ie = [];
|
|
3000
3000
|
else if (he(ie, S) >= 0)
|
|
3001
3001
|
return "[Circular]";
|
|
3002
|
-
function me(
|
|
3002
|
+
function me(Ee, We, qa) {
|
|
3003
3003
|
if (We && (ie = N.call(ie), ie.push(We)), qa) {
|
|
3004
3004
|
var Ir = {
|
|
3005
3005
|
depth: M.depth
|
|
3006
3006
|
};
|
|
3007
|
-
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle), w(
|
|
3007
|
+
return W(M, "quoteStyle") && (Ir.quoteStyle = M.quoteStyle), w(Ee, Ir, ee + 1, ie);
|
|
3008
3008
|
}
|
|
3009
|
-
return w(
|
|
3009
|
+
return w(Ee, M, ee + 1, ie);
|
|
3010
3010
|
}
|
|
3011
3011
|
if (typeof S == "function" && !z(S)) {
|
|
3012
3012
|
var qr = ae(S), Cr = Me(S, me);
|
|
@@ -3014,18 +3014,18 @@ function gs() {
|
|
|
3014
3014
|
}
|
|
3015
3015
|
if (_(S)) {
|
|
3016
3016
|
var Rr = H ? j.call(String(S), /^(Symbol\(.*\))_[^)]*$/, "$1") : oe.call(S);
|
|
3017
|
-
return typeof S == "object" && !H ?
|
|
3017
|
+
return typeof S == "object" && !H ? Ne(Rr) : Rr;
|
|
3018
3018
|
}
|
|
3019
|
-
if (
|
|
3020
|
-
for (var
|
|
3021
|
-
|
|
3022
|
-
return
|
|
3019
|
+
if (Ce(S)) {
|
|
3020
|
+
for (var Ae = "<" + p.call(String(S.nodeName)), ot = S.attributes || [], ze = 0; ze < ot.length; ze++)
|
|
3021
|
+
Ae += " " + ot[ze].name + "=" + F(q(ot[ze].value), "double", M);
|
|
3022
|
+
return Ae += ">", S.childNodes && S.childNodes.length && (Ae += "..."), Ae += "</" + p.call(String(S.nodeName)) + ">", Ae;
|
|
3023
3023
|
}
|
|
3024
3024
|
if (U(S)) {
|
|
3025
3025
|
if (S.length === 0)
|
|
3026
3026
|
return "[]";
|
|
3027
3027
|
var it = Me(S, me);
|
|
3028
|
-
return
|
|
3028
|
+
return Re && !Oa(it) ? "[" + nt(it, Re) + "]" : "[ " + R.call(it, ", ") + " ]";
|
|
3029
3029
|
}
|
|
3030
3030
|
if (K(S)) {
|
|
3031
3031
|
var st = Me(S, me);
|
|
@@ -3037,39 +3037,39 @@ function gs() {
|
|
|
3037
3037
|
if (be !== "symbol" && typeof S.inspect == "function")
|
|
3038
3038
|
return S.inspect();
|
|
3039
3039
|
}
|
|
3040
|
-
if (
|
|
3040
|
+
if (we(S)) {
|
|
3041
3041
|
var Er = [];
|
|
3042
|
-
return a && a.call(S, function(
|
|
3043
|
-
Er.push(me(We, S, !0) + " => " + me(
|
|
3044
|
-
}), Pr("Map", t.call(S), Er,
|
|
3042
|
+
return a && a.call(S, function(Ee, We) {
|
|
3043
|
+
Er.push(me(We, S, !0) + " => " + me(Ee, S));
|
|
3044
|
+
}), Pr("Map", t.call(S), Er, Re);
|
|
3045
3045
|
}
|
|
3046
3046
|
if (ye(S)) {
|
|
3047
3047
|
var kr = [];
|
|
3048
|
-
return o && o.call(S, function(
|
|
3049
|
-
kr.push(me(
|
|
3050
|
-
}), Pr("Set", r.call(S), kr,
|
|
3048
|
+
return o && o.call(S, function(Ee) {
|
|
3049
|
+
kr.push(me(Ee, S));
|
|
3050
|
+
}), Pr("Set", r.call(S), kr, Re);
|
|
3051
3051
|
}
|
|
3052
|
-
if (Te(S))
|
|
3053
|
-
return rt("WeakMap");
|
|
3054
3052
|
if (Pe(S))
|
|
3053
|
+
return rt("WeakMap");
|
|
3054
|
+
if (qe(S))
|
|
3055
3055
|
return rt("WeakSet");
|
|
3056
|
-
if (
|
|
3056
|
+
if (je(S))
|
|
3057
3057
|
return rt("WeakRef");
|
|
3058
3058
|
if (G(S))
|
|
3059
|
-
return
|
|
3059
|
+
return Ne(me(Number(S)));
|
|
3060
3060
|
if (B(S))
|
|
3061
|
-
return
|
|
3061
|
+
return Ne(me(L.call(S)));
|
|
3062
3062
|
if (I(S))
|
|
3063
|
-
return
|
|
3063
|
+
return Ne(x.call(S));
|
|
3064
3064
|
if (ne(S))
|
|
3065
|
-
return
|
|
3065
|
+
return Ne(me(String(S)));
|
|
3066
3066
|
if (typeof window < "u" && S === window)
|
|
3067
3067
|
return "{ [object Window] }";
|
|
3068
3068
|
if (typeof globalThis < "u" && S === globalThis || typeof Ke < "u" && S === Ke)
|
|
3069
3069
|
return "{ [object globalThis] }";
|
|
3070
3070
|
if (!J(S) && !z(S)) {
|
|
3071
3071
|
var lt = Me(S, me), Nr = Z ? Z(S) === Object.prototype : S instanceof Object || S.constructor === Object, ct = S instanceof Object ? "" : "null prototype", Ar = !Nr && D && Object(S) === S && D in S ? d.call(Y(S), 8, -1) : ct ? "Object" : "", Pa = Nr || typeof S.constructor != "function" ? "" : S.constructor.name ? S.constructor.name + " " : "", ut = Pa + (Ar || ct ? "[" + R.call(b.call([], Ar || [], ct || []), ": ") + "] " : "");
|
|
3072
|
-
return lt.length === 0 ? ut + "{}" :
|
|
3072
|
+
return lt.length === 0 ? ut + "{}" : Re ? ut + "{" + nt(lt, Re) + "}" : ut + "{ " + R.call(lt, ", ") + " }";
|
|
3073
3073
|
}
|
|
3074
3074
|
return String(S);
|
|
3075
3075
|
};
|
|
@@ -3146,7 +3146,7 @@ function gs() {
|
|
|
3146
3146
|
return X;
|
|
3147
3147
|
return -1;
|
|
3148
3148
|
}
|
|
3149
|
-
function
|
|
3149
|
+
function we(w) {
|
|
3150
3150
|
if (!t || !w || typeof w != "object")
|
|
3151
3151
|
return !1;
|
|
3152
3152
|
try {
|
|
@@ -3161,7 +3161,7 @@ function gs() {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
return !1;
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function Pe(w) {
|
|
3165
3165
|
if (!c || !w || typeof w != "object")
|
|
3166
3166
|
return !1;
|
|
3167
3167
|
try {
|
|
@@ -3176,7 +3176,7 @@ function gs() {
|
|
|
3176
3176
|
}
|
|
3177
3177
|
return !1;
|
|
3178
3178
|
}
|
|
3179
|
-
function
|
|
3179
|
+
function je(w) {
|
|
3180
3180
|
if (!m || !w || typeof w != "object")
|
|
3181
3181
|
return !1;
|
|
3182
3182
|
try {
|
|
@@ -3200,7 +3200,7 @@ function gs() {
|
|
|
3200
3200
|
}
|
|
3201
3201
|
return !1;
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function qe(w) {
|
|
3204
3204
|
if (!y || !w || typeof w != "object")
|
|
3205
3205
|
return !1;
|
|
3206
3206
|
try {
|
|
@@ -3215,13 +3215,13 @@ function gs() {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
return !1;
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3218
|
+
function Ce(w) {
|
|
3219
3219
|
return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function Se(w, S) {
|
|
3222
3222
|
if (w.length > S.maxStringLength) {
|
|
3223
3223
|
var X = w.length - S.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
|
|
3224
|
-
return
|
|
3224
|
+
return Se(d.call(w, 0, S.maxStringLength), S) + ee;
|
|
3225
3225
|
}
|
|
3226
3226
|
var ie = j.call(j.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Sa);
|
|
3227
3227
|
return F(ie, "single", S);
|
|
@@ -3236,7 +3236,7 @@ function gs() {
|
|
|
3236
3236
|
}[S];
|
|
3237
3237
|
return X ? "\\" + X : "\\x" + (S < 16 ? "0" : "") + T.call(S.toString(16));
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3239
|
+
function Ne(w) {
|
|
3240
3240
|
return "Object(" + w + ")";
|
|
3241
3241
|
}
|
|
3242
3242
|
function rt(w) {
|
|
@@ -3284,8 +3284,8 @@ function gs() {
|
|
|
3284
3284
|
var M = typeof P == "function" ? P(w) : [], be;
|
|
3285
3285
|
if (H) {
|
|
3286
3286
|
be = {};
|
|
3287
|
-
for (var
|
|
3288
|
-
be["$" + M[
|
|
3287
|
+
for (var Oe = 0; Oe < M.length; Oe++)
|
|
3288
|
+
be["$" + M[Oe]] = M[Oe];
|
|
3289
3289
|
}
|
|
3290
3290
|
for (var de in w)
|
|
3291
3291
|
W(w, de) && (X && String(Number(de)) === de && de < w.length || H && be["$" + de] instanceof Symbol || (O.call(/[^\w$]/, de) ? ee.push(S(de, w) + ": " + S(w[de], w)) : ee.push(de + ": " + S(w[de], w))));
|
|
@@ -3837,7 +3837,7 @@ function ba() {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
var Kn;
|
|
3839
3839
|
function $s() {
|
|
3840
|
-
if (Kn) return
|
|
3840
|
+
if (Kn) return Te;
|
|
3841
3841
|
Kn = 1;
|
|
3842
3842
|
var e = Bi();
|
|
3843
3843
|
function n() {
|
|
@@ -3957,8 +3957,8 @@ function $s() {
|
|
|
3957
3957
|
ae !== -1 && (this.hash = P.substr(ae), P = P.slice(0, ae));
|
|
3958
3958
|
var he = P.indexOf("?");
|
|
3959
3959
|
if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), O && (this.query = f.parse(this.query)), P = P.slice(0, he)) : O && (this.search = "", this.query = {}), P && (this.pathname = P), v[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3960
|
-
var B = this.pathname || "",
|
|
3961
|
-
this.path = B +
|
|
3960
|
+
var B = this.pathname || "", we = this.search || "";
|
|
3961
|
+
this.path = B + we;
|
|
3962
3962
|
}
|
|
3963
3963
|
return this.href = this.format(), this;
|
|
3964
3964
|
};
|
|
@@ -4056,7 +4056,7 @@ function $s() {
|
|
|
4056
4056
|
}, n.prototype.parseHost = function() {
|
|
4057
4057
|
var p = this.host, O = a.exec(p);
|
|
4058
4058
|
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4059
|
-
},
|
|
4059
|
+
}, Te.parse = h, Te.resolve = j, Te.resolveObject = T, Te.format = d, Te.Url = n, Te;
|
|
4060
4060
|
}
|
|
4061
4061
|
var cr = $s(), ur = /* @__PURE__ */ ba(), ws = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), js = class {
|
|
4062
4062
|
constructor(e, n = {}) {
|
|
@@ -4328,7 +4328,7 @@ const Ss = ({
|
|
|
4328
4328
|
),
|
|
4329
4329
|
children: e
|
|
4330
4330
|
}
|
|
4331
|
-
), $a = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx("div", { className: pe("bg-card overflow-auto p-2", n), children: e }), wa = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx("div", { className: pe("border-t bg-muted dark:bg-transparent p-3", n), children: e }),
|
|
4331
|
+
), $a = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx("div", { className: pe("bg-card overflow-auto p-2", n), children: e }), wa = ({ children: e, className: n }) => /* @__PURE__ */ $.jsx("div", { className: pe("border-t bg-muted dark:bg-transparent p-3", n), children: e }), $e = (e, n) => {
|
|
4332
4332
|
if (e.example !== void 0)
|
|
4333
4333
|
return e.example;
|
|
4334
4334
|
if (e.examples && typeof e.examples == "object" && "default" in e.examples) {
|
|
@@ -4336,18 +4336,47 @@ const Ss = ({
|
|
|
4336
4336
|
if (t !== null)
|
|
4337
4337
|
return typeof t == "object" && "value" in t ? t.value : t;
|
|
4338
4338
|
}
|
|
4339
|
+
if (e.const !== void 0)
|
|
4340
|
+
return e.const;
|
|
4339
4341
|
if (e.type === "object" && e.properties) {
|
|
4340
4342
|
const t = {};
|
|
4341
4343
|
for (const [a, l] of Object.entries(e.properties))
|
|
4342
|
-
typeof l == "object" && (t[a] =
|
|
4344
|
+
typeof l == "object" && (t[a] = $e(l, a));
|
|
4343
4345
|
return t;
|
|
4344
4346
|
}
|
|
4345
4347
|
if (e.type === "array")
|
|
4346
4348
|
return Array.isArray(e.items) ? e.items.map(
|
|
4347
|
-
(t) =>
|
|
4348
|
-
) : e.items ? [
|
|
4349
|
+
(t) => $e(t)
|
|
4350
|
+
) : e.items ? [$e(e.items)] : [];
|
|
4351
|
+
if (e.format !== void 0)
|
|
4352
|
+
switch (e.format) {
|
|
4353
|
+
case "date-time":
|
|
4354
|
+
return "2024-08-25T15:00:00Z";
|
|
4355
|
+
case "date":
|
|
4356
|
+
return "2024-08-25";
|
|
4357
|
+
case "time":
|
|
4358
|
+
return "15:00:00";
|
|
4359
|
+
case "email":
|
|
4360
|
+
return "test@example.com";
|
|
4361
|
+
case "uri":
|
|
4362
|
+
return "https://www.example.com/path/to/resource";
|
|
4363
|
+
case "uri-reference":
|
|
4364
|
+
return "/path/to/resource";
|
|
4365
|
+
case "uuid":
|
|
4366
|
+
return "00000000-0000-0000-0000-000000000000";
|
|
4367
|
+
}
|
|
4349
4368
|
if (e.enum)
|
|
4350
4369
|
return e.enum[0];
|
|
4370
|
+
if (e.oneOf) {
|
|
4371
|
+
const t = Math.floor(Math.random() * e.oneOf.length);
|
|
4372
|
+
return $e(e.oneOf[t]);
|
|
4373
|
+
}
|
|
4374
|
+
if (e.anyOf) {
|
|
4375
|
+
const t = Math.floor(Math.random() * e.anyOf.length);
|
|
4376
|
+
return $e(e.anyOf[t]);
|
|
4377
|
+
}
|
|
4378
|
+
if (e.allOf)
|
|
4379
|
+
return e.allOf.reduce((t, a) => ({ ...t, ...$e(a) }), {});
|
|
4351
4380
|
switch (e.type) {
|
|
4352
4381
|
case "string":
|
|
4353
4382
|
return n || "string";
|
|
@@ -4381,7 +4410,7 @@ const Ss = ({
|
|
|
4381
4410
|
if (c)
|
|
4382
4411
|
return "value" in c ? c.value : c;
|
|
4383
4412
|
if (o != null && o.schema)
|
|
4384
|
-
return
|
|
4413
|
+
return $e(o.schema);
|
|
4385
4414
|
}, [c, o == null ? void 0 : o.schema]);
|
|
4386
4415
|
br(() => {
|
|
4387
4416
|
u && (t == null || t(u));
|
|
@@ -4577,7 +4606,7 @@ const Ss = ({
|
|
|
4577
4606
|
}
|
|
4578
4607
|
), { selectedServer: T } = vr(i.data.schema.servers), p = ia(() => {
|
|
4579
4608
|
var P;
|
|
4580
|
-
const C = x ?? ((P = d == null ? void 0 : d[0]) != null && P.schema ?
|
|
4609
|
+
const C = x ?? ((P = d == null ? void 0 : d[0]) != null && P.schema ? $e(
|
|
4581
4610
|
d[0].schema
|
|
4582
4611
|
) : void 0), L = new js({
|
|
4583
4612
|
method: e.method.toLocaleUpperCase(),
|
|
@@ -4700,7 +4729,7 @@ const Ss = ({
|
|
|
4700
4729
|
),
|
|
4701
4730
|
children: [
|
|
4702
4731
|
/* @__PURE__ */ $.jsx(
|
|
4703
|
-
|
|
4732
|
+
Ue,
|
|
4704
4733
|
{
|
|
4705
4734
|
level: 2,
|
|
4706
4735
|
id: t.slug,
|
|
@@ -4743,7 +4772,7 @@ const Ss = ({
|
|
|
4743
4772
|
var y;
|
|
4744
4773
|
return /* @__PURE__ */ $.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
4745
4774
|
/* @__PURE__ */ $.jsxs(
|
|
4746
|
-
|
|
4775
|
+
Ue,
|
|
4747
4776
|
{
|
|
4748
4777
|
level: 3,
|
|
4749
4778
|
className: "capitalize flex items-center gap-2",
|
|
@@ -4764,7 +4793,7 @@ const Ss = ({
|
|
|
4764
4793
|
}),
|
|
4765
4794
|
t.responses.length > 0 && /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
4766
4795
|
/* @__PURE__ */ $.jsxs(
|
|
4767
|
-
|
|
4796
|
+
Ue,
|
|
4768
4797
|
{
|
|
4769
4798
|
level: 3,
|
|
4770
4799
|
className: "capitalize mt-8 pt-8 border-t",
|
|
@@ -4990,7 +5019,7 @@ const Fs = _e(
|
|
|
4990
5019
|
/* @__PURE__ */ $.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
4991
5020
|
/* @__PURE__ */ $.jsx(Ya, { children: g }),
|
|
4992
5021
|
/* @__PURE__ */ $.jsxs(
|
|
4993
|
-
|
|
5022
|
+
Ue,
|
|
4994
5023
|
{
|
|
4995
5024
|
level: 1,
|
|
4996
5025
|
id: "description",
|
|
@@ -5091,4 +5120,4 @@ export {
|
|
|
5091
5120
|
ul as OperationList,
|
|
5092
5121
|
Fs as OperationsFragment
|
|
5093
5122
|
};
|
|
5094
|
-
//# sourceMappingURL=OperationList-
|
|
5123
|
+
//# sourceMappingURL=OperationList-CKac6iap.js.map
|