zudoku 0.0.0-feat-openapi-docs-redesign.dab3fc6a → 0.0.0-feat-navigation-at-property.z8cd07fa5
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/app/main.js +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.js +1 -1
- package/dist/cli/common/version-check.js +12 -3
- package/dist/cli/common/version-check.js.map +1 -1
- package/dist/config/create-plugin.d.ts +2 -0
- package/dist/config/create-plugin.js +55 -0
- package/dist/config/create-plugin.js.map +1 -0
- package/dist/config/loader.js +3 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.js +18 -3
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +133 -45
- package/dist/config/validators/InputNavigationSchema.js +30 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.d.ts +18 -4
- package/dist/config/validators/NavigationSchema.js +15 -5
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +104 -14
- package/dist/config/validators/validate.js +15 -4
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +43 -0
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +68 -32
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -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 +17 -8
- 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/Bootstrap.js +1 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Mermaid.d.ts +7 -0
- package/dist/lib/components/Mermaid.js +42 -0
- package/dist/lib/components/Mermaid.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +3 -2
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/PagefindSearchMeta.d.ts +8 -0
- package/dist/lib/components/PagefindSearchMeta.js +7 -0
- package/dist/lib/components/PagefindSearchMeta.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/Slot.test.js +1 -1
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -1
- package/dist/lib/components/TopNavigation.js +8 -3
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +4 -1
- package/dist/lib/components/Zudoku.js +5 -11
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +9 -4
- package/dist/lib/components/context/ZudokuContext.js +26 -8
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +1 -1
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/components/context/ZudokuReactContext.d.ts +11 -0
- package/dist/lib/components/context/ZudokuReactContext.js +4 -0
- package/dist/lib/components/context/ZudokuReactContext.js.map +1 -0
- package/dist/lib/components/index.d.ts +18 -69
- package/dist/lib/components/index.js +19 -32
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.js +4 -3
- package/dist/lib/components/navigation/Navigation.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +8 -0
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationFilterContext.d.ts +8 -0
- package/dist/lib/components/navigation/NavigationFilterContext.js +12 -0
- package/dist/lib/components/navigation/NavigationFilterContext.js.map +1 -0
- package/dist/lib/components/navigation/NavigationFilterInput.d.ts +3 -0
- package/dist/lib/components/navigation/NavigationFilterInput.js +9 -0
- package/dist/lib/components/navigation/NavigationFilterInput.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.js +13 -3
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
- package/dist/lib/components/navigation/utils.d.ts +6 -1
- package/dist/lib/components/navigation/utils.js +26 -2
- package/dist/lib/components/navigation/utils.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/ZudokuContext.d.ts +2 -1
- package/dist/lib/core/ZudokuContext.js +3 -1
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/__internal.d.ts +1 -0
- package/dist/lib/core/__internal.js +2 -0
- package/dist/lib/core/__internal.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +18 -4
- 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 +4 -0
- package/dist/lib/core/transform-config.js +42 -0
- package/dist/lib/core/transform-config.js.map +1 -0
- package/dist/lib/core/transform-config.test.d.ts +1 -0
- package/dist/lib/core/transform-config.test.js +83 -0
- package/dist/lib/core/transform-config.test.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.js +1 -2
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- 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 +7 -28
- package/dist/lib/hooks/index.js +7 -15
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +1 -1
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/navigation/pathMatcher.d.ts +8 -0
- package/dist/lib/navigation/pathMatcher.js +62 -0
- package/dist/lib/navigation/pathMatcher.js.map +1 -0
- package/dist/lib/navigation/pathMatcher.test.d.ts +1 -0
- package/dist/lib/navigation/pathMatcher.test.js +115 -0
- package/dist/lib/navigation/pathMatcher.test.js.map +1 -0
- package/dist/lib/navigation/positionItems.d.ts +10 -0
- package/dist/lib/navigation/positionItems.js +54 -0
- package/dist/lib/navigation/positionItems.js.map +1 -0
- package/dist/lib/navigation/positionItems.test.d.ts +1 -0
- package/dist/lib/navigation/positionItems.test.js +229 -0
- package/dist/lib/navigation/positionItems.test.js.map +1 -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/oas/parser/index.d.ts +1 -0
- package/dist/lib/oas/parser/index.js +14 -5
- package/dist/lib/oas/parser/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/DownloadSchemaButton.d.ts +3 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js +47 -0
- package/dist/lib/plugins/openapi/DownloadSchemaButton.js.map +1 -0
- package/dist/lib/plugins/openapi/Endpoint.js +3 -6
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +26 -13
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +20 -10
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.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/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -3
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.js +2 -1
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +12 -3
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +11 -5
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +19 -13
- package/dist/lib/plugins/openapi/playground/Playground.js +8 -4
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js +3 -0
- package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js +20 -0
- package/dist/lib/plugins/openapi/playground/result-panel/AudioPlayer.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +7 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +16 -7
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -2
- 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 +9 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +30 -2
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/IndexingDialog.d.ts +3 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js +64 -0
- package/dist/lib/plugins/search-pagefind/IndexingDialog.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +22 -5
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +5 -4
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/shiki.d.ts +1 -1
- package/dist/lib/shiki.js +18 -12
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +3 -2
- package/dist/lib/ui/Alert.js +9 -5
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +10 -9
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/ButtonGroup.d.ts +11 -0
- package/dist/lib/ui/ButtonGroup.js +28 -0
- package/dist/lib/ui/ButtonGroup.js.map +1 -0
- package/dist/lib/ui/Command.d.ts +3 -3
- package/dist/lib/ui/Command.js +2 -2
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/DropdownMenu.d.ts +21 -23
- package/dist/lib/ui/DropdownMenu.js +47 -32
- package/dist/lib/ui/DropdownMenu.js.map +1 -1
- package/dist/lib/ui/InputGroup.d.ts +16 -0
- package/dist/lib/ui/InputGroup.js +65 -0
- package/dist/lib/ui/InputGroup.js.map +1 -0
- package/dist/lib/ui/Kbd.d.ts +3 -0
- package/dist/lib/ui/Kbd.js +10 -0
- package/dist/lib/ui/Kbd.js.map +1 -0
- package/dist/lib/ui/Secret.js +2 -2
- package/dist/lib/ui/Secret.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -0
- package/dist/lib/util/MdxComponents.js +2 -0
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +0 -2
- package/dist/lib/util/flattenAllOf.js +0 -23
- package/dist/lib/util/flattenAllOf.js.map +1 -1
- package/dist/lib/util/flattenAllOf.test.js +69 -13
- package/dist/lib/util/flattenAllOf.test.js.map +1 -1
- package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
- package/dist/lib/util/flattenAllOfProcessor.js +48 -0
- package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
- 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/lib/util/readFrontmatter.d.ts +6 -0
- package/dist/lib/util/readFrontmatter.js +13 -0
- package/dist/lib/util/readFrontmatter.js.map +1 -0
- package/dist/vite/api/SchemaManager.d.ts +17 -1
- package/dist/vite/api/SchemaManager.js +52 -11
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +111 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/build.js +91 -73
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +16 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +25 -0
- package/dist/vite/dev-server.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-inject-filepath.js +5 -1
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.js +57 -3
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +4 -3
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/pagefind-dev-index.d.ts +16 -0
- package/dist/vite/pagefind-dev-index.js +68 -0
- package/dist/vite/pagefind-dev-index.js.map +1 -0
- 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 +44 -4
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config.js +16 -4
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-docs.js +9 -7
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +3 -5
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +8 -7
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/dist/vite/plugin-theme.js +2 -1
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/prerender/prerender.js +4 -20
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/utils.d.ts +2 -0
- package/dist/vite/prerender/utils.js +30 -0
- package/dist/vite/prerender/utils.js.map +1 -0
- package/dist/vite/prerender/worker.js +6 -1
- 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-B0CXL1Lq.js +25 -0
- package/lib/ActionButton-B0CXL1Lq.js.map +1 -0
- package/lib/Button-GUVe7pmt.js +54 -0
- package/lib/Button-GUVe7pmt.js.map +1 -0
- 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-DoZ7fHHk.js +73 -0
- package/lib/ClaudeLogo-DoZ7fHHk.js.map +1 -0
- package/lib/{Command-CUcrW3qs.js → Command-N6VujV30.js} +26 -26
- package/lib/Command-N6VujV30.js.map +1 -0
- 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-DN0jNrjj.js +104 -0
- package/lib/DropdownMenu-DN0jNrjj.js.map +1 -0
- package/lib/Frame-DKlOmSkU.js +205 -0
- package/lib/Frame-DKlOmSkU.js.map +1 -0
- package/lib/HydrationBoundary-CJu4vUlG.js +601 -0
- package/lib/HydrationBoundary-CJu4vUlG.js.map +1 -0
- package/lib/IndexingDialog-D0YdGfbn.js +100 -0
- package/lib/IndexingDialog-D0YdGfbn.js.map +1 -0
- package/lib/Input-Cx-GeKoF.js +22 -0
- package/lib/Input-Cx-GeKoF.js.map +1 -0
- package/lib/MdxPage-Bc_5OsQ5.js +210 -0
- package/lib/MdxPage-Bc_5OsQ5.js.map +1 -0
- package/lib/Mermaid-Chx5BPHn.js +104 -0
- package/lib/Mermaid-Chx5BPHn.js.map +1 -0
- package/lib/{OAuthErrorPage-DnKnq4xK.js → OAuthErrorPage-D-VcZ5cO.js} +26 -23
- package/lib/OAuthErrorPage-D-VcZ5cO.js.map +1 -0
- package/lib/OasProvider-CZqLHoRo.js +48 -0
- package/lib/OasProvider-CZqLHoRo.js.map +1 -0
- package/lib/{OperationList-D8EDc9v7.js → OperationList-BmV1XvEY.js} +2136 -2002
- package/lib/OperationList-BmV1XvEY.js.map +1 -0
- package/lib/RouteGuard-Dns7HD7C.js +77 -0
- package/lib/RouteGuard-Dns7HD7C.js.map +1 -0
- package/lib/{SchemaList-E6lF7dID.js → SchemaList-D23IyrX5.js} +28 -27
- package/lib/SchemaList-D23IyrX5.js.map +1 -0
- package/lib/SchemaView-DVbiGPo3.js +438 -0
- package/lib/SchemaView-DVbiGPo3.js.map +1 -0
- package/lib/Secret-CyhXSA8i.js +263 -0
- package/lib/Secret-CyhXSA8i.js.map +1 -0
- package/lib/SignUp-DfEe1w5X.js +55 -0
- package/lib/SignUp-DfEe1w5X.js.map +1 -0
- package/lib/{SyntaxHighlight-C19vH0V_.js → SyntaxHighlight-N2RffYNz.js} +1469 -1411
- package/lib/SyntaxHighlight-N2RffYNz.js.map +1 -0
- package/lib/{Toc-DbWS75JZ.js → Toc-Cpo_HSYx.js} +3 -3
- package/lib/{Toc-DbWS75JZ.js.map → Toc-Cpo_HSYx.js.map} +1 -1
- package/lib/{ErrorAlert-_1Zmhr68.js → Zudoku-GbutmWzP.js} +5663 -4482
- package/lib/Zudoku-GbutmWzP.js.map +1 -0
- package/lib/ZudokuContext-LPkD2SQs.js +250 -0
- package/lib/ZudokuContext-LPkD2SQs.js.map +1 -0
- package/lib/ZudokuReactContext-DGJAP1sN.js +222 -0
- package/lib/ZudokuReactContext-DGJAP1sN.js.map +1 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
- package/lib/{circular-BoYo7au5.js → circular-DfSpMuY7.js} +6429 -6019
- package/lib/circular-DfSpMuY7.js.map +1 -0
- package/lib/{cn-dYga0KKN.js → cn-5-Gd1Dss.js} +531 -498
- package/lib/cn-5-Gd1Dss.js.map +1 -0
- package/lib/{createServer-B_BZ7xX8.js → createServer-4kaAMuIM.js} +2790 -2737
- package/lib/createServer-4kaAMuIM.js.map +1 -0
- package/lib/createVariantComponent-Dc0vtOvr.js +18 -0
- package/lib/createVariantComponent-Dc0vtOvr.js.map +1 -0
- package/lib/{errors-CD873hrG.js → errors-CtZTDEB6.js} +3 -3
- package/lib/{errors-CD873hrG.js.map → errors-CtZTDEB6.js.map} +1 -1
- package/lib/firebase-D286uF4e.js +7615 -0
- package/lib/firebase-D286uF4e.js.map +1 -0
- package/lib/hook-DyEn6D2Q.js +53 -0
- package/lib/hook-DyEn6D2Q.js.map +1 -0
- package/lib/{index-HNVs5cgX.js → index-B7bvsQHg.js} +853 -802
- package/lib/index-B7bvsQHg.js.map +1 -0
- package/lib/{index-BK0jKRrX.js → index-CVumYRba.js} +2 -2
- package/lib/{index-BK0jKRrX.js.map → index-CVumYRba.js.map} +1 -1
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DAWHN3cH.js +86 -0
- package/lib/index-DAWHN3cH.js.map +1 -0
- package/lib/index.esm-BYObtETB.js.map +1 -1
- package/lib/index.esm-BkpWrvLZ.js +34 -0
- package/lib/index.esm-BkpWrvLZ.js.map +1 -0
- package/lib/{index.esm-BnYHxCYC.js → index.esm-Ca5zvoff.js} +2 -2
- package/lib/{index.esm-BnYHxCYC.js.map → index.esm-Ca5zvoff.js.map} +1 -1
- package/lib/{invariant-Bm-FVUQE.js → invariant-B_t_F2s_.js} +4 -4
- package/lib/invariant-B_t_F2s_.js.map +1 -0
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -1
- package/lib/{mutation-BSU0xu4m.js → mutation-B7eFBLZY.js} +70 -44
- package/lib/mutation-B7eFBLZY.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +32 -20
- package/lib/ui/Alert.js.map +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 +27 -25
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/ButtonGroup.js +77 -0
- package/lib/ui/ButtonGroup.js.map +1 -0
- 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 +5 -5
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +3 -3
- package/lib/ui/DropdownMenu.js +227 -140
- package/lib/ui/DropdownMenu.js.map +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/InputGroup.js +155 -0
- package/lib/ui/InputGroup.js.map +1 -0
- package/lib/ui/Item.js +1 -1
- package/lib/ui/Kbd.js +32 -0
- package/lib/ui/Kbd.js.map +1 -0
- 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 +3 -3
- package/lib/ui/Secret.js.map +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/useExposedProps-CzTDfXfq.js +30 -0
- package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
- package/lib/useMutation-CErliDZ9.js +119 -0
- package/lib/useMutation-CErliDZ9.js.map +1 -0
- package/lib/useQuery-ht7aWJ3S.js +1212 -0
- package/lib/useQuery-ht7aWJ3S.js.map +1 -0
- package/lib/useSuspenseQuery-DQH4Bmc2.js +18 -0
- package/lib/useSuspenseQuery-DQH4Bmc2.js.map +1 -0
- package/lib/zudoku.__internal.js +1540 -1553
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +19 -18
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +14 -13
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +52 -75
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-firebase.js +10 -0
- package/lib/zudoku.auth-firebase.js.map +1 -0
- package/lib/zudoku.auth-openid.js +8 -7
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +31 -40
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +29 -25
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +20 -20
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +11 -0
- package/lib/zudoku.mermaid.js.map +1 -0
- package/lib/zudoku.plugin-api-catalog.js +42 -37
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +617 -550
- 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 +186 -226
- 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 +441 -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 +63 -37
- package/src/app/defaultTheme.css +4 -0
- package/src/app/main.css +2 -0
- package/src/app/main.tsx +1 -1
- package/src/app/sentry.ts +1 -1
- 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 +21 -10
- 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/Bootstrap.tsx +1 -4
- package/src/lib/components/Mermaid.tsx +68 -0
- package/src/lib/components/MobileTopNavigation.tsx +16 -9
- package/src/lib/components/PagefindSearchMeta.tsx +14 -0
- package/src/lib/components/Pagination.tsx +4 -5
- package/src/lib/components/Slot.test.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +26 -8
- package/src/lib/components/Zudoku.tsx +22 -21
- package/src/lib/components/context/ZudokuContext.ts +33 -12
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/context/ZudokuReactContext.tsx +17 -0
- package/src/lib/components/index.ts +19 -35
- package/src/lib/components/navigation/Navigation.tsx +4 -3
- package/src/lib/components/navigation/NavigationCategory.tsx +9 -0
- package/src/lib/components/navigation/NavigationFilterContext.tsx +28 -0
- package/src/lib/components/navigation/NavigationFilterInput.tsx +35 -0
- package/src/lib/components/navigation/NavigationItem.tsx +26 -4
- package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +44 -2
- package/src/lib/core/RouteGuard.tsx +30 -24
- package/src/lib/core/ZudokuContext.ts +7 -1
- package/src/lib/core/__internal.tsx +2 -0
- package/src/lib/core/plugins.ts +27 -3
- package/src/lib/core/react-query.ts +1 -0
- package/src/lib/core/transform-config.test.tsx +99 -0
- package/src/lib/core/transform-config.ts +67 -0
- package/src/lib/errors/ErrorAlert.tsx +1 -6
- package/src/lib/errors/ErrorMessage.tsx +38 -0
- package/src/lib/hooks/index.ts +7 -16
- package/src/lib/hooks/useEvent.test.tsx +1 -1
- package/src/lib/navigation/pathMatcher.test.ts +136 -0
- package/src/lib/navigation/pathMatcher.ts +93 -0
- package/src/lib/navigation/positionItems.test.ts +265 -0
- package/src/lib/navigation/positionItems.ts +111 -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/oas/parser/index.ts +19 -6
- 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/DownloadSchemaButton.tsx +115 -0
- package/src/lib/plugins/openapi/Endpoint.tsx +20 -27
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/OasProvider.tsx +38 -17
- package/src/lib/plugins/openapi/OperationList.tsx +48 -28
- package/src/lib/plugins/openapi/OperationListItem.tsx +5 -5
- package/src/lib/plugins/openapi/ParamInfos.tsx +1 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +2 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +37 -15
- package/src/lib/plugins/openapi/SchemaList.tsx +4 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +20 -3
- package/src/lib/plugins/openapi/index.tsx +16 -7
- package/src/lib/plugins/openapi/interfaces.ts +21 -7
- package/src/lib/plugins/openapi/playground/Playground.tsx +8 -4
- package/src/lib/plugins/openapi/playground/fileUtils.ts +4 -0
- package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +50 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +33 -17
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +56 -43
- package/src/lib/plugins/openapi/schema/utils.ts +20 -6
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +29 -1
- package/src/lib/plugins/openapi/util/getRoutes.tsx +38 -3
- package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +163 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +61 -22
- package/src/lib/plugins/search-pagefind/ResultList.tsx +8 -3
- package/src/lib/shiki.ts +21 -12
- package/src/lib/ui/Alert.tsx +17 -5
- package/src/lib/ui/Button.tsx +11 -10
- package/src/lib/ui/ButtonGroup.tsx +82 -0
- package/src/lib/ui/Command.tsx +3 -3
- package/src/lib/ui/DropdownMenu.tsx +226 -170
- package/src/lib/ui/InputGroup.tsx +168 -0
- package/src/lib/ui/Kbd.tsx +28 -0
- package/src/lib/ui/Secret.tsx +2 -2
- package/src/lib/util/MdxComponents.tsx +2 -0
- package/src/lib/util/flattenAllOf.test.ts +73 -20
- package/src/lib/util/flattenAllOf.ts +0 -36
- package/src/lib/util/flattenAllOfProcessor.ts +58 -0
- package/src/lib/util/invariant.ts +2 -1
- package/src/lib/util/readFrontmatter.ts +14 -0
- package/src/shiki/langs/c3.js +1 -0
- package/src/shiki/langs/gn.js +1 -0
- package/src/shiki/langs/markdown-nix.js +1 -0
- package/src/shiki/langs/moonbit.js +1 -0
- package/src/shiki/langs/openscad.js +1 -0
- package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
- package/src/zuplo/enrich-with-zuplo.ts +254 -0
- package/src/zuplo/policy-types.ts +46 -0
- package/src/zuplo/with-zuplo-processors.ts +35 -0
- package/src/zuplo/with-zuplo.ts +14 -0
- package/dist/vite/create-pagefind-index.d.ts +0 -4
- package/dist/vite/create-pagefind-index.js +0 -12
- package/dist/vite/create-pagefind-index.js.map +0 -1
- package/lib/Button-B3ucvvQw.js +0 -52
- package/lib/Button-B3ucvvQw.js.map +0 -1
- package/lib/Command-CUcrW3qs.js.map +0 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +0 -126
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +0 -1
- package/lib/ErrorAlert-_1Zmhr68.js.map +0 -1
- package/lib/MdxPage-B2t1EShN.js +0 -240
- package/lib/MdxPage-B2t1EShN.js.map +0 -1
- package/lib/OAuthErrorPage-DnKnq4xK.js.map +0 -1
- package/lib/OasProvider-BhuIkD4Z.js +0 -36
- package/lib/OasProvider-BhuIkD4Z.js.map +0 -1
- package/lib/OperationList-D8EDc9v7.js.map +0 -1
- package/lib/Pagination-hk-llhpw.js +0 -37
- package/lib/Pagination-hk-llhpw.js.map +0 -1
- package/lib/RouteGuard-Brz95MSt.js +0 -77
- package/lib/RouteGuard-Brz95MSt.js.map +0 -1
- package/lib/RouterError-CMaIfdjb.js +0 -42
- package/lib/RouterError-CMaIfdjb.js.map +0 -1
- package/lib/SchemaList-E6lF7dID.js.map +0 -1
- package/lib/SchemaView-CIv-OXgv.js +0 -572
- package/lib/SchemaView-CIv-OXgv.js.map +0 -1
- package/lib/Select-DFRCS31-.js +0 -399
- package/lib/Select-DFRCS31-.js.map +0 -1
- package/lib/SignUp-sGYAsj2K.js +0 -50
- package/lib/SignUp-sGYAsj2K.js.map +0 -1
- package/lib/SyntaxHighlight-C19vH0V_.js.map +0 -1
- package/lib/ZudokuContext-BUZ5hkWB.js +0 -1508
- package/lib/ZudokuContext-BUZ5hkWB.js.map +0 -1
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js +0 -7965
- package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +0 -1
- package/lib/circular-BoYo7au5.js.map +0 -1
- package/lib/cn-dYga0KKN.js.map +0 -1
- package/lib/createServer-B_BZ7xX8.js.map +0 -1
- package/lib/hook-CMeoxziF.js +0 -40
- package/lib/hook-CMeoxziF.js.map +0 -1
- package/lib/index-HNVs5cgX.js.map +0 -1
- package/lib/index-pMMX55GH.js +0 -1059
- package/lib/index-pMMX55GH.js.map +0 -1
- package/lib/invariant-Bm-FVUQE.js.map +0 -1
- package/lib/mutation-BSU0xu4m.js.map +0 -1
- package/lib/useExposedProps-U3pmsHaG.js +0 -113
- package/lib/useExposedProps-U3pmsHaG.js.map +0 -1
|
@@ -1,39 +1,45 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { ChevronsDownUpIcon as
|
|
3
|
-
import { r as es,
|
|
4
|
-
import { Button as
|
|
5
|
-
import {
|
|
6
|
-
import { Z as
|
|
7
|
-
import * as
|
|
8
|
-
import { createContext as
|
|
9
|
-
import { VisuallyHidden as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { B
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
import
|
|
2
|
+
import { ChevronsDownUpIcon as kn, ChevronsUpDownIcon as En, PlusCircleIcon as Je, XIcon as It, CheckIcon as Dt, PaperclipIcon as me, TrashIcon as Rn, FileInput as In, ScanTextIcon as yt, Grid2x2PlusIcon as vt, ChevronDownIcon as Dn, TableOfContentsIcon as Fn, LockIcon as zn, CircleAlertIcon as Vn, Circle as Bn, Unlink2Icon as _n, DownloadIcon as Ft, CornerDownRightIcon as qn, MinusCircleIcon as bt, CornerDownLeftIcon as Un, SquareCodeIcon as Mn, 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
|
+
import { Button as K } from "./ui/Button.js";
|
|
5
|
+
import { e as as, j as V } from "./ZudokuContext-LPkD2SQs.js";
|
|
6
|
+
import { Z as os } from "./invariant-B_t_F2s_.js";
|
|
7
|
+
import * as xe from "react";
|
|
8
|
+
import { createContext as zt, use as is, useRef as E, useEffect as U, useMemo as Vt, useCallback as D, startTransition as ls, useState as k, Fragment as le, useLayoutEffect as cs, useTransition as ds, useContext as us } from "react";
|
|
9
|
+
import { VisuallyHidden as ms } from "@radix-ui/react-visually-hidden";
|
|
10
|
+
import { z as ps } from "./index-DAWHN3cH.js";
|
|
11
|
+
import { u as hs } from "./hook-DyEn6D2Q.js";
|
|
12
|
+
import { c as Ze, p as Ye, a as Bt, s as fs } from "./ZudokuReactContext-DGJAP1sN.js";
|
|
13
|
+
import { B } from "./Button-GUVe7pmt.js";
|
|
14
|
+
import { D as et, a as tt, c as nt, d as _t, e as qt, g as gs } from "./Dialog-hlvmmQ_c.js";
|
|
15
|
+
import { j as Ct, k as Nt, l as wt, m as xs, g as ys } from "./Zudoku-GbutmWzP.js";
|
|
16
|
+
import { u as vs } from "./useMutation-CErliDZ9.js";
|
|
17
|
+
import { u as oe, b as Ut, C as St, a as bs, F as js } from "./index.esm-BYObtETB.js";
|
|
18
|
+
import * as st from "@radix-ui/react-collapsible";
|
|
19
|
+
import { a as Mt, b as Gt, c as Ht, d as Qt, f as Ae, S as Cs, h as Ns } from "./Secret-CyhXSA8i.js";
|
|
20
|
+
import { c as S } from "./cn-5-Gd1Dss.js";
|
|
21
|
+
import { u as ws } from "./useCopyToClipboard-B_085nfO.js";
|
|
22
|
+
import { u as Ss } from "./useLatest-hmRS46UF.js";
|
|
23
|
+
import { D as Jt, a as Wt, b as Xt, d as Ts, e as As, f as Os, c as Oe } from "./DropdownMenu-DN0jNrjj.js";
|
|
24
|
+
import { I as Ps } from "./Input-Cx-GeKoF.js";
|
|
25
|
+
import { c as ye } from "./createVariantComponent-Dc0vtOvr.js";
|
|
26
|
+
import * as Tt from "@radix-ui/react-checkbox";
|
|
27
|
+
import * as Pe from "@radix-ui/react-popover";
|
|
28
|
+
import { PopoverAnchor as $s } from "@radix-ui/react-popover";
|
|
29
|
+
import { P as Ls } from "./index-CrcNWbel.js";
|
|
30
|
+
import { f as ks, g as Es, C as Rs, b as Is } from "./Command-N6VujV30.js";
|
|
31
|
+
import { C as Ds } from "./Card-DCdq37aA.js";
|
|
32
|
+
import * as Kt from "@radix-ui/react-label";
|
|
33
|
+
import { c as Fs } from "./index-DI5SPFK9.js";
|
|
34
|
+
import * as he from "@radix-ui/react-radio-group";
|
|
35
|
+
import { S as zs } from "./Spinner-CI6bRyZw.js";
|
|
36
|
+
import { A as Vs, a as Bs, b as _s } from "./Mermaid-Chx5BPHn.js";
|
|
37
|
+
import { g as qs } from "./useQuery-ht7aWJ3S.js";
|
|
38
|
+
import { u as Us } from "./useSuspenseQuery-DQH4Bmc2.js";
|
|
33
39
|
let _e;
|
|
34
|
-
const
|
|
40
|
+
const Ms = (e) => {
|
|
35
41
|
if (e.errors?.[0])
|
|
36
|
-
throw new
|
|
42
|
+
throw new os(e.errors[0].message, {
|
|
37
43
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
38
44
|
});
|
|
39
45
|
};
|
|
@@ -41,7 +47,7 @@ class Gs {
|
|
|
41
47
|
constructor(n) {
|
|
42
48
|
this.config = n;
|
|
43
49
|
}
|
|
44
|
-
#e = async () => (_e || (_e = import("./createServer-
|
|
50
|
+
#e = async () => (_e || (_e = import("./createServer-4kaAMuIM.js").then(
|
|
45
51
|
(n) => n.createServer(this.config)
|
|
46
52
|
)), _e);
|
|
47
53
|
#t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
|
|
@@ -54,7 +60,7 @@ class Gs {
|
|
|
54
60
|
if (!r.ok)
|
|
55
61
|
throw new Error("Network response was not ok");
|
|
56
62
|
const o = await r.json();
|
|
57
|
-
return
|
|
63
|
+
return Ms(o), o.data;
|
|
58
64
|
};
|
|
59
65
|
}
|
|
60
66
|
function qe(e, n) {
|
|
@@ -71,7 +77,7 @@ function Qs(e, n) {
|
|
|
71
77
|
);
|
|
72
78
|
}
|
|
73
79
|
const Js = /\r\n|[\n\r]/g;
|
|
74
|
-
function
|
|
80
|
+
function We(e, n) {
|
|
75
81
|
let s = 0, a = 1;
|
|
76
82
|
for (const r of e.body.matchAll(Js)) {
|
|
77
83
|
if (typeof r.index == "number" || Qs(!1), r.index >= n)
|
|
@@ -84,39 +90,39 @@ function Je(e, n) {
|
|
|
84
90
|
};
|
|
85
91
|
}
|
|
86
92
|
function Ws(e) {
|
|
87
|
-
return
|
|
93
|
+
return Zt(
|
|
88
94
|
e.source,
|
|
89
|
-
|
|
95
|
+
We(e.source, e.start)
|
|
90
96
|
);
|
|
91
97
|
}
|
|
92
|
-
function
|
|
98
|
+
function Zt(e, n) {
|
|
93
99
|
const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = n.line - 1, o = e.locationOffset.line - 1, i = n.line + o, c = n.line === 1 ? s : 0, l = n.column + c, m = `${e.name}:${i}:${l}
|
|
94
|
-
`, d = a.split(/\r\n|[\n\r]/g),
|
|
95
|
-
if (
|
|
96
|
-
const x = Math.floor(l / 80),
|
|
97
|
-
for (let u = 0; u <
|
|
98
|
-
v.push(
|
|
99
|
-
return m +
|
|
100
|
+
`, d = a.split(/\r\n|[\n\r]/g), f = d[r];
|
|
101
|
+
if (f.length > 120) {
|
|
102
|
+
const x = Math.floor(l / 80), p = l % 80, v = [];
|
|
103
|
+
for (let u = 0; u < f.length; u += 80)
|
|
104
|
+
v.push(f.slice(u, u + 80));
|
|
105
|
+
return m + At([
|
|
100
106
|
[`${i} |`, v[0]],
|
|
101
107
|
...v.slice(1, x + 1).map((u) => ["|", u]),
|
|
102
|
-
["|", "^".padStart(
|
|
108
|
+
["|", "^".padStart(p)],
|
|
103
109
|
["|", v[x + 1]]
|
|
104
110
|
]);
|
|
105
111
|
}
|
|
106
|
-
return m +
|
|
112
|
+
return m + At([
|
|
107
113
|
// Lines specified like this: ["prefix", "string"],
|
|
108
114
|
[`${i - 1} |`, d[r - 1]],
|
|
109
|
-
[`${i} |`,
|
|
115
|
+
[`${i} |`, f],
|
|
110
116
|
["|", "^".padStart(l)],
|
|
111
117
|
[`${i + 1} |`, d[r + 1]]
|
|
112
118
|
]);
|
|
113
119
|
}
|
|
114
|
-
function
|
|
120
|
+
function At(e) {
|
|
115
121
|
const n = e.filter(([a, r]) => r !== void 0), s = Math.max(...n.map(([a]) => a.length));
|
|
116
122
|
return n.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
117
123
|
`);
|
|
118
124
|
}
|
|
119
|
-
function
|
|
125
|
+
function Xs(e) {
|
|
120
126
|
const n = e[0];
|
|
121
127
|
return n == null || "kind" in n || "length" in n ? {
|
|
122
128
|
nodes: n,
|
|
@@ -127,7 +133,7 @@ function Ks(e) {
|
|
|
127
133
|
extensions: e[5]
|
|
128
134
|
} : n;
|
|
129
135
|
}
|
|
130
|
-
class
|
|
136
|
+
class rt extends Error {
|
|
131
137
|
/**
|
|
132
138
|
* An array of `{ line, column }` locations within the source GraphQL document
|
|
133
139
|
* which correspond to this error.
|
|
@@ -168,18 +174,18 @@ class nt extends Error {
|
|
|
168
174
|
*/
|
|
169
175
|
constructor(n, ...s) {
|
|
170
176
|
var a, r, o;
|
|
171
|
-
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions:
|
|
172
|
-
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes =
|
|
177
|
+
const { nodes: i, source: c, positions: l, path: m, originalError: d, extensions: f } = Xs(s);
|
|
178
|
+
super(n), this.name = "GraphQLError", this.path = m ?? void 0, this.originalError = d ?? void 0, this.nodes = Ot(
|
|
173
179
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
174
180
|
);
|
|
175
|
-
const x =
|
|
181
|
+
const x = Ot(
|
|
176
182
|
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
177
183
|
);
|
|
178
|
-
this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((v) => v.start), this.locations = l && c ? l.map((v) =>
|
|
179
|
-
const
|
|
184
|
+
this.source = c ?? (x == null || (r = x[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? x?.map((v) => v.start), this.locations = l && c ? l.map((v) => We(c, v)) : x?.map((v) => We(v.source, v.start));
|
|
185
|
+
const p = Hs(
|
|
180
186
|
d?.extensions
|
|
181
187
|
) ? d?.extensions : void 0;
|
|
182
|
-
this.extensions = (o =
|
|
188
|
+
this.extensions = (o = f ?? p) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
183
189
|
message: {
|
|
184
190
|
writable: !0,
|
|
185
191
|
enumerable: !0
|
|
@@ -203,7 +209,7 @@ class nt extends Error {
|
|
|
203
209
|
value: d.stack,
|
|
204
210
|
writable: !0,
|
|
205
211
|
configurable: !0
|
|
206
|
-
}) : Error.captureStackTrace ? Error.captureStackTrace(this,
|
|
212
|
+
}) : Error.captureStackTrace ? Error.captureStackTrace(this, rt) : Object.defineProperty(this, "stack", {
|
|
207
213
|
value: Error().stack,
|
|
208
214
|
writable: !0,
|
|
209
215
|
configurable: !0
|
|
@@ -223,7 +229,7 @@ class nt extends Error {
|
|
|
223
229
|
for (const s of this.locations)
|
|
224
230
|
n += `
|
|
225
231
|
|
|
226
|
-
` +
|
|
232
|
+
` + Zt(this.source, s);
|
|
227
233
|
return n;
|
|
228
234
|
}
|
|
229
235
|
toJSON() {
|
|
@@ -233,16 +239,16 @@ class nt extends Error {
|
|
|
233
239
|
return this.locations != null && (n.locations = this.locations), this.path != null && (n.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (n.extensions = this.extensions), n;
|
|
234
240
|
}
|
|
235
241
|
}
|
|
236
|
-
function
|
|
242
|
+
function Ot(e) {
|
|
237
243
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
238
244
|
}
|
|
239
245
|
function F(e, n, s) {
|
|
240
|
-
return new
|
|
246
|
+
return new rt(`Syntax Error: ${s}`, {
|
|
241
247
|
source: e,
|
|
242
248
|
positions: [n]
|
|
243
249
|
});
|
|
244
250
|
}
|
|
245
|
-
class
|
|
251
|
+
class so {
|
|
246
252
|
/**
|
|
247
253
|
* The character offset at which this Node begins.
|
|
248
254
|
*/
|
|
@@ -271,7 +277,7 @@ class Ka {
|
|
|
271
277
|
};
|
|
272
278
|
}
|
|
273
279
|
}
|
|
274
|
-
class
|
|
280
|
+
class Yt {
|
|
275
281
|
/**
|
|
276
282
|
* The kind of Token.
|
|
277
283
|
*/
|
|
@@ -313,16 +319,23 @@ class Xt {
|
|
|
313
319
|
};
|
|
314
320
|
}
|
|
315
321
|
}
|
|
316
|
-
const
|
|
322
|
+
const Ks = {
|
|
317
323
|
Name: [],
|
|
318
324
|
Document: ["definitions"],
|
|
319
325
|
OperationDefinition: [
|
|
326
|
+
"description",
|
|
320
327
|
"name",
|
|
321
328
|
"variableDefinitions",
|
|
322
329
|
"directives",
|
|
323
330
|
"selectionSet"
|
|
324
331
|
],
|
|
325
|
-
VariableDefinition: [
|
|
332
|
+
VariableDefinition: [
|
|
333
|
+
"description",
|
|
334
|
+
"variable",
|
|
335
|
+
"type",
|
|
336
|
+
"defaultValue",
|
|
337
|
+
"directives"
|
|
338
|
+
],
|
|
326
339
|
Variable: ["name"],
|
|
327
340
|
SelectionSet: ["selections"],
|
|
328
341
|
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
|
|
@@ -330,6 +343,7 @@ const Xs = {
|
|
|
330
343
|
FragmentSpread: ["name", "directives"],
|
|
331
344
|
InlineFragment: ["typeCondition", "directives", "selectionSet"],
|
|
332
345
|
FragmentDefinition: [
|
|
346
|
+
"description",
|
|
333
347
|
"name",
|
|
334
348
|
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
|
|
335
349
|
"variableDefinitions",
|
|
@@ -386,31 +400,36 @@ const Xs = {
|
|
|
386
400
|
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
387
401
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
388
402
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
389
|
-
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
390
|
-
|
|
391
|
-
|
|
403
|
+
InputObjectTypeExtension: ["name", "directives", "fields"],
|
|
404
|
+
TypeCoordinate: ["name"],
|
|
405
|
+
MemberCoordinate: ["name", "memberName"],
|
|
406
|
+
ArgumentCoordinate: ["name", "fieldName", "argumentName"],
|
|
407
|
+
DirectiveCoordinate: ["name"],
|
|
408
|
+
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
409
|
+
}, Zs = new Set(Object.keys(Ks));
|
|
410
|
+
function ro(e) {
|
|
392
411
|
const n = e?.kind;
|
|
393
412
|
return typeof n == "string" && Zs.has(n);
|
|
394
413
|
}
|
|
395
|
-
var
|
|
414
|
+
var Pt;
|
|
396
415
|
(function(e) {
|
|
397
416
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
398
|
-
})(
|
|
399
|
-
function
|
|
417
|
+
})(Pt || (Pt = {}));
|
|
418
|
+
function Xe(e) {
|
|
400
419
|
return e === 9 || e === 32;
|
|
401
420
|
}
|
|
402
|
-
function
|
|
421
|
+
function fe(e) {
|
|
403
422
|
return e >= 48 && e <= 57;
|
|
404
423
|
}
|
|
405
|
-
function
|
|
424
|
+
function en(e) {
|
|
406
425
|
return e >= 97 && e <= 122 || // A-Z
|
|
407
426
|
e >= 65 && e <= 90;
|
|
408
427
|
}
|
|
409
|
-
function
|
|
410
|
-
return
|
|
428
|
+
function tn(e) {
|
|
429
|
+
return en(e) || e === 95;
|
|
411
430
|
}
|
|
412
431
|
function Ys(e) {
|
|
413
|
-
return
|
|
432
|
+
return en(e) || fe(e) || e === 95;
|
|
414
433
|
}
|
|
415
434
|
function er(e) {
|
|
416
435
|
var n;
|
|
@@ -427,22 +446,22 @@ function er(e) {
|
|
|
427
446
|
}
|
|
428
447
|
function tr(e) {
|
|
429
448
|
let n = 0;
|
|
430
|
-
for (; n < e.length &&
|
|
449
|
+
for (; n < e.length && Xe(e.charCodeAt(n)); )
|
|
431
450
|
++n;
|
|
432
451
|
return n;
|
|
433
452
|
}
|
|
434
453
|
function nr(e, n) {
|
|
435
|
-
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((
|
|
454
|
+
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((p) => p.length === 0 || Xe(p.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
|
|
436
455
|
(!r || e.length > 70 || m || o || i);
|
|
437
|
-
let
|
|
438
|
-
const x = r &&
|
|
439
|
-
return (d && !x || o) && (
|
|
440
|
-
`),
|
|
441
|
-
`), '"""' +
|
|
456
|
+
let f = "";
|
|
457
|
+
const x = r && Xe(e.charCodeAt(0));
|
|
458
|
+
return (d && !x || o) && (f += `
|
|
459
|
+
`), f += s, (d || m) && (f += `
|
|
460
|
+
`), '"""' + f + '"""';
|
|
442
461
|
}
|
|
443
462
|
var b;
|
|
444
463
|
(function(e) {
|
|
445
|
-
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
464
|
+
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.DOT = ".", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
446
465
|
})(b || (b = {}));
|
|
447
466
|
class sr {
|
|
448
467
|
/**
|
|
@@ -458,7 +477,7 @@ class sr {
|
|
|
458
477
|
* The character offset at which the current line begins.
|
|
459
478
|
*/
|
|
460
479
|
constructor(n) {
|
|
461
|
-
const s = new
|
|
480
|
+
const s = new Yt(b.SOF, 0, 0, 0, 0);
|
|
462
481
|
this.source = n, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
|
|
463
482
|
}
|
|
464
483
|
get [Symbol.toStringTag]() {
|
|
@@ -489,21 +508,21 @@ class sr {
|
|
|
489
508
|
}
|
|
490
509
|
}
|
|
491
510
|
function rr(e) {
|
|
492
|
-
return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
|
|
511
|
+
return e === b.BANG || e === b.DOLLAR || e === b.AMP || e === b.PAREN_L || e === b.PAREN_R || e === b.DOT || e === b.SPREAD || e === b.COLON || e === b.EQUALS || e === b.AT || e === b.BRACKET_L || e === b.BRACKET_R || e === b.BRACE_L || e === b.PIPE || e === b.BRACE_R;
|
|
493
512
|
}
|
|
494
|
-
function
|
|
513
|
+
function ie(e) {
|
|
495
514
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
496
515
|
}
|
|
497
|
-
function
|
|
498
|
-
return
|
|
516
|
+
function Le(e, n) {
|
|
517
|
+
return nn(e.charCodeAt(n)) && sn(e.charCodeAt(n + 1));
|
|
499
518
|
}
|
|
500
|
-
function
|
|
519
|
+
function nn(e) {
|
|
501
520
|
return e >= 55296 && e <= 56319;
|
|
502
521
|
}
|
|
503
|
-
function
|
|
522
|
+
function sn(e) {
|
|
504
523
|
return e >= 56320 && e <= 57343;
|
|
505
524
|
}
|
|
506
|
-
function
|
|
525
|
+
function Z(e, n) {
|
|
507
526
|
const s = e.source.body.codePointAt(n);
|
|
508
527
|
if (s === void 0)
|
|
509
528
|
return b.EOF;
|
|
@@ -515,7 +534,7 @@ function X(e, n) {
|
|
|
515
534
|
}
|
|
516
535
|
function P(e, n, s, a, r) {
|
|
517
536
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
518
|
-
return new
|
|
537
|
+
return new Yt(n, s, a, o, i, r);
|
|
519
538
|
}
|
|
520
539
|
function ar(e, n) {
|
|
521
540
|
const s = e.source.body, a = s.length;
|
|
@@ -601,14 +620,14 @@ function ar(e, n) {
|
|
|
601
620
|
case 34:
|
|
602
621
|
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? mr(e, r) : lr(e, r);
|
|
603
622
|
}
|
|
604
|
-
if (
|
|
623
|
+
if (fe(o) || o === 45)
|
|
605
624
|
return ir(e, r, o);
|
|
606
|
-
if (
|
|
625
|
+
if (tn(o))
|
|
607
626
|
return pr(e, r);
|
|
608
627
|
throw F(
|
|
609
628
|
e.source,
|
|
610
629
|
r,
|
|
611
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
630
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : ie(o) || Le(s, r) ? `Unexpected character: ${Z(e, r)}.` : `Invalid character: ${Z(e, r)}.`
|
|
612
631
|
);
|
|
613
632
|
}
|
|
614
633
|
return P(e, b.EOF, a, a);
|
|
@@ -620,9 +639,9 @@ function or(e, n) {
|
|
|
620
639
|
const o = s.charCodeAt(r);
|
|
621
640
|
if (o === 10 || o === 13)
|
|
622
641
|
break;
|
|
623
|
-
if (
|
|
642
|
+
if (ie(o))
|
|
624
643
|
++r;
|
|
625
|
-
else if (
|
|
644
|
+
else if (Le(s, r))
|
|
626
645
|
r += 2;
|
|
627
646
|
else
|
|
628
647
|
break;
|
|
@@ -639,22 +658,22 @@ function ir(e, n, s) {
|
|
|
639
658
|
const a = e.source.body;
|
|
640
659
|
let r = n, o = s, i = !1;
|
|
641
660
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
642
|
-
if (o = a.charCodeAt(++r),
|
|
661
|
+
if (o = a.charCodeAt(++r), fe(o))
|
|
643
662
|
throw F(
|
|
644
663
|
e.source,
|
|
645
664
|
r,
|
|
646
|
-
`Invalid number, unexpected digit after 0: ${
|
|
665
|
+
`Invalid number, unexpected digit after 0: ${Z(
|
|
647
666
|
e,
|
|
648
667
|
r
|
|
649
668
|
)}.`
|
|
650
669
|
);
|
|
651
670
|
} else
|
|
652
|
-
r =
|
|
653
|
-
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r =
|
|
671
|
+
r = Ue(e, r, o), o = a.charCodeAt(r);
|
|
672
|
+
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ue(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ue(e, r, o), o = a.charCodeAt(r)), o === 46 || tn(o))
|
|
654
673
|
throw F(
|
|
655
674
|
e.source,
|
|
656
675
|
r,
|
|
657
|
-
`Invalid number, expected digit but got: ${
|
|
676
|
+
`Invalid number, expected digit but got: ${Z(
|
|
658
677
|
e,
|
|
659
678
|
r
|
|
660
679
|
)}.`
|
|
@@ -667,19 +686,19 @@ function ir(e, n, s) {
|
|
|
667
686
|
a.slice(n, r)
|
|
668
687
|
);
|
|
669
688
|
}
|
|
670
|
-
function
|
|
671
|
-
if (!
|
|
689
|
+
function Ue(e, n, s) {
|
|
690
|
+
if (!fe(s))
|
|
672
691
|
throw F(
|
|
673
692
|
e.source,
|
|
674
693
|
n,
|
|
675
|
-
`Invalid number, expected digit but got: ${
|
|
694
|
+
`Invalid number, expected digit but got: ${Z(
|
|
676
695
|
e,
|
|
677
696
|
n
|
|
678
697
|
)}.`
|
|
679
698
|
);
|
|
680
699
|
const a = e.source.body;
|
|
681
700
|
let r = n + 1;
|
|
682
|
-
for (;
|
|
701
|
+
for (; fe(a.charCodeAt(r)); )
|
|
683
702
|
++r;
|
|
684
703
|
return r;
|
|
685
704
|
}
|
|
@@ -698,15 +717,15 @@ function lr(e, n) {
|
|
|
698
717
|
}
|
|
699
718
|
if (c === 10 || c === 13)
|
|
700
719
|
break;
|
|
701
|
-
if (
|
|
720
|
+
if (ie(c))
|
|
702
721
|
++r;
|
|
703
|
-
else if (
|
|
722
|
+
else if (Le(s, r))
|
|
704
723
|
r += 2;
|
|
705
724
|
else
|
|
706
725
|
throw F(
|
|
707
726
|
e.source,
|
|
708
727
|
r,
|
|
709
|
-
`Invalid character within String: ${
|
|
728
|
+
`Invalid character within String: ${Z(
|
|
710
729
|
e,
|
|
711
730
|
r
|
|
712
731
|
)}.`
|
|
@@ -720,7 +739,7 @@ function cr(e, n) {
|
|
|
720
739
|
for (; r < 12; ) {
|
|
721
740
|
const o = s.charCodeAt(n + r++);
|
|
722
741
|
if (o === 125) {
|
|
723
|
-
if (r < 5 || !
|
|
742
|
+
if (r < 5 || !ie(a))
|
|
724
743
|
break;
|
|
725
744
|
return {
|
|
726
745
|
value: String.fromCodePoint(a),
|
|
@@ -740,15 +759,15 @@ function cr(e, n) {
|
|
|
740
759
|
);
|
|
741
760
|
}
|
|
742
761
|
function dr(e, n) {
|
|
743
|
-
const s = e.source.body, a =
|
|
744
|
-
if (
|
|
762
|
+
const s = e.source.body, a = $t(s, n + 2);
|
|
763
|
+
if (ie(a))
|
|
745
764
|
return {
|
|
746
765
|
value: String.fromCodePoint(a),
|
|
747
766
|
size: 6
|
|
748
767
|
};
|
|
749
|
-
if (
|
|
750
|
-
const r =
|
|
751
|
-
if (
|
|
768
|
+
if (nn(a) && s.charCodeAt(n + 6) === 92 && s.charCodeAt(n + 7) === 117) {
|
|
769
|
+
const r = $t(s, n + 8);
|
|
770
|
+
if (sn(r))
|
|
752
771
|
return {
|
|
753
772
|
value: String.fromCodePoint(a, r),
|
|
754
773
|
size: 12
|
|
@@ -760,7 +779,7 @@ function dr(e, n) {
|
|
|
760
779
|
`Invalid Unicode escape sequence: "${s.slice(n, n + 6)}".`
|
|
761
780
|
);
|
|
762
781
|
}
|
|
763
|
-
function
|
|
782
|
+
function $t(e, n) {
|
|
764
783
|
return ce(e.charCodeAt(n)) << 12 | ce(e.charCodeAt(n + 1)) << 8 | ce(e.charCodeAt(n + 2)) << 4 | ce(e.charCodeAt(n + 3));
|
|
765
784
|
}
|
|
766
785
|
function ce(e) {
|
|
@@ -847,15 +866,15 @@ function mr(e, n) {
|
|
|
847
866
|
c += s.slice(i, o), l.push(c), m === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
|
|
848
867
|
continue;
|
|
849
868
|
}
|
|
850
|
-
if (
|
|
869
|
+
if (ie(m))
|
|
851
870
|
++o;
|
|
852
|
-
else if (
|
|
871
|
+
else if (Le(s, o))
|
|
853
872
|
o += 2;
|
|
854
873
|
else
|
|
855
874
|
throw F(
|
|
856
875
|
e.source,
|
|
857
876
|
o,
|
|
858
|
-
`Invalid character within String: ${
|
|
877
|
+
`Invalid character within String: ${Z(
|
|
859
878
|
e,
|
|
860
879
|
o
|
|
861
880
|
)}.`
|
|
@@ -881,11 +900,11 @@ function pr(e, n) {
|
|
|
881
900
|
s.slice(n, r)
|
|
882
901
|
);
|
|
883
902
|
}
|
|
884
|
-
const hr = 10,
|
|
885
|
-
function
|
|
886
|
-
return
|
|
903
|
+
const hr = 10, rn = 2;
|
|
904
|
+
function an(e) {
|
|
905
|
+
return ke(e, []);
|
|
887
906
|
}
|
|
888
|
-
function
|
|
907
|
+
function ke(e, n) {
|
|
889
908
|
switch (typeof e) {
|
|
890
909
|
case "string":
|
|
891
910
|
return JSON.stringify(e);
|
|
@@ -906,7 +925,7 @@ function fr(e, n) {
|
|
|
906
925
|
if (gr(e)) {
|
|
907
926
|
const a = e.toJSON();
|
|
908
927
|
if (a !== e)
|
|
909
|
-
return typeof a == "string" ? a :
|
|
928
|
+
return typeof a == "string" ? a : ke(a, s);
|
|
910
929
|
} else if (Array.isArray(e))
|
|
911
930
|
return yr(e, s);
|
|
912
931
|
return xr(e, s);
|
|
@@ -916,18 +935,18 @@ function gr(e) {
|
|
|
916
935
|
}
|
|
917
936
|
function xr(e, n) {
|
|
918
937
|
const s = Object.entries(e);
|
|
919
|
-
return s.length === 0 ? "{}" : n.length >
|
|
920
|
-
([r, o]) => r + ": " +
|
|
938
|
+
return s.length === 0 ? "{}" : n.length > rn ? "[" + vr(e) + "]" : "{ " + s.map(
|
|
939
|
+
([r, o]) => r + ": " + ke(o, n)
|
|
921
940
|
).join(", ") + " }";
|
|
922
941
|
}
|
|
923
942
|
function yr(e, n) {
|
|
924
943
|
if (e.length === 0)
|
|
925
944
|
return "[]";
|
|
926
|
-
if (n.length >
|
|
945
|
+
if (n.length > rn)
|
|
927
946
|
return "[Array]";
|
|
928
947
|
const s = Math.min(hr, e.length), a = e.length - s, r = [];
|
|
929
948
|
for (let o = 0; o < s; ++o)
|
|
930
|
-
r.push(
|
|
949
|
+
r.push(ke(e[o], n));
|
|
931
950
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
932
951
|
}
|
|
933
952
|
function vr(e) {
|
|
@@ -955,7 +974,7 @@ process.env.NODE_ENV === "production", jr = (
|
|
|
955
974
|
Symbol.toStringTag in n ? n[Symbol.toStringTag] : (a = n.constructor) === null || a === void 0 ? void 0 : a.name
|
|
956
975
|
);
|
|
957
976
|
if (r === o) {
|
|
958
|
-
const i =
|
|
977
|
+
const i = an(n);
|
|
959
978
|
throw new Error(`Cannot use ${r} "${i}" from another module or realm.
|
|
960
979
|
|
|
961
980
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
@@ -973,12 +992,12 @@ spurious results.`);
|
|
|
973
992
|
return !1;
|
|
974
993
|
}
|
|
975
994
|
);
|
|
976
|
-
class
|
|
995
|
+
class on {
|
|
977
996
|
constructor(n, s = "GraphQL request", a = {
|
|
978
997
|
line: 1,
|
|
979
998
|
column: 1
|
|
980
999
|
}) {
|
|
981
|
-
typeof n == "string" || qe(!1, `Body must be a string. Received: ${
|
|
1000
|
+
typeof n == "string" || qe(!1, `Body must be a string. Received: ${an(n)}.`), this.body = n, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || qe(
|
|
982
1001
|
!1,
|
|
983
1002
|
"line in locationOffset is 1-indexed and must be positive."
|
|
984
1003
|
), this.locationOffset.column > 0 || qe(
|
|
@@ -991,10 +1010,10 @@ class rn {
|
|
|
991
1010
|
}
|
|
992
1011
|
}
|
|
993
1012
|
function Cr(e) {
|
|
994
|
-
return jr(e,
|
|
1013
|
+
return jr(e, on);
|
|
995
1014
|
}
|
|
996
1015
|
function Nr(e) {
|
|
997
|
-
const n = Cr(e) ? e : new
|
|
1016
|
+
const n = Cr(e) ? e : new on(e), s = n.body, a = new sr(n);
|
|
998
1017
|
let r = "", o = !1;
|
|
999
1018
|
for (; a.advance().kind !== b.EOF; ) {
|
|
1000
1019
|
const i = a.token, c = i.kind, l = !rr(i.kind);
|
|
@@ -1006,21 +1025,21 @@ function Nr(e) {
|
|
|
1006
1025
|
}
|
|
1007
1026
|
return r;
|
|
1008
1027
|
}
|
|
1009
|
-
const
|
|
1028
|
+
const ln = zt(
|
|
1010
1029
|
void 0
|
|
1011
|
-
),
|
|
1030
|
+
), ao = ({
|
|
1012
1031
|
children: e,
|
|
1013
1032
|
client: n
|
|
1014
|
-
}) => /* @__PURE__ */ t.jsx(
|
|
1033
|
+
}) => /* @__PURE__ */ t.jsx(ln.Provider, { value: n, children: e }), cn = (e, n, ...[s]) => ({
|
|
1015
1034
|
queryFn: () => e.fetch(n, s),
|
|
1016
1035
|
queryKey: [Nr(n.toString()), s]
|
|
1017
|
-
}),
|
|
1018
|
-
const s =
|
|
1036
|
+
}), wr = (e, ...[n]) => {
|
|
1037
|
+
const s = is(ln);
|
|
1019
1038
|
if (s === void 0)
|
|
1020
1039
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1021
|
-
return
|
|
1040
|
+
return cn(s, e, ...n === void 0 ? [] : [n]);
|
|
1022
1041
|
};
|
|
1023
|
-
class
|
|
1042
|
+
class ee extends String {
|
|
1024
1043
|
__apiType;
|
|
1025
1044
|
value;
|
|
1026
1045
|
__meta__;
|
|
@@ -1031,7 +1050,7 @@ class Y extends String {
|
|
|
1031
1050
|
return this.value;
|
|
1032
1051
|
}
|
|
1033
1052
|
}
|
|
1034
|
-
const
|
|
1053
|
+
const Sr = new ee(
|
|
1035
1054
|
`
|
|
1036
1055
|
fragment OperationsFragment on OperationItem {
|
|
1037
1056
|
slug
|
|
@@ -1103,7 +1122,7 @@ const wr = new Y(
|
|
|
1103
1122
|
}
|
|
1104
1123
|
`,
|
|
1105
1124
|
{ fragmentName: "OperationsFragment" }
|
|
1106
|
-
), Tr = new
|
|
1125
|
+
), Tr = new ee(`
|
|
1107
1126
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1108
1127
|
schema(input: $input, type: $type) {
|
|
1109
1128
|
url
|
|
@@ -1112,13 +1131,13 @@ const wr = new Y(
|
|
|
1112
1131
|
}
|
|
1113
1132
|
}
|
|
1114
1133
|
}
|
|
1115
|
-
`),
|
|
1134
|
+
`), Ar = new ee(`
|
|
1116
1135
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1117
1136
|
schema(input: $input, type: $type) {
|
|
1118
1137
|
openapi
|
|
1119
1138
|
}
|
|
1120
1139
|
}
|
|
1121
|
-
`),
|
|
1140
|
+
`), Or = new ee(`
|
|
1122
1141
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1123
1142
|
schema(input: $input, type: $type) {
|
|
1124
1143
|
servers {
|
|
@@ -1217,7 +1236,7 @@ const wr = new Y(
|
|
|
1217
1236
|
schema
|
|
1218
1237
|
}
|
|
1219
1238
|
}
|
|
1220
|
-
}`), Pr = new
|
|
1239
|
+
}`), Pr = new ee(`
|
|
1221
1240
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1222
1241
|
schema(input: $input, type: $type) {
|
|
1223
1242
|
title
|
|
@@ -1232,7 +1251,7 @@ const wr = new Y(
|
|
|
1232
1251
|
}
|
|
1233
1252
|
}
|
|
1234
1253
|
}
|
|
1235
|
-
`),
|
|
1254
|
+
`), $r = new ee(`
|
|
1236
1255
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1237
1256
|
schema(input: $input, type: $type) {
|
|
1238
1257
|
url
|
|
@@ -1241,7 +1260,7 @@ const wr = new Y(
|
|
|
1241
1260
|
}
|
|
1242
1261
|
}
|
|
1243
1262
|
}
|
|
1244
|
-
`), Lr = new
|
|
1263
|
+
`), Lr = new ee(`
|
|
1245
1264
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1246
1265
|
schema(input: $input, type: $type) {
|
|
1247
1266
|
extensions
|
|
@@ -1266,44 +1285,44 @@ const wr = new Y(
|
|
|
1266
1285
|
}
|
|
1267
1286
|
`), kr = {
|
|
1268
1287
|
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Tr,
|
|
1269
|
-
"\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":
|
|
1270
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1271
|
-
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n":
|
|
1288
|
+
"\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": Sr,
|
|
1289
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": Ar,
|
|
1290
|
+
"\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": Or,
|
|
1272
1291
|
"\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Pr,
|
|
1273
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1292
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": $r,
|
|
1274
1293
|
"\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
|
|
1275
1294
|
};
|
|
1276
|
-
function
|
|
1295
|
+
function Er(e) {
|
|
1277
1296
|
return kr[e] ?? {};
|
|
1278
1297
|
}
|
|
1279
|
-
function
|
|
1298
|
+
function _({
|
|
1280
1299
|
...e
|
|
1281
1300
|
}) {
|
|
1282
|
-
return /* @__PURE__ */ t.jsx(
|
|
1301
|
+
return /* @__PURE__ */ t.jsx(st.Root, { "data-slot": "collapsible", ...e });
|
|
1283
1302
|
}
|
|
1284
1303
|
function de({
|
|
1285
1304
|
...e
|
|
1286
1305
|
}) {
|
|
1287
1306
|
return /* @__PURE__ */ t.jsx(
|
|
1288
|
-
|
|
1307
|
+
st.CollapsibleTrigger,
|
|
1289
1308
|
{
|
|
1290
1309
|
"data-slot": "collapsible-trigger",
|
|
1291
1310
|
...e
|
|
1292
1311
|
}
|
|
1293
1312
|
);
|
|
1294
1313
|
}
|
|
1295
|
-
function
|
|
1314
|
+
function q({
|
|
1296
1315
|
...e
|
|
1297
1316
|
}) {
|
|
1298
1317
|
return /* @__PURE__ */ t.jsx(
|
|
1299
|
-
|
|
1318
|
+
st.CollapsibleContent,
|
|
1300
1319
|
{
|
|
1301
1320
|
"data-slot": "collapsible-content",
|
|
1302
1321
|
...e
|
|
1303
1322
|
}
|
|
1304
1323
|
);
|
|
1305
1324
|
}
|
|
1306
|
-
function
|
|
1325
|
+
function Rr() {
|
|
1307
1326
|
const n = navigator.userAgent.toLowerCase();
|
|
1308
1327
|
if (n.indexOf("win") !== -1)
|
|
1309
1328
|
return "windows";
|
|
@@ -1315,7 +1334,7 @@ function Er() {
|
|
|
1315
1334
|
return "unix";
|
|
1316
1335
|
}
|
|
1317
1336
|
function Ir() {
|
|
1318
|
-
return
|
|
1337
|
+
return Rr() === "apple";
|
|
1319
1338
|
}
|
|
1320
1339
|
const Dr = {
|
|
1321
1340
|
other: {
|
|
@@ -1333,10 +1352,10 @@ const Dr = {
|
|
|
1333
1352
|
option: "⌥"
|
|
1334
1353
|
}
|
|
1335
1354
|
}, Fr = (e, n) => {
|
|
1336
|
-
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 =
|
|
1337
|
-
return
|
|
1355
|
+
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);
|
|
1356
|
+
return U(() => {
|
|
1338
1357
|
l.current = n;
|
|
1339
|
-
}, [n]),
|
|
1358
|
+
}, [n]), U(() => {
|
|
1340
1359
|
const m = (d) => {
|
|
1341
1360
|
(d.code === `Key${c?.toUpperCase()}` || d.code.toLowerCase() === c?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), l.current());
|
|
1342
1361
|
};
|
|
@@ -1349,8 +1368,8 @@ const Dr = {
|
|
|
1349
1368
|
(m) => m === "meta" || m === "ctrl" || m === "alt" || m === "shift" || m === "option" ? Dr[Ir() ? "apple" : "other"][m] : m
|
|
1350
1369
|
)
|
|
1351
1370
|
};
|
|
1352
|
-
}, zr =
|
|
1353
|
-
|
|
1371
|
+
}, zr = Ze()(
|
|
1372
|
+
Ye(
|
|
1354
1373
|
(e) => ({
|
|
1355
1374
|
selectedServer: void 0,
|
|
1356
1375
|
setSelectedServer: (n) => e({ selectedServer: n })
|
|
@@ -1359,15 +1378,15 @@ const Dr = {
|
|
|
1359
1378
|
)
|
|
1360
1379
|
), Vr = (e) => {
|
|
1361
1380
|
const { selectedServer: n, setSelectedServer: s } = zr();
|
|
1362
|
-
return { selectedServer:
|
|
1381
|
+
return { selectedServer: Vt(
|
|
1363
1382
|
() => n && e.some((r) => r.url === n) ? n : e.at(0)?.url ?? "",
|
|
1364
1383
|
[n, e]
|
|
1365
1384
|
), setSelectedServer: s };
|
|
1366
|
-
},
|
|
1385
|
+
}, dn = xe.forwardRef(
|
|
1367
1386
|
({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
1368
1387
|
"textarea",
|
|
1369
1388
|
{
|
|
1370
|
-
className:
|
|
1389
|
+
className: S(
|
|
1371
1390
|
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1372
1391
|
e
|
|
1373
1392
|
),
|
|
@@ -1376,19 +1395,19 @@ const Dr = {
|
|
|
1376
1395
|
}
|
|
1377
1396
|
)
|
|
1378
1397
|
);
|
|
1379
|
-
|
|
1380
|
-
const
|
|
1398
|
+
dn.displayName = "Textarea";
|
|
1399
|
+
const ve = (e = 0) => {
|
|
1381
1400
|
if (e === 0)
|
|
1382
1401
|
return "0 B";
|
|
1383
1402
|
const n = Math.floor(Math.log(e) / Math.log(1e3));
|
|
1384
1403
|
return `${(e / 1e3 ** n).toFixed(n ? 2 : 0)} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
|
|
1385
|
-
},
|
|
1404
|
+
}, Y = ({
|
|
1386
1405
|
children: e,
|
|
1387
1406
|
className: n
|
|
1388
1407
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1389
1408
|
"div",
|
|
1390
1409
|
{
|
|
1391
|
-
className:
|
|
1410
|
+
className: S(
|
|
1392
1411
|
"grid grid-cols-[max-content_1fr_max-content] items-center gap-2 group bg-muted w-full h-10 ps-4 pe-2 border-b",
|
|
1393
1412
|
n
|
|
1394
1413
|
),
|
|
@@ -1397,20 +1416,20 @@ const ke = (e = 0) => {
|
|
|
1397
1416
|
/* @__PURE__ */ t.jsxs(
|
|
1398
1417
|
de,
|
|
1399
1418
|
{
|
|
1400
|
-
className:
|
|
1419
|
+
className: S(
|
|
1401
1420
|
"flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 opacity-75 rounded-md",
|
|
1402
1421
|
n
|
|
1403
1422
|
),
|
|
1404
1423
|
children: [
|
|
1405
1424
|
/* @__PURE__ */ t.jsx(
|
|
1406
|
-
|
|
1425
|
+
kn,
|
|
1407
1426
|
{
|
|
1408
1427
|
className: "group-data-[state=closed]:hidden shrink-0",
|
|
1409
1428
|
size: 14
|
|
1410
1429
|
}
|
|
1411
1430
|
),
|
|
1412
1431
|
/* @__PURE__ */ t.jsx(
|
|
1413
|
-
|
|
1432
|
+
En,
|
|
1414
1433
|
{
|
|
1415
1434
|
className: "group-data-[state=open]:hidden shrink-0",
|
|
1416
1435
|
size: 14
|
|
@@ -1424,27 +1443,27 @@ const ke = (e = 0) => {
|
|
|
1424
1443
|
), H = ({
|
|
1425
1444
|
children: e,
|
|
1426
1445
|
className: n
|
|
1427
|
-
}) => /* @__PURE__ */ t.jsx("span", { className:
|
|
1446
|
+
}) => /* @__PURE__ */ t.jsx("span", { className: S("font-semibold w-full text-start", n), children: e }), Br = ({
|
|
1428
1447
|
examples: e,
|
|
1429
1448
|
onSelect: n
|
|
1430
|
-
}) => /* @__PURE__ */ t.jsxs(
|
|
1431
|
-
/* @__PURE__ */ t.jsx(
|
|
1432
|
-
|
|
1449
|
+
}) => /* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1450
|
+
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1451
|
+
B,
|
|
1433
1452
|
{
|
|
1434
1453
|
variant: "ghost",
|
|
1435
1454
|
size: "sm",
|
|
1436
1455
|
className: "hover:bg-accent hover:brightness-95 gap-2",
|
|
1437
1456
|
children: [
|
|
1438
1457
|
"Use Example",
|
|
1439
|
-
/* @__PURE__ */ t.jsx(
|
|
1458
|
+
/* @__PURE__ */ t.jsx(Je, { size: 14 })
|
|
1440
1459
|
]
|
|
1441
1460
|
}
|
|
1442
1461
|
) }),
|
|
1443
|
-
/* @__PURE__ */ t.jsx(
|
|
1444
|
-
/* @__PURE__ */ t.jsx(
|
|
1445
|
-
/* @__PURE__ */ t.jsx(
|
|
1446
|
-
/* @__PURE__ */ t.jsx(
|
|
1447
|
-
|
|
1462
|
+
/* @__PURE__ */ t.jsx(Xt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1463
|
+
/* @__PURE__ */ t.jsx(Ts, { children: s.mediaType }),
|
|
1464
|
+
/* @__PURE__ */ t.jsx(As, {}),
|
|
1465
|
+
/* @__PURE__ */ t.jsx(Os, { children: s.examples?.map((a) => /* @__PURE__ */ t.jsx(
|
|
1466
|
+
Oe,
|
|
1448
1467
|
{
|
|
1449
1468
|
onSelect: () => n(a, s.mediaType),
|
|
1450
1469
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -1459,87 +1478,62 @@ const ke = (e = 0) => {
|
|
|
1459
1478
|
a.name
|
|
1460
1479
|
)) })
|
|
1461
1480
|
] }, s.mediaType)) })
|
|
1462
|
-
] }),
|
|
1463
|
-
({ className: e, type: n, ...s }, a) => /* @__PURE__ */ t.jsx(
|
|
1464
|
-
"input",
|
|
1465
|
-
{
|
|
1466
|
-
type: n,
|
|
1467
|
-
className: w(
|
|
1468
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
1469
|
-
e
|
|
1470
|
-
),
|
|
1471
|
-
ref: a,
|
|
1472
|
-
...s
|
|
1473
|
-
}
|
|
1474
|
-
)
|
|
1475
|
-
);
|
|
1476
|
-
cn.displayName = "Input";
|
|
1477
|
-
const ye = (e, n) => {
|
|
1478
|
-
const s = Q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1479
|
-
const c = r ? Es : e;
|
|
1480
|
-
return Q.createElement(c, {
|
|
1481
|
-
...o,
|
|
1482
|
-
ref: i,
|
|
1483
|
-
className: typeof n == "function" ? n({ className: a }) : w(n, a)
|
|
1484
|
-
});
|
|
1485
|
-
});
|
|
1486
|
-
return s.displayName = typeof e == "string" ? `VariantComponent(${e})` : `VariantComponent(${e.displayName || e.name || "Component"})`, s;
|
|
1487
|
-
}, Re = ye(
|
|
1481
|
+
] }), Ee = ye(
|
|
1488
1482
|
"div",
|
|
1489
1483
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5 [&>*:last-child_[data-slot=remove-button]]:invisible"
|
|
1490
|
-
),
|
|
1484
|
+
), ge = ye(
|
|
1491
1485
|
"div",
|
|
1492
1486
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1493
1487
|
), I = ye(
|
|
1494
|
-
|
|
1488
|
+
Ps,
|
|
1495
1489
|
"w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
|
|
1496
|
-
),
|
|
1490
|
+
), at = ({
|
|
1497
1491
|
onClick: e,
|
|
1498
1492
|
className: n
|
|
1499
1493
|
}) => /* @__PURE__ */ t.jsx(
|
|
1500
|
-
|
|
1494
|
+
K,
|
|
1501
1495
|
{
|
|
1502
1496
|
size: "icon-xs",
|
|
1503
1497
|
variant: "ghost",
|
|
1504
|
-
className:
|
|
1498
|
+
className: S(
|
|
1505
1499
|
"text-muted-foreground opacity-0 group-hover:brightness-95 focus-visible:opacity-100 group-hover:opacity-100",
|
|
1506
1500
|
n
|
|
1507
1501
|
),
|
|
1508
1502
|
onClick: e,
|
|
1509
1503
|
type: "button",
|
|
1510
1504
|
"data-slot": "remove-button",
|
|
1511
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1505
|
+
children: /* @__PURE__ */ t.jsx(It, { size: 14 })
|
|
1512
1506
|
}
|
|
1513
1507
|
);
|
|
1514
|
-
function
|
|
1508
|
+
function be({
|
|
1515
1509
|
className: e,
|
|
1516
1510
|
...n
|
|
1517
1511
|
}) {
|
|
1518
1512
|
return /* @__PURE__ */ t.jsx(
|
|
1519
|
-
|
|
1513
|
+
Tt.Root,
|
|
1520
1514
|
{
|
|
1521
1515
|
"data-slot": "checkbox",
|
|
1522
|
-
className:
|
|
1516
|
+
className: S(
|
|
1523
1517
|
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
1524
1518
|
e
|
|
1525
1519
|
),
|
|
1526
1520
|
...n,
|
|
1527
1521
|
children: /* @__PURE__ */ t.jsx(
|
|
1528
|
-
|
|
1522
|
+
Tt.Indicator,
|
|
1529
1523
|
{
|
|
1530
1524
|
"data-slot": "checkbox-indicator",
|
|
1531
1525
|
className: "grid place-content-center text-current transition-none",
|
|
1532
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1526
|
+
children: /* @__PURE__ */ t.jsx(Dt, { className: "size-3.5" })
|
|
1533
1527
|
}
|
|
1534
1528
|
)
|
|
1535
1529
|
}
|
|
1536
1530
|
);
|
|
1537
1531
|
}
|
|
1538
1532
|
const _r = ({ index: e, manager: n }) => {
|
|
1539
|
-
const s =
|
|
1540
|
-
return /* @__PURE__ */ t.jsxs(
|
|
1533
|
+
const s = E(null), a = n.getValue(e, "value");
|
|
1534
|
+
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
1541
1535
|
/* @__PURE__ */ t.jsx(
|
|
1542
|
-
|
|
1536
|
+
be,
|
|
1543
1537
|
{
|
|
1544
1538
|
...n.getCheckboxProps(e),
|
|
1545
1539
|
disabled: !n.getValue(e, "name")
|
|
@@ -1560,13 +1554,13 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1560
1554
|
"span",
|
|
1561
1555
|
{
|
|
1562
1556
|
className: "text-xs truncate",
|
|
1563
|
-
title: `${a.name} (${
|
|
1557
|
+
title: `${a.name} (${ve(a.size)})`,
|
|
1564
1558
|
children: a.name
|
|
1565
1559
|
}
|
|
1566
1560
|
)
|
|
1567
1561
|
] }),
|
|
1568
1562
|
/* @__PURE__ */ t.jsx(
|
|
1569
|
-
|
|
1563
|
+
K,
|
|
1570
1564
|
{
|
|
1571
1565
|
type: "button",
|
|
1572
1566
|
variant: "ghost",
|
|
@@ -1597,7 +1591,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1597
1591
|
}
|
|
1598
1592
|
),
|
|
1599
1593
|
/* @__PURE__ */ t.jsx(
|
|
1600
|
-
|
|
1594
|
+
K,
|
|
1601
1595
|
{
|
|
1602
1596
|
type: "button",
|
|
1603
1597
|
variant: "ghost",
|
|
@@ -1609,10 +1603,10 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1609
1603
|
}
|
|
1610
1604
|
)
|
|
1611
1605
|
] }),
|
|
1612
|
-
/* @__PURE__ */ t.jsx(
|
|
1606
|
+
/* @__PURE__ */ t.jsx(at, { ...n.getRemoveButtonProps(e) })
|
|
1613
1607
|
] })
|
|
1614
1608
|
] });
|
|
1615
|
-
},
|
|
1609
|
+
}, ot = (e) => {
|
|
1616
1610
|
const {
|
|
1617
1611
|
control: n,
|
|
1618
1612
|
name: s,
|
|
@@ -1624,124 +1618,124 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1624
1618
|
watch: c,
|
|
1625
1619
|
setFocus: l,
|
|
1626
1620
|
register: m
|
|
1627
|
-
} =
|
|
1628
|
-
(g, C, T,
|
|
1629
|
-
(C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T),
|
|
1621
|
+
} = oe(), { fields: d, append: f, remove: x } = Ut({ control: n, name: s }), p = c(s), v = E(-1), u = E(-1), y = D(
|
|
1622
|
+
(g, C, T, A) => {
|
|
1623
|
+
(C === "value" || C === "name") && (v.current = g), i(`${s}.${g}.${C}`, T), A?.focus === "next" ? l(
|
|
1630
1624
|
C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`
|
|
1631
|
-
) :
|
|
1625
|
+
) : A?.focus === "previous" && l(
|
|
1632
1626
|
C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`
|
|
1633
1627
|
);
|
|
1634
1628
|
},
|
|
1635
1629
|
[s, i, l]
|
|
1636
|
-
),
|
|
1630
|
+
), w = D(
|
|
1637
1631
|
(g) => r ? r(g) : !g.name && !g.value,
|
|
1638
1632
|
[r]
|
|
1639
|
-
),
|
|
1633
|
+
), R = D(
|
|
1640
1634
|
(g) => o ? o(g) : !!(g.name || g.value),
|
|
1641
1635
|
[o]
|
|
1642
1636
|
);
|
|
1643
|
-
|
|
1644
|
-
if (!
|
|
1637
|
+
U(() => {
|
|
1638
|
+
if (!p) return;
|
|
1645
1639
|
if (u.current === -1) {
|
|
1646
|
-
u.current =
|
|
1640
|
+
u.current = p.length, p.length === 0 && f(a, {
|
|
1647
1641
|
shouldFocus: !1
|
|
1648
1642
|
});
|
|
1649
1643
|
return;
|
|
1650
1644
|
}
|
|
1651
|
-
if (u.current =
|
|
1652
|
-
|
|
1645
|
+
if (u.current = p.length, p.length === 0) {
|
|
1646
|
+
f(a, {
|
|
1653
1647
|
shouldFocus: !1
|
|
1654
1648
|
});
|
|
1655
1649
|
return;
|
|
1656
1650
|
}
|
|
1657
|
-
if (
|
|
1651
|
+
if (p.length > 1) {
|
|
1658
1652
|
const C = [];
|
|
1659
|
-
for (let T = 0; T <
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1653
|
+
for (let T = 0; T < p.length - 1; T++) {
|
|
1654
|
+
const A = p[T];
|
|
1655
|
+
A && w(A) && !R(A) && C.push(T);
|
|
1662
1656
|
}
|
|
1663
1657
|
if (C.length > 0) {
|
|
1664
1658
|
const T = C[0];
|
|
1665
1659
|
if (T === void 0) return;
|
|
1666
|
-
for (let
|
|
1667
|
-
const M = C[
|
|
1660
|
+
for (let A = C.length - 1; A >= 0; A--) {
|
|
1661
|
+
const M = C[A];
|
|
1668
1662
|
M !== void 0 && x(M);
|
|
1669
1663
|
}
|
|
1670
1664
|
if (v.current === T) {
|
|
1671
|
-
const
|
|
1672
|
-
T <
|
|
1665
|
+
const A = p.length - C.length;
|
|
1666
|
+
T < A ? l(`${s}.${T}.name`) : T > 0 ? l(`${s}.${T - 1}.name`) : l(`${s}.0.name`);
|
|
1673
1667
|
}
|
|
1674
1668
|
v.current = -1;
|
|
1675
1669
|
}
|
|
1676
1670
|
}
|
|
1677
|
-
const g =
|
|
1678
|
-
g && !
|
|
1671
|
+
const g = p[p.length - 1];
|
|
1672
|
+
g && !w(g) && f(a, {
|
|
1679
1673
|
shouldFocus: !1
|
|
1680
1674
|
});
|
|
1681
1675
|
}, [
|
|
1676
|
+
p,
|
|
1682
1677
|
f,
|
|
1683
|
-
h,
|
|
1684
1678
|
x,
|
|
1685
1679
|
a,
|
|
1686
|
-
|
|
1680
|
+
w,
|
|
1687
1681
|
s,
|
|
1688
1682
|
l,
|
|
1689
|
-
|
|
1690
|
-
]),
|
|
1691
|
-
if (!
|
|
1683
|
+
R
|
|
1684
|
+
]), U(() => {
|
|
1685
|
+
if (!p) return;
|
|
1692
1686
|
const g = [];
|
|
1693
|
-
for (let C = 0; C <
|
|
1694
|
-
const T =
|
|
1687
|
+
for (let C = 0; C < p.length; C++) {
|
|
1688
|
+
const T = p[C];
|
|
1695
1689
|
if (!T) continue;
|
|
1696
|
-
const
|
|
1697
|
-
T.active !==
|
|
1690
|
+
const A = R(T);
|
|
1691
|
+
T.active !== A && g.push(() => y(C, "active", A));
|
|
1698
1692
|
}
|
|
1699
|
-
g.length !== 0 &&
|
|
1700
|
-
}, [
|
|
1701
|
-
const
|
|
1693
|
+
g.length !== 0 && ls(() => g.forEach((C) => C()));
|
|
1694
|
+
}, [p, R, y]);
|
|
1695
|
+
const N = D(
|
|
1702
1696
|
(g) => {
|
|
1703
|
-
const C =
|
|
1704
|
-
return C ?
|
|
1697
|
+
const C = p?.[g];
|
|
1698
|
+
return C ? w(C) : !0;
|
|
1705
1699
|
},
|
|
1706
|
-
[
|
|
1700
|
+
[p, w]
|
|
1707
1701
|
), j = D(
|
|
1708
1702
|
(g, C) => {
|
|
1709
|
-
const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`,
|
|
1703
|
+
const T = C === "name" ? `${s}.${g}.value` : `${s}.${g + 1}.name`, A = C === "name" ? `${s}.${g - 1}.value` : `${s}.${g}.name`, M = C === "value" || g > 0;
|
|
1710
1704
|
return (L) => {
|
|
1711
1705
|
if (!(L.target instanceof HTMLInputElement)) return;
|
|
1712
|
-
const De = L.target.selectionStart === 0,
|
|
1713
|
-
L.key === "Enter" ? l(T) : L.key === "Backspace" &&
|
|
1706
|
+
const De = L.target.selectionStart === 0, ne = L.target.selectionStart === L.target.value.length, Ce = !L.target.value;
|
|
1707
|
+
L.key === "Enter" ? l(T) : L.key === "Backspace" && Ce && M || L.key === "ArrowLeft" && De && M ? (L.preventDefault(), l(A)) : L.key === "ArrowRight" && ne && (L.preventDefault(), l(T));
|
|
1714
1708
|
};
|
|
1715
1709
|
},
|
|
1716
1710
|
[s, l]
|
|
1717
|
-
),
|
|
1711
|
+
), $ = D(
|
|
1718
1712
|
(g) => ({
|
|
1719
1713
|
...m(`${s}.${g}.name`),
|
|
1720
1714
|
onChange: (C) => y(g, "name", C.target.value),
|
|
1721
1715
|
onKeyDown: j(g, "name")
|
|
1722
1716
|
}),
|
|
1723
1717
|
[m, s, y, j]
|
|
1724
|
-
),
|
|
1718
|
+
), Q = D(
|
|
1725
1719
|
(g) => ({
|
|
1726
1720
|
...m(`${s}.${g}.value`),
|
|
1727
1721
|
onChange: (C) => y(g, "value", C.target.value),
|
|
1728
1722
|
onKeyDown: j(g, "value")
|
|
1729
1723
|
}),
|
|
1730
1724
|
[m, s, y, j]
|
|
1731
|
-
),
|
|
1725
|
+
), je = D(
|
|
1732
1726
|
(g) => ({
|
|
1733
1727
|
...m(`${s}.${g}.active`),
|
|
1734
1728
|
checked: c(`${s}.${g}.active`) ?? !1,
|
|
1735
|
-
disabled:
|
|
1729
|
+
disabled: N(g),
|
|
1736
1730
|
onCheckedChange: (C) => {
|
|
1737
1731
|
y(g, "active", C === !0);
|
|
1738
1732
|
}
|
|
1739
1733
|
}),
|
|
1740
|
-
[s, m,
|
|
1734
|
+
[s, m, N, c, y]
|
|
1741
1735
|
), Ie = D(
|
|
1742
|
-
(g, C) =>
|
|
1743
|
-
[
|
|
1744
|
-
),
|
|
1736
|
+
(g, C) => p?.[g]?.[C],
|
|
1737
|
+
[p]
|
|
1738
|
+
), te = D(
|
|
1745
1739
|
(g) => ({
|
|
1746
1740
|
onClick: () => x(g),
|
|
1747
1741
|
disabled: g === d.length - 1
|
|
@@ -1750,87 +1744,87 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1750
1744
|
);
|
|
1751
1745
|
return {
|
|
1752
1746
|
fields: d,
|
|
1753
|
-
getNameInputProps:
|
|
1754
|
-
getValueInputProps:
|
|
1755
|
-
getCheckboxProps:
|
|
1756
|
-
getRemoveButtonProps:
|
|
1747
|
+
getNameInputProps: $,
|
|
1748
|
+
getValueInputProps: Q,
|
|
1749
|
+
getCheckboxProps: je,
|
|
1750
|
+
getRemoveButtonProps: te,
|
|
1757
1751
|
setValue: y,
|
|
1758
1752
|
getValue: Ie
|
|
1759
1753
|
};
|
|
1760
1754
|
}, qr = ({ content: e }) => {
|
|
1761
|
-
const { register: n, setValue: s, watch: a, control: r } =
|
|
1755
|
+
const { register: n, setValue: s, watch: a, control: r } = oe(), o = (e ?? []).flatMap((j) => j.examples), [i, c, l, m, d] = a([
|
|
1762
1756
|
"headers",
|
|
1763
1757
|
"file",
|
|
1764
1758
|
"bodyMode",
|
|
1765
1759
|
"body",
|
|
1766
1760
|
"multipartFormFields"
|
|
1767
|
-
]),
|
|
1761
|
+
]), f = E(null), [x, p] = k(!1), v = (j) => {
|
|
1768
1762
|
s("file", j), j && s(
|
|
1769
1763
|
"headers",
|
|
1770
1764
|
i.filter(
|
|
1771
|
-
(
|
|
1765
|
+
($) => $.name.toLowerCase() !== "content-type" || !$.active
|
|
1772
1766
|
)
|
|
1773
1767
|
);
|
|
1774
1768
|
}, u = (j) => {
|
|
1775
|
-
const
|
|
1776
|
-
v(
|
|
1769
|
+
const $ = j.target.files?.[0] ?? null;
|
|
1770
|
+
v($);
|
|
1777
1771
|
}, y = (j) => {
|
|
1778
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1779
|
-
},
|
|
1780
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1781
|
-
},
|
|
1782
|
-
j.preventDefault(), j.stopPropagation(),
|
|
1783
|
-
const
|
|
1784
|
-
v(
|
|
1785
|
-
},
|
|
1772
|
+
j.preventDefault(), j.stopPropagation(), p(!0);
|
|
1773
|
+
}, w = (j) => {
|
|
1774
|
+
j.preventDefault(), j.stopPropagation(), p(!1);
|
|
1775
|
+
}, R = (j) => {
|
|
1776
|
+
j.preventDefault(), j.stopPropagation(), p(!1);
|
|
1777
|
+
const $ = j.dataTransfer.files?.[0] ?? null;
|
|
1778
|
+
v($);
|
|
1779
|
+
}, N = ot({
|
|
1786
1780
|
control: r,
|
|
1787
1781
|
name: "multipartFormFields",
|
|
1788
1782
|
defaultValue: { name: "", value: "", active: !1 },
|
|
1789
1783
|
isEmpty: (j) => j.value instanceof File ? !1 : !j.name && !j.value
|
|
1790
1784
|
});
|
|
1791
|
-
return /* @__PURE__ */ t.jsxs(
|
|
1792
|
-
/* @__PURE__ */ t.jsxs(
|
|
1793
|
-
/* @__PURE__ */ t.jsx(
|
|
1785
|
+
return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
1786
|
+
/* @__PURE__ */ t.jsxs(Y, { className: "items-center", children: [
|
|
1787
|
+
/* @__PURE__ */ t.jsx(In, { size: 16 }),
|
|
1794
1788
|
/* @__PURE__ */ t.jsxs(H, { className: "flex items-center justify-between", children: [
|
|
1795
1789
|
"Body",
|
|
1796
1790
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center", children: [
|
|
1797
|
-
/* @__PURE__ */ t.jsxs(
|
|
1798
|
-
/* @__PURE__ */ t.jsx(
|
|
1799
|
-
|
|
1791
|
+
/* @__PURE__ */ t.jsxs(Jt, { children: [
|
|
1792
|
+
/* @__PURE__ */ t.jsx(Wt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
1793
|
+
K,
|
|
1800
1794
|
{
|
|
1801
1795
|
variant: "ghost",
|
|
1802
1796
|
size: "sm",
|
|
1803
1797
|
className: "hover:bg-accent hover:brightness-95 gap-2",
|
|
1804
1798
|
children: [
|
|
1805
1799
|
l === "text" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1806
|
-
/* @__PURE__ */ t.jsx(
|
|
1800
|
+
/* @__PURE__ */ t.jsx(yt, { size: 14 }),
|
|
1807
1801
|
"Text"
|
|
1808
1802
|
] }) : l === "file" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1809
1803
|
/* @__PURE__ */ t.jsx(me, { size: 14 }),
|
|
1810
1804
|
"File"
|
|
1811
1805
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1812
|
-
/* @__PURE__ */ t.jsx(
|
|
1806
|
+
/* @__PURE__ */ t.jsx(vt, { size: 14 }),
|
|
1813
1807
|
"Multipart"
|
|
1814
1808
|
] }),
|
|
1815
|
-
/* @__PURE__ */ t.jsx(
|
|
1809
|
+
/* @__PURE__ */ t.jsx(Dn, { size: 14 })
|
|
1816
1810
|
]
|
|
1817
1811
|
}
|
|
1818
1812
|
) }),
|
|
1819
|
-
/* @__PURE__ */ t.jsxs(
|
|
1813
|
+
/* @__PURE__ */ t.jsxs(Xt, { className: "min-w-40", children: [
|
|
1820
1814
|
/* @__PURE__ */ t.jsxs(
|
|
1821
|
-
|
|
1815
|
+
Oe,
|
|
1822
1816
|
{
|
|
1823
1817
|
onSelect: () => s("bodyMode", "text"),
|
|
1824
1818
|
className: "gap-2",
|
|
1825
1819
|
children: [
|
|
1826
|
-
/* @__PURE__ */ t.jsx(
|
|
1820
|
+
/* @__PURE__ */ t.jsx(yt, { size: 14 }),
|
|
1827
1821
|
/* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Text" }),
|
|
1828
1822
|
/* @__PURE__ */ t.jsx("span", { children: m.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
|
|
1829
1823
|
]
|
|
1830
1824
|
}
|
|
1831
1825
|
),
|
|
1832
1826
|
/* @__PURE__ */ t.jsxs(
|
|
1833
|
-
|
|
1827
|
+
Oe,
|
|
1834
1828
|
{
|
|
1835
1829
|
onSelect: () => s("bodyMode", "file"),
|
|
1836
1830
|
className: "gap-2",
|
|
@@ -1842,12 +1836,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1842
1836
|
}
|
|
1843
1837
|
),
|
|
1844
1838
|
/* @__PURE__ */ t.jsxs(
|
|
1845
|
-
|
|
1839
|
+
Oe,
|
|
1846
1840
|
{
|
|
1847
1841
|
onSelect: () => s("bodyMode", "multipart"),
|
|
1848
1842
|
className: "gap-2",
|
|
1849
1843
|
children: [
|
|
1850
|
-
/* @__PURE__ */ t.jsx(
|
|
1844
|
+
/* @__PURE__ */ t.jsx(vt, { size: 14, strokeWidth: 1.5 }),
|
|
1851
1845
|
/* @__PURE__ */ t.jsx("span", { className: "flex-1", children: "Multipart" }),
|
|
1852
1846
|
/* @__PURE__ */ t.jsx("span", { children: d?.some((j) => j.active) && /* @__PURE__ */ t.jsx("div", { className: "w-1.5 h-1.5 bg-primary rounded-full" }) })
|
|
1853
1847
|
]
|
|
@@ -1858,7 +1852,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1858
1852
|
/* @__PURE__ */ t.jsx(
|
|
1859
1853
|
"input",
|
|
1860
1854
|
{
|
|
1861
|
-
ref:
|
|
1855
|
+
ref: f,
|
|
1862
1856
|
type: "file",
|
|
1863
1857
|
className: "hidden",
|
|
1864
1858
|
onChange: u
|
|
@@ -1869,12 +1863,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1869
1863
|
Br,
|
|
1870
1864
|
{
|
|
1871
1865
|
examples: e,
|
|
1872
|
-
onSelect: (j,
|
|
1866
|
+
onSelect: (j, $) => {
|
|
1873
1867
|
s("body", JSON.stringify(j.value, null, 2)), s("headers", [
|
|
1874
|
-
...i.filter((
|
|
1868
|
+
...i.filter((Q) => Q.name !== "Content-Type"),
|
|
1875
1869
|
{
|
|
1876
1870
|
name: "Content-Type",
|
|
1877
|
-
value:
|
|
1871
|
+
value: $,
|
|
1878
1872
|
active: !0
|
|
1879
1873
|
}
|
|
1880
1874
|
]);
|
|
@@ -1884,12 +1878,12 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1884
1878
|
] })
|
|
1885
1879
|
] })
|
|
1886
1880
|
] }),
|
|
1887
|
-
/* @__PURE__ */ t.jsxs(
|
|
1881
|
+
/* @__PURE__ */ t.jsxs(q, { className: "CollapsibleContent flex flex-col gap-2", children: [
|
|
1888
1882
|
l === "text" && /* @__PURE__ */ t.jsx(
|
|
1889
|
-
|
|
1883
|
+
dn,
|
|
1890
1884
|
{
|
|
1891
1885
|
...n("body"),
|
|
1892
|
-
className:
|
|
1886
|
+
className: S(
|
|
1893
1887
|
"w-full px-4 py-2.5 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0 transition-colors"
|
|
1894
1888
|
),
|
|
1895
1889
|
placeholder: "Body content"
|
|
@@ -1900,19 +1894,19 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1900
1894
|
{
|
|
1901
1895
|
role: "region",
|
|
1902
1896
|
"aria-label": "File upload drop zone",
|
|
1903
|
-
className:
|
|
1897
|
+
className: S(
|
|
1904
1898
|
"flex flex-col items-center justify-center gap-4 min-h-[300px]"
|
|
1905
1899
|
),
|
|
1906
1900
|
onDragOver: y,
|
|
1907
|
-
onDragLeave:
|
|
1908
|
-
onDrop:
|
|
1901
|
+
onDragLeave: w,
|
|
1902
|
+
onDrop: R,
|
|
1909
1903
|
children: [
|
|
1910
1904
|
/* @__PURE__ */ t.jsx(
|
|
1911
1905
|
"button",
|
|
1912
1906
|
{
|
|
1913
1907
|
type: "button",
|
|
1914
|
-
onClick: () =>
|
|
1915
|
-
className:
|
|
1908
|
+
onClick: () => f.current?.click(),
|
|
1909
|
+
className: S(
|
|
1916
1910
|
"flex items-center justify-center gap-2 rounded-full size-20 p-0 border border-dashed border-muted-foreground/50 hover:bg-accent/75 transition-colors",
|
|
1917
1911
|
(c || x) && "border-solid",
|
|
1918
1912
|
x && "bg-accent border-primary"
|
|
@@ -1920,7 +1914,7 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1920
1914
|
children: /* @__PURE__ */ t.jsx(
|
|
1921
1915
|
me,
|
|
1922
1916
|
{
|
|
1923
|
-
className:
|
|
1917
|
+
className: S(
|
|
1924
1918
|
"text-muted-foreground",
|
|
1925
1919
|
x && "text-primary"
|
|
1926
1920
|
),
|
|
@@ -1935,28 +1929,28 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1935
1929
|
" ",
|
|
1936
1930
|
/* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
1937
1931
|
"(",
|
|
1938
|
-
|
|
1932
|
+
ve(c.size),
|
|
1939
1933
|
")"
|
|
1940
1934
|
] })
|
|
1941
1935
|
] }),
|
|
1942
1936
|
/* @__PURE__ */ t.jsx(
|
|
1943
|
-
|
|
1937
|
+
K,
|
|
1944
1938
|
{
|
|
1945
1939
|
type: "button",
|
|
1946
1940
|
variant: "ghost",
|
|
1947
1941
|
size: "icon-xxs",
|
|
1948
1942
|
onClick: () => v(null),
|
|
1949
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1943
|
+
children: /* @__PURE__ */ t.jsx(It, { size: 14 })
|
|
1950
1944
|
}
|
|
1951
1945
|
)
|
|
1952
1946
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "text-lg font-semibold text-muted-foreground", children: "Select or drop a file" })
|
|
1953
1947
|
]
|
|
1954
1948
|
}
|
|
1955
1949
|
),
|
|
1956
|
-
l === "multipart" && /* @__PURE__ */ t.jsx(
|
|
1950
|
+
l === "multipart" && /* @__PURE__ */ t.jsx(Ee, { children: N.fields.map((j, $) => /* @__PURE__ */ t.jsx(_r, { index: $, manager: N }, j.id)) })
|
|
1957
1951
|
] })
|
|
1958
1952
|
] });
|
|
1959
|
-
},
|
|
1953
|
+
}, Lt = (e, n, s) => {
|
|
1960
1954
|
const a = n.replace(/(:\w+|\{\w+})/g, (o) => {
|
|
1961
1955
|
const i = o.replace(/[:{}]/g, "");
|
|
1962
1956
|
return s.pathParams.find((l) => l.name === i)?.value ?? o;
|
|
@@ -1968,12 +1962,15 @@ const _r = ({ index: e, manager: n }) => {
|
|
|
1968
1962
|
r.searchParams.set(o.name, o.value);
|
|
1969
1963
|
}), r;
|
|
1970
1964
|
};
|
|
1971
|
-
function
|
|
1965
|
+
function Ur(e) {
|
|
1972
1966
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1973
1967
|
e
|
|
1974
1968
|
);
|
|
1975
1969
|
}
|
|
1976
|
-
|
|
1970
|
+
function Mr(e) {
|
|
1971
|
+
return /^audio\//i.test(e);
|
|
1972
|
+
}
|
|
1973
|
+
const Gr = (e, n) => {
|
|
1977
1974
|
const s = e.find(
|
|
1978
1975
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1979
1976
|
)?.[1];
|
|
@@ -1990,21 +1987,21 @@ const Ur = (e, n) => {
|
|
|
1990
1987
|
} catch {
|
|
1991
1988
|
return "download";
|
|
1992
1989
|
}
|
|
1993
|
-
},
|
|
1994
|
-
|
|
1990
|
+
}, Hr = Pe.Root, un = xe.forwardRef(({ className: e, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ t.jsx(Pe.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
1991
|
+
Pe.Content,
|
|
1995
1992
|
{
|
|
1996
1993
|
ref: r,
|
|
1997
1994
|
align: n,
|
|
1998
1995
|
sideOffset: s,
|
|
1999
|
-
className:
|
|
1996
|
+
className: S(
|
|
2000
1997
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2001
1998
|
e
|
|
2002
1999
|
),
|
|
2003
2000
|
...a
|
|
2004
2001
|
}
|
|
2005
2002
|
) }));
|
|
2006
|
-
|
|
2007
|
-
const
|
|
2003
|
+
un.displayName = Pe.Content.displayName;
|
|
2004
|
+
const Qr = ({
|
|
2008
2005
|
value: e,
|
|
2009
2006
|
options: n,
|
|
2010
2007
|
onChange: s,
|
|
@@ -2015,10 +2012,10 @@ const Hr = ({
|
|
|
2015
2012
|
ref: c,
|
|
2016
2013
|
onSelect: l
|
|
2017
2014
|
}) => {
|
|
2018
|
-
const [m, d] =
|
|
2019
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2020
|
-
/* @__PURE__ */ t.jsx(
|
|
2021
|
-
|
|
2015
|
+
const [m, d] = k(!1), [f, x] = k(!1), p = Ls((u) => u.filtered.count), v = E(null);
|
|
2016
|
+
return /* @__PURE__ */ t.jsxs(Hr, { open: m, children: [
|
|
2017
|
+
/* @__PURE__ */ t.jsx($s, { children: /* @__PURE__ */ t.jsx(
|
|
2018
|
+
Es,
|
|
2022
2019
|
{
|
|
2023
2020
|
autoComplete: "off",
|
|
2024
2021
|
ref: (u) => {
|
|
@@ -2026,10 +2023,10 @@ const Hr = ({
|
|
|
2026
2023
|
},
|
|
2027
2024
|
value: e ? String(e) : void 0,
|
|
2028
2025
|
placeholder: r,
|
|
2029
|
-
className:
|
|
2026
|
+
className: S("h-9 bg-transparent", a),
|
|
2030
2027
|
onFocus: () => d(!0),
|
|
2031
2028
|
onBlur: () => {
|
|
2032
|
-
|
|
2029
|
+
f || d(!1);
|
|
2033
2030
|
},
|
|
2034
2031
|
onKeyDown: (u) => {
|
|
2035
2032
|
i?.(u), !u.defaultPrevented && u.key === "Enter" && (d(!1), v.current?.blur(), o?.(u));
|
|
@@ -2038,13 +2035,13 @@ const Hr = ({
|
|
|
2038
2035
|
}
|
|
2039
2036
|
) }),
|
|
2040
2037
|
/* @__PURE__ */ t.jsx(
|
|
2041
|
-
|
|
2038
|
+
un,
|
|
2042
2039
|
{
|
|
2043
2040
|
onMouseEnter: () => x(!0),
|
|
2044
2041
|
onMouseLeave: () => x(!1),
|
|
2045
2042
|
onOpenAutoFocus: (u) => u.preventDefault(),
|
|
2046
|
-
className:
|
|
2047
|
-
"border-0":
|
|
2043
|
+
className: S("p-0 w-(--radix-popover-trigger-width)", {
|
|
2044
|
+
"border-0": p === 0
|
|
2048
2045
|
}),
|
|
2049
2046
|
align: "start",
|
|
2050
2047
|
side: "bottom",
|
|
@@ -2054,8 +2051,8 @@ const Hr = ({
|
|
|
2054
2051
|
onTouchMove: (u) => {
|
|
2055
2052
|
u.stopPropagation();
|
|
2056
2053
|
},
|
|
2057
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2058
|
-
|
|
2054
|
+
children: /* @__PURE__ */ t.jsx(Rs, { className: "max-h-[140px]", children: n.map((u) => /* @__PURE__ */ t.jsx(
|
|
2055
|
+
Is,
|
|
2059
2056
|
{
|
|
2060
2057
|
value: u,
|
|
2061
2058
|
onSelect: (y) => {
|
|
@@ -2069,7 +2066,7 @@ const Hr = ({
|
|
|
2069
2066
|
}
|
|
2070
2067
|
)
|
|
2071
2068
|
] });
|
|
2072
|
-
},
|
|
2069
|
+
}, $e = ({ shouldFilter: e, ...n }) => /* @__PURE__ */ t.jsx(ks, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ t.jsx(Qr, { ...n }) }), Jr = Object.freeze([
|
|
2073
2070
|
"Accept",
|
|
2074
2071
|
"Accept-Encoding",
|
|
2075
2072
|
"Accept-Language",
|
|
@@ -2096,67 +2093,67 @@ const Hr = ({
|
|
|
2096
2093
|
"Set-Cookie",
|
|
2097
2094
|
"User-Agent",
|
|
2098
2095
|
"X-Requested-With"
|
|
2099
|
-
]),
|
|
2096
|
+
]), Wr = ({
|
|
2100
2097
|
control: e,
|
|
2101
2098
|
schemaHeaders: n,
|
|
2102
2099
|
lockedHeaders: s
|
|
2103
2100
|
}) => {
|
|
2104
|
-
const { watch: a, formState: r } =
|
|
2101
|
+
const { watch: a, formState: r } = oe(), o = a("headers"), i = ot({
|
|
2105
2102
|
control: e,
|
|
2106
2103
|
name: "headers",
|
|
2107
2104
|
defaultValue: { name: "", value: "", active: !1 }
|
|
2108
|
-
}), c = n.filter((d) => !o.some((
|
|
2105
|
+
}), c = n.filter((d) => !o.some((f) => f.name === d.name)).map(({ name: d }) => d), l = i.fields.flatMap((d, f) => !s?.map((p) => p.toLowerCase()).includes(d.name.toLowerCase()) ? [] : [f]), m = s?.map((d) => ({
|
|
2109
2106
|
name: d,
|
|
2110
2107
|
id: `locked-${d}`,
|
|
2111
2108
|
value: "••••••••••",
|
|
2112
2109
|
active: !0,
|
|
2113
2110
|
locked: !0
|
|
2114
2111
|
})) ?? [];
|
|
2115
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2116
|
-
/* @__PURE__ */ t.jsxs(
|
|
2117
|
-
/* @__PURE__ */ t.jsx(
|
|
2112
|
+
return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2113
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2114
|
+
/* @__PURE__ */ t.jsx(Fn, { size: 14 }),
|
|
2118
2115
|
/* @__PURE__ */ t.jsx(H, { children: "Headers" })
|
|
2119
2116
|
] }),
|
|
2120
|
-
/* @__PURE__ */ t.jsx(
|
|
2121
|
-
m.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2122
|
-
/* @__PURE__ */ t.jsx(
|
|
2123
|
-
|
|
2117
|
+
/* @__PURE__ */ t.jsx(q, { 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(Ee, { children: [
|
|
2118
|
+
m.map((d) => /* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2119
|
+
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2120
|
+
ge,
|
|
2124
2121
|
{
|
|
2125
2122
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
2126
2123
|
children: [
|
|
2127
|
-
/* @__PURE__ */ t.jsx(
|
|
2124
|
+
/* @__PURE__ */ t.jsx(zn, { size: 16 }),
|
|
2128
2125
|
/* @__PURE__ */ t.jsx(I, { value: d.name, disabled: !0 }),
|
|
2129
2126
|
/* @__PURE__ */ t.jsx("div", { children: d.value })
|
|
2130
2127
|
]
|
|
2131
2128
|
},
|
|
2132
2129
|
d.id
|
|
2133
2130
|
) }),
|
|
2134
|
-
/* @__PURE__ */ t.jsx(
|
|
2131
|
+
/* @__PURE__ */ t.jsx(wt, { alignOffset: 10, side: "bottom", align: "start", children: /* @__PURE__ */ t.jsx("p", { children: "This header is set by the selected authentication." }) })
|
|
2135
2132
|
] }, d.id)),
|
|
2136
|
-
i.fields.map((d,
|
|
2133
|
+
i.fields.map((d, f) => {
|
|
2137
2134
|
const x = n.find(
|
|
2138
|
-
(
|
|
2139
|
-
),
|
|
2135
|
+
(w) => w.name === o.at(f)?.name
|
|
2136
|
+
), p = x?.enum && x.enum.length > 0, v = l.includes(f), u = i.getNameInputProps(f), y = i.getValueInputProps(f);
|
|
2140
2137
|
return /* @__PURE__ */ t.jsxs(
|
|
2141
|
-
|
|
2138
|
+
ge,
|
|
2142
2139
|
{
|
|
2143
|
-
className:
|
|
2140
|
+
className: S(
|
|
2144
2141
|
v && "text-amber-600",
|
|
2145
|
-
v && !r.dirtyFields.headers?.[
|
|
2142
|
+
v && !r.dirtyFields.headers?.[f]?.value && "hidden"
|
|
2146
2143
|
),
|
|
2147
2144
|
children: [
|
|
2148
2145
|
/* @__PURE__ */ t.jsx(
|
|
2149
|
-
|
|
2146
|
+
be,
|
|
2150
2147
|
{
|
|
2151
|
-
className:
|
|
2152
|
-
...i.getCheckboxProps(
|
|
2148
|
+
className: S(v && "hidden"),
|
|
2149
|
+
...i.getCheckboxProps(f)
|
|
2153
2150
|
}
|
|
2154
2151
|
),
|
|
2155
|
-
/* @__PURE__ */ t.jsxs(
|
|
2156
|
-
/* @__PURE__ */ t.jsx(
|
|
2157
|
-
|
|
2152
|
+
/* @__PURE__ */ t.jsxs(Ct, { children: [
|
|
2153
|
+
/* @__PURE__ */ t.jsx(Nt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2154
|
+
Vn,
|
|
2158
2155
|
{
|
|
2159
|
-
className:
|
|
2156
|
+
className: S(
|
|
2160
2157
|
"text-amber-600",
|
|
2161
2158
|
!v && "hidden"
|
|
2162
2159
|
),
|
|
@@ -2164,7 +2161,7 @@ const Hr = ({
|
|
|
2164
2161
|
}
|
|
2165
2162
|
) }),
|
|
2166
2163
|
/* @__PURE__ */ t.jsx(
|
|
2167
|
-
|
|
2164
|
+
wt,
|
|
2168
2165
|
{
|
|
2169
2166
|
alignOffset: 10,
|
|
2170
2167
|
side: "bottom",
|
|
@@ -2174,26 +2171,26 @@ const Hr = ({
|
|
|
2174
2171
|
)
|
|
2175
2172
|
] }),
|
|
2176
2173
|
/* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2177
|
-
|
|
2174
|
+
$e,
|
|
2178
2175
|
{
|
|
2179
2176
|
...u,
|
|
2180
|
-
value: String(i.getValue(
|
|
2177
|
+
value: String(i.getValue(f, "name")),
|
|
2181
2178
|
placeholder: "Name",
|
|
2182
|
-
options: [...c, ...
|
|
2183
|
-
onChange: (
|
|
2184
|
-
onSelect: (
|
|
2179
|
+
options: [...c, ...Jr],
|
|
2180
|
+
onChange: (w) => i.setValue(f, "name", w),
|
|
2181
|
+
onSelect: (w) => i.setValue(f, "name", w, { focus: "next" })
|
|
2185
2182
|
}
|
|
2186
2183
|
) }),
|
|
2187
2184
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2188
|
-
|
|
2189
|
-
|
|
2185
|
+
p ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2186
|
+
$e,
|
|
2190
2187
|
{
|
|
2191
2188
|
...y,
|
|
2192
|
-
value: String(i.getValue(
|
|
2189
|
+
value: String(i.getValue(f, "value")),
|
|
2193
2190
|
shouldFilter: !1,
|
|
2194
2191
|
options: x.enum ?? [],
|
|
2195
|
-
onChange: (
|
|
2196
|
-
onSelect: (
|
|
2192
|
+
onChange: (w) => i.setValue(f, "value", w),
|
|
2193
|
+
onSelect: (w) => i.setValue(f, "value", w, { focus: "next" })
|
|
2197
2194
|
}
|
|
2198
2195
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2199
2196
|
I,
|
|
@@ -2204,9 +2201,9 @@ const Hr = ({
|
|
|
2204
2201
|
}
|
|
2205
2202
|
),
|
|
2206
2203
|
/* @__PURE__ */ t.jsx(
|
|
2207
|
-
|
|
2204
|
+
at,
|
|
2208
2205
|
{
|
|
2209
|
-
...i.getRemoveButtonProps(
|
|
2206
|
+
...i.getRemoveButtonProps(f)
|
|
2210
2207
|
}
|
|
2211
2208
|
)
|
|
2212
2209
|
] })
|
|
@@ -2217,45 +2214,45 @@ const Hr = ({
|
|
|
2217
2214
|
})
|
|
2218
2215
|
] }) }) }) })
|
|
2219
2216
|
] });
|
|
2220
|
-
},
|
|
2217
|
+
}, Xr = Fs(
|
|
2221
2218
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2222
|
-
),
|
|
2223
|
-
|
|
2219
|
+
), Re = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2220
|
+
Kt.Root,
|
|
2224
2221
|
{
|
|
2225
2222
|
ref: s,
|
|
2226
|
-
className:
|
|
2223
|
+
className: S(Xr(), e),
|
|
2227
2224
|
...n
|
|
2228
2225
|
}
|
|
2229
2226
|
));
|
|
2230
|
-
|
|
2231
|
-
const
|
|
2232
|
-
|
|
2227
|
+
Re.displayName = Kt.Root.displayName;
|
|
2228
|
+
const mn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2229
|
+
he.Root,
|
|
2233
2230
|
{
|
|
2234
|
-
className:
|
|
2231
|
+
className: S("grid gap-2", e),
|
|
2235
2232
|
...n,
|
|
2236
2233
|
ref: s
|
|
2237
2234
|
}
|
|
2238
2235
|
));
|
|
2239
|
-
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2236
|
+
mn.displayName = he.Root.displayName;
|
|
2237
|
+
const pn = xe.forwardRef(({ className: e, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
2238
|
+
he.Item,
|
|
2242
2239
|
{
|
|
2243
2240
|
ref: s,
|
|
2244
|
-
className:
|
|
2241
|
+
className: S(
|
|
2245
2242
|
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
2246
2243
|
e
|
|
2247
2244
|
),
|
|
2248
2245
|
...n,
|
|
2249
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2246
|
+
children: /* @__PURE__ */ t.jsx(he.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Bn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
2250
2247
|
}
|
|
2251
2248
|
));
|
|
2252
|
-
|
|
2253
|
-
const
|
|
2249
|
+
pn.displayName = he.Item.displayName;
|
|
2250
|
+
const hn = ({
|
|
2254
2251
|
identities: e,
|
|
2255
2252
|
setValue: n,
|
|
2256
2253
|
value: s
|
|
2257
2254
|
}) => /* @__PURE__ */ t.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ t.jsx(
|
|
2258
|
-
|
|
2255
|
+
mn,
|
|
2259
2256
|
{
|
|
2260
2257
|
onValueChange: (a) => n(a),
|
|
2261
2258
|
value: s,
|
|
@@ -2264,11 +2261,11 @@ const pn = ({
|
|
|
2264
2261
|
disabled: e?.length === 0,
|
|
2265
2262
|
children: [{ id: pe, label: "None" }, ...e ?? []].map(
|
|
2266
2263
|
(a) => /* @__PURE__ */ t.jsxs(
|
|
2267
|
-
|
|
2264
|
+
Re,
|
|
2268
2265
|
{
|
|
2269
2266
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
2270
2267
|
children: [
|
|
2271
|
-
/* @__PURE__ */ t.jsx(
|
|
2268
|
+
/* @__PURE__ */ t.jsx(pn, { value: a.id, id: a.id }),
|
|
2272
2269
|
/* @__PURE__ */ t.jsx("span", { children: a.label })
|
|
2273
2270
|
]
|
|
2274
2271
|
},
|
|
@@ -2282,22 +2279,22 @@ const pn = ({
|
|
|
2282
2279
|
open: s,
|
|
2283
2280
|
onOpenChange: a
|
|
2284
2281
|
}) => {
|
|
2285
|
-
const [r, o] =
|
|
2286
|
-
return /* @__PURE__ */ t.jsx(
|
|
2287
|
-
/* @__PURE__ */ t.jsx(
|
|
2288
|
-
/* @__PURE__ */ t.jsx(
|
|
2289
|
-
/* @__PURE__ */ t.jsx(
|
|
2290
|
-
|
|
2282
|
+
const [r, o] = k(void 0), [i, c] = k(!1);
|
|
2283
|
+
return /* @__PURE__ */ t.jsx(et, { open: s, onOpenChange: a, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2284
|
+
/* @__PURE__ */ t.jsx(nt, { children: "Select an auth identity" }),
|
|
2285
|
+
/* @__PURE__ */ t.jsx(_t, { children: "Please select an identity for this request." }),
|
|
2286
|
+
/* @__PURE__ */ t.jsx(Ds, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ t.jsx(
|
|
2287
|
+
hn,
|
|
2291
2288
|
{
|
|
2292
2289
|
identities: n,
|
|
2293
2290
|
setValue: o,
|
|
2294
2291
|
value: r
|
|
2295
2292
|
}
|
|
2296
2293
|
) }),
|
|
2297
|
-
/* @__PURE__ */ t.jsxs(
|
|
2294
|
+
/* @__PURE__ */ t.jsxs(qt, { className: "flex flex-col gap-2", children: [
|
|
2298
2295
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2299
2296
|
/* @__PURE__ */ t.jsx(
|
|
2300
|
-
|
|
2297
|
+
be,
|
|
2301
2298
|
{
|
|
2302
2299
|
id: "remember",
|
|
2303
2300
|
checked: i,
|
|
@@ -2306,10 +2303,10 @@ const pn = ({
|
|
|
2306
2303
|
)
|
|
2307
2304
|
}
|
|
2308
2305
|
),
|
|
2309
|
-
/* @__PURE__ */ t.jsx(
|
|
2306
|
+
/* @__PURE__ */ t.jsx(Re, { htmlFor: "remember", children: "Remember my choice" })
|
|
2310
2307
|
] }),
|
|
2311
2308
|
/* @__PURE__ */ t.jsx(
|
|
2312
|
-
|
|
2309
|
+
B,
|
|
2313
2310
|
{
|
|
2314
2311
|
onClick: () => e({ identity: r, rememberedIdentity: i }),
|
|
2315
2312
|
children: "Send"
|
|
@@ -2317,24 +2314,24 @@ const pn = ({
|
|
|
2317
2314
|
)
|
|
2318
2315
|
] })
|
|
2319
2316
|
] }) });
|
|
2320
|
-
},
|
|
2317
|
+
}, Me = (e) => Math.abs(
|
|
2321
2318
|
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
2322
|
-
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${
|
|
2319
|
+
), Ge = (e) => e.length > 1 ? Number(e.split("").reduce((n, s) => `${Me(n) + Me(s)}`)) : Me(e), kt = (e, n = {}) => {
|
|
2323
2320
|
const s = (3 * Ge(e) + 2 * Ge(e) + Ge(e)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
|
|
2324
2321
|
return `${s}deg ${a}% ${r}%`;
|
|
2325
|
-
}, He = "data-linked-param",
|
|
2326
|
-
const { resolvedTheme: n } =
|
|
2322
|
+
}, He = "data-linked-param", Zr = (e) => {
|
|
2323
|
+
const { resolvedTheme: n } = ps();
|
|
2327
2324
|
return {
|
|
2328
|
-
text:
|
|
2325
|
+
text: kt(
|
|
2329
2326
|
e,
|
|
2330
2327
|
n === "light" ? { saturation: 95, lightness: 38 } : {}
|
|
2331
2328
|
),
|
|
2332
|
-
background:
|
|
2329
|
+
background: kt(
|
|
2333
2330
|
e,
|
|
2334
2331
|
n === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2335
2332
|
)
|
|
2336
2333
|
};
|
|
2337
|
-
},
|
|
2334
|
+
}, fn = ({
|
|
2338
2335
|
name: e,
|
|
2339
2336
|
className: n,
|
|
2340
2337
|
slug: s,
|
|
@@ -2342,16 +2339,16 @@ const pn = ({
|
|
|
2342
2339
|
children: r,
|
|
2343
2340
|
onClick: o
|
|
2344
2341
|
}) => {
|
|
2345
|
-
const i =
|
|
2346
|
-
return
|
|
2342
|
+
const i = E(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: m, background: d } = Zr(l), f = `hsl(${m} / 100%)`, x = `hsl(${d} / 10%)`, p = `hsl(${d} / 50%)`;
|
|
2343
|
+
return U(() => {
|
|
2347
2344
|
if (!c || !i.current) return;
|
|
2348
2345
|
const v = () => {
|
|
2349
|
-
document.querySelectorAll(`[${He}="${c}"]`).forEach((
|
|
2350
|
-
|
|
2346
|
+
document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
|
|
2347
|
+
w instanceof HTMLElement && (w.dataset.active = "true");
|
|
2351
2348
|
});
|
|
2352
2349
|
}, u = () => {
|
|
2353
|
-
document.querySelectorAll(`[${He}="${c}"]`).forEach((
|
|
2354
|
-
|
|
2350
|
+
document.querySelectorAll(`[${He}="${c}"]`).forEach((w) => {
|
|
2351
|
+
w instanceof HTMLElement && (w.dataset.active = "false");
|
|
2355
2352
|
});
|
|
2356
2353
|
}, y = i.current;
|
|
2357
2354
|
return y.addEventListener("mouseenter", v), y.addEventListener("mouseleave", u), () => {
|
|
@@ -2363,7 +2360,7 @@ const pn = ({
|
|
|
2363
2360
|
"span",
|
|
2364
2361
|
{
|
|
2365
2362
|
[He]: c,
|
|
2366
|
-
className:
|
|
2363
|
+
className: S(
|
|
2367
2364
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
2368
2365
|
"relative transition-all duration-100 rounded-lg",
|
|
2369
2366
|
"border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
|
|
@@ -2375,31 +2372,31 @@ const pn = ({
|
|
|
2375
2372
|
ref: i,
|
|
2376
2373
|
onClick: o,
|
|
2377
2374
|
style: {
|
|
2378
|
-
"--param-color":
|
|
2379
|
-
"--border-color":
|
|
2375
|
+
"--param-color": f,
|
|
2376
|
+
"--border-color": p,
|
|
2380
2377
|
"--background-color": x
|
|
2381
2378
|
},
|
|
2382
2379
|
children: r ?? e
|
|
2383
2380
|
}
|
|
2384
2381
|
);
|
|
2385
|
-
},
|
|
2382
|
+
}, Yr = ({
|
|
2386
2383
|
control: e,
|
|
2387
2384
|
url: n
|
|
2388
2385
|
}) => {
|
|
2389
|
-
const { fields: s } =
|
|
2386
|
+
const { fields: s } = Ut({
|
|
2390
2387
|
control: e,
|
|
2391
2388
|
name: "pathParams"
|
|
2392
2389
|
}), a = [...s].sort(
|
|
2393
2390
|
(r, o) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${o.name}}`)
|
|
2394
2391
|
);
|
|
2395
|
-
return /* @__PURE__ */ t.jsx(
|
|
2392
|
+
return /* @__PURE__ */ t.jsx(Ee, { children: a.map((r, o) => /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2396
2393
|
/* @__PURE__ */ t.jsx(
|
|
2397
|
-
|
|
2394
|
+
St,
|
|
2398
2395
|
{
|
|
2399
2396
|
control: e,
|
|
2400
2397
|
name: `pathParams.${o}.name`,
|
|
2401
2398
|
render: () => /* @__PURE__ */ t.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ t.jsx(
|
|
2402
|
-
|
|
2399
|
+
fn,
|
|
2403
2400
|
{
|
|
2404
2401
|
slug: r.name,
|
|
2405
2402
|
name: r.name,
|
|
@@ -2409,7 +2406,7 @@ const pn = ({
|
|
|
2409
2406
|
}
|
|
2410
2407
|
),
|
|
2411
2408
|
/* @__PURE__ */ t.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ t.jsx(
|
|
2412
|
-
|
|
2409
|
+
St,
|
|
2413
2410
|
{
|
|
2414
2411
|
control: e,
|
|
2415
2412
|
name: `pathParams.${o}.value`,
|
|
@@ -2417,28 +2414,28 @@ const pn = ({
|
|
|
2417
2414
|
}
|
|
2418
2415
|
) })
|
|
2419
2416
|
] }, r.id)) });
|
|
2420
|
-
},
|
|
2417
|
+
}, ea = ({
|
|
2421
2418
|
control: e,
|
|
2422
2419
|
schemaQueryParams: n
|
|
2423
2420
|
}) => {
|
|
2424
|
-
const { watch: s } =
|
|
2421
|
+
const { watch: s } = oe(), a = s("queryParams"), r = ot({
|
|
2425
2422
|
control: e,
|
|
2426
2423
|
name: "queryParams",
|
|
2427
2424
|
defaultValue: { name: "", value: "", active: !1 }
|
|
2428
2425
|
}), o = n.map(
|
|
2429
2426
|
(c) => !!c.isRequired
|
|
2430
2427
|
), i = n.length > 0;
|
|
2431
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2432
|
-
/* @__PURE__ */ t.jsxs(
|
|
2433
|
-
/* @__PURE__ */ t.jsx(
|
|
2428
|
+
return /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2429
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2430
|
+
/* @__PURE__ */ t.jsx(_n, { size: 16 }),
|
|
2434
2431
|
/* @__PURE__ */ t.jsx(H, { children: "Query Parameters" })
|
|
2435
2432
|
] }),
|
|
2436
|
-
/* @__PURE__ */ t.jsx(
|
|
2433
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Ee, { children: r.fields.map((c, l) => {
|
|
2437
2434
|
const m = n.find(
|
|
2438
|
-
(
|
|
2439
|
-
), d = m?.enum && m.enum.length > 0,
|
|
2440
|
-
return /* @__PURE__ */ t.jsxs(
|
|
2441
|
-
/* @__PURE__ */ t.jsx(
|
|
2435
|
+
(p) => p.name === a.at(l)?.name
|
|
2436
|
+
), d = m?.enum && m.enum.length > 0, f = r.getNameInputProps(l), x = r.getValueInputProps(l);
|
|
2437
|
+
return /* @__PURE__ */ t.jsxs(ge, { children: [
|
|
2438
|
+
/* @__PURE__ */ t.jsx(be, { ...r.getCheckboxProps(l) }),
|
|
2442
2439
|
o[l] ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
2443
2440
|
"label",
|
|
2444
2441
|
{
|
|
@@ -2451,26 +2448,26 @@ const pn = ({
|
|
|
2451
2448
|
]
|
|
2452
2449
|
}
|
|
2453
2450
|
) }) : i ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2454
|
-
|
|
2451
|
+
$e,
|
|
2455
2452
|
{
|
|
2456
|
-
...
|
|
2453
|
+
...f,
|
|
2457
2454
|
value: String(r.getValue(l, "name")),
|
|
2458
2455
|
placeholder: "Name",
|
|
2459
|
-
options: n.map((
|
|
2460
|
-
onChange: (
|
|
2461
|
-
onSelect: (
|
|
2456
|
+
options: n.map((p) => p.name),
|
|
2457
|
+
onChange: (p) => r.setValue(l, "name", p),
|
|
2458
|
+
onSelect: (p) => r.setValue(l, "name", p, { focus: "next" })
|
|
2462
2459
|
}
|
|
2463
|
-
) }) : /* @__PURE__ */ t.jsx(I, { ...
|
|
2460
|
+
) }) : /* @__PURE__ */ t.jsx(I, { ...f, placeholder: "Name" }),
|
|
2464
2461
|
/* @__PURE__ */ t.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2465
2462
|
d ? /* @__PURE__ */ t.jsx(I, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2466
|
-
|
|
2463
|
+
$e,
|
|
2467
2464
|
{
|
|
2468
2465
|
...x,
|
|
2469
2466
|
value: String(r.getValue(l, "value")),
|
|
2470
2467
|
shouldFilter: !1,
|
|
2471
2468
|
options: m.enum ?? [],
|
|
2472
|
-
onChange: (
|
|
2473
|
-
onSelect: (
|
|
2469
|
+
onChange: (p) => r.setValue(l, "value", p),
|
|
2470
|
+
onSelect: (p) => r.setValue(l, "value", p, { focus: "next" })
|
|
2474
2471
|
}
|
|
2475
2472
|
) }) : /* @__PURE__ */ t.jsx(
|
|
2476
2473
|
I,
|
|
@@ -2481,7 +2478,7 @@ const pn = ({
|
|
|
2481
2478
|
}
|
|
2482
2479
|
),
|
|
2483
2480
|
/* @__PURE__ */ t.jsx(
|
|
2484
|
-
|
|
2481
|
+
at,
|
|
2485
2482
|
{
|
|
2486
2483
|
...r.getRemoveButtonProps(l)
|
|
2487
2484
|
}
|
|
@@ -2490,22 +2487,22 @@ const pn = ({
|
|
|
2490
2487
|
] }, c.id);
|
|
2491
2488
|
}) }) })
|
|
2492
2489
|
] });
|
|
2493
|
-
},
|
|
2490
|
+
}, ta = ({
|
|
2494
2491
|
open: e,
|
|
2495
2492
|
setOpen: n,
|
|
2496
2493
|
onSignUp: s,
|
|
2497
2494
|
onLogin: a,
|
|
2498
2495
|
onSkip: r
|
|
2499
2496
|
}) => {
|
|
2500
|
-
const [o, i] =
|
|
2497
|
+
const [o, i] = k(!1), c = () => {
|
|
2501
2498
|
r?.(o), n(!1);
|
|
2502
2499
|
};
|
|
2503
|
-
return /* @__PURE__ */ t.jsx(
|
|
2504
|
-
/* @__PURE__ */ t.jsx(
|
|
2505
|
-
/* @__PURE__ */ t.jsx(
|
|
2506
|
-
/* @__PURE__ */ t.jsxs(
|
|
2500
|
+
return /* @__PURE__ */ t.jsx(et, { open: e, onOpenChange: n, children: /* @__PURE__ */ t.jsxs(tt, { children: [
|
|
2501
|
+
/* @__PURE__ */ t.jsx(nt, { children: "Welcome to the Playground!" }),
|
|
2502
|
+
/* @__PURE__ */ t.jsx(_t, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2503
|
+
/* @__PURE__ */ t.jsxs(Re, { className: "flex items-center gap-2 font-normal", children: [
|
|
2507
2504
|
/* @__PURE__ */ t.jsx(
|
|
2508
|
-
|
|
2505
|
+
be,
|
|
2509
2506
|
{
|
|
2510
2507
|
checked: o,
|
|
2511
2508
|
onCheckedChange: (l) => i(l === !0)
|
|
@@ -2513,16 +2510,16 @@ const pn = ({
|
|
|
2513
2510
|
),
|
|
2514
2511
|
"Don't show this again"
|
|
2515
2512
|
] }),
|
|
2516
|
-
/* @__PURE__ */ t.jsxs(
|
|
2517
|
-
/* @__PURE__ */ t.jsx(
|
|
2513
|
+
/* @__PURE__ */ t.jsxs(qt, { className: "flex gap-2 sm:justify-between", children: [
|
|
2514
|
+
/* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: c, children: "Skip" }),
|
|
2518
2515
|
/* @__PURE__ */ t.jsxs("div", { className: "flex gap-2", children: [
|
|
2519
|
-
s && /* @__PURE__ */ t.jsx(
|
|
2520
|
-
a && /* @__PURE__ */ t.jsx(
|
|
2516
|
+
s && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
2517
|
+
a && /* @__PURE__ */ t.jsx(B, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2521
2518
|
] })
|
|
2522
2519
|
] })
|
|
2523
2520
|
] }) });
|
|
2524
|
-
},
|
|
2525
|
-
|
|
2521
|
+
}, na = Ze()(
|
|
2522
|
+
Ye(
|
|
2526
2523
|
(e, n) => ({
|
|
2527
2524
|
rememberedIdentity: null,
|
|
2528
2525
|
setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
|
|
@@ -2532,10 +2529,10 @@ const pn = ({
|
|
|
2532
2529
|
}),
|
|
2533
2530
|
{
|
|
2534
2531
|
name: "identity-storage",
|
|
2535
|
-
storage:
|
|
2532
|
+
storage: Bt(() => sessionStorage)
|
|
2536
2533
|
}
|
|
2537
2534
|
)
|
|
2538
|
-
),
|
|
2535
|
+
), sa = ({
|
|
2539
2536
|
path: e,
|
|
2540
2537
|
renderParam: n
|
|
2541
2538
|
}) => {
|
|
@@ -2544,13 +2541,13 @@ const pn = ({
|
|
|
2544
2541
|
const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
|
|
2545
2542
|
let l = 0;
|
|
2546
2543
|
return i.forEach((m) => {
|
|
2547
|
-
const [d,
|
|
2548
|
-
if (!
|
|
2544
|
+
const [d, f] = m;
|
|
2545
|
+
if (!f) return;
|
|
2549
2546
|
const x = m.index;
|
|
2550
2547
|
x > l && c.push(
|
|
2551
2548
|
/* @__PURE__ */ t.jsx(le, { children: a.slice(l, x) }, `text-${l}-${x}`)
|
|
2552
2549
|
), c.push(
|
|
2553
|
-
/* @__PURE__ */ t.jsx(le, { children: n({ name:
|
|
2550
|
+
/* @__PURE__ */ t.jsx(le, { children: n({ name: f, originalValue: d, index: s++ }) }, `param-${f}`)
|
|
2554
2551
|
), l = x + d.length;
|
|
2555
2552
|
}), l < a.length && c.push(
|
|
2556
2553
|
/* @__PURE__ */ t.jsx(le, { children: a.slice(l) }, `text-${l}-${a.length}`)
|
|
@@ -2561,10 +2558,10 @@ const pn = ({
|
|
|
2561
2558
|
/* @__PURE__ */ t.jsx("wbr", {})
|
|
2562
2559
|
] }, `${a}-${r}`);
|
|
2563
2560
|
});
|
|
2564
|
-
},
|
|
2565
|
-
const { watch: n, setFocus: s } =
|
|
2561
|
+
}, ra = ({ url: e }) => {
|
|
2562
|
+
const { watch: n, setFocus: s } = oe(), [a] = n(["pathParams"]);
|
|
2566
2563
|
return /* @__PURE__ */ t.jsx(
|
|
2567
|
-
|
|
2564
|
+
sa,
|
|
2568
2565
|
{
|
|
2569
2566
|
path: e,
|
|
2570
2567
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2572,7 +2569,7 @@ const pn = ({
|
|
|
2572
2569
|
(l) => l.name === r
|
|
2573
2570
|
)?.value;
|
|
2574
2571
|
return /* @__PURE__ */ t.jsx(
|
|
2575
|
-
|
|
2572
|
+
fn,
|
|
2576
2573
|
{
|
|
2577
2574
|
name: r,
|
|
2578
2575
|
backgroundOpacity: "0",
|
|
@@ -2584,8 +2581,8 @@ const pn = ({
|
|
|
2584
2581
|
}
|
|
2585
2582
|
}
|
|
2586
2583
|
);
|
|
2587
|
-
},
|
|
2588
|
-
const { watch: e } =
|
|
2584
|
+
}, aa = () => {
|
|
2585
|
+
const { watch: e } = oe(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ t.jsxs(le, { children: [
|
|
2589
2586
|
a.name,
|
|
2590
2587
|
"=",
|
|
2591
2588
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2596,7 +2593,7 @@ const pn = ({
|
|
|
2596
2593
|
s.length > 0 ? "?" : "",
|
|
2597
2594
|
s
|
|
2598
2595
|
] });
|
|
2599
|
-
},
|
|
2596
|
+
}, oa = ({ status: e }) => {
|
|
2600
2597
|
if (!e) return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2601
2598
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2602
2599
|
case 2:
|
|
@@ -2608,15 +2605,15 @@ const pn = ({
|
|
|
2608
2605
|
default:
|
|
2609
2606
|
return /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2610
2607
|
}
|
|
2611
|
-
},
|
|
2612
|
-
const e =
|
|
2608
|
+
}, ia = () => {
|
|
2609
|
+
const e = E(null), n = E(null), s = E(Date.now()), a = E(null), r = D(() => {
|
|
2613
2610
|
if (n.current) {
|
|
2614
2611
|
const o = Date.now() - s.current;
|
|
2615
2612
|
n.current.nodeValue = o.toFixed();
|
|
2616
2613
|
}
|
|
2617
2614
|
a.current = requestAnimationFrame(r);
|
|
2618
2615
|
}, []);
|
|
2619
|
-
return
|
|
2616
|
+
return cs(() => {
|
|
2620
2617
|
const o = e.current;
|
|
2621
2618
|
if (!o) return;
|
|
2622
2619
|
const i = document.createTextNode("0");
|
|
@@ -2624,7 +2621,7 @@ const pn = ({
|
|
|
2624
2621
|
a.current && cancelAnimationFrame(a.current), n.current && o.contains(i) && o.removeChild(i);
|
|
2625
2622
|
};
|
|
2626
2623
|
}, [r]), /* @__PURE__ */ t.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2627
|
-
},
|
|
2624
|
+
}, la = ({
|
|
2628
2625
|
status: e,
|
|
2629
2626
|
time: n,
|
|
2630
2627
|
size: s,
|
|
@@ -2645,7 +2642,7 @@ const pn = ({
|
|
|
2645
2642
|
};
|
|
2646
2643
|
return /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0 flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2647
2644
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2648
|
-
/* @__PURE__ */ t.jsx(
|
|
2645
|
+
/* @__PURE__ */ t.jsx(oa, { status: e }),
|
|
2649
2646
|
" ",
|
|
2650
2647
|
e ?? "Sending Request...",
|
|
2651
2648
|
e ? ` ${o[e]}` : ""
|
|
@@ -2654,12 +2651,12 @@ const pn = ({
|
|
|
2654
2651
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2655
2652
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2656
2653
|
" ",
|
|
2657
|
-
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2654
|
+
/* @__PURE__ */ t.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? ve(s) : "- B" })
|
|
2658
2655
|
] }),
|
|
2659
2656
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2660
2657
|
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2661
2658
|
" ",
|
|
2662
|
-
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(
|
|
2659
|
+
n !== void 0 ? `${n.toFixed(0)}` : /* @__PURE__ */ t.jsx(ia, {}),
|
|
2663
2660
|
"ms"
|
|
2664
2661
|
] })
|
|
2665
2662
|
] }),
|
|
@@ -2674,29 +2671,52 @@ const pn = ({
|
|
|
2674
2671
|
}
|
|
2675
2672
|
)
|
|
2676
2673
|
] });
|
|
2674
|
+
}, ca = ({
|
|
2675
|
+
blob: e,
|
|
2676
|
+
fileName: n,
|
|
2677
|
+
size: s,
|
|
2678
|
+
onDownload: a
|
|
2679
|
+
}) => {
|
|
2680
|
+
const [r, o] = k(null);
|
|
2681
|
+
return U(() => {
|
|
2682
|
+
const i = URL.createObjectURL(e);
|
|
2683
|
+
return o(i), () => {
|
|
2684
|
+
URL.revokeObjectURL(i);
|
|
2685
|
+
};
|
|
2686
|
+
}, [e]), r ? /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
2687
|
+
/* @__PURE__ */ t.jsx("audio", { controls: !0, src: r, className: "w-full max-w-md", children: "Your browser does not support the audio element." }),
|
|
2688
|
+
/* @__PURE__ */ t.jsxs(B, { onClick: a, className: "flex items-center gap-2", children: [
|
|
2689
|
+
/* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
|
|
2690
|
+
"Download ",
|
|
2691
|
+
n,
|
|
2692
|
+
" (",
|
|
2693
|
+
ve(s),
|
|
2694
|
+
")"
|
|
2695
|
+
] })
|
|
2696
|
+
] }) }) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "Loading audio..." }) });
|
|
2677
2697
|
};
|
|
2678
|
-
function
|
|
2698
|
+
function it(e) {
|
|
2679
2699
|
if (e === null) return "null";
|
|
2680
2700
|
if (Array.isArray(e)) {
|
|
2681
2701
|
if (e.length === 0) return "any[]";
|
|
2682
2702
|
const n = e[0];
|
|
2683
|
-
return n === void 0 ? "any[]" : `${
|
|
2703
|
+
return n === void 0 ? "any[]" : `${it(n)}[]`;
|
|
2684
2704
|
}
|
|
2685
|
-
return typeof e == "object" ?
|
|
2705
|
+
return typeof e == "object" ? da(e) : typeof e;
|
|
2686
2706
|
}
|
|
2687
|
-
function
|
|
2707
|
+
function da(e, n = "") {
|
|
2688
2708
|
const s = ["{"];
|
|
2689
2709
|
for (const [a, r] of Object.entries(e)) {
|
|
2690
|
-
const o =
|
|
2710
|
+
const o = it(r);
|
|
2691
2711
|
s.push(` ${a}: ${o};`);
|
|
2692
2712
|
}
|
|
2693
2713
|
return s.push("}"), s.join(`
|
|
2694
2714
|
`);
|
|
2695
2715
|
}
|
|
2696
|
-
function
|
|
2697
|
-
return { lines: [`type GeneratedType = ${
|
|
2716
|
+
function ua(e) {
|
|
2717
|
+
return { lines: [`type GeneratedType = ${it(e)};`] };
|
|
2698
2718
|
}
|
|
2699
|
-
const
|
|
2719
|
+
const ma = (e) => Object.entries({
|
|
2700
2720
|
"application/json": "json",
|
|
2701
2721
|
"text/json": "json",
|
|
2702
2722
|
"text/html": "html",
|
|
@@ -2706,16 +2726,16 @@ const da = (e) => Object.entries({
|
|
|
2706
2726
|
"application/xhtml+xml": "xhtml"
|
|
2707
2727
|
}).find(
|
|
2708
2728
|
([s]) => e.includes(s)
|
|
2709
|
-
)?.[1],
|
|
2710
|
-
const n = e
|
|
2711
|
-
return
|
|
2712
|
-
},
|
|
2729
|
+
)?.[1], gn = (e) => e.find(([n]) => n.toLowerCase() === "content-type")?.[1] || "", pa = (e) => {
|
|
2730
|
+
const n = gn(e);
|
|
2731
|
+
return ma(n);
|
|
2732
|
+
}, ha = (e) => {
|
|
2713
2733
|
try {
|
|
2714
2734
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2715
2735
|
} catch {
|
|
2716
2736
|
return null;
|
|
2717
2737
|
}
|
|
2718
|
-
},
|
|
2738
|
+
}, fa = (e) => {
|
|
2719
2739
|
const n = [
|
|
2720
2740
|
"Content-Type",
|
|
2721
2741
|
"Content-Length",
|
|
@@ -2732,12 +2752,12 @@ const da = (e) => Object.entries({
|
|
|
2732
2752
|
}, z = 3, Se = ye(
|
|
2733
2753
|
"div",
|
|
2734
2754
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2735
|
-
), ue = ye("div", "py-1 break-words"),
|
|
2736
|
-
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] =
|
|
2755
|
+
), ue = ye("div", "py-1 break-words"), Te = ({ value: e, header: n }) => {
|
|
2756
|
+
const a = ["authorization", "key", "secret", "token"].includes(n.toLowerCase()), [r, o] = k(!a);
|
|
2737
2757
|
return /* @__PURE__ */ t.jsx(
|
|
2738
2758
|
ue,
|
|
2739
2759
|
{
|
|
2740
|
-
className:
|
|
2760
|
+
className: S(
|
|
2741
2761
|
"max-h-28 overflow-auto",
|
|
2742
2762
|
a && "cursor-pointer flex group"
|
|
2743
2763
|
),
|
|
@@ -2745,12 +2765,12 @@ const da = (e) => Object.entries({
|
|
|
2745
2765
|
a && o((i) => !i);
|
|
2746
2766
|
},
|
|
2747
2767
|
children: a ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2748
|
-
/* @__PURE__ */ t.jsx(
|
|
2749
|
-
r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className:
|
|
2768
|
+
/* @__PURE__ */ t.jsx(Ns, { secret: e, previewChars: 0, revealed: r }),
|
|
2769
|
+
r ? /* @__PURE__ */ t.jsx(Gn, { size: 14, className: S("hidden group-hover:block") }) : /* @__PURE__ */ t.jsx(Hn, { size: 14, className: S("hidden group-hover:block") })
|
|
2750
2770
|
] }) : e
|
|
2751
2771
|
}
|
|
2752
2772
|
);
|
|
2753
|
-
},
|
|
2773
|
+
}, ga = ({
|
|
2754
2774
|
body: e = "",
|
|
2755
2775
|
headers: n,
|
|
2756
2776
|
request: s,
|
|
@@ -2759,47 +2779,47 @@ const da = (e) => Object.entries({
|
|
|
2759
2779
|
fileName: o,
|
|
2760
2780
|
blob: i
|
|
2761
2781
|
}) => {
|
|
2762
|
-
const c =
|
|
2782
|
+
const c = pa(n), l = ha(e), m = l || e, [d, f] = k(
|
|
2763
2783
|
l ? "formatted" : "raw"
|
|
2764
|
-
), x =
|
|
2784
|
+
), x = qs({
|
|
2765
2785
|
queryKey: ["types", m],
|
|
2766
|
-
queryFn: async () =>
|
|
2786
|
+
queryFn: async () => ua(JSON.parse(m)),
|
|
2767
2787
|
enabled: d === "types" && !r
|
|
2768
|
-
}),
|
|
2788
|
+
}), p = () => {
|
|
2769
2789
|
if (i && o) {
|
|
2770
2790
|
const u = URL.createObjectURL(i), y = document.createElement("a");
|
|
2771
2791
|
y.href = u, y.download = o, document.body.appendChild(y), y.click(), document.body.removeChild(y), URL.revokeObjectURL(u);
|
|
2772
2792
|
}
|
|
2773
|
-
}, v =
|
|
2793
|
+
}, v = fa([...n]);
|
|
2774
2794
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2775
|
-
/* @__PURE__ */ t.jsxs(
|
|
2776
|
-
/* @__PURE__ */ t.jsxs(
|
|
2777
|
-
/* @__PURE__ */ t.jsx(
|
|
2795
|
+
/* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2796
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2797
|
+
/* @__PURE__ */ t.jsx(qn, { size: 14 }),
|
|
2778
2798
|
/* @__PURE__ */ t.jsx(H, { children: "Request Headers" })
|
|
2779
2799
|
] }),
|
|
2780
|
-
/* @__PURE__ */ t.jsx(
|
|
2800
|
+
/* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2781
2801
|
s.headers.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2782
2802
|
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2783
|
-
/* @__PURE__ */ t.jsx(
|
|
2803
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2784
2804
|
] }, u)),
|
|
2785
|
-
s.headers.length > z && /* @__PURE__ */ t.jsxs(
|
|
2805
|
+
s.headers.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2786
2806
|
/* @__PURE__ */ t.jsxs(de, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2787
2807
|
"Show ",
|
|
2788
2808
|
s.headers.length - z,
|
|
2789
2809
|
" more headers",
|
|
2790
|
-
/* @__PURE__ */ t.jsx(
|
|
2810
|
+
/* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
|
|
2791
2811
|
] }),
|
|
2792
|
-
/* @__PURE__ */ t.jsxs(
|
|
2812
|
+
/* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2793
2813
|
s.headers.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2794
2814
|
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2795
|
-
/* @__PURE__ */ t.jsx(
|
|
2815
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2796
2816
|
] }, u)),
|
|
2797
2817
|
/* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2798
2818
|
"Hide ",
|
|
2799
2819
|
s.headers.length - z,
|
|
2800
2820
|
" headers",
|
|
2801
2821
|
/* @__PURE__ */ t.jsx(
|
|
2802
|
-
|
|
2822
|
+
bt,
|
|
2803
2823
|
{
|
|
2804
2824
|
size: 12,
|
|
2805
2825
|
className: "text-muted-foreground"
|
|
@@ -2810,34 +2830,34 @@ const da = (e) => Object.entries({
|
|
|
2810
2830
|
] })
|
|
2811
2831
|
] }) })
|
|
2812
2832
|
] }),
|
|
2813
|
-
/* @__PURE__ */ t.jsxs(
|
|
2814
|
-
/* @__PURE__ */ t.jsxs(
|
|
2815
|
-
/* @__PURE__ */ t.jsx(
|
|
2833
|
+
/* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
2834
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
2835
|
+
/* @__PURE__ */ t.jsx(Un, { size: 14 }),
|
|
2816
2836
|
/* @__PURE__ */ t.jsx(H, { children: "Response Headers" })
|
|
2817
2837
|
] }),
|
|
2818
|
-
/* @__PURE__ */ t.jsx(
|
|
2838
|
+
/* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs("div", { className: "grid grid-cols-[2fr_3fr] gap-x-6 text-sm", children: [
|
|
2819
2839
|
v.slice(0, z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2820
2840
|
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2821
|
-
/* @__PURE__ */ t.jsx(
|
|
2841
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2822
2842
|
] }, u)),
|
|
2823
|
-
v.length > z && /* @__PURE__ */ t.jsxs(
|
|
2843
|
+
v.length > z && /* @__PURE__ */ t.jsxs(_, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2824
2844
|
/* @__PURE__ */ t.jsxs(de, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2825
2845
|
"Show ",
|
|
2826
2846
|
v.length - z,
|
|
2827
2847
|
" more headers",
|
|
2828
|
-
/* @__PURE__ */ t.jsx(
|
|
2848
|
+
/* @__PURE__ */ t.jsx(Je, { size: 12, className: "text-muted-foreground" })
|
|
2829
2849
|
] }),
|
|
2830
|
-
/* @__PURE__ */ t.jsxs(
|
|
2850
|
+
/* @__PURE__ */ t.jsxs(q, { className: "col-span-full grid grid-cols-subgrid", children: [
|
|
2831
2851
|
v.slice(z).map(([u, y]) => /* @__PURE__ */ t.jsxs(Se, { children: [
|
|
2832
2852
|
/* @__PURE__ */ t.jsx(ue, { children: u }),
|
|
2833
|
-
/* @__PURE__ */ t.jsx(
|
|
2853
|
+
/* @__PURE__ */ t.jsx(Te, { value: y, header: u })
|
|
2834
2854
|
] }, u)),
|
|
2835
2855
|
/* @__PURE__ */ t.jsxs(de, { className: "justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
|
|
2836
2856
|
"Hide ",
|
|
2837
2857
|
v.length - z,
|
|
2838
2858
|
" headers",
|
|
2839
2859
|
/* @__PURE__ */ t.jsx(
|
|
2840
|
-
|
|
2860
|
+
bt,
|
|
2841
2861
|
{
|
|
2842
2862
|
size: 12,
|
|
2843
2863
|
className: "text-muted-foreground"
|
|
@@ -2854,42 +2874,50 @@ const da = (e) => Object.entries({
|
|
|
2854
2874
|
"Response body"
|
|
2855
2875
|
] }),
|
|
2856
2876
|
l && !r && /* @__PURE__ */ t.jsxs(
|
|
2857
|
-
|
|
2877
|
+
Mt,
|
|
2858
2878
|
{
|
|
2859
2879
|
value: d,
|
|
2860
|
-
onValueChange: (u) =>
|
|
2880
|
+
onValueChange: (u) => f(u),
|
|
2861
2881
|
children: [
|
|
2862
|
-
/* @__PURE__ */ t.jsx(
|
|
2863
|
-
/* @__PURE__ */ t.jsxs(
|
|
2864
|
-
/* @__PURE__ */ t.jsx(
|
|
2865
|
-
/* @__PURE__ */ t.jsx(
|
|
2866
|
-
/* @__PURE__ */ t.jsx(
|
|
2882
|
+
/* @__PURE__ */ t.jsx(Gt, { className: "max-w-32 border-0 bg-transparent", children: /* @__PURE__ */ t.jsx(Ht, { placeholder: "View" }) }),
|
|
2883
|
+
/* @__PURE__ */ t.jsxs(Qt, { children: [
|
|
2884
|
+
/* @__PURE__ */ t.jsx(Ae, { value: "formatted", children: "Formatted" }),
|
|
2885
|
+
/* @__PURE__ */ t.jsx(Ae, { value: "raw", children: "Raw" }),
|
|
2886
|
+
/* @__PURE__ */ t.jsx(Ae, { value: "types", children: "Types" })
|
|
2867
2887
|
] })
|
|
2868
2888
|
]
|
|
2869
2889
|
}
|
|
2870
2890
|
)
|
|
2871
2891
|
] }),
|
|
2872
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ?
|
|
2892
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex-1", children: r ? i && Mr(gn(n)) ? /* @__PURE__ */ t.jsx(
|
|
2893
|
+
ca,
|
|
2894
|
+
{
|
|
2895
|
+
blob: i,
|
|
2896
|
+
fileName: o ?? "audio",
|
|
2897
|
+
size: a,
|
|
2898
|
+
onDownload: p
|
|
2899
|
+
}
|
|
2900
|
+
) : /* @__PURE__ */ t.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
2873
2901
|
/* @__PURE__ */ t.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
|
|
2874
2902
|
/* @__PURE__ */ t.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
|
|
2875
2903
|
/* @__PURE__ */ t.jsxs(
|
|
2876
|
-
|
|
2904
|
+
B,
|
|
2877
2905
|
{
|
|
2878
|
-
onClick:
|
|
2906
|
+
onClick: p,
|
|
2879
2907
|
className: "flex items-center gap-2",
|
|
2880
2908
|
disabled: !i,
|
|
2881
2909
|
children: [
|
|
2882
|
-
/* @__PURE__ */ t.jsx(
|
|
2910
|
+
/* @__PURE__ */ t.jsx(Ft, { className: "h-4 w-4" }),
|
|
2883
2911
|
"Download ",
|
|
2884
2912
|
o || "file",
|
|
2885
2913
|
" (",
|
|
2886
|
-
|
|
2914
|
+
ve(a),
|
|
2887
2915
|
")"
|
|
2888
2916
|
]
|
|
2889
2917
|
}
|
|
2890
2918
|
)
|
|
2891
2919
|
] }) }) : /* @__PURE__ */ t.jsx(
|
|
2892
|
-
|
|
2920
|
+
Cs,
|
|
2893
2921
|
{
|
|
2894
2922
|
className: "text-xs flex-1",
|
|
2895
2923
|
embedded: !0,
|
|
@@ -2900,7 +2928,7 @@ const da = (e) => Object.entries({
|
|
|
2900
2928
|
}
|
|
2901
2929
|
) })
|
|
2902
2930
|
] });
|
|
2903
|
-
},
|
|
2931
|
+
}, xa = ({
|
|
2904
2932
|
queryMutation: e,
|
|
2905
2933
|
showLongRunningWarning: n,
|
|
2906
2934
|
onCancel: s,
|
|
@@ -2909,7 +2937,7 @@ const da = (e) => Object.entries({
|
|
|
2909
2937
|
progress: o
|
|
2910
2938
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2911
2939
|
(e.isPending || e.data) && /* @__PURE__ */ t.jsx(
|
|
2912
|
-
|
|
2940
|
+
la,
|
|
2913
2941
|
{
|
|
2914
2942
|
status: e.data?.status,
|
|
2915
2943
|
time: e.data?.time,
|
|
@@ -2918,12 +2946,12 @@ const da = (e) => Object.entries({
|
|
|
2918
2946
|
progress: o
|
|
2919
2947
|
}
|
|
2920
2948
|
),
|
|
2921
|
-
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(
|
|
2949
|
+
e.error ? /* @__PURE__ */ t.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ t.jsxs(Vs, { children: [
|
|
2922
2950
|
/* @__PURE__ */ t.jsx(Qn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2923
|
-
/* @__PURE__ */ t.jsx(
|
|
2924
|
-
/* @__PURE__ */ t.jsx(
|
|
2951
|
+
/* @__PURE__ */ t.jsx(Bs, { children: "Request failed" }),
|
|
2952
|
+
/* @__PURE__ */ t.jsx(_s, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2925
2953
|
] }) }) : e.data ? /* @__PURE__ */ t.jsx(
|
|
2926
|
-
|
|
2954
|
+
ga,
|
|
2927
2955
|
{
|
|
2928
2956
|
request: e.data.request,
|
|
2929
2957
|
size: e.data.size,
|
|
@@ -2934,18 +2962,18 @@ const da = (e) => Object.entries({
|
|
|
2934
2962
|
blob: e.data.blob
|
|
2935
2963
|
}
|
|
2936
2964
|
) : 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: [
|
|
2937
|
-
/* @__PURE__ */ t.jsx(
|
|
2965
|
+
/* @__PURE__ */ t.jsx(zs, {}),
|
|
2938
2966
|
/* @__PURE__ */ t.jsxs(
|
|
2939
2967
|
"div",
|
|
2940
2968
|
{
|
|
2941
|
-
className:
|
|
2969
|
+
className: S(
|
|
2942
2970
|
"opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
|
|
2943
2971
|
n && "opacity-100 pointer-events-auto"
|
|
2944
2972
|
),
|
|
2945
2973
|
children: [
|
|
2946
2974
|
"Looks like the request is taking longer than expected.",
|
|
2947
2975
|
/* @__PURE__ */ t.jsx(
|
|
2948
|
-
|
|
2976
|
+
K,
|
|
2949
2977
|
{
|
|
2950
2978
|
type: "button",
|
|
2951
2979
|
onClick: s,
|
|
@@ -2970,20 +2998,20 @@ const da = (e) => Object.entries({
|
|
|
2970
2998
|
/* @__PURE__ */ t.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2971
2999
|
a
|
|
2972
3000
|
] }) })
|
|
2973
|
-
] }),
|
|
2974
|
-
|
|
3001
|
+
] }), xn = Ze()(
|
|
3002
|
+
Ye(
|
|
2975
3003
|
(e) => ({
|
|
2976
3004
|
skipLogin: !1,
|
|
2977
3005
|
setSkipLogin: (n) => e({ skipLogin: n })
|
|
2978
3006
|
}),
|
|
2979
3007
|
{
|
|
2980
3008
|
name: "remember-skip-login",
|
|
2981
|
-
storage:
|
|
3009
|
+
storage: Bt(() => sessionStorage)
|
|
2982
3010
|
}
|
|
2983
3011
|
)
|
|
2984
3012
|
);
|
|
2985
|
-
|
|
2986
|
-
const pe = "__none",
|
|
3013
|
+
fs(xn);
|
|
3014
|
+
const pe = "__none", ya = ({
|
|
2987
3015
|
server: e,
|
|
2988
3016
|
servers: n = [],
|
|
2989
3017
|
url: s,
|
|
@@ -2995,177 +3023,181 @@ const pe = "__none", ga = ({
|
|
|
2995
3023
|
examples: l,
|
|
2996
3024
|
requiresLogin: m = !1,
|
|
2997
3025
|
onLogin: d,
|
|
2998
|
-
onSignUp:
|
|
3026
|
+
onSignUp: f
|
|
2999
3027
|
}) => {
|
|
3000
|
-
const { selectedServer: x, setSelectedServer:
|
|
3001
|
-
n.map((
|
|
3002
|
-
), [v, u] =
|
|
3028
|
+
const { selectedServer: x, setSelectedServer: p } = Vr(
|
|
3029
|
+
n.map((h) => ({ url: h }))
|
|
3030
|
+
), [v, u] = k(!1), y = as(), { setRememberedIdentity: w, getRememberedIdentity: R } = na(), [, N] = ds(), { skipLogin: j, setSkipLogin: $ } = xn(), [Q, je] = k(!1), [Ie, te] = k(!1), g = E(void 0), C = Ss(w), T = E(null), { label: A } = Fr("meta+enter", () => {
|
|
3003
3031
|
T.current?.requestSubmit();
|
|
3004
|
-
}), M = s.match(/\{([^}]+)\}/g)?.map((
|
|
3005
|
-
(
|
|
3006
|
-
), { register: De, control:
|
|
3032
|
+
}), M = s.match(/\{([^}]+)\}/g)?.map((h) => h.slice(1, -1)) ?? [], L = [...i].sort(
|
|
3033
|
+
(h, re) => M.indexOf(h.name) - M.indexOf(re.name)
|
|
3034
|
+
), { register: De, control: ne, handleSubmit: Ce, watch: ct, setValue: Fe, ...ze } = bs({
|
|
3007
3035
|
defaultValues: {
|
|
3008
3036
|
body: c,
|
|
3009
3037
|
bodyMode: "text",
|
|
3010
3038
|
file: null,
|
|
3011
3039
|
multipartFormFields: [],
|
|
3012
|
-
queryParams: o.length > 0 ? o.map((
|
|
3013
|
-
name:
|
|
3014
|
-
value:
|
|
3015
|
-
active:
|
|
3016
|
-
enum:
|
|
3040
|
+
queryParams: o.length > 0 ? o.map((h) => ({
|
|
3041
|
+
name: h.name,
|
|
3042
|
+
value: h.defaultValue ?? "",
|
|
3043
|
+
active: h.defaultActive ?? !1,
|
|
3044
|
+
enum: h.enum ?? []
|
|
3017
3045
|
})) : [{ name: "", value: "", active: !1, enum: [] }],
|
|
3018
|
-
pathParams: L.map((
|
|
3019
|
-
name:
|
|
3020
|
-
value:
|
|
3046
|
+
pathParams: L.map((h) => ({
|
|
3047
|
+
name: h.name,
|
|
3048
|
+
value: h.defaultValue ?? ""
|
|
3021
3049
|
})),
|
|
3022
|
-
headers: r.length > 0 ? r.map((
|
|
3023
|
-
name:
|
|
3024
|
-
value:
|
|
3025
|
-
active:
|
|
3050
|
+
headers: r.length > 0 ? r.map((h) => ({
|
|
3051
|
+
name: h.name,
|
|
3052
|
+
value: h.defaultValue ?? "",
|
|
3053
|
+
active: h.defaultActive ?? !1
|
|
3026
3054
|
})) : [{ name: "", value: "", active: !1 }],
|
|
3027
|
-
identity:
|
|
3055
|
+
identity: R([
|
|
3028
3056
|
pe,
|
|
3029
|
-
...y.data?.map((
|
|
3057
|
+
...y.data?.map((h) => h.id) ?? []
|
|
3030
3058
|
])
|
|
3031
3059
|
}
|
|
3032
|
-
}),
|
|
3033
|
-
() => y.data?.find((
|
|
3034
|
-
[y.data,
|
|
3060
|
+
}), se = ct("identity"), Cn = Vt(
|
|
3061
|
+
() => y.data?.find((h) => h.id === se)?.authorizationFields,
|
|
3062
|
+
[y.data, se]
|
|
3035
3063
|
);
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
}, [C,
|
|
3039
|
-
const J =
|
|
3064
|
+
U(() => {
|
|
3065
|
+
se && C.current(se);
|
|
3066
|
+
}, [C, se]);
|
|
3067
|
+
const J = vs({
|
|
3040
3068
|
gcTime: 0,
|
|
3041
|
-
mutationFn: async (
|
|
3042
|
-
const
|
|
3043
|
-
|
|
3069
|
+
mutationFn: async (h) => {
|
|
3070
|
+
const re = performance.now(), Ve = new window.Headers(
|
|
3071
|
+
h.headers.filter((O) => O.name && O.active).map((O) => [O.name, O.value])
|
|
3044
3072
|
);
|
|
3045
|
-
let
|
|
3046
|
-
switch (
|
|
3073
|
+
let Ne;
|
|
3074
|
+
switch (h.bodyMode) {
|
|
3047
3075
|
case "file":
|
|
3048
|
-
|
|
3076
|
+
Ne = h.file || void 0, Ve.delete("Content-Type");
|
|
3049
3077
|
break;
|
|
3050
3078
|
case "multipart": {
|
|
3051
|
-
const
|
|
3052
|
-
|
|
3079
|
+
const O = new FormData();
|
|
3080
|
+
h.multipartFormFields?.filter((X) => X.name && X.active).forEach((X) => O.append(X.name, X.value)), Ne = O, Ve.delete("Content-Type");
|
|
3053
3081
|
break;
|
|
3054
3082
|
}
|
|
3055
3083
|
default:
|
|
3056
|
-
|
|
3084
|
+
Ne = h.body || void 0;
|
|
3057
3085
|
break;
|
|
3058
3086
|
}
|
|
3059
3087
|
const W = new Request(
|
|
3060
|
-
|
|
3061
|
-
{
|
|
3088
|
+
Lt(e ?? x, s, h),
|
|
3089
|
+
{
|
|
3090
|
+
method: a,
|
|
3091
|
+
headers: Ve,
|
|
3092
|
+
body: ["GET", "HEAD"].includes(a.toUpperCase()) ? null : Ne
|
|
3093
|
+
}
|
|
3062
3094
|
);
|
|
3063
|
-
|
|
3095
|
+
h.identity !== pe && await y.data?.find((O) => O.id === h.identity)?.authorizeRequest(W);
|
|
3064
3096
|
const Be = setTimeout(
|
|
3065
|
-
() =>
|
|
3097
|
+
() => te(!0),
|
|
3066
3098
|
3210
|
|
3067
3099
|
);
|
|
3068
3100
|
g.current = new AbortController(), g.current.signal.addEventListener("abort", () => {
|
|
3069
3101
|
clearTimeout(Be);
|
|
3070
3102
|
});
|
|
3071
3103
|
try {
|
|
3072
|
-
const
|
|
3104
|
+
const O = await fetch(W, {
|
|
3073
3105
|
cache: "no-store",
|
|
3074
3106
|
signal: g.current.signal
|
|
3075
3107
|
});
|
|
3076
|
-
clearTimeout(Be),
|
|
3077
|
-
const
|
|
3078
|
-
let
|
|
3079
|
-
|
|
3080
|
-
const
|
|
3081
|
-
let
|
|
3082
|
-
switch (
|
|
3108
|
+
clearTimeout(Be), te(!1);
|
|
3109
|
+
const X = performance.now() - re, Ln = new URL(W.url), mt = Array.from(O.headers.entries()), pt = O.headers.get("content-type") || "", ht = Ur(pt);
|
|
3110
|
+
let we = "", ft, gt;
|
|
3111
|
+
ht ? (ft = await O.blob(), gt = Gr(mt, W.url), we = `Binary content (${pt})`) : we = await O.text();
|
|
3112
|
+
const xt = O.headers.get("content-length");
|
|
3113
|
+
let ae = "";
|
|
3114
|
+
switch (h.bodyMode) {
|
|
3083
3115
|
case "text":
|
|
3084
|
-
|
|
3116
|
+
ae = h.body;
|
|
3085
3117
|
break;
|
|
3086
3118
|
case "file":
|
|
3087
|
-
|
|
3119
|
+
ae = `[File: ${h.file?.name ?? "Unknown"}]`;
|
|
3088
3120
|
break;
|
|
3089
3121
|
case "multipart":
|
|
3090
|
-
|
|
3091
|
-
`,
|
|
3092
|
-
(
|
|
3122
|
+
ae = `[Multipart Form Data]
|
|
3123
|
+
`, ae += h.multipartFormFields?.filter((G) => G.name && G.active).map(
|
|
3124
|
+
(G) => G.value instanceof File ? `${G.name}: [File: ${G.value.name}]` : `${G.name}: ${G.value}`
|
|
3093
3125
|
).join(`
|
|
3094
3126
|
`);
|
|
3095
3127
|
break;
|
|
3096
3128
|
default:
|
|
3097
|
-
|
|
3129
|
+
ae = h.body;
|
|
3098
3130
|
break;
|
|
3099
3131
|
}
|
|
3100
3132
|
return {
|
|
3101
|
-
status:
|
|
3102
|
-
headers:
|
|
3103
|
-
size:
|
|
3104
|
-
body:
|
|
3105
|
-
time:
|
|
3106
|
-
isBinary:
|
|
3107
|
-
fileName:
|
|
3108
|
-
blob:
|
|
3133
|
+
status: O.status,
|
|
3134
|
+
headers: mt,
|
|
3135
|
+
size: xt ? Number(xt) : we.length,
|
|
3136
|
+
body: we,
|
|
3137
|
+
time: X,
|
|
3138
|
+
isBinary: ht,
|
|
3139
|
+
fileName: gt,
|
|
3140
|
+
blob: ft,
|
|
3109
3141
|
request: {
|
|
3110
3142
|
method: W.method.toUpperCase(),
|
|
3111
3143
|
url: W.url,
|
|
3112
3144
|
headers: [
|
|
3113
|
-
["Host",
|
|
3145
|
+
["Host", Ln.host],
|
|
3114
3146
|
["User-Agent", "Zudoku Playground"],
|
|
3115
3147
|
...Array.from(W.headers.entries())
|
|
3116
3148
|
],
|
|
3117
|
-
body:
|
|
3149
|
+
body: ae
|
|
3118
3150
|
}
|
|
3119
3151
|
};
|
|
3120
|
-
} catch (
|
|
3121
|
-
throw clearTimeout(Be),
|
|
3152
|
+
} catch (O) {
|
|
3153
|
+
throw clearTimeout(Be), te(!1), O instanceof TypeError ? new Error(
|
|
3122
3154
|
"The request failed, possibly due to network issues or CORS policy."
|
|
3123
|
-
) :
|
|
3155
|
+
) : O;
|
|
3124
3156
|
}
|
|
3125
3157
|
}
|
|
3126
|
-
}),
|
|
3127
|
-
|
|
3128
|
-
const
|
|
3129
|
-
return () => clearTimeout(
|
|
3130
|
-
}, [
|
|
3131
|
-
const { isFinished: Sn, progress:
|
|
3132
|
-
|
|
3158
|
+
}), dt = J.isPending, [Nn, wn] = k(!1);
|
|
3159
|
+
U(() => {
|
|
3160
|
+
const h = setTimeout(() => wn(dt), 100);
|
|
3161
|
+
return () => clearTimeout(h);
|
|
3162
|
+
}, [dt]);
|
|
3163
|
+
const { isFinished: Sn, progress: Tn } = xs({ isAnimating: Nn });
|
|
3164
|
+
U(() => () => {
|
|
3133
3165
|
g.current?.abort();
|
|
3134
3166
|
}, []);
|
|
3135
|
-
const
|
|
3136
|
-
|
|
3167
|
+
const An = /* @__PURE__ */ t.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ t.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ t.jsxs(
|
|
3168
|
+
Mt,
|
|
3137
3169
|
{
|
|
3138
|
-
onValueChange: (
|
|
3139
|
-
|
|
3170
|
+
onValueChange: (h) => {
|
|
3171
|
+
N(() => p(h));
|
|
3140
3172
|
},
|
|
3141
3173
|
value: x,
|
|
3142
3174
|
defaultValue: x,
|
|
3143
3175
|
children: [
|
|
3144
|
-
/* @__PURE__ */ t.jsx(
|
|
3145
|
-
/* @__PURE__ */ t.jsx(
|
|
3176
|
+
/* @__PURE__ */ t.jsx(Gt, { className: "p-0 h-fit shadow-none border-none flex-row-reverse bg-transparent text-xs gap-0.5 translate-y-[4px]", children: /* @__PURE__ */ t.jsx(Ht, {}) }),
|
|
3177
|
+
/* @__PURE__ */ t.jsx(Qt, { children: n.map((h) => /* @__PURE__ */ t.jsx(Ae, { value: h, children: h.replace(/^https?:\/\//, "").replace(/\/$/, "") }, h)) })
|
|
3146
3178
|
]
|
|
3147
3179
|
}
|
|
3148
|
-
) }),
|
|
3180
|
+
) }), On = m && !j && !Q, Pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
3149
3181
|
a.toUpperCase()
|
|
3150
|
-
), [
|
|
3182
|
+
), [ut, $n] = ws();
|
|
3151
3183
|
return /* @__PURE__ */ t.jsx(
|
|
3152
|
-
|
|
3184
|
+
js,
|
|
3153
3185
|
{
|
|
3154
3186
|
register: De,
|
|
3155
|
-
control:
|
|
3156
|
-
handleSubmit:
|
|
3157
|
-
watch:
|
|
3187
|
+
control: ne,
|
|
3188
|
+
handleSubmit: Ce,
|
|
3189
|
+
watch: ct,
|
|
3158
3190
|
setValue: Fe,
|
|
3159
3191
|
...ze,
|
|
3160
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3192
|
+
children: /* @__PURE__ */ t.jsx(ys, { delayDuration: 150, children: /* @__PURE__ */ t.jsxs(
|
|
3161
3193
|
"form",
|
|
3162
3194
|
{
|
|
3163
3195
|
ref: T,
|
|
3164
|
-
onKeyDown: (
|
|
3165
|
-
|
|
3196
|
+
onKeyDown: (h) => {
|
|
3197
|
+
h.key === "Enter" && h.target instanceof HTMLInputElement && h.preventDefault();
|
|
3166
3198
|
},
|
|
3167
|
-
onSubmit:
|
|
3168
|
-
y.data?.length === 0 ||
|
|
3199
|
+
onSubmit: Ce((h) => {
|
|
3200
|
+
y.data?.length === 0 || h.identity ? J.mutate(h) : u(!0);
|
|
3169
3201
|
}),
|
|
3170
3202
|
className: "relative",
|
|
3171
3203
|
children: [
|
|
@@ -3175,22 +3207,22 @@ const pe = "__none", ga = ({
|
|
|
3175
3207
|
identities: y.data ?? [],
|
|
3176
3208
|
open: v,
|
|
3177
3209
|
onOpenChange: u,
|
|
3178
|
-
onSubmit: ({ rememberedIdentity:
|
|
3179
|
-
|
|
3210
|
+
onSubmit: ({ rememberedIdentity: h, identity: re }) => {
|
|
3211
|
+
h && Fe("identity", re ?? pe), u(!1), J.mutate({ ...ze.getValues(), identity: re });
|
|
3180
3212
|
}
|
|
3181
3213
|
}
|
|
3182
3214
|
),
|
|
3183
3215
|
/* @__PURE__ */ t.jsx(
|
|
3184
|
-
|
|
3216
|
+
ta,
|
|
3185
3217
|
{
|
|
3186
|
-
open:
|
|
3187
|
-
setOpen: (
|
|
3188
|
-
|
|
3218
|
+
open: On,
|
|
3219
|
+
setOpen: (h) => {
|
|
3220
|
+
h || je(!0);
|
|
3189
3221
|
},
|
|
3190
|
-
onSkip: (
|
|
3191
|
-
|
|
3222
|
+
onSkip: (h) => {
|
|
3223
|
+
je(!0), h && $(!0);
|
|
3192
3224
|
},
|
|
3193
|
-
onSignUp:
|
|
3225
|
+
onSignUp: f,
|
|
3194
3226
|
onLogin: d
|
|
3195
3227
|
}
|
|
3196
3228
|
),
|
|
@@ -3199,17 +3231,17 @@ const pe = "__none", ga = ({
|
|
|
3199
3231
|
/* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
|
|
3200
3232
|
/* @__PURE__ */ t.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
3201
3233
|
/* @__PURE__ */ t.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ t.jsxs("div", { className: "h-full py-1.5", children: [
|
|
3202
|
-
|
|
3203
|
-
/* @__PURE__ */ t.jsx(
|
|
3204
|
-
/* @__PURE__ */ t.jsx(
|
|
3234
|
+
An,
|
|
3235
|
+
/* @__PURE__ */ t.jsx(ra, { url: s }),
|
|
3236
|
+
/* @__PURE__ */ t.jsx(aa, {})
|
|
3205
3237
|
] }) }),
|
|
3206
3238
|
/* @__PURE__ */ t.jsx("div", { className: "px-1", children: /* @__PURE__ */ t.jsx(
|
|
3207
|
-
|
|
3239
|
+
B,
|
|
3208
3240
|
{
|
|
3209
3241
|
type: "button",
|
|
3210
3242
|
onClick: () => {
|
|
3211
|
-
|
|
3212
|
-
|
|
3243
|
+
$n(
|
|
3244
|
+
Lt(
|
|
3213
3245
|
e ?? x,
|
|
3214
3246
|
s,
|
|
3215
3247
|
ze.getValues()
|
|
@@ -3218,23 +3250,23 @@ const pe = "__none", ga = ({
|
|
|
3218
3250
|
},
|
|
3219
3251
|
variant: "ghost",
|
|
3220
3252
|
size: "icon-xs",
|
|
3221
|
-
className:
|
|
3253
|
+
className: S(
|
|
3222
3254
|
"hover:opacity-100 transition",
|
|
3223
|
-
|
|
3255
|
+
ut ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
3224
3256
|
),
|
|
3225
|
-
children:
|
|
3257
|
+
children: ut ? /* @__PURE__ */ t.jsx(Dt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ t.jsx(Wn, { size: 14 })
|
|
3226
3258
|
}
|
|
3227
3259
|
) })
|
|
3228
3260
|
] }),
|
|
3229
3261
|
/* @__PURE__ */ t.jsx(
|
|
3230
|
-
|
|
3262
|
+
B,
|
|
3231
3263
|
{
|
|
3232
3264
|
type: "submit",
|
|
3233
3265
|
variant: J.isPending ? "destructive" : "default",
|
|
3234
|
-
onClick: (
|
|
3266
|
+
onClick: (h) => {
|
|
3235
3267
|
J.isPending && (g.current?.abort(
|
|
3236
3268
|
"Request cancelled by user"
|
|
3237
|
-
),
|
|
3269
|
+
), h.preventDefault());
|
|
3238
3270
|
},
|
|
3239
3271
|
className: "w-18",
|
|
3240
3272
|
children: J.isPending ? "Cancel" : "Send"
|
|
@@ -3242,57 +3274,57 @@ const pe = "__none", ga = ({
|
|
|
3242
3274
|
)
|
|
3243
3275
|
] }),
|
|
3244
3276
|
/* @__PURE__ */ t.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
3245
|
-
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(
|
|
3246
|
-
/* @__PURE__ */ t.jsxs(
|
|
3247
|
-
/* @__PURE__ */ t.jsx(
|
|
3277
|
+
y.data?.length !== 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
3278
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
3279
|
+
/* @__PURE__ */ t.jsx(Xn, { size: 16 }),
|
|
3248
3280
|
/* @__PURE__ */ t.jsx(H, { children: "Authentication" })
|
|
3249
3281
|
] }),
|
|
3250
|
-
/* @__PURE__ */ t.jsx(
|
|
3251
|
-
|
|
3282
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(
|
|
3283
|
+
hn,
|
|
3252
3284
|
{
|
|
3253
|
-
value:
|
|
3285
|
+
value: se,
|
|
3254
3286
|
identities: y.data ?? [],
|
|
3255
|
-
setValue: (
|
|
3287
|
+
setValue: (h) => Fe("identity", h)
|
|
3256
3288
|
}
|
|
3257
3289
|
) })
|
|
3258
3290
|
] }),
|
|
3259
|
-
L.length > 0 && /* @__PURE__ */ t.jsxs(
|
|
3260
|
-
/* @__PURE__ */ t.jsxs(
|
|
3261
|
-
/* @__PURE__ */ t.jsx(
|
|
3291
|
+
L.length > 0 && /* @__PURE__ */ t.jsxs(_, { defaultOpen: !0, children: [
|
|
3292
|
+
/* @__PURE__ */ t.jsxs(Y, { children: [
|
|
3293
|
+
/* @__PURE__ */ t.jsx(Kn, { size: 16 }),
|
|
3262
3294
|
/* @__PURE__ */ t.jsx(H, { children: "Path Parameters" })
|
|
3263
3295
|
] }),
|
|
3264
|
-
/* @__PURE__ */ t.jsx(
|
|
3296
|
+
/* @__PURE__ */ t.jsx(q, { className: "CollapsibleContent", children: /* @__PURE__ */ t.jsx(Yr, { url: s, control: ne }) })
|
|
3265
3297
|
] }),
|
|
3266
|
-
/* @__PURE__ */ t.jsx(
|
|
3298
|
+
/* @__PURE__ */ t.jsx(ea, { control: ne, schemaQueryParams: o }),
|
|
3267
3299
|
/* @__PURE__ */ t.jsx(
|
|
3268
|
-
|
|
3300
|
+
Wr,
|
|
3269
3301
|
{
|
|
3270
|
-
control:
|
|
3302
|
+
control: ne,
|
|
3271
3303
|
schemaHeaders: r,
|
|
3272
|
-
lockedHeaders:
|
|
3304
|
+
lockedHeaders: Cn?.headers
|
|
3273
3305
|
}
|
|
3274
3306
|
),
|
|
3275
|
-
|
|
3307
|
+
Pn && /* @__PURE__ */ t.jsx(qr, { content: l })
|
|
3276
3308
|
] }),
|
|
3277
3309
|
/* @__PURE__ */ t.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
3278
3310
|
/* @__PURE__ */ t.jsx(
|
|
3279
|
-
|
|
3311
|
+
xa,
|
|
3280
3312
|
{
|
|
3281
3313
|
queryMutation: J,
|
|
3282
3314
|
showLongRunningWarning: Ie,
|
|
3283
3315
|
isFinished: Sn,
|
|
3284
|
-
progress:
|
|
3316
|
+
progress: Tn,
|
|
3285
3317
|
tip: /* @__PURE__ */ t.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3286
3318
|
"Press",
|
|
3287
3319
|
" ",
|
|
3288
|
-
/* @__PURE__ */ t.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children:
|
|
3320
|
+
/* @__PURE__ */ t.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: A.join(" + ") }),
|
|
3289
3321
|
" ",
|
|
3290
3322
|
"to send a request"
|
|
3291
3323
|
] }) }),
|
|
3292
3324
|
onCancel: () => {
|
|
3293
3325
|
g.current?.abort(
|
|
3294
3326
|
"Request cancelled by the user"
|
|
3295
|
-
),
|
|
3327
|
+
), te(!1);
|
|
3296
3328
|
}
|
|
3297
3329
|
}
|
|
3298
3330
|
)
|
|
@@ -3302,10 +3334,10 @@ const pe = "__none", ga = ({
|
|
|
3302
3334
|
) })
|
|
3303
3335
|
}
|
|
3304
3336
|
);
|
|
3305
|
-
},
|
|
3306
|
-
const [n, s] =
|
|
3307
|
-
return /* @__PURE__ */ t.jsxs(
|
|
3308
|
-
/* @__PURE__ */ t.jsx(
|
|
3337
|
+
}, va = (e) => {
|
|
3338
|
+
const [n, s] = k(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: c } = hs();
|
|
3339
|
+
return /* @__PURE__ */ t.jsxs(et, { onOpenChange: (l) => s(l), children: [
|
|
3340
|
+
/* @__PURE__ */ t.jsx(gs, { asChild: !0, children: e.children ?? /* @__PURE__ */ t.jsx(B, { variant: "ghost", size: "icon-xs", className: "group", children: /* @__PURE__ */ t.jsx(
|
|
3309
3341
|
Zn,
|
|
3310
3342
|
{
|
|
3311
3343
|
className: "fill-muted-foreground group-hover:fill-foreground transition",
|
|
@@ -3314,15 +3346,15 @@ const pe = "__none", ga = ({
|
|
|
3314
3346
|
}
|
|
3315
3347
|
) }) }),
|
|
3316
3348
|
/* @__PURE__ */ t.jsxs(
|
|
3317
|
-
|
|
3349
|
+
tt,
|
|
3318
3350
|
{
|
|
3319
3351
|
className: "max-w-screen-xl! w-full overflow-hidden p-0",
|
|
3320
3352
|
"aria-describedby": void 0,
|
|
3321
3353
|
showCloseButton: !0,
|
|
3322
3354
|
children: [
|
|
3323
|
-
/* @__PURE__ */ t.jsx(
|
|
3355
|
+
/* @__PURE__ */ t.jsx(ms, { children: /* @__PURE__ */ t.jsx(nt, { children: "Playground" }) }),
|
|
3324
3356
|
n && /* @__PURE__ */ t.jsx(
|
|
3325
|
-
|
|
3357
|
+
ya,
|
|
3326
3358
|
{
|
|
3327
3359
|
requiresLogin: a && !c && !i,
|
|
3328
3360
|
onLogin: () => r(),
|
|
@@ -3334,7 +3366,7 @@ const pe = "__none", ga = ({
|
|
|
3334
3366
|
}
|
|
3335
3367
|
)
|
|
3336
3368
|
] });
|
|
3337
|
-
},
|
|
3369
|
+
}, ba = {
|
|
3338
3370
|
get: "green",
|
|
3339
3371
|
post: "blue",
|
|
3340
3372
|
put: "yellow",
|
|
@@ -3342,7 +3374,7 @@ const pe = "__none", ga = ({
|
|
|
3342
3374
|
patch: "purple",
|
|
3343
3375
|
options: "gray",
|
|
3344
3376
|
head: "gray"
|
|
3345
|
-
},
|
|
3377
|
+
}, Et = ({
|
|
3346
3378
|
label: e,
|
|
3347
3379
|
path: n,
|
|
3348
3380
|
operations: s,
|
|
@@ -3366,21 +3398,21 @@ const pe = "__none", ga = ({
|
|
|
3366
3398
|
badge: {
|
|
3367
3399
|
label: o.method,
|
|
3368
3400
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3369
|
-
color:
|
|
3401
|
+
color: ba[o.method.toLowerCase()],
|
|
3370
3402
|
invert: !0
|
|
3371
3403
|
}
|
|
3372
3404
|
}))
|
|
3373
|
-
}),
|
|
3405
|
+
}), yn = zt(
|
|
3374
3406
|
void 0
|
|
3375
|
-
),
|
|
3376
|
-
const e =
|
|
3407
|
+
), oo = yn.Provider, ja = () => {
|
|
3408
|
+
const e = us(yn);
|
|
3377
3409
|
if (!e)
|
|
3378
3410
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3379
3411
|
return e.config;
|
|
3380
|
-
},
|
|
3412
|
+
}, Qe = (e) => ({
|
|
3381
3413
|
path: e.routePath,
|
|
3382
3414
|
async lazy() {
|
|
3383
|
-
const { OasProvider: n } = await import("./OasProvider-
|
|
3415
|
+
const { OasProvider: n } = await import("./OasProvider-CZqLHoRo.js");
|
|
3384
3416
|
return {
|
|
3385
3417
|
element: /* @__PURE__ */ t.jsx(
|
|
3386
3418
|
n,
|
|
@@ -3394,23 +3426,23 @@ const pe = "__none", ga = ({
|
|
|
3394
3426
|
};
|
|
3395
3427
|
},
|
|
3396
3428
|
children: e.routes
|
|
3397
|
-
}),
|
|
3429
|
+
}), vn = ({
|
|
3398
3430
|
path: e,
|
|
3399
3431
|
tag: n,
|
|
3400
3432
|
untagged: s
|
|
3401
3433
|
}) => ({
|
|
3402
3434
|
path: e,
|
|
3403
3435
|
async lazy() {
|
|
3404
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3436
|
+
const { OperationList: a } = await import("./OperationList-BmV1XvEY.js");
|
|
3405
3437
|
return { element: /* @__PURE__ */ t.jsx(a, { tag: n, untagged: s }) };
|
|
3406
3438
|
}
|
|
3407
|
-
}),
|
|
3439
|
+
}), Ca = ({
|
|
3408
3440
|
render: e,
|
|
3409
3441
|
path: n
|
|
3410
3442
|
}) => {
|
|
3411
|
-
const { type: s, input: a } =
|
|
3443
|
+
const { type: s, input: a } = ja(), { tag: r } = ts(), o = ns(), i = wr(jn, { type: s, input: a }), {
|
|
3412
3444
|
data: { schema: c }
|
|
3413
|
-
} =
|
|
3445
|
+
} = Us(i), l = c.tags.at(0);
|
|
3414
3446
|
return !r && l?.slug ? /* @__PURE__ */ t.jsx(
|
|
3415
3447
|
ss,
|
|
3416
3448
|
{
|
|
@@ -3420,13 +3452,13 @@ const pe = "__none", ga = ({
|
|
|
3420
3452
|
}
|
|
3421
3453
|
}
|
|
3422
3454
|
) : r && c.tags.some((m) => m.slug === r) ? e(r) : null;
|
|
3423
|
-
},
|
|
3455
|
+
}, Rt = ({ path: e }) => ({
|
|
3424
3456
|
path: e,
|
|
3425
3457
|
async lazy() {
|
|
3426
|
-
const { OperationList: n } = await import("./OperationList-
|
|
3458
|
+
const { OperationList: n } = await import("./OperationList-BmV1XvEY.js");
|
|
3427
3459
|
return {
|
|
3428
3460
|
element: /* @__PURE__ */ t.jsx(
|
|
3429
|
-
|
|
3461
|
+
Ca,
|
|
3430
3462
|
{
|
|
3431
3463
|
path: e,
|
|
3432
3464
|
render: (s) => /* @__PURE__ */ t.jsx(n, { tag: s })
|
|
@@ -3434,66 +3466,84 @@ const pe = "__none", ga = ({
|
|
|
3434
3466
|
)
|
|
3435
3467
|
};
|
|
3436
3468
|
}
|
|
3437
|
-
}),
|
|
3469
|
+
}), Ke = (e) => [
|
|
3438
3470
|
// Category without tagged operations
|
|
3439
|
-
|
|
3440
|
-
path: V(e,
|
|
3471
|
+
vn({
|
|
3472
|
+
path: V(e, lt),
|
|
3441
3473
|
untagged: !0
|
|
3442
3474
|
}),
|
|
3443
3475
|
// Schema list route
|
|
3444
3476
|
{
|
|
3445
3477
|
path: V(e, "~schemas"),
|
|
3446
3478
|
lazy: async () => {
|
|
3447
|
-
const { SchemaList: n } = await import("./SchemaList-
|
|
3479
|
+
const { SchemaList: n } = await import("./SchemaList-D23IyrX5.js");
|
|
3448
3480
|
return { element: /* @__PURE__ */ t.jsx(n, {}) };
|
|
3449
3481
|
}
|
|
3450
3482
|
}
|
|
3451
|
-
],
|
|
3452
|
-
const s = V(e, n.at(0) ??
|
|
3483
|
+
], Na = (e, n) => {
|
|
3484
|
+
const s = V(e, n.at(0) ?? lt);
|
|
3453
3485
|
return [
|
|
3454
3486
|
// Redirect to first tag on the index route
|
|
3455
3487
|
{ index: !0, loader: () => es(s) },
|
|
3456
3488
|
// Create routes for each tag
|
|
3457
3489
|
...n.map(
|
|
3458
|
-
(a) =>
|
|
3490
|
+
(a) => vn({
|
|
3459
3491
|
path: V(e, a),
|
|
3460
3492
|
tag: a
|
|
3461
3493
|
})
|
|
3462
3494
|
),
|
|
3463
|
-
...
|
|
3495
|
+
...Ke(e)
|
|
3464
3496
|
];
|
|
3465
|
-
},
|
|
3497
|
+
}, bn = (e) => e.type === "raw" || !Array.isArray(e.input) ? { versions: [], labels: {}, downloadUrls: {} } : {
|
|
3498
|
+
versions: e.input.map((n) => n.path),
|
|
3499
|
+
labels: Object.fromEntries(
|
|
3500
|
+
e.input.map((n) => [n.path, n.label ?? n.path])
|
|
3501
|
+
),
|
|
3502
|
+
downloadUrls: Object.fromEntries(
|
|
3503
|
+
e.input.map((n) => [n.path, n.downloadUrl])
|
|
3504
|
+
)
|
|
3505
|
+
}, wa = ({
|
|
3466
3506
|
basePath: e,
|
|
3467
3507
|
config: n,
|
|
3468
3508
|
client: s
|
|
3469
3509
|
}) => {
|
|
3470
|
-
const a = n.tagPages;
|
|
3471
|
-
|
|
3472
|
-
return [
|
|
3473
|
-
kt({
|
|
3474
|
-
basePath: e,
|
|
3475
|
-
routePath: e,
|
|
3476
|
-
routes: [
|
|
3477
|
-
ja({ path: `${e}/:tag?` }),
|
|
3478
|
-
...yn(e)
|
|
3479
|
-
],
|
|
3480
|
-
client: s,
|
|
3481
|
-
config: n
|
|
3482
|
-
})
|
|
3483
|
-
];
|
|
3484
|
-
const r = vn(n);
|
|
3485
|
-
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3510
|
+
const a = n.tagPages, { versions: r } = bn(n);
|
|
3511
|
+
return a ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3486
3512
|
const c = V(e, i);
|
|
3487
|
-
return
|
|
3513
|
+
return Qe({
|
|
3488
3514
|
basePath: e,
|
|
3489
3515
|
version: i,
|
|
3490
3516
|
routePath: c,
|
|
3491
|
-
routes:
|
|
3517
|
+
routes: Na(c, a),
|
|
3492
3518
|
client: s,
|
|
3493
3519
|
config: n
|
|
3494
3520
|
});
|
|
3495
|
-
})
|
|
3496
|
-
|
|
3521
|
+
}) : r.length > 0 ? (r.length > 1 ? [void 0, ...r] : [void 0]).map((c) => {
|
|
3522
|
+
const l = V(e, c);
|
|
3523
|
+
return Qe({
|
|
3524
|
+
basePath: e,
|
|
3525
|
+
version: c,
|
|
3526
|
+
routePath: l,
|
|
3527
|
+
routes: [
|
|
3528
|
+
Rt({ path: `${l}/:tag?` }),
|
|
3529
|
+
...Ke(l)
|
|
3530
|
+
],
|
|
3531
|
+
client: s,
|
|
3532
|
+
config: n
|
|
3533
|
+
});
|
|
3534
|
+
}) : [
|
|
3535
|
+
Qe({
|
|
3536
|
+
basePath: e,
|
|
3537
|
+
routePath: e,
|
|
3538
|
+
routes: [
|
|
3539
|
+
Rt({ path: `${e}/:tag?` }),
|
|
3540
|
+
...Ke(e)
|
|
3541
|
+
],
|
|
3542
|
+
client: s,
|
|
3543
|
+
config: n
|
|
3544
|
+
})
|
|
3545
|
+
];
|
|
3546
|
+
}, jn = Er(`
|
|
3497
3547
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3498
3548
|
schema(input: $input, type: $type) {
|
|
3499
3549
|
extensions
|
|
@@ -3516,20 +3566,21 @@ const pe = "__none", ga = ({
|
|
|
3516
3566
|
}
|
|
3517
3567
|
}
|
|
3518
3568
|
}
|
|
3519
|
-
`),
|
|
3569
|
+
`), lt = "~endpoints", io = (e) => {
|
|
3520
3570
|
const n = V(e.path), s = new Gs(e);
|
|
3521
3571
|
return {
|
|
3522
3572
|
getHead: () => {
|
|
3523
3573
|
if (e.type === "url" && !e.skipPreload)
|
|
3524
|
-
return /* @__PURE__ */ t.jsx(
|
|
3574
|
+
return (Array.isArray(e.input) ? e.input.map((r) => r.input) : [e.input]).map((r) => /* @__PURE__ */ t.jsx(
|
|
3525
3575
|
"link",
|
|
3526
3576
|
{
|
|
3577
|
+
href: r,
|
|
3527
3578
|
rel: "preload",
|
|
3528
|
-
href: e.input,
|
|
3529
3579
|
as: "fetch",
|
|
3530
3580
|
crossOrigin: "anonymous"
|
|
3531
|
-
}
|
|
3532
|
-
|
|
3581
|
+
},
|
|
3582
|
+
r
|
|
3583
|
+
));
|
|
3533
3584
|
if (e.server)
|
|
3534
3585
|
return /* @__PURE__ */ t.jsx("link", { rel: "preconnect", href: e.server });
|
|
3535
3586
|
},
|
|
@@ -3544,13 +3595,13 @@ const pe = "__none", ga = ({
|
|
|
3544
3595
|
if (!a)
|
|
3545
3596
|
throw new Error("Server is required");
|
|
3546
3597
|
return /* @__PURE__ */ t.jsx(
|
|
3547
|
-
|
|
3598
|
+
va,
|
|
3548
3599
|
{
|
|
3549
3600
|
url: o,
|
|
3550
3601
|
method: r,
|
|
3551
3602
|
server: a,
|
|
3552
3603
|
...c,
|
|
3553
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3604
|
+
children: /* @__PURE__ */ t.jsx(K, { className: "gap-2 items-center", variant: "outline", children: i ?? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3554
3605
|
"Open in Playground",
|
|
3555
3606
|
/* @__PURE__ */ t.jsx(Yn, { size: 16 })
|
|
3556
3607
|
] }) })
|
|
@@ -3559,109 +3610,109 @@ const pe = "__none", ga = ({
|
|
|
3559
3610
|
}
|
|
3560
3611
|
}),
|
|
3561
3612
|
getNavigation: async (a, r) => {
|
|
3562
|
-
if (!
|
|
3613
|
+
if (!jt({ path: n, end: !1 }, a))
|
|
3563
3614
|
return [];
|
|
3564
|
-
const o =
|
|
3615
|
+
const o = jt(
|
|
3565
3616
|
{ path: `${n}/:version?/:tag`, end: !0 },
|
|
3566
3617
|
a
|
|
3567
3618
|
);
|
|
3568
3619
|
try {
|
|
3569
|
-
const i = o?.params.version, c = i ??
|
|
3570
|
-
type:
|
|
3571
|
-
input:
|
|
3572
|
-
}),
|
|
3573
|
-
|
|
3620
|
+
const i = o?.params.version, { versions: c } = bn(e), l = i ?? c.at(0), { type: m } = e, d = Array.isArray(e.input) ? e.input.find((N) => N.path === l)?.input ?? e.input[0]?.input : e.input, f = cn(s, jn, {
|
|
3621
|
+
type: m,
|
|
3622
|
+
input: d
|
|
3623
|
+
}), x = await r.queryClient.ensureQueryData(f), p = new Map(
|
|
3624
|
+
x.schema.tags.filter((N) => N.name && N.operations.length > 0).map((N) => {
|
|
3574
3625
|
if (!N.name)
|
|
3575
3626
|
throw new Error(`Tag ${N.slug} has no name`);
|
|
3576
|
-
const
|
|
3627
|
+
const j = V(n, i, N.slug), $ = N.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, Q = N.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3577
3628
|
return [
|
|
3578
3629
|
N.name,
|
|
3579
|
-
|
|
3630
|
+
Et({
|
|
3580
3631
|
label: N.extensions?.["x-displayName"] ?? N.name,
|
|
3581
|
-
path:
|
|
3632
|
+
path: j,
|
|
3582
3633
|
operations: N.operations,
|
|
3583
|
-
collapsed:
|
|
3584
|
-
collapsible:
|
|
3634
|
+
collapsed: $,
|
|
3635
|
+
collapsible: Q
|
|
3585
3636
|
})
|
|
3586
3637
|
];
|
|
3587
3638
|
})
|
|
3588
|
-
),
|
|
3589
|
-
|
|
3590
|
-
(N) => N.tags.filter((
|
|
3639
|
+
), v = x.schema.extensions?.["x-tagGroups"] ?? [], u = new Set(
|
|
3640
|
+
v.flatMap(
|
|
3641
|
+
(N) => N.tags.filter((j) => p.has(j))
|
|
3591
3642
|
)
|
|
3592
|
-
),
|
|
3593
|
-
...
|
|
3643
|
+
), w = [
|
|
3644
|
+
...v.flatMap(
|
|
3594
3645
|
(N) => {
|
|
3595
|
-
const
|
|
3596
|
-
return
|
|
3646
|
+
const j = N.tags.map(($) => p.get($)).filter(Boolean);
|
|
3647
|
+
return j.length === 0 ? [] : [
|
|
3597
3648
|
{
|
|
3598
3649
|
type: "category",
|
|
3599
3650
|
label: N.name,
|
|
3600
|
-
items:
|
|
3651
|
+
items: j,
|
|
3601
3652
|
collapsible: !0,
|
|
3602
3653
|
collapsed: !e.options?.expandAllTags
|
|
3603
3654
|
}
|
|
3604
3655
|
];
|
|
3605
3656
|
}
|
|
3606
3657
|
),
|
|
3607
|
-
...Array.from(
|
|
3608
|
-
],
|
|
3658
|
+
...Array.from(p.entries()).filter(([N]) => !u.has(N)).map(([, N]) => N)
|
|
3659
|
+
], R = x.schema.tags.find(
|
|
3609
3660
|
(N) => !N.name
|
|
3610
3661
|
)?.operations;
|
|
3611
|
-
return
|
|
3612
|
-
|
|
3613
|
-
label:
|
|
3614
|
-
path: V(n, i,
|
|
3615
|
-
operations:
|
|
3662
|
+
return R && R.length > 0 && w.push(
|
|
3663
|
+
Et({
|
|
3664
|
+
label: w.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3665
|
+
path: V(n, i, lt),
|
|
3666
|
+
operations: R,
|
|
3616
3667
|
collapsed: !e.options?.expandAllTags
|
|
3617
3668
|
})
|
|
3618
|
-
),
|
|
3669
|
+
), x.schema.components?.schemas?.length && w.push({
|
|
3619
3670
|
type: "link",
|
|
3620
3671
|
label: "Schemas",
|
|
3621
3672
|
to: V(n, i, "~schemas")
|
|
3622
|
-
}),
|
|
3673
|
+
}), w;
|
|
3623
3674
|
} catch {
|
|
3624
3675
|
return [];
|
|
3625
3676
|
}
|
|
3626
3677
|
},
|
|
3627
|
-
getRoutes: () =>
|
|
3678
|
+
getRoutes: () => wa({ basePath: n, config: e, client: s })
|
|
3628
3679
|
};
|
|
3629
3680
|
};
|
|
3630
3681
|
export {
|
|
3631
|
-
|
|
3632
|
-
|
|
3682
|
+
_ as C,
|
|
3683
|
+
ao as G,
|
|
3633
3684
|
sr as L,
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3685
|
+
oo as O,
|
|
3686
|
+
va as P,
|
|
3687
|
+
Ks as Q,
|
|
3688
|
+
on as S,
|
|
3638
3689
|
b as T,
|
|
3639
|
-
|
|
3640
|
-
|
|
3690
|
+
lt as U,
|
|
3691
|
+
wr as a,
|
|
3641
3692
|
de as b,
|
|
3642
|
-
|
|
3643
|
-
|
|
3693
|
+
q as c,
|
|
3694
|
+
Er as d,
|
|
3644
3695
|
Vr as e,
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3696
|
+
fn as f,
|
|
3697
|
+
bn as g,
|
|
3698
|
+
sa as h,
|
|
3648
3699
|
Cr as i,
|
|
3649
|
-
|
|
3650
|
-
|
|
3700
|
+
Pt as j,
|
|
3701
|
+
so as k,
|
|
3651
3702
|
rr as l,
|
|
3652
|
-
|
|
3653
|
-
|
|
3703
|
+
rt as m,
|
|
3704
|
+
an as n,
|
|
3654
3705
|
Hs as o,
|
|
3655
3706
|
jr as p,
|
|
3656
3707
|
qe as q,
|
|
3657
3708
|
Qs as r,
|
|
3658
3709
|
F as s,
|
|
3659
|
-
|
|
3660
|
-
|
|
3710
|
+
ro as t,
|
|
3711
|
+
ja as u,
|
|
3661
3712
|
nr as v,
|
|
3662
3713
|
Ys as w,
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3714
|
+
tn as x,
|
|
3715
|
+
jn as y,
|
|
3716
|
+
io as z
|
|
3666
3717
|
};
|
|
3667
|
-
//# sourceMappingURL=index-
|
|
3718
|
+
//# sourceMappingURL=index-B7bvsQHg.js.map
|