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