zudoku 0.0.0-f3858d6 → 0.0.0-f3f6db5

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 (1042) hide show
  1. package/README.md +121 -0
  2. package/client.d.ts +7 -0
  3. package/dist/app/demo.js +1 -4
  4. package/dist/app/demo.js.map +1 -1
  5. package/dist/app/entry.client.d.ts +1 -0
  6. package/dist/app/entry.client.js +14 -1
  7. package/dist/app/entry.client.js.map +1 -1
  8. package/dist/app/entry.server.d.ts +1 -0
  9. package/dist/app/entry.server.js +8 -8
  10. package/dist/app/entry.server.js.map +1 -1
  11. package/dist/app/main.d.ts +3 -3
  12. package/dist/app/main.js +25 -15
  13. package/dist/app/main.js.map +1 -1
  14. package/dist/app/sentry.d.ts +3 -0
  15. package/dist/app/sentry.js +19 -0
  16. package/dist/app/sentry.js.map +1 -0
  17. package/dist/app/standalone.js +1 -4
  18. package/dist/app/standalone.js.map +1 -1
  19. package/dist/app/tailwind.d.ts +2 -1
  20. package/dist/app/tailwind.js +64 -52
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/cli/cli.js +1 -4
  23. package/dist/cli/cli.js.map +1 -1
  24. package/dist/cli/cmds/build.js +1 -0
  25. package/dist/cli/cmds/build.js.map +1 -1
  26. package/dist/cli/cmds/dev.js +5 -0
  27. package/dist/cli/cmds/dev.js.map +1 -1
  28. package/dist/cli/common/logger.js +9 -0
  29. package/dist/cli/common/logger.js.map +1 -1
  30. package/dist/cli/common/outdated.js +2 -1
  31. package/dist/cli/common/outdated.js.map +1 -1
  32. package/dist/cli/dev/handler.d.ts +1 -0
  33. package/dist/cli/dev/handler.js +3 -3
  34. package/dist/cli/dev/handler.js.map +1 -1
  35. package/dist/codegen.d.ts +3 -0
  36. package/dist/codegen.js +45 -0
  37. package/dist/codegen.js.map +1 -0
  38. package/dist/config/common.d.ts +8 -0
  39. package/dist/config/common.js +2 -0
  40. package/dist/config/common.js.map +1 -0
  41. package/dist/config/config.d.ts +4 -2
  42. package/dist/config/loader.d.ts +20 -0
  43. package/dist/config/loader.js +154 -0
  44. package/dist/config/loader.js.map +1 -0
  45. package/dist/config/validators/InputSidebarSchema.d.ts +46 -15
  46. package/dist/config/validators/InputSidebarSchema.js +8 -28
  47. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  48. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  49. package/dist/config/validators/SidebarSchema.js +77 -37
  50. package/dist/config/validators/SidebarSchema.js.map +1 -1
  51. package/dist/config/validators/common.d.ts +5034 -0
  52. package/dist/config/validators/common.js +287 -0
  53. package/dist/config/validators/common.js.map +1 -0
  54. package/dist/config/validators/icon-types.d.ts +1 -0
  55. package/dist/config/validators/icon-types.js +2 -0
  56. package/dist/config/validators/icon-types.js.map +1 -0
  57. package/dist/config/validators/validate.d.ts +867 -460
  58. package/dist/config/validators/validate.js +12 -214
  59. package/dist/config/validators/validate.js.map +1 -1
  60. package/dist/index.d.ts +3 -3
  61. package/dist/index.js +1 -1
  62. package/dist/index.js.map +1 -1
  63. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  64. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  65. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  66. package/dist/lib/authentication/authentication.d.ts +3 -3
  67. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  68. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  69. package/dist/lib/authentication/components/SignIn.js +1 -1
  70. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  71. package/dist/lib/authentication/components/SignOut.js +2 -2
  72. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  73. package/dist/lib/authentication/hook.d.ts +5 -4
  74. package/dist/lib/authentication/hook.js +1 -3
  75. package/dist/lib/authentication/hook.js.map +1 -1
  76. package/dist/lib/authentication/providers/auth0.js +13 -12
  77. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  78. package/dist/lib/authentication/providers/clerk.js +29 -6
  79. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  80. package/dist/lib/authentication/providers/openid.d.ts +8 -2
  81. package/dist/lib/authentication/providers/openid.js +31 -35
  82. package/dist/lib/authentication/providers/openid.js.map +1 -1
  83. package/dist/lib/authentication/state.d.ts +25 -4
  84. package/dist/lib/authentication/state.js +28 -3
  85. package/dist/lib/authentication/state.js.map +1 -1
  86. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  87. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  88. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  89. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  90. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  91. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  92. package/dist/lib/components/AnchorLink.d.ts +1 -1
  93. package/dist/lib/components/AnchorLink.js +6 -3
  94. package/dist/lib/components/AnchorLink.js.map +1 -1
  95. package/dist/lib/components/Autocomplete.d.ts +12 -0
  96. package/dist/lib/components/Autocomplete.js +47 -0
  97. package/dist/lib/components/Autocomplete.js.map +1 -0
  98. package/dist/lib/components/Bootstrap.d.ts +4 -3
  99. package/dist/lib/components/Bootstrap.js +12 -6
  100. package/dist/lib/components/Bootstrap.js.map +1 -1
  101. package/dist/lib/components/ClientOnly.d.ts +4 -2
  102. package/dist/lib/components/ClientOnly.js +1 -1
  103. package/dist/lib/components/ClientOnly.js.map +1 -1
  104. package/dist/lib/components/DeveloperHint.js +2 -1
  105. package/dist/lib/components/DeveloperHint.js.map +1 -1
  106. package/dist/lib/components/Header.js +21 -14
  107. package/dist/lib/components/Header.js.map +1 -1
  108. package/dist/lib/components/Heading.d.ts +4 -4
  109. package/dist/lib/components/Heading.js +1 -1
  110. package/dist/lib/components/Heading.js.map +1 -1
  111. package/dist/lib/components/Layout.js +14 -5
  112. package/dist/lib/components/Layout.js.map +1 -1
  113. package/dist/lib/components/Markdown.d.ts +2 -2
  114. package/dist/lib/components/Markdown.js +4 -2
  115. package/dist/lib/components/Markdown.js.map +1 -1
  116. package/dist/lib/components/MobileTopNavigation.js +8 -6
  117. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  118. package/dist/lib/components/NotFoundPage.js +1 -1
  119. package/dist/lib/components/NotFoundPage.js.map +1 -1
  120. package/dist/lib/components/PathRenderer.d.ts +11 -0
  121. package/dist/lib/components/PathRenderer.js +25 -0
  122. package/dist/lib/components/PathRenderer.js.map +1 -0
  123. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  124. package/dist/lib/components/ReactMarkdown.js +182 -0
  125. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  126. package/dist/lib/components/Search.d.ts +3 -1
  127. package/dist/lib/components/Search.js +3 -3
  128. package/dist/lib/components/Search.js.map +1 -1
  129. package/dist/lib/components/SlotletProvider.d.ts +8 -3
  130. package/dist/lib/components/SlotletProvider.js +3 -5
  131. package/dist/lib/components/SlotletProvider.js.map +1 -1
  132. package/dist/lib/components/StatusPage.d.ts +7 -0
  133. package/dist/lib/components/StatusPage.js +71 -0
  134. package/dist/lib/components/StatusPage.js.map +1 -0
  135. package/dist/lib/components/SyntaxHighlight.d.ts +2 -1
  136. package/dist/lib/components/SyntaxHighlight.js +20 -17
  137. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  138. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  139. package/dist/lib/components/ThemeSwitch.js +13 -0
  140. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  141. package/dist/lib/components/TopNavigation.d.ts +5 -0
  142. package/dist/lib/components/TopNavigation.js +22 -8
  143. package/dist/lib/components/TopNavigation.js.map +1 -1
  144. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  145. package/dist/lib/components/{DevPortal.js → Zudoku.js} +14 -15
  146. package/dist/lib/components/Zudoku.js.map +1 -0
  147. package/dist/lib/components/cache.d.ts +6 -0
  148. package/dist/lib/components/cache.js +13 -0
  149. package/dist/lib/components/cache.js.map +1 -0
  150. package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
  151. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  152. package/dist/lib/components/context/ZudokuContext.d.ts +7 -6
  153. package/dist/lib/components/context/ZudokuContext.js +11 -15
  154. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  155. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  156. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  157. package/dist/lib/components/index.d.ts +46 -17
  158. package/dist/lib/components/index.js +21 -6
  159. package/dist/lib/components/index.js.map +1 -1
  160. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  161. package/dist/lib/components/navigation/Sidebar.js +2 -2
  162. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  163. package/dist/lib/components/navigation/SidebarBadge.d.ts +4 -3
  164. package/dist/lib/components/navigation/SidebarBadge.js +11 -11
  165. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  166. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  167. package/dist/lib/components/navigation/SidebarCategory.js +20 -8
  168. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  169. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  170. package/dist/lib/components/navigation/SidebarItem.js +13 -11
  171. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  172. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  173. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  174. package/dist/lib/components/navigation/utils.js +3 -3
  175. package/dist/lib/components/navigation/utils.js.map +1 -1
  176. package/dist/lib/core/RouteGuard.d.ts +1 -0
  177. package/dist/lib/core/RouteGuard.js +28 -0
  178. package/dist/lib/core/RouteGuard.js.map +1 -0
  179. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +8 -10
  180. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +11 -14
  181. package/dist/lib/core/ZudokuContext.js.map +1 -0
  182. package/dist/lib/core/plugins.d.ts +17 -13
  183. package/dist/lib/core/plugins.js.map +1 -1
  184. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  185. package/dist/lib/errors/ErrorAlert.js +8 -3
  186. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  187. package/dist/lib/errors/RouterError.js +1 -1
  188. package/dist/lib/errors/RouterError.js.map +1 -1
  189. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  190. package/dist/lib/oas/graphql/circular.js +38 -0
  191. package/dist/lib/oas/graphql/circular.js.map +1 -0
  192. package/dist/lib/oas/graphql/index.d.ts +4 -0
  193. package/dist/lib/oas/graphql/index.js +81 -49
  194. package/dist/lib/oas/graphql/index.js.map +1 -1
  195. package/dist/lib/oas/parser/dereference/index.js +6 -3
  196. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  197. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  198. package/dist/lib/oas/parser/upgrade/index.js +19 -20
  199. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  200. package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -0
  201. package/dist/lib/plugins/api-catalog/Catalog.js +36 -0
  202. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  203. package/dist/lib/plugins/api-catalog/index.d.ts +30 -0
  204. package/dist/lib/plugins/api-catalog/index.js +15 -0
  205. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  206. package/dist/lib/plugins/api-keys/CreateApiKey.js +2 -2
  207. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  208. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  209. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  210. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  211. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  212. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  213. package/dist/lib/plugins/api-keys/index.js +3 -0
  214. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  215. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  216. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  217. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  218. package/dist/lib/plugins/custom-pages/index.d.ts +9 -7
  219. package/dist/lib/plugins/custom-pages/index.js +3 -4
  220. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  221. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  222. package/dist/lib/plugins/markdown/MdxPage.js +22 -3
  223. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  224. package/dist/lib/plugins/markdown/index.d.ts +5 -3
  225. package/dist/lib/plugins/markdown/index.js +1 -1
  226. package/dist/lib/plugins/markdown/index.js.map +1 -1
  227. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  228. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  229. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  230. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  231. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  232. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  233. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  234. package/dist/lib/plugins/openapi/Endpoint.js +10 -12
  235. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  236. package/dist/lib/plugins/openapi/OpenApiRoute.d.ts +9 -0
  237. package/dist/lib/plugins/openapi/OpenApiRoute.js +25 -0
  238. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +1 -0
  239. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
  240. package/dist/lib/plugins/openapi/OperationList.js +60 -31
  241. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  242. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  243. package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
  244. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  245. package/dist/lib/plugins/openapi/ParameterListItem.js +7 -1
  246. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  247. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
  248. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -2
  249. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  250. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  251. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  252. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  253. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
  254. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  255. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  256. package/dist/lib/plugins/openapi/Sidecar.js +50 -60
  257. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  258. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  259. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  260. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  261. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  262. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  263. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  264. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  265. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  266. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  267. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  268. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  269. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  270. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  271. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  272. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  273. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  274. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  275. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  276. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  277. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  278. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  279. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -48
  280. package/dist/lib/plugins/openapi/graphql/gql.js +6 -3
  281. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  282. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +79 -32
  283. package/dist/lib/plugins/openapi/graphql/graphql.js +199 -662
  284. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  285. package/dist/lib/plugins/openapi/index.d.ts +4 -3
  286. package/dist/lib/plugins/openapi/index.js +111 -86
  287. package/dist/lib/plugins/openapi/index.js.map +1 -1
  288. package/dist/lib/plugins/openapi/interfaces.d.ts +27 -2
  289. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  290. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
  291. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  292. package/dist/lib/plugins/openapi/playground/Headers.js +67 -4
  293. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  294. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +5 -0
  295. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +4 -0
  296. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  297. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -7
  298. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  299. package/dist/lib/plugins/openapi/playground/Playground.d.ts +21 -1
  300. package/dist/lib/plugins/openapi/playground/Playground.js +62 -53
  301. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  302. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  303. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  304. package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -14
  305. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  306. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  307. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  308. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  309. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  310. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  311. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  312. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  313. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +95 -0
  314. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  315. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +7 -0
  316. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +16 -0
  317. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  318. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  319. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  320. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  321. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  322. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  323. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +7 -0
  324. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +16 -0
  325. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  326. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  327. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +174 -0
  328. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  329. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
  330. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
  331. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
  332. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
  333. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
  334. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
  335. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  336. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  337. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  338. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  339. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  340. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  341. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  342. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  343. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  344. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +37 -0
  345. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  346. package/dist/lib/plugins/openapi/schema/SchemaView.js +3 -2
  347. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  348. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  349. package/dist/lib/plugins/openapi/schema/utils.js +2 -0
  350. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  351. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  352. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +36 -39
  353. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  354. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  355. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  356. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  357. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  358. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  359. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  360. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  361. package/dist/lib/plugins/redirect/index.js +2 -2
  362. package/dist/lib/plugins/redirect/index.js.map +1 -1
  363. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  364. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  365. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  366. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  367. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  368. package/dist/lib/ui/Accordion.d.ts +7 -0
  369. package/dist/lib/ui/Accordion.js +14 -0
  370. package/dist/lib/ui/Accordion.js.map +1 -0
  371. package/dist/lib/ui/ActionButton.d.ts +4 -0
  372. package/dist/lib/ui/ActionButton.js +10 -0
  373. package/dist/lib/ui/ActionButton.js.map +1 -0
  374. package/dist/lib/ui/Alert.d.ts +8 -0
  375. package/dist/lib/ui/Alert.js +23 -0
  376. package/dist/lib/ui/Alert.js.map +1 -0
  377. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  378. package/dist/lib/ui/AlertDialog.js +27 -0
  379. package/dist/lib/ui/AlertDialog.js.map +1 -0
  380. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  381. package/dist/lib/ui/AspectRatio.js +4 -0
  382. package/dist/lib/ui/AspectRatio.js.map +1 -0
  383. package/dist/lib/ui/Badge.d.ts +9 -0
  384. package/dist/lib/ui/Badge.js +22 -0
  385. package/dist/lib/ui/Badge.js.map +1 -0
  386. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  387. package/dist/lib/ui/Breadcrumb.js +24 -0
  388. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  389. package/dist/lib/ui/Button.d.ts +2 -3
  390. package/dist/lib/ui/Button.js +1 -1
  391. package/dist/lib/ui/Button.js.map +1 -1
  392. package/dist/lib/ui/Card.js +1 -1
  393. package/dist/lib/ui/Card.js.map +1 -1
  394. package/dist/lib/ui/Carousel.d.ts +18 -0
  395. package/dist/lib/ui/Carousel.js +99 -0
  396. package/dist/lib/ui/Carousel.js.map +1 -0
  397. package/dist/lib/ui/Checkbox.d.ts +10 -0
  398. package/dist/lib/ui/Checkbox.js +21 -0
  399. package/dist/lib/ui/Checkbox.js.map +1 -0
  400. package/dist/lib/ui/Collapsible.d.ts +5 -0
  401. package/dist/lib/ui/Collapsible.js +6 -0
  402. package/dist/lib/ui/Collapsible.js.map +1 -0
  403. package/dist/lib/ui/Command.d.ts +88 -0
  404. package/dist/lib/ui/Command.js +35 -0
  405. package/dist/lib/ui/Command.js.map +1 -0
  406. package/dist/lib/{components → ui}/Dialog.js +2 -2
  407. package/dist/lib/ui/Dialog.js.map +1 -0
  408. package/dist/lib/ui/Form.d.ts +23 -0
  409. package/dist/lib/ui/Form.js +63 -0
  410. package/dist/lib/ui/Form.js.map +1 -0
  411. package/dist/lib/ui/HoverCard.d.ts +6 -0
  412. package/dist/lib/ui/HoverCard.js +10 -0
  413. package/dist/lib/ui/HoverCard.js.map +1 -0
  414. package/dist/lib/ui/Label.d.ts +5 -0
  415. package/dist/lib/ui/Label.js +10 -0
  416. package/dist/lib/ui/Label.js.map +1 -0
  417. package/dist/lib/ui/Pagination.d.ts +28 -0
  418. package/dist/lib/ui/Pagination.js +24 -0
  419. package/dist/lib/ui/Pagination.js.map +1 -0
  420. package/dist/lib/ui/Popover.d.ts +6 -0
  421. package/dist/lib/ui/Popover.js +10 -0
  422. package/dist/lib/ui/Popover.js.map +1 -0
  423. package/dist/lib/ui/Progress.d.ts +4 -0
  424. package/dist/lib/ui/Progress.js +8 -0
  425. package/dist/lib/ui/Progress.js.map +1 -0
  426. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  427. package/dist/lib/ui/RadioGroup.js +15 -0
  428. package/dist/lib/ui/RadioGroup.js.map +1 -0
  429. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  430. package/dist/lib/ui/ScrollArea.js +12 -0
  431. package/dist/lib/ui/ScrollArea.js.map +1 -0
  432. package/dist/lib/{components → ui}/Select.js +2 -2
  433. package/dist/lib/ui/Select.js.map +1 -0
  434. package/dist/lib/ui/Skeleton.d.ts +2 -0
  435. package/dist/lib/ui/Skeleton.js +7 -0
  436. package/dist/lib/ui/Skeleton.js.map +1 -0
  437. package/dist/lib/ui/Slider.d.ts +4 -0
  438. package/dist/lib/ui/Slider.js +8 -0
  439. package/dist/lib/ui/Slider.js.map +1 -0
  440. package/dist/lib/ui/Switch.d.ts +4 -0
  441. package/dist/lib/ui/Switch.js +8 -0
  442. package/dist/lib/ui/Switch.js.map +1 -0
  443. package/dist/lib/ui/Textarea.d.ts +4 -0
  444. package/dist/lib/ui/Textarea.js +9 -0
  445. package/dist/lib/ui/Textarea.js.map +1 -0
  446. package/dist/lib/ui/Toggle.d.ts +12 -0
  447. package/dist/lib/ui/Toggle.js +26 -0
  448. package/dist/lib/ui/Toggle.js.map +1 -0
  449. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  450. package/dist/lib/ui/ToggleGroup.js +21 -0
  451. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  452. package/dist/lib/ui/Tooltip.d.ts +7 -0
  453. package/dist/lib/ui/Tooltip.js +11 -0
  454. package/dist/lib/ui/Tooltip.js.map +1 -0
  455. package/dist/lib/util/MdxComponents.d.ts +19 -20
  456. package/dist/lib/util/MdxComponents.js +3 -5
  457. package/dist/lib/util/MdxComponents.js.map +1 -1
  458. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  459. package/dist/lib/util/invariant.d.ts +9 -0
  460. package/dist/lib/util/invariant.js +7 -3
  461. package/dist/lib/util/invariant.js.map +1 -1
  462. package/dist/lib/util/joinUrl.d.ts +1 -0
  463. package/dist/lib/util/joinUrl.js +40 -0
  464. package/dist/lib/util/joinUrl.js.map +1 -0
  465. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  466. package/dist/lib/util/joinUrl.test.js +43 -0
  467. package/dist/lib/util/joinUrl.test.js.map +1 -0
  468. package/dist/lib/util/traverse.d.ts +9 -0
  469. package/dist/lib/util/traverse.js +22 -0
  470. package/dist/lib/util/traverse.js.map +1 -0
  471. package/dist/lib/util/useExposedProps.d.ts +2 -0
  472. package/dist/lib/util/useExposedProps.js +9 -0
  473. package/dist/lib/util/useExposedProps.js.map +1 -0
  474. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  475. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  476. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  477. package/dist/lib/util/useOnScreen.d.ts +4 -0
  478. package/dist/lib/util/useOnScreen.js +19 -0
  479. package/dist/lib/util/useOnScreen.js.map +1 -0
  480. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  481. package/dist/lib/util/useScrollToAnchor.js +27 -16
  482. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  483. package/dist/lib/util/useScrollToTop.js +1 -1
  484. package/dist/lib/util/useScrollToTop.js.map +1 -1
  485. package/dist/vite/api/schema-codegen.d.ts +12 -0
  486. package/dist/vite/api/schema-codegen.js +62 -0
  487. package/dist/vite/api/schema-codegen.js.map +1 -0
  488. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  489. package/dist/vite/api/schema-codegen.test.js +247 -0
  490. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  491. package/dist/vite/build.js +28 -10
  492. package/dist/vite/build.js.map +1 -1
  493. package/dist/vite/config.d.ts +6 -10
  494. package/dist/vite/config.js +100 -83
  495. package/dist/vite/config.js.map +1 -1
  496. package/dist/vite/config.test.js +11 -5
  497. package/dist/vite/config.test.js.map +1 -1
  498. package/dist/vite/css/collect.d.ts +2 -0
  499. package/dist/vite/css/collect.js +27 -0
  500. package/dist/vite/css/collect.js.map +1 -0
  501. package/dist/vite/css/plugin.d.ts +5 -0
  502. package/dist/vite/css/plugin.js +79 -0
  503. package/dist/vite/css/plugin.js.map +1 -0
  504. package/dist/vite/dev-server.d.ts +1 -0
  505. package/dist/vite/dev-server.js +27 -7
  506. package/dist/vite/dev-server.js.map +1 -1
  507. package/dist/vite/html.js +0 -2
  508. package/dist/vite/html.js.map +1 -1
  509. package/dist/vite/output.d.ts +101 -0
  510. package/dist/vite/output.js +62 -0
  511. package/dist/vite/output.js.map +1 -0
  512. package/dist/vite/plugin-api.d.ts +1 -1
  513. package/dist/vite/plugin-api.js +162 -22
  514. package/dist/vite/plugin-api.js.map +1 -1
  515. package/dist/vite/plugin-auth.js +4 -1
  516. package/dist/vite/plugin-auth.js.map +1 -1
  517. package/dist/vite/plugin-component.js +16 -11
  518. package/dist/vite/plugin-component.js.map +1 -1
  519. package/dist/vite/plugin-config-reload.d.ts +1 -2
  520. package/dist/vite/plugin-config-reload.js +0 -2
  521. package/dist/vite/plugin-config-reload.js.map +1 -1
  522. package/dist/vite/plugin-config.d.ts +2 -3
  523. package/dist/vite/plugin-config.js +22 -3
  524. package/dist/vite/plugin-config.js.map +1 -1
  525. package/dist/vite/plugin-docs.js +13 -2
  526. package/dist/vite/plugin-docs.js.map +1 -1
  527. package/dist/vite/plugin-docs.test.js +15 -23
  528. package/dist/vite/plugin-docs.test.js.map +1 -1
  529. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  530. package/dist/vite/plugin-frontmatter.js +27 -24
  531. package/dist/vite/plugin-frontmatter.js.map +1 -1
  532. package/dist/vite/plugin-mdx.d.ts +0 -6
  533. package/dist/vite/plugin-mdx.js +85 -6
  534. package/dist/vite/plugin-mdx.js.map +1 -1
  535. package/dist/vite/plugin-search.d.ts +3 -0
  536. package/dist/vite/plugin-search.js +26 -0
  537. package/dist/vite/plugin-search.js.map +1 -0
  538. package/dist/vite/plugin-sidebar.js +4 -6
  539. package/dist/vite/plugin-sidebar.js.map +1 -1
  540. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  541. package/dist/vite/plugin-theme-css.js +114 -0
  542. package/dist/vite/plugin-theme-css.js.map +1 -0
  543. package/dist/vite/plugin.d.ts +1 -2
  544. package/dist/vite/plugin.js +10 -6
  545. package/dist/vite/plugin.js.map +1 -1
  546. package/dist/vite/prerender.d.ts +3 -2
  547. package/dist/vite/prerender.js +7 -6
  548. package/dist/vite/prerender.js.map +1 -1
  549. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  550. package/dist/vite/remarkStaticGeneration.js +125 -0
  551. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  552. package/dist/vite/sitemap.d.ts +1 -1
  553. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  554. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  555. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  556. package/dist/zuplo/env.d.ts +7 -0
  557. package/dist/zuplo/env.js +12 -0
  558. package/dist/zuplo/env.js.map +1 -0
  559. package/dist/zuplo/policy-types.d.ts +33 -0
  560. package/dist/zuplo/policy-types.js +8 -0
  561. package/dist/zuplo/policy-types.js.map +1 -0
  562. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  563. package/dist/zuplo/with-zuplo-processors.js +26 -0
  564. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  565. package/dist/zuplo/with-zuplo.d.ts +3 -0
  566. package/dist/zuplo/with-zuplo.js +9 -0
  567. package/dist/zuplo/with-zuplo.js.map +1 -0
  568. package/lib/AuthenticationPlugin-Du8cLBSr.js +58 -0
  569. package/lib/AuthenticationPlugin-Du8cLBSr.js.map +1 -0
  570. package/lib/CategoryHeading-MYL1u_6K.js +10 -0
  571. package/lib/{CategoryHeading-C7VfgpFZ.js.map → CategoryHeading-MYL1u_6K.js.map} +1 -1
  572. package/lib/ClientOnly-E7hGysn1.js +11 -0
  573. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  574. package/lib/Markdown-Cyrx_JrO.js +15212 -0
  575. package/lib/Markdown-Cyrx_JrO.js.map +1 -0
  576. package/lib/MdxPage-BuG8Tuwc.js +193 -0
  577. package/lib/MdxPage-BuG8Tuwc.js.map +1 -0
  578. package/lib/OpenApiRoute-UrC_t0e5.js +36 -0
  579. package/lib/OpenApiRoute-UrC_t0e5.js.map +1 -0
  580. package/lib/OperationList-CDt1xdc4.js +5169 -0
  581. package/lib/OperationList-CDt1xdc4.js.map +1 -0
  582. package/lib/Select-CnCZ4WhS.js +223 -0
  583. package/lib/Select-CnCZ4WhS.js.map +1 -0
  584. package/lib/SlotletProvider-mQiPDQIH.js +221 -0
  585. package/lib/SlotletProvider-mQiPDQIH.js.map +1 -0
  586. package/lib/Spinner-BlzrEEk1.js +51 -0
  587. package/lib/Spinner-BlzrEEk1.js.map +1 -0
  588. package/lib/SyntaxHighlight-B0L4SC_N.js +2986 -0
  589. package/lib/SyntaxHighlight-B0L4SC_N.js.map +1 -0
  590. package/lib/ZudokuContext-BTUJPpQl.js +1229 -0
  591. package/lib/ZudokuContext-BTUJPpQl.js.map +1 -0
  592. package/lib/_commonjsHelpers-BkfeUUK-.js +29 -0
  593. package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  594. package/lib/chunk-SYFQ2XB5-BPvC-soB.js +1821 -0
  595. package/lib/chunk-SYFQ2XB5-BPvC-soB.js.map +1 -0
  596. package/lib/circular-DxaIIlWD.js +15409 -0
  597. package/lib/circular-DxaIIlWD.js.map +1 -0
  598. package/lib/cn-qaFjX9_3.js +2279 -0
  599. package/lib/cn-qaFjX9_3.js.map +1 -0
  600. package/lib/context-rwLGh-6_.js +22 -0
  601. package/lib/context-rwLGh-6_.js.map +1 -0
  602. package/lib/createServer-CjNktZzL.js +12603 -0
  603. package/lib/createServer-CjNktZzL.js.map +1 -0
  604. package/lib/hook-FT3SJLe_.js +227 -0
  605. package/lib/hook-FT3SJLe_.js.map +1 -0
  606. package/lib/index-B7mqiOei.js +509 -0
  607. package/lib/index-B7mqiOei.js.map +1 -0
  608. package/lib/{index-D06ATMgg.js → index-CjJS0l4l.js} +2 -2
  609. package/lib/{index-D06ATMgg.js.map → index-CjJS0l4l.js.map} +1 -1
  610. package/lib/index-Djenk2Hj.js +36 -0
  611. package/lib/index-Djenk2Hj.js.map +1 -0
  612. package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
  613. package/lib/index-Dl3Yl0yb.js.map +1 -0
  614. package/lib/index-Eb1oiHbM.js +1997 -0
  615. package/lib/index-Eb1oiHbM.js.map +1 -0
  616. package/lib/index.esm-9-TF9KQB.js +692 -0
  617. package/lib/index.esm-9-TF9KQB.js.map +1 -0
  618. package/lib/index.esm-CrSoEshU.js +1207 -0
  619. package/lib/index.esm-CrSoEshU.js.map +1 -0
  620. package/lib/invariant-Caa8-XvF.js +26 -0
  621. package/lib/invariant-Caa8-XvF.js.map +1 -0
  622. package/lib/joinUrl-nLx9pD-Z.js +20 -0
  623. package/lib/joinUrl-nLx9pD-Z.js.map +1 -0
  624. package/lib/jsx-runtime-Bdg6XQ1m.js +446 -0
  625. package/lib/jsx-runtime-Bdg6XQ1m.js.map +1 -0
  626. package/lib/post-processors/removeExtensions.js +11 -0
  627. package/lib/post-processors/removeExtensions.js.map +1 -0
  628. package/lib/post-processors/removeParameters.js +48 -0
  629. package/lib/post-processors/removeParameters.js.map +1 -0
  630. package/lib/post-processors/removePaths.js +28 -0
  631. package/lib/post-processors/removePaths.js.map +1 -0
  632. package/lib/post-processors/traverse.js +15 -0
  633. package/lib/post-processors/traverse.js.map +1 -0
  634. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  635. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  636. package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
  637. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  638. package/lib/prism-java.min-BpvsOuIa.js +35 -0
  639. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  640. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  641. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  642. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  643. package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
  644. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  645. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  646. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  647. package/lib/state-mM7uaXTW.js +202 -0
  648. package/lib/state-mM7uaXTW.js.map +1 -0
  649. package/lib/ui/Accordion.js +47 -0
  650. package/lib/ui/Accordion.js.map +1 -0
  651. package/lib/ui/ActionButton.js +24 -0
  652. package/lib/ui/ActionButton.js.map +1 -0
  653. package/lib/ui/Alert.js +51 -0
  654. package/lib/ui/Alert.js.map +1 -0
  655. package/lib/ui/AlertDialog.js +114 -0
  656. package/lib/ui/AlertDialog.js.map +1 -0
  657. package/lib/ui/AspectRatio.js +6 -0
  658. package/lib/ui/AspectRatio.js.map +1 -0
  659. package/lib/ui/Badge.js +28 -0
  660. package/lib/ui/Badge.js.map +1 -0
  661. package/lib/ui/Breadcrumb.js +94 -0
  662. package/lib/ui/Breadcrumb.js.map +1 -0
  663. package/lib/ui/Button.js +49 -0
  664. package/lib/ui/Button.js.map +1 -0
  665. package/lib/ui/Callout.js +77 -0
  666. package/lib/ui/Callout.js.map +1 -0
  667. package/lib/ui/Card.js +62 -0
  668. package/lib/ui/Card.js.map +1 -0
  669. package/lib/ui/Carousel.js +1416 -0
  670. package/lib/ui/Carousel.js.map +1 -0
  671. package/lib/ui/Checkbox.js +39 -0
  672. package/lib/ui/Checkbox.js.map +1 -0
  673. package/lib/ui/Collapsible.js +8 -0
  674. package/lib/ui/Collapsible.js.map +1 -0
  675. package/lib/ui/Command.js +129 -0
  676. package/lib/ui/Command.js.map +1 -0
  677. package/lib/ui/Dialog.js +101 -0
  678. package/lib/ui/Dialog.js.map +1 -0
  679. package/lib/ui/Drawer.js +1154 -0
  680. package/lib/ui/Drawer.js.map +1 -0
  681. package/lib/ui/DropdownMenu.js +145 -0
  682. package/lib/ui/DropdownMenu.js.map +1 -0
  683. package/lib/ui/Form.js +95 -0
  684. package/lib/ui/Form.js.map +1 -0
  685. package/lib/ui/HoverCard.js +24 -0
  686. package/lib/ui/HoverCard.js.map +1 -0
  687. package/lib/ui/Input.js +22 -0
  688. package/lib/ui/Input.js.map +1 -0
  689. package/lib/ui/Label.js +20 -0
  690. package/lib/ui/Label.js.map +1 -0
  691. package/lib/ui/Pagination.js +106 -0
  692. package/lib/ui/Pagination.js.map +1 -0
  693. package/lib/ui/Popover.js +24 -0
  694. package/lib/ui/Popover.js.map +1 -0
  695. package/lib/ui/Progress.js +27 -0
  696. package/lib/ui/Progress.js.map +1 -0
  697. package/lib/ui/RadioGroup.js +32 -0
  698. package/lib/ui/RadioGroup.js.map +1 -0
  699. package/lib/ui/ScrollArea.js +39 -0
  700. package/lib/ui/ScrollArea.js.map +1 -0
  701. package/lib/ui/Select.js +122 -0
  702. package/lib/ui/Select.js.map +1 -0
  703. package/lib/ui/Skeleton.js +18 -0
  704. package/lib/ui/Skeleton.js.map +1 -0
  705. package/lib/ui/Slider.js +24 -0
  706. package/lib/ui/Slider.js.map +1 -0
  707. package/lib/ui/Switch.js +28 -0
  708. package/lib/ui/Switch.js.map +1 -0
  709. package/lib/ui/Tabs.js +47 -0
  710. package/lib/ui/Tabs.js.map +1 -0
  711. package/lib/ui/Textarea.js +21 -0
  712. package/lib/ui/Textarea.js.map +1 -0
  713. package/lib/ui/Toggle.js +38 -0
  714. package/lib/ui/Toggle.js.map +1 -0
  715. package/lib/ui/ToggleGroup.js +42 -0
  716. package/lib/ui/ToggleGroup.js.map +1 -0
  717. package/lib/ui/Tooltip.js +24 -0
  718. package/lib/ui/Tooltip.js.map +1 -0
  719. package/lib/useExposedProps-BLKFBylA.js +9 -0
  720. package/lib/useExposedProps-BLKFBylA.js.map +1 -0
  721. package/lib/useScrollToAnchor-BZsGmBng.js +284 -0
  722. package/lib/useScrollToAnchor-BZsGmBng.js.map +1 -0
  723. package/lib/zudoku.auth-auth0.js +24 -20
  724. package/lib/zudoku.auth-auth0.js.map +1 -1
  725. package/lib/zudoku.auth-clerk.js +79 -51
  726. package/lib/zudoku.auth-clerk.js.map +1 -1
  727. package/lib/zudoku.auth-openid.js +610 -617
  728. package/lib/zudoku.auth-openid.js.map +1 -1
  729. package/lib/zudoku.components.js +1009 -3237
  730. package/lib/zudoku.components.js.map +1 -1
  731. package/lib/zudoku.plugin-api-catalog.js +123 -0
  732. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  733. package/lib/zudoku.plugin-api-keys.js +72 -78
  734. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  735. package/lib/zudoku.plugin-custom-pages.js +17 -8
  736. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  737. package/lib/zudoku.plugin-markdown.js +16 -15
  738. package/lib/zudoku.plugin-markdown.js.map +1 -1
  739. package/lib/zudoku.plugin-openapi.js +8 -11
  740. package/lib/zudoku.plugin-openapi.js.map +1 -1
  741. package/lib/zudoku.plugin-redirect.js +2 -2
  742. package/lib/zudoku.plugin-redirect.js.map +1 -1
  743. package/lib/zudoku.plugin-search-inkeep.js +53 -28
  744. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  745. package/package.json +120 -70
  746. package/src/app/demo.tsx +1 -5
  747. package/src/app/entry.client.tsx +16 -1
  748. package/src/app/entry.server.tsx +62 -55
  749. package/src/app/main.css +58 -46
  750. package/src/app/main.tsx +38 -18
  751. package/src/app/sentry.ts +24 -0
  752. package/src/app/standalone.tsx +1 -5
  753. package/src/app/tailwind.ts +67 -52
  754. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  755. package/src/lib/authentication/authentication.ts +3 -3
  756. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  757. package/src/lib/authentication/components/SignIn.tsx +1 -1
  758. package/src/lib/authentication/components/SignOut.tsx +3 -2
  759. package/src/lib/authentication/hook.ts +1 -3
  760. package/src/lib/authentication/providers/auth0.tsx +17 -14
  761. package/src/lib/authentication/providers/clerk.tsx +38 -7
  762. package/src/lib/authentication/providers/openid.tsx +41 -40
  763. package/src/lib/authentication/state.ts +50 -9
  764. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  765. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  766. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  767. package/src/lib/components/AnchorLink.tsx +6 -3
  768. package/src/lib/components/Autocomplete.tsx +111 -0
  769. package/src/lib/components/Bootstrap.tsx +36 -16
  770. package/src/lib/components/ClientOnly.tsx +6 -3
  771. package/src/lib/components/DeveloperHint.tsx +6 -1
  772. package/src/lib/components/Header.tsx +89 -50
  773. package/src/lib/components/Heading.tsx +13 -13
  774. package/src/lib/components/Layout.tsx +55 -38
  775. package/src/lib/components/Markdown.tsx +15 -16
  776. package/src/lib/components/MobileTopNavigation.tsx +30 -27
  777. package/src/lib/components/NotFoundPage.tsx +1 -1
  778. package/src/lib/components/PathRenderer.tsx +59 -0
  779. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  780. package/src/lib/components/ReactMarkdown.tsx +264 -0
  781. package/src/lib/components/Search.tsx +4 -4
  782. package/src/lib/components/SlotletProvider.tsx +16 -7
  783. package/src/lib/components/StatusPage.tsx +91 -0
  784. package/src/lib/components/SyntaxHighlight.tsx +99 -50
  785. package/src/lib/components/ThemeSwitch.tsx +26 -0
  786. package/src/lib/components/TopNavigation.tsx +41 -20
  787. package/src/lib/components/Zudoku.tsx +108 -0
  788. package/src/lib/components/cache.ts +15 -0
  789. package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
  790. package/src/lib/components/context/ZudokuContext.ts +15 -18
  791. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  792. package/src/lib/components/index.ts +27 -6
  793. package/src/lib/components/navigation/Sidebar.tsx +20 -10
  794. package/src/lib/components/navigation/SidebarBadge.tsx +13 -11
  795. package/src/lib/components/navigation/SidebarCategory.tsx +52 -44
  796. package/src/lib/components/navigation/SidebarItem.tsx +24 -28
  797. package/src/lib/components/navigation/SidebarWrapper.tsx +3 -2
  798. package/src/lib/components/navigation/utils.ts +3 -3
  799. package/src/lib/core/RouteGuard.tsx +35 -0
  800. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +13 -20
  801. package/src/lib/core/plugins.ts +17 -17
  802. package/src/lib/errors/ErrorAlert.tsx +20 -6
  803. package/src/lib/errors/RouterError.tsx +1 -1
  804. package/src/lib/oas/graphql/circular.ts +50 -0
  805. package/src/lib/oas/graphql/index.ts +113 -69
  806. package/src/lib/oas/parser/dereference/index.ts +8 -4
  807. package/src/lib/oas/parser/upgrade/index.ts +22 -28
  808. package/src/lib/plugins/api-catalog/Catalog.tsx +123 -0
  809. package/src/lib/plugins/api-catalog/index.tsx +64 -0
  810. package/src/lib/plugins/api-keys/CreateApiKey.tsx +3 -3
  811. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  812. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  813. package/src/lib/plugins/api-keys/index.tsx +13 -10
  814. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  815. package/src/lib/plugins/custom-pages/index.tsx +14 -12
  816. package/src/lib/plugins/markdown/MdxPage.tsx +46 -10
  817. package/src/lib/plugins/markdown/index.tsx +7 -4
  818. package/src/lib/plugins/markdown/resolver.ts +2 -4
  819. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  820. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  821. package/src/lib/plugins/openapi/Endpoint.tsx +10 -15
  822. package/src/lib/plugins/openapi/OpenApiRoute.tsx +51 -0
  823. package/src/lib/plugins/openapi/OperationList.tsx +116 -54
  824. package/src/lib/plugins/openapi/OperationListItem.tsx +39 -5
  825. package/src/lib/plugins/openapi/ParameterListItem.tsx +36 -31
  826. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
  827. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  828. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
  829. package/src/lib/plugins/openapi/Sidecar.tsx +105 -107
  830. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  831. package/src/lib/plugins/openapi/SidecarExamples.tsx +163 -0
  832. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  833. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  834. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  835. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  836. package/src/lib/plugins/openapi/context.tsx +2 -2
  837. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  838. package/src/lib/plugins/openapi/graphql/gql.ts +19 -28
  839. package/src/lib/plugins/openapi/graphql/graphql.ts +284 -690
  840. package/src/lib/plugins/openapi/index.tsx +147 -109
  841. package/src/lib/plugins/openapi/interfaces.ts +32 -2
  842. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +54 -0
  843. package/src/lib/plugins/openapi/playground/Headers.tsx +137 -39
  844. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +8 -0
  845. package/src/lib/plugins/openapi/playground/PathParams.tsx +30 -61
  846. package/src/lib/plugins/openapi/playground/Playground.tsx +257 -211
  847. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -3
  848. package/src/lib/plugins/openapi/playground/QueryParams.tsx +77 -80
  849. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  850. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  851. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +210 -0
  852. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +101 -0
  853. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  854. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  855. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +202 -0
  856. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +27 -0
  857. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
  858. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
  859. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  860. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  861. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  862. package/src/lib/plugins/openapi/schema/{SchemaComponents.tsx → SchemaPropertyItem.tsx} +34 -9
  863. package/src/lib/plugins/openapi/schema/SchemaView.tsx +9 -3
  864. package/src/lib/plugins/openapi/schema/utils.ts +4 -0
  865. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +44 -43
  866. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  867. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  868. package/src/lib/plugins/redirect/index.tsx +6 -10
  869. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  870. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  871. package/src/lib/ui/Accordion.tsx +56 -0
  872. package/src/lib/ui/ActionButton.tsx +28 -0
  873. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  874. package/src/lib/ui/AlertDialog.tsx +139 -0
  875. package/src/lib/ui/AspectRatio.tsx +5 -0
  876. package/src/lib/ui/Badge.tsx +37 -0
  877. package/src/lib/ui/Breadcrumb.tsx +115 -0
  878. package/src/lib/ui/Button.tsx +1 -1
  879. package/src/lib/ui/Card.tsx +1 -1
  880. package/src/lib/ui/Carousel.tsx +260 -0
  881. package/src/lib/ui/Checkbox.tsx +45 -0
  882. package/src/lib/ui/Collapsible.tsx +9 -0
  883. package/src/lib/ui/Command.tsx +171 -0
  884. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  885. package/src/lib/ui/Form.tsx +177 -0
  886. package/src/lib/ui/HoverCard.tsx +27 -0
  887. package/src/lib/ui/Label.tsx +24 -0
  888. package/src/lib/ui/Pagination.tsx +117 -0
  889. package/src/lib/ui/Popover.tsx +29 -0
  890. package/src/lib/ui/Progress.tsx +26 -0
  891. package/src/lib/ui/RadioGroup.tsx +42 -0
  892. package/src/lib/ui/ScrollArea.tsx +46 -0
  893. package/src/lib/{components → ui}/Select.tsx +1 -1
  894. package/src/lib/ui/Skeleton.tsx +15 -0
  895. package/src/lib/ui/Slider.tsx +26 -0
  896. package/src/lib/ui/Switch.tsx +27 -0
  897. package/src/lib/ui/Textarea.tsx +23 -0
  898. package/src/lib/ui/Toggle.tsx +43 -0
  899. package/src/lib/ui/ToggleGroup.tsx +59 -0
  900. package/src/lib/ui/Tooltip.tsx +28 -0
  901. package/src/lib/util/MdxComponents.tsx +5 -10
  902. package/src/lib/util/createVariantComponent.tsx +2 -2
  903. package/src/lib/util/invariant.ts +15 -3
  904. package/src/lib/util/joinUrl.test.ts +62 -0
  905. package/src/lib/util/joinUrl.ts +57 -0
  906. package/src/lib/util/traverse.ts +35 -0
  907. package/src/lib/util/useExposedProps.tsx +16 -0
  908. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  909. package/src/lib/util/useOnScreen.ts +32 -0
  910. package/src/lib/util/useScrollToAnchor.ts +33 -16
  911. package/src/lib/util/useScrollToTop.ts +1 -1
  912. package/dist/internal.d.ts +0 -1
  913. package/dist/internal.js +0 -2
  914. package/dist/internal.js.map +0 -1
  915. package/dist/lib/components/DevPortal.js.map +0 -1
  916. package/dist/lib/components/Dialog.js.map +0 -1
  917. package/dist/lib/components/Select.js.map +0 -1
  918. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  919. package/dist/lib/components/context/ThemeContext.js +0 -7
  920. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  921. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  922. package/dist/lib/components/context/ThemeProvider.js +0 -23
  923. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  924. package/dist/lib/core/DevPortalContext.js.map +0 -1
  925. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  926. package/dist/lib/plugins/openapi/Route.js +0 -8
  927. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  928. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  929. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  930. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  931. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  932. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  933. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  934. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  935. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  936. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  937. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  938. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  939. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  940. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  941. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  942. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  943. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  944. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  945. package/dist/lib/plugins/openapi-worker.js +0 -2
  946. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  947. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  948. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  949. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  950. package/dist/lib/themeToggle.d.ts +0 -1
  951. package/dist/lib/themeToggle.js +0 -7
  952. package/dist/lib/themeToggle.js.map +0 -1
  953. package/dist/lib/ui/Note.d.ts +0 -8
  954. package/dist/lib/ui/Note.js +0 -23
  955. package/dist/lib/ui/Note.js.map +0 -1
  956. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  957. package/dist/lib/util/createWaitForNotify.js +0 -15
  958. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  959. package/dist/vite/plugin-custom-css.js +0 -55
  960. package/dist/vite/plugin-custom-css.js.map +0 -1
  961. package/dist/vite/plugin-html-transform.d.ts +0 -2
  962. package/dist/vite/plugin-html-transform.js +0 -15
  963. package/dist/vite/plugin-html-transform.js.map +0 -1
  964. package/lib/AnchorLink-DovtSBJk.js +0 -705
  965. package/lib/AnchorLink-DovtSBJk.js.map +0 -1
  966. package/lib/AuthenticationPlugin-Cnqy9csQ.js +0 -55
  967. package/lib/AuthenticationPlugin-Cnqy9csQ.js.map +0 -1
  968. package/lib/CategoryHeading-C7VfgpFZ.js +0 -10
  969. package/lib/DeveloperHint-CNyuFROc.js +0 -16
  970. package/lib/DeveloperHint-CNyuFROc.js.map +0 -1
  971. package/lib/ErrorPage-CUz-Zzmx.js +0 -16
  972. package/lib/ErrorPage-CUz-Zzmx.js.map +0 -1
  973. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  974. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  975. package/lib/Input-x-t53FyR.js +0 -2229
  976. package/lib/Input-x-t53FyR.js.map +0 -1
  977. package/lib/Markdown-C-0TaxoY.js +0 -20441
  978. package/lib/Markdown-C-0TaxoY.js.map +0 -1
  979. package/lib/MdxPage-C5I9c7R1.js +0 -173
  980. package/lib/MdxPage-C5I9c7R1.js.map +0 -1
  981. package/lib/OperationList-qsBOguHS.js +0 -601
  982. package/lib/OperationList-qsBOguHS.js.map +0 -1
  983. package/lib/Route-DlKvXPAO.js +0 -13
  984. package/lib/Route-DlKvXPAO.js.map +0 -1
  985. package/lib/SidebarBadge-DaA0-bFW.js +0 -503
  986. package/lib/SidebarBadge-DaA0-bFW.js.map +0 -1
  987. package/lib/SlotletProvider-BGEs7yyu.js +0 -240
  988. package/lib/SlotletProvider-BGEs7yyu.js.map +0 -1
  989. package/lib/Spinner-3cQDBVGr.js +0 -7
  990. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  991. package/lib/ZudokuContext-DSipF8sq.js +0 -1222
  992. package/lib/ZudokuContext-DSipF8sq.js.map +0 -1
  993. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  994. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  995. package/lib/assets/worker-DaFlmuyf.js +0 -18111
  996. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  997. package/lib/index-BIl-R3aH.js +0 -5952
  998. package/lib/index-BIl-R3aH.js.map +0 -1
  999. package/lib/index-CKmSo0py.js +0 -124
  1000. package/lib/index-CKmSo0py.js.map +0 -1
  1001. package/lib/index-CkwDvuPt.js.map +0 -1
  1002. package/lib/index-DJqnphbT.js +0 -35
  1003. package/lib/index-DJqnphbT.js.map +0 -1
  1004. package/lib/index-Dssw7Gff.js +0 -2867
  1005. package/lib/index-Dssw7Gff.js.map +0 -1
  1006. package/lib/index-SrtqdZ3j.js +0 -1781
  1007. package/lib/index-SrtqdZ3j.js.map +0 -1
  1008. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1009. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1010. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1011. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1012. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1013. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1014. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1015. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1016. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1017. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1018. package/lib/router-Oe6YmY6B.js +0 -3024
  1019. package/lib/router-Oe6YmY6B.js.map +0 -1
  1020. package/lib/state-CsuHT8ZO.js +0 -183
  1021. package/lib/state-CsuHT8ZO.js.map +0 -1
  1022. package/lib/urql-core-KJnLL26g.js +0 -1455
  1023. package/lib/urql-core-KJnLL26g.js.map +0 -1
  1024. package/lib/zudoku.openapi-worker.js +0 -16255
  1025. package/lib/zudoku.openapi-worker.js.map +0 -1
  1026. package/src/lib/components/DevPortal.tsx +0 -111
  1027. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1028. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1029. package/src/lib/plugins/openapi/Route.tsx +0 -20
  1030. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  1031. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  1032. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1033. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1034. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1035. package/src/lib/plugins/openapi-worker.ts +0 -1
  1036. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1037. package/src/lib/themeToggle.ts +0 -7
  1038. package/src/lib/util/createWaitForNotify.ts +0 -18
  1039. /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.d.ts} +0 -0
  1040. /package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +0 -0
  1041. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1042. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -0,0 +1,1229 @@
