zudoku 0.32.6 → 0.33.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.
Files changed (205) hide show
  1. package/cli.js +3 -0
  2. package/dist/app/main.js +1 -1
  3. package/dist/app/main.js.map +1 -1
  4. package/dist/cli/build/handler.d.ts +1 -3
  5. package/dist/cli/build/handler.js +7 -0
  6. package/dist/cli/build/handler.js.map +1 -1
  7. package/dist/cli/cli.js +5 -0
  8. package/dist/cli/cli.js.map +1 -1
  9. package/dist/cli/cmds/build.d.ts +11 -3
  10. package/dist/cli/cmds/build.js +20 -13
  11. package/dist/cli/cmds/build.js.map +1 -1
  12. package/dist/cli/cmds/preview.d.ts +16 -0
  13. package/dist/cli/cmds/preview.js +25 -0
  14. package/dist/cli/cmds/preview.js.map +1 -0
  15. package/dist/cli/preview/handler.d.ts +3 -0
  16. package/dist/cli/preview/handler.js +37 -0
  17. package/dist/cli/preview/handler.js.map +1 -0
  18. package/dist/config/common.d.ts +5 -2
  19. package/dist/config/config.d.ts +2 -7
  20. package/dist/config/loader.d.ts +4 -4
  21. package/dist/config/loader.js +7 -4
  22. package/dist/config/loader.js.map +1 -1
  23. package/dist/config/validators/validate.d.ts +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/index.js.map +1 -1
  27. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  28. package/dist/lib/authentication/providers/auth0.js +1 -0
  29. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  30. package/dist/lib/authentication/providers/openid.d.ts +4 -3
  31. package/dist/lib/authentication/providers/openid.js +4 -2
  32. package/dist/lib/authentication/providers/openid.js.map +1 -1
  33. package/dist/lib/authentication/state.js +8 -2
  34. package/dist/lib/authentication/state.js.map +1 -1
  35. package/dist/lib/components/ThemeSwitch.js +1 -1
  36. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  37. package/dist/lib/components/Zudoku.d.ts +1 -1
  38. package/dist/lib/components/Zudoku.js +7 -6
  39. package/dist/lib/components/Zudoku.js.map +1 -1
  40. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  41. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  42. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  43. package/dist/lib/components/index.d.ts +1 -1
  44. package/dist/lib/core/RouteGuard.d.ts +1 -1
  45. package/dist/lib/core/RouteGuard.js +23 -18
  46. package/dist/lib/core/RouteGuard.js.map +1 -1
  47. package/dist/lib/core/ZudokuContext.d.ts +10 -0
  48. package/dist/lib/core/ZudokuContext.js +17 -1
  49. package/dist/lib/core/ZudokuContext.js.map +1 -1
  50. package/dist/lib/core/plugins.d.ts +8 -2
  51. package/dist/lib/core/plugins.js +1 -0
  52. package/dist/lib/core/plugins.js.map +1 -1
  53. package/dist/lib/hooks/index.d.ts +3 -0
  54. package/dist/lib/hooks/index.js +5 -0
  55. package/dist/lib/hooks/index.js.map +1 -0
  56. package/dist/lib/hooks/useEvent.d.ts +11 -0
  57. package/dist/lib/hooks/useEvent.js +19 -0
  58. package/dist/lib/hooks/useEvent.js.map +1 -0
  59. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  60. package/dist/lib/hooks/useEvent.test.js +100 -0
  61. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  62. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  63. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  64. package/dist/lib/ui/Stepper.d.ts +4 -0
  65. package/dist/lib/ui/Stepper.js +7 -0
  66. package/dist/lib/ui/Stepper.js.map +1 -0
  67. package/dist/lib/util/MdxComponents.d.ts +3 -1
  68. package/dist/lib/util/MdxComponents.js +3 -0
  69. package/dist/lib/util/MdxComponents.js.map +1 -1
  70. package/dist/vite/config.d.ts +2 -5
  71. package/dist/vite/config.js +21 -28
  72. package/dist/vite/config.js.map +1 -1
  73. package/dist/vite/config.test.js +1 -1
  74. package/dist/vite/config.test.js.map +1 -1
  75. package/dist/vite/css/plugin.d.ts +2 -2
  76. package/dist/vite/css/plugin.js.map +1 -1
  77. package/dist/vite/dev-server.js.map +1 -1
  78. package/dist/vite/plugin-api-keys.d.ts +2 -2
  79. package/dist/vite/plugin-api-keys.js +3 -3
  80. package/dist/vite/plugin-api-keys.js.map +1 -1
  81. package/dist/vite/plugin-api.d.ts +2 -2
  82. package/dist/vite/plugin-api.js +5 -5
  83. package/dist/vite/plugin-api.js.map +1 -1
  84. package/dist/vite/plugin-auth.d.ts +2 -2
  85. package/dist/vite/plugin-auth.js +3 -3
  86. package/dist/vite/plugin-auth.js.map +1 -1
  87. package/dist/vite/plugin-component.d.ts +2 -2
  88. package/dist/vite/plugin-component.js +3 -2
  89. package/dist/vite/plugin-component.js.map +1 -1
  90. package/dist/vite/plugin-config-reload.d.ts +4 -3
  91. package/dist/vite/plugin-config-reload.js +11 -8
  92. package/dist/vite/plugin-config-reload.js.map +1 -1
  93. package/dist/vite/plugin-config.d.ts +2 -2
  94. package/dist/vite/plugin-config.js +2 -2
  95. package/dist/vite/plugin-config.js.map +1 -1
  96. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  97. package/dist/vite/plugin-custom-pages.js +3 -3
  98. package/dist/vite/plugin-custom-pages.js.map +1 -1
  99. package/dist/vite/plugin-docs.d.ts +2 -2
  100. package/dist/vite/plugin-docs.js +5 -5
  101. package/dist/vite/plugin-docs.js.map +1 -1
  102. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  103. package/dist/vite/plugin-frontmatter.js +5 -4
  104. package/dist/vite/plugin-frontmatter.js.map +1 -1
  105. package/dist/vite/plugin-mdx.d.ts +2 -2
  106. package/dist/vite/plugin-mdx.js +1 -1
  107. package/dist/vite/plugin-mdx.js.map +1 -1
  108. package/dist/vite/plugin-redirect.d.ts +2 -2
  109. package/dist/vite/plugin-redirect.js +3 -3
  110. package/dist/vite/plugin-redirect.js.map +1 -1
  111. package/dist/vite/plugin-search.d.ts +2 -2
  112. package/dist/vite/plugin-search.js +1 -1
  113. package/dist/vite/plugin-search.js.map +1 -1
  114. package/dist/vite/plugin-sidebar.d.ts +2 -2
  115. package/dist/vite/plugin-sidebar.js +2 -2
  116. package/dist/vite/plugin-sidebar.js.map +1 -1
  117. package/dist/vite/plugin-theme-css.d.ts +2 -2
  118. package/dist/vite/plugin-theme-css.js.map +1 -1
  119. package/dist/vite/plugin.d.ts +2 -2
  120. package/dist/vite/plugin.js.map +1 -1
  121. package/dist/vite/prerender/FileWritingResponse.d.ts +2 -1
  122. package/dist/vite/prerender/FileWritingResponse.js +4 -1
  123. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  124. package/dist/vite/prerender/worker.d.ts +1 -1
  125. package/dist/vite/prerender/worker.js +3 -0
  126. package/dist/vite/prerender/worker.js.map +1 -1
  127. package/lib/{AuthenticationPlugin-BlxA4Mbn.js → AuthenticationPlugin-CiO1FM6Q.js} +2 -2
  128. package/lib/{AuthenticationPlugin-BlxA4Mbn.js.map → AuthenticationPlugin-CiO1FM6Q.js.map} +1 -1
  129. package/lib/Dialog-DIKGQxQc.js +83 -0
  130. package/lib/Dialog-DIKGQxQc.js.map +1 -0
  131. package/lib/{Markdown-Cr9sYpR_.js → Markdown-DePfm7oQ.js} +1384 -1381
  132. package/lib/{Markdown-Cr9sYpR_.js.map → Markdown-DePfm7oQ.js.map} +1 -1
  133. package/lib/{MdxPage-Dt-UEQl8.js → MdxPage-DZTt9ld7.js} +4 -4
  134. package/lib/{MdxPage-Dt-UEQl8.js.map → MdxPage-DZTt9ld7.js.map} +1 -1
  135. package/lib/{OasProvider-WVtvHP5H.js → OasProvider-SzD9mHJc.js} +3 -3
  136. package/lib/{OasProvider-WVtvHP5H.js.map → OasProvider-SzD9mHJc.js.map} +1 -1
  137. package/lib/{OperationList-DhOwupvv.js → OperationList-DDs9NblY.js} +242 -241
  138. package/lib/OperationList-DDs9NblY.js.map +1 -0
  139. package/lib/{Select-D9hI1G-y.js → Select-Dqtcn53H.js} +36 -36
  140. package/lib/{Select-D9hI1G-y.js.map → Select-Dqtcn53H.js.map} +1 -1
  141. package/lib/{SlotletProvider-CEfNOA8i.js → SlotletProvider-DdtIOUi6.js} +2 -2
  142. package/lib/{SlotletProvider-CEfNOA8i.js.map → SlotletProvider-DdtIOUi6.js.map} +1 -1
  143. package/lib/{createServer-DMf6O2Rz.js → createServer-DmusVVsi.js} +987 -967
  144. package/lib/createServer-DmusVVsi.js.map +1 -0
  145. package/lib/{hook-CWwSAAlH.js → hook-CN__aZIt.js} +67 -63
  146. package/lib/{hook-CWwSAAlH.js.map → hook-CN__aZIt.js.map} +1 -1
  147. package/lib/{index-Do_30Hpk.js → index-CibzSNks.js} +95 -93
  148. package/lib/{index-Do_30Hpk.js.map → index-CibzSNks.js.map} +1 -1
  149. package/lib/index-DwT-v3zK.js +86 -0
  150. package/lib/index-DwT-v3zK.js.map +1 -0
  151. package/lib/index-gQD2h1wX.js +447 -0
  152. package/lib/index-gQD2h1wX.js.map +1 -0
  153. package/lib/{mutation-B0wxqzSN.js → mutation-EclmI0is.js} +2 -2
  154. package/lib/{mutation-B0wxqzSN.js.map → mutation-EclmI0is.js.map} +1 -1
  155. package/lib/objectEntries-yMIkr2mI.js +5 -0
  156. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  157. package/lib/ui/Command.js +21 -20
  158. package/lib/ui/Command.js.map +1 -1
  159. package/lib/ui/Stepper.js +6 -0
  160. package/lib/ui/Stepper.js.map +1 -0
  161. package/lib/ui/SyntaxHighlight.js +2902 -7
  162. package/lib/ui/SyntaxHighlight.js.map +1 -1
  163. package/lib/{useScrollToAnchor-C-sRxs9o.js → useScrollToAnchor-C7ilRSts.js} +3 -3
  164. package/lib/{useScrollToAnchor-C-sRxs9o.js.map → useScrollToAnchor-C7ilRSts.js.map} +1 -1
  165. package/lib/zudoku.auth-auth0.js +15 -14
  166. package/lib/zudoku.auth-auth0.js.map +1 -1
  167. package/lib/zudoku.auth-clerk.js +2 -2
  168. package/lib/zudoku.auth-openid.js +126 -124
  169. package/lib/zudoku.auth-openid.js.map +1 -1
  170. package/lib/zudoku.components.js +441 -395
  171. package/lib/zudoku.components.js.map +1 -1
  172. package/lib/zudoku.css +1 -0
  173. package/lib/zudoku.hooks.js +19 -0
  174. package/lib/zudoku.hooks.js.map +1 -0
  175. package/lib/zudoku.plugin-api-catalog.js +2 -2
  176. package/lib/zudoku.plugin-api-keys.js +5 -5
  177. package/lib/zudoku.plugin-custom-pages.js +1 -1
  178. package/lib/zudoku.plugin-markdown.js +1 -1
  179. package/lib/zudoku.plugin-openapi.js +2 -2
  180. package/lib/zudoku.plugins.js +9 -8
  181. package/lib/zudoku.plugins.js.map +1 -1
  182. package/package.json +12 -4
  183. package/src/app/main.tsx +1 -1
  184. package/src/lib/authentication/providers/auth0.tsx +3 -2
  185. package/src/lib/authentication/providers/openid.tsx +8 -5
  186. package/src/lib/authentication/state.ts +8 -2
  187. package/src/lib/components/ThemeSwitch.tsx +1 -1
  188. package/src/lib/components/Zudoku.tsx +9 -5
  189. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  190. package/src/lib/core/RouteGuard.tsx +43 -18
  191. package/src/lib/core/ZudokuContext.ts +31 -0
  192. package/src/lib/core/plugins.ts +16 -2
  193. package/src/lib/hooks/index.ts +5 -0
  194. package/src/lib/hooks/useEvent.test.tsx +149 -0
  195. package/src/lib/hooks/useEvent.ts +41 -0
  196. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  197. package/src/lib/ui/Stepper.css +43 -0
  198. package/src/lib/ui/Stepper.tsx +8 -0
  199. package/src/lib/util/MdxComponents.tsx +4 -1
  200. package/lib/OperationList-DhOwupvv.js.map +0 -1
  201. package/lib/SyntaxHighlight-CcnUjERD.js +0 -2986
  202. package/lib/SyntaxHighlight-CcnUjERD.js.map +0 -1
  203. package/lib/createServer-DMf6O2Rz.js.map +0 -1
  204. package/lib/index-Du5aNddU.js +0 -509
  205. package/lib/index-Du5aNddU.js.map +0 -1
