zudoku 0.66.7 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cli/common/version-check.js +12 -3
  2. package/dist/cli/common/version-check.js.map +1 -1
  3. package/dist/config/validators/validate.d.ts +21 -3
  4. package/dist/config/validators/validate.js +6 -3
  5. package/dist/config/validators/validate.js.map +1 -1
  6. package/dist/flat-config.d.ts +25 -24
  7. package/dist/lib/plugins/openapi/OasProvider.js +6 -2
  8. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  9. package/dist/lib/plugins/openapi/OperationList.js +4 -8
  10. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  11. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
  12. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +3 -0
  13. package/dist/lib/plugins/openapi/util/getRoutes.js +2 -1
  14. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  15. package/dist/vite/api/SchemaManager.d.ts +11 -1
  16. package/dist/vite/api/SchemaManager.js +28 -17
  17. package/dist/vite/api/SchemaManager.js.map +1 -1
  18. package/dist/vite/api/SchemaManager.test.js +44 -0
  19. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  20. package/dist/vite/error-handler.js +1 -5
  21. package/dist/vite/error-handler.js.map +1 -1
  22. package/dist/vite/plugin-api.js +5 -3
  23. package/dist/vite/plugin-api.js.map +1 -1
  24. package/lib/OasProvider-D-4BX8P3.js +48 -0
  25. package/lib/OasProvider-D-4BX8P3.js.map +1 -0
  26. package/lib/{OperationList-CaknPbvq.js → OperationList-BOu9Qd_k.js} +817 -820
  27. package/lib/{OperationList-CaknPbvq.js.map → OperationList-BOu9Qd_k.js.map} +1 -1
  28. package/lib/{SchemaList-Dw3-CJPb.js → SchemaList-B167Xmbd.js} +3 -3
  29. package/lib/{SchemaList-Dw3-CJPb.js.map → SchemaList-B167Xmbd.js.map} +1 -1
  30. package/lib/{SchemaView-DyJkiQkD.js → SchemaView-Dx9gtne2.js} +2 -2
  31. package/lib/{SchemaView-DyJkiQkD.js.map → SchemaView-Dx9gtne2.js.map} +1 -1
  32. package/lib/{circular-DFquXeY2.js → circular-B5aq06Lb.js} +2 -2
  33. package/lib/{circular-DFquXeY2.js.map → circular-B5aq06Lb.js.map} +1 -1
  34. package/lib/{createServer-BXZ0CAUn.js → createServer-CasZ-UG7.js} +3 -3
  35. package/lib/{createServer-BXZ0CAUn.js.map → createServer-CasZ-UG7.js.map} +1 -1
  36. package/lib/{index-BQB9hb6n.js → index-BcAudYNw.js} +52 -49
  37. package/lib/{index-BQB9hb6n.js.map → index-BcAudYNw.js.map} +1 -1
  38. package/lib/zudoku.plugin-openapi.js +1 -1
  39. package/package.json +2 -2
  40. package/src/lib/plugins/openapi/OasProvider.tsx +10 -2
  41. package/src/lib/plugins/openapi/OperationList.tsx +4 -9
  42. package/src/lib/plugins/openapi/interfaces.ts +6 -1
  43. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -1
  44. package/lib/OasProvider-DSe-hk5Y.js +0 -40
  45. package/lib/OasProvider-DSe-hk5Y.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 Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as ue, TrashIcon as En, FileInput as Rn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as bt, CornerDownLeftIcon as qn, SquareCodeIcon as Mn, DownloadIcon as Un, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Xn, ShapesIcon as Kn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
