zudoku 0.32.1 → 0.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/app/tailwind.js +6 -0
  2. package/dist/app/tailwind.js.map +1 -1
  3. package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
  4. package/dist/config/validators/InputSidebarSchema.js +10 -1
  5. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  6. package/dist/config/validators/common.d.ts +40 -40
  7. package/dist/config/validators/icon-types.d.ts +1 -1
  8. package/dist/config/validators/validate.d.ts +19 -19
  9. package/dist/lib/components/Header.js +1 -1
  10. package/dist/lib/components/Header.js.map +1 -1
  11. package/dist/lib/components/Layout.js +1 -1
  12. package/dist/lib/components/Layout.js.map +1 -1
  13. package/dist/lib/components/TopNavigation.js +3 -2
  14. package/dist/lib/components/TopNavigation.js.map +1 -1
  15. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  16. package/dist/lib/components/index.d.ts +1 -0
  17. package/dist/lib/components/index.js +2 -0
  18. package/dist/lib/components/index.js.map +1 -1
  19. package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
  20. package/dist/lib/components/navigation/SidebarBadge.js +3 -1
  21. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  22. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  23. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  24. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  25. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  26. package/dist/lib/oas/graphql/index.js +3 -1
  27. package/dist/lib/oas/graphql/index.js.map +1 -1
  28. package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -2
  29. package/dist/lib/plugins/api-catalog/Catalog.js +11 -24
  30. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  31. package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
  32. package/dist/lib/plugins/api-catalog/index.js +37 -8
  33. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  34. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  35. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  36. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  37. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  38. package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
  39. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  40. package/dist/lib/plugins/openapi/graphql/gql.js +0 -11
  41. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  42. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +1 -1
  43. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  44. package/dist/lib/ui/Badge.d.ts +1 -1
  45. package/dist/lib/ui/Button.d.ts +1 -1
  46. package/dist/lib/ui/Command.d.ts +1 -1
  47. package/dist/lib/ui/SyntaxHighlight.d.ts +14 -0
  48. package/dist/lib/{components → ui}/SyntaxHighlight.js +9 -6
  49. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  50. package/dist/lib/ui/util.d.ts +2 -0
  51. package/dist/lib/ui/util.js +3 -0
  52. package/dist/lib/ui/util.js.map +1 -0
  53. package/dist/lib/util/MdxComponents.js +1 -1
  54. package/dist/lib/util/MdxComponents.js.map +1 -1
  55. package/dist/vite/config.js +4 -1
  56. package/dist/vite/config.js.map +1 -1
  57. package/dist/vite/plugin-api.js +2 -2
  58. package/dist/vite/plugin-api.js.map +1 -1
  59. package/lib/{AuthenticationPlugin-_YVa673u.js → AuthenticationPlugin-BlxA4Mbn.js} +4 -4
  60. package/lib/{AuthenticationPlugin-_YVa673u.js.map → AuthenticationPlugin-BlxA4Mbn.js.map} +1 -1
  61. package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-DpB47wvk.js} +3 -3
  62. package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
  63. package/lib/{Markdown-8mv9nhGd.js → Markdown-Cr9sYpR_.js} +4800 -4729
  64. package/lib/Markdown-Cr9sYpR_.js.map +1 -0
  65. package/lib/{MdxPage-GM1T5jmO.js → MdxPage-Dt-UEQl8.js} +10 -10
  66. package/lib/MdxPage-Dt-UEQl8.js.map +1 -0
  67. package/lib/{OasProvider-IS9wBrb7.js → OasProvider-WVtvHP5H.js} +6 -6
  68. package/lib/{OasProvider-IS9wBrb7.js.map → OasProvider-WVtvHP5H.js.map} +1 -1
  69. package/lib/{OperationList-BTmRbbXk.js → OperationList-DhOwupvv.js} +18 -19
  70. package/lib/{OperationList-BTmRbbXk.js.map → OperationList-DhOwupvv.js.map} +1 -1
  71. package/lib/Select-D9hI1G-y.js +223 -0
  72. package/lib/{Select-D9CKL33X.js.map → Select-D9hI1G-y.js.map} +1 -1
  73. package/lib/{SlotletProvider-D0mFmGJu.js → SlotletProvider-CEfNOA8i.js} +53 -53
  74. package/lib/{SlotletProvider-D0mFmGJu.js.map → SlotletProvider-CEfNOA8i.js.map} +1 -1
  75. package/lib/{Spinner-BlzrEEk1.js → Spinner-1KrEmx1V.js} +3 -3
  76. package/lib/{Spinner-BlzrEEk1.js.map → Spinner-1KrEmx1V.js.map} +1 -1
  77. package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-CcnUjERD.js} +445 -445
  78. package/lib/SyntaxHighlight-CcnUjERD.js.map +1 -0
  79. package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-IR6S3I6Y-D_3UmFIn.js} +597 -597
  80. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +1 -0
  81. package/lib/{circular-DxaIIlWD.js → circular-v7K6lDDh.js} +1413 -1413
  82. package/lib/{circular-DxaIIlWD.js.map → circular-v7K6lDDh.js.map} +1 -1
  83. package/lib/context-DLCwaMXN.js +22 -0
  84. package/lib/{context-rwLGh-6_.js.map → context-DLCwaMXN.js.map} +1 -1
  85. package/lib/{createServer-DSQiPwjN.js → createServer-DMf6O2Rz.js} +3669 -3562
  86. package/lib/createServer-DMf6O2Rz.js.map +1 -0
  87. package/lib/{hook-C_t2ISLC.js → hook-CWwSAAlH.js} +384 -379
  88. package/lib/hook-CWwSAAlH.js.map +1 -0
  89. package/lib/index-Bn6Lc9tq.js +9 -0
  90. package/lib/index-Bn6Lc9tq.js.map +1 -0
  91. package/lib/index-CPNSgwSb.js +36 -0
  92. package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
  93. package/lib/{index-BANyVRgL.js → index-Do_30Hpk.js} +78 -78
  94. package/lib/index-Do_30Hpk.js.map +1 -0
  95. package/lib/{index-B7mqiOei.js → index-Du5aNddU.js} +101 -101
  96. package/lib/index-Du5aNddU.js.map +1 -0
  97. package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
  98. package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
  99. package/lib/{index.esm-CrSoEshU.js → index.esm--gIChbWs.js} +3 -3
  100. package/lib/{index.esm-CrSoEshU.js.map → index.esm--gIChbWs.js.map} +1 -1
  101. package/lib/{index.esm-9-TF9KQB.js → index.esm-CQHE3GEU.js} +52 -53
  102. package/lib/{index.esm-9-TF9KQB.js.map → index.esm-CQHE3GEU.js.map} +1 -1
  103. package/lib/joinUrl-10po2Jdj.js +20 -0
  104. package/lib/{joinUrl-nLx9pD-Z.js.map → joinUrl-10po2Jdj.js.map} +1 -1
  105. package/lib/{jsx-runtime-Bdg6XQ1m.js → jsx-runtime-CYK1ROHF.js} +99 -99
  106. package/lib/{jsx-runtime-Bdg6XQ1m.js.map → jsx-runtime-CYK1ROHF.js.map} +1 -1
  107. package/lib/{mutation-Cm3O9f3X.js → mutation-B0wxqzSN.js} +26 -26
  108. package/lib/{mutation-Cm3O9f3X.js.map → mutation-B0wxqzSN.js.map} +1 -1
  109. package/lib/post-processors/removeExtensions.js +4 -4
  110. package/lib/ui/Accordion.js +1 -1
  111. package/lib/ui/ActionButton.js +2 -2
  112. package/lib/ui/Alert.js +2 -2
  113. package/lib/ui/AlertDialog.js +1 -1
  114. package/lib/ui/Badge.js +2 -2
  115. package/lib/ui/Breadcrumb.js +4 -4
  116. package/lib/ui/Button.js +2 -2
  117. package/lib/ui/Callout.js +4 -4
  118. package/lib/ui/Card.js +1 -1
  119. package/lib/ui/Carousel.js +1 -1
  120. package/lib/ui/Checkbox.js +2 -2
  121. package/lib/ui/Command.js +2 -2
  122. package/lib/ui/Dialog.js +1 -1
  123. package/lib/ui/Drawer.js +521 -543
  124. package/lib/ui/Drawer.js.map +1 -1
  125. package/lib/ui/DropdownMenu.js +1 -1
  126. package/lib/ui/Form.js +5 -5
  127. package/lib/ui/HoverCard.js +1 -1
  128. package/lib/ui/Input.js +1 -1
  129. package/lib/ui/Label.js +2 -2
  130. package/lib/ui/Pagination.js +10 -10
  131. package/lib/ui/Popover.js +1 -1
  132. package/lib/ui/Progress.js +1 -1
  133. package/lib/ui/RadioGroup.js +1 -1
  134. package/lib/ui/ScrollArea.js +1 -1
  135. package/lib/ui/Select.js +1 -1
  136. package/lib/ui/Skeleton.js +1 -1
  137. package/lib/ui/Slider.js +1 -1
  138. package/lib/ui/Switch.js +1 -1
  139. package/lib/ui/SyntaxHighlight.js +10 -0
  140. package/lib/ui/SyntaxHighlight.js.map +1 -0
  141. package/lib/ui/Tabs.js +1 -1
  142. package/lib/ui/Textarea.js +1 -1
  143. package/lib/ui/Toggle.js +2 -2
  144. package/lib/ui/ToggleGroup.js +1 -1
  145. package/lib/ui/Tooltip.js +1 -1
  146. package/lib/ui/util.js +6 -0
  147. package/lib/ui/util.js.map +1 -0
  148. package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-RIvey2Oy.js} +2 -2
  149. package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-RIvey2Oy.js.map} +1 -1
  150. package/lib/{useScrollToAnchor-BGEcH3HM.js → useScrollToAnchor-C-sRxs9o.js} +13 -9
  151. package/lib/useScrollToAnchor-C-sRxs9o.js.map +1 -0
  152. package/lib/zudoku.auth-auth0.js +1 -1
  153. package/lib/zudoku.auth-clerk.js +18 -18
  154. package/lib/zudoku.auth-openid.js +255 -295
  155. package/lib/zudoku.auth-openid.js.map +1 -1
  156. package/lib/zudoku.components.js +305 -298
  157. package/lib/zudoku.components.js.map +1 -1
  158. package/lib/zudoku.icons.js +1 -1
  159. package/lib/zudoku.plugin-api-catalog.js +91 -108
  160. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  161. package/lib/zudoku.plugin-api-keys.js +6 -6
  162. package/lib/zudoku.plugin-custom-pages.js +3 -3
  163. package/lib/zudoku.plugin-markdown.js +2 -2
  164. package/lib/zudoku.plugin-openapi.js +6 -6
  165. package/lib/zudoku.plugin-redirect.js +1 -1
  166. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  167. package/package.json +49 -50
  168. package/src/app/tailwind.ts +6 -0
  169. package/src/lib/components/Header.tsx +1 -1
  170. package/src/lib/components/Layout.tsx +1 -1
  171. package/src/lib/components/TopNavigation.tsx +13 -9
  172. package/src/lib/components/index.ts +2 -0
  173. package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
  174. package/src/lib/components/navigation/SidebarItem.tsx +1 -0
  175. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  176. package/src/lib/oas/graphql/index.ts +4 -1
  177. package/src/lib/plugins/api-catalog/Catalog.tsx +31 -94
  178. package/src/lib/plugins/api-catalog/index.tsx +54 -9
  179. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  180. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  181. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
  182. package/src/lib/plugins/openapi/graphql/gql.ts +9 -1
  183. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +1 -1
  184. package/src/lib/{components → ui}/SyntaxHighlight.tsx +23 -8
  185. package/src/lib/ui/util.tsx +3 -0
  186. package/src/lib/util/MdxComponents.tsx +1 -1
  187. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  188. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  189. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  190. package/lib/MdxPage-GM1T5jmO.js.map +0 -1
  191. package/lib/Select-D9CKL33X.js +0 -223
  192. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  193. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  194. package/lib/context-rwLGh-6_.js +0 -22
  195. package/lib/createServer-DSQiPwjN.js.map +0 -1
  196. package/lib/hook-C_t2ISLC.js.map +0 -1
  197. package/lib/index-B7mqiOei.js.map +0 -1
  198. package/lib/index-BANyVRgL.js.map +0 -1
  199. package/lib/index-Djenk2Hj.js +0 -36
  200. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  201. package/lib/useScrollToAnchor-BGEcH3HM.js.map +0 -1
