zudoku 0.0.0-fix-create-zudoku-run-build.fefccf58 → 0.0.0-reset-hash-value.ac516c6d
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/README.md +32 -12
- package/dist/cli/cli.d.ts +9 -0
- package/dist/cli/cli.js +4 -10
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/common/version-check.d.ts +2 -0
- package/dist/cli/common/version-check.js +58 -0
- package/dist/cli/common/version-check.js.map +1 -0
- package/dist/config/config.d.ts +3 -0
- package/dist/config/validators/BuildSchema.d.ts +10 -3
- package/dist/config/validators/BuildSchema.js +14 -0
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +192 -32
- package/dist/config/validators/InputNavigationSchema.js +1 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/icon-types.js +39 -0
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +39 -9
- package/dist/config/validators/validate.js +23 -0
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +352 -0
- package/dist/lib/assets/language-icons/c.d.ts +3 -0
- package/dist/lib/assets/language-icons/c.js +4 -0
- package/dist/lib/assets/language-icons/c.js.map +1 -0
- package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
- package/dist/lib/assets/language-icons/commonlisp.js +4 -0
- package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
- package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
- package/dist/lib/assets/language-icons/cpp.js +4 -0
- package/dist/lib/assets/language-icons/cpp.js.map +1 -0
- package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
- package/dist/lib/assets/language-icons/csharp.js +4 -0
- package/dist/lib/assets/language-icons/csharp.js.map +1 -0
- package/dist/lib/assets/language-icons/css.d.ts +3 -0
- package/dist/lib/assets/language-icons/css.js +4 -0
- package/dist/lib/assets/language-icons/css.js.map +1 -0
- package/dist/lib/assets/language-icons/dart.d.ts +3 -0
- package/dist/lib/assets/language-icons/dart.js +4 -0
- package/dist/lib/assets/language-icons/dart.js.map +1 -0
- package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
- package/dist/lib/assets/language-icons/elixir.js +4 -0
- package/dist/lib/assets/language-icons/elixir.js.map +1 -0
- package/dist/lib/assets/language-icons/go.d.ts +3 -0
- package/dist/lib/assets/language-icons/go.js +4 -0
- package/dist/lib/assets/language-icons/go.js.map +1 -0
- package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
- package/dist/lib/assets/language-icons/graphql.js +4 -0
- package/dist/lib/assets/language-icons/graphql.js.map +1 -0
- package/dist/lib/assets/language-icons/html.d.ts +3 -0
- package/dist/lib/assets/language-icons/html.js +4 -0
- package/dist/lib/assets/language-icons/html.js.map +1 -0
- package/dist/lib/assets/language-icons/java.d.ts +3 -0
- package/dist/lib/assets/language-icons/java.js +4 -0
- package/dist/lib/assets/language-icons/java.js.map +1 -0
- package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
- package/dist/lib/assets/language-icons/javascript.js +4 -0
- package/dist/lib/assets/language-icons/javascript.js.map +1 -0
- package/dist/lib/assets/language-icons/json.d.ts +3 -0
- package/dist/lib/assets/language-icons/json.js +4 -0
- package/dist/lib/assets/language-icons/json.js.map +1 -0
- package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
- package/dist/lib/assets/language-icons/kotlin.js +4 -0
- package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
- package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
- package/dist/lib/assets/language-icons/markdown.js +4 -0
- package/dist/lib/assets/language-icons/markdown.js.map +1 -0
- package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
- package/dist/lib/assets/language-icons/mdx.js +4 -0
- package/dist/lib/assets/language-icons/mdx.js.map +1 -0
- package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
- package/dist/lib/assets/language-icons/objectivec.js +4 -0
- package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
- package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/ocaml.js +4 -0
- package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
- package/dist/lib/assets/language-icons/php.d.ts +3 -0
- package/dist/lib/assets/language-icons/php.js +4 -0
- package/dist/lib/assets/language-icons/php.js.map +1 -0
- package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
- package/dist/lib/assets/language-icons/powershell.js +4 -0
- package/dist/lib/assets/language-icons/powershell.js.map +1 -0
- package/dist/lib/assets/language-icons/python.d.ts +3 -0
- package/dist/lib/assets/language-icons/python.js +4 -0
- package/dist/lib/assets/language-icons/python.js.map +1 -0
- package/dist/lib/assets/language-icons/react.d.ts +3 -0
- package/dist/lib/assets/language-icons/react.js +4 -0
- package/dist/lib/assets/language-icons/react.js.map +1 -0
- package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
- package/dist/lib/assets/language-icons/ruby.js +4 -0
- package/dist/lib/assets/language-icons/ruby.js.map +1 -0
- package/dist/lib/assets/language-icons/rust.d.ts +3 -0
- package/dist/lib/assets/language-icons/rust.js +4 -0
- package/dist/lib/assets/language-icons/rust.js.map +1 -0
- package/dist/lib/assets/language-icons/scala.d.ts +3 -0
- package/dist/lib/assets/language-icons/scala.js +4 -0
- package/dist/lib/assets/language-icons/scala.js.map +1 -0
- package/dist/lib/assets/language-icons/shell.d.ts +3 -0
- package/dist/lib/assets/language-icons/shell.js +4 -0
- package/dist/lib/assets/language-icons/shell.js.map +1 -0
- package/dist/lib/assets/language-icons/swift.d.ts +3 -0
- package/dist/lib/assets/language-icons/swift.js +4 -0
- package/dist/lib/assets/language-icons/swift.js.map +1 -0
- package/dist/lib/assets/language-icons/toml.d.ts +3 -0
- package/dist/lib/assets/language-icons/toml.js +4 -0
- package/dist/lib/assets/language-icons/toml.js.map +1 -0
- package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
- package/dist/lib/assets/language-icons/typescript.js +4 -0
- package/dist/lib/assets/language-icons/typescript.js.map +1 -0
- package/dist/lib/assets/language-icons/xml.d.ts +3 -0
- package/dist/lib/assets/language-icons/xml.js +4 -0
- package/dist/lib/assets/language-icons/xml.js.map +1 -0
- package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
- package/dist/lib/assets/language-icons/yaml.js +4 -0
- package/dist/lib/assets/language-icons/yaml.js.map +1 -0
- package/dist/lib/assets/language-icons/zig.d.ts +3 -0
- package/dist/lib/assets/language-icons/zig.js +4 -0
- package/dist/lib/assets/language-icons/zig.js.map +1 -0
- package/dist/lib/authentication/providers/auth0.js +7 -3
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/openid.js +2 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +5 -3
- package/dist/lib/components/BuildCheck.js +2 -2
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Heading.js +1 -5
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/LanguageIcon.d.ts +3 -0
- package/dist/lib/components/LanguageIcon.js +163 -0
- package/dist/lib/components/LanguageIcon.js.map +1 -0
- package/dist/lib/components/Main.js +1 -1
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Meta.js +1 -1
- package/dist/lib/components/Meta.js.map +1 -1
- package/dist/lib/components/cache.d.ts +3 -1
- package/dist/lib/components/cache.js +3 -5
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.js +10 -2
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +12 -2
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +1 -1
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +1 -1
- package/dist/lib/oas/graphql/index.js +37 -2
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
- package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +5 -10
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +27 -4
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
- package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +2 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
- package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
- package/dist/lib/plugins/openapi/OperationList.js +22 -6
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.js +8 -3
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
- package/dist/lib/plugins/openapi/ParameterList.js +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +1 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +4 -3
- package/dist/lib/plugins/openapi/Sidecar.js +6 -9
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -4
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -2
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +11 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js +11 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +3 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +15 -3
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +2 -2
- package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +5 -5
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/UnionView.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/UnionView.js +13 -7
- package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/union-helpers.js +25 -1
- package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +5 -3
- package/dist/lib/shiki.js +13 -0
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Carousel.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +1 -1
- package/dist/lib/ui/CodeBlock.js +3 -28
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
- package/dist/lib/ui/ReactComponentDoc.js +10 -0
- package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
- package/dist/lib/ui/Secret.d.ts +18 -0
- package/dist/lib/ui/Secret.js +26 -0
- package/dist/lib/ui/Secret.js.map +1 -0
- package/dist/lib/ui/Value.d.ts +5 -0
- package/dist/lib/ui/Value.js +13 -0
- package/dist/lib/ui/Value.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +1 -1
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/pastellize.js +4 -4
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +1 -0
- package/dist/lib/util/traverse.js +25 -0
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +10 -6
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +60 -41
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +75 -2
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/llms.d.ts +12 -0
- package/dist/vite/llms.js +66 -0
- package/dist/vite/llms.js.map +1 -0
- package/dist/vite/plugin-api.js +4 -12
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +9 -0
- package/dist/vite/plugin-docs.js +67 -44
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.d.ts +21 -0
- package/dist/vite/plugin-markdown-export.js +139 -0
- package/dist/vite/plugin-markdown-export.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +1 -1
- package/dist/vite/plugin-mdx.js +7 -4
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-navigation.js +4 -0
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/dist/vite/plugin.js +2 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/prerender.js +37 -4
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
- package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
- package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
- package/dist/zuplo/enrich-with-zuplo.js +1 -1
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.js +2 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/lib/{Button-B3o-2Xdf.js → Button-DmS4u8Lj.js} +2 -2
- package/lib/{Button-B3o-2Xdf.js.map → Button-DmS4u8Lj.js.map} +1 -1
- package/lib/{Card-CMDQUPM4.js → Card-KFniaZn5.js} +2 -2
- package/lib/{Card-CMDQUPM4.js.map → Card-KFniaZn5.js.map} +1 -1
- package/lib/{CategoryHeading-DCpZu3yG.js → CategoryHeading-DhmodDcq.js} +2 -2
- package/lib/{CategoryHeading-DCpZu3yG.js.map → CategoryHeading-DhmodDcq.js.map} +1 -1
- package/lib/CodeBlock-CanTUJLl.js +221 -0
- package/lib/CodeBlock-CanTUJLl.js.map +1 -0
- package/lib/{Command-CUSlH0gJ.js → Command-CJY6q3PF.js} +3 -3
- package/lib/{Command-CUSlH0gJ.js.map → Command-CJY6q3PF.js.map} +1 -1
- package/lib/{Dialog-BmgXWOaz.js → Dialog-BOl0QB3n.js} +2 -2
- package/lib/{Dialog-BmgXWOaz.js.map → Dialog-BOl0QB3n.js.map} +1 -1
- package/lib/{Drawer-DJ05s2pH.js → Drawer-Ci7XwhqT.js} +2 -2
- package/lib/{Drawer-DJ05s2pH.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
- package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
- package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
- package/lib/{Slot-BbdqiRXo.js → ErrorAlert-VBJ8aHH7.js} +1865 -1879
- package/lib/ErrorAlert-VBJ8aHH7.js.map +1 -0
- package/lib/MdxPage-DFRNwSsc.js +239 -0
- package/lib/MdxPage-DFRNwSsc.js.map +1 -0
- package/lib/{OAuthErrorPage-rAKHHveX.js → OAuthErrorPage-DJUOdr6Q.js} +8 -8
- package/lib/{OAuthErrorPage-rAKHHveX.js.map → OAuthErrorPage-DJUOdr6Q.js.map} +1 -1
- package/lib/{OasProvider-BW4OzAuR.js → OasProvider-BMUgPYQU.js} +4 -4
- package/lib/{OasProvider-BW4OzAuR.js.map → OasProvider-BMUgPYQU.js.map} +1 -1
- package/lib/OperationList-DVig5I94.js +5446 -0
- package/lib/OperationList-DVig5I94.js.map +1 -0
- package/lib/{Pagination-ZI2yyuxj.js → Pagination-CT4VUR6u.js} +4 -4
- package/lib/{Pagination-ZI2yyuxj.js.map → Pagination-CT4VUR6u.js.map} +1 -1
- package/lib/{RouteGuard-BIksrt_C.js → RouteGuard-BPWQlxy5.js} +9 -9
- package/lib/{RouteGuard-BIksrt_C.js.map → RouteGuard-BPWQlxy5.js.map} +1 -1
- package/lib/{RouterError-BYHrbLtD.js → RouterError-fm21cqlj.js} +5 -5
- package/lib/{RouterError-BYHrbLtD.js.map → RouterError-fm21cqlj.js.map} +1 -1
- package/lib/{SchemaList-C4Sk-tLI.js → SchemaList-1eLKXqn8.js} +10 -10
- package/lib/{SchemaList-C4Sk-tLI.js.map → SchemaList-1eLKXqn8.js.map} +1 -1
- package/lib/SchemaView-fq3uKfOA.js +458 -0
- package/lib/SchemaView-fq3uKfOA.js.map +1 -0
- package/lib/Select-CPoGZU_V.js +372 -0
- package/lib/Select-CPoGZU_V.js.map +1 -0
- package/lib/{SignUp-CznaQsRx.js → SignUp-BraHuRN_.js} +12 -12
- package/lib/{SignUp-CznaQsRx.js.map → SignUp-BraHuRN_.js.map} +1 -1
- package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
- package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
- package/lib/{SyntaxHighlight-CvzJ7DNa.js → SyntaxHighlight-B0laqAqK.js} +293 -273
- package/lib/SyntaxHighlight-B0laqAqK.js.map +1 -0
- package/lib/{Toc-BAa-kpqN.js → Toc-KzXCRqrX.js} +3 -3
- package/lib/{Toc-BAa-kpqN.js.map → Toc-KzXCRqrX.js.map} +1 -1
- package/lib/ZudokuContext-BXTZApgy.js +1506 -0
- package/lib/ZudokuContext-BXTZApgy.js.map +1 -0
- package/lib/c-B-NUhs61.js +46 -0
- package/lib/c-B-NUhs61.js.map +1 -0
- package/lib/chunk-PVWAREVJ-BO6B-RAk.js +7965 -0
- package/lib/chunk-PVWAREVJ-BO6B-RAk.js.map +1 -0
- package/lib/{circular-BFte5TUt.js → circular-D6wbrxuf.js} +30 -30
- package/lib/{circular-BFte5TUt.js.map → circular-D6wbrxuf.js.map} +1 -1
- package/lib/commonlisp-De080z23.js +28 -0
- package/lib/commonlisp-De080z23.js.map +1 -0
- package/lib/cpp-79Paht7T.js +53 -0
- package/lib/cpp-79Paht7T.js.map +1 -0
- package/lib/{createServer-B4giw6jv.js → createServer-C5aY10Bc.js} +3411 -3342
- package/lib/createServer-C5aY10Bc.js.map +1 -0
- package/lib/csharp-D8MIL50B.js +53 -0
- package/lib/csharp-D8MIL50B.js.map +1 -0
- package/lib/css-Bt6hr1td.js +54 -0
- package/lib/css-Bt6hr1td.js.map +1 -0
- package/lib/dart-B0vy1jWB.js +60 -0
- package/lib/dart-B0vy1jWB.js.map +1 -0
- package/lib/elixir-Ds8r0sF8.js +25 -0
- package/lib/elixir-Ds8r0sF8.js.map +1 -0
- package/lib/{errors-CjmCml50.js → errors-XqO6MsfU.js} +3 -3
- package/lib/{errors-CjmCml50.js.map → errors-XqO6MsfU.js.map} +1 -1
- package/lib/go-D2VsmIOS.js +25 -0
- package/lib/go-D2VsmIOS.js.map +1 -0
- package/lib/graphql-BtA6M4m5.js +25 -0
- package/lib/graphql-BtA6M4m5.js.map +1 -0
- package/lib/hook-CAebs2rv.js +31 -0
- package/lib/hook-CAebs2rv.js.map +1 -0
- package/lib/html-MGnI2uzP.js +33 -0
- package/lib/html-MGnI2uzP.js.map +1 -0
- package/lib/{index-BuKx9nrj.js → index-BPSpOxTK.js} +103 -102
- package/lib/index-BPSpOxTK.js.map +1 -0
- package/lib/{index-Dp3Fmnfq.js → index-Bb9AsFlk.js} +702 -778
- package/lib/index-Bb9AsFlk.js.map +1 -0
- package/lib/{index-CQGi1b3U.js → index-C5L4favO.js} +166 -50
- package/lib/index-C5L4favO.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/{index-DmNq2fbN.js → index-nGbmHh_A.js} +2 -2
- package/lib/index-nGbmHh_A.js.map +1 -0
- package/lib/index.esm-BYObtETB.js +1294 -0
- package/lib/index.esm-BYObtETB.js.map +1 -0
- package/lib/index.esm-BnYHxCYC.js.map +1 -1
- package/lib/java-CVLzHfb1.js +53 -0
- package/lib/java-CVLzHfb1.js.map +1 -0
- package/lib/javascript-CcmIpL4G.js +10 -0
- package/lib/javascript-CcmIpL4G.js.map +1 -0
- package/lib/json-4AyP4uiY.js +25 -0
- package/lib/json-4AyP4uiY.js.map +1 -0
- package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
- package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
- package/lib/kotlin-v2plddBQ.js +37 -0
- package/lib/kotlin-v2plddBQ.js.map +1 -0
- package/lib/markdown-DYGWCmGQ.js +25 -0
- package/lib/markdown-DYGWCmGQ.js.map +1 -0
- package/lib/mdx-CHwYvXd4.js +32 -0
- package/lib/mdx-CHwYvXd4.js.map +1 -0
- package/lib/{mutation-CiMUdKRU.js → mutation-CdGPxHNX.js} +2 -2
- package/lib/{mutation-CiMUdKRU.js.map → mutation-CdGPxHNX.js.map} +1 -1
- package/lib/objectivec-HZY8shkd.js +32 -0
- package/lib/objectivec-HZY8shkd.js.map +1 -0
- package/lib/ocaml-DqsdDdwb.js +52 -0
- package/lib/ocaml-DqsdDdwb.js.map +1 -0
- package/lib/php-rQXzo7K_.js +25 -0
- package/lib/php-rQXzo7K_.js.map +1 -0
- package/lib/powershell-CQje9pm1.js +39 -0
- package/lib/powershell-CQje9pm1.js.map +1 -0
- package/lib/processors/traverse.js.map +1 -1
- package/lib/python-QIQAE5Ei.js +32 -0
- package/lib/python-QIQAE5Ei.js.map +1 -0
- package/lib/react-DHpVpxRv.js +24 -0
- package/lib/react-DHpVpxRv.js.map +1 -0
- package/lib/ruby-B2dU8Ny5.js +25 -0
- package/lib/ruby-B2dU8Ny5.js.map +1 -0
- package/lib/rust-DYnLHAi2.js +25 -0
- package/lib/rust-DYnLHAi2.js.map +1 -0
- package/lib/scala-CeKInBR8.js +25 -0
- package/lib/scala-CeKInBR8.js.map +1 -0
- package/lib/shell-HUv9oVtp.js +25 -0
- package/lib/shell-HUv9oVtp.js.map +1 -0
- package/lib/swift-B4z6ig1Z.js +25 -0
- package/lib/swift-B4z6ig1Z.js.map +1 -0
- package/lib/toml-Co9mpdct.js +32 -0
- package/lib/toml-Co9mpdct.js.map +1 -0
- package/lib/typescript-C26xdBDC.js +32 -0
- package/lib/typescript-C26xdBDC.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +4 -3
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +4 -4
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.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/ReactComponentDoc.js +28 -0
- package/lib/ui/ReactComponentDoc.js.map +1 -0
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +106 -0
- package/lib/ui/Secret.js.map +1 -0
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +4 -4
- 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/Tooltip.js +1 -1
- package/lib/ui/Value.js +39 -0
- package/lib/ui/Value.js.map +1 -0
- package/lib/useCopyToClipboard-B_085nfO.js +14 -0
- package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
- package/lib/{useExposedProps-BH9aq4MD.js → useExposedProps-Cd7Yg_uG.js} +34 -34
- package/lib/{useExposedProps-BH9aq4MD.js.map → useExposedProps-Cd7Yg_uG.js.map} +1 -1
- package/lib/xml-BQOOC04j.js +25 -0
- package/lib/xml-BQOOC04j.js.map +1 -0
- package/lib/yaml-BGsJItKv.js +32 -0
- package/lib/yaml-BGsJItKv.js.map +1 -0
- package/lib/zig-CUV2sTct.js +35 -0
- package/lib/zig-CUV2sTct.js.map +1 -0
- package/lib/zudoku.__internal.js +1050 -940
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +22 -21
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +14 -15
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +3 -3
- package/lib/zudoku.auth-openid.js +59 -60
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +2 -2
- package/lib/zudoku.components.js +21 -20
- package/lib/zudoku.hooks.js +6 -6
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.icons.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +34 -28
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +255 -280
- 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 +2 -2
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -5
- package/lib/zudoku.plugin-redirect.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +28 -29
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.router.js +2502 -118
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +67 -64
- package/src/app/main.css +10 -10
- package/src/lib/assets/language-icons/c.tsx +31 -0
- package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
- package/src/lib/assets/language-icons/cpp.tsx +35 -0
- package/src/lib/assets/language-icons/csharp.tsx +35 -0
- package/src/lib/assets/language-icons/css.tsx +36 -0
- package/src/lib/assets/language-icons/dart.tsx +39 -0
- package/src/lib/assets/language-icons/elixir.tsx +19 -0
- package/src/lib/assets/language-icons/go.tsx +19 -0
- package/src/lib/assets/language-icons/graphql.tsx +19 -0
- package/src/lib/assets/language-icons/html.tsx +24 -0
- package/src/lib/assets/language-icons/java.tsx +35 -0
- package/src/lib/assets/language-icons/javascript.tsx +11 -0
- package/src/lib/assets/language-icons/json.tsx +19 -0
- package/src/lib/assets/language-icons/kotlin.tsx +30 -0
- package/src/lib/assets/language-icons/markdown.tsx +19 -0
- package/src/lib/assets/language-icons/mdx.tsx +23 -0
- package/src/lib/assets/language-icons/objectivec.tsx +23 -0
- package/src/lib/assets/language-icons/ocaml.tsx +34 -0
- package/src/lib/assets/language-icons/php.tsx +19 -0
- package/src/lib/assets/language-icons/powershell.tsx +27 -0
- package/src/lib/assets/language-icons/python.tsx +23 -0
- package/src/lib/assets/language-icons/react.tsx +21 -0
- package/src/lib/assets/language-icons/ruby.tsx +19 -0
- package/src/lib/assets/language-icons/rust.tsx +19 -0
- package/src/lib/assets/language-icons/scala.tsx +19 -0
- package/src/lib/assets/language-icons/shell.tsx +19 -0
- package/src/lib/assets/language-icons/swift.tsx +19 -0
- package/src/lib/assets/language-icons/toml.tsx +23 -0
- package/src/lib/assets/language-icons/typescript.tsx +23 -0
- package/src/lib/assets/language-icons/xml.tsx +19 -0
- package/src/lib/assets/language-icons/yaml.tsx +23 -0
- package/src/lib/assets/language-icons/zig.tsx +32 -0
- package/src/lib/authentication/providers/auth0.tsx +7 -3
- package/src/lib/authentication/providers/openid.tsx +2 -0
- package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
- package/src/lib/components/BuildCheck.tsx +12 -10
- package/src/lib/components/Heading.tsx +2 -6
- package/src/lib/components/LanguageIcon.tsx +181 -0
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/Meta.tsx +13 -0
- package/src/lib/components/cache.ts +9 -5
- package/src/lib/components/context/ZudokuContext.ts +11 -2
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/NavigationItem.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +37 -2
- package/src/lib/plugins/api-catalog/Catalog.tsx +7 -0
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +18 -64
- package/src/lib/plugins/markdown/MdxPage.tsx +123 -9
- package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
- package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
- package/src/lib/plugins/markdown/index.tsx +3 -7
- package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
- package/src/lib/plugins/openapi/OperationList.tsx +30 -10
- package/src/lib/plugins/openapi/OperationListItem.tsx +107 -81
- package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -9
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +6 -11
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +10 -10
- package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -9
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +2 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +7 -6
- package/src/lib/plugins/openapi/graphql/graphql.ts +26 -3
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/interfaces.ts +3 -2
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +2 -2
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +3 -3
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +12 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +31 -3
- package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +11 -4
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +18 -12
- package/src/lib/plugins/openapi/schema/UnionView.tsx +56 -36
- package/src/lib/plugins/openapi/schema/union-helpers.ts +30 -2
- package/src/lib/shiki.ts +13 -0
- package/src/lib/ui/Carousel.tsx +0 -1
- package/src/lib/ui/CodeBlock.tsx +7 -42
- package/src/lib/ui/EmbeddedCodeBlock.tsx +1 -1
- package/src/lib/ui/ReactComponentDoc.tsx +68 -0
- package/src/lib/ui/Secret.tsx +123 -0
- package/src/lib/ui/Value.tsx +42 -0
- package/src/lib/util/MdxComponents.tsx +4 -1
- package/src/lib/util/pastellize.ts +4 -4
- package/src/lib/util/traverse.ts +36 -0
- package/src/shiki/langs/hurl.js +1 -0
- package/src/shiki/langs/kdl.js +1 -0
- package/src/shiki/langs/pkl.js +1 -0
- package/src/shiki/langs/rosmsg.js +1 -0
- package/lib/CodeBlock-CX_J17Hf.js +0 -98
- package/lib/CodeBlock-CX_J17Hf.js.map +0 -1
- package/lib/MdxPage-yXbTtcWf.js +0 -111
- package/lib/MdxPage-yXbTtcWf.js.map +0 -1
- package/lib/OperationList-CWxpdIbO.js +0 -5165
- package/lib/OperationList-CWxpdIbO.js.map +0 -1
- package/lib/SchemaView-B2BeAuci.js +0 -429
- package/lib/SchemaView-B2BeAuci.js.map +0 -1
- package/lib/Select-DWh0wSay.js +0 -273
- package/lib/Select-DWh0wSay.js.map +0 -1
- package/lib/Slot-BbdqiRXo.js.map +0 -1
- package/lib/SyntaxHighlight-CvzJ7DNa.js.map +0 -1
- package/lib/ZudokuContext-BR-lnR7O.js +0 -1285
- package/lib/ZudokuContext-BR-lnR7O.js.map +0 -1
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js +0 -9204
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +0 -1
- package/lib/createServer-B4giw6jv.js.map +0 -1
- package/lib/hook-B4Q30zMI.js +0 -247
- package/lib/hook-B4Q30zMI.js.map +0 -1
- package/lib/index-BuKx9nrj.js.map +0 -1
- package/lib/index-CQGi1b3U.js.map +0 -1
- package/lib/index-DmNq2fbN.js.map +0 -1
- package/lib/index-Dp3Fmnfq.js.map +0 -1
- package/lib/index.esm-CdzlRw50.js +0 -1254
- package/lib/index.esm-CdzlRw50.js.map +0 -1
- package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
import { j as n } from "./jsx-runtime-
|
|
2
|
-
import { ChevronUpIcon as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Button as
|
|
6
|
-
import {
|
|
7
|
-
import { Z as
|
|
8
|
-
import * as
|
|
9
|
-
import { createContext as
|
|
10
|
-
import { VisuallyHidden as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { S as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import { j as n } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { ChevronUpIcon as pn, PlusCircleIcon as pe, FileInput as hn, Check as fn, TableOfContentsIcon as gn, LockIcon as xn, CircleAlertIcon as yn, XIcon as ft, Circle as vn, Unlink2Icon as bn, CornerDownRightIcon as jn, CornerDownLeftIcon as Cn, DownloadIcon as Nn, EyeOffIcon as wn, EyeIcon as Sn, UnplugIcon as Tn, SendIcon as An, CheckIcon as On, CopyIcon as Pn, IdCardLanyardIcon as Ln, ShapesIcon as $n, LogInIcon as En, CirclePlayIcon as Rn } from "lucide-react";
|
|
3
|
+
import { r as kn, u as In, c as Dn, N as zn, aL as Fn, m as st } from "./chunk-PVWAREVJ-BO6B-RAk.js";
|
|
4
|
+
import { u as qn } from "./hook-CAebs2rv.js";
|
|
5
|
+
import { Button as ee } from "./ui/Button.js";
|
|
6
|
+
import { J as $e, K as Ee, L as gt, a as Vn, e as Bn, M as _n, j as R, b as Un } from "./ZudokuContext-BXTZApgy.js";
|
|
7
|
+
import { Z as Mn, i as Gn } from "./invariant-Bm-FVUQE.js";
|
|
8
|
+
import * as q from "react";
|
|
9
|
+
import { createContext as xt, use as Hn, useRef as O, useEffect as I, useMemo as yt, useState as $, useCallback as vt, Fragment as Z, useLayoutEffect as Qn, useTransition as Jn, useContext as Wn } from "react";
|
|
10
|
+
import { VisuallyHidden as Xn } from "@radix-ui/react-visually-hidden";
|
|
11
|
+
import { useAuth as Zn } from "./zudoku.hooks.js";
|
|
12
|
+
import { D as Re, a as ke, c as Ie, d as bt, e as jt, g as Yn } from "./Dialog-BOl0QB3n.js";
|
|
13
|
+
import { S as Kn, b as es } from "./index-BPSpOxTK.js";
|
|
14
|
+
import { S as Ct, c as Nt, d as wt, e as St, g as ie, i as ts, A as ns, a as ss, b as rs, u as as } from "./Select-CPoGZU_V.js";
|
|
15
|
+
import { u as se, b as De, C as D, a as os, F as is } from "./index.esm-BYObtETB.js";
|
|
16
|
+
import { B as E } from "./Button-DmS4u8Lj.js";
|
|
16
17
|
import * as ze from "@radix-ui/react-collapsible";
|
|
17
|
-
import { g as rt, h as at, i as ot, j as
|
|
18
|
+
import { g as rt, h as at, i as ot, j as cs } from "./ErrorAlert-VBJ8aHH7.js";
|
|
18
19
|
import { c as C } from "./cn-dYga0KKN.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as
|
|
21
|
-
import
|
|
20
|
+
import { u as ls } from "./useCopyToClipboard-B_085nfO.js";
|
|
21
|
+
import { u as ds } from "./useLatest-hmRS46UF.js";
|
|
22
|
+
import { D as us, a as ms, b as ps, d as hs, e as fs, f as gs, c as xs } from "./DropdownMenu-BZ2NKQ3K.js";
|
|
22
23
|
import * as Oe from "@radix-ui/react-checkbox";
|
|
23
|
-
import * as
|
|
24
|
-
import { PopoverAnchor as
|
|
25
|
-
import { P as
|
|
26
|
-
import { f as
|
|
27
|
-
import { Input as
|
|
28
|
-
import { Slot as
|
|
29
|
-
import { C as
|
|
30
|
-
import * as
|
|
31
|
-
import { c as
|
|
32
|
-
import * as
|
|
33
|
-
import { z as
|
|
34
|
-
import { h as
|
|
35
|
-
let
|
|
36
|
-
const
|
|
24
|
+
import * as le from "@radix-ui/react-popover";
|
|
25
|
+
import { PopoverAnchor as ys } from "@radix-ui/react-popover";
|
|
26
|
+
import { P as vs } from "./index-CrcNWbel.js";
|
|
27
|
+
import { f as bs, g as js, C as Cs, b as Ns } from "./Command-CJY6q3PF.js";
|
|
28
|
+
import { Input as de } from "./ui/Input.js";
|
|
29
|
+
import { Slot as ws } from "@radix-ui/react-slot";
|
|
30
|
+
import { C as Ss } from "./Card-KFniaZn5.js";
|
|
31
|
+
import * as Tt from "@radix-ui/react-label";
|
|
32
|
+
import { c as Ts } from "./index-DI5SPFK9.js";
|
|
33
|
+
import * as te from "@radix-ui/react-radio-group";
|
|
34
|
+
import { z as As } from "./useExposedProps-Cd7Yg_uG.js";
|
|
35
|
+
import { h as Os } from "./SyntaxHighlight-B0laqAqK.js";
|
|
36
|
+
let be;
|
|
37
|
+
const Ps = (e) => {
|
|
37
38
|
if (e.errors?.[0])
|
|
38
|
-
throw new
|
|
39
|
+
throw new Mn(e.errors[0].message, {
|
|
39
40
|
developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
|
|
40
41
|
});
|
|
41
42
|
};
|
|
42
|
-
class
|
|
43
|
+
class Ls {
|
|
43
44
|
constructor(t) {
|
|
44
45
|
this.config = t;
|
|
45
46
|
}
|
|
46
|
-
#e = async () => (
|
|
47
|
+
#e = async () => (be || (be = import("./createServer-C5aY10Bc.js").then(
|
|
47
48
|
(t) => t.createServer(this.config)
|
|
48
|
-
)),
|
|
49
|
+
)), be);
|
|
49
50
|
#t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
|
|
50
51
|
fetch = async (t, s) => {
|
|
51
52
|
const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
|
|
@@ -56,27 +57,27 @@ class Ss {
|
|
|
56
57
|
if (!r.ok)
|
|
57
58
|
throw new Error("Network response was not ok");
|
|
58
59
|
const o = await r.json();
|
|
59
|
-
return
|
|
60
|
+
return Ps(o), o.data;
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function je(e, t) {
|
|
63
64
|
if (!!!e)
|
|
64
65
|
throw new Error(t);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function $s(e) {
|
|
67
68
|
return typeof e == "object" && e !== null;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Es(e, t) {
|
|
70
71
|
if (!!!e)
|
|
71
72
|
throw new Error(
|
|
72
73
|
t ?? "Unexpected invariant triggered."
|
|
73
74
|
);
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
+
const Rs = /\r\n|[\n\r]/g;
|
|
76
77
|
function Pe(e, t) {
|
|
77
78
|
let s = 0, a = 1;
|
|
78
|
-
for (const r of e.body.matchAll(
|
|
79
|
-
if (typeof r.index == "number" ||
|
|
79
|
+
for (const r of e.body.matchAll(Rs)) {
|
|
80
|
+
if (typeof r.index == "number" || Es(!1), r.index >= t)
|
|
80
81
|
break;
|
|
81
82
|
s = r.index + r[0].length, a += 1;
|
|
82
83
|
}
|
|
@@ -85,24 +86,24 @@ function Pe(e, t) {
|
|
|
85
86
|
column: t + 1 - s
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
89
|
+
function ks(e) {
|
|
90
|
+
return At(
|
|
90
91
|
e.source,
|
|
91
92
|
Pe(e.source, e.start)
|
|
92
93
|
);
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function At(e, t) {
|
|
95
96
|
const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
|
|
96
97
|
`, d = a.split(/\r\n|[\n\r]/g), h = d[r];
|
|
97
98
|
if (h.length > 120) {
|
|
98
|
-
const g = Math.floor(c / 80), m = c % 80,
|
|
99
|
-
for (let
|
|
100
|
-
|
|
99
|
+
const g = Math.floor(c / 80), m = c % 80, v = [];
|
|
100
|
+
for (let y = 0; y < h.length; y += 80)
|
|
101
|
+
v.push(h.slice(y, y + 80));
|
|
101
102
|
return u + it([
|
|
102
|
-
[`${i} |`,
|
|
103
|
-
...
|
|
103
|
+
[`${i} |`, v[0]],
|
|
104
|
+
...v.slice(1, g + 1).map((y) => ["|", y]),
|
|
104
105
|
["|", "^".padStart(m)],
|
|
105
|
-
["|",
|
|
106
|
+
["|", v[g + 1]]
|
|
106
107
|
]);
|
|
107
108
|
}
|
|
108
109
|
return u + it([
|
|
@@ -118,7 +119,7 @@ function it(e) {
|
|
|
118
119
|
return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
|
|
119
120
|
`);
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function Is(e) {
|
|
122
123
|
const t = e[0];
|
|
123
124
|
return t == null || "kind" in t || "length" in t ? {
|
|
124
125
|
nodes: t,
|
|
@@ -170,15 +171,15 @@ class Fe extends Error {
|
|
|
170
171
|
*/
|
|
171
172
|
constructor(t, ...s) {
|
|
172
173
|
var a, r, o;
|
|
173
|
-
const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } =
|
|
174
|
+
const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Is(s);
|
|
174
175
|
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
|
|
175
176
|
Array.isArray(i) ? i : i ? [i] : void 0
|
|
176
177
|
);
|
|
177
178
|
const g = ct(
|
|
178
|
-
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((
|
|
179
|
+
(a = this.nodes) === null || a === void 0 ? void 0 : a.map((v) => v.loc).filter((v) => v != null)
|
|
179
180
|
);
|
|
180
|
-
this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((
|
|
181
|
-
const m =
|
|
181
|
+
this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((v) => v.start), this.locations = c && l ? c.map((v) => Pe(l, v)) : g?.map((v) => Pe(v.source, v.start));
|
|
182
|
+
const m = $s(
|
|
182
183
|
d?.extensions
|
|
183
184
|
) ? d?.extensions : void 0;
|
|
184
185
|
this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -220,12 +221,12 @@ class Fe extends Error {
|
|
|
220
221
|
for (const s of this.nodes)
|
|
221
222
|
s.loc && (t += `
|
|
222
223
|
|
|
223
|
-
` +
|
|
224
|
+
` + ks(s.loc));
|
|
224
225
|
else if (this.source && this.locations)
|
|
225
226
|
for (const s of this.locations)
|
|
226
227
|
t += `
|
|
227
228
|
|
|
228
|
-
` +
|
|
229
|
+
` + At(this.source, s);
|
|
229
230
|
return t;
|
|
230
231
|
}
|
|
231
232
|
toJSON() {
|
|
@@ -238,7 +239,7 @@ class Fe extends Error {
|
|
|
238
239
|
function ct(e) {
|
|
239
240
|
return e === void 0 || e.length === 0 ? void 0 : e;
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function P(e, t, s) {
|
|
242
243
|
return new Fe(`Syntax Error: ${s}`, {
|
|
243
244
|
source: e,
|
|
244
245
|
positions: [t]
|
|
@@ -273,7 +274,7 @@ class Va {
|
|
|
273
274
|
};
|
|
274
275
|
}
|
|
275
276
|
}
|
|
276
|
-
class
|
|
277
|
+
class Ot {
|
|
277
278
|
/**
|
|
278
279
|
* The kind of Token.
|
|
279
280
|
*/
|
|
@@ -315,7 +316,7 @@ class Pt {
|
|
|
315
316
|
};
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
+
const Ds = {
|
|
319
320
|
Name: [],
|
|
320
321
|
Document: ["definitions"],
|
|
321
322
|
OperationDefinition: [
|
|
@@ -389,37 +390,37 @@ const Ls = {
|
|
|
389
390
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
390
391
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
391
392
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
392
|
-
},
|
|
393
|
+
}, zs = new Set(Object.keys(Ds));
|
|
393
394
|
function Ba(e) {
|
|
394
395
|
const t = e?.kind;
|
|
395
|
-
return typeof t == "string" &&
|
|
396
|
+
return typeof t == "string" && zs.has(t);
|
|
396
397
|
}
|
|
397
398
|
var lt;
|
|
398
399
|
(function(e) {
|
|
399
400
|
e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
|
|
400
401
|
})(lt || (lt = {}));
|
|
401
|
-
function
|
|
402
|
+
function Le(e) {
|
|
402
403
|
return e === 9 || e === 32;
|
|
403
404
|
}
|
|
404
|
-
function
|
|
405
|
+
function ne(e) {
|
|
405
406
|
return e >= 48 && e <= 57;
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function Pt(e) {
|
|
408
409
|
return e >= 97 && e <= 122 || // A-Z
|
|
409
410
|
e >= 65 && e <= 90;
|
|
410
411
|
}
|
|
411
412
|
function Lt(e) {
|
|
412
|
-
return
|
|
413
|
+
return Pt(e) || e === 95;
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
-
return
|
|
415
|
+
function Fs(e) {
|
|
416
|
+
return Pt(e) || ne(e) || e === 95;
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
+
function qs(e) {
|
|
418
419
|
var t;
|
|
419
420
|
let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
|
|
420
421
|
for (let i = 0; i < e.length; ++i) {
|
|
421
422
|
var o;
|
|
422
|
-
const l = e[i], c =
|
|
423
|
+
const l = e[i], c = Vs(l);
|
|
423
424
|
c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
|
|
424
425
|
}
|
|
425
426
|
return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
|
|
@@ -427,17 +428,17 @@ function Is(e) {
|
|
|
427
428
|
r + 1
|
|
428
429
|
);
|
|
429
430
|
}
|
|
430
|
-
function
|
|
431
|
+
function Vs(e) {
|
|
431
432
|
let t = 0;
|
|
432
|
-
for (; t < e.length &&
|
|
433
|
+
for (; t < e.length && Le(e.charCodeAt(t)); )
|
|
433
434
|
++t;
|
|
434
435
|
return t;
|
|
435
436
|
}
|
|
436
|
-
function
|
|
437
|
-
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((m) => m.length === 0 ||
|
|
437
|
+
function Bs(e, t) {
|
|
438
|
+
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((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
|
|
438
439
|
(!r || e.length > 70 || u || o || i);
|
|
439
440
|
let h = "";
|
|
440
|
-
const g = r &&
|
|
441
|
+
const g = r && Le(e.charCodeAt(0));
|
|
441
442
|
return (d && !g || o) && (h += `
|
|
442
443
|
`), h += s, (d || u) && (h += `
|
|
443
444
|
`), '"""' + h + '"""';
|
|
@@ -446,7 +447,7 @@ var x;
|
|
|
446
447
|
(function(e) {
|
|
447
448
|
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";
|
|
448
449
|
})(x || (x = {}));
|
|
449
|
-
class
|
|
450
|
+
class _s {
|
|
450
451
|
/**
|
|
451
452
|
* The previously focused non-ignored token.
|
|
452
453
|
*/
|
|
@@ -460,7 +461,7 @@ class zs {
|
|
|
460
461
|
* The character offset at which the current line begins.
|
|
461
462
|
*/
|
|
462
463
|
constructor(t) {
|
|
463
|
-
const s = new
|
|
464
|
+
const s = new Ot(x.SOF, 0, 0, 0, 0);
|
|
464
465
|
this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
|
|
465
466
|
}
|
|
466
467
|
get [Symbol.toStringTag]() {
|
|
@@ -483,20 +484,20 @@ class zs {
|
|
|
483
484
|
if (t.next)
|
|
484
485
|
t = t.next;
|
|
485
486
|
else {
|
|
486
|
-
const s =
|
|
487
|
+
const s = Ms(this, t.end);
|
|
487
488
|
t.next = s, s.prev = t, t = s;
|
|
488
489
|
}
|
|
489
490
|
while (t.kind === x.COMMENT);
|
|
490
491
|
return t;
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
+
function Us(e) {
|
|
494
495
|
return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function W(e) {
|
|
497
498
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
498
499
|
}
|
|
499
|
-
function
|
|
500
|
+
function he(e, t) {
|
|
500
501
|
return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
|
|
501
502
|
}
|
|
502
503
|
function $t(e) {
|
|
@@ -505,7 +506,7 @@ function $t(e) {
|
|
|
505
506
|
function Et(e) {
|
|
506
507
|
return e >= 56320 && e <= 57343;
|
|
507
508
|
}
|
|
508
|
-
function
|
|
509
|
+
function _(e, t) {
|
|
509
510
|
const s = e.source.body.codePointAt(t);
|
|
510
511
|
if (s === void 0)
|
|
511
512
|
return x.EOF;
|
|
@@ -517,9 +518,9 @@ function U(e, t) {
|
|
|
517
518
|
}
|
|
518
519
|
function N(e, t, s, a, r) {
|
|
519
520
|
const o = e.line, i = 1 + s - e.lineStart;
|
|
520
|
-
return new
|
|
521
|
+
return new Ot(t, s, a, o, i, r);
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
+
function Ms(e, t) {
|
|
523
524
|
const s = e.source.body, a = s.length;
|
|
524
525
|
let r = t;
|
|
525
526
|
for (; r < a; ) {
|
|
@@ -560,7 +561,7 @@ function qs(e, t) {
|
|
|
560
561
|
continue;
|
|
561
562
|
// Comment
|
|
562
563
|
case 35:
|
|
563
|
-
return
|
|
564
|
+
return Gs(e, r);
|
|
564
565
|
// Token ::
|
|
565
566
|
// - Punctuator
|
|
566
567
|
// - Name
|
|
@@ -601,30 +602,30 @@ function qs(e, t) {
|
|
|
601
602
|
return N(e, x.BRACE_R, r, r + 1);
|
|
602
603
|
// StringValue
|
|
603
604
|
case 34:
|
|
604
|
-
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ?
|
|
605
|
+
return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Zs(e, r) : Qs(e, r);
|
|
605
606
|
}
|
|
606
|
-
if (
|
|
607
|
-
return
|
|
607
|
+
if (ne(o) || o === 45)
|
|
608
|
+
return Hs(e, r, o);
|
|
608
609
|
if (Lt(o))
|
|
609
|
-
return
|
|
610
|
-
throw
|
|
610
|
+
return Ys(e, r);
|
|
611
|
+
throw P(
|
|
611
612
|
e.source,
|
|
612
613
|
r,
|
|
613
|
-
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` :
|
|
614
|
+
o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : W(o) || he(s, r) ? `Unexpected character: ${_(e, r)}.` : `Invalid character: ${_(e, r)}.`
|
|
614
615
|
);
|
|
615
616
|
}
|
|
616
617
|
return N(e, x.EOF, a, a);
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
+
function Gs(e, t) {
|
|
619
620
|
const s = e.source.body, a = s.length;
|
|
620
621
|
let r = t + 1;
|
|
621
622
|
for (; r < a; ) {
|
|
622
623
|
const o = s.charCodeAt(r);
|
|
623
624
|
if (o === 10 || o === 13)
|
|
624
625
|
break;
|
|
625
|
-
if (
|
|
626
|
+
if (W(o))
|
|
626
627
|
++r;
|
|
627
|
-
else if (
|
|
628
|
+
else if (he(s, r))
|
|
628
629
|
r += 2;
|
|
629
630
|
else
|
|
630
631
|
break;
|
|
@@ -637,26 +638,26 @@ function Vs(e, t) {
|
|
|
637
638
|
s.slice(t + 1, r)
|
|
638
639
|
);
|
|
639
640
|
}
|
|
640
|
-
function
|
|
641
|
+
function Hs(e, t, s) {
|
|
641
642
|
const a = e.source.body;
|
|
642
643
|
let r = t, o = s, i = !1;
|
|
643
644
|
if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
|
|
644
|
-
if (o = a.charCodeAt(++r),
|
|
645
|
-
throw
|
|
645
|
+
if (o = a.charCodeAt(++r), ne(o))
|
|
646
|
+
throw P(
|
|
646
647
|
e.source,
|
|
647
648
|
r,
|
|
648
|
-
`Invalid number, unexpected digit after 0: ${
|
|
649
|
+
`Invalid number, unexpected digit after 0: ${_(
|
|
649
650
|
e,
|
|
650
651
|
r
|
|
651
652
|
)}.`
|
|
652
653
|
);
|
|
653
654
|
} else
|
|
654
|
-
r =
|
|
655
|
-
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r =
|
|
656
|
-
throw
|
|
655
|
+
r = Ce(e, r, o), o = a.charCodeAt(r);
|
|
656
|
+
if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(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 = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
|
|
657
|
+
throw P(
|
|
657
658
|
e.source,
|
|
658
659
|
r,
|
|
659
|
-
`Invalid number, expected digit but got: ${
|
|
660
|
+
`Invalid number, expected digit but got: ${_(
|
|
660
661
|
e,
|
|
661
662
|
r
|
|
662
663
|
)}.`
|
|
@@ -669,23 +670,23 @@ function Bs(e, t, s) {
|
|
|
669
670
|
a.slice(t, r)
|
|
670
671
|
);
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
-
if (!
|
|
674
|
-
throw
|
|
673
|
+
function Ce(e, t, s) {
|
|
674
|
+
if (!ne(s))
|
|
675
|
+
throw P(
|
|
675
676
|
e.source,
|
|
676
677
|
t,
|
|
677
|
-
`Invalid number, expected digit but got: ${
|
|
678
|
+
`Invalid number, expected digit but got: ${_(
|
|
678
679
|
e,
|
|
679
680
|
t
|
|
680
681
|
)}.`
|
|
681
682
|
);
|
|
682
683
|
const a = e.source.body;
|
|
683
684
|
let r = t + 1;
|
|
684
|
-
for (;
|
|
685
|
+
for (; ne(a.charCodeAt(r)); )
|
|
685
686
|
++r;
|
|
686
687
|
return r;
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
+
function Qs(e, t) {
|
|
689
690
|
const s = e.source.body, a = s.length;
|
|
690
691
|
let r = t + 1, o = r, i = "";
|
|
691
692
|
for (; r < a; ) {
|
|
@@ -694,45 +695,45 @@ function _s(e, t) {
|
|
|
694
695
|
return i += s.slice(o, r), N(e, x.STRING, t, r + 1, i);
|
|
695
696
|
if (l === 92) {
|
|
696
697
|
i += s.slice(o, r);
|
|
697
|
-
const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ?
|
|
698
|
+
const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Js(e, r) : Ws(e, r) : Xs(e, r);
|
|
698
699
|
i += c.value, r += c.size, o = r;
|
|
699
700
|
continue;
|
|
700
701
|
}
|
|
701
702
|
if (l === 10 || l === 13)
|
|
702
703
|
break;
|
|
703
|
-
if (
|
|
704
|
+
if (W(l))
|
|
704
705
|
++r;
|
|
705
|
-
else if (
|
|
706
|
+
else if (he(s, r))
|
|
706
707
|
r += 2;
|
|
707
708
|
else
|
|
708
|
-
throw
|
|
709
|
+
throw P(
|
|
709
710
|
e.source,
|
|
710
711
|
r,
|
|
711
|
-
`Invalid character within String: ${
|
|
712
|
+
`Invalid character within String: ${_(
|
|
712
713
|
e,
|
|
713
714
|
r
|
|
714
715
|
)}.`
|
|
715
716
|
);
|
|
716
717
|
}
|
|
717
|
-
throw
|
|
718
|
+
throw P(e.source, r, "Unterminated string.");
|
|
718
719
|
}
|
|
719
|
-
function
|
|
720
|
+
function Js(e, t) {
|
|
720
721
|
const s = e.source.body;
|
|
721
722
|
let a = 0, r = 3;
|
|
722
723
|
for (; r < 12; ) {
|
|
723
724
|
const o = s.charCodeAt(t + r++);
|
|
724
725
|
if (o === 125) {
|
|
725
|
-
if (r < 5 || !
|
|
726
|
+
if (r < 5 || !W(a))
|
|
726
727
|
break;
|
|
727
728
|
return {
|
|
728
729
|
value: String.fromCodePoint(a),
|
|
729
730
|
size: r
|
|
730
731
|
};
|
|
731
732
|
}
|
|
732
|
-
if (a = a << 4 |
|
|
733
|
+
if (a = a << 4 | Y(o), a < 0)
|
|
733
734
|
break;
|
|
734
735
|
}
|
|
735
|
-
throw
|
|
736
|
+
throw P(
|
|
736
737
|
e.source,
|
|
737
738
|
t,
|
|
738
739
|
`Invalid Unicode escape sequence: "${s.slice(
|
|
@@ -741,9 +742,9 @@ function Us(e, t) {
|
|
|
741
742
|
)}".`
|
|
742
743
|
);
|
|
743
744
|
}
|
|
744
|
-
function
|
|
745
|
+
function Ws(e, t) {
|
|
745
746
|
const s = e.source.body, a = dt(s, t + 2);
|
|
746
|
-
if (
|
|
747
|
+
if (W(a))
|
|
747
748
|
return {
|
|
748
749
|
value: String.fromCodePoint(a),
|
|
749
750
|
size: 6
|
|
@@ -756,19 +757,19 @@ function Ms(e, t) {
|
|
|
756
757
|
size: 12
|
|
757
758
|
};
|
|
758
759
|
}
|
|
759
|
-
throw
|
|
760
|
+
throw P(
|
|
760
761
|
e.source,
|
|
761
762
|
t,
|
|
762
763
|
`Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
|
|
763
764
|
);
|
|
764
765
|
}
|
|
765
766
|
function dt(e, t) {
|
|
766
|
-
return
|
|
767
|
+
return Y(e.charCodeAt(t)) << 12 | Y(e.charCodeAt(t + 1)) << 8 | Y(e.charCodeAt(t + 2)) << 4 | Y(e.charCodeAt(t + 3));
|
|
767
768
|
}
|
|
768
|
-
function
|
|
769
|
+
function Y(e) {
|
|
769
770
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
770
771
|
}
|
|
771
|
-
function
|
|
772
|
+
function Xs(e, t) {
|
|
772
773
|
const s = e.source.body;
|
|
773
774
|
switch (s.charCodeAt(t + 1)) {
|
|
774
775
|
case 34:
|
|
@@ -813,7 +814,7 @@ function Gs(e, t) {
|
|
|
813
814
|
size: 2
|
|
814
815
|
};
|
|
815
816
|
}
|
|
816
|
-
throw
|
|
817
|
+
throw P(
|
|
817
818
|
e.source,
|
|
818
819
|
t,
|
|
819
820
|
`Invalid character escape sequence: "${s.slice(
|
|
@@ -822,7 +823,7 @@ function Gs(e, t) {
|
|
|
822
823
|
)}".`
|
|
823
824
|
);
|
|
824
825
|
}
|
|
825
|
-
function
|
|
826
|
+
function Zs(e, t) {
|
|
826
827
|
const s = e.source.body, a = s.length;
|
|
827
828
|
let r = e.lineStart, o = t + 3, i = o, l = "";
|
|
828
829
|
const c = [];
|
|
@@ -836,7 +837,7 @@ function Hs(e, t) {
|
|
|
836
837
|
t,
|
|
837
838
|
o + 3,
|
|
838
839
|
// Return a string of the lines joined with U+000A.
|
|
839
|
-
|
|
840
|
+
qs(c).join(`
|
|
840
841
|
`)
|
|
841
842
|
);
|
|
842
843
|
return e.line += c.length - 1, e.lineStart = r, d;
|
|
@@ -849,28 +850,28 @@ function Hs(e, t) {
|
|
|
849
850
|
l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
|
|
850
851
|
continue;
|
|
851
852
|
}
|
|
852
|
-
if (
|
|
853
|
+
if (W(u))
|
|
853
854
|
++o;
|
|
854
|
-
else if (
|
|
855
|
+
else if (he(s, o))
|
|
855
856
|
o += 2;
|
|
856
857
|
else
|
|
857
|
-
throw
|
|
858
|
+
throw P(
|
|
858
859
|
e.source,
|
|
859
860
|
o,
|
|
860
|
-
`Invalid character within String: ${
|
|
861
|
+
`Invalid character within String: ${_(
|
|
861
862
|
e,
|
|
862
863
|
o
|
|
863
864
|
)}.`
|
|
864
865
|
);
|
|
865
866
|
}
|
|
866
|
-
throw
|
|
867
|
+
throw P(e.source, o, "Unterminated string.");
|
|
867
868
|
}
|
|
868
|
-
function
|
|
869
|
+
function Ys(e, t) {
|
|
869
870
|
const s = e.source.body, a = s.length;
|
|
870
871
|
let r = t + 1;
|
|
871
872
|
for (; r < a; ) {
|
|
872
873
|
const o = s.charCodeAt(r);
|
|
873
|
-
if (
|
|
874
|
+
if (Fs(o))
|
|
874
875
|
++r;
|
|
875
876
|
else
|
|
876
877
|
break;
|
|
@@ -883,56 +884,56 @@ function Qs(e, t) {
|
|
|
883
884
|
s.slice(t, r)
|
|
884
885
|
);
|
|
885
886
|
}
|
|
886
|
-
const
|
|
887
|
+
const Ks = 10, Rt = 2;
|
|
887
888
|
function kt(e) {
|
|
888
|
-
return
|
|
889
|
+
return fe(e, []);
|
|
889
890
|
}
|
|
890
|
-
function
|
|
891
|
+
function fe(e, t) {
|
|
891
892
|
switch (typeof e) {
|
|
892
893
|
case "string":
|
|
893
894
|
return JSON.stringify(e);
|
|
894
895
|
case "function":
|
|
895
896
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
896
897
|
case "object":
|
|
897
|
-
return
|
|
898
|
+
return er(e, t);
|
|
898
899
|
default:
|
|
899
900
|
return String(e);
|
|
900
901
|
}
|
|
901
902
|
}
|
|
902
|
-
function
|
|
903
|
+
function er(e, t) {
|
|
903
904
|
if (e === null)
|
|
904
905
|
return "null";
|
|
905
906
|
if (t.includes(e))
|
|
906
907
|
return "[Circular]";
|
|
907
908
|
const s = [...t, e];
|
|
908
|
-
if (
|
|
909
|
+
if (tr(e)) {
|
|
909
910
|
const a = e.toJSON();
|
|
910
911
|
if (a !== e)
|
|
911
|
-
return typeof a == "string" ? a :
|
|
912
|
+
return typeof a == "string" ? a : fe(a, s);
|
|
912
913
|
} else if (Array.isArray(e))
|
|
913
|
-
return
|
|
914
|
-
return
|
|
914
|
+
return sr(e, s);
|
|
915
|
+
return nr(e, s);
|
|
915
916
|
}
|
|
916
|
-
function
|
|
917
|
+
function tr(e) {
|
|
917
918
|
return typeof e.toJSON == "function";
|
|
918
919
|
}
|
|
919
|
-
function
|
|
920
|
+
function nr(e, t) {
|
|
920
921
|
const s = Object.entries(e);
|
|
921
|
-
return s.length === 0 ? "{}" : t.length >
|
|
922
|
-
([r, o]) => r + ": " +
|
|
922
|
+
return s.length === 0 ? "{}" : t.length > Rt ? "[" + rr(e) + "]" : "{ " + s.map(
|
|
923
|
+
([r, o]) => r + ": " + fe(o, t)
|
|
923
924
|
).join(", ") + " }";
|
|
924
925
|
}
|
|
925
|
-
function
|
|
926
|
+
function sr(e, t) {
|
|
926
927
|
if (e.length === 0)
|
|
927
928
|
return "[]";
|
|
928
|
-
if (t.length >
|
|
929
|
+
if (t.length > Rt)
|
|
929
930
|
return "[Array]";
|
|
930
|
-
const s = Math.min(
|
|
931
|
+
const s = Math.min(Ks, e.length), a = e.length - s, r = [];
|
|
931
932
|
for (let o = 0; o < s; ++o)
|
|
932
|
-
r.push(
|
|
933
|
+
r.push(fe(e[o], t));
|
|
933
934
|
return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
|
|
934
935
|
}
|
|
935
|
-
function
|
|
936
|
+
function rr(e) {
|
|
936
937
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
937
938
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
938
939
|
const s = e.constructor.name;
|
|
@@ -941,11 +942,11 @@ function Ks(e) {
|
|
|
941
942
|
}
|
|
942
943
|
return t;
|
|
943
944
|
}
|
|
944
|
-
const
|
|
945
|
-
process.env.NODE_ENV === "production",
|
|
945
|
+
const ar = globalThis.process && // eslint-disable-next-line no-undef
|
|
946
|
+
process.env.NODE_ENV === "production", or = (
|
|
946
947
|
/* c8 ignore next 6 */
|
|
947
948
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
948
|
-
|
|
949
|
+
ar ? function(t, s) {
|
|
949
950
|
return t instanceof s;
|
|
950
951
|
} : function(t, s) {
|
|
951
952
|
if (t instanceof s)
|
|
@@ -975,15 +976,15 @@ spurious results.`);
|
|
|
975
976
|
return !1;
|
|
976
977
|
}
|
|
977
978
|
);
|
|
978
|
-
class
|
|
979
|
+
class It {
|
|
979
980
|
constructor(t, s = "GraphQL request", a = {
|
|
980
981
|
line: 1,
|
|
981
982
|
column: 1
|
|
982
983
|
}) {
|
|
983
|
-
typeof t == "string" ||
|
|
984
|
+
typeof t == "string" || je(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || je(
|
|
984
985
|
!1,
|
|
985
986
|
"line in locationOffset is 1-indexed and must be positive."
|
|
986
|
-
), this.locationOffset.column > 0 ||
|
|
987
|
+
), this.locationOffset.column > 0 || je(
|
|
987
988
|
!1,
|
|
988
989
|
"column in locationOffset is 1-indexed and must be positive."
|
|
989
990
|
);
|
|
@@ -992,37 +993,37 @@ class Dt {
|
|
|
992
993
|
return "Source";
|
|
993
994
|
}
|
|
994
995
|
}
|
|
995
|
-
function
|
|
996
|
-
return
|
|
996
|
+
function ir(e) {
|
|
997
|
+
return or(e, It);
|
|
997
998
|
}
|
|
998
|
-
function
|
|
999
|
-
const t =
|
|
999
|
+
function cr(e) {
|
|
1000
|
+
const t = ir(e) ? e : new It(e), s = t.body, a = new _s(t);
|
|
1000
1001
|
let r = "", o = !1;
|
|
1001
1002
|
for (; a.advance().kind !== x.EOF; ) {
|
|
1002
|
-
const i = a.token, l = i.kind, c = !
|
|
1003
|
+
const i = a.token, l = i.kind, c = !Us(i.kind);
|
|
1003
1004
|
o && (c || i.kind === x.SPREAD) && (r += " ");
|
|
1004
1005
|
const u = s.slice(i.start, i.end);
|
|
1005
|
-
l === x.BLOCK_STRING ? r +=
|
|
1006
|
+
l === x.BLOCK_STRING ? r += Bs(i.value, {
|
|
1006
1007
|
minimize: !0
|
|
1007
1008
|
}) : r += u, o = c;
|
|
1008
1009
|
}
|
|
1009
1010
|
return r;
|
|
1010
1011
|
}
|
|
1011
|
-
const
|
|
1012
|
+
const Dt = xt(
|
|
1012
1013
|
void 0
|
|
1013
1014
|
), _a = ({
|
|
1014
1015
|
children: e,
|
|
1015
1016
|
client: t
|
|
1016
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
1017
|
+
}) => /* @__PURE__ */ n.jsx(Dt.Provider, { value: t, children: e }), zt = (e, t, ...[s]) => ({
|
|
1017
1018
|
queryFn: () => e.fetch(t, s),
|
|
1018
|
-
queryKey: [
|
|
1019
|
-
}),
|
|
1020
|
-
const s =
|
|
1019
|
+
queryKey: [cr(t.toString()), s]
|
|
1020
|
+
}), lr = (e, ...[t]) => {
|
|
1021
|
+
const s = Hn(Dt);
|
|
1021
1022
|
if (s === void 0)
|
|
1022
1023
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
1023
|
-
return
|
|
1024
|
+
return zt(s, e, ...t === void 0 ? [] : [t]);
|
|
1024
1025
|
};
|
|
1025
|
-
class
|
|
1026
|
+
class G extends String {
|
|
1026
1027
|
__apiType;
|
|
1027
1028
|
value;
|
|
1028
1029
|
__meta__;
|
|
@@ -1033,7 +1034,7 @@ class H extends String {
|
|
|
1033
1034
|
return this.value;
|
|
1034
1035
|
}
|
|
1035
1036
|
}
|
|
1036
|
-
const
|
|
1037
|
+
const dr = new G(
|
|
1037
1038
|
`
|
|
1038
1039
|
fragment OperationsFragment on OperationItem {
|
|
1039
1040
|
slug
|
|
@@ -1045,6 +1046,10 @@ const ar = new H(
|
|
|
1045
1046
|
path
|
|
1046
1047
|
deprecated
|
|
1047
1048
|
extensions
|
|
1049
|
+
servers {
|
|
1050
|
+
url
|
|
1051
|
+
description
|
|
1052
|
+
}
|
|
1048
1053
|
parameters {
|
|
1049
1054
|
name
|
|
1050
1055
|
in
|
|
@@ -1101,7 +1106,7 @@ const ar = new H(
|
|
|
1101
1106
|
}
|
|
1102
1107
|
`,
|
|
1103
1108
|
{ fragmentName: "OperationsFragment" }
|
|
1104
|
-
),
|
|
1109
|
+
), ur = new G(`
|
|
1105
1110
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
1106
1111
|
schema(input: $input, type: $type) {
|
|
1107
1112
|
url
|
|
@@ -1110,13 +1115,13 @@ const ar = new H(
|
|
|
1110
1115
|
}
|
|
1111
1116
|
}
|
|
1112
1117
|
}
|
|
1113
|
-
`),
|
|
1118
|
+
`), mr = new G(`
|
|
1114
1119
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
1115
1120
|
schema(input: $input, type: $type) {
|
|
1116
1121
|
openapi
|
|
1117
1122
|
}
|
|
1118
1123
|
}
|
|
1119
|
-
`),
|
|
1124
|
+
`), pr = new G(`
|
|
1120
1125
|
query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
|
|
1121
1126
|
schema(input: $input, type: $type) {
|
|
1122
1127
|
servers {
|
|
@@ -1134,13 +1139,16 @@ const ar = new H(
|
|
|
1134
1139
|
slug
|
|
1135
1140
|
...OperationsFragment
|
|
1136
1141
|
}
|
|
1142
|
+
extensions
|
|
1137
1143
|
next {
|
|
1138
1144
|
name
|
|
1139
1145
|
slug
|
|
1146
|
+
extensions
|
|
1140
1147
|
}
|
|
1141
1148
|
prev {
|
|
1142
1149
|
name
|
|
1143
1150
|
slug
|
|
1151
|
+
extensions
|
|
1144
1152
|
}
|
|
1145
1153
|
}
|
|
1146
1154
|
}
|
|
@@ -1155,6 +1163,10 @@ const ar = new H(
|
|
|
1155
1163
|
path
|
|
1156
1164
|
deprecated
|
|
1157
1165
|
extensions
|
|
1166
|
+
servers {
|
|
1167
|
+
url
|
|
1168
|
+
description
|
|
1169
|
+
}
|
|
1158
1170
|
parameters {
|
|
1159
1171
|
name
|
|
1160
1172
|
in
|
|
@@ -1208,7 +1220,7 @@ const ar = new H(
|
|
|
1208
1220
|
schema
|
|
1209
1221
|
}
|
|
1210
1222
|
}
|
|
1211
|
-
}`),
|
|
1223
|
+
}`), hr = new G(`
|
|
1212
1224
|
query GetSchemas($input: JSON!, $type: SchemaType!) {
|
|
1213
1225
|
schema(input: $input, type: $type) {
|
|
1214
1226
|
title
|
|
@@ -1223,7 +1235,7 @@ const ar = new H(
|
|
|
1223
1235
|
}
|
|
1224
1236
|
}
|
|
1225
1237
|
}
|
|
1226
|
-
`),
|
|
1238
|
+
`), fr = new G(`
|
|
1227
1239
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
1228
1240
|
schema(input: $input, type: $type) {
|
|
1229
1241
|
url
|
|
@@ -1232,7 +1244,7 @@ const ar = new H(
|
|
|
1232
1244
|
}
|
|
1233
1245
|
}
|
|
1234
1246
|
}
|
|
1235
|
-
`),
|
|
1247
|
+
`), gr = new G(`
|
|
1236
1248
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
1237
1249
|
schema(input: $input, type: $type) {
|
|
1238
1250
|
extensions
|
|
@@ -1255,20 +1267,20 @@ const ar = new H(
|
|
|
1255
1267
|
}
|
|
1256
1268
|
}
|
|
1257
1269
|
}
|
|
1258
|
-
`),
|
|
1259
|
-
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1260
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\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":
|
|
1261
|
-
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n":
|
|
1262
|
-
"\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 next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n":
|
|
1263
|
-
"\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":
|
|
1264
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n":
|
|
1265
|
-
"\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":
|
|
1270
|
+
`), xr = {
|
|
1271
|
+
"\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ur,
|
|
1272
|
+
"\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": dr,
|
|
1273
|
+
"\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": mr,
|
|
1274
|
+
"\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": pr,
|
|
1275
|
+
"\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": hr,
|
|
1276
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": fr,
|
|
1277
|
+
"\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": gr
|
|
1266
1278
|
};
|
|
1267
|
-
function
|
|
1268
|
-
return
|
|
1279
|
+
function yr(e) {
|
|
1280
|
+
return xr[e] ?? {};
|
|
1269
1281
|
}
|
|
1270
|
-
const
|
|
1271
|
-
function
|
|
1282
|
+
const z = ze.Root, Ft = ze.CollapsibleTrigger, F = ze.CollapsibleContent;
|
|
1283
|
+
function vr() {
|
|
1272
1284
|
const t = navigator.userAgent.toLowerCase();
|
|
1273
1285
|
if (t.indexOf("win") !== -1)
|
|
1274
1286
|
return "windows";
|
|
@@ -1279,10 +1291,10 @@ function hr() {
|
|
|
1279
1291
|
if (t.indexOf("x11") !== -1)
|
|
1280
1292
|
return "unix";
|
|
1281
1293
|
}
|
|
1282
|
-
function
|
|
1283
|
-
return
|
|
1294
|
+
function br() {
|
|
1295
|
+
return vr() === "apple";
|
|
1284
1296
|
}
|
|
1285
|
-
const
|
|
1297
|
+
const jr = {
|
|
1286
1298
|
other: {
|
|
1287
1299
|
alt: "Alt",
|
|
1288
1300
|
meta: "Ctrl",
|
|
@@ -1297,11 +1309,11 @@ const gr = {
|
|
|
1297
1309
|
shift: "⇧",
|
|
1298
1310
|
option: "⌥"
|
|
1299
1311
|
}
|
|
1300
|
-
},
|
|
1301
|
-
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c =
|
|
1302
|
-
return
|
|
1312
|
+
}, Cr = (e, t) => {
|
|
1313
|
+
const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = O(t);
|
|
1314
|
+
return I(() => {
|
|
1303
1315
|
c.current = t;
|
|
1304
|
-
}, [t]),
|
|
1316
|
+
}, [t]), I(() => {
|
|
1305
1317
|
const u = (d) => {
|
|
1306
1318
|
(d.code === `Key${l?.toUpperCase()}` || d.code.toLowerCase() === l?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), c.current());
|
|
1307
1319
|
};
|
|
@@ -1311,24 +1323,24 @@ const gr = {
|
|
|
1311
1323
|
}, [l, a, r, o, i]), {
|
|
1312
1324
|
trigger: () => c.current(),
|
|
1313
1325
|
label: s.map(
|
|
1314
|
-
(u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ?
|
|
1326
|
+
(u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? jr[br() ? "apple" : "other"][u] : u
|
|
1315
1327
|
)
|
|
1316
1328
|
};
|
|
1317
|
-
},
|
|
1318
|
-
|
|
1329
|
+
}, Nr = $e()(
|
|
1330
|
+
Ee(
|
|
1319
1331
|
(e) => ({
|
|
1320
1332
|
selectedServer: void 0,
|
|
1321
1333
|
setSelectedServer: (t) => e({ selectedServer: t })
|
|
1322
1334
|
}),
|
|
1323
1335
|
{ name: "zudoku-selected-server" }
|
|
1324
1336
|
)
|
|
1325
|
-
),
|
|
1326
|
-
const { selectedServer: t, setSelectedServer: s } =
|
|
1327
|
-
return { selectedServer:
|
|
1337
|
+
), wr = (e) => {
|
|
1338
|
+
const { selectedServer: t, setSelectedServer: s } = Nr();
|
|
1339
|
+
return { selectedServer: yt(
|
|
1328
1340
|
() => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
|
|
1329
1341
|
[t, e]
|
|
1330
1342
|
), setSelectedServer: s };
|
|
1331
|
-
},
|
|
1343
|
+
}, qt = q.forwardRef(
|
|
1332
1344
|
({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1333
1345
|
"textarea",
|
|
1334
1346
|
{
|
|
@@ -1341,8 +1353,8 @@ const gr = {
|
|
|
1341
1353
|
}
|
|
1342
1354
|
)
|
|
1343
1355
|
);
|
|
1344
|
-
|
|
1345
|
-
const
|
|
1356
|
+
qt.displayName = "Textarea";
|
|
1357
|
+
const U = ({
|
|
1346
1358
|
children: e,
|
|
1347
1359
|
className: t
|
|
1348
1360
|
}) => /* @__PURE__ */ n.jsxs(
|
|
@@ -1355,14 +1367,14 @@ const M = ({
|
|
|
1355
1367
|
children: [
|
|
1356
1368
|
e,
|
|
1357
1369
|
/* @__PURE__ */ n.jsx(
|
|
1358
|
-
|
|
1370
|
+
Ft,
|
|
1359
1371
|
{
|
|
1360
1372
|
className: C(
|
|
1361
1373
|
"flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
|
|
1362
1374
|
t
|
|
1363
1375
|
),
|
|
1364
1376
|
children: /* @__PURE__ */ n.jsx(
|
|
1365
|
-
|
|
1377
|
+
pn,
|
|
1366
1378
|
{
|
|
1367
1379
|
className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
|
|
1368
1380
|
size: 16
|
|
@@ -1372,125 +1384,14 @@ const M = ({
|
|
|
1372
1384
|
)
|
|
1373
1385
|
]
|
|
1374
1386
|
}
|
|
1375
|
-
),
|
|
1387
|
+
), M = ({
|
|
1376
1388
|
children: e,
|
|
1377
1389
|
className: t
|
|
1378
|
-
}) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }),
|
|
1379
|
-
w.SubTrigger,
|
|
1380
|
-
{
|
|
1381
|
-
ref: r,
|
|
1382
|
-
className: C(
|
|
1383
|
-
"flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
|
|
1384
|
-
t && "pl-8",
|
|
1385
|
-
e
|
|
1386
|
-
),
|
|
1387
|
-
...a,
|
|
1388
|
-
children: [
|
|
1389
|
-
s,
|
|
1390
|
-
/* @__PURE__ */ n.jsx(vn, { className: "ml-auto h-4 w-4" })
|
|
1391
|
-
]
|
|
1392
|
-
}
|
|
1393
|
-
));
|
|
1394
|
-
wr.displayName = w.SubTrigger.displayName;
|
|
1395
|
-
const Nr = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1396
|
-
w.SubContent,
|
|
1397
|
-
{
|
|
1398
|
-
ref: s,
|
|
1399
|
-
className: C(
|
|
1400
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
|
|
1401
|
-
e
|
|
1402
|
-
),
|
|
1403
|
-
...t
|
|
1404
|
-
}
|
|
1405
|
-
));
|
|
1406
|
-
Nr.displayName = w.SubContent.displayName;
|
|
1407
|
-
const Bt = A.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1408
|
-
w.Content,
|
|
1409
|
-
{
|
|
1410
|
-
ref: a,
|
|
1411
|
-
sideOffset: t,
|
|
1412
|
-
className: C(
|
|
1413
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1414
|
-
"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",
|
|
1415
|
-
e
|
|
1416
|
-
),
|
|
1417
|
-
...s
|
|
1418
|
-
}
|
|
1419
|
-
) }));
|
|
1420
|
-
Bt.displayName = w.Content.displayName;
|
|
1421
|
-
const _t = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1422
|
-
w.Item,
|
|
1423
|
-
{
|
|
1424
|
-
ref: a,
|
|
1425
|
-
className: C(
|
|
1426
|
-
"relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1427
|
-
t && "pl-8",
|
|
1428
|
-
e
|
|
1429
|
-
),
|
|
1430
|
-
...s
|
|
1431
|
-
}
|
|
1432
|
-
));
|
|
1433
|
-
_t.displayName = w.Item.displayName;
|
|
1434
|
-
const Sr = A.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
|
|
1435
|
-
w.CheckboxItem,
|
|
1436
|
-
{
|
|
1437
|
-
ref: r,
|
|
1438
|
-
className: C(
|
|
1439
|
-
"relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1440
|
-
e
|
|
1441
|
-
),
|
|
1442
|
-
checked: s,
|
|
1443
|
-
...a,
|
|
1444
|
-
children: [
|
|
1445
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ft, { className: "h-4 w-4" }) }) }),
|
|
1446
|
-
t
|
|
1447
|
-
]
|
|
1448
|
-
}
|
|
1449
|
-
));
|
|
1450
|
-
Sr.displayName = w.CheckboxItem.displayName;
|
|
1451
|
-
const Tr = A.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
|
|
1452
|
-
w.RadioItem,
|
|
1453
|
-
{
|
|
1454
|
-
ref: a,
|
|
1455
|
-
className: C(
|
|
1456
|
-
"relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
1457
|
-
e
|
|
1458
|
-
),
|
|
1459
|
-
...s,
|
|
1460
|
-
children: [
|
|
1461
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bn, { className: "h-4 w-4 fill-current" }) }) }),
|
|
1462
|
-
t
|
|
1463
|
-
]
|
|
1464
|
-
}
|
|
1465
|
-
));
|
|
1466
|
-
Tr.displayName = w.RadioItem.displayName;
|
|
1467
|
-
const Ut = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
|
|
1468
|
-
w.Label,
|
|
1469
|
-
{
|
|
1470
|
-
ref: a,
|
|
1471
|
-
className: C(
|
|
1472
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
1473
|
-
t && "pl-8",
|
|
1474
|
-
e
|
|
1475
|
-
),
|
|
1476
|
-
...s
|
|
1477
|
-
}
|
|
1478
|
-
));
|
|
1479
|
-
Ut.displayName = w.Label.displayName;
|
|
1480
|
-
const Mt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1481
|
-
w.Separator,
|
|
1482
|
-
{
|
|
1483
|
-
ref: s,
|
|
1484
|
-
className: C("-mx-1 my-1 h-px bg-muted", e),
|
|
1485
|
-
...t
|
|
1486
|
-
}
|
|
1487
|
-
));
|
|
1488
|
-
Mt.displayName = w.Separator.displayName;
|
|
1489
|
-
const Ar = ({
|
|
1390
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), Sr = ({
|
|
1490
1391
|
examples: e,
|
|
1491
1392
|
onSelect: t
|
|
1492
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
1493
|
-
/* @__PURE__ */ n.jsx(
|
|
1393
|
+
}) => /* @__PURE__ */ n.jsxs(us, { children: [
|
|
1394
|
+
/* @__PURE__ */ n.jsx(ms, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
1494
1395
|
E,
|
|
1495
1396
|
{
|
|
1496
1397
|
variant: "ghost",
|
|
@@ -1498,15 +1399,15 @@ const Ar = ({
|
|
|
1498
1399
|
className: "hover:bg-accent hover:brightness-95",
|
|
1499
1400
|
children: [
|
|
1500
1401
|
"Use Example ",
|
|
1501
|
-
/* @__PURE__ */ n.jsx(
|
|
1402
|
+
/* @__PURE__ */ n.jsx(pe, { size: 16, className: "ml-2" })
|
|
1502
1403
|
]
|
|
1503
1404
|
}
|
|
1504
1405
|
) }),
|
|
1505
|
-
/* @__PURE__ */ n.jsx(
|
|
1506
|
-
/* @__PURE__ */ n.jsx(
|
|
1507
|
-
/* @__PURE__ */ n.jsx(
|
|
1508
|
-
/* @__PURE__ */ n.jsx(
|
|
1509
|
-
|
|
1406
|
+
/* @__PURE__ */ n.jsx(ps, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
1407
|
+
/* @__PURE__ */ n.jsx(hs, { children: s.mediaType }),
|
|
1408
|
+
/* @__PURE__ */ n.jsx(fs, {}),
|
|
1409
|
+
/* @__PURE__ */ n.jsx(gs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
|
|
1410
|
+
xs,
|
|
1510
1411
|
{
|
|
1511
1412
|
onSelect: () => t(a, s.mediaType),
|
|
1512
1413
|
children: /* @__PURE__ */ n.jsx(
|
|
@@ -1521,14 +1422,14 @@ const Ar = ({
|
|
|
1521
1422
|
a.name
|
|
1522
1423
|
)) })
|
|
1523
1424
|
] }, s.mediaType)) })
|
|
1524
|
-
] }),
|
|
1525
|
-
const { register: t, setValue: s, watch: a } =
|
|
1526
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1527
|
-
/* @__PURE__ */ n.jsxs(
|
|
1528
|
-
/* @__PURE__ */ n.jsx(
|
|
1529
|
-
/* @__PURE__ */ n.jsx(
|
|
1425
|
+
] }), Tr = ({ content: e }) => {
|
|
1426
|
+
const { register: t, setValue: s, watch: a } = se(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
|
|
1427
|
+
return /* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
1428
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
1429
|
+
/* @__PURE__ */ n.jsx(hn, { size: 16 }),
|
|
1430
|
+
/* @__PURE__ */ n.jsx(M, { children: "Body" }),
|
|
1530
1431
|
e && r.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1531
|
-
|
|
1432
|
+
Sr,
|
|
1532
1433
|
{
|
|
1533
1434
|
examples: e,
|
|
1534
1435
|
onSelect: (i, l) => {
|
|
@@ -1544,8 +1445,8 @@ const Ar = ({
|
|
|
1544
1445
|
}
|
|
1545
1446
|
) : /* @__PURE__ */ n.jsx("div", {})
|
|
1546
1447
|
] }),
|
|
1547
|
-
/* @__PURE__ */ n.jsx(
|
|
1548
|
-
|
|
1448
|
+
/* @__PURE__ */ n.jsx(F, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
|
|
1449
|
+
qt,
|
|
1549
1450
|
{
|
|
1550
1451
|
...t("body"),
|
|
1551
1452
|
className: C(
|
|
@@ -1567,12 +1468,12 @@ const Ar = ({
|
|
|
1567
1468
|
r.searchParams.set(o.name, o.value);
|
|
1568
1469
|
}), r;
|
|
1569
1470
|
};
|
|
1570
|
-
function
|
|
1471
|
+
function Ar(e) {
|
|
1571
1472
|
return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
|
|
1572
1473
|
e
|
|
1573
1474
|
);
|
|
1574
1475
|
}
|
|
1575
|
-
const
|
|
1476
|
+
const Or = (e, t) => {
|
|
1576
1477
|
const s = e.find(
|
|
1577
1478
|
([a]) => a.toLowerCase() === "content-disposition"
|
|
1578
1479
|
)?.[1];
|
|
@@ -1589,7 +1490,7 @@ const Rr = (e, t) => {
|
|
|
1589
1490
|
} catch {
|
|
1590
1491
|
return "download";
|
|
1591
1492
|
}
|
|
1592
|
-
},
|
|
1493
|
+
}, ge = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1593
1494
|
Oe.Root,
|
|
1594
1495
|
{
|
|
1595
1496
|
ref: s,
|
|
@@ -1603,14 +1504,14 @@ const Rr = (e, t) => {
|
|
|
1603
1504
|
Oe.Indicator,
|
|
1604
1505
|
{
|
|
1605
1506
|
className: C("flex items-center justify-center text-current"),
|
|
1606
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1507
|
+
children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4" })
|
|
1607
1508
|
}
|
|
1608
1509
|
)
|
|
1609
1510
|
}
|
|
1610
1511
|
));
|
|
1611
|
-
|
|
1612
|
-
const
|
|
1613
|
-
|
|
1512
|
+
ge.displayName = Oe.Root.displayName;
|
|
1513
|
+
const Pr = le.Root, Vt = q.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(le.Portal, { children: /* @__PURE__ */ n.jsx(
|
|
1514
|
+
le.Content,
|
|
1614
1515
|
{
|
|
1615
1516
|
ref: r,
|
|
1616
1517
|
align: t,
|
|
@@ -1622,8 +1523,8 @@ const Lr = de.Root, Gt = A.forwardRef(({ className: e, align: t = "center", side
|
|
|
1622
1523
|
...a
|
|
1623
1524
|
}
|
|
1624
1525
|
) }));
|
|
1625
|
-
|
|
1626
|
-
const
|
|
1526
|
+
Vt.displayName = le.Content.displayName;
|
|
1527
|
+
const Lr = ({
|
|
1627
1528
|
value: e,
|
|
1628
1529
|
options: t,
|
|
1629
1530
|
onChange: s,
|
|
@@ -1632,10 +1533,10 @@ const $r = ({
|
|
|
1632
1533
|
onEnterPress: o,
|
|
1633
1534
|
ref: i
|
|
1634
1535
|
}) => {
|
|
1635
|
-
const [l, c] =
|
|
1636
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1637
|
-
/* @__PURE__ */ n.jsx(
|
|
1638
|
-
|
|
1536
|
+
const [l, c] = $(!1), [u, d] = $(!1), h = vs((m) => m.filtered.count), g = O(null);
|
|
1537
|
+
return /* @__PURE__ */ n.jsxs(Pr, { open: l, children: [
|
|
1538
|
+
/* @__PURE__ */ n.jsx(ys, { children: /* @__PURE__ */ n.jsx(
|
|
1539
|
+
js,
|
|
1639
1540
|
{
|
|
1640
1541
|
autoComplete: "off",
|
|
1641
1542
|
ref: (m) => {
|
|
@@ -1655,7 +1556,7 @@ const $r = ({
|
|
|
1655
1556
|
}
|
|
1656
1557
|
) }),
|
|
1657
1558
|
/* @__PURE__ */ n.jsx(
|
|
1658
|
-
|
|
1559
|
+
Vt,
|
|
1659
1560
|
{
|
|
1660
1561
|
onMouseEnter: () => d(!0),
|
|
1661
1562
|
onMouseLeave: () => d(!1),
|
|
@@ -1671,12 +1572,12 @@ const $r = ({
|
|
|
1671
1572
|
onTouchMove: (m) => {
|
|
1672
1573
|
m.stopPropagation();
|
|
1673
1574
|
},
|
|
1674
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1675
|
-
|
|
1575
|
+
children: /* @__PURE__ */ n.jsx(Cs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
|
|
1576
|
+
Ns,
|
|
1676
1577
|
{
|
|
1677
1578
|
value: m,
|
|
1678
|
-
onSelect: (
|
|
1679
|
-
s(
|
|
1579
|
+
onSelect: (v) => {
|
|
1580
|
+
s(v), c(!1);
|
|
1680
1581
|
},
|
|
1681
1582
|
className: "cursor-pointer",
|
|
1682
1583
|
children: m
|
|
@@ -1686,23 +1587,23 @@ const $r = ({
|
|
|
1686
1587
|
}
|
|
1687
1588
|
)
|
|
1688
1589
|
] });
|
|
1689
|
-
},
|
|
1690
|
-
const s =
|
|
1691
|
-
const l = r ?
|
|
1692
|
-
return
|
|
1590
|
+
}, ue = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(bs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(Lr, { ...t }) }), re = (e, t) => {
|
|
1591
|
+
const s = q.forwardRef(({ className: a, asChild: r, ...o }, i) => {
|
|
1592
|
+
const l = r ? ws : e;
|
|
1593
|
+
return q.createElement(l, {
|
|
1693
1594
|
...o,
|
|
1694
1595
|
ref: i,
|
|
1695
1596
|
className: typeof t == "function" ? t({ className: a }) : C(t, a)
|
|
1696
1597
|
});
|
|
1697
1598
|
});
|
|
1698
1599
|
return s.displayName = `VariantComponent(${e})`, s;
|
|
1699
|
-
}, qe =
|
|
1600
|
+
}, qe = re(
|
|
1700
1601
|
"div",
|
|
1701
1602
|
"grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
|
|
1702
|
-
),
|
|
1603
|
+
), me = re(
|
|
1703
1604
|
"div",
|
|
1704
1605
|
"group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
|
|
1705
|
-
),
|
|
1606
|
+
), $r = Object.freeze([
|
|
1706
1607
|
"Accept",
|
|
1707
1608
|
"Accept-Encoding",
|
|
1708
1609
|
"Accept-Language",
|
|
@@ -1729,7 +1630,7 @@ const $r = ({
|
|
|
1729
1630
|
"Set-Cookie",
|
|
1730
1631
|
"User-Agent",
|
|
1731
1632
|
"X-Requested-With"
|
|
1732
|
-
]),
|
|
1633
|
+
]), Er = ({
|
|
1733
1634
|
control: e,
|
|
1734
1635
|
schemaHeaders: t,
|
|
1735
1636
|
lockedHeaders: s
|
|
@@ -1737,32 +1638,32 @@ const $r = ({
|
|
|
1737
1638
|
const { fields: a, append: r, remove: o } = De({
|
|
1738
1639
|
control: e,
|
|
1739
1640
|
name: "headers"
|
|
1740
|
-
}), { setValue: i, watch: l, formState: c } =
|
|
1641
|
+
}), { setValue: i, watch: l, formState: c } = se(), u = O([]), d = O([]), h = l("headers"), g = vt(
|
|
1741
1642
|
(f) => {
|
|
1742
1643
|
f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
|
|
1743
1644
|
},
|
|
1744
1645
|
[r]
|
|
1745
1646
|
);
|
|
1746
|
-
|
|
1647
|
+
I(() => {
|
|
1747
1648
|
h.length === 0 && g();
|
|
1748
1649
|
}, [h, g]);
|
|
1749
1650
|
const m = (f) => {
|
|
1750
1651
|
u.current[f]?.focus();
|
|
1751
|
-
},
|
|
1652
|
+
}, v = (f) => {
|
|
1752
1653
|
g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
|
|
1753
|
-
},
|
|
1654
|
+
}, y = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((w) => w.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), T = s?.map((f) => ({
|
|
1754
1655
|
name: f,
|
|
1755
1656
|
id: `locked-${f}`,
|
|
1756
1657
|
value: "••••••••••",
|
|
1757
1658
|
active: !0,
|
|
1758
1659
|
locked: !0
|
|
1759
1660
|
})) ?? [];
|
|
1760
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1761
|
-
/* @__PURE__ */ n.jsxs(
|
|
1762
|
-
/* @__PURE__ */ n.jsx(
|
|
1763
|
-
/* @__PURE__ */ n.jsx(
|
|
1661
|
+
return /* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
1662
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
1663
|
+
/* @__PURE__ */ n.jsx(gn, { size: 16 }),
|
|
1664
|
+
/* @__PURE__ */ n.jsx(M, { children: "Headers" }),
|
|
1764
1665
|
/* @__PURE__ */ n.jsxs(
|
|
1765
|
-
|
|
1666
|
+
ee,
|
|
1766
1667
|
{
|
|
1767
1668
|
onClick: g,
|
|
1768
1669
|
type: "button",
|
|
@@ -1771,21 +1672,21 @@ const $r = ({
|
|
|
1771
1672
|
className: "hover:bg-accent hover:brightness-95 flex gap-2",
|
|
1772
1673
|
children: [
|
|
1773
1674
|
"Add header ",
|
|
1774
|
-
/* @__PURE__ */ n.jsx(
|
|
1675
|
+
/* @__PURE__ */ n.jsx(pe, { size: 16 })
|
|
1775
1676
|
]
|
|
1776
1677
|
}
|
|
1777
1678
|
)
|
|
1778
1679
|
] }),
|
|
1779
|
-
/* @__PURE__ */ n.jsx(
|
|
1780
|
-
|
|
1680
|
+
/* @__PURE__ */ n.jsx(F, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
|
|
1681
|
+
T.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
|
|
1781
1682
|
/* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
1782
|
-
|
|
1683
|
+
me,
|
|
1783
1684
|
{
|
|
1784
1685
|
className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
|
|
1785
1686
|
children: [
|
|
1786
|
-
/* @__PURE__ */ n.jsx(
|
|
1687
|
+
/* @__PURE__ */ n.jsx(xn, { size: 16 }),
|
|
1787
1688
|
/* @__PURE__ */ n.jsx(
|
|
1788
|
-
|
|
1689
|
+
de,
|
|
1789
1690
|
{
|
|
1790
1691
|
value: f.name,
|
|
1791
1692
|
disabled: !0,
|
|
@@ -1808,11 +1709,11 @@ const $r = ({
|
|
|
1808
1709
|
)
|
|
1809
1710
|
] }, f.id)),
|
|
1810
1711
|
a.map((f, j) => {
|
|
1811
|
-
const
|
|
1812
|
-
(
|
|
1712
|
+
const L = t.find(
|
|
1713
|
+
(w) => w.name === h.at(j)?.name
|
|
1813
1714
|
);
|
|
1814
1715
|
return /* @__PURE__ */ n.jsxs(
|
|
1815
|
-
|
|
1716
|
+
me,
|
|
1816
1717
|
{
|
|
1817
1718
|
className: C(
|
|
1818
1719
|
b.includes(j) && "text-amber-600",
|
|
@@ -1820,27 +1721,27 @@ const $r = ({
|
|
|
1820
1721
|
),
|
|
1821
1722
|
children: [
|
|
1822
1723
|
/* @__PURE__ */ n.jsx(
|
|
1823
|
-
|
|
1724
|
+
D,
|
|
1824
1725
|
{
|
|
1825
1726
|
control: e,
|
|
1826
1727
|
name: `headers.${j}.active`,
|
|
1827
|
-
render: ({ field:
|
|
1728
|
+
render: ({ field: w }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1828
1729
|
/* @__PURE__ */ n.jsx(
|
|
1829
|
-
|
|
1730
|
+
ge,
|
|
1830
1731
|
{
|
|
1831
1732
|
id: `headers.${j}.active`,
|
|
1832
1733
|
className: C(
|
|
1833
1734
|
b.includes(j) && "hidden"
|
|
1834
1735
|
),
|
|
1835
|
-
checked:
|
|
1836
|
-
onCheckedChange: (
|
|
1837
|
-
|
|
1736
|
+
checked: w.value,
|
|
1737
|
+
onCheckedChange: (k) => {
|
|
1738
|
+
w.onChange(k);
|
|
1838
1739
|
}
|
|
1839
1740
|
}
|
|
1840
1741
|
),
|
|
1841
1742
|
/* @__PURE__ */ n.jsxs(rt, { children: [
|
|
1842
1743
|
/* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
1843
|
-
|
|
1744
|
+
yn,
|
|
1844
1745
|
{
|
|
1845
1746
|
className: C(
|
|
1846
1747
|
"text-amber-600",
|
|
@@ -1863,23 +1764,23 @@ const $r = ({
|
|
|
1863
1764
|
}
|
|
1864
1765
|
),
|
|
1865
1766
|
/* @__PURE__ */ n.jsx(
|
|
1866
|
-
|
|
1767
|
+
D,
|
|
1867
1768
|
{
|
|
1868
1769
|
control: e,
|
|
1869
1770
|
name: `headers.${j}.name`,
|
|
1870
|
-
render: ({ field:
|
|
1871
|
-
|
|
1771
|
+
render: ({ field: w }) => /* @__PURE__ */ n.jsx(
|
|
1772
|
+
ue,
|
|
1872
1773
|
{
|
|
1873
|
-
...
|
|
1774
|
+
...w,
|
|
1874
1775
|
placeholder: "Name",
|
|
1875
1776
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
|
|
1876
|
-
options: [...
|
|
1777
|
+
options: [...y, ...$r],
|
|
1877
1778
|
onEnterPress: () => m(j),
|
|
1878
|
-
onChange: (
|
|
1879
|
-
|
|
1779
|
+
onChange: (k) => {
|
|
1780
|
+
w.onChange(k), i(`headers.${j}.active`, !0);
|
|
1880
1781
|
},
|
|
1881
|
-
ref: (
|
|
1882
|
-
d.current[j] =
|
|
1782
|
+
ref: (k) => {
|
|
1783
|
+
d.current[j] = k;
|
|
1883
1784
|
}
|
|
1884
1785
|
}
|
|
1885
1786
|
)
|
|
@@ -1887,47 +1788,47 @@ const $r = ({
|
|
|
1887
1788
|
),
|
|
1888
1789
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1889
1790
|
/* @__PURE__ */ n.jsx(
|
|
1890
|
-
|
|
1791
|
+
D,
|
|
1891
1792
|
{
|
|
1892
1793
|
control: e,
|
|
1893
1794
|
name: `headers.${j}.value`,
|
|
1894
|
-
render: ({ field:
|
|
1895
|
-
|
|
1795
|
+
render: ({ field: w }) => L?.enum && L.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
1796
|
+
ue,
|
|
1896
1797
|
{
|
|
1897
1798
|
shouldFilter: !1,
|
|
1898
|
-
value:
|
|
1899
|
-
options:
|
|
1900
|
-
onChange: (
|
|
1901
|
-
|
|
1799
|
+
value: w.value,
|
|
1800
|
+
options: L.enum ?? [],
|
|
1801
|
+
onChange: (A) => {
|
|
1802
|
+
w.onChange(A), i(`headers.${j}.active`, !0);
|
|
1902
1803
|
},
|
|
1903
1804
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
1904
1805
|
}
|
|
1905
1806
|
) : /* @__PURE__ */ n.jsx(
|
|
1906
|
-
|
|
1807
|
+
de,
|
|
1907
1808
|
{
|
|
1908
1809
|
placeholder: "Value",
|
|
1909
1810
|
className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
|
|
1910
1811
|
autoComplete: "off",
|
|
1911
|
-
...
|
|
1912
|
-
ref: (
|
|
1913
|
-
u.current[j] =
|
|
1812
|
+
...w,
|
|
1813
|
+
ref: (A) => {
|
|
1814
|
+
u.current[j] = A;
|
|
1914
1815
|
},
|
|
1915
|
-
onKeyDown: (
|
|
1916
|
-
|
|
1816
|
+
onKeyDown: (A) => {
|
|
1817
|
+
A.key === "Enter" && A.currentTarget.value.trim() && v(j);
|
|
1917
1818
|
}
|
|
1918
1819
|
}
|
|
1919
1820
|
)
|
|
1920
1821
|
}
|
|
1921
1822
|
),
|
|
1922
1823
|
/* @__PURE__ */ n.jsx(
|
|
1923
|
-
|
|
1824
|
+
ee,
|
|
1924
1825
|
{
|
|
1925
1826
|
size: "icon-xs",
|
|
1926
1827
|
variant: "ghost",
|
|
1927
1828
|
className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
|
|
1928
1829
|
onClick: () => o(j),
|
|
1929
1830
|
type: "button",
|
|
1930
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1831
|
+
children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
|
|
1931
1832
|
}
|
|
1932
1833
|
)
|
|
1933
1834
|
] })
|
|
@@ -1938,28 +1839,28 @@ const $r = ({
|
|
|
1938
1839
|
})
|
|
1939
1840
|
] }) }) }) })
|
|
1940
1841
|
] });
|
|
1941
|
-
},
|
|
1842
|
+
}, Rr = Ts(
|
|
1942
1843
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
1943
|
-
), Ve =
|
|
1944
|
-
|
|
1844
|
+
), Ve = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1845
|
+
Tt.Root,
|
|
1945
1846
|
{
|
|
1946
1847
|
ref: s,
|
|
1947
|
-
className: C(
|
|
1848
|
+
className: C(Rr(), e),
|
|
1948
1849
|
...t
|
|
1949
1850
|
}
|
|
1950
1851
|
));
|
|
1951
|
-
Ve.displayName =
|
|
1952
|
-
const
|
|
1953
|
-
|
|
1852
|
+
Ve.displayName = Tt.Root.displayName;
|
|
1853
|
+
const Bt = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1854
|
+
te.Root,
|
|
1954
1855
|
{
|
|
1955
1856
|
className: C("grid gap-2", e),
|
|
1956
1857
|
...t,
|
|
1957
1858
|
ref: s
|
|
1958
1859
|
}
|
|
1959
1860
|
));
|
|
1960
|
-
|
|
1961
|
-
const
|
|
1962
|
-
|
|
1861
|
+
Bt.displayName = te.Root.displayName;
|
|
1862
|
+
const _t = q.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
1863
|
+
te.Item,
|
|
1963
1864
|
{
|
|
1964
1865
|
ref: s,
|
|
1965
1866
|
className: C(
|
|
@@ -1967,29 +1868,29 @@ const Qt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
|
|
|
1967
1868
|
e
|
|
1968
1869
|
),
|
|
1969
1870
|
...t,
|
|
1970
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1871
|
+
children: /* @__PURE__ */ n.jsx(te.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(vn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
|
|
1971
1872
|
}
|
|
1972
1873
|
));
|
|
1973
|
-
|
|
1974
|
-
const
|
|
1874
|
+
_t.displayName = te.Item.displayName;
|
|
1875
|
+
const Ut = ({
|
|
1975
1876
|
identities: e,
|
|
1976
1877
|
setValue: t,
|
|
1977
1878
|
value: s
|
|
1978
1879
|
}) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
|
|
1979
|
-
|
|
1880
|
+
Bt,
|
|
1980
1881
|
{
|
|
1981
1882
|
onValueChange: (a) => t(a),
|
|
1982
1883
|
value: s,
|
|
1983
|
-
defaultValue:
|
|
1884
|
+
defaultValue: K,
|
|
1984
1885
|
className: "gap-0",
|
|
1985
1886
|
disabled: e?.length === 0,
|
|
1986
|
-
children: [{ id:
|
|
1887
|
+
children: [{ id: K, label: "None" }, ...e ?? []].map(
|
|
1987
1888
|
(a) => /* @__PURE__ */ n.jsxs(
|
|
1988
1889
|
Ve,
|
|
1989
1890
|
{
|
|
1990
1891
|
className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
|
|
1991
1892
|
children: [
|
|
1992
|
-
/* @__PURE__ */ n.jsx(
|
|
1893
|
+
/* @__PURE__ */ n.jsx(_t, { value: a.id, id: a.id }),
|
|
1993
1894
|
/* @__PURE__ */ n.jsx("span", { children: a.label })
|
|
1994
1895
|
]
|
|
1995
1896
|
},
|
|
@@ -1997,28 +1898,28 @@ const Jt = ({
|
|
|
1997
1898
|
)
|
|
1998
1899
|
)
|
|
1999
1900
|
}
|
|
2000
|
-
) }),
|
|
1901
|
+
) }), kr = ({
|
|
2001
1902
|
onSubmit: e,
|
|
2002
1903
|
identities: t,
|
|
2003
1904
|
open: s,
|
|
2004
1905
|
onOpenChange: a
|
|
2005
1906
|
}) => {
|
|
2006
|
-
const [r, o] =
|
|
2007
|
-
return /* @__PURE__ */ n.jsx(
|
|
2008
|
-
/* @__PURE__ */ n.jsx(
|
|
2009
|
-
/* @__PURE__ */ n.jsx(
|
|
2010
|
-
/* @__PURE__ */ n.jsx(
|
|
2011
|
-
|
|
1907
|
+
const [r, o] = $(void 0), [i, l] = $(!1);
|
|
1908
|
+
return /* @__PURE__ */ n.jsx(Re, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
|
|
1909
|
+
/* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
|
|
1910
|
+
/* @__PURE__ */ n.jsx(bt, { children: "Please select an identity for this request." }),
|
|
1911
|
+
/* @__PURE__ */ n.jsx(Ss, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
|
|
1912
|
+
Ut,
|
|
2012
1913
|
{
|
|
2013
1914
|
identities: t,
|
|
2014
1915
|
setValue: o,
|
|
2015
1916
|
value: r
|
|
2016
1917
|
}
|
|
2017
1918
|
) }),
|
|
2018
|
-
/* @__PURE__ */ n.jsxs(
|
|
1919
|
+
/* @__PURE__ */ n.jsxs(jt, { className: "flex flex-col gap-2", children: [
|
|
2019
1920
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2020
1921
|
/* @__PURE__ */ n.jsx(
|
|
2021
|
-
|
|
1922
|
+
ge,
|
|
2022
1923
|
{
|
|
2023
1924
|
id: "remember",
|
|
2024
1925
|
checked: i,
|
|
@@ -2039,12 +1940,12 @@ const Jt = ({
|
|
|
2039
1940
|
] })
|
|
2040
1941
|
] }) });
|
|
2041
1942
|
}, Ne = (e) => Math.abs(
|
|
2042
|
-
Number.isNaN(
|
|
2043
|
-
),
|
|
2044
|
-
const s = (3 *
|
|
1943
|
+
Number.isNaN(Number(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(Number(e)) ? 0 : Number(e)
|
|
1944
|
+
), we = (e) => e.length > 1 ? Number(e.split("").reduce((t, s) => `${Ne(t) + Ne(s)}`)) : Ne(e), mt = (e, t = {}) => {
|
|
1945
|
+
const s = (3 * we(e) + 2 * we(e) + we(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
|
|
2045
1946
|
return `${s}deg ${a}% ${r}%`;
|
|
2046
|
-
},
|
|
2047
|
-
const { resolvedTheme: t } =
|
|
1947
|
+
}, Se = "data-linked-param", Ir = (e) => {
|
|
1948
|
+
const { resolvedTheme: t } = As();
|
|
2048
1949
|
return {
|
|
2049
1950
|
text: mt(
|
|
2050
1951
|
e,
|
|
@@ -2055,7 +1956,7 @@ const Jt = ({
|
|
|
2055
1956
|
t === "light" ? { saturation: 85, lightness: 40 } : {}
|
|
2056
1957
|
)
|
|
2057
1958
|
};
|
|
2058
|
-
},
|
|
1959
|
+
}, Mt = ({
|
|
2059
1960
|
name: e,
|
|
2060
1961
|
className: t,
|
|
2061
1962
|
slug: s,
|
|
@@ -2063,27 +1964,27 @@ const Jt = ({
|
|
|
2063
1964
|
children: r,
|
|
2064
1965
|
onClick: o
|
|
2065
1966
|
}) => {
|
|
2066
|
-
const i =
|
|
2067
|
-
return
|
|
1967
|
+
const i = O(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Ir(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
|
|
1968
|
+
return I(() => {
|
|
2068
1969
|
if (!l || !i.current) return;
|
|
2069
|
-
const
|
|
2070
|
-
document.querySelectorAll(`[${
|
|
2071
|
-
|
|
1970
|
+
const v = () => {
|
|
1971
|
+
document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
|
|
1972
|
+
T instanceof HTMLElement && (T.dataset.active = "true");
|
|
2072
1973
|
});
|
|
2073
|
-
},
|
|
2074
|
-
document.querySelectorAll(`[${
|
|
2075
|
-
|
|
1974
|
+
}, y = () => {
|
|
1975
|
+
document.querySelectorAll(`[${Se}="${l}"]`).forEach((T) => {
|
|
1976
|
+
T instanceof HTMLElement && (T.dataset.active = "false");
|
|
2076
1977
|
});
|
|
2077
1978
|
}, b = i.current;
|
|
2078
|
-
return b.addEventListener("mouseenter",
|
|
2079
|
-
b.removeEventListener("mouseenter",
|
|
1979
|
+
return b.addEventListener("mouseenter", v), b.addEventListener("mouseleave", y), () => {
|
|
1980
|
+
b.removeEventListener("mouseenter", v), b.removeEventListener("mouseleave", y);
|
|
2080
1981
|
};
|
|
2081
1982
|
}, [l]), // biome-ignore lint/a11y/noStaticElementInteractions: Just passing props through
|
|
2082
1983
|
// biome-ignore lint/a11y/useKeyWithClickEvents: Just passing props through
|
|
2083
1984
|
/* @__PURE__ */ n.jsx(
|
|
2084
1985
|
"span",
|
|
2085
1986
|
{
|
|
2086
|
-
[
|
|
1987
|
+
[Se]: l,
|
|
2087
1988
|
className: C(
|
|
2088
1989
|
// This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
|
|
2089
1990
|
"relative transition-all duration-100 rounded-lg",
|
|
@@ -2103,7 +2004,7 @@ const Jt = ({
|
|
|
2103
2004
|
children: r ?? e
|
|
2104
2005
|
}
|
|
2105
2006
|
);
|
|
2106
|
-
},
|
|
2007
|
+
}, Dr = ({
|
|
2107
2008
|
control: e,
|
|
2108
2009
|
url: t
|
|
2109
2010
|
}) => {
|
|
@@ -2113,14 +2014,14 @@ const Jt = ({
|
|
|
2113
2014
|
}), a = [...s].sort(
|
|
2114
2015
|
(r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
|
|
2115
2016
|
);
|
|
2116
|
-
return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(
|
|
2017
|
+
return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(me, { children: [
|
|
2117
2018
|
/* @__PURE__ */ n.jsx(
|
|
2118
|
-
|
|
2019
|
+
D,
|
|
2119
2020
|
{
|
|
2120
2021
|
control: e,
|
|
2121
2022
|
name: `pathParams.${o}.name`,
|
|
2122
2023
|
render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
2123
|
-
|
|
2024
|
+
Mt,
|
|
2124
2025
|
{
|
|
2125
2026
|
slug: r.name,
|
|
2126
2027
|
name: r.name,
|
|
@@ -2130,12 +2031,12 @@ const Jt = ({
|
|
|
2130
2031
|
}
|
|
2131
2032
|
),
|
|
2132
2033
|
/* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
|
|
2133
|
-
|
|
2034
|
+
D,
|
|
2134
2035
|
{
|
|
2135
2036
|
control: e,
|
|
2136
2037
|
name: `pathParams.${o}.value`,
|
|
2137
2038
|
render: ({ field: i }) => /* @__PURE__ */ n.jsx(
|
|
2138
|
-
|
|
2039
|
+
de,
|
|
2139
2040
|
{
|
|
2140
2041
|
...i,
|
|
2141
2042
|
required: !0,
|
|
@@ -2146,27 +2047,27 @@ const Jt = ({
|
|
|
2146
2047
|
}
|
|
2147
2048
|
) })
|
|
2148
2049
|
] }, r.id)) }) });
|
|
2149
|
-
},
|
|
2050
|
+
}, zr = re(
|
|
2150
2051
|
"input",
|
|
2151
2052
|
"bg-transparent h-9 font-mono text-xs"
|
|
2152
|
-
),
|
|
2053
|
+
), Fr = ({
|
|
2153
2054
|
control: e,
|
|
2154
2055
|
schemaQueryParams: t
|
|
2155
2056
|
}) => {
|
|
2156
2057
|
const { fields: s, remove: a, append: r } = De({
|
|
2157
2058
|
control: e,
|
|
2158
2059
|
name: "queryParams"
|
|
2159
|
-
}), { setValue: o, getValues: i, watch: l } =
|
|
2160
|
-
|
|
2060
|
+
}), { setValue: o, getValues: i, watch: l } = se(), c = l("queryParams");
|
|
2061
|
+
I(() => {
|
|
2161
2062
|
c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
|
|
2162
2063
|
}, [c, r]);
|
|
2163
2064
|
const u = t.map(
|
|
2164
2065
|
(d) => !!d.isRequired
|
|
2165
2066
|
);
|
|
2166
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2167
|
-
/* @__PURE__ */ n.jsxs(
|
|
2168
|
-
/* @__PURE__ */ n.jsx(
|
|
2169
|
-
/* @__PURE__ */ n.jsx(
|
|
2067
|
+
return /* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
2068
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2069
|
+
/* @__PURE__ */ n.jsx(bn, { size: 16 }),
|
|
2070
|
+
/* @__PURE__ */ n.jsx(M, { children: "Query Parameters" }),
|
|
2170
2071
|
/* @__PURE__ */ n.jsxs(
|
|
2171
2072
|
E,
|
|
2172
2073
|
{
|
|
@@ -2182,23 +2083,23 @@ const Jt = ({
|
|
|
2182
2083
|
className: "hover:bg-accent hover:brightness-95 flex gap-2",
|
|
2183
2084
|
children: [
|
|
2184
2085
|
"Add parameter ",
|
|
2185
|
-
/* @__PURE__ */ n.jsx(
|
|
2086
|
+
/* @__PURE__ */ n.jsx(pe, { size: 16 })
|
|
2186
2087
|
]
|
|
2187
2088
|
}
|
|
2188
2089
|
)
|
|
2189
2090
|
] }),
|
|
2190
|
-
/* @__PURE__ */ n.jsx(
|
|
2091
|
+
/* @__PURE__ */ n.jsx(F, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
|
|
2191
2092
|
const g = t.find(
|
|
2192
2093
|
(m) => m.name === c.at(h)?.name
|
|
2193
2094
|
);
|
|
2194
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2095
|
+
return /* @__PURE__ */ n.jsxs(me, { children: [
|
|
2195
2096
|
/* @__PURE__ */ n.jsx(
|
|
2196
|
-
|
|
2097
|
+
D,
|
|
2197
2098
|
{
|
|
2198
2099
|
control: e,
|
|
2199
2100
|
name: `queryParams.${h}.active`,
|
|
2200
2101
|
render: ({ field: m }) => /* @__PURE__ */ n.jsx(
|
|
2201
|
-
|
|
2102
|
+
ge,
|
|
2202
2103
|
{
|
|
2203
2104
|
id: `queryParams.${h}.active`,
|
|
2204
2105
|
checked: m.value,
|
|
@@ -2208,10 +2109,10 @@ const Jt = ({
|
|
|
2208
2109
|
}
|
|
2209
2110
|
),
|
|
2210
2111
|
/* @__PURE__ */ n.jsx(
|
|
2211
|
-
|
|
2112
|
+
D,
|
|
2212
2113
|
{
|
|
2213
2114
|
control: e,
|
|
2214
|
-
render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(
|
|
2115
|
+
render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(zr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
|
|
2215
2116
|
"label",
|
|
2216
2117
|
{
|
|
2217
2118
|
className: "flex items-center cursor-pointer gap-1",
|
|
@@ -2223,13 +2124,13 @@ const Jt = ({
|
|
|
2223
2124
|
]
|
|
2224
2125
|
}
|
|
2225
2126
|
) }) : /* @__PURE__ */ n.jsx(
|
|
2226
|
-
|
|
2127
|
+
ue,
|
|
2227
2128
|
{
|
|
2228
2129
|
placeholder: "Name",
|
|
2229
2130
|
value: m.value,
|
|
2230
|
-
options: t.map((
|
|
2231
|
-
onChange: (
|
|
2232
|
-
m.onChange(
|
|
2131
|
+
options: t.map((v) => v.name),
|
|
2132
|
+
onChange: (v) => {
|
|
2133
|
+
m.onChange(v);
|
|
2233
2134
|
},
|
|
2234
2135
|
className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
2235
2136
|
}
|
|
@@ -2239,25 +2140,25 @@ const Jt = ({
|
|
|
2239
2140
|
),
|
|
2240
2141
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
2241
2142
|
/* @__PURE__ */ n.jsx(
|
|
2242
|
-
|
|
2143
|
+
D,
|
|
2243
2144
|
{
|
|
2244
2145
|
control: e,
|
|
2245
2146
|
render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
|
|
2246
|
-
|
|
2147
|
+
ue,
|
|
2247
2148
|
{
|
|
2248
2149
|
value: m.value,
|
|
2249
2150
|
options: g.enum ?? [],
|
|
2250
|
-
onChange: (
|
|
2251
|
-
m.onChange(
|
|
2151
|
+
onChange: (y) => {
|
|
2152
|
+
m.onChange(y), o(`queryParams.${h}.active`, !0);
|
|
2252
2153
|
},
|
|
2253
2154
|
className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
|
|
2254
2155
|
}
|
|
2255
2156
|
) : /* @__PURE__ */ n.jsx(
|
|
2256
|
-
|
|
2157
|
+
de,
|
|
2257
2158
|
{
|
|
2258
2159
|
...m,
|
|
2259
|
-
onChange: (
|
|
2260
|
-
m.onChange(
|
|
2160
|
+
onChange: (y) => {
|
|
2161
|
+
m.onChange(y.target.value), y.target.value.length > 0 && o(`queryParams.${h}.active`, !0);
|
|
2261
2162
|
},
|
|
2262
2163
|
placeholder: "Value",
|
|
2263
2164
|
"aria-label": "Query parameter value",
|
|
@@ -2275,30 +2176,30 @@ const Jt = ({
|
|
|
2275
2176
|
className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
|
|
2276
2177
|
onClick: () => a(h),
|
|
2277
2178
|
type: "button",
|
|
2278
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2179
|
+
children: /* @__PURE__ */ n.jsx(ft, { size: 16 })
|
|
2279
2180
|
}
|
|
2280
2181
|
)
|
|
2281
2182
|
] })
|
|
2282
2183
|
] }, d.id);
|
|
2283
2184
|
}) }) }) })
|
|
2284
2185
|
] });
|
|
2285
|
-
},
|
|
2186
|
+
}, qr = ({
|
|
2286
2187
|
open: e,
|
|
2287
2188
|
setOpen: t,
|
|
2288
2189
|
onSignUp: s,
|
|
2289
2190
|
onLogin: a
|
|
2290
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
2291
|
-
/* @__PURE__ */ n.jsx(
|
|
2292
|
-
/* @__PURE__ */ n.jsx(
|
|
2293
|
-
/* @__PURE__ */ n.jsxs(
|
|
2191
|
+
}) => /* @__PURE__ */ n.jsx(Re, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
|
|
2192
|
+
/* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
|
|
2193
|
+
/* @__PURE__ */ n.jsx(bt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
|
|
2194
|
+
/* @__PURE__ */ n.jsxs(jt, { className: "flex gap-2 sm:justify-between", children: [
|
|
2294
2195
|
/* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
|
|
2295
2196
|
/* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
|
|
2296
2197
|
s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
|
|
2297
2198
|
a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
|
|
2298
2199
|
] })
|
|
2299
2200
|
] })
|
|
2300
|
-
] }) }),
|
|
2301
|
-
|
|
2201
|
+
] }) }), Vr = $e()(
|
|
2202
|
+
Ee(
|
|
2302
2203
|
(e, t) => ({
|
|
2303
2204
|
rememberedIdentity: null,
|
|
2304
2205
|
setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
|
|
@@ -2308,10 +2209,10 @@ const Jt = ({
|
|
|
2308
2209
|
}),
|
|
2309
2210
|
{
|
|
2310
2211
|
name: "identity-storage",
|
|
2311
|
-
storage:
|
|
2212
|
+
storage: gt(() => sessionStorage)
|
|
2312
2213
|
}
|
|
2313
2214
|
)
|
|
2314
|
-
),
|
|
2215
|
+
), Br = ({
|
|
2315
2216
|
path: e,
|
|
2316
2217
|
renderParam: t
|
|
2317
2218
|
}) => {
|
|
@@ -2324,23 +2225,23 @@ const Jt = ({
|
|
|
2324
2225
|
if (!h) return;
|
|
2325
2226
|
const g = u.index;
|
|
2326
2227
|
g > c && l.push(
|
|
2327
|
-
/* @__PURE__ */ n.jsx(
|
|
2228
|
+
/* @__PURE__ */ n.jsx(Z, { children: a.slice(c, g) }, `text-${c}-${g}`)
|
|
2328
2229
|
), l.push(
|
|
2329
|
-
/* @__PURE__ */ n.jsx(
|
|
2230
|
+
/* @__PURE__ */ n.jsx(Z, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
|
|
2330
2231
|
), c = g + d.length;
|
|
2331
2232
|
}), c < a.length && l.push(
|
|
2332
|
-
/* @__PURE__ */ n.jsx(
|
|
2233
|
+
/* @__PURE__ */ n.jsx(Z, { children: a.slice(c) }, `text-${c}-${a.length}`)
|
|
2333
2234
|
), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
|
|
2334
|
-
/* @__PURE__ */ n.jsxs(
|
|
2235
|
+
/* @__PURE__ */ n.jsxs(Z, { children: [
|
|
2335
2236
|
l,
|
|
2336
2237
|
r < o.length - 1 && "/",
|
|
2337
2238
|
/* @__PURE__ */ n.jsx("wbr", {})
|
|
2338
2239
|
] }, `${a}-${r}`);
|
|
2339
2240
|
});
|
|
2340
|
-
},
|
|
2341
|
-
const { watch: t, setFocus: s } =
|
|
2241
|
+
}, _r = ({ url: e }) => {
|
|
2242
|
+
const { watch: t, setFocus: s } = se(), [a] = t(["pathParams"]);
|
|
2342
2243
|
return /* @__PURE__ */ n.jsx(
|
|
2343
|
-
|
|
2244
|
+
Br,
|
|
2344
2245
|
{
|
|
2345
2246
|
path: e,
|
|
2346
2247
|
renderParam: ({ name: r, originalValue: o, index: i }) => {
|
|
@@ -2348,7 +2249,7 @@ const Jt = ({
|
|
|
2348
2249
|
(c) => c.name === r
|
|
2349
2250
|
)?.value;
|
|
2350
2251
|
return /* @__PURE__ */ n.jsx(
|
|
2351
|
-
|
|
2252
|
+
Mt,
|
|
2352
2253
|
{
|
|
2353
2254
|
name: r,
|
|
2354
2255
|
backgroundOpacity: "0",
|
|
@@ -2360,8 +2261,8 @@ const Jt = ({
|
|
|
2360
2261
|
}
|
|
2361
2262
|
}
|
|
2362
2263
|
);
|
|
2363
|
-
},
|
|
2364
|
-
const { watch: e } =
|
|
2264
|
+
}, Ur = () => {
|
|
2265
|
+
const { watch: e } = se(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(Z, { children: [
|
|
2365
2266
|
a.name,
|
|
2366
2267
|
"=",
|
|
2367
2268
|
encodeURIComponent(a.value).replaceAll("%20", "+"),
|
|
@@ -2372,12 +2273,12 @@ const Jt = ({
|
|
|
2372
2273
|
s.length > 0 ? "?" : "",
|
|
2373
2274
|
s
|
|
2374
2275
|
] });
|
|
2375
|
-
},
|
|
2276
|
+
}, Gt = (e = 0) => {
|
|
2376
2277
|
if (e === 0)
|
|
2377
2278
|
return "0 B";
|
|
2378
2279
|
const t = Math.floor(Math.log(e) / Math.log(1e3));
|
|
2379
2280
|
return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
|
|
2380
|
-
},
|
|
2281
|
+
}, Mr = ({ status: e }) => {
|
|
2381
2282
|
if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2382
2283
|
switch (Number(e.toString().slice(0, 1))) {
|
|
2383
2284
|
case 2:
|
|
@@ -2389,15 +2290,15 @@ const Jt = ({
|
|
|
2389
2290
|
default:
|
|
2390
2291
|
return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
|
|
2391
2292
|
}
|
|
2392
|
-
},
|
|
2393
|
-
const e =
|
|
2293
|
+
}, Gr = () => {
|
|
2294
|
+
const e = O(null), t = O(null), s = O(Date.now()), a = O(null), r = vt(() => {
|
|
2394
2295
|
if (t.current) {
|
|
2395
2296
|
const o = Date.now() - s.current;
|
|
2396
2297
|
t.current.nodeValue = o.toFixed();
|
|
2397
2298
|
}
|
|
2398
2299
|
a.current = requestAnimationFrame(r);
|
|
2399
2300
|
}, []);
|
|
2400
|
-
return
|
|
2301
|
+
return Qn(() => {
|
|
2401
2302
|
const o = e.current;
|
|
2402
2303
|
if (!o) return;
|
|
2403
2304
|
const i = document.createTextNode("0");
|
|
@@ -2405,7 +2306,7 @@ const Jt = ({
|
|
|
2405
2306
|
a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
|
|
2406
2307
|
};
|
|
2407
2308
|
}, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
|
|
2408
|
-
},
|
|
2309
|
+
}, Hr = ({
|
|
2409
2310
|
status: e,
|
|
2410
2311
|
time: t,
|
|
2411
2312
|
size: s,
|
|
@@ -2426,7 +2327,7 @@ const Jt = ({
|
|
|
2426
2327
|
};
|
|
2427
2328
|
return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
|
|
2428
2329
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2429
|
-
/* @__PURE__ */ n.jsx(
|
|
2330
|
+
/* @__PURE__ */ n.jsx(Mr, { status: e }),
|
|
2430
2331
|
" ",
|
|
2431
2332
|
e ?? "Sending Request...",
|
|
2432
2333
|
e ? ` ${o[e]}` : ""
|
|
@@ -2435,12 +2336,12 @@ const Jt = ({
|
|
|
2435
2336
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2436
2337
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
|
|
2437
2338
|
" ",
|
|
2438
|
-
/* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ?
|
|
2339
|
+
/* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Gt(s) : "- B" })
|
|
2439
2340
|
] }),
|
|
2440
2341
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2441
2342
|
/* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
|
|
2442
2343
|
" ",
|
|
2443
|
-
t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(
|
|
2344
|
+
t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Gr, {}),
|
|
2444
2345
|
"ms"
|
|
2445
2346
|
] })
|
|
2446
2347
|
] }),
|
|
@@ -2463,9 +2364,9 @@ function Be(e) {
|
|
|
2463
2364
|
const t = e[0];
|
|
2464
2365
|
return t === void 0 ? "any[]" : `${Be(t)}[]`;
|
|
2465
2366
|
}
|
|
2466
|
-
return typeof e == "object" ?
|
|
2367
|
+
return typeof e == "object" ? Qr(e) : typeof e;
|
|
2467
2368
|
}
|
|
2468
|
-
function
|
|
2369
|
+
function Qr(e, t = "") {
|
|
2469
2370
|
const s = ["{"];
|
|
2470
2371
|
for (const [a, r] of Object.entries(e)) {
|
|
2471
2372
|
const o = Be(r);
|
|
@@ -2474,24 +2375,24 @@ function Wr(e, t = "") {
|
|
|
2474
2375
|
return s.push("}"), s.join(`
|
|
2475
2376
|
`);
|
|
2476
2377
|
}
|
|
2477
|
-
function
|
|
2378
|
+
function Jr(e) {
|
|
2478
2379
|
return { lines: [`type GeneratedType = ${Be(e)};`] };
|
|
2479
2380
|
}
|
|
2480
|
-
const
|
|
2381
|
+
const Ht = ({
|
|
2481
2382
|
code: e,
|
|
2482
2383
|
language: t,
|
|
2483
2384
|
children: s
|
|
2484
2385
|
}) => {
|
|
2485
|
-
const { syntaxHighlighting: a } =
|
|
2486
|
-
return
|
|
2386
|
+
const { syntaxHighlighting: a } = Vn().options;
|
|
2387
|
+
return Gn(a?.highlighter, "Highlighter not found"), Os(
|
|
2487
2388
|
a.highlighter,
|
|
2488
2389
|
e ?? s ?? "",
|
|
2489
2390
|
t,
|
|
2490
2391
|
a.themes
|
|
2491
2392
|
);
|
|
2492
2393
|
};
|
|
2493
|
-
|
|
2494
|
-
const
|
|
2394
|
+
Ht.displayName = "Highlight";
|
|
2395
|
+
const Wr = (e) => Object.entries({
|
|
2495
2396
|
"application/json": "json",
|
|
2496
2397
|
"text/json": "json",
|
|
2497
2398
|
"text/html": "html",
|
|
@@ -2501,16 +2402,16 @@ const Zr = (e) => Object.entries({
|
|
|
2501
2402
|
"application/xhtml+xml": "xhtml"
|
|
2502
2403
|
}).find(
|
|
2503
2404
|
([s]) => e.includes(s)
|
|
2504
|
-
)?.[1],
|
|
2405
|
+
)?.[1], Xr = (e) => {
|
|
2505
2406
|
const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
|
|
2506
|
-
return
|
|
2507
|
-
},
|
|
2407
|
+
return Wr(t);
|
|
2408
|
+
}, Zr = (e) => {
|
|
2508
2409
|
try {
|
|
2509
2410
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
2510
2411
|
} catch {
|
|
2511
2412
|
return null;
|
|
2512
2413
|
}
|
|
2513
|
-
},
|
|
2414
|
+
}, Yr = (e) => {
|
|
2514
2415
|
const t = [
|
|
2515
2416
|
"Content-Type",
|
|
2516
2417
|
"Content-Length",
|
|
@@ -2524,10 +2425,25 @@ const Zr = (e) => Object.entries({
|
|
|
2524
2425
|
const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
|
|
2525
2426
|
return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
|
|
2526
2427
|
});
|
|
2527
|
-
},
|
|
2428
|
+
}, X = 3, Te = re(
|
|
2528
2429
|
"div",
|
|
2529
2430
|
"grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
|
|
2530
|
-
),
|
|
2431
|
+
), ce = re("div", "py-1 break-all"), Ae = ({ value: e, header: t }) => {
|
|
2432
|
+
const a = ["authorization", "key", "secret", "token"].includes(t.toLowerCase()), [r, o] = $(!a);
|
|
2433
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2434
|
+
ce,
|
|
2435
|
+
{
|
|
2436
|
+
className: C(a && "cursor-pointer flex group"),
|
|
2437
|
+
onClick: () => {
|
|
2438
|
+
a && o((i) => !i);
|
|
2439
|
+
},
|
|
2440
|
+
children: [
|
|
2441
|
+
/* @__PURE__ */ n.jsx(ts, { secret: e, previewChars: 0, revealed: r }),
|
|
2442
|
+
a ? r ? /* @__PURE__ */ n.jsx(wn, { size: 14, className: C("hidden group-hover:block") }) : /* @__PURE__ */ n.jsx(Sn, { size: 14, className: C("hidden group-hover:block") }) : null
|
|
2443
|
+
]
|
|
2444
|
+
}
|
|
2445
|
+
);
|
|
2446
|
+
}, Kr = ({
|
|
2531
2447
|
body: e = "",
|
|
2532
2448
|
headers: t,
|
|
2533
2449
|
request: s,
|
|
@@ -2536,66 +2452,66 @@ const Zr = (e) => Object.entries({
|
|
|
2536
2452
|
fileName: o,
|
|
2537
2453
|
blob: i
|
|
2538
2454
|
}) => {
|
|
2539
|
-
const l =
|
|
2455
|
+
const l = Xr(t), c = Zr(e), u = c || e, [d, h] = $(
|
|
2540
2456
|
c ? "formatted" : "raw"
|
|
2541
|
-
), g =
|
|
2457
|
+
), g = Bn({
|
|
2542
2458
|
queryKey: ["types", u],
|
|
2543
|
-
queryFn: async () =>
|
|
2459
|
+
queryFn: async () => Jr(JSON.parse(u)),
|
|
2544
2460
|
enabled: d === "types" && !r
|
|
2545
2461
|
}), m = () => {
|
|
2546
2462
|
if (i && o) {
|
|
2547
|
-
const
|
|
2548
|
-
b.href =
|
|
2463
|
+
const y = URL.createObjectURL(i), b = document.createElement("a");
|
|
2464
|
+
b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
|
|
2549
2465
|
}
|
|
2550
|
-
},
|
|
2466
|
+
}, v = Yr([...t]);
|
|
2551
2467
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2552
|
-
/* @__PURE__ */ n.jsxs(
|
|
2553
|
-
/* @__PURE__ */ n.jsxs(
|
|
2554
|
-
/* @__PURE__ */ n.jsx(
|
|
2555
|
-
/* @__PURE__ */ n.jsx(
|
|
2468
|
+
/* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
2469
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2470
|
+
/* @__PURE__ */ n.jsx(jn, { size: 16 }),
|
|
2471
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Request" })
|
|
2556
2472
|
] }),
|
|
2557
|
-
/* @__PURE__ */ n.jsx(
|
|
2558
|
-
/* @__PURE__ */ n.jsx(
|
|
2559
|
-
/* @__PURE__ */ n.jsx(
|
|
2560
|
-
] },
|
|
2473
|
+
/* @__PURE__ */ n.jsx(F, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2474
|
+
/* @__PURE__ */ n.jsx(ce, { children: y }),
|
|
2475
|
+
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2476
|
+
] }, y)) }) })
|
|
2561
2477
|
] }),
|
|
2562
|
-
/* @__PURE__ */ n.jsxs(
|
|
2563
|
-
/* @__PURE__ */ n.jsxs(
|
|
2564
|
-
/* @__PURE__ */ n.jsx(
|
|
2565
|
-
/* @__PURE__ */ n.jsx(
|
|
2478
|
+
/* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
2479
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2480
|
+
/* @__PURE__ */ n.jsx(Cn, { size: 16 }),
|
|
2481
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Header Response" })
|
|
2566
2482
|
] }),
|
|
2567
|
-
/* @__PURE__ */ n.jsx(
|
|
2568
|
-
|
|
2569
|
-
/* @__PURE__ */ n.jsx(
|
|
2570
|
-
/* @__PURE__ */ n.jsx(
|
|
2571
|
-
] },
|
|
2572
|
-
|
|
2573
|
-
/* @__PURE__ */ n.jsxs(
|
|
2483
|
+
/* @__PURE__ */ n.jsx(F, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
|
|
2484
|
+
v.slice(0, X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2485
|
+
/* @__PURE__ */ n.jsx(ce, { children: y }),
|
|
2486
|
+
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2487
|
+
] }, y)),
|
|
2488
|
+
v.length > X && /* @__PURE__ */ n.jsxs(z, { className: "col-span-full grid-cols-subgrid grid group", children: [
|
|
2489
|
+
/* @__PURE__ */ n.jsxs(Ft, { 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: [
|
|
2574
2490
|
/* @__PURE__ */ n.jsxs("span", { children: [
|
|
2575
2491
|
"Show ",
|
|
2576
|
-
|
|
2492
|
+
v.length - X,
|
|
2577
2493
|
" more headers"
|
|
2578
2494
|
] }),
|
|
2579
|
-
/* @__PURE__ */ n.jsx(
|
|
2495
|
+
/* @__PURE__ */ n.jsx(pe, { size: 12, className: "text-muted-foreground" })
|
|
2580
2496
|
] }),
|
|
2581
|
-
/* @__PURE__ */ n.jsx(
|
|
2582
|
-
/* @__PURE__ */ n.jsx(
|
|
2583
|
-
/* @__PURE__ */ n.jsx(
|
|
2584
|
-
] },
|
|
2497
|
+
/* @__PURE__ */ n.jsx(F, { className: "col-span-full grid grid-cols-subgrid", children: v.slice(X).map(([y, b]) => /* @__PURE__ */ n.jsxs(Te, { children: [
|
|
2498
|
+
/* @__PURE__ */ n.jsx(ce, { children: y }),
|
|
2499
|
+
/* @__PURE__ */ n.jsx(Ae, { value: b, header: y })
|
|
2500
|
+
] }, y)) })
|
|
2585
2501
|
] })
|
|
2586
2502
|
] }) })
|
|
2587
2503
|
] }),
|
|
2588
2504
|
/* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
|
|
2589
|
-
|
|
2505
|
+
Ct,
|
|
2590
2506
|
{
|
|
2591
2507
|
value: d,
|
|
2592
|
-
onValueChange: (
|
|
2508
|
+
onValueChange: (y) => h(y),
|
|
2593
2509
|
children: [
|
|
2594
|
-
/* @__PURE__ */ n.jsx(Nt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(
|
|
2595
|
-
/* @__PURE__ */ n.jsxs(
|
|
2596
|
-
/* @__PURE__ */ n.jsx(
|
|
2597
|
-
/* @__PURE__ */ n.jsx(
|
|
2598
|
-
/* @__PURE__ */ n.jsx(
|
|
2510
|
+
/* @__PURE__ */ n.jsx(Nt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(wt, { placeholder: "View" }) }),
|
|
2511
|
+
/* @__PURE__ */ n.jsxs(St, { children: [
|
|
2512
|
+
/* @__PURE__ */ n.jsx(ie, { value: "formatted", children: "Formatted" }),
|
|
2513
|
+
/* @__PURE__ */ n.jsx(ie, { value: "raw", children: "Raw" }),
|
|
2514
|
+
/* @__PURE__ */ n.jsx(ie, { value: "types", children: "Types" })
|
|
2599
2515
|
] })
|
|
2600
2516
|
]
|
|
2601
2517
|
}
|
|
@@ -2610,17 +2526,17 @@ const Zr = (e) => Object.entries({
|
|
|
2610
2526
|
className: "flex items-center gap-2",
|
|
2611
2527
|
disabled: !i,
|
|
2612
2528
|
children: [
|
|
2613
|
-
/* @__PURE__ */ n.jsx(
|
|
2529
|
+
/* @__PURE__ */ n.jsx(Nn, { className: "h-4 w-4" }),
|
|
2614
2530
|
"Download ",
|
|
2615
2531
|
o || "file",
|
|
2616
2532
|
" (",
|
|
2617
|
-
|
|
2533
|
+
Gt(a),
|
|
2618
2534
|
")"
|
|
2619
2535
|
]
|
|
2620
2536
|
}
|
|
2621
2537
|
)
|
|
2622
2538
|
] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
|
|
2623
|
-
|
|
2539
|
+
Ht,
|
|
2624
2540
|
{
|
|
2625
2541
|
language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
|
|
2626
2542
|
code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
|
|
@@ -2628,7 +2544,7 @@ const Zr = (e) => Object.entries({
|
|
|
2628
2544
|
}
|
|
2629
2545
|
) }) })
|
|
2630
2546
|
] });
|
|
2631
|
-
},
|
|
2547
|
+
}, ea = ({
|
|
2632
2548
|
queryMutation: e,
|
|
2633
2549
|
showLongRunningWarning: t,
|
|
2634
2550
|
onCancel: s,
|
|
@@ -2637,7 +2553,7 @@ const Zr = (e) => Object.entries({
|
|
|
2637
2553
|
progress: o
|
|
2638
2554
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
|
|
2639
2555
|
(e.isPending || e.data) && /* @__PURE__ */ n.jsx(
|
|
2640
|
-
|
|
2556
|
+
Hr,
|
|
2641
2557
|
{
|
|
2642
2558
|
status: e.data?.status,
|
|
2643
2559
|
time: e.data?.time,
|
|
@@ -2646,12 +2562,12 @@ const Zr = (e) => Object.entries({
|
|
|
2646
2562
|
progress: o
|
|
2647
2563
|
}
|
|
2648
2564
|
),
|
|
2649
|
-
e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(
|
|
2650
|
-
/* @__PURE__ */ n.jsx(
|
|
2651
|
-
/* @__PURE__ */ n.jsx(
|
|
2652
|
-
/* @__PURE__ */ n.jsx(
|
|
2565
|
+
e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(ns, { children: [
|
|
2566
|
+
/* @__PURE__ */ n.jsx(Tn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
|
|
2567
|
+
/* @__PURE__ */ n.jsx(ss, { children: "Request failed" }),
|
|
2568
|
+
/* @__PURE__ */ n.jsx(rs, { children: e.error.message || String(e.error) || "Unexpected error" })
|
|
2653
2569
|
] }) }) : e.data ? /* @__PURE__ */ n.jsx(
|
|
2654
|
-
|
|
2570
|
+
Kr,
|
|
2655
2571
|
{
|
|
2656
2572
|
request: e.data.request,
|
|
2657
2573
|
size: e.data.size,
|
|
@@ -2662,7 +2578,7 @@ const Zr = (e) => Object.entries({
|
|
|
2662
2578
|
blob: e.data.blob
|
|
2663
2579
|
}
|
|
2664
2580
|
) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
|
|
2665
|
-
/* @__PURE__ */ n.jsx(
|
|
2581
|
+
/* @__PURE__ */ n.jsx(Kn, {}),
|
|
2666
2582
|
/* @__PURE__ */ n.jsxs(
|
|
2667
2583
|
"div",
|
|
2668
2584
|
{
|
|
@@ -2673,7 +2589,7 @@ const Zr = (e) => Object.entries({
|
|
|
2673
2589
|
children: [
|
|
2674
2590
|
"Looks like the request is taking longer than expected.",
|
|
2675
2591
|
/* @__PURE__ */ n.jsx(
|
|
2676
|
-
|
|
2592
|
+
ee,
|
|
2677
2593
|
{
|
|
2678
2594
|
type: "button",
|
|
2679
2595
|
onClick: s,
|
|
@@ -2688,7 +2604,7 @@ const Zr = (e) => Object.entries({
|
|
|
2688
2604
|
)
|
|
2689
2605
|
] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
|
|
2690
2606
|
/* @__PURE__ */ n.jsx(
|
|
2691
|
-
|
|
2607
|
+
An,
|
|
2692
2608
|
{
|
|
2693
2609
|
size: 64,
|
|
2694
2610
|
className: "text-muted-foreground",
|
|
@@ -2698,18 +2614,18 @@ const Zr = (e) => Object.entries({
|
|
|
2698
2614
|
/* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
|
|
2699
2615
|
a
|
|
2700
2616
|
] }) })
|
|
2701
|
-
] }),
|
|
2702
|
-
|
|
2617
|
+
] }), ta = $e()(
|
|
2618
|
+
Ee(
|
|
2703
2619
|
(e) => ({
|
|
2704
2620
|
skipLogin: !1,
|
|
2705
2621
|
setSkipLogin: (t) => e({ skipLogin: t })
|
|
2706
2622
|
}),
|
|
2707
2623
|
{
|
|
2708
2624
|
name: "remember-skip-login",
|
|
2709
|
-
storage:
|
|
2625
|
+
storage: gt(() => sessionStorage)
|
|
2710
2626
|
}
|
|
2711
2627
|
)
|
|
2712
|
-
),
|
|
2628
|
+
), K = "__none", na = ({
|
|
2713
2629
|
server: e,
|
|
2714
2630
|
servers: t = [],
|
|
2715
2631
|
url: s,
|
|
@@ -2723,13 +2639,13 @@ const Zr = (e) => Object.entries({
|
|
|
2723
2639
|
onLogin: d,
|
|
2724
2640
|
onSignUp: h
|
|
2725
2641
|
}) => {
|
|
2726
|
-
const { selectedServer: g, setSelectedServer: m } =
|
|
2642
|
+
const { selectedServer: g, setSelectedServer: m } = wr(
|
|
2727
2643
|
t.map((p) => ({ url: p }))
|
|
2728
|
-
), [
|
|
2644
|
+
), [v, y] = $(!1), b = _n(), { setRememberedIdentity: T, getRememberedIdentity: f } = Vr(), [, j] = Jn(), { skipLogin: L, setSkipLogin: w } = ta(), [k, A] = $(!1), H = O(void 0), Ue = ds(T), Me = O(null), { label: Yt } = Cr("meta+enter", () => {
|
|
2729
2645
|
Me.current?.requestSubmit();
|
|
2730
2646
|
}), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
|
|
2731
|
-
(p,
|
|
2732
|
-
), { register:
|
|
2647
|
+
(p, J) => Ge.indexOf(p.name) - Ge.indexOf(J.name)
|
|
2648
|
+
), { register: Kt, control: ae, handleSubmit: Qe, watch: Je, setValue: xe, ...ye } = os({
|
|
2733
2649
|
defaultValues: {
|
|
2734
2650
|
body: l,
|
|
2735
2651
|
queryParams: o.length > 0 ? o.map((p) => ({
|
|
@@ -2761,85 +2677,85 @@ const Zr = (e) => Object.entries({
|
|
|
2761
2677
|
}
|
|
2762
2678
|
],
|
|
2763
2679
|
identity: f([
|
|
2764
|
-
|
|
2680
|
+
K,
|
|
2765
2681
|
...b.data?.map((p) => p.id) ?? []
|
|
2766
2682
|
])
|
|
2767
2683
|
}
|
|
2768
|
-
}),
|
|
2769
|
-
() => b.data?.find((p) => p.id ===
|
|
2770
|
-
[b.data,
|
|
2684
|
+
}), Q = Je("identity"), en = yt(
|
|
2685
|
+
() => b.data?.find((p) => p.id === Q)?.authorizationFields,
|
|
2686
|
+
[b.data, Q]
|
|
2771
2687
|
);
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
}, [Ue,
|
|
2775
|
-
const
|
|
2688
|
+
I(() => {
|
|
2689
|
+
Q && Ue.current(Q);
|
|
2690
|
+
}, [Ue, Q]);
|
|
2691
|
+
const V = as({
|
|
2776
2692
|
gcTime: 0,
|
|
2777
2693
|
mutationFn: async (p) => {
|
|
2778
|
-
const
|
|
2779
|
-
...p.headers.filter((
|
|
2780
|
-
]),
|
|
2694
|
+
const J = performance.now(), dn = Object.fromEntries([
|
|
2695
|
+
...p.headers.filter((S) => S.name && S.active).map((S) => [S.name, S.value])
|
|
2696
|
+
]), B = new Request(
|
|
2781
2697
|
ut(e ?? g, s, p),
|
|
2782
2698
|
{
|
|
2783
2699
|
method: a.toUpperCase(),
|
|
2784
|
-
headers:
|
|
2700
|
+
headers: dn,
|
|
2785
2701
|
body: p.body ? p.body : void 0
|
|
2786
2702
|
}
|
|
2787
2703
|
);
|
|
2788
|
-
p.identity !==
|
|
2789
|
-
const
|
|
2790
|
-
() =>
|
|
2704
|
+
p.identity !== K && await b.data?.find((S) => S.id === p.identity)?.authorizeRequest(B);
|
|
2705
|
+
const ve = setTimeout(
|
|
2706
|
+
() => A(!0),
|
|
2791
2707
|
3210
|
|
2792
2708
|
);
|
|
2793
|
-
|
|
2794
|
-
clearTimeout(
|
|
2709
|
+
H.current = new AbortController(), H.current.signal.addEventListener("abort", () => {
|
|
2710
|
+
clearTimeout(ve);
|
|
2795
2711
|
});
|
|
2796
2712
|
try {
|
|
2797
|
-
const
|
|
2713
|
+
const S = await fetch(B, {
|
|
2798
2714
|
cache: "no-store",
|
|
2799
|
-
signal:
|
|
2715
|
+
signal: H.current.signal
|
|
2800
2716
|
});
|
|
2801
|
-
clearTimeout(
|
|
2802
|
-
const
|
|
2803
|
-
let
|
|
2804
|
-
Ke ? (et = await
|
|
2805
|
-
const nt =
|
|
2717
|
+
clearTimeout(ve), A(!1);
|
|
2718
|
+
const un = performance.now() - J, mn = new URL(B.url), Ze = Array.from(S.headers.entries()), Ye = S.headers.get("content-type") || "", Ke = Ar(Ye);
|
|
2719
|
+
let oe = "", et, tt;
|
|
2720
|
+
Ke ? (et = await S.blob(), tt = Or(Ze, B.url), oe = `Binary content (${Ye})`) : oe = await S.text();
|
|
2721
|
+
const nt = S.headers.get("content-length");
|
|
2806
2722
|
return {
|
|
2807
|
-
status:
|
|
2723
|
+
status: S.status,
|
|
2808
2724
|
headers: Ze,
|
|
2809
|
-
size: nt ?
|
|
2810
|
-
body:
|
|
2811
|
-
time:
|
|
2725
|
+
size: nt ? Number(nt) : oe.length,
|
|
2726
|
+
body: oe,
|
|
2727
|
+
time: un,
|
|
2812
2728
|
isBinary: Ke,
|
|
2813
2729
|
fileName: tt,
|
|
2814
2730
|
blob: et,
|
|
2815
2731
|
request: {
|
|
2816
|
-
method:
|
|
2817
|
-
url:
|
|
2732
|
+
method: B.method.toUpperCase(),
|
|
2733
|
+
url: B.url,
|
|
2818
2734
|
headers: [
|
|
2819
|
-
["Host",
|
|
2735
|
+
["Host", mn.host],
|
|
2820
2736
|
["User-Agent", "Zudoku Playground"],
|
|
2821
|
-
...Array.from(
|
|
2737
|
+
...Array.from(B.headers.entries())
|
|
2822
2738
|
],
|
|
2823
2739
|
body: p.body ? p.body : void 0
|
|
2824
2740
|
}
|
|
2825
2741
|
};
|
|
2826
|
-
} catch (
|
|
2827
|
-
throw clearTimeout(
|
|
2742
|
+
} catch (S) {
|
|
2743
|
+
throw clearTimeout(ve), A(!1), S instanceof TypeError ? new Error(
|
|
2828
2744
|
"The request failed, possibly due to network issues or CORS policy."
|
|
2829
|
-
) :
|
|
2745
|
+
) : S;
|
|
2830
2746
|
}
|
|
2831
2747
|
}
|
|
2832
|
-
}), We =
|
|
2833
|
-
|
|
2834
|
-
const p = setTimeout(() =>
|
|
2748
|
+
}), We = V.isPending, [tn, nn] = $(!1);
|
|
2749
|
+
I(() => {
|
|
2750
|
+
const p = setTimeout(() => nn(We), 100);
|
|
2835
2751
|
return () => clearTimeout(p);
|
|
2836
2752
|
}, [We]);
|
|
2837
|
-
const { isFinished:
|
|
2838
|
-
|
|
2839
|
-
|
|
2753
|
+
const { isFinished: sn, progress: rn } = es({ isAnimating: tn });
|
|
2754
|
+
I(() => () => {
|
|
2755
|
+
H.current?.abort();
|
|
2840
2756
|
}, []);
|
|
2841
|
-
const
|
|
2842
|
-
|
|
2757
|
+
const an = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
|
|
2758
|
+
Ct,
|
|
2843
2759
|
{
|
|
2844
2760
|
onValueChange: (p) => {
|
|
2845
2761
|
j(() => m(p));
|
|
@@ -2847,47 +2763,47 @@ const Zr = (e) => Object.entries({
|
|
|
2847
2763
|
value: g,
|
|
2848
2764
|
defaultValue: g,
|
|
2849
2765
|
children: [
|
|
2850
|
-
/* @__PURE__ */ n.jsx(Nt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(
|
|
2851
|
-
/* @__PURE__ */ n.jsx(
|
|
2766
|
+
/* @__PURE__ */ n.jsx(Nt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(wt, {}) }),
|
|
2767
|
+
/* @__PURE__ */ n.jsx(St, { children: t.map((p) => /* @__PURE__ */ n.jsx(ie, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
|
|
2852
2768
|
]
|
|
2853
2769
|
}
|
|
2854
|
-
) }),
|
|
2770
|
+
) }), on = u && !L, cn = ["POST", "PUT", "PATCH", "DELETE"].includes(
|
|
2855
2771
|
a.toUpperCase()
|
|
2856
|
-
), [Xe,
|
|
2772
|
+
), [Xe, ln] = ls();
|
|
2857
2773
|
return /* @__PURE__ */ n.jsx(
|
|
2858
|
-
|
|
2774
|
+
is,
|
|
2859
2775
|
{
|
|
2860
|
-
register:
|
|
2861
|
-
control:
|
|
2776
|
+
register: Kt,
|
|
2777
|
+
control: ae,
|
|
2862
2778
|
handleSubmit: Qe,
|
|
2863
2779
|
watch: Je,
|
|
2864
|
-
setValue:
|
|
2865
|
-
...
|
|
2866
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2780
|
+
setValue: xe,
|
|
2781
|
+
...ye,
|
|
2782
|
+
children: /* @__PURE__ */ n.jsx(cs, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
|
|
2867
2783
|
"form",
|
|
2868
2784
|
{
|
|
2869
2785
|
ref: Me,
|
|
2870
2786
|
onSubmit: Qe((p) => {
|
|
2871
|
-
b.data?.length === 0 || p.identity ?
|
|
2787
|
+
b.data?.length === 0 || p.identity ? V.mutate(p) : y(!0);
|
|
2872
2788
|
}),
|
|
2873
2789
|
className: "relative",
|
|
2874
2790
|
children: [
|
|
2875
2791
|
/* @__PURE__ */ n.jsx(
|
|
2876
|
-
|
|
2792
|
+
kr,
|
|
2877
2793
|
{
|
|
2878
2794
|
identities: b.data ?? [],
|
|
2879
|
-
open:
|
|
2880
|
-
onOpenChange:
|
|
2881
|
-
onSubmit: ({ rememberedIdentity: p, identity:
|
|
2882
|
-
p &&
|
|
2795
|
+
open: v,
|
|
2796
|
+
onOpenChange: y,
|
|
2797
|
+
onSubmit: ({ rememberedIdentity: p, identity: J }) => {
|
|
2798
|
+
p && xe("identity", J ?? K), y(!1), V.mutate({ ...ye.getValues(), identity: J });
|
|
2883
2799
|
}
|
|
2884
2800
|
}
|
|
2885
2801
|
),
|
|
2886
2802
|
/* @__PURE__ */ n.jsx(
|
|
2887
|
-
|
|
2803
|
+
qr,
|
|
2888
2804
|
{
|
|
2889
|
-
open:
|
|
2890
|
-
setOpen: (p) =>
|
|
2805
|
+
open: on,
|
|
2806
|
+
setOpen: (p) => w(!p),
|
|
2891
2807
|
onSignUp: h,
|
|
2892
2808
|
onLogin: d
|
|
2893
2809
|
}
|
|
@@ -2897,20 +2813,20 @@ const Zr = (e) => Object.entries({
|
|
|
2897
2813
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
|
|
2898
2814
|
/* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
|
|
2899
2815
|
/* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
|
|
2900
|
-
|
|
2901
|
-
/* @__PURE__ */ n.jsx(
|
|
2902
|
-
/* @__PURE__ */ n.jsx(
|
|
2816
|
+
an,
|
|
2817
|
+
/* @__PURE__ */ n.jsx(_r, { url: s }),
|
|
2818
|
+
/* @__PURE__ */ n.jsx(Ur, {})
|
|
2903
2819
|
] }) }),
|
|
2904
2820
|
/* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
|
|
2905
2821
|
E,
|
|
2906
2822
|
{
|
|
2907
2823
|
type: "button",
|
|
2908
2824
|
onClick: () => {
|
|
2909
|
-
|
|
2825
|
+
ln(
|
|
2910
2826
|
ut(
|
|
2911
2827
|
e ?? g,
|
|
2912
2828
|
s,
|
|
2913
|
-
|
|
2829
|
+
ye.getValues()
|
|
2914
2830
|
).toString()
|
|
2915
2831
|
);
|
|
2916
2832
|
},
|
|
@@ -2920,7 +2836,7 @@ const Zr = (e) => Object.entries({
|
|
|
2920
2836
|
"hover:opacity-100 transition",
|
|
2921
2837
|
Xe ? "text-emerald-600 opacity-100" : "opacity-50"
|
|
2922
2838
|
),
|
|
2923
|
-
children: Xe ? /* @__PURE__ */ n.jsx(
|
|
2839
|
+
children: Xe ? /* @__PURE__ */ n.jsx(On, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Pn, { size: 14 })
|
|
2924
2840
|
}
|
|
2925
2841
|
) })
|
|
2926
2842
|
] }),
|
|
@@ -2928,69 +2844,69 @@ const Zr = (e) => Object.entries({
|
|
|
2928
2844
|
E,
|
|
2929
2845
|
{
|
|
2930
2846
|
type: "submit",
|
|
2931
|
-
variant:
|
|
2847
|
+
variant: V.isPending ? "destructive" : "default",
|
|
2932
2848
|
onClick: (p) => {
|
|
2933
|
-
|
|
2849
|
+
V.isPending && (H.current?.abort(
|
|
2934
2850
|
"Request cancelled by user"
|
|
2935
2851
|
), p.preventDefault());
|
|
2936
2852
|
},
|
|
2937
2853
|
className: "w-18",
|
|
2938
|
-
children:
|
|
2854
|
+
children: V.isPending ? "Cancel" : "Send"
|
|
2939
2855
|
}
|
|
2940
2856
|
)
|
|
2941
2857
|
] }),
|
|
2942
2858
|
/* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
|
|
2943
|
-
b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(
|
|
2944
|
-
/* @__PURE__ */ n.jsxs(
|
|
2945
|
-
/* @__PURE__ */ n.jsx(
|
|
2946
|
-
/* @__PURE__ */ n.jsx(
|
|
2859
|
+
b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
2860
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2861
|
+
/* @__PURE__ */ n.jsx(Ln, { size: 16 }),
|
|
2862
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Authentication" })
|
|
2947
2863
|
] }),
|
|
2948
|
-
/* @__PURE__ */ n.jsx(
|
|
2949
|
-
|
|
2864
|
+
/* @__PURE__ */ n.jsx(F, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
|
|
2865
|
+
Ut,
|
|
2950
2866
|
{
|
|
2951
|
-
value:
|
|
2867
|
+
value: Q,
|
|
2952
2868
|
identities: b.data ?? [],
|
|
2953
|
-
setValue: (p) =>
|
|
2869
|
+
setValue: (p) => xe("identity", p)
|
|
2954
2870
|
}
|
|
2955
2871
|
) })
|
|
2956
2872
|
] }),
|
|
2957
|
-
He.length > 0 && /* @__PURE__ */ n.jsxs(
|
|
2958
|
-
/* @__PURE__ */ n.jsxs(
|
|
2959
|
-
/* @__PURE__ */ n.jsx(
|
|
2960
|
-
/* @__PURE__ */ n.jsx(
|
|
2873
|
+
He.length > 0 && /* @__PURE__ */ n.jsxs(z, { defaultOpen: !0, children: [
|
|
2874
|
+
/* @__PURE__ */ n.jsxs(U, { children: [
|
|
2875
|
+
/* @__PURE__ */ n.jsx($n, { size: 16 }),
|
|
2876
|
+
/* @__PURE__ */ n.jsx(M, { className: "col-span-2", children: "Path Parameters" })
|
|
2961
2877
|
] }),
|
|
2962
|
-
/* @__PURE__ */ n.jsx(
|
|
2878
|
+
/* @__PURE__ */ n.jsx(F, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Dr, { url: s, control: ae }) })
|
|
2963
2879
|
] }),
|
|
2964
|
-
/* @__PURE__ */ n.jsx(
|
|
2880
|
+
/* @__PURE__ */ n.jsx(Fr, { control: ae, schemaQueryParams: o }),
|
|
2965
2881
|
/* @__PURE__ */ n.jsx(
|
|
2966
|
-
|
|
2882
|
+
Er,
|
|
2967
2883
|
{
|
|
2968
|
-
control:
|
|
2884
|
+
control: ae,
|
|
2969
2885
|
schemaHeaders: r,
|
|
2970
|
-
lockedHeaders:
|
|
2886
|
+
lockedHeaders: en?.headers
|
|
2971
2887
|
}
|
|
2972
2888
|
),
|
|
2973
|
-
|
|
2889
|
+
cn && /* @__PURE__ */ n.jsx(Tr, { content: c })
|
|
2974
2890
|
] }),
|
|
2975
2891
|
/* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
|
|
2976
2892
|
/* @__PURE__ */ n.jsx(
|
|
2977
|
-
|
|
2893
|
+
ea,
|
|
2978
2894
|
{
|
|
2979
|
-
queryMutation:
|
|
2980
|
-
showLongRunningWarning:
|
|
2981
|
-
isFinished:
|
|
2982
|
-
progress:
|
|
2895
|
+
queryMutation: V,
|
|
2896
|
+
showLongRunningWarning: k,
|
|
2897
|
+
isFinished: sn,
|
|
2898
|
+
progress: rn,
|
|
2983
2899
|
tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
|
|
2984
2900
|
"Press",
|
|
2985
2901
|
" ",
|
|
2986
|
-
/* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children:
|
|
2902
|
+
/* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: Yt.join(" + ") }),
|
|
2987
2903
|
" ",
|
|
2988
2904
|
"to send a request"
|
|
2989
2905
|
] }) }),
|
|
2990
2906
|
onCancel: () => {
|
|
2991
|
-
|
|
2907
|
+
H.current?.abort(
|
|
2992
2908
|
"Request cancelled by the user"
|
|
2993
|
-
),
|
|
2909
|
+
), A(!1);
|
|
2994
2910
|
}
|
|
2995
2911
|
}
|
|
2996
2912
|
)
|
|
@@ -3000,7 +2916,7 @@ const Zr = (e) => Object.entries({
|
|
|
3000
2916
|
) })
|
|
3001
2917
|
}
|
|
3002
2918
|
);
|
|
3003
|
-
},
|
|
2919
|
+
}, sa = ({
|
|
3004
2920
|
className: e,
|
|
3005
2921
|
size: t = 16
|
|
3006
2922
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -3021,34 +2937,42 @@ const Zr = (e) => Object.entries({
|
|
|
3021
2937
|
}
|
|
3022
2938
|
)
|
|
3023
2939
|
}
|
|
3024
|
-
),
|
|
3025
|
-
const [t, s] =
|
|
3026
|
-
return /* @__PURE__ */ n.jsxs(
|
|
3027
|
-
/* @__PURE__ */ n.jsx(
|
|
2940
|
+
), ra = (e) => {
|
|
2941
|
+
const [t, s] = $(!1), { isAuthEnabled: a, login: r, signup: o, isPending: i, isAuthenticated: l } = Zn();
|
|
2942
|
+
return /* @__PURE__ */ n.jsxs(Re, { onOpenChange: (c) => s(c), children: [
|
|
2943
|
+
/* @__PURE__ */ n.jsx(Yn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
|
|
3028
2944
|
"button",
|
|
3029
2945
|
{
|
|
3030
2946
|
type: "button",
|
|
3031
2947
|
className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
|
|
3032
2948
|
children: [
|
|
3033
2949
|
"Test",
|
|
3034
|
-
/* @__PURE__ */ n.jsx(
|
|
2950
|
+
/* @__PURE__ */ n.jsx(sa, { size: 14 })
|
|
3035
2951
|
]
|
|
3036
2952
|
}
|
|
3037
2953
|
) }),
|
|
3038
2954
|
/* @__PURE__ */ n.jsxs(
|
|
3039
|
-
|
|
2955
|
+
ke,
|
|
3040
2956
|
{
|
|
3041
2957
|
className: "max-w-screen-xl w-full overflow-hidden p-0",
|
|
3042
2958
|
"aria-describedby": void 0,
|
|
3043
2959
|
showCloseButton: !0,
|
|
3044
2960
|
children: [
|
|
3045
|
-
/* @__PURE__ */ n.jsx(
|
|
3046
|
-
t && /* @__PURE__ */ n.jsx(
|
|
2961
|
+
/* @__PURE__ */ n.jsx(Xn, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
|
|
2962
|
+
t && /* @__PURE__ */ n.jsx(
|
|
2963
|
+
na,
|
|
2964
|
+
{
|
|
2965
|
+
requiresLogin: a && !l && !i,
|
|
2966
|
+
onLogin: () => r(),
|
|
2967
|
+
onSignUp: () => o(),
|
|
2968
|
+
...e
|
|
2969
|
+
}
|
|
2970
|
+
)
|
|
3047
2971
|
]
|
|
3048
2972
|
}
|
|
3049
2973
|
)
|
|
3050
2974
|
] });
|
|
3051
|
-
},
|
|
2975
|
+
}, aa = {
|
|
3052
2976
|
get: "green",
|
|
3053
2977
|
post: "blue",
|
|
3054
2978
|
put: "yellow",
|
|
@@ -3080,21 +3004,21 @@ const Zr = (e) => Object.entries({
|
|
|
3080
3004
|
badge: {
|
|
3081
3005
|
label: o.method,
|
|
3082
3006
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
3083
|
-
color:
|
|
3007
|
+
color: aa[o.method.toLowerCase()],
|
|
3084
3008
|
invert: !0
|
|
3085
3009
|
}
|
|
3086
3010
|
}))
|
|
3087
|
-
}),
|
|
3011
|
+
}), Qt = xt(
|
|
3088
3012
|
void 0
|
|
3089
|
-
), Ua =
|
|
3090
|
-
const e =
|
|
3013
|
+
), Ua = Qt.Provider, oa = () => {
|
|
3014
|
+
const e = Wn(Qt);
|
|
3091
3015
|
if (!e)
|
|
3092
3016
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
3093
3017
|
return e.config;
|
|
3094
3018
|
}, ht = (e) => ({
|
|
3095
3019
|
path: e.routePath,
|
|
3096
3020
|
async lazy() {
|
|
3097
|
-
const { OasProvider: t } = await import("./OasProvider-
|
|
3021
|
+
const { OasProvider: t } = await import("./OasProvider-BMUgPYQU.js");
|
|
3098
3022
|
return {
|
|
3099
3023
|
element: /* @__PURE__ */ n.jsx(
|
|
3100
3024
|
t,
|
|
@@ -3108,39 +3032,39 @@ const Zr = (e) => Object.entries({
|
|
|
3108
3032
|
};
|
|
3109
3033
|
},
|
|
3110
3034
|
children: e.routes
|
|
3111
|
-
}),
|
|
3035
|
+
}), Jt = ({
|
|
3112
3036
|
path: e,
|
|
3113
3037
|
tag: t,
|
|
3114
3038
|
untagged: s
|
|
3115
3039
|
}) => ({
|
|
3116
3040
|
path: e,
|
|
3117
3041
|
async lazy() {
|
|
3118
|
-
const { OperationList: a } = await import("./OperationList-
|
|
3042
|
+
const { OperationList: a } = await import("./OperationList-DVig5I94.js");
|
|
3119
3043
|
return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
|
|
3120
3044
|
}
|
|
3121
|
-
}),
|
|
3045
|
+
}), ia = ({
|
|
3122
3046
|
render: e,
|
|
3123
3047
|
path: t
|
|
3124
3048
|
}) => {
|
|
3125
|
-
const { type: s, input: a } =
|
|
3049
|
+
const { type: s, input: a } = oa(), { tag: r } = In(), o = Dn(), i = lr(Zt, { type: s, input: a }), {
|
|
3126
3050
|
data: { schema: l }
|
|
3127
|
-
} =
|
|
3051
|
+
} = Un(i), c = l.tags.at(0);
|
|
3128
3052
|
return !r && c?.slug ? /* @__PURE__ */ n.jsx(
|
|
3129
|
-
|
|
3053
|
+
zn,
|
|
3130
3054
|
{
|
|
3131
3055
|
to: {
|
|
3132
|
-
pathname:
|
|
3056
|
+
pathname: Fn(t, { tag: c.slug }),
|
|
3133
3057
|
search: o.search
|
|
3134
3058
|
}
|
|
3135
3059
|
}
|
|
3136
3060
|
) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
|
|
3137
|
-
},
|
|
3061
|
+
}, ca = ({ path: e }) => ({
|
|
3138
3062
|
path: e,
|
|
3139
3063
|
async lazy() {
|
|
3140
|
-
const { OperationList: t } = await import("./OperationList-
|
|
3064
|
+
const { OperationList: t } = await import("./OperationList-DVig5I94.js");
|
|
3141
3065
|
return {
|
|
3142
3066
|
element: /* @__PURE__ */ n.jsx(
|
|
3143
|
-
|
|
3067
|
+
ia,
|
|
3144
3068
|
{
|
|
3145
3069
|
path: e,
|
|
3146
3070
|
render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
|
|
@@ -3148,35 +3072,35 @@ const Zr = (e) => Object.entries({
|
|
|
3148
3072
|
)
|
|
3149
3073
|
};
|
|
3150
3074
|
}
|
|
3151
|
-
}),
|
|
3075
|
+
}), Wt = (e) => [
|
|
3152
3076
|
// Category without tagged operations
|
|
3153
|
-
|
|
3154
|
-
path:
|
|
3077
|
+
Jt({
|
|
3078
|
+
path: R(e, _e),
|
|
3155
3079
|
untagged: !0
|
|
3156
3080
|
}),
|
|
3157
3081
|
// Schema list route
|
|
3158
3082
|
{
|
|
3159
|
-
path:
|
|
3083
|
+
path: R(e, "~schemas"),
|
|
3160
3084
|
lazy: async () => {
|
|
3161
|
-
const { SchemaList: t } = await import("./SchemaList-
|
|
3085
|
+
const { SchemaList: t } = await import("./SchemaList-1eLKXqn8.js");
|
|
3162
3086
|
return { element: /* @__PURE__ */ n.jsx(t, {}) };
|
|
3163
3087
|
}
|
|
3164
3088
|
}
|
|
3165
|
-
],
|
|
3166
|
-
const s =
|
|
3089
|
+
], la = (e, t) => {
|
|
3090
|
+
const s = R(e, t.at(0) ?? _e);
|
|
3167
3091
|
return [
|
|
3168
3092
|
// Redirect to first tag on the index route
|
|
3169
|
-
{ index: !0, loader: () =>
|
|
3093
|
+
{ index: !0, loader: () => kn(s) },
|
|
3170
3094
|
// Create routes for each tag
|
|
3171
3095
|
...t.map(
|
|
3172
|
-
(a) =>
|
|
3173
|
-
path:
|
|
3096
|
+
(a) => Jt({
|
|
3097
|
+
path: R(e, a),
|
|
3174
3098
|
tag: a
|
|
3175
3099
|
})
|
|
3176
3100
|
),
|
|
3177
|
-
...
|
|
3101
|
+
...Wt(e)
|
|
3178
3102
|
];
|
|
3179
|
-
},
|
|
3103
|
+
}, Xt = (e) => e.type === "file" ? Object.keys(e.input) : [], da = ({
|
|
3180
3104
|
basePath: e,
|
|
3181
3105
|
config: t,
|
|
3182
3106
|
client: s
|
|
@@ -3188,26 +3112,26 @@ const Zr = (e) => Object.entries({
|
|
|
3188
3112
|
basePath: e,
|
|
3189
3113
|
routePath: e,
|
|
3190
3114
|
routes: [
|
|
3191
|
-
|
|
3192
|
-
...
|
|
3115
|
+
ca({ path: `${e}/:tag?` }),
|
|
3116
|
+
...Wt(e)
|
|
3193
3117
|
],
|
|
3194
3118
|
client: s,
|
|
3195
3119
|
config: t
|
|
3196
3120
|
})
|
|
3197
3121
|
];
|
|
3198
|
-
const r =
|
|
3122
|
+
const r = Xt(t);
|
|
3199
3123
|
return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
|
|
3200
|
-
const l =
|
|
3124
|
+
const l = R(e, i);
|
|
3201
3125
|
return ht({
|
|
3202
3126
|
basePath: e,
|
|
3203
3127
|
version: i,
|
|
3204
3128
|
routePath: l,
|
|
3205
|
-
routes:
|
|
3129
|
+
routes: la(l, a),
|
|
3206
3130
|
client: s,
|
|
3207
3131
|
config: t
|
|
3208
3132
|
});
|
|
3209
3133
|
});
|
|
3210
|
-
},
|
|
3134
|
+
}, Zt = yr(`
|
|
3211
3135
|
query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
|
|
3212
3136
|
schema(input: $input, type: $type) {
|
|
3213
3137
|
extensions
|
|
@@ -3231,7 +3155,7 @@ const Zr = (e) => Object.entries({
|
|
|
3231
3155
|
}
|
|
3232
3156
|
}
|
|
3233
3157
|
`), _e = "~endpoints", Ma = (e) => {
|
|
3234
|
-
const t =
|
|
3158
|
+
const t = R(e.path), s = new Ls(e);
|
|
3235
3159
|
return {
|
|
3236
3160
|
getHead: () => {
|
|
3237
3161
|
if (e.type === "url" && !e.skipPreload)
|
|
@@ -3256,30 +3180,30 @@ const Zr = (e) => Object.entries({
|
|
|
3256
3180
|
children: l,
|
|
3257
3181
|
...c
|
|
3258
3182
|
}) => {
|
|
3259
|
-
const u =
|
|
3183
|
+
const u = qn();
|
|
3260
3184
|
if (!r)
|
|
3261
3185
|
throw new Error("Server is required");
|
|
3262
3186
|
return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
|
|
3263
|
-
|
|
3187
|
+
ee,
|
|
3264
3188
|
{
|
|
3265
3189
|
className: "gap-2 items-center",
|
|
3266
3190
|
variant: "outline",
|
|
3267
3191
|
onClick: u.login,
|
|
3268
3192
|
children: [
|
|
3269
3193
|
"Login to open in Playground ",
|
|
3270
|
-
/* @__PURE__ */ n.jsx(
|
|
3194
|
+
/* @__PURE__ */ n.jsx(En, { size: 16 })
|
|
3271
3195
|
]
|
|
3272
3196
|
}
|
|
3273
3197
|
) : /* @__PURE__ */ n.jsx(
|
|
3274
|
-
|
|
3198
|
+
ra,
|
|
3275
3199
|
{
|
|
3276
3200
|
url: i ?? "/",
|
|
3277
3201
|
method: o ?? "get",
|
|
3278
3202
|
server: r,
|
|
3279
3203
|
...c,
|
|
3280
|
-
children: /* @__PURE__ */ n.jsx(
|
|
3204
|
+
children: /* @__PURE__ */ n.jsx(ee, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3281
3205
|
"Open in Playground ",
|
|
3282
|
-
/* @__PURE__ */ n.jsx(
|
|
3206
|
+
/* @__PURE__ */ n.jsx(Rn, { size: 16 })
|
|
3283
3207
|
] }) })
|
|
3284
3208
|
}
|
|
3285
3209
|
);
|
|
@@ -3293,33 +3217,33 @@ const Zr = (e) => Object.entries({
|
|
|
3293
3217
|
a
|
|
3294
3218
|
);
|
|
3295
3219
|
try {
|
|
3296
|
-
const i = o?.params.version, l = i ??
|
|
3220
|
+
const i = o?.params.version, l = i ?? Xt(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = zt(s, Zt, {
|
|
3297
3221
|
type: c,
|
|
3298
3222
|
input: u
|
|
3299
3223
|
}), h = await r.queryClient.ensureQueryData(d), g = new Map(
|
|
3300
3224
|
h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
|
|
3301
3225
|
if (!f.name)
|
|
3302
3226
|
throw new Error(`Tag ${f.slug} has no name`);
|
|
3303
|
-
const j =
|
|
3227
|
+
const j = R(t, i, f.slug), L = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, w = f.extensions?.["x-zudoku-collapsible"] ?? !0;
|
|
3304
3228
|
return [
|
|
3305
3229
|
f.name,
|
|
3306
3230
|
pt({
|
|
3307
3231
|
label: f.extensions?.["x-displayName"] ?? f.name,
|
|
3308
3232
|
path: j,
|
|
3309
3233
|
operations: f.operations,
|
|
3310
|
-
collapsed:
|
|
3311
|
-
collapsible:
|
|
3234
|
+
collapsed: L,
|
|
3235
|
+
collapsible: w
|
|
3312
3236
|
})
|
|
3313
3237
|
];
|
|
3314
3238
|
})
|
|
3315
|
-
), m = h.schema.extensions?.["x-tagGroups"] ?? [],
|
|
3239
|
+
), m = h.schema.extensions?.["x-tagGroups"] ?? [], v = new Set(
|
|
3316
3240
|
m.flatMap(
|
|
3317
3241
|
(f) => f.tags.filter((j) => g.has(j))
|
|
3318
3242
|
)
|
|
3319
3243
|
), b = [
|
|
3320
3244
|
...m.flatMap(
|
|
3321
3245
|
(f) => {
|
|
3322
|
-
const j = f.tags.map((
|
|
3246
|
+
const j = f.tags.map((L) => g.get(L)).filter(Boolean);
|
|
3323
3247
|
return j.length === 0 ? [] : [
|
|
3324
3248
|
{
|
|
3325
3249
|
type: "category",
|
|
@@ -3331,64 +3255,64 @@ const Zr = (e) => Object.entries({
|
|
|
3331
3255
|
];
|
|
3332
3256
|
}
|
|
3333
3257
|
),
|
|
3334
|
-
...Array.from(g.entries()).filter(([f]) => !
|
|
3335
|
-
],
|
|
3258
|
+
...Array.from(g.entries()).filter(([f]) => !v.has(f)).map(([, f]) => f)
|
|
3259
|
+
], T = h.schema.tags.find(
|
|
3336
3260
|
(f) => !f.name
|
|
3337
3261
|
)?.operations;
|
|
3338
|
-
return
|
|
3262
|
+
return T && T.length > 0 && b.push(
|
|
3339
3263
|
pt({
|
|
3340
3264
|
label: b.length === 0 ? "Endpoints" : "Other endpoints",
|
|
3341
|
-
path:
|
|
3342
|
-
operations:
|
|
3265
|
+
path: R(t, i, _e),
|
|
3266
|
+
operations: T,
|
|
3343
3267
|
collapsed: !e.options?.expandAllTags
|
|
3344
3268
|
})
|
|
3345
3269
|
), h.schema.components?.schemas?.length && b.push({
|
|
3346
3270
|
type: "link",
|
|
3347
3271
|
label: "Schemas",
|
|
3348
|
-
to:
|
|
3272
|
+
to: R(t, i, "~schemas")
|
|
3349
3273
|
}), b;
|
|
3350
3274
|
} catch {
|
|
3351
3275
|
return [];
|
|
3352
3276
|
}
|
|
3353
3277
|
},
|
|
3354
|
-
getRoutes: () =>
|
|
3278
|
+
getRoutes: () => da({ basePath: t, config: e, client: s })
|
|
3355
3279
|
};
|
|
3356
3280
|
};
|
|
3357
3281
|
export {
|
|
3358
|
-
|
|
3282
|
+
z as C,
|
|
3359
3283
|
_a as G,
|
|
3360
|
-
|
|
3284
|
+
_s as L,
|
|
3361
3285
|
Ua as O,
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3286
|
+
ra as P,
|
|
3287
|
+
Ds as Q,
|
|
3288
|
+
It as S,
|
|
3365
3289
|
x as T,
|
|
3366
3290
|
_e as U,
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3291
|
+
lr as a,
|
|
3292
|
+
Ft as b,
|
|
3293
|
+
F as c,
|
|
3294
|
+
Xt as d,
|
|
3295
|
+
wr as e,
|
|
3296
|
+
Mt as f,
|
|
3297
|
+
yr as g,
|
|
3298
|
+
Br as h,
|
|
3299
|
+
ir as i,
|
|
3376
3300
|
lt as j,
|
|
3377
3301
|
Va as k,
|
|
3378
|
-
|
|
3302
|
+
Us as l,
|
|
3379
3303
|
Fe as m,
|
|
3380
3304
|
kt as n,
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3305
|
+
$s as o,
|
|
3306
|
+
or as p,
|
|
3307
|
+
je as q,
|
|
3308
|
+
Es as r,
|
|
3309
|
+
P as s,
|
|
3386
3310
|
Ba as t,
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3311
|
+
oa as u,
|
|
3312
|
+
Bs as v,
|
|
3313
|
+
Fs as w,
|
|
3390
3314
|
Lt as x,
|
|
3391
|
-
|
|
3315
|
+
Zt as y,
|
|
3392
3316
|
Ma as z
|
|
3393
3317
|
};
|
|
3394
|
-
//# sourceMappingURL=index-
|
|
3318
|
+
//# sourceMappingURL=index-Bb9AsFlk.js.map
|