@@ -9,33 +9,35 @@ import { j as e } from "./jsx-runtime-CYK1ROHF.js";
9
9
  import { s as W } from "./index-LNp6rxyU.js";
10
10
  import { Circle as bt, ChevronRightIcon as B, CheckIcon as Nt, DotIcon as wt, Check as Ct, Search as Tt, XIcon as $t, ChevronDownIcon as St, InfoIcon as Le, LogInIcon as Pt, CirclePlayIcon as Rt } from "lucide-react";
11
11
  import { r as kt, m as Ve } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
12
- import { H as It, I as Ot, J as Et, k as At } from "./hook-CWwSAAlH.js";
12
+ import { m as It, o as Ot, p as Et, k as At } from "./hook-CN__aZIt.js";
13
13
  import { Button as K } from "./ui/Button.js";
14
14
  import { j as O } from "./joinUrl-10po2Jdj.js";
15
15
  import { Z as qt } from "./invariant-Caa8-XvF.js";
16
16
  import { VisuallyHidden as Dt } from "@radix-ui/react-visually-hidden";
17
17
  import * as x from "react";
18
- import { Fragment as k, useRef as q, useEffect as ge, useState as U, useCallback as Lt, useTransition as Vt } from "react";
19
- import { V as $, T as Ft, D as zt, b as Ht, a as Gt, c as Bt } from "./index-Du5aNddU.js";
20
- import { S as Qe, a as Ze, b as We, c as Ke, e as Q, u as Ut } from "./Select-D9hI1G-y.js";
21
- import { b as fe, u as ye, C as I, a as Mt, F as _t } from "./index.esm--gIChbWs.js";
18
+ import { Fragment as k, useRef as q, useEffect as fe, useState as U, useCallback as Lt, useTransition as Vt } from "react";
19
+ import { D as Ft, b as zt, a as Ht, c as Gt } from "./Dialog-DIKGQxQc.js";
20
+ import { S as Qe, a as Ze, b as We, c as Ke, e as Q, u as Bt } from "./Select-Dqtcn53H.js";
21
+ import { b as ge, u as ye, C as I, a as Ut, F as Mt } from "./index.esm--gIChbWs.js";
22
22
  import { c as ve } from "./index-CPNSgwSb.js";