2
+ import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as En, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as ue, TrashIcon as kn, FileInput as Rn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as bt, CornerDownLeftIcon as qn, SquareCodeIcon as Mn, DownloadIcon as Un, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Xn, ShapesIcon as Kn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
3
3
  import { r as es, d as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
4
4
  import { Button as Ft } from "./ui/Button.js";
5
5
  import { f as Ze, p as Ye, g as zt, s as as, h as os, j as V } from "./ZudokuContext-BZB1TWdT.js";
6
6
  import { Z as is } from "./invariant-BJAl77rw.js";
7
7
  import * as xe from "react";
8
- import { createContext as Vt, use as ls, useRef as k, useEffect as G, useMemo as Bt, useCallback as D, startTransition as cs, useState as E, Fragment as ie, useLayoutEffect as ds, useTransition as us, useContext as ms } from "react";
8
+ import { createContext as Vt, use as ls, useRef as E, useEffect as G, useMemo as Bt, useCallback as D, startTransition as cs, useState as k, Fragment as ie, useLayoutEffect as ds, useTransition as us, useContext as ms } from "react";
9
9
  import { VisuallyHidden as ps } from "@radix-ui/react-visually-hidden";
10
10
  import { z as hs, b as fs } from "./index-DBjOT2H1.js";
11
11
  import { B as q } from "./Button-GUVe7pmt.js";
@@ -24,8 +24,8 @@ import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
24
24
  import * as Tt from "@radix-ui/react-checkbox";
25
25
  import * as $e from "@radix-ui/react-popover";
26
26
  import { PopoverAnchor as Ls } from "@radix-ui/react-popover";
27
- import { P as ks } from "./index-CrcNWbel.js";
28
- import { f as Es, g as Rs, C as Is, b as Ds } from "./Command-N6VujV30.js";
27
+ import { P as Es } from "./index-CrcNWbel.js";
28
+ import { f as ks, g as Rs, C as Is, b as Ds } from "./Command-N6VujV30.js";
29
29
  import { C as Fs } from "./Card-DCdq37aA.js";
30
30
  import * as Kt from "@radix-ui/react-label";
31
31
  import { c as zs } from "./index-DI5SPFK9.js";
@@ -43,7 +43,7 @@ class Gs {
43
43
  constructor(n) {
44
44
  this.config = n;
45
45
  }
46
- #e = async () => (_e || (_e = import("./createServer-BXZ0CAUn.js").then(
46
+ #e = async () => (_e || (_e = import("./createServer-CasZ-UG7.js").then(
47
47
  (n) => n.createServer(this.config)
48
48
  )), _e);
49
49
  #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
@@ -1279,7 +1279,7 @@ const wr = new Y(
1279
1279
  }
1280
1280
  }
1281
1281
  }
1282
- `), kr = {
1282
+ `), Er = {
1283
1283
  "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
1284
1284
  "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": wr,
1285
1285
  "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
@@ -1288,8 +1288,8 @@ const wr = new Y(
1288
1288
  "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Or,
1289
1289
  "\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
1290
1290
  };
1291
- function Er(e) {
1292
- return kr[e] ?? {};
1291
+ function kr(e) {
1292
+ return Er[e] ?? {};
1293
1293
  }
1294
1294
  function B({
1295
1295
  ...e
@@ -1348,7 +1348,7 @@ const Dr = {
1348
1348
  option: "⌥"
1349
1349
  }
1350
1350
  }, Fr = (e, n) => {
1351
- const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = k(n);
1351
+ 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);
1352
1352
  return G(() => {
1353
1353
  l.current = n;
1354
1354
  }, [n]), G(() => {
@@ -1392,7 +1392,7 @@ const Dr = {
1392
1392
  )
1393
1393
  );
1394
1394
  dn.displayName = "Textarea";
1395
- const ke = (e = 0) => {
1395
+ const Ee = (e = 0) => {
1396
1396
  if (e === 0)
1397
1397
  return "0 B";
1398
1398
  const n = Math.floor(Math.log(e) / Math.log(1e3));
@@ -1425,7 +1425,7 @@ const ke = (e = 0) => {
1425
1425
  }
1426
1426
  ),
1427
1427
  /* @__PURE__ */ t.jsx(
1428
- kn,
1428
+ En,
1429
1429
  {
1430
1430
  className: "group-data-[state=open]:hidden shrink-0",
1431
1431
  size: 14
@@ -1474,7 +1474,7 @@ const ke = (e = 0) => {
1474
1474
  a.name
1475
1475
  )) })
1476
1476
  ] }, s.mediaType)) })
