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