1
+ var Ke = (t) => {
2
+ throw TypeError(t);
3
+ };
4
+ var me = (t, e, s) => e.has(t) || Ke("Cannot " + s);
5
+ var n = (t, e, s) => (me(t, e, "read from private field"), s ? s.call(t) : e.get(t)), f = (t, e, s) => e.has(t) ? Ke("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), h = (t, e, s, r) => (me(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), m = (t, e, s) => (me(t, e, "access private method"), s);
6
+ import * as T from "react";
7
+ import { createContext as pt, useContext as bt } from "react";
8
+ import { j as mt } from "./jsx-runtime-Bdg6XQ1m.js";
9
+ import { u as pe, m as vt } from "./chunk-SYFQ2XB5-BPvC-soB.js";
10
+ var Ae = class {
11
+ constructor() {
12
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
13
+ }
14
+ subscribe(t) {
15
+ return this.listeners.add(t), this.onSubscribe(), () => {
16
+ this.listeners.delete(t), this.onUnsubscribe();
17
+ };
18
+ }
19
+ hasListeners() {
20
+ return this.listeners.size > 0;
21
+ }
22
+ onSubscribe() {
23
+ }
24
+ onUnsubscribe() {
25
+ }
26
+ }, V = typeof window > "u" || "Deno" in globalThis;
27
+ function ge() {
28
+ }
29
+ function Wt(t, e) {
30
+ return typeof t == "function" ? t(e) : t;
31
+ }
32
+ function Se(t) {
33
+ return typeof t == "number" && t >= 0 && t !== 1 / 0;
34
+ }
35
+ function et(t, e) {
36
+ return Math.max(t + (e || 0) - Date.now(), 0);
37
+ }
38
+ function fe(t, e) {
39
+ return typeof t == "function" ? t(e) : t;
40
+ }
41
+ function x(t, e) {
42
+ return typeof t == "function" ? t(e) : t;
43
+ }
44
+ function Jt(t, e) {
45
+ const {
46
+ type: s = "all",
47
+ exact: r,
48
+ fetchStatus: i,
49
+ predicate: o,
50
+ queryKey: a,
51
+ stale: u
52
+ } = t;
53
+ if (a) {
54
+ if (r) {
55
+ if (e.queryHash !== gt(a, e.options))
56
+ return !1;
57
+ } else if (!Qe(e.queryKey, a))
58
+ return !1;
59
+ }
60
+ if (s !== "all") {
61
+ const l = e.isActive();
62
+ if (s === "active" && !l || s === "inactive" && l)
63
+ return !1;
64
+ }
65
+ return !(typeof u == "boolean" && e.isStale() !== u || i && i !== e.state.fetchStatus || o && !o(e));
66
+ }
67
+ function Yt(t, e) {
68
+ const { exact: s, status: r, predicate: i, mutationKey: o } = t;
69
+ if (o) {
70
+ if (!e.options.mutationKey)
71
+ return !1;
72
+ if (s) {
73
+ if (Ce(e.options.mutationKey) !== Ce(o))
74
+ return !1;
75
+ } else if (!Qe(e.options.mutationKey, o))
76
+ return !1;
77
+ }
78
+ return !(r && e.state.status !== r || i && !i(e));
79
+ }
80
+ function gt(t, e) {
81
+ return ((e == null ? void 0 : e.queryKeyHashFn) || Ce)(t);
82
+ }
83
+ function Ce(t) {
84
+ return JSON.stringify(
85
+ t,
86
+ (e, s) => Ee(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s
87
+ );
88
+ }
89
+ function Qe(t, e) {
90
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? !Object.keys(e).some((s) => !Qe(t[s], e[s])) : !1;
91
+ }
92
+ function Re(t, e) {
93
+ if (t === e)
94
+ return t;
95
+ const s = He(t) && He(e);
96
+ if (s || Ee(t) && Ee(e)) {
97
+ const r = s ? t : Object.keys(t), i = r.length, o = s ? e : Object.keys(e), a = o.length, u = s ? [] : {};
98
+ let l = 0;
99
+ for (let S = 0; S < a; S++) {
100
+ const v = s ? S : o[S];
101
+ (!s && r.includes(v) || s) && t[v] === void 0 && e[v] === void 0 ? (u[v] = void 0, l++) : (u[v] = Re(t[v], e[v]), u[v] === t[v] && t[v] !== void 0 && l++);
102
+ }
103
+ return i === a && l === i ? t : u;
104
+ }
105
+ return e;
106
+ }
107
+ function we(t, e) {
108
+ if (!e || Object.keys(t).length !== Object.keys(e).length)
109
+ return !1;
110
+ for (const s in t)
111
+ if (t[s] !== e[s])
112
+ return !1;
113
+ return !0;
114
+ }
115
+ function He(t) {
116
+ return Array.isArray(t) && t.length === Object.keys(t).length;
117
+ }
118
+ function Ee(t) {
119
+ if (!Be(t))
120
+ return !1;
121
+ const e = t.constructor;
122
+ if (e === void 0)
123
+ return !0;
124
+ const s = e.prototype;
125
+ return !(!Be(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
126
+ }
127
+ function Be(t) {
128
+ return Object.prototype.toString.call(t) === "[object Object]";
129
+ }
130
+ function St(t) {
131
+ return new Promise((e) => {
132
+ setTimeout(e, t);
133
+ });
134
+ }
135
+ function Oe(t, e, s) {
136
+ if (typeof s.structuralSharing == "function")
137
+ return s.structuralSharing(t, e);
138
+ if (s.structuralSharing !== !1) {
139
+ if (process.env.NODE_ENV !== "production")
140
+ try {
141
+ return Re(t, e);
142
+ } catch (r) {
143
+ console.error(
144
+ `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
145
+ );
146
+ }
147
+ return Re(t, e);
148
+ }
149
+ return e;
150
+ }
151
+ function Xt(t, e, s = 0) {
152
+ const r = [...t, e];
153
+ return s && r.length > s ? r.slice(1) : r;
154
+ }
155
+ function es(t, e, s = 0) {
156
+ const r = [e, ...t];
157
+ return s && r.length > s ? r.slice(0, -1) : r;
158
+ }
159
+ var ye = Symbol();
160
+ function Ct(t, e) {
161
+ return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error(
162
+ `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
163
+ ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === ye ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
164
+ }
165
+ var _, Q, J, Ze, Rt = (Ze = class extends Ae {
166
+ constructor() {
167
+ super();
168
+ f(this, _);
169
+ f(this, Q);
170
+ f(this, J);
171
+ h(this, J, (e) => {
172
+ if (!V && window.addEventListener) {
173
+ const s = () => e();
174
+ return window.addEventListener("visibilitychange", s, !1), () => {
175
+ window.removeEventListener("visibilitychange", s);
176
+ };
177
+ }
178
+ });
179
+ }
180
+ onSubscribe() {
181
+ n(this, Q) || this.setEventListener(n(this, J));
182
+ }
183
+ onUnsubscribe() {
184
+ var e;
185
+ this.hasListeners() || ((e = n(this, Q)) == null || e.call(this), h(this, Q, void 0));
186
+ }
187
+ setEventListener(e) {
188
+ var s;
189
+ h(this, J, e), (s = n(this, Q)) == null || s.call(this), h(this, Q, e((r) => {
190
+ typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
191
+ }));
192
+ }
193
+ setFocused(e) {
194
+ n(this, _) !== e && (h(this, _, e), this.onFocus());
195
+ }
196
+ onFocus() {
197
+ const e = this.isFocused();
198
+ this.listeners.forEach((s) => {
199
+ s(e);
200
+ });
201
+ }
202
+ isFocused() {
203
+ var e;
204
+ return typeof n(this, _) == "boolean" ? n(this, _) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
205
+ }
206
+ }, _ = new WeakMap(), Q = new WeakMap(), J = new WeakMap(), Ze), tt = new Rt(), Y, U, X, We, wt = (We = class extends Ae {
207
+ constructor() {
208
+ super();
209
+ f(this, Y, !0);
210
+ f(this, U);
211
+ f(this, X);
212
+ h(this, X, (e) => {
213
+ if (!V && window.addEventListener) {
214
+ const s = () => e(!0), r = () => e(!1);
215
+ return window.addEventListener("online", s, !1), window.addEventListener("offline", r, !1), () => {
216
+ window.removeEventListener("online", s), window.removeEventListener("offline", r);
217
+ };
218
+ }
219
+ });
220
+ }
221
+ onSubscribe() {
222
+ n(this, U) || this.setEventListener(n(this, X));
223
+ }
224
+ onUnsubscribe() {
225
+ var e;
226
+ this.hasListeners() || ((e = n(this, U)) == null || e.call(this), h(this, U, void 0));
227
+ }
228
+ setEventListener(e) {
229
+ var s;
230
+ h(this, X, e), (s = n(this, U)) == null || s.call(this), h(this, U, e(this.setOnline.bind(this)));
231
+ }
232
+ setOnline(e) {
233
+ n(this, Y) !== e && (h(this, Y, e), this.listeners.forEach((r) => {
234
+ r(e);
235
+ }));
236
+ }
237
+ isOnline() {
238
+ return n(this, Y);
239
+ }
240
+ }, Y = new WeakMap(), U = new WeakMap(), X = new WeakMap(), We), st = new wt();
241
+ function Fe() {
242
+ let t, e;
243
+ const s = new Promise((i, o) => {
244
+ t = i, e = o;
245
+ });
246
+ s.status = "pending", s.catch(() => {
247
+ });
248
+ function r(i) {
249
+ Object.assign(s, i), delete s.resolve, delete s.reject;
250
+ }
251
+ return s.resolve = (i) => {
252
+ r({
253
+ status: "fulfilled",
254
+ value: i
255
+ }), t(i);
256
+ }, s.reject = (i) => {
257
+ r({
258
+ status: "rejected",
259
+ reason: i
260
+ }), e(i);
261
+ }, s;
262
+ }
263
+ function Et(t) {
264
+ return Math.min(1e3 * 2 ** t, 3e4);
265
+ }
266
+ function rt(t) {
267
+ return (t ?? "online") === "online" ? st.isOnline() : !0;
268
+ }
269
+ var nt = class extends Error {
270
+ constructor(t) {
271
+ super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
272
+ }
273
+ };
274
+ function ve(t) {
275
+ return t instanceof nt;
276
+ }
277
+ function Ot(t) {
278
+ let e = !1, s = 0, r = !1, i;
279
+ const o = Fe(), a = (b) => {
280
+ var p;
281
+ r || (C(new nt(b)), (p = t.abort) == null || p.call(t));
282
+ }, u = () => {
283
+ e = !0;
284
+ }, l = () => {
285
+ e = !1;
286
+ }, S = () => tt.isFocused() && (t.networkMode === "always" || st.isOnline()) && t.canRun(), v = () => rt(t.networkMode) && t.canRun(), c = (b) => {
287
+ var p;
288
+ r || (r = !0, (p = t.onSuccess) == null || p.call(t, b), i == null || i(), o.resolve(b));
289
+ }, C = (b) => {
290
+ var p;
291
+ r || (r = !0, (p = t.onError) == null || p.call(t, b), i == null || i(), o.reject(b));
292
+ }, g = () => new Promise((b) => {
293
+ var p;
294
+ i = (E) => {
295
+ (r || S()) && b(E);
296
+ }, (p = t.onPause) == null || p.call(t);
297
+ }).then(() => {
298
+ var b;
299
+ i = void 0, r || (b = t.onContinue) == null || b.call(t);
300
+ }), w = () => {
301
+ if (r)
302
+ return;
303
+ let b;
304
+ const p = s === 0 ? t.initialPromise : void 0;
305
+ try {
306
+ b = p ?? t.fn();
307
+ } catch (E) {
308
+ b = Promise.reject(E);
309
+ }
310
+ Promise.resolve(b).then(c).catch((E) => {
311
+ var be;
312
+ if (r)
313
+ return;
314
+ const q = t.retry ?? (V ? 0 : 3), N = t.retryDelay ?? Et, he = typeof N == "function" ? N(s, E) : N, le = q === !0 || typeof q == "number" && s < q || typeof q == "function" && q(s, E);
315
+ if (e || !le) {
316
+ C(E);
317
+ return;
318
+ }
319
+ s++, (be = t.onFail) == null || be.call(t, s, E), St(he).then(() => S() ? void 0 : g()).then(() => {
320
+ e ? C(E) : w();
321
+ });
322
+ });
323
+ };
324
+ return {
325
+ promise: o,
326
+ cancel: a,
327
+ continue: () => (i == null || i(), o),
328
+ cancelRetry: u,
329
+ continueRetry: l,
330
+ canStart: v,
331
+ start: () => (v() ? w() : g().then(w), o)
332
+ };
333
+ }
334
+ function Ft() {
335
+ let t = [], e = 0, s = (u) => {
336
+ u();
337
+ }, r = (u) => {
338
+ u();
339
+ }, i = (u) => setTimeout(u, 0);
340
+ const o = (u) => {
341
+ e ? t.push(u) : i(() => {
342
+ s(u);
343
+ });
344
+ }, a = () => {
345
+ const u = t;
346
+ t = [], u.length && i(() => {
347
+ r(() => {
348
+ u.forEach((l) => {
349
+ s(l);
350
+ });
351
+ });
352
+ });
353
+ };
354
+ return {
355
+ batch: (u) => {
356
+ let l;
357
+ e++;
358
+ try {
359
+ l = u();
360
+ } finally {
361
+ e--, e || a();
362
+ }
363
+ return l;
364
+ },
365
+ /**
366
+ * All calls to the wrapped function will be batched.
367
+ */
368
+ batchCalls: (u) => (...l) => {
369
+ o(() => {
370
+ u(...l);
371
+ });
372
+ },
373
+ schedule: o,
374
+ /**
375
+ * Use this method to set a custom notify function.
376
+ * This can be used to for example wrap notifications with `React.act` while running tests.
377
+ */
378
+ setNotifyFunction: (u) => {
379
+ s = u;
380
+ },
381
+ /**
382
+ * Use this method to set a custom function to batch notifications together into a single tick.
383
+ * By default React Query will use the batch function provided by ReactDOM or React Native.
384
+ */
385
+ setBatchNotifyFunction: (u) => {
386
+ r = u;
387
+ },
388
+ setScheduler: (u) => {
389
+ i = u;
390
+ }
391
+ };
392
+ }
393
+ var Ue = Ft(), K, Je, It = (Je = class {
394
+ constructor() {
395
+ f(this, K);
396
+ }
397
+ destroy() {
398
+ this.clearGcTimeout();
399
+ }
400
+ scheduleGc() {
401
+ this.clearGcTimeout(), Se(this.gcTime) && h(this, K, setTimeout(() => {
402
+ this.optionalRemove();
403
+ }, this.gcTime));
404
+ }
405
+ updateGcTime(t) {
406
+ this.gcTime = Math.max(
407
+ this.gcTime || 0,
408
+ t ?? (V ? 1 / 0 : 5 * 60 * 1e3)
409
+ );
410
+ }
411
+ clearGcTimeout() {
412
+ n(this, K) && (clearTimeout(n(this, K)), h(this, K, void 0));
413
+ }
414
+ }, K = new WeakMap(), Je), ee, te, P, R, ue, H, D, A, Ye, ts = (Ye = class extends It {
415
+ constructor(e) {
416
+ super();
417
+ f(this, D);
418
+ f(this, ee);
419
+ f(this, te);
420
+ f(this, P);
421
+ f(this, R);
422
+ f(this, ue);
423
+ f(this, H);
424
+ h(this, H, !1), h(this, ue, e.defaultOptions), this.setOptions(e.options), this.observers = [], h(this, P, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, h(this, ee, Pt(this.options)), this.state = e.state ?? n(this, ee), this.scheduleGc();
425
+ }
426
+ get meta() {
427
+ return this.options.meta;
428
+ }
429
+ get promise() {
430
+ var e;
431
+ return (e = n(this, R)) == null ? void 0 : e.promise;
432
+ }
433
+ setOptions(e) {
434
+ this.options = { ...n(this, ue), ...e }, this.updateGcTime(this.options.gcTime);
435
+ }
436
+ optionalRemove() {
437
+ !this.observers.length && this.state.fetchStatus === "idle" && n(this, P).remove(this);
438
+ }
439
+ setData(e, s) {
440
+ const r = Oe(this.state.data, e, this.options);
441
+ return m(this, D, A).call(this, {
442
+ data: r,
443
+ type: "success",
444
+ dataUpdatedAt: s == null ? void 0 : s.updatedAt,
445
+ manual: s == null ? void 0 : s.manual
446
+ }), r;
447
+ }
448
+ setState(e, s) {
449
+ m(this, D, A).call(this, { type: "setState", state: e, setStateOptions: s });
450
+ }
451
+ cancel(e) {
452
+ var r, i;
453
+ const s = (r = n(this, R)) == null ? void 0 : r.promise;
454
+ return (i = n(this, R)) == null || i.cancel(e), s ? s.then(ge).catch(ge) : Promise.resolve();
455
+ }
456
+ destroy() {
457
+ super.destroy(), this.cancel({ silent: !0 });
458
+ }
459
+ reset() {
460
+ this.destroy(), this.setState(n(this, ee));
461
+ }
462
+ isActive() {
463
+ return this.observers.some(
464
+ (e) => x(e.options.enabled, this) !== !1
465
+ );
466
+ }
467
+ isDisabled() {
468
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ye || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
469
+ }
470
+ isStale() {
471
+ return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
472
+ (e) => e.getCurrentResult().isStale
473
+ ) : this.state.data === void 0;
474
+ }
475
+ isStaleByTime(e = 0) {
476
+ return this.state.isInvalidated || this.state.data === void 0 || !et(this.state.dataUpdatedAt, e);
477
+ }
478
+ onFocus() {
479
+ var s;
480
+ const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
481
+ e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, R)) == null || s.continue();
482
+ }
483
+ onOnline() {
484
+ var s;
485
+ const e = this.observers.find((r) => r.shouldFetchOnReconnect());
486
+ e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, R)) == null || s.continue();
487
+ }
488
+ addObserver(e) {
489
+ this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), n(this, P).notify({ type: "observerAdded", query: this, observer: e }));
490
+ }
491
+ removeObserver(e) {
492
+ this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (n(this, R) && (n(this, H) ? n(this, R).cancel({ revert: !0 }) : n(this, R).cancelRetry()), this.scheduleGc()), n(this, P).notify({ type: "observerRemoved", query: this, observer: e }));
493
+ }
494
+ getObserversCount() {
495
+ return this.observers.length;
496
+ }
497
+ invalidate() {
498
+ this.state.isInvalidated || m(this, D, A).call(this, { type: "invalidate" });
499
+ }
500
+ fetch(e, s) {
501
+ var l, S, v;
502
+ if (this.state.fetchStatus !== "idle") {
503
+ if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
504
+ this.cancel({ silent: !0 });
505
+ else if (n(this, R))
506
+ return n(this, R).continueRetry(), n(this, R).promise;
507
+ }
508
+ if (e && this.setOptions(e), !this.options.queryFn) {
509
+ const c = this.observers.find((C) => C.options.queryFn);
510
+ c && this.setOptions(c.options);
511
+ }
512
+ process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
513
+ "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
514
+ ));
515
+ const r = new AbortController(), i = (c) => {
516
+ Object.defineProperty(c, "signal", {
517
+ enumerable: !0,
518
+ get: () => (h(this, H, !0), r.signal)
519
+ });
520
+ }, o = () => {
521
+ const c = Ct(this.options, s), C = {
522
+ queryKey: this.queryKey,
523
+ meta: this.meta
524
+ };
525
+ return i(C), h(this, H, !1), this.options.persister ? this.options.persister(
526
+ c,
527
+ C,
528
+ this
529
+ ) : c(C);
530
+ }, a = {
531
+ fetchOptions: s,
532
+ options: this.options,
533
+ queryKey: this.queryKey,
534
+ state: this.state,
535
+ fetchFn: o
536
+ };
537
+ i(a), (l = this.options.behavior) == null || l.onFetch(
538
+ a,
539
+ this
540
+ ), h(this, te, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((S = a.fetchOptions) == null ? void 0 : S.meta)) && m(this, D, A).call(this, { type: "fetch", meta: (v = a.fetchOptions) == null ? void 0 : v.meta });
541
+ const u = (c) => {
542
+ var C, g, w, b;
543
+ ve(c) && c.silent || m(this, D, A).call(this, {
544
+ type: "error",
545
+ error: c
546
+ }), ve(c) || ((g = (C = n(this, P).config).onError) == null || g.call(
547
+ C,
548
+ c,
549
+ this
550
+ ), (b = (w = n(this, P).config).onSettled) == null || b.call(
551
+ w,
552
+ this.state.data,
553
+ c,
554
+ this
555
+ )), this.scheduleGc();
556
+ };
557
+ return h(this, R, Ot({
558
+ initialPromise: s == null ? void 0 : s.initialPromise,
559
+ fn: a.fetchFn,
560
+ abort: r.abort.bind(r),
561
+ onSuccess: (c) => {
562
+ var C, g, w, b;
563
+ if (c === void 0) {
564
+ process.env.NODE_ENV !== "production" && console.error(
565
+ `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
566
+ ), u(new Error(`${this.queryHash} data is undefined`));
567
+ return;
568
+ }
569
+ try {
570
+ this.setData(c);
571
+ } catch (p) {
572
+ u(p);
573
+ return;
574
+ }
575
+ (g = (C = n(this, P).config).onSuccess) == null || g.call(C, c, this), (b = (w = n(this, P).config).onSettled) == null || b.call(
576
+ w,
577
+ c,
578
+ this.state.error,
579
+ this
580
+ ), this.scheduleGc();
581
+ },
582
+ onError: u,
583
+ onFail: (c, C) => {
584
+ m(this, D, A).call(this, { type: "failed", failureCount: c, error: C });
585
+ },
586
+ onPause: () => {
587
+ m(this, D, A).call(this, { type: "pause" });
588
+ },
589
+ onContinue: () => {
590
+ m(this, D, A).call(this, { type: "continue" });
591
+ },
592
+ retry: a.options.retry,
593
+ retryDelay: a.options.retryDelay,
594
+ networkMode: a.options.networkMode,
595
+ canRun: () => !0
596
+ })), n(this, R).start();
597
+ }
598
+ }, ee = new WeakMap(), te = new WeakMap(), P = new WeakMap(), R = new WeakMap(), ue = new WeakMap(), H = new WeakMap(), D = new WeakSet(), A = function(e) {
599
+ const s = (r) => {
600
+ switch (e.type) {
601
+ case "failed":
602
+ return {
603
+ ...r,
604
+ fetchFailureCount: e.failureCount,
605
+ fetchFailureReason: e.error
606
+ };
607
+ case "pause":
608
+ return {
609
+ ...r,
610
+ fetchStatus: "paused"
611
+ };
612
+ case "continue":
613
+ return {
614
+ ...r,
615
+ fetchStatus: "fetching"
616
+ };
617
+ case "fetch":
618
+ return {
619
+ ...r,
620
+ ...it(r.data, this.options),
621
+ fetchMeta: e.meta ?? null
622
+ };
623
+ case "success":
624
+ return {
625
+ ...r,
626
+ data: e.data,
627
+ dataUpdateCount: r.dataUpdateCount + 1,
628
+ dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
629
+ error: null,
630
+ isInvalidated: !1,
631
+ status: "success",
632
+ ...!e.manual && {
633
+ fetchStatus: "idle",
634
+ fetchFailureCount: 0,
635
+ fetchFailureReason: null
636
+ }
637
+ };
638
+ case "error":
639
+ const i = e.error;
640
+ return ve(i) && i.revert && n(this, te) ? { ...n(this, te), fetchStatus: "idle" } : {
641
+ ...r,
642
+ error: i,
643
+ errorUpdateCount: r.errorUpdateCount + 1,
644
+ errorUpdatedAt: Date.now(),
645
+ fetchFailureCount: r.fetchFailureCount + 1,
646
+ fetchFailureReason: i,
647
+ fetchStatus: "idle",
648
+ status: "error"
649
+ };
650
+ case "invalidate":
651
+ return {
652
+ ...r,
653
+ isInvalidated: !0
654
+ };
655
+ case "setState":
656
+ return {
657
+ ...r,
658
+ ...e.state
659
+ };
660
+ }
661
+ };
662
+ this.state = s(this.state), Ue.batch(() => {
663
+ this.observers.forEach((r) => {
664
+ r.onQueryUpdate();
665
+ }), n(this, P).notify({ query: this, type: "updated", action: e });
666
+ });
667
+ }, Ye);
668
+ function it(t, e) {
669
+ return {
670
+ fetchFailureCount: 0,
671
+ fetchFailureReason: null,
672
+ fetchStatus: rt(e.networkMode) ? "fetching" : "paused",
673
+ ...t === void 0 && {
674
+ error: null,
675
+ status: "pending"
676
+ }
677
+ };
678
+ }
679
+ function Pt(t) {
680
+ const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
681
+ return {
682
+ data: e,
683
+ dataUpdateCount: 0,
684
+ dataUpdatedAt: s ? r ?? Date.now() : 0,
685
+ error: null,
686
+ errorUpdateCount: 0,
687
+ errorUpdatedAt: 0,
688
+ fetchFailureCount: 0,
689
+ fetchFailureReason: null,
690
+ fetchMeta: null,
691
+ isInvalidated: !1,
692
+ status: s ? "success" : "pending",
693
+ fetchStatus: "idle"
694
+ };
695
+ }
696
+ var I, d, oe, F, B, se, M, k, ce, re, ne, G, z, L, ie, y, ae, Ie, Pe, Te, De, xe, je, ke, ut, Xe, at = (Xe = class extends Ae {
697
+ constructor(e, s) {
698
+ super();
699
+ f(this, y);
700
+ f(this, I);
701
+ f(this, d);
702
+ f(this, oe);
703
+ f(this, F);
704
+ f(this, B);
705
+ f(this, se);
706
+ f(this, M);
707
+ f(this, k);
708
+ f(this, ce);
709
+ f(this, re);
710
+ // This property keeps track of the last query with defined data.
711
+ // It will be used to pass the previous data and query to the placeholder function between renders.
712
+ f(this, ne);
713
+ f(this, G);
714
+ f(this, z);
715
+ f(this, L);
716
+ f(this, ie, /* @__PURE__ */ new Set());
717
+ this.options = s, h(this, I, e), h(this, k, null), h(this, M, Fe()), this.options.experimental_prefetchInRender || n(this, M).reject(
718
+ new Error("experimental_prefetchInRender feature flag is not enabled")
719
+ ), this.bindMethods(), this.setOptions(s);
720
+ }
721
+ bindMethods() {
722
+ this.refetch = this.refetch.bind(this);
723
+ }
724
+ onSubscribe() {
725
+ this.listeners.size === 1 && (n(this, d).addObserver(this), Ge(n(this, d), this.options) ? m(this, y, ae).call(this) : this.updateResult(), m(this, y, De).call(this));
726
+ }
727
+ onUnsubscribe() {
728
+ this.hasListeners() || this.destroy();
729
+ }
730
+ shouldFetchOnReconnect() {
731
+ return qe(
732
+ n(this, d),
733
+ this.options,
734
+ this.options.refetchOnReconnect
735
+ );
736
+ }
737
+ shouldFetchOnWindowFocus() {
738
+ return qe(
739
+ n(this, d),
740
+ this.options,
741
+ this.options.refetchOnWindowFocus
742
+ );
743
+ }
744
+ destroy() {
745
+ this.listeners = /* @__PURE__ */ new Set(), m(this, y, xe).call(this), m(this, y, je).call(this), n(this, d).removeObserver(this);
746
+ }
747
+ setOptions(e, s) {
748
+ const r = this.options, i = n(this, d);
749
+ if (this.options = n(this, I).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof x(this.options.enabled, n(this, d)) != "boolean")
750
+ throw new Error(
751
+ "Expected enabled to be a boolean or a callback that returns a boolean"
752
+ );
753
+ m(this, y, ke).call(this), n(this, d).setOptions(this.options), r._defaulted && !we(this.options, r) && n(this, I).getQueryCache().notify({
754
+ type: "observerOptionsUpdated",
755
+ query: n(this, d),
756
+ observer: this
757
+ });
758
+ const o = this.hasListeners();
759
+ o && ze(
760
+ n(this, d),
761
+ i,
762
+ this.options,
763
+ r
764
+ ) && m(this, y, ae).call(this), this.updateResult(s), o && (n(this, d) !== i || x(this.options.enabled, n(this, d)) !== x(r.enabled, n(this, d)) || fe(this.options.staleTime, n(this, d)) !== fe(r.staleTime, n(this, d))) && m(this, y, Ie).call(this);
765
+ const a = m(this, y, Pe).call(this);
766
+ o && (n(this, d) !== i || x(this.options.enabled, n(this, d)) !== x(r.enabled, n(this, d)) || a !== n(this, L)) && m(this, y, Te).call(this, a);
767
+ }
768
+ getOptimisticResult(e) {
769
+ const s = n(this, I).getQueryCache().build(n(this, I), e), r = this.createResult(s, e);
770
+ return Dt(this, r) && (h(this, F, r), h(this, se, this.options), h(this, B, n(this, d).state)), r;
771
+ }
772
+ getCurrentResult() {
773
+ return n(this, F);
774
+ }
775
+ trackResult(e, s) {
776
+ const r = {};
777
+ return Object.keys(e).forEach((i) => {
778
+ Object.defineProperty(r, i, {
779
+ configurable: !1,
780
+ enumerable: !0,
781
+ get: () => (this.trackProp(i), s == null || s(i), e[i])
782
+ });
783
+ }), r;
784
+ }
785
+ trackProp(e) {
786
+ n(this, ie).add(e);
787
+ }
788
+ getCurrentQuery() {
789
+ return n(this, d);
790
+ }
791
+ refetch({ ...e } = {}) {
792
+ return this.fetch({
793
+ ...e
794
+ });
795
+ }
796
+ fetchOptimistic(e) {
797
+ const s = n(this, I).defaultQueryOptions(e), r = n(this, I).getQueryCache().build(n(this, I), s);
798
+ return r.fetch().then(() => this.createResult(r, s));
799
+ }
800
+ fetch(e) {
801
+ return m(this, y, ae).call(this, {
802
+ ...e,
803
+ cancelRefetch: e.cancelRefetch ?? !0
804
+ }).then(() => (this.updateResult(), n(this, F)));
805
+ }
806
+ createResult(e, s) {
807
+ var _e;
808
+ const r = n(this, d), i = this.options, o = n(this, F), a = n(this, B), u = n(this, se), S = e !== r ? e.state : n(this, oe), { state: v } = e;
809
+ let c = { ...v }, C = !1, g;
810
+ if (s._optimisticResults) {
811
+ const O = this.hasListeners(), Z = !O && Ge(e, s), W = O && ze(e, r, s, i);
812
+ (Z || W) && (c = {
813
+ ...c,
814
+ ...it(v.data, e.options)
815
+ }), s._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
816
+ }
817
+ let { error: w, errorUpdatedAt: b, status: p } = c;
818
+ if (s.select && c.data !== void 0)
819
+ if (o && c.data === (a == null ? void 0 : a.data) && s.select === n(this, ce))
820
+ g = n(this, re);
821
+ else
822
+ try {
823
+ h(this, ce, s.select), g = s.select(c.data), g = Oe(o == null ? void 0 : o.data, g, s), h(this, re, g), h(this, k, null);
824
+ } catch (O) {
825
+ h(this, k, O);
826
+ }
827
+ else
828
+ g = c.data;
829
+ if (s.placeholderData !== void 0 && g === void 0 && p === "pending") {
830
+ let O;
831
+ if (o != null && o.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
832
+ O = o.data;
833
+ else if (O = typeof s.placeholderData == "function" ? s.placeholderData(
834
+ (_e = n(this, ne)) == null ? void 0 : _e.state.data,
835
+ n(this, ne)
836
+ ) : s.placeholderData, s.select && O !== void 0)
837
+ try {
838
+ O = s.select(O), h(this, k, null);
839
+ } catch (Z) {
840
+ h(this, k, Z);
841
+ }
842
+ O !== void 0 && (p = "success", g = Oe(
843
+ o == null ? void 0 : o.data,
844
+ O,
845
+ s
846
+ ), C = !0);
847
+ }
848
+ n(this, k) && (w = n(this, k), g = n(this, re), b = Date.now(), p = "error");
849
+ const E = c.fetchStatus === "fetching", q = p === "pending", N = p === "error", he = q && E, le = g !== void 0, j = {
850
+ status: p,
851
+ fetchStatus: c.fetchStatus,
852
+ isPending: q,
853
+ isSuccess: p === "success",
854
+ isError: N,
855
+ isInitialLoading: he,
856
+ isLoading: he,
857
+ data: g,
858
+ dataUpdatedAt: c.dataUpdatedAt,
859
+ error: w,
860
+ errorUpdatedAt: b,
861
+ failureCount: c.fetchFailureCount,
862
+ failureReason: c.fetchFailureReason,
863
+ errorUpdateCount: c.errorUpdateCount,
864
+ isFetched: c.dataUpdateCount > 0 || c.errorUpdateCount > 0,
865
+ isFetchedAfterMount: c.dataUpdateCount > S.dataUpdateCount || c.errorUpdateCount > S.errorUpdateCount,
866
+ isFetching: E,
867
+ isRefetching: E && !q,
868
+ isLoadingError: N && !le,
869
+ isPaused: c.fetchStatus === "paused",
870
+ isPlaceholderData: C,
871
+ isRefetchError: N && le,
872
+ isStale: Me(e, s),
873
+ refetch: this.refetch,
874
+ promise: n(this, M)
875
+ };
876
+ if (this.options.experimental_prefetchInRender) {
877
+ const O = (de) => {
878
+ j.status === "error" ? de.reject(j.error) : j.data !== void 0 && de.resolve(j.data);
879
+ }, Z = () => {
880
+ const de = h(this, M, j.promise = Fe());
881
+ O(de);
882
+ }, W = n(this, M);
883
+ switch (W.status) {
884
+ case "pending":
885
+ e.queryHash === r.queryHash && O(W);
886
+ break;
887
+ case "fulfilled":
888
+ (j.status === "error" || j.data !== W.value) && Z();
889
+ break;
890
+ case "rejected":
891
+ (j.status !== "error" || j.error !== W.reason) && Z();
892
+ break;
893
+ }
894
+ }
895
+ return j;
896
+ }
897
+ updateResult(e) {
898
+ const s = n(this, F), r = this.createResult(n(this, d), this.options);
899
+ if (h(this, B, n(this, d).state), h(this, se, this.options), n(this, B).data !== void 0 && h(this, ne, n(this, d)), we(r, s))
900
+ return;
901
+ h(this, F, r);
902
+ const i = {}, o = () => {
903
+ if (!s)
904
+ return !0;
905
+ const { notifyOnChangeProps: a } = this.options, u = typeof a == "function" ? a() : a;
906
+ if (u === "all" || !u && !n(this, ie).size)
907
+ return !0;
908
+ const l = new Set(
909
+ u ?? n(this, ie)
910
+ );
911
+ return this.options.throwOnError && l.add("error"), Object.keys(n(this, F)).some((S) => {
912
+ const v = S;
913
+ return n(this, F)[v] !== s[v] && l.has(v);
914
+ });
915
+ };
916
+ (e == null ? void 0 : e.listeners) !== !1 && o() && (i.listeners = !0), m(this, y, ut).call(this, { ...i, ...e });
917
+ }
918
+ onQueryUpdate() {
919
+ this.updateResult(), this.hasListeners() && m(this, y, De).call(this);
920
+ }
921
+ }, I = new WeakMap(), d = new WeakMap(), oe = new WeakMap(), F = new WeakMap(), B = new WeakMap(), se = new WeakMap(), M = new WeakMap(), k = new WeakMap(), ce = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), G = new WeakMap(), z = new WeakMap(), L = new WeakMap(), ie = new WeakMap(), y = new WeakSet(), ae = function(e) {
922
+ m(this, y, ke).call(this);
923
+ let s = n(this, d).fetch(
924
+ this.options,
925
+ e
926
+ );
927
+ return e != null && e.throwOnError || (s = s.catch(ge)), s;
928
+ }, Ie = function() {
929
+ m(this, y, xe).call(this);
930
+ const e = fe(
931
+ this.options.staleTime,
932
+ n(this, d)
933
+ );
934
+ if (V || n(this, F).isStale || !Se(e))
935
+ return;
936
+ const r = et(n(this, F).dataUpdatedAt, e) + 1;
937
+ h(this, G, setTimeout(() => {
938
+ n(this, F).isStale || this.updateResult();
939
+ }, r));
940
+ }, Pe = function() {
941
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, d)) : this.options.refetchInterval) ?? !1;
942
+ }, Te = function(e) {
943
+ m(this, y, je).call(this), h(this, L, e), !(V || x(this.options.enabled, n(this, d)) === !1 || !Se(n(this, L)) || n(this, L) === 0) && h(this, z, setInterval(() => {
944
+ (this.options.refetchIntervalInBackground || tt.isFocused()) && m(this, y, ae).call(this);
945
+ }, n(this, L)));
946
+ }, De = function() {
947
+ m(this, y, Ie).call(this), m(this, y, Te).call(this, m(this, y, Pe).call(this));
948
+ }, xe = function() {
949
+ n(this, G) && (clearTimeout(n(this, G)), h(this, G, void 0));
950
+ }, je = function() {
951
+ n(this, z) && (clearInterval(n(this, z)), h(this, z, void 0));
952
+ }, ke = function() {
953
+ const e = n(this, I).getQueryCache().build(n(this, I), this.options);
954
+ if (e === n(this, d))
955
+ return;
956
+ const s = n(this, d);
957
+ h(this, d, e), h(this, oe, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
958
+ }, ut = function(e) {
959
+ Ue.batch(() => {
960
+ e.listeners && this.listeners.forEach((s) => {
961
+ s(n(this, F));
962
+ }), n(this, I).getQueryCache().notify({
963
+ query: n(this, d),
964
+ type: "observerResultsUpdated"
965
+ });
966
+ });
967
+ }, Xe);
968
+ function Tt(t, e) {
969
+ return x(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
970
+ }
971
+ function Ge(t, e) {
972
+ return Tt(t, e) || t.state.data !== void 0 && qe(t, e, e.refetchOnMount);
973
+ }
974
+ function qe(t, e, s) {
975
+ if (x(e.enabled, t) !== !1) {
976
+ const r = typeof s == "function" ? s(t) : s;
977
+ return r === "always" || r !== !1 && Me(t, e);
978
+ }
979
+ return !1;
980
+ }
981
+ function ze(t, e, s, r) {
982
+ return (t !== e || x(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Me(t, s);
983
+ }
984
+ function Me(t, e) {
985
+ return x(e.enabled, t) !== !1 && t.isStaleByTime(fe(e.staleTime, t));
986
+ }
987
+ function Dt(t, e) {
988
+ return !we(t.getCurrentResult(), e);
989
+ }
990
+ var ot = T.createContext(
991
+ void 0
992
+ ), ct = (t) => {
993
+ const e = T.useContext(ot);
994
+ if (t)
995
+ return t;
996
+ if (!e)
997
+ throw new Error("No QueryClient set, use QueryClientProvider to set one");
998
+ return e;
999
+ }, ss = ({
1000
+ client: t,
1001
+ children: e
1002
+ }) => (T.useEffect(() => (t.mount(), () => {
1003
+ t.unmount();
1004
+ }), [t]), /* @__PURE__ */ mt.jsx(ot.Provider, { value: t, children: e })), ht = T.createContext(!1), xt = () => T.useContext(ht);
1005
+ ht.Provider;
1006
+ function jt() {
1007
+ let t = !1;
1008
+ return {
1009
+ clearReset: () => {
1010
+ t = !1;
1011
+ },
1012
+ reset: () => {
1013
+ t = !0;
1014
+ },
1015
+ isReset: () => t
1016
+ };
1017
+ }
1018
+ var kt = T.createContext(jt()), qt = () => T.useContext(kt);
1019
+ function At(t, e) {
1020
+ return typeof t == "function" ? t(...e) : !!t;
1021
+ }
1022
+ function Ve() {
1023
+ }
1024
+ var Qt = (t, e) => {
1025
+ (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1026
+ }, Ut = (t) => {
1027
+ T.useEffect(() => {
1028
+ t.clearReset();
1029
+ }, [t]);
1030
+ }, Mt = ({
1031
+ result: t,
1032
+ errorResetBoundary: e,
1033
+ throwOnError: s,
1034
+ query: r
1035
+ }) => t.isError && !e.isReset() && !t.isFetching && r && At(s, [t.error, r]), Lt = (t, e) => e.state.data === void 0, Nt = (t) => {
1036
+ const e = t.staleTime;
1037
+ t.suspense && (t.staleTime = typeof e == "function" ? (...s) => Math.max(e(...s), 1e3) : Math.max(e ?? 1e3, 1e3), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3)));
1038
+ }, _t = (t, e) => t.isLoading && t.isFetching && !e, Kt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, $e = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1039
+ s.clearReset();
1040
+ });
1041
+ function lt(t, e, s) {
1042
+ var c, C, g, w, b;
1043
+ if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1044
+ throw new Error(
1045
+ 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1046
+ );
1047
+ const r = ct(s), i = xt(), o = qt(), a = r.defaultQueryOptions(t);
1048
+ (C = (c = r.getDefaultOptions().queries) == null ? void 0 : c._experimental_beforeQuery) == null || C.call(
1049
+ c,
1050
+ a
1051
+ ), a._optimisticResults = i ? "isRestoring" : "optimistic", Nt(a), Qt(a, o), Ut(o);
1052
+ const u = !r.getQueryCache().get(a.queryHash), [l] = T.useState(
1053
+ () => new e(
1054
+ r,
1055
+ a
1056
+ )
1057
+ ), S = l.getOptimisticResult(a), v = !i && t.subscribed !== !1;
1058
+ if (T.useSyncExternalStore(
1059
+ T.useCallback(
1060
+ (p) => {
1061
+ const E = v ? l.subscribe(Ue.batchCalls(p)) : Ve;
1062
+ return l.updateResult(), E;
1063
+ },
1064
+ [l, v]
1065
+ ),
1066
+ () => l.getCurrentResult(),
1067
+ () => l.getCurrentResult()
1068
+ ), T.useEffect(() => {
1069
+ l.setOptions(a, { listeners: !1 });
1070
+ }, [a, l]), Kt(a, S))
1071
+ throw $e(a, l, o);
1072
+ if (Mt({
1073
+ result: S,
1074
+ errorResetBoundary: o,
1075
+ throwOnError: a.throwOnError,
1076
+ query: r.getQueryCache().get(a.queryHash)
1077
+ }))
1078
+ throw S.error;
1079
+ if ((w = (g = r.getDefaultOptions().queries) == null ? void 0 : g._experimental_afterQuery) == null || w.call(
1080
+ g,
1081
+ a,
1082
+ S
1083
+ ), a.experimental_prefetchInRender && !V && _t(S, i)) {
1084
+ const p = u ? (
1085
+ // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1086
+ $e(a, l, o)
1087
+ ) : (
1088
+ // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1089
+ (b = r.getQueryCache().get(a.queryHash)) == null ? void 0 : b.promise
1090
+ );
1091
+ p == null || p.catch(Ve).finally(() => {
1092
+ l.updateResult();
1093
+ });
1094
+ }
1095
+ return a.notifyOnChangeProps ? S : l.trackResult(S);
1096
+ }
1097
+ function Ht(t, e) {
1098
+ return lt(t, at, e);
1099
+ }
1100
+ function Bt(t, e) {
1101
+ return process.env.NODE_ENV !== "production" && t.queryFn === ye && console.error("skipToken is not allowed for useSuspenseQuery"), lt(
1102
+ {
1103
+ ...t,
1104
+ enabled: !0,
1105
+ suspense: !0,
1106
+ throwOnError: Lt,
1107
+ placeholderData: void 0
1108
+ },
1109
+ at,
1110
+ e
1111
+ );
1112
+ }
1113
+ const $ = (...t) => {
1114
+ const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
1115
+ return e ? `/${e}` : "/";
1116
+ }, dt = Object.freeze({
1117
+ API_IDENTITIES: ["api-identities"]
1118
+ }), rs = () => {
1119
+ const t = ct();
1120
+ return {
1121
+ invalidateCache: async (e) => {
1122
+ await t.invalidateQueries({ queryKey: dt[e] });
1123
+ }
1124
+ };
1125
+ }, Le = (t, e) => {
1126
+ for (const s of t) {
1127
+ const r = Ne(s, e);
1128
+ if (r !== void 0) return r;
1129
+ }
1130
+ }, Ne = (t, e, s = []) => {
1131
+ const r = e(t, s);
1132
+ if (r !== void 0) return r;
1133
+ if (t.type === "category")
1134
+ for (const i of t.items) {
1135
+ const o = Ne(i, e, [
1136
+ ...s,
1137
+ t
1138
+ ]);
1139
+ if (o !== void 0) return o;
1140
+ }
1141
+ }, ns = () => {
1142
+ const t = pe(), s = yt().sidebar;
1143
+ return Le(s, (r) => {
1144
+ if (r.type === "doc" && $(r.id) === t.pathname)
1145
+ return r;
1146
+ });
1147
+ }, is = (t) => {
1148
+ const e = pe();
1149
+ return Ne(t, (s) => {
1150
+ if (s.type === "category" && s.link && $(s.link.id) === e.pathname || s.type === "doc" && $(s.id) === e.pathname)
1151
+ return !0;
1152
+ });
1153
+ }, as = () => {
1154
+ const t = pe().pathname, s = yt().sidebar;
1155
+ let r, i, o = !1;
1156
+ return Le(s, (a) => {
1157
+ const u = a.type === "doc" ? $(a.id) : a.type === "category" && a.link ? $(a.link.id) : void 0;
1158
+ if (u) {
1159
+ if (o)
1160
+ return i = { label: a.label, id: u }, !0;
1161
+ t === u ? o = !0 : r = { label: a.label, id: u };
1162
+ }
1163
+ }), { prev: r, next: i };
1164
+ }, Gt = pt(
1165
+ void 0
1166
+ ), ft = () => {
1167
+ const t = bt(Gt);
1168
+ if (!t)
1169
+ throw new Error("useZudoku must be used within a ZudokuProvider.");
1170
+ return t;
1171
+ }, us = () => {
1172
+ const { getApiIdentities: t } = ft();
1173
+ return Ht({
1174
+ queryFn: t,
1175
+ queryKey: [dt.API_IDENTITIES]
1176
+ });
1177
+ }, yt = () => {
1178
+ const { getPluginSidebar: t, sidebars: e, topNavigation: s } = ft(), r = pe(), i = Object.entries(e).find(([, u]) => Le(u, (l) => {
1179
+ if ((l.type === "doc" ? $(l.id) : l.type === "category" && l.link ? $(l.link.id) : void 0) === r.pathname)
1180
+ return l;
1181
+ })), o = s.find((u) => u.id === (i == null ? void 0 : i[0])) ?? s.find((u) => vt(u.id, r.pathname)), { data: a } = Bt({
1182
+ queryFn: () => t(r.pathname),
1183
+ queryKey: ["plugin-sidebar", r.pathname]
1184
+ });
1185
+ return {
1186
+ sidebar: [...i ? i[1] : [], ...a],
1187
+ topNavItem: o
1188
+ };
1189
+ };
1190
+ export {
1191
+ Qe as A,
1192
+ ye as B,
1193
+ ss as C,
1194
+ yt as D,
1195
+ Le as E,
1196
+ rs as F,
1197
+ dt as G,
1198
+ ts as Q,
1199
+ It as R,
1200
+ Ae as S,
1201
+ Gt as Z,
1202
+ ft as a,
1203
+ ns as b,
1204
+ Ot as c,
1205
+ as as d,
1206
+ ct as e,
1207
+ Ve as f,
1208
+ At as g,
1209
+ Ce as h,
1210
+ is as i,
1211
+ $ as j,
1212
+ Ht as k,
1213
+ us as l,
1214
+ gt as m,
1215
+ Ue as n,
1216
+ Jt as o,
1217
+ Yt as p,
1218
+ ge as q,
1219
+ Ct as r,
1220
+ we as s,
1221
+ es as t,
1222
+ Bt as u,
1223
+ Xt as v,
1224
+ tt as w,
1225
+ st as x,
1226
+ fe as y,
1227
+ Wt as z
1228
+ };
1229
+ //# sourceMappingURL=ZudokuContext-BTUJPpQl.js.map