1477
- ] }), Ee = ye(
1477
+ ] }), ke = ye(
1478
1478
  "div",
1479
1479
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
1480
1480
  ), ge = ye(
@@ -1526,7 +1526,7 @@ function ve({
1526
1526
  );
1527
1527
  }
1528
1528
  const _r = ({ index: e, manager: n }) => {
1529
- const s = k(null), a = n.getValue(e, "value");
1529
+ const s = E(null), a = n.getValue(e, "value");
1530
1530
  return /* @__PURE__ */ t.jsxs(ge, { children: [
1531
1531
  /* @__PURE__ */ t.jsx(
1532
1532
  ve,
@@ -1550,7 +1550,7 @@ const _r = ({ index: e, manager: n }) => {
1550
1550
  "span",
1551
1551
  {
1552
1552
  className: "text-xs truncate",
1553
- title: `${a.name} (${ke(a.size)})`,
1553
+ title: `${a.name} (${Ee(a.size)})`,
1554
1554
  children: a.name
1555
1555
  }
1556
1556
  )
@@ -1563,7 +1563,7 @@ const _r = ({ index: e, manager: n }) => {
1563
1563
  size: "icon-xs",
1564
1564
  className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
1565
1565
  onClick: () => n.setValue(e, "value", ""),
1566
- children: /* @__PURE__ */ t.jsx(En, { size: 13 })
1566
+ children: /* @__PURE__ */ t.jsx(kn, { size: 13 })
1567
1567
  }
1568
1568
  )
1569
1569
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -1614,7 +1614,7 @@ const _r = ({ index: e, manager: n }) => {
1614
1614
  watch: c,
1615
1615
  setFocus: l,
1616
1616
  register: m
1617
- } = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v = k(-1), u = k(-1), y = D(
1617
+ } = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v = E(-1), u = E(-1), y = D(
1618
1618
  (g, C, T, A) => {
1619
1619
  (C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
1620
1620
  C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
@@ -1754,7 +1754,7 @@ const _r = ({ index: e, manager: n }) => {
1754
1754
  "bodyMode",
1755
1755
  "body",
1756
1756
  "multipartFormFields"
1757
- ]), f = k(null), [x, h] = E(!1), v = (j) => {
1757
+ ]), f = E(null), [x, h] = k(!1), v = (j) => {
1758
1758
  s("file", j), j && s(
1759
1759
  "headers",
1760
1760
  i.filter(
@@ -1925,7 +1925,7 @@ const _r = ({ index: e, manager: n }) => {
1925
1925
  " ",
1926
1926
  /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
1927
1927
  "(",
1928
- ke(c.size),
1928
+ Ee(c.size),
1929
1929
  ")"
1930
1930
  ] })
1931
1931
  ] }),
@@ -1943,7 +1943,7 @@ const _r = ({ index: e, manager: n }) => {
1943
1943
  ]
1944
1944
  }
1945
1945
  ),
1946
- l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: N }, j.id)) })
1946
+ l === "multipart" && /* @__PURE__ */ t.jsx(ke, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: N }, j.id)) })
1947
1947
  ] })
1948
1948
  ] });
