zudoku 0.66.0 → 0.66.2
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/config/validators/validate.d.ts +0 -2
- package/dist/config/validators/validate.js +0 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +1 -1
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +5 -1
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
- package/dist/vite/config.js +1 -4
- package/dist/vite/config.js.map +1 -1
- package/lib/ActionButton-DUgvSylL.js +25 -0
- package/lib/ActionButton-DUgvSylL.js.map +1 -0
- package/lib/{ClaudeLogo-PxFjou9w.js → ClaudeLogo-CGRfGTk2.js} +2 -2
- package/lib/{ClaudeLogo-PxFjou9w.js.map → ClaudeLogo-CGRfGTk2.js.map} +1 -1
- package/lib/Drawer-Ci7XwhqT.js.map +1 -1
- package/lib/{ErrorAlert-BqjbNHIn.js → ErrorAlert-BUlG32M9.js} +6 -6
- package/lib/{ErrorAlert-BqjbNHIn.js.map → ErrorAlert-BUlG32M9.js.map} +1 -1
- package/lib/{MdxPage-CVFatbHw.js → MdxPage-Bjf72BP3.js} +7 -7
- package/lib/{MdxPage-CVFatbHw.js.map → MdxPage-Bjf72BP3.js.map} +1 -1
- package/lib/{Mermaid-CIFixY6C.js → Mermaid-D_VSX7_Q.js} +3 -3
- package/lib/{Mermaid-CIFixY6C.js.map → Mermaid-D_VSX7_Q.js.map} +1 -1
- package/lib/{OAuthErrorPage-Dup79DJk.js → OAuthErrorPage-1Ekji0PK.js} +6 -6
- package/lib/{OAuthErrorPage-Dup79DJk.js.map → OAuthErrorPage-1Ekji0PK.js.map} +1 -1
- package/lib/{OasProvider-BJeMq29o.js → OasProvider-BZxmTyMM.js} +3 -3
- package/lib/{OasProvider-BJeMq29o.js.map → OasProvider-BZxmTyMM.js.map} +1 -1
- package/lib/{OperationList-ff3ZvQsO.js → OperationList-B7nPIFB8.js} +329 -348
- package/lib/OperationList-B7nPIFB8.js.map +1 -0
- package/lib/{RouteGuard-BXy13JSz.js → RouteGuard-9wjejsKm.js} +3 -3
- package/lib/{RouteGuard-BXy13JSz.js.map → RouteGuard-9wjejsKm.js.map} +1 -1
- package/lib/{RouterError-CKOZTsDD.js → RouterError-DfTZblpv.js} +2 -2
- package/lib/{RouterError-CKOZTsDD.js.map → RouterError-DfTZblpv.js.map} +1 -1
- package/lib/{SchemaList-BSC1KM3v.js → SchemaList-16_obkku.js} +7 -7
- package/lib/{SchemaList-BSC1KM3v.js.map → SchemaList-16_obkku.js.map} +1 -1
- package/lib/{SchemaView-CgwJ9gtb.js → SchemaView-eyvR4bRt.js} +3 -3
- package/lib/{SchemaView-CgwJ9gtb.js.map → SchemaView-eyvR4bRt.js.map} +1 -1
- package/lib/Select-CkxXP5I7.js +243 -0
- package/lib/Select-CkxXP5I7.js.map +1 -0
- package/lib/Separator-CTPSeW1S.js +27 -0
- package/lib/Separator-CTPSeW1S.js.map +1 -0
- package/lib/{SignUp-Pm_LGm6T.js → SignUp-D54_QWFy.js} +3 -3
- package/lib/{SignUp-Pm_LGm6T.js.map → SignUp-D54_QWFy.js.map} +1 -1
- package/lib/{SyntaxHighlight-bkmst3oV.js → SyntaxHighlight-j_HRSPCU.js} +1508 -1492
- package/lib/SyntaxHighlight-j_HRSPCU.js.map +1 -0
- package/lib/{Toc-TUXNFbKl.js → Toc-z05x698-.js} +2 -2
- package/lib/{Toc-TUXNFbKl.js.map → Toc-z05x698-.js.map} +1 -1
- package/lib/{ZudokuContext-np1wheDl.js → ZudokuContext-BXldanA8.js} +5 -5
- package/lib/{ZudokuContext-np1wheDl.js.map → ZudokuContext-BXldanA8.js.map} +1 -1
- package/lib/chunk-PVWAREVJ-dLIqswPy.js.map +1 -1
- package/lib/{circular-XPj_dwqA.js → circular-D5sYCIWL.js} +2 -2
- package/lib/{circular-XPj_dwqA.js.map → circular-D5sYCIWL.js.map} +1 -1
- package/lib/{createServer-D01nCTNp.js → createServer-BlwU7lIr.js} +4 -4
- package/lib/{createServer-D01nCTNp.js.map → createServer-BlwU7lIr.js.map} +1 -1
- package/lib/createVariantComponent-B9_dVBvu.js +35 -0
- package/lib/createVariantComponent-B9_dVBvu.js.map +1 -0
- package/lib/{errors-B0hNTPFO.js → errors-BtC4Kn2j.js} +2 -2
- package/lib/{errors-B0hNTPFO.js.map → errors-BtC4Kn2j.js.map} +1 -1
- package/lib/firebase-Ibm_tv3G.js +7366 -0
- package/lib/firebase-Ibm_tv3G.js.map +1 -0
- package/lib/{hook-CvSwcbk6.js → hook-BNxidGQq.js} +2 -2
- package/lib/{hook-CvSwcbk6.js.map → hook-BNxidGQq.js.map} +1 -1
- package/lib/{index-Bjc_QsUR.js → index-CeVTNcfF.js} +452 -476
- package/lib/index-CeVTNcfF.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-DnMgJWrI.js → index-Css56y3F.js} +3 -3
- package/lib/{index-DnMgJWrI.js.map → index-Css56y3F.js.map} +1 -1
- package/lib/{index-mfkNWYG-.js → index-DSOi7zVM.js} +5 -5
- package/lib/{index-mfkNWYG-.js.map → index-DSOi7zVM.js.map} +1 -1
- package/lib/{index-DscsS121.js → index-eKVhlB94.js} +2 -2
- package/lib/{index-DscsS121.js.map → index-eKVhlB94.js.map} +1 -1
- package/lib/index.esm-BYObtETB.js.map +1 -1
- package/lib/index.esm-BoKBnRoT.js +32 -0
- package/lib/index.esm-BoKBnRoT.js.map +1 -0
- package/lib/index.esm-DtzT_KoE.js.map +1 -1
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
- package/lib/{mutation-BlmnL5qL.js → mutation-BoVlx8yA.js} +2 -2
- package/lib/{mutation-BlmnL5qL.js.map → mutation-BoVlx8yA.js.map} +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/useMutation-C6RqWmTS.js +97 -0
- package/lib/useMutation-C6RqWmTS.js.map +1 -0
- package/lib/zudoku.__internal.js +6 -6
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +9 -0
- package/lib/zudoku.auth-firebase.js.map +1 -0
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.auth-supabase.js +4 -4
- package/lib/zudoku.components.js +5 -5
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +4 -4
- package/lib/zudoku.plugin-api-keys.js +162 -178
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +2 -2
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +19 -15
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +11 -1
- package/lib/OperationList-ff3ZvQsO.js.map +0 -1
- package/lib/Select-VmDZ-nKe.js +0 -337
- package/lib/Select-VmDZ-nKe.js.map +0 -1
- package/lib/SyntaxHighlight-bkmst3oV.js.map +0 -1
- package/lib/index-Bjc_QsUR.js.map +0 -1
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as
|
|
3
|
-
import { r as
|
|
2
|
+
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as ue, TrashIcon as En, FileInput as Rn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as bt, CornerDownLeftIcon as qn, SquareCodeIcon as Mn, DownloadIcon as Un, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Kn, ShapesIcon as Xn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
|
|
3
|
+
import { r as es, c as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-PVWAREVJ-dLIqswPy.js";
|
|
4
4
|
import { Button as Ft } from "./ui/Button.js";
|
|
5
|
-
import { J as Ze, K as Ye, L as zt,
|
|
6
|
-
import { Z as
|
|
7
|
-
import * as
|
|
8
|
-
import { createContext as Vt, use as
|
|
9
|
-
import { VisuallyHidden as
|
|
10
|
-
import { z as
|
|
5
|
+
import { J as Ze, K as Ye, L as zt, k as as, M as os, O as is, j as V, e as ls } from "./ZudokuContext-BXldanA8.js";
|
|
6
|
+
import { Z as cs } from "./invariant-CGOLuIIz.js";
|
|
7
|
+
import * as xe from "react";
|
|
8
|
+
import { createContext as Vt, use as ds, useRef as k, useEffect as G, useMemo as Bt, useCallback as D, startTransition as us, useState as E, Fragment as ie, useLayoutEffect as ms, useTransition as ps, useContext as hs } from "react";
|
|
9
|
+
import { VisuallyHidden as fs } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { z as gs, b as xs } from "./index-Css56y3F.js";
|
|
11
11
|
import { B as q } from "./Button-CynVW1JV.js";
|
|
12
|
-
import { D as et, a as tt, c as nt, d as _t, e as qt, g as
|
|
13
|
-
import { B as
|
|
14
|
-
import {
|
|
15
|
-
import { u as
|
|
12
|
+
import { D as et, a as tt, c as nt, d as _t, e as qt, g as ys } from "./Dialog-BQciPiHN.js";
|
|
13
|
+
import { B as pe, S as vs, b as bs } from "./index-DSOi7zVM.js";
|
|
14
|
+
import { u as js } from "./useMutation-C6RqWmTS.js";
|
|
15
|
+
import { u as ae, b as Mt, C as Ct, a as Cs, F as Ns } from "./index.esm-BYObtETB.js";
|
|
16
16
|
import * as st from "@radix-ui/react-collapsible";
|
|
17
|
-
import {
|
|
17
|
+
import { S as Ut, a as Gt, b as Ht, c as Qt, e as Te, g as Ss } from "./Select-CkxXP5I7.js";
|
|
18
|
+
import { h as Nt, i as St, j as wt, k as ws, g as Ts } from "./ErrorAlert-BUlG32M9.js";
|
|
18
19
|
import { c as w } from "./cn-dYga0KKN.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as
|
|
21
|
-
import { D as Jt, a as Wt, b as Kt, d as
|
|
22
|
-
import {
|
|
20
|
+
import { u as As } from "./useCopyToClipboard-B_085nfO.js";
|
|
21
|
+
import { u as $s } from "./useLatest-hmRS46UF.js";
|
|
22
|
+
import { D as Jt, a as Wt, b as Kt, d as Ps, e as Os, f as Ls, c as Ae } from "./DropdownMenu-C8SX_-S_.js";
|
|
23
|
+
import { c as ye, I as ks } from "./createVariantComponent-B9_dVBvu.js";
|
|
23
24
|
import * as Tt from "@radix-ui/react-checkbox";
|
|
24
25
|
import * as $e from "@radix-ui/react-popover";
|
|
25
|
-
import { PopoverAnchor as
|
|
26
|
-
import { P as
|
|
27
|
-
import { f as
|
|
28
|
-
import { C as
|
|
26
|
+
import { PopoverAnchor as Es } from "@radix-ui/react-popover";
|
|
27
|
+
import { P as Rs } from "./index-CrcNWbel.js";
|
|
28
|
+
import { f as Is, g as Ds, C as Fs, b as zs } from "./Command-BpT1iBE6.js";
|
|
29
|
+
import { C as Vs } from "./Card-KFniaZn5.js";
|
|
29
30
|
import * as Xt from "@radix-ui/react-label";
|
|
30
|
-
import { c as
|
|
31
|
-
import * as
|
|
32
|
-
import { A as
|
|
31
|
+
import { c as Bs } from "./index-DI5SPFK9.js";
|
|
32
|
+
import * as he from "@radix-ui/react-radio-group";
|
|
33
|
+
import { A as _s, a as qs, b as Ms } from "./Mermaid-D_VSX7_Q.js";
|
|
33
34
|
let _e;
|
|
34
|
-
const
|
|
35
|
+
const Us = (e) => {
|
|
35
36
|
if (e.errors?.[0])
|
|
36
|
-
throw new
|
|
37
|
+
throw new cs(e.errors[0].message, {
|
|
37
38
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
|
-
class
|
|
41
|
+
class Gs {
|
|
41
42
|
constructor(n) {
|
|
42
43
|
this.config = n;
|
|
43
44
|
}
|
|
44
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
45
|
+
#e = async () => (_e || (_e = import("./createServer-BlwU7lIr.js").then(
|
|
45
46
|
(n) => n.createServer(this.config)
|
|
46
47
|
)), _e);
|
|
47
48
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -54,27 +55,27 @@ class Hs {
|
|
|
54
55
|
if (!r.ok)
|
|
55
56
|
throw new Error("Network response was not ok");
|
|
56
57
|
const o = await r.json();
|
|
57
|
-
return
|
|
58
|
+
return Us(o), o.data;
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function qe(e, n) {
|
|
61
62
|
if (!!!e)
|
|
62
63
|
throw new Error(n);
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function Hs(e) {
|
|
65
66
|
return typeof e == "object" && e !== null;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function Qs(e, n) {
|
|
68
69
|
if (!!!e)
|
|
69
70
|
throw new Error(
|
|
70
71
|
n ?? "Unexpected invariant triggered."
|
|
71
72
|
);
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
+
const Js = /\r\n|[\n\r]/g;
|
|
74
75
|
function We(e, n) {
|
|
75
76
|
let s = 0, a = 1;
|
|
76
|
-
for (const r of e.body.matchAll(
|
|
77
|
-
if (typeof r.index == "number" ||
|
|
77
|
+
for (const r of e.body.matchAll(Js)) {
|
|
78
|
+
if (typeof r.index == "number" || Qs(!1), r.index >= n)
|
|
78
79
|
break;
|
|
79
80
|
s = r.index + r[0].length, a += 1;
|
|
80
81
|
}
|
|
@@ -83,7 +84,7 @@ function We(e, n) {
|
|
|
83
84
|
column: n + 1 - s
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function Ws(e) {
|
|
87
88
|
return Zt(
|
|
88
89
|
e.source,
|
|
89
90
|
We(e.source, e.start)
|
|
@@ -116,7 +117,7 @@ function At(e) {
|
|
|
116
117
|
return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
117
118
|
`);
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
+
function Ks(e) {
|
|
120
121
|
const n = e[0];
|
|
121
122
|
return n == null || "kind" in n || "length" in n ? {
|
|
122
123
|
nodes: n,
|
|
@@ -168,7 +169,7 @@ class rt extends Error {
|
|
|
168
169
|
*/
|
|
169
170
|
constructor(n, ...s) {
|
|
170
171
|
var a, r, o;
|
|
171
|
-
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } =
|
|
172
|
+
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Ks(s);
|
|
172
173
|
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = $t(
|
|
173
174
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
174
175
|
);
|
|
@@ -176,7 +177,7 @@ class rt extends Error {
|
|
|
176
177
|
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
177
178
|
);
|
|
178
179
|
this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((v) => v.start), this.locations = l && c ? l.map((v) => We(c, v)) : x?.map((v) => We(v.source, v.start));
|
|
179
|
-
const h =
|
|
180
|
+
const h = Hs(
|
|
180
181
|
d?.extensions
|
|
181
182
|
) ? d?.extensions : void 0;
|
|
182
183
|
this.extensions = (o = f ?? h) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -218,7 +219,7 @@ class rt extends Error {
|
|
|
218
219
|
for (const s of this.nodes)
|
|
219
220
|
s.loc && (n += `
|
|
220
221
|
|
|
221
|
-
` +
|
|
222
|
+
` + Ws(s.loc));
|
|
222
223
|
else if (this.source && this.locations)
|
|
223
224
|
for (const s of this.locations)
|
|
224
225
|
n += `
|
|
@@ -313,7 +314,7 @@ class Yt {
|
|
|
313
314
|
};
|
|
314
315
|
}
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
+
const Xs = {
|
|
317
318
|
Name: [],
|
|
318
319
|
Document: ["definitions"],
|
|
319
320
|
OperationDefinition: [
|
|
@@ -400,10 +401,10 @@ const Zs = {
|
|
|
400
401
|
ArgumentCoordinate: ["name", "fieldName", "argumentName"],
|
|
401
402
|
DirectiveCoordinate: ["name"],
|
|
402
403
|
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
403
|
-
},
|
|
404
|
+
}, Zs = new Set(Object.keys(Xs));
|
|
404
405
|
function Xa(e) {
|
|
405
406
|
const n = e?.kind;
|
|
406
|
-
return typeof n == "string" &&
|
|
407
|
+
return typeof n == "string" && Zs.has(n);
|
|
407
408
|
}
|
|
408
409
|
var Pt;
|
|
409
410
|
(function(e) {
|
|
@@ -412,7 +413,7 @@ var Pt;
|
|
|
412
413
|
function Ke(e) {
|
|
413
414
|
return e === 9 || e === 32;
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function fe(e) {
|
|
416
417
|
return e >= 48 && e <= 57;
|
|
417
418
|
}
|
|
418
419
|
function en(e) {
|
|
@@ -422,15 +423,15 @@ function en(e) {
|
|
|
422
423
|
function tn(e) {
|
|
423
424
|
return en(e) || e === 95;
|
|
424
425
|
}
|
|
425
|
-
function
|
|
426
|
-
return en(e) ||
|
|
426
|
+
function Ys(e) {
|
|
427
|
+
return en(e) || fe(e) || e === 95;
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function er(e) {
|
|
429
430
|
var n;
|
|
430
431
|
let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
|
|
431
432
|
for (let i = 0; i < e.length; ++i) {
|
|
432
433
|
var o;
|
|
433
|
-
const c = e[i], l =
|
|
434
|
+
const c = e[i], l = tr(c);
|
|
434
435
|
l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
|
|
435
436
|
}
|
|
436
437
|
return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
|
|
@@ -438,13 +439,13 @@ function tr(e) {
|
|
|
438
439
|
r + 1
|
|
439
440
|
);
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
+
function tr(e) {
|
|
442
443
|
let n = 0;
|
|
443
444
|
for (; n < e.length && Ke(e.charCodeAt(n)); )
|
|
444
445
|
++n;
|
|
445
446
|
return n;
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
+
function nr(e, n) {
|
|
448
449
|
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((h) => h.length === 0 || Ke(h.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
|
|
449
450
|
(!r || e.length > 70 || m || o || i);
|
|
450
451
|
let f = "";
|
|
@@ -457,7 +458,7 @@ var b;
|
|
|
457
458
|
(function(e) {
|
|
458
459
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
459
460
|
})(b || (b = {}));
|
|
460
|
-
class
|
|
461
|
+
class sr {
|
|
461
462
|
/**
|
|
462
463
|
* The previously focused non-ignored token.
|
|
463
464
|
*/
|
|
@@ -494,17 +495,17 @@ class rr {
|
|
|
494
495
|
if (n.next)
|
|
495
496
|
n = n.next;
|
|
496
497
|
else {
|
|
497
|
-
const s =
|
|
498
|
+
const s = ar(this, n.end);
|
|
498
499
|
n.next = s, s.prev = n, n = s;
|
|
499
500
|
}
|
|
500
501
|
while (n.kind === b.COMMENT);
|
|
501
502
|
return n;
|
|
502
503
|
}
|
|
503
504
|
}
|
|
504
|
-
function
|
|
505
|
+
function rr(e) {
|
|
505
506
|
return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.DOT || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
+
function oe(e) {
|
|
508
509
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
509
510
|
}
|
|
510
511
|
function Oe(e, n) {
|
|
@@ -516,7 +517,7 @@ function nn(e) {
|
|
|
516
517
|
function sn(e) {
|
|
517
518
|
return e >= 56320 && e <= 57343;
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
+
function X(e, n) {
|
|
520
521
|
const s = e.source.body.codePointAt(n);
|
|
521
522
|
if (s === void 0)
|
|
522
523
|
return b.EOF;
|
|
@@ -530,7 +531,7 @@ function P(e, n, s, a, r) {
|
|
|
530
531
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
531
532
|
return new Yt(n, s, a, o, i, r);
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
+
function ar(e, n) {
|
|
534
535
|
const s = e.source.body, a = s.length;
|
|
535
536
|
let r = n;
|
|
536
537
|
for (; r < a; ) {
|
|
@@ -571,7 +572,7 @@ function or(e, n) {
|
|
|
571
572
|
continue;
|
|
572
573
|
// Comment
|
|
573
574
|
case 35:
|
|
574
|
-
return
|
|
575
|
+
return or(e, r);
|
|
575
576
|
// Token ::
|
|
576
577
|
// - Punctuator
|
|
577
578
|
// - Name
|
|
@@ -612,28 +613,28 @@ function or(e, n) {
|
|
|
612
613
|
return P(e, b.BRACE_R, r, r + 1);
|
|
613
614
|
// StringValue
|
|
614
615
|
case 34:
|
|
615
|
-
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ?
|
|
616
|
+
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? mr(e, r) : lr(e, r);
|
|
616
617
|
}
|
|
617
|
-
if (
|
|
618
|
-
return
|
|
618
|
+
if (fe(o) || o === 45)
|
|
619
|
+
return ir(e, r, o);
|
|
619
620
|
if (tn(o))
|
|
620
|
-
return
|
|
621
|
+
return pr(e, r);
|
|
621
622
|
throw F(
|
|
622
623
|
e.source,
|
|
623
624
|
r,
|
|
624
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
625
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : oe(o) || Oe(s, r) ? `Unexpected character: ${X(e, r)}.` : `Invalid character: ${X(e, r)}.`
|
|
625
626
|
);
|
|
626
627
|
}
|
|
627
628
|
return P(e, b.EOF, a, a);
|
|
628
629
|
}
|
|
629
|
-
function
|
|
630
|
+
function or(e, n) {
|
|
630
631
|
const s = e.source.body, a = s.length;
|
|
631
632
|
let r = n + 1;
|
|
632
633
|
for (; r < a; ) {
|
|
633
634
|
const o = s.charCodeAt(r);
|
|
634
635
|
if (o === 10 || o === 13)
|
|
635
636
|
break;
|
|
636
|
-
if (
|
|
637
|
+
if (oe(o))
|
|
637
638
|
++r;
|
|
638
639
|
else if (Oe(s, r))
|
|
639
640
|
r += 2;
|
|
@@ -648,15 +649,15 @@ function ir(e, n) {
|
|
|
648
649
|
s.slice(n + 1, r)
|
|
649
650
|
);
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
+
function ir(e, n, s) {
|
|
652
653
|
const a = e.source.body;
|
|
653
654
|
let r = n, o = s, i = !1;
|
|
654
655
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
655
|
-
if (o = a.charCodeAt(++r),
|
|
656
|
+
if (o = a.charCodeAt(++r), fe(o))
|
|
656
657
|
throw F(
|
|
657
658
|
e.source,
|
|
658
659
|
r,
|
|
659
|
-
`Invalid number, unexpected digit after 0: ${
|
|
660
|
+
`Invalid number, unexpected digit after 0: ${X(
|
|
660
661
|
e,
|
|
661
662
|
r
|
|
662
663
|
)}.`
|
|
@@ -667,7 +668,7 @@ function lr(e, n, s) {
|
|
|
667
668
|
throw F(
|
|
668
669
|
e.source,
|
|
669
670
|
r,
|
|
670
|
-
`Invalid number, expected digit but got: ${
|
|
671
|
+
`Invalid number, expected digit but got: ${X(
|
|
671
672
|
e,
|
|
672
673
|
r
|
|
673
674
|
)}.`
|
|
@@ -681,22 +682,22 @@ function lr(e, n, s) {
|
|
|
681
682
|
);
|
|
682
683
|
}
|
|
683
684
|
function Me(e, n, s) {
|
|
684
|
-
if (!
|
|
685
|
+
if (!fe(s))
|
|
685
686
|
throw F(
|
|
686
687
|
e.source,
|
|
687
688
|
n,
|
|
688
|
-
`Invalid number, expected digit but got: ${
|
|
689
|
+
`Invalid number, expected digit but got: ${X(
|
|
689
690
|
e,
|
|
690
691
|
n
|
|
691
692
|
)}.`
|
|
692
693
|
);
|
|
693
694
|
const a = e.source.body;
|
|
694
695
|
let r = n + 1;
|
|
695
|
-
for (;
|
|
696
|
+
for (; fe(a.charCodeAt(r)); )
|
|
696
697
|
++r;
|
|
697
698
|
return r;
|
|
698
699
|
}
|
|
699
|
-
function
|
|
700
|
+
function lr(e, n) {
|
|
700
701
|
const s = e.source.body, a = s.length;
|
|
701
702
|
let r = n + 1, o = r, i = "";
|
|
702
703
|
for (; r < a; ) {
|
|
@@ -705,13 +706,13 @@ function cr(e, n) {
|
|
|
705
706
|
return i += s.slice(o, r), P(e, b.STRING, n, r + 1, i);
|
|
706
707
|
if (c === 92) {
|
|
707
708
|
i += s.slice(o, r);
|
|
708
|
-
const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ?
|
|
709
|
+
const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? cr(e, r) : dr(e, r) : ur(e, r);
|
|
709
710
|
i += l.value, r += l.size, o = r;
|
|
710
711
|
continue;
|
|
711
712
|
}
|
|
712
713
|
if (c === 10 || c === 13)
|
|
713
714
|
break;
|
|
714
|
-
if (
|
|
715
|
+
if (oe(c))
|
|
715
716
|
++r;
|
|
716
717
|
else if (Oe(s, r))
|
|
717
718
|
r += 2;
|
|
@@ -719,7 +720,7 @@ function cr(e, n) {
|
|
|
719
720
|
throw F(
|
|
720
721
|
e.source,
|
|
721
722
|
r,
|
|
722
|
-
`Invalid character within String: ${
|
|
723
|
+
`Invalid character within String: ${X(
|
|
723
724
|
e,
|
|
724
725
|
r
|
|
725
726
|
)}.`
|
|
@@ -727,20 +728,20 @@ function cr(e, n) {
|
|
|
727
728
|
}
|
|
728
729
|
throw F(e.source, r, "Unterminated string.");
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
+
function cr(e, n) {
|
|
731
732
|
const s = e.source.body;
|
|
732
733
|
let a = 0, r = 3;
|
|
733
734
|
for (; r < 12; ) {
|
|
734
735
|
const o = s.charCodeAt(n + r++);
|
|
735
736
|
if (o === 125) {
|
|
736
|
-
if (r < 5 || !
|
|
737
|
+
if (r < 5 || !oe(a))
|
|
737
738
|
break;
|
|
738
739
|
return {
|
|
739
740
|
value: String.fromCodePoint(a),
|
|
740
741
|
size: r
|
|
741
742
|
};
|
|
742
743
|
}
|
|
743
|
-
if (a = a << 4 |
|
|
744
|
+
if (a = a << 4 | le(o), a < 0)
|
|
744
745
|
break;
|
|
745
746
|
}
|
|
746
747
|
throw F(
|
|
@@ -752,9 +753,9 @@ function dr(e, n) {
|
|
|
752
753
|
)}".`
|
|
753
754
|
);
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
+
function dr(e, n) {
|
|
756
757
|
const s = e.source.body, a = Ot(s, n + 2);
|
|
757
|
-
if (
|
|
758
|
+
if (oe(a))
|
|
758
759
|
return {
|
|
759
760
|
value: String.fromCodePoint(a),
|
|
760
761
|
size: 6
|
|
@@ -774,12 +775,12 @@ function ur(e, n) {
|
|
|
774
775
|
);
|
|
775
776
|
}
|
|
776
777
|
function Ot(e, n) {
|
|
777
|
-
return
|
|
778
|
+
return le(e.charCodeAt(n)) << 12 | le(e.charCodeAt(n + 1)) << 8 | le(e.charCodeAt(n + 2)) << 4 | le(e.charCodeAt(n + 3));
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
+
function le(e) {
|
|
780
781
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
+
function ur(e, n) {
|
|
783
784
|
const s = e.source.body;
|
|
784
785
|
switch (s.charCodeAt(n + 1)) {
|
|
785
786
|
case 34:
|
|
@@ -833,7 +834,7 @@ function mr(e, n) {
|
|
|
833
834
|
)}".`
|
|
834
835
|
);
|
|
835
836
|
}
|
|
836
|
-
function
|
|
837
|
+
function mr(e, n) {
|
|
837
838
|
const s = e.source.body, a = s.length;
|
|
838
839
|
let r = e.lineStart, o = n + 3, i = o, c = "";
|
|
839
840
|
const l = [];
|
|
@@ -847,7 +848,7 @@ function pr(e, n) {
|
|
|
847
848
|
n,
|
|
848
849
|
o + 3,
|
|
849
850
|
// Return a string of the lines joined with U+000A.
|
|
850
|
-
|
|
851
|
+
er(l).join(`
|
|
851
852
|
`)
|
|
852
853
|
);
|
|
853
854
|
return e.line += l.length - 1, e.lineStart = r, d;
|
|
@@ -860,7 +861,7 @@ function pr(e, n) {
|
|
|
860
861
|
c += s.slice(i, o), l.push(c), m === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
|
|
861
862
|
continue;
|
|
862
863
|
}
|
|
863
|
-
if (
|
|
864
|
+
if (oe(m))
|
|
864
865
|
++o;
|
|
865
866
|
else if (Oe(s, o))
|
|
866
867
|
o += 2;
|
|
@@ -868,7 +869,7 @@ function pr(e, n) {
|
|
|
868
869
|
throw F(
|
|
869
870
|
e.source,
|
|
870
871
|
o,
|
|
871
|
-
`Invalid character within String: ${
|
|
872
|
+
`Invalid character within String: ${X(
|
|
872
873
|
e,
|
|
873
874
|
o
|
|
874
875
|
)}.`
|
|
@@ -876,12 +877,12 @@ function pr(e, n) {
|
|
|
876
877
|
}
|
|
877
878
|
throw F(e.source, o, "Unterminated string.");
|
|
878
879
|
}
|
|
879
|
-
function
|
|
880
|
+
function pr(e, n) {
|
|
880
881
|
const s = e.source.body, a = s.length;
|
|
881
882
|
let r = n + 1;
|
|
882
883
|
for (; r < a; ) {
|
|
883
884
|
const o = s.charCodeAt(r);
|
|
884
|
-
if (
|
|
885
|
+
if (Ys(o))
|
|
885
886
|
++r;
|
|
886
887
|
else
|
|
887
888
|
break;
|
|
@@ -894,7 +895,7 @@ function hr(e, n) {
|
|
|
894
895
|
s.slice(n, r)
|
|
895
896
|
);
|
|
896
897
|
}
|
|
897
|
-
const
|
|
898
|
+
const hr = 10, rn = 2;
|
|
898
899
|
function an(e) {
|
|
899
900
|
return Le(e, []);
|
|
900
901
|
}
|
|
@@ -905,45 +906,45 @@ function Le(e, n) {
|
|
|
905
906
|
case "function":
|
|
906
907
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
907
908
|
case "object":
|
|
908
|
-
return
|
|
909
|
+
return fr(e, n);
|
|
909
910
|
default:
|
|
910
911
|
return String(e);
|
|
911
912
|
}
|
|
912
913
|
}
|
|
913
|
-
function
|
|
914
|
+
function fr(e, n) {
|
|
914
915
|
if (e === null)
|
|
915
916
|
return "null";
|
|
916
917
|
if (n.includes(e))
|
|
917
918
|
return "[Circular]";
|
|
918
919
|
const s = [...n, e];
|
|
919
|
-
if (
|
|
920
|
+
if (gr(e)) {
|
|
920
921
|
const a = e.toJSON();
|
|
921
922
|
if (a !== e)
|
|
922
923
|
return typeof a == "string" ? a : Le(a, s);
|
|
923
924
|
} else if (Array.isArray(e))
|
|
924
|
-
return
|
|
925
|
-
return
|
|
925
|
+
return yr(e, s);
|
|
926
|
+
return xr(e, s);
|
|
926
927
|
}
|
|
927
|
-
function
|
|
928
|
+
function gr(e) {
|
|
928
929
|
return typeof e.toJSON == "function";
|
|
929
930
|
}
|
|
930
|
-
function
|
|
931
|
+
function xr(e, n) {
|
|
931
932
|
const s = Object.entries(e);
|
|
932
|
-
return s.length === 0 ? "{}" : n.length > rn ? "[" +
|
|
933
|
+
return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
|
|
933
934
|
([r, o]) => r + ": " + Le(o, n)
|
|
934
935
|
).join(", ") + " }";
|
|
935
936
|
}
|
|
936
|
-
function
|
|
937
|
+
function yr(e, n) {
|
|
937
938
|
if (e.length === 0)
|
|
938
939
|
return "[]";
|
|
939
940
|
if (n.length > rn)
|
|
940
941
|
return "[Array]";
|
|
941
|
-
const s = Math.min(
|
|
942
|
+
const s = Math.min(hr, e.length), a = e.length - s, r = [];
|
|
942
943
|
for (let o = 0; o < s; ++o)
|
|
943
944
|
r.push(Le(e[o], n));
|
|
944
945
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
945
946
|
}
|
|
946
|
-
function
|
|
947
|
+
function vr(e) {
|
|
947
948
|
const n = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
948
949
|
if (n === "Object" && typeof e.constructor == "function") {
|
|
949
950
|
const s = e.constructor.name;
|
|
@@ -952,11 +953,11 @@ function br(e) {
|
|
|
952
953
|
}
|
|
953
954
|
return n;
|
|
954
955
|
}
|
|
955
|
-
const
|
|
956
|
-
process.env.NODE_ENV === "production",
|
|
956
|
+
const br = globalThis.process && // eslint-disable-next-line no-undef
|
|
957
|
+
process.env.NODE_ENV === "production", jr = (
|
|
957
958
|
/* c8 ignore next 6 */
|
|
958
959
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
959
|
-
|
|
960
|
+
br ? function(n, s) {
|
|
960
961
|
return n instanceof s;
|
|
961
962
|
} : function(n, s) {
|
|
962
963
|
if (n instanceof s)
|
|
@@ -1003,17 +1004,17 @@ class on {
|
|
|
1003
1004
|
return "Source";
|
|
1004
1005
|
}
|
|
1005
1006
|
}
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1007
|
+
function Cr(e) {
|
|
1008
|
+
return jr(e, on);
|
|
1008
1009
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const n =
|
|
1010
|
+
function Nr(e) {
|
|
1011
|
+
const n = Cr(e) ? e : new on(e), s = n.body, a = new sr(n);
|
|
1011
1012
|
let r = "", o = !1;
|
|
1012
1013
|
for (; a.advance().kind !== b.EOF; ) {
|
|
1013
|
-
const i = a.token, c = i.kind, l = !
|
|
1014
|
+
const i = a.token, c = i.kind, l = !rr(i.kind);
|
|
1014
1015
|
o && (l || i.kind === b.SPREAD) && (r += " ");
|
|
1015
1016
|
const m = s.slice(i.start, i.end);
|
|
1016
|
-
c === b.BLOCK_STRING ? r +=
|
|
1017
|
+
c === b.BLOCK_STRING ? r += nr(i.value, {
|
|
1017
1018
|
minimize: !0
|
|
1018
1019
|
}) : r += m, o = l;
|
|
1019
1020
|
}
|
|
@@ -1026,14 +1027,14 @@ const ln = Vt(
|
|
|
1026
1027
|
client: n
|
|
1027
1028
|
}) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
|
|
1028
1029
|
queryFn: () => e.fetch(n, s),
|
|
1029
|
-
queryKey: [
|
|
1030
|
-
}),
|
|
1031
|
-
const s =
|
|
1030
|
+
queryKey: [Nr(n.toString()), s]
|
|
1031
|
+
}), Sr = (e, ...[n]) => {
|
|
1032
|
+
const s = ds(ln);
|
|
1032
1033
|
if (s === void 0)
|
|
1033
1034
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1034
1035
|
return cn(s, e, ...n === void 0 ? [] : [n]);
|
|
1035
1036
|
};
|
|
1036
|
-
class
|
|
1037
|
+
class Y extends String {
|
|
1037
1038
|
__apiType;
|
|
1038
1039
|
value;
|
|
1039
1040
|
__meta__;
|
|
@@ -1044,7 +1045,7 @@ class ee extends String {
|
|
|
1044
1045
|
return this.value;
|
|
1045
1046
|
}
|
|
1046
1047
|
}
|
|
1047
|
-
const
|
|
1048
|
+
const wr = new Y(
|
|
1048
1049
|
`
|
|
1049
1050
|
fragment OperationsFragment on OperationItem {
|
|
1050
1051
|
slug
|
|
@@ -1116,7 +1117,7 @@ const Tr = new ee(
|
|
|
1116
1117
|
}
|
|
1117
1118
|
`,
|
|
1118
1119
|
{ fragmentName: "OperationsFragment" }
|
|
1119
|
-
),
|
|
1120
|
+
), Tr = new Y(`
|
|
1120
1121
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1121
1122
|
schema(input: $input, type: $type) {
|
|
1122
1123
|
url
|
|
@@ -1125,13 +1126,13 @@ const Tr = new ee(
|
|
|
1125
1126
|
}
|
|
1126
1127
|
}
|
|
1127
1128
|
}
|
|
1128
|
-
`),
|
|
1129
|
+
`), Ar = new Y(`
|
|
1129
1130
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1130
1131
|
schema(input: $input, type: $type) {
|
|
1131
1132
|
openapi
|
|
1132
1133
|
}
|
|
1133
1134
|
}
|
|
1134
|
-
`),
|
|
1135
|
+
`), $r = new Y(`
|
|
1135
1136
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1136
1137
|
schema(input: $input, type: $type) {
|
|
1137
1138
|
servers {
|
|
@@ -1230,7 +1231,7 @@ const Tr = new ee(
|
|
|
1230
1231
|
schema
|
|
1231
1232
|
}
|
|
1232
1233
|
}
|
|
1233
|
-
}`),
|
|
1234
|
+
}`), Pr = new Y(`
|
|
1234
1235
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1235
1236
|
schema(input: $input, type: $type) {
|
|
1236
1237
|
title
|
|
@@ -1245,7 +1246,7 @@ const Tr = new ee(
|
|
|
1245
1246
|
}
|
|
1246
1247
|
}
|
|
1247
1248
|
}
|
|
1248
|
-
`),
|
|
1249
|
+
`), Or = new Y(`
|
|
1249
1250
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1250
1251
|
schema(input: $input, type: $type) {
|
|
1251
1252
|
url
|
|
@@ -1254,7 +1255,7 @@ const Tr = new ee(
|
|
|
1254
1255
|
}
|
|
1255
1256
|
}
|
|
1256
1257
|
}
|
|
1257
|
-
`),
|
|
1258
|
+
`), Lr = new Y(`
|
|
1258
1259
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1259
1260
|
schema(input: $input, type: $type) {
|
|
1260
1261
|
extensions
|
|
@@ -1278,15 +1279,15 @@ const Tr = new ee(
|
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
1281
|
`), kr = {
|
|
1281
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1282
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n":
|
|
1283
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1284
|
-
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n":
|
|
1285
|
-
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n":
|
|
1286
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1287
|
-
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n":
|
|
1282
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
|
|
1283
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": wr,
|
|
1284
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
|
|
1285
|
+
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": $r,
|
|
1286
|
+
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Pr,
|
|
1287
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Or,
|
|
1288
|
+
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Lr
|
|
1288
1289
|
};
|
|
1289
|
-
function
|
|
1290
|
+
function Er(e) {
|
|
1290
1291
|
return kr[e] ?? {};
|
|
1291
1292
|
}
|
|
1292
1293
|
function B({
|
|
@@ -1294,7 +1295,7 @@ function B({
|
|
|
1294
1295
|
}) {
|
|
1295
1296
|
return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
|
|
1296
1297
|
}
|
|
1297
|
-
function
|
|
1298
|
+
function ce({
|
|
1298
1299
|
...e
|
|
1299
1300
|
}) {
|
|
1300
1301
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1316,7 +1317,7 @@ function _({
|
|
|
1316
1317
|
}
|
|
1317
1318
|
);
|
|
1318
1319
|
}
|
|
1319
|
-
function
|
|
1320
|
+
function Rr() {
|
|
1320
1321
|
const n = navigator.userAgent.toLowerCase();
|
|
1321
1322
|
if (n.indexOf("win") !== -1)
|
|
1322
1323
|
return "windows";
|
|
@@ -1327,10 +1328,10 @@ function Ir() {
|
|
|
1327
1328
|
if (n.indexOf("x11") !== -1)
|
|
1328
1329
|
return "unix";
|
|
1329
1330
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1331
|
+
function Ir() {
|
|
1332
|
+
return Rr() === "apple";
|
|
1332
1333
|
}
|
|
1333
|
-
const
|
|
1334
|
+
const Dr = {
|
|
1334
1335
|
other: {
|
|
1335
1336
|
alt: "Alt",
|
|
1336
1337
|
meta: "Ctrl",
|
|
@@ -1345,8 +1346,8 @@ const Fr = {
|
|
|
1345
1346
|
shift: "⇧",
|
|
1346
1347
|
option: "⌥"
|
|
1347
1348
|
}
|
|
1348
|
-
},
|
|
1349
|
-
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l =
|
|
1349
|
+
}, Fr = (e, n) => {
|
|
1350
|
+
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = k(n);
|
|
1350
1351
|
return G(() => {
|
|
1351
1352
|
l.current = n;
|
|
1352
1353
|
}, [n]), G(() => {
|
|
@@ -1359,10 +1360,10 @@ const Fr = {
|
|
|
1359
1360
|
}, [c, a, r, o, i]), {
|
|
1360
1361
|
trigger: () => l.current(),
|
|
1361
1362
|
label: s.map(
|
|
1362
|
-
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ?
|
|
1363
|
+
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Ir() ? "apple" : "other"][m] : m
|
|
1363
1364
|
)
|
|
1364
1365
|
};
|
|
1365
|
-
},
|
|
1366
|
+
}, zr = Ze()(
|
|
1366
1367
|
Ye(
|
|
1367
1368
|
(e) => ({
|
|
1368
1369
|
selectedServer: void 0,
|
|
@@ -1370,13 +1371,13 @@ const Fr = {
|
|
|
1370
1371
|
}),
|
|
1371
1372
|
{ name: "zudoku-selected-server" }
|
|
1372
1373
|
)
|
|
1373
|
-
),
|
|
1374
|
-
const { selectedServer: n, setSelectedServer: s } =
|
|
1374
|
+
), Vr = (e) => {
|
|
1375
|
+
const { selectedServer: n, setSelectedServer: s } = zr();
|
|
1375
1376
|
return { selectedServer: Bt(
|
|
1376
1377
|
() => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
|
|
1377
1378
|
[n, e]
|
|
1378
1379
|
), setSelectedServer: s };
|
|
1379
|
-
}, dn =
|
|
1380
|
+
}, dn = xe.forwardRef(
|
|
1380
1381
|
({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
1381
1382
|
"textarea",
|
|
1382
1383
|
{
|
|
@@ -1390,12 +1391,12 @@ const Fr = {
|
|
|
1390
1391
|
)
|
|
1391
1392
|
);
|
|
1392
1393
|
dn.displayName = "Textarea";
|
|
1393
|
-
const
|
|
1394
|
+
const ke = (e = 0) => {
|
|
1394
1395
|
if (e === 0)
|
|
1395
1396
|
return "0 B";
|
|
1396
1397
|
const n = Math.floor(Math.log(e) / Math.log(1e3));
|
|
1397
1398
|
return `${(e / 1e3 ** n).toFixed(n ? 2 : 0)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1398
|
-
},
|
|
1399
|
+
}, Z = ({
|
|
1399
1400
|
children: e,
|
|
1400
1401
|
className: n
|
|
1401
1402
|
}) => /* @__PURE__ */ t.jsxs(
|
|
@@ -1408,7 +1409,7 @@ const Ee = (e = 0) => {
|
|
|
1408
1409
|
children: [
|
|
1409
1410
|
e,
|
|
1410
1411
|
/* @__PURE__ */ t.jsxs(
|
|
1411
|
-
|
|
1412
|
+
ce,
|
|
1412
1413
|
{
|
|
1413
1414
|
className: w(
|
|
1414
1415
|
"flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
|
|
@@ -1416,7 +1417,7 @@ const Ee = (e = 0) => {
|
|
|
1416
1417
|
),
|
|
1417
1418
|
children: [
|
|
1418
1419
|
/* @__PURE__ */ t.jsx(
|
|
1419
|
-
|
|
1420
|
+
Ln,
|
|
1420
1421
|
{
|
|
1421
1422
|
className: "group-data-[state=closed]:hidden shrink-0",
|
|
1422
1423
|
size: 14
|
|
@@ -1437,7 +1438,7 @@ const Ee = (e = 0) => {
|
|
|
1437
1438
|
), H = ({
|
|
1438
1439
|
children: e,
|
|
1439
1440
|
className: n
|
|
1440
|
-
}) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }),
|
|
1441
|
+
}) => /* @__PURE__ */ t.jsx("span", { className: w("font-semibold w-full text-start", n), children: e }), Br = ({
|
|
1441
1442
|
examples: e,
|
|
1442
1443
|
onSelect: n
|
|
1443
1444
|
}) => /* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
@@ -1454,9 +1455,9 @@ const Ee = (e = 0) => {
|
|
|
1454
1455
|
}
|
|
1455
1456
|
) }),
|
|
1456
1457
|
/* @__PURE__ */ t.jsx(Kt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1457
|
-
/* @__PURE__ */ t.jsx(
|
|
1458
|
-
/* @__PURE__ */ t.jsx(
|
|
1459
|
-
/* @__PURE__ */ t.jsx(
|
|
1458
|
+
/* @__PURE__ */ t.jsx(Ps, { children: s.mediaType }),
|
|
1459
|
+
/* @__PURE__ */ t.jsx(Os, {}),
|
|
1460
|
+
/* @__PURE__ */ t.jsx(Ls, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1460
1461
|
Ae,
|
|
1461
1462
|
{
|
|
1462
1463
|
onSelect: () => n(a, s.mediaType),
|
|
@@ -1472,45 +1473,20 @@ const Ee = (e = 0) => {
|
|
|
1472
1473
|
a.name
|
|
1473
1474
|
)) })
|
|
1474
1475
|
] }, s.mediaType)) })
|
|
1475
|
-
] }),
|
|
1476
|
-
({ className: e, type: n, ...s }, a) => /* @__PURE__ */ t.jsx(
|
|
1477
|
-
"input",
|
|
1478
|
-
{
|
|
1479
|
-
type: n,
|
|
1480
|
-
className: w(
|
|
1481
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
1482
|
-
e
|
|
1483
|
-
),
|
|
1484
|
-
ref: a,
|
|
1485
|
-
...s
|
|
1486
|
-
}
|
|
1487
|
-
)
|
|
1488
|
-
);
|
|
1489
|
-
un.displayName = "Input";
|
|
1490
|
-
const ye = (e, n) => {
|
|
1491
|
-
const s = Q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1492
|
-
const c = r ? ks : e;
|
|
1493
|
-
return Q.createElement(c, {
|
|
1494
|
-
...o,
|
|
1495
|
-
ref: i,
|
|
1496
|
-
className: typeof n == "function" ? n({ className: a }) : w(n, a)
|
|
1497
|
-
});
|
|
1498
|
-
});
|
|
1499
|
-
return s.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, s;
|
|
1500
|
-
}, ke = ye(
|
|
1476
|
+
] }), Ee = ye(
|
|
1501
1477
|
"div",
|
|
1502
1478
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
|
|
1503
|
-
),
|
|
1479
|
+
), ge = ye(
|
|
1504
1480
|
"div",
|
|
1505
1481
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1506
1482
|
), I = ye(
|
|
1507
|
-
|
|
1483
|
+
ks,
|
|
1508
1484
|
"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
|
|
1509
1485
|
), at = ({
|
|
1510
1486
|
onClick: e,
|
|
1511
1487
|
className: n
|
|
1512
1488
|
}) => /* @__PURE__ */ t.jsx(
|
|
1513
|
-
|
|
1489
|
+
pe,
|
|
1514
1490
|
{
|
|
1515
1491
|
size: "icon-xs",
|
|
1516
1492
|
variant: "ghost",
|
|
@@ -1548,9 +1524,9 @@ function ve({
|
|
|
1548
1524
|
}
|
|
1549
1525
|
);
|
|
1550
1526
|
}
|
|
1551
|
-
const
|
|
1552
|
-
const s =
|
|
1553
|
-
return /* @__PURE__ */ t.jsxs(
|
|
1527
|
+
const _r = ({ index: e, manager: n }) => {
|
|
1528
|
+
const s = k(null), a = n.getValue(e, "value");
|
|
1529
|
+
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
1554
1530
|
/* @__PURE__ */ t.jsx(
|
|
1555
1531
|
ve,
|
|
1556
1532
|
{
|
|
@@ -1568,25 +1544,25 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1568
1544
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1", children: [
|
|
1569
1545
|
a instanceof File ? /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 flex-1 min-w-0", children: [
|
|
1570
1546
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1 border-b cursor-default", children: [
|
|
1571
|
-
/* @__PURE__ */ t.jsx(
|
|
1547
|
+
/* @__PURE__ */ t.jsx(ue, { size: 12, className: "text-muted-foreground" }),
|
|
1572
1548
|
/* @__PURE__ */ t.jsx(
|
|
1573
1549
|
"span",
|
|
1574
1550
|
{
|
|
1575
1551
|
className: "text-xs truncate",
|
|
1576
|
-
title: `${a.name} (${
|
|
1552
|
+
title: `${a.name} (${ke(a.size)})`,
|
|
1577
1553
|
children: a.name
|
|
1578
1554
|
}
|
|
1579
1555
|
)
|
|
1580
1556
|
] }),
|
|
1581
1557
|
/* @__PURE__ */ t.jsx(
|
|
1582
|
-
|
|
1558
|
+
pe,
|
|
1583
1559
|
{
|
|
1584
1560
|
type: "button",
|
|
1585
1561
|
variant: "ghost",
|
|
1586
1562
|
size: "icon-xs",
|
|
1587
1563
|
className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
|
|
1588
1564
|
onClick: () => n.setValue(e, "value", ""),
|
|
1589
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1565
|
+
children: /* @__PURE__ */ t.jsx(En, { size: 13 })
|
|
1590
1566
|
}
|
|
1591
1567
|
)
|
|
1592
1568
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1610,7 +1586,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1610
1586
|
}
|
|
1611
1587
|
),
|
|
1612
1588
|
/* @__PURE__ */ t.jsx(
|
|
1613
|
-
|
|
1589
|
+
pe,
|
|
1614
1590
|
{
|
|
1615
1591
|
type: "button",
|
|
1616
1592
|
variant: "ghost",
|
|
@@ -1618,7 +1594,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1618
1594
|
onClick: () => s.current?.click(),
|
|
1619
1595
|
title: "Attach file",
|
|
1620
1596
|
className: "opacity-0 focus-visible:opacity-100 group-hover:opacity-100 group-hover:brightness-95 transition-opacity",
|
|
1621
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1597
|
+
children: /* @__PURE__ */ t.jsx(ue, { size: 14 })
|
|
1622
1598
|
}
|
|
1623
1599
|
)
|
|
1624
1600
|
] }),
|
|
@@ -1637,7 +1613,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1637
1613
|
watch: c,
|
|
1638
1614
|
setFocus: l,
|
|
1639
1615
|
register: m
|
|
1640
|
-
} =
|
|
1616
|
+
} = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v = k(-1), u = k(-1), y = D(
|
|
1641
1617
|
(g, C, T, A) => {
|
|
1642
1618
|
(C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
|
|
1643
1619
|
C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
|
|
@@ -1709,7 +1685,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1709
1685
|
const A = R(T);
|
|
1710
1686
|
T.active !== A && g.push(() => y(C, "active", A));
|
|
1711
1687
|
}
|
|
1712
|
-
g.length !== 0 &&
|
|
1688
|
+
g.length !== 0 && us(() => g.forEach((C) => C()));
|
|
1713
1689
|
}, [h, R, y]);
|
|
1714
1690
|
const N = D(
|
|
1715
1691
|
(g) => {
|
|
@@ -1722,8 +1698,8 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1722
1698
|
const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`, A = C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`, M = C === "value" || g > 0;
|
|
1723
1699
|
return (L) => {
|
|
1724
1700
|
if (!(L.target instanceof HTMLInputElement)) return;
|
|
1725
|
-
const De = L.target.selectionStart === 0,
|
|
1726
|
-
L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" &&
|
|
1701
|
+
const De = L.target.selectionStart === 0, te = L.target.selectionStart === L.target.value.length, je = !L.target.value;
|
|
1702
|
+
L.key === "Enter" ? l(T) : L.key === "Backspace" && je && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && te && (L.preventDefault(), l(T));
|
|
1727
1703
|
};
|
|
1728
1704
|
},
|
|
1729
1705
|
[s, l]
|
|
@@ -1734,7 +1710,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1734
1710
|
onKeyDown: j(g, "name")
|
|
1735
1711
|
}),
|
|
1736
1712
|
[m, s, y, j]
|
|
1737
|
-
),
|
|
1713
|
+
), Q = D(
|
|
1738
1714
|
(g) => ({
|
|
1739
1715
|
...m(`${s}.${g}.value`),
|
|
1740
1716
|
onChange: (C) => y(g, "value", C.target.value),
|
|
@@ -1754,7 +1730,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1754
1730
|
), Ie = D(
|
|
1755
1731
|
(g, C) => h?.[g]?.[C],
|
|
1756
1732
|
[h]
|
|
1757
|
-
),
|
|
1733
|
+
), ee = D(
|
|
1758
1734
|
(g) => ({
|
|
1759
1735
|
onClick: () => x(g),
|
|
1760
1736
|
disabled: g === d.length - 1
|
|
@@ -1764,20 +1740,20 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1764
1740
|
return {
|
|
1765
1741
|
fields: d,
|
|
1766
1742
|
getNameInputProps: O,
|
|
1767
|
-
getValueInputProps:
|
|
1743
|
+
getValueInputProps: Q,
|
|
1768
1744
|
getCheckboxProps: be,
|
|
1769
|
-
getRemoveButtonProps:
|
|
1745
|
+
getRemoveButtonProps: ee,
|
|
1770
1746
|
setValue: y,
|
|
1771
1747
|
getValue: Ie
|
|
1772
1748
|
};
|
|
1773
|
-
},
|
|
1774
|
-
const { register: n, setValue: s, watch: a, control: r } =
|
|
1749
|
+
}, qr = ({ content: e }) => {
|
|
1750
|
+
const { register: n, setValue: s, watch: a, control: r } = ae(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
|
|
1775
1751
|
"headers",
|
|
1776
1752
|
"file",
|
|
1777
1753
|
"bodyMode",
|
|
1778
1754
|
"body",
|
|
1779
1755
|
"multipartFormFields"
|
|
1780
|
-
]), f =
|
|
1756
|
+
]), f = k(null), [x, h] = E(!1), v = (j) => {
|
|
1781
1757
|
s("file", j), j && s(
|
|
1782
1758
|
"headers",
|
|
1783
1759
|
i.filter(
|
|
@@ -1802,14 +1778,14 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1802
1778
|
isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
|
|
1803
1779
|
});
|
|
1804
1780
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
1805
|
-
/* @__PURE__ */ t.jsxs(
|
|
1806
|
-
/* @__PURE__ */ t.jsx(
|
|
1781
|
+
/* @__PURE__ */ t.jsxs(Z, { className: "items-center", children: [
|
|
1782
|
+
/* @__PURE__ */ t.jsx(Rn, { size: 16 }),
|
|
1807
1783
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
|
|
1808
1784
|
"Body",
|
|
1809
1785
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
1810
1786
|
/* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1811
1787
|
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1812
|
-
|
|
1788
|
+
pe,
|
|
1813
1789
|
{
|
|
1814
1790
|
variant: "ghost",
|
|
1815
1791
|
size: "sm",
|
|
@@ -1819,13 +1795,13 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1819
1795
|
/* @__PURE__ */ t.jsx(yt, { size: 14 }),
|
|
1820
1796
|
"Text"
|
|
1821
1797
|
] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1822
|
-
/* @__PURE__ */ t.jsx(
|
|
1798
|
+
/* @__PURE__ */ t.jsx(ue, { size: 14 }),
|
|
1823
1799
|
"File"
|
|
1824
1800
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1825
1801
|
/* @__PURE__ */ t.jsx(vt, { size: 14 }),
|
|
1826
1802
|
"Multipart"
|
|
1827
1803
|
] }),
|
|
1828
|
-
/* @__PURE__ */ t.jsx(
|
|
1804
|
+
/* @__PURE__ */ t.jsx(In, { size: 14 })
|
|
1829
1805
|
]
|
|
1830
1806
|
}
|
|
1831
1807
|
) }),
|
|
@@ -1848,7 +1824,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1848
1824
|
onSelect: () => s("bodyMode", "file"),
|
|
1849
1825
|
className: "gap-2",
|
|
1850
1826
|
children: [
|
|
1851
|
-
/* @__PURE__ */ t.jsx(
|
|
1827
|
+
/* @__PURE__ */ t.jsx(ue, { size: 14 }),
|
|
1852
1828
|
/* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "File" }),
|
|
1853
1829
|
/* @__PURE__ */ t.jsx("span", { children: c && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
|
|
1854
1830
|
]
|
|
@@ -1879,12 +1855,12 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1879
1855
|
),
|
|
1880
1856
|
/* @__PURE__ */ t.jsx("div", { className: "w-px mx-1 h-5 bg-border" }),
|
|
1881
1857
|
e && o.length > 0 ? /* @__PURE__ */ t.jsx(
|
|
1882
|
-
|
|
1858
|
+
Br,
|
|
1883
1859
|
{
|
|
1884
1860
|
examples: e,
|
|
1885
1861
|
onSelect: (j, O) => {
|
|
1886
1862
|
s("body", JSON.stringify(j.value, null, 2)), s("headers", [
|
|
1887
|
-
...i.filter((
|
|
1863
|
+
...i.filter((Q) => Q.name !== "Content-Type"),
|
|
1888
1864
|
{
|
|
1889
1865
|
name: "Content-Type",
|
|
1890
1866
|
value: O,
|
|
@@ -1931,7 +1907,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1931
1907
|
x && "bg-accent border-primary"
|
|
1932
1908
|
),
|
|
1933
1909
|
children: /* @__PURE__ */ t.jsx(
|
|
1934
|
-
|
|
1910
|
+
ue,
|
|
1935
1911
|
{
|
|
1936
1912
|
className: w(
|
|
1937
1913
|
"text-muted-foreground",
|
|
@@ -1948,12 +1924,12 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1948
1924
|
" ",
|
|
1949
1925
|
/* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
1950
1926
|
"(",
|
|
1951
|
-
|
|
1927
|
+
ke(c.size),
|
|
1952
1928
|
")"
|
|
1953
1929
|
] })
|
|
1954
1930
|
] }),
|
|
1955
1931
|
/* @__PURE__ */ t.jsx(
|
|
1956
|
-
|
|
1932
|
+
pe,
|
|
1957
1933
|
{
|
|
1958
1934
|
type: "button",
|
|
1959
1935
|
variant: "ghost",
|
|
@@ -1966,7 +1942,7 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1966
1942
|
]
|
|
1967
1943
|
}
|
|
1968
1944
|
),
|
|
1969
|
-
l === "multipart" && /* @__PURE__ */ t.jsx(
|
|
1945
|
+
l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: N }, j.id)) })
|
|
1970
1946
|
] })
|
|
1971
1947
|
] });
|
|
1972
1948
|
}, Lt = (e, n, s) => {
|
|
@@ -1981,12 +1957,12 @@ const qr = ({ index: e, manager: n }) => {
|
|
|
1981
1957
|
r.searchParams.set(o.name, o.value);
|
|
1982
1958
|
}), r;
|
|
1983
1959
|
};
|
|
1984
|
-
function
|
|
1960
|
+
function Mr(e) {
|
|
1985
1961
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1986
1962
|
e
|
|
1987
1963
|
);
|
|
1988
1964
|
}
|
|
1989
|
-
const
|
|
1965
|
+
const Ur = (e, n) => {
|
|
1990
1966
|
const s = e.find(
|
|
1991
1967
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1992
1968
|
)?.[1];
|
|
@@ -2003,7 +1979,7 @@ const Gr = (e, n) => {
|
|
|
2003
1979
|
} catch {
|
|
2004
1980
|
return "download";
|
|
2005
1981
|
}
|
|
2006
|
-
},
|
|
1982
|
+
}, Gr = $e.Root, un = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx($e.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
2007
1983
|
$e.Content,
|
|
2008
1984
|
{
|
|
2009
1985
|
ref: r,
|
|
@@ -2016,8 +1992,8 @@ const Gr = (e, n) => {
|
|
|
2016
1992
|
...a
|
|
2017
1993
|
}
|
|
2018
1994
|
) }));
|
|
2019
|
-
|
|
2020
|
-
const
|
|
1995
|
+
un.displayName = $e.Content.displayName;
|
|
1996
|
+
const Hr = ({
|
|
2021
1997
|
value: e,
|
|
2022
1998
|
options: n,
|
|
2023
1999
|
onChange: s,
|
|
@@ -2028,10 +2004,10 @@ const Qr = ({
|
|
|
2028
2004
|
ref: c,
|
|
2029
2005
|
onSelect: l
|
|
2030
2006
|
}) => {
|
|
2031
|
-
const [m, d] =
|
|
2032
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2033
|
-
/* @__PURE__ */ t.jsx(
|
|
2034
|
-
|
|
2007
|
+
const [m, d] = E(!1), [f, x] = E(!1), h = Rs((u) => u.filtered.count), v = k(null);
|
|
2008
|
+
return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
|
|
2009
|
+
/* @__PURE__ */ t.jsx(Es, { children: /* @__PURE__ */ t.jsx(
|
|
2010
|
+
Ds,
|
|
2035
2011
|
{
|
|
2036
2012
|
autoComplete: "off",
|
|
2037
2013
|
ref: (u) => {
|
|
@@ -2051,7 +2027,7 @@ const Qr = ({
|
|
|
2051
2027
|
}
|
|
2052
2028
|
) }),
|
|
2053
2029
|
/* @__PURE__ */ t.jsx(
|
|
2054
|
-
|
|
2030
|
+
un,
|
|
2055
2031
|
{
|
|
2056
2032
|
onMouseEnter: () => x(!0),
|
|
2057
2033
|
onMouseLeave: () => x(!1),
|
|
@@ -2067,8 +2043,8 @@ const Qr = ({
|
|
|
2067
2043
|
onTouchMove: (u) => {
|
|
2068
2044
|
u.stopPropagation();
|
|
2069
2045
|
},
|
|
2070
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2071
|
-
|
|
2046
|
+
children: /* @__PURE__ */ t.jsx(Fs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
|
|
2047
|
+
zs,
|
|
2072
2048
|
{
|
|
2073
2049
|
value: u,
|
|
2074
2050
|
onSelect: (y) => {
|
|
@@ -2082,7 +2058,7 @@ const Qr = ({
|
|
|
2082
2058
|
}
|
|
2083
2059
|
)
|
|
2084
2060
|
] });
|
|
2085
|
-
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(
|
|
2061
|
+
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Is, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
|
|
2086
2062
|
"Accept",
|
|
2087
2063
|
"Accept-Encoding",
|
|
2088
2064
|
"Accept-Language",
|
|
@@ -2109,12 +2085,12 @@ const Qr = ({
|
|
|
2109
2085
|
"Set-Cookie",
|
|
2110
2086
|
"User-Agent",
|
|
2111
2087
|
"X-Requested-With"
|
|
2112
|
-
]),
|
|
2088
|
+
]), Jr = ({
|
|
2113
2089
|
control: e,
|
|
2114
2090
|
schemaHeaders: n,
|
|
2115
2091
|
lockedHeaders: s
|
|
2116
2092
|
}) => {
|
|
2117
|
-
const { watch: a, formState: r } =
|
|
2093
|
+
const { watch: a, formState: r } = ae(), o = a("headers"), i = ot({
|
|
2118
2094
|
control: e,
|
|
2119
2095
|
name: "headers",
|
|
2120
2096
|
defaultValue: { name: "", value: "", active: !1 }
|
|
@@ -2126,18 +2102,18 @@ const Qr = ({
|
|
|
2126
2102
|
locked: !0
|
|
2127
2103
|
})) ?? [];
|
|
2128
2104
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2129
|
-
/* @__PURE__ */ t.jsxs(
|
|
2130
|
-
/* @__PURE__ */ t.jsx(
|
|
2105
|
+
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
2106
|
+
/* @__PURE__ */ t.jsx(Dn, { size: 14 }),
|
|
2131
2107
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2132
2108
|
] }),
|
|
2133
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(
|
|
2109
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(Ee, { children: [
|
|
2134
2110
|
m.map((d) => /* @__PURE__ */ t.jsxs(Nt, { children: [
|
|
2135
2111
|
/* @__PURE__ */ t.jsx(St, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2136
|
-
|
|
2112
|
+
ge,
|
|
2137
2113
|
{
|
|
2138
2114
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
2139
2115
|
children: [
|
|
2140
|
-
/* @__PURE__ */ t.jsx(
|
|
2116
|
+
/* @__PURE__ */ t.jsx(Fn, { size: 16 }),
|
|
2141
2117
|
/* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
|
|
2142
2118
|
/* @__PURE__ */ t.jsx("div", { children: d.value })
|
|
2143
2119
|
]
|
|
@@ -2151,7 +2127,7 @@ const Qr = ({
|
|
|
2151
2127
|
(S) => S.name === o.at(f)?.name
|
|
2152
2128
|
), h = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
|
|
2153
2129
|
return /* @__PURE__ */ t.jsxs(
|
|
2154
|
-
|
|
2130
|
+
ge,
|
|
2155
2131
|
{
|
|
2156
2132
|
className: w(
|
|
2157
2133
|
v && "text-amber-600",
|
|
@@ -2167,7 +2143,7 @@ const Qr = ({
|
|
|
2167
2143
|
),
|
|
2168
2144
|
/* @__PURE__ */ t.jsxs(Nt, { children: [
|
|
2169
2145
|
/* @__PURE__ */ t.jsx(St, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2170
|
-
|
|
2146
|
+
zn,
|
|
2171
2147
|
{
|
|
2172
2148
|
className: w(
|
|
2173
2149
|
"text-amber-600",
|
|
@@ -2192,7 +2168,7 @@ const Qr = ({
|
|
|
2192
2168
|
...u,
|
|
2193
2169
|
value: String(i.getValue(f, "name")),
|
|
2194
2170
|
placeholder: "Name",
|
|
2195
|
-
options: [...c, ...
|
|
2171
|
+
options: [...c, ...Qr],
|
|
2196
2172
|
onChange: (S) => i.setValue(f, "name", S),
|
|
2197
2173
|
onSelect: (S) => i.setValue(f, "name", S, { focus: "next" })
|
|
2198
2174
|
}
|
|
@@ -2230,28 +2206,28 @@ const Qr = ({
|
|
|
2230
2206
|
})
|
|
2231
2207
|
] }) }) }) })
|
|
2232
2208
|
] });
|
|
2233
|
-
},
|
|
2209
|
+
}, Wr = Bs(
|
|
2234
2210
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2235
|
-
), Re =
|
|
2211
|
+
), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2236
2212
|
Xt.Root,
|
|
2237
2213
|
{
|
|
2238
2214
|
ref: s,
|
|
2239
|
-
className: w(
|
|
2215
|
+
className: w(Wr(), e),
|
|
2240
2216
|
...n
|
|
2241
2217
|
}
|
|
2242
2218
|
));
|
|
2243
2219
|
Re.displayName = Xt.Root.displayName;
|
|
2244
|
-
const
|
|
2245
|
-
|
|
2220
|
+
const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2221
|
+
he.Root,
|
|
2246
2222
|
{
|
|
2247
2223
|
className: w("grid gap-2", e),
|
|
2248
2224
|
...n,
|
|
2249
2225
|
ref: s
|
|
2250
2226
|
}
|
|
2251
2227
|
));
|
|
2252
|
-
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2228
|
+
mn.displayName = he.Root.displayName;
|
|
2229
|
+
const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2230
|
+
he.Item,
|
|
2255
2231
|
{
|
|
2256
2232
|
ref: s,
|
|
2257
2233
|
className: w(
|
|
@@ -2259,29 +2235,29 @@ const hn = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
|
2259
2235
|
e
|
|
2260
2236
|
),
|
|
2261
2237
|
...n,
|
|
2262
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2238
|
+
children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
2263
2239
|
}
|
|
2264
2240
|
));
|
|
2265
|
-
|
|
2266
|
-
const
|
|
2241
|
+
pn.displayName = he.Item.displayName;
|
|
2242
|
+
const hn = ({
|
|
2267
2243
|
identities: e,
|
|
2268
2244
|
setValue: n,
|
|
2269
2245
|
value: s
|
|
2270
2246
|
}) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
|
|
2271
|
-
|
|
2247
|
+
mn,
|
|
2272
2248
|
{
|
|
2273
2249
|
onValueChange: (a) => n(a),
|
|
2274
2250
|
value: s,
|
|
2275
|
-
defaultValue:
|
|
2251
|
+
defaultValue: me,
|
|
2276
2252
|
className: "gap-0",
|
|
2277
2253
|
disabled: e?.length === 0,
|
|
2278
|
-
children: [{ id:
|
|
2254
|
+
children: [{ id: me, label: "None" }, ...e ?? []].map(
|
|
2279
2255
|
(a) => /* @__PURE__ */ t.jsxs(
|
|
2280
2256
|
Re,
|
|
2281
2257
|
{
|
|
2282
2258
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
2283
2259
|
children: [
|
|
2284
|
-
/* @__PURE__ */ t.jsx(
|
|
2260
|
+
/* @__PURE__ */ t.jsx(pn, { value: a.id, id: a.id }),
|
|
2285
2261
|
/* @__PURE__ */ t.jsx("span", { children: a.label })
|
|
2286
2262
|
]
|
|
2287
2263
|
},
|
|
@@ -2289,18 +2265,18 @@ const fn = ({
|
|
|
2289
2265
|
)
|
|
2290
2266
|
)
|
|
2291
2267
|
}
|
|
2292
|
-
) }),
|
|
2268
|
+
) }), Kr = ({
|
|
2293
2269
|
onSubmit: e,
|
|
2294
2270
|
identities: n,
|
|
2295
2271
|
open: s,
|
|
2296
2272
|
onOpenChange: a
|
|
2297
2273
|
}) => {
|
|
2298
|
-
const [r, o] =
|
|
2274
|
+
const [r, o] = E(void 0), [i, c] = E(!1);
|
|
2299
2275
|
return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2300
2276
|
/* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
|
|
2301
2277
|
/* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
|
|
2302
|
-
/* @__PURE__ */ t.jsx(
|
|
2303
|
-
|
|
2278
|
+
/* @__PURE__ */ t.jsx(Vs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
|
|
2279
|
+
hn,
|
|
2304
2280
|
{
|
|
2305
2281
|
identities: n,
|
|
2306
2282
|
setValue: o,
|
|
@@ -2332,22 +2308,22 @@ const fn = ({
|
|
|
2332
2308
|
] }) });
|
|
2333
2309
|
}, Ue = (e) => Math.abs(
|
|
2334
2310
|
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
2335
|
-
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e),
|
|
2311
|
+
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), kt = (e, n = {}) => {
|
|
2336
2312
|
const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
2337
2313
|
return `${s}deg ${a}% ${r}%`;
|
|
2338
|
-
}, He = "data-linked-param",
|
|
2339
|
-
const { resolvedTheme: n } =
|
|
2314
|
+
}, He = "data-linked-param", Xr = (e) => {
|
|
2315
|
+
const { resolvedTheme: n } = gs();
|
|
2340
2316
|
return {
|
|
2341
|
-
text:
|
|
2317
|
+
text: kt(
|
|
2342
2318
|
e,
|
|
2343
2319
|
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
2344
2320
|
),
|
|
2345
|
-
background:
|
|
2321
|
+
background: kt(
|
|
2346
2322
|
e,
|
|
2347
2323
|
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2348
2324
|
)
|
|
2349
2325
|
};
|
|
2350
|
-
},
|
|
2326
|
+
}, fn = ({
|
|
2351
2327
|
name: e,
|
|
2352
2328
|
className: n,
|
|
2353
2329
|
slug: s,
|
|
@@ -2355,7 +2331,7 @@ const fn = ({
|
|
|
2355
2331
|
children: r,
|
|
2356
2332
|
onClick: o
|
|
2357
2333
|
}) => {
|
|
2358
|
-
const i =
|
|
2334
|
+
const i = k(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Xr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
|
|
2359
2335
|
return G(() => {
|
|
2360
2336
|
if (!c || !i.current) return;
|
|
2361
2337
|
const v = () => {
|
|
@@ -2395,24 +2371,24 @@ const fn = ({
|
|
|
2395
2371
|
children: r ?? e
|
|
2396
2372
|
}
|
|
2397
2373
|
);
|
|
2398
|
-
},
|
|
2374
|
+
}, Zr = ({
|
|
2399
2375
|
control: e,
|
|
2400
2376
|
url: n
|
|
2401
2377
|
}) => {
|
|
2402
|
-
const { fields: s } =
|
|
2378
|
+
const { fields: s } = Mt({
|
|
2403
2379
|
control: e,
|
|
2404
2380
|
name: "pathParams"
|
|
2405
2381
|
}), a = [...s].sort(
|
|
2406
2382
|
(r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
|
|
2407
2383
|
);
|
|
2408
|
-
return /* @__PURE__ */ t.jsx(
|
|
2384
|
+
return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2409
2385
|
/* @__PURE__ */ t.jsx(
|
|
2410
2386
|
Ct,
|
|
2411
2387
|
{
|
|
2412
2388
|
control: e,
|
|
2413
2389
|
name: `pathParams.${o}.name`,
|
|
2414
2390
|
render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
|
|
2415
|
-
|
|
2391
|
+
fn,
|
|
2416
2392
|
{
|
|
2417
2393
|
slug: r.name,
|
|
2418
2394
|
name: r.name,
|
|
@@ -2430,11 +2406,11 @@ const fn = ({
|
|
|
2430
2406
|
}
|
|
2431
2407
|
) })
|
|
2432
2408
|
] }, r.id)) });
|
|
2433
|
-
},
|
|
2409
|
+
}, Yr = ({
|
|
2434
2410
|
control: e,
|
|
2435
2411
|
schemaQueryParams: n
|
|
2436
2412
|
}) => {
|
|
2437
|
-
const { watch: s } =
|
|
2413
|
+
const { watch: s } = ae(), a = s("queryParams"), r = ot({
|
|
2438
2414
|
control: e,
|
|
2439
2415
|
name: "queryParams",
|
|
2440
2416
|
defaultValue: { name: "", value: "", active: !1 }
|
|
@@ -2442,15 +2418,15 @@ const fn = ({
|
|
|
2442
2418
|
(c) => !!c.isRequired
|
|
2443
2419
|
), i = n.length > 0;
|
|
2444
2420
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2445
|
-
/* @__PURE__ */ t.jsxs(
|
|
2446
|
-
/* @__PURE__ */ t.jsx(
|
|
2421
|
+
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
2422
|
+
/* @__PURE__ */ t.jsx(Bn, { size: 16 }),
|
|
2447
2423
|
/* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
|
|
2448
2424
|
] }),
|
|
2449
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
2425
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
|
|
2450
2426
|
const m = n.find(
|
|
2451
2427
|
(h) => h.name === a.at(l)?.name
|
|
2452
2428
|
), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
2453
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2429
|
+
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2454
2430
|
/* @__PURE__ */ t.jsx(ve, { ...r.getCheckboxProps(l) }),
|
|
2455
2431
|
o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2456
2432
|
"label",
|
|
@@ -2503,14 +2479,14 @@ const fn = ({
|
|
|
2503
2479
|
] }, c.id);
|
|
2504
2480
|
}) }) })
|
|
2505
2481
|
] });
|
|
2506
|
-
},
|
|
2482
|
+
}, ea = ({
|
|
2507
2483
|
open: e,
|
|
2508
2484
|
setOpen: n,
|
|
2509
2485
|
onSignUp: s,
|
|
2510
2486
|
onLogin: a,
|
|
2511
2487
|
onSkip: r
|
|
2512
2488
|
}) => {
|
|
2513
|
-
const [o, i] =
|
|
2489
|
+
const [o, i] = E(!1), c = () => {
|
|
2514
2490
|
r?.(o), n(!1);
|
|
2515
2491
|
};
|
|
2516
2492
|
return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
@@ -2534,7 +2510,7 @@ const fn = ({
|
|
|
2534
2510
|
] })
|
|
2535
2511
|
] })
|
|
2536
2512
|
] }) });
|
|
2537
|
-
},
|
|
2513
|
+
}, ta = Ze()(
|
|
2538
2514
|
Ye(
|
|
2539
2515
|
(e, n) => ({
|
|
2540
2516
|
rememberedIdentity: null,
|
|
@@ -2548,7 +2524,7 @@ const fn = ({
|
|
|
2548
2524
|
storage: zt(() => sessionStorage)
|
|
2549
2525
|
}
|
|
2550
2526
|
)
|
|
2551
|
-
),
|
|
2527
|
+
), na = ({
|
|
2552
2528
|
path: e,
|
|
2553
2529
|
renderParam: n
|
|
2554
2530
|
}) => {
|
|
@@ -2561,23 +2537,23 @@ const fn = ({
|
|
|
2561
2537
|
if (!f) return;
|
|
2562
2538
|
const x = m.index;
|
|
2563
2539
|
x > l && c.push(
|
|
2564
|
-
/* @__PURE__ */ t.jsx(
|
|
2540
|
+
/* @__PURE__ */ t.jsx(ie, { children: a.slice(l, x) }, `text-${l}-${x}`)
|
|
2565
2541
|
), c.push(
|
|
2566
|
-
/* @__PURE__ */ t.jsx(
|
|
2542
|
+
/* @__PURE__ */ t.jsx(ie, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
|
|
2567
2543
|
), l = x + d.length;
|
|
2568
2544
|
}), l < a.length && c.push(
|
|
2569
|
-
/* @__PURE__ */ t.jsx(
|
|
2545
|
+
/* @__PURE__ */ t.jsx(ie, { children: a.slice(l) }, `text-${l}-${a.length}`)
|
|
2570
2546
|
), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
|
|
2571
|
-
/* @__PURE__ */ t.jsxs(
|
|
2547
|
+
/* @__PURE__ */ t.jsxs(ie, { children: [
|
|
2572
2548
|
c,
|
|
2573
2549
|
r < o.length - 1 && "/",
|
|
2574
2550
|
/* @__PURE__ */ t.jsx("wbr", {})
|
|
2575
2551
|
] }, `${a}-${r}`);
|
|
2576
2552
|
});
|
|
2577
|
-
},
|
|
2578
|
-
const { watch: n, setFocus: s } =
|
|
2553
|
+
}, sa = ({ url: e }) => {
|
|
2554
|
+
const { watch: n, setFocus: s } = ae(), [a] = n(["pathParams"]);
|
|
2579
2555
|
return /* @__PURE__ */ t.jsx(
|
|
2580
|
-
|
|
2556
|
+
na,
|
|
2581
2557
|
{
|
|
2582
2558
|
path: e,
|
|
2583
2559
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2585,7 +2561,7 @@ const fn = ({
|
|
|
2585
2561
|
(l) => l.name === r
|
|
2586
2562
|
)?.value;
|
|
2587
2563
|
return /* @__PURE__ */ t.jsx(
|
|
2588
|
-
|
|
2564
|
+
fn,
|
|
2589
2565
|
{
|
|
2590
2566
|
name: r,
|
|
2591
2567
|
backgroundOpacity: "0",
|
|
@@ -2597,8 +2573,8 @@ const fn = ({
|
|
|
2597
2573
|
}
|
|
2598
2574
|
}
|
|
2599
2575
|
);
|
|
2600
|
-
},
|
|
2601
|
-
const { watch: e } =
|
|
2576
|
+
}, ra = () => {
|
|
2577
|
+
const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(ie, { children: [
|
|
2602
2578
|
a.name,
|
|
2603
2579
|
"=",
|
|
2604
2580
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2609,7 +2585,7 @@ const fn = ({
|
|
|
2609
2585
|
s.length > 0 ? "?" : "",
|
|
2610
2586
|
s
|
|
2611
2587
|
] });
|
|
2612
|
-
},
|
|
2588
|
+
}, aa = ({ status: e }) => {
|
|
2613
2589
|
if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2614
2590
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2615
2591
|
case 2:
|
|
@@ -2621,15 +2597,15 @@ const fn = ({
|
|
|
2621
2597
|
default:
|
|
2622
2598
|
return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2623
2599
|
}
|
|
2624
|
-
},
|
|
2625
|
-
const e =
|
|
2600
|
+
}, oa = () => {
|
|
2601
|
+
const e = k(null), n = k(null), s = k(Date.now()), a = k(null), r = D(() => {
|
|
2626
2602
|
if (n.current) {
|
|
2627
2603
|
const o = Date.now() - s.current;
|
|
2628
2604
|
n.current.nodeValue = o.toFixed();
|
|
2629
2605
|
}
|
|
2630
2606
|
a.current = requestAnimationFrame(r);
|
|
2631
2607
|
}, []);
|
|
2632
|
-
return
|
|
2608
|
+
return ms(() => {
|
|
2633
2609
|
const o = e.current;
|
|
2634
2610
|
if (!o) return;
|
|
2635
2611
|
const i = document.createTextNode("0");
|
|
@@ -2637,7 +2613,7 @@ const fn = ({
|
|
|
2637
2613
|
a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
|
|
2638
2614
|
};
|
|
2639
2615
|
}, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2640
|
-
},
|
|
2616
|
+
}, ia = ({
|
|
2641
2617
|
status: e,
|
|
2642
2618
|
time: n,
|
|
2643
2619
|
size: s,
|
|
@@ -2658,7 +2634,7 @@ const fn = ({
|
|
|
2658
2634
|
};
|
|
2659
2635
|
return /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2660
2636
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2661
|
-
/* @__PURE__ */ t.jsx(
|
|
2637
|
+
/* @__PURE__ */ t.jsx(aa, { status: e }),
|
|
2662
2638
|
" ",
|
|
2663
2639
|
e ?? "Sending Request...",
|
|
2664
2640
|
e ? ` ${o[e]}` : ""
|
|
@@ -2667,12 +2643,12 @@ const fn = ({
|
|
|
2667
2643
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2668
2644
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2669
2645
|
" ",
|
|
2670
|
-
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2646
|
+
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ke(s) : "- B" })
|
|
2671
2647
|
] }),
|
|
2672
2648
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2673
2649
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2674
2650
|
" ",
|
|
2675
|
-
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(
|
|
2651
|
+
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(oa, {}),
|
|
2676
2652
|
"ms"
|
|
2677
2653
|
] })
|
|
2678
2654
|
] }),
|
|
@@ -2695,9 +2671,9 @@ function it(e) {
|
|
|
2695
2671
|
const n = e[0];
|
|
2696
2672
|
return n === void 0 ? "any[]" : `${it(n)}[]`;
|
|
2697
2673
|
}
|
|
2698
|
-
return typeof e == "object" ?
|
|
2674
|
+
return typeof e == "object" ? la(e) : typeof e;
|
|
2699
2675
|
}
|
|
2700
|
-
function
|
|
2676
|
+
function la(e, n = "") {
|
|
2701
2677
|
const s = ["{"];
|
|
2702
2678
|
for (const [a, r] of Object.entries(e)) {
|
|
2703
2679
|
const o = it(r);
|
|
@@ -2706,10 +2682,10 @@ function ca(e, n = "") {
|
|
|
2706
2682
|
return s.push("}"), s.join(`
|
|
2707
2683
|
`);
|
|
2708
2684
|
}
|
|
2709
|
-
function
|
|
2685
|
+
function ca(e) {
|
|
2710
2686
|
return { lines: [`type GeneratedType = ${it(e)};`] };
|
|
2711
2687
|
}
|
|
2712
|
-
const
|
|
2688
|
+
const da = (e) => Object.entries({
|
|
2713
2689
|
"application/json": "json",
|
|
2714
2690
|
"text/json": "json",
|
|
2715
2691
|
"text/html": "html",
|
|
@@ -2719,16 +2695,16 @@ const ua = (e) => Object.entries({
|
|
|
2719
2695
|
"application/xhtml+xml": "xhtml"
|
|
2720
2696
|
}).find(
|
|
2721
2697
|
([s]) => e.includes(s)
|
|
2722
|
-
)?.[1],
|
|
2698
|
+
)?.[1], ua = (e) => {
|
|
2723
2699
|
const n = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
|
|
2724
|
-
return
|
|
2725
|
-
},
|
|
2700
|
+
return da(n);
|
|
2701
|
+
}, ma = (e) => {
|
|
2726
2702
|
try {
|
|
2727
2703
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2728
2704
|
} catch {
|
|
2729
2705
|
return null;
|
|
2730
2706
|
}
|
|
2731
|
-
},
|
|
2707
|
+
}, pa = (e) => {
|
|
2732
2708
|
const n = [
|
|
2733
2709
|
"Content-Type",
|
|
2734
2710
|
"Content-Length",
|
|
@@ -2745,10 +2721,10 @@ const ua = (e) => Object.entries({
|
|
|
2745
2721
|
}, z = 3, Se = ye(
|
|
2746
2722
|
"div",
|
|
2747
2723
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2748
|
-
),
|
|
2749
|
-
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] =
|
|
2724
|
+
), de = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
|
|
2725
|
+
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = E(!a);
|
|
2750
2726
|
return /* @__PURE__ */ t.jsx(
|
|
2751
|
-
|
|
2727
|
+
de,
|
|
2752
2728
|
{
|
|
2753
2729
|
className: w(
|
|
2754
2730
|
"max-h-28 overflow-auto",
|
|
@@ -2758,12 +2734,12 @@ const ua = (e) => Object.entries({
|
|
|
2758
2734
|
a && o((i) => !i);
|
|
2759
2735
|
},
|
|
2760
2736
|
children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2761
|
-
/* @__PURE__ */ t.jsx(
|
|
2762
|
-
r ? /* @__PURE__ */ t.jsx(
|
|
2737
|
+
/* @__PURE__ */ t.jsx(Ss, { secret: e, previewChars: 0, revealed: r }),
|
|
2738
|
+
r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className: w("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Hn, { size: 14, className: w("hidden group-hover:block") })
|
|
2763
2739
|
] }) : e
|
|
2764
2740
|
}
|
|
2765
2741
|
);
|
|
2766
|
-
},
|
|
2742
|
+
}, ha = ({
|
|
2767
2743
|
body: e = "",
|
|
2768
2744
|
headers: n,
|
|
2769
2745
|
request: s,
|
|
@@ -2772,31 +2748,31 @@ const ua = (e) => Object.entries({
|
|
|
2772
2748
|
fileName: o,
|
|
2773
2749
|
blob: i
|
|
2774
2750
|
}) => {
|
|
2775
|
-
const c =
|
|
2751
|
+
const c = ua(n), l = ma(e), m = l || e, [d, f] = E(
|
|
2776
2752
|
l ? "formatted" : "raw"
|
|
2777
|
-
), x =
|
|
2753
|
+
), x = as({
|
|
2778
2754
|
queryKey: ["types", m],
|
|
2779
|
-
queryFn: async () =>
|
|
2755
|
+
queryFn: async () => ca(JSON.parse(m)),
|
|
2780
2756
|
enabled: d === "types" && !r
|
|
2781
2757
|
}), h = () => {
|
|
2782
2758
|
if (i && o) {
|
|
2783
2759
|
const u = URL.createObjectURL(i), y = document.createElement("a");
|
|
2784
2760
|
y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
|
|
2785
2761
|
}
|
|
2786
|
-
}, v =
|
|
2762
|
+
}, v = pa([...n]);
|
|
2787
2763
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2788
2764
|
/* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2789
|
-
/* @__PURE__ */ t.jsxs(
|
|
2790
|
-
/* @__PURE__ */ t.jsx(
|
|
2765
|
+
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
2766
|
+
/* @__PURE__ */ t.jsx(_n, { size: 14 }),
|
|
2791
2767
|
/* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
|
|
2792
2768
|
] }),
|
|
2793
2769
|
/* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2794
2770
|
s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2795
|
-
/* @__PURE__ */ t.jsx(
|
|
2771
|
+
/* @__PURE__ */ t.jsx(de, { children: u }),
|
|
2796
2772
|
/* @__PURE__ */ t.jsx(we, { value: y, header: u })
|
|
2797
2773
|
] }, u)),
|
|
2798
2774
|
s.headers.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2799
|
-
/* @__PURE__ */ t.jsxs(
|
|
2775
|
+
/* @__PURE__ */ t.jsxs(ce, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2800
2776
|
"Show ",
|
|
2801
2777
|
s.headers.length - z,
|
|
2802
2778
|
" more headers",
|
|
@@ -2804,10 +2780,10 @@ const ua = (e) => Object.entries({
|
|
|
2804
2780
|
] }),
|
|
2805
2781
|
/* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2806
2782
|
s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2807
|
-
/* @__PURE__ */ t.jsx(
|
|
2783
|
+
/* @__PURE__ */ t.jsx(de, { children: u }),
|
|
2808
2784
|
/* @__PURE__ */ t.jsx(we, { value: y, header: u })
|
|
2809
2785
|
] }, u)),
|
|
2810
|
-
/* @__PURE__ */ t.jsxs(
|
|
2786
|
+
/* @__PURE__ */ t.jsxs(ce, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2811
2787
|
"Hide ",
|
|
2812
2788
|
s.headers.length - z,
|
|
2813
2789
|
" headers",
|
|
@@ -2824,17 +2800,17 @@ const ua = (e) => Object.entries({
|
|
|
2824
2800
|
] }) })
|
|
2825
2801
|
] }),
|
|
2826
2802
|
/* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
2827
|
-
/* @__PURE__ */ t.jsxs(
|
|
2828
|
-
/* @__PURE__ */ t.jsx(
|
|
2803
|
+
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
2804
|
+
/* @__PURE__ */ t.jsx(qn, { size: 14 }),
|
|
2829
2805
|
/* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
|
|
2830
2806
|
] }),
|
|
2831
2807
|
/* @__PURE__ */ t.jsx(_, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2832
2808
|
v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2833
|
-
/* @__PURE__ */ t.jsx(
|
|
2809
|
+
/* @__PURE__ */ t.jsx(de, { children: u }),
|
|
2834
2810
|
/* @__PURE__ */ t.jsx(we, { value: y, header: u })
|
|
2835
2811
|
] }, u)),
|
|
2836
2812
|
v.length > z && /* @__PURE__ */ t.jsxs(B, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2837
|
-
/* @__PURE__ */ t.jsxs(
|
|
2813
|
+
/* @__PURE__ */ t.jsxs(ce, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2838
2814
|
"Show ",
|
|
2839
2815
|
v.length - z,
|
|
2840
2816
|
" more headers",
|
|
@@ -2842,10 +2818,10 @@ const ua = (e) => Object.entries({
|
|
|
2842
2818
|
] }),
|
|
2843
2819
|
/* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2844
2820
|
v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2845
|
-
/* @__PURE__ */ t.jsx(
|
|
2821
|
+
/* @__PURE__ */ t.jsx(de, { children: u }),
|
|
2846
2822
|
/* @__PURE__ */ t.jsx(we, { value: y, header: u })
|
|
2847
2823
|
] }, u)),
|
|
2848
|
-
/* @__PURE__ */ t.jsxs(
|
|
2824
|
+
/* @__PURE__ */ t.jsxs(ce, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2849
2825
|
"Hide ",
|
|
2850
2826
|
v.length - z,
|
|
2851
2827
|
" headers",
|
|
@@ -2863,17 +2839,17 @@ const ua = (e) => Object.entries({
|
|
|
2863
2839
|
] }),
|
|
2864
2840
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 justify-between items-center border-b px-2 flex-0", children: [
|
|
2865
2841
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center gap-2", children: [
|
|
2866
|
-
/* @__PURE__ */ t.jsx(
|
|
2842
|
+
/* @__PURE__ */ t.jsx(Mn, { size: 14 }),
|
|
2867
2843
|
"Response body"
|
|
2868
2844
|
] }),
|
|
2869
2845
|
l && !r && /* @__PURE__ */ t.jsxs(
|
|
2870
|
-
|
|
2846
|
+
Ut,
|
|
2871
2847
|
{
|
|
2872
2848
|
value: d,
|
|
2873
2849
|
onValueChange: (u) => f(u),
|
|
2874
2850
|
children: [
|
|
2875
|
-
/* @__PURE__ */ t.jsx(
|
|
2876
|
-
/* @__PURE__ */ t.jsxs(
|
|
2851
|
+
/* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
|
|
2852
|
+
/* @__PURE__ */ t.jsxs(Qt, { children: [
|
|
2877
2853
|
/* @__PURE__ */ t.jsx(Te, { value: "formatted", children: "Formatted" }),
|
|
2878
2854
|
/* @__PURE__ */ t.jsx(Te, { value: "raw", children: "Raw" }),
|
|
2879
2855
|
/* @__PURE__ */ t.jsx(Te, { value: "types", children: "Types" })
|
|
@@ -2892,17 +2868,17 @@ const ua = (e) => Object.entries({
|
|
|
2892
2868
|
className: "flex items-center gap-2",
|
|
2893
2869
|
disabled: !i,
|
|
2894
2870
|
children: [
|
|
2895
|
-
/* @__PURE__ */ t.jsx(
|
|
2871
|
+
/* @__PURE__ */ t.jsx(Un, { className: "h-4 w-4" }),
|
|
2896
2872
|
"Download ",
|
|
2897
2873
|
o || "file",
|
|
2898
2874
|
" (",
|
|
2899
|
-
|
|
2875
|
+
ke(a),
|
|
2900
2876
|
")"
|
|
2901
2877
|
]
|
|
2902
2878
|
}
|
|
2903
2879
|
)
|
|
2904
2880
|
] }) }) : /* @__PURE__ */ t.jsx(
|
|
2905
|
-
|
|
2881
|
+
ws,
|
|
2906
2882
|
{
|
|
2907
2883
|
className: "text-xs flex-1",
|
|
2908
2884
|
embedded: !0,
|
|
@@ -2913,7 +2889,7 @@ const ua = (e) => Object.entries({
|
|
|
2913
2889
|
}
|
|
2914
2890
|
) })
|
|
2915
2891
|
] });
|
|
2916
|
-
},
|
|
2892
|
+
}, fa = ({
|
|
2917
2893
|
queryMutation: e,
|
|
2918
2894
|
showLongRunningWarning: n,
|
|
2919
2895
|
onCancel: s,
|
|
@@ -2922,7 +2898,7 @@ const ua = (e) => Object.entries({
|
|
|
2922
2898
|
progress: o
|
|
2923
2899
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2924
2900
|
(e.isPending || e.data) && /* @__PURE__ */ t.jsx(
|
|
2925
|
-
|
|
2901
|
+
ia,
|
|
2926
2902
|
{
|
|
2927
2903
|
status: e.data?.status,
|
|
2928
2904
|
time: e.data?.time,
|
|
@@ -2931,12 +2907,12 @@ const ua = (e) => Object.entries({
|
|
|
2931
2907
|
progress: o
|
|
2932
2908
|
}
|
|
2933
2909
|
),
|
|
2934
|
-
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(
|
|
2935
|
-
/* @__PURE__ */ t.jsx(
|
|
2936
|
-
/* @__PURE__ */ t.jsx(
|
|
2937
|
-
/* @__PURE__ */ t.jsx(
|
|
2910
|
+
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(_s, { children: [
|
|
2911
|
+
/* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2912
|
+
/* @__PURE__ */ t.jsx(qs, { children: "Request failed" }),
|
|
2913
|
+
/* @__PURE__ */ t.jsx(Ms, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2938
2914
|
] }) }) : e.data ? /* @__PURE__ */ t.jsx(
|
|
2939
|
-
|
|
2915
|
+
ha,
|
|
2940
2916
|
{
|
|
2941
2917
|
request: e.data.request,
|
|
2942
2918
|
size: e.data.size,
|
|
@@ -2947,7 +2923,7 @@ const ua = (e) => Object.entries({
|
|
|
2947
2923
|
blob: e.data.blob
|
|
2948
2924
|
}
|
|
2949
2925
|
) : e.isPending ? /* @__PURE__ */ t.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2950
|
-
/* @__PURE__ */ t.jsx(
|
|
2926
|
+
/* @__PURE__ */ t.jsx(vs, {}),
|
|
2951
2927
|
/* @__PURE__ */ t.jsxs(
|
|
2952
2928
|
"div",
|
|
2953
2929
|
{
|
|
@@ -2973,7 +2949,7 @@ const ua = (e) => Object.entries({
|
|
|
2973
2949
|
)
|
|
2974
2950
|
] }) }) : /* @__PURE__ */ t.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
|
|
2975
2951
|
/* @__PURE__ */ t.jsx(
|
|
2976
|
-
|
|
2952
|
+
Jn,
|
|
2977
2953
|
{
|
|
2978
2954
|
size: 64,
|
|
2979
2955
|
className: "text-muted-foreground",
|
|
@@ -2983,7 +2959,7 @@ const ua = (e) => Object.entries({
|
|
|
2983
2959
|
/* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2984
2960
|
a
|
|
2985
2961
|
] }) })
|
|
2986
|
-
] }),
|
|
2962
|
+
] }), gn = Ze()(
|
|
2987
2963
|
Ye(
|
|
2988
2964
|
(e) => ({
|
|
2989
2965
|
skipLogin: !1,
|
|
@@ -2995,8 +2971,8 @@ const ua = (e) => Object.entries({
|
|
|
2995
2971
|
}
|
|
2996
2972
|
)
|
|
2997
2973
|
);
|
|
2998
|
-
|
|
2999
|
-
const
|
|
2974
|
+
os(gn);
|
|
2975
|
+
const me = "__none", ga = ({
|
|
3000
2976
|
server: e,
|
|
3001
2977
|
servers: n = [],
|
|
3002
2978
|
url: s,
|
|
@@ -3010,13 +2986,13 @@ const pe = "__none", xa = ({
|
|
|
3010
2986
|
onLogin: d,
|
|
3011
2987
|
onSignUp: f
|
|
3012
2988
|
}) => {
|
|
3013
|
-
const { selectedServer: x, setSelectedServer: h } =
|
|
2989
|
+
const { selectedServer: x, setSelectedServer: h } = Vr(
|
|
3014
2990
|
n.map((p) => ({ url: p }))
|
|
3015
|
-
), [v, u] =
|
|
2991
|
+
), [v, u] = E(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity: R } = ta(), [, N] = ps(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = E(!1), [Ie, ee] = E(!1), g = k(void 0), C = $s(S), T = k(null), { label: A } = Fr("meta+enter", () => {
|
|
3016
2992
|
T.current?.requestSubmit();
|
|
3017
2993
|
}), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
|
|
3018
|
-
(p,
|
|
3019
|
-
), { register: De, control:
|
|
2994
|
+
(p, se) => M.indexOf(p.name) - M.indexOf(se.name)
|
|
2995
|
+
), { register: De, control: te, handleSubmit: je, watch: ct, setValue: Fe, ...ze } = Cs({
|
|
3020
2996
|
defaultValues: {
|
|
3021
2997
|
body: c,
|
|
3022
2998
|
bodyMode: "text",
|
|
@@ -3038,21 +3014,21 @@ const pe = "__none", xa = ({
|
|
|
3038
3014
|
active: p.defaultActive ?? !1
|
|
3039
3015
|
})) : [{ name: "", value: "", active: !1 }],
|
|
3040
3016
|
identity: R([
|
|
3041
|
-
|
|
3017
|
+
me,
|
|
3042
3018
|
...y.data?.map((p) => p.id) ?? []
|
|
3043
3019
|
])
|
|
3044
3020
|
}
|
|
3045
|
-
}),
|
|
3046
|
-
() => y.data?.find((p) => p.id ===
|
|
3047
|
-
[y.data,
|
|
3021
|
+
}), ne = ct("identity"), jn = Bt(
|
|
3022
|
+
() => y.data?.find((p) => p.id === ne)?.authorizationFields,
|
|
3023
|
+
[y.data, ne]
|
|
3048
3024
|
);
|
|
3049
3025
|
G(() => {
|
|
3050
|
-
|
|
3051
|
-
}, [C,
|
|
3052
|
-
const
|
|
3026
|
+
ne && C.current(ne);
|
|
3027
|
+
}, [C, ne]);
|
|
3028
|
+
const J = js({
|
|
3053
3029
|
gcTime: 0,
|
|
3054
3030
|
mutationFn: async (p) => {
|
|
3055
|
-
const
|
|
3031
|
+
const se = performance.now(), Ve = new window.Headers(
|
|
3056
3032
|
p.headers.filter(($) => $.name && $.active).map(($) => [$.name, $.value])
|
|
3057
3033
|
);
|
|
3058
3034
|
let Ce;
|
|
@@ -3062,14 +3038,14 @@ const pe = "__none", xa = ({
|
|
|
3062
3038
|
break;
|
|
3063
3039
|
case "multipart": {
|
|
3064
3040
|
const $ = new FormData();
|
|
3065
|
-
p.multipartFormFields?.filter((
|
|
3041
|
+
p.multipartFormFields?.filter((K) => K.name && K.active).forEach((K) => $.append(K.name, K.value)), Ce = $, Ve.delete("Content-Type");
|
|
3066
3042
|
break;
|
|
3067
3043
|
}
|
|
3068
3044
|
default:
|
|
3069
3045
|
Ce = p.body || void 0;
|
|
3070
3046
|
break;
|
|
3071
3047
|
}
|
|
3072
|
-
const
|
|
3048
|
+
const W = new Request(
|
|
3073
3049
|
Lt(e ?? x, s, p),
|
|
3074
3050
|
{
|
|
3075
3051
|
method: a,
|
|
@@ -3077,41 +3053,41 @@ const pe = "__none", xa = ({
|
|
|
3077
3053
|
body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ce
|
|
3078
3054
|
}
|
|
3079
3055
|
);
|
|
3080
|
-
p.identity !==
|
|
3056
|
+
p.identity !== me && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
|
|
3081
3057
|
const Be = setTimeout(
|
|
3082
|
-
() =>
|
|
3058
|
+
() => ee(!0),
|
|
3083
3059
|
3210
|
|
3084
3060
|
);
|
|
3085
3061
|
g.current = new AbortController(), g.current.signal.addEventListener("abort", () => {
|
|
3086
3062
|
clearTimeout(Be);
|
|
3087
3063
|
});
|
|
3088
3064
|
try {
|
|
3089
|
-
const $ = await fetch(
|
|
3065
|
+
const $ = await fetch(W, {
|
|
3090
3066
|
cache: "no-store",
|
|
3091
3067
|
signal: g.current.signal
|
|
3092
3068
|
});
|
|
3093
|
-
clearTimeout(Be),
|
|
3094
|
-
const
|
|
3069
|
+
clearTimeout(Be), ee(!1);
|
|
3070
|
+
const K = performance.now() - se, On = new URL(W.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = Mr(pt);
|
|
3095
3071
|
let Ne = "", ft, gt;
|
|
3096
|
-
ht ? (ft = await $.blob(), gt =
|
|
3072
|
+
ht ? (ft = await $.blob(), gt = Ur(mt, W.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
|
|
3097
3073
|
const xt = $.headers.get("content-length");
|
|
3098
|
-
let
|
|
3074
|
+
let re = "";
|
|
3099
3075
|
switch (p.bodyMode) {
|
|
3100
3076
|
case "text":
|
|
3101
|
-
|
|
3077
|
+
re = p.body;
|
|
3102
3078
|
break;
|
|
3103
3079
|
case "file":
|
|
3104
|
-
|
|
3080
|
+
re = `[File: ${p.file?.name ?? "Unknown"}]`;
|
|
3105
3081
|
break;
|
|
3106
3082
|
case "multipart":
|
|
3107
|
-
|
|
3108
|
-
`,
|
|
3083
|
+
re = `[Multipart Form Data]
|
|
3084
|
+
`, re += p.multipartFormFields?.filter((U) => U.name && U.active).map(
|
|
3109
3085
|
(U) => U.value instanceof File ? `${U.name}: [File: ${U.value.name}]` : `${U.name}: ${U.value}`
|
|
3110
3086
|
).join(`
|
|
3111
3087
|
`);
|
|
3112
3088
|
break;
|
|
3113
3089
|
default:
|
|
3114
|
-
|
|
3090
|
+
re = p.body;
|
|
3115
3091
|
break;
|
|
3116
3092
|
}
|
|
3117
3093
|
return {
|
|
@@ -3119,38 +3095,38 @@ const pe = "__none", xa = ({
|
|
|
3119
3095
|
headers: mt,
|
|
3120
3096
|
size: xt ? Number(xt) : Ne.length,
|
|
3121
3097
|
body: Ne,
|
|
3122
|
-
time:
|
|
3098
|
+
time: K,
|
|
3123
3099
|
isBinary: ht,
|
|
3124
3100
|
fileName: gt,
|
|
3125
3101
|
blob: ft,
|
|
3126
3102
|
request: {
|
|
3127
|
-
method:
|
|
3128
|
-
url:
|
|
3103
|
+
method: W.method.toUpperCase(),
|
|
3104
|
+
url: W.url,
|
|
3129
3105
|
headers: [
|
|
3130
|
-
["Host",
|
|
3106
|
+
["Host", On.host],
|
|
3131
3107
|
["User-Agent", "Zudoku Playground"],
|
|
3132
|
-
...Array.from(
|
|
3108
|
+
...Array.from(W.headers.entries())
|
|
3133
3109
|
],
|
|
3134
|
-
body:
|
|
3110
|
+
body: re
|
|
3135
3111
|
}
|
|
3136
3112
|
};
|
|
3137
3113
|
} catch ($) {
|
|
3138
|
-
throw clearTimeout(Be),
|
|
3114
|
+
throw clearTimeout(Be), ee(!1), $ instanceof TypeError ? new Error(
|
|
3139
3115
|
"The request failed, possibly due to network issues or CORS policy."
|
|
3140
3116
|
) : $;
|
|
3141
3117
|
}
|
|
3142
3118
|
}
|
|
3143
|
-
}), dt =
|
|
3119
|
+
}), dt = J.isPending, [Cn, Nn] = E(!1);
|
|
3144
3120
|
G(() => {
|
|
3145
|
-
const p = setTimeout(() =>
|
|
3121
|
+
const p = setTimeout(() => Nn(dt), 100);
|
|
3146
3122
|
return () => clearTimeout(p);
|
|
3147
3123
|
}, [dt]);
|
|
3148
|
-
const { isFinished:
|
|
3124
|
+
const { isFinished: Sn, progress: wn } = bs({ isAnimating: Cn });
|
|
3149
3125
|
G(() => () => {
|
|
3150
3126
|
g.current?.abort();
|
|
3151
3127
|
}, []);
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3128
|
+
const Tn = /* @__PURE__ */ t.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ t.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ t.jsxs(
|
|
3129
|
+
Ut,
|
|
3154
3130
|
{
|
|
3155
3131
|
onValueChange: (p) => {
|
|
3156
3132
|
N(() => h(p));
|
|
@@ -3158,23 +3134,23 @@ const pe = "__none", xa = ({
|
|
|
3158
3134
|
value: x,
|
|
3159
3135
|
defaultValue: x,
|
|
3160
3136
|
children: [
|
|
3161
|
-
/* @__PURE__ */ t.jsx(
|
|
3162
|
-
/* @__PURE__ */ t.jsx(
|
|
3137
|
+
/* @__PURE__ */ t.jsx(Gt, { className: "p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Ht, {}) }),
|
|
3138
|
+
/* @__PURE__ */ t.jsx(Qt, { children: n.map((p) => /* @__PURE__ */ t.jsx(Te, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
|
|
3163
3139
|
]
|
|
3164
3140
|
}
|
|
3165
|
-
) }),
|
|
3141
|
+
) }), An = m && !j && !Q, $n = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
3166
3142
|
a.toUpperCase()
|
|
3167
|
-
), [ut,
|
|
3143
|
+
), [ut, Pn] = As();
|
|
3168
3144
|
return /* @__PURE__ */ t.jsx(
|
|
3169
|
-
|
|
3145
|
+
Ns,
|
|
3170
3146
|
{
|
|
3171
3147
|
register: De,
|
|
3172
|
-
control:
|
|
3148
|
+
control: te,
|
|
3173
3149
|
handleSubmit: je,
|
|
3174
3150
|
watch: ct,
|
|
3175
3151
|
setValue: Fe,
|
|
3176
3152
|
...ze,
|
|
3177
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3153
|
+
children: /* @__PURE__ */ t.jsx(Ts, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
|
|
3178
3154
|
"form",
|
|
3179
3155
|
{
|
|
3180
3156
|
ref: T,
|
|
@@ -3182,25 +3158,25 @@ const pe = "__none", xa = ({
|
|
|
3182
3158
|
p.key === "Enter" && p.target instanceof HTMLInputElement && p.preventDefault();
|
|
3183
3159
|
},
|
|
3184
3160
|
onSubmit: je((p) => {
|
|
3185
|
-
y.data?.length === 0 || p.identity ?
|
|
3161
|
+
y.data?.length === 0 || p.identity ? J.mutate(p) : u(!0);
|
|
3186
3162
|
}),
|
|
3187
3163
|
className: "relative",
|
|
3188
3164
|
children: [
|
|
3189
3165
|
/* @__PURE__ */ t.jsx(
|
|
3190
|
-
|
|
3166
|
+
Kr,
|
|
3191
3167
|
{
|
|
3192
3168
|
identities: y.data ?? [],
|
|
3193
3169
|
open: v,
|
|
3194
3170
|
onOpenChange: u,
|
|
3195
|
-
onSubmit: ({ rememberedIdentity: p, identity:
|
|
3196
|
-
p && Fe("identity",
|
|
3171
|
+
onSubmit: ({ rememberedIdentity: p, identity: se }) => {
|
|
3172
|
+
p && Fe("identity", se ?? me), u(!1), J.mutate({ ...ze.getValues(), identity: se });
|
|
3197
3173
|
}
|
|
3198
3174
|
}
|
|
3199
3175
|
),
|
|
3200
3176
|
/* @__PURE__ */ t.jsx(
|
|
3201
|
-
|
|
3177
|
+
ea,
|
|
3202
3178
|
{
|
|
3203
|
-
open:
|
|
3179
|
+
open: An,
|
|
3204
3180
|
setOpen: (p) => {
|
|
3205
3181
|
p || be(!0);
|
|
3206
3182
|
},
|
|
@@ -3216,16 +3192,16 @@ const pe = "__none", xa = ({
|
|
|
3216
3192
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
|
|
3217
3193
|
/* @__PURE__ */ t.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
3218
3194
|
/* @__PURE__ */ t.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ t.jsxs("div", { className: "h-full py-1.5", children: [
|
|
3219
|
-
|
|
3220
|
-
/* @__PURE__ */ t.jsx(
|
|
3221
|
-
/* @__PURE__ */ t.jsx(
|
|
3195
|
+
Tn,
|
|
3196
|
+
/* @__PURE__ */ t.jsx(sa, { url: s }),
|
|
3197
|
+
/* @__PURE__ */ t.jsx(ra, {})
|
|
3222
3198
|
] }) }),
|
|
3223
3199
|
/* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
|
|
3224
3200
|
q,
|
|
3225
3201
|
{
|
|
3226
3202
|
type: "button",
|
|
3227
3203
|
onClick: () => {
|
|
3228
|
-
|
|
3204
|
+
Pn(
|
|
3229
3205
|
Lt(
|
|
3230
3206
|
e ?? x,
|
|
3231
3207
|
s,
|
|
@@ -3239,7 +3215,7 @@ const pe = "__none", xa = ({
|
|
|
3239
3215
|
"hover:opacity-100 transition",
|
|
3240
3216
|
ut ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
3241
3217
|
),
|
|
3242
|
-
children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(
|
|
3218
|
+
children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
|
|
3243
3219
|
}
|
|
3244
3220
|
) })
|
|
3245
3221
|
] }),
|
|
@@ -3247,58 +3223,58 @@ const pe = "__none", xa = ({
|
|
|
3247
3223
|
q,
|
|
3248
3224
|
{
|
|
3249
3225
|
type: "submit",
|
|
3250
|
-
variant:
|
|
3226
|
+
variant: J.isPending ? "destructive" : "default",
|
|
3251
3227
|
onClick: (p) => {
|
|
3252
|
-
|
|
3228
|
+
J.isPending && (g.current?.abort(
|
|
3253
3229
|
"Request cancelled by user"
|
|
3254
3230
|
), p.preventDefault());
|
|
3255
3231
|
},
|
|
3256
3232
|
className: "w-18",
|
|
3257
|
-
children:
|
|
3233
|
+
children: J.isPending ? "Cancel" : "Send"
|
|
3258
3234
|
}
|
|
3259
3235
|
)
|
|
3260
3236
|
] }),
|
|
3261
3237
|
/* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
3262
3238
|
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
3263
|
-
/* @__PURE__ */ t.jsxs(
|
|
3264
|
-
/* @__PURE__ */ t.jsx(
|
|
3239
|
+
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
3240
|
+
/* @__PURE__ */ t.jsx(Kn, { size: 16 }),
|
|
3265
3241
|
/* @__PURE__ */ t.jsx(H, { children: "Authentication" })
|
|
3266
3242
|
] }),
|
|
3267
3243
|
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
3268
|
-
|
|
3244
|
+
hn,
|
|
3269
3245
|
{
|
|
3270
|
-
value:
|
|
3246
|
+
value: ne,
|
|
3271
3247
|
identities: y.data ?? [],
|
|
3272
3248
|
setValue: (p) => Fe("identity", p)
|
|
3273
3249
|
}
|
|
3274
3250
|
) })
|
|
3275
3251
|
] }),
|
|
3276
3252
|
L.length > 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
3277
|
-
/* @__PURE__ */ t.jsxs(
|
|
3278
|
-
/* @__PURE__ */ t.jsx(
|
|
3253
|
+
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
3254
|
+
/* @__PURE__ */ t.jsx(Xn, { size: 16 }),
|
|
3279
3255
|
/* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
|
|
3280
3256
|
] }),
|
|
3281
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
3257
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Zr, { url: s, control: te }) })
|
|
3282
3258
|
] }),
|
|
3283
|
-
/* @__PURE__ */ t.jsx(
|
|
3259
|
+
/* @__PURE__ */ t.jsx(Yr, { control: te, schemaQueryParams: o }),
|
|
3284
3260
|
/* @__PURE__ */ t.jsx(
|
|
3285
|
-
|
|
3261
|
+
Jr,
|
|
3286
3262
|
{
|
|
3287
|
-
control:
|
|
3263
|
+
control: te,
|
|
3288
3264
|
schemaHeaders: r,
|
|
3289
|
-
lockedHeaders:
|
|
3265
|
+
lockedHeaders: jn?.headers
|
|
3290
3266
|
}
|
|
3291
3267
|
),
|
|
3292
|
-
|
|
3268
|
+
$n && /* @__PURE__ */ t.jsx(qr, { content: l })
|
|
3293
3269
|
] }),
|
|
3294
3270
|
/* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
3295
3271
|
/* @__PURE__ */ t.jsx(
|
|
3296
|
-
|
|
3272
|
+
fa,
|
|
3297
3273
|
{
|
|
3298
|
-
queryMutation:
|
|
3274
|
+
queryMutation: J,
|
|
3299
3275
|
showLongRunningWarning: Ie,
|
|
3300
|
-
isFinished:
|
|
3301
|
-
progress:
|
|
3276
|
+
isFinished: Sn,
|
|
3277
|
+
progress: wn,
|
|
3302
3278
|
tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3303
3279
|
"Press",
|
|
3304
3280
|
" ",
|
|
@@ -3309,7 +3285,7 @@ const pe = "__none", xa = ({
|
|
|
3309
3285
|
onCancel: () => {
|
|
3310
3286
|
g.current?.abort(
|
|
3311
3287
|
"Request cancelled by the user"
|
|
3312
|
-
),
|
|
3288
|
+
), ee(!1);
|
|
3313
3289
|
}
|
|
3314
3290
|
}
|
|
3315
3291
|
)
|
|
@@ -3319,11 +3295,11 @@ const pe = "__none", xa = ({
|
|
|
3319
3295
|
) })
|
|
3320
3296
|
}
|
|
3321
3297
|
);
|
|
3322
|
-
},
|
|
3323
|
-
const [n, s] =
|
|
3298
|
+
}, xa = (e) => {
|
|
3299
|
+
const [n, s] = E(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = xs();
|
|
3324
3300
|
return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
|
|
3325
|
-
/* @__PURE__ */ t.jsx(
|
|
3326
|
-
|
|
3301
|
+
/* @__PURE__ */ t.jsx(ys, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
|
|
3302
|
+
Zn,
|
|
3327
3303
|
{
|
|
3328
3304
|
className: "fill-muted-foreground group-hover:fill-foreground transition",
|
|
3329
3305
|
size: 16,
|
|
@@ -3337,9 +3313,9 @@ const pe = "__none", xa = ({
|
|
|
3337
3313
|
"aria-describedby": void 0,
|
|
3338
3314
|
showCloseButton: !0,
|
|
3339
3315
|
children: [
|
|
3340
|
-
/* @__PURE__ */ t.jsx(
|
|
3316
|
+
/* @__PURE__ */ t.jsx(fs, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
|
|
3341
3317
|
n && /* @__PURE__ */ t.jsx(
|
|
3342
|
-
|
|
3318
|
+
ga,
|
|
3343
3319
|
{
|
|
3344
3320
|
requiresLogin: a && !c && !i,
|
|
3345
3321
|
onLogin: () => r(),
|
|
@@ -3351,7 +3327,7 @@ const pe = "__none", xa = ({
|
|
|
3351
3327
|
}
|
|
3352
3328
|
)
|
|
3353
3329
|
] });
|
|
3354
|
-
},
|
|
3330
|
+
}, ya = {
|
|
3355
3331
|
get: "green",
|
|
3356
3332
|
post: "blue",
|
|
3357
3333
|
put: "yellow",
|
|
@@ -3359,7 +3335,7 @@ const pe = "__none", xa = ({
|
|
|
3359
3335
|
patch: "purple",
|
|
3360
3336
|
options: "gray",
|
|
3361
3337
|
head: "gray"
|
|
3362
|
-
},
|
|
3338
|
+
}, Et = ({
|
|
3363
3339
|
label: e,
|
|
3364
3340
|
path: n,
|
|
3365
3341
|
operations: s,
|
|
@@ -3383,21 +3359,21 @@ const pe = "__none", xa = ({
|
|
|
3383
3359
|
badge: {
|
|
3384
3360
|
label: o.method,
|
|
3385
3361
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3386
|
-
color:
|
|
3362
|
+
color: ya[o.method.toLowerCase()],
|
|
3387
3363
|
invert: !0
|
|
3388
3364
|
}
|
|
3389
3365
|
}))
|
|
3390
|
-
}),
|
|
3366
|
+
}), xn = Vt(
|
|
3391
3367
|
void 0
|
|
3392
|
-
), Ya =
|
|
3393
|
-
const e =
|
|
3368
|
+
), Ya = xn.Provider, va = () => {
|
|
3369
|
+
const e = hs(xn);
|
|
3394
3370
|
if (!e)
|
|
3395
3371
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3396
3372
|
return e.config;
|
|
3397
3373
|
}, Qe = (e) => ({
|
|
3398
3374
|
path: e.routePath,
|
|
3399
3375
|
async lazy() {
|
|
3400
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3376
|
+
const { OasProvider: n } = await import("./OasProvider-BZxmTyMM.js");
|
|
3401
3377
|
return {
|
|
3402
3378
|
element: /* @__PURE__ */ t.jsx(
|
|
3403
3379
|
n,
|
|
@@ -3411,28 +3387,28 @@ const pe = "__none", xa = ({
|
|
|
3411
3387
|
};
|
|
3412
3388
|
},
|
|
3413
3389
|
children: e.routes
|
|
3414
|
-
}),
|
|
3390
|
+
}), yn = ({
|
|
3415
3391
|
path: e,
|
|
3416
3392
|
tag: n,
|
|
3417
3393
|
untagged: s
|
|
3418
3394
|
}) => ({
|
|
3419
3395
|
path: e,
|
|
3420
3396
|
async lazy() {
|
|
3421
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3397
|
+
const { OperationList: a } = await import("./OperationList-B7nPIFB8.js");
|
|
3422
3398
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3423
3399
|
}
|
|
3424
|
-
}),
|
|
3400
|
+
}), ba = ({
|
|
3425
3401
|
render: e,
|
|
3426
3402
|
path: n
|
|
3427
3403
|
}) => {
|
|
3428
|
-
const { type: s, input: a } =
|
|
3404
|
+
const { type: s, input: a } = va(), { tag: r } = ts(), o = ns(), i = Sr(bn, { type: s, input: a }), {
|
|
3429
3405
|
data: { schema: c }
|
|
3430
|
-
} =
|
|
3406
|
+
} = ls(i), l = c.tags.at(0);
|
|
3431
3407
|
return !r && l?.slug ? /* @__PURE__ */ t.jsx(
|
|
3432
|
-
|
|
3408
|
+
ss,
|
|
3433
3409
|
{
|
|
3434
3410
|
to: {
|
|
3435
|
-
pathname:
|
|
3411
|
+
pathname: rs(n, { tag: l.slug }),
|
|
3436
3412
|
search: o.search
|
|
3437
3413
|
}
|
|
3438
3414
|
}
|
|
@@ -3440,10 +3416,10 @@ const pe = "__none", xa = ({
|
|
|
3440
3416
|
}, Rt = ({ path: e }) => ({
|
|
3441
3417
|
path: e,
|
|
3442
3418
|
async lazy() {
|
|
3443
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3419
|
+
const { OperationList: n } = await import("./OperationList-B7nPIFB8.js");
|
|
3444
3420
|
return {
|
|
3445
3421
|
element: /* @__PURE__ */ t.jsx(
|
|
3446
|
-
|
|
3422
|
+
ba,
|
|
3447
3423
|
{
|
|
3448
3424
|
path: e,
|
|
3449
3425
|
render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
|
|
@@ -3453,7 +3429,7 @@ const pe = "__none", xa = ({
|
|
|
3453
3429
|
}
|
|
3454
3430
|
}), Xe = (e) => [
|
|
3455
3431
|
// Category without tagged operations
|
|
3456
|
-
|
|
3432
|
+
yn({
|
|
3457
3433
|
path: V(e, lt),
|
|
3458
3434
|
untagged: !0
|
|
3459
3435
|
}),
|
|
@@ -3461,42 +3437,42 @@ const pe = "__none", xa = ({
|
|
|
3461
3437
|
{
|
|
3462
3438
|
path: V(e, "~schemas"),
|
|
3463
3439
|
lazy: async () => {
|
|
3464
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3440
|
+
const { SchemaList: n } = await import("./SchemaList-16_obkku.js");
|
|
3465
3441
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3466
3442
|
}
|
|
3467
3443
|
}
|
|
3468
|
-
],
|
|
3444
|
+
], ja = (e, n) => {
|
|
3469
3445
|
const s = V(e, n.at(0) ?? lt);
|
|
3470
3446
|
return [
|
|
3471
3447
|
// Redirect to first tag on the index route
|
|
3472
|
-
{ index: !0, loader: () =>
|
|
3448
|
+
{ index: !0, loader: () => es(s) },
|
|
3473
3449
|
// Create routes for each tag
|
|
3474
3450
|
...n.map(
|
|
3475
|
-
(a) =>
|
|
3451
|
+
(a) => yn({
|
|
3476
3452
|
path: V(e, a),
|
|
3477
3453
|
tag: a
|
|
3478
3454
|
})
|
|
3479
3455
|
),
|
|
3480
3456
|
...Xe(e)
|
|
3481
3457
|
];
|
|
3482
|
-
},
|
|
3458
|
+
}, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {} } : {
|
|
3483
3459
|
versions: e.input.map((n) => n.path),
|
|
3484
3460
|
labels: Object.fromEntries(
|
|
3485
3461
|
e.input.map((n) => [n.path, n.label ?? n.path])
|
|
3486
3462
|
)
|
|
3487
|
-
},
|
|
3463
|
+
}, Ca = ({
|
|
3488
3464
|
basePath: e,
|
|
3489
3465
|
config: n,
|
|
3490
3466
|
client: s
|
|
3491
3467
|
}) => {
|
|
3492
|
-
const a = n.tagPages, { versions: r } =
|
|
3468
|
+
const a = n.tagPages, { versions: r } = vn(n);
|
|
3493
3469
|
return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3494
3470
|
const c = V(e, i);
|
|
3495
3471
|
return Qe({
|
|
3496
3472
|
basePath: e,
|
|
3497
3473
|
version: i,
|
|
3498
3474
|
routePath: c,
|
|
3499
|
-
routes:
|
|
3475
|
+
routes: ja(c, a),
|
|
3500
3476
|
client: s,
|
|
3501
3477
|
config: n
|
|
3502
3478
|
});
|
|
@@ -3525,7 +3501,7 @@ const pe = "__none", xa = ({
|
|
|
3525
3501
|
config: n
|
|
3526
3502
|
})
|
|
3527
3503
|
];
|
|
3528
|
-
},
|
|
3504
|
+
}, bn = Er(`
|
|
3529
3505
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3530
3506
|
schema(input: $input, type: $type) {
|
|
3531
3507
|
extensions
|
|
@@ -3549,7 +3525,7 @@ const pe = "__none", xa = ({
|
|
|
3549
3525
|
}
|
|
3550
3526
|
}
|
|
3551
3527
|
`), lt = "~endpoints", eo = (e) => {
|
|
3552
|
-
const n = V(e.path), s = new
|
|
3528
|
+
const n = V(e.path), s = new Gs(e);
|
|
3553
3529
|
return {
|
|
3554
3530
|
getHead: () => {
|
|
3555
3531
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -3577,7 +3553,7 @@ const pe = "__none", xa = ({
|
|
|
3577
3553
|
if (!a)
|
|
3578
3554
|
throw new Error("Server is required");
|
|
3579
3555
|
return /* @__PURE__ */ t.jsx(
|
|
3580
|
-
|
|
3556
|
+
xa,
|
|
3581
3557
|
{
|
|
3582
3558
|
url: o,
|
|
3583
3559
|
method: r,
|
|
@@ -3585,7 +3561,7 @@ const pe = "__none", xa = ({
|
|
|
3585
3561
|
...c,
|
|
3586
3562
|
children: /* @__PURE__ */ t.jsx(Ft, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3587
3563
|
"Open in Playground",
|
|
3588
|
-
/* @__PURE__ */ t.jsx(
|
|
3564
|
+
/* @__PURE__ */ t.jsx(Yn, { size: 16 })
|
|
3589
3565
|
] }) })
|
|
3590
3566
|
}
|
|
3591
3567
|
);
|
|
@@ -3599,22 +3575,22 @@ const pe = "__none", xa = ({
|
|
|
3599
3575
|
a
|
|
3600
3576
|
);
|
|
3601
3577
|
try {
|
|
3602
|
-
const i = o?.params.version, { versions: c } =
|
|
3578
|
+
const i = o?.params.version, { versions: c } = vn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = cn(s, bn, {
|
|
3603
3579
|
type: m,
|
|
3604
3580
|
input: d
|
|
3605
3581
|
}), x = await r.queryClient.ensureQueryData(f), h = new Map(
|
|
3606
3582
|
x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
|
|
3607
3583
|
if (!N.name)
|
|
3608
3584
|
throw new Error(`Tag ${N.slug} has no name`);
|
|
3609
|
-
const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags,
|
|
3585
|
+
const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3610
3586
|
return [
|
|
3611
3587
|
N.name,
|
|
3612
|
-
|
|
3588
|
+
Et({
|
|
3613
3589
|
label: N.extensions?.["x-displayName"] ?? N.name,
|
|
3614
3590
|
path: j,
|
|
3615
3591
|
operations: N.operations,
|
|
3616
3592
|
collapsed: O,
|
|
3617
|
-
collapsible:
|
|
3593
|
+
collapsible: Q
|
|
3618
3594
|
})
|
|
3619
3595
|
];
|
|
3620
3596
|
})
|
|
@@ -3642,7 +3618,7 @@ const pe = "__none", xa = ({
|
|
|
3642
3618
|
(N) => !N.name
|
|
3643
3619
|
)?.operations;
|
|
3644
3620
|
return R && R.length > 0 && S.push(
|
|
3645
|
-
|
|
3621
|
+
Et({
|
|
3646
3622
|
label: S.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3647
3623
|
path: V(n, i, lt),
|
|
3648
3624
|
operations: R,
|
|
@@ -3657,44 +3633,44 @@ const pe = "__none", xa = ({
|
|
|
3657
3633
|
return [];
|
|
3658
3634
|
}
|
|
3659
3635
|
},
|
|
3660
|
-
getRoutes: () =>
|
|
3636
|
+
getRoutes: () => Ca({ basePath: n, config: e, client: s })
|
|
3661
3637
|
};
|
|
3662
3638
|
};
|
|
3663
3639
|
export {
|
|
3664
3640
|
B as C,
|
|
3665
3641
|
Za as G,
|
|
3666
|
-
|
|
3642
|
+
sr as L,
|
|
3667
3643
|
Ya as O,
|
|
3668
|
-
|
|
3669
|
-
|
|
3644
|
+
xa as P,
|
|
3645
|
+
Xs as Q,
|
|
3670
3646
|
on as S,
|
|
3671
3647
|
b as T,
|
|
3672
3648
|
lt as U,
|
|
3673
|
-
|
|
3674
|
-
|
|
3649
|
+
Sr as a,
|
|
3650
|
+
ce as b,
|
|
3675
3651
|
_ as c,
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3652
|
+
Er as d,
|
|
3653
|
+
Vr as e,
|
|
3654
|
+
fn as f,
|
|
3655
|
+
vn as g,
|
|
3656
|
+
na as h,
|
|
3681
3657
|
Xa as i,
|
|
3682
3658
|
qe as j,
|
|
3683
3659
|
an as k,
|
|
3684
3660
|
rt as l,
|
|
3685
|
-
|
|
3661
|
+
Ys as m,
|
|
3686
3662
|
tn as n,
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3663
|
+
jr as o,
|
|
3664
|
+
nr as p,
|
|
3665
|
+
Hs as q,
|
|
3666
|
+
Cr as r,
|
|
3691
3667
|
F as s,
|
|
3692
3668
|
Pt as t,
|
|
3693
|
-
|
|
3669
|
+
va as u,
|
|
3694
3670
|
Ka as v,
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3671
|
+
rr as w,
|
|
3672
|
+
Qs as x,
|
|
3673
|
+
bn as y,
|
|
3698
3674
|
eo as z
|
|
3699
3675
|
};
|
|
3700
|
-
//# sourceMappingURL=index-
|
|
3676
|
+
//# sourceMappingURL=index-CeVTNcfF.js.map
|