zudoku 0.0.0-e614aaa → 0.0.0-e64b729

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 (1312) hide show
  1. package/README.md +1 -1
  2. package/cli.js +8 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/entry.client.js +36 -0
  7. package/dist/app/entry.client.js.map +1 -1
  8. package/dist/app/entry.server.d.ts +8 -6
  9. package/dist/app/entry.server.js +12 -8
  10. package/dist/app/entry.server.js.map +1 -1
  11. package/dist/app/env.d.ts +33 -0
  12. package/dist/app/env.js +29 -0
  13. package/dist/app/env.js.map +1 -0
  14. package/dist/app/main.js +22 -27
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/cli/build/handler.js +2 -1
  17. package/dist/cli/build/handler.js.map +1 -1
  18. package/dist/cli/cli.js +12 -1
  19. package/dist/cli/cli.js.map +1 -1
  20. package/dist/cli/cmds/dev.d.ts +1 -1
  21. package/dist/cli/cmds/dev.js.map +1 -1
  22. package/dist/cli/common/machine-id/lib.js +1 -0
  23. package/dist/cli/common/machine-id/lib.js.map +1 -1
  24. package/dist/cli/dev/handler.js +2 -1
  25. package/dist/cli/dev/handler.js.map +1 -1
  26. package/dist/cli/preview/handler.js +13 -15
  27. package/dist/cli/preview/handler.js.map +1 -1
  28. package/dist/config/config.d.ts +18 -11
  29. package/dist/config/file-exists.d.ts +1 -0
  30. package/dist/config/file-exists.js +5 -0
  31. package/dist/config/file-exists.js.map +1 -0
  32. package/dist/config/loader.d.ts +18 -17
  33. package/dist/config/loader.js +105 -120
  34. package/dist/config/loader.js.map +1 -1
  35. package/dist/config/validators/BuildSchema.d.ts +60 -0
  36. package/dist/config/validators/BuildSchema.js +31 -0
  37. package/dist/config/validators/BuildSchema.js.map +1 -0
  38. package/dist/config/validators/icon-types.d.ts +1 -1
  39. package/dist/config/validators/validate.d.ts +4117 -459
  40. package/dist/config/validators/validate.js +396 -11
  41. package/dist/config/validators/validate.js.map +1 -1
  42. package/dist/index.d.ts +5 -3
  43. package/dist/index.js +2 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/lib/authentication/AuthenticationPlugin.d.ts +7 -2
  46. package/dist/lib/authentication/AuthenticationPlugin.js +13 -1
  47. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  48. package/dist/lib/authentication/authentication.d.ts +3 -4
  49. package/dist/lib/authentication/components/CallbackHandler.js +5 -1
  50. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  51. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  52. package/dist/lib/authentication/components/SignIn.js +5 -2
  53. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  54. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  55. package/dist/lib/authentication/components/SignUp.js +4 -1
  56. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  57. package/dist/lib/authentication/hook.d.ts +1 -0
  58. package/dist/lib/authentication/hook.js +11 -1
  59. package/dist/lib/authentication/hook.js.map +1 -1
  60. package/dist/lib/authentication/providers/auth0.js +1 -1
  61. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  62. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  63. package/dist/lib/authentication/providers/clerk.js +92 -46
  64. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  65. package/dist/lib/authentication/providers/openid.d.ts +12 -17
  66. package/dist/lib/authentication/providers/openid.js +37 -42
  67. package/dist/lib/authentication/providers/openid.js.map +1 -1
  68. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  69. package/dist/lib/authentication/providers/supabase.js +115 -0
  70. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  71. package/dist/lib/authentication/state.d.ts +0 -26
  72. package/dist/lib/authentication/state.js +1 -16
  73. package/dist/lib/authentication/state.js.map +1 -1
  74. package/dist/lib/components/AnchorLink.d.ts +2 -2
  75. package/dist/lib/components/AnchorLink.js +5 -4
  76. package/dist/lib/components/AnchorLink.js.map +1 -1
  77. package/dist/lib/components/Autocomplete.js +1 -1
  78. package/dist/lib/components/Banner.js +1 -1
  79. package/dist/lib/components/Banner.js.map +1 -1
  80. package/dist/lib/components/Bootstrap.d.ts +2 -1
  81. package/dist/lib/components/Bootstrap.js +3 -2
  82. package/dist/lib/components/Bootstrap.js.map +1 -1
  83. package/dist/lib/components/BuildCheck.d.ts +4 -0
  84. package/dist/lib/components/BuildCheck.js +38 -0
  85. package/dist/lib/components/BuildCheck.js.map +1 -0
  86. package/dist/lib/components/ErrorPage.js +1 -1
  87. package/dist/lib/components/Footer.d.ts +1 -0
  88. package/dist/lib/components/Footer.js +32 -0
  89. package/dist/lib/components/Footer.js.map +1 -0
  90. package/dist/lib/components/Header.js +17 -9
  91. package/dist/lib/components/Header.js.map +1 -1
  92. package/dist/lib/components/Heading.d.ts +3 -3
  93. package/dist/lib/components/Heading.js +6 -1
  94. package/dist/lib/components/Heading.js.map +1 -1
  95. package/dist/lib/components/InlineCode.d.ts +2 -1
  96. package/dist/lib/components/InlineCode.js +2 -9
  97. package/dist/lib/components/InlineCode.js.map +1 -1
  98. package/dist/lib/components/Layout.js +9 -29
  99. package/dist/lib/components/Layout.js.map +1 -1
  100. package/dist/lib/components/Main.d.ts +2 -0
  101. package/dist/lib/components/Main.js +18 -0
  102. package/dist/lib/components/Main.js.map +1 -0
  103. package/dist/lib/components/Markdown.d.ts +3 -1
  104. package/dist/lib/components/Markdown.js +8 -14
  105. package/dist/lib/components/Markdown.js.map +1 -1
  106. package/dist/lib/components/MobileTopNavigation.js +7 -3
  107. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  108. package/dist/lib/components/NotFoundPage.js +1 -1
  109. package/dist/lib/components/Pagination.d.ts +11 -0
  110. package/dist/lib/components/Pagination.js +10 -0
  111. package/dist/lib/components/Pagination.js.map +1 -0
  112. package/dist/lib/components/Search.js +7 -1
  113. package/dist/lib/components/Search.js.map +1 -1
  114. package/dist/lib/components/Slot.d.ts +17 -0
  115. package/dist/lib/components/Slot.js +24 -0
  116. package/dist/lib/components/Slot.js.map +1 -0
  117. package/dist/lib/components/Slot.test.js +168 -0
  118. package/dist/lib/components/Slot.test.js.map +1 -0
  119. package/dist/lib/components/TopNavigation.d.ts +2 -4
  120. package/dist/lib/components/TopNavigation.js +25 -20
  121. package/dist/lib/components/TopNavigation.js.map +1 -1
  122. package/dist/lib/components/Zudoku.js +9 -5
  123. package/dist/lib/components/Zudoku.js.map +1 -1
  124. package/dist/lib/components/cache.d.ts +7 -0
  125. package/dist/lib/components/cache.js +7 -0
  126. package/dist/lib/components/cache.js.map +1 -1
  127. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  128. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  129. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  130. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  131. package/dist/lib/components/context/SlotProvider.js +83 -0
  132. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  133. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  134. package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
  135. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  136. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  137. package/dist/lib/components/context/ZudokuContext.js +10 -5
  138. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  139. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  140. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  141. package/dist/lib/components/index.d.ts +11 -3
  142. package/dist/lib/components/index.js +2 -0
  143. package/dist/lib/components/index.js.map +1 -1
  144. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  145. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  146. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  147. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  148. package/dist/lib/components/navigation/Sidebar.js +4 -13
  149. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  150. package/dist/lib/components/navigation/SidebarBadge.js +1 -1
  151. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  152. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  153. package/dist/lib/components/navigation/SidebarCategory.js +18 -10
  154. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  155. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
  156. package/dist/lib/components/navigation/SidebarItem.js +17 -12
  157. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  158. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  159. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  160. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  161. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +6 -8
  162. package/dist/lib/components/navigation/Toc.js.map +1 -0
  163. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  164. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  165. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  166. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  167. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  168. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  169. package/dist/lib/components/navigation/utils.d.ts +3 -0
  170. package/dist/lib/components/navigation/utils.js +8 -0
  171. package/dist/lib/components/navigation/utils.js.map +1 -1
  172. package/dist/lib/core/RouteGuard.d.ts +1 -0
  173. package/dist/lib/core/RouteGuard.js +10 -3
  174. package/dist/lib/core/RouteGuard.js.map +1 -1
  175. package/dist/lib/core/ZudokuContext.d.ts +40 -11
  176. package/dist/lib/core/ZudokuContext.js +17 -9
  177. package/dist/lib/core/ZudokuContext.js.map +1 -1
  178. package/dist/lib/core/plugins.d.ts +14 -9
  179. package/dist/lib/core/plugins.js +1 -0
  180. package/dist/lib/core/plugins.js.map +1 -1
  181. package/dist/lib/errors/ErrorAlert.js +6 -1
  182. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  183. package/dist/lib/hooks/useEvent.test.js +1 -1
  184. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  185. package/dist/lib/oas/graphql/circular.js +23 -18
  186. package/dist/lib/oas/graphql/circular.js.map +1 -1
  187. package/dist/lib/oas/graphql/index.d.ts +17 -4
  188. package/dist/lib/oas/graphql/index.js +148 -38
  189. package/dist/lib/oas/graphql/index.js.map +1 -1
  190. package/dist/lib/oas/parser/dereference/index.js +2 -0
  191. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  192. package/dist/lib/oas/parser/index.d.ts +8 -3
  193. package/dist/lib/oas/parser/index.js +7 -23
  194. package/dist/lib/oas/parser/index.js.map +1 -1
  195. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  196. package/dist/lib/oas/parser/upgrade/index.js +77 -25
  197. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  198. package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
  199. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  200. package/dist/lib/plugins/api-catalog/index.js +19 -17
  201. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  202. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  203. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  204. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  205. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  206. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -23
  207. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  208. package/dist/lib/plugins/api-keys/index.d.ts +18 -9
  209. package/dist/lib/plugins/api-keys/index.js +49 -34
  210. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  211. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  212. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  213. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  214. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  215. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  216. package/dist/lib/plugins/markdown/resolver.d.ts +1 -1
  217. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  218. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  219. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  220. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  221. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  222. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  223. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  224. package/dist/lib/plugins/openapi/OperationList.js +67 -21
  225. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  226. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  227. package/dist/lib/plugins/openapi/OperationListItem.js +8 -13
  228. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  229. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  230. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  231. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  232. package/dist/lib/plugins/openapi/ParameterListItem.js +16 -4
  233. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  234. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -2
  235. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  236. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  237. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  238. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  239. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  240. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  241. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  242. package/dist/lib/plugins/openapi/Sidecar.js +69 -10
  243. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  244. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  245. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  246. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  247. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  248. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  249. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  250. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  251. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
  252. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
  253. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  254. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  255. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  256. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  257. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  258. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  259. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  260. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  261. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  262. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  263. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  264. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  265. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  266. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  267. package/dist/lib/plugins/openapi/graphql/gql.js +5 -4
  268. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  269. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  270. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  271. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  272. package/dist/lib/plugins/openapi/index.d.ts +6 -12
  273. package/dist/lib/plugins/openapi/index.js +43 -60
  274. package/dist/lib/plugins/openapi/index.js.map +1 -1
  275. package/dist/lib/plugins/openapi/interfaces.d.ts +37 -10
  276. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  277. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  278. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  279. package/dist/lib/plugins/openapi/playground/Headers.js +3 -3
  280. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  281. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  282. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  283. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  284. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  285. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  286. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  287. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -2
  288. package/dist/lib/plugins/openapi/playground/Playground.js +83 -27
  289. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  290. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  291. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  292. package/dist/lib/plugins/openapi/playground/QueryParams.js +3 -3
  293. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  294. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  295. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  296. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  297. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
  298. package/dist/lib/plugins/openapi/playground/SubmitButton.js +7 -10
  299. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
  300. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  301. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  302. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  303. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  304. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +19 -13
  305. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  306. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  307. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  308. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  309. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  310. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  311. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  312. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  313. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  314. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  315. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  316. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  317. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  318. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  319. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  320. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  321. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  322. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  323. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  324. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  325. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  326. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  327. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  328. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  329. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  330. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  331. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  332. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  333. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  334. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  335. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  336. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  337. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  338. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +24 -16
  339. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  340. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  341. package/dist/lib/plugins/openapi/schema/SchemaView.js +37 -49
  342. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  343. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -1
  344. package/dist/lib/plugins/openapi/schema/utils.js +14 -5
  345. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  346. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  347. package/dist/lib/plugins/openapi/state.js +18 -0
  348. package/dist/lib/plugins/openapi/state.js.map +1 -0
  349. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
  350. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
  351. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  352. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +44 -0
  353. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  354. package/dist/lib/plugins/openapi/util/getRoutes.js +54 -11
  355. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  356. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  357. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +23 -10
  358. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  359. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -0
  360. package/dist/lib/plugins/search-pagefind/ResultList.js +19 -17
  361. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  362. package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
  363. package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
  364. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  365. package/dist/lib/shiki.d.ts +35 -0
  366. package/dist/lib/shiki.js +103 -0
  367. package/dist/lib/shiki.js.map +1 -0
  368. package/dist/lib/ui/Badge.d.ts +1 -1
  369. package/dist/lib/ui/Badge.js +1 -1
  370. package/dist/lib/ui/Badge.js.map +1 -1
  371. package/dist/lib/ui/Button.d.ts +3 -3
  372. package/dist/lib/ui/Button.js +9 -6
  373. package/dist/lib/ui/Button.js.map +1 -1
  374. package/dist/lib/ui/Callout.d.ts +2 -1
  375. package/dist/lib/ui/Callout.js +3 -2
  376. package/dist/lib/ui/Callout.js.map +1 -1
  377. package/dist/lib/ui/Card.js +1 -1
  378. package/dist/lib/ui/Checkbox.d.ts +2 -8
  379. package/dist/lib/ui/Checkbox.js +1 -13
  380. package/dist/lib/ui/Checkbox.js.map +1 -1
  381. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  382. package/dist/lib/ui/CodeBlock.js +18 -0
  383. package/dist/lib/ui/CodeBlock.js.map +1 -0
  384. package/dist/lib/ui/Command.d.ts +1 -1
  385. package/dist/lib/ui/Command.js +3 -3
  386. package/dist/lib/ui/Command.js.map +1 -1
  387. package/dist/lib/ui/Dialog.js +1 -1
  388. package/dist/lib/ui/Dialog.js.map +1 -1
  389. package/dist/lib/ui/DropdownMenu.js +4 -4
  390. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  391. package/dist/lib/ui/Form.d.ts +1 -1
  392. package/dist/lib/ui/HoverCard.js +1 -1
  393. package/dist/lib/ui/HoverCard.js.map +1 -1
  394. package/dist/lib/ui/Input.js +1 -1
  395. package/dist/lib/ui/Input.js.map +1 -1
  396. package/dist/lib/ui/Popover.js +1 -1
  397. package/dist/lib/ui/Popover.js.map +1 -1
  398. package/dist/lib/ui/RadioGroup.js +1 -1
  399. package/dist/lib/ui/RadioGroup.js.map +1 -1
  400. package/dist/lib/ui/Select.js +2 -2
  401. package/dist/lib/ui/Select.js.map +1 -1
  402. package/dist/lib/ui/Slider.js +1 -1
  403. package/dist/lib/ui/Slider.js.map +1 -1
  404. package/dist/lib/ui/Stepper.d.ts +0 -1
  405. package/dist/lib/ui/Stepper.js +1 -1
  406. package/dist/lib/ui/Stepper.js.map +1 -1
  407. package/dist/lib/ui/Switch.js +1 -1
  408. package/dist/lib/ui/Switch.js.map +1 -1
  409. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -14
  410. package/dist/lib/ui/SyntaxHighlight.js +13 -55
  411. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  412. package/dist/lib/ui/Tabs.js +2 -2
  413. package/dist/lib/ui/Tabs.js.map +1 -1
  414. package/dist/lib/ui/Textarea.js +1 -1
  415. package/dist/lib/ui/Textarea.js.map +1 -1
  416. package/dist/lib/ui/Toggle.js +1 -1
  417. package/dist/lib/ui/Toggle.js.map +1 -1
  418. package/dist/lib/util/MdxComponents.d.ts +12 -4
  419. package/dist/lib/util/MdxComponents.js +13 -12
  420. package/dist/lib/util/MdxComponents.js.map +1 -1
  421. package/dist/lib/util/detectOS.d.ts +1 -0
  422. package/dist/lib/util/detectOS.js +11 -0
  423. package/dist/lib/util/detectOS.js.map +1 -0
  424. package/dist/lib/util/ensureArray.d.ts +1 -0
  425. package/dist/lib/util/ensureArray.js +2 -0
  426. package/dist/lib/util/ensureArray.js.map +1 -0
  427. package/dist/lib/util/joinPath.d.ts +3 -0
  428. package/dist/lib/util/joinPath.js +3 -0
  429. package/dist/lib/util/joinPath.js.map +1 -1
  430. package/dist/lib/util/traverse.d.ts +3 -9
  431. package/dist/lib/util/traverse.js +7 -6
  432. package/dist/lib/util/traverse.js.map +1 -1
  433. package/dist/lib/util/types.d.ts +7 -0
  434. package/dist/lib/util/types.js +2 -0
  435. package/dist/lib/util/types.js.map +1 -0
  436. package/dist/lib/util/url.d.ts +4 -0
  437. package/dist/lib/util/url.js +13 -0
  438. package/dist/lib/util/url.js.map +1 -0
  439. package/dist/lib/util/url.test.js +26 -0
  440. package/dist/lib/util/url.test.js.map +1 -0
  441. package/dist/lib/util/useExposedProps.d.ts +8 -1
  442. package/dist/lib/util/useExposedProps.js.map +1 -1
  443. package/dist/lib/util/useOnScreen.d.ts +3 -2
  444. package/dist/lib/util/useOnScreen.js +3 -3
  445. package/dist/lib/util/useOnScreen.js.map +1 -1
  446. package/dist/lib/util/useScrollToAnchor.js +20 -12
  447. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  448. package/dist/vite/api/SchemaManager.d.ts +36 -0
  449. package/dist/vite/api/SchemaManager.js +137 -0
  450. package/dist/vite/api/SchemaManager.js.map +1 -0
  451. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  452. package/dist/vite/api/SchemaManager.test.js +106 -0
  453. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  454. package/dist/vite/api/schema-codegen.d.ts +1 -1
  455. package/dist/vite/api/schema-codegen.js +35 -12
  456. package/dist/vite/api/schema-codegen.js.map +1 -1
  457. package/dist/vite/api/schema-codegen.test.js +66 -0
  458. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  459. package/dist/vite/build.js +46 -10
  460. package/dist/vite/build.js.map +1 -1
  461. package/dist/vite/config.d.ts +2 -9
  462. package/dist/vite/config.js +50 -103
  463. package/dist/vite/config.js.map +1 -1
  464. package/dist/vite/config.test.js +1 -1
  465. package/dist/vite/config.test.js.map +1 -1
  466. package/dist/vite/create-pagefind-index.d.ts +4 -0
  467. package/dist/vite/create-pagefind-index.js +12 -0
  468. package/dist/vite/create-pagefind-index.js.map +1 -0
  469. package/dist/vite/css/plugin.d.ts +1 -2
  470. package/dist/vite/css/plugin.js +3 -2
  471. package/dist/vite/css/plugin.js.map +1 -1
  472. package/dist/vite/dev-server.d.ts +0 -1
  473. package/dist/vite/dev-server.js +16 -15
  474. package/dist/vite/dev-server.js.map +1 -1
  475. package/dist/vite/html.d.ts +7 -3
  476. package/dist/vite/html.js +15 -9
  477. package/dist/vite/html.js.map +1 -1
  478. package/dist/vite/plugin-api-keys.d.ts +1 -2
  479. package/dist/vite/plugin-api-keys.js +9 -3
  480. package/dist/vite/plugin-api-keys.js.map +1 -1
  481. package/dist/vite/plugin-api.d.ts +1 -2
  482. package/dist/vite/plugin-api.js +74 -123
  483. package/dist/vite/plugin-api.js.map +1 -1
  484. package/dist/vite/plugin-auth.d.ts +1 -2
  485. package/dist/vite/plugin-auth.js +3 -2
  486. package/dist/vite/plugin-auth.js.map +1 -1
  487. package/dist/vite/plugin-component.d.ts +1 -2
  488. package/dist/vite/plugin-component.js +3 -2
  489. package/dist/vite/plugin-component.js.map +1 -1
  490. package/dist/vite/plugin-config-reload.d.ts +1 -2
  491. package/dist/vite/plugin-config-reload.js +23 -23
  492. package/dist/vite/plugin-config-reload.js.map +1 -1
  493. package/dist/vite/plugin-config.d.ts +1 -2
  494. package/dist/vite/plugin-config.js +4 -3
  495. package/dist/vite/plugin-config.js.map +1 -1
  496. package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
  497. package/dist/vite/plugin-configure-tailwind.js +38 -0
  498. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  499. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  500. package/dist/vite/plugin-custom-pages.js +3 -2
  501. package/dist/vite/plugin-custom-pages.js.map +1 -1
  502. package/dist/vite/plugin-docs.d.ts +2 -3
  503. package/dist/vite/plugin-docs.js +21 -3
  504. package/dist/vite/plugin-docs.js.map +1 -1
  505. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  506. package/dist/vite/plugin-frontmatter.js +3 -2
  507. package/dist/vite/plugin-frontmatter.js.map +1 -1
  508. package/dist/vite/plugin-mdx.d.ts +1 -2
  509. package/dist/vite/plugin-mdx.js +7 -13
  510. package/dist/vite/plugin-mdx.js.map +1 -1
  511. package/dist/vite/plugin-redirect.d.ts +1 -2
  512. package/dist/vite/plugin-redirect.js +3 -2
  513. package/dist/vite/plugin-redirect.js.map +1 -1
  514. package/dist/vite/plugin-search.d.ts +1 -2
  515. package/dist/vite/plugin-search.js +3 -2
  516. package/dist/vite/plugin-search.js.map +1 -1
  517. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  518. package/dist/vite/plugin-shiki-register.js +39 -0
  519. package/dist/vite/plugin-shiki-register.js.map +1 -0
  520. package/dist/vite/plugin-sidebar.d.ts +4 -3
  521. package/dist/vite/plugin-sidebar.js +12 -5
  522. package/dist/vite/plugin-sidebar.js.map +1 -1
  523. package/dist/vite/plugin-theme-css.d.ts +1 -2
  524. package/dist/vite/plugin-theme-css.js +20 -60
  525. package/dist/vite/plugin-theme-css.js.map +1 -1
  526. package/dist/vite/plugin.d.ts +1 -2
  527. package/dist/vite/plugin.js +23 -20
  528. package/dist/vite/plugin.js.map +1 -1
  529. package/dist/vite/prerender/FileWritingResponse.d.ts +9 -5
  530. package/dist/vite/prerender/FileWritingResponse.js +5 -5
  531. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  532. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  533. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  534. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  535. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  536. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  537. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  538. package/dist/vite/prerender/prerender.d.ts +1 -0
  539. package/dist/vite/prerender/prerender.js +38 -13
  540. package/dist/vite/prerender/prerender.js.map +1 -1
  541. package/dist/vite/prerender/worker.js +41 -14
  542. package/dist/vite/prerender/worker.js.map +1 -1
  543. package/dist/vite/sitemap.d.ts +1 -1
  544. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  545. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  546. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  547. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  548. package/dist/zuplo/with-zuplo-processors.js +7 -7
  549. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  550. package/dist/zuplo/with-zuplo.d.ts +5 -2
  551. package/dist/zuplo/with-zuplo.js +6 -5
  552. package/dist/zuplo/with-zuplo.js.map +1 -1
  553. package/lib/Button-u7M2QYds.js +51 -0
  554. package/lib/Button-u7M2QYds.js.map +1 -0
  555. package/lib/Callout-CtCQJ6Cc.js +230 -0
  556. package/lib/Callout-CtCQJ6Cc.js.map +1 -0
  557. package/lib/Card-DkH-AU1V.js +61 -0
  558. package/lib/Card-DkH-AU1V.js.map +1 -0
  559. package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-BA7lKNWz.js} +3 -3
  560. package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-BA7lKNWz.js.map} +1 -1
  561. package/lib/Dialog-irKZWXGg.js +99 -0
  562. package/lib/Dialog-irKZWXGg.js.map +1 -0
  563. package/lib/Drawer-DZ214i5V.js +1133 -0
  564. package/lib/Drawer-DZ214i5V.js.map +1 -0
  565. package/lib/Markdown-ms3FtIha.js +7694 -0
  566. package/lib/Markdown-ms3FtIha.js.map +1 -0
  567. package/lib/MdxPage-D6v_c0tx.js +84 -0
  568. package/lib/MdxPage-D6v_c0tx.js.map +1 -0
  569. package/lib/OasProvider-DCp8HxF4.js +33 -0
  570. package/lib/{OasProvider-BSuptFK-.js.map → OasProvider-DCp8HxF4.js.map} +1 -1
  571. package/lib/OperationList-Ct68OoIk.js +5145 -0
  572. package/lib/OperationList-Ct68OoIk.js.map +1 -0
  573. package/lib/Pagination-C-FbzRep.js +36 -0
  574. package/lib/Pagination-C-FbzRep.js.map +1 -0
  575. package/lib/RouteGuard-CIyGFkFD.js +55 -0
  576. package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
  577. package/lib/SchemaList-_lITigpx.js +160 -0
  578. package/lib/SchemaList-_lITigpx.js.map +1 -0
  579. package/lib/SchemaView-Dbd9iTsb.js +375 -0
  580. package/lib/SchemaView-Dbd9iTsb.js.map +1 -0
  581. package/lib/SignUp-DWvtcgpY.js +63 -0
  582. package/lib/SignUp-DWvtcgpY.js.map +1 -0
  583. package/lib/Slot-CiKlwC-1.js +160 -0
  584. package/lib/Slot-CiKlwC-1.js.map +1 -0
  585. package/lib/Spinner-mNLZ6awP.js +7 -0
  586. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  587. package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
  588. package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
  589. package/lib/Toc-CBERuLsq.js +92 -0
  590. package/lib/Toc-CBERuLsq.js.map +1 -0
  591. package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js → chunk-BAXFHI7N-C9WnHsLV.js} +620 -602
  592. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  593. package/lib/{circular-v7K6lDDh.js → circular-Y7yjLNW1.js} +2997 -3477
  594. package/lib/circular-Y7yjLNW1.js.map +1 -0
  595. package/lib/{cn-qaFjX9_3.js → cn-BOFVZgHd.js} +1017 -552
  596. package/lib/cn-BOFVZgHd.js.map +1 -0
  597. package/lib/{createServer-DmusVVsi.js → createServer-CNtv3YKi.js} +4984 -5218
  598. package/lib/createServer-CNtv3YKi.js.map +1 -0
  599. package/lib/hook-BpiAQVtd.js +1446 -0
  600. package/lib/hook-BpiAQVtd.js.map +1 -0
  601. package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
  602. package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
  603. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  604. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  605. package/lib/{index-CPNSgwSb.js → index-C1S4w-gl.js} +5 -5
  606. package/lib/{index-CPNSgwSb.js.map → index-C1S4w-gl.js.map} +1 -1
  607. package/lib/index-C_9WfVu2.js +3268 -0
  608. package/lib/index-C_9WfVu2.js.map +1 -0
  609. package/lib/index-CrcNWbel.js +316 -0
  610. package/lib/index-CrcNWbel.js.map +1 -0
  611. package/lib/index-PL1g52PU.js +4977 -0
  612. package/lib/index-PL1g52PU.js.map +1 -0
  613. package/lib/{index-Dl3Yl0yb.js → index-zddirpDj.js} +621 -636
  614. package/lib/index-zddirpDj.js.map +1 -0
  615. package/lib/index.esm-BFcSKCe-.js +683 -0
  616. package/lib/{index.esm-CQHE3GEU.js.map → index.esm-BFcSKCe-.js.map} +1 -1
  617. package/lib/index.esm-DSfX_eMP.js +1216 -0
  618. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  619. package/lib/invariant-DAFpPywt.js +48 -0
  620. package/lib/{invariant-Caa8-XvF.js.map → invariant-DAFpPywt.js.map} +1 -1
  621. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  622. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  623. package/lib/mutation-CJrIFMgY.js +196 -0
  624. package/lib/mutation-CJrIFMgY.js.map +1 -0
  625. package/lib/{post-processors → processors}/removeExtensions.js +1 -1
  626. package/lib/processors/removeExtensions.js.map +1 -0
  627. package/lib/processors/removeParameters.js +47 -0
  628. package/lib/processors/removeParameters.js.map +1 -0
  629. package/lib/processors/removePaths.js +28 -0
  630. package/lib/processors/removePaths.js.map +1 -0
  631. package/lib/processors/traverse.js +17 -0
  632. package/lib/processors/traverse.js.map +1 -0
  633. package/lib/ui/Accordion.js +2 -2
  634. package/lib/ui/ActionButton.js +11 -10
  635. package/lib/ui/ActionButton.js.map +1 -1
  636. package/lib/ui/Alert.js +3 -3
  637. package/lib/ui/AlertDialog.js +2 -2
  638. package/lib/ui/Badge.js +4 -4
  639. package/lib/ui/Badge.js.map +1 -1
  640. package/lib/ui/Breadcrumb.js +2 -2
  641. package/lib/ui/Button.js +22 -19
  642. package/lib/ui/Button.js.map +1 -1
  643. package/lib/ui/Callout.js +41 -22
  644. package/lib/ui/Callout.js.map +1 -1
  645. package/lib/ui/Card.js +9 -9
  646. package/lib/ui/Card.js.map +1 -1
  647. package/lib/ui/Carousel.js +348 -348
  648. package/lib/ui/Carousel.js.map +1 -1
  649. package/lib/ui/Checkbox.js +16 -26
  650. package/lib/ui/Checkbox.js.map +1 -1
  651. package/lib/ui/CodeBlock.js +83 -0
  652. package/lib/ui/CodeBlock.js.map +1 -0
  653. package/lib/ui/Command.js +58 -58
  654. package/lib/ui/Command.js.map +1 -1
  655. package/lib/ui/Dialog.js +3 -3
  656. package/lib/ui/Dialog.js.map +1 -1
  657. package/lib/ui/Drawer.js +14 -1129
  658. package/lib/ui/Drawer.js.map +1 -1
  659. package/lib/ui/DropdownMenu.js +35 -35
  660. package/lib/ui/DropdownMenu.js.map +1 -1
  661. package/lib/ui/Form.js +3 -3
  662. package/lib/ui/HoverCard.js +6 -6
  663. package/lib/ui/HoverCard.js.map +1 -1
  664. package/lib/ui/Input.js +3 -3
  665. package/lib/ui/Input.js.map +1 -1
  666. package/lib/ui/Label.js +3 -3
  667. package/lib/ui/Pagination.js +2 -2
  668. package/lib/ui/Popover.js +3 -3
  669. package/lib/ui/Popover.js.map +1 -1
  670. package/lib/ui/Progress.js +2 -2
  671. package/lib/ui/RadioGroup.js +11 -11
  672. package/lib/ui/RadioGroup.js.map +1 -1
  673. package/lib/ui/ScrollArea.js +2 -2
  674. package/lib/ui/Select.js +32 -32
  675. package/lib/ui/Select.js.map +1 -1
  676. package/lib/ui/Skeleton.js +2 -2
  677. package/lib/ui/Slider.js +6 -6
  678. package/lib/ui/Slider.js.map +1 -1
  679. package/lib/ui/Stepper.js +1 -1
  680. package/lib/ui/Stepper.js.map +1 -1
  681. package/lib/ui/Switch.js +6 -6
  682. package/lib/ui/Switch.js.map +1 -1
  683. package/lib/ui/SyntaxHighlight.js +7 -2902
  684. package/lib/ui/SyntaxHighlight.js.map +1 -1
  685. package/lib/ui/Tabs.js +17 -17
  686. package/lib/ui/Tabs.js.map +1 -1
  687. package/lib/ui/Textarea.js +6 -6
  688. package/lib/ui/Textarea.js.map +1 -1
  689. package/lib/ui/Toggle.js +8 -8
  690. package/lib/ui/Toggle.js.map +1 -1
  691. package/lib/ui/ToggleGroup.js +2 -2
  692. package/lib/ui/Tooltip.js +2 -2
  693. package/lib/ui/util.js +1 -1
  694. package/lib/{useExposedProps-RIvey2Oy.js → useExposedProps-DG8J6ewJ.js} +2 -2
  695. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  696. package/lib/useLatest-hmRS46UF.js +11 -0
  697. package/lib/useLatest-hmRS46UF.js.map +1 -0
  698. package/lib/useMutation-B2LNwShM.js +97 -0
  699. package/lib/useMutation-B2LNwShM.js.map +1 -0
  700. package/lib/zudoku.auth-auth0.js +28 -31
  701. package/lib/zudoku.auth-auth0.js.map +1 -1
  702. package/lib/zudoku.auth-clerk.js +107 -78
  703. package/lib/zudoku.auth-clerk.js.map +1 -1
  704. package/lib/zudoku.auth-openid.js +511 -478
  705. package/lib/zudoku.auth-openid.js.map +1 -1
  706. package/lib/zudoku.components.js +34 -1395
  707. package/lib/zudoku.components.js.map +1 -1
  708. package/lib/zudoku.hooks.js +2 -2
  709. package/lib/zudoku.icons.js +1 -1
  710. package/lib/zudoku.plugin-api-catalog.js +95 -99
  711. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  712. package/lib/zudoku.plugin-api-keys.js +5022 -214
  713. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  714. package/lib/zudoku.plugin-custom-pages.js +4 -4
  715. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  716. package/lib/zudoku.plugin-markdown.js +25 -28
  717. package/lib/zudoku.plugin-markdown.js.map +1 -1
  718. package/lib/zudoku.plugin-openapi.js +7 -8
  719. package/lib/zudoku.plugin-openapi.js.map +1 -1
  720. package/lib/zudoku.plugin-redirect.js +1 -1
  721. package/lib/zudoku.plugin-redirect.js.map +1 -1
  722. package/lib/zudoku.plugin-search-inkeep.js +26 -27
  723. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  724. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  725. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  726. package/lib/zudoku.plugins.js +7 -6
  727. package/lib/zudoku.plugins.js.map +1 -1
  728. package/package.json +101 -83
  729. package/src/app/ZuploBuildConfig.ts +33 -0
  730. package/src/app/defaultTheme.css +54 -0
  731. package/src/app/demo.html +1 -1
  732. package/src/app/entry.client.tsx +43 -0
  733. package/src/app/entry.server.tsx +23 -13
  734. package/src/app/env.ts +35 -0
  735. package/src/app/font.geist.css +73 -0
  736. package/src/app/main.css +197 -143
  737. package/src/app/main.tsx +30 -29
  738. package/src/lib/authentication/AuthenticationPlugin.tsx +18 -4
  739. package/src/lib/authentication/authentication.ts +4 -5
  740. package/src/lib/authentication/components/CallbackHandler.tsx +11 -1
  741. package/src/lib/authentication/components/SignIn.tsx +35 -2
  742. package/src/lib/authentication/components/SignUp.tsx +35 -1
  743. package/src/lib/authentication/hook.ts +12 -1
  744. package/src/lib/authentication/providers/auth0.tsx +9 -3
  745. package/src/lib/authentication/providers/clerk.tsx +105 -57
  746. package/src/lib/authentication/providers/openid.tsx +52 -53
  747. package/src/lib/authentication/providers/supabase.tsx +157 -0
  748. package/src/lib/authentication/state.ts +1 -35
  749. package/src/lib/components/AnchorLink.tsx +9 -7
  750. package/src/lib/components/Autocomplete.tsx +1 -1
  751. package/src/lib/components/Banner.tsx +2 -2
  752. package/src/lib/components/Bootstrap.tsx +13 -6
  753. package/src/lib/components/BuildCheck.tsx +75 -0
  754. package/src/lib/components/ErrorPage.tsx +1 -1
  755. package/src/lib/components/Footer.tsx +136 -0
  756. package/src/lib/components/Header.tsx +40 -36
  757. package/src/lib/components/Heading.tsx +11 -7
  758. package/src/lib/components/InlineCode.tsx +13 -16
  759. package/src/lib/components/Layout.tsx +30 -72
  760. package/src/lib/components/Main.tsx +51 -0
  761. package/src/lib/components/Markdown.tsx +29 -24
  762. package/src/lib/components/MobileTopNavigation.tsx +30 -20
  763. package/src/lib/components/NotFoundPage.tsx +1 -1
  764. package/src/lib/components/Pagination.tsx +44 -0
  765. package/src/lib/components/Search.tsx +15 -4
  766. package/src/lib/components/Slot.test.tsx +465 -0
  767. package/src/lib/components/Slot.tsx +64 -0
  768. package/src/lib/components/TopNavigation.tsx +40 -29
  769. package/src/lib/components/Zudoku.tsx +19 -12
  770. package/src/lib/components/cache.ts +8 -0
  771. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  772. package/src/lib/components/context/SlotProvider.tsx +149 -0
  773. package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
  774. package/src/lib/components/context/ZudokuContext.ts +14 -6
  775. package/src/lib/components/context/ZudokuProvider.tsx +2 -1
  776. package/src/lib/components/index.ts +2 -0
  777. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  778. package/src/lib/components/navigation/Sidebar.tsx +38 -45
  779. package/src/lib/components/navigation/SidebarBadge.tsx +1 -1
  780. package/src/lib/components/navigation/SidebarCategory.tsx +24 -17
  781. package/src/lib/components/navigation/SidebarItem.tsx +21 -30
  782. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  783. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +9 -18
  784. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  785. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  786. package/src/lib/components/navigation/utils.ts +12 -0
  787. package/src/lib/core/RouteGuard.tsx +27 -4
  788. package/src/lib/core/ZudokuContext.ts +57 -19
  789. package/src/lib/core/plugins.ts +18 -10
  790. package/src/lib/errors/ErrorAlert.tsx +24 -17
  791. package/src/lib/hooks/useEvent.test.tsx +1 -1
  792. package/src/lib/oas/graphql/circular.ts +27 -19
  793. package/src/lib/oas/graphql/index.ts +202 -54
  794. package/src/lib/oas/parser/dereference/index.ts +2 -0
  795. package/src/lib/oas/parser/index.ts +14 -30
  796. package/src/lib/oas/parser/upgrade/index.ts +98 -28
  797. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -4
  798. package/src/lib/plugins/api-catalog/index.tsx +40 -35
  799. package/src/lib/plugins/api-keys/CreateApiKey.tsx +54 -42
  800. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +292 -112
  801. package/src/lib/plugins/api-keys/index.tsx +101 -55
  802. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  803. package/src/lib/plugins/markdown/MdxPage.tsx +11 -47
  804. package/src/lib/plugins/markdown/index.tsx +2 -2
  805. package/src/lib/plugins/markdown/resolver.ts +4 -2
  806. package/src/lib/plugins/openapi/CollapsibleCode.tsx +8 -5
  807. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  808. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  809. package/src/lib/plugins/openapi/OperationList.tsx +177 -87
  810. package/src/lib/plugins/openapi/OperationListItem.tsx +102 -115
  811. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  812. package/src/lib/plugins/openapi/ParameterListItem.tsx +65 -23
  813. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +14 -1
  814. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  815. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  816. package/src/lib/plugins/openapi/Sidecar.tsx +83 -14
  817. package/src/lib/plugins/openapi/SidecarExamples.tsx +8 -2
  818. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  819. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  820. package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
  821. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  822. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  823. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  824. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  825. package/src/lib/plugins/openapi/graphql/gql.ts +29 -20
  826. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  827. package/src/lib/plugins/openapi/index.tsx +56 -87
  828. package/src/lib/plugins/openapi/interfaces.ts +45 -15
  829. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  830. package/src/lib/plugins/openapi/playground/Headers.tsx +2 -3
  831. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  832. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  833. package/src/lib/plugins/openapi/playground/Playground.tsx +186 -93
  834. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  835. package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -5
  836. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  837. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +25 -30
  838. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  839. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +2 -2
  840. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +25 -5
  841. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  842. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  843. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  844. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  845. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  846. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  847. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  848. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  849. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  850. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  851. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  852. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +69 -60
  853. package/src/lib/plugins/openapi/schema/SchemaView.tsx +101 -140
  854. package/src/lib/plugins/openapi/schema/utils.ts +29 -6
  855. package/src/lib/plugins/openapi/state.ts +36 -0
  856. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
  857. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +51 -1
  858. package/src/lib/plugins/openapi/util/getRoutes.tsx +89 -14
  859. package/src/lib/plugins/redirect/index.tsx +1 -1
  860. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +39 -14
  861. package/src/lib/plugins/search-pagefind/ResultList.tsx +60 -53
  862. package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
  863. package/src/lib/shiki.ts +133 -0
  864. package/src/lib/ui/Badge.tsx +2 -2
  865. package/src/lib/ui/Button.tsx +12 -7
  866. package/src/lib/ui/Callout.tsx +29 -10
  867. package/src/lib/ui/Card.tsx +1 -1
  868. package/src/lib/ui/Checkbox.tsx +8 -24
  869. package/src/lib/ui/CodeBlock.tsx +102 -0
  870. package/src/lib/ui/Command.tsx +5 -5
  871. package/src/lib/ui/Dialog.tsx +1 -1
  872. package/src/lib/ui/DropdownMenu.tsx +4 -4
  873. package/src/lib/ui/HoverCard.tsx +1 -1
  874. package/src/lib/ui/Input.tsx +1 -1
  875. package/src/lib/ui/Popover.tsx +1 -1
  876. package/src/lib/ui/RadioGroup.tsx +1 -1
  877. package/src/lib/ui/Select.tsx +3 -3
  878. package/src/lib/ui/Slider.tsx +1 -1
  879. package/src/lib/ui/Stepper.tsx +1 -1
  880. package/src/lib/ui/Switch.tsx +1 -1
  881. package/src/lib/ui/SyntaxHighlight.tsx +21 -180
  882. package/src/lib/ui/Tabs.tsx +2 -2
  883. package/src/lib/ui/Textarea.tsx +1 -1
  884. package/src/lib/ui/Toggle.tsx +1 -1
  885. package/src/lib/util/MdxComponents.tsx +31 -16
  886. package/src/lib/util/detectOS.ts +9 -0
  887. package/src/lib/util/ensureArray.ts +3 -0
  888. package/src/lib/util/joinPath.tsx +3 -0
  889. package/src/lib/util/traverse.ts +12 -13
  890. package/src/lib/util/types.ts +7 -0
  891. package/src/lib/util/url.test.ts +51 -0
  892. package/src/lib/util/url.ts +18 -0
  893. package/src/lib/util/useExposedProps.tsx +12 -1
  894. package/src/lib/util/useOnScreen.ts +6 -4
  895. package/src/lib/util/useScrollToAnchor.ts +22 -12
  896. package/src/shiki/langs/abap.js +1 -0
  897. package/src/shiki/langs/actionscript-3.js +1 -0
  898. package/src/shiki/langs/ada.js +1 -0
  899. package/src/shiki/langs/angular-expression.js +1 -0
  900. package/src/shiki/langs/angular-html.js +1 -0
  901. package/src/shiki/langs/angular-inline-style.js +1 -0
  902. package/src/shiki/langs/angular-inline-template.js +1 -0
  903. package/src/shiki/langs/angular-let-declaration.js +1 -0
  904. package/src/shiki/langs/angular-template-blocks.js +1 -0
  905. package/src/shiki/langs/angular-template.js +1 -0
  906. package/src/shiki/langs/angular-ts.js +1 -0
  907. package/src/shiki/langs/apache.js +1 -0
  908. package/src/shiki/langs/apex.js +1 -0
  909. package/src/shiki/langs/apl.js +1 -0
  910. package/src/shiki/langs/applescript.js +1 -0
  911. package/src/shiki/langs/ara.js +1 -0
  912. package/src/shiki/langs/asciidoc.js +1 -0
  913. package/src/shiki/langs/asm.js +1 -0
  914. package/src/shiki/langs/astro.js +1 -0
  915. package/src/shiki/langs/awk.js +1 -0
  916. package/src/shiki/langs/ballerina.js +1 -0
  917. package/src/shiki/langs/bat.js +1 -0
  918. package/src/shiki/langs/beancount.js +1 -0
  919. package/src/shiki/langs/berry.js +1 -0
  920. package/src/shiki/langs/bibtex.js +1 -0
  921. package/src/shiki/langs/bicep.js +1 -0
  922. package/src/shiki/langs/blade.js +1 -0
  923. package/src/shiki/langs/bsl.js +1 -0
  924. package/src/shiki/langs/c.js +1 -0
  925. package/src/shiki/langs/cadence.js +1 -0
  926. package/src/shiki/langs/cairo.js +1 -0
  927. package/src/shiki/langs/clarity.js +1 -0
  928. package/src/shiki/langs/clojure.js +1 -0
  929. package/src/shiki/langs/cmake.js +1 -0
  930. package/src/shiki/langs/cobol.js +1 -0
  931. package/src/shiki/langs/codeowners.js +1 -0
  932. package/src/shiki/langs/codeql.js +1 -0
  933. package/src/shiki/langs/coffee.js +1 -0
  934. package/src/shiki/langs/common-lisp.js +1 -0
  935. package/src/shiki/langs/coq.js +1 -0
  936. package/src/shiki/langs/cpp-macro.js +1 -0
  937. package/src/shiki/langs/cpp.js +1 -0
  938. package/src/shiki/langs/crystal.js +1 -0
  939. package/src/shiki/langs/csharp.js +1 -0
  940. package/src/shiki/langs/css.js +1 -0
  941. package/src/shiki/langs/csv.js +1 -0
  942. package/src/shiki/langs/cue.js +1 -0
  943. package/src/shiki/langs/cypher.js +1 -0
  944. package/src/shiki/langs/d.js +1 -0
  945. package/src/shiki/langs/dart.js +1 -0
  946. package/src/shiki/langs/dax.js +1 -0
  947. package/src/shiki/langs/desktop.js +1 -0
  948. package/src/shiki/langs/diff.js +1 -0
  949. package/src/shiki/langs/docker.js +1 -0
  950. package/src/shiki/langs/dotenv.js +1 -0
  951. package/src/shiki/langs/dream-maker.js +1 -0
  952. package/src/shiki/langs/edge.js +1 -0
  953. package/src/shiki/langs/elixir.js +1 -0
  954. package/src/shiki/langs/elm.js +1 -0
  955. package/src/shiki/langs/emacs-lisp.js +1 -0
  956. package/src/shiki/langs/erb.js +1 -0
  957. package/src/shiki/langs/erlang.js +1 -0
  958. package/src/shiki/langs/es-tag-css.js +1 -0
  959. package/src/shiki/langs/es-tag-glsl.js +1 -0
  960. package/src/shiki/langs/es-tag-html.js +1 -0
  961. package/src/shiki/langs/es-tag-sql.js +1 -0
  962. package/src/shiki/langs/es-tag-xml.js +1 -0
  963. package/src/shiki/langs/fennel.js +1 -0
  964. package/src/shiki/langs/fish.js +1 -0
  965. package/src/shiki/langs/fluent.js +1 -0
  966. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  967. package/src/shiki/langs/fortran-free-form.js +1 -0
  968. package/src/shiki/langs/fsharp.js +1 -0
  969. package/src/shiki/langs/gdresource.js +1 -0
  970. package/src/shiki/langs/gdscript.js +1 -0
  971. package/src/shiki/langs/gdshader.js +1 -0
  972. package/src/shiki/langs/genie.js +1 -0
  973. package/src/shiki/langs/gherkin.js +1 -0
  974. package/src/shiki/langs/git-commit.js +1 -0
  975. package/src/shiki/langs/git-rebase.js +1 -0
  976. package/src/shiki/langs/gleam.js +1 -0
  977. package/src/shiki/langs/glimmer-js.js +1 -0
  978. package/src/shiki/langs/glimmer-ts.js +1 -0
  979. package/src/shiki/langs/glsl.js +1 -0
  980. package/src/shiki/langs/gnuplot.js +1 -0
  981. package/src/shiki/langs/go.js +1 -0
  982. package/src/shiki/langs/graphql.js +1 -0
  983. package/src/shiki/langs/groovy.js +1 -0
  984. package/src/shiki/langs/hack.js +1 -0
  985. package/src/shiki/langs/haml.js +1 -0
  986. package/src/shiki/langs/handlebars.js +1 -0
  987. package/src/shiki/langs/haskell.js +1 -0
  988. package/src/shiki/langs/haxe.js +1 -0
  989. package/src/shiki/langs/hcl.js +1 -0
  990. package/src/shiki/langs/hjson.js +1 -0
  991. package/src/shiki/langs/hlsl.js +1 -0
  992. package/src/shiki/langs/html-derivative.js +1 -0
  993. package/src/shiki/langs/html.js +1 -0
  994. package/src/shiki/langs/http.js +1 -0
  995. package/src/shiki/langs/hxml.js +1 -0
  996. package/src/shiki/langs/hy.js +1 -0
  997. package/src/shiki/langs/imba.js +1 -0
  998. package/src/shiki/langs/ini.js +1 -0
  999. package/src/shiki/langs/java.js +1 -0
  1000. package/src/shiki/langs/javascript.js +1 -0
  1001. package/src/shiki/langs/jinja-html.js +1 -0
  1002. package/src/shiki/langs/jinja.js +1 -0
  1003. package/src/shiki/langs/jison.js +1 -0
  1004. package/src/shiki/langs/json.js +1 -0
  1005. package/src/shiki/langs/json5.js +1 -0
  1006. package/src/shiki/langs/jsonc.js +1 -0
  1007. package/src/shiki/langs/jsonl.js +1 -0
  1008. package/src/shiki/langs/jsonnet.js +1 -0
  1009. package/src/shiki/langs/jssm.js +1 -0
  1010. package/src/shiki/langs/jsx.js +1 -0
  1011. package/src/shiki/langs/julia.js +1 -0
  1012. package/src/shiki/langs/kotlin.js +1 -0
  1013. package/src/shiki/langs/kusto.js +1 -0
  1014. package/src/shiki/langs/latex.js +1 -0
  1015. package/src/shiki/langs/lean.js +1 -0
  1016. package/src/shiki/langs/less.js +1 -0
  1017. package/src/shiki/langs/liquid.js +1 -0
  1018. package/src/shiki/langs/llvm.js +1 -0
  1019. package/src/shiki/langs/log.js +1 -0
  1020. package/src/shiki/langs/logo.js +1 -0
  1021. package/src/shiki/langs/lua.js +1 -0
  1022. package/src/shiki/langs/luau.js +1 -0
  1023. package/src/shiki/langs/make.js +1 -0
  1024. package/src/shiki/langs/markdown-vue.js +1 -0
  1025. package/src/shiki/langs/markdown.js +1 -0
  1026. package/src/shiki/langs/marko.js +1 -0
  1027. package/src/shiki/langs/matlab.js +1 -0
  1028. package/src/shiki/langs/mdc.js +1 -0
  1029. package/src/shiki/langs/mdx.js +1 -0
  1030. package/src/shiki/langs/mermaid.js +1 -0
  1031. package/src/shiki/langs/mipsasm.js +1 -0
  1032. package/src/shiki/langs/mojo.js +1 -0
  1033. package/src/shiki/langs/move.js +1 -0
  1034. package/src/shiki/langs/narrat.js +1 -0
  1035. package/src/shiki/langs/nextflow.js +1 -0
  1036. package/src/shiki/langs/nginx.js +1 -0
  1037. package/src/shiki/langs/nim.js +1 -0
  1038. package/src/shiki/langs/nix.js +1 -0
  1039. package/src/shiki/langs/nushell.js +1 -0
  1040. package/src/shiki/langs/objective-c.js +1 -0
  1041. package/src/shiki/langs/objective-cpp.js +1 -0
  1042. package/src/shiki/langs/ocaml.js +1 -0
  1043. package/src/shiki/langs/pascal.js +1 -0
  1044. package/src/shiki/langs/perl.js +1 -0
  1045. package/src/shiki/langs/php.js +1 -0
  1046. package/src/shiki/langs/plsql.js +1 -0
  1047. package/src/shiki/langs/po.js +1 -0
  1048. package/src/shiki/langs/polar.js +1 -0
  1049. package/src/shiki/langs/postcss.js +1 -0
  1050. package/src/shiki/langs/powerquery.js +1 -0
  1051. package/src/shiki/langs/powershell.js +1 -0
  1052. package/src/shiki/langs/prisma.js +1 -0
  1053. package/src/shiki/langs/prolog.js +1 -0
  1054. package/src/shiki/langs/proto.js +1 -0
  1055. package/src/shiki/langs/pug.js +1 -0
  1056. package/src/shiki/langs/puppet.js +1 -0
  1057. package/src/shiki/langs/purescript.js +1 -0
  1058. package/src/shiki/langs/python.js +1 -0
  1059. package/src/shiki/langs/qml.js +1 -0
  1060. package/src/shiki/langs/qmldir.js +1 -0
  1061. package/src/shiki/langs/qss.js +1 -0
  1062. package/src/shiki/langs/r.js +1 -0
  1063. package/src/shiki/langs/racket.js +1 -0
  1064. package/src/shiki/langs/raku.js +1 -0
  1065. package/src/shiki/langs/razor.js +1 -0
  1066. package/src/shiki/langs/reg.js +1 -0
  1067. package/src/shiki/langs/regexp.js +1 -0
  1068. package/src/shiki/langs/rel.js +1 -0
  1069. package/src/shiki/langs/riscv.js +1 -0
  1070. package/src/shiki/langs/rst.js +1 -0
  1071. package/src/shiki/langs/ruby.js +1 -0
  1072. package/src/shiki/langs/rust.js +1 -0
  1073. package/src/shiki/langs/sas.js +1 -0
  1074. package/src/shiki/langs/sass.js +1 -0
  1075. package/src/shiki/langs/scala.js +1 -0
  1076. package/src/shiki/langs/scheme.js +1 -0
  1077. package/src/shiki/langs/scss.js +1 -0
  1078. package/src/shiki/langs/sdbl.js +1 -0
  1079. package/src/shiki/langs/shaderlab.js +1 -0
  1080. package/src/shiki/langs/shellscript.js +1 -0
  1081. package/src/shiki/langs/shellsession.js +1 -0
  1082. package/src/shiki/langs/smalltalk.js +1 -0
  1083. package/src/shiki/langs/solidity.js +1 -0
  1084. package/src/shiki/langs/soy.js +1 -0
  1085. package/src/shiki/langs/sparql.js +1 -0
  1086. package/src/shiki/langs/splunk.js +1 -0
  1087. package/src/shiki/langs/sql.js +1 -0
  1088. package/src/shiki/langs/ssh-config.js +1 -0
  1089. package/src/shiki/langs/stata.js +1 -0
  1090. package/src/shiki/langs/stylus.js +1 -0
  1091. package/src/shiki/langs/svelte.js +1 -0
  1092. package/src/shiki/langs/swift.js +1 -0
  1093. package/src/shiki/langs/system-verilog.js +1 -0
  1094. package/src/shiki/langs/systemd.js +1 -0
  1095. package/src/shiki/langs/talonscript.js +1 -0
  1096. package/src/shiki/langs/tasl.js +1 -0
  1097. package/src/shiki/langs/tcl.js +1 -0
  1098. package/src/shiki/langs/templ.js +1 -0
  1099. package/src/shiki/langs/terraform.js +1 -0
  1100. package/src/shiki/langs/tex.js +1 -0
  1101. package/src/shiki/langs/toml.js +1 -0
  1102. package/src/shiki/langs/ts-tags.js +1 -0
  1103. package/src/shiki/langs/tsv.js +1 -0
  1104. package/src/shiki/langs/tsx.js +1 -0
  1105. package/src/shiki/langs/turtle.js +1 -0
  1106. package/src/shiki/langs/twig.js +1 -0
  1107. package/src/shiki/langs/typescript.js +1 -0
  1108. package/src/shiki/langs/typespec.js +1 -0
  1109. package/src/shiki/langs/typst.js +1 -0
  1110. package/src/shiki/langs/v.js +1 -0
  1111. package/src/shiki/langs/vala.js +1 -0
  1112. package/src/shiki/langs/vb.js +1 -0
  1113. package/src/shiki/langs/verilog.js +1 -0
  1114. package/src/shiki/langs/vhdl.js +1 -0
  1115. package/src/shiki/langs/viml.js +1 -0
  1116. package/src/shiki/langs/vue-directives.js +1 -0
  1117. package/src/shiki/langs/vue-html.js +1 -0
  1118. package/src/shiki/langs/vue-interpolations.js +1 -0
  1119. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1120. package/src/shiki/langs/vue.js +1 -0
  1121. package/src/shiki/langs/vyper.js +1 -0
  1122. package/src/shiki/langs/wasm.js +1 -0
  1123. package/src/shiki/langs/wenyan.js +1 -0
  1124. package/src/shiki/langs/wgsl.js +1 -0
  1125. package/src/shiki/langs/wikitext.js +1 -0
  1126. package/src/shiki/langs/wit.js +1 -0
  1127. package/src/shiki/langs/wolfram.js +1 -0
  1128. package/src/shiki/langs/xml.js +1 -0
  1129. package/src/shiki/langs/xsl.js +1 -0
  1130. package/src/shiki/langs/yaml.js +1 -0
  1131. package/src/shiki/langs/zenscript.js +1 -0
  1132. package/src/shiki/langs/zig.js +1 -0
  1133. package/src/shiki/themes/andromeeda.js +1 -0
  1134. package/src/shiki/themes/aurora-x.js +1 -0
  1135. package/src/shiki/themes/ayu-dark.js +1 -0
  1136. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1137. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1138. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1139. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1140. package/src/shiki/themes/dark-plus.js +1 -0
  1141. package/src/shiki/themes/dracula-soft.js +1 -0
  1142. package/src/shiki/themes/dracula.js +1 -0
  1143. package/src/shiki/themes/everforest-dark.js +1 -0
  1144. package/src/shiki/themes/everforest-light.js +1 -0
  1145. package/src/shiki/themes/github-dark-default.js +1 -0
  1146. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1147. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1148. package/src/shiki/themes/github-dark.js +1 -0
  1149. package/src/shiki/themes/github-light-default.js +1 -0
  1150. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1151. package/src/shiki/themes/github-light.js +1 -0
  1152. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1153. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1154. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1155. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1156. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1157. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1158. package/src/shiki/themes/houston.js +1 -0
  1159. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1160. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1161. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1162. package/src/shiki/themes/laserwave.js +1 -0
  1163. package/src/shiki/themes/light-plus.js +1 -0
  1164. package/src/shiki/themes/material-theme-darker.js +1 -0
  1165. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1166. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1167. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1168. package/src/shiki/themes/material-theme.js +1 -0
  1169. package/src/shiki/themes/min-dark.js +1 -0
  1170. package/src/shiki/themes/min-light.js +1 -0
  1171. package/src/shiki/themes/monokai.js +1 -0
  1172. package/src/shiki/themes/night-owl.js +1 -0
  1173. package/src/shiki/themes/nord.js +1 -0
  1174. package/src/shiki/themes/one-dark-pro.js +1 -0
  1175. package/src/shiki/themes/one-light.js +1 -0
  1176. package/src/shiki/themes/plastic.js +1 -0
  1177. package/src/shiki/themes/poimandres.js +1 -0
  1178. package/src/shiki/themes/red.js +1 -0
  1179. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1180. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1181. package/src/shiki/themes/rose-pine.js +1 -0
  1182. package/src/shiki/themes/slack-dark.js +1 -0
  1183. package/src/shiki/themes/slack-ochin.js +1 -0
  1184. package/src/shiki/themes/snazzy-light.js +1 -0
  1185. package/src/shiki/themes/solarized-dark.js +1 -0
  1186. package/src/shiki/themes/solarized-light.js +1 -0
  1187. package/src/shiki/themes/synthwave-84.js +1 -0
  1188. package/src/shiki/themes/tokyo-night.js +1 -0
  1189. package/src/shiki/themes/vesper.js +1 -0
  1190. package/src/shiki/themes/vitesse-black.js +1 -0
  1191. package/src/shiki/themes/vitesse-dark.js +1 -0
  1192. package/src/shiki/themes/vitesse-light.js +1 -0
  1193. package/client.d.ts +0 -8
  1194. package/dist/app/tailwind.d.ts +0 -4
  1195. package/dist/app/tailwind.js +0 -83
  1196. package/dist/app/tailwind.js.map +0 -1
  1197. package/dist/config/common.d.ts +0 -11
  1198. package/dist/config/common.js +0 -2
  1199. package/dist/config/common.js.map +0 -1
  1200. package/dist/config/validators/common.d.ts +0 -5538
  1201. package/dist/config/validators/common.js +0 -331
  1202. package/dist/config/validators/common.js.map +0 -1
  1203. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1204. package/dist/lib/components/SlotletProvider.js +0 -18
  1205. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1206. package/dist/lib/components/context/PluginSystem.js +0 -2
  1207. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1208. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1209. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  1210. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  1211. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  1212. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  1213. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  1214. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  1215. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  1216. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  1217. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  1218. package/dist/vite/pagefind.d.ts +0 -4
  1219. package/dist/vite/pagefind.js +0 -15
  1220. package/dist/vite/pagefind.js.map +0 -1
  1221. package/dist/vite/plugin-docs.test.js +0 -22
  1222. package/dist/vite/plugin-docs.test.js.map +0 -1
  1223. package/dist/zuplo/env.d.ts +0 -7
  1224. package/dist/zuplo/env.js +0 -12
  1225. package/dist/zuplo/env.js.map +0 -1
  1226. package/lib/AuthenticationPlugin-CiO1FM6Q.js +0 -58
  1227. package/lib/AuthenticationPlugin-CiO1FM6Q.js.map +0 -1
  1228. package/lib/Dialog-DIKGQxQc.js +0 -83
  1229. package/lib/Dialog-DIKGQxQc.js.map +0 -1
  1230. package/lib/Markdown-DePfm7oQ.js +0 -15264
  1231. package/lib/Markdown-DePfm7oQ.js.map +0 -1
  1232. package/lib/MdxPage-BN6l6zXL.js +0 -201
  1233. package/lib/MdxPage-BN6l6zXL.js.map +0 -1
  1234. package/lib/OasProvider-BSuptFK-.js +0 -34
  1235. package/lib/OperationList-DOcfDmJP.js +0 -5217
  1236. package/lib/OperationList-DOcfDmJP.js.map +0 -1
  1237. package/lib/Select-Dqtcn53H.js +0 -223
  1238. package/lib/Select-Dqtcn53H.js.map +0 -1
  1239. package/lib/SlotletProvider-DdtIOUi6.js +0 -221
  1240. package/lib/SlotletProvider-DdtIOUi6.js.map +0 -1
  1241. package/lib/Spinner-1KrEmx1V.js +0 -51
  1242. package/lib/Spinner-1KrEmx1V.js.map +0 -1
  1243. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1244. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1245. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +0 -1
  1246. package/lib/circular-v7K6lDDh.js.map +0 -1
  1247. package/lib/cn-qaFjX9_3.js.map +0 -1
  1248. package/lib/context-DLCwaMXN.js +0 -22
  1249. package/lib/context-DLCwaMXN.js.map +0 -1
  1250. package/lib/createServer-DmusVVsi.js.map +0 -1
  1251. package/lib/hook-CN__aZIt.js +0 -1464
  1252. package/lib/hook-CN__aZIt.js.map +0 -1
  1253. package/lib/index-BTbP6Lgf.js +0 -2103
  1254. package/lib/index-BTbP6Lgf.js.map +0 -1
  1255. package/lib/index-Dl3Yl0yb.js.map +0 -1
  1256. package/lib/index-gQD2h1wX.js +0 -447
  1257. package/lib/index-gQD2h1wX.js.map +0 -1
  1258. package/lib/index.esm--gIChbWs.js +0 -1207
  1259. package/lib/index.esm--gIChbWs.js.map +0 -1
  1260. package/lib/index.esm-CQHE3GEU.js +0 -691
  1261. package/lib/invariant-Caa8-XvF.js +0 -26
  1262. package/lib/joinUrl-10po2Jdj.js +0 -20
  1263. package/lib/joinUrl-10po2Jdj.js.map +0 -1
  1264. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  1265. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  1266. package/lib/mutation-EclmI0is.js +0 -208
  1267. package/lib/mutation-EclmI0is.js.map +0 -1
  1268. package/lib/post-processors/removeExtensions.js.map +0 -1
  1269. package/lib/post-processors/removeParameters.js +0 -48
  1270. package/lib/post-processors/removeParameters.js.map +0 -1
  1271. package/lib/post-processors/removePaths.js +0 -28
  1272. package/lib/post-processors/removePaths.js.map +0 -1
  1273. package/lib/post-processors/traverse.js +0 -15
  1274. package/lib/post-processors/traverse.js.map +0 -1
  1275. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  1276. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  1277. package/lib/prism-csharp.min-bQAo2pmx.js +0 -63
  1278. package/lib/prism-csharp.min-bQAo2pmx.js.map +0 -1
  1279. package/lib/prism-java.min-BpvsOuIa.js +0 -35
  1280. package/lib/prism-java.min-BpvsOuIa.js.map +0 -1
  1281. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1282. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1283. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1284. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1285. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  1286. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  1287. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1288. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1289. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1290. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1291. package/lib/prism-ruby.min-Dx9KO9ds.js +0 -38
  1292. package/lib/prism-ruby.min-Dx9KO9ds.js.map +0 -1
  1293. package/lib/prism-typescript.min-CD7H2IYQ.js +0 -34
  1294. package/lib/prism-typescript.min-CD7H2IYQ.js.map +0 -1
  1295. package/lib/useExposedProps-RIvey2Oy.js.map +0 -1
  1296. package/lib/useScrollToAnchor-RyqO3lj4.js +0 -290
  1297. package/lib/useScrollToAnchor-RyqO3lj4.js.map +0 -1
  1298. package/lib/zudoku.css +0 -1
  1299. package/src/app/tailwind.ts +0 -89
  1300. package/src/lib/components/SlotletProvider.tsx +0 -55
  1301. package/src/lib/components/context/PluginSystem.ts +0 -0
  1302. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  1303. package/src/lib/ui/Stepper.css +0 -43
  1304. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1305. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1306. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
  1307. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
  1308. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
  1309. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  1310. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  1311. /package/dist/{vite/plugin-docs.test.d.ts → lib/util/url.test.d.ts} +0 -0
  1312. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,1464 +0,0 @@