23
23
  import { c as m } from "./cn-qaFjX9_3.js";
24
24
  import * as Xe from "@radix-ui/react-label";
25
25
  import * as M from "@radix-ui/react-radio-group";
26
- import { Card as je, CardHeader as Jt, CardTitle as Qt, CardContent as Zt } from "./ui/Card.js";
26
+ import { Card as je, CardHeader as _t, CardTitle as Jt, CardContent as Qt } from "./ui/Card.js";
27
27
  import { Tabs as Ye, TabsList as et, TabsTrigger as E, TabsContent as A } from "./ui/Tabs.js";
28
- import { z as Wt, S as Kt } from "./SyntaxHighlight-CcnUjERD.js";
29
- import { B as Z, S as Xt } from "./Spinner-1KrEmx1V.js";
28
+ import { z as Zt } from "./index-DwT-v3zK.js";
29
+ import { B as Z, S as Wt } from "./Spinner-1KrEmx1V.js";
30
30
  import * as j from "@radix-ui/react-dropdown-menu";
31
31
  import * as me from "@radix-ui/react-checkbox";
32
32
  import * as X from "@radix-ui/react-popover";
33
- import { PopoverAnchor as Yt } from "@radix-ui/react-popover";
33
+ import { PopoverAnchor as Kt } from "@radix-ui/react-popover";
34
+ import { V as $, T as Xt } from "./index-gQD2h1wX.js";
34
35
  import { Input as be } from "./ui/Input.js";
