zudoku 0.1.1-dev.9 → 0.3.0-dev.100
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/LICENSE.md +21 -0
- package/cli.js +5 -1
- package/dist/app/App.d.ts +1 -2
- package/dist/app/App.js +1 -19
- package/dist/app/App.js.map +1 -1
- package/dist/app/demo.d.ts +2 -0
- package/dist/app/demo.js +52 -0
- package/dist/app/demo.js.map +1 -0
- package/dist/app/entry.client.d.ts +2 -0
- package/dist/app/entry.client.js +35 -0
- package/dist/app/entry.client.js.map +1 -0
- package/dist/app/entry.server.d.ts +14 -0
- package/dist/app/entry.server.js +105 -0
- package/dist/app/entry.server.js.map +1 -0
- package/dist/app/main.d.ts +6 -1
- package/dist/app/main.js +79 -4
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.d.ts +2 -0
- package/dist/app/standalone.js +49 -0
- package/dist/app/standalone.js.map +1 -0
- package/dist/app/tailwind.d.ts +1 -1
- package/dist/app/tailwind.js +0 -4
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.js +3 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +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 +3 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/outdated.js +4 -4
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +4 -4
- 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/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +6 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/config.d.ts +34 -36
- package/dist/config/validators/InputSidebarSchema.d.ts +176 -0
- package/dist/config/validators/InputSidebarSchema.js +71 -0
- package/dist/config/validators/InputSidebarSchema.js.map +1 -0
- package/dist/config/validators/SidebarSchema.d.ts +17 -0
- package/dist/config/validators/SidebarSchema.js +76 -0
- package/dist/config/validators/SidebarSchema.js.map +1 -0
- package/dist/config/validators/auth.d.ts +2 -0
- package/dist/config/validators/auth.js +2 -0
- package/dist/config/validators/auth.js.map +1 -0
- package/dist/config/validators/validate.d.ts +1323 -0
- package/dist/config/validators/validate.js +182 -0
- package/dist/config/validators/validate.js.map +1 -0
- package/dist/index.d.ts +2 -6
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +2 -0
- package/dist/internal.js.map +1 -0
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
- package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
- package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
- package/dist/lib/authentication/authentication.d.ts +15 -0
- package/dist/lib/authentication/authentication.js.map +1 -0
- package/dist/lib/authentication/components/SignIn.d.ts +1 -0
- package/dist/lib/authentication/components/SignIn.js +14 -0
- package/dist/lib/authentication/components/SignIn.js.map +1 -0
- package/dist/lib/authentication/components/SignOut.d.ts +1 -0
- package/dist/lib/authentication/components/SignOut.js +12 -0
- package/dist/lib/authentication/components/SignOut.js.map +1 -0
- package/dist/lib/authentication/components/SignUp.d.ts +1 -0
- package/dist/lib/authentication/components/SignUp.js +10 -0
- package/dist/lib/authentication/components/SignUp.js.map +1 -0
- package/dist/lib/authentication/errors.d.ts +15 -0
- package/dist/lib/authentication/errors.js +10 -0
- package/dist/lib/authentication/errors.js.map +1 -0
- package/dist/lib/authentication/hook.d.ts +8 -0
- package/dist/lib/authentication/hook.js +30 -0
- package/dist/lib/authentication/hook.js.map +1 -0
- package/dist/lib/authentication/providers/auth0.d.ts +4 -0
- package/dist/lib/authentication/providers/auth0.js +46 -0
- package/dist/lib/authentication/providers/auth0.js.map +1 -0
- package/dist/lib/authentication/providers/clerk.d.ts +4 -0
- package/dist/lib/authentication/providers/clerk.js +85 -0
- package/dist/lib/authentication/providers/clerk.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +58 -0
- package/dist/lib/authentication/providers/openid.js +256 -0
- package/dist/lib/authentication/providers/openid.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +14 -0
- package/dist/lib/authentication/state.js +6 -0
- package/dist/lib/authentication/state.js.map +1 -0
- package/dist/lib/components/AnchorLink.js.map +1 -0
- package/dist/lib/components/Bootstrap.d.ts +13 -0
- package/dist/lib/components/Bootstrap.js +12 -0
- package/dist/lib/components/Bootstrap.js.map +1 -0
- package/dist/lib/components/CategoryHeading.js.map +1 -0
- package/dist/lib/components/ClientOnly.d.ts +3 -0
- package/dist/lib/components/ClientOnly.js +7 -0
- package/dist/lib/components/ClientOnly.js.map +1 -0
- package/dist/lib/components/DevPortal.d.ts +7 -0
- package/dist/lib/components/DevPortal.js +54 -0
- package/dist/lib/components/DevPortal.js.map +1 -0
- package/dist/lib/components/DeveloperHint.d.ts +5 -0
- package/dist/lib/components/DeveloperHint.js +10 -0
- package/dist/lib/components/DeveloperHint.js.map +1 -0
- package/dist/lib/components/Dialog.d.ts +19 -0
- package/dist/lib/components/Dialog.js +23 -0
- package/dist/lib/components/Dialog.js.map +1 -0
- package/dist/lib/components/ErrorPage.d.ts +6 -0
- package/dist/lib/components/ErrorPage.js +9 -0
- package/dist/lib/components/ErrorPage.js.map +1 -0
- package/dist/lib/components/Header.d.ts +1 -0
- package/dist/lib/components/Header.js +35 -0
- package/dist/lib/components/Header.js.map +1 -0
- package/dist/lib/components/Heading.d.ts +14 -0
- package/dist/lib/components/Heading.js +42 -0
- package/dist/lib/components/Heading.js.map +1 -0
- package/dist/lib/components/InlineCode.d.ts +5 -0
- package/dist/lib/components/InlineCode.js +4 -0
- package/dist/lib/components/InlineCode.js.map +1 -0
- package/dist/lib/components/Layout.js +30 -0
- package/dist/lib/components/Layout.js.map +1 -0
- package/dist/lib/components/Markdown.js.map +1 -0
- package/dist/lib/components/NotFoundPage.d.ts +1 -0
- package/dist/lib/components/NotFoundPage.js +12 -0
- package/dist/lib/components/NotFoundPage.js.map +1 -0
- package/dist/lib/components/Search.d.ts +1 -0
- package/dist/lib/components/Search.js +34 -0
- package/dist/lib/components/Search.js.map +1 -0
- package/dist/lib/components/Select.d.ts +13 -0
- package/dist/lib/components/Select.js +27 -0
- package/dist/lib/components/Select.js.map +1 -0
- package/dist/lib/components/SlotletProvider.d.ts +9 -0
- package/dist/lib/components/SlotletProvider.js +11 -0
- package/dist/lib/components/SlotletProvider.js.map +1 -0
- package/dist/lib/components/Spinner.d.ts +3 -0
- package/dist/lib/components/Spinner.js +4 -0
- package/dist/lib/components/Spinner.js.map +1 -0
- package/dist/lib/components/SyntaxHighlight.d.ts +11 -0
- package/dist/lib/components/SyntaxHighlight.js +42 -0
- package/dist/lib/components/SyntaxHighlight.js.map +1 -0
- package/dist/lib/components/TopNavigation.d.ts +1 -0
- package/dist/lib/components/TopNavigation.js +15 -0
- package/dist/lib/components/TopNavigation.js.map +1 -0
- package/dist/lib/components/context/ComponentsContext.d.ts +10 -0
- package/dist/lib/components/context/ComponentsContext.js.map +1 -0
- package/dist/lib/components/context/PluginSystem.js.map +1 -0
- package/dist/lib/components/context/ThemeContext.d.ts +2 -0
- package/dist/lib/components/context/ThemeContext.js +7 -0
- package/dist/lib/components/context/ThemeContext.js.map +1 -0
- package/dist/lib/components/context/ThemeProvider.d.ts +4 -0
- package/dist/lib/components/context/ThemeProvider.js +23 -0
- package/dist/lib/components/context/ThemeProvider.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +15 -0
- package/dist/lib/components/context/ZudokuContext.js +46 -0
- package/dist/lib/components/context/ZudokuContext.js.map +1 -0
- package/dist/lib/components/context/ZudokuProvider.d.ts +5 -0
- package/dist/lib/components/context/ZudokuProvider.js +16 -0
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -0
- package/dist/lib/components/index.d.ts +32 -0
- package/dist/lib/components/index.js +22 -0
- package/dist/lib/components/index.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +1 -0
- package/dist/lib/components/navigation/Sidebar.js +12 -0
- package/dist/lib/components/navigation/Sidebar.js.map +1 -0
- package/dist/lib/components/navigation/SidebarBadge.d.ts +23 -0
- package/dist/lib/components/navigation/SidebarBadge.js +24 -0
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -0
- package/dist/lib/components/navigation/SidebarCategory.d.ts +5 -0
- package/dist/lib/components/navigation/SidebarCategory.js +33 -0
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -0
- package/dist/lib/components/navigation/SidebarItem.d.ts +12 -0
- package/dist/lib/components/navigation/SidebarItem.js +42 -0
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -0
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +6 -0
- package/dist/lib/components/navigation/SidebarWrapper.js +7 -0
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +16 -0
- package/dist/lib/components/navigation/utils.js +85 -0
- package/dist/lib/components/navigation/utils.js.map +1 -0
- package/dist/lib/core/DevPortalContext.d.ts +74 -0
- package/dist/lib/core/DevPortalContext.js +49 -0
- package/dist/lib/core/DevPortalContext.js.map +1 -0
- package/dist/lib/core/plugins.d.ts +41 -0
- package/dist/lib/core/plugins.js +8 -0
- package/dist/lib/core/plugins.js.map +1 -0
- package/dist/lib/errors/ErrorAlert.d.ts +3 -0
- package/dist/lib/errors/ErrorAlert.js +8 -0
- package/dist/lib/errors/ErrorAlert.js.map +1 -0
- package/dist/lib/errors/RouterError.d.ts +1 -0
- package/dist/lib/errors/RouterError.js +12 -0
- package/dist/lib/errors/RouterError.js.map +1 -0
- package/dist/lib/errors/ServerError.d.ts +3 -0
- package/dist/lib/errors/ServerError.js +6 -0
- package/dist/lib/errors/ServerError.js.map +1 -0
- package/dist/lib/errors/TopLevelError.d.ts +2 -0
- package/dist/lib/errors/TopLevelError.js +7 -0
- package/dist/lib/errors/TopLevelError.js.map +1 -0
- package/dist/lib/oas/graphql/index.js +299 -0
- package/dist/lib/oas/graphql/index.js.map +1 -0
- package/dist/lib/oas/parser/dereference/index.js.map +1 -0
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -0
- package/dist/lib/oas/parser/index.d.ts +21 -0
- package/dist/lib/oas/parser/index.js +84 -0
- package/dist/lib/oas/parser/index.js.map +1 -0
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js +37 -0
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
- package/dist/lib/plugins/api-keys/index.d.ts +29 -0
- package/dist/lib/plugins/api-keys/index.js +92 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -0
- package/dist/lib/plugins/custom-page/index.d.ts +8 -0
- package/dist/lib/plugins/custom-page/index.js +12 -0
- package/dist/lib/plugins/custom-page/index.js.map +1 -0
- package/dist/lib/plugins/markdown/MdxPage.d.ts +6 -0
- package/dist/lib/plugins/markdown/MdxPage.js +30 -0
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -0
- package/dist/lib/plugins/markdown/Toc.js +48 -0
- package/dist/lib/plugins/markdown/Toc.js.map +1 -0
- package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -0
- package/dist/lib/plugins/markdown/generateRoutes.js +22 -0
- package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -0
- package/dist/lib/plugins/markdown/index.d.ts +21 -0
- package/dist/lib/plugins/markdown/index.js +5 -0
- package/dist/lib/plugins/markdown/index.js.map +1 -0
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +12 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js +50 -0
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.js +103 -0
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationListItem.js +23 -0
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterList.d.ts +7 -0
- package/dist/lib/plugins/openapi/ParameterList.js +6 -0
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -0
- package/dist/lib/plugins/openapi/ParameterListItem.js +13 -0
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -0
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +5 -0
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +23 -0
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +13 -0
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +15 -0
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/Route.d.ts +6 -0
- package/dist/lib/plugins/openapi/Route.js +8 -0
- package/dist/lib/plugins/openapi/Route.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
- package/dist/lib/plugins/openapi/SchemaListView.js +27 -0
- package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +25 -0
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.d.ts +8 -0
- package/dist/lib/plugins/openapi/Sidecar.js +128 -0
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -0
- package/dist/lib/plugins/openapi/SidecarBox.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarBox.js +7 -0
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -0
- package/dist/lib/plugins/openapi/SimpleSelect.d.ts +10 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
- package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
- package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/createServer.js +30 -0
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.js +61 -0
- package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
- package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
- package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/client/worker.js +20 -0
- package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
- package/dist/lib/plugins/openapi/context.d.ts +5 -0
- package/dist/lib/plugins/openapi/context.js +11 -0
- package/dist/lib/plugins/openapi/context.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +19 -0
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +58 -0
- package/dist/lib/plugins/openapi/graphql/gql.js +21 -0
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +291 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js +576 -0
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/index.js.map +1 -0
- package/dist/lib/plugins/openapi/index.d.ts +7 -0
- package/dist/lib/plugins/openapi/index.js +146 -0
- package/dist/lib/plugins/openapi/index.js.map +1 -0
- package/dist/lib/plugins/openapi/interfaces.d.ts +16 -0
- package/dist/lib/plugins/openapi/interfaces.js +2 -0
- package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Editor.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/Editor.js +5 -0
- package/dist/lib/plugins/openapi/playground/Editor.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/Headers.js +25 -0
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.js +3 -0
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/PathParams.js +17 -0
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +44 -0
- package/dist/lib/plugins/openapi/playground/Playground.js +125 -0
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +5 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.js +31 -0
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +4 -0
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +22 -0
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/createUrl.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/createUrl.js +11 -0
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +3 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +60 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -0
- package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/prose.js +4 -0
- package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
- package/dist/lib/plugins/openapi/util/urql.js.map +1 -0
- package/dist/lib/plugins/openapi-worker.d.ts +1 -0
- package/dist/lib/plugins/openapi-worker.js +2 -0
- package/dist/lib/plugins/openapi-worker.js.map +1 -0
- package/dist/lib/plugins/redirect/index.d.ts +8 -0
- package/dist/lib/plugins/redirect/index.js +10 -0
- package/dist/lib/plugins/redirect/index.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +2 -0
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +3 -0
- package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/index.d.ts +6 -0
- package/dist/lib/plugins/search-inkeep/index.js +18 -0
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +23 -0
- package/dist/lib/plugins/search-inkeep/inkeep.js +23 -0
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -0
- package/dist/lib/ui/Button.d.ts +11 -0
- package/dist/lib/ui/Button.js +34 -0
- package/dist/lib/ui/Button.js.map +1 -0
- package/dist/lib/ui/Callout.js +50 -0
- package/dist/lib/ui/Callout.js.map +1 -0
- package/dist/lib/ui/Card.js +17 -0
- package/dist/lib/ui/Card.js.map +1 -0
- package/dist/lib/ui/DropdownMenu.d.ts +27 -0
- package/dist/lib/ui/DropdownMenu.js +36 -0
- package/dist/lib/ui/DropdownMenu.js.map +1 -0
- package/dist/lib/ui/Input.js.map +1 -0
- package/dist/lib/ui/Note.js.map +1 -0
- package/dist/lib/ui/Tabs.d.ts +7 -0
- package/dist/lib/ui/Tabs.js +13 -0
- package/dist/lib/ui/Tabs.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +27 -0
- package/dist/lib/util/MdxComponents.js +42 -0
- package/dist/lib/util/MdxComponents.js.map +1 -0
- package/dist/lib/util/cn.js.map +1 -0
- package/dist/lib/util/createVariantComponent.d.ts +9 -0
- package/dist/lib/util/createVariantComponent.js +17 -0
- package/dist/lib/util/createVariantComponent.js.map +1 -0
- package/dist/lib/util/createWaitForNotify.js.map +1 -0
- package/dist/lib/util/fetchTimeout.d.ts +1 -0
- package/dist/lib/util/fetchTimeout.js +14 -0
- package/dist/lib/util/fetchTimeout.js.map +1 -0
- package/dist/lib/util/groupBy.d.ts +1 -0
- package/dist/lib/util/groupBy.js +11 -0
- package/dist/lib/util/groupBy.js.map +1 -0
- package/dist/lib/util/invariant.d.ts +6 -0
- package/dist/lib/util/invariant.js +21 -0
- package/dist/lib/util/invariant.js.map +1 -0
- package/dist/lib/util/joinPath.js +9 -0
- package/dist/lib/util/joinPath.js.map +1 -0
- package/dist/lib/util/logInit.js +9 -0
- package/dist/lib/util/logInit.js.map +1 -0
- package/dist/lib/util/objectEntries.d.ts +4 -0
- package/dist/lib/util/objectEntries.js +2 -0
- package/dist/lib/util/objectEntries.js.map +1 -0
- package/dist/lib/util/pastellize.js.map +1 -0
- package/dist/lib/util/renderIf.d.ts +1 -0
- package/dist/lib/util/renderIf.js +2 -0
- package/dist/lib/util/renderIf.js.map +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
- package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
- package/dist/lib/util/slugify.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +47 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -0
- package/dist/lib/util/useScrollToTop.js.map +1 -0
- package/dist/ts.js +1 -2
- package/dist/ts.js.map +1 -1
- package/dist/vite/build.js +31 -14
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +23 -7
- package/dist/vite/config.js +153 -60
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +8 -5
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +3 -0
- package/dist/vite/dev-server.js +60 -11
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +18 -5
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +4 -0
- package/dist/vite/plugin-api-keys.js +32 -0
- package/dist/vite/plugin-api-keys.js.map +1 -0
- package/dist/vite/plugin-api.js +9 -23
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.js +7 -7
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +4 -0
- package/dist/vite/plugin-component.js +21 -0
- package/dist/vite/plugin-component.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +0 -1
- package/dist/vite/plugin-config.js +2 -12
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +6 -0
- package/dist/vite/plugin-custom-css.js +54 -0
- package/dist/vite/plugin-custom-css.js.map +1 -0
- package/dist/vite/plugin-docs.js +13 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +1 -2
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +3 -1
- package/dist/vite/plugin-mdx.js +7 -5
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +6 -0
- package/dist/vite/plugin-metadata.js +24 -0
- package/dist/vite/plugin-metadata.js.map +1 -0
- package/dist/vite/plugin-redirect.d.ts +4 -0
- package/dist/vite/plugin-redirect.js +32 -0
- package/dist/vite/plugin-redirect.js.map +1 -0
- package/dist/vite/plugin-sidebar.d.ts +3 -0
- package/dist/vite/plugin-sidebar.js +23 -0
- package/dist/vite/plugin-sidebar.js.map +1 -0
- package/dist/vite/plugin.js +11 -3
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender.d.ts +17 -0
- package/dist/vite/prerender.js +79 -0
- package/dist/vite/prerender.js.map +1 -0
- package/lib/AuthenticationPlugin-CH5NSVOu.js +55 -0
- package/lib/AuthenticationPlugin-CH5NSVOu.js.map +1 -0
- package/lib/CategoryHeading-BWq12Bfa.js +10 -0
- package/lib/CategoryHeading-BWq12Bfa.js.map +1 -0
- package/lib/Combination-D-9IH0zy.js +2789 -0
- package/lib/Combination-D-9IH0zy.js.map +1 -0
- package/lib/DeveloperHint-BQSFXH01.js +10 -0
- package/lib/DeveloperHint-BQSFXH01.js.map +1 -0
- package/lib/InkeepCustomTrigger-CE5-K5ex.js +6 -0
- package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +1 -0
- package/lib/Input-HmAaR6kw.js +2239 -0
- package/lib/Input-HmAaR6kw.js.map +1 -0
- package/lib/Markdown-B_Gax7at.js +14108 -0
- package/lib/Markdown-B_Gax7at.js.map +1 -0
- package/lib/MdxPage-oN3huD58.js +187 -0
- package/lib/MdxPage-oN3huD58.js.map +1 -0
- package/lib/OperationList-Ctj0ihBN.js +448 -0
- package/lib/OperationList-Ctj0ihBN.js.map +1 -0
- package/lib/Route-DAF15JAU.js +14 -0
- package/lib/Route-DAF15JAU.js.map +1 -0
- package/lib/SlotletProvider-CzMAO73_.js +82 -0
- package/lib/SlotletProvider-CzMAO73_.js.map +1 -0
- package/lib/Spinner-BCz1kNGw.js +276 -0
- package/lib/Spinner-BCz1kNGw.js.map +1 -0
- package/lib/ZudokuContext-BIZ8zHbZ.js +1084 -0
- package/lib/ZudokuContext-BIZ8zHbZ.js.map +1 -0
- package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
- package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
- package/lib/assets/index-BPdJm2ty.js +4765 -0
- package/lib/assets/index-BPdJm2ty.js.map +1 -0
- package/lib/assets/worker-CR7aeKop.js +14900 -0
- package/lib/assets/worker-CR7aeKop.js.map +1 -0
- package/lib/index-7kcHaXD6.js +1771 -0
- package/lib/index-7kcHaXD6.js.map +1 -0
- package/lib/index-CtKkHGcd.js +5942 -0
- package/lib/index-CtKkHGcd.js.map +1 -0
- package/lib/index-D-9Z7HSn.js +124 -0
- package/lib/index-D-9Z7HSn.js.map +1 -0
- package/lib/index-pI9JkN46.js +4765 -0
- package/lib/index-pI9JkN46.js.map +1 -0
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/jsx-runtime-B6kdoens.js +635 -0
- package/lib/jsx-runtime-B6kdoens.js.map +1 -0
- package/lib/prism-bash.min-DadFsM4Z.js +7 -0
- package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
- package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
- package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
- package/lib/prism-java.min-d5iT_mOd.js +7 -0
- package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
- package/lib/prism-json.min-B1GJqK1k.js +2 -0
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
- package/lib/prism-markup-templating-DZrrEs0A.js +62 -0
- package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
- package/lib/prism-php.min-o7FpoMP_.js +11 -0
- package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
- package/lib/prism-ruby.min-C7LwcKyz.js +10 -0
- package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
- package/lib/router-BiRCp01d.js +2971 -0
- package/lib/router-BiRCp01d.js.map +1 -0
- package/lib/slugify-CiPVjteN.js +28 -0
- package/lib/slugify-CiPVjteN.js.map +1 -0
- package/lib/state-DsXXkBLH.js +288 -0
- package/lib/state-DsXXkBLH.js.map +1 -0
- package/lib/urql-DrBfkb92.js +1591 -0
- package/lib/urql-DrBfkb92.js.map +1 -0
- package/lib/utils-Bh4upQ0e.js +749 -0
- package/lib/utils-Bh4upQ0e.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +38 -0
- package/lib/zudoku.auth-auth0.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +79 -0
- package/lib/zudoku.auth-clerk.js.map +1 -0
- package/lib/zudoku.auth-openid.js +1081 -0
- package/lib/zudoku.auth-openid.js.map +1 -0
- package/lib/zudoku.components.js +2273 -0
- package/lib/zudoku.components.js.map +1 -0
- package/lib/zudoku.openapi-worker.js +15114 -0
- package/lib/zudoku.openapi-worker.js.map +1 -0
- package/lib/zudoku.plugin-api-keys.js +325 -0
- package/lib/zudoku.plugin-api-keys.js.map +1 -0
- package/lib/zudoku.plugin-custom-page.js +13 -0
- package/lib/zudoku.plugin-custom-page.js.map +1 -0
- package/lib/zudoku.plugin-markdown.js +31 -0
- package/lib/zudoku.plugin-markdown.js.map +1 -0
- package/lib/zudoku.plugin-openapi.js +14 -0
- package/lib/zudoku.plugin-openapi.js.map +1 -0
- package/lib/zudoku.plugin-redirect.js +11 -0
- package/lib/zudoku.plugin-redirect.js.map +1 -0
- package/lib/zudoku.plugin-search-inkeep.js +51 -0
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -0
- package/package.json +112 -38
- package/src/app/App.tsx +0 -30
- package/src/app/demo-cdn.html +26 -0
- package/src/app/demo.html +18 -0
- package/src/app/demo.tsx +61 -0
- package/src/app/entry.client.tsx +47 -0
- package/src/app/entry.server.tsx +160 -0
- package/src/app/main.css +84 -3
- package/src/app/main.tsx +95 -9
- package/src/app/standalone.html +20 -0
- package/src/app/standalone.tsx +53 -0
- package/src/app/tailwind.ts +2 -6
- package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
- package/src/lib/authentication/authentication.ts +13 -0
- package/src/lib/authentication/components/SignIn.tsx +15 -0
- package/src/lib/authentication/components/SignOut.tsx +13 -0
- package/src/lib/authentication/components/SignUp.tsx +11 -0
- package/src/lib/authentication/errors.ts +21 -0
- package/src/lib/authentication/hook.ts +34 -0
- package/src/lib/authentication/providers/auth0.tsx +63 -0
- package/src/lib/authentication/providers/clerk.tsx +98 -0
- package/src/lib/authentication/providers/openid.tsx +384 -0
- package/src/lib/authentication/state.ts +21 -0
- package/src/lib/components/Bootstrap.tsx +45 -0
- package/src/lib/components/CategoryHeading.tsx +16 -0
- package/src/lib/components/ClientOnly.tsx +13 -0
- package/src/lib/components/DevPortal.tsx +111 -0
- package/src/lib/components/DeveloperHint.tsx +25 -0
- package/src/lib/components/Dialog.tsx +119 -0
- package/src/lib/components/ErrorPage.tsx +28 -0
- package/src/lib/components/Header.tsx +142 -0
- package/src/lib/components/Heading.tsx +79 -0
- package/src/lib/components/InlineCode.tsx +19 -0
- package/src/lib/components/Layout.tsx +70 -0
- package/src/lib/components/NotFoundPage.tsx +33 -0
- package/src/lib/components/Search.tsx +60 -0
- package/src/lib/components/Select.tsx +157 -0
- package/src/lib/components/SlotletProvider.tsx +25 -0
- package/src/lib/components/Spinner.tsx +5 -0
- package/src/lib/components/SyntaxHighlight.tsx +114 -0
- package/src/lib/components/TopNavigation.tsx +37 -0
- package/src/lib/components/context/ThemeContext.tsx +8 -0
- package/src/lib/components/context/ThemeProvider.tsx +27 -0
- package/src/lib/components/context/ZudokuContext.ts +58 -0
- package/src/lib/components/context/ZudokuProvider.tsx +26 -0
- package/src/lib/components/index.ts +25 -0
- package/src/lib/components/navigation/Sidebar.tsx +24 -0
- package/src/lib/components/navigation/SidebarBadge.tsx +43 -0
- package/src/lib/components/navigation/SidebarCategory.tsx +105 -0
- package/src/lib/components/navigation/SidebarItem.tsx +128 -0
- package/src/lib/components/navigation/SidebarWrapper.tsx +24 -0
- package/src/lib/components/navigation/utils.ts +117 -0
- package/src/lib/core/DevPortalContext.ts +134 -0
- package/src/lib/core/plugins.ts +80 -0
- package/src/lib/errors/ErrorAlert.tsx +21 -0
- package/src/lib/errors/RouterError.tsx +13 -0
- package/src/lib/errors/ServerError.tsx +5 -0
- package/src/lib/errors/TopLevelError.tsx +8 -0
- package/src/lib/oas/graphql/index.ts +433 -0
- package/src/lib/oas/parser/index.ts +115 -0
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +94 -0
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +165 -0
- package/src/lib/plugins/api-keys/index.tsx +146 -0
- package/src/lib/plugins/custom-page/index.tsx +22 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +131 -0
- package/src/lib/plugins/markdown/Toc.tsx +135 -0
- package/src/lib/plugins/markdown/generateRoutes.tsx +39 -0
- package/src/lib/plugins/markdown/index.tsx +34 -0
- package/src/lib/plugins/openapi/ColorizedParam.tsx +87 -0
- package/src/lib/plugins/openapi/OperationList.tsx +163 -0
- package/src/lib/plugins/openapi/OperationListItem.tsx +114 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +35 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +62 -0
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +39 -0
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +39 -0
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +60 -0
- package/src/lib/plugins/openapi/Route.tsx +21 -0
- package/src/lib/plugins/openapi/SchemaListView.tsx +75 -0
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +125 -0
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +207 -0
- package/src/lib/plugins/openapi/SidecarBox.tsx +47 -0
- package/src/lib/plugins/openapi/SimpleSelect.tsx +38 -0
- package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
- package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
- package/src/lib/plugins/openapi/client/createServer.ts +33 -0
- package/src/lib/plugins/openapi/client/createWorkerClient.ts +80 -0
- package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
- package/src/lib/plugins/openapi/client/worker.ts +30 -0
- package/src/lib/plugins/openapi/context.tsx +16 -0
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +111 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +70 -0
- package/src/lib/plugins/openapi/graphql/graphql.ts +854 -0
- package/src/lib/plugins/openapi/index.tsx +217 -0
- package/src/lib/plugins/openapi/interfaces.ts +10 -0
- package/src/lib/plugins/openapi/playground/Editor.tsx +4 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +87 -0
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +6 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +89 -0
- package/src/lib/plugins/openapi/playground/Playground.tsx +371 -0
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +40 -0
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +130 -0
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +32 -0
- package/src/lib/plugins/openapi/playground/createUrl.ts +19 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +72 -0
- package/src/lib/plugins/openapi/util/prose.ts +7 -0
- package/src/lib/plugins/openapi-worker.ts +1 -0
- package/src/lib/plugins/redirect/index.tsx +19 -0
- package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +3 -0
- package/src/lib/plugins/search-inkeep/index.tsx +63 -0
- package/src/lib/plugins/search-inkeep/inkeep.ts +32 -0
- package/src/lib/ui/Button.tsx +55 -0
- package/src/lib/ui/Callout.tsx +87 -0
- package/src/lib/ui/Card.tsx +82 -0
- package/src/lib/ui/DropdownMenu.tsx +199 -0
- package/src/lib/ui/Tabs.tsx +52 -0
- package/src/lib/util/MdxComponents.tsx +87 -0
- package/src/lib/util/createVariantComponent.tsx +35 -0
- package/src/lib/util/fetchTimeout.tsx +21 -0
- package/src/lib/util/groupBy.ts +19 -0
- package/src/lib/util/invariant.ts +26 -0
- package/src/lib/util/joinPath.tsx +11 -0
- package/src/lib/util/logInit.ts +9 -0
- package/src/lib/util/objectEntries.ts +5 -0
- package/src/lib/util/renderIf.ts +4 -0
- package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
- package/src/lib/util/useScrollToAnchor.ts +59 -0
- package/dist/app/DevPortal.d.ts +0 -25
- package/dist/app/DevPortal.js +0 -41
- package/dist/app/DevPortal.js.map +0 -1
- package/dist/app/Heading.d.ts +0 -9
- package/dist/app/Heading.js +0 -27
- package/dist/app/Heading.js.map +0 -1
- package/dist/app/authentication/authentication.d.ts +0 -13
- package/dist/app/authentication/authentication.js.map +0 -1
- package/dist/app/authentication/clerk.d.ts +0 -5
- package/dist/app/authentication/clerk.js +0 -36
- package/dist/app/authentication/clerk.js.map +0 -1
- package/dist/app/authentication/openid.d.ts +0 -11
- package/dist/app/authentication/openid.js +0 -118
- package/dist/app/authentication/openid.js.map +0 -1
- package/dist/app/components/AnchorLink.js.map +0 -1
- package/dist/app/components/CategoryHeading.js.map +0 -1
- package/dist/app/components/Dialog.d.ts +0 -19
- package/dist/app/components/Dialog.js +0 -23
- package/dist/app/components/Dialog.js.map +0 -1
- package/dist/app/components/DynamicIcon.d.ts +0 -6
- package/dist/app/components/DynamicIcon.js +0 -6
- package/dist/app/components/DynamicIcon.js.map +0 -1
- package/dist/app/components/Header.d.ts +0 -1
- package/dist/app/components/Header.js +0 -15
- package/dist/app/components/Header.js.map +0 -1
- package/dist/app/components/Input.js.map +0 -1
- package/dist/app/components/Layout.js +0 -31
- package/dist/app/components/Layout.js.map +0 -1
- package/dist/app/components/Markdown.js.map +0 -1
- package/dist/app/components/SyntaxHighlight.d.ts +0 -9
- package/dist/app/components/SyntaxHighlight.js +0 -33
- package/dist/app/components/SyntaxHighlight.js.map +0 -1
- package/dist/app/components/TopNavigation.d.ts +0 -1
- package/dist/app/components/TopNavigation.js +0 -11
- package/dist/app/components/TopNavigation.js.map +0 -1
- package/dist/app/components/context/ComponentsContext.d.ts +0 -10
- package/dist/app/components/context/ComponentsContext.js.map +0 -1
- package/dist/app/components/context/DevPortalProvider.d.ts +0 -9
- package/dist/app/components/context/DevPortalProvider.js +0 -39
- package/dist/app/components/context/DevPortalProvider.js.map +0 -1
- package/dist/app/components/context/PluginSystem.js.map +0 -1
- package/dist/app/components/context/ThemeContext.d.ts +0 -5
- package/dist/app/components/context/ThemeContext.js +0 -33
- package/dist/app/components/context/ThemeContext.js.map +0 -1
- package/dist/app/components/context/ViewportAnchorContext.js.map +0 -1
- package/dist/app/components/navigation/SideNavigation.d.ts +0 -1
- package/dist/app/components/navigation/SideNavigation.js +0 -11
- package/dist/app/components/navigation/SideNavigation.js.map +0 -1
- package/dist/app/components/navigation/SideNavigationCategory.d.ts +0 -4
- package/dist/app/components/navigation/SideNavigationCategory.js +0 -26
- package/dist/app/components/navigation/SideNavigationCategory.js.map +0 -1
- package/dist/app/components/navigation/SideNavigationItem.d.ts +0 -12
- package/dist/app/components/navigation/SideNavigationItem.js +0 -38
- package/dist/app/components/navigation/SideNavigationItem.js.map +0 -1
- package/dist/app/components/navigation/SideNavigationWrapper.d.ts +0 -3
- package/dist/app/components/navigation/SideNavigationWrapper.js +0 -6
- package/dist/app/components/navigation/SideNavigationWrapper.js.map +0 -1
- package/dist/app/components/navigation/useNavigationCollapsibleState.d.ts +0 -6
- package/dist/app/components/navigation/useNavigationCollapsibleState.js +0 -16
- package/dist/app/components/navigation/useNavigationCollapsibleState.js.map +0 -1
- package/dist/app/components/navigation/util.d.ts +0 -8
- package/dist/app/components/navigation/util.js +0 -15
- package/dist/app/components/navigation/util.js.map +0 -1
- package/dist/app/core/DevPortalContext.d.ts +0 -80
- package/dist/app/core/DevPortalContext.js +0 -68
- package/dist/app/core/DevPortalContext.js.map +0 -1
- package/dist/app/core/helmet.d.ts +0 -4
- package/dist/app/core/helmet.js +0 -5
- package/dist/app/core/helmet.js.map +0 -1
- package/dist/app/core/icons.d.ts +0 -1
- package/dist/app/core/icons.js +0 -2
- package/dist/app/core/icons.js.map +0 -1
- package/dist/app/core/plugins.d.ts +0 -24
- package/dist/app/core/plugins.js +0 -4
- package/dist/app/core/plugins.js.map +0 -1
- package/dist/app/core/router.d.ts +0 -1
- package/dist/app/core/router.js +0 -2
- package/dist/app/core/router.js.map +0 -1
- package/dist/app/core/types/combine.d.ts +0 -4
- package/dist/app/core/types/combine.js +0 -2
- package/dist/app/core/types/combine.js.map +0 -1
- package/dist/app/oas/graphql/index.js +0 -290
- package/dist/app/oas/graphql/index.js.map +0 -1
- package/dist/app/oas/graphql/server.js +0 -8
- package/dist/app/oas/graphql/server.js.map +0 -1
- package/dist/app/oas/parser/dereference/index.js.map +0 -1
- package/dist/app/oas/parser/dereference/resolveRef.js.map +0 -1
- package/dist/app/oas/parser/index.d.ts +0 -21
- package/dist/app/oas/parser/index.js +0 -58
- package/dist/app/oas/parser/index.js.map +0 -1
- package/dist/app/oas/parser/upgrade/index.js.map +0 -1
- package/dist/app/plugins/api-key/SettingsApiKeys.d.ts +0 -4
- package/dist/app/plugins/api-key/SettingsApiKeys.js +0 -7
- package/dist/app/plugins/api-key/SettingsApiKeys.js.map +0 -1
- package/dist/app/plugins/api-key/index.d.ts +0 -32
- package/dist/app/plugins/api-key/index.js +0 -55
- package/dist/app/plugins/api-key/index.js.map +0 -1
- package/dist/app/plugins/markdown/MdxPage.d.ts +0 -3
- package/dist/app/plugins/markdown/MdxPage.js +0 -55
- package/dist/app/plugins/markdown/MdxPage.js.map +0 -1
- package/dist/app/plugins/markdown/Toc.js +0 -40
- package/dist/app/plugins/markdown/Toc.js.map +0 -1
- package/dist/app/plugins/markdown/generateRoutes.d.ts +0 -3
- package/dist/app/plugins/markdown/generateRoutes.js +0 -50
- package/dist/app/plugins/markdown/generateRoutes.js.map +0 -1
- package/dist/app/plugins/markdown/index.d.ts +0 -18
- package/dist/app/plugins/markdown/index.js +0 -9
- package/dist/app/plugins/markdown/index.js.map +0 -1
- package/dist/app/plugins/openapi/ColorizedParam.d.ts +0 -12
- package/dist/app/plugins/openapi/ColorizedParam.js +0 -45
- package/dist/app/plugins/openapi/ColorizedParam.js.map +0 -1
- package/dist/app/plugins/openapi/MakeRequest.d.ts +0 -4
- package/dist/app/plugins/openapi/MakeRequest.js +0 -23
- package/dist/app/plugins/openapi/MakeRequest.js.map +0 -1
- package/dist/app/plugins/openapi/MethodBadge.d.ts +0 -13
- package/dist/app/plugins/openapi/MethodBadge.js +0 -26
- package/dist/app/plugins/openapi/MethodBadge.js.map +0 -1
- package/dist/app/plugins/openapi/OperationList.js +0 -82
- package/dist/app/plugins/openapi/OperationList.js.map +0 -1
- package/dist/app/plugins/openapi/OperationListItem.js +0 -15
- package/dist/app/plugins/openapi/OperationListItem.js.map +0 -1
- package/dist/app/plugins/openapi/ParameterList.d.ts +0 -7
- package/dist/app/plugins/openapi/ParameterList.js +0 -5
- package/dist/app/plugins/openapi/ParameterList.js.map +0 -1
- package/dist/app/plugins/openapi/ParameterListItem.js +0 -13
- package/dist/app/plugins/openapi/ParameterListItem.js.map +0 -1
- package/dist/app/plugins/openapi/RequestBodySidecarBox.js +0 -19
- package/dist/app/plugins/openapi/RequestBodySidecarBox.js.map +0 -1
- package/dist/app/plugins/openapi/ResponsesSidecarBox.js +0 -15
- package/dist/app/plugins/openapi/ResponsesSidecarBox.js.map +0 -1
- package/dist/app/plugins/openapi/Select.d.ts +0 -9
- package/dist/app/plugins/openapi/Select.js +0 -5
- package/dist/app/plugins/openapi/Select.js.map +0 -1
- package/dist/app/plugins/openapi/Sidecar.d.ts +0 -4
- package/dist/app/plugins/openapi/Sidecar.js +0 -94
- package/dist/app/plugins/openapi/Sidecar.js.map +0 -1
- package/dist/app/plugins/openapi/SidecarBox.d.ts +0 -8
- package/dist/app/plugins/openapi/SidecarBox.js +0 -6
- package/dist/app/plugins/openapi/SidecarBox.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/fragment-masking.d.ts +0 -19
- package/dist/app/plugins/openapi/graphql/fragment-masking.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/gql.d.ts +0 -58
- package/dist/app/plugins/openapi/graphql/gql.js +0 -22
- package/dist/app/plugins/openapi/graphql/gql.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/graphql.d.ts +0 -282
- package/dist/app/plugins/openapi/graphql/graphql.js +0 -526
- package/dist/app/plugins/openapi/graphql/graphql.js.map +0 -1
- package/dist/app/plugins/openapi/graphql/index.js.map +0 -1
- package/dist/app/plugins/openapi/index.d.ts +0 -21
- package/dist/app/plugins/openapi/index.js +0 -91
- package/dist/app/plugins/openapi/index.js.map +0 -1
- package/dist/app/plugins/openapi/playground/Playground.d.ts +0 -8
- package/dist/app/plugins/openapi/playground/Playground.js +0 -98
- package/dist/app/plugins/openapi/playground/Playground.js.map +0 -1
- package/dist/app/plugins/openapi/util/generateSchemaExample.d.ts +0 -3
- package/dist/app/plugins/openapi/util/generateSchemaExample.js +0 -52
- package/dist/app/plugins/openapi/util/generateSchemaExample.js.map +0 -1
- package/dist/app/plugins/openapi/util/urql.js.map +0 -1
- package/dist/app/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
- package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js +0 -47
- package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
- package/dist/app/plugins/openapi/worker/worker.js +0 -20
- package/dist/app/plugins/openapi/worker/worker.js.map +0 -1
- package/dist/app/plugins/redirect/index.d.ts +0 -10
- package/dist/app/plugins/redirect/index.js +0 -11
- package/dist/app/plugins/redirect/index.js.map +0 -1
- package/dist/app/ui/Button.d.ts +0 -11
- package/dist/app/ui/Button.js +0 -34
- package/dist/app/ui/Button.js.map +0 -1
- package/dist/app/ui/Callout.js +0 -50
- package/dist/app/ui/Callout.js.map +0 -1
- package/dist/app/ui/Card.js +0 -17
- package/dist/app/ui/Card.js.map +0 -1
- package/dist/app/ui/Note.js.map +0 -1
- package/dist/app/ui/Tabs.d.ts +0 -7
- package/dist/app/ui/Tabs.js +0 -13
- package/dist/app/ui/Tabs.js.map +0 -1
- package/dist/app/util/MdxComponents.d.ts +0 -27
- package/dist/app/util/MdxComponents.js +0 -40
- package/dist/app/util/MdxComponents.js.map +0 -1
- package/dist/app/util/cn.js.map +0 -1
- package/dist/app/util/createVariantComponent.d.ts +0 -15
- package/dist/app/util/createVariantComponent.js +0 -12
- package/dist/app/util/createVariantComponent.js.map +0 -1
- package/dist/app/util/createWaitForNotify.js.map +0 -1
- package/dist/app/util/groupBy.d.ts +0 -6
- package/dist/app/util/groupBy.js +0 -9
- package/dist/app/util/groupBy.js.map +0 -1
- package/dist/app/util/joinPath.js +0 -8
- package/dist/app/util/joinPath.js.map +0 -1
- package/dist/app/util/pastellize.js.map +0 -1
- package/dist/app/util/slugify.js.map +0 -1
- package/dist/app/util/traverseNavigation.d.ts +0 -6
- package/dist/app/util/traverseNavigation.js +0 -30
- package/dist/app/util/traverseNavigation.js.map +0 -1
- package/dist/app/util/useScrollToAnchor.js +0 -33
- package/dist/app/util/useScrollToAnchor.js.map +0 -1
- package/dist/app/util/useScrollToTop.js.map +0 -1
- package/dist/auth.d.ts +0 -2
- package/dist/auth.js +0 -3
- package/dist/auth.js.map +0 -1
- package/dist/plugins.d.ts +0 -4
- package/dist/plugins.js +0 -6
- package/dist/plugins.js.map +0 -1
- package/dist/vite/plugin-html.d.ts +0 -3
- package/dist/vite/plugin-html.js +0 -50
- package/dist/vite/plugin-html.js.map +0 -1
- package/src/app/DevPortal.tsx +0 -115
- package/src/app/Heading.tsx +0 -60
- package/src/app/authentication/authentication.ts +0 -18
- package/src/app/authentication/clerk.ts +0 -47
- package/src/app/authentication/openid.ts +0 -192
- package/src/app/components/CategoryHeading.tsx +0 -16
- package/src/app/components/Dialog.tsx +0 -119
- package/src/app/components/DynamicIcon.tsx +0 -60
- package/src/app/components/Header.tsx +0 -69
- package/src/app/components/Layout.tsx +0 -56
- package/src/app/components/SyntaxHighlight.tsx +0 -94
- package/src/app/components/TopNavigation.tsx +0 -32
- package/src/app/components/context/DevPortalProvider.ts +0 -54
- package/src/app/components/context/ThemeContext.tsx +0 -46
- package/src/app/components/navigation/SideNavigation.tsx +0 -18
- package/src/app/components/navigation/SideNavigationCategory.tsx +0 -74
- package/src/app/components/navigation/SideNavigationItem.tsx +0 -143
- package/src/app/components/navigation/SideNavigationWrapper.tsx +0 -15
- package/src/app/components/navigation/useNavigationCollapsibleState.ts +0 -27
- package/src/app/components/navigation/util.ts +0 -38
- package/src/app/core/DevPortalContext.ts +0 -164
- package/src/app/core/helmet.ts +0 -5
- package/src/app/core/icons.tsx +0 -1
- package/src/app/core/plugins.ts +0 -43
- package/src/app/core/router.tsx +0 -1
- package/src/app/core/types/combine.ts +0 -16
- package/src/app/oas/graphql/index.ts +0 -422
- package/src/app/oas/graphql/server.ts +0 -10
- package/src/app/oas/parser/index.ts +0 -94
- package/src/app/plugins/api-key/SettingsApiKeys.tsx +0 -22
- package/src/app/plugins/api-key/index.tsx +0 -123
- package/src/app/plugins/markdown/MdxPage.tsx +0 -128
- package/src/app/plugins/markdown/Toc.tsx +0 -122
- package/src/app/plugins/markdown/generateRoutes.tsx +0 -72
- package/src/app/plugins/markdown/index.tsx +0 -31
- package/src/app/plugins/openapi/ColorizedParam.tsx +0 -82
- package/src/app/plugins/openapi/MakeRequest.tsx +0 -49
- package/src/app/plugins/openapi/MethodBadge.tsx +0 -36
- package/src/app/plugins/openapi/OperationList.tsx +0 -117
- package/src/app/plugins/openapi/OperationListItem.tsx +0 -55
- package/src/app/plugins/openapi/ParameterList.tsx +0 -32
- package/src/app/plugins/openapi/ParameterListItem.tsx +0 -60
- package/src/app/plugins/openapi/RequestBodySidecarBox.tsx +0 -51
- package/src/app/plugins/openapi/ResponsesSidecarBox.tsx +0 -60
- package/src/app/plugins/openapi/Select.tsx +0 -35
- package/src/app/plugins/openapi/Sidecar.tsx +0 -160
- package/src/app/plugins/openapi/SidecarBox.tsx +0 -36
- package/src/app/plugins/openapi/graphql/fragment-masking.ts +0 -111
- package/src/app/plugins/openapi/graphql/gql.ts +0 -70
- package/src/app/plugins/openapi/graphql/graphql.ts +0 -795
- package/src/app/plugins/openapi/index.tsx +0 -142
- package/src/app/plugins/openapi/playground/Playground.tsx +0 -309
- package/src/app/plugins/openapi/queries.graphql +0 -6
- package/src/app/plugins/openapi/util/generateSchemaExample.ts +0 -59
- package/src/app/plugins/openapi/worker/createSharedWorkerClient.ts +0 -60
- package/src/app/plugins/openapi/worker/worker.ts +0 -30
- package/src/app/plugins/redirect/index.tsx +0 -20
- package/src/app/ui/Button.tsx +0 -56
- package/src/app/ui/Callout.tsx +0 -87
- package/src/app/ui/Card.tsx +0 -82
- package/src/app/ui/Tabs.tsx +0 -52
- package/src/app/util/MdxComponents.tsx +0 -70
- package/src/app/util/createVariantComponent.tsx +0 -30
- package/src/app/util/groupBy.ts +0 -24
- package/src/app/util/joinPath.tsx +0 -10
- package/src/app/util/traverseNavigation.ts +0 -55
- package/src/app/util/useScrollToAnchor.ts +0 -38
- /package/dist/{app → lib}/authentication/authentication.js +0 -0
- /package/dist/{app → lib}/components/AnchorLink.d.ts +0 -0
- /package/dist/{app → lib}/components/AnchorLink.js +0 -0
- /package/dist/{app → lib}/components/CategoryHeading.d.ts +0 -0
- /package/dist/{app → lib}/components/CategoryHeading.js +0 -0
- /package/dist/{app → lib}/components/Layout.d.ts +0 -0
- /package/dist/{app → lib}/components/Markdown.d.ts +0 -0
- /package/dist/{app → lib}/components/Markdown.js +0 -0
- /package/dist/{app → lib}/components/context/ComponentsContext.js +0 -0
- /package/dist/{app → lib}/components/context/PluginSystem.d.ts +0 -0
- /package/dist/{app → lib}/components/context/PluginSystem.js +0 -0
- /package/dist/{app → lib}/components/context/ViewportAnchorContext.d.ts +0 -0
- /package/dist/{app → lib}/components/context/ViewportAnchorContext.js +0 -0
- /package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/index.js +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/resolveRef.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/dereference/resolveRef.js +0 -0
- /package/dist/{app → lib}/oas/parser/upgrade/index.d.ts +0 -0
- /package/dist/{app → lib}/oas/parser/upgrade/index.js +0 -0
- /package/dist/{app → lib}/plugins/markdown/Toc.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/OperationList.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/OperationListItem.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/ParameterListItem.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.d.ts +0 -0
- /package/dist/{app/plugins/openapi/worker → lib/plugins/openapi/client}/worker.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/graphql/index.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/graphql/index.js +0 -0
- /package/dist/{app → lib}/plugins/openapi/util/urql.d.ts +0 -0
- /package/dist/{app → lib}/plugins/openapi/util/urql.js +0 -0
- /package/dist/{app → lib}/ui/Callout.d.ts +0 -0
- /package/dist/{app → lib}/ui/Card.d.ts +0 -0
- /package/dist/{app/components → lib/ui}/Input.d.ts +0 -0
- /package/dist/{app/components → lib/ui}/Input.js +0 -0
- /package/dist/{app → lib}/ui/Note.d.ts +0 -0
- /package/dist/{app → lib}/ui/Note.js +0 -0
- /package/dist/{app → lib}/util/cn.d.ts +0 -0
- /package/dist/{app → lib}/util/cn.js +0 -0
- /package/dist/{app → lib}/util/createWaitForNotify.d.ts +0 -0
- /package/dist/{app → lib}/util/createWaitForNotify.js +0 -0
- /package/dist/{app → lib}/util/joinPath.d.ts +0 -0
- /package/dist/{app/oas/graphql/server.d.ts → lib/util/logInit.d.ts} +0 -0
- /package/dist/{app → lib}/util/pastellize.d.ts +0 -0
- /package/dist/{app → lib}/util/pastellize.js +0 -0
- /package/dist/{app → lib}/util/slugify.d.ts +0 -0
- /package/dist/{app → lib}/util/slugify.js +0 -0
- /package/dist/{app → lib}/util/useScrollToAnchor.d.ts +0 -0
- /package/dist/{app → lib}/util/useScrollToTop.d.ts +0 -0
- /package/dist/{app → lib}/util/useScrollToTop.js +0 -0
- /package/src/{app → lib}/components/AnchorLink.tsx +0 -0
- /package/src/{app → lib}/components/Markdown.tsx +0 -0
- /package/src/{app → lib}/components/context/ComponentsContext.tsx +0 -0
- /package/src/{app → lib}/components/context/PluginSystem.ts +0 -0
- /package/src/{app → lib}/components/context/ViewportAnchorContext.tsx +0 -0
- /package/src/{app → lib}/oas/parser/dereference/index.ts +0 -0
- /package/src/{app → lib}/oas/parser/dereference/resolveRef.ts +0 -0
- /package/src/{app → lib}/oas/parser/schemas/v3.0.json +0 -0
- /package/src/{app → lib}/oas/parser/schemas/v3.1.json +0 -0
- /package/src/{app → lib}/oas/parser/upgrade/index.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/graphql/index.ts +0 -0
- /package/src/{app → lib}/plugins/openapi/util/urql.ts +0 -0
- /package/src/{app/components → lib/ui}/Input.tsx +0 -0
- /package/src/{app → lib}/ui/Note.tsx +0 -0
- /package/src/{app → lib}/util/cn.ts +0 -0
- /package/src/{app → lib}/util/createWaitForNotify.ts +0 -0
- /package/src/{app → lib}/util/pastellize.ts +0 -0
- /package/src/{app → lib}/util/slugify.ts +0 -0
- /package/src/{app → lib}/util/useScrollToTop.ts +0 -0
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Heading } from "../../Heading.js";
|
|
3
|
-
import { CategoryHeading } from "../../components/CategoryHeading.js";
|
|
4
|
-
import { Markdown, ProseClasses } from "../../components/Markdown.js";
|
|
5
|
-
import { cn } from "../../util/cn.js";
|
|
6
|
-
import { OperationListItem } from "./OperationListItem.js";
|
|
7
|
-
import { useOasConfig } from "./index.js";
|
|
8
|
-
import { graphql } from "./graphql/index.js";
|
|
9
|
-
import { useQuery } from "./util/urql.js";
|
|
10
|
-
export const OperationsFragment = graphql(/* GraphQL */ `
|
|
11
|
-
fragment OperationsFragment on OperationItem {
|
|
12
|
-
slug
|
|
13
|
-
summary
|
|
14
|
-
method
|
|
15
|
-
description
|
|
16
|
-
operationId
|
|
17
|
-
contentTypes
|
|
18
|
-
path
|
|
19
|
-
parameters {
|
|
20
|
-
name
|
|
21
|
-
in
|
|
22
|
-
description
|
|
23
|
-
required
|
|
24
|
-
schema
|
|
25
|
-
style
|
|
26
|
-
}
|
|
27
|
-
requestBody {
|
|
28
|
-
content {
|
|
29
|
-
mediaType
|
|
30
|
-
encoding {
|
|
31
|
-
name
|
|
32
|
-
}
|
|
33
|
-
schema
|
|
34
|
-
}
|
|
35
|
-
description
|
|
36
|
-
required
|
|
37
|
-
}
|
|
38
|
-
responses {
|
|
39
|
-
statusCode
|
|
40
|
-
links
|
|
41
|
-
description
|
|
42
|
-
content {
|
|
43
|
-
mediaType
|
|
44
|
-
encoding {
|
|
45
|
-
name
|
|
46
|
-
}
|
|
47
|
-
schema
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
`);
|
|
52
|
-
const AllOperationsQuery = graphql(/* GraphQL */ `
|
|
53
|
-
query AllOperations($input: JSON!, $type: SchemaType!) {
|
|
54
|
-
schema(input: $input, type: $type) {
|
|
55
|
-
description
|
|
56
|
-
title
|
|
57
|
-
url
|
|
58
|
-
version
|
|
59
|
-
tags {
|
|
60
|
-
name
|
|
61
|
-
description
|
|
62
|
-
operations {
|
|
63
|
-
slug
|
|
64
|
-
...OperationsFragment
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
`);
|
|
70
|
-
export const OperationList = () => {
|
|
71
|
-
const { type, input } = useOasConfig();
|
|
72
|
-
const [result] = useQuery({
|
|
73
|
-
query: AllOperationsQuery,
|
|
74
|
-
variables: { type, input },
|
|
75
|
-
});
|
|
76
|
-
if (!result.data)
|
|
77
|
-
return null;
|
|
78
|
-
return (_jsxs("div", { className: "pt-[--padding-content-top]", children: [_jsxs("div", { className: cn(ProseClasses, "mb-16"), children: [_jsx(CategoryHeading, { children: "Overview" }), _jsx(Heading, { level: 1, id: "description", registerSidebarAnchor: true, children: result.data.schema.title }), _jsx(Markdown, { content: result.data.schema.description ?? "" })] }), result.data?.schema.tags
|
|
79
|
-
.filter((tag) => tag.operations.length > 0)
|
|
80
|
-
.map((tag) => (_jsxs("div", { children: [tag.name && _jsx(CategoryHeading, { children: tag.name }), tag.description && (_jsx(Markdown, { className: `${ProseClasses} mt-2 mb-12`, content: tag.description })), _jsx("div", { className: "operation mb-12", children: tag.operations.map((fragment) => (_jsx(OperationListItem, { operationFragment: fragment }, fragment.slug))) })] }, tag.name)))] }));
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=OperationList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationList.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/OperationList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCvD,CAAC,CAAC;AAIH,MAAM,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;CAiBhD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IAEvC,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;QACxB,KAAK,EAAE,kBAAkB;QACzB,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;KAC3B,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAE9B,OAAO,CACL,eAAK,SAAS,EAAC,4BAA4B,aACzC,eAAK,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,aACvC,KAAC,eAAe,2BAA2B,EAC3C,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAC,aAAa,EAAC,qBAAqB,kBACtD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GACjB,EACV,KAAC,QAAQ,IAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,GAAI,IACvD,EACL,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI;iBACtB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;iBAC1C,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACZ,0BACG,GAAG,CAAC,IAAI,IAAI,KAAC,eAAe,cAAE,GAAG,CAAC,IAAI,GAAmB,EACzD,GAAG,CAAC,WAAW,IAAI,CAClB,KAAC,QAAQ,IACP,SAAS,EAAE,GAAG,YAAY,aAAa,EACvC,OAAO,EAAE,GAAG,CAAC,WAAW,GACxB,CACH,EACD,cAAK,SAAS,EAAC,iBAAiB,YAC7B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAChC,KAAC,iBAAiB,IAEhB,iBAAiB,EAAE,QAAQ,IADtB,QAAQ,CAAC,IAAI,CAElB,CACH,CAAC,GACE,KAfE,GAAG,CAAC,IAAI,CAgBZ,CACP,CAAC,IACA,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Heading } from "../../Heading.js";
|
|
3
|
-
import { Markdown, ProseClasses } from "../../components/Markdown.js";
|
|
4
|
-
import { groupBy } from "../../util/groupBy.js";
|
|
5
|
-
import { OperationsFragment } from "./OperationList.js";
|
|
6
|
-
import { ParameterList } from "./ParameterList.js";
|
|
7
|
-
import { Sidecar } from "./Sidecar.js";
|
|
8
|
-
import { useFragment } from "./graphql/index.js";
|
|
9
|
-
export const PARAM_GROUPS = ["path", "query", "header", "cookie"];
|
|
10
|
-
export const OperationListItem = ({ operationFragment, }) => {
|
|
11
|
-
const operation = useFragment(OperationsFragment, operationFragment);
|
|
12
|
-
const groupedParameters = groupBy(operation?.parameters ?? [], "in");
|
|
13
|
-
return (_jsxs("div", { className: "grid grid-cols-2 gap-8 items-start border-b-2 mb-16 pb-16 border-border", children: [_jsxs("div", { className: ProseClasses, children: [_jsx(Heading, { level: 2, className: "mt-0", id: operation.slug, registerSidebarAnchor: true, children: operation.summary }), operation.description && _jsx(Markdown, { content: operation.description }), operation.parameters && operation.parameters.length > 0 && (_jsx("div", { className: "mt-4", children: PARAM_GROUPS.flatMap((group) => groupedParameters?.[group]?.length ? (_jsx(ParameterList, { id: operation.slug, groupedParameters: groupedParameters, group: group }, group)) : ([])) }))] }), _jsx(Sidecar, { operation: operation })] }, operation.operationId));
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=OperationListItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationListItem.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/OperationListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAgB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE/D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Item.js";
|
|
2
|
-
import { type ParameterListItemResult } from "./ParameterListItem.js";
|
|
3
|
-
export declare const ParameterList: ({ groupedParameters, group, id, }: {
|
|
4
|
-
groupedParameters: Record<ParameterGroup, ParameterListItemResult[]>;
|
|
5
|
-
group: ParameterGroup;
|
|
6
|
-
id: string;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Heading } from "../../Heading.js";
|
|
3
|
-
import { ParameterListItem, } from "./ParameterListItem.js";
|
|
4
|
-
export const ParameterList = ({ groupedParameters, group, id, }) => (_jsxs(_Fragment, { children: [_jsx(Heading, { level: 3, id: `${id}/${group}-parameters`, className: "capitalize", children: group === "header" ? "Headers" : `${group} Parameters` }), _jsx("ul", { className: "list-none m-0 px-0 overflow-hidden", children: groupedParameters[group].map((parameter) => (_jsx(ParameterListItem, { parameter: parameter, id: id, group: group }, `${parameter.name}-${parameter.in}`))) })] }));
|
|
5
|
-
//# sourceMappingURL=ParameterList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterList.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/ParameterList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EACL,iBAAiB,GAElB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,iBAAiB,EACjB,KAAK,EACL,EAAE,GAKH,EAAE,EAAE,CAAC,CACJ,8BACE,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,KAAK,aAAa,EAAE,SAAS,EAAC,YAAY,YACvE,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,GAC/C,EACV,aAAI,SAAS,EAAC,oCAAoC,YAC/C,iBAAiB,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAC3C,KAAC,iBAAiB,IAEhB,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,IAHP,GAAG,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,EAAE,EAAE,CAIxC,CACH,CAAC,GACC,IACJ,CACJ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Markdown } from "../../components/Markdown.js";
|
|
3
|
-
import { ColorizedParam } from "./ColorizedParam.js";
|
|
4
|
-
const getParameterSchema = (parameter) => {
|
|
5
|
-
if (parameter.schema != null && typeof parameter.schema === "object") {
|
|
6
|
-
return parameter.schema;
|
|
7
|
-
}
|
|
8
|
-
return {
|
|
9
|
-
type: "string",
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const ParameterListItem = ({ parameter, group, id, }) => (_jsxs("li", { className: "not-prose px-2 py-4 border-t border-border bg-border/20", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("code", { children: group === "path" ? (_jsx(ColorizedParam, { name: parameter.name, backgroundOpacity: "15%", className: "px-1", slug: id + "-" + parameter.name.toLocaleLowerCase() })) : (parameter.name) }), parameter.required && (_jsx("span", { className: "py-px px-1.5 font-medium text-xs bg-primary/75 text-muted rounded-lg", children: "required" })), getParameterSchema(parameter).type && (_jsx("span", { className: "text-xs text-muted-foreground", children: getParameterSchema(parameter).type }))] }), parameter.description && (_jsx(Markdown, { content: parameter.description, className: "prose-p:my-1" }))] }));
|
|
13
|
-
//# sourceMappingURL=ParameterListItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/Par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@@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
4
|
-
import { Select } from "./Select.js";
|
|
5
|
-
import * as SidecarBox from "./SidecarBox.js";
|
|
6
|
-
import { generateSchemaExample } from "./util/generateSchemaExample.js";
|
|
7
|
-
// @todo should we handle multiple content types?
|
|
8
|
-
export const RequestBodySidecarBox = ({ content }) => {
|
|
9
|
-
const [selected, setSelected] = useState("example");
|
|
10
|
-
if (!content.length)
|
|
11
|
-
return null;
|
|
12
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { children: "lol" }), _jsxs(SidecarBox.Root, { children: [_jsxs(SidecarBox.Head, { className: "text-xs flex justify-between items-center", children: [_jsx("span", { className: "font-mono", children: "Request Body" }), _jsx(Select, { onChange: (e) => setSelected(e.target.value), options: [
|
|
13
|
-
{ value: "example", label: "Example" },
|
|
14
|
-
{ value: "schema", label: "Schema" },
|
|
15
|
-
] })] }), _jsx(SidecarBox.Body, { children: _jsx(SyntaxHighlight, { language: "json", noBackground: true, copyable: false, className: "text-xs", code: JSON.stringify(selected === "example"
|
|
16
|
-
? generateSchemaExample(content[0].schema)
|
|
17
|
-
: content[0].schema, null, 2) }) })] })] }));
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=RequestBodySidecarBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBodySidecarBox.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/RequestBodySidecarBox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAGtE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,O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import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
4
|
-
import { cn } from "../../util/cn.js";
|
|
5
|
-
import * as SidecarBox from "./SidecarBox.js";
|
|
6
|
-
import { generateSchemaExample } from "./util/generateSchemaExample.js";
|
|
7
|
-
export const ResponsesSidecarBox = ({ responses, }) => {
|
|
8
|
-
const [tabIndex, setTabIndex] = useState(0);
|
|
9
|
-
const activeTab = responses[tabIndex];
|
|
10
|
-
const schema = activeTab?.content?.[0]?.schema;
|
|
11
|
-
return (_jsxs(SidecarBox.Root, { children: [_jsxs(SidecarBox.Head, { className: "text-xs grid grid-rows-2 pb-0", children: [_jsx("span", { className: "font-mono", children: "Responses" }), _jsx("div", { className: "flex gap-2", children: responses.map((response, index) => (_jsx("div", { onClick: () => setTabIndex(index), className: cn("text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer", tabIndex === index
|
|
12
|
-
? "text-primary dark:text-inherit border-primary"
|
|
13
|
-
: "hover:border-accent-foreground/25"), children: response.statusCode }, response.statusCode))) })] }), _jsxs(SidecarBox.Body, { children: [schema ? (_jsx(SyntaxHighlight, { language: "json", noBackground: true, copyable: false, className: "text-xs", code: JSON.stringify(generateSchemaExample(schema), null, 2) })) : (_jsx("span", { className: "text-muted-foreground font-mono italic text-xs", children: "Empty Response" })), _jsx("hr", { className: "border-border my-1" }), _jsx("div", { className: "text-xs", children: responses[tabIndex].description })] })] }));
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=ResponsesSidecarBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsesSidecarBox.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/ResponsesSidecarBox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAk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,+BAEzD,CACR,EACD,aAAI,SAAS,EAAC,oBAAoB,GAAG,EACrC,cAAK,SAAS,EAAC,SAAS,YAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,WAAW,GAAO,IAChD,IACF,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ChangeEventHandler } from "react";
|
|
2
|
-
export declare const Select: ({ onChange, className, options, }: {
|
|
3
|
-
onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
4
|
-
className?: string;
|
|
5
|
-
options: {
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}[];
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronsUpDownIcon } from "../../core/icons.js";
|
|
3
|
-
import { cn } from "../../util/cn.js";
|
|
4
|
-
export const Select = ({ onChange, className, options, }) => (_jsxs("div", { className: cn("grid", className), children: [_jsx("select", { className: cn("row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6", "rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75"), onChange: onChange, children: options.map((option) => (_jsx("option", { value: option.value, children: option.label }, option.value))) }), _jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: _jsx(ChevronsUpDownIcon, { size: 14 }) })] }));
|
|
5
|
-
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/Select.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,OAAO,GAQR,EAAE,EAAE,CAAC,CACJ,eAAK,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC,aACnC,iBACE,SAAS,EAAE,EAAE,CACX,4EAA4E,EAC5E,iGAAiG,CAClG,EACD,QAAQ,EAAE,QAAQ,YAEjB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,iBAAQ,KAAK,EAAE,MAAM,CAAC,KAAK,YACxB,MAAM,CAAC,KAAK,IADmB,MAAM,CAAC,KAAK,CAErC,CACV,CAAC,GACK,EACT,cAAK,SAAS,EAAC,yFAAyF,YACtG,KAAC,kBAAkB,IAAC,IAAI,EAAE,EAAE,GAAI,GAC5B,IACF,CACP,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment, useMemo, useState } from "react";
|
|
3
|
-
import { SyntaxHighlight } from "../../components/SyntaxHighlight.js";
|
|
4
|
-
import { cn } from "../../util/cn.js";
|
|
5
|
-
import { ColorizedParam } from "./ColorizedParam.js";
|
|
6
|
-
import { MakeRequest } from "./MakeRequest.js";
|
|
7
|
-
import { MethodTextColorMap } from "./MethodBadge.js";
|
|
8
|
-
import { RequestBodySidecarBox } from "./RequestBodySidecarBox.js";
|
|
9
|
-
import { ResponsesSidecarBox } from "./ResponsesSidecarBox.js";
|
|
10
|
-
import { Select } from "./Select.js";
|
|
11
|
-
import * as SidecarBox from "./SidecarBox.js";
|
|
12
|
-
import { HTTPSnippet } from "@zudoku/httpsnippet";
|
|
13
|
-
import { generateSchemaExample } from "./util/generateSchemaExample.js";
|
|
14
|
-
const getConverted = (snippet, option) => {
|
|
15
|
-
let converted;
|
|
16
|
-
switch (option) {
|
|
17
|
-
case "shell":
|
|
18
|
-
converted = snippet.convert("shell", "curl");
|
|
19
|
-
break;
|
|
20
|
-
case "js":
|
|
21
|
-
converted = snippet.convert("javascript", "fetch");
|
|
22
|
-
break;
|
|
23
|
-
case "python":
|
|
24
|
-
converted = snippet.convert("python", "requests");
|
|
25
|
-
break;
|
|
26
|
-
case "java":
|
|
27
|
-
converted = snippet.convert("java", "okhttp");
|
|
28
|
-
break;
|
|
29
|
-
case "go":
|
|
30
|
-
converted = snippet.convert("go", "native");
|
|
31
|
-
break;
|
|
32
|
-
case "csharp":
|
|
33
|
-
converted = snippet.convert("csharp", "httpclient");
|
|
34
|
-
break;
|
|
35
|
-
case "kotlin":
|
|
36
|
-
converted = snippet.convert("kotlin", "okhttp");
|
|
37
|
-
break;
|
|
38
|
-
case "objc":
|
|
39
|
-
converted = snippet.convert("objc", "nsurlsession");
|
|
40
|
-
break;
|
|
41
|
-
case "php":
|
|
42
|
-
converted = snippet.convert("php", "http2");
|
|
43
|
-
break;
|
|
44
|
-
case "ruby":
|
|
45
|
-
converted = snippet.convert("ruby");
|
|
46
|
-
break;
|
|
47
|
-
case "swift":
|
|
48
|
-
converted = snippet.convert("swift");
|
|
49
|
-
break;
|
|
50
|
-
default:
|
|
51
|
-
converted = snippet.convert("shell");
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
return converted ? converted[0] : "";
|
|
55
|
-
};
|
|
56
|
-
export const Sidecar = ({ operation, }) => {
|
|
57
|
-
const methodTextColor = MethodTextColorMap[operation.method];
|
|
58
|
-
const [option, setOption] = useState("curl");
|
|
59
|
-
const requestBodyContent = operation.requestBody?.content;
|
|
60
|
-
const path = operation.path.split("/").map((part) => (_jsxs(Fragment, { children: [part.startsWith("{") && part.endsWith("}") ? (_jsx(ColorizedParam, { name: part.slice(1, -1), backgroundOpacity: "0",
|
|
61
|
-
// same as in `ParameterListItem`
|
|
62
|
-
slug: operation.slug + "-" + part.slice(1, -1).toLocaleLowerCase(), children: part })) : (part), "/", _jsx("wbr", {})] }, part)));
|
|
63
|
-
const code = useMemo(() => {
|
|
64
|
-
const example = requestBodyContent?.[0]?.schema
|
|
65
|
-
? generateSchemaExample(requestBodyContent[0].schema)
|
|
66
|
-
: undefined;
|
|
67
|
-
const snippet = new HTTPSnippet({
|
|
68
|
-
method: operation.method.toLocaleUpperCase(),
|
|
69
|
-
url: operation.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
70
|
-
headers: [{ name: "Authorization", value: "Bearer <token>" }],
|
|
71
|
-
postData: example
|
|
72
|
-
? {
|
|
73
|
-
text: JSON.stringify(example, null, 2),
|
|
74
|
-
mimeType: "application/json",
|
|
75
|
-
}
|
|
76
|
-
: {},
|
|
77
|
-
});
|
|
78
|
-
return getConverted(snippet, option) ?? "";
|
|
79
|
-
}, [option, operation.method, operation.path, requestBodyContent]);
|
|
80
|
-
return (_jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [_jsxs(SidecarBox.Root, { children: [_jsx(MakeRequest, { operation: operation }), _jsxs(SidecarBox.Head, { className: "flex justify-between items-center flex-nowrap p-2 gap-2 text-xs", children: [_jsxs("span", { className: "font-mono break-words", children: [_jsx("span", { className: cn("font-semibold", methodTextColor), children: operation.method.toLocaleUpperCase() }), "\u00A0", path] }), _jsx(Select, { className: "self-start", onChange: (e) => setOption(e.target.value), options: [
|
|
81
|
-
{ value: "shell", label: "cURL" },
|
|
82
|
-
{ value: "js", label: "Javascript" },
|
|
83
|
-
{ value: "python", label: "Python" },
|
|
84
|
-
{ value: "java", label: "Java" },
|
|
85
|
-
{ value: "go", label: "Go" },
|
|
86
|
-
{ value: "csharp", label: "C#" },
|
|
87
|
-
{ value: "kotlin", label: "Kotlin" },
|
|
88
|
-
{ value: "objc", label: "Objective C" },
|
|
89
|
-
{ value: "php", label: "PHP" },
|
|
90
|
-
{ value: "ruby", label: "Ruby" },
|
|
91
|
-
{ value: "swift", label: "Swift" },
|
|
92
|
-
] })] }), _jsx(SidecarBox.Body, { children: _jsx(SyntaxHighlight, { language: option, copyable: false, noBackground: true, className: "text-xs", code: code }) })] }), requestBodyContent && (_jsx(RequestBodySidecarBox, { content: requestBodyContent })), operation.responses.length > 0 && (_jsx(ResponsesSidecarBox, { responses: operation.responses }))] }));
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=Sidecar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sidecar.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/Sidecar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAGxE,MAAM,YAAY,GAAG,CAAC,OAAoB,EAAE,MAAc,EAAE,EAAE;IAC5D,IAAI,SAAS,CAAC;IACd,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,OAAO;YACV,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC7C,MAAM;QACR,KAAK,IAAI;YACP,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YACnD,MAAM;QACR,KAAK,QAAQ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AAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;oCAChC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oCACpC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE;oCACvC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oCAC9B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oCAChC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;iCACnC,GACD,IACc,EAClB,KAAC,UAAU,CAAC,IAAI,cACd,KAAC,eAAe,IACd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,KAAK,EACf,YAAY,QACZ,SAAS,EAAC,SAAS,EACnB,IAAI,EAAE,IAAI,GACV,GACc,IACF,EAEjB,kBAAkB,IAAI,CACrB,KAAC,qBAAqB,IAAC,OAAO,EAAE,kBAAkB,GAAI,CACvD,EACA,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACjC,KAAC,mBAAmB,IAAC,SAAS,EAAE,SAAS,CAAC,SAAS,GAAI,CACxD,IACK,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from "react";
|
|
2
|
-
type BaseComponentProps<T = unknown> = PropsWithChildren<T & {
|
|
3
|
-
className?: string;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const Root: ({ children, className }: BaseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const Head: ({ children, className }: BaseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const Body: ({ children, className }: BaseComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../util/cn.js";
|
|
3
|
-
export const Root = ({ children, className }) => (_jsx("div", { className: cn("rounded-lg overflow-hidden border border-border dark:border-transparent", className), children: children }));
|
|
4
|
-
export const Head = ({ children, className }) => (_jsx("div", { className: cn("border-b border-b-border dark:border-b-zinc-600 bg-zinc-100 dark:bg-zinc-700 p-2", className), children: children }));
|
|
5
|
-
export const Body = ({ children, className }) => (_jsx("div", { className: cn("bg-zinc-50 dark:bg-zinc-800 overflow-auto p-2", className), children: children }));
|
|
6
|
-
//# sourceMappingURL=SidecarBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidecarBox.js","sourceRoot":"","sources":["../../../../src/app/plugins/openapi/SidecarBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAMtC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAsB,EAAE,EAAE,CAAC,CACnE,cACE,SAAS,EAAE,EAAE,CACX,yEAAyE,EACzE,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAsB,EAAE,EAAE,CAAC,CACnE,cACE,SAAS,EAAE,EAAE,CACX,kFAAkF,EAClF,SAAS,CACV,YAEA,QAAQ,GACL,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAsB,EAAE,EAAE,CAAC,CACnE,cACE,SAAS,EAAE,EAAE,CAAC,+CAA+C,EAAE,SAAS,CAAC,YAExE,QAAQ,GACL,CACP,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from "@graphql-typed-document-node/core";
|
|
2
|
-
import type { Incremental } from "./graphql.js";
|
|
3
|
-
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
|
|
4
|
-
" $fragmentName"?: infer TKey;
|
|
5
|
-
}] ? TKey extends string ? {
|
|
6
|
-
" $fragmentRefs"?: {
|
|
7
|
-
[key in TKey]: TType;
|
|
8
|
-
};
|
|
9
|
-
} : never : never : never;
|
|
10
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
|
|
11
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined): TType | undefined;
|
|
12
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null): TType | null;
|
|
13
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
|
|
14
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>): Array<TType>;
|
|
15
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): Array<TType> | null | undefined;
|
|
16
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
|
|
17
|
-
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
|
|
18
|
-
export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
|
|
19
|
-
export declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoration<TQuery, any>, fragmentNode: TypedDocumentNode<TFrag>, data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fragment-masking.js","sourceRoot":"","sources":["../../../../../src/app/plugins/openapi/graphql/fragment-masking.ts"],"names":[],"mappings":"AAqEA,MAAM,UAAU,WAAW,CACzB,aAAiD,EACjD,YAKa;IAEb,OAAO,YAAmB,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAG9B,IAAQ,EAAE,SAAY;IACtB,OAAO,IAAuB,CAAC;AACjC,CAAC;AACD,MAAM,UAAU,eAAe,CAC7B,SAA8C,EAC9C,YAAsC,EACtC,IAGa;IAEb,MAAM,cAAc,GAClB,SAGD,CAAC,QAAQ,EAAE,cAAc,CAAC;IAE3B,IAAI,CAAC,cAAc;QAAE,OAAO,IAAI,CAAC;IAEjC,MAAM,OAAO,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAE7B,CAAC;IACd,MAAM,QAAQ,GAAG,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC;IAEtC,MAAM,MAAM,GAAG,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5D,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as types from "./graphql.js";
|
|
2
|
-
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
3
|
-
/**
|
|
4
|
-
* Map of all GraphQL operations in the project.
|
|
5
|
-
*
|
|
6
|
-
* This map has several performance disadvantages:
|
|
7
|
-
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
8
|
-
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
9
|
-
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
10
|
-
*
|
|
11
|
-
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
|
-
*/
|
|
13
|
-
declare const documents: {
|
|
14
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": DocumentNode<types.GetServerQueryQuery, types.Exact<{
|
|
15
|
-
input: types.Scalars["JSON"]["input"];
|
|
16
|
-
type: types.SchemaType;
|
|
17
|
-
}>>;
|
|
18
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": DocumentNode<types.OperationsFragmentFragment, unknown>;
|
|
19
|
-
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": DocumentNode<types.AllOperationsQuery, types.Exact<{
|
|
20
|
-
input: types.Scalars["JSON"]["input"];
|
|
21
|
-
type: types.SchemaType;
|
|
22
|
-
}>>;
|
|
23
|
-
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": DocumentNode<types.GetCategoriesQuery, types.Exact<{
|
|
24
|
-
input: types.Scalars["JSON"]["input"];
|
|
25
|
-
type: types.SchemaType;
|
|
26
|
-
}>>;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* The query argument is unknown!
|
|
38
|
-
* Please regenerate the types.
|
|
39
|
-
*/
|
|
40
|
-
export declare function graphql(source: string): unknown;
|
|
41
|
-
/**
|
|
42
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
|
-
*/
|
|
44
|
-
export declare function graphql(source: "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n"): (typeof documents)["\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n"];
|
|
45
|
-
/**
|
|
46
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
47
|
-
*/
|
|
48
|
-
export declare function graphql(source: "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n"): (typeof documents)["\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n"];
|
|
49
|
-
/**
|
|
50
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
51
|
-
*/
|
|
52
|
-
export declare function graphql(source: "\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n"): (typeof documents)["\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n"];
|
|
53
|
-
/**
|
|
54
|
-
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
55
|
-
*/
|
|
56
|
-
export declare function graphql(source: "\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n method\n summary\n operationId\n path\n }\n }\n }\n }\n"): (typeof documents)["\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n method\n summary\n operationId\n path\n }\n }\n }\n }\n"];
|
|
57
|
-
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
|
58
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as types from "./graphql.js";
|
|
3
|
-
/**
|
|
4
|
-
* Map of all GraphQL operations in the project.
|
|
5
|
-
*
|
|
6
|
-
* This map has several performance disadvantages:
|
|
7
|
-
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
8
|
-
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
9
|
-
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
10
|
-
*
|
|
11
|
-
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
|
-
*/
|
|
13
|
-
const documents = {
|
|
14
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": types.GetServerQueryDocument,
|
|
15
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": types.OperationsFragmentFragmentDoc,
|
|
16
|
-
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": types.AllOperationsDocument,
|
|
17
|
-
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": types.GetCategoriesDocument,
|
|
18
|
-
};
|
|
19
|
-
export function graphql(source) {
|
|
20
|
-
return documents[source] ?? {};
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=gql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/app/plugins/openapi/graphql/gql.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,kIAAkI,EAChI,KAAK,CAAC,sBAAsB;IAC9B,wmBAAwmB,EACtmB,KAAK,CAAC,6BAA6B;IACrC,4TAA4T,EAC1T,KAAK,CAAC,qBAAqB;IAC7B,kUAAkU,EAChU,KAAK,CAAC,qBAAqB;CAC9B,CAAC;AAyCF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|