1
- var Ge = (t) => {
2
- throw TypeError(t);
3
- };
4
- var me = (t, e, s) => e.has(t) || Ge("Cannot " + s);
5
- var n = (t, e, s) => (me(t, e, "read from private field"), s ? s.call(t) : e.get(t)), g = (t, e, s) => e.has(t) ? Ge("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, r) => (me(t, e, "write to private field"), r ? r.call(t, s) : e.set(t, s), s), w = (t, e, s) => (me(t, e, "access private method"), s);
6
- import * as j from "react";
7
- import $e, { createContext as Et, useContext as Ot, useMemo as It } from "react";
8
- import { j as Ft } from "./jsx-runtime-CYK1ROHF.js";
9
- import { u as ve, m as ze } from "./chunk-IR6S3I6Y-D_3UmFIn.js";
10
- var qe = 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 Se() {
28
- }
29
- function fs(t, e) {
30
- return typeof t == "function" ? t(e) : t;
31
- }
32
- function we(t) {
33
- return typeof t == "number" && t >= 0 && t !== 1 / 0;
34
- }
35
- function at(t, e) {
36
- return Math.max(t + (e || 0) - Date.now(), 0);
37
- }
38
- function ye(t, e) {
39
- return typeof t == "function" ? t(e) : t;
40
- }
41
- function k(t, e) {
42
- return typeof t == "function" ? t(e) : t;
43
- }
44
- function ys(t, e) {
45
- const {
46
- type: s = "all",
47
- exact: r,
48
- fetchStatus: i,
49
- predicate: a,
50
- queryKey: o,
51
- stale: u
52
- } = t;
53
- if (o) {
54
- if (r) {
55
- if (e.queryHash !== Pt(o, e.options))
56
- return !1;
57
- } else if (!Le(e.queryKey, o))
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 || a && !a(e));
66
- }
67
- function ps(t, e) {
68
- const { exact: s, status: r, predicate: i, mutationKey: a } = t;
69
- if (a) {
70
- if (!e.options.mutationKey)
71
- return !1;
72
- if (s) {
73
- if (Re(e.options.mutationKey) !== Re(a))
74
- return !1;
75
- } else if (!Le(e.options.mutationKey, a))
76
- return !1;
77
- }
78
- return !(r && e.state.status !== r || i && !i(e));
79
- }
80
- function Pt(t, e) {
81
- return ((e == null ? void 0 : e.queryKeyHashFn) || Re)(t);
82
- }
83
- function Re(t) {
84
- return JSON.stringify(
85
- t,
86
- (e, s) => Oe(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s
87
- );
88
- }
89
- function Le(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) => !Le(t[s], e[s])) : !1;
91
- }
92
- function Ce(t, e) {
93
- if (t === e)
94
- return t;
95
- const s = Je(t) && Je(e);
96
- if (s || Oe(t) && Oe(e)) {
97
- const r = s ? t : Object.keys(t), i = r.length, a = s ? e : Object.keys(e), o = a.length, u = s ? [] : {};
98
- let l = 0;
99
- for (let f = 0; f < o; f++) {
100
- const m = s ? f : a[f];
101
- (!s && r.includes(m) || s) && t[m] === void 0 && e[m] === void 0 ? (u[m] = void 0, l++) : (u[m] = Ce(t[m], e[m]), u[m] === t[m] && t[m] !== void 0 && l++);
102
- }
103
- return i === o && l === i ? t : u;
104
- }
105
- return e;
106
- }
107
- function Ee(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 Je(t) {
116
- return Array.isArray(t) && t.length === Object.keys(t).length;
117
- }
118
- function Oe(t) {
119
- if (!Ve(t))
120
- return !1;
121
- const e = t.constructor;
122
- if (e === void 0)
123
- return !0;
124
- const s = e.prototype;
125
- return !(!Ve(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
126
- }
127
- function Ve(t) {
128
- return Object.prototype.toString.call(t) === "[object Object]";
129
- }
130
- function Tt(t) {
131
- return new Promise((e) => {
132
- setTimeout(e, t);
133
- });
134
- }
135
- function Ie(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 Ce(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 Ce(t, e);
148
- }
149
- return e;
150
- }
151
- function vs(t, e, s = 0) {
152
- const r = [...t, e];
153
- return s && r.length > s ? r.slice(1) : r;
154
- }
155
- function bs(t, e, s = 0) {
156
- const r = [e, ...t];
157
- return s && r.length > s ? r.slice(0, -1) : r;
158
- }
159
- var pe = Symbol();
160
- function Dt(t, e) {
161
- return process.env.NODE_ENV !== "production" && t.queryFn === pe && 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 === pe ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
164
- }
165
- var H, L, ee, tt, jt = (tt = class extends qe {
166
- constructor() {
167
- super();
168
- g(this, H);
169
- g(this, L);
170
- g(this, ee);
171
- d(this, ee, (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, L) || this.setEventListener(n(this, ee));
182
- }
183
- onUnsubscribe() {
184
- var e;
185
- this.hasListeners() || ((e = n(this, L)) == null || e.call(this), d(this, L, void 0));
186
- }
187
- setEventListener(e) {
188
- var s;
189
- d(this, ee, e), (s = n(this, L)) == null || s.call(this), d(this, L, e((r) => {
190
- typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
191
- }));
192
- }
193
- setFocused(e) {
194
- n(this, H) !== e && (d(this, H, 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, H) == "boolean" ? n(this, H) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
205
- }
206
- }, H = new WeakMap(), L = new WeakMap(), ee = new WeakMap(), tt), ot = new jt(), te, M, se, st, At = (st = class extends qe {
207
- constructor() {
208
- super();
209
- g(this, te, !0);
210
- g(this, M);
211
- g(this, se);
212
- d(this, se, (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, M) || this.setEventListener(n(this, se));
223
- }
224
- onUnsubscribe() {
225
- var e;
226
- this.hasListeners() || ((e = n(this, M)) == null || e.call(this), d(this, M, void 0));
227
- }
228
- setEventListener(e) {
229
- var s;
230
- d(this, se, e), (s = n(this, M)) == null || s.call(this), d(this, M, e(this.setOnline.bind(this)));
231
- }
232
- setOnline(e) {
233
- n(this, te) !== e && (d(this, te, e), this.listeners.forEach((r) => {
234
- r(e);
235
- }));
236
- }
237
- isOnline() {
238
- return n(this, te);
239
- }
240
- }, te = new WeakMap(), M = new WeakMap(), se = new WeakMap(), st), ut = new At();
241
- function Fe() {
242
- let t, e;
243
- const s = new Promise((i, a) => {
244
- t = i, e = a;
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 kt(t) {
264
- return Math.min(1e3 * 2 ** t, 3e4);
265
- }
266
- function ct(t) {
267
- return (t ?? "online") === "online" ? ut.isOnline() : !0;
268
- }
269
- var ht = 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 ge(t) {
275
- return t instanceof ht;
276
- }
277
- function xt(t) {
278
- let e = !1, s = 0, r = !1, i;
279
- const a = Fe(), o = (h) => {
280
- var v;
281
- r || (p(new ht(h)), (v = t.abort) == null || v.call(t));
282
- }, u = () => {
283
- e = !0;
284
- }, l = () => {
285
- e = !1;
286
- }, f = () => ot.isFocused() && (t.networkMode === "always" || ut.isOnline()) && t.canRun(), m = () => ct(t.networkMode) && t.canRun(), c = (h) => {
287
- var v;
288
- r || (r = !0, (v = t.onSuccess) == null || v.call(t, h), i == null || i(), a.resolve(h));
289
- }, p = (h) => {
290
- var v;
291
- r || (r = !0, (v = t.onError) == null || v.call(t, h), i == null || i(), a.reject(h));
292
- }, y = () => new Promise((h) => {
293
- var v;
294
- i = (C) => {
295
- (r || f()) && h(C);
296
- }, (v = t.onPause) == null || v.call(t);
297
- }).then(() => {
298
- var h;
299
- i = void 0, r || (h = t.onContinue) == null || h.call(t);
300
- }), E = () => {
301
- if (r)
302
- return;
303
- let h;
304
- const v = s === 0 ? t.initialPromise : void 0;
305
- try {
306
- h = v ?? t.fn();
307
- } catch (C) {
308
- h = Promise.reject(C);
309
- }
310
- Promise.resolve(h).then(c).catch((C) => {
311
- var be;
312
- if (r)
313
- return;
314
- const R = t.retry ?? (V ? 0 : 3), O = t.retryDelay ?? kt, q = typeof O == "function" ? O(s, C) : O, W = R === !0 || typeof R == "number" && s < R || typeof R == "function" && R(s, C);
315
- if (e || !W) {
316
- p(C);
317
- return;
318
- }
319
- s++, (be = t.onFail) == null || be.call(t, s, C), Tt(q).then(() => f() ? void 0 : y()).then(() => {
320
- e ? p(C) : E();
321
- });
322
- });
323
- };
324
- return {
325
- promise: a,
326
- cancel: o,
327
- continue: () => (i == null || i(), a),
328
- cancelRetry: u,
329
- continueRetry: l,
330
- canStart: m,
331
- start: () => (m() ? E() : y().then(E), a)
332
- };
333
- }
334
- function Qt() {
335
- let t = [], e = 0, s = (u) => {
336
- u();
337
- }, r = (u) => {
338
- u();
339
- }, i = (u) => setTimeout(u, 0);
340
- const a = (u) => {
341
- e ? t.push(u) : i(() => {
342
- s(u);
343
- });
344
- }, o = () => {
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 || o();
362
- }
363
- return l;
364
- },
365
- /**
366
- * All calls to the wrapped function will be batched.
367
- */
368
- batchCalls: (u) => (...l) => {
369
- a(() => {
370
- u(...l);
371
- });
372
- },
373
- schedule: a,
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 Me = Qt(), K, rt, Ut = (rt = class {
394
- constructor() {
395
- g(this, K);
396
- }
397
- destroy() {
398
- this.clearGcTimeout();
399
- }
400
- scheduleGc() {
401
- this.clearGcTimeout(), we(this.gcTime) && d(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)), d(this, K, void 0));
413
- }
414
- }, K = new WeakMap(), rt), re, ne, D, B, I, he, G, A, U, nt, ms = (nt = class extends Ut {
415
- constructor(e) {
416
- super();
417
- g(this, A);
418
- g(this, re);
419
- g(this, ne);
420
- g(this, D);
421
- g(this, B);
422
- g(this, I);
423
- g(this, he);
424
- g(this, G);
425
- d(this, G, !1), d(this, he, e.defaultOptions), this.setOptions(e.options), this.observers = [], d(this, B, e.client), d(this, D, n(this, B).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, d(this, re, qt(this.options)), this.state = e.state ?? n(this, re), this.scheduleGc();
426
- }
427
- get meta() {
428
- return this.options.meta;
429
- }
430
- get promise() {
431
- var e;
432
- return (e = n(this, I)) == null ? void 0 : e.promise;
433
- }
434
- setOptions(e) {
435
- this.options = { ...n(this, he), ...e }, this.updateGcTime(this.options.gcTime);
436
- }
437
- optionalRemove() {
438
- !this.observers.length && this.state.fetchStatus === "idle" && n(this, D).remove(this);
439
- }
440
- setData(e, s) {
441
- const r = Ie(this.state.data, e, this.options);
442
- return w(this, A, U).call(this, {
443
- data: r,
444
- type: "success",
445
- dataUpdatedAt: s == null ? void 0 : s.updatedAt,
446
- manual: s == null ? void 0 : s.manual
447
- }), r;
448
- }
449
- setState(e, s) {
450
- w(this, A, U).call(this, { type: "setState", state: e, setStateOptions: s });
451
- }
452
- cancel(e) {
453
- var r, i;
454
- const s = (r = n(this, I)) == null ? void 0 : r.promise;
455
- return (i = n(this, I)) == null || i.cancel(e), s ? s.then(Se).catch(Se) : Promise.resolve();
456
- }
457
- destroy() {
458
- super.destroy(), this.cancel({ silent: !0 });
459
- }
460
- reset() {
461
- this.destroy(), this.setState(n(this, re));
462
- }
463
- isActive() {
464
- return this.observers.some(
465
- (e) => k(e.options.enabled, this) !== !1
466
- );
467
- }
468
- isDisabled() {
469
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === pe || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
470
- }
471
- isStale() {
472
- return this.state.isInvalidated ? !0 : this.getObserversCount() > 0 ? this.observers.some(
473
- (e) => e.getCurrentResult().isStale
474
- ) : this.state.data === void 0;
475
- }
476
- isStaleByTime(e = 0) {
477
- return this.state.isInvalidated || this.state.data === void 0 || !at(this.state.dataUpdatedAt, e);
478
- }
479
- onFocus() {
480
- var s;
481
- const e = this.observers.find((r) => r.shouldFetchOnWindowFocus());
482
- e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, I)) == null || s.continue();
483
- }
484
- onOnline() {
485
- var s;
486
- const e = this.observers.find((r) => r.shouldFetchOnReconnect());
487
- e == null || e.refetch({ cancelRefetch: !1 }), (s = n(this, I)) == null || s.continue();
488
- }
489
- addObserver(e) {
490
- this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), n(this, D).notify({ type: "observerAdded", query: this, observer: e }));
491
- }
492
- removeObserver(e) {
493
- this.observers.includes(e) && (this.observers = this.observers.filter((s) => s !== e), this.observers.length || (n(this, I) && (n(this, G) ? n(this, I).cancel({ revert: !0 }) : n(this, I).cancelRetry()), this.scheduleGc()), n(this, D).notify({ type: "observerRemoved", query: this, observer: e }));
494
- }
495
- getObserversCount() {
496
- return this.observers.length;
497
- }
498
- invalidate() {
499
- this.state.isInvalidated || w(this, A, U).call(this, { type: "invalidate" });
500
- }
501
- fetch(e, s) {
502
- var l, f, m;
503
- if (this.state.fetchStatus !== "idle") {
504
- if (this.state.data !== void 0 && (s != null && s.cancelRefetch))
505
- this.cancel({ silent: !0 });
506
- else if (n(this, I))
507
- return n(this, I).continueRetry(), n(this, I).promise;
508
- }
509
- if (e && this.setOptions(e), !this.options.queryFn) {
510
- const c = this.observers.find((p) => p.options.queryFn);
511
- c && this.setOptions(c.options);
512
- }
513
- process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
514
- "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']"
515
- ));
516
- const r = new AbortController(), i = (c) => {
517
- Object.defineProperty(c, "signal", {
518
- enumerable: !0,
519
- get: () => (d(this, G, !0), r.signal)
520
- });
521
- }, a = () => {
522
- const c = Dt(this.options, s), p = {
523
- client: n(this, B),
524
- queryKey: this.queryKey,
525
- meta: this.meta
526
- };
527
- return i(p), d(this, G, !1), this.options.persister ? this.options.persister(
528
- c,
529
- p,
530
- this
531
- ) : c(p);
532
- }, o = {
533
- fetchOptions: s,
534
- options: this.options,
535
- queryKey: this.queryKey,
536
- client: n(this, B),
537
- state: this.state,
538
- fetchFn: a
539
- };
540
- i(o), (l = this.options.behavior) == null || l.onFetch(
541
- o,
542
- this
543
- ), d(this, ne, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = o.fetchOptions) == null ? void 0 : f.meta)) && w(this, A, U).call(this, { type: "fetch", meta: (m = o.fetchOptions) == null ? void 0 : m.meta });
544
- const u = (c) => {
545
- var p, y, E, h;
546
- ge(c) && c.silent || w(this, A, U).call(this, {
547
- type: "error",
548
- error: c
549
- }), ge(c) || ((y = (p = n(this, D).config).onError) == null || y.call(
550
- p,
551
- c,
552
- this
553
- ), (h = (E = n(this, D).config).onSettled) == null || h.call(
554
- E,
555
- this.state.data,
556
- c,
557
- this
558
- )), this.scheduleGc();
559
- };
560
- return d(this, I, xt({
561
- initialPromise: s == null ? void 0 : s.initialPromise,
562
- fn: o.fetchFn,
563
- abort: r.abort.bind(r),
564
- onSuccess: (c) => {
565
- var p, y, E, h;
566
- if (c === void 0) {
567
- process.env.NODE_ENV !== "production" && console.error(
568
- `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
569
- ), u(new Error(`${this.queryHash} data is undefined`));
570
- return;
571
- }
572
- try {
573
- this.setData(c);
574
- } catch (v) {
575
- u(v);
576
- return;
577
- }
578
- (y = (p = n(this, D).config).onSuccess) == null || y.call(p, c, this), (h = (E = n(this, D).config).onSettled) == null || h.call(
579
- E,
580
- c,
581
- this.state.error,
582
- this
583
- ), this.scheduleGc();
584
- },
585
- onError: u,
586
- onFail: (c, p) => {
587
- w(this, A, U).call(this, { type: "failed", failureCount: c, error: p });
588
- },
589
- onPause: () => {
590
- w(this, A, U).call(this, { type: "pause" });
591
- },
592
- onContinue: () => {
593
- w(this, A, U).call(this, { type: "continue" });
594
- },
595
- retry: o.options.retry,
596
- retryDelay: o.options.retryDelay,
597
- networkMode: o.options.networkMode,
598
- canRun: () => !0
599
- })), n(this, I).start();
600
- }
601
- }, re = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), B = new WeakMap(), I = new WeakMap(), he = new WeakMap(), G = new WeakMap(), A = new WeakSet(), U = function(e) {
602
- const s = (r) => {
603
- switch (e.type) {
604
- case "failed":
605
- return {
606
- ...r,
607
- fetchFailureCount: e.failureCount,
608
- fetchFailureReason: e.error
609
- };
610
- case "pause":
611
- return {
612
- ...r,
613
- fetchStatus: "paused"
614
- };
615
- case "continue":
616
- return {
617
- ...r,
618
- fetchStatus: "fetching"
619
- };
620
- case "fetch":
621
- return {
622
- ...r,
623
- ...lt(r.data, this.options),
624
- fetchMeta: e.meta ?? null
625
- };
626
- case "success":
627
- return {
628
- ...r,
629
- data: e.data,
630
- dataUpdateCount: r.dataUpdateCount + 1,
631
- dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
632
- error: null,
633
- isInvalidated: !1,
634
- status: "success",
635
- ...!e.manual && {
636
- fetchStatus: "idle",
637
- fetchFailureCount: 0,
638
- fetchFailureReason: null
639
- }
640
- };
641
- case "error":
642
- const i = e.error;
643
- return ge(i) && i.revert && n(this, ne) ? { ...n(this, ne), fetchStatus: "idle" } : {
644
- ...r,
645
- error: i,
646
- errorUpdateCount: r.errorUpdateCount + 1,
647
- errorUpdatedAt: Date.now(),
648
- fetchFailureCount: r.fetchFailureCount + 1,
649
- fetchFailureReason: i,
650
- fetchStatus: "idle",
651
- status: "error"
652
- };
653
- case "invalidate":
654
- return {
655
- ...r,
656
- isInvalidated: !0
657
- };
658
- case "setState":
659
- return {
660
- ...r,
661
- ...e.state
662
- };
663
- }
664
- };
665
- this.state = s(this.state), Me.batch(() => {
666
- this.observers.forEach((r) => {
667
- r.onQueryUpdate();
668
- }), n(this, D).notify({ query: this, type: "updated", action: e });
669
- });
670
- }, nt);
671
- function lt(t, e) {
672
- return {
673
- fetchFailureCount: 0,
674
- fetchFailureReason: null,
675
- fetchStatus: ct(e.networkMode) ? "fetching" : "paused",
676
- ...t === void 0 && {
677
- error: null,
678
- status: "pending"
679
- }
680
- };
681
- }
682
- function qt(t) {
683
- 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;
684
- return {
685
- data: e,
686
- dataUpdateCount: 0,
687
- dataUpdatedAt: s ? r ?? Date.now() : 0,
688
- error: null,
689
- errorUpdateCount: 0,
690
- errorUpdatedAt: 0,
691
- fetchFailureCount: 0,
692
- fetchFailureReason: null,
693
- fetchMeta: null,
694
- isInvalidated: !1,
695
- status: s ? "success" : "pending",
696
- fetchStatus: "idle"
697
- };
698
- }
699
- var T, b, le, P, $, ie, N, Q, de, ae, oe, z, J, _, ue, S, ce, Pe, Te, De, je, Ae, ke, xe, ft, it, dt = (it = class extends qe {
700
- constructor(e, s) {
701
- super();
702
- g(this, S);
703
- g(this, T);
704
- g(this, b);
705
- g(this, le);
706
- g(this, P);
707
- g(this, $);
708
- g(this, ie);
709
- g(this, N);
710
- g(this, Q);
711
- g(this, de);
712
- g(this, ae);
713
- // This property keeps track of the last query with defined data.
714
- // It will be used to pass the previous data and query to the placeholder function between renders.
715
- g(this, oe);
716
- g(this, z);
717
- g(this, J);
718
- g(this, _);
719
- g(this, ue, /* @__PURE__ */ new Set());
720
- this.options = s, d(this, T, e), d(this, Q, null), d(this, N, Fe()), this.options.experimental_prefetchInRender || n(this, N).reject(
721
- new Error("experimental_prefetchInRender feature flag is not enabled")
722
- ), this.bindMethods(), this.setOptions(s);
723
- }
724
- bindMethods() {
725
- this.refetch = this.refetch.bind(this);
726
- }
727
- onSubscribe() {
728
- this.listeners.size === 1 && (n(this, b).addObserver(this), Ze(n(this, b), this.options) ? w(this, S, ce).call(this) : this.updateResult(), w(this, S, je).call(this));
729
- }
730
- onUnsubscribe() {
731
- this.hasListeners() || this.destroy();
732
- }
733
- shouldFetchOnReconnect() {
734
- return Qe(
735
- n(this, b),
736
- this.options,
737
- this.options.refetchOnReconnect
738
- );
739
- }
740
- shouldFetchOnWindowFocus() {
741
- return Qe(
742
- n(this, b),
743
- this.options,
744
- this.options.refetchOnWindowFocus
745
- );
746
- }
747
- destroy() {
748
- this.listeners = /* @__PURE__ */ new Set(), w(this, S, Ae).call(this), w(this, S, ke).call(this), n(this, b).removeObserver(this);
749
- }
750
- setOptions(e, s) {
751
- const r = this.options, i = n(this, b);
752
- if (this.options = n(this, T).defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof k(this.options.enabled, n(this, b)) != "boolean")
753
- throw new Error(
754
- "Expected enabled to be a boolean or a callback that returns a boolean"
755
- );
756
- w(this, S, xe).call(this), n(this, b).setOptions(this.options), r._defaulted && !Ee(this.options, r) && n(this, T).getQueryCache().notify({
757
- type: "observerOptionsUpdated",
758
- query: n(this, b),
759
- observer: this
760
- });
761
- const a = this.hasListeners();
762
- a && We(
763
- n(this, b),
764
- i,
765
- this.options,
766
- r
767
- ) && w(this, S, ce).call(this), this.updateResult(s), a && (n(this, b) !== i || k(this.options.enabled, n(this, b)) !== k(r.enabled, n(this, b)) || ye(this.options.staleTime, n(this, b)) !== ye(r.staleTime, n(this, b))) && w(this, S, Pe).call(this);
768
- const o = w(this, S, Te).call(this);
769
- a && (n(this, b) !== i || k(this.options.enabled, n(this, b)) !== k(r.enabled, n(this, b)) || o !== n(this, _)) && w(this, S, De).call(this, o);
770
- }
771
- getOptimisticResult(e) {
772
- const s = n(this, T).getQueryCache().build(n(this, T), e), r = this.createResult(s, e);
773
- return Mt(this, r) && (d(this, P, r), d(this, ie, this.options), d(this, $, n(this, b).state)), r;
774
- }
775
- getCurrentResult() {
776
- return n(this, P);
777
- }
778
- trackResult(e, s) {
779
- const r = {};
780
- return Object.keys(e).forEach((i) => {
781
- Object.defineProperty(r, i, {
782
- configurable: !1,
783
- enumerable: !0,
784
- get: () => (this.trackProp(i), s == null || s(i), e[i])
785
- });
786
- }), r;
787
- }
788
- trackProp(e) {
789
- n(this, ue).add(e);
790
- }
791
- getCurrentQuery() {
792
- return n(this, b);
793
- }
794
- refetch({ ...e } = {}) {
795
- return this.fetch({
796
- ...e
797
- });
798
- }
799
- fetchOptimistic(e) {
800
- const s = n(this, T).defaultQueryOptions(e), r = n(this, T).getQueryCache().build(n(this, T), s);
801
- return r.fetch().then(() => this.createResult(r, s));
802
- }
803
- fetch(e) {
804
- return w(this, S, ce).call(this, {
805
- ...e,
806
- cancelRefetch: e.cancelRefetch ?? !0
807
- }).then(() => (this.updateResult(), n(this, P)));
808
- }
809
- createResult(e, s) {
810
- var Be;
811
- const r = n(this, b), i = this.options, a = n(this, P), o = n(this, $), u = n(this, ie), f = e !== r ? e.state : n(this, le), { state: m } = e;
812
- let c = { ...m }, p = !1, y;
813
- if (s._optimisticResults) {
814
- const F = this.hasListeners(), Y = !F && Ze(e, s), X = F && We(e, r, s, i);
815
- (Y || X) && (c = {
816
- ...c,
817
- ...lt(m.data, e.options)
818
- }), s._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
819
- }
820
- let { error: E, errorUpdatedAt: h, status: v } = c;
821
- if (s.select && c.data !== void 0)
822
- if (a && c.data === (o == null ? void 0 : o.data) && s.select === n(this, de))
823
- y = n(this, ae);
824
- else
825
- try {
826
- d(this, de, s.select), y = s.select(c.data), y = Ie(a == null ? void 0 : a.data, y, s), d(this, ae, y), d(this, Q, null);
827
- } catch (F) {
828
- d(this, Q, F);
829
- }
830
- else
831
- y = c.data;
832
- if (s.placeholderData !== void 0 && y === void 0 && v === "pending") {
833
- let F;
834
- if (a != null && a.isPlaceholderData && s.placeholderData === (u == null ? void 0 : u.placeholderData))
835
- F = a.data;
836
- else if (F = typeof s.placeholderData == "function" ? s.placeholderData(
837
- (Be = n(this, oe)) == null ? void 0 : Be.state.data,
838
- n(this, oe)
839
- ) : s.placeholderData, s.select && F !== void 0)
840
- try {
841
- F = s.select(F), d(this, Q, null);
842
- } catch (Y) {
843
- d(this, Q, Y);
844
- }
845
- F !== void 0 && (v = "success", y = Ie(
846
- a == null ? void 0 : a.data,
847
- F,
848
- s
849
- ), p = !0);
850
- }
851
- n(this, Q) && (E = n(this, Q), y = n(this, ae), h = Date.now(), v = "error");
852
- const C = c.fetchStatus === "fetching", R = v === "pending", O = v === "error", q = R && C, W = y !== void 0, x = {
853
- status: v,
854
- fetchStatus: c.fetchStatus,
855
- isPending: R,
856
- isSuccess: v === "success",
857
- isError: O,
858
- isInitialLoading: q,
859
- isLoading: q,
860
- data: y,
861
- dataUpdatedAt: c.dataUpdatedAt,
862
- error: E,
863
- errorUpdatedAt: h,
864
- failureCount: c.fetchFailureCount,
865
- failureReason: c.fetchFailureReason,
866
- errorUpdateCount: c.errorUpdateCount,
867
- isFetched: c.dataUpdateCount > 0 || c.errorUpdateCount > 0,
868
- isFetchedAfterMount: c.dataUpdateCount > f.dataUpdateCount || c.errorUpdateCount > f.errorUpdateCount,
869
- isFetching: C,
870
- isRefetching: C && !R,
871
- isLoadingError: O && !W,
872
- isPaused: c.fetchStatus === "paused",
873
- isPlaceholderData: p,
874
- isRefetchError: O && W,
875
- isStale: Ne(e, s),
876
- refetch: this.refetch,
877
- promise: n(this, N)
878
- };
879
- if (this.options.experimental_prefetchInRender) {
880
- const F = (fe) => {
881
- x.status === "error" ? fe.reject(x.error) : x.data !== void 0 && fe.resolve(x.data);
882
- }, Y = () => {
883
- const fe = d(this, N, x.promise = Fe());
884
- F(fe);
885
- }, X = n(this, N);
886
- switch (X.status) {
887
- case "pending":
888
- e.queryHash === r.queryHash && F(X);
889
- break;
890
- case "fulfilled":
891
- (x.status === "error" || x.data !== X.value) && Y();
892
- break;
893
- case "rejected":
894
- (x.status !== "error" || x.error !== X.reason) && Y();
895
- break;
896
- }
897
- }
898
- return x;
899
- }
900
- updateResult(e) {
901
- const s = n(this, P), r = this.createResult(n(this, b), this.options);
902
- if (d(this, $, n(this, b).state), d(this, ie, this.options), n(this, $).data !== void 0 && d(this, oe, n(this, b)), Ee(r, s))
903
- return;
904
- d(this, P, r);
905
- const i = {}, a = () => {
906
- if (!s)
907
- return !0;
908
- const { notifyOnChangeProps: o } = this.options, u = typeof o == "function" ? o() : o;
909
- if (u === "all" || !u && !n(this, ue).size)
910
- return !0;
911
- const l = new Set(
912
- u ?? n(this, ue)
913
- );
914
- return this.options.throwOnError && l.add("error"), Object.keys(n(this, P)).some((f) => {
915
- const m = f;
916
- return n(this, P)[m] !== s[m] && l.has(m);
917
- });
918
- };
919
- (e == null ? void 0 : e.listeners) !== !1 && a() && (i.listeners = !0), w(this, S, ft).call(this, { ...i, ...e });
920
- }
921
- onQueryUpdate() {
922
- this.updateResult(), this.hasListeners() && w(this, S, je).call(this);
923
- }
924
- }, T = new WeakMap(), b = new WeakMap(), le = new WeakMap(), P = new WeakMap(), $ = new WeakMap(), ie = new WeakMap(), N = new WeakMap(), Q = new WeakMap(), de = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), z = new WeakMap(), J = new WeakMap(), _ = new WeakMap(), ue = new WeakMap(), S = new WeakSet(), ce = function(e) {
925
- w(this, S, xe).call(this);
926
- let s = n(this, b).fetch(
927
- this.options,
928
- e
929
- );
930
- return e != null && e.throwOnError || (s = s.catch(Se)), s;
931
- }, Pe = function() {
932
- w(this, S, Ae).call(this);
933
- const e = ye(
934
- this.options.staleTime,
935
- n(this, b)
936
- );
937
- if (V || n(this, P).isStale || !we(e))
938
- return;
939
- const r = at(n(this, P).dataUpdatedAt, e) + 1;
940
- d(this, z, setTimeout(() => {
941
- n(this, P).isStale || this.updateResult();
942
- }, r));
943
- }, Te = function() {
944
- return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(n(this, b)) : this.options.refetchInterval) ?? !1;
945
- }, De = function(e) {
946
- w(this, S, ke).call(this), d(this, _, e), !(V || k(this.options.enabled, n(this, b)) === !1 || !we(n(this, _)) || n(this, _) === 0) && d(this, J, setInterval(() => {
947
- (this.options.refetchIntervalInBackground || ot.isFocused()) && w(this, S, ce).call(this);
948
- }, n(this, _)));
949
- }, je = function() {
950
- w(this, S, Pe).call(this), w(this, S, De).call(this, w(this, S, Te).call(this));
951
- }, Ae = function() {
952
- n(this, z) && (clearTimeout(n(this, z)), d(this, z, void 0));
953
- }, ke = function() {
954
- n(this, J) && (clearInterval(n(this, J)), d(this, J, void 0));
955
- }, xe = function() {
956
- const e = n(this, T).getQueryCache().build(n(this, T), this.options);
957
- if (e === n(this, b))
958
- return;
959
- const s = n(this, b);
960
- d(this, b, e), d(this, le, e.state), this.hasListeners() && (s == null || s.removeObserver(this), e.addObserver(this));
961
- }, ft = function(e) {
962
- Me.batch(() => {
963
- e.listeners && this.listeners.forEach((s) => {
964
- s(n(this, P));
965
- }), n(this, T).getQueryCache().notify({
966
- query: n(this, b),
967
- type: "observerResultsUpdated"
968
- });
969
- });
970
- }, it);
971
- function Lt(t, e) {
972
- return k(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
973
- }
974
- function Ze(t, e) {
975
- return Lt(t, e) || t.state.data !== void 0 && Qe(t, e, e.refetchOnMount);
976
- }
977
- function Qe(t, e, s) {
978
- if (k(e.enabled, t) !== !1) {
979
- const r = typeof s == "function" ? s(t) : s;
980
- return r === "always" || r !== !1 && Ne(t, e);
981
- }
982
- return !1;
983
- }
984
- function We(t, e, s, r) {
985
- return (t !== e || k(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && Ne(t, s);
986
- }
987
- function Ne(t, e) {
988
- return k(e.enabled, t) !== !1 && t.isStaleByTime(ye(e.staleTime, t));
989
- }
990
- function Mt(t, e) {
991
- return !Ee(t.getCurrentResult(), e);
992
- }
993
- var yt = j.createContext(
994
- void 0
995
- ), pt = (t) => {
996
- const e = j.useContext(yt);
997
- if (t)
998
- return t;
999
- if (!e)
1000
- throw new Error("No QueryClient set, use QueryClientProvider to set one");
1001
- return e;
1002
- }, gs = ({
1003
- client: t,
1004
- children: e
1005
- }) => (j.useEffect(() => (t.mount(), () => {
1006
- t.unmount();
1007
- }), [t]), /* @__PURE__ */ Ft.jsx(yt.Provider, { value: t, children: e })), vt = j.createContext(!1), Nt = () => j.useContext(vt);
1008
- vt.Provider;
1009
- function _t() {
1010
- let t = !1;
1011
- return {
1012
- clearReset: () => {
1013
- t = !1;
1014
- },
1015
- reset: () => {
1016
- t = !0;
1017
- },
1018
- isReset: () => t
1019
- };
1020
- }
1021
- var Ht = j.createContext(_t()), Kt = () => j.useContext(Ht);
1022
- function Bt(t, e) {
1023
- return typeof t == "function" ? t(...e) : !!t;
1024
- }
1025
- function Ye() {
1026
- }
1027
- var Gt = (t, e) => {
1028
- (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1029
- }, $t = (t) => {
1030
- j.useEffect(() => {
1031
- t.clearReset();
1032
- }, [t]);
1033
- }, zt = ({
1034
- result: t,
1035
- errorResetBoundary: e,
1036
- throwOnError: s,
1037
- query: r,
1038
- suspense: i
1039
- }) => t.isError && !e.isReset() && !t.isFetching && r && (i && t.data === void 0 || Bt(s, [t.error, r])), Jt = (t, e) => e.state.data === void 0, Vt = (t) => {
1040
- const e = t.staleTime;
1041
- 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)));
1042
- }, Zt = (t, e) => t.isLoading && t.isFetching && !e, Wt = (t, e) => (t == null ? void 0 : t.suspense) && e.isPending, Xe = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1043
- s.clearReset();
1044
- });
1045
- function bt(t, e, s) {
1046
- var c, p, y, E, h;
1047
- if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1048
- throw new Error(
1049
- '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'
1050
- );
1051
- const r = pt(s), i = Nt(), a = Kt(), o = r.defaultQueryOptions(t);
1052
- (p = (c = r.getDefaultOptions().queries) == null ? void 0 : c._experimental_beforeQuery) == null || p.call(
1053
- c,
1054
- o
1055
- ), o._optimisticResults = i ? "isRestoring" : "optimistic", Vt(o), Gt(o, a), $t(a);
1056
- const u = !r.getQueryCache().get(o.queryHash), [l] = j.useState(
1057
- () => new e(
1058
- r,
1059
- o
1060
- )
1061
- ), f = l.getOptimisticResult(o), m = !i && t.subscribed !== !1;
1062
- if (j.useSyncExternalStore(
1063
- j.useCallback(
1064
- (v) => {
1065
- const C = m ? l.subscribe(Me.batchCalls(v)) : Ye;
1066
- return l.updateResult(), C;
1067
- },
1068
- [l, m]
1069
- ),
1070
- () => l.getCurrentResult(),
1071
- () => l.getCurrentResult()
1072
- ), j.useEffect(() => {
1073
- l.setOptions(o, { listeners: !1 });
1074
- }, [o, l]), Wt(o, f))
1075
- throw Xe(o, l, a);
1076
- if (zt({
1077
- result: f,
1078
- errorResetBoundary: a,
1079
- throwOnError: o.throwOnError,
1080
- query: r.getQueryCache().get(o.queryHash),
1081
- suspense: o.suspense
1082
- }))
1083
- throw f.error;
1084
- if ((E = (y = r.getDefaultOptions().queries) == null ? void 0 : y._experimental_afterQuery) == null || E.call(
1085
- y,
1086
- o,
1087
- f
1088
- ), o.experimental_prefetchInRender && !V && Zt(f, i)) {
1089
- const v = u ? (
1090
- // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1091
- Xe(o, l, a)
1092
- ) : (
1093
- // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1094
- (h = r.getQueryCache().get(o.queryHash)) == null ? void 0 : h.promise
1095
- );
1096
- v == null || v.catch(Ye).finally(() => {
1097
- l.updateResult();
1098
- });
1099
- }
1100
- return o.notifyOnChangeProps ? f : l.trackResult(f);
1101
- }
1102
- function Yt(t, e) {
1103
- return bt(t, dt, e);
1104
- }
1105
- function Xt(t, e) {
1106
- return process.env.NODE_ENV !== "production" && t.queryFn === pe && console.error("skipToken is not allowed for useSuspenseQuery"), bt(
1107
- {
1108
- ...t,
1109
- enabled: !0,
1110
- suspense: !0,
1111
- throwOnError: Jt,
1112
- placeholderData: void 0
1113
- },
1114
- dt,
1115
- e
1116
- );
1117
- }
1118
- const Z = (...t) => {
1119
- const e = t.filter((s) => !!s).map((s) => s.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
1120
- return e ? `/${e}` : "/";
1121
- }, mt = Object.freeze({
1122
- API_IDENTITIES: ["api-identities"]
1123
- }), Ss = () => {
1124
- const t = pt();
1125
- return {
1126
- invalidateCache: async (e) => {
1127
- await t.invalidateQueries({ queryKey: mt[e] });
1128
- }
1129
- };
1130
- }, _e = (t, e) => {
1131
- for (const s of t) {
1132
- const r = He(s, e);
1133
- if (r !== void 0) return r;
1134
- }
1135
- }, He = (t, e, s = []) => {
1136
- const r = e(t, s);
1137
- if (r !== void 0) return r;
1138
- if (t.type === "category")
1139
- for (const i of t.items) {
1140
- const a = He(i, e, [
1141
- ...s,
1142
- t
1143
- ]);
1144
- if (a !== void 0) return a;
1145
- }
1146
- }, ws = () => {
1147
- const t = ve(), s = gt().sidebar;
1148
- return _e(s, (r) => {
1149
- if (r.type === "doc" && Z(r.id) === t.pathname)
1150
- return r;
1151
- });
1152
- }, Rs = (t) => {
1153
- const e = ve();
1154
- return He(t, (s) => {
1155
- if (s.type === "category" && s.link && Z(s.link.id) === e.pathname || s.type === "doc" && Z(s.id) === e.pathname)
1156
- return !0;
1157
- });
1158
- }, Cs = () => {
1159
- const t = ve().pathname, s = gt().sidebar;
1160
- let r, i, a = !1;
1161
- return _e(s, (o) => {
1162
- const u = o.type === "doc" ? Z(o.id) : o.type === "category" && o.link ? Z(o.link.id) : void 0;
1163
- if (u) {
1164
- if (a)
1165
- return i = { label: o.label, id: u }, !0;
1166
- t === u ? a = !0 : r = { label: o.label, id: u };
1167
- }
1168
- }), { prev: r, next: i };
1169
- }, es = Et(
1170
- void 0
1171
- ), Ke = () => {
1172
- const t = Ot(es);
1173
- if (!t)
1174
- throw new Error("useZudoku must be used within a ZudokuProvider.");
1175
- return t;
1176
- }, Es = () => {
1177
- const { getApiIdentities: t } = Ke();
1178
- return Yt({
1179
- queryFn: t,
1180
- queryKey: [mt.API_IDENTITIES]
1181
- });
1182
- }, gt = () => {
1183
- var c;
1184
- const { getPluginSidebar: t, sidebars: e, topNavigation: s, options: r } = Ke(), i = ve(), a = us(), o = (c = r.protectedRoutes) == null ? void 0 : c.some(
1185
- (p) => ze(p, i.pathname)
1186
- ), u = Object.entries(e).find(([, p]) => _e(p, (y) => {
1187
- if ((y.type === "doc" ? Z(y.id) : y.type === "category" && y.link ? Z(y.link.id) : void 0) === i.pathname)
1188
- return y;
1189
- })), l = s.find((p) => p.id === (u == null ? void 0 : u[0])) ?? s.find((p) => ze(p.id, i.pathname)), { data: f } = Xt({
1190
- queryFn: () => t(i.pathname),
1191
- queryKey: ["plugin-sidebar", i.pathname]
1192
- });
1193
- return {
1194
- sidebar: a.isAuthEnabled && !a.isAuthenticated && o ? [] : [...u ? u[1] : [], ...f],
1195
- topNavItem: l
1196
- };
1197
- }, et = (t) => {
1198
- let e;
1199
- const s = /* @__PURE__ */ new Set(), r = (f, m) => {
1200
- const c = typeof f == "function" ? f(e) : f;
1201
- if (!Object.is(c, e)) {
1202
- const p = e;
1203
- e = m ?? (typeof c != "object" || c === null) ? c : Object.assign({}, e, c), s.forEach((y) => y(e, p));
1204
- }
1205
- }, i = () => e, u = { setState: r, getState: i, getInitialState: () => l, subscribe: (f) => (s.add(f), () => s.delete(f)) }, l = e = t(r, i, u);
1206
- return u;
1207
- }, ts = (t) => t ? et(t) : et, ss = (t) => t;
1208
- function rs(t, e = ss) {
1209
- const s = $e.useSyncExternalStore(
1210
- t.subscribe,
1211
- () => e(t.getState()),
1212
- () => e(t.getInitialState())
1213
- );
1214
- return $e.useDebugValue(s), s;
1215
- }
1216
- const ns = (t) => {
1217
- const e = ts(t), s = (r) => rs(e, r);
1218
- return Object.assign(s, e), s;
1219
- }, St = (t) => ns;
1220
- function wt(t, e) {
1221
- let s;
1222
- try {
1223
- s = t();
1224
- } catch {
1225
- return;
1226
- }
1227
- return {
1228
- getItem: (i) => {
1229
- var a;
1230
- const o = (l) => l === null ? null : JSON.parse(l, void 0), u = (a = s.getItem(i)) != null ? a : null;
1231
- return u instanceof Promise ? u.then(o) : o(u);
1232
- },
1233
- setItem: (i, a) => s.setItem(
1234
- i,
1235
- JSON.stringify(a, void 0)
1236
- ),
1237
- removeItem: (i) => s.removeItem(i)
1238
- };
1239
- }
1240
- const Ue = (t) => (e) => {
1241
- try {
1242
- const s = t(e);
1243
- return s instanceof Promise ? s : {
1244
- then(r) {
1245
- return Ue(r)(s);
1246
- },
1247
- catch(r) {
1248
- return this;
1249
- }
1250
- };
1251
- } catch (s) {
1252
- return {
1253
- then(r) {
1254
- return this;
1255
- },
1256
- catch(r) {
1257
- return Ue(r)(s);
1258
- }
1259
- };
1260
- }
1261
- }, is = (t, e) => (s, r, i) => {
1262
- let a = {
1263
- storage: wt(() => localStorage),
1264
- partialize: (h) => h,
1265
- version: 0,
1266
- merge: (h, v) => ({
1267
- ...v,
1268
- ...h
1269
- }),
1270
- ...e
1271
- }, o = !1;
1272
- const u = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
1273
- let f = a.storage;
1274
- if (!f)
1275
- return t(
1276
- (...h) => {
1277
- console.warn(
1278
- `[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
1279
- ), s(...h);
1280
- },
1281
- r,
1282
- i
1283
- );
1284
- const m = () => {
1285
- const h = a.partialize({ ...r() });
1286
- return f.setItem(a.name, {
1287
- state: h,
1288
- version: a.version
1289
- });
1290
- }, c = i.setState;
1291
- i.setState = (h, v) => {
1292
- c(h, v), m();
1293
- };
1294
- const p = t(
1295
- (...h) => {
1296
- s(...h), m();
1297
- },
1298
- r,
1299
- i
1300
- );
1301
- i.getInitialState = () => p;
1302
- let y;
1303
- const E = () => {
1304
- var h, v;
1305
- if (!f) return;
1306
- o = !1, u.forEach((R) => {
1307
- var O;
1308
- return R((O = r()) != null ? O : p);
1309
- });
1310
- const C = ((v = a.onRehydrateStorage) == null ? void 0 : v.call(a, (h = r()) != null ? h : p)) || void 0;
1311
- return Ue(f.getItem.bind(f))(a.name).then((R) => {
1312
- if (R)
1313
- if (typeof R.version == "number" && R.version !== a.version) {
1314
- if (a.migrate) {
1315
- const O = a.migrate(
1316
- R.state,
1317
- R.version
1318
- );
1319
- return O instanceof Promise ? O.then((q) => [!0, q]) : [!0, O];
1320
- }
1321
- console.error(
1322
- "State loaded from storage couldn't be migrated since no migrate function was provided"
1323
- );
1324
- } else
1325
- return [!1, R.state];
1326
- return [!1, void 0];
1327
- }).then((R) => {
1328
- var O;
1329
- const [q, W] = R;
1330
- if (y = a.merge(
1331
- W,
1332
- (O = r()) != null ? O : p
1333
- ), s(y, !0), q)
1334
- return m();
1335
- }).then(() => {
1336
- C == null || C(y, void 0), y = r(), o = !0, l.forEach((R) => R(y));
1337
- }).catch((R) => {
1338
- C == null || C(void 0, R);
1339
- });
1340
- };
1341
- return i.persist = {
1342
- setOptions: (h) => {
1343
- a = {
1344
- ...a,
1345
- ...h
1346
- }, h.storage && (f = h.storage);
1347
- },
1348
- clearStorage: () => {
1349
- f == null || f.removeItem(a.name);
1350
- },
1351
- getOptions: () => a,
1352
- rehydrate: () => E(),
1353
- hasHydrated: () => o,
1354
- onHydrate: (h) => (u.add(h), () => {
1355
- u.delete(h);
1356
- }),
1357
- onFinishHydration: (h) => (l.add(h), () => {
1358
- l.delete(h);
1359
- })
1360
- }, a.skipHydration || E(), y || p;
1361
- }, Rt = is, as = (t) => {
1362
- const e = (s) => {
1363
- s.key === t.persist.getOptions().name && s.newValue && t.persist.rehydrate();
1364
- };
1365
- return window.addEventListener("storage", e), () => {
1366
- window.removeEventListener("storage", e);
1367
- };
1368
- }, Ct = St()(
1369
- Rt(
1370
- (t) => ({
1371
- isAuthenticated: !1,
1372
- isPending: !0,
1373
- profile: null,
1374
- providerData: null
1375
- }),
1376
- {
1377
- merge: (t, e) => ({
1378
- ...e,
1379
- isPending: !1,
1380
- ...typeof t == "object" ? t : {}
1381
- }),
1382
- name: "auth-state",
1383
- storage: wt(() => localStorage)
1384
- }
1385
- )
1386
- );
1387
- typeof window < "u" && as(Ct);
1388
- const os = St()(
1389
- Rt(
1390
- (t) => ({
1391
- selectedServer: void 0,
1392
- setSelectedServer: (e) => t({ selectedServer: e })
1393
- }),
1394
- { name: "zudoku-selected-server" }
1395
- )
1396
- ), Os = (t) => {
1397
- const { selectedServer: e, setSelectedServer: s } = os();
1398
- return { selectedServer: It(
1399
- () => {
1400
- var i;
1401
- return e && t.some((a) => a.url === e) ? e : ((i = t.at(0)) == null ? void 0 : i.url) ?? "";
1402
- },
1403
- [e, t]
1404
- ), setSelectedServer: s };
1405
- }, us = () => {
1406
- const { authentication: t } = Ke(), e = Ct(), s = typeof t < "u";
1407
- return {
1408
- isAuthEnabled: s,
1409
- ...e,
1410
- login: async () => {
1411
- if (!s)
1412
- throw new Error("Authentication is not enabled.");
1413
- await t.signIn();
1414
- },
1415
- logout: async () => {
1416
- if (!s)
1417
- throw new Error("Authentication is not enabled.");
1418
- await t.signOut(), window.location.href = "/";
1419
- }
1420
- };
1421
- };
1422
- export {
1423
- ut as A,
1424
- ye as B,
1425
- fs as C,
1426
- Le as D,
1427
- pe as E,
1428
- gs as F,
1429
- gt as G,
1430
- _e as H,
1431
- Ss as I,
1432
- mt as J,
1433
- ms as Q,
1434
- Ut as R,
1435
- qe as S,
1436
- es as Z,
1437
- Ke as a,
1438
- Xt as b,
1439
- xt as c,
1440
- ws as d,
1441
- Cs as e,
1442
- pt as f,
1443
- Ye as g,
1444
- Re as h,
1445
- Bt as i,
1446
- Z as j,
1447
- us as k,
1448
- Rs as l,
1449
- Yt as m,
1450
- Me as n,
1451
- Os as o,
1452
- Es as p,
1453
- Pt as q,
1454
- ys as r,
1455
- Ee as s,
1456
- ps as t,
1457
- Ct as u,
1458
- Se as v,
1459
- Dt as w,
1460
- bs as x,
1461
- vs as y,
1462
- ot as z
1463
- };
1464
- //# sourceMappingURL=hook-CN__aZIt.js.map