35
- import { Slot as ea } from "@radix-ui/react-slot";
36
- import { Callout as ta } from "./ui/Callout.js";
36
+ import { Slot as Yt } from "@radix-ui/react-slot";
37
+ import { Callout as ea } from "./ui/Callout.js";
37
38
  import { Collapsible as Fe, CollapsibleTrigger as ze, CollapsibleContent as He } from "./ui/Collapsible.js";
38
39
  import * as Ne from "@radix-ui/react-collapsible";
40
+ import { SyntaxHighlight as ta } from "./ui/SyntaxHighlight.js";
39
41
  let ie;
40
42
  const aa = (t) => {
41
43
  var a;
@@ -47,7 +49,7 @@ const aa = (t) => {
47
49
  var te, ae;
48
50
  class sa {
49
51
  constructor(a) {
50
- oe(this, te, async () => (ie || (ie = import("./createServer-DMf6O2Rz.js").then(
52
+ oe(this, te, async () => (ie || (ie = import("./createServer-DmusVVsi.js").then(
51
53
  (a) => a.createServer(this.config)
52
54
  )), ie));
53
55
  oe(this, ae, async (a) => this.config.server ? fetch(this.config.server, a) : (await re(this, te).call(this)).fetch("http://localhost/graphql", a));
@@ -335,14 +337,14 @@ const ua = ({
335
337
  const l = Array.from(n.matchAll(/{([^}]+)}/g)), c = [];
336
338
  let d = 0;
337
339
  return l.forEach((u) => {
338
- const [f, C] = u;
340
+ const [g, C] = u;
339
341
  if (!C) return;
340
342
  const b = u.index;
341
343
  b > d && c.push(
342
344
  /* @__PURE__ */ e.jsx(k, { children: n.slice(d, b) }, `text-${d}-${b}`)
343
345
  ), c.push(
344
- /* @__PURE__ */ e.jsx(k, { children: a({ name: C, originalValue: f, index: s++ }) }, `param-${C}`)
345
- ), d = b + f.length;
346
+ /* @__PURE__ */ e.jsx(k, { children: a({ name: C, originalValue: g, index: s++ }) }, `param-${C}`)
347
+ ), d = b + g.length;
346
348
  }), d < n.length && c.push(
347
349
  /* @__PURE__ */ e.jsx(k, { children: n.slice(d) }, `text-${d}-${n.length}`)
348
350
  ), // eslint-disable-next-line react/no-array-index-key
@@ -405,7 +407,7 @@ const le = (t) => Math.abs(
405
407
  const s = (3 * de(t) + 2 * de(t) + de(t)) % 360, { saturation: n = 75, lightness: r = 60 } = a;
406
408
  return `${s}deg ${n}% ${r}%`;
407
409
  }, ce = "data-linked-param", ha = (t) => {
408
- const { resolvedTheme: a } = Wt();
410
+ const { resolvedTheme: a } = Zt();
409
411
  return {
410
412
  text: Ge(
411
413
  t,
@@ -424,10 +426,10 @@ const le = (t) => Math.abs(
424
426
  children: r,
425
427
  onClick: i
426
428
  }) => {
427
- const l = q(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: u, background: f } = ha(d), C = `hsl(${u} / 100%)`, b = `hsl(${f} / 10%)`, p = `hsl(${f} / 50%)`;
428
- return ge(() => {
429
+ const l = q(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: u, background: g } = ha(d), C = `hsl(${u} / 100%)`, b = `hsl(${g} / 10%)`, p = `hsl(${g} / 50%)`;
430
+ return fe(() => {
429
431
  if (!c || !l.current) return;
430
- const g = () => {
432
+ const f = () => {
431
433
  document.querySelectorAll(`[${ce}="${c}"]`).forEach((y) => {
432
434
  y instanceof HTMLElement && (y.dataset.active = "true");
433
435
  });
@@ -436,8 +438,8 @@ const le = (t) => Math.abs(
436
438
  y instanceof HTMLElement && (y.dataset.active = "false");
437
439
  });
438
440
  }, v = l.current;
439
- return v.addEventListener("mouseenter", g), v.addEventListener("mouseleave", h), () => {
440
- v.removeEventListener("mouseenter", g), v.removeEventListener("mouseleave", h);
441
+ return v.addEventListener("mouseenter", f), v.addEventListener("mouseleave", h), () => {
442
+ v.removeEventListener("mouseenter", f), v.removeEventListener("mouseleave", h);
441
443
  };
442
444
  }, [c]), /* @__PURE__ */ e.jsx(
443
445
  "span",
@@ -474,7 +476,7 @@ const le = (t) => Math.abs(
474
476
  return s.queryParams.filter((i) => i.active).forEach((i) => {
475
477
  r.searchParams.set(i.name, i.value);
476
478
  }), r;
477
- }, nt = j.Root, rt = j.Trigger, ga = j.Group, fa = x.forwardRef(({ className: t, inset: a, children: s, ...n }, r) => /* @__PURE__ */ e.jsxs(
479
+ }, nt = j.Root, rt = j.Trigger, fa = j.Group, ga = x.forwardRef(({ className: t, inset: a, children: s, ...n }, r) => /* @__PURE__ */ e.jsxs(
478
480
  j.SubTrigger,
479
481
  {
480
482
  ref: r,
@@ -490,7 +492,7 @@ const le = (t) => Math.abs(
490
492
  ]
491
493
  }
492
494
  ));
493
- fa.displayName = j.SubTrigger.displayName;
495
+ ga.displayName = j.SubTrigger.displayName;
494
496
  const ya = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
495
497
  j.SubContent,
496
498
  {
@@ -595,7 +597,7 @@ const ba = ({
595
597
  return /* @__PURE__ */ e.jsxs("div", { children: [
596
598
  /* @__PURE__ */ e.jsx(ot, { children: s.mediaType }),
597
599
  /* @__PURE__ */ e.jsx(it, {}),
598
- /* @__PURE__ */ e.jsx(ga, { children: (n = s.examples) == null ? void 0 : n.map((r) => /* @__PURE__ */ e.jsx(
600
+ /* @__PURE__ */ e.jsx(fa, { children: (n = s.examples) == null ? void 0 : n.map((r) => /* @__PURE__ */ e.jsx(
599
601
  Te,
600
602
  {
601
603
  onSelect: () => a(r),
@@ -805,9 +807,9 @@ const Ea = ({
805
807
  onEnterPress: i,
806
808
  ref: l
807
809
  }) => {
808
- const [c, d] = U(!1), [u, f] = U(!1), C = Ft((p) => p.filtered.count), b = q(null);
810
+ const [c, d] = U(!1), [u, g] = U(!1), C = Xt((p) => p.filtered.count), b = q(null);
809
811
  return /* @__PURE__ */ e.jsxs(Oa, { open: c, children: [
810
- /* @__PURE__ */ e.jsx(Yt, { children: /* @__PURE__ */ e.jsx(
812
+ /* @__PURE__ */ e.jsx(Kt, { children: /* @__PURE__ */ e.jsx(
811
813
  dt,
812
814
  {
813
815
  ref: (p) => {
@@ -821,8 +823,8 @@ const Ea = ({
821
823
  u || d(!1);
822
824
  },
823
825
  onKeyDown: (p) => {
824
- var g;
825
- p.key === "Enter" && (d(!1), (g = b.current) == null || g.blur(), i == null || i(p));
826
+ var f;
827
+ p.key === "Enter" && (d(!1), (f = b.current) == null || f.blur(), i == null || i(p));
826
828
  },
827
829
  onValueChange: (p) => s(p)
828
830
  }
@@ -830,8 +832,8 @@ const Ea = ({
830
832
  /* @__PURE__ */ e.jsx(
831
833
  ut,
832
834
  {
833
- onMouseEnter: () => f(!0),
834
- onMouseLeave: () => f(!1),
835
+ onMouseEnter: () => g(!0),
836
+ onMouseLeave: () => g(!1),
835
837
  onOpenAutoFocus: (p) => p.preventDefault(),
836
838
  className: m("p-0 w-[--radix-popover-trigger-width]", {
837
839
  "border-0": C === 0
@@ -848,8 +850,8 @@ const Ea = ({
848
850
  mt,
849
851
  {
850
852
  value: p,
851
- onSelect: (g) => {
852
- s(g), d(!1);
853
+ onSelect: (f) => {
854
+ s(f), d(!1);
853
855
  },
854
856
  className: "cursor-pointer",
855
857
  children: p
@@ -861,7 +863,7 @@ const Ea = ({
861
863
  ] });
862
864
  }, ee = ({ shouldFilter: t, ...a }) => /* @__PURE__ */ e.jsx(lt, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Ea, { ...a }) }), Se = (t, a) => {
863
865
  const s = x.forwardRef(({ className: n, asChild: r, ...i }, l) => {
864
- const c = r ? ea : t;
866
+ const c = r ? Yt : t;
865
867
  return x.createElement(c, {
866
868
  ...i,
867
869
  ref: l,
@@ -906,26 +908,26 @@ const Ea = ({
906
908
  control: t,
907
909
  headers: a
908
910
  }) => {
909
- const { fields: s, append: n, remove: r } = fe({
911
+ const { fields: s, append: n, remove: r } = ge({
910
912
  control: t,
911
913
  name: "headers"
912
- }), { setValue: i, watch: l } = ye(), c = q([]), d = q([]), u = l("headers"), f = Lt(() => {
914
+ }), { setValue: i, watch: l } = ye(), c = q([]), d = q([]), u = l("headers"), g = Lt(() => {
913
915
  n({ name: "", value: "", active: !1 });
914
916
  }, [n]);
915
- ge(() => {
916
- u.length === 0 && f();
917
- }, [u, f]);
918
- const C = (g) => {
917
+ fe(() => {
918
+ u.length === 0 && g();
919
+ }, [u, g]);
920
+ const C = (f) => {
919
921
  var h;
920
- (h = c.current[g]) == null || h.focus();
921
- }, b = (g) => {
922
- f(), requestAnimationFrame(() => {
922
+ (h = c.current[f]) == null || h.focus();
923
+ }, b = (f) => {
924
+ g(), requestAnimationFrame(() => {
923
925
  var h;
924
- return (h = d.current[g + 1]) == null ? void 0 : h.focus();
926
+ return (h = d.current[f + 1]) == null ? void 0 : h.focus();
925
927
  });
926
- }, p = a.filter((g) => !u.some((h) => h.name === g.name)).map(({ name: g }) => g);
928
+ }, p = a.filter((f) => !u.some((h) => h.name === f.name)).map(({ name: f }) => f);
927
929
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
928
- /* @__PURE__ */ e.jsx(se, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Pe, { children: s.map((g, h) => {
930
+ /* @__PURE__ */ e.jsx(se, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Pe, { children: s.map((f, h) => {
929
931
  const v = a.find(
930
932
  (y) => y.name === l(`headers.${h}.name`)
931
933
  );
@@ -1019,13 +1021,13 @@ const Ea = ({
1019
1021
  }
1020
1022
  )
1021
1023
  ] })
1022
- ] }, g.id);
1024
+ ] }, f.id);
1023
1025
  }) }) }),
1024
1026
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
1025
1027
  K,
1026
1028
  {
1027
1029
  className: "",
1028
- onClick: f,
1030
+ onClick: g,
1029
1031
  type: "button",
1030
1032
  variant: "secondary",
1031
1033
  children: "Add header"
@@ -1035,7 +1037,7 @@ const Ea = ({
1035
1037
  }, Da = ({
1036
1038
  control: t
1037
1039
  }) => {
1038
- const { fields: a } = fe({
1040
+ const { fields: a } = ge({
1039
1041
  control: t,
1040
1042
  name: "pathParams"
1041
1043
  });
@@ -1079,7 +1081,7 @@ const Ea = ({
1079
1081
  control: t,
1080
1082
  queryParams: a
1081
1083
  }) => {
1082
- const { fields: s } = fe({
1084
+ const { fields: s } = ge({
1083
1085
  control: t,
1084
1086
  name: "queryParams"
1085
1087
  }), n = ye(), r = a.map((i) => !!i.isRequired);
@@ -1145,8 +1147,8 @@ const Ea = ({
1145
1147
  {
1146
1148
  value: d.value,
1147
1149
  options: c.enum ?? [],
1148
- onChange: (f) => {
1149
- d.onChange(f), n.setValue(`queryParams.${l}.active`, !0);
1150
+ onChange: (g) => {
1151
+ d.onChange(g), n.setValue(`queryParams.${l}.active`, !0);
1150
1152
  },
1151
1153
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1152
1154
  }
@@ -1154,8 +1156,8 @@ const Ea = ({
1154
1156
  be,
1155
1157
  {
1156
1158
  ...d,
1157
- onChange: (f) => {
1158
- d.onChange(f.target.value), f.target.value.length > 0 && n.setValue(`queryParams.${l}.active`, !0);
1159
+ onChange: (g) => {
1160
+ d.onChange(g.target.value), g.target.value.length > 0 && n.setValue(`queryParams.${l}.active`, !0);
1159
1161
  },
1160
1162
  placeholder: "Enter value",
1161
1163
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -1303,7 +1305,7 @@ const Ua = {
1303
1305
  url: i
1304
1306
  }) => {
1305
1307
  var p;
1306
- const l = _a(a), c = Ja(t), d = c || t, [u, f] = U(
1308
+ const l = _a(a), c = Ja(t), d = c || t, [u, g] = U(
1307
1309
  c ? "formatted" : "raw"
1308
1310
  ), C = It({
1309
1311
  queryKey: ["types", d],
@@ -1317,10 +1319,10 @@ const Ua = {
1317
1319
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1318
1320
  ] }),
1319
1321
  /* @__PURE__ */ e.jsx(Me, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1320
- b.slice(0, 5).map(([g, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1321
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: g }),
1322
+ b.slice(0, 5).map(([f, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1323
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1322
1324
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1323
- ] }, g)),
1325
+ ] }, f)),
1324
1326
  b.length > 5 && /* @__PURE__ */ e.jsxs(Be, { className: "col-span-full grid-cols-subgrid grid", children: [
1325
1327
  /* @__PURE__ */ e.jsxs(Ue, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1326
1328
  /* @__PURE__ */ e.jsx(B, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
@@ -1328,15 +1330,15 @@ const Ua = {
1328
1330
  b.length - 5,
1329
1331
  " more headers"
1330
1332
  ] }),
1331
- /* @__PURE__ */ e.jsx(Me, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: b.slice(5).map(([g, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1332
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: g }),
1333
+ /* @__PURE__ */ e.jsx(Me, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: b.slice(5).map(([f, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1334
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1333
1335
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1334
- ] }, g)) })
1336
+ ] }, f)) })
1335
1337
  ] })
1336
1338
  ] }) })
1337
1339
  ] }),
1338
1340
  /* @__PURE__ */ e.jsx(je, { className: "shadow-none", children: /* @__PURE__ */ e.jsx(
1339
- Kt,
1341
+ ta,
1340
1342
  {
1341
1343
  language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : l : "json",
1342
1344
  noBackground: !0,
@@ -1371,7 +1373,7 @@ const Ua = {
1371
1373
  Qe,
1372
1374
  {
1373
1375
  value: u,
1374
- onValueChange: (g) => f(g),
1376
+ onValueChange: (f) => g(f),
1375
1377
  children: [
1376
1378
  /* @__PURE__ */ e.jsx(Ze, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(We, { placeholder: "View" }) }),
1377
1379
  /* @__PURE__ */ e.jsxs(Ke, { children: [
@@ -1391,10 +1393,10 @@ const Ua = {
1391
1393
  var n;
1392
1394
  const s = ((((n = t.data) == null ? void 0 : n.status) ?? 0) / 100).toFixed(0);
1393
1395
  return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-8 bg-muted/70 overflow-y-auto", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1394
- a && /* @__PURE__ */ e.jsx(ta, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1396
+ a && /* @__PURE__ */ e.jsx(ea, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1395
1397
  /* @__PURE__ */ e.jsxs(je, { children: [
1396
- /* @__PURE__ */ e.jsx(Jt, { children: /* @__PURE__ */ e.jsx(Qt, { children: "Request failed" }) }),
1397
- /* @__PURE__ */ e.jsxs(Zt, { children: [
1398
+ /* @__PURE__ */ e.jsx(_t, { children: /* @__PURE__ */ e.jsx(Jt, { children: "Request failed" }) }),
1399
+ /* @__PURE__ */ e.jsxs(Qt, { children: [
1398
1400
  "Error:",
1399
1401
  " ",
1400
1402
  t.error.message || String(t.error) || "Unexpected error"
@@ -1436,7 +1438,7 @@ const Ua = {
1436
1438
  url: t.data.request.url
1437
1439
  }
1438
1440
  ) })
1439
- ] }) }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: t.isPending ? /* @__PURE__ */ e.jsx(Xt, {}) : "Send a request first to see the response here" }) }) });
1441
+ ] }) }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: t.isPending ? /* @__PURE__ */ e.jsx(Wt, {}) : "Send a request first to see the response here" }) }) });
1440
1442
  }, Ka = ({
1441
1443
  identities: t,
1442
1444
  formRef: a,
@@ -1498,9 +1500,9 @@ const Ua = {
1498
1500
  examples: d
1499
1501
  }) => {
1500
1502
  var Oe, Ee, Ae;
1501
- const { selectedServer: u, setSelectedServer: f } = Ot(
1503
+ const { selectedServer: u, setSelectedServer: g } = Ot(
1502
1504
  a.map((o) => ({ url: o }))
1503
- ), [, C] = Vt(), { register: b, control: p, handleSubmit: g, watch: h, setValue: v, ...y } = Mt({
1505
+ ), [, C] = Vt(), { register: b, control: p, handleSubmit: f, watch: h, setValue: v, ...y } = Ut({
1504
1506
  defaultValues: {
1505
1507
  body: c,
1506
1508
  queryParams: i.map((o) => ({
@@ -1534,13 +1536,13 @@ const Ua = {
1534
1536
  identity: H
1535
1537
  }
1536
1538
  }), N = h(), w = Et(), L = q(!1);
1537
- ge(() => {
1539
+ fe(() => {
1538
1540
  var R;
1539
1541
  if (L.current) return;
1540
1542
  const o = (R = w.data) == null ? void 0 : R.at(0);
1541
1543
  o && (v("identity", o.id), L.current = !0);
1542
1544
  }, [v, w.data]);
1543
- const V = q(null), _ = Ut({
1545
+ const V = q(null), _ = Bt({
1544
1546
  mutationFn: async (o) => {
1545
1547
  var J, F;
1546
1548
  const R = performance.now(), S = new Request(
@@ -1557,18 +1559,18 @@ const Ua = {
1557
1559
  try {
1558
1560
  const T = await fetch(S, {
1559
1561
  signal: AbortSignal.timeout(5e3)
1560
- }), gt = performance.now() - R, qe = await T.text(), ft = new URL(S.url);
1562
+ }), ft = performance.now() - R, qe = await T.text(), gt = new URL(S.url);
1561
1563
  return {
1562
1564
  status: T.status,
1563
1565
  headers: Array.from(T.headers.entries()),
1564
1566
  size: qe.length,
1565
1567
  body: qe,
1566
- time: gt,
1568
+ time: ft,
1567
1569
  request: {
1568
1570
  method: S.method.toUpperCase(),
1569
1571
  url: S.url,
1570
1572
  headers: [
1571
- ["Host", ft.host],
1573
+ ["Host", gt.host],
1572
1574
  ["User-Agent", "Zudoku Playground"],
1573
1575
  ...Array.from(S.headers.entries())
1574
1576
  ],
@@ -1612,7 +1614,7 @@ const Ua = {
1612
1614
  Qe,
1613
1615
  {
1614
1616
  onValueChange: (o) => {
1615
- C(() => f(o));
1617
+ C(() => g(o));
1616
1618
  },
1617
1619
  value: u,
1618
1620
  defaultValue: u,
@@ -1623,18 +1625,18 @@ const Ua = {
1623
1625
  }
1624
1626
  ) });
1625
1627
  return /* @__PURE__ */ e.jsx(
1626
- _t,
1628
+ Mt,
1627
1629
  {
1628
1630
  register: b,
1629
1631
  control: p,
1630
- handleSubmit: g,
1632
+ handleSubmit: f,
1631
1633
  watch: h,
1632
1634
  setValue: v,
1633
1635
  ...y,
1634
1636
  children: /* @__PURE__ */ e.jsx(
1635
1637
  "form",
1636
1638
  {
1637
- onSubmit: g((o) => _.mutateAsync(o)),
1639
+ onSubmit: f((o) => _.mutateAsync(o)),
1638
1640
  ref: V,
1639
1641
  children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
1640
1642
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 p-4 after:bg-muted-foreground/20 relative after:absolute after:w-px after:inset-0 after:left-auto", children: [
@@ -1805,8 +1807,8 @@ const Ua = {
1805
1807
  }
1806
1808
  ), es = (t) => {
1807
1809
  const [a, s] = U(!1);
1808
- return /* @__PURE__ */ e.jsxs(zt, { onOpenChange: (n) => s(n), children: [
1809
- /* @__PURE__ */ e.jsx(Ht, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1810
+ return /* @__PURE__ */ e.jsxs(Ft, { onOpenChange: (n) => s(n), children: [
1811
+ /* @__PURE__ */ e.jsx(zt, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1810
1812
  "button",
1811
1813
  {
1812
1814
  type: "button",
@@ -1818,12 +1820,12 @@ const Ua = {
1818
1820
  }
1819
1821
  ) }),
1820
1822
  /* @__PURE__ */ e.jsxs(
1821
- Gt,
1823
+ Ht,
1822
1824
  {
1823
1825
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
1824
1826
  "aria-describedby": void 0,
1825
1827
  children: [
1826
- /* @__PURE__ */ e.jsx(Dt, { children: /* @__PURE__ */ e.jsx(Bt, { children: "Playground" }) }),
1828
+ /* @__PURE__ */ e.jsx(Dt, { children: /* @__PURE__ */ e.jsx(Gt, { children: "Playground" }) }),
1827
1829
  a && /* @__PURE__ */ e.jsx(Xa, { ...t })
1828
1830
  ]
1829
1831
  }
@@ -1868,7 +1870,7 @@ const Ua = {
1868
1870
  }), Je = (t) => ({
1869
1871
  path: t.routePath,
1870
1872
  async lazy() {
1871
- const { OasProvider: a } = await import("./OasProvider-WVtvHP5H.js");
1873
+ const { OasProvider: a } = await import("./OasProvider-SzD9mHJc.js");
1872
1874
  return {
1873
1875
  element: /* @__PURE__ */ e.jsx(
1874
1876
  a,
@@ -1889,7 +1891,7 @@ const Ua = {
1889
1891
  }) => ({
1890
1892
  path: t,
1891
1893
  async lazy() {
1892
- const { OperationList: n } = await import("./OperationList-DhOwupvv.js");
1894
+ const { OperationList: n } = await import("./OperationList-DDs9NblY.js");
1893
1895
  return { element: /* @__PURE__ */ e.jsx(n, { tag: a, untagged: s }) };
1894
1896
  }
1895
1897
  }), as = (t, a) => {
@@ -1974,7 +1976,7 @@ const Ua = {
1974
1976
  }
1975
1977
  }
1976
1978
  }
1977
- `), G = "~endpoints", Is = (t) => {
1979
+ `), G = "~endpoints", Es = (t) => {
1978
1980
  const a = O(t.navigationId ?? "/reference"), s = new sa(t);
1979
1981
  return {
1980
1982
  getHead: () => {
@@ -2038,9 +2040,9 @@ const Ua = {
2038
2040
  n
2039
2041
  );
2040
2042
  try {
2041
- const l = r == null ? void 0 : r.params.version, c = l ?? pt(t).at(0), d = t.type, u = t.type === "file" ? t.input[c] : t.input, f = t.loadTags === !0 || t.type === "url", C = !t.loadTags && t.type !== "url", b = (i = t.tagPages) == null ? void 0 : i.find(
2043
+ const l = r == null ? void 0 : r.params.version, c = l ?? pt(t).at(0), d = t.type, u = t.type === "file" ? t.input[c] : t.input, g = t.loadTags === !0 || t.type === "url", C = !t.loadTags && t.type !== "url", b = (i = t.tagPages) == null ? void 0 : i.find(
2042
2044
  (v) => W(v) === (r == null ? void 0 : r.params.tag)
2043
- ), [p, g] = await Promise.all([
2045
+ ), [p, f] = await Promise.all([
2044
2046
  s.fetch(ns, { type: d, input: u }),
2045
2047
  s.fetch(rs, {
2046
2048
  type: d,
@@ -2052,7 +2054,7 @@ const Ua = {
2052
2054
  a,
2053
2055
  l,
2054
2056
  W(v.name)
2055
- ), N = g.schema.operations.filter(
2057
+ ), N = f.schema.operations.filter(
2056
2058
  (w) => {
2057
2059
  var L, V;
2058
2060
  return ((L = w.tags) == null ? void 0 : L.length) !== 0 && ((V = w.tags) == null ? void 0 : V.map((_) => _.name).includes(v.name));
@@ -2062,16 +2064,16 @@ const Ua = {
2062
2064
  label: v.name,
2063
2065
  path: y,
2064
2066
  operations: (r == null ? void 0 : r.params.tag) !== G || t.loadTags ? N : [],
2065
- collapsible: f,
2067
+ collapsible: g,
2066
2068
  collapsed: C
2067
2069
  });
2068
2070
  });
2069
- return g.schema.untagged.length > 0 && h.push(
2071
+ return f.schema.untagged.length > 0 && h.push(
2070
2072
  _e({
2071
2073
  label: "Other endpoints",
2072
2074
  path: O(a, l, G),
2073
- operations: (r == null ? void 0 : r.params.tag) === G || t.loadTags ? g.schema.untagged : [],
2074
- collapsible: f,
2075
+ operations: (r == null ? void 0 : r.params.tag) === G || t.loadTags ? f.schema.untagged : [],
2076
+ collapsible: g,
2075
2077
  collapsed: C
2076
2078
  })
2077
2079
  ), h;
@@ -2093,6 +2095,6 @@ export {
2093
2095
  ua as e,
2094
2096
  pt as g,
2095
2097
  za as m,
2096
- Is as o
2098
+ Es as o
2097
2099
  };
2098
- //# sourceMappingURL=index-Do_30Hpk.js.map
2100
+ //# sourceMappingURL=index-CibzSNks.js.map