zudoku 0.57.0 → 0.58.0
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/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/entry.client.js +5 -4
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +2 -2
- 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.js.map +1 -1
- package/dist/app/standalone.js +4 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +2 -1
- 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/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 +1 -1
- package/dist/config/validators/BuildSchema.js +3 -3
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7 -1
- package/dist/config/validators/InputNavigationSchema.js +4 -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 +2 -2
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.js +1 -1
- 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/validate.d.ts +1 -1
- package/dist/config/validators/validate.js +3 -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 +2 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- 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/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/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.js +2 -1
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Header.js +1 -3
- 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/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/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/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.js +1 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +6 -1
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +2 -2
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/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 +1 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -1
- package/dist/lib/core/ZudokuContext.js +1 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- 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 +2 -1
- 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-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +5 -6
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- 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/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -3
- 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/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 +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +8 -4
- 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 +6 -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 +3 -1
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- 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 +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +4 -2
- package/dist/lib/plugins/openapi/Sidecar.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.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +0 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- 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 +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +1 -1
- 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 +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- 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/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/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/LogicalGroup/LogicalGroup.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- 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 +2 -5
- package/dist/lib/shiki.js +3 -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/Carousel.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- 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 +1 -1
- package/dist/lib/ui/Dialog.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/ToggleGroup.d.ts +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +4 -2
- 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 +2 -2
- package/dist/lib/util/pastellize.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 +6 -6
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +1 -2
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +1 -1
- 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/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/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 +4 -4
- 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-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.js +2 -2
- 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-mdx.d.ts +1 -1
- package/dist/vite/plugin-mdx.js +9 -25
- 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 +34 -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 +2 -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 +1 -1
- 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 +4 -4
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.js +3 -3
- 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.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{CodeBlock-yJjjRwj-.js → CodeBlock-CX_J17Hf.js} +10 -10
- package/lib/CodeBlock-CX_J17Hf.js.map +1 -0
- package/lib/{Command-CDn17s8X.js → Command-CUSlH0gJ.js} +21 -27
- package/lib/Command-CUSlH0gJ.js.map +1 -0
- package/lib/{Dialog-BrIjMmUK.js → Dialog-BmgXWOaz.js} +2 -2
- package/lib/Dialog-BmgXWOaz.js.map +1 -0
- package/lib/{MdxPage-BmOQ5m5g.js → MdxPage-Dae--mnh.js} +12 -12
- package/lib/MdxPage-Dae--mnh.js.map +1 -0
- package/lib/{OAuthErrorPage-Jv3r8wnL.js → OAuthErrorPage-C2pwoHzm.js} +6 -6
- package/lib/OAuthErrorPage-C2pwoHzm.js.map +1 -0
- package/lib/{OasProvider-CA_lpILt.js → OasProvider-qKBA2fuv.js} +3 -2
- package/lib/OasProvider-qKBA2fuv.js.map +1 -0
- package/lib/{OperationList-C-TObVw6.js → OperationList-sDq65nbj.js} +302 -306
- package/lib/OperationList-sDq65nbj.js.map +1 -0
- package/lib/{Pagination-CBiRGddW.js → Pagination-CmDrHzPg.js} +2 -2
- package/lib/{Pagination-CBiRGddW.js.map → Pagination-CmDrHzPg.js.map} +1 -1
- package/lib/{RouteGuard-JLH6tCY8.js → RouteGuard-BIksrt_C.js} +4 -4
- package/lib/{RouteGuard-JLH6tCY8.js.map → RouteGuard-BIksrt_C.js.map} +1 -1
- package/lib/{RouterError-DcVonMP1.js → RouterError-BYHrbLtD.js} +2 -2
- package/lib/{RouterError-DcVonMP1.js.map → RouterError-BYHrbLtD.js.map} +1 -1
- package/lib/{SchemaList-BeYWvBC7.js → SchemaList-DdwSRBpd.js} +7 -7
- package/lib/{SchemaList-BeYWvBC7.js.map → SchemaList-DdwSRBpd.js.map} +1 -1
- package/lib/{SchemaView-CRcShewo.js → SchemaView-CA_Q_bvL.js} +65 -62
- package/lib/SchemaView-CA_Q_bvL.js.map +1 -0
- package/lib/{Select-C3efYI1n.js → Select-DWh0wSay.js} +3 -3
- package/lib/{Select-C3efYI1n.js.map → Select-DWh0wSay.js.map} +1 -1
- package/lib/{SignUp-CxBGHgba.js → SignUp-u6c0hFsC.js} +4 -4
- package/lib/SignUp-u6c0hFsC.js.map +1 -0
- package/lib/{Slot-DOtTvoyj.js → Slot-BbdqiRXo.js} +267 -239
- package/lib/{Slot-DOtTvoyj.js.map → Slot-BbdqiRXo.js.map} +1 -1
- package/lib/{SyntaxHighlight-GR0eix_L.js → SyntaxHighlight-CvzJ7DNa.js} +6 -9
- package/lib/{SyntaxHighlight-GR0eix_L.js.map → SyntaxHighlight-CvzJ7DNa.js.map} +1 -1
- package/lib/{Toc-BlcGIkXc.js → Toc-BAa-kpqN.js} +2 -2
- package/lib/{Toc-BlcGIkXc.js.map → Toc-BAa-kpqN.js.map} +1 -1
- package/lib/{ZudokuContext-BuJD7yIX.js → ZudokuContext-BR-lnR7O.js} +16 -17
- package/lib/{ZudokuContext-BuJD7yIX.js.map → ZudokuContext-BR-lnR7O.js.map} +1 -1
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -1
- package/lib/{circular-CGTcsqA3.js → circular-vrOlHc7z.js} +2 -2
- package/lib/{circular-CGTcsqA3.js.map → circular-vrOlHc7z.js.map} +1 -1
- package/lib/cn-dYga0KKN.js.map +1 -1
- package/lib/{createServer-DjgpuLne.js → createServer-BFra0x-X.js} +12 -27
- package/lib/createServer-BFra0x-X.js.map +1 -0
- package/lib/{errors-CrI3s7mR.js → errors-B6u81sEb.js} +2 -2
- package/lib/errors-B6u81sEb.js.map +1 -0
- package/lib/{hook-bv3iuX7X.js → hook-B4Q30zMI.js} +2 -2
- package/lib/{hook-bv3iuX7X.js.map → hook-B4Q30zMI.js.map} +1 -1
- package/lib/{index-HarEI51d.js → index-CQGi1b3U.js} +2 -2
- package/lib/{index-HarEI51d.js.map → index-CQGi1b3U.js.map} +1 -1
- package/lib/{index-CvTWnHZF.js → index-D1QlkVH3.js} +55 -52
- package/lib/index-D1QlkVH3.js.map +1 -0
- package/lib/{index-DzO-Qh6S.js → index-z-rQiwfg.js} +143 -146
- package/lib/index-z-rQiwfg.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js.map +1 -1
- package/lib/{mutation-Dy_5up8v.js → mutation-CiMUdKRU.js} +2 -2
- package/lib/{mutation-Dy_5up8v.js.map → mutation-CiMUdKRU.js.map} +1 -1
- package/lib/ui/Breadcrumb.js +22 -21
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +20 -26
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/Pagination.js +28 -29
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/zudoku.__internal.js +824 -815
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +5 -5
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +5 -5
- 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 +4 -4
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +40 -40
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +6 -6
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +7 -22
- package/src/app/ZuploBuildConfig.ts +1 -1
- package/src/app/entry.client.tsx +6 -5
- package/src/app/entry.server.tsx +3 -3
- package/src/app/env.ts +6 -6
- package/src/app/main.tsx +2 -2
- package/src/app/standalone.tsx +7 -2
- package/src/lib/MissingIcon.tsx +1 -1
- 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/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 +2 -1
- package/src/lib/components/Header.tsx +2 -3
- package/src/lib/components/Heading.tsx +2 -3
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/Markdown.tsx +5 -2
- 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 +1 -1
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +1 -1
- package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
- package/src/lib/components/navigation/NavigationItem.tsx +2 -2
- 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 +5 -6
- package/src/lib/core/ZudokuContext.ts +2 -1
- 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 +2 -1
- 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-keys/CreateApiKey.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +5 -6
- package/src/lib/plugins/api-keys/index.tsx +8 -8
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +5 -5
- 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/OasProvider.tsx +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +5 -4
- package/src/lib/plugins/openapi/OperationListItem.tsx +18 -20
- package/src/lib/plugins/openapi/ParamInfos.tsx +2 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -3
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -3
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
- 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 +0 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +0 -1
- package/src/lib/plugins/openapi/graphql/graphql.ts +0 -1
- package/src/lib/plugins/openapi/index.tsx +5 -4
- package/src/lib/plugins/openapi/interfaces.ts +5 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +2 -2
- 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 +2 -2
- 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/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/LogicalGroup.tsx +1 -1
- 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 +6 -6
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Carousel.tsx +1 -0
- package/src/lib/ui/CodeBlock.tsx +3 -1
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +1 -2
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Pagination.tsx +1 -2
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +9 -2
- 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 +2 -2
- 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/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/CodeBlock-yJjjRwj-.js.map +0 -1
- package/lib/Command-CDn17s8X.js.map +0 -1
- package/lib/Dialog-BrIjMmUK.js.map +0 -1
- package/lib/MdxPage-BmOQ5m5g.js.map +0 -1
- package/lib/OAuthErrorPage-Jv3r8wnL.js.map +0 -1
- package/lib/OasProvider-CA_lpILt.js.map +0 -1
- package/lib/OperationList-C-TObVw6.js.map +0 -1
- package/lib/SchemaView-CRcShewo.js.map +0 -1
- package/lib/SignUp-CxBGHgba.js.map +0 -1
- package/lib/createServer-DjgpuLne.js.map +0 -1
- package/lib/errors-CrI3s7mR.js.map +0 -1
- package/lib/index-CvTWnHZF.js.map +0 -1
- package/lib/index-DzO-Qh6S.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { j as b } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { b as gr, e as Ia, I as Ua } from "./ZudokuContext-
|
|
2
|
+
import { b as gr, e as Ia, I as Ua } from "./ZudokuContext-BR-lnR7O.js";
|
|
3
3
|
import { H as La } from "./index.esm-BnYHxCYC.js";
|
|
4
4
|
import { ChevronsUpDownIcon as Zn, CheckIcon as Fa, CopyIcon as _a, MinusIcon as Ba, PlusIcon as Ha, UnfoldVerticalIcon as Ma, FoldVerticalIcon as za, ChevronsDownUpIcon as Wa } from "lucide-react";
|
|
5
5
|
import { a_ as Ja, aU as Va, aP as Ga } from "./chunk-QMGIS6GS-DqecZ6nq.js";
|
|
6
|
-
import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Da, h as Qa, U as Ka } from "./index-
|
|
7
|
-
import { S as na, c as aa, d as oa, e as ia, g as sa } from "./Select-
|
|
6
|
+
import { u as et, a as Ke, g as Me, e as vr, f as ea, C as ta, c as ra, b as dr, P as Da, h as Qa, U as Ka } from "./index-D1QlkVH3.js";
|
|
7
|
+
import { S as na, c as aa, d as oa, e as ia, g as sa } from "./Select-DWh0wSay.js";
|
|
8
8
|
import { C as Ya } from "./CategoryHeading-DCpZu3yG.js";
|
|
9
|
-
import { I as Xa, S as la, M as _e, H as Fe } from "./Slot-
|
|
10
|
-
import { P as Za } from "./Pagination-
|
|
9
|
+
import { I as Xa, S as la, M as _e, H as Fe } from "./Slot-BbdqiRXo.js";
|
|
10
|
+
import { P as Za } from "./Pagination-CmDrHzPg.js";
|
|
11
11
|
import { useTransition as ca, useState as ge, useRef as ua, useEffect as br, useLayoutEffect as eo, useMemo as fa } from "react";
|
|
12
12
|
import { Button as pa } from "./ui/Button.js";
|
|
13
13
|
import { c as pe } from "./cn-dYga0KKN.js";
|
|
14
14
|
import { VisuallyHidden as hr } from "@radix-ui/react-visually-hidden";
|
|
15
15
|
import { c as to } from "./index-DI5SPFK9.js";
|
|
16
|
-
import { i as ro, P as no, E as Ur, a as ao,
|
|
17
|
-
import
|
|
16
|
+
import { S as xr, i as ro, P as no, E as Ur, a as ao, b as oo, g as io } from "./SchemaView-CA_Q_bvL.js";
|
|
17
|
+
import * as je from "@radix-ui/react-tabs";
|
|
18
|
+
import { M as so, c as lo } from "./index-z-rQiwfg.js";
|
|
19
|
+
import { Card as co } from "./ui/Card.js";
|
|
18
20
|
import * as dt from "@radix-ui/react-collapsible";
|
|
19
|
-
import { useZudoku as
|
|
20
|
-
import { u as
|
|
21
|
-
import { S as da } from "./SyntaxHighlight-
|
|
21
|
+
import { useZudoku as uo } from "./zudoku.hooks.js";
|
|
22
|
+
import { u as fo } from "./hook-B4Q30zMI.js";
|
|
23
|
+
import { S as da } from "./SyntaxHighlight-CvzJ7DNa.js";
|
|
22
24
|
import { B as Lr } from "./Button-B3o-2Xdf.js";
|
|
23
|
-
import { c as uo, M as fo } from "./index-DzO-Qh6S.js";
|
|
24
|
-
import * as je from "@radix-ui/react-tabs";
|
|
25
25
|
import { g as po, c as Ye, a as ho } from "./invariant-Bm-FVUQE.js";
|
|
26
26
|
function yo(e, n) {
|
|
27
27
|
return n;
|
|
@@ -86,10 +86,8 @@ const Xe = ({
|
|
|
86
86
|
}, go = () => {
|
|
87
87
|
const { input: e, type: n } = et(), t = Ke(mo, { input: e, type: n }), a = gr(t), [, c] = ca(), { selectedServer: s, setSelectedServer: r } = vr(
|
|
88
88
|
a.data.schema.servers
|
|
89
|
-
), { servers: o } = a.data.schema;
|
|
90
|
-
|
|
91
|
-
const i = o.at(0);
|
|
92
|
-
return o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
89
|
+
), { servers: o } = a.data.schema, i = o.at(0);
|
|
90
|
+
return i ? o.length === 1 ? /* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
93
91
|
/* @__PURE__ */ b.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
94
92
|
/* @__PURE__ */ b.jsx(Xa, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
|
|
95
93
|
/* @__PURE__ */ b.jsx(Fr, { url: i.url })
|
|
@@ -109,7 +107,7 @@ const Xe = ({
|
|
|
109
107
|
}
|
|
110
108
|
),
|
|
111
109
|
/* @__PURE__ */ b.jsx(Fr, { url: s })
|
|
112
|
-
] });
|
|
110
|
+
] }) : null;
|
|
113
111
|
}, vo = to(
|
|
114
112
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
115
113
|
{
|
|
@@ -130,14 +128,73 @@ const Xe = ({
|
|
|
130
128
|
function _r({ className: e, variant: n, ...t }) {
|
|
131
129
|
return /* @__PURE__ */ b.jsx("div", { className: pe(vo({ variant: n }), e), ...t });
|
|
132
130
|
}
|
|
133
|
-
const Br = (e, n) => e ? n(e) : void 0, bo =
|
|
131
|
+
const Br = (e, n) => e ? n(e) : void 0, bo = pe, xo = ({
|
|
132
|
+
responses: e,
|
|
133
|
+
selectedResponse: n,
|
|
134
|
+
onSelectResponse: t
|
|
135
|
+
}) => {
|
|
136
|
+
const [a, c] = ge(
|
|
137
|
+
e[0]?.content?.[0]?.mediaType ?? ""
|
|
138
|
+
), s = e.find((o) => o.statusCode === n) ?? e[0], r = /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col bg-muted text-muted-foreground", children: [
|
|
139
|
+
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-row items-center gap-2 justify-between px-4 py-2", children: [
|
|
140
|
+
/* @__PURE__ */ b.jsx(je.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((o) => /* @__PURE__ */ b.jsx(
|
|
141
|
+
je.Trigger,
|
|
142
|
+
{
|
|
143
|
+
value: o.statusCode,
|
|
144
|
+
className: bo(
|
|
145
|
+
"py-1 -mx-2 px-2 rounded-md",
|
|
146
|
+
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
147
|
+
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
148
|
+
),
|
|
149
|
+
children: o.statusCode
|
|
150
|
+
},
|
|
151
|
+
o.statusCode
|
|
152
|
+
)) }),
|
|
153
|
+
s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
|
|
154
|
+
na,
|
|
155
|
+
{
|
|
156
|
+
value: a,
|
|
157
|
+
onValueChange: c,
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ b.jsx(aa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select a type" }) }),
|
|
160
|
+
/* @__PURE__ */ b.jsx(ia, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(sa, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
] }),
|
|
165
|
+
s?.description && /* @__PURE__ */ b.jsx(
|
|
166
|
+
so,
|
|
167
|
+
{
|
|
168
|
+
className: "text-sm border-t px-4 py-2 text-muted-foreground",
|
|
169
|
+
content: s.description
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
] });
|
|
173
|
+
return /* @__PURE__ */ b.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ b.jsx(
|
|
174
|
+
je.Root,
|
|
175
|
+
{
|
|
176
|
+
value: n,
|
|
177
|
+
onValueChange: (o) => {
|
|
178
|
+
t?.(o);
|
|
179
|
+
const i = e.find((l) => l.statusCode === o);
|
|
180
|
+
c(i?.content?.[0]?.mediaType ?? "");
|
|
181
|
+
},
|
|
182
|
+
children: e.map((o) => {
|
|
183
|
+
const i = o.content?.find(
|
|
184
|
+
(l) => l.mediaType === a
|
|
185
|
+
);
|
|
186
|
+
return /* @__PURE__ */ b.jsx(je.Content, { value: o.statusCode, children: /* @__PURE__ */ b.jsx(xr, { schema: i?.schema, cardHeader: r }) }, o.statusCode);
|
|
187
|
+
})
|
|
188
|
+
}
|
|
189
|
+
) });
|
|
190
|
+
}, $o = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
134
191
|
type: "string"
|
|
135
|
-
},
|
|
192
|
+
}, wo = ({
|
|
136
193
|
parameter: e,
|
|
137
194
|
group: n,
|
|
138
195
|
id: t
|
|
139
196
|
}) => {
|
|
140
|
-
const a =
|
|
197
|
+
const a = $o(e), [c, s] = ge(!1);
|
|
141
198
|
return /* @__PURE__ */ b.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
|
|
142
199
|
/* @__PURE__ */ b.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
143
200
|
/* @__PURE__ */ b.jsx(la, { asChild: !0, children: /* @__PURE__ */ b.jsx("code", { children: n === "path" ? /* @__PURE__ */ b.jsx(
|
|
@@ -198,7 +255,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
198
255
|
}
|
|
199
256
|
)
|
|
200
257
|
] });
|
|
201
|
-
},
|
|
258
|
+
}, jo = ({
|
|
202
259
|
summary: e,
|
|
203
260
|
group: n,
|
|
204
261
|
parameters: t,
|
|
@@ -211,8 +268,8 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
211
268
|
] }),
|
|
212
269
|
n === "header" ? "Headers" : `${n} Parameters`
|
|
213
270
|
] }),
|
|
214
|
-
/* @__PURE__ */ b.jsx(
|
|
215
|
-
|
|
271
|
+
/* @__PURE__ */ b.jsx(co, { children: /* @__PURE__ */ b.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((c, s) => c.required === s.required ? 0 : c.required ? -1 : 1).map((c) => /* @__PURE__ */ b.jsx(
|
|
272
|
+
wo,
|
|
216
273
|
{
|
|
217
274
|
parameter: c,
|
|
218
275
|
id: a,
|
|
@@ -220,7 +277,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
220
277
|
},
|
|
221
278
|
`${c.name}-${c.in}`
|
|
222
279
|
)) }) })
|
|
223
|
-
] }),
|
|
280
|
+
] }), So = ({
|
|
224
281
|
rootMargin: e = "0px",
|
|
225
282
|
threshold: n,
|
|
226
283
|
root: t
|
|
@@ -236,12 +293,12 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
236
293
|
if (o)
|
|
237
294
|
return r.observe(o), () => r.unobserve(o);
|
|
238
295
|
}, [t, e, n]), [s, a];
|
|
239
|
-
},
|
|
296
|
+
}, Oo = typeof window < "u" ? eo : br, ha = ({
|
|
240
297
|
children: e,
|
|
241
298
|
maxHeight: n = 250
|
|
242
299
|
}) => {
|
|
243
300
|
const t = ua(null), [a, c] = ge(!1), [s, r] = ge(!1);
|
|
244
|
-
return
|
|
301
|
+
return Oo(() => {
|
|
245
302
|
const o = t.current;
|
|
246
303
|
if (!o) return;
|
|
247
304
|
c(o.scrollHeight > n);
|
|
@@ -298,24 +355,24 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
298
355
|
]
|
|
299
356
|
}
|
|
300
357
|
);
|
|
301
|
-
},
|
|
358
|
+
}, To = ({
|
|
302
359
|
server: e,
|
|
303
360
|
servers: n,
|
|
304
361
|
operation: t,
|
|
305
362
|
examples: a
|
|
306
363
|
}) => {
|
|
307
|
-
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } =
|
|
364
|
+
const { isAuthEnabled: c, login: s, signup: r, isPending: o, isAuthenticated: i } = lo(), l = t.parameters?.filter((f) => f.in === "header").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
|
|
308
365
|
name: f.name,
|
|
309
366
|
defaultValue: f.schema?.default ?? f.examples?.find((h) => h.value)?.value ?? "",
|
|
310
367
|
defaultActive: f.required ?? !1,
|
|
311
368
|
isRequired: f.required ?? !1,
|
|
312
|
-
enum: f.schema?.type
|
|
369
|
+
enum: f.schema?.type === "array" ? f.schema?.items?.enum : f.schema?.enum,
|
|
313
370
|
type: f.schema?.type ?? "string"
|
|
314
371
|
})), d = t.parameters?.filter((f) => f.in === "query").sort((f, h) => f.required && !h.required ? -1 : 1).map((f) => ({
|
|
315
372
|
name: f.name,
|
|
316
373
|
defaultActive: f.required ?? !1,
|
|
317
374
|
isRequired: f.required ?? !1,
|
|
318
|
-
enum: f.schema?.type
|
|
375
|
+
enum: f.schema?.type === "array" ? f.schema?.items?.enum : f.schema?.enum,
|
|
319
376
|
type: f.schema?.type ?? "string",
|
|
320
377
|
defaultValue: f.schema?.default
|
|
321
378
|
})), y = t.parameters?.filter((f) => f.in === "path").map((f) => ({
|
|
@@ -416,11 +473,10 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
416
473
|
return null;
|
|
417
474
|
case "object":
|
|
418
475
|
return {};
|
|
419
|
-
case void 0:
|
|
420
476
|
default:
|
|
421
477
|
return {};
|
|
422
478
|
}
|
|
423
|
-
},
|
|
479
|
+
}, Po = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Co = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
|
|
424
480
|
"text/html": "html",
|
|
425
481
|
"application/x-ndjson": "json",
|
|
426
482
|
"application/json": "json",
|
|
@@ -443,7 +499,7 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
443
499
|
br(() => {
|
|
444
500
|
d && t?.(d);
|
|
445
501
|
}, [d, t]);
|
|
446
|
-
const y =
|
|
502
|
+
const y = Po(d), f = Co(o?.mediaType);
|
|
447
503
|
return /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
448
504
|
/* @__PURE__ */ b.jsxs(ya, { className: "p-0", children: [
|
|
449
505
|
l?.externalValue ? /* @__PURE__ */ b.jsx("div", { className: "p-2", children: /* @__PURE__ */ b.jsx(
|
|
@@ -497,13 +553,13 @@ const Br = (e, n) => e ? n(e) : void 0, bo = (e) => e.schema != null && typeof e
|
|
|
497
553
|
] })
|
|
498
554
|
] })
|
|
499
555
|
] });
|
|
500
|
-
},
|
|
556
|
+
}, qo = ({
|
|
501
557
|
content: e,
|
|
502
558
|
onExampleChange: n
|
|
503
559
|
}) => e.length === 0 ? null : /* @__PURE__ */ b.jsxs($r, { children: [
|
|
504
560
|
/* @__PURE__ */ b.jsx(wr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ b.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
505
561
|
/* @__PURE__ */ b.jsx(ga, { content: e, onExampleChange: n })
|
|
506
|
-
] }),
|
|
562
|
+
] }), Eo = ({
|
|
507
563
|
responses: e,
|
|
508
564
|
selectedResponse: n,
|
|
509
565
|
onSelectResponse: t
|
|
@@ -560,27 +616,27 @@ var Hr = (e, n) => {
|
|
|
560
616
|
}, this.indentationCharacter = e || Mr, this.lineJoin = n ?? zr;
|
|
561
617
|
}
|
|
562
618
|
}, ht, Wr;
|
|
563
|
-
function
|
|
619
|
+
function Ro() {
|
|
564
620
|
return Wr || (Wr = 1, ht = function(e) {
|
|
565
621
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
566
622
|
}), ht;
|
|
567
623
|
}
|
|
568
624
|
var yt, Jr;
|
|
569
|
-
function
|
|
625
|
+
function ko() {
|
|
570
626
|
return Jr || (Jr = 1, yt = function(e) {
|
|
571
627
|
var n = typeof e;
|
|
572
628
|
return e !== null && (n === "object" || n === "function");
|
|
573
629
|
}), yt;
|
|
574
630
|
}
|
|
575
631
|
var De = {}, Vr;
|
|
576
|
-
function
|
|
632
|
+
function No() {
|
|
577
633
|
return Vr || (Vr = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), De;
|
|
578
634
|
}
|
|
579
635
|
var mt, Gr;
|
|
580
|
-
function
|
|
636
|
+
function Ao() {
|
|
581
637
|
if (Gr) return mt;
|
|
582
638
|
Gr = 1;
|
|
583
|
-
const e =
|
|
639
|
+
const e = Ro(), n = ko(), t = No().default;
|
|
584
640
|
return mt = (a, c, s) => {
|
|
585
641
|
const r = [];
|
|
586
642
|
return function o(i, l, d) {
|
|
@@ -640,14 +696,14 @@ function ko() {
|
|
|
640
696
|
}(a, c, s);
|
|
641
697
|
}, mt;
|
|
642
698
|
}
|
|
643
|
-
var
|
|
644
|
-
const ue = /* @__PURE__ */ po(
|
|
699
|
+
var Io = Ao();
|
|
700
|
+
const ue = /* @__PURE__ */ po(Io);
|
|
645
701
|
function Be(e, n = {}) {
|
|
646
702
|
const { delimiter: t = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
647
703
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
648
704
|
` ? c ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? c ? `${a}r` : r : r === a ? a + a : r === t ? a + t : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
|
|
649
705
|
}
|
|
650
|
-
var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' }),
|
|
706
|
+
var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' }), Uo = {
|
|
651
707
|
info: {
|
|
652
708
|
key: "libcurl",
|
|
653
709
|
title: "Libcurl",
|
|
@@ -663,7 +719,7 @@ var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' })
|
|
|
663
719
|
s(`headers = curl_slist_append(headers, "${l}: ${le(t[l])}");`);
|
|
664
720
|
}), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (r(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), r(), s("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
665
721
|
}
|
|
666
|
-
},
|
|
722
|
+
}, Lo = {
|
|
667
723
|
info: {
|
|
668
724
|
key: "c",
|
|
669
725
|
title: "C",
|
|
@@ -671,19 +727,19 @@ var He = (e) => Be(e, { delimiter: "'" }), le = (e) => Be(e, { delimiter: '"' })
|
|
|
671
727
|
cli: "c"
|
|
672
728
|
},
|
|
673
729
|
clientsById: {
|
|
674
|
-
libcurl:
|
|
730
|
+
libcurl: Uo
|
|
675
731
|
}
|
|
676
732
|
}, fe = (e, n) => Object.keys(e).find((t) => t.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
|
|
677
733
|
const t = fe(e, n);
|
|
678
734
|
if (t)
|
|
679
735
|
return e[t];
|
|
680
|
-
}, tt = (e, n) => !!fe(e, n),
|
|
736
|
+
}, tt = (e, n) => !!fe(e, n), Fo = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
681
737
|
(n) => e.indexOf(n) > -1
|
|
682
738
|
), Dr = class {
|
|
683
739
|
constructor(e) {
|
|
684
740
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
685
741
|
}
|
|
686
|
-
},
|
|
742
|
+
}, _o = class {
|
|
687
743
|
constructor(e) {
|
|
688
744
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
689
745
|
}
|
|
@@ -720,7 +776,7 @@ ${t}`);
|
|
|
720
776
|
default:
|
|
721
777
|
return e.toString();
|
|
722
778
|
}
|
|
723
|
-
},
|
|
779
|
+
}, Bo = {
|
|
724
780
|
info: {
|
|
725
781
|
key: "clj_http",
|
|
726
782
|
title: "clj-http",
|
|
@@ -762,7 +818,7 @@ ${t}`);
|
|
|
762
818
|
if (t.params) {
|
|
763
819
|
l.multipart = t.params.map((y) => y.fileName && !y.value ? {
|
|
764
820
|
name: y.name,
|
|
765
|
-
content: new
|
|
821
|
+
content: new _o(y.fileName)
|
|
766
822
|
} : {
|
|
767
823
|
name: y.name,
|
|
768
824
|
content: y.value
|
|
@@ -791,16 +847,16 @@ ${t}`);
|
|
|
791
847
|
}
|
|
792
848
|
return o();
|
|
793
849
|
}
|
|
794
|
-
},
|
|
850
|
+
}, Ho = {
|
|
795
851
|
info: {
|
|
796
852
|
key: "clojure",
|
|
797
853
|
title: "Clojure",
|
|
798
854
|
default: "clj_http"
|
|
799
855
|
},
|
|
800
856
|
clientsById: {
|
|
801
|
-
clj_http:
|
|
857
|
+
clj_http: Bo
|
|
802
858
|
}
|
|
803
|
-
},
|
|
859
|
+
}, Mo = (e) => {
|
|
804
860
|
let n = ve(e, "accept-encoding");
|
|
805
861
|
if (!n)
|
|
806
862
|
return [];
|
|
@@ -817,7 +873,7 @@ ${t}`);
|
|
|
817
873
|
}
|
|
818
874
|
});
|
|
819
875
|
}), a;
|
|
820
|
-
},
|
|
876
|
+
}, zo = {
|
|
821
877
|
info: {
|
|
822
878
|
key: "httpclient",
|
|
823
879
|
title: "HttpClient",
|
|
@@ -832,7 +888,7 @@ ${t}`);
|
|
|
832
888
|
}, { push: r, join: o } = new G({ indent: s.indent });
|
|
833
889
|
r("using System.Net.Http.Headers;");
|
|
834
890
|
let i = "";
|
|
835
|
-
const l = !!e.cookie, d =
|
|
891
|
+
const l = !!e.cookie, d = Mo(e);
|
|
836
892
|
(l || d.length) && (i = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), l && r("UseCookies = false,", 1), d.length && r(`AutomaticDecompression = ${d.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${i});`), r("var request = new HttpRequestMessage"), r("{");
|
|
837
893
|
const y = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
838
894
|
t = t.toUpperCase(), t && y.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, r(`Method = ${t},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -869,10 +925,10 @@ ${t}`);
|
|
|
869
925
|
return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), o();
|
|
870
926
|
}
|
|
871
927
|
};
|
|
872
|
-
function
|
|
928
|
+
function Wo(e) {
|
|
873
929
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
874
930
|
}
|
|
875
|
-
var
|
|
931
|
+
var Jo = {
|
|
876
932
|
info: {
|
|
877
933
|
key: "restsharp",
|
|
878
934
|
title: "RestSharp",
|
|
@@ -922,11 +978,11 @@ var zo = {
|
|
|
922
978
|
if (!c.text) break;
|
|
923
979
|
r(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
|
|
924
980
|
}
|
|
925
|
-
return r(`var response = await client.${
|
|
981
|
+
return r(`var response = await client.${Wo(e)}Async(request);
|
|
926
982
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
927
983
|
`), o();
|
|
928
984
|
}
|
|
929
|
-
},
|
|
985
|
+
}, Vo = {
|
|
930
986
|
info: {
|
|
931
987
|
key: "csharp",
|
|
932
988
|
title: "C#",
|
|
@@ -934,10 +990,10 @@ var zo = {
|
|
|
934
990
|
cli: "dotnet"
|
|
935
991
|
},
|
|
936
992
|
clientsById: {
|
|
937
|
-
httpclient:
|
|
938
|
-
restsharp:
|
|
993
|
+
httpclient: zo,
|
|
994
|
+
restsharp: Jo
|
|
939
995
|
}
|
|
940
|
-
},
|
|
996
|
+
}, Go = {
|
|
941
997
|
info: {
|
|
942
998
|
key: "native",
|
|
943
999
|
title: "NewRequest",
|
|
@@ -955,7 +1011,7 @@ var zo = {
|
|
|
955
1011
|
r(`req.Header.Add("${v}", "${le(t[v])}")`, h);
|
|
956
1012
|
}), s()), r(`res, ${f} := ${m}.Do(req)`, h), x(), d && (s(), r("defer res.Body.Close()", h), r(`body, ${f} := io.ReadAll(res.Body)`, h), x()), s(), d && r("fmt.Println(string(body))", h), i && (s(), r("}")), o();
|
|
957
1013
|
}
|
|
958
|
-
},
|
|
1014
|
+
}, Do = {
|
|
959
1015
|
info: {
|
|
960
1016
|
key: "go",
|
|
961
1017
|
title: "Go",
|
|
@@ -963,10 +1019,10 @@ var zo = {
|
|
|
963
1019
|
cli: "go"
|
|
964
1020
|
},
|
|
965
1021
|
clientsById: {
|
|
966
|
-
native:
|
|
1022
|
+
native: Go
|
|
967
1023
|
}
|
|
968
1024
|
}, Kr = `\r
|
|
969
|
-
`,
|
|
1025
|
+
`, Qo = {
|
|
970
1026
|
info: {
|
|
971
1027
|
key: "http1.1",
|
|
972
1028
|
title: "HTTP/1.1",
|
|
@@ -994,16 +1050,16 @@ var zo = {
|
|
|
994
1050
|
const h = d(), x = s.text || "";
|
|
995
1051
|
return `${h}${Kr}${x}`;
|
|
996
1052
|
}
|
|
997
|
-
},
|
|
1053
|
+
}, Ko = {
|
|
998
1054
|
info: {
|
|
999
1055
|
key: "http",
|
|
1000
1056
|
title: "HTTP",
|
|
1001
1057
|
default: "http1.1"
|
|
1002
1058
|
},
|
|
1003
1059
|
clientsById: {
|
|
1004
|
-
"http1.1":
|
|
1060
|
+
"http1.1": Qo
|
|
1005
1061
|
}
|
|
1006
|
-
},
|
|
1062
|
+
}, Yo = {
|
|
1007
1063
|
info: {
|
|
1008
1064
|
key: "asynchttp",
|
|
1009
1065
|
title: "AsyncHttp",
|
|
@@ -1020,7 +1076,7 @@ var zo = {
|
|
|
1020
1076
|
o(`.setHeader("${l}", "${le(n[l])}")`, 1);
|
|
1021
1077
|
}), t.text && o(`.setBody(${JSON.stringify(t.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), i();
|
|
1022
1078
|
}
|
|
1023
|
-
},
|
|
1079
|
+
}, Xo = {
|
|
1024
1080
|
info: {
|
|
1025
1081
|
key: "nethttp",
|
|
1026
1082
|
title: "java.net.http",
|
|
@@ -1042,7 +1098,7 @@ var zo = {
|
|
|
1042
1098
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
1043
1099
|
), r("System.out.println(response.body());"), o();
|
|
1044
1100
|
}
|
|
1045
|
-
},
|
|
1101
|
+
}, Zo = {
|
|
1046
1102
|
info: {
|
|
1047
1103
|
key: "okhttp",
|
|
1048
1104
|
title: "OkHttp",
|
|
@@ -1059,7 +1115,7 @@ var zo = {
|
|
|
1059
1115
|
r(`.addHeader("${y}", "${le(a[y])}")`, 1);
|
|
1060
1116
|
}), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), i();
|
|
1061
1117
|
}
|
|
1062
|
-
},
|
|
1118
|
+
}, ei = {
|
|
1063
1119
|
info: {
|
|
1064
1120
|
key: "unirest",
|
|
1065
1121
|
title: "Unirest",
|
|
@@ -1076,19 +1132,19 @@ var zo = {
|
|
|
1076
1132
|
o(`.header("${l}", "${le(n[l])}")`, 1);
|
|
1077
1133
|
}), t.text && o(`.body(${JSON.stringify(t.text)})`, 1), o(".asString();", 1), r();
|
|
1078
1134
|
}
|
|
1079
|
-
},
|
|
1135
|
+
}, ti = {
|
|
1080
1136
|
info: {
|
|
1081
1137
|
key: "java",
|
|
1082
1138
|
title: "Java",
|
|
1083
1139
|
default: "unirest"
|
|
1084
1140
|
},
|
|
1085
1141
|
clientsById: {
|
|
1086
|
-
asynchttp:
|
|
1087
|
-
nethttp:
|
|
1088
|
-
okhttp:
|
|
1089
|
-
unirest:
|
|
1142
|
+
asynchttp: Yo,
|
|
1143
|
+
nethttp: Xo,
|
|
1144
|
+
okhttp: Zo,
|
|
1145
|
+
unirest: ei
|
|
1090
1146
|
}
|
|
1091
|
-
},
|
|
1147
|
+
}, ri = {
|
|
1092
1148
|
info: {
|
|
1093
1149
|
key: "axios",
|
|
1094
1150
|
title: "Axios",
|
|
@@ -1132,7 +1188,7 @@ var zo = {
|
|
|
1132
1188
|
}).replace('"[form]"', "form");
|
|
1133
1189
|
return i(`const options = ${f};`), o(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), l();
|
|
1134
1190
|
}
|
|
1135
|
-
},
|
|
1191
|
+
}, ni = {
|
|
1136
1192
|
info: {
|
|
1137
1193
|
key: "fetch",
|
|
1138
1194
|
title: "fetch",
|
|
@@ -1185,7 +1241,7 @@ var zo = {
|
|
|
1185
1241
|
})};`
|
|
1186
1242
|
), r(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), r()), i(`fetch('${a}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), o();
|
|
1187
1243
|
}
|
|
1188
|
-
},
|
|
1244
|
+
}, ai = {
|
|
1189
1245
|
info: {
|
|
1190
1246
|
key: "jquery",
|
|
1191
1247
|
title: "jQuery",
|
|
@@ -1228,7 +1284,7 @@ var zo = {
|
|
|
1228
1284
|
const d = ue(l, { indent: s.indent }).replace("'[form]'", "form");
|
|
1229
1285
|
return o(`const settings = ${d};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), i();
|
|
1230
1286
|
}
|
|
1231
|
-
},
|
|
1287
|
+
}, oi = {
|
|
1232
1288
|
info: {
|
|
1233
1289
|
key: "xhr",
|
|
1234
1290
|
title: "XMLHttpRequest",
|
|
@@ -1268,19 +1324,19 @@ var zo = {
|
|
|
1268
1324
|
o(`xhr.setRequestHeader('${l}', '${He(n[l])}');`);
|
|
1269
1325
|
}), r(), o("xhr.send(data);"), i();
|
|
1270
1326
|
}
|
|
1271
|
-
},
|
|
1327
|
+
}, ii = {
|
|
1272
1328
|
info: {
|
|
1273
1329
|
key: "javascript",
|
|
1274
1330
|
title: "JavaScript",
|
|
1275
1331
|
default: "xhr"
|
|
1276
1332
|
},
|
|
1277
1333
|
clientsById: {
|
|
1278
|
-
xhr:
|
|
1279
|
-
axios:
|
|
1280
|
-
fetch:
|
|
1281
|
-
jquery:
|
|
1334
|
+
xhr: oi,
|
|
1335
|
+
axios: ri,
|
|
1336
|
+
fetch: ni,
|
|
1337
|
+
jquery: ai
|
|
1282
1338
|
}
|
|
1283
|
-
},
|
|
1339
|
+
}, si = {
|
|
1284
1340
|
info: {
|
|
1285
1341
|
key: "native",
|
|
1286
1342
|
title: "Native JSON",
|
|
@@ -1314,16 +1370,16 @@ var zo = {
|
|
|
1314
1370
|
}
|
|
1315
1371
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, t.indent);
|
|
1316
1372
|
}
|
|
1317
|
-
},
|
|
1373
|
+
}, li = {
|
|
1318
1374
|
info: {
|
|
1319
1375
|
key: "json",
|
|
1320
1376
|
title: "JSON",
|
|
1321
1377
|
default: "native"
|
|
1322
1378
|
},
|
|
1323
1379
|
clientsById: {
|
|
1324
|
-
native:
|
|
1380
|
+
native: si
|
|
1325
1381
|
}
|
|
1326
|
-
},
|
|
1382
|
+
}, ci = {
|
|
1327
1383
|
info: {
|
|
1328
1384
|
key: "okhttp",
|
|
1329
1385
|
title: "OkHttp",
|
|
@@ -1340,16 +1396,16 @@ var zo = {
|
|
|
1340
1396
|
i(`.addHeader("${y}", "${le(a[y])}")`, 1);
|
|
1341
1397
|
}), i(".build()", 1), r(), i("val response = client.newCall(request).execute()"), o();
|
|
1342
1398
|
}
|
|
1343
|
-
},
|
|
1399
|
+
}, ui = {
|
|
1344
1400
|
info: {
|
|
1345
1401
|
key: "kotlin",
|
|
1346
1402
|
title: "Kotlin",
|
|
1347
1403
|
default: "okhttp"
|
|
1348
1404
|
},
|
|
1349
1405
|
clientsById: {
|
|
1350
|
-
okhttp:
|
|
1406
|
+
okhttp: ci
|
|
1351
1407
|
}
|
|
1352
|
-
},
|
|
1408
|
+
}, fi = {
|
|
1353
1409
|
info: {
|
|
1354
1410
|
key: "axios",
|
|
1355
1411
|
title: "Axios",
|
|
@@ -1383,7 +1439,7 @@ var zo = {
|
|
|
1383
1439
|
const y = ue(d, { indent: " ", inlineCharacterLimit: 80 });
|
|
1384
1440
|
return i(`const options = ${y};`), r(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), o();
|
|
1385
1441
|
}
|
|
1386
|
-
},
|
|
1442
|
+
}, pi = {
|
|
1387
1443
|
info: {
|
|
1388
1444
|
key: "fetch",
|
|
1389
1445
|
title: "Fetch",
|
|
@@ -1442,7 +1498,7 @@ var zo = {
|
|
|
1442
1498
|
});
|
|
1443
1499
|
return l(`const options = ${x};`), i(), o && y("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (l("options.body = formData;"), i()), l("fetch(url, options)"), l(".then(res => res.json())", 1), l(".then(json => console.log(json))", 1), l(".catch(err => console.error('error:' + err));", 1), d().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1444
1500
|
}
|
|
1445
|
-
},
|
|
1501
|
+
}, di = {
|
|
1446
1502
|
info: {
|
|
1447
1503
|
key: "native",
|
|
1448
1504
|
title: "HTTP",
|
|
@@ -1480,7 +1536,7 @@ var zo = {
|
|
|
1480
1536
|
}
|
|
1481
1537
|
return i("req.end();"), o();
|
|
1482
1538
|
}
|
|
1483
|
-
},
|
|
1539
|
+
}, hi = {
|
|
1484
1540
|
info: {
|
|
1485
1541
|
key: "request",
|
|
1486
1542
|
title: "Request",
|
|
@@ -1533,7 +1589,7 @@ var zo = {
|
|
|
1533
1589
|
l(`jar.setCookie(request.cookie('${encodeURIComponent($)}=${encodeURIComponent(u)}'), '${n}');`);
|
|
1534
1590
|
}), d(), h(($) => $.replace(/'JAR'/, "jar"))), i && f("const fs = require('fs');"), l(`const options = ${ue(x, { indent: " ", inlineCharacterLimit: 80 })};`), d(), l("request(options, function (error, response, body) {"), l("if (error) throw new Error(error);", 1), d(), l("console.log(body);", 1), l("});"), y();
|
|
1535
1591
|
}
|
|
1536
|
-
},
|
|
1592
|
+
}, yi = {
|
|
1537
1593
|
info: {
|
|
1538
1594
|
key: "unirest",
|
|
1539
1595
|
title: "Unirest",
|
|
@@ -1574,7 +1630,7 @@ var zo = {
|
|
|
1574
1630
|
}
|
|
1575
1631
|
return i && h("const fs = require('fs');"), f("req.end(function (res) {"), f("if (res.error) throw new Error(res.error);", 1), d(), f("console.log(res.body);", 1), f("});"), y();
|
|
1576
1632
|
}
|
|
1577
|
-
},
|
|
1633
|
+
}, mi = {
|
|
1578
1634
|
info: {
|
|
1579
1635
|
key: "node",
|
|
1580
1636
|
title: "Node.js",
|
|
@@ -1582,11 +1638,11 @@ var zo = {
|
|
|
1582
1638
|
cli: "node %s"
|
|
1583
1639
|
},
|
|
1584
1640
|
clientsById: {
|
|
1585
|
-
native:
|
|
1586
|
-
request:
|
|
1587
|
-
unirest:
|
|
1588
|
-
axios:
|
|
1589
|
-
fetch:
|
|
1641
|
+
native: di,
|
|
1642
|
+
request: hi,
|
|
1643
|
+
unirest: yi,
|
|
1644
|
+
axios: fi,
|
|
1645
|
+
fetch: pi
|
|
1590
1646
|
}
|
|
1591
1647
|
}, gt = (e, n, t, a) => {
|
|
1592
1648
|
const c = `${e} *${n} = `, s = mr(t, a ? c.length : void 0);
|
|
@@ -1610,7 +1666,7 @@ var zo = {
|
|
|
1610
1666
|
default:
|
|
1611
1667
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1612
1668
|
}
|
|
1613
|
-
},
|
|
1669
|
+
}, gi = {
|
|
1614
1670
|
info: {
|
|
1615
1671
|
key: "nsurlsession",
|
|
1616
1672
|
title: "NSURLSession",
|
|
@@ -1666,16 +1722,16 @@ var zo = {
|
|
|
1666
1722
|
2
|
|
1667
1723
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
|
|
1668
1724
|
}
|
|
1669
|
-
},
|
|
1725
|
+
}, vi = {
|
|
1670
1726
|
info: {
|
|
1671
1727
|
key: "objc",
|
|
1672
1728
|
title: "Objective-C",
|
|
1673
1729
|
default: "nsurlsession"
|
|
1674
1730
|
},
|
|
1675
1731
|
clientsById: {
|
|
1676
|
-
nsurlsession:
|
|
1732
|
+
nsurlsession: gi
|
|
1677
1733
|
}
|
|
1678
|
-
},
|
|
1734
|
+
}, bi = {
|
|
1679
1735
|
info: {
|
|
1680
1736
|
key: "cohttp",
|
|
1681
1737
|
title: "CoHTTP",
|
|
@@ -1701,14 +1757,14 @@ var zo = {
|
|
|
1701
1757
|
const y = d.length ? "~headers " : "", f = t.text ? "~body " : "", h = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
1702
1758
|
return o(`Client.call ${y}${f}${h} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), l();
|
|
1703
1759
|
}
|
|
1704
|
-
},
|
|
1760
|
+
}, xi = {
|
|
1705
1761
|
info: {
|
|
1706
1762
|
key: "ocaml",
|
|
1707
1763
|
title: "OCaml",
|
|
1708
1764
|
default: "cohttp"
|
|
1709
1765
|
},
|
|
1710
1766
|
clientsById: {
|
|
1711
|
-
cohttp:
|
|
1767
|
+
cohttp: bi
|
|
1712
1768
|
}
|
|
1713
1769
|
}, te = (e, n, t) => {
|
|
1714
1770
|
switch (t = t || "", n = n || "", Object.prototype.toString.call(e)) {
|
|
@@ -1769,7 +1825,7 @@ ${t}]`;
|
|
|
1769
1825
|
"UNLOCK",
|
|
1770
1826
|
"UPDATE",
|
|
1771
1827
|
"VERSION_CONTROL"
|
|
1772
|
-
],
|
|
1828
|
+
], $i = {
|
|
1773
1829
|
info: {
|
|
1774
1830
|
key: "curl",
|
|
1775
1831
|
title: "cURL",
|
|
@@ -1847,7 +1903,7 @@ ${l}` });
|
|
|
1847
1903
|
return p.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(p.join(`,
|
|
1848
1904
|
${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = curl_exec($curl);"), $("$err = curl_error($curl);"), u(), $("curl_close($curl);"), u(), $("if ($err) {"), $(y ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), $("} else {"), $("echo $response;", 1), $("}"), !f && i && (u(), $("?>")), m();
|
|
1849
1905
|
}
|
|
1850
|
-
},
|
|
1906
|
+
}, wi = {
|
|
1851
1907
|
info: {
|
|
1852
1908
|
key: "guzzle",
|
|
1853
1909
|
title: "Guzzle",
|
|
@@ -1897,7 +1953,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1897
1953
|
return x.length && h.push(`${r.indent}${r.indent}'cookie' => '${He(x)}',`), h.length && (y("'headers' => [", 1), y(h.join(`
|
|
1898
1954
|
`)), y("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), i(), d.length ? (o(`$response = $client->request('${t}', '${n}', [`), o(f()), o("]);")) : o(`$response = $client->request('${t}', '${n}');`), i(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (i(), o("?>")), l();
|
|
1899
1955
|
}
|
|
1900
|
-
},
|
|
1956
|
+
}, ji = {
|
|
1901
1957
|
info: {
|
|
1902
1958
|
key: "http1",
|
|
1903
1959
|
title: "HTTP v1",
|
|
@@ -1919,7 +1975,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1919
1975
|
}
|
|
1920
1976
|
return y("try {"), y("$response = $request->send();", 1), f(), y("echo $response->getBody();", 1), y("} catch (HttpException $ex) {"), y("echo $ex;", 1), y("}"), !l && o && (f(), y("?>")), h();
|
|
1921
1977
|
}
|
|
1922
|
-
},
|
|
1978
|
+
}, Si = {
|
|
1923
1979
|
info: {
|
|
1924
1980
|
key: "http2",
|
|
1925
1981
|
title: "HTTP v2",
|
|
@@ -1966,7 +2022,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1966
2022
|
}
|
|
1967
2023
|
return y(`$request->setRequestUrl(${te(s)});`), y(`$request->setRequestMethod(${te(t)});`), x && (y("$request->setBody($body);"), f()), Object.keys(a).length && (y(`$request->setQuery(new http\\QueryString(${te(a, i)}));`), f()), Object.keys(n).length && (y(`$request->setHeaders(${te(n, i)});`), f()), Object.keys(c).length && (f(), y(`$client->setCookies(${te(c, i)});`), f()), y("$client->enqueue($request)->send();"), y("$response = $client->getResponse();"), f(), y("echo $response->getBody();"), !l && o && (f(), y("?>")), h();
|
|
1968
2024
|
}
|
|
1969
|
-
},
|
|
2025
|
+
}, Oi = {
|
|
1970
2026
|
info: {
|
|
1971
2027
|
key: "php",
|
|
1972
2028
|
title: "PHP",
|
|
@@ -1974,10 +2030,10 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1974
2030
|
cli: "php %s"
|
|
1975
2031
|
},
|
|
1976
2032
|
clientsById: {
|
|
1977
|
-
curl:
|
|
1978
|
-
guzzle:
|
|
1979
|
-
http1:
|
|
1980
|
-
http2:
|
|
2033
|
+
curl: $i,
|
|
2034
|
+
guzzle: wi,
|
|
2035
|
+
http1: ji,
|
|
2036
|
+
http2: Si
|
|
1981
2037
|
}
|
|
1982
2038
|
}, xa = (e) => ({ method: t, headersObj: a, cookies: c, uriObj: s, fullUrl: r, postData: o, allHeaders: i }) => {
|
|
1983
2039
|
const { push: l, join: d } = new G();
|
|
@@ -1991,7 +2047,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
1991
2047
|
}), f.push("-WebSession $session")), o.text && (f.push(
|
|
1992
2048
|
`-ContentType '${Be(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1993
2049
|
), f.push(`-Body '${o.text}'`)), l(`$response = ${e} -Uri '${r}' -Method ${t} ${f.join(" ")}`.trim()), d();
|
|
1994
|
-
},
|
|
2050
|
+
}, Ti = {
|
|
1995
2051
|
info: {
|
|
1996
2052
|
key: "restmethod",
|
|
1997
2053
|
title: "Invoke-RestMethod",
|
|
@@ -2000,7 +2056,7 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
2000
2056
|
extname: ".ps1"
|
|
2001
2057
|
},
|
|
2002
2058
|
convert: xa("Invoke-RestMethod")
|
|
2003
|
-
},
|
|
2059
|
+
}, Pi = {
|
|
2004
2060
|
info: {
|
|
2005
2061
|
key: "webrequest",
|
|
2006
2062
|
title: "Invoke-WebRequest",
|
|
@@ -2009,15 +2065,15 @@ ${l}${l}`), 1), S.push("],")), $(S.join(), 1), $("]);"), u(), $("$response = cur
|
|
|
2009
2065
|
extname: ".ps1"
|
|
2010
2066
|
},
|
|
2011
2067
|
convert: xa("Invoke-WebRequest")
|
|
2012
|
-
},
|
|
2068
|
+
}, Ci = {
|
|
2013
2069
|
info: {
|
|
2014
2070
|
key: "powershell",
|
|
2015
2071
|
title: "Powershell",
|
|
2016
2072
|
default: "webrequest"
|
|
2017
2073
|
},
|
|
2018
2074
|
clientsById: {
|
|
2019
|
-
webrequest:
|
|
2020
|
-
restmethod:
|
|
2075
|
+
webrequest: Pi,
|
|
2076
|
+
restmethod: Ti
|
|
2021
2077
|
}
|
|
2022
2078
|
};
|
|
2023
2079
|
function Xr(e, n, t, a, c) {
|
|
@@ -2049,7 +2105,7 @@ var Ae = (e, n, t) => {
|
|
|
2049
2105
|
default:
|
|
2050
2106
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2051
2107
|
}
|
|
2052
|
-
},
|
|
2108
|
+
}, qi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ei = {
|
|
2053
2109
|
info: {
|
|
2054
2110
|
key: "requests",
|
|
2055
2111
|
title: "Requests",
|
|
@@ -2112,10 +2168,10 @@ var Ae = (e, n, t) => {
|
|
|
2112
2168
|
r(v !== u ? `"${S}": "${le(d[S])}",` : `"${S}": "${le(d[S])}"`, 1), v += 1;
|
|
2113
2169
|
}), r("}"), o();
|
|
2114
2170
|
}
|
|
2115
|
-
let m =
|
|
2171
|
+
let m = qi.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
2116
2172
|
return x && ($ ? m += ", json=payload" : m += ", data=payload"), h && (m += ", files=files"), u > 0 && (m += ", headers=headers"), m += ")", r(m), o(), r("print(response.text)"), i();
|
|
2117
2173
|
}
|
|
2118
|
-
},
|
|
2174
|
+
}, Ri = {
|
|
2119
2175
|
info: {
|
|
2120
2176
|
key: "python",
|
|
2121
2177
|
title: "Python",
|
|
@@ -2123,9 +2179,9 @@ var Ae = (e, n, t) => {
|
|
|
2123
2179
|
cli: "python3 %s"
|
|
2124
2180
|
},
|
|
2125
2181
|
clientsById: {
|
|
2126
|
-
requests:
|
|
2182
|
+
requests: Ei
|
|
2127
2183
|
}
|
|
2128
|
-
},
|
|
2184
|
+
}, ki = {
|
|
2129
2185
|
info: {
|
|
2130
2186
|
key: "httr",
|
|
2131
2187
|
title: "httr",
|
|
@@ -2164,16 +2220,16 @@ var Ae = (e, n, t) => {
|
|
|
2164
2220
|
const T = [v, u, $, x].filter((p) => !!p).join(", ");
|
|
2165
2221
|
return T && (S += `, ${T}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", r(S), o(), r('content(response, "text")'), i();
|
|
2166
2222
|
}
|
|
2167
|
-
},
|
|
2223
|
+
}, Ni = {
|
|
2168
2224
|
info: {
|
|
2169
2225
|
key: "r",
|
|
2170
2226
|
title: "R",
|
|
2171
2227
|
default: "httr"
|
|
2172
2228
|
},
|
|
2173
2229
|
clientsById: {
|
|
2174
|
-
httr:
|
|
2230
|
+
httr: ki
|
|
2175
2231
|
}
|
|
2176
|
-
},
|
|
2232
|
+
}, Ai = {
|
|
2177
2233
|
info: {
|
|
2178
2234
|
key: "native",
|
|
2179
2235
|
title: "net::http",
|
|
@@ -2204,16 +2260,16 @@ var Ae = (e, n, t) => {
|
|
|
2204
2260
|
s(`request["${f}"] = '${He(c[f])}'`);
|
|
2205
2261
|
}), a.text && s(`request.body = ${JSON.stringify(a.text)}`), r(), s("response = http.request(request)"), s("puts response.read_body"), o();
|
|
2206
2262
|
}
|
|
2207
|
-
},
|
|
2263
|
+
}, Ii = {
|
|
2208
2264
|
info: {
|
|
2209
2265
|
key: "ruby",
|
|
2210
2266
|
title: "Ruby",
|
|
2211
2267
|
default: "native"
|
|
2212
2268
|
},
|
|
2213
2269
|
clientsById: {
|
|
2214
|
-
native:
|
|
2270
|
+
native: Ai
|
|
2215
2271
|
}
|
|
2216
|
-
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
2272
|
+
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, Ui = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Li = {
|
|
2217
2273
|
"http1.0": "0",
|
|
2218
2274
|
"url ": "",
|
|
2219
2275
|
cookie: "b",
|
|
@@ -2223,13 +2279,13 @@ var Ae = (e, n, t) => {
|
|
|
2223
2279
|
header: "H",
|
|
2224
2280
|
insecure: "k",
|
|
2225
2281
|
request: "X"
|
|
2226
|
-
},
|
|
2282
|
+
}, Fi = (e) => (n) => {
|
|
2227
2283
|
if (e) {
|
|
2228
|
-
const t =
|
|
2284
|
+
const t = Li[n];
|
|
2229
2285
|
return t ? `-${t}` : "";
|
|
2230
2286
|
}
|
|
2231
2287
|
return `--${n}`;
|
|
2232
|
-
},
|
|
2288
|
+
}, _i = {
|
|
2233
2289
|
info: {
|
|
2234
2290
|
key: "curl",
|
|
2235
2291
|
title: "cURL",
|
|
@@ -2242,7 +2298,7 @@ var Ae = (e, n, t) => {
|
|
|
2242
2298
|
...typeof o == "string" ? { indent: o } : {},
|
|
2243
2299
|
join: o !== !1 ? ` \\
|
|
2244
2300
|
${o}` : " "
|
|
2245
|
-
}), x =
|
|
2301
|
+
}), x = Fi(i);
|
|
2246
2302
|
let $ = ce(e);
|
|
2247
2303
|
if (f(`curl ${x("request")} ${n}`), d && ($ = unescape($), f(x("globoff"))), f(`${x("url ")}${$}`), t === "HTTP/1.0" && f(x("http1.0")), ve(c, "accept-encoding") && f("--compressed"), s.mimeType === "multipart/form-data") {
|
|
2248
2304
|
const u = fe(a, "content-type");
|
|
@@ -2274,7 +2330,7 @@ ${o}` : " "
|
|
|
2274
2330
|
if (!s.text)
|
|
2275
2331
|
break;
|
|
2276
2332
|
let u = !1;
|
|
2277
|
-
if (
|
|
2333
|
+
if (Fo(s.mimeType) && s.text.length > 20)
|
|
2278
2334
|
try {
|
|
2279
2335
|
const m = JSON.parse(s.text);
|
|
2280
2336
|
u = !0, s.text.indexOf("'") > 0 ? f(
|
|
@@ -2296,7 +2352,7 @@ ${JSON.stringify(m, null, y)}
|
|
|
2296
2352
|
}
|
|
2297
2353
|
return h();
|
|
2298
2354
|
}
|
|
2299
|
-
},
|
|
2355
|
+
}, Bi = {
|
|
2300
2356
|
info: {
|
|
2301
2357
|
key: "httpie",
|
|
2302
2358
|
title: "HTTPie",
|
|
@@ -2345,7 +2401,7 @@ ${o.indent}` : " "
|
|
|
2345
2401
|
}
|
|
2346
2402
|
return l();
|
|
2347
2403
|
}
|
|
2348
|
-
},
|
|
2404
|
+
}, Hi = {
|
|
2349
2405
|
info: {
|
|
2350
2406
|
key: "wget",
|
|
2351
2407
|
title: "Wget",
|
|
@@ -2367,9 +2423,9 @@ ${s.indent}` : " "
|
|
|
2367
2423
|
return s.verbose ? r(`wget ${s.short ? "-v" : "--verbose"}`) : r(`wget ${s.short ? "-q" : "--quiet"}`), r(`--method ${ce(e)}`), Object.keys(t).forEach((i) => {
|
|
2368
2424
|
const l = `${i}: ${t[i]}`;
|
|
2369
2425
|
r(`--header ${ce(l)}`);
|
|
2370
|
-
}), n.text && r(`--body-data ${
|
|
2426
|
+
}), n.text && r(`--body-data ${Ui(ce(n.text))}`), r(s.short ? "-O" : "--output-document"), r(`- ${ce(a)}`), o();
|
|
2371
2427
|
}
|
|
2372
|
-
},
|
|
2428
|
+
}, Mi = {
|
|
2373
2429
|
info: {
|
|
2374
2430
|
key: "shell",
|
|
2375
2431
|
title: "Shell",
|
|
@@ -2377,9 +2433,9 @@ ${s.indent}` : " "
|
|
|
2377
2433
|
cli: "%s"
|
|
2378
2434
|
},
|
|
2379
2435
|
clientsById: {
|
|
2380
|
-
curl:
|
|
2381
|
-
httpie:
|
|
2382
|
-
wget:
|
|
2436
|
+
curl: _i,
|
|
2437
|
+
httpie: Bi,
|
|
2438
|
+
wget: Hi
|
|
2383
2439
|
}
|
|
2384
2440
|
}, Zr = (e, n) => n.repeat(e), en = (e, n, t, a) => {
|
|
2385
2441
|
const c = Zr(a, t), s = Zr(a - 1, t), r = n ? `,
|
|
@@ -2414,7 +2470,7 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2414
2470
|
default:
|
|
2415
2471
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2416
2472
|
}
|
|
2417
|
-
},
|
|
2473
|
+
}, zi = {
|
|
2418
2474
|
info: {
|
|
2419
2475
|
key: "urlsession",
|
|
2420
2476
|
title: "URLSession",
|
|
@@ -2464,39 +2520,39 @@ ${s}]` : `[${e.join(r)}]`;
|
|
|
2464
2520
|
}
|
|
2465
2521
|
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${Ze(e, r)}`), d && o("request.httpBody = postData"), i(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), l();
|
|
2466
2522
|
}
|
|
2467
|
-
},
|
|
2523
|
+
}, Wi = {
|
|
2468
2524
|
info: {
|
|
2469
2525
|
key: "swift",
|
|
2470
2526
|
title: "Swift",
|
|
2471
2527
|
default: "urlsession"
|
|
2472
2528
|
},
|
|
2473
2529
|
clientsById: {
|
|
2474
|
-
urlsession:
|
|
2530
|
+
urlsession: zi
|
|
2475
2531
|
}
|
|
2476
|
-
},
|
|
2477
|
-
c:
|
|
2478
|
-
clojure:
|
|
2479
|
-
csharp:
|
|
2480
|
-
go:
|
|
2481
|
-
http:
|
|
2482
|
-
java:
|
|
2483
|
-
javascript:
|
|
2484
|
-
json:
|
|
2485
|
-
kotlin:
|
|
2486
|
-
node:
|
|
2487
|
-
objc:
|
|
2488
|
-
ocaml:
|
|
2489
|
-
php:
|
|
2490
|
-
powershell:
|
|
2491
|
-
python:
|
|
2492
|
-
r:
|
|
2493
|
-
ruby:
|
|
2494
|
-
shell:
|
|
2495
|
-
swift:
|
|
2532
|
+
}, Ji = {
|
|
2533
|
+
c: Lo,
|
|
2534
|
+
clojure: Ho,
|
|
2535
|
+
csharp: Vo,
|
|
2536
|
+
go: Do,
|
|
2537
|
+
http: Ko,
|
|
2538
|
+
java: ti,
|
|
2539
|
+
javascript: ii,
|
|
2540
|
+
json: li,
|
|
2541
|
+
kotlin: ui,
|
|
2542
|
+
node: mi,
|
|
2543
|
+
objc: vi,
|
|
2544
|
+
ocaml: xi,
|
|
2545
|
+
php: Oi,
|
|
2546
|
+
powershell: Ci,
|
|
2547
|
+
python: Ri,
|
|
2548
|
+
r: Ni,
|
|
2549
|
+
ruby: Ii,
|
|
2550
|
+
shell: Mi,
|
|
2551
|
+
swift: Wi
|
|
2496
2552
|
}, Ce = {}, Le = { exports: {} };
|
|
2497
2553
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2498
|
-
var
|
|
2499
|
-
function
|
|
2554
|
+
var Vi = Le.exports, rn;
|
|
2555
|
+
function Gi() {
|
|
2500
2556
|
return rn || (rn = 1, function(e, n) {
|
|
2501
2557
|
(function(t) {
|
|
2502
2558
|
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, s = typeof Ye == "object" && Ye;
|
|
@@ -2613,7 +2669,7 @@ function Ji() {
|
|
|
2613
2669
|
r.hasOwnProperty(g) && (a[g] = r[g]);
|
|
2614
2670
|
else
|
|
2615
2671
|
t.punycode = r;
|
|
2616
|
-
})(
|
|
2672
|
+
})(Vi);
|
|
2617
2673
|
}(Le, Le.exports)), Le.exports;
|
|
2618
2674
|
}
|
|
2619
2675
|
var vt, nn;
|
|
@@ -2621,19 +2677,19 @@ function $a() {
|
|
|
2621
2677
|
return nn || (nn = 1, vt = Object), vt;
|
|
2622
2678
|
}
|
|
2623
2679
|
var bt, an;
|
|
2624
|
-
function
|
|
2680
|
+
function Di() {
|
|
2625
2681
|
return an || (an = 1, bt = Error), bt;
|
|
2626
2682
|
}
|
|
2627
2683
|
var xt, on;
|
|
2628
|
-
function
|
|
2684
|
+
function Qi() {
|
|
2629
2685
|
return on || (on = 1, xt = EvalError), xt;
|
|
2630
2686
|
}
|
|
2631
2687
|
var $t, sn;
|
|
2632
|
-
function
|
|
2688
|
+
function Ki() {
|
|
2633
2689
|
return sn || (sn = 1, $t = RangeError), $t;
|
|
2634
2690
|
}
|
|
2635
2691
|
var wt, ln;
|
|
2636
|
-
function
|
|
2692
|
+
function Yi() {
|
|
2637
2693
|
return ln || (ln = 1, wt = ReferenceError), wt;
|
|
2638
2694
|
}
|
|
2639
2695
|
var jt, cn;
|
|
@@ -2645,57 +2701,57 @@ function ze() {
|
|
|
2645
2701
|
return un || (un = 1, St = TypeError), St;
|
|
2646
2702
|
}
|
|
2647
2703
|
var Ot, fn;
|
|
2648
|
-
function
|
|
2704
|
+
function Xi() {
|
|
2649
2705
|
return fn || (fn = 1, Ot = URIError), Ot;
|
|
2650
2706
|
}
|
|
2651
2707
|
var Tt, pn;
|
|
2652
|
-
function
|
|
2708
|
+
function Zi() {
|
|
2653
2709
|
return pn || (pn = 1, Tt = Math.abs), Tt;
|
|
2654
2710
|
}
|
|
2655
2711
|
var Pt, dn;
|
|
2656
|
-
function
|
|
2712
|
+
function es() {
|
|
2657
2713
|
return dn || (dn = 1, Pt = Math.floor), Pt;
|
|
2658
2714
|
}
|
|
2659
2715
|
var Ct, hn;
|
|
2660
|
-
function
|
|
2716
|
+
function ts() {
|
|
2661
2717
|
return hn || (hn = 1, Ct = Math.max), Ct;
|
|
2662
2718
|
}
|
|
2663
2719
|
var qt, yn;
|
|
2664
|
-
function
|
|
2720
|
+
function rs() {
|
|
2665
2721
|
return yn || (yn = 1, qt = Math.min), qt;
|
|
2666
2722
|
}
|
|
2667
2723
|
var Et, mn;
|
|
2668
|
-
function
|
|
2724
|
+
function ns() {
|
|
2669
2725
|
return mn || (mn = 1, Et = Math.pow), Et;
|
|
2670
2726
|
}
|
|
2671
2727
|
var Rt, gn;
|
|
2672
|
-
function
|
|
2728
|
+
function as() {
|
|
2673
2729
|
return gn || (gn = 1, Rt = Math.round), Rt;
|
|
2674
2730
|
}
|
|
2675
2731
|
var kt, vn;
|
|
2676
|
-
function
|
|
2732
|
+
function os() {
|
|
2677
2733
|
return vn || (vn = 1, kt = Number.isNaN || function(n) {
|
|
2678
2734
|
return n !== n;
|
|
2679
2735
|
}), kt;
|
|
2680
2736
|
}
|
|
2681
2737
|
var Nt, bn;
|
|
2682
|
-
function
|
|
2738
|
+
function is() {
|
|
2683
2739
|
if (bn) return Nt;
|
|
2684
2740
|
bn = 1;
|
|
2685
|
-
var e = /* @__PURE__ */
|
|
2741
|
+
var e = /* @__PURE__ */ os();
|
|
2686
2742
|
return Nt = function(t) {
|
|
2687
2743
|
return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2688
2744
|
}, Nt;
|
|
2689
2745
|
}
|
|
2690
2746
|
var At, xn;
|
|
2691
|
-
function
|
|
2747
|
+
function ss() {
|
|
2692
2748
|
return xn || (xn = 1, At = Object.getOwnPropertyDescriptor), At;
|
|
2693
2749
|
}
|
|
2694
2750
|
var It, $n;
|
|
2695
2751
|
function rt() {
|
|
2696
2752
|
if ($n) return It;
|
|
2697
2753
|
$n = 1;
|
|
2698
|
-
var e = /* @__PURE__ */
|
|
2754
|
+
var e = /* @__PURE__ */ ss();
|
|
2699
2755
|
if (e)
|
|
2700
2756
|
try {
|
|
2701
2757
|
e([], "length");
|
|
@@ -2718,7 +2774,7 @@ function nt() {
|
|
|
2718
2774
|
return Ut = e, Ut;
|
|
2719
2775
|
}
|
|
2720
2776
|
var Lt, jn;
|
|
2721
|
-
function
|
|
2777
|
+
function ls() {
|
|
2722
2778
|
return jn || (jn = 1, Lt = function() {
|
|
2723
2779
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2724
2780
|
return !1;
|
|
@@ -2748,10 +2804,10 @@ function is() {
|
|
|
2748
2804
|
}), Lt;
|
|
2749
2805
|
}
|
|
2750
2806
|
var Ft, Sn;
|
|
2751
|
-
function
|
|
2807
|
+
function cs() {
|
|
2752
2808
|
if (Sn) return Ft;
|
|
2753
2809
|
Sn = 1;
|
|
2754
|
-
var e = typeof Symbol < "u" && Symbol, n =
|
|
2810
|
+
var e = typeof Symbol < "u" && Symbol, n = ls();
|
|
2755
2811
|
return Ft = function() {
|
|
2756
2812
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
2757
2813
|
}, Ft;
|
|
@@ -2768,7 +2824,7 @@ function Sa() {
|
|
|
2768
2824
|
return Bt = e.getPrototypeOf || null, Bt;
|
|
2769
2825
|
}
|
|
2770
2826
|
var Ht, Pn;
|
|
2771
|
-
function
|
|
2827
|
+
function us() {
|
|
2772
2828
|
if (Pn) return Ht;
|
|
2773
2829
|
Pn = 1;
|
|
2774
2830
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(i, l) {
|
|
@@ -2816,7 +2872,7 @@ var Mt, Cn;
|
|
|
2816
2872
|
function We() {
|
|
2817
2873
|
if (Cn) return Mt;
|
|
2818
2874
|
Cn = 1;
|
|
2819
|
-
var e =
|
|
2875
|
+
var e = us();
|
|
2820
2876
|
return Mt = Function.prototype.bind || e, Mt;
|
|
2821
2877
|
}
|
|
2822
2878
|
var zt, qn;
|
|
@@ -2828,14 +2884,14 @@ function Sr() {
|
|
|
2828
2884
|
return En || (En = 1, Wt = Function.prototype.apply), Wt;
|
|
2829
2885
|
}
|
|
2830
2886
|
var Jt, Rn;
|
|
2831
|
-
function
|
|
2887
|
+
function fs() {
|
|
2832
2888
|
return Rn || (Rn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
|
|
2833
2889
|
}
|
|
2834
2890
|
var Vt, kn;
|
|
2835
2891
|
function Oa() {
|
|
2836
2892
|
if (kn) return Vt;
|
|
2837
2893
|
kn = 1;
|
|
2838
|
-
var e = We(), n = Sr(), t = jr(), a =
|
|
2894
|
+
var e = We(), n = Sr(), t = jr(), a = fs();
|
|
2839
2895
|
return Vt = a || e.call(t, n), Vt;
|
|
2840
2896
|
}
|
|
2841
2897
|
var Gt, Nn;
|
|
@@ -2850,7 +2906,7 @@ function Ta() {
|
|
|
2850
2906
|
}, Gt;
|
|
2851
2907
|
}
|
|
2852
2908
|
var Dt, An;
|
|
2853
|
-
function
|
|
2909
|
+
function ps() {
|
|
2854
2910
|
if (An) return Dt;
|
|
2855
2911
|
An = 1;
|
|
2856
2912
|
var e = Ta(), n = /* @__PURE__ */ rt(), t;
|
|
@@ -2874,10 +2930,10 @@ function us() {
|
|
|
2874
2930
|
) : !1, Dt;
|
|
2875
2931
|
}
|
|
2876
2932
|
var Qt, In;
|
|
2877
|
-
function
|
|
2933
|
+
function ds() {
|
|
2878
2934
|
if (In) return Qt;
|
|
2879
2935
|
In = 1;
|
|
2880
|
-
var e = ja(), n = Sa(), t = /* @__PURE__ */
|
|
2936
|
+
var e = ja(), n = Sa(), t = /* @__PURE__ */ ps();
|
|
2881
2937
|
return Qt = e ? function(c) {
|
|
2882
2938
|
return e(c);
|
|
2883
2939
|
} : n ? function(c) {
|
|
@@ -2889,7 +2945,7 @@ function fs() {
|
|
|
2889
2945
|
} : null, Qt;
|
|
2890
2946
|
}
|
|
2891
2947
|
var Kt, Un;
|
|
2892
|
-
function
|
|
2948
|
+
function hs() {
|
|
2893
2949
|
if (Un) return Kt;
|
|
2894
2950
|
Un = 1;
|
|
2895
2951
|
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, t = We();
|
|
@@ -2899,7 +2955,7 @@ var Yt, Ln;
|
|
|
2899
2955
|
function Or() {
|
|
2900
2956
|
if (Ln) return Yt;
|
|
2901
2957
|
Ln = 1;
|
|
2902
|
-
var e, n = /* @__PURE__ */ $a(), t = /* @__PURE__ */
|
|
2958
|
+
var e, n = /* @__PURE__ */ $a(), t = /* @__PURE__ */ Di(), a = /* @__PURE__ */ Qi(), c = /* @__PURE__ */ Ki(), s = /* @__PURE__ */ Yi(), r = /* @__PURE__ */ wa(), o = /* @__PURE__ */ ze(), i = /* @__PURE__ */ Xi(), l = /* @__PURE__ */ Zi(), d = /* @__PURE__ */ es(), y = /* @__PURE__ */ ts(), f = /* @__PURE__ */ rs(), h = /* @__PURE__ */ ns(), x = /* @__PURE__ */ as(), $ = /* @__PURE__ */ is(), u = Function, m = function(V) {
|
|
2903
2959
|
try {
|
|
2904
2960
|
return u('"use strict"; return (' + V + ").constructor;")();
|
|
2905
2961
|
} catch {
|
|
@@ -2916,7 +2972,7 @@ function Or() {
|
|
|
2916
2972
|
return T;
|
|
2917
2973
|
}
|
|
2918
2974
|
}
|
|
2919
|
-
}() : T, O =
|
|
2975
|
+
}() : T, O = cs()(), g = ds(), k = Sa(), R = ja(), q = Sr(), B = jr(), P = {}, oe = typeof Uint8Array > "u" || !g ? e : g(Uint8Array), H = {
|
|
2920
2976
|
__proto__: null,
|
|
2921
2977
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
2922
2978
|
"%Array%": Array,
|
|
@@ -3076,7 +3132,7 @@ function Or() {
|
|
|
3076
3132
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3077
3133
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3078
3134
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3079
|
-
}, A = We(), re = /* @__PURE__ */
|
|
3135
|
+
}, A = We(), re = /* @__PURE__ */ hs(), E = A.call(B, Array.prototype.concat), N = A.call(q, Array.prototype.splice), L = A.call(B, String.prototype.replace), C = A.call(B, String.prototype.slice), U = A.call(B, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(I) {
|
|
3080
3136
|
var F = C(I, 0, 1), _ = C(I, -1);
|
|
3081
3137
|
if (F === "%" && _ !== "%")
|
|
3082
3138
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3133,7 +3189,7 @@ function Or() {
|
|
|
3133
3189
|
}, Yt;
|
|
3134
3190
|
}
|
|
3135
3191
|
var Xt = { exports: {} }, Zt, Fn;
|
|
3136
|
-
function
|
|
3192
|
+
function ys() {
|
|
3137
3193
|
if (Fn) return Zt;
|
|
3138
3194
|
Fn = 1;
|
|
3139
3195
|
var e = /* @__PURE__ */ nt(), n = /* @__PURE__ */ wa(), t = /* @__PURE__ */ ze(), a = /* @__PURE__ */ rt();
|
|
@@ -3165,7 +3221,7 @@ function ds() {
|
|
|
3165
3221
|
}, Zt;
|
|
3166
3222
|
}
|
|
3167
3223
|
var er, _n;
|
|
3168
|
-
function
|
|
3224
|
+
function ms() {
|
|
3169
3225
|
if (_n) return er;
|
|
3170
3226
|
_n = 1;
|
|
3171
3227
|
var e = /* @__PURE__ */ nt(), n = function() {
|
|
@@ -3182,10 +3238,10 @@ function hs() {
|
|
|
3182
3238
|
}, er = n, er;
|
|
3183
3239
|
}
|
|
3184
3240
|
var tr, Bn;
|
|
3185
|
-
function
|
|
3241
|
+
function gs() {
|
|
3186
3242
|
if (Bn) return tr;
|
|
3187
3243
|
Bn = 1;
|
|
3188
|
-
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */
|
|
3244
|
+
var e = /* @__PURE__ */ Or(), n = /* @__PURE__ */ ys(), t = /* @__PURE__ */ ms()(), a = /* @__PURE__ */ rt(), c = /* @__PURE__ */ ze(), s = e("%Math.floor%");
|
|
3189
3245
|
return tr = function(o, i) {
|
|
3190
3246
|
if (typeof o != "function")
|
|
3191
3247
|
throw new c("`fn` is not a function");
|
|
@@ -3212,7 +3268,7 @@ function ys() {
|
|
|
3212
3268
|
}, tr;
|
|
3213
3269
|
}
|
|
3214
3270
|
var rr, Hn;
|
|
3215
|
-
function
|
|
3271
|
+
function vs() {
|
|
3216
3272
|
if (Hn) return rr;
|
|
3217
3273
|
Hn = 1;
|
|
3218
3274
|
var e = We(), n = Sr(), t = Oa();
|
|
@@ -3221,9 +3277,9 @@ function ms() {
|
|
|
3221
3277
|
}, rr;
|
|
3222
3278
|
}
|
|
3223
3279
|
var Mn;
|
|
3224
|
-
function
|
|
3280
|
+
function bs() {
|
|
3225
3281
|
return Mn || (Mn = 1, function(e) {
|
|
3226
|
-
var n = /* @__PURE__ */
|
|
3282
|
+
var n = /* @__PURE__ */ gs(), t = /* @__PURE__ */ nt(), a = Ta(), c = vs();
|
|
3227
3283
|
e.exports = function(r) {
|
|
3228
3284
|
var o = a(arguments), i = r.length - (arguments.length - 1);
|
|
3229
3285
|
return n(
|
|
@@ -3235,21 +3291,21 @@ function gs() {
|
|
|
3235
3291
|
}(Xt)), Xt.exports;
|
|
3236
3292
|
}
|
|
3237
3293
|
var nr, zn;
|
|
3238
|
-
function
|
|
3294
|
+
function xs() {
|
|
3239
3295
|
if (zn) return nr;
|
|
3240
3296
|
zn = 1;
|
|
3241
|
-
var e = /* @__PURE__ */ Or(), n =
|
|
3297
|
+
var e = /* @__PURE__ */ Or(), n = bs(), t = n(e("String.prototype.indexOf"));
|
|
3242
3298
|
return nr = function(c, s) {
|
|
3243
3299
|
var r = e(c, !!s);
|
|
3244
3300
|
return typeof r == "function" && t(c, ".prototype.") > -1 ? n(r) : r;
|
|
3245
3301
|
}, nr;
|
|
3246
3302
|
}
|
|
3247
|
-
const
|
|
3303
|
+
const $s = {}, ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3248
3304
|
__proto__: null,
|
|
3249
|
-
default:
|
|
3250
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3305
|
+
default: $s
|
|
3306
|
+
}, Symbol.toStringTag, { value: "Module" })), js = /* @__PURE__ */ ho(ws);
|
|
3251
3307
|
var ar, Wn;
|
|
3252
|
-
function
|
|
3308
|
+
function Ss() {
|
|
3253
3309
|
if (Wn) return ar;
|
|
3254
3310
|
Wn = 1;
|
|
3255
3311
|
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, r = c && s && typeof s.get == "function" ? s.get : null, o = c && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, l = i ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, y = d ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype, h = f ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, u = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, T = String.prototype.toUpperCase, p = String.prototype.toLowerCase, O = RegExp.prototype.test, g = Array.prototype.concat, k = Array.prototype.join, R = Array.prototype.slice, q = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(w) {
|
|
@@ -3268,7 +3324,7 @@ function ws() {
|
|
|
3268
3324
|
}
|
|
3269
3325
|
return S.call(j, X, "$&_");
|
|
3270
3326
|
}
|
|
3271
|
-
var re =
|
|
3327
|
+
var re = js, E = re.custom, N = F(E) ? E : null;
|
|
3272
3328
|
ar = function w(j, X, ee, ie) {
|
|
3273
3329
|
var M = X || {};
|
|
3274
3330
|
if (W(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
|
|
@@ -3607,10 +3663,10 @@ function ws() {
|
|
|
3607
3663
|
return ar;
|
|
3608
3664
|
}
|
|
3609
3665
|
var or, Jn;
|
|
3610
|
-
function
|
|
3666
|
+
function Os() {
|
|
3611
3667
|
if (Jn) return or;
|
|
3612
3668
|
Jn = 1;
|
|
3613
|
-
var e = /* @__PURE__ */ Or(), n =
|
|
3669
|
+
var e = /* @__PURE__ */ Or(), n = xs(), t = /* @__PURE__ */ Ss(), a = /* @__PURE__ */ ze(), c = e("%WeakMap%", !0), s = e("%Map%", !0), r = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), i = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), d = n("Map.prototype.set", !0), y = n("Map.prototype.has", !0), f = function(u, m) {
|
|
3614
3670
|
for (var v = u, S; (S = v.next) !== null; v = S)
|
|
3615
3671
|
if (S.key === m)
|
|
3616
3672
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -3812,10 +3868,10 @@ function Pa() {
|
|
|
3812
3868
|
}, sr;
|
|
3813
3869
|
}
|
|
3814
3870
|
var lr, Dn;
|
|
3815
|
-
function
|
|
3871
|
+
function Ts() {
|
|
3816
3872
|
if (Dn) return lr;
|
|
3817
3873
|
Dn = 1;
|
|
3818
|
-
var e =
|
|
3874
|
+
var e = Os(), n = /* @__PURE__ */ Pa(), t = /* @__PURE__ */ Tr(), a = Object.prototype.hasOwnProperty, c = {
|
|
3819
3875
|
brackets: function(u) {
|
|
3820
3876
|
return u + "[]";
|
|
3821
3877
|
},
|
|
@@ -4001,7 +4057,7 @@ function Ss() {
|
|
|
4001
4057
|
}, lr;
|
|
4002
4058
|
}
|
|
4003
4059
|
var cr, Qn;
|
|
4004
|
-
function
|
|
4060
|
+
function Ps() {
|
|
4005
4061
|
if (Qn) return cr;
|
|
4006
4062
|
Qn = 1;
|
|
4007
4063
|
var e = /* @__PURE__ */ Pa(), n = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
|
|
@@ -4138,7 +4194,7 @@ var ur, Kn;
|
|
|
4138
4194
|
function Ca() {
|
|
4139
4195
|
if (Kn) return ur;
|
|
4140
4196
|
Kn = 1;
|
|
4141
|
-
var e = /* @__PURE__ */
|
|
4197
|
+
var e = /* @__PURE__ */ Ts(), n = /* @__PURE__ */ Ps(), t = /* @__PURE__ */ Tr();
|
|
4142
4198
|
return ur = {
|
|
4143
4199
|
formats: t,
|
|
4144
4200
|
parse: n,
|
|
@@ -4146,10 +4202,10 @@ function Ca() {
|
|
|
4146
4202
|
}, ur;
|
|
4147
4203
|
}
|
|
4148
4204
|
var Yn;
|
|
4149
|
-
function
|
|
4205
|
+
function Cs() {
|
|
4150
4206
|
if (Yn) return Ce;
|
|
4151
4207
|
Yn = 1;
|
|
4152
|
-
var e =
|
|
4208
|
+
var e = Gi();
|
|
4153
4209
|
function n() {
|
|
4154
4210
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
4155
4211
|
}
|
|
@@ -4368,12 +4424,12 @@ function Ts() {
|
|
|
4368
4424
|
O && (O = O[0], O !== ":" && (this.port = O.substr(1)), p = p.substr(0, p.length - O.length)), p && (this.hostname = p);
|
|
4369
4425
|
}, Ce.parse = m, Ce.resolve = S, Ce.resolveObject = T, Ce.format = v, Ce.Url = n, Ce;
|
|
4370
4426
|
}
|
|
4371
|
-
var fr =
|
|
4427
|
+
var fr = Cs(), pr = /* @__PURE__ */ Ca(), qs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Es = class {
|
|
4372
4428
|
constructor(e, n = {}) {
|
|
4373
4429
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4374
4430
|
harIsAlreadyEncoded: !1,
|
|
4375
4431
|
...n
|
|
4376
|
-
}, this.requests = [],
|
|
4432
|
+
}, this.requests = [], qs(e) ? this.entries = e.log.entries : this.entries = [
|
|
4377
4433
|
{
|
|
4378
4434
|
request: e
|
|
4379
4435
|
}
|
|
@@ -4496,21 +4552,20 @@ var fr = Ts(), pr = /* @__PURE__ */ Ca(), Ps = (e) => typeof e == "object" && "l
|
|
|
4496
4552
|
}
|
|
4497
4553
|
convert(e, n, t) {
|
|
4498
4554
|
this.initCalled || this.init(), !t && n && (t = n);
|
|
4499
|
-
const a =
|
|
4555
|
+
const a = Ji[e];
|
|
4500
4556
|
if (!a)
|
|
4501
4557
|
return !1;
|
|
4502
4558
|
const { convert: c } = a.clientsById[n || a.info.default];
|
|
4503
4559
|
return this.requests.map((r) => c(r, t));
|
|
4504
4560
|
}
|
|
4505
4561
|
};
|
|
4506
|
-
const
|
|
4562
|
+
const Rs = ({
|
|
4507
4563
|
operation: e,
|
|
4508
4564
|
selectedServer: n,
|
|
4509
4565
|
exampleBody: t
|
|
4510
|
-
}) => new
|
|
4566
|
+
}) => new Es({
|
|
4511
4567
|
method: e.method.toUpperCase(),
|
|
4512
4568
|
url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
4513
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4514
4569
|
postData: t,
|
|
4515
4570
|
headers: [
|
|
4516
4571
|
...t.text ? [{ name: "Content-Type", value: t.mimeType }] : [],
|
|
@@ -4527,7 +4582,7 @@ const qs = ({
|
|
|
4527
4582
|
cookies: [],
|
|
4528
4583
|
headersSize: 0,
|
|
4529
4584
|
bodySize: 0
|
|
4530
|
-
}),
|
|
4585
|
+
}), ks = (e, n) => {
|
|
4531
4586
|
let t;
|
|
4532
4587
|
switch (n) {
|
|
4533
4588
|
case "shell":
|
|
@@ -4576,7 +4631,7 @@ const qs = ({
|
|
|
4576
4631
|
purple: "text-purple-600",
|
|
4577
4632
|
indigo: "text-indigo-600",
|
|
4578
4633
|
gray: "text-gray-600"
|
|
4579
|
-
},
|
|
4634
|
+
}, Ns = {
|
|
4580
4635
|
get: be.green,
|
|
4581
4636
|
post: be.blue,
|
|
4582
4637
|
put: be.yellow,
|
|
@@ -4585,7 +4640,7 @@ const qs = ({
|
|
|
4585
4640
|
options: be.indigo,
|
|
4586
4641
|
head: be.gray,
|
|
4587
4642
|
trace: be.gray
|
|
4588
|
-
}, qa = (e) =>
|
|
4643
|
+
}, qa = (e) => Ns[e.toLocaleLowerCase()] ?? be.gray, As = Me(
|
|
4589
4644
|
/* GraphQL */
|
|
4590
4645
|
`
|
|
4591
4646
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4597,7 +4652,7 @@ const qs = ({
|
|
|
4597
4652
|
}
|
|
4598
4653
|
}
|
|
4599
4654
|
`
|
|
4600
|
-
),
|
|
4655
|
+
), Is = [
|
|
4601
4656
|
{ value: "shell", label: "cURL" },
|
|
4602
4657
|
{ value: "js", label: "JavaScript" },
|
|
4603
4658
|
{ value: "python", label: "Python" },
|
|
@@ -4609,12 +4664,12 @@ const qs = ({
|
|
|
4609
4664
|
{ value: "php", label: "PHP" },
|
|
4610
4665
|
{ value: "ruby", label: "Ruby" },
|
|
4611
4666
|
{ value: "swift", label: "Swift" }
|
|
4612
|
-
],
|
|
4667
|
+
], Us = ({
|
|
4613
4668
|
operation: e,
|
|
4614
4669
|
selectedResponse: n,
|
|
4615
4670
|
onSelectResponse: t
|
|
4616
4671
|
}) => {
|
|
4617
|
-
const { input: a, type: c, options: s } = et(), r =
|
|
4672
|
+
const { input: a, type: c, options: s } = et(), r = fo(), o = Ke(As, { input: a, type: c }), i = gr(o), l = uo(), d = qa(e.method), [y, f] = Ja(), [, h] = ca(), [x, $] = ge(), u = y.get("lang") ?? s?.examplesLanguage ?? "shell", m = e.requestBody?.content, v = m && s?.transformExamples ? s.transformExamples({
|
|
4618
4673
|
auth: r,
|
|
4619
4674
|
type: "request",
|
|
4620
4675
|
operation: e,
|
|
@@ -4637,7 +4692,7 @@ const qs = ({
|
|
|
4637
4692
|
), { selectedServer: T } = vr(i.data.schema.servers), p = fa(() => {
|
|
4638
4693
|
const R = x ?? (v?.[0]?.schema ? we(
|
|
4639
4694
|
v[0].schema
|
|
4640
|
-
) : void 0), q =
|
|
4695
|
+
) : void 0), q = Rs({
|
|
4641
4696
|
operation: e,
|
|
4642
4697
|
selectedServer: T,
|
|
4643
4698
|
exampleBody: R ? {
|
|
@@ -4645,14 +4700,14 @@ const qs = ({
|
|
|
4645
4700
|
text: JSON.stringify(R, null, 2)
|
|
4646
4701
|
} : { mimeType: "application/json" }
|
|
4647
4702
|
});
|
|
4648
|
-
return
|
|
4703
|
+
return ks(q, u);
|
|
4649
4704
|
}, [
|
|
4650
4705
|
x,
|
|
4651
4706
|
v,
|
|
4652
4707
|
e,
|
|
4653
4708
|
T,
|
|
4654
4709
|
u
|
|
4655
|
-
]), [O, g] =
|
|
4710
|
+
]), [O, g] = So({ rootMargin: "200px 0px 200px 0px" }), k = g && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !s?.disablePlayground);
|
|
4656
4711
|
return /* @__PURE__ */ b.jsxs(
|
|
4657
4712
|
"aside",
|
|
4658
4713
|
{
|
|
@@ -4668,7 +4723,7 @@ const qs = ({
|
|
|
4668
4723
|
S
|
|
4669
4724
|
] }),
|
|
4670
4725
|
k && /* @__PURE__ */ b.jsx(
|
|
4671
|
-
|
|
4726
|
+
To,
|
|
4672
4727
|
{
|
|
4673
4728
|
servers: i.data.schema.servers.map((R) => R.url),
|
|
4674
4729
|
operation: e,
|
|
@@ -4699,21 +4754,21 @@ const qs = ({
|
|
|
4699
4754
|
f((q) => (q.set("lang", R.target.value), q));
|
|
4700
4755
|
});
|
|
4701
4756
|
},
|
|
4702
|
-
options:
|
|
4757
|
+
options: Is
|
|
4703
4758
|
}
|
|
4704
4759
|
)
|
|
4705
4760
|
] })
|
|
4706
4761
|
] })
|
|
4707
4762
|
] }),
|
|
4708
4763
|
g && v && /* @__PURE__ */ b.jsx(
|
|
4709
|
-
|
|
4764
|
+
qo,
|
|
4710
4765
|
{
|
|
4711
4766
|
content: v,
|
|
4712
4767
|
onExampleChange: $
|
|
4713
4768
|
}
|
|
4714
4769
|
),
|
|
4715
4770
|
g && e.responses.length > 0 && /* @__PURE__ */ b.jsx(
|
|
4716
|
-
|
|
4771
|
+
Eo,
|
|
4717
4772
|
{
|
|
4718
4773
|
selectedResponse: n,
|
|
4719
4774
|
onSelectResponse: t,
|
|
@@ -4732,65 +4787,6 @@ const qs = ({
|
|
|
4732
4787
|
]
|
|
4733
4788
|
}
|
|
4734
4789
|
);
|
|
4735
|
-
}, Is = pe, Us = ({
|
|
4736
|
-
responses: e,
|
|
4737
|
-
selectedResponse: n,
|
|
4738
|
-
onSelectResponse: t
|
|
4739
|
-
}) => {
|
|
4740
|
-
const [a, c] = ge(
|
|
4741
|
-
e[0]?.content?.[0]?.mediaType ?? ""
|
|
4742
|
-
), s = e.find((o) => o.statusCode === n) ?? e[0], r = /* @__PURE__ */ b.jsxs("div", { className: "flex flex-col bg-muted text-muted-foreground", children: [
|
|
4743
|
-
/* @__PURE__ */ b.jsxs("div", { className: "flex flex-row items-center gap-2 justify-between px-4 py-2", children: [
|
|
4744
|
-
/* @__PURE__ */ b.jsx(je.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((o) => /* @__PURE__ */ b.jsx(
|
|
4745
|
-
je.Trigger,
|
|
4746
|
-
{
|
|
4747
|
-
value: o.statusCode,
|
|
4748
|
-
className: Is(
|
|
4749
|
-
"py-1 -mx-2 px-2 rounded-md",
|
|
4750
|
-
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
4751
|
-
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
4752
|
-
),
|
|
4753
|
-
children: o.statusCode
|
|
4754
|
-
},
|
|
4755
|
-
o.statusCode
|
|
4756
|
-
)) }),
|
|
4757
|
-
s?.content && s.content.length > 1 && /* @__PURE__ */ b.jsxs(
|
|
4758
|
-
na,
|
|
4759
|
-
{
|
|
4760
|
-
value: a,
|
|
4761
|
-
onValueChange: c,
|
|
4762
|
-
children: [
|
|
4763
|
-
/* @__PURE__ */ b.jsx(aa, { className: "h-8 mt-0 max-w-48 text-xs truncate", children: /* @__PURE__ */ b.jsx(oa, { placeholder: "Select a type" }) }),
|
|
4764
|
-
/* @__PURE__ */ b.jsx(ia, { children: s.content.map((o) => /* @__PURE__ */ b.jsx(sa, { value: o.mediaType, children: o.mediaType }, o.mediaType)) })
|
|
4765
|
-
]
|
|
4766
|
-
}
|
|
4767
|
-
)
|
|
4768
|
-
] }),
|
|
4769
|
-
s?.description && /* @__PURE__ */ b.jsx(
|
|
4770
|
-
fo,
|
|
4771
|
-
{
|
|
4772
|
-
className: "text-sm border-t px-4 py-2 text-muted-foreground",
|
|
4773
|
-
content: s.description
|
|
4774
|
-
}
|
|
4775
|
-
)
|
|
4776
|
-
] });
|
|
4777
|
-
return /* @__PURE__ */ b.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ b.jsx(
|
|
4778
|
-
je.Root,
|
|
4779
|
-
{
|
|
4780
|
-
value: n,
|
|
4781
|
-
onValueChange: (o) => {
|
|
4782
|
-
t?.(o);
|
|
4783
|
-
const i = e.find((l) => l.statusCode === o);
|
|
4784
|
-
c(i?.content?.[0]?.mediaType ?? "");
|
|
4785
|
-
},
|
|
4786
|
-
children: e.map((o) => {
|
|
4787
|
-
const i = o.content?.find(
|
|
4788
|
-
(l) => l.mediaType === a
|
|
4789
|
-
);
|
|
4790
|
-
return /* @__PURE__ */ b.jsx(je.Content, { value: o.statusCode, children: /* @__PURE__ */ b.jsx(xr, { schema: i?.schema, cardHeader: r }) }, o.statusCode);
|
|
4791
|
-
})
|
|
4792
|
-
}
|
|
4793
|
-
) });
|
|
4794
4790
|
}, Ls = ["path", "query", "header", "cookie"], Fs = ({
|
|
4795
4791
|
operationFragment: e,
|
|
4796
4792
|
serverUrl: n
|
|
@@ -4841,9 +4837,9 @@ const qs = ({
|
|
|
4841
4837
|
content: t.description
|
|
4842
4838
|
}
|
|
4843
4839
|
),
|
|
4844
|
-
t.parameters && t.parameters.length > 0 &&
|
|
4840
|
+
t.parameters && t.parameters.length > 0 && Ls.flatMap(
|
|
4845
4841
|
(i) => a[i]?.length ? /* @__PURE__ */ b.jsx(
|
|
4846
|
-
|
|
4842
|
+
jo,
|
|
4847
4843
|
{
|
|
4848
4844
|
summary: t.summary ?? void 0,
|
|
4849
4845
|
id: t.slug,
|
|
@@ -4852,7 +4848,7 @@ const qs = ({
|
|
|
4852
4848
|
},
|
|
4853
4849
|
i
|
|
4854
4850
|
) : []
|
|
4855
|
-
)
|
|
4851
|
+
),
|
|
4856
4852
|
Br(t.requestBody?.content?.at(0)?.schema, (i) => /* @__PURE__ */ b.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
4857
4853
|
/* @__PURE__ */ b.jsxs(
|
|
4858
4854
|
Fe,
|
|
@@ -4890,7 +4886,7 @@ const qs = ({
|
|
|
4890
4886
|
}
|
|
4891
4887
|
),
|
|
4892
4888
|
/* @__PURE__ */ b.jsx(
|
|
4893
|
-
|
|
4889
|
+
xo,
|
|
4894
4890
|
{
|
|
4895
4891
|
responses: t.responses,
|
|
4896
4892
|
selectedResponse: r,
|
|
@@ -4902,7 +4898,7 @@ const qs = ({
|
|
|
4902
4898
|
}
|
|
4903
4899
|
),
|
|
4904
4900
|
Br(!c?.disableSidecar, () => /* @__PURE__ */ b.jsx(
|
|
4905
|
-
|
|
4901
|
+
Us,
|
|
4906
4902
|
{
|
|
4907
4903
|
selectedResponse: r,
|
|
4908
4904
|
onSelectResponse: o,
|
|
@@ -5166,4 +5162,4 @@ export {
|
|
|
5166
5162
|
fl as OperationList,
|
|
5167
5163
|
_s as OperationsFragment
|
|
5168
5164
|
};
|
|
5169
|
-
//# sourceMappingURL=OperationList-
|
|
5165
|
+
//# sourceMappingURL=OperationList-sDq65nbj.js.map
|