@@ -5,28 +5,28 @@ var De = (t) => {
5
5
  var vt = (t, a, s) => a in t ? yt(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
6
6
  var ne = (t, a, s) => vt(t, typeof a != "symbol" ? a + "" : a, s), jt = (t, a, s) => a.has(t) || De("Cannot " + s);
7
7
  var re = (t, a, s) => (jt(t, a, "read from private field"), s ? s.call(t) : a.get(t)), oe = (t, a, s) => a.has(t) ? De("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, s);
8
- import { j as e } from "./jsx-runtime-Bdg6XQ1m.js";
9
- import { s as W } from "./index-CjJS0l4l.js";
8
+ import { j as e } from "./jsx-runtime-CYK1ROHF.js";
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
- import { r as kt, m as Ve } from "./chunk-SYFQ2XB5-QijJrSf0.js";
12
- import { H as It, I as Ot, J as Et, k as At } from "./hook-C_t2ISLC.js";
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";
13
13
  import { Button as K } from "./ui/Button.js";
14
- import { j as O } from "./joinUrl-nLx9pD-Z.js";
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 fe, 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-B7mqiOei.js";
20
- import { S as Qe, a as Ze, b as We, c as Ke, e as Q, u as Ut } from "./Select-D9CKL33X.js";
21
- import { b as ge, u as ye, C as I, a as Mt, F as _t } from "./index.esm-CrSoEshU.js";
22
- import { c as ve } from "./index-Djenk2Hj.js";
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";
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
26
  import { Card as je, CardHeader as Jt, CardTitle as Qt, CardContent as Zt } 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-B0L4SC_N.js";
29
- import { B as Z, S as Xt } from "./Spinner-BlzrEEk1.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";
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";
@@ -47,7 +47,7 @@ const aa = (t) => {
47
47
  var te, ae;
48
48
  class sa {
49
49
  constructor(a) {
50
- oe(this, te, async () => (ie || (ie = import("./createServer-DSQiPwjN.js").then(
50
+ oe(this, te, async () => (ie || (ie = import("./createServer-DMf6O2Rz.js").then(
51
51
  (a) => a.createServer(this.config)
52
52
  )), ie));
53
53
  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 +335,14 @@ const ua = ({
335
335
  const l = Array.from(n.matchAll(/{([^}]+)}/g)), c = [];
336
336
  let d = 0;
337
337
  return l.forEach((u) => {
338
- const [g, C] = u;
338
+ const [f, C] = u;
339
339
  if (!C) return;
340
340
  const b = u.index;
341
341
  b > d && c.push(
342
342
  /* @__PURE__ */ e.jsx(k, { children: n.slice(d, b) }, `text-${d}-${b}`)
343
343
  ), c.push(
344
- /* @__PURE__ */ e.jsx(k, { children: a({ name: C, originalValue: g, index: s++ }) }, `param-${C}`)
345
- ), d = b + g.length;
344
+ /* @__PURE__ */ e.jsx(k, { children: a({ name: C, originalValue: f, index: s++ }) }, `param-${C}`)
345
+ ), d = b + f.length;
346
346
  }), d < n.length && c.push(
347
347
  /* @__PURE__ */ e.jsx(k, { children: n.slice(d) }, `text-${d}-${n.length}`)
348
348
  ), // eslint-disable-next-line react/no-array-index-key
@@ -424,10 +424,10 @@ const le = (t) => Math.abs(
424
424
  children: r,
425
425
  onClick: i
426
426
  }) => {
427
- 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%)`;
428
- return fe(() => {
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
429
  if (!c || !l.current) return;
430
- const f = () => {
430
+ const g = () => {
431
431
  document.querySelectorAll(`[${ce}="${c}"]`).forEach((y) => {
432
432
  y instanceof HTMLElement && (y.dataset.active = "true");
433
433
  });
@@ -436,8 +436,8 @@ const le = (t) => Math.abs(
436
436
  y instanceof HTMLElement && (y.dataset.active = "false");
437
437
  });
438
438
  }, v = l.current;
439
- return v.addEventListener("mouseenter", f), v.addEventListener("mouseleave", h), () => {
440
- v.removeEventListener("mouseenter", f), v.removeEventListener("mouseleave", h);
439
+ return v.addEventListener("mouseenter", g), v.addEventListener("mouseleave", h), () => {
440
+ v.removeEventListener("mouseenter", g), v.removeEventListener("mouseleave", h);
441
441
  };
442
442
  }, [c]), /* @__PURE__ */ e.jsx(
443
443
  "span",
@@ -474,7 +474,7 @@ const le = (t) => Math.abs(
474
474
  return s.queryParams.filter((i) => i.active).forEach((i) => {
475
475
  r.searchParams.set(i.name, i.value);
476
476
  }), r;
477
- }, nt = j.Root, rt = j.Trigger, fa = j.Group, ga = x.forwardRef(({ className: t, inset: a, children: s, ...n }, r) => /* @__PURE__ */ e.jsxs(
477
+ }, nt = j.Root, rt = j.Trigger, ga = j.Group, fa = x.forwardRef(({ className: t, inset: a, children: s, ...n }, r) => /* @__PURE__ */ e.jsxs(
478
478
  j.SubTrigger,
479
479
  {
480
480
  ref: r,
@@ -490,7 +490,7 @@ const le = (t) => Math.abs(
490
490
  ]
491
491
  }
492
492
  ));
493
- ga.displayName = j.SubTrigger.displayName;
493
+ fa.displayName = j.SubTrigger.displayName;
494
494
  const ya = x.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ e.jsx(
495
495
  j.SubContent,
496
496
  {
@@ -595,7 +595,7 @@ const ba = ({
595
595
  return /* @__PURE__ */ e.jsxs("div", { children: [
596
596
  /* @__PURE__ */ e.jsx(ot, { children: s.mediaType }),
597
597
  /* @__PURE__ */ e.jsx(it, {}),
598
- /* @__PURE__ */ e.jsx(fa, { children: (n = s.examples) == null ? void 0 : n.map((r) => /* @__PURE__ */ e.jsx(
598
+ /* @__PURE__ */ e.jsx(ga, { children: (n = s.examples) == null ? void 0 : n.map((r) => /* @__PURE__ */ e.jsx(
599
599
  Te,
600
600
  {
601
601
  onSelect: () => a(r),
@@ -805,7 +805,7 @@ const Ea = ({
805
805
  onEnterPress: i,
806
806
  ref: l
807
807
  }) => {
808
- const [c, d] = U(!1), [u, g] = U(!1), C = Ft((p) => p.filtered.count), b = q(null);
808
+ const [c, d] = U(!1), [u, f] = U(!1), C = Ft((p) => p.filtered.count), b = q(null);
809
809
  return /* @__PURE__ */ e.jsxs(Oa, { open: c, children: [
810
810
  /* @__PURE__ */ e.jsx(Yt, { children: /* @__PURE__ */ e.jsx(
811
811
  dt,
@@ -821,8 +821,8 @@ const Ea = ({
821
821
  u || d(!1);
822
822
  },
823
823
  onKeyDown: (p) => {
824
- var f;
825
- p.key === "Enter" && (d(!1), (f = b.current) == null || f.blur(), i == null || i(p));
824
+ var g;
825
+ p.key === "Enter" && (d(!1), (g = b.current) == null || g.blur(), i == null || i(p));
826
826
  },
827
827
  onValueChange: (p) => s(p)
828
828
  }
@@ -830,8 +830,8 @@ const Ea = ({
830
830
  /* @__PURE__ */ e.jsx(
831
831
  ut,
832
832
  {
833
- onMouseEnter: () => g(!0),
834
- onMouseLeave: () => g(!1),
833
+ onMouseEnter: () => f(!0),
834
+ onMouseLeave: () => f(!1),
835
835
  onOpenAutoFocus: (p) => p.preventDefault(),
836
836
  className: m("p-0 w-[--radix-popover-trigger-width]", {
837
837
  "border-0": C === 0
@@ -848,8 +848,8 @@ const Ea = ({
848
848
  mt,
849
849
  {
850
850
  value: p,
851
- onSelect: (f) => {
852
- s(f), d(!1);
851
+ onSelect: (g) => {
852
+ s(g), d(!1);
853
853
  },
854
854
  className: "cursor-pointer",
855
855
  children: p
@@ -906,26 +906,26 @@ const Ea = ({
906
906
  control: t,
907
907
  headers: a
908
908
  }) => {
909
- const { fields: s, append: n, remove: r } = ge({
909
+ const { fields: s, append: n, remove: r } = fe({
910
910
  control: t,
911
911
  name: "headers"
912
- }), { setValue: i, watch: l } = ye(), c = q([]), d = q([]), u = l("headers"), g = Lt(() => {
912
+ }), { setValue: i, watch: l } = ye(), c = q([]), d = q([]), u = l("headers"), f = Lt(() => {
913
913
  n({ name: "", value: "", active: !1 });
914
914
  }, [n]);
915
- fe(() => {
916
- u.length === 0 && g();
917
- }, [u, g]);
918
- const C = (f) => {
915
+ ge(() => {
916
+ u.length === 0 && f();
917
+ }, [u, f]);
918
+ const C = (g) => {
919
919
  var h;
920
- (h = c.current[f]) == null || h.focus();
921
- }, b = (f) => {
922
- g(), requestAnimationFrame(() => {
920
+ (h = c.current[g]) == null || h.focus();
921
+ }, b = (g) => {
922
+ f(), requestAnimationFrame(() => {
923
923
  var h;
924
- return (h = d.current[f + 1]) == null ? void 0 : h.focus();
924
+ return (h = d.current[g + 1]) == null ? void 0 : h.focus();
925
925
  });
926
- }, p = a.filter((f) => !u.some((h) => h.name === f.name)).map(({ name: f }) => f);
926
+ }, p = a.filter((g) => !u.some((h) => h.name === g.name)).map(({ name: g }) => g);
927
927
  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((f, h) => {
928
+ /* @__PURE__ */ e.jsx(se, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Pe, { children: s.map((g, h) => {
929
929
  const v = a.find(
930
930
  (y) => y.name === l(`headers.${h}.name`)
931
931
  );
@@ -1019,13 +1019,13 @@ const Ea = ({
1019
1019
  }
1020
1020
  )
1021
1021
  ] })
1022
- ] }, f.id);
1022
+ ] }, g.id);
1023
1023
  }) }) }),
1024
1024
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
1025
1025
  K,
1026
1026
  {
1027
1027
  className: "",
1028
- onClick: g,
1028
+ onClick: f,
1029
1029
  type: "button",
1030
1030
  variant: "secondary",
1031
1031
  children: "Add header"
@@ -1035,7 +1035,7 @@ const Ea = ({
1035
1035
  }, Da = ({
1036
1036
  control: t
1037
1037
  }) => {
1038
- const { fields: a } = ge({
1038
+ const { fields: a } = fe({
1039
1039
  control: t,
1040
1040
  name: "pathParams"
1041
1041
  });
@@ -1079,7 +1079,7 @@ const Ea = ({
1079
1079
  control: t,
1080
1080
  queryParams: a
1081
1081
  }) => {
1082
- const { fields: s } = ge({
1082
+ const { fields: s } = fe({
1083
1083
  control: t,
1084
1084
  name: "queryParams"
1085
1085
  }), n = ye(), r = a.map((i) => !!i.isRequired);
@@ -1145,8 +1145,8 @@ const Ea = ({
1145
1145
  {
1146
1146
  value: d.value,
1147
1147
  options: c.enum ?? [],
1148
- onChange: (g) => {
1149
- d.onChange(g), n.setValue(`queryParams.${l}.active`, !0);
1148
+ onChange: (f) => {
1149
+ d.onChange(f), n.setValue(`queryParams.${l}.active`, !0);
1150
1150
  },
1151
1151
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1152
1152
  }
@@ -1154,8 +1154,8 @@ const Ea = ({
1154
1154
  be,
1155
1155
  {
1156
1156
  ...d,
1157
- onChange: (g) => {
1158
- d.onChange(g.target.value), g.target.value.length > 0 && n.setValue(`queryParams.${l}.active`, !0);
1157
+ onChange: (f) => {
1158
+ d.onChange(f.target.value), f.target.value.length > 0 && n.setValue(`queryParams.${l}.active`, !0);
1159
1159
  },
1160
1160
  placeholder: "Enter value",
1161
1161
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -1303,7 +1303,7 @@ const Ua = {
1303
1303
  url: i
1304
1304
  }) => {
1305
1305
  var p;
1306
- const l = _a(a), c = Ja(t), d = c || t, [u, g] = U(
1306
+ const l = _a(a), c = Ja(t), d = c || t, [u, f] = U(
1307
1307
  c ? "formatted" : "raw"
1308
1308
  ), C = It({
1309
1309
  queryKey: ["types", d],
@@ -1317,10 +1317,10 @@ const Ua = {
1317
1317
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1318
1318
  ] }),
1319
1319
  /* @__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(([f, h]) => /* @__PURE__ */ e.jsxs(k, { children: [
1321
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
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
1322
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1323
- ] }, f)),
1323
+ ] }, g)),
1324
1324
  b.length > 5 && /* @__PURE__ */ e.jsxs(Be, { className: "col-span-full grid-cols-subgrid grid", children: [
1325
1325
  /* @__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
1326
  /* @__PURE__ */ e.jsx(B, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
@@ -1328,10 +1328,10 @@ const Ua = {
1328
1328
  b.length - 5,
1329
1329
  " more headers"
1330
1330
  ] }),
1331
- /* @__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: [
1332
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
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
1333
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1334
- ] }, f)) })
1334
+ ] }, g)) })
1335
1335
  ] })
1336
1336
  ] }) })
1337
1337
  ] }),
@@ -1371,7 +1371,7 @@ const Ua = {
1371
1371
  Qe,
1372
1372
  {
1373
1373
  value: u,
1374
- onValueChange: (f) => g(f),
1374
+ onValueChange: (g) => f(g),
1375
1375
  children: [
1376
1376
  /* @__PURE__ */ e.jsx(Ze, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(We, { placeholder: "View" }) }),
1377
1377
  /* @__PURE__ */ e.jsxs(Ke, { children: [
@@ -1498,9 +1498,9 @@ const Ua = {
1498
1498
  examples: d
1499
1499
  }) => {
1500
1500
  var Oe, Ee, Ae;
1501
- const { selectedServer: u, setSelectedServer: g } = Ot(
1501
+ const { selectedServer: u, setSelectedServer: f } = Ot(
1502
1502
  a.map((o) => ({ url: o }))
1503
- ), [, C] = Vt(), { register: b, control: p, handleSubmit: f, watch: h, setValue: v, ...y } = Mt({
1503
+ ), [, C] = Vt(), { register: b, control: p, handleSubmit: g, watch: h, setValue: v, ...y } = Mt({
1504
1504
  defaultValues: {
1505
1505
  body: c,
1506
1506
  queryParams: i.map((o) => ({
@@ -1534,7 +1534,7 @@ const Ua = {
1534
1534
  identity: H
1535
1535
  }
1536
1536
  }), N = h(), w = Et(), L = q(!1);
1537
- fe(() => {
1537
+ ge(() => {
1538
1538
  var R;
1539
1539
  if (L.current) return;
1540
1540
  const o = (R = w.data) == null ? void 0 : R.at(0);
@@ -1557,18 +1557,18 @@ const Ua = {
1557
1557
  try {
1558
1558
  const T = await fetch(S, {
1559
1559
  signal: AbortSignal.timeout(5e3)
1560
- }), ft = performance.now() - R, qe = await T.text(), gt = new URL(S.url);
1560
+ }), gt = performance.now() - R, qe = await T.text(), ft = new URL(S.url);
1561
1561
  return {
1562
1562
  status: T.status,
1563
1563
  headers: Array.from(T.headers.entries()),
1564
1564
  size: qe.length,
1565
1565
  body: qe,
1566
- time: ft,
1566
+ time: gt,
1567
1567
  request: {
1568
1568
  method: S.method.toUpperCase(),
1569
1569
  url: S.url,
1570
1570
  headers: [
1571
- ["Host", gt.host],
1571
+ ["Host", ft.host],
1572
1572
  ["User-Agent", "Zudoku Playground"],
1573
1573
  ...Array.from(S.headers.entries())
1574
1574
  ],
@@ -1612,7 +1612,7 @@ const Ua = {
1612
1612
  Qe,
1613
1613
  {
1614
1614
  onValueChange: (o) => {
1615
- C(() => g(o));
1615
+ C(() => f(o));
1616
1616
  },
1617
1617
  value: u,
1618
1618
  defaultValue: u,
@@ -1627,14 +1627,14 @@ const Ua = {
1627
1627
  {
1628
1628
  register: b,
1629
1629
  control: p,
1630
- handleSubmit: f,
1630
+ handleSubmit: g,
1631
1631
  watch: h,
1632
1632
  setValue: v,
1633
1633
  ...y,
1634
1634
  children: /* @__PURE__ */ e.jsx(
1635
1635
  "form",
1636
1636
  {
1637
- onSubmit: f((o) => _.mutateAsync(o)),
1637
+ onSubmit: g((o) => _.mutateAsync(o)),
1638
1638
  ref: V,
1639
1639
  children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
1640
1640
  /* @__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: [
@@ -1868,7 +1868,7 @@ const Ua = {
1868
1868
  }), Je = (t) => ({
1869
1869
  path: t.routePath,
1870
1870
  async lazy() {
1871
- const { OasProvider: a } = await import("./OasProvider-IS9wBrb7.js");
1871
+ const { OasProvider: a } = await import("./OasProvider-WVtvHP5H.js");
1872
1872
  return {
1873
1873
  element: /* @__PURE__ */ e.jsx(
1874
1874
  a,
@@ -1889,7 +1889,7 @@ const Ua = {
1889
1889
  }) => ({
1890
1890
  path: t,
1891
1891
  async lazy() {
1892
- const { OperationList: n } = await import("./OperationList-BTmRbbXk.js");
1892
+ const { OperationList: n } = await import("./OperationList-DhOwupvv.js");
1893
1893
  return { element: /* @__PURE__ */ e.jsx(n, { tag: a, untagged: s }) };
1894
1894
  }
1895
1895
  }), as = (t, a) => {
@@ -2038,9 +2038,9 @@ const Ua = {
2038
2038
  n
2039
2039
  );
2040
2040
  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, g = t.loadTags === !0 || t.type === "url", C = !t.loadTags && t.type !== "url", b = (i = t.tagPages) == null ? void 0 : i.find(
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(
2042
2042
  (v) => W(v) === (r == null ? void 0 : r.params.tag)
2043
- ), [p, f] = await Promise.all([
2043
+ ), [p, g] = await Promise.all([
2044
2044
  s.fetch(ns, { type: d, input: u }),
2045
2045
  s.fetch(rs, {
2046
2046
  type: d,
@@ -2052,7 +2052,7 @@ const Ua = {
2052
2052
  a,
2053
2053
  l,
2054
2054
  W(v.name)
2055
- ), N = f.schema.operations.filter(
2055
+ ), N = g.schema.operations.filter(
2056
2056
  (w) => {
2057
2057
  var L, V;
2058
2058
  return ((L = w.tags) == null ? void 0 : L.length) !== 0 && ((V = w.tags) == null ? void 0 : V.map((_) => _.name).includes(v.name));
@@ -2062,16 +2062,16 @@ const Ua = {
2062
2062
  label: v.name,
2063
2063
  path: y,
2064
2064
  operations: (r == null ? void 0 : r.params.tag) !== G || t.loadTags ? N : [],
2065
- collapsible: g,
2065
+ collapsible: f,
2066
2066
  collapsed: C
2067
2067
  });
2068
2068
  });
2069
- return f.schema.untagged.length > 0 && h.push(
2069
+ return g.schema.untagged.length > 0 && h.push(
2070
2070
  _e({
2071
2071
  label: "Other endpoints",
2072
2072
  path: O(a, l, G),
2073
- operations: (r == null ? void 0 : r.params.tag) === G || t.loadTags ? f.schema.untagged : [],
2074
- collapsible: g,
2073
+ operations: (r == null ? void 0 : r.params.tag) === G || t.loadTags ? g.schema.untagged : [],
2074
+ collapsible: f,
2075
2075
  collapsed: C
2076
2076
  })
2077
2077
  ), h;
@@ -2095,4 +2095,4 @@ export {
2095
2095
  za as m,
2096
2096
  Is as o
2097
2097
  };
2098
- //# sourceMappingURL=index-BANyVRgL.js.map
2098
+ //# sourceMappingURL=index-Do_30Hpk.js.map