zudoku 0.63.0 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/entry.server.js +14 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -0
- package/dist/lib/core/ZudokuContext.d.ts +1 -0
- package/dist/lib/core/ZudokuContext.js +2 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -0
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +4 -9
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/vite/plugin-docs.js +1 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +4 -2
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/lib/{MdxPage-DFRNwSsc.js → MdxPage-1xaNI6q_.js} +81 -80
- package/lib/MdxPage-1xaNI6q_.js.map +1 -0
- package/lib/{OAuthErrorPage-DJUOdr6Q.js → OAuthErrorPage-Du_4sFER.js} +3 -3
- package/lib/{OAuthErrorPage-DJUOdr6Q.js.map → OAuthErrorPage-Du_4sFER.js.map} +1 -1
- package/lib/{OasProvider-D2NYAaBN.js → OasProvider-0xiB5cKH.js} +2 -2
- package/lib/{OasProvider-D2NYAaBN.js.map → OasProvider-0xiB5cKH.js.map} +1 -1
- package/lib/{OperationList-DmXCI4NU.js → OperationList-BzWKTkNq.js} +5 -5
- package/lib/{OperationList-DmXCI4NU.js.map → OperationList-BzWKTkNq.js.map} +1 -1
- package/lib/{Pagination-CT4VUR6u.js → Pagination-DOcPyfy_.js} +2 -2
- package/lib/{Pagination-CT4VUR6u.js.map → Pagination-DOcPyfy_.js.map} +1 -1
- package/lib/{SchemaList-uElsscMN.js → SchemaList-Dea2Skqv.js} +3 -3
- package/lib/{SchemaList-uElsscMN.js.map → SchemaList-Dea2Skqv.js.map} +1 -1
- package/lib/{SchemaView-CNQ3VAbI.js → SchemaView-H9glU5P7.js} +2 -2
- package/lib/{SchemaView-CNQ3VAbI.js.map → SchemaView-H9glU5P7.js.map} +1 -1
- package/lib/{SignUp-BraHuRN_.js → SignUp-DUZ4yUmQ.js} +2 -2
- package/lib/{SignUp-BraHuRN_.js.map → SignUp-DUZ4yUmQ.js.map} +1 -1
- package/lib/{circular-BWT7_Ahq.js → circular-OGtD_zFg.js} +2 -2
- package/lib/{circular-BWT7_Ahq.js.map → circular-OGtD_zFg.js.map} +1 -1
- package/lib/{createServer-zhJZSgor.js → createServer-DyUc5BPr.js} +3 -3
- package/lib/{createServer-zhJZSgor.js.map → createServer-DyUc5BPr.js.map} +1 -1
- package/lib/{errors-XqO6MsfU.js → errors-7_i0Oyw4.js} +2 -2
- package/lib/{errors-XqO6MsfU.js.map → errors-7_i0Oyw4.js.map} +1 -1
- package/lib/{index-BPSpOxTK.js → index-CLJGtw_S.js} +147 -146
- package/lib/index-CLJGtw_S.js.map +1 -0
- package/lib/{index-D8Btv4uT.js → index-PdgTSEkk.js} +385 -399
- package/lib/{index-D8Btv4uT.js.map → index-PdgTSEkk.js.map} +1 -1
- package/lib/zudoku.__internal.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +3 -3
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.auth-supabase.js +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-markdown.js +10 -9
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +4 -5
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +4 -4
- package/src/app/entry.server.tsx +16 -6
- package/src/app/main.css +42 -0
- package/src/lib/authentication/authentication.ts +3 -1
- package/src/lib/core/ZudokuContext.ts +3 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +4 -1
- package/src/lib/plugins/markdown/index.tsx +2 -0
- package/src/lib/plugins/openapi/index.tsx +9 -29
- package/lib/MdxPage-DFRNwSsc.js.map +0 -1
- package/lib/index-BPSpOxTK.js.map +0 -1
|
@@ -1,50 +1,49 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronUpIcon as pn, PlusCircleIcon as pe, FileInput as hn, Check as fn, TableOfContentsIcon as gn, LockIcon as xn, CircleAlertIcon as yn, XIcon as ft, Circle as vn, Unlink2Icon as bn, CornerDownRightIcon as jn, CornerDownLeftIcon as Cn, DownloadIcon as
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Z as Mn, i as Gn } from "./invariant-Bm-FVUQE.js";
|
|
2
|
+
import { ChevronUpIcon as pn, PlusCircleIcon as pe, FileInput as hn, Check as fn, TableOfContentsIcon as gn, LockIcon as xn, CircleAlertIcon as yn, XIcon as ft, Circle as vn, Unlink2Icon as bn, CornerDownRightIcon as jn, CornerDownLeftIcon as Cn, DownloadIcon as wn, EyeOffIcon as Nn, EyeIcon as Sn, UnplugIcon as Tn, SendIcon as An, CheckIcon as On, CopyIcon as Pn, IdCardLanyardIcon as Ln, ShapesIcon as $n, CirclePlayIcon as En } from "lucide-react";
|
|
3
|
+
import { r as Rn, u as kn, c as In, N as Dn, aL as Fn, m as st } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
4
|
+
import { Button as ce } from "./ui/Button.js";
|
|
5
|
+
import { J as $e, K as Ee, L as gt, a as zn, e as qn, M as Vn, j as R, b as Bn } from "./ZudokuContext-BXTZApgy.js";
|
|
6
|
+
import { Z as _n, i as Un } from "./invariant-Bm-FVUQE.js";
|
|
8
7
|
import * as q from "react";
|
|
9
|
-
import { createContext as xt, use as
|
|
10
|
-
import { VisuallyHidden as
|
|
11
|
-
import { useAuth as
|
|
12
|
-
import { D as Re, a as ke, c as Ie, d as bt, e as jt, g as
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as Ct, c as
|
|
15
|
-
import { u as
|
|
8
|
+
import { createContext as xt, use as Mn, useRef as O, useEffect as I, useMemo as yt, useState as $, useCallback as vt, Fragment as Z, useLayoutEffect as Gn, useTransition as Hn, useContext as Qn } from "react";
|
|
9
|
+
import { VisuallyHidden as Jn } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { useAuth as Wn } from "./zudoku.hooks.js";
|
|
11
|
+
import { D as Re, a as ke, c as Ie, d as bt, e as jt, g as Xn } from "./Dialog-BQciPiHN.js";
|
|
12
|
+
import { S as Zn, b as Yn } from "./index-CLJGtw_S.js";
|
|
13
|
+
import { S as Ct, c as wt, d as Nt, e as St, g as oe, i as Kn, A as es, a as ts, b as ns, u as ss } from "./Select-CPoGZU_V.js";
|
|
14
|
+
import { u as ne, b as De, C as D, a as rs, F as as } from "./index.esm-BYObtETB.js";
|
|
16
15
|
import { B as E } from "./Button-DmS4u8Lj.js";
|
|
17
|
-
import * as
|
|
18
|
-
import { g as rt, h as at, i as ot, j as
|
|
16
|
+
import * as Fe from "@radix-ui/react-collapsible";
|
|
17
|
+
import { g as rt, h as at, i as ot, j as os } from "./ErrorAlert-VBJ8aHH7.js";
|
|
19
18
|
import { c as C } from "./cn-dYga0KKN.js";
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as
|
|
22
|
-
import { D as
|
|
19
|
+
import { u as is } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
|
+
import { u as cs } from "./useLatest-hmRS46UF.js";
|
|
21
|
+
import { D as ls, a as ds, b as us, d as ms, e as ps, f as hs, c as fs } from "./DropdownMenu-BZ2NKQ3K.js";
|
|
23
22
|
import * as Oe from "@radix-ui/react-checkbox";
|
|
24
23
|
import * as le from "@radix-ui/react-popover";
|
|
25
|
-
import { PopoverAnchor as
|
|
26
|
-
import { P as
|
|
27
|
-
import { f as
|
|
24
|
+
import { PopoverAnchor as gs } from "@radix-ui/react-popover";
|
|
25
|
+
import { P as xs } from "./index-CrcNWbel.js";
|
|
26
|
+
import { f as ys, g as vs, C as bs, b as js } from "./Command-CUcrW3qs.js";
|
|
28
27
|
import { Input as de } from "./ui/Input.js";
|
|
29
|
-
import { Slot as
|
|
30
|
-
import { C as
|
|
28
|
+
import { Slot as Cs } from "@radix-ui/react-slot";
|
|
29
|
+
import { C as ws } from "./Card-KFniaZn5.js";
|
|
31
30
|
import * as Tt from "@radix-ui/react-label";
|
|
32
|
-
import { c as
|
|
33
|
-
import * as
|
|
34
|
-
import { z as
|
|
35
|
-
import { h as
|
|
31
|
+
import { c as Ns } from "./index-DI5SPFK9.js";
|
|
32
|
+
import * as ee from "@radix-ui/react-radio-group";
|
|
33
|
+
import { z as Ss } from "./useExposedProps-Cd7Yg_uG.js";
|
|
34
|
+
import { h as Ts } from "./SyntaxHighlight-B0laqAqK.js";
|
|
36
35
|
let be;
|
|
37
|
-
const
|
|
36
|
+
const As = (e) => {
|
|
38
37
|
if (e.errors?.[0])
|
|
39
|
-
throw new
|
|
38
|
+
throw new _n(e.errors[0].message, {
|
|
40
39
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
41
40
|
});
|
|
42
41
|
};
|
|
43
|
-
class
|
|
42
|
+
class Os {
|
|
44
43
|
constructor(t) {
|
|
45
44
|
this.config = t;
|
|
46
45
|
}
|
|
47
|
-
#e = async () => (be || (be = import("./createServer-
|
|
46
|
+
#e = async () => (be || (be = import("./createServer-DyUc5BPr.js").then(
|
|
48
47
|
(t) => t.createServer(this.config)
|
|
49
48
|
)), be);
|
|
50
49
|
#t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
|
|
@@ -57,27 +56,27 @@ class Ls {
|
|
|
57
56
|
if (!r.ok)
|
|
58
57
|
throw new Error("Network response was not ok");
|
|
59
58
|
const o = await r.json();
|
|
60
|
-
return
|
|
59
|
+
return As(o), o.data;
|
|
61
60
|
};
|
|
62
61
|
}
|
|
63
62
|
function je(e, t) {
|
|
64
63
|
if (!!!e)
|
|
65
64
|
throw new Error(t);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function Ps(e) {
|
|
68
67
|
return typeof e == "object" && e !== null;
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function Ls(e, t) {
|
|
71
70
|
if (!!!e)
|
|
72
71
|
throw new Error(
|
|
73
72
|
t ?? "Unexpected invariant triggered."
|
|
74
73
|
);
|
|
75
74
|
}
|
|
76
|
-
const
|
|
75
|
+
const $s = /\r\n|[\n\r]/g;
|
|
77
76
|
function Pe(e, t) {
|
|
78
77
|
let s = 0, a = 1;
|
|
79
|
-
for (const r of e.body.matchAll(
|
|
80
|
-
if (typeof r.index == "number" ||
|
|
78
|
+
for (const r of e.body.matchAll($s)) {
|
|
79
|
+
if (typeof r.index == "number" || Ls(!1), r.index >= t)
|
|
81
80
|
break;
|
|
82
81
|
s = r.index + r[0].length, a += 1;
|
|
83
82
|
}
|
|
@@ -86,7 +85,7 @@ function Pe(e, t) {
|
|
|
86
85
|
column: t + 1 - s
|
|
87
86
|
};
|
|
88
87
|
}
|
|
89
|
-
function
|
|
88
|
+
function Es(e) {
|
|
90
89
|
return At(
|
|
91
90
|
e.source,
|
|
92
91
|
Pe(e.source, e.start)
|
|
@@ -119,7 +118,7 @@ function it(e) {
|
|
|
119
118
|
return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
120
119
|
`);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function Rs(e) {
|
|
123
122
|
const t = e[0];
|
|
124
123
|
return t == null || "kind" in t || "length" in t ? {
|
|
125
124
|
nodes: t,
|
|
@@ -130,7 +129,7 @@ function Is(e) {
|
|
|
130
129
|
extensions: e[5]
|
|
131
130
|
} : t;
|
|
132
131
|
}
|
|
133
|
-
class
|
|
132
|
+
class ze extends Error {
|
|
134
133
|
/**
|
|
135
134
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
136
135
|
* which correspond to this error.
|
|
@@ -171,7 +170,7 @@ class Fe extends Error {
|
|
|
171
170
|
*/
|
|
172
171
|
constructor(t, ...s) {
|
|
173
172
|
var a, r, o;
|
|
174
|
-
const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } =
|
|
173
|
+
const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
|
|
175
174
|
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
|
|
176
175
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
177
176
|
);
|
|
@@ -179,7 +178,7 @@ class Fe extends Error {
|
|
|
179
178
|
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
180
179
|
);
|
|
181
180
|
this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) => Pe(l, v)) : g?.map((v) => Pe(v.source, v.start));
|
|
182
|
-
const m =
|
|
181
|
+
const m = Ps(
|
|
183
182
|
d?.extensions
|
|
184
183
|
) ? d?.extensions : void 0;
|
|
185
184
|
this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -206,7 +205,7 @@ class Fe extends Error {
|
|
|
206
205
|
value: d.stack,
|
|
207
206
|
writable: !0,
|
|
208
207
|
configurable: !0
|
|
209
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
208
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, ze) : Object.defineProperty(this, "stack", {
|
|
210
209
|
value: Error().stack,
|
|
211
210
|
writable: !0,
|
|
212
211
|
configurable: !0
|
|
@@ -221,7 +220,7 @@ class Fe extends Error {
|
|
|
221
220
|
for (const s of this.nodes)
|
|
222
221
|
s.loc && (t += `
|
|
223
222
|
|
|
224
|
-
` +
|
|
223
|
+
` + Es(s.loc));
|
|
225
224
|
else if (this.source && this.locations)
|
|
226
225
|
for (const s of this.locations)
|
|
227
226
|
t += `
|
|
@@ -240,12 +239,12 @@ function ct(e) {
|
|
|
240
239
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
241
240
|
}
|
|
242
241
|
function P(e, t, s) {
|
|
243
|
-
return new
|
|
242
|
+
return new ze(`Syntax Error: ${s}`, {
|
|
244
243
|
source: e,
|
|
245
244
|
positions: [t]
|
|
246
245
|
});
|
|
247
246
|
}
|
|
248
|
-
class
|
|
247
|
+
class Fa {
|
|
249
248
|
/**
|
|
250
249
|
* The character offset at which this Node begins.
|
|
251
250
|
*/
|
|
@@ -316,7 +315,7 @@ class Ot {
|
|
|
316
315
|
};
|
|
317
316
|
}
|
|
318
317
|
}
|
|
319
|
-
const
|
|
318
|
+
const ks = {
|
|
320
319
|
Name: [],
|
|
321
320
|
Document: ["definitions"],
|
|
322
321
|
OperationDefinition: [
|
|
@@ -390,10 +389,10 @@ const Ds = {
|
|
|
390
389
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
391
390
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
392
391
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
393
|
-
},
|
|
394
|
-
function
|
|
392
|
+
}, Is = new Set(Object.keys(ks));
|
|
393
|
+
function za(e) {
|
|
395
394
|
const t = e?.kind;
|
|
396
|
-
return typeof t == "string" &&
|
|
395
|
+
return typeof t == "string" && Is.has(t);
|
|
397
396
|
}
|
|
398
397
|
var lt;
|
|
399
398
|
(function(e) {
|
|
@@ -402,7 +401,7 @@ var lt;
|
|
|
402
401
|
function Le(e) {
|
|
403
402
|
return e === 9 || e === 32;
|
|
404
403
|
}
|
|
405
|
-
function
|
|
404
|
+
function te(e) {
|
|
406
405
|
return e >= 48 && e <= 57;
|
|
407
406
|
}
|
|
408
407
|
function Pt(e) {
|
|
@@ -412,15 +411,15 @@ function Pt(e) {
|
|
|
412
411
|
function Lt(e) {
|
|
413
412
|
return Pt(e) || e === 95;
|
|
414
413
|
}
|
|
415
|
-
function
|
|
416
|
-
return Pt(e) ||
|
|
414
|
+
function Ds(e) {
|
|
415
|
+
return Pt(e) || te(e) || e === 95;
|
|
417
416
|
}
|
|
418
|
-
function
|
|
417
|
+
function Fs(e) {
|
|
419
418
|
var t;
|
|
420
419
|
let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
|
|
421
420
|
for (let i = 0; i < e.length; ++i) {
|
|
422
421
|
var o;
|
|
423
|
-
const l = e[i], c =
|
|
422
|
+
const l = e[i], c = zs(l);
|
|
424
423
|
c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
|
|
425
424
|
}
|
|
426
425
|
return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
|
|
@@ -428,13 +427,13 @@ function qs(e) {
|
|
|
428
427
|
r + 1
|
|
429
428
|
);
|
|
430
429
|
}
|
|
431
|
-
function
|
|
430
|
+
function zs(e) {
|
|
432
431
|
let t = 0;
|
|
433
432
|
for (; t < e.length && Le(e.charCodeAt(t)); )
|
|
434
433
|
++t;
|
|
435
434
|
return t;
|
|
436
435
|
}
|
|
437
|
-
function
|
|
436
|
+
function qs(e, t) {
|
|
438
437
|
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((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
|
|
439
438
|
(!r || e.length > 70 || u || o || i);
|
|
440
439
|
let h = "";
|
|
@@ -447,7 +446,7 @@ var x;
|
|
|
447
446
|
(function(e) {
|
|
448
447
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", 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";
|
|
449
448
|
})(x || (x = {}));
|
|
450
|
-
class
|
|
449
|
+
class Vs {
|
|
451
450
|
/**
|
|
452
451
|
* The previously focused non-ignored token.
|
|
453
452
|
*/
|
|
@@ -484,14 +483,14 @@ class _s {
|
|
|
484
483
|
if (t.next)
|
|
485
484
|
t = t.next;
|
|
486
485
|
else {
|
|
487
|
-
const s =
|
|
486
|
+
const s = _s(this, t.end);
|
|
488
487
|
t.next = s, s.prev = t, t = s;
|
|
489
488
|
}
|
|
490
489
|
while (t.kind === x.COMMENT);
|
|
491
490
|
return t;
|
|
492
491
|
}
|
|
493
492
|
}
|
|
494
|
-
function
|
|
493
|
+
function Bs(e) {
|
|
495
494
|
return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
|
|
496
495
|
}
|
|
497
496
|
function W(e) {
|
|
@@ -516,11 +515,11 @@ function _(e, t) {
|
|
|
516
515
|
}
|
|
517
516
|
return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
|
|
518
517
|
}
|
|
519
|
-
function
|
|
518
|
+
function w(e, t, s, a, r) {
|
|
520
519
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
521
520
|
return new Ot(t, s, a, o, i, r);
|
|
522
521
|
}
|
|
523
|
-
function
|
|
522
|
+
function _s(e, t) {
|
|
524
523
|
const s = e.source.body, a = s.length;
|
|
525
524
|
let r = t;
|
|
526
525
|
for (; r < a; ) {
|
|
@@ -561,7 +560,7 @@ function Ms(e, t) {
|
|
|
561
560
|
continue;
|
|
562
561
|
// Comment
|
|
563
562
|
case 35:
|
|
564
|
-
return
|
|
563
|
+
return Us(e, r);
|
|
565
564
|
// Token ::
|
|
566
565
|
// - Punctuator
|
|
567
566
|
// - Name
|
|
@@ -571,52 +570,52 @@ function Ms(e, t) {
|
|
|
571
570
|
//
|
|
572
571
|
// Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
|
|
573
572
|
case 33:
|
|
574
|
-
return
|
|
573
|
+
return w(e, x.BANG, r, r + 1);
|
|
575
574
|
case 36:
|
|
576
|
-
return
|
|
575
|
+
return w(e, x.DOLLAR, r, r + 1);
|
|
577
576
|
case 38:
|
|
578
|
-
return
|
|
577
|
+
return w(e, x.AMP, r, r + 1);
|
|
579
578
|
case 40:
|
|
580
|
-
return
|
|
579
|
+
return w(e, x.PAREN_L, r, r + 1);
|
|
581
580
|
case 41:
|
|
582
|
-
return
|
|
581
|
+
return w(e, x.PAREN_R, r, r + 1);
|
|
583
582
|
case 46:
|
|
584
583
|
if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
|
|
585
|
-
return
|
|
584
|
+
return w(e, x.SPREAD, r, r + 3);
|
|
586
585
|
break;
|
|
587
586
|
case 58:
|
|
588
|
-
return
|
|
587
|
+
return w(e, x.COLON, r, r + 1);
|
|
589
588
|
case 61:
|
|
590
|
-
return
|
|
589
|
+
return w(e, x.EQUALS, r, r + 1);
|
|
591
590
|
case 64:
|
|
592
|
-
return
|
|
591
|
+
return w(e, x.AT, r, r + 1);
|
|
593
592
|
case 91:
|
|
594
|
-
return
|
|
593
|
+
return w(e, x.BRACKET_L, r, r + 1);
|
|
595
594
|
case 93:
|
|
596
|
-
return
|
|
595
|
+
return w(e, x.BRACKET_R, r, r + 1);
|
|
597
596
|
case 123:
|
|
598
|
-
return
|
|
597
|
+
return w(e, x.BRACE_L, r, r + 1);
|
|
599
598
|
case 124:
|
|
600
|
-
return
|
|
599
|
+
return w(e, x.PIPE, r, r + 1);
|
|
601
600
|
case 125:
|
|
602
|
-
return
|
|
601
|
+
return w(e, x.BRACE_R, r, r + 1);
|
|
603
602
|
// StringValue
|
|
604
603
|
case 34:
|
|
605
|
-
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ?
|
|
604
|
+
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ws(e, r) : Gs(e, r);
|
|
606
605
|
}
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
606
|
+
if (te(o) || o === 45)
|
|
607
|
+
return Ms(e, r, o);
|
|
609
608
|
if (Lt(o))
|
|
610
|
-
return
|
|
609
|
+
return Xs(e, r);
|
|
611
610
|
throw P(
|
|
612
611
|
e.source,
|
|
613
612
|
r,
|
|
614
613
|
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : W(o) || he(s, r) ? `Unexpected character: ${_(e, r)}.` : `Invalid character: ${_(e, r)}.`
|
|
615
614
|
);
|
|
616
615
|
}
|
|
617
|
-
return
|
|
616
|
+
return w(e, x.EOF, a, a);
|
|
618
617
|
}
|
|
619
|
-
function
|
|
618
|
+
function Us(e, t) {
|
|
620
619
|
const s = e.source.body, a = s.length;
|
|
621
620
|
let r = t + 1;
|
|
622
621
|
for (; r < a; ) {
|
|
@@ -630,7 +629,7 @@ function Gs(e, t) {
|
|
|
630
629
|
else
|
|
631
630
|
break;
|
|
632
631
|
}
|
|
633
|
-
return
|
|
632
|
+
return w(
|
|
634
633
|
e,
|
|
635
634
|
x.COMMENT,
|
|
636
635
|
t,
|
|
@@ -638,11 +637,11 @@ function Gs(e, t) {
|
|
|
638
637
|
s.slice(t + 1, r)
|
|
639
638
|
);
|
|
640
639
|
}
|
|
641
|
-
function
|
|
640
|
+
function Ms(e, t, s) {
|
|
642
641
|
const a = e.source.body;
|
|
643
642
|
let r = t, o = s, i = !1;
|
|
644
643
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
645
|
-
if (o = a.charCodeAt(++r),
|
|
644
|
+
if (o = a.charCodeAt(++r), te(o))
|
|
646
645
|
throw P(
|
|
647
646
|
e.source,
|
|
648
647
|
r,
|
|
@@ -662,7 +661,7 @@ function Hs(e, t, s) {
|
|
|
662
661
|
r
|
|
663
662
|
)}.`
|
|
664
663
|
);
|
|
665
|
-
return
|
|
664
|
+
return w(
|
|
666
665
|
e,
|
|
667
666
|
i ? x.FLOAT : x.INT,
|
|
668
667
|
t,
|
|
@@ -671,7 +670,7 @@ function Hs(e, t, s) {
|
|
|
671
670
|
);
|
|
672
671
|
}
|
|
673
672
|
function Ce(e, t, s) {
|
|
674
|
-
if (!
|
|
673
|
+
if (!te(s))
|
|
675
674
|
throw P(
|
|
676
675
|
e.source,
|
|
677
676
|
t,
|
|
@@ -682,20 +681,20 @@ function Ce(e, t, s) {
|
|
|
682
681
|
);
|
|
683
682
|
const a = e.source.body;
|
|
684
683
|
let r = t + 1;
|
|
685
|
-
for (;
|
|
684
|
+
for (; te(a.charCodeAt(r)); )
|
|
686
685
|
++r;
|
|
687
686
|
return r;
|
|
688
687
|
}
|
|
689
|
-
function
|
|
688
|
+
function Gs(e, t) {
|
|
690
689
|
const s = e.source.body, a = s.length;
|
|
691
690
|
let r = t + 1, o = r, i = "";
|
|
692
691
|
for (; r < a; ) {
|
|
693
692
|
const l = s.charCodeAt(r);
|
|
694
693
|
if (l === 34)
|
|
695
|
-
return i += s.slice(o, r),
|
|
694
|
+
return i += s.slice(o, r), w(e, x.STRING, t, r + 1, i);
|
|
696
695
|
if (l === 92) {
|
|
697
696
|
i += s.slice(o, r);
|
|
698
|
-
const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ?
|
|
697
|
+
const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Hs(e, r) : Qs(e, r) : Js(e, r);
|
|
699
698
|
i += c.value, r += c.size, o = r;
|
|
700
699
|
continue;
|
|
701
700
|
}
|
|
@@ -717,7 +716,7 @@ function Qs(e, t) {
|
|
|
717
716
|
}
|
|
718
717
|
throw P(e.source, r, "Unterminated string.");
|
|
719
718
|
}
|
|
720
|
-
function
|
|
719
|
+
function Hs(e, t) {
|
|
721
720
|
const s = e.source.body;
|
|
722
721
|
let a = 0, r = 3;
|
|
723
722
|
for (; r < 12; ) {
|
|
@@ -742,7 +741,7 @@ function Js(e, t) {
|
|
|
742
741
|
)}".`
|
|
743
742
|
);
|
|
744
743
|
}
|
|
745
|
-
function
|
|
744
|
+
function Qs(e, t) {
|
|
746
745
|
const s = e.source.body, a = dt(s, t + 2);
|
|
747
746
|
if (W(a))
|
|
748
747
|
return {
|
|
@@ -769,7 +768,7 @@ function dt(e, t) {
|
|
|
769
768
|
function Y(e) {
|
|
770
769
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
771
770
|
}
|
|
772
|
-
function
|
|
771
|
+
function Js(e, t) {
|
|
773
772
|
const s = e.source.body;
|
|
774
773
|
switch (s.charCodeAt(t + 1)) {
|
|
775
774
|
case 34:
|
|
@@ -823,7 +822,7 @@ function Xs(e, t) {
|
|
|
823
822
|
)}".`
|
|
824
823
|
);
|
|
825
824
|
}
|
|
826
|
-
function
|
|
825
|
+
function Ws(e, t) {
|
|
827
826
|
const s = e.source.body, a = s.length;
|
|
828
827
|
let r = e.lineStart, o = t + 3, i = o, l = "";
|
|
829
828
|
const c = [];
|
|
@@ -831,13 +830,13 @@ function Zs(e, t) {
|
|
|
831
830
|
const u = s.charCodeAt(o);
|
|
832
831
|
if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
|
|
833
832
|
l += s.slice(i, o), c.push(l);
|
|
834
|
-
const d =
|
|
833
|
+
const d = w(
|
|
835
834
|
e,
|
|
836
835
|
x.BLOCK_STRING,
|
|
837
836
|
t,
|
|
838
837
|
o + 3,
|
|
839
838
|
// Return a string of the lines joined with U+000A.
|
|
840
|
-
|
|
839
|
+
Fs(c).join(`
|
|
841
840
|
`)
|
|
842
841
|
);
|
|
843
842
|
return e.line += c.length - 1, e.lineStart = r, d;
|
|
@@ -866,17 +865,17 @@ function Zs(e, t) {
|
|
|
866
865
|
}
|
|
867
866
|
throw P(e.source, o, "Unterminated string.");
|
|
868
867
|
}
|
|
869
|
-
function
|
|
868
|
+
function Xs(e, t) {
|
|
870
869
|
const s = e.source.body, a = s.length;
|
|
871
870
|
let r = t + 1;
|
|
872
871
|
for (; r < a; ) {
|
|
873
872
|
const o = s.charCodeAt(r);
|
|
874
|
-
if (
|
|
873
|
+
if (Ds(o))
|
|
875
874
|
++r;
|
|
876
875
|
else
|
|
877
876
|
break;
|
|
878
877
|
}
|
|
879
|
-
return
|
|
878
|
+
return w(
|
|
880
879
|
e,
|
|
881
880
|
x.NAME,
|
|
882
881
|
t,
|
|
@@ -884,7 +883,7 @@ function Ys(e, t) {
|
|
|
884
883
|
s.slice(t, r)
|
|
885
884
|
);
|
|
886
885
|
}
|
|
887
|
-
const
|
|
886
|
+
const Zs = 10, Rt = 2;
|
|
888
887
|
function kt(e) {
|
|
889
888
|
return fe(e, []);
|
|
890
889
|
}
|
|
@@ -895,45 +894,45 @@ function fe(e, t) {
|
|
|
895
894
|
case "function":
|
|
896
895
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
897
896
|
case "object":
|
|
898
|
-
return
|
|
897
|
+
return Ys(e, t);
|
|
899
898
|
default:
|
|
900
899
|
return String(e);
|
|
901
900
|
}
|
|
902
901
|
}
|
|
903
|
-
function
|
|
902
|
+
function Ys(e, t) {
|
|
904
903
|
if (e === null)
|
|
905
904
|
return "null";
|
|
906
905
|
if (t.includes(e))
|
|
907
906
|
return "[Circular]";
|
|
908
907
|
const s = [...t, e];
|
|
909
|
-
if (
|
|
908
|
+
if (Ks(e)) {
|
|
910
909
|
const a = e.toJSON();
|
|
911
910
|
if (a !== e)
|
|
912
911
|
return typeof a == "string" ? a : fe(a, s);
|
|
913
912
|
} else if (Array.isArray(e))
|
|
914
|
-
return
|
|
915
|
-
return
|
|
913
|
+
return tr(e, s);
|
|
914
|
+
return er(e, s);
|
|
916
915
|
}
|
|
917
|
-
function
|
|
916
|
+
function Ks(e) {
|
|
918
917
|
return typeof e.toJSON == "function";
|
|
919
918
|
}
|
|
920
|
-
function
|
|
919
|
+
function er(e, t) {
|
|
921
920
|
const s = Object.entries(e);
|
|
922
|
-
return s.length === 0 ? "{}" : t.length > Rt ? "[" +
|
|
921
|
+
return s.length === 0 ? "{}" : t.length > Rt ? "[" + nr(e) + "]" : "{ " + s.map(
|
|
923
922
|
([r, o]) => r + ": " + fe(o, t)
|
|
924
923
|
).join(", ") + " }";
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function tr(e, t) {
|
|
927
926
|
if (e.length === 0)
|
|
928
927
|
return "[]";
|
|
929
928
|
if (t.length > Rt)
|
|
930
929
|
return "[Array]";
|
|
931
|
-
const s = Math.min(
|
|
930
|
+
const s = Math.min(Zs, e.length), a = e.length - s, r = [];
|
|
932
931
|
for (let o = 0; o < s; ++o)
|
|
933
932
|
r.push(fe(e[o], t));
|
|
934
933
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
935
934
|
}
|
|
936
|
-
function
|
|
935
|
+
function nr(e) {
|
|
937
936
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
938
937
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
939
938
|
const s = e.constructor.name;
|
|
@@ -942,11 +941,11 @@ function rr(e) {
|
|
|
942
941
|
}
|
|
943
942
|
return t;
|
|
944
943
|
}
|
|
945
|
-
const
|
|
946
|
-
process.env.NODE_ENV === "production",
|
|
944
|
+
const sr = globalThis.process && // eslint-disable-next-line no-undef
|
|
945
|
+
process.env.NODE_ENV === "production", rr = (
|
|
947
946
|
/* c8 ignore next 6 */
|
|
948
947
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
949
|
-
|
|
948
|
+
sr ? function(t, s) {
|
|
950
949
|
return t instanceof s;
|
|
951
950
|
} : function(t, s) {
|
|
952
951
|
if (t instanceof s)
|
|
@@ -993,17 +992,17 @@ class It {
|
|
|
993
992
|
return "Source";
|
|
994
993
|
}
|
|
995
994
|
}
|
|
996
|
-
function
|
|
997
|
-
return
|
|
995
|
+
function ar(e) {
|
|
996
|
+
return rr(e, It);
|
|
998
997
|
}
|
|
999
|
-
function
|
|
1000
|
-
const t =
|
|
998
|
+
function or(e) {
|
|
999
|
+
const t = ar(e) ? e : new It(e), s = t.body, a = new Vs(t);
|
|
1001
1000
|
let r = "", o = !1;
|
|
1002
1001
|
for (; a.advance().kind !== x.EOF; ) {
|
|
1003
|
-
const i = a.token, l = i.kind, c = !
|
|
1002
|
+
const i = a.token, l = i.kind, c = !Bs(i.kind);
|
|
1004
1003
|
o && (c || i.kind === x.SPREAD) && (r += " ");
|
|
1005
1004
|
const u = s.slice(i.start, i.end);
|
|
1006
|
-
l === x.BLOCK_STRING ? r +=
|
|
1005
|
+
l === x.BLOCK_STRING ? r += qs(i.value, {
|
|
1007
1006
|
minimize: !0
|
|
1008
1007
|
}) : r += u, o = c;
|
|
1009
1008
|
}
|
|
@@ -1011,17 +1010,17 @@ function cr(e) {
|
|
|
1011
1010
|
}
|
|
1012
1011
|
const Dt = xt(
|
|
1013
1012
|
void 0
|
|
1014
|
-
),
|
|
1013
|
+
), qa = ({
|
|
1015
1014
|
children: e,
|
|
1016
1015
|
client: t
|
|
1017
|
-
}) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }),
|
|
1016
|
+
}) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
|
|
1018
1017
|
queryFn: () => e.fetch(t, s),
|
|
1019
|
-
queryKey: [
|
|
1020
|
-
}),
|
|
1021
|
-
const s =
|
|
1018
|
+
queryKey: [or(t.toString()), s]
|
|
1019
|
+
}), ir = (e, ...[t]) => {
|
|
1020
|
+
const s = Mn(Dt);
|
|
1022
1021
|
if (s === void 0)
|
|
1023
1022
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1024
|
-
return
|
|
1023
|
+
return Ft(s, e, ...t === void 0 ? [] : [t]);
|
|
1025
1024
|
};
|
|
1026
1025
|
class G extends String {
|
|
1027
1026
|
__apiType;
|
|
@@ -1034,7 +1033,7 @@ class G extends String {
|
|
|
1034
1033
|
return this.value;
|
|
1035
1034
|
}
|
|
1036
1035
|
}
|
|
1037
|
-
const
|
|
1036
|
+
const cr = new G(
|
|
1038
1037
|
`
|
|
1039
1038
|
fragment OperationsFragment on OperationItem {
|
|
1040
1039
|
slug
|
|
@@ -1106,7 +1105,7 @@ const dr = new G(
|
|
|
1106
1105
|
}
|
|
1107
1106
|
`,
|
|
1108
1107
|
{ fragmentName: "OperationsFragment" }
|
|
1109
|
-
),
|
|
1108
|
+
), lr = new G(`
|
|
1110
1109
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1111
1110
|
schema(input: $input, type: $type) {
|
|
1112
1111
|
url
|
|
@@ -1115,13 +1114,13 @@ const dr = new G(
|
|
|
1115
1114
|
}
|
|
1116
1115
|
}
|
|
1117
1116
|
}
|
|
1118
|
-
`),
|
|
1117
|
+
`), dr = new G(`
|
|
1119
1118
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1120
1119
|
schema(input: $input, type: $type) {
|
|
1121
1120
|
openapi
|
|
1122
1121
|
}
|
|
1123
1122
|
}
|
|
1124
|
-
`),
|
|
1123
|
+
`), ur = new G(`
|
|
1125
1124
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1126
1125
|
schema(input: $input, type: $type) {
|
|
1127
1126
|
servers {
|
|
@@ -1220,7 +1219,7 @@ const dr = new G(
|
|
|
1220
1219
|
schema
|
|
1221
1220
|
}
|
|
1222
1221
|
}
|
|
1223
|
-
}`),
|
|
1222
|
+
}`), mr = new G(`
|
|
1224
1223
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1225
1224
|
schema(input: $input, type: $type) {
|
|
1226
1225
|
title
|
|
@@ -1235,7 +1234,7 @@ const dr = new G(
|
|
|
1235
1234
|
}
|
|
1236
1235
|
}
|
|
1237
1236
|
}
|
|
1238
|
-
`),
|
|
1237
|
+
`), pr = new G(`
|
|
1239
1238
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1240
1239
|
schema(input: $input, type: $type) {
|
|
1241
1240
|
url
|
|
@@ -1244,7 +1243,7 @@ const dr = new G(
|
|
|
1244
1243
|
}
|
|
1245
1244
|
}
|
|
1246
1245
|
}
|
|
1247
|
-
`),
|
|
1246
|
+
`), hr = new G(`
|
|
1248
1247
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1249
1248
|
schema(input: $input, type: $type) {
|
|
1250
1249
|
extensions
|
|
@@ -1267,20 +1266,20 @@ const dr = new G(
|
|
|
1267
1266
|
}
|
|
1268
1267
|
}
|
|
1269
1268
|
}
|
|
1270
|
-
`),
|
|
1271
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1272
|
-
"\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":
|
|
1273
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1274
|
-
"\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":
|
|
1275
|
-
"\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":
|
|
1276
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1277
|
-
"\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":
|
|
1269
|
+
`), fr = {
|
|
1270
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": lr,
|
|
1271
|
+
"\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": cr,
|
|
1272
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": dr,
|
|
1273
|
+
"\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": ur,
|
|
1274
|
+
"\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": mr,
|
|
1275
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": pr,
|
|
1276
|
+
"\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": hr
|
|
1278
1277
|
};
|
|
1279
|
-
function
|
|
1280
|
-
return
|
|
1278
|
+
function gr(e) {
|
|
1279
|
+
return fr[e] ?? {};
|
|
1281
1280
|
}
|
|
1282
|
-
const
|
|
1283
|
-
function
|
|
1281
|
+
const F = Fe.Root, zt = Fe.CollapsibleTrigger, z = Fe.CollapsibleContent;
|
|
1282
|
+
function xr() {
|
|
1284
1283
|
const t = navigator.userAgent.toLowerCase();
|
|
1285
1284
|
if (t.indexOf("win") !== -1)
|
|
1286
1285
|
return "windows";
|
|
@@ -1291,10 +1290,10 @@ function vr() {
|
|
|
1291
1290
|
if (t.indexOf("x11") !== -1)
|
|
1292
1291
|
return "unix";
|
|
1293
1292
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return
|
|
1293
|
+
function yr() {
|
|
1294
|
+
return xr() === "apple";
|
|
1296
1295
|
}
|
|
1297
|
-
const
|
|
1296
|
+
const vr = {
|
|
1298
1297
|
other: {
|
|
1299
1298
|
alt: "Alt",
|
|
1300
1299
|
meta: "Ctrl",
|
|
@@ -1309,7 +1308,7 @@ const jr = {
|
|
|
1309
1308
|
shift: "⇧",
|
|
1310
1309
|
option: "⌥"
|
|
1311
1310
|
}
|
|
1312
|
-
},
|
|
1311
|
+
}, br = (e, t) => {
|
|
1313
1312
|
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = O(t);
|
|
1314
1313
|
return I(() => {
|
|
1315
1314
|
c.current = t;
|
|
@@ -1323,10 +1322,10 @@ const jr = {
|
|
|
1323
1322
|
}, [l, a, r, o, i]), {
|
|
1324
1323
|
trigger: () => c.current(),
|
|
1325
1324
|
label: s.map(
|
|
1326
|
-
(u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ?
|
|
1325
|
+
(u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? vr[yr() ? "apple" : "other"][u] : u
|
|
1327
1326
|
)
|
|
1328
1327
|
};
|
|
1329
|
-
},
|
|
1328
|
+
}, jr = $e()(
|
|
1330
1329
|
Ee(
|
|
1331
1330
|
(e) => ({
|
|
1332
1331
|
selectedServer: void 0,
|
|
@@ -1334,8 +1333,8 @@ const jr = {
|
|
|
1334
1333
|
}),
|
|
1335
1334
|
{ name: "zudoku-selected-server" }
|
|
1336
1335
|
)
|
|
1337
|
-
),
|
|
1338
|
-
const { selectedServer: t, setSelectedServer: s } =
|
|
1336
|
+
), Cr = (e) => {
|
|
1337
|
+
const { selectedServer: t, setSelectedServer: s } = jr();
|
|
1339
1338
|
return { selectedServer: yt(
|
|
1340
1339
|
() => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
|
|
1341
1340
|
[t, e]
|
|
@@ -1367,7 +1366,7 @@ const U = ({
|
|
|
1367
1366
|
children: [
|
|
1368
1367
|
e,
|
|
1369
1368
|
/* @__PURE__ */ n.jsx(
|
|
1370
|
-
|
|
1369
|
+
zt,
|
|
1371
1370
|
{
|
|
1372
1371
|
className: C(
|
|
1373
1372
|
"flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
|
|
@@ -1387,11 +1386,11 @@ const U = ({
|
|
|
1387
1386
|
), M = ({
|
|
1388
1387
|
children: e,
|
|
1389
1388
|
className: t
|
|
1390
|
-
}) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }),
|
|
1389
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), wr = ({
|
|
1391
1390
|
examples: e,
|
|
1392
1391
|
onSelect: t
|
|
1393
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
1394
|
-
/* @__PURE__ */ n.jsx(
|
|
1392
|
+
}) => /* @__PURE__ */ n.jsxs(ls, { children: [
|
|
1393
|
+
/* @__PURE__ */ n.jsx(ds, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
1395
1394
|
E,
|
|
1396
1395
|
{
|
|
1397
1396
|
variant: "ghost",
|
|
@@ -1403,11 +1402,11 @@ const U = ({
|
|
|
1403
1402
|
]
|
|
1404
1403
|
}
|
|
1405
1404
|
) }),
|
|
1406
|
-
/* @__PURE__ */ n.jsx(
|
|
1407
|
-
/* @__PURE__ */ n.jsx(
|
|
1408
|
-
/* @__PURE__ */ n.jsx(
|
|
1409
|
-
/* @__PURE__ */ n.jsx(
|
|
1410
|
-
|
|
1405
|
+
/* @__PURE__ */ n.jsx(us, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
1406
|
+
/* @__PURE__ */ n.jsx(ms, { children: s.mediaType }),
|
|
1407
|
+
/* @__PURE__ */ n.jsx(ps, {}),
|
|
1408
|
+
/* @__PURE__ */ n.jsx(hs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
|
|
1409
|
+
fs,
|
|
1411
1410
|
{
|
|
1412
1411
|
onSelect: () => t(a, s.mediaType),
|
|
1413
1412
|
children: /* @__PURE__ */ n.jsx(
|
|
@@ -1422,14 +1421,14 @@ const U = ({
|
|
|
1422
1421
|
a.name
|
|
1423
1422
|
)) })
|
|
1424
1423
|
] }, s.mediaType)) })
|
|
1425
|
-
] }),
|
|
1426
|
-
const { register: t, setValue: s, watch: a } =
|
|
1427
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1424
|
+
] }), Nr = ({ content: e }) => {
|
|
1425
|
+
const { register: t, setValue: s, watch: a } = ne(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
|
|
1426
|
+
return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
1428
1427
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
1429
1428
|
/* @__PURE__ */ n.jsx(hn, { size: 16 }),
|
|
1430
1429
|
/* @__PURE__ */ n.jsx(M, { children: "Body" }),
|
|
1431
1430
|
e && r.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1432
|
-
|
|
1431
|
+
wr,
|
|
1433
1432
|
{
|
|
1434
1433
|
examples: e,
|
|
1435
1434
|
onSelect: (i, l) => {
|
|
@@ -1445,7 +1444,7 @@ const U = ({
|
|
|
1445
1444
|
}
|
|
1446
1445
|
) : /* @__PURE__ */ n.jsx("div", {})
|
|
1447
1446
|
] }),
|
|
1448
|
-
/* @__PURE__ */ n.jsx(
|
|
1447
|
+
/* @__PURE__ */ n.jsx(z, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
|
|
1449
1448
|
qt,
|
|
1450
1449
|
{
|
|
1451
1450
|
...t("body"),
|
|
@@ -1468,12 +1467,12 @@ const U = ({
|
|
|
1468
1467
|
r.searchParams.set(o.name, o.value);
|
|
1469
1468
|
}), r;
|
|
1470
1469
|
};
|
|
1471
|
-
function
|
|
1470
|
+
function Sr(e) {
|
|
1472
1471
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1473
1472
|
e
|
|
1474
1473
|
);
|
|
1475
1474
|
}
|
|
1476
|
-
const
|
|
1475
|
+
const Tr = (e, t) => {
|
|
1477
1476
|
const s = e.find(
|
|
1478
1477
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1479
1478
|
)?.[1];
|
|
@@ -1510,7 +1509,7 @@ const Or = (e, t) => {
|
|
|
1510
1509
|
}
|
|
1511
1510
|
));
|
|
1512
1511
|
ge.displayName = Oe.Root.displayName;
|
|
1513
|
-
const
|
|
1512
|
+
const Ar = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(le.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1514
1513
|
le.Content,
|
|
1515
1514
|
{
|
|
1516
1515
|
ref: r,
|
|
@@ -1524,7 +1523,7 @@ const Pr = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", side
|
|
|
1524
1523
|
}
|
|
1525
1524
|
) }));
|
|
1526
1525
|
Vt.displayName = le.Content.displayName;
|
|
1527
|
-
const
|
|
1526
|
+
const Or = ({
|
|
1528
1527
|
value: e,
|
|
1529
1528
|
options: t,
|
|
1530
1529
|
onChange: s,
|
|
@@ -1533,10 +1532,10 @@ const Lr = ({
|
|
|
1533
1532
|
onEnterPress: o,
|
|
1534
1533
|
ref: i
|
|
1535
1534
|
}) => {
|
|
1536
|
-
const [l, c] = $(!1), [u, d] = $(!1), h =
|
|
1537
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1538
|
-
/* @__PURE__ */ n.jsx(
|
|
1539
|
-
|
|
1535
|
+
const [l, c] = $(!1), [u, d] = $(!1), h = xs((m) => m.filtered.count), g = O(null);
|
|
1536
|
+
return /* @__PURE__ */ n.jsxs(Ar, { open: l, children: [
|
|
1537
|
+
/* @__PURE__ */ n.jsx(gs, { children: /* @__PURE__ */ n.jsx(
|
|
1538
|
+
vs,
|
|
1540
1539
|
{
|
|
1541
1540
|
autoComplete: "off",
|
|
1542
1541
|
ref: (m) => {
|
|
@@ -1572,8 +1571,8 @@ const Lr = ({
|
|
|
1572
1571
|
onTouchMove: (m) => {
|
|
1573
1572
|
m.stopPropagation();
|
|
1574
1573
|
},
|
|
1575
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1576
|
-
|
|
1574
|
+
children: /* @__PURE__ */ n.jsx(bs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
|
|
1575
|
+
js,
|
|
1577
1576
|
{
|
|
1578
1577
|
value: m,
|
|
1579
1578
|
onSelect: (v) => {
|
|
@@ -1587,9 +1586,9 @@ const Lr = ({
|
|
|
1587
1586
|
}
|
|
1588
1587
|
)
|
|
1589
1588
|
] });
|
|
1590
|
-
}, ue = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(
|
|
1589
|
+
}, ue = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(ys, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(Or, { ...t }) }), se = (e, t) => {
|
|
1591
1590
|
const s = q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1592
|
-
const l = r ?
|
|
1591
|
+
const l = r ? Cs : e;
|
|
1593
1592
|
return q.createElement(l, {
|
|
1594
1593
|
...o,
|
|
1595
1594
|
ref: i,
|
|
@@ -1597,13 +1596,13 @@ const Lr = ({
|
|
|
1597
1596
|
});
|
|
1598
1597
|
});
|
|
1599
1598
|
return s.displayName = `VariantComponent(${e})`, s;
|
|
1600
|
-
}, qe =
|
|
1599
|
+
}, qe = se(
|
|
1601
1600
|
"div",
|
|
1602
1601
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
|
|
1603
|
-
), me =
|
|
1602
|
+
), me = se(
|
|
1604
1603
|
"div",
|
|
1605
1604
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1606
|
-
),
|
|
1605
|
+
), Pr = Object.freeze([
|
|
1607
1606
|
"Accept",
|
|
1608
1607
|
"Accept-Encoding",
|
|
1609
1608
|
"Accept-Language",
|
|
@@ -1630,7 +1629,7 @@ const Lr = ({
|
|
|
1630
1629
|
"Set-Cookie",
|
|
1631
1630
|
"User-Agent",
|
|
1632
1631
|
"X-Requested-With"
|
|
1633
|
-
]),
|
|
1632
|
+
]), Lr = ({
|
|
1634
1633
|
control: e,
|
|
1635
1634
|
schemaHeaders: t,
|
|
1636
1635
|
lockedHeaders: s
|
|
@@ -1638,7 +1637,7 @@ const Lr = ({
|
|
|
1638
1637
|
const { fields: a, append: r, remove: o } = De({
|
|
1639
1638
|
control: e,
|
|
1640
1639
|
name: "headers"
|
|
1641
|
-
}), { setValue: i, watch: l, formState: c } =
|
|
1640
|
+
}), { setValue: i, watch: l, formState: c } = ne(), u = O([]), d = O([]), h = l("headers"), g = vt(
|
|
1642
1641
|
(f) => {
|
|
1643
1642
|
f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
|
|
1644
1643
|
},
|
|
@@ -1651,19 +1650,19 @@ const Lr = ({
|
|
|
1651
1650
|
u.current[f]?.focus();
|
|
1652
1651
|
}, v = (f) => {
|
|
1653
1652
|
g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
|
|
1654
|
-
}, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((
|
|
1653
|
+
}, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((N) => N.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), T = s?.map((f) => ({
|
|
1655
1654
|
name: f,
|
|
1656
1655
|
id: `locked-${f}`,
|
|
1657
1656
|
value: "••••••••••",
|
|
1658
1657
|
active: !0,
|
|
1659
1658
|
locked: !0
|
|
1660
1659
|
})) ?? [];
|
|
1661
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1660
|
+
return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
1662
1661
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
1663
1662
|
/* @__PURE__ */ n.jsx(gn, { size: 16 }),
|
|
1664
1663
|
/* @__PURE__ */ n.jsx(M, { children: "Headers" }),
|
|
1665
1664
|
/* @__PURE__ */ n.jsxs(
|
|
1666
|
-
|
|
1665
|
+
ce,
|
|
1667
1666
|
{
|
|
1668
1667
|
onClick: g,
|
|
1669
1668
|
type: "button",
|
|
@@ -1677,7 +1676,7 @@ const Lr = ({
|
|
|
1677
1676
|
}
|
|
1678
1677
|
)
|
|
1679
1678
|
] }),
|
|
1680
|
-
/* @__PURE__ */ n.jsx(
|
|
1679
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
|
|
1681
1680
|
T.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
|
|
1682
1681
|
/* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
1683
1682
|
me,
|
|
@@ -1710,7 +1709,7 @@ const Lr = ({
|
|
|
1710
1709
|
] }, f.id)),
|
|
1711
1710
|
a.map((f, j) => {
|
|
1712
1711
|
const L = t.find(
|
|
1713
|
-
(
|
|
1712
|
+
(N) => N.name === h.at(j)?.name
|
|
1714
1713
|
);
|
|
1715
1714
|
return /* @__PURE__ */ n.jsxs(
|
|
1716
1715
|
me,
|
|
@@ -1725,7 +1724,7 @@ const Lr = ({
|
|
|
1725
1724
|
{
|
|
1726
1725
|
control: e,
|
|
1727
1726
|
name: `headers.${j}.active`,
|
|
1728
|
-
render: ({ field:
|
|
1727
|
+
render: ({ field: N }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1729
1728
|
/* @__PURE__ */ n.jsx(
|
|
1730
1729
|
ge,
|
|
1731
1730
|
{
|
|
@@ -1733,9 +1732,9 @@ const Lr = ({
|
|
|
1733
1732
|
className: C(
|
|
1734
1733
|
b.includes(j) && "hidden"
|
|
1735
1734
|
),
|
|
1736
|
-
checked:
|
|
1735
|
+
checked: N.value,
|
|
1737
1736
|
onCheckedChange: (k) => {
|
|
1738
|
-
|
|
1737
|
+
N.onChange(k);
|
|
1739
1738
|
}
|
|
1740
1739
|
}
|
|
1741
1740
|
),
|
|
@@ -1768,16 +1767,16 @@ const Lr = ({
|
|
|
1768
1767
|
{
|
|
1769
1768
|
control: e,
|
|
1770
1769
|
name: `headers.${j}.name`,
|
|
1771
|
-
render: ({ field:
|
|
1770
|
+
render: ({ field: N }) => /* @__PURE__ */ n.jsx(
|
|
1772
1771
|
ue,
|
|
1773
1772
|
{
|
|
1774
|
-
...
|
|
1773
|
+
...N,
|
|
1775
1774
|
placeholder: "Name",
|
|
1776
1775
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
|
|
1777
|
-
options: [...y,
|
|
1776
|
+
options: [...y, ...Pr],
|
|
1778
1777
|
onEnterPress: () => m(j),
|
|
1779
1778
|
onChange: (k) => {
|
|
1780
|
-
|
|
1779
|
+
N.onChange(k), i(`headers.${j}.active`, !0);
|
|
1781
1780
|
},
|
|
1782
1781
|
ref: (k) => {
|
|
1783
1782
|
d.current[j] = k;
|
|
@@ -1792,14 +1791,14 @@ const Lr = ({
|
|
|
1792
1791
|
{
|
|
1793
1792
|
control: e,
|
|
1794
1793
|
name: `headers.${j}.value`,
|
|
1795
|
-
render: ({ field:
|
|
1794
|
+
render: ({ field: N }) => L?.enum && L.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1796
1795
|
ue,
|
|
1797
1796
|
{
|
|
1798
1797
|
shouldFilter: !1,
|
|
1799
|
-
value:
|
|
1798
|
+
value: N.value,
|
|
1800
1799
|
options: L.enum ?? [],
|
|
1801
1800
|
onChange: (A) => {
|
|
1802
|
-
|
|
1801
|
+
N.onChange(A), i(`headers.${j}.active`, !0);
|
|
1803
1802
|
},
|
|
1804
1803
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
1805
1804
|
}
|
|
@@ -1809,7 +1808,7 @@ const Lr = ({
|
|
|
1809
1808
|
placeholder: "Value",
|
|
1810
1809
|
className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
|
|
1811
1810
|
autoComplete: "off",
|
|
1812
|
-
...
|
|
1811
|
+
...N,
|
|
1813
1812
|
ref: (A) => {
|
|
1814
1813
|
u.current[j] = A;
|
|
1815
1814
|
},
|
|
@@ -1821,7 +1820,7 @@ const Lr = ({
|
|
|
1821
1820
|
}
|
|
1822
1821
|
),
|
|
1823
1822
|
/* @__PURE__ */ n.jsx(
|
|
1824
|
-
|
|
1823
|
+
ce,
|
|
1825
1824
|
{
|
|
1826
1825
|
size: "icon-xs",
|
|
1827
1826
|
variant: "ghost",
|
|
@@ -1839,28 +1838,28 @@ const Lr = ({
|
|
|
1839
1838
|
})
|
|
1840
1839
|
] }) }) }) })
|
|
1841
1840
|
] });
|
|
1842
|
-
},
|
|
1841
|
+
}, $r = Ns(
|
|
1843
1842
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1844
1843
|
), Ve = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1845
1844
|
Tt.Root,
|
|
1846
1845
|
{
|
|
1847
1846
|
ref: s,
|
|
1848
|
-
className: C(
|
|
1847
|
+
className: C($r(), e),
|
|
1849
1848
|
...t
|
|
1850
1849
|
}
|
|
1851
1850
|
));
|
|
1852
1851
|
Ve.displayName = Tt.Root.displayName;
|
|
1853
1852
|
const Bt = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1854
|
-
|
|
1853
|
+
ee.Root,
|
|
1855
1854
|
{
|
|
1856
1855
|
className: C("grid gap-2", e),
|
|
1857
1856
|
...t,
|
|
1858
1857
|
ref: s
|
|
1859
1858
|
}
|
|
1860
1859
|
));
|
|
1861
|
-
Bt.displayName =
|
|
1860
|
+
Bt.displayName = ee.Root.displayName;
|
|
1862
1861
|
const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1863
|
-
|
|
1862
|
+
ee.Item,
|
|
1864
1863
|
{
|
|
1865
1864
|
ref: s,
|
|
1866
1865
|
className: C(
|
|
@@ -1868,10 +1867,10 @@ const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
|
1868
1867
|
e
|
|
1869
1868
|
),
|
|
1870
1869
|
...t,
|
|
1871
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1870
|
+
children: /* @__PURE__ */ n.jsx(ee.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
1872
1871
|
}
|
|
1873
1872
|
));
|
|
1874
|
-
_t.displayName =
|
|
1873
|
+
_t.displayName = ee.Item.displayName;
|
|
1875
1874
|
const Ut = ({
|
|
1876
1875
|
identities: e,
|
|
1877
1876
|
setValue: t,
|
|
@@ -1898,7 +1897,7 @@ const Ut = ({
|
|
|
1898
1897
|
)
|
|
1899
1898
|
)
|
|
1900
1899
|
}
|
|
1901
|
-
) }),
|
|
1900
|
+
) }), Er = ({
|
|
1902
1901
|
onSubmit: e,
|
|
1903
1902
|
identities: t,
|
|
1904
1903
|
open: s,
|
|
@@ -1908,7 +1907,7 @@ const Ut = ({
|
|
|
1908
1907
|
return /* @__PURE__ */ n.jsx(Re, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
|
|
1909
1908
|
/* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
|
|
1910
1909
|
/* @__PURE__ */ n.jsx(bt, { children: "Please select an identity for this request." }),
|
|
1911
|
-
/* @__PURE__ */ n.jsx(
|
|
1910
|
+
/* @__PURE__ */ n.jsx(ws, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
|
|
1912
1911
|
Ut,
|
|
1913
1912
|
{
|
|
1914
1913
|
identities: t,
|
|
@@ -1939,13 +1938,13 @@ const Ut = ({
|
|
|
1939
1938
|
)
|
|
1940
1939
|
] })
|
|
1941
1940
|
] }) });
|
|
1942
|
-
},
|
|
1941
|
+
}, we = (e) => Math.abs(
|
|
1943
1942
|
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
1944
|
-
),
|
|
1945
|
-
const s = (3 *
|
|
1943
|
+
), Ne = (e) => e.length > 1 ? Number(e.split("").reduce((t, s) => `${we(t) + we(s)}`)) : we(e), mt = (e, t = {}) => {
|
|
1944
|
+
const s = (3 * Ne(e) + 2 * Ne(e) + Ne(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
|
|
1946
1945
|
return `${s}deg ${a}% ${r}%`;
|
|
1947
|
-
}, Se = "data-linked-param",
|
|
1948
|
-
const { resolvedTheme: t } =
|
|
1946
|
+
}, Se = "data-linked-param", Rr = (e) => {
|
|
1947
|
+
const { resolvedTheme: t } = Ss();
|
|
1949
1948
|
return {
|
|
1950
1949
|
text: mt(
|
|
1951
1950
|
e,
|
|
@@ -1964,7 +1963,7 @@ const Ut = ({
|
|
|
1964
1963
|
children: r,
|
|
1965
1964
|
onClick: o
|
|
1966
1965
|
}) => {
|
|
1967
|
-
const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } =
|
|
1966
|
+
const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Rr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
|
|
1968
1967
|
return I(() => {
|
|
1969
1968
|
if (!l || !i.current) return;
|
|
1970
1969
|
const v = () => {
|
|
@@ -2004,7 +2003,7 @@ const Ut = ({
|
|
|
2004
2003
|
children: r ?? e
|
|
2005
2004
|
}
|
|
2006
2005
|
);
|
|
2007
|
-
},
|
|
2006
|
+
}, kr = ({
|
|
2008
2007
|
control: e,
|
|
2009
2008
|
url: t
|
|
2010
2009
|
}) => {
|
|
@@ -2047,24 +2046,24 @@ const Ut = ({
|
|
|
2047
2046
|
}
|
|
2048
2047
|
) })
|
|
2049
2048
|
] }, r.id)) }) });
|
|
2050
|
-
},
|
|
2049
|
+
}, Ir = se(
|
|
2051
2050
|
"input",
|
|
2052
2051
|
"bg-transparent h-9 font-mono text-xs"
|
|
2053
|
-
),
|
|
2052
|
+
), Dr = ({
|
|
2054
2053
|
control: e,
|
|
2055
2054
|
schemaQueryParams: t
|
|
2056
2055
|
}) => {
|
|
2057
2056
|
const { fields: s, remove: a, append: r } = De({
|
|
2058
2057
|
control: e,
|
|
2059
2058
|
name: "queryParams"
|
|
2060
|
-
}), { setValue: o, getValues: i, watch: l } =
|
|
2059
|
+
}), { setValue: o, getValues: i, watch: l } = ne(), c = l("queryParams");
|
|
2061
2060
|
I(() => {
|
|
2062
2061
|
c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
|
|
2063
2062
|
}, [c, r]);
|
|
2064
2063
|
const u = t.map(
|
|
2065
2064
|
(d) => !!d.isRequired
|
|
2066
2065
|
);
|
|
2067
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2066
|
+
return /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2068
2067
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2069
2068
|
/* @__PURE__ */ n.jsx(bn, { size: 16 }),
|
|
2070
2069
|
/* @__PURE__ */ n.jsx(M, { children: "Query Parameters" }),
|
|
@@ -2088,7 +2087,7 @@ const Ut = ({
|
|
|
2088
2087
|
}
|
|
2089
2088
|
)
|
|
2090
2089
|
] }),
|
|
2091
|
-
/* @__PURE__ */ n.jsx(
|
|
2090
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
|
|
2092
2091
|
const g = t.find(
|
|
2093
2092
|
(m) => m.name === c.at(h)?.name
|
|
2094
2093
|
);
|
|
@@ -2112,7 +2111,7 @@ const Ut = ({
|
|
|
2112
2111
|
D,
|
|
2113
2112
|
{
|
|
2114
2113
|
control: e,
|
|
2115
|
-
render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(
|
|
2114
|
+
render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Ir, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
2116
2115
|
"label",
|
|
2117
2116
|
{
|
|
2118
2117
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -2183,7 +2182,7 @@ const Ut = ({
|
|
|
2183
2182
|
] }, d.id);
|
|
2184
2183
|
}) }) }) })
|
|
2185
2184
|
] });
|
|
2186
|
-
},
|
|
2185
|
+
}, Fr = ({
|
|
2187
2186
|
open: e,
|
|
2188
2187
|
setOpen: t,
|
|
2189
2188
|
onSignUp: s,
|
|
@@ -2198,7 +2197,7 @@ const Ut = ({
|
|
|
2198
2197
|
a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2199
2198
|
] })
|
|
2200
2199
|
] })
|
|
2201
|
-
] }) }),
|
|
2200
|
+
] }) }), zr = $e()(
|
|
2202
2201
|
Ee(
|
|
2203
2202
|
(e, t) => ({
|
|
2204
2203
|
rememberedIdentity: null,
|
|
@@ -2212,7 +2211,7 @@ const Ut = ({
|
|
|
2212
2211
|
storage: gt(() => sessionStorage)
|
|
2213
2212
|
}
|
|
2214
2213
|
)
|
|
2215
|
-
),
|
|
2214
|
+
), qr = ({
|
|
2216
2215
|
path: e,
|
|
2217
2216
|
renderParam: t
|
|
2218
2217
|
}) => {
|
|
@@ -2238,10 +2237,10 @@ const Ut = ({
|
|
|
2238
2237
|
/* @__PURE__ */ n.jsx("wbr", {})
|
|
2239
2238
|
] }, `${a}-${r}`);
|
|
2240
2239
|
});
|
|
2241
|
-
},
|
|
2242
|
-
const { watch: t, setFocus: s } =
|
|
2240
|
+
}, Vr = ({ url: e }) => {
|
|
2241
|
+
const { watch: t, setFocus: s } = ne(), [a] = t(["pathParams"]);
|
|
2243
2242
|
return /* @__PURE__ */ n.jsx(
|
|
2244
|
-
|
|
2243
|
+
qr,
|
|
2245
2244
|
{
|
|
2246
2245
|
path: e,
|
|
2247
2246
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2261,8 +2260,8 @@ const Ut = ({
|
|
|
2261
2260
|
}
|
|
2262
2261
|
}
|
|
2263
2262
|
);
|
|
2264
|
-
},
|
|
2265
|
-
const { watch: e } =
|
|
2263
|
+
}, Br = () => {
|
|
2264
|
+
const { watch: e } = ne(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Z, { children: [
|
|
2266
2265
|
a.name,
|
|
2267
2266
|
"=",
|
|
2268
2267
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2278,7 +2277,7 @@ const Ut = ({
|
|
|
2278
2277
|
return "0 B";
|
|
2279
2278
|
const t = Math.floor(Math.log(e) / Math.log(1e3));
|
|
2280
2279
|
return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
|
|
2281
|
-
},
|
|
2280
|
+
}, _r = ({ status: e }) => {
|
|
2282
2281
|
if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2283
2282
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2284
2283
|
case 2:
|
|
@@ -2290,7 +2289,7 @@ const Ut = ({
|
|
|
2290
2289
|
default:
|
|
2291
2290
|
return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2292
2291
|
}
|
|
2293
|
-
},
|
|
2292
|
+
}, Ur = () => {
|
|
2294
2293
|
const e = O(null), t = O(null), s = O(Date.now()), a = O(null), r = vt(() => {
|
|
2295
2294
|
if (t.current) {
|
|
2296
2295
|
const o = Date.now() - s.current;
|
|
@@ -2298,7 +2297,7 @@ const Ut = ({
|
|
|
2298
2297
|
}
|
|
2299
2298
|
a.current = requestAnimationFrame(r);
|
|
2300
2299
|
}, []);
|
|
2301
|
-
return
|
|
2300
|
+
return Gn(() => {
|
|
2302
2301
|
const o = e.current;
|
|
2303
2302
|
if (!o) return;
|
|
2304
2303
|
const i = document.createTextNode("0");
|
|
@@ -2306,7 +2305,7 @@ const Ut = ({
|
|
|
2306
2305
|
a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
|
|
2307
2306
|
};
|
|
2308
2307
|
}, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2309
|
-
},
|
|
2308
|
+
}, Mr = ({
|
|
2310
2309
|
status: e,
|
|
2311
2310
|
time: t,
|
|
2312
2311
|
size: s,
|
|
@@ -2327,7 +2326,7 @@ const Ut = ({
|
|
|
2327
2326
|
};
|
|
2328
2327
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2329
2328
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2330
|
-
/* @__PURE__ */ n.jsx(
|
|
2329
|
+
/* @__PURE__ */ n.jsx(_r, { status: e }),
|
|
2331
2330
|
" ",
|
|
2332
2331
|
e ?? "Sending Request...",
|
|
2333
2332
|
e ? ` ${o[e]}` : ""
|
|
@@ -2341,7 +2340,7 @@ const Ut = ({
|
|
|
2341
2340
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2342
2341
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2343
2342
|
" ",
|
|
2344
|
-
t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(
|
|
2343
|
+
t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Ur, {}),
|
|
2345
2344
|
"ms"
|
|
2346
2345
|
] })
|
|
2347
2346
|
] }),
|
|
@@ -2364,9 +2363,9 @@ function Be(e) {
|
|
|
2364
2363
|
const t = e[0];
|
|
2365
2364
|
return t === void 0 ? "any[]" : `${Be(t)}[]`;
|
|
2366
2365
|
}
|
|
2367
|
-
return typeof e == "object" ?
|
|
2366
|
+
return typeof e == "object" ? Gr(e) : typeof e;
|
|
2368
2367
|
}
|
|
2369
|
-
function
|
|
2368
|
+
function Gr(e, t = "") {
|
|
2370
2369
|
const s = ["{"];
|
|
2371
2370
|
for (const [a, r] of Object.entries(e)) {
|
|
2372
2371
|
const o = Be(r);
|
|
@@ -2375,7 +2374,7 @@ function Qr(e, t = "") {
|
|
|
2375
2374
|
return s.push("}"), s.join(`
|
|
2376
2375
|
`);
|
|
2377
2376
|
}
|
|
2378
|
-
function
|
|
2377
|
+
function Hr(e) {
|
|
2379
2378
|
return { lines: [`type GeneratedType = ${Be(e)};`] };
|
|
2380
2379
|
}
|
|
2381
2380
|
const Ht = ({
|
|
@@ -2383,8 +2382,8 @@ const Ht = ({
|
|
|
2383
2382
|
language: t,
|
|
2384
2383
|
children: s
|
|
2385
2384
|
}) => {
|
|
2386
|
-
const { syntaxHighlighting: a } =
|
|
2387
|
-
return
|
|
2385
|
+
const { syntaxHighlighting: a } = zn().options;
|
|
2386
|
+
return Un(a?.highlighter, "Highlighter not found"), Ts(
|
|
2388
2387
|
a.highlighter,
|
|
2389
2388
|
e ?? s ?? "",
|
|
2390
2389
|
t,
|
|
@@ -2392,7 +2391,7 @@ const Ht = ({
|
|
|
2392
2391
|
);
|
|
2393
2392
|
};
|
|
2394
2393
|
Ht.displayName = "Highlight";
|
|
2395
|
-
const
|
|
2394
|
+
const Qr = (e) => Object.entries({
|
|
2396
2395
|
"application/json": "json",
|
|
2397
2396
|
"text/json": "json",
|
|
2398
2397
|
"text/html": "html",
|
|
@@ -2402,16 +2401,16 @@ const Wr = (e) => Object.entries({
|
|
|
2402
2401
|
"application/xhtml+xml": "xhtml"
|
|
2403
2402
|
}).find(
|
|
2404
2403
|
([s]) => e.includes(s)
|
|
2405
|
-
)?.[1],
|
|
2404
|
+
)?.[1], Jr = (e) => {
|
|
2406
2405
|
const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
|
|
2407
|
-
return
|
|
2408
|
-
},
|
|
2406
|
+
return Qr(t);
|
|
2407
|
+
}, Wr = (e) => {
|
|
2409
2408
|
try {
|
|
2410
2409
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2411
2410
|
} catch {
|
|
2412
2411
|
return null;
|
|
2413
2412
|
}
|
|
2414
|
-
},
|
|
2413
|
+
}, Xr = (e) => {
|
|
2415
2414
|
const t = [
|
|
2416
2415
|
"Content-Type",
|
|
2417
2416
|
"Content-Length",
|
|
@@ -2425,25 +2424,25 @@ const Wr = (e) => Object.entries({
|
|
|
2425
2424
|
const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
|
|
2426
2425
|
return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
|
|
2427
2426
|
});
|
|
2428
|
-
}, X = 3, Te =
|
|
2427
|
+
}, X = 3, Te = se(
|
|
2429
2428
|
"div",
|
|
2430
2429
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2431
|
-
),
|
|
2430
|
+
), ie = se("div", "py-1 break-all"), Ae = ({ value: e, header: t }) => {
|
|
2432
2431
|
const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = $(!a);
|
|
2433
2432
|
return /* @__PURE__ */ n.jsxs(
|
|
2434
|
-
|
|
2433
|
+
ie,
|
|
2435
2434
|
{
|
|
2436
2435
|
className: C(a && "cursor-pointer flex group"),
|
|
2437
2436
|
onClick: () => {
|
|
2438
2437
|
a && o((i) => !i);
|
|
2439
2438
|
},
|
|
2440
2439
|
children: [
|
|
2441
|
-
/* @__PURE__ */ n.jsx(
|
|
2442
|
-
a ? r ? /* @__PURE__ */ n.jsx(
|
|
2440
|
+
/* @__PURE__ */ n.jsx(Kn, { secret: e, previewChars: 0, revealed: r }),
|
|
2441
|
+
a ? r ? /* @__PURE__ */ n.jsx(Nn, { size: 14, className: C("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(Sn, { size: 14, className: C("hidden group-hover:block") }) : null
|
|
2443
2442
|
]
|
|
2444
2443
|
}
|
|
2445
2444
|
);
|
|
2446
|
-
},
|
|
2445
|
+
}, Zr = ({
|
|
2447
2446
|
body: e = "",
|
|
2448
2447
|
headers: t,
|
|
2449
2448
|
request: s,
|
|
@@ -2452,41 +2451,41 @@ const Wr = (e) => Object.entries({
|
|
|
2452
2451
|
fileName: o,
|
|
2453
2452
|
blob: i
|
|
2454
2453
|
}) => {
|
|
2455
|
-
const l =
|
|
2454
|
+
const l = Jr(t), c = Wr(e), u = c || e, [d, h] = $(
|
|
2456
2455
|
c ? "formatted" : "raw"
|
|
2457
|
-
), g =
|
|
2456
|
+
), g = qn({
|
|
2458
2457
|
queryKey: ["types", u],
|
|
2459
|
-
queryFn: async () =>
|
|
2458
|
+
queryFn: async () => Hr(JSON.parse(u)),
|
|
2460
2459
|
enabled: d === "types" && !r
|
|
2461
2460
|
}), m = () => {
|
|
2462
2461
|
if (i && o) {
|
|
2463
2462
|
const y = URL.createObjectURL(i), b = document.createElement("a");
|
|
2464
2463
|
b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
|
|
2465
2464
|
}
|
|
2466
|
-
}, v =
|
|
2465
|
+
}, v = Xr([...t]);
|
|
2467
2466
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2468
|
-
/* @__PURE__ */ n.jsxs(
|
|
2467
|
+
/* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2469
2468
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2470
2469
|
/* @__PURE__ */ n.jsx(jn, { size: 16 }),
|
|
2471
2470
|
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Request" })
|
|
2472
2471
|
] }),
|
|
2473
|
-
/* @__PURE__ */ n.jsx(
|
|
2474
|
-
/* @__PURE__ */ n.jsx(
|
|
2472
|
+
/* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2473
|
+
/* @__PURE__ */ n.jsx(ie, { children: y }),
|
|
2475
2474
|
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2476
2475
|
] }, y)) }) })
|
|
2477
2476
|
] }),
|
|
2478
|
-
/* @__PURE__ */ n.jsxs(
|
|
2477
|
+
/* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2479
2478
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2480
2479
|
/* @__PURE__ */ n.jsx(Cn, { size: 16 }),
|
|
2481
2480
|
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Response" })
|
|
2482
2481
|
] }),
|
|
2483
|
-
/* @__PURE__ */ n.jsx(
|
|
2482
|
+
/* @__PURE__ */ n.jsx(z, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
|
|
2484
2483
|
v.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2485
|
-
/* @__PURE__ */ n.jsx(
|
|
2484
|
+
/* @__PURE__ */ n.jsx(ie, { children: y }),
|
|
2486
2485
|
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2487
2486
|
] }, y)),
|
|
2488
|
-
v.length > X && /* @__PURE__ */ n.jsxs(
|
|
2489
|
-
/* @__PURE__ */ n.jsxs(
|
|
2487
|
+
v.length > X && /* @__PURE__ */ n.jsxs(F, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2488
|
+
/* @__PURE__ */ n.jsxs(zt, { 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: [
|
|
2490
2489
|
/* @__PURE__ */ n.jsxs("span", { children: [
|
|
2491
2490
|
"Show ",
|
|
2492
2491
|
v.length - X,
|
|
@@ -2494,8 +2493,8 @@ const Wr = (e) => Object.entries({
|
|
|
2494
2493
|
] }),
|
|
2495
2494
|
/* @__PURE__ */ n.jsx(pe, { size: 12, className: "text-muted-foreground" })
|
|
2496
2495
|
] }),
|
|
2497
|
-
/* @__PURE__ */ n.jsx(
|
|
2498
|
-
/* @__PURE__ */ n.jsx(
|
|
2496
|
+
/* @__PURE__ */ n.jsx(z, { className: "col-span-full grid grid-cols-subgrid", children: v.slice(X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2497
|
+
/* @__PURE__ */ n.jsx(ie, { children: y }),
|
|
2499
2498
|
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2500
2499
|
] }, y)) })
|
|
2501
2500
|
] })
|
|
@@ -2507,11 +2506,11 @@ const Wr = (e) => Object.entries({
|
|
|
2507
2506
|
value: d,
|
|
2508
2507
|
onValueChange: (y) => h(y),
|
|
2509
2508
|
children: [
|
|
2510
|
-
/* @__PURE__ */ n.jsx(
|
|
2509
|
+
/* @__PURE__ */ n.jsx(wt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(Nt, { placeholder: "View" }) }),
|
|
2511
2510
|
/* @__PURE__ */ n.jsxs(St, { children: [
|
|
2512
|
-
/* @__PURE__ */ n.jsx(
|
|
2513
|
-
/* @__PURE__ */ n.jsx(
|
|
2514
|
-
/* @__PURE__ */ n.jsx(
|
|
2511
|
+
/* @__PURE__ */ n.jsx(oe, { value: "formatted", children: "Formatted" }),
|
|
2512
|
+
/* @__PURE__ */ n.jsx(oe, { value: "raw", children: "Raw" }),
|
|
2513
|
+
/* @__PURE__ */ n.jsx(oe, { value: "types", children: "Types" })
|
|
2515
2514
|
] })
|
|
2516
2515
|
]
|
|
2517
2516
|
}
|
|
@@ -2526,7 +2525,7 @@ const Wr = (e) => Object.entries({
|
|
|
2526
2525
|
className: "flex items-center gap-2",
|
|
2527
2526
|
disabled: !i,
|
|
2528
2527
|
children: [
|
|
2529
|
-
/* @__PURE__ */ n.jsx(
|
|
2528
|
+
/* @__PURE__ */ n.jsx(wn, { className: "h-4 w-4" }),
|
|
2530
2529
|
"Download ",
|
|
2531
2530
|
o || "file",
|
|
2532
2531
|
" (",
|
|
@@ -2544,7 +2543,7 @@ const Wr = (e) => Object.entries({
|
|
|
2544
2543
|
}
|
|
2545
2544
|
) }) })
|
|
2546
2545
|
] });
|
|
2547
|
-
},
|
|
2546
|
+
}, Yr = ({
|
|
2548
2547
|
queryMutation: e,
|
|
2549
2548
|
showLongRunningWarning: t,
|
|
2550
2549
|
onCancel: s,
|
|
@@ -2553,7 +2552,7 @@ const Wr = (e) => Object.entries({
|
|
|
2553
2552
|
progress: o
|
|
2554
2553
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2555
2554
|
(e.isPending || e.data) && /* @__PURE__ */ n.jsx(
|
|
2556
|
-
|
|
2555
|
+
Mr,
|
|
2557
2556
|
{
|
|
2558
2557
|
status: e.data?.status,
|
|
2559
2558
|
time: e.data?.time,
|
|
@@ -2562,12 +2561,12 @@ const Wr = (e) => Object.entries({
|
|
|
2562
2561
|
progress: o
|
|
2563
2562
|
}
|
|
2564
2563
|
),
|
|
2565
|
-
e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(
|
|
2564
|
+
e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(es, { children: [
|
|
2566
2565
|
/* @__PURE__ */ n.jsx(Tn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2567
|
-
/* @__PURE__ */ n.jsx(
|
|
2568
|
-
/* @__PURE__ */ n.jsx(
|
|
2566
|
+
/* @__PURE__ */ n.jsx(ts, { children: "Request failed" }),
|
|
2567
|
+
/* @__PURE__ */ n.jsx(ns, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2569
2568
|
] }) }) : e.data ? /* @__PURE__ */ n.jsx(
|
|
2570
|
-
|
|
2569
|
+
Zr,
|
|
2571
2570
|
{
|
|
2572
2571
|
request: e.data.request,
|
|
2573
2572
|
size: e.data.size,
|
|
@@ -2578,7 +2577,7 @@ const Wr = (e) => Object.entries({
|
|
|
2578
2577
|
blob: e.data.blob
|
|
2579
2578
|
}
|
|
2580
2579
|
) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2581
|
-
/* @__PURE__ */ n.jsx(
|
|
2580
|
+
/* @__PURE__ */ n.jsx(Zn, {}),
|
|
2582
2581
|
/* @__PURE__ */ n.jsxs(
|
|
2583
2582
|
"div",
|
|
2584
2583
|
{
|
|
@@ -2589,7 +2588,7 @@ const Wr = (e) => Object.entries({
|
|
|
2589
2588
|
children: [
|
|
2590
2589
|
"Looks like the request is taking longer than expected.",
|
|
2591
2590
|
/* @__PURE__ */ n.jsx(
|
|
2592
|
-
|
|
2591
|
+
ce,
|
|
2593
2592
|
{
|
|
2594
2593
|
type: "button",
|
|
2595
2594
|
onClick: s,
|
|
@@ -2614,7 +2613,7 @@ const Wr = (e) => Object.entries({
|
|
|
2614
2613
|
/* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2615
2614
|
a
|
|
2616
2615
|
] }) })
|
|
2617
|
-
] }),
|
|
2616
|
+
] }), Kr = $e()(
|
|
2618
2617
|
Ee(
|
|
2619
2618
|
(e) => ({
|
|
2620
2619
|
skipLogin: !1,
|
|
@@ -2625,7 +2624,7 @@ const Wr = (e) => Object.entries({
|
|
|
2625
2624
|
storage: gt(() => sessionStorage)
|
|
2626
2625
|
}
|
|
2627
2626
|
)
|
|
2628
|
-
), K = "__none",
|
|
2627
|
+
), K = "__none", ea = ({
|
|
2629
2628
|
server: e,
|
|
2630
2629
|
servers: t = [],
|
|
2631
2630
|
url: s,
|
|
@@ -2639,13 +2638,13 @@ const Wr = (e) => Object.entries({
|
|
|
2639
2638
|
onLogin: d,
|
|
2640
2639
|
onSignUp: h
|
|
2641
2640
|
}) => {
|
|
2642
|
-
const { selectedServer: g, setSelectedServer: m } =
|
|
2641
|
+
const { selectedServer: g, setSelectedServer: m } = Cr(
|
|
2643
2642
|
t.map((p) => ({ url: p }))
|
|
2644
|
-
), [v, y] = $(!1), b =
|
|
2643
|
+
), [v, y] = $(!1), b = Vn(), { setRememberedIdentity: T, getRememberedIdentity: f } = zr(), [, j] = Hn(), { skipLogin: L, setSkipLogin: N } = Kr(), [k, A] = $(!1), H = O(void 0), Ue = cs(T), Me = O(null), { label: Yt } = br("meta+enter", () => {
|
|
2645
2644
|
Me.current?.requestSubmit();
|
|
2646
2645
|
}), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
|
|
2647
2646
|
(p, J) => Ge.indexOf(p.name) - Ge.indexOf(J.name)
|
|
2648
|
-
), { register: Kt, control:
|
|
2647
|
+
), { register: Kt, control: re, handleSubmit: Qe, watch: Je, setValue: xe, ...ye } = rs({
|
|
2649
2648
|
defaultValues: {
|
|
2650
2649
|
body: l,
|
|
2651
2650
|
queryParams: o.length > 0 ? o.map((p) => ({
|
|
@@ -2688,7 +2687,7 @@ const Wr = (e) => Object.entries({
|
|
|
2688
2687
|
I(() => {
|
|
2689
2688
|
Q && Ue.current(Q);
|
|
2690
2689
|
}, [Ue, Q]);
|
|
2691
|
-
const V =
|
|
2690
|
+
const V = ss({
|
|
2692
2691
|
gcTime: 0,
|
|
2693
2692
|
mutationFn: async (p) => {
|
|
2694
2693
|
const J = performance.now(), dn = Object.fromEntries([
|
|
@@ -2715,15 +2714,15 @@ const Wr = (e) => Object.entries({
|
|
|
2715
2714
|
signal: H.current.signal
|
|
2716
2715
|
});
|
|
2717
2716
|
clearTimeout(ve), A(!1);
|
|
2718
|
-
const un = performance.now() - J, mn = new URL(B.url), Ze = Array.from(S.headers.entries()), Ye = S.headers.get("content-type") || "", Ke =
|
|
2719
|
-
let
|
|
2720
|
-
Ke ? (et = await S.blob(), tt =
|
|
2717
|
+
const un = performance.now() - J, mn = new URL(B.url), Ze = Array.from(S.headers.entries()), Ye = S.headers.get("content-type") || "", Ke = Sr(Ye);
|
|
2718
|
+
let ae = "", et, tt;
|
|
2719
|
+
Ke ? (et = await S.blob(), tt = Tr(Ze, B.url), ae = `Binary content (${Ye})`) : ae = await S.text();
|
|
2721
2720
|
const nt = S.headers.get("content-length");
|
|
2722
2721
|
return {
|
|
2723
2722
|
status: S.status,
|
|
2724
2723
|
headers: Ze,
|
|
2725
|
-
size: nt ? Number(nt) :
|
|
2726
|
-
body:
|
|
2724
|
+
size: nt ? Number(nt) : ae.length,
|
|
2725
|
+
body: ae,
|
|
2727
2726
|
time: un,
|
|
2728
2727
|
isBinary: Ke,
|
|
2729
2728
|
fileName: tt,
|
|
@@ -2750,7 +2749,7 @@ const Wr = (e) => Object.entries({
|
|
|
2750
2749
|
const p = setTimeout(() => nn(We), 100);
|
|
2751
2750
|
return () => clearTimeout(p);
|
|
2752
2751
|
}, [We]);
|
|
2753
|
-
const { isFinished: sn, progress: rn } =
|
|
2752
|
+
const { isFinished: sn, progress: rn } = Yn({ isAnimating: tn });
|
|
2754
2753
|
I(() => () => {
|
|
2755
2754
|
H.current?.abort();
|
|
2756
2755
|
}, []);
|
|
@@ -2763,23 +2762,23 @@ const Wr = (e) => Object.entries({
|
|
|
2763
2762
|
value: g,
|
|
2764
2763
|
defaultValue: g,
|
|
2765
2764
|
children: [
|
|
2766
|
-
/* @__PURE__ */ n.jsx(
|
|
2767
|
-
/* @__PURE__ */ n.jsx(St, { children: t.map((p) => /* @__PURE__ */ n.jsx(
|
|
2765
|
+
/* @__PURE__ */ n.jsx(wt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Nt, {}) }),
|
|
2766
|
+
/* @__PURE__ */ n.jsx(St, { children: t.map((p) => /* @__PURE__ */ n.jsx(oe, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
|
|
2768
2767
|
]
|
|
2769
2768
|
}
|
|
2770
2769
|
) }), on = u && !L, cn = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
2771
2770
|
a.toUpperCase()
|
|
2772
|
-
), [Xe, ln] =
|
|
2771
|
+
), [Xe, ln] = is();
|
|
2773
2772
|
return /* @__PURE__ */ n.jsx(
|
|
2774
|
-
|
|
2773
|
+
as,
|
|
2775
2774
|
{
|
|
2776
2775
|
register: Kt,
|
|
2777
|
-
control:
|
|
2776
|
+
control: re,
|
|
2778
2777
|
handleSubmit: Qe,
|
|
2779
2778
|
watch: Je,
|
|
2780
2779
|
setValue: xe,
|
|
2781
2780
|
...ye,
|
|
2782
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2781
|
+
children: /* @__PURE__ */ n.jsx(os, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
|
|
2783
2782
|
"form",
|
|
2784
2783
|
{
|
|
2785
2784
|
ref: Me,
|
|
@@ -2789,7 +2788,7 @@ const Wr = (e) => Object.entries({
|
|
|
2789
2788
|
className: "relative",
|
|
2790
2789
|
children: [
|
|
2791
2790
|
/* @__PURE__ */ n.jsx(
|
|
2792
|
-
|
|
2791
|
+
Er,
|
|
2793
2792
|
{
|
|
2794
2793
|
identities: b.data ?? [],
|
|
2795
2794
|
open: v,
|
|
@@ -2800,10 +2799,10 @@ const Wr = (e) => Object.entries({
|
|
|
2800
2799
|
}
|
|
2801
2800
|
),
|
|
2802
2801
|
/* @__PURE__ */ n.jsx(
|
|
2803
|
-
|
|
2802
|
+
Fr,
|
|
2804
2803
|
{
|
|
2805
2804
|
open: on,
|
|
2806
|
-
setOpen: (p) =>
|
|
2805
|
+
setOpen: (p) => N(!p),
|
|
2807
2806
|
onSignUp: h,
|
|
2808
2807
|
onLogin: d
|
|
2809
2808
|
}
|
|
@@ -2814,8 +2813,8 @@ const Wr = (e) => Object.entries({
|
|
|
2814
2813
|
/* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
2815
2814
|
/* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
|
|
2816
2815
|
an,
|
|
2817
|
-
/* @__PURE__ */ n.jsx(
|
|
2818
|
-
/* @__PURE__ */ n.jsx(
|
|
2816
|
+
/* @__PURE__ */ n.jsx(Vr, { url: s }),
|
|
2817
|
+
/* @__PURE__ */ n.jsx(Br, {})
|
|
2819
2818
|
] }) }),
|
|
2820
2819
|
/* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
|
|
2821
2820
|
E,
|
|
@@ -2856,12 +2855,12 @@ const Wr = (e) => Object.entries({
|
|
|
2856
2855
|
)
|
|
2857
2856
|
] }),
|
|
2858
2857
|
/* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
2859
|
-
b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(
|
|
2858
|
+
b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2860
2859
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2861
2860
|
/* @__PURE__ */ n.jsx(Ln, { size: 16 }),
|
|
2862
2861
|
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Authentication" })
|
|
2863
2862
|
] }),
|
|
2864
|
-
/* @__PURE__ */ n.jsx(
|
|
2863
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
|
|
2865
2864
|
Ut,
|
|
2866
2865
|
{
|
|
2867
2866
|
value: Q,
|
|
@@ -2870,27 +2869,27 @@ const Wr = (e) => Object.entries({
|
|
|
2870
2869
|
}
|
|
2871
2870
|
) })
|
|
2872
2871
|
] }),
|
|
2873
|
-
He.length > 0 && /* @__PURE__ */ n.jsxs(
|
|
2872
|
+
He.length > 0 && /* @__PURE__ */ n.jsxs(F, { defaultOpen: !0, children: [
|
|
2874
2873
|
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2875
2874
|
/* @__PURE__ */ n.jsx($n, { size: 16 }),
|
|
2876
2875
|
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Path Parameters" })
|
|
2877
2876
|
] }),
|
|
2878
|
-
/* @__PURE__ */ n.jsx(
|
|
2877
|
+
/* @__PURE__ */ n.jsx(z, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(kr, { url: s, control: re }) })
|
|
2879
2878
|
] }),
|
|
2880
|
-
/* @__PURE__ */ n.jsx(
|
|
2879
|
+
/* @__PURE__ */ n.jsx(Dr, { control: re, schemaQueryParams: o }),
|
|
2881
2880
|
/* @__PURE__ */ n.jsx(
|
|
2882
|
-
|
|
2881
|
+
Lr,
|
|
2883
2882
|
{
|
|
2884
|
-
control:
|
|
2883
|
+
control: re,
|
|
2885
2884
|
schemaHeaders: r,
|
|
2886
2885
|
lockedHeaders: en?.headers
|
|
2887
2886
|
}
|
|
2888
2887
|
),
|
|
2889
|
-
cn && /* @__PURE__ */ n.jsx(
|
|
2888
|
+
cn && /* @__PURE__ */ n.jsx(Nr, { content: c })
|
|
2890
2889
|
] }),
|
|
2891
2890
|
/* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
2892
2891
|
/* @__PURE__ */ n.jsx(
|
|
2893
|
-
|
|
2892
|
+
Yr,
|
|
2894
2893
|
{
|
|
2895
2894
|
queryMutation: V,
|
|
2896
2895
|
showLongRunningWarning: k,
|
|
@@ -2916,7 +2915,7 @@ const Wr = (e) => Object.entries({
|
|
|
2916
2915
|
) })
|
|
2917
2916
|
}
|
|
2918
2917
|
);
|
|
2919
|
-
},
|
|
2918
|
+
}, ta = ({
|
|
2920
2919
|
className: e,
|
|
2921
2920
|
size: t = 16
|
|
2922
2921
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -2937,17 +2936,17 @@ const Wr = (e) => Object.entries({
|
|
|
2937
2936
|
}
|
|
2938
2937
|
)
|
|
2939
2938
|
}
|
|
2940
|
-
),
|
|
2941
|
-
const [t, s] = $(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } =
|
|
2939
|
+
), na = (e) => {
|
|
2940
|
+
const [t, s] = $(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = Wn();
|
|
2942
2941
|
return /* @__PURE__ */ n.jsxs(Re, { onOpenChange: (c) => s(c), children: [
|
|
2943
|
-
/* @__PURE__ */ n.jsx(
|
|
2942
|
+
/* @__PURE__ */ n.jsx(Xn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
|
|
2944
2943
|
"button",
|
|
2945
2944
|
{
|
|
2946
2945
|
type: "button",
|
|
2947
2946
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
|
|
2948
2947
|
children: [
|
|
2949
2948
|
"Test",
|
|
2950
|
-
/* @__PURE__ */ n.jsx(
|
|
2949
|
+
/* @__PURE__ */ n.jsx(ta, { size: 14 })
|
|
2951
2950
|
]
|
|
2952
2951
|
}
|
|
2953
2952
|
) }),
|
|
@@ -2958,9 +2957,9 @@ const Wr = (e) => Object.entries({
|
|
|
2958
2957
|
"aria-describedby": void 0,
|
|
2959
2958
|
showCloseButton: !0,
|
|
2960
2959
|
children: [
|
|
2961
|
-
/* @__PURE__ */ n.jsx(
|
|
2960
|
+
/* @__PURE__ */ n.jsx(Jn, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
|
|
2962
2961
|
t && /* @__PURE__ */ n.jsx(
|
|
2963
|
-
|
|
2962
|
+
ea,
|
|
2964
2963
|
{
|
|
2965
2964
|
requiresLogin: a && !l && !i,
|
|
2966
2965
|
onLogin: () => r(),
|
|
@@ -2972,7 +2971,7 @@ const Wr = (e) => Object.entries({
|
|
|
2972
2971
|
}
|
|
2973
2972
|
)
|
|
2974
2973
|
] });
|
|
2975
|
-
},
|
|
2974
|
+
}, sa = {
|
|
2976
2975
|
get: "green",
|
|
2977
2976
|
post: "blue",
|
|
2978
2977
|
put: "yellow",
|
|
@@ -3004,21 +3003,21 @@ const Wr = (e) => Object.entries({
|
|
|
3004
3003
|
badge: {
|
|
3005
3004
|
label: o.method,
|
|
3006
3005
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3007
|
-
color:
|
|
3006
|
+
color: sa[o.method.toLowerCase()],
|
|
3008
3007
|
invert: !0
|
|
3009
3008
|
}
|
|
3010
3009
|
}))
|
|
3011
3010
|
}), Qt = xt(
|
|
3012
3011
|
void 0
|
|
3013
|
-
),
|
|
3014
|
-
const e =
|
|
3012
|
+
), Va = Qt.Provider, ra = () => {
|
|
3013
|
+
const e = Qn(Qt);
|
|
3015
3014
|
if (!e)
|
|
3016
3015
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3017
3016
|
return e.config;
|
|
3018
3017
|
}, ht = (e) => ({
|
|
3019
3018
|
path: e.routePath,
|
|
3020
3019
|
async lazy() {
|
|
3021
|
-
const { OasProvider: t } = await import("./OasProvider-
|
|
3020
|
+
const { OasProvider: t } = await import("./OasProvider-0xiB5cKH.js");
|
|
3022
3021
|
return {
|
|
3023
3022
|
element: /* @__PURE__ */ n.jsx(
|
|
3024
3023
|
t,
|
|
@@ -3039,18 +3038,18 @@ const Wr = (e) => Object.entries({
|
|
|
3039
3038
|
}) => ({
|
|
3040
3039
|
path: e,
|
|
3041
3040
|
async lazy() {
|
|
3042
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3041
|
+
const { OperationList: a } = await import("./OperationList-BzWKTkNq.js");
|
|
3043
3042
|
return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
|
|
3044
3043
|
}
|
|
3045
|
-
}),
|
|
3044
|
+
}), aa = ({
|
|
3046
3045
|
render: e,
|
|
3047
3046
|
path: t
|
|
3048
3047
|
}) => {
|
|
3049
|
-
const { type: s, input: a } =
|
|
3048
|
+
const { type: s, input: a } = ra(), { tag: r } = kn(), o = In(), i = ir(Zt, { type: s, input: a }), {
|
|
3050
3049
|
data: { schema: l }
|
|
3051
|
-
} =
|
|
3050
|
+
} = Bn(i), c = l.tags.at(0);
|
|
3052
3051
|
return !r && c?.slug ? /* @__PURE__ */ n.jsx(
|
|
3053
|
-
|
|
3052
|
+
Dn,
|
|
3054
3053
|
{
|
|
3055
3054
|
to: {
|
|
3056
3055
|
pathname: Fn(t, { tag: c.slug }),
|
|
@@ -3058,13 +3057,13 @@ const Wr = (e) => Object.entries({
|
|
|
3058
3057
|
}
|
|
3059
3058
|
}
|
|
3060
3059
|
) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
|
|
3061
|
-
},
|
|
3060
|
+
}, oa = ({ path: e }) => ({
|
|
3062
3061
|
path: e,
|
|
3063
3062
|
async lazy() {
|
|
3064
|
-
const { OperationList: t } = await import("./OperationList-
|
|
3063
|
+
const { OperationList: t } = await import("./OperationList-BzWKTkNq.js");
|
|
3065
3064
|
return {
|
|
3066
3065
|
element: /* @__PURE__ */ n.jsx(
|
|
3067
|
-
|
|
3066
|
+
aa,
|
|
3068
3067
|
{
|
|
3069
3068
|
path: e,
|
|
3070
3069
|
render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
|
|
@@ -3082,15 +3081,15 @@ const Wr = (e) => Object.entries({
|
|
|
3082
3081
|
{
|
|
3083
3082
|
path: R(e, "~schemas"),
|
|
3084
3083
|
lazy: async () => {
|
|
3085
|
-
const { SchemaList: t } = await import("./SchemaList-
|
|
3084
|
+
const { SchemaList: t } = await import("./SchemaList-Dea2Skqv.js");
|
|
3086
3085
|
return { element: /* @__PURE__ */ n.jsx(t, {}) };
|
|
3087
3086
|
}
|
|
3088
3087
|
}
|
|
3089
|
-
],
|
|
3088
|
+
], ia = (e, t) => {
|
|
3090
3089
|
const s = R(e, t.at(0) ?? _e);
|
|
3091
3090
|
return [
|
|
3092
3091
|
// Redirect to first tag on the index route
|
|
3093
|
-
{ index: !0, loader: () =>
|
|
3092
|
+
{ index: !0, loader: () => Rn(s) },
|
|
3094
3093
|
// Create routes for each tag
|
|
3095
3094
|
...t.map(
|
|
3096
3095
|
(a) => Jt({
|
|
@@ -3100,7 +3099,7 @@ const Wr = (e) => Object.entries({
|
|
|
3100
3099
|
),
|
|
3101
3100
|
...Wt(e)
|
|
3102
3101
|
];
|
|
3103
|
-
}, Xt = (e) => e.type === "file" ? Object.keys(e.input) : [],
|
|
3102
|
+
}, Xt = (e) => e.type === "file" ? Object.keys(e.input) : [], ca = ({
|
|
3104
3103
|
basePath: e,
|
|
3105
3104
|
config: t,
|
|
3106
3105
|
client: s
|
|
@@ -3112,7 +3111,7 @@ const Wr = (e) => Object.entries({
|
|
|
3112
3111
|
basePath: e,
|
|
3113
3112
|
routePath: e,
|
|
3114
3113
|
routes: [
|
|
3115
|
-
|
|
3114
|
+
oa({ path: `${e}/:tag?` }),
|
|
3116
3115
|
...Wt(e)
|
|
3117
3116
|
],
|
|
3118
3117
|
client: s,
|
|
@@ -3126,12 +3125,12 @@ const Wr = (e) => Object.entries({
|
|
|
3126
3125
|
basePath: e,
|
|
3127
3126
|
version: i,
|
|
3128
3127
|
routePath: l,
|
|
3129
|
-
routes:
|
|
3128
|
+
routes: ia(l, a),
|
|
3130
3129
|
client: s,
|
|
3131
3130
|
config: t
|
|
3132
3131
|
});
|
|
3133
3132
|
});
|
|
3134
|
-
}, Zt =
|
|
3133
|
+
}, Zt = gr(`
|
|
3135
3134
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3136
3135
|
schema(input: $input, type: $type) {
|
|
3137
3136
|
extensions
|
|
@@ -3154,8 +3153,8 @@ const Wr = (e) => Object.entries({
|
|
|
3154
3153
|
}
|
|
3155
3154
|
}
|
|
3156
3155
|
}
|
|
3157
|
-
`), _e = "~endpoints",
|
|
3158
|
-
const t = R(e.path), s = new
|
|
3156
|
+
`), _e = "~endpoints", Ba = (e) => {
|
|
3157
|
+
const t = R(e.path), s = new Os(e);
|
|
3159
3158
|
return {
|
|
3160
3159
|
getHead: () => {
|
|
3161
3160
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -3173,37 +3172,24 @@ const Wr = (e) => Object.entries({
|
|
|
3173
3172
|
},
|
|
3174
3173
|
getMdxComponents: () => ({
|
|
3175
3174
|
OpenPlaygroundButton: ({
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
...c
|
|
3175
|
+
server: a,
|
|
3176
|
+
method: r = "get",
|
|
3177
|
+
url: o = "/",
|
|
3178
|
+
children: i,
|
|
3179
|
+
...l
|
|
3182
3180
|
}) => {
|
|
3183
|
-
|
|
3184
|
-
if (!r)
|
|
3181
|
+
if (!a)
|
|
3185
3182
|
throw new Error("Server is required");
|
|
3186
|
-
return
|
|
3187
|
-
|
|
3183
|
+
return /* @__PURE__ */ n.jsx(
|
|
3184
|
+
na,
|
|
3188
3185
|
{
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3186
|
+
url: o,
|
|
3187
|
+
method: r,
|
|
3188
|
+
server: a,
|
|
3189
|
+
...l,
|
|
3190
|
+
children: /* @__PURE__ */ n.jsx(ce, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3191
|
+
"Open in Playground",
|
|
3194
3192
|
/* @__PURE__ */ n.jsx(En, { size: 16 })
|
|
3195
|
-
]
|
|
3196
|
-
}
|
|
3197
|
-
) : /* @__PURE__ */ n.jsx(
|
|
3198
|
-
ra,
|
|
3199
|
-
{
|
|
3200
|
-
url: i ?? "/",
|
|
3201
|
-
method: o ?? "get",
|
|
3202
|
-
server: r,
|
|
3203
|
-
...c,
|
|
3204
|
-
children: /* @__PURE__ */ n.jsx(ee, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3205
|
-
"Open in Playground ",
|
|
3206
|
-
/* @__PURE__ */ n.jsx(Rn, { size: 16 })
|
|
3207
3193
|
] }) })
|
|
3208
3194
|
}
|
|
3209
3195
|
);
|
|
@@ -3217,14 +3203,14 @@ const Wr = (e) => Object.entries({
|
|
|
3217
3203
|
a
|
|
3218
3204
|
);
|
|
3219
3205
|
try {
|
|
3220
|
-
const i = o?.params.version, l = i ?? Xt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d =
|
|
3206
|
+
const i = o?.params.version, l = i ?? Xt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, Zt, {
|
|
3221
3207
|
type: c,
|
|
3222
3208
|
input: u
|
|
3223
3209
|
}), h = await r.queryClient.ensureQueryData(d), g = new Map(
|
|
3224
3210
|
h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
|
|
3225
3211
|
if (!f.name)
|
|
3226
3212
|
throw new Error(`Tag ${f.slug} has no name`);
|
|
3227
|
-
const j = R(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags,
|
|
3213
|
+
const j = R(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = f.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3228
3214
|
return [
|
|
3229
3215
|
f.name,
|
|
3230
3216
|
pt({
|
|
@@ -3232,7 +3218,7 @@ const Wr = (e) => Object.entries({
|
|
|
3232
3218
|
path: j,
|
|
3233
3219
|
operations: f.operations,
|
|
3234
3220
|
collapsed: L,
|
|
3235
|
-
collapsible:
|
|
3221
|
+
collapsible: N
|
|
3236
3222
|
})
|
|
3237
3223
|
];
|
|
3238
3224
|
})
|
|
@@ -3275,44 +3261,44 @@ const Wr = (e) => Object.entries({
|
|
|
3275
3261
|
return [];
|
|
3276
3262
|
}
|
|
3277
3263
|
},
|
|
3278
|
-
getRoutes: () =>
|
|
3264
|
+
getRoutes: () => ca({ basePath: t, config: e, client: s })
|
|
3279
3265
|
};
|
|
3280
3266
|
};
|
|
3281
3267
|
export {
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3268
|
+
F as C,
|
|
3269
|
+
qa as G,
|
|
3270
|
+
Vs as L,
|
|
3271
|
+
Va as O,
|
|
3272
|
+
na as P,
|
|
3273
|
+
ks as Q,
|
|
3288
3274
|
It as S,
|
|
3289
3275
|
x as T,
|
|
3290
3276
|
_e as U,
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3277
|
+
ir as a,
|
|
3278
|
+
zt as b,
|
|
3279
|
+
z as c,
|
|
3294
3280
|
Xt as d,
|
|
3295
|
-
|
|
3281
|
+
Cr as e,
|
|
3296
3282
|
Mt as f,
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3283
|
+
gr as g,
|
|
3284
|
+
qr as h,
|
|
3285
|
+
ar as i,
|
|
3300
3286
|
lt as j,
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3287
|
+
Fa as k,
|
|
3288
|
+
Bs as l,
|
|
3289
|
+
ze as m,
|
|
3304
3290
|
kt as n,
|
|
3305
|
-
|
|
3306
|
-
|
|
3291
|
+
Ps as o,
|
|
3292
|
+
rr as p,
|
|
3307
3293
|
je as q,
|
|
3308
|
-
|
|
3294
|
+
Ls as r,
|
|
3309
3295
|
P as s,
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3296
|
+
za as t,
|
|
3297
|
+
ra as u,
|
|
3298
|
+
qs as v,
|
|
3299
|
+
Ds as w,
|
|
3314
3300
|
Lt as x,
|
|
3315
3301
|
Zt as y,
|
|
3316
|
-
|
|
3302
|
+
Ba as z
|
|
3317
3303
|
};
|
|
3318
|
-
//# sourceMappingURL=index-
|
|
3304
|
+
//# sourceMappingURL=index-PdgTSEkk.js.map
|