zudoku 0.0.0-fix-firebase-export.2e421fda → 0.0.0-fix-circular-ref-false-positives.zbe02c6a6
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.
- package/dist/app/main.d.ts +6 -6
- package/dist/cli/common/version-check.js +12 -3
- package/dist/cli/common/version-check.js.map +1 -1
- package/dist/config/loader.js +3 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +77 -75
- package/dist/config/validators/InputNavigationSchema.js +1 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.js +6 -1
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +59 -14
- package/dist/config/validators/validate.js +7 -5
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +29 -27
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/issuer.js +1 -1
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -2
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +4 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -2
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +2 -0
- package/dist/lib/authentication/hook.js +10 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -7
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +0 -22
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.js +67 -9
- package/dist/lib/authentication/providers/firebase.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +6 -15
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +7 -2
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +48 -12
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
- package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
- package/dist/lib/components/Pagination.js +2 -2
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/index.d.ts +5 -0
- package/dist/lib/components/index.js +4 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +2 -2
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +12 -7
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +11 -1
- package/dist/lib/core/plugins.js +1 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/core/react-query.d.ts +1 -0
- package/dist/lib/core/react-query.js +2 -0
- package/dist/lib/core/react-query.js.map +1 -0
- package/dist/lib/core/transform-config.d.ts +2 -0
- package/dist/lib/core/transform-config.js +22 -0
- package/dist/lib/core/transform-config.js.map +1 -0
- package/dist/lib/errors/ErrorMessage.d.ts +3 -0
- package/dist/lib/errors/ErrorMessage.js +16 -0
- package/dist/lib/errors/ErrorMessage.js.map +1 -0
- package/dist/lib/hooks/index.d.ts +2 -0
- package/dist/lib/oas/graphql/circular.d.ts +2 -0
- package/dist/lib/oas/graphql/circular.js +21 -16
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.d.ts +1 -0
- package/dist/lib/oas/graphql/circular.test.js +183 -0
- package/dist/lib/oas/graphql/circular.test.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +7 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +11 -4
- package/dist/lib/plugins/api-keys/index.js +36 -22
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +33 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js +6 -2
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +4 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +1 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +3 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.js +11 -3
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +24 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +3 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +2 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +3 -3
- package/dist/lib/util/invariant.d.ts +1 -1
- package/dist/lib/util/invariant.js +2 -2
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +12 -1
- package/dist/vite/api/SchemaManager.js +31 -14
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +44 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/config.js +10 -4
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/error-handler.js +1 -5
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +1 -1
- package/dist/vite/plugin-api-keys.js +5 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +5 -3
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +1 -1
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/dist/vite/prerender/utils.js +9 -3
- package/dist/vite/prerender/utils.js.map +1 -1
- package/dist/vite/prerender/worker.js +3 -0
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/zuplo.d.ts +13 -0
- package/dist/vite/zuplo.js +15 -0
- package/dist/vite/zuplo.js.map +1 -0
- package/lib/{ActionButton-DUgvSylL.js → ActionButton-B0CXL1Lq.js} +3 -3
- package/lib/{ActionButton-DUgvSylL.js.map → ActionButton-B0CXL1Lq.js.map} +1 -1
- package/lib/{Button-CynVW1JV.js → Button-GUVe7pmt.js} +8 -7
- package/lib/{Button-CynVW1JV.js.map → Button-GUVe7pmt.js.map} +1 -1
- package/lib/{Card-KFniaZn5.js → Card-DCdq37aA.js} +2 -2
- package/lib/{Card-KFniaZn5.js.map → Card-DCdq37aA.js.map} +1 -1
- package/lib/{ClaudeLogo-B4Xxt-x_.js → ClaudeLogo-DJ9bU-sO.js} +22 -22
- package/lib/ClaudeLogo-DJ9bU-sO.js.map +1 -0
- package/lib/{Command-BpT1iBE6.js → Command-N6VujV30.js} +3 -3
- package/lib/{Command-BpT1iBE6.js.map → Command-N6VujV30.js.map} +1 -1
- package/lib/{Dialog-BQciPiHN.js → Dialog-hlvmmQ_c.js} +2 -2
- package/lib/{Dialog-BQciPiHN.js.map → Dialog-hlvmmQ_c.js.map} +1 -1
- package/lib/{Drawer-Ci7XwhqT.js → Drawer-Ch7927PF.js} +7 -7
- package/lib/{Drawer-Ci7XwhqT.js.map → Drawer-Ch7927PF.js.map} +1 -1
- package/lib/{DropdownMenu-C8SX_-S_.js → DropdownMenu-DN0jNrjj.js} +2 -2
- package/lib/{DropdownMenu-C8SX_-S_.js.map → DropdownMenu-DN0jNrjj.js.map} +1 -1
- package/lib/Frame-DKlOmSkU.js +205 -0
- package/lib/Frame-DKlOmSkU.js.map +1 -0
- package/lib/HydrationBoundary-CNF2ZV3E.js +601 -0
- package/lib/HydrationBoundary-CNF2ZV3E.js.map +1 -0
- package/lib/{IndexingDialog-B5zCiUKr.js → IndexingDialog-D0YdGfbn.js} +3 -3
- package/lib/{IndexingDialog-B5zCiUKr.js.map → IndexingDialog-D0YdGfbn.js.map} +1 -1
- package/lib/Input-Cx-GeKoF.js +22 -0
- package/lib/Input-Cx-GeKoF.js.map +1 -0
- package/lib/{MdxPage-BagO2c-n.js → MdxPage-stpAoBtx.js} +11 -11
- package/lib/{MdxPage-BagO2c-n.js.map → MdxPage-stpAoBtx.js.map} +1 -1
- package/lib/{Mermaid-D_VSX7_Q.js → Mermaid-Koc3z8mU.js} +4 -4
- package/lib/{Mermaid-D_VSX7_Q.js.map → Mermaid-Koc3z8mU.js.map} +1 -1
- package/lib/{OAuthErrorPage-Fq54RLgt.js → OAuthErrorPage-DJ811Bn_.js} +15 -15
- package/lib/OAuthErrorPage-DJ811Bn_.js.map +1 -0
- package/lib/OasProvider-B2KxIBsI.js +48 -0
- package/lib/OasProvider-B2KxIBsI.js.map +1 -0
- package/lib/{OperationList-C0jiEaG5.js → OperationList-C2tAfThO.js} +1558 -1543
- package/lib/{OperationList-C0jiEaG5.js.map → OperationList-C2tAfThO.js.map} +1 -1
- package/lib/RouteGuard--A04ESy8.js +77 -0
- package/lib/RouteGuard--A04ESy8.js.map +1 -0
- package/lib/{SchemaList-BU0zCHn9.js → SchemaList-Ep8DleP_.js} +9 -9
- package/lib/{SchemaList-BU0zCHn9.js.map → SchemaList-Ep8DleP_.js.map} +1 -1
- package/lib/SchemaView-BpaEKRYx.js +438 -0
- package/lib/SchemaView-BpaEKRYx.js.map +1 -0
- package/lib/{Select-CkxXP5I7.js → Secret-BDBqq4p3.js} +122 -122
- package/lib/Secret-BDBqq4p3.js.map +1 -0
- package/lib/{Separator-CTPSeW1S.js → Separator-BXt1LYnm.js} +2 -2
- package/lib/{Separator-CTPSeW1S.js.map → Separator-BXt1LYnm.js.map} +1 -1
- package/lib/SignUp-DCBViNUi.js +50 -0
- package/lib/SignUp-DCBViNUi.js.map +1 -0
- package/lib/{SyntaxHighlight-Kdyskw3C.js → SyntaxHighlight-Dshjn3Zf.js} +1749 -1723
- package/lib/SyntaxHighlight-Dshjn3Zf.js.map +1 -0
- package/lib/{Toc-DJxFPfcS.js → Toc-Cgz6CPiE.js} +3 -3
- package/lib/{Toc-DJxFPfcS.js.map → Toc-Cgz6CPiE.js.map} +1 -1
- package/lib/ZudokuContext-BZB1TWdT.js +387 -0
- package/lib/ZudokuContext-BZB1TWdT.js.map +1 -0
- package/lib/{___vite-browser-external_commonjs-proxy-Cga3HsWk.js → ___vite-browser-external_commonjs-proxy-BttVsNON.js} +2 -2
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +1 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
- package/lib/{circular-CzWF1hj5.js → circular-CG3e0_Uz.js} +1689 -1686
- package/lib/{circular-CzWF1hj5.js.map → circular-CG3e0_Uz.js.map} +1 -1
- package/lib/{cn-dYga0KKN.js → cn-5-Gd1Dss.js} +531 -498
- package/lib/cn-5-Gd1Dss.js.map +1 -0
- package/lib/{createServer-BIr2_tGn.js → createServer-CNeRqj98.js} +12 -12
- package/lib/{createServer-BIr2_tGn.js.map → createServer-CNeRqj98.js.map} +1 -1
- package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
- package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
- package/lib/{errors-Bs4duWDy.js → errors-b9I-fAOY.js} +3 -3
- package/lib/{errors-Bs4duWDy.js.map → errors-b9I-fAOY.js.map} +1 -1
- package/lib/{firebase-Cax7HPzn.js → firebase-BCXX7Qv5.js} +1579 -1325
- package/lib/firebase-BCXX7Qv5.js.map +1 -0
- package/lib/hook-BGlHBdET.js +52 -0
- package/lib/hook-BGlHBdET.js.map +1 -0
- package/lib/{ErrorAlert-DrOR8w3f.js → index-CL8eDnQW.js} +5473 -4433
- package/lib/index-CL8eDnQW.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-Css56y3F.js → index-DBjOT2H1.js} +4 -4
- package/lib/{index-Css56y3F.js.map → index-DBjOT2H1.js.map} +1 -1
- package/lib/{index-0oT9beQN.js → index-I3kmZ7tG.js} +152 -148
- package/lib/{index-0oT9beQN.js.map → index-I3kmZ7tG.js.map} +1 -1
- package/lib/{index-Bh-MffiL.js → index-UOLtazB8.js} +2 -2
- package/lib/{index-Bh-MffiL.js.map → index-UOLtazB8.js.map} +1 -1
- package/lib/index.esm-BYObtETB.js.map +1 -1
- package/lib/{index.esm-DtzT_KoE.js → index.esm-B_0dvNjB.js} +2 -2
- package/lib/{index.esm-DtzT_KoE.js.map → index.esm-B_0dvNjB.js.map} +1 -1
- package/lib/{index.esm-DDENMN4y.js → index.esm-C5CBsVzN.js} +16 -14
- package/lib/index.esm-C5CBsVzN.js.map +1 -0
- package/lib/{invariant-CGOLuIIz.js → invariant-BJAl77rw.js} +4 -4
- package/lib/invariant-BJAl77rw.js.map +1 -0
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
- package/lib/{mutation-BoVlx8yA.js → mutation-BISOc7OM.js} +70 -44
- package/lib/mutation-BISOc7OM.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +7 -6
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/ButtonGroup.js +1 -1
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +3 -3
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/Frame.js +1 -1
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Item.js +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/NativeSelect.js +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +1 -1
- package/lib/ui/Separator.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Value.js +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/{useMutation-C6RqWmTS.js → useMutation-CFMGlAMW.js} +39 -17
- package/lib/useMutation-CFMGlAMW.js.map +1 -0
- package/lib/useSuspenseQuery-CSB_rVek.js +1226 -0
- package/lib/useSuspenseQuery-CSB_rVek.js.map +1 -0
- package/lib/zudoku.__internal.js +826 -1325
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +16 -16
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +52 -75
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-firebase.js +6 -5
- package/lib/zudoku.auth-firebase.js.map +1 -1
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +31 -40
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +23 -21
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +8 -8
- package/lib/zudoku.plugin-api-keys.js +607 -552
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +30 -29
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js +9 -8
- package/lib/zudoku.plugins.js.map +1 -1
- package/lib/zudoku.react-query.js +440 -0
- package/lib/zudoku.react-query.js.map +1 -0
- package/lib/zudoku.router.js +1130 -1404
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +28 -21
- package/src/lib/auth/issuer.ts +1 -1
- package/src/lib/authentication/authentication.ts +8 -2
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +5 -2
- package/src/lib/authentication/components/SignUp.tsx +5 -2
- package/src/lib/authentication/hook.ts +16 -0
- package/src/lib/authentication/providers/auth0.tsx +15 -9
- package/src/lib/authentication/providers/clerk.tsx +0 -26
- package/src/lib/authentication/providers/firebase.tsx +98 -6
- package/src/lib/authentication/providers/supabase.tsx +6 -15
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +181 -39
- package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
- package/src/lib/components/Pagination.tsx +4 -5
- package/src/lib/components/index.ts +4 -0
- package/src/lib/components/navigation/NavigationItem.tsx +9 -3
- package/src/lib/core/RouteGuard.tsx +30 -24
- package/src/lib/core/plugins.ts +21 -1
- package/src/lib/core/react-query.ts +1 -0
- package/src/lib/core/transform-config.ts +29 -0
- package/src/lib/errors/ErrorMessage.tsx +38 -0
- package/src/lib/oas/graphql/circular.test.ts +221 -0
- package/src/lib/oas/graphql/circular.ts +31 -18
- package/src/lib/oas/graphql/index.ts +7 -3
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
- package/src/lib/plugins/api-keys/index.tsx +76 -32
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
- package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +67 -0
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
- package/src/lib/plugins/openapi/OasProvider.tsx +10 -2
- package/src/lib/plugins/openapi/OperationList.tsx +4 -4
- package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +3 -2
- package/src/lib/plugins/openapi/interfaces.ts +6 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +6 -4
- package/src/lib/plugins/openapi/schema/utils.ts +15 -4
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +29 -1
- package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -1
- package/src/lib/ui/Button.tsx +1 -0
- package/src/lib/util/invariant.ts +2 -1
- package/src/shiki/langs/c3.js +1 -0
- package/src/shiki/langs/gn.js +1 -0
- package/src/shiki/langs/moonbit.js +1 -0
- package/lib/ClaudeLogo-B4Xxt-x_.js.map +0 -1
- package/lib/ErrorAlert-DrOR8w3f.js.map +0 -1
- package/lib/OAuthErrorPage-Fq54RLgt.js.map +0 -1
- package/lib/OasProvider-DPH8mwDa.js +0 -40
- package/lib/OasProvider-DPH8mwDa.js.map +0 -1
- package/lib/RouteGuard-9wjejsKm.js +0 -77
- package/lib/RouteGuard-9wjejsKm.js.map +0 -1
- package/lib/RouterError-DSLXagd5.js +0 -42
- package/lib/RouterError-DSLXagd5.js.map +0 -1
- package/lib/SchemaView-DVae4RO2.js +0 -597
- package/lib/SchemaView-DVae4RO2.js.map +0 -1
- package/lib/Select-CkxXP5I7.js.map +0 -1
- package/lib/SignUp-BjS4ozA7.js +0 -50
- package/lib/SignUp-BjS4ozA7.js.map +0 -1
- package/lib/SyntaxHighlight-Kdyskw3C.js.map +0 -1
- package/lib/ZudokuContext-BXldanA8.js +0 -1508
- package/lib/ZudokuContext-BXldanA8.js.map +0 -1
- package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js.map +0 -1
- package/lib/chunk-PVWAREVJ-dLIqswPy.js +0 -7965
- package/lib/chunk-PVWAREVJ-dLIqswPy.js.map +0 -1
- package/lib/cn-dYga0KKN.js.map +0 -1
- package/lib/createVariantComponent-B9_dVBvu.js +0 -35
- package/lib/createVariantComponent-B9_dVBvu.js.map +0 -1
- package/lib/firebase-Cax7HPzn.js.map +0 -1
- package/lib/hook-BNxidGQq.js +0 -40
- package/lib/hook-BNxidGQq.js.map +0 -1
- package/lib/index-CCmMJp02.js +0 -1059
- package/lib/index-CCmMJp02.js.map +0 -1
- package/lib/index.esm-DDENMN4y.js.map +0 -1
- package/lib/invariant-CGOLuIIz.js.map +0 -1
- package/lib/mutation-BoVlx8yA.js.map +0 -1
- package/lib/useMutation-C6RqWmTS.js.map +0 -1
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as
|
|
3
|
-
import { r as es,
|
|
2
|
+
import { ChevronsDownUpIcon as Ln, ChevronsUpDownIcon as En, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as ue, TrashIcon as kn, FileInput as Rn, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as In, TableOfContentsIcon as Dn, LockIcon as Fn, CircleAlertIcon as zn, Circle as Vn, Unlink2Icon as Bn, CornerDownRightIcon as _n, MinusCircleIcon as bt, CornerDownLeftIcon as qn, SquareCodeIcon as Mn, DownloadIcon as Un, EyeOffIcon as Gn, EyeIcon as Hn, UnplugIcon as Qn, SendIcon as Jn, CopyIcon as Wn, IdCardLanyardIcon as Xn, ShapesIcon as Kn, PlayIcon as Zn, CirclePlayIcon as Yn } from "lucide-react";
|
|
3
|
+
import { r as es, d as ts, a as ns, N as ss, aL as rs, m as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
4
4
|
import { Button as Ft } from "./ui/Button.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Z as
|
|
5
|
+
import { f as Ze, p as Ye, g as zt, s as as, h as os, j as V } from "./ZudokuContext-BZB1TWdT.js";
|
|
6
|
+
import { Z as is } from "./invariant-BJAl77rw.js";
|
|
7
7
|
import * as xe from "react";
|
|
8
|
-
import { createContext as Vt, use as
|
|
9
|
-
import { VisuallyHidden as
|
|
10
|
-
import { z as
|
|
11
|
-
import { B as q } from "./Button-
|
|
12
|
-
import { D as et, a as tt, c as nt, d as _t, e as qt, g as
|
|
13
|
-
import { B as pe, S as vs,
|
|
14
|
-
import { u as js } from "./useMutation-
|
|
15
|
-
import { u as ae, b as Mt, C as
|
|
8
|
+
import { createContext as Vt, use as ls, useRef as E, useEffect as G, useMemo as Bt, useCallback as D, startTransition as cs, useState as k, Fragment as ie, useLayoutEffect as ds, useTransition as us, useContext as ms } from "react";
|
|
9
|
+
import { VisuallyHidden as ps } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { z as hs, b as fs } from "./index-DBjOT2H1.js";
|
|
11
|
+
import { B as q } from "./Button-GUVe7pmt.js";
|
|
12
|
+
import { D as et, a as tt, c as nt, d as _t, e as qt, g as gs } from "./Dialog-hlvmmQ_c.js";
|
|
13
|
+
import { B as pe, k as Ct, l as Nt, m as St, c as xs, S as ys, n as vs, h as bs } from "./index-CL8eDnQW.js";
|
|
14
|
+
import { u as js } from "./useMutation-CFMGlAMW.js";
|
|
15
|
+
import { u as ae, b as Mt, C as wt, a as Cs, F as Ns } from "./index.esm-BYObtETB.js";
|
|
16
16
|
import * as st from "@radix-ui/react-collapsible";
|
|
17
|
-
import { S as Ut, a as Gt, b as Ht, c as Qt, e as Te, g as Ss } from "./
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { c as ye
|
|
17
|
+
import { S as Ut, a as Gt, b as Ht, c as Qt, e as Te, g as Ss } from "./Secret-BDBqq4p3.js";
|
|
18
|
+
import { c as w } from "./cn-5-Gd1Dss.js";
|
|
19
|
+
import { u as ws } from "./useCopyToClipboard-B_085nfO.js";
|
|
20
|
+
import { u as Ts } from "./useLatest-hmRS46UF.js";
|
|
21
|
+
import { D as Jt, a as Wt, b as Xt, d as As, e as $s, f as Ps, c as Ae } from "./DropdownMenu-DN0jNrjj.js";
|
|
22
|
+
import { I as Os } from "./Input-Cx-GeKoF.js";
|
|
23
|
+
import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
|
|
24
24
|
import * as Tt from "@radix-ui/react-checkbox";
|
|
25
25
|
import * as $e from "@radix-ui/react-popover";
|
|
26
|
-
import { PopoverAnchor as
|
|
27
|
-
import { P as
|
|
28
|
-
import { f as
|
|
29
|
-
import { C as
|
|
30
|
-
import * as
|
|
31
|
-
import { c as
|
|
26
|
+
import { PopoverAnchor as Ls } from "@radix-ui/react-popover";
|
|
27
|
+
import { P as Es } from "./index-CrcNWbel.js";
|
|
28
|
+
import { f as ks, g as Rs, C as Is, b as Ds } from "./Command-N6VujV30.js";
|
|
29
|
+
import { C as Fs } from "./Card-DCdq37aA.js";
|
|
30
|
+
import * as Kt from "@radix-ui/react-label";
|
|
31
|
+
import { c as zs } from "./index-DI5SPFK9.js";
|
|
32
32
|
import * as he from "@radix-ui/react-radio-group";
|
|
33
|
-
import { A as
|
|
33
|
+
import { A as Vs, a as Bs, b as _s } from "./Mermaid-Koc3z8mU.js";
|
|
34
|
+
import { e as qs, u as Ms } from "./useSuspenseQuery-CSB_rVek.js";
|
|
34
35
|
let _e;
|
|
35
36
|
const Us = (e) => {
|
|
36
37
|
if (e.errors?.[0])
|
|
37
|
-
throw new
|
|
38
|
+
throw new is(e.errors[0].message, {
|
|
38
39
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
39
40
|
});
|
|
40
41
|
};
|
|
@@ -42,7 +43,7 @@ class Gs {
|
|
|
42
43
|
constructor(n) {
|
|
43
44
|
this.config = n;
|
|
44
45
|
}
|
|
45
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
46
|
+
#e = async () => (_e || (_e = import("./createServer-CNeRqj98.js").then(
|
|
46
47
|
(n) => n.createServer(this.config)
|
|
47
48
|
)), _e);
|
|
48
49
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -117,7 +118,7 @@ function At(e) {
|
|
|
117
118
|
return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
118
119
|
`);
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function Xs(e) {
|
|
121
122
|
const n = e[0];
|
|
122
123
|
return n == null || "kind" in n || "length" in n ? {
|
|
123
124
|
nodes: n,
|
|
@@ -169,7 +170,7 @@ class rt extends Error {
|
|
|
169
170
|
*/
|
|
170
171
|
constructor(n, ...s) {
|
|
171
172
|
var a, r, o;
|
|
172
|
-
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } =
|
|
173
|
+
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
|
|
173
174
|
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = $t(
|
|
174
175
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
175
176
|
);
|
|
@@ -314,7 +315,7 @@ class Yt {
|
|
|
314
315
|
};
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
|
-
const
|
|
318
|
+
const Ks = {
|
|
318
319
|
Name: [],
|
|
319
320
|
Document: ["definitions"],
|
|
320
321
|
OperationDefinition: [
|
|
@@ -401,8 +402,8 @@ const Xs = {
|
|
|
401
402
|
ArgumentCoordinate: ["name", "fieldName", "argumentName"],
|
|
402
403
|
DirectiveCoordinate: ["name"],
|
|
403
404
|
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
404
|
-
}, Zs = new Set(Object.keys(
|
|
405
|
-
function
|
|
405
|
+
}, Zs = new Set(Object.keys(Ks));
|
|
406
|
+
function Za(e) {
|
|
406
407
|
const n = e?.kind;
|
|
407
408
|
return typeof n == "string" && Zs.has(n);
|
|
408
409
|
}
|
|
@@ -410,7 +411,7 @@ var Pt;
|
|
|
410
411
|
(function(e) {
|
|
411
412
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
412
413
|
})(Pt || (Pt = {}));
|
|
413
|
-
function
|
|
414
|
+
function Xe(e) {
|
|
414
415
|
return e === 9 || e === 32;
|
|
415
416
|
}
|
|
416
417
|
function fe(e) {
|
|
@@ -441,15 +442,15 @@ function er(e) {
|
|
|
441
442
|
}
|
|
442
443
|
function tr(e) {
|
|
443
444
|
let n = 0;
|
|
444
|
-
for (; n < e.length &&
|
|
445
|
+
for (; n < e.length && Xe(e.charCodeAt(n)); )
|
|
445
446
|
++n;
|
|
446
447
|
return n;
|
|
447
448
|
}
|
|
448
449
|
function nr(e, n) {
|
|
449
|
-
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((h) => h.length === 0 ||
|
|
450
|
+
const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((h) => h.length === 0 || Xe(h.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), m = c || l, d = !(n != null && n.minimize) && // add leading and trailing new lines only if it improves readability
|
|
450
451
|
(!r || e.length > 70 || m || o || i);
|
|
451
452
|
let f = "";
|
|
452
|
-
const x = r &&
|
|
453
|
+
const x = r && Xe(e.charCodeAt(0));
|
|
453
454
|
return (d && !x || o) && (f += `
|
|
454
455
|
`), f += s, (d || m) && (f += `
|
|
455
456
|
`), '"""' + f + '"""';
|
|
@@ -517,7 +518,7 @@ function nn(e) {
|
|
|
517
518
|
function sn(e) {
|
|
518
519
|
return e >= 56320 && e <= 57343;
|
|
519
520
|
}
|
|
520
|
-
function
|
|
521
|
+
function K(e, n) {
|
|
521
522
|
const s = e.source.body.codePointAt(n);
|
|
522
523
|
if (s === void 0)
|
|
523
524
|
return b.EOF;
|
|
@@ -622,7 +623,7 @@ function ar(e, n) {
|
|
|
622
623
|
throw F(
|
|
623
624
|
e.source,
|
|
624
625
|
r,
|
|
625
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : oe(o) || Oe(s, r) ? `Unexpected character: ${
|
|
626
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : oe(o) || Oe(s, r) ? `Unexpected character: ${K(e, r)}.` : `Invalid character: ${K(e, r)}.`
|
|
626
627
|
);
|
|
627
628
|
}
|
|
628
629
|
return P(e, b.EOF, a, a);
|
|
@@ -657,7 +658,7 @@ function ir(e, n, s) {
|
|
|
657
658
|
throw F(
|
|
658
659
|
e.source,
|
|
659
660
|
r,
|
|
660
|
-
`Invalid number, unexpected digit after 0: ${
|
|
661
|
+
`Invalid number, unexpected digit after 0: ${K(
|
|
661
662
|
e,
|
|
662
663
|
r
|
|
663
664
|
)}.`
|
|
@@ -668,7 +669,7 @@ function ir(e, n, s) {
|
|
|
668
669
|
throw F(
|
|
669
670
|
e.source,
|
|
670
671
|
r,
|
|
671
|
-
`Invalid number, expected digit but got: ${
|
|
672
|
+
`Invalid number, expected digit but got: ${K(
|
|
672
673
|
e,
|
|
673
674
|
r
|
|
674
675
|
)}.`
|
|
@@ -686,7 +687,7 @@ function Me(e, n, s) {
|
|
|
686
687
|
throw F(
|
|
687
688
|
e.source,
|
|
688
689
|
n,
|
|
689
|
-
`Invalid number, expected digit but got: ${
|
|
690
|
+
`Invalid number, expected digit but got: ${K(
|
|
690
691
|
e,
|
|
691
692
|
n
|
|
692
693
|
)}.`
|
|
@@ -720,7 +721,7 @@ function lr(e, n) {
|
|
|
720
721
|
throw F(
|
|
721
722
|
e.source,
|
|
722
723
|
r,
|
|
723
|
-
`Invalid character within String: ${
|
|
724
|
+
`Invalid character within String: ${K(
|
|
724
725
|
e,
|
|
725
726
|
r
|
|
726
727
|
)}.`
|
|
@@ -869,7 +870,7 @@ function mr(e, n) {
|
|
|
869
870
|
throw F(
|
|
870
871
|
e.source,
|
|
871
872
|
o,
|
|
872
|
-
`Invalid character within String: ${
|
|
873
|
+
`Invalid character within String: ${K(
|
|
873
874
|
e,
|
|
874
875
|
o
|
|
875
876
|
)}.`
|
|
@@ -1022,14 +1023,14 @@ function Nr(e) {
|
|
|
1022
1023
|
}
|
|
1023
1024
|
const ln = Vt(
|
|
1024
1025
|
void 0
|
|
1025
|
-
),
|
|
1026
|
+
), Ya = ({
|
|
1026
1027
|
children: e,
|
|
1027
1028
|
client: n
|
|
1028
1029
|
}) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
|
|
1029
1030
|
queryFn: () => e.fetch(n, s),
|
|
1030
1031
|
queryKey: [Nr(n.toString()), s]
|
|
1031
1032
|
}), Sr = (e, ...[n]) => {
|
|
1032
|
-
const s =
|
|
1033
|
+
const s = ls(ln);
|
|
1033
1034
|
if (s === void 0)
|
|
1034
1035
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1035
1036
|
return cn(s, e, ...n === void 0 ? [] : [n]);
|
|
@@ -1278,7 +1279,7 @@ const wr = new Y(
|
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
1281
|
}
|
|
1281
|
-
`),
|
|
1282
|
+
`), Er = {
|
|
1282
1283
|
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
|
|
1283
1284
|
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n servers {\n url\n description\n }\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": wr,
|
|
1284
1285
|
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
|
|
@@ -1287,8 +1288,8 @@ const wr = new Y(
|
|
|
1287
1288
|
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Or,
|
|
1288
1289
|
"\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Lr
|
|
1289
1290
|
};
|
|
1290
|
-
function
|
|
1291
|
-
return
|
|
1291
|
+
function kr(e) {
|
|
1292
|
+
return Er[e] ?? {};
|
|
1292
1293
|
}
|
|
1293
1294
|
function B({
|
|
1294
1295
|
...e
|
|
@@ -1347,7 +1348,7 @@ const Dr = {
|
|
|
1347
1348
|
option: "⌥"
|
|
1348
1349
|
}
|
|
1349
1350
|
}, Fr = (e, n) => {
|
|
1350
|
-
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l =
|
|
1351
|
+
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), c = e.split("+").pop(), l = E(n);
|
|
1351
1352
|
return G(() => {
|
|
1352
1353
|
l.current = n;
|
|
1353
1354
|
}, [n]), G(() => {
|
|
@@ -1391,7 +1392,7 @@ const Dr = {
|
|
|
1391
1392
|
)
|
|
1392
1393
|
);
|
|
1393
1394
|
dn.displayName = "Textarea";
|
|
1394
|
-
const
|
|
1395
|
+
const Ee = (e = 0) => {
|
|
1395
1396
|
if (e === 0)
|
|
1396
1397
|
return "0 B";
|
|
1397
1398
|
const n = Math.floor(Math.log(e) / Math.log(1e3));
|
|
@@ -1424,7 +1425,7 @@ const ke = (e = 0) => {
|
|
|
1424
1425
|
}
|
|
1425
1426
|
),
|
|
1426
1427
|
/* @__PURE__ */ t.jsx(
|
|
1427
|
-
|
|
1428
|
+
En,
|
|
1428
1429
|
{
|
|
1429
1430
|
className: "group-data-[state=open]:hidden shrink-0",
|
|
1430
1431
|
size: 14
|
|
@@ -1454,10 +1455,10 @@ const ke = (e = 0) => {
|
|
|
1454
1455
|
]
|
|
1455
1456
|
}
|
|
1456
1457
|
) }),
|
|
1457
|
-
/* @__PURE__ */ t.jsx(
|
|
1458
|
-
/* @__PURE__ */ t.jsx(
|
|
1459
|
-
/* @__PURE__ */ t.jsx(
|
|
1460
|
-
/* @__PURE__ */ t.jsx(
|
|
1458
|
+
/* @__PURE__ */ t.jsx(Xt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1459
|
+
/* @__PURE__ */ t.jsx(As, { children: s.mediaType }),
|
|
1460
|
+
/* @__PURE__ */ t.jsx($s, {}),
|
|
1461
|
+
/* @__PURE__ */ t.jsx(Ps, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1461
1462
|
Ae,
|
|
1462
1463
|
{
|
|
1463
1464
|
onSelect: () => n(a, s.mediaType),
|
|
@@ -1473,14 +1474,14 @@ const ke = (e = 0) => {
|
|
|
1473
1474
|
a.name
|
|
1474
1475
|
)) })
|
|
1475
1476
|
] }, s.mediaType)) })
|
|
1476
|
-
] }),
|
|
1477
|
+
] }), ke = ye(
|
|
1477
1478
|
"div",
|
|
1478
1479
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
|
|
1479
1480
|
), ge = ye(
|
|
1480
1481
|
"div",
|
|
1481
1482
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1482
1483
|
), I = ye(
|
|
1483
|
-
|
|
1484
|
+
Os,
|
|
1484
1485
|
"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
|
|
1485
1486
|
), at = ({
|
|
1486
1487
|
onClick: e,
|
|
@@ -1525,7 +1526,7 @@ function ve({
|
|
|
1525
1526
|
);
|
|
1526
1527
|
}
|
|
1527
1528
|
const _r = ({ index: e, manager: n }) => {
|
|
1528
|
-
const s =
|
|
1529
|
+
const s = E(null), a = n.getValue(e, "value");
|
|
1529
1530
|
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
1530
1531
|
/* @__PURE__ */ t.jsx(
|
|
1531
1532
|
ve,
|
|
@@ -1549,7 +1550,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1549
1550
|
"span",
|
|
1550
1551
|
{
|
|
1551
1552
|
className: "text-xs truncate",
|
|
1552
|
-
title: `${a.name} (${
|
|
1553
|
+
title: `${a.name} (${Ee(a.size)})`,
|
|
1553
1554
|
children: a.name
|
|
1554
1555
|
}
|
|
1555
1556
|
)
|
|
@@ -1562,7 +1563,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1562
1563
|
size: "icon-xs",
|
|
1563
1564
|
className: "opacity-50 hover:opacity-100 hover:brightness-95 transition-opacity",
|
|
1564
1565
|
onClick: () => n.setValue(e, "value", ""),
|
|
1565
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1566
|
+
children: /* @__PURE__ */ t.jsx(kn, { size: 13 })
|
|
1566
1567
|
}
|
|
1567
1568
|
)
|
|
1568
1569
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -1613,7 +1614,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1613
1614
|
watch: c,
|
|
1614
1615
|
setFocus: l,
|
|
1615
1616
|
register: m
|
|
1616
|
-
} = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v =
|
|
1617
|
+
} = ae(), { fields: d, append: f, remove: x } = Mt({ control: n, name: s }), h = c(s), v = E(-1), u = E(-1), y = D(
|
|
1617
1618
|
(g, C, T, A) => {
|
|
1618
1619
|
(C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
|
|
1619
1620
|
C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
|
|
@@ -1685,7 +1686,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1685
1686
|
const A = R(T);
|
|
1686
1687
|
T.active !== A && g.push(() => y(C, "active", A));
|
|
1687
1688
|
}
|
|
1688
|
-
g.length !== 0 &&
|
|
1689
|
+
g.length !== 0 && cs(() => g.forEach((C) => C()));
|
|
1689
1690
|
}, [h, R, y]);
|
|
1690
1691
|
const N = D(
|
|
1691
1692
|
(g) => {
|
|
@@ -1753,7 +1754,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1753
1754
|
"bodyMode",
|
|
1754
1755
|
"body",
|
|
1755
1756
|
"multipartFormFields"
|
|
1756
|
-
]), f =
|
|
1757
|
+
]), f = E(null), [x, h] = k(!1), v = (j) => {
|
|
1757
1758
|
s("file", j), j && s(
|
|
1758
1759
|
"headers",
|
|
1759
1760
|
i.filter(
|
|
@@ -1805,7 +1806,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1805
1806
|
]
|
|
1806
1807
|
}
|
|
1807
1808
|
) }),
|
|
1808
|
-
/* @__PURE__ */ t.jsxs(
|
|
1809
|
+
/* @__PURE__ */ t.jsxs(Xt, { className: "min-w-40", children: [
|
|
1809
1810
|
/* @__PURE__ */ t.jsxs(
|
|
1810
1811
|
Ae,
|
|
1811
1812
|
{
|
|
@@ -1924,7 +1925,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1924
1925
|
" ",
|
|
1925
1926
|
/* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
1926
1927
|
"(",
|
|
1927
|
-
|
|
1928
|
+
Ee(c.size),
|
|
1928
1929
|
")"
|
|
1929
1930
|
] })
|
|
1930
1931
|
] }),
|
|
@@ -1942,7 +1943,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1942
1943
|
]
|
|
1943
1944
|
}
|
|
1944
1945
|
),
|
|
1945
|
-
l === "multipart" && /* @__PURE__ */ t.jsx(
|
|
1946
|
+
l === "multipart" && /* @__PURE__ */ t.jsx(ke, { children: N.fields.map((j, O) => /* @__PURE__ */ t.jsx(_r, { index: O, manager: N }, j.id)) })
|
|
1946
1947
|
] })
|
|
1947
1948
|
] });
|
|
1948
1949
|
}, Lt = (e, n, s) => {
|
|
@@ -2004,10 +2005,10 @@ const Hr = ({
|
|
|
2004
2005
|
ref: c,
|
|
2005
2006
|
onSelect: l
|
|
2006
2007
|
}) => {
|
|
2007
|
-
const [m, d] =
|
|
2008
|
+
const [m, d] = k(!1), [f, x] = k(!1), h = Es((u) => u.filtered.count), v = E(null);
|
|
2008
2009
|
return /* @__PURE__ */ t.jsxs(Gr, { open: m, children: [
|
|
2009
|
-
/* @__PURE__ */ t.jsx(
|
|
2010
|
-
|
|
2010
|
+
/* @__PURE__ */ t.jsx(Ls, { children: /* @__PURE__ */ t.jsx(
|
|
2011
|
+
Rs,
|
|
2011
2012
|
{
|
|
2012
2013
|
autoComplete: "off",
|
|
2013
2014
|
ref: (u) => {
|
|
@@ -2043,8 +2044,8 @@ const Hr = ({
|
|
|
2043
2044
|
onTouchMove: (u) => {
|
|
2044
2045
|
u.stopPropagation();
|
|
2045
2046
|
},
|
|
2046
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2047
|
-
|
|
2047
|
+
children: /* @__PURE__ */ t.jsx(Is, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
|
|
2048
|
+
Ds,
|
|
2048
2049
|
{
|
|
2049
2050
|
value: u,
|
|
2050
2051
|
onSelect: (y) => {
|
|
@@ -2058,7 +2059,7 @@ const Hr = ({
|
|
|
2058
2059
|
}
|
|
2059
2060
|
)
|
|
2060
2061
|
] });
|
|
2061
|
-
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(
|
|
2062
|
+
}, Pe = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(ks, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Hr, { ...n }) }), Qr = Object.freeze([
|
|
2062
2063
|
"Accept",
|
|
2063
2064
|
"Accept-Encoding",
|
|
2064
2065
|
"Accept-Language",
|
|
@@ -2106,9 +2107,9 @@ const Hr = ({
|
|
|
2106
2107
|
/* @__PURE__ */ t.jsx(Dn, { size: 14 }),
|
|
2107
2108
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2108
2109
|
] }),
|
|
2109
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(
|
|
2110
|
-
m.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2111
|
-
/* @__PURE__ */ t.jsx(
|
|
2110
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ t.jsxs(ke, { children: [
|
|
2111
|
+
m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2112
|
+
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2112
2113
|
ge,
|
|
2113
2114
|
{
|
|
2114
2115
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
@@ -2120,7 +2121,7 @@ const Hr = ({
|
|
|
2120
2121
|
},
|
|
2121
2122
|
d.id
|
|
2122
2123
|
) }),
|
|
2123
|
-
/* @__PURE__ */ t.jsx(
|
|
2124
|
+
/* @__PURE__ */ t.jsx(St, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
|
|
2124
2125
|
] }, d.id)),
|
|
2125
2126
|
i.fields.map((d, f) => {
|
|
2126
2127
|
const x = n.find(
|
|
@@ -2141,8 +2142,8 @@ const Hr = ({
|
|
|
2141
2142
|
...i.getCheckboxProps(f)
|
|
2142
2143
|
}
|
|
2143
2144
|
),
|
|
2144
|
-
/* @__PURE__ */ t.jsxs(
|
|
2145
|
-
/* @__PURE__ */ t.jsx(
|
|
2145
|
+
/* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2146
|
+
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2146
2147
|
zn,
|
|
2147
2148
|
{
|
|
2148
2149
|
className: w(
|
|
@@ -2153,7 +2154,7 @@ const Hr = ({
|
|
|
2153
2154
|
}
|
|
2154
2155
|
) }),
|
|
2155
2156
|
/* @__PURE__ */ t.jsx(
|
|
2156
|
-
|
|
2157
|
+
St,
|
|
2157
2158
|
{
|
|
2158
2159
|
alignOffset: 10,
|
|
2159
2160
|
side: "bottom",
|
|
@@ -2206,17 +2207,17 @@ const Hr = ({
|
|
|
2206
2207
|
})
|
|
2207
2208
|
] }) }) }) })
|
|
2208
2209
|
] });
|
|
2209
|
-
}, Wr =
|
|
2210
|
+
}, Wr = zs(
|
|
2210
2211
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2211
2212
|
), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2212
|
-
|
|
2213
|
+
Kt.Root,
|
|
2213
2214
|
{
|
|
2214
2215
|
ref: s,
|
|
2215
2216
|
className: w(Wr(), e),
|
|
2216
2217
|
...n
|
|
2217
2218
|
}
|
|
2218
2219
|
));
|
|
2219
|
-
Re.displayName =
|
|
2220
|
+
Re.displayName = Kt.Root.displayName;
|
|
2220
2221
|
const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2221
2222
|
he.Root,
|
|
2222
2223
|
{
|
|
@@ -2265,17 +2266,17 @@ const hn = ({
|
|
|
2265
2266
|
)
|
|
2266
2267
|
)
|
|
2267
2268
|
}
|
|
2268
|
-
) }),
|
|
2269
|
+
) }), Xr = ({
|
|
2269
2270
|
onSubmit: e,
|
|
2270
2271
|
identities: n,
|
|
2271
2272
|
open: s,
|
|
2272
2273
|
onOpenChange: a
|
|
2273
2274
|
}) => {
|
|
2274
|
-
const [r, o] =
|
|
2275
|
+
const [r, o] = k(void 0), [i, c] = k(!1);
|
|
2275
2276
|
return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2276
2277
|
/* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
|
|
2277
2278
|
/* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
|
|
2278
|
-
/* @__PURE__ */ t.jsx(
|
|
2279
|
+
/* @__PURE__ */ t.jsx(Fs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
|
|
2279
2280
|
hn,
|
|
2280
2281
|
{
|
|
2281
2282
|
identities: n,
|
|
@@ -2308,17 +2309,17 @@ const hn = ({
|
|
|
2308
2309
|
] }) });
|
|
2309
2310
|
}, Ue = (e) => Math.abs(
|
|
2310
2311
|
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
2311
|
-
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e),
|
|
2312
|
+
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Ue(n) + Ue(s)}`)) : Ue(e), Et = (e, n = {}) => {
|
|
2312
2313
|
const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
2313
2314
|
return `${s}deg ${a}% ${r}%`;
|
|
2314
|
-
}, He = "data-linked-param",
|
|
2315
|
-
const { resolvedTheme: n } =
|
|
2315
|
+
}, He = "data-linked-param", Kr = (e) => {
|
|
2316
|
+
const { resolvedTheme: n } = hs();
|
|
2316
2317
|
return {
|
|
2317
|
-
text:
|
|
2318
|
+
text: Et(
|
|
2318
2319
|
e,
|
|
2319
2320
|
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
2320
2321
|
),
|
|
2321
|
-
background:
|
|
2322
|
+
background: Et(
|
|
2322
2323
|
e,
|
|
2323
2324
|
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2324
2325
|
)
|
|
@@ -2331,7 +2332,7 @@ const hn = ({
|
|
|
2331
2332
|
children: r,
|
|
2332
2333
|
onClick: o
|
|
2333
2334
|
}) => {
|
|
2334
|
-
const i =
|
|
2335
|
+
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Kr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, h = `hsl(${d} / 50%)`;
|
|
2335
2336
|
return G(() => {
|
|
2336
2337
|
if (!c || !i.current) return;
|
|
2337
2338
|
const v = () => {
|
|
@@ -2381,9 +2382,9 @@ const hn = ({
|
|
|
2381
2382
|
}), a = [...s].sort(
|
|
2382
2383
|
(r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
|
|
2383
2384
|
);
|
|
2384
|
-
return /* @__PURE__ */ t.jsx(
|
|
2385
|
+
return /* @__PURE__ */ t.jsx(ke, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2385
2386
|
/* @__PURE__ */ t.jsx(
|
|
2386
|
-
|
|
2387
|
+
wt,
|
|
2387
2388
|
{
|
|
2388
2389
|
control: e,
|
|
2389
2390
|
name: `pathParams.${o}.name`,
|
|
@@ -2398,7 +2399,7 @@ const hn = ({
|
|
|
2398
2399
|
}
|
|
2399
2400
|
),
|
|
2400
2401
|
/* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
|
|
2401
|
-
|
|
2402
|
+
wt,
|
|
2402
2403
|
{
|
|
2403
2404
|
control: e,
|
|
2404
2405
|
name: `pathParams.${o}.value`,
|
|
@@ -2422,7 +2423,7 @@ const hn = ({
|
|
|
2422
2423
|
/* @__PURE__ */ t.jsx(Bn, { size: 16 }),
|
|
2423
2424
|
/* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
|
|
2424
2425
|
] }),
|
|
2425
|
-
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
2426
|
+
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(ke, { children: r.fields.map((c, l) => {
|
|
2426
2427
|
const m = n.find(
|
|
2427
2428
|
(h) => h.name === a.at(l)?.name
|
|
2428
2429
|
), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
@@ -2486,7 +2487,7 @@ const hn = ({
|
|
|
2486
2487
|
onLogin: a,
|
|
2487
2488
|
onSkip: r
|
|
2488
2489
|
}) => {
|
|
2489
|
-
const [o, i] =
|
|
2490
|
+
const [o, i] = k(!1), c = () => {
|
|
2490
2491
|
r?.(o), n(!1);
|
|
2491
2492
|
};
|
|
2492
2493
|
return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
@@ -2598,14 +2599,14 @@ const hn = ({
|
|
|
2598
2599
|
return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2599
2600
|
}
|
|
2600
2601
|
}, oa = () => {
|
|
2601
|
-
const e =
|
|
2602
|
+
const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
|
|
2602
2603
|
if (n.current) {
|
|
2603
2604
|
const o = Date.now() - s.current;
|
|
2604
2605
|
n.current.nodeValue = o.toFixed();
|
|
2605
2606
|
}
|
|
2606
2607
|
a.current = requestAnimationFrame(r);
|
|
2607
2608
|
}, []);
|
|
2608
|
-
return
|
|
2609
|
+
return ds(() => {
|
|
2609
2610
|
const o = e.current;
|
|
2610
2611
|
if (!o) return;
|
|
2611
2612
|
const i = document.createTextNode("0");
|
|
@@ -2643,7 +2644,7 @@ const hn = ({
|
|
|
2643
2644
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2644
2645
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2645
2646
|
" ",
|
|
2646
|
-
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2647
|
+
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Ee(s) : "- B" })
|
|
2647
2648
|
] }),
|
|
2648
2649
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2649
2650
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
@@ -2722,7 +2723,7 @@ const da = (e) => Object.entries({
|
|
|
2722
2723
|
"div",
|
|
2723
2724
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2724
2725
|
), de = ye("div", "py-1 break-words"), we = ({ value: e, header: n }) => {
|
|
2725
|
-
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] =
|
|
2726
|
+
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
|
|
2726
2727
|
return /* @__PURE__ */ t.jsx(
|
|
2727
2728
|
de,
|
|
2728
2729
|
{
|
|
@@ -2748,9 +2749,9 @@ const da = (e) => Object.entries({
|
|
|
2748
2749
|
fileName: o,
|
|
2749
2750
|
blob: i
|
|
2750
2751
|
}) => {
|
|
2751
|
-
const c = ua(n), l = ma(e), m = l || e, [d, f] =
|
|
2752
|
+
const c = ua(n), l = ma(e), m = l || e, [d, f] = k(
|
|
2752
2753
|
l ? "formatted" : "raw"
|
|
2753
|
-
), x =
|
|
2754
|
+
), x = qs({
|
|
2754
2755
|
queryKey: ["types", m],
|
|
2755
2756
|
queryFn: async () => ca(JSON.parse(m)),
|
|
2756
2757
|
enabled: d === "types" && !r
|
|
@@ -2872,13 +2873,13 @@ const da = (e) => Object.entries({
|
|
|
2872
2873
|
"Download ",
|
|
2873
2874
|
o || "file",
|
|
2874
2875
|
" (",
|
|
2875
|
-
|
|
2876
|
+
Ee(a),
|
|
2876
2877
|
")"
|
|
2877
2878
|
]
|
|
2878
2879
|
}
|
|
2879
2880
|
)
|
|
2880
2881
|
] }) }) : /* @__PURE__ */ t.jsx(
|
|
2881
|
-
|
|
2882
|
+
xs,
|
|
2882
2883
|
{
|
|
2883
2884
|
className: "text-xs flex-1",
|
|
2884
2885
|
embedded: !0,
|
|
@@ -2907,10 +2908,10 @@ const da = (e) => Object.entries({
|
|
|
2907
2908
|
progress: o
|
|
2908
2909
|
}
|
|
2909
2910
|
),
|
|
2910
|
-
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(
|
|
2911
|
+
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(Vs, { children: [
|
|
2911
2912
|
/* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2912
|
-
/* @__PURE__ */ t.jsx(
|
|
2913
|
-
/* @__PURE__ */ t.jsx(
|
|
2913
|
+
/* @__PURE__ */ t.jsx(Bs, { children: "Request failed" }),
|
|
2914
|
+
/* @__PURE__ */ t.jsx(_s, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2914
2915
|
] }) }) : e.data ? /* @__PURE__ */ t.jsx(
|
|
2915
2916
|
ha,
|
|
2916
2917
|
{
|
|
@@ -2923,7 +2924,7 @@ const da = (e) => Object.entries({
|
|
|
2923
2924
|
blob: e.data.blob
|
|
2924
2925
|
}
|
|
2925
2926
|
) : e.isPending ? /* @__PURE__ */ t.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2926
|
-
/* @__PURE__ */ t.jsx(
|
|
2927
|
+
/* @__PURE__ */ t.jsx(ys, {}),
|
|
2927
2928
|
/* @__PURE__ */ t.jsxs(
|
|
2928
2929
|
"div",
|
|
2929
2930
|
{
|
|
@@ -2971,7 +2972,7 @@ const da = (e) => Object.entries({
|
|
|
2971
2972
|
}
|
|
2972
2973
|
)
|
|
2973
2974
|
);
|
|
2974
|
-
|
|
2975
|
+
as(gn);
|
|
2975
2976
|
const me = "__none", ga = ({
|
|
2976
2977
|
server: e,
|
|
2977
2978
|
servers: n = [],
|
|
@@ -2988,7 +2989,7 @@ const me = "__none", ga = ({
|
|
|
2988
2989
|
}) => {
|
|
2989
2990
|
const { selectedServer: x, setSelectedServer: h } = Vr(
|
|
2990
2991
|
n.map((p) => ({ url: p }))
|
|
2991
|
-
), [v, u] =
|
|
2992
|
+
), [v, u] = k(!1), y = os(), { setRememberedIdentity: S, getRememberedIdentity: R } = ta(), [, N] = us(), { skipLogin: j, setSkipLogin: O } = gn(), [Q, be] = k(!1), [Ie, ee] = k(!1), g = E(void 0), C = Ts(S), T = E(null), { label: A } = Fr("meta+enter", () => {
|
|
2992
2993
|
T.current?.requestSubmit();
|
|
2993
2994
|
}), M = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], L = [...i].sort(
|
|
2994
2995
|
(p, se) => M.indexOf(p.name) - M.indexOf(se.name)
|
|
@@ -3038,7 +3039,7 @@ const me = "__none", ga = ({
|
|
|
3038
3039
|
break;
|
|
3039
3040
|
case "multipart": {
|
|
3040
3041
|
const $ = new FormData();
|
|
3041
|
-
p.multipartFormFields?.filter((
|
|
3042
|
+
p.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => $.append(X.name, X.value)), Ce = $, Ve.delete("Content-Type");
|
|
3042
3043
|
break;
|
|
3043
3044
|
}
|
|
3044
3045
|
default:
|
|
@@ -3067,7 +3068,7 @@ const me = "__none", ga = ({
|
|
|
3067
3068
|
signal: g.current.signal
|
|
3068
3069
|
});
|
|
3069
3070
|
clearTimeout(Be), ee(!1);
|
|
3070
|
-
const
|
|
3071
|
+
const X = performance.now() - se, On = new URL(W.url), mt = Array.from($.headers.entries()), pt = $.headers.get("content-type") || "", ht = Mr(pt);
|
|
3071
3072
|
let Ne = "", ft, gt;
|
|
3072
3073
|
ht ? (ft = await $.blob(), gt = Ur(mt, W.url), Ne = `Binary content (${pt})`) : Ne = await $.text();
|
|
3073
3074
|
const xt = $.headers.get("content-length");
|
|
@@ -3095,7 +3096,7 @@ const me = "__none", ga = ({
|
|
|
3095
3096
|
headers: mt,
|
|
3096
3097
|
size: xt ? Number(xt) : Ne.length,
|
|
3097
3098
|
body: Ne,
|
|
3098
|
-
time:
|
|
3099
|
+
time: X,
|
|
3099
3100
|
isBinary: ht,
|
|
3100
3101
|
fileName: gt,
|
|
3101
3102
|
blob: ft,
|
|
@@ -3116,12 +3117,12 @@ const me = "__none", ga = ({
|
|
|
3116
3117
|
) : $;
|
|
3117
3118
|
}
|
|
3118
3119
|
}
|
|
3119
|
-
}), dt = J.isPending, [Cn, Nn] =
|
|
3120
|
+
}), dt = J.isPending, [Cn, Nn] = k(!1);
|
|
3120
3121
|
G(() => {
|
|
3121
3122
|
const p = setTimeout(() => Nn(dt), 100);
|
|
3122
3123
|
return () => clearTimeout(p);
|
|
3123
3124
|
}, [dt]);
|
|
3124
|
-
const { isFinished: Sn, progress: wn } =
|
|
3125
|
+
const { isFinished: Sn, progress: wn } = vs({ isAnimating: Cn });
|
|
3125
3126
|
G(() => () => {
|
|
3126
3127
|
g.current?.abort();
|
|
3127
3128
|
}, []);
|
|
@@ -3140,7 +3141,7 @@ const me = "__none", ga = ({
|
|
|
3140
3141
|
}
|
|
3141
3142
|
) }), An = m && !j && !Q, $n = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
3142
3143
|
a.toUpperCase()
|
|
3143
|
-
), [ut, Pn] =
|
|
3144
|
+
), [ut, Pn] = ws();
|
|
3144
3145
|
return /* @__PURE__ */ t.jsx(
|
|
3145
3146
|
Ns,
|
|
3146
3147
|
{
|
|
@@ -3150,7 +3151,7 @@ const me = "__none", ga = ({
|
|
|
3150
3151
|
watch: ct,
|
|
3151
3152
|
setValue: Fe,
|
|
3152
3153
|
...ze,
|
|
3153
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3154
|
+
children: /* @__PURE__ */ t.jsx(bs, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
|
|
3154
3155
|
"form",
|
|
3155
3156
|
{
|
|
3156
3157
|
ref: T,
|
|
@@ -3163,7 +3164,7 @@ const me = "__none", ga = ({
|
|
|
3163
3164
|
className: "relative",
|
|
3164
3165
|
children: [
|
|
3165
3166
|
/* @__PURE__ */ t.jsx(
|
|
3166
|
-
|
|
3167
|
+
Xr,
|
|
3167
3168
|
{
|
|
3168
3169
|
identities: y.data ?? [],
|
|
3169
3170
|
open: v,
|
|
@@ -3237,7 +3238,7 @@ const me = "__none", ga = ({
|
|
|
3237
3238
|
/* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
3238
3239
|
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
3239
3240
|
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
3240
|
-
/* @__PURE__ */ t.jsx(
|
|
3241
|
+
/* @__PURE__ */ t.jsx(Xn, { size: 16 }),
|
|
3241
3242
|
/* @__PURE__ */ t.jsx(H, { children: "Authentication" })
|
|
3242
3243
|
] }),
|
|
3243
3244
|
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
@@ -3251,7 +3252,7 @@ const me = "__none", ga = ({
|
|
|
3251
3252
|
] }),
|
|
3252
3253
|
L.length > 0 && /* @__PURE__ */ t.jsxs(B, { defaultOpen: !0, children: [
|
|
3253
3254
|
/* @__PURE__ */ t.jsxs(Z, { children: [
|
|
3254
|
-
/* @__PURE__ */ t.jsx(
|
|
3255
|
+
/* @__PURE__ */ t.jsx(Kn, { size: 16 }),
|
|
3255
3256
|
/* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
|
|
3256
3257
|
] }),
|
|
3257
3258
|
/* @__PURE__ */ t.jsx(_, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Zr, { url: s, control: te }) })
|
|
@@ -3296,9 +3297,9 @@ const me = "__none", ga = ({
|
|
|
3296
3297
|
}
|
|
3297
3298
|
);
|
|
3298
3299
|
}, xa = (e) => {
|
|
3299
|
-
const [n, s] =
|
|
3300
|
+
const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = fs();
|
|
3300
3301
|
return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
|
|
3301
|
-
/* @__PURE__ */ t.jsx(
|
|
3302
|
+
/* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(q, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
|
|
3302
3303
|
Zn,
|
|
3303
3304
|
{
|
|
3304
3305
|
className: "fill-muted-foreground group-hover:fill-foreground transition",
|
|
@@ -3313,7 +3314,7 @@ const me = "__none", ga = ({
|
|
|
3313
3314
|
"aria-describedby": void 0,
|
|
3314
3315
|
showCloseButton: !0,
|
|
3315
3316
|
children: [
|
|
3316
|
-
/* @__PURE__ */ t.jsx(
|
|
3317
|
+
/* @__PURE__ */ t.jsx(ps, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
|
|
3317
3318
|
n && /* @__PURE__ */ t.jsx(
|
|
3318
3319
|
ga,
|
|
3319
3320
|
{
|
|
@@ -3335,7 +3336,7 @@ const me = "__none", ga = ({
|
|
|
3335
3336
|
patch: "purple",
|
|
3336
3337
|
options: "gray",
|
|
3337
3338
|
head: "gray"
|
|
3338
|
-
},
|
|
3339
|
+
}, kt = ({
|
|
3339
3340
|
label: e,
|
|
3340
3341
|
path: n,
|
|
3341
3342
|
operations: s,
|
|
@@ -3365,15 +3366,15 @@ const me = "__none", ga = ({
|
|
|
3365
3366
|
}))
|
|
3366
3367
|
}), xn = Vt(
|
|
3367
3368
|
void 0
|
|
3368
|
-
),
|
|
3369
|
-
const e =
|
|
3369
|
+
), eo = xn.Provider, va = () => {
|
|
3370
|
+
const e = ms(xn);
|
|
3370
3371
|
if (!e)
|
|
3371
3372
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3372
3373
|
return e.config;
|
|
3373
3374
|
}, Qe = (e) => ({
|
|
3374
3375
|
path: e.routePath,
|
|
3375
3376
|
async lazy() {
|
|
3376
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3377
|
+
const { OasProvider: n } = await import("./OasProvider-B2KxIBsI.js");
|
|
3377
3378
|
return {
|
|
3378
3379
|
element: /* @__PURE__ */ t.jsx(
|
|
3379
3380
|
n,
|
|
@@ -3394,7 +3395,7 @@ const me = "__none", ga = ({
|
|
|
3394
3395
|
}) => ({
|
|
3395
3396
|
path: e,
|
|
3396
3397
|
async lazy() {
|
|
3397
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3398
|
+
const { OperationList: a } = await import("./OperationList-C2tAfThO.js");
|
|
3398
3399
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3399
3400
|
}
|
|
3400
3401
|
}), ba = ({
|
|
@@ -3403,7 +3404,7 @@ const me = "__none", ga = ({
|
|
|
3403
3404
|
}) => {
|
|
3404
3405
|
const { type: s, input: a } = va(), { tag: r } = ts(), o = ns(), i = Sr(bn, { type: s, input: a }), {
|
|
3405
3406
|
data: { schema: c }
|
|
3406
|
-
} =
|
|
3407
|
+
} = Ms(i), l = c.tags.at(0);
|
|
3407
3408
|
return !r && l?.slug ? /* @__PURE__ */ t.jsx(
|
|
3408
3409
|
ss,
|
|
3409
3410
|
{
|
|
@@ -3416,7 +3417,7 @@ const me = "__none", ga = ({
|
|
|
3416
3417
|
}, Rt = ({ path: e }) => ({
|
|
3417
3418
|
path: e,
|
|
3418
3419
|
async lazy() {
|
|
3419
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3420
|
+
const { OperationList: n } = await import("./OperationList-C2tAfThO.js");
|
|
3420
3421
|
return {
|
|
3421
3422
|
element: /* @__PURE__ */ t.jsx(
|
|
3422
3423
|
ba,
|
|
@@ -3427,7 +3428,7 @@ const me = "__none", ga = ({
|
|
|
3427
3428
|
)
|
|
3428
3429
|
};
|
|
3429
3430
|
}
|
|
3430
|
-
}),
|
|
3431
|
+
}), Ke = (e) => [
|
|
3431
3432
|
// Category without tagged operations
|
|
3432
3433
|
yn({
|
|
3433
3434
|
path: V(e, lt),
|
|
@@ -3437,7 +3438,7 @@ const me = "__none", ga = ({
|
|
|
3437
3438
|
{
|
|
3438
3439
|
path: V(e, "~schemas"),
|
|
3439
3440
|
lazy: async () => {
|
|
3440
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3441
|
+
const { SchemaList: n } = await import("./SchemaList-Ep8DleP_.js");
|
|
3441
3442
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3442
3443
|
}
|
|
3443
3444
|
}
|
|
@@ -3453,12 +3454,15 @@ const me = "__none", ga = ({
|
|
|
3453
3454
|
tag: a
|
|
3454
3455
|
})
|
|
3455
3456
|
),
|
|
3456
|
-
...
|
|
3457
|
+
...Ke(e)
|
|
3457
3458
|
];
|
|
3458
|
-
}, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {} } : {
|
|
3459
|
+
}, vn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
|
|
3459
3460
|
versions: e.input.map((n) => n.path),
|
|
3460
3461
|
labels: Object.fromEntries(
|
|
3461
3462
|
e.input.map((n) => [n.path, n.label ?? n.path])
|
|
3463
|
+
),
|
|
3464
|
+
downloadUrls: Object.fromEntries(
|
|
3465
|
+
e.input.map((n) => [n.path, n.downloadUrl])
|
|
3462
3466
|
)
|
|
3463
3467
|
}, Ca = ({
|
|
3464
3468
|
basePath: e,
|
|
@@ -3484,7 +3488,7 @@ const me = "__none", ga = ({
|
|
|
3484
3488
|
routePath: l,
|
|
3485
3489
|
routes: [
|
|
3486
3490
|
Rt({ path: `${l}/:tag?` }),
|
|
3487
|
-
...
|
|
3491
|
+
...Ke(l)
|
|
3488
3492
|
],
|
|
3489
3493
|
client: s,
|
|
3490
3494
|
config: n
|
|
@@ -3495,13 +3499,13 @@ const me = "__none", ga = ({
|
|
|
3495
3499
|
routePath: e,
|
|
3496
3500
|
routes: [
|
|
3497
3501
|
Rt({ path: `${e}/:tag?` }),
|
|
3498
|
-
...
|
|
3502
|
+
...Ke(e)
|
|
3499
3503
|
],
|
|
3500
3504
|
client: s,
|
|
3501
3505
|
config: n
|
|
3502
3506
|
})
|
|
3503
3507
|
];
|
|
3504
|
-
}, bn =
|
|
3508
|
+
}, bn = kr(`
|
|
3505
3509
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3506
3510
|
schema(input: $input, type: $type) {
|
|
3507
3511
|
extensions
|
|
@@ -3524,7 +3528,7 @@ const me = "__none", ga = ({
|
|
|
3524
3528
|
}
|
|
3525
3529
|
}
|
|
3526
3530
|
}
|
|
3527
|
-
`), lt = "~endpoints",
|
|
3531
|
+
`), lt = "~endpoints", to = (e) => {
|
|
3528
3532
|
const n = V(e.path), s = new Gs(e);
|
|
3529
3533
|
return {
|
|
3530
3534
|
getHead: () => {
|
|
@@ -3585,7 +3589,7 @@ const me = "__none", ga = ({
|
|
|
3585
3589
|
const j = V(n, i, N.slug), O = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3586
3590
|
return [
|
|
3587
3591
|
N.name,
|
|
3588
|
-
|
|
3592
|
+
kt({
|
|
3589
3593
|
label: N.extensions?.["x-displayName"] ?? N.name,
|
|
3590
3594
|
path: j,
|
|
3591
3595
|
operations: N.operations,
|
|
@@ -3618,7 +3622,7 @@ const me = "__none", ga = ({
|
|
|
3618
3622
|
(N) => !N.name
|
|
3619
3623
|
)?.operations;
|
|
3620
3624
|
return R && R.length > 0 && S.push(
|
|
3621
|
-
|
|
3625
|
+
kt({
|
|
3622
3626
|
label: S.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3623
3627
|
path: V(n, i, lt),
|
|
3624
3628
|
operations: R,
|
|
@@ -3638,23 +3642,23 @@ const me = "__none", ga = ({
|
|
|
3638
3642
|
};
|
|
3639
3643
|
export {
|
|
3640
3644
|
B as C,
|
|
3641
|
-
|
|
3645
|
+
Ya as G,
|
|
3642
3646
|
sr as L,
|
|
3643
|
-
|
|
3647
|
+
eo as O,
|
|
3644
3648
|
xa as P,
|
|
3645
|
-
|
|
3649
|
+
Ks as Q,
|
|
3646
3650
|
on as S,
|
|
3647
3651
|
b as T,
|
|
3648
3652
|
lt as U,
|
|
3649
3653
|
Sr as a,
|
|
3650
3654
|
ce as b,
|
|
3651
3655
|
_ as c,
|
|
3652
|
-
|
|
3656
|
+
kr as d,
|
|
3653
3657
|
Vr as e,
|
|
3654
3658
|
fn as f,
|
|
3655
3659
|
vn as g,
|
|
3656
3660
|
na as h,
|
|
3657
|
-
|
|
3661
|
+
Za as i,
|
|
3658
3662
|
qe as j,
|
|
3659
3663
|
an as k,
|
|
3660
3664
|
rt as l,
|
|
@@ -3671,6 +3675,6 @@ export {
|
|
|
3671
3675
|
rr as w,
|
|
3672
3676
|
Qs as x,
|
|
3673
3677
|
bn as y,
|
|
3674
|
-
|
|
3678
|
+
to as z
|
|
3675
3679
|
};
|
|
3676
|
-
//# sourceMappingURL=index-
|
|
3680
|
+
//# sourceMappingURL=index-I3kmZ7tG.js.map
|