zudoku 0.65.2 → 0.65.3
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/lib/plugins/openapi/GeneratedExampleSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -3
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +9 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +5 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/lib/{OasProvider-D88vmZFt.js → OasProvider-CpniNNrW.js} +2 -2
- package/lib/{OasProvider-D88vmZFt.js.map → OasProvider-CpniNNrW.js.map} +1 -1
- package/lib/{OperationList-DeBe8FvT.js → OperationList-CmMoKpGu.js} +1141 -1121
- package/lib/OperationList-CmMoKpGu.js.map +1 -0
- package/lib/{SchemaList-DnlwQJCO.js → SchemaList-BykD27ga.js} +3 -3
- package/lib/{SchemaList-DnlwQJCO.js.map → SchemaList-BykD27ga.js.map} +1 -1
- package/lib/{SchemaView-CgDcUNbC.js → SchemaView-Dt6hbCAt.js} +2 -2
- package/lib/{SchemaView-CgDcUNbC.js.map → SchemaView-Dt6hbCAt.js.map} +1 -1
- package/lib/{circular-BpeO0esG.js → circular-CNHs4gAz.js} +2 -2
- package/lib/{circular-BpeO0esG.js.map → circular-CNHs4gAz.js.map} +1 -1
- package/lib/{createServer-DIptgGTi.js → createServer-BmcVQAOQ.js} +3 -3
- package/lib/{createServer-DIptgGTi.js.map → createServer-BmcVQAOQ.js.map} +1 -1
- package/lib/{index-C_-XS4lp.js → index-unv8c40u.js} +52 -48
- package/lib/{index-C_-XS4lp.js.map → index-unv8c40u.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/ParameterList.tsx +2 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +22 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +17 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +5 -1
- package/lib/OperationList-DeBe8FvT.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Qe, XIcon as
|
|
2
|
+
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as kn, PlusCircleIcon as Qe, XIcon as Et, CheckIcon as Rt, PaperclipIcon as me, TrashIcon as En, FileInput as Rn, ScanTextIcon as gt, Grid2x2PlusIcon as xt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as yt, 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
3
|
import { r as es, b as ts, d as ns, N as ss, aL as rs, m as vt } from "./chunk-PVWAREVJ-BMhpCH5D.js";
|
|
4
4
|
import { Button as It } from "./ui/Button.js";
|
|
5
5
|
import { J as Ke, K as Xe, L as Dt, l as as, M as os, O as is, j as V, b as ls } from "./ZudokuContext-BUZ5hkWB.js";
|
|
6
6
|
import { Z as cs } from "./invariant-Bm-FVUQE.js";
|
|
7
7
|
import * as Q from "react";
|
|
8
|
-
import { createContext as Ft, use as ds, useRef as
|
|
8
|
+
import { createContext as Ft, use as ds, useRef as E, useEffect as G, useMemo as zt, useCallback as D, startTransition as us, useState as R, Fragment as le, useLayoutEffect as ms, useTransition as ps, useContext as hs } from "react";
|
|
9
9
|
import { VisuallyHidden as fs } from "@radix-ui/react-visually-hidden";
|
|
10
10
|
import { useAuth as gs } from "./zudoku.hooks.js";
|
|
11
11
|
import { B as q } from "./Button-B3ucvvQw.js";
|
|
@@ -18,8 +18,8 @@ import { h as jt, i as Ct, j as Nt, k as As, g as $s } from "./ErrorAlert-D5LKLF
|
|
|
18
18
|
import { c as w } from "./cn-dYga0KKN.js";
|
|
19
19
|
import { u as Os } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
20
|
import { u as Ps } from "./useLatest-hmRS46UF.js";
|
|
21
|
-
import { D as Ht, a as Qt, b as Jt, d as Ls, e as ks, f as
|
|
22
|
-
import { Slot as
|
|
21
|
+
import { D as Ht, a as Qt, b as Jt, d as Ls, e as ks, f as Es, c as Ae } from "./DropdownMenu-BZ2NKQ3K.js";
|
|
22
|
+
import { Slot as Rs } from "@radix-ui/react-slot";
|
|
23
23
|
import * as St from "@radix-ui/react-checkbox";
|
|
24
24
|
import * as $e from "@radix-ui/react-popover";
|
|
25
25
|
import { PopoverAnchor as Is } from "@radix-ui/react-popover";
|
|
@@ -41,7 +41,7 @@ class Gs {
|
|
|
41
41
|
constructor(n) {
|
|
42
42
|
this.config = n;
|
|
43
43
|
}
|
|
44
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
44
|
+
#e = async () => (_e || (_e = import("./createServer-BmcVQAOQ.js").then(
|
|
45
45
|
(n) => n.createServer(this.config)
|
|
46
46
|
)), _e);
|
|
47
47
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -1286,7 +1286,7 @@ const wr = new Y(
|
|
|
1286
1286
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Pr,
|
|
1287
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": Lr
|
|
1288
1288
|
};
|
|
1289
|
-
function
|
|
1289
|
+
function Er(e) {
|
|
1290
1290
|
return kr[e] ?? {};
|
|
1291
1291
|
}
|
|
1292
1292
|
function B({
|
|
@@ -1316,7 +1316,7 @@ function _({
|
|
|
1316
1316
|
}
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Rr() {
|
|
1320
1320
|
const n = navigator.userAgent.toLowerCase();
|
|
1321
1321
|
if (n.indexOf("win") !== -1)
|
|
1322
1322
|
return "windows";
|
|
@@ -1328,7 +1328,7 @@ function Er() {
|
|
|
1328
1328
|
return "unix";
|
|
1329
1329
|
}
|
|
1330
1330
|
function Ir() {
|
|
1331
|
-
return
|
|
1331
|
+
return Rr() === "apple";
|
|
1332
1332
|
}
|
|
1333
1333
|
const Dr = {
|
|
1334
1334
|
other: {
|
|
@@ -1346,7 +1346,7 @@ const Dr = {
|
|
|
1346
1346
|
option: "⌥"
|
|
1347
1347
|
}
|
|
1348
1348
|
}, Fr = (e, n) => {
|
|
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
|
+
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 = E(n);
|
|
1350
1350
|
return G(() => {
|
|
1351
1351
|
l.current = n;
|
|
1352
1352
|
}, [n]), G(() => {
|
|
@@ -1456,7 +1456,7 @@ const ke = (e = 0) => {
|
|
|
1456
1456
|
/* @__PURE__ */ t.jsx(Jt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1457
1457
|
/* @__PURE__ */ t.jsx(Ls, { children: s.mediaType }),
|
|
1458
1458
|
/* @__PURE__ */ t.jsx(ks, {}),
|
|
1459
|
-
/* @__PURE__ */ t.jsx(
|
|
1459
|
+
/* @__PURE__ */ t.jsx(Es, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1460
1460
|
Ae,
|
|
1461
1461
|
{
|
|
1462
1462
|
onSelect: () => n(a, s.mediaType),
|
|
@@ -1489,7 +1489,7 @@ const ke = (e = 0) => {
|
|
|
1489
1489
|
cn.displayName = "Input";
|
|
1490
1490
|
const ye = (e, n) => {
|
|
1491
1491
|
const s = Q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1492
|
-
const c = r ?
|
|
1492
|
+
const c = r ? Rs : e;
|
|
1493
1493
|
return Q.createElement(c, {
|
|
1494
1494
|
...o,
|
|
1495
1495
|
ref: i,
|
|
@@ -1497,7 +1497,7 @@ const ye = (e, n) => {
|
|
|
1497
1497
|
});
|
|
1498
1498
|
});
|
|
1499
1499
|
return s.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, s;
|
|
1500
|
-
},
|
|
1500
|
+
}, Ee = ye(
|
|
1501
1501
|
"div",
|
|
1502
1502
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
|
|
1503
1503
|
), xe = ye(
|
|
@@ -1521,7 +1521,7 @@ const ye = (e, n) => {
|
|
|
1521
1521
|
onClick: e,
|
|
1522
1522
|
type: "button",
|
|
1523
1523
|
"data-slot": "remove-button",
|
|
1524
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1524
|
+
children: /* @__PURE__ */ t.jsx(Et, { size: 14 })
|
|
1525
1525
|
}
|
|
1526
1526
|
);
|
|
1527
1527
|
function ve({
|
|
@@ -1542,14 +1542,14 @@ function ve({
|
|
|
1542
1542
|
{
|
|
1543
1543
|
"data-slot": "checkbox-indicator",
|
|
1544
1544
|
className: "grid place-content-center text-current transition-none",
|
|
1545
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1545
|
+
children: /* @__PURE__ */ t.jsx(Rt, { className: "size-3.5" })
|
|
1546
1546
|
}
|
|
1547
1547
|
)
|
|
1548
1548
|
}
|
|
1549
1549
|
);
|
|
1550
1550
|
}
|
|
1551
1551
|
const _r = ({ index: e, manager: n }) => {
|
|
1552
|
-
const s =
|
|
1552
|
+
const s = E(null), a = n.getValue(e, "value");
|
|
1553
1553
|
return /* @__PURE__ */ t.jsxs(xe, { children: [
|
|
1554
1554
|
/* @__PURE__ */ t.jsx(
|
|
1555
1555
|
ve,
|
|
@@ -1586,7 +1586,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1586
1586
|
size: "icon-xs",
|
|
1587
1587
|
className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
|
|
1588
1588
|
onClick: () => n.setValue(e, "value", ""),
|
|
1589
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1589
|
+
children: /* @__PURE__ */ t.jsx(En, { size: 13 })
|
|
1590
1590
|
}
|
|
1591
1591
|
)
|
|
1592
1592
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1637,7 +1637,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1637
1637
|
watch: c,
|
|
1638
1638
|
setFocus: l,
|
|
1639
1639
|
register: m
|
|
1640
|
-
} = ae(), { fields: d, append: h, remove: x } = Gt({ control: n, name: s }), f = c(s), b =
|
|
1640
|
+
} = ae(), { fields: d, append: h, remove: x } = Gt({ control: n, name: s }), f = c(s), b = E(-1), u = E(-1), y = D(
|
|
1641
1641
|
(g, C, T, A) => {
|
|
1642
1642
|
(C === "value" || C === "name") && (b.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
|
|
1643
1643
|
C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
|
|
@@ -1777,7 +1777,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1777
1777
|
"bodyMode",
|
|
1778
1778
|
"body",
|
|
1779
1779
|
"multipartFormFields"
|
|
1780
|
-
]), h =
|
|
1780
|
+
]), h = E(null), [x, f] = R(!1), b = (j) => {
|
|
1781
1781
|
s("file", j), j && s(
|
|
1782
1782
|
"headers",
|
|
1783
1783
|
i.filter(
|
|
@@ -1803,7 +1803,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1803
1803
|
});
|
|
1804
1804
|
return /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
1805
1805
|
/* @__PURE__ */ t.jsxs(Z, { className: "items-center", children: [
|
|
1806
|
-
/* @__PURE__ */ t.jsx(
|
|
1806
|
+
/* @__PURE__ */ t.jsx(Rn, { size: 16 }),
|
|
1807
1807
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
|
|
1808
1808
|
"Body",
|
|
1809
1809
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
@@ -1959,14 +1959,14 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1959
1959
|
variant: "ghost",
|
|
1960
1960
|
size: "icon-xxs",
|
|
1961
1961
|
onClick: () => b(null),
|
|
1962
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1962
|
+
children: /* @__PURE__ */ t.jsx(Et, { size: 14 })
|
|
1963
1963
|
}
|
|
1964
1964
|
)
|
|
1965
1965
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "text-lg font-semibold text-muted-foreground", children: "Select or drop a file" })
|
|
1966
1966
|
]
|
|
1967
1967
|
}
|
|
1968
1968
|
),
|
|
1969
|
-
l === "multipart" && /* @__PURE__ */ t.jsx(
|
|
1969
|
+
l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: k.fields.map((j, P) => /* @__PURE__ */ t.jsx(_r, { index: P, manager: k }, j.id)) })
|
|
1970
1970
|
] })
|
|
1971
1971
|
] });
|
|
1972
1972
|
}, Ot = (e, n, s) => {
|
|
@@ -2028,7 +2028,7 @@ const Hr = ({
|
|
|
2028
2028
|
ref: c,
|
|
2029
2029
|
onSelect: l
|
|
2030
2030
|
}) => {
|
|
2031
|
-
const [m, d] =
|
|
2031
|
+
const [m, d] = R(!1), [h, x] = R(!1), f = Ds((u) => u.filtered.count), b = E(null);
|
|
2032
2032
|
return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
|
|
2033
2033
|
/* @__PURE__ */ t.jsx(Is, { children: /* @__PURE__ */ t.jsx(
|
|
2034
2034
|
zs,
|
|
@@ -2130,7 +2130,7 @@ const Hr = ({
|
|
|
2130
2130
|
/* @__PURE__ */ t.jsx(Dn, { size: 14 }),
|
|
2131
2131
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2132
2132
|
] }),
|
|
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(
|
|
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(Ee, { children: [
|
|
2134
2134
|
m.map((d) => /* @__PURE__ */ t.jsxs(jt, { children: [
|
|
2135
2135
|
/* @__PURE__ */ t.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2136
2136
|
xe,
|
|
@@ -2232,7 +2232,7 @@ const Hr = ({
|
|
|
2232
2232
|
] });
|
|
2233
2233
|
}, Wr = qs(
|
|
2234
2234
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2235
|
-
),
|
|
2235
|
+
), Re = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2236
2236
|
Wt.Root,
|
|
2237
2237
|
{
|
|
2238
2238
|
ref: s,
|
|
@@ -2240,7 +2240,7 @@ const Hr = ({
|
|
|
2240
2240
|
...n
|
|
2241
2241
|
}
|
|
2242
2242
|
));
|
|
2243
|
-
|
|
2243
|
+
Re.displayName = Wt.Root.displayName;
|
|
2244
2244
|
const un = Q.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2245
2245
|
fe.Root,
|
|
2246
2246
|
{
|
|
@@ -2277,7 +2277,7 @@ const pn = ({
|
|
|
2277
2277
|
disabled: e?.length === 0,
|
|
2278
2278
|
children: [{ id: pe, label: "None" }, ...e ?? []].map(
|
|
2279
2279
|
(a) => /* @__PURE__ */ t.jsxs(
|
|
2280
|
-
|
|
2280
|
+
Re,
|
|
2281
2281
|
{
|
|
2282
2282
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
2283
2283
|
children: [
|
|
@@ -2295,7 +2295,7 @@ const pn = ({
|
|
|
2295
2295
|
open: s,
|
|
2296
2296
|
onOpenChange: a
|
|
2297
2297
|
}) => {
|
|
2298
|
-
const [r, o] =
|
|
2298
|
+
const [r, o] = R(void 0), [i, c] = R(!1);
|
|
2299
2299
|
return /* @__PURE__ */ t.jsx(Ze, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(Ye, { children: [
|
|
2300
2300
|
/* @__PURE__ */ t.jsx(et, { children: "Select an auth identity" }),
|
|
2301
2301
|
/* @__PURE__ */ t.jsx(Vt, { children: "Please select an identity for this request." }),
|
|
@@ -2319,7 +2319,7 @@ const pn = ({
|
|
|
2319
2319
|
)
|
|
2320
2320
|
}
|
|
2321
2321
|
),
|
|
2322
|
-
/* @__PURE__ */ t.jsx(
|
|
2322
|
+
/* @__PURE__ */ t.jsx(Re, { htmlFor: "remember", children: "Remember my choice" })
|
|
2323
2323
|
] }),
|
|
2324
2324
|
/* @__PURE__ */ t.jsx(
|
|
2325
2325
|
q,
|
|
@@ -2355,7 +2355,7 @@ const pn = ({
|
|
|
2355
2355
|
children: r,
|
|
2356
2356
|
onClick: o
|
|
2357
2357
|
}) => {
|
|
2358
|
-
const i =
|
|
2358
|
+
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Xr(l), h = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, f = `hsl(${d} / 50%)`;
|
|
2359
2359
|
return G(() => {
|
|
2360
2360
|
if (!c || !i.current) return;
|
|
2361
2361
|
const b = () => {
|
|
@@ -2405,7 +2405,7 @@ const pn = ({
|
|
|
2405
2405
|
}), a = [...s].sort(
|
|
2406
2406
|
(r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
|
|
2407
2407
|
);
|
|
2408
|
-
return /* @__PURE__ */ t.jsx(
|
|
2408
|
+
return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(xe, { children: [
|
|
2409
2409
|
/* @__PURE__ */ t.jsx(
|
|
2410
2410
|
bt,
|
|
2411
2411
|
{
|
|
@@ -2446,7 +2446,7 @@ const pn = ({
|
|
|
2446
2446
|
/* @__PURE__ */ t.jsx(Bn, { size: 16 }),
|
|
2447
2447
|
/* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
|
|
2448
2448
|
] }),
|
|
2449
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
2449
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
|
|
2450
2450
|
const m = n.find(
|
|
2451
2451
|
(f) => f.name === a.at(l)?.name
|
|
2452
2452
|
), d = m?.enum && m.enum.length > 0, h = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
@@ -2510,13 +2510,13 @@ const pn = ({
|
|
|
2510
2510
|
onLogin: a,
|
|
2511
2511
|
onSkip: r
|
|
2512
2512
|
}) => {
|
|
2513
|
-
const [o, i] =
|
|
2513
|
+
const [o, i] = R(!1), c = () => {
|
|
2514
2514
|
r?.(o), n(!1);
|
|
2515
2515
|
};
|
|
2516
2516
|
return /* @__PURE__ */ t.jsx(Ze, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(Ye, { children: [
|
|
2517
2517
|
/* @__PURE__ */ t.jsx(et, { children: "Welcome to the Playground!" }),
|
|
2518
2518
|
/* @__PURE__ */ t.jsx(Vt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2519
|
-
/* @__PURE__ */ t.jsxs(
|
|
2519
|
+
/* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
|
|
2520
2520
|
/* @__PURE__ */ t.jsx(
|
|
2521
2521
|
ve,
|
|
2522
2522
|
{
|
|
@@ -2622,7 +2622,7 @@ const pn = ({
|
|
|
2622
2622
|
return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2623
2623
|
}
|
|
2624
2624
|
}, oa = () => {
|
|
2625
|
-
const e =
|
|
2625
|
+
const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
|
|
2626
2626
|
if (n.current) {
|
|
2627
2627
|
const o = Date.now() - s.current;
|
|
2628
2628
|
n.current.nodeValue = o.toFixed();
|
|
@@ -2746,7 +2746,7 @@ const da = (e) => Object.entries({
|
|
|
2746
2746
|
"div",
|
|
2747
2747
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2748
2748
|
), ue = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
|
|
2749
|
-
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] =
|
|
2749
|
+
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = R(!a);
|
|
2750
2750
|
return /* @__PURE__ */ t.jsx(
|
|
2751
2751
|
ue,
|
|
2752
2752
|
{
|
|
@@ -2772,7 +2772,7 @@ const da = (e) => Object.entries({
|
|
|
2772
2772
|
fileName: o,
|
|
2773
2773
|
blob: i
|
|
2774
2774
|
}) => {
|
|
2775
|
-
const c = ua(n), l = ma(e), m = l || e, [d, h] =
|
|
2775
|
+
const c = ua(n), l = ma(e), m = l || e, [d, h] = R(
|
|
2776
2776
|
l ? "formatted" : "raw"
|
|
2777
2777
|
), x = as({
|
|
2778
2778
|
queryKey: ["types", m],
|
|
@@ -3012,7 +3012,7 @@ const pe = "__none", ga = ({
|
|
|
3012
3012
|
}) => {
|
|
3013
3013
|
const { selectedServer: x, setSelectedServer: f } = Vr(
|
|
3014
3014
|
n.map((p) => ({ url: p }))
|
|
3015
|
-
), [b, u] =
|
|
3015
|
+
), [b, u] = R(!1), y = is(), { setRememberedIdentity: S, getRememberedIdentity: N } = ta(), [, k] = ps(), { skipLogin: j, setSkipLogin: P } = fn(), [ie, be] = R(!1), [Ie, ee] = R(!1), g = E(void 0), C = Ps(S), T = E(null), { label: A } = Fr("meta+enter", () => {
|
|
3016
3016
|
T.current?.requestSubmit();
|
|
3017
3017
|
}), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
|
|
3018
3018
|
(p, se) => M.indexOf(p.name) - M.indexOf(se.name)
|
|
@@ -3071,7 +3071,11 @@ const pe = "__none", ga = ({
|
|
|
3071
3071
|
}
|
|
3072
3072
|
const W = new Request(
|
|
3073
3073
|
Ot(e ?? x, s, p),
|
|
3074
|
-
{
|
|
3074
|
+
{
|
|
3075
|
+
method: a,
|
|
3076
|
+
headers: Ve,
|
|
3077
|
+
body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ce
|
|
3078
|
+
}
|
|
3075
3079
|
);
|
|
3076
3080
|
p.identity !== pe && await y.data?.find(($) => $.id === p.identity)?.authorizeRequest(W);
|
|
3077
3081
|
const Be = setTimeout(
|
|
@@ -3136,7 +3140,7 @@ const pe = "__none", ga = ({
|
|
|
3136
3140
|
) : $;
|
|
3137
3141
|
}
|
|
3138
3142
|
}
|
|
3139
|
-
}), lt = J.isPending, [Cn, Nn] =
|
|
3143
|
+
}), lt = J.isPending, [Cn, Nn] = R(!1);
|
|
3140
3144
|
G(() => {
|
|
3141
3145
|
const p = setTimeout(() => Nn(lt), 100);
|
|
3142
3146
|
return () => clearTimeout(p);
|
|
@@ -3235,7 +3239,7 @@ const pe = "__none", ga = ({
|
|
|
3235
3239
|
"hover:opacity-100 transition",
|
|
3236
3240
|
ct ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
3237
3241
|
),
|
|
3238
|
-
children: ct ? /* @__PURE__ */ t.jsx(
|
|
3242
|
+
children: ct ? /* @__PURE__ */ t.jsx(Rt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
|
|
3239
3243
|
}
|
|
3240
3244
|
) })
|
|
3241
3245
|
] }),
|
|
@@ -3316,7 +3320,7 @@ const pe = "__none", ga = ({
|
|
|
3316
3320
|
}
|
|
3317
3321
|
);
|
|
3318
3322
|
}, xa = (e) => {
|
|
3319
|
-
const [n, s] =
|
|
3323
|
+
const [n, s] = R(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = gs();
|
|
3320
3324
|
return /* @__PURE__ */ t.jsxs(Ze, { onOpenChange: (l) => s(l), children: [
|
|
3321
3325
|
/* @__PURE__ */ t.jsx(xs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
|
|
3322
3326
|
Zn,
|
|
@@ -3393,7 +3397,7 @@ const pe = "__none", ga = ({
|
|
|
3393
3397
|
}, kt = (e) => ({
|
|
3394
3398
|
path: e.routePath,
|
|
3395
3399
|
async lazy() {
|
|
3396
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3400
|
+
const { OasProvider: n } = await import("./OasProvider-CpniNNrW.js");
|
|
3397
3401
|
return {
|
|
3398
3402
|
element: /* @__PURE__ */ t.jsx(
|
|
3399
3403
|
n,
|
|
@@ -3414,7 +3418,7 @@ const pe = "__none", ga = ({
|
|
|
3414
3418
|
}) => ({
|
|
3415
3419
|
path: e,
|
|
3416
3420
|
async lazy() {
|
|
3417
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3421
|
+
const { OperationList: a } = await import("./OperationList-CmMoKpGu.js");
|
|
3418
3422
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3419
3423
|
}
|
|
3420
3424
|
}), ba = ({
|
|
@@ -3436,7 +3440,7 @@ const pe = "__none", ga = ({
|
|
|
3436
3440
|
}, ja = ({ path: e }) => ({
|
|
3437
3441
|
path: e,
|
|
3438
3442
|
async lazy() {
|
|
3439
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3443
|
+
const { OperationList: n } = await import("./OperationList-CmMoKpGu.js");
|
|
3440
3444
|
return {
|
|
3441
3445
|
element: /* @__PURE__ */ t.jsx(
|
|
3442
3446
|
ba,
|
|
@@ -3457,7 +3461,7 @@ const pe = "__none", ga = ({
|
|
|
3457
3461
|
{
|
|
3458
3462
|
path: V(e, "~schemas"),
|
|
3459
3463
|
lazy: async () => {
|
|
3460
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3464
|
+
const { SchemaList: n } = await import("./SchemaList-BykD27ga.js");
|
|
3461
3465
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3462
3466
|
}
|
|
3463
3467
|
}
|
|
@@ -3506,7 +3510,7 @@ const pe = "__none", ga = ({
|
|
|
3506
3510
|
config: n
|
|
3507
3511
|
});
|
|
3508
3512
|
});
|
|
3509
|
-
}, bn =
|
|
3513
|
+
}, bn = Er(`
|
|
3510
3514
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3511
3515
|
schema(input: $input, type: $type) {
|
|
3512
3516
|
extensions
|
|
@@ -3656,7 +3660,7 @@ export {
|
|
|
3656
3660
|
vn as d,
|
|
3657
3661
|
Vr as e,
|
|
3658
3662
|
hn as f,
|
|
3659
|
-
|
|
3663
|
+
Er as g,
|
|
3660
3664
|
na as h,
|
|
3661
3665
|
Cr as i,
|
|
3662
3666
|
At as j,
|
|
@@ -3677,4 +3681,4 @@ export {
|
|
|
3677
3681
|
bn as y,
|
|
3678
3682
|
eo as z
|
|
3679
3683
|
};
|
|
3680
|
-
//# sourceMappingURL=index-
|
|
3684
|
+
//# sourceMappingURL=index-unv8c40u.js.map
|