1949
1949
  }, Lt = (e, n, s) => {
@@ -2005,7 +2005,7 @@ const Hr = ({
2005
2005
  ref: c,
2006
2006
  onSelect: l
2007
2007
  }) => {
2008
- const [m, d] = E(!1), [f, x] = E(!1), h = ks((u) => u.filtered.count), v = k(null);
2008
+ const [m, d] = k(!1), [f, x] = k(!1), h = Es((u) => u.filtered.count), v = E(null);
2009
2009
  return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
2010
2010
  /* @__PURE__ */ t.jsx(Ls, { children: /* @__PURE__ */ t.jsx(
2011
2011
  Rs,
@@ -2059,7 +2059,7 @@ const Hr = ({
2059
2059
  }
2060
2060
  )
2061
2061
  ] });
2062
- }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(Es, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
2062
+ }, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(ks, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
2063
2063
  "Accept",
2064
2064
  "Accept-Encoding",
2065
2065
  "Accept-Language",
@@ -2107,7 +2107,7 @@ const Hr = ({
2107
2107
  /* @__PURE__ */ t.jsx(Dn, { size: 14 }),
2108
2108
  /* @__PURE__ */ t.jsx(H, { children: "Headers" })
2109
2109
  ] }),
2110
- /* @__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: [
2110
+ /* @__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(ke, { children: [
2111
2111
  m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
2112
2112
  /* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
2113
2113
  ge,
@@ -2272,7 +2272,7 @@ const hn = ({
2272
2272
  open: s,
2273
2273
  onOpenChange: a
2274
2274
  }) => {
2275
- const [r, o] = E(void 0), [i, c] = E(!1);
2275
+ const [r, o] = k(void 0), [i, c] = k(!1);
2276
2276
  return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
2277
2277
  /* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
2278
2278
  /* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
@@ -2309,17 +2309,17 @@ const hn = ({
2309
2309
  ] }) });
2310
2310
  }, Ue = (e) => Math.abs(
2311
2311
  Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
2312
- ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), kt = (e, n = {}) => {
2312
+ ), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Et = (e, n = {}) => {
2313
2313
  const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
2314
2314
  return `${s}deg ${a}% ${r}%`;
2315
2315
  }, He = "data-linked-param", Kr = (e) => {
2316
2316
  const { resolvedTheme: n } = hs();
2317
2317
  return {
2318
- text: kt(
2318
+ text: Et(
2319
2319
  e,
2320
2320
  n === "light" ? { saturation: 95, lightness: 38 } : {}
2321
2321
  ),
2322
- background: kt(
2322
+ background: Et(
2323
2323
  e,
2324
2324
  n === "light" ? { saturation: 85, lightness: 40 } : {}
2325
2325
  )
@@ -2332,7 +2332,7 @@ const hn = ({
2332
2332
  children: r,
2333
2333
  onClick: o
2334
2334
  }) => {
2335
- const i = k(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Kr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
2335
+ const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Kr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
2336
2336
  return G(() => {
2337
2337
  if (!c || !i.current) return;
2338
2338
  const v = () => {
@@ -2382,7 +2382,7 @@ const hn = ({
2382
2382
  }), a = [...s].sort(
2383
2383
  (r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
2384
2384
  );
2385
- return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2385
+ return /* @__PURE__ */ t.jsx(ke, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
2386
2386
  /* @__PURE__ */ t.jsx(
2387
2387
  wt,
2388
2388
  {
@@ -2423,7 +2423,7 @@ const hn = ({
2423
2423
  /* @__PURE__ */ t.jsx(Bn, { size: 16 }),
2424
2424
  /* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
2425
2425
  ] }),
2426
- /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
2426
+ /* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(ke, { children: r.fields.map((c, l) => {
2427
2427
  const m = n.find(
2428
2428
  (h) => h.name === a.at(l)?.name
2429
2429
  ), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
@@ -2487,7 +2487,7 @@ const hn = ({
2487
2487
  onLogin: a,
2488
2488
  onSkip: r
2489
2489
  }) => {
2490
- const [o, i] = E(!1), c = () => {
2490
+ const [o, i] = k(!1), c = () => {
2491
2491
  r?.(o), n(!1);
2492
2492
  };
2493
2493
  return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
@@ -2599,7 +2599,7 @@ const hn = ({
2599
2599
  return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2600
2600
  }
2601
2601
  }, oa = () => {
2602
- const e = k(null), n = k(null), s = k(Date.now()), a = k(null), r = D(() => {
2602
+ const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
2603
2603
  if (n.current) {
2604
2604
  const o = Date.now() - s.current;
2605
2605
  n.current.nodeValue = o.toFixed();
@@ -2644,7 +2644,7 @@ const hn = ({
2644
2644
  /* @__PURE__ */ t.jsxs("div", { children: [
2645
2645
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2646
2646
  " ",
2647
- /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ke(s) : "- B" })
2647
+ /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Ee(s) : "- B" })
2648
2648
  ] }),
2649
2649
  /* @__PURE__ */ t.jsxs("div", { children: [
2650
2650
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -2723,7 +2723,7 @@ const da = (e) => Object.entries({
2723
2723
  "div",
2724
2724
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2725
2725
  ), de = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
2726
- const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = E(!a);
2726
+ const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
2727
2727
  return /* @__PURE__ */ t.jsx(
2728
2728
  de,
2729
2729
  {
@@ -2749,7 +2749,7 @@ const da = (e) => Object.entries({
2749
2749
  fileName: o,
2750
2750
  blob: i
2751
2751
  }) => {
2752
- const c = ua(n), l = ma(e), m = l || e, [d, f] = E(
2752
+ const c = ua(n), l = ma(e), m = l || e, [d, f] = k(
2753
2753
  l ? "formatted" : "raw"
2754
2754
  ), x = qs({
2755
2755
  queryKey: ["types", m],
@@ -2873,7 +2873,7 @@ const da = (e) => Object.entries({
2873
2873
  "Download ",
2874
2874
  o || "file",
2875
2875
  " (",
2876
- ke(a),
2876
+ Ee(a),
2877
2877
  ")"
2878
2878
  ]
2879
2879
  }
@@ -2989,7 +2989,7 @@ const me = "__none", ga = ({
2989
2989
  }) => {
2990
2990
  const { selectedServer: x, setSelectedServer: h } = Vr(
2991
2991
  n.map((p) => ({ url: p }))
2992
- ), [v, u] = E(!1), y = os(), { setRememberedIdentity: S, getRememberedIdentity: R } = ta(), [, N] = us(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = E(!1), [Ie, ee] = E(!1), g = k(void 0), C = Ts(S), T = k(null), { label: A } = Fr("meta+enter", () => {
2992
+ ), [v, u] = k(!1), y = os(), { setRememberedIdentity: S, getRememberedIdentity: R } = ta(), [, N] = us(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = k(!1), [Ie, ee] = k(!1), g = E(void 0), C = Ts(S), T = E(null), { label: A } = Fr("meta+enter", () => {
2993
2993
  T.current?.requestSubmit();
2994
2994
  }), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
2995
2995
  (p, se) => M.indexOf(p.name) - M.indexOf(se.name)
@@ -3117,7 +3117,7 @@ const me = "__none", ga = ({
3117
3117
  ) : $;
3118
3118
  }
3119
3119
  }
3120
- }), dt = J.isPending, [Cn, Nn] = E(!1);
3120
+ }), dt = J.isPending, [Cn, Nn] = k(!1);
3121
3121
  G(() => {
3122
3122
  const p = setTimeout(() => Nn(dt), 100);
3123
3123
  return () => clearTimeout(p);
@@ -3297,7 +3297,7 @@ const me = "__none", ga = ({
3297
3297
  }
3298
3298
  );
3299
3299
  }, xa = (e) => {
3300
- const [n, s] = E(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = fs();
3300
+ const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = fs();
3301
3301
  return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
3302
3302
  /* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
3303
3303
  Zn,
@@ -3336,7 +3336,7 @@ const me = "__none", ga = ({
3336
3336
  patch: "purple",
3337
3337
  options: "gray",
3338
3338
  head: "gray"
3339
- }, Et = ({
3339
+ }, kt = ({
3340
3340
  label: e,
3341
3341
  path: n,
3342
3342
  operations: s,
@@ -3374,7 +3374,7 @@ const me = "__none", ga = ({
3374
3374
  }, Qe = (e) => ({
3375
3375
  path: e.routePath,
3376
3376
  async lazy() {
3377
- const { OasProvider: n } = await import("./OasProvider-DSe-hk5Y.js");
3377
+ const { OasProvider: n } = await import("./OasProvider-D-4BX8P3.js");
3378
3378
  return {
3379
3379
  element: /* @__PURE__ */ t.jsx(
3380
3380
  n,
@@ -3395,7 +3395,7 @@ const me = "__none", ga = ({
3395
3395
  }) => ({
3396
3396
  path: e,
3397
3397
  async lazy() {
3398
- const { OperationList: a } = await import("./OperationList-CaknPbvq.js");
3398
+ const { OperationList: a } = await import("./OperationList-BOu9Qd_k.js");
3399
3399
  return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
3400
3400
  }
3401
3401
  }), ba = ({
@@ -3417,7 +3417,7 @@ const me = "__none", ga = ({
3417
3417
  }, Rt = ({ path: e }) => ({
3418
3418
  path: e,
3419
3419
  async lazy() {
3420
- const { OperationList: n } = await import("./OperationList-CaknPbvq.js");
3420
+ const { OperationList: n } = await import("./OperationList-BOu9Qd_k.js");
3421
3421
  return {
3422
3422
  element: /* @__PURE__ */ t.jsx(
3423
3423
  ba,
@@ -3438,7 +3438,7 @@ const me = "__none", ga = ({
3438
3438
  {
3439
3439
  path: V(e, "~schemas"),
3440
3440
  lazy: async () => {
3441
- const { SchemaList: n } = await import("./SchemaList-Dw3-CJPb.js");
3441
+ const { SchemaList: n } = await import("./SchemaList-B167Xmbd.js");
3442
3442
  return { element: /* @__PURE__ */ t.jsx(n, {}) };
3443
3443
  }
3444
3444
  }
@@ -3456,10 +3456,13 @@ const me = "__none", ga = ({
3456
3456
  ),
3457
3457
  ...Ke(e)
3458
3458
  ];
3459
- }, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {} } : {
3459
+ }, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
3460
3460
  versions: e.input.map((n) => n.path),
3461
3461
  labels: Object.fromEntries(
3462
3462
  e.input.map((n) => [n.path, n.label ?? n.path])
3463
+ ),
3464
+ downloadUrls: Object.fromEntries(
3465
+ e.input.map((n) => [n.path, n.downloadUrl])
3463
3466
  )
3464
3467
  }, Ca = ({
3465
3468
  basePath: e,
@@ -3502,7 +3505,7 @@ const me = "__none", ga = ({
3502
3505
  config: n
3503
3506
  })
3504
3507
  ];
3505
- }, bn = Er(`
3508
+ }, bn = kr(`
3506
3509
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3507
3510
  schema(input: $input, type: $type) {
3508
3511
  extensions
@@ -3586,7 +3589,7 @@ const me = "__none", ga = ({
3586
3589
  const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
3587
3590
  return [
3588
3591
  N.name,
3589
- Et({
3592
+ kt({
3590
3593
  label: N.extensions?.["x-displayName"] ?? N.name,
3591
3594
  path: j,
3592
3595
  operations: N.operations,
@@ -3619,7 +3622,7 @@ const me = "__none", ga = ({
3619
3622
  (N) => !N.name
3620
3623
  )?.operations;
3621
3624
  return R && R.length > 0 && S.push(
3622
- Et({
3625
+ kt({
3623
3626
  label: S.length === 0 ? "Endpoints" : "Other endpoints",
3624
3627
  path: V(n, i, lt),
3625
3628
  operations: R,
@@ -3650,7 +3653,7 @@ export {
3650
3653
  Sr as a,
3651
3654
  ce as b,
3652
3655
  _ as c,
3653
- Er as d,
3656
+ kr as d,
3654
3657
  Vr as e,
3655
3658
  fn as f,
3656
3659
  vn as g,
@@ -3674,4 +3677,4 @@ export {
3674
3677
  bn as y,
3675
3678
  to as z
3676
3679
  };
3677
- //# sourceMappingURL=index-BQB9hb6n.js.map
3680
+ //# sourceMappingURL=index-BcAudYNw.js.map