zudoku 0.0.0-fb7d300 → 0.0.0-fc5c03b

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 (267) hide show
  1. package/client.d.ts +7 -0
  2. package/dist/app/entry.client.d.ts +1 -0
  3. package/dist/app/entry.client.js +13 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.d.ts +1 -0
  6. package/dist/app/entry.server.js +1 -0
  7. package/dist/app/entry.server.js.map +1 -1
  8. package/dist/app/main.js +2 -1
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/sentry.d.ts +3 -0
  11. package/dist/app/sentry.js +19 -0
  12. package/dist/app/sentry.js.map +1 -0
  13. package/dist/app/tailwind.d.ts +2 -1
  14. package/dist/app/tailwind.js +64 -52
  15. package/dist/app/tailwind.js.map +1 -1
  16. package/dist/cli/cli.js +0 -2
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/common/logger.js +9 -0
  19. package/dist/cli/common/logger.js.map +1 -1
  20. package/dist/cli/common/outdated.js +2 -1
  21. package/dist/cli/common/outdated.js.map +1 -1
  22. package/dist/config/common.d.ts +8 -0
  23. package/dist/config/common.js +2 -0
  24. package/dist/config/common.js.map +1 -0
  25. package/dist/config/config.d.ts +3 -2
  26. package/dist/config/loader.d.ts +20 -0
  27. package/dist/config/loader.js +154 -0
  28. package/dist/config/loader.js.map +1 -0
  29. package/dist/config/validators/InputSidebarSchema.d.ts +14 -13
  30. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  31. package/dist/config/validators/common.d.ts +4911 -0
  32. package/dist/config/validators/common.js +276 -0
  33. package/dist/config/validators/common.js.map +1 -0
  34. package/dist/config/validators/icon-types.d.ts +1 -0
  35. package/dist/config/validators/icon-types.js +2 -0
  36. package/dist/config/validators/icon-types.js.map +1 -0
  37. package/dist/config/validators/validate.d.ts +777 -521
  38. package/dist/config/validators/validate.js +9 -228
  39. package/dist/config/validators/validate.js.map +1 -1
  40. package/dist/lib/authentication/providers/openid.js +7 -2
  41. package/dist/lib/authentication/providers/openid.js.map +1 -1
  42. package/dist/lib/components/Heading.d.ts +4 -4
  43. package/dist/lib/components/Heading.js +1 -1
  44. package/dist/lib/components/Heading.js.map +1 -1
  45. package/dist/lib/components/Layout.js +3 -2
  46. package/dist/lib/components/Layout.js.map +1 -1
  47. package/dist/lib/components/Markdown.js +1 -1
  48. package/dist/lib/components/Markdown.js.map +1 -1
  49. package/dist/lib/components/MobileTopNavigation.js +1 -1
  50. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  51. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  52. package/dist/lib/components/ReactMarkdown.js +182 -0
  53. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  54. package/dist/lib/components/Search.d.ts +3 -1
  55. package/dist/lib/components/Search.js +3 -3
  56. package/dist/lib/components/Search.js.map +1 -1
  57. package/dist/lib/components/SyntaxHighlight.js +0 -4
  58. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  59. package/dist/lib/components/TopNavigation.d.ts +1 -1
  60. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  61. package/dist/lib/components/navigation/Sidebar.js +2 -2
  62. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  63. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  64. package/dist/lib/components/navigation/SidebarCategory.js +3 -4
  65. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  66. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  67. package/dist/lib/components/navigation/SidebarItem.js +5 -10
  68. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  69. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  70. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  71. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  72. package/dist/lib/oas/graphql/index.js +4 -1
  73. package/dist/lib/oas/graphql/index.js.map +1 -1
  74. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  75. package/dist/lib/oas/parser/upgrade/index.js +3 -20
  76. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  77. package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
  78. package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
  79. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  80. package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
  81. package/dist/lib/plugins/api-catalog/index.js +15 -0
  82. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  83. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  84. package/dist/lib/plugins/markdown/MdxPage.js +15 -2
  85. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  86. package/dist/lib/plugins/markdown/index.d.ts +2 -1
  87. package/dist/lib/plugins/markdown/index.js +1 -1
  88. package/dist/lib/plugins/markdown/index.js.map +1 -1
  89. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  90. package/dist/lib/plugins/openapi/OperationList.js +47 -2
  91. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  92. package/dist/lib/plugins/openapi/client/GraphQLClient.js +12 -0
  93. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  94. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
  95. package/dist/lib/plugins/openapi/client/useCreateQuery.js +4 -2
  96. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  97. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  98. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  99. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  100. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
  101. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  102. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  103. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  104. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  105. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  106. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
  107. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
  108. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  109. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  110. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
  111. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  112. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  113. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  114. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  115. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  116. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  117. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  118. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  119. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  120. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  121. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  122. package/dist/lib/ui/Button.d.ts +1 -1
  123. package/dist/lib/ui/Command.d.ts +1 -1
  124. package/dist/lib/util/MdxComponents.d.ts +2 -3
  125. package/dist/lib/util/MdxComponents.js.map +1 -1
  126. package/dist/lib/util/traverse.d.ts +2 -0
  127. package/dist/lib/util/traverse.js +18 -0
  128. package/dist/lib/util/traverse.js.map +1 -0
  129. package/dist/vite/build.js +15 -3
  130. package/dist/vite/build.js.map +1 -1
  131. package/dist/vite/config.d.ts +6 -4
  132. package/dist/vite/config.js +54 -15
  133. package/dist/vite/config.js.map +1 -1
  134. package/dist/vite/config.test.js +7 -5
  135. package/dist/vite/config.test.js.map +1 -1
  136. package/dist/vite/dev-server.js +12 -3
  137. package/dist/vite/dev-server.js.map +1 -1
  138. package/dist/vite/output.d.ts +1 -1
  139. package/dist/vite/output.js +39 -10
  140. package/dist/vite/output.js.map +1 -1
  141. package/dist/vite/plugin-api.js +67 -20
  142. package/dist/vite/plugin-api.js.map +1 -1
  143. package/dist/vite/plugin-component.js +15 -19
  144. package/dist/vite/plugin-component.js.map +1 -1
  145. package/dist/vite/plugin-config-reload.d.ts +1 -2
  146. package/dist/vite/plugin-config-reload.js.map +1 -1
  147. package/dist/vite/plugin-config.js +20 -0
  148. package/dist/vite/plugin-config.js.map +1 -1
  149. package/dist/vite/plugin-docs.test.js +15 -23
  150. package/dist/vite/plugin-docs.test.js.map +1 -1
  151. package/dist/vite/plugin-mdx.js +58 -4
  152. package/dist/vite/plugin-mdx.js.map +1 -1
  153. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  154. package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
  155. package/dist/vite/plugin-theme-css.js.map +1 -0
  156. package/dist/vite/plugin.d.ts +1 -2
  157. package/dist/vite/plugin.js +2 -2
  158. package/dist/vite/plugin.js.map +1 -1
  159. package/dist/vite/prerender.d.ts +2 -1
  160. package/dist/vite/prerender.js +2 -2
  161. package/dist/vite/prerender.js.map +1 -1
  162. package/dist/vite/sitemap.d.ts +1 -1
  163. package/dist/zuplo/env.d.ts +6 -0
  164. package/dist/zuplo/env.js +9 -0
  165. package/dist/zuplo/env.js.map +1 -0
  166. package/dist/zuplo/with-zuplo.d.ts +3 -0
  167. package/dist/zuplo/with-zuplo.js +28 -0
  168. package/dist/zuplo/with-zuplo.js.map +1 -0
  169. package/lib/AnchorLink-BR0MvI7n.js +35 -0
  170. package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
  171. package/lib/{Markdown-ievDDhFT.js → Markdown-CRsmPPfY.js} +13084 -13096
  172. package/lib/Markdown-CRsmPPfY.js.map +1 -0
  173. package/lib/MdxPage-Wp8QU0-q.js +188 -0
  174. package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
  175. package/lib/{OperationList-BwBl1xrD.js → OperationList-u8xHU9-b.js} +1031 -1016
  176. package/lib/OperationList-u8xHU9-b.js.map +1 -0
  177. package/lib/{SlotletProvider-DyomlzGx.js → SlotletProvider-BgvYIPQe.js} +2 -2
  178. package/lib/{SlotletProvider-DyomlzGx.js.map → SlotletProvider-BgvYIPQe.js.map} +1 -1
  179. package/lib/{SyntaxHighlight-DkLOsjHS.js → SyntaxHighlight-C31iouiO.js} +1 -3
  180. package/lib/{SyntaxHighlight-DkLOsjHS.js.map → SyntaxHighlight-C31iouiO.js.map} +1 -1
  181. package/lib/assets/{worker-CPsGZsve.js → worker-C_2va8B8.js} +8 -9
  182. package/lib/assets/worker-C_2va8B8.js.map +1 -0
  183. package/lib/{createServer-DK-g7kbB.js → createServer-BCAHdrpE.js} +4461 -5248
  184. package/lib/createServer-BCAHdrpE.js.map +1 -0
  185. package/lib/{index-DNxQ_rCt.js → index-CmdLGbbk.js} +53 -47
  186. package/lib/index-CmdLGbbk.js.map +1 -0
  187. package/lib/{AnchorLink-CDlhr8gL.js → index.esm-Bm8pj-bc.js} +223 -254
  188. package/lib/index.esm-Bm8pj-bc.js.map +1 -0
  189. package/lib/object_hash-CvlLgU-M.js +785 -0
  190. package/lib/object_hash-CvlLgU-M.js.map +1 -0
  191. package/lib/post-processors/removeExtensions.js +11 -0
  192. package/lib/post-processors/removeExtensions.js.map +1 -0
  193. package/lib/post-processors/removePaths.js +28 -0
  194. package/lib/post-processors/removePaths.js.map +1 -0
  195. package/lib/post-processors/traverse.js +12 -0
  196. package/lib/post-processors/traverse.js.map +1 -0
  197. package/lib/ui/Drawer.js +79 -79
  198. package/lib/ui/Drawer.js.map +1 -1
  199. package/lib/zudoku.auth-openid.js +42 -37
  200. package/lib/zudoku.auth-openid.js.map +1 -1
  201. package/lib/zudoku.components.js +386 -367
  202. package/lib/zudoku.components.js.map +1 -1
  203. package/lib/zudoku.openapi-worker.js +1 -1
  204. package/lib/zudoku.plugin-api-catalog.js +121 -0
  205. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  206. package/lib/zudoku.plugin-api-keys.js +1 -1
  207. package/lib/zudoku.plugin-custom-pages.js +1 -1
  208. package/lib/zudoku.plugin-markdown.js +15 -14
  209. package/lib/zudoku.plugin-markdown.js.map +1 -1
  210. package/lib/zudoku.plugin-openapi.js +1 -1
  211. package/lib/zudoku.plugin-redirect.js.map +1 -1
  212. package/package.json +32 -9
  213. package/src/app/entry.client.tsx +15 -0
  214. package/src/app/entry.server.tsx +1 -0
  215. package/src/app/main.tsx +5 -1
  216. package/src/app/sentry.ts +24 -0
  217. package/src/app/tailwind.ts +67 -52
  218. package/src/lib/authentication/providers/openid.tsx +7 -2
  219. package/src/lib/components/Heading.tsx +13 -13
  220. package/src/lib/components/Layout.tsx +8 -3
  221. package/src/lib/components/Markdown.tsx +1 -1
  222. package/src/lib/components/MobileTopNavigation.tsx +18 -18
  223. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  224. package/src/lib/components/ReactMarkdown.tsx +264 -0
  225. package/src/lib/components/Search.tsx +3 -3
  226. package/src/lib/components/SyntaxHighlight.tsx +0 -4
  227. package/src/lib/components/TopNavigation.tsx +1 -1
  228. package/src/lib/components/navigation/Sidebar.tsx +18 -8
  229. package/src/lib/components/navigation/SidebarCategory.tsx +10 -9
  230. package/src/lib/components/navigation/SidebarItem.tsx +10 -13
  231. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  232. package/src/lib/core/ZudokuContext.ts +1 -1
  233. package/src/lib/oas/graphql/index.ts +4 -1
  234. package/src/lib/oas/parser/upgrade/index.ts +4 -27
  235. package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
  236. package/src/lib/plugins/api-catalog/index.tsx +50 -0
  237. package/src/lib/plugins/markdown/MdxPage.tsx +27 -1
  238. package/src/lib/plugins/markdown/index.tsx +3 -1
  239. package/src/lib/plugins/markdown/resolver.ts +2 -4
  240. package/src/lib/plugins/openapi/OperationList.tsx +64 -3
  241. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +17 -0
  242. package/src/lib/plugins/openapi/client/useCreateQuery.ts +5 -2
  243. package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
  244. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  245. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  246. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
  247. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
  248. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
  249. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  250. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  251. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  252. package/src/lib/plugins/redirect/index.tsx +1 -1
  253. package/src/lib/util/MdxComponents.tsx +2 -5
  254. package/src/lib/util/traverse.ts +25 -0
  255. package/dist/vite/plugin-custom-css.js.map +0 -1
  256. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  257. package/lib/Markdown-ievDDhFT.js.map +0 -1
  258. package/lib/MdxPage-Bwn-VSsH.js +0 -174
  259. package/lib/MdxPage-Bwn-VSsH.js.map +0 -1
  260. package/lib/OperationList-BwBl1xrD.js.map +0 -1
  261. package/lib/assets/worker-CPsGZsve.js.map +0 -1
  262. package/lib/createServer-DK-g7kbB.js.map +0 -1
  263. package/lib/index-DNxQ_rCt.js.map +0 -1
  264. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  265. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  266. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  267. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
@@ -23,7 +23,7 @@ import { S as ve } from "./Spinner-3cQDBVGr.js";
23
23
  import { Callout as tt } from "./ui/Callout.js";
24
24
  import { Card as ae, CardHeader as nt, CardTitle as st, CardContent as rt } from "./ui/Card.js";
25
25
  import { Tabs as je, TabsList as be, TabsTrigger as A, TabsContent as V } from "./ui/Tabs.js";
26
- import { z as at, S as ot } from "./SyntaxHighlight-DkLOsjHS.js";
26
+ import { z as at, S as ot } from "./SyntaxHighlight-C31iouiO.js";
27
27
  import { c as P } from "./cn-BmFQLtkS.js";
28
28
  import { Input as H } from "./ui/Input.js";
29
29
  import { Slot as it } from "@radix-ui/react-slot";
@@ -116,6 +116,7 @@ const ct = new L(
116
116
  query AllOperations($input: JSON!, $type: SchemaType!) {
117
117
  schema(input: $input, type: $type) {
118
118
  description
119
+ summary
119
120
  title
120
121
  url
121
122
  version
@@ -220,7 +221,7 @@ const ct = new L(
220
221
  `), ht = {
221
222
  "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": dt,
222
223
  "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\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": ct,
223
- "\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": ut,
224
+ "\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n summary\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": ut,
224
225
  "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": mt,
225
226
  "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": pt
226
227
  };
@@ -363,7 +364,9 @@ function Pt(t, n) {
363
364
  return $t(r, bt) + Ct(Nt, s);
364
365
  }
365
366
  let Y, ee;
366
- const te = (t) => {
367
+ const Ot = async (t) => {
368
+ t && typeof t == "object" && "type" in t && t.type === "file" && "input" in t && typeof t.input == "function" && (t.input = await t.input());
369
+ }, te = (t) => {
367
370
  var n;
368
371
  if ((n = t.errors) != null && n[0])
369
372
  throw new Ge(t.errors[0].message, {
@@ -371,15 +374,17 @@ const te = (t) => {
371
374
  });
372
375
  };
373
376
  var T, O, N, Q;
374
- class Ot {
377
+ class _t {
375
378
  constructor(n) {
376
379
  R(this, T);
377
380
  R(this, O, /* @__PURE__ */ new Map());
378
381
  R(this, N);
379
- R(this, Q, () => import("./createServer-DK-g7kbB.js").then((n) => n.createServer()));
382
+ R(this, Q, () => import("./createServer-BCAHdrpE.js").then((n) => n.createServer()));
380
383
  W(this, "fetch", async (n, ...[s]) => {
381
384
  var l;
382
- const r = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], o = JSON.stringify({ query: n, variables: s, operationName: r });
385
+ const r = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1];
386
+ await Ot(s);
387
+ const o = JSON.stringify({ query: n, variables: s, operationName: r });
383
388
  switch (x(this, T)) {
384
389
  case "remote": {
385
390
  const i = await fetch(this.config.server, {
@@ -435,12 +440,12 @@ class Ot {
435
440
  T = new WeakMap(), O = new WeakMap(), N = new WeakMap(), Q = new WeakMap();
436
441
  const ne = (t) => Math.abs(
437
442
  isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
438
- ), se = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ne(n) + ne(s)}`)) : ne(t), _t = (t, n = {}) => {
443
+ ), se = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ne(n) + ne(s)}`)) : ne(t), kt = (t, n = {}) => {
439
444
  const s = (3 * se(t) + 2 * se(t) + se(t)) % 360, { saturation: r = 75, lightness: o = 60 } = n;
440
445
  return `${s}deg ${r}% ${o}%`;
441
- }, re = "data-linked-param", kt = (t) => {
446
+ }, re = "data-linked-param", It = (t) => {
442
447
  const { resolvedTheme: n } = at();
443
- return _t(
448
+ return kt(
444
449
  t,
445
450
  n === "light" ? { saturation: 85, lightness: 50 } : void 0
446
451
  );
@@ -453,7 +458,7 @@ const ne = (t) => Math.abs(
453
458
  children: l,
454
459
  onClick: i
455
460
  }) => {
456
- const c = Ce(null), u = t.replace(/[{}]/g, ""), d = o == null ? void 0 : o.replace(/[{}]/g, ""), h = kt(u), g = `hsl(${h} / ${r})`, j = `hsl(${h} / ${s})`;
461
+ const c = Ce(null), u = t.replace(/[{}]/g, ""), d = o == null ? void 0 : o.replace(/[{}]/g, ""), h = It(u), g = `hsl(${h} / ${r})`, j = `hsl(${h} / ${s})`;
457
462
  return $e(() => {
458
463
  if (!d || !c.current) return;
459
464
  const b = () => {
@@ -487,7 +492,7 @@ const ne = (t) => Math.abs(
487
492
  children: l ?? t
488
493
  }
489
494
  );
490
- }, It = (t, n, s) => {
495
+ }, qt = (t, n, s) => {
491
496
  const r = n.replace(/(:\w+|\{\w+})/g, (l) => {
492
497
  var u;
493
498
  const i = l.replace(/[:{}]/g, "");
@@ -499,7 +504,7 @@ const ne = (t) => Math.abs(
499
504
  return s.queryParams.filter((l) => l.active).forEach((l) => {
500
505
  o.searchParams.set(l.name, l.value);
501
506
  }), o;
502
- }, qt = ({
507
+ }, Rt = ({
503
508
  control: t,
504
509
  register: n
505
510
  }) => {
@@ -560,7 +565,7 @@ const ne = (t) => Math.abs(
560
565
  }
561
566
  ) })
562
567
  ] });
563
- }, Rt = ({
568
+ }, Mt = ({
564
569
  control: t
565
570
  }) => {
566
571
  const { fields: n } = oe({
@@ -601,6 +606,7 @@ const ne = (t) => Math.abs(
601
606
  H,
602
607
  {
603
608
  ...o,
609
+ required: !0,
604
610
  placeholder: "Enter value",
605
611
  className: "border-0 shadow-none ring-0 font-mono text-xs"
606
612
  }
@@ -632,7 +638,7 @@ const ne = (t) => Math.abs(
632
638
  )
633
639
  ] }) })
634
640
  ] }, s.id)) }) });
635
- }, Mt = (t, n) => {
641
+ }, At = (t, n) => {
636
642
  const s = he.forwardRef(({ className: r, asChild: o, ...l }, i) => {
637
643
  const c = o ? it : t;
638
644
  return he.createElement(c, {
@@ -642,10 +648,10 @@ const ne = (t) => Math.abs(
642
648
  });
643
649
  });
644
650
  return s.displayName = `VariantComponent(${t})`, s;
645
- }, At = Mt(
651
+ }, Vt = At(
646
652
  "input",
647
653
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
648
- ), Vt = ({
654
+ ), zt = ({
649
655
  control: t,
650
656
  queryParams: n
651
657
  }) => {
@@ -677,7 +683,7 @@ const ne = (t) => Math.abs(
677
683
  $,
678
684
  {
679
685
  control: t,
680
- render: ({ field: d }) => /* @__PURE__ */ e.jsx(At, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
686
+ render: ({ field: d }) => /* @__PURE__ */ e.jsx(Vt, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
681
687
  "label",
682
688
  {
683
689
  className: "flex items-center cursor-pointer",
@@ -736,7 +742,7 @@ const ne = (t) => Math.abs(
736
742
  )
737
743
  ] }) })
738
744
  ] }, c.id)) }) }) });
739
- }, zt = ({
745
+ }, Ft = ({
740
746
  value: t,
741
747
  onChange: n,
742
748
  className: s,
@@ -766,7 +772,7 @@ const ne = (t) => Math.abs(
766
772
  children: /* @__PURE__ */ e.jsx(Ve, { size: 14 })
767
773
  }
768
774
  )
769
- ] }), Ft = (t) => {
775
+ ] }), Lt = (t) => {
770
776
  var s;
771
777
  return (s = Object.entries({
772
778
  "application/json": "json",
@@ -779,20 +785,20 @@ const ne = (t) => Math.abs(
779
785
  }).find(
780
786
  ([r]) => t.includes(r)
781
787
  )) == null ? void 0 : s[1];
782
- }, Lt = (t) => {
783
- const n = t.get("Content-Type") || "";
784
- return Ft(n);
785
788
  }, Dt = (t) => {
789
+ const n = t.get("Content-Type") || "";
790
+ return Lt(n);
791
+ }, Gt = (t) => {
786
792
  try {
787
793
  return JSON.stringify(JSON.parse(t), null, 2);
788
794
  } catch {
789
795
  return null;
790
796
  }
791
- }, Gt = ({
797
+ }, Bt = ({
792
798
  body: t = "",
793
799
  headers: n
794
800
  }) => {
795
- const s = Lt(n), r = Dt(t), o = r || t, [l, i] = Te(
801
+ const s = Dt(n), r = Gt(t), o = r || t, [l, i] = Te(
796
802
  r ? "formatted" : "raw"
797
803
  );
798
804
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
@@ -806,7 +812,7 @@ const ne = (t) => Math.abs(
806
812
  }
807
813
  ) }),
808
814
  r && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(
809
- zt,
815
+ Ft,
810
816
  {
811
817
  value: l,
812
818
  onChange: (c) => i(c.target.value),
@@ -817,7 +823,7 @@ const ne = (t) => Math.abs(
817
823
  }
818
824
  ) })
819
825
  ] });
820
- }, J = "__none", Bt = {
826
+ }, J = "__none", Jt = {
821
827
  200: "OK",
822
828
  201: "Created",
823
829
  202: "Accepted",
@@ -828,7 +834,7 @@ const ne = (t) => Math.abs(
828
834
  404: "Not Found",
829
835
  405: "Method Not Allowed",
830
836
  500: "Internal Server Error"
831
- }, Jt = ({
837
+ }, Ht = ({
832
838
  server: t,
833
839
  servers: n,
834
840
  url: s,
@@ -867,7 +873,7 @@ const ne = (t) => Math.abs(
867
873
  const p = Ze({
868
874
  mutationFn: async (a) => {
869
875
  var I, q;
870
- const f = It(u ?? t, s, a), k = performance.now(), D = new Request(f, {
876
+ const f = qt(u ?? t, s, a), k = performance.now(), D = new Request(f, {
871
877
  method: r.toUpperCase(),
872
878
  headers: Object.fromEntries(
873
879
  a.headers.filter((m) => m.name).map((m) => [m.name, m.value])
@@ -997,15 +1003,15 @@ const ne = (t) => Math.abs(
997
1003
  )
998
1004
  ] })
999
1005
  ] }),
1000
- /* @__PURE__ */ e.jsx(V, { value: "headers", children: /* @__PURE__ */ e.jsx(qt, { control: j, register: g }) }),
1006
+ /* @__PURE__ */ e.jsx(V, { value: "headers", children: /* @__PURE__ */ e.jsx(Rt, { control: j, register: g }) }),
1001
1007
  /* @__PURE__ */ e.jsxs(V, { value: "parameters", children: [
1002
1008
  i.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1003
1009
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1004
- /* @__PURE__ */ e.jsx(Rt, { control: j })
1010
+ /* @__PURE__ */ e.jsx(Mt, { control: j })
1005
1011
  ] }),
1006
1012
  l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1007
1013
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1008
- /* @__PURE__ */ e.jsx(Vt, { control: j, queryParams: l })
1014
+ /* @__PURE__ */ e.jsx(zt, { control: j, queryParams: l })
1009
1015
  ] })
1010
1016
  ] }),
1011
1017
  /* @__PURE__ */ e.jsx(V, { value: "body", children: /* @__PURE__ */ e.jsx(
@@ -1035,7 +1041,7 @@ const ne = (t) => Math.abs(
1035
1041
  "Status: ",
1036
1042
  p.data.status,
1037
1043
  " ",
1038
- Bt[p.data.status] ?? ""
1044
+ Jt[p.data.status] ?? ""
1039
1045
  ] }),
1040
1046
  /* @__PURE__ */ e.jsxs("div", { children: [
1041
1047
  "Time: ",
@@ -1054,7 +1060,7 @@ const ne = (t) => Math.abs(
1054
1060
  /* @__PURE__ */ e.jsx(A, { value: "headers", children: U.length ? `Headers (${U.length})` : "No headers" })
1055
1061
  ] }),
1056
1062
  /* @__PURE__ */ e.jsx(V, { value: "response", children: /* @__PURE__ */ e.jsx(
1057
- Gt,
1063
+ Bt,
1058
1064
  {
1059
1065
  headers: p.data.headers,
1060
1066
  body: p.data.body
@@ -1079,7 +1085,7 @@ const ne = (t) => Math.abs(
1079
1085
  ] }) })
1080
1086
  }
1081
1087
  );
1082
- }, Ht = ({
1088
+ }, Qt = ({
1083
1089
  className: t,
1084
1090
  size: n = 16
1085
1091
  }) => /* @__PURE__ */ e.jsx(
@@ -1100,12 +1106,12 @@ const ne = (t) => Math.abs(
1100
1106
  }
1101
1107
  )
1102
1108
  }
1103
- ), Qt = (t) => {
1109
+ ), Ut = (t) => {
1104
1110
  const [n, s] = Te(!1);
1105
1111
  return /* @__PURE__ */ e.jsxs(He, { onOpenChange: (r) => s(r), children: [
1106
1112
  /* @__PURE__ */ e.jsx(Qe, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
1107
1113
  "Test",
1108
- /* @__PURE__ */ e.jsx(Ht, { className: "", size: 14 })
1114
+ /* @__PURE__ */ e.jsx(Qt, { className: "", size: 14 })
1109
1115
  ] }) }),
1110
1116
  /* @__PURE__ */ e.jsxs(
1111
1117
  Ue,
@@ -1114,7 +1120,7 @@ const ne = (t) => Math.abs(
1114
1120
  "aria-describedby": void 0,
1115
1121
  children: [
1116
1122
  /* @__PURE__ */ e.jsx(Be, { children: /* @__PURE__ */ e.jsx(We, { children: "Playground" }) }),
1117
- n && /* @__PURE__ */ e.jsx(Jt, { ...t })
1123
+ n && /* @__PURE__ */ e.jsx(Ht, { ...t })
1118
1124
  ]
1119
1125
  }
1120
1126
  )
@@ -1138,7 +1144,7 @@ const ne = (t) => Math.abs(
1138
1144
  }
1139
1145
  }
1140
1146
  }
1141
- `), Ut = {
1147
+ `), Wt = {
1142
1148
  get: "green",
1143
1149
  post: "blue",
1144
1150
  put: "yellow",
@@ -1146,8 +1152,8 @@ const ne = (t) => Math.abs(
1146
1152
  patch: "purple",
1147
1153
  options: "gray",
1148
1154
  head: "gray"
1149
- }, vn = (t) => {
1150
- const n = Re(t.navigationId ?? "/reference"), s = new Ot(t);
1155
+ }, jn = (t) => {
1156
+ const n = Re(t.navigationId ?? "/reference"), s = new _t(t);
1151
1157
  return {
1152
1158
  getHead: () => {
1153
1159
  if (t.type === "url" && !t.skipPreload)
@@ -1192,7 +1198,7 @@ const ne = (t) => Math.abs(
1192
1198
  ]
1193
1199
  }
1194
1200
  ) : /* @__PURE__ */ e.jsx(
1195
- Qt,
1201
+ Ut,
1196
1202
  {
1197
1203
  url: i ?? "/",
1198
1204
  method: l ?? "get",
@@ -1224,7 +1230,7 @@ const ne = (t) => Math.abs(
1224
1230
  href: `#${c.slug}`,
1225
1231
  badge: {
1226
1232
  label: c.method,
1227
- color: Ut[c.method.toLowerCase()]
1233
+ color: Wt[c.method.toLowerCase()]
1228
1234
  }
1229
1235
  }))
1230
1236
  }));
@@ -1252,7 +1258,7 @@ const ne = (t) => Math.abs(
1252
1258
  {
1253
1259
  index: !0,
1254
1260
  async lazy() {
1255
- const { OperationList: r } = await import("./OperationList-BwBl1xrD.js");
1261
+ const { OperationList: r } = await import("./OperationList-u8xHU9-b.js");
1256
1262
  return { element: /* @__PURE__ */ e.jsx(r, {}) };
1257
1263
  }
1258
1264
  }
@@ -1265,9 +1271,9 @@ const ne = (t) => Math.abs(
1265
1271
  };
1266
1272
  export {
1267
1273
  Pe as C,
1268
- Qt as P,
1269
- zt as S,
1274
+ Ut as P,
1275
+ Ft as S,
1270
1276
  ft as g,
1271
- vn as o
1277
+ jn as o
1272
1278
  };
1273
- //# sourceMappingURL=index-DNxQ_rCt.js.map
1279
+ //# sourceMappingURL=index-CmdLGbbk.js.map