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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useLogger } from "@envelop/core";
|
|
2
|
+
import { createGraphQLServer } from "../../../oas/graphql/index.js";
|
|
3
|
+
const map = new Map();
|
|
4
|
+
/**
|
|
5
|
+
* Creates the GraphQL server
|
|
6
|
+
*/
|
|
7
|
+
export const createServer = () => createGraphQLServer({
|
|
8
|
+
plugins: [
|
|
9
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
10
|
+
useLogger({
|
|
11
|
+
logFn: (eventName, { args }) => {
|
|
12
|
+
if (import.meta.env.PROD)
|
|
13
|
+
return;
|
|
14
|
+
if (eventName.endsWith("-start")) {
|
|
15
|
+
map.set(`${eventName}-${args.operationName}`, performance.now());
|
|
16
|
+
}
|
|
17
|
+
else if (eventName.endsWith("-end")) {
|
|
18
|
+
const startEvent = eventName.replace("-end", "-start");
|
|
19
|
+
const start = map.get(`${startEvent}-${args.operationName}`);
|
|
20
|
+
if (start) {
|
|
21
|
+
// eslint-disable-next-line no-console
|
|
22
|
+
console.log(`${args.operationName} query took ${performance.now() - start}ms`);
|
|
23
|
+
map.delete(`${startEvent}-${args.operationName}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=createServer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createServer.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/createServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAC/B,mBAAmB,CAAC;IAClB,OAAO,EAAE;QACP,sDAAsD;QACtD,SAAS,CAAC;YACR,KAAK,EAAE,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;gBAC7B,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI;oBAAE,OAAO;gBAEjC,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;oBACjC,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;gBACnE,CAAC;qBAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;oBACtC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;oBACvD,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;oBAC7D,IAAI,KAAK,EAAE,CAAC;wBACV,sCAAsC;wBACtC,OAAO,CAAC,GAAG,CACT,GAAG,IAAI,CAAC,aAAa,eAAe,WAAW,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAClE,CAAC;wBACF,GAAG,CAAC,MAAM,CAAC,GAAG,UAAU,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;oBACpD,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;KACH;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateClientFunction } from "./interfaces.js";
|
|
2
|
+
export type WorkerGraphQLMessage = {
|
|
3
|
+
id: string;
|
|
4
|
+
body: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* This loads the client from a worker and uses mess port to send requests
|
|
8
|
+
* and responses between the main thread and the worker.
|
|
9
|
+
*/
|
|
10
|
+
export declare const createClient: CreateClientFunction;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { monotonicFactory } from "ulidx";
|
|
3
|
+
import { createWaitForNotify } from "../../../util/createWaitForNotify.js";
|
|
4
|
+
import { cacheExchange, Client, fetchExchange, mapExchange, } from "../util/urql.js";
|
|
5
|
+
import { createClient as createMemoryClient } from "./createMemoryClient.js";
|
|
6
|
+
const ulid = monotonicFactory();
|
|
7
|
+
/**
|
|
8
|
+
* This loads the client from a worker and uses mess port to send requests
|
|
9
|
+
* and responses between the main thread and the worker.
|
|
10
|
+
*/
|
|
11
|
+
export const createClient = ({ useMemoryClient, }) => {
|
|
12
|
+
if (useMemoryClient || typeof SharedWorker === "undefined") {
|
|
13
|
+
return createMemoryClient({ useMemoryClient });
|
|
14
|
+
}
|
|
15
|
+
// NOTE: This URL needs to be inline with the SharedWorker otherwse
|
|
16
|
+
// vite build does not recognize the worker file as a module.
|
|
17
|
+
const worker = new SharedWorker(new URL("./worker.ts", import.meta.url), {
|
|
18
|
+
type: "module",
|
|
19
|
+
});
|
|
20
|
+
worker.onerror = (e) => {
|
|
21
|
+
console.error(e);
|
|
22
|
+
};
|
|
23
|
+
worker.port.start();
|
|
24
|
+
const [waitFor, notify] = createWaitForNotify();
|
|
25
|
+
worker.port.onmessage = (e) => {
|
|
26
|
+
notify(e.data.id, e.data.body);
|
|
27
|
+
};
|
|
28
|
+
return new Client({
|
|
29
|
+
url: "/__z/graphql",
|
|
30
|
+
// Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
|
|
31
|
+
fetch: async (_req, init) => {
|
|
32
|
+
if (!init?.body)
|
|
33
|
+
throw new Error("No body");
|
|
34
|
+
const id = ulid();
|
|
35
|
+
worker.port.postMessage({
|
|
36
|
+
id,
|
|
37
|
+
body: init.body,
|
|
38
|
+
});
|
|
39
|
+
const body = await waitFor(id);
|
|
40
|
+
return new Response(body, {
|
|
41
|
+
headers: {
|
|
42
|
+
"Content-Type": "application/json",
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
exchanges: [
|
|
47
|
+
cacheExchange,
|
|
48
|
+
mapExchange({
|
|
49
|
+
onError(error, operation) {
|
|
50
|
+
console.error(error);
|
|
51
|
+
console.groupCollapsed("Operation info");
|
|
52
|
+
console.log("body", operation.query.loc?.source.body.trim());
|
|
53
|
+
console.log("variables", operation.variables);
|
|
54
|
+
console.groupEnd();
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
fetchExchange,
|
|
58
|
+
],
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=createWorkerClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWorkerClient.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/createWorkerClient.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,aAAa,EACb,MAAM,EACN,aAAa,EACb,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7E,MAAM,IAAI,GAAG,gBAAgB,EAAE,CAAC;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAyB,CAAC,EACjD,eAAe,GAGhB,EAAE,EAAE;IACH,IAAI,eAAe,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;QAC3D,OAAO,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,mEAAmE;IACnE,6DAA6D;IAC7D,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,IAAI,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACvE,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAEpB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,mBAAmB,EAAU,CAAC;IAExD,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAqC,EAAE,EAAE;QAChE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,IAAI,MAAM,CAAC;QAChB,GAAG,EAAE,cAAc;QACnB,8GAA8G;QAC9G,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;YAC1B,IAAI,CAAC,IAAI,EAAE,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAE5C,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;gBACtB,EAAE;gBACF,IAAI,EAAE,IAAI,CAAC,IAAc;aACK,CAAC,CAAC;YAElC,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC;YAE/B,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;gBACxB,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;QACL,CAAC;QACD,SAAS,EAAE;YACT,aAAa;YACb,WAAW,CAAC;gBACV,OAAO,CAAC,KAAK,EAAE,SAAS;oBACtB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrB,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;oBACzC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;oBAC7D,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;oBAC9C,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACrB,CAAC;aACF,CAAC;YACF,aAAa;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createServer } from "./createServer.js";
|
|
2
|
+
const localServer = createServer();
|
|
3
|
+
const worker = self;
|
|
4
|
+
worker.addEventListener("connect", function (event) {
|
|
5
|
+
const port = event.ports[0];
|
|
6
|
+
port.onmessage = async function (e) {
|
|
7
|
+
const response = await localServer.fetch(new Request("/__z/graphql", {
|
|
8
|
+
method: "POST",
|
|
9
|
+
body: e.data.body,
|
|
10
|
+
headers: {
|
|
11
|
+
"Content-Type": "application/json",
|
|
12
|
+
},
|
|
13
|
+
}));
|
|
14
|
+
port.postMessage({
|
|
15
|
+
id: e.data.id,
|
|
16
|
+
body: await response.text(),
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=worker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/client/worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,MAAM,WAAW,GAAG,YAAY,EAAE,CAAC;AAEnC,MAAM,MAAM,GAAG,IAA0C,CAAC;AAE1D,MAAM,CAAC,gBAAgB,CACrB,SAAS,EACT,UAAU,KAAiD;IACzD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE5B,IAAI,CAAC,SAAS,GAAG,KAAK,WAAW,CAAC;QAChC,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CACtC,IAAI,OAAO,CAAC,cAAc,EAAE;YAC1B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;YACjB,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CACH,CAAC;QAEF,IAAI,CAAC,WAAW,CAAC;YACf,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE;YACb,IAAI,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE;SACG,CAAC,CAAC;IACpC,CAAC,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
const OasContext = createContext(undefined);
|
|
3
|
+
export const OasConfigProvider = OasContext.Provider;
|
|
4
|
+
export const useOasConfig = () => {
|
|
5
|
+
const ctx = useContext(OasContext);
|
|
6
|
+
if (!ctx) {
|
|
7
|
+
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
8
|
+
}
|
|
9
|
+
return ctx.config;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/lib/plugins/openapi/context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,UAAU,GAAG,aAAa,CAC9B,SAAS,CACV,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC,QAAQ,CAAC;AAErD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,GAAG,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,GAAG,CAAC,MAAM,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DocumentTypeDecoration, ResultOf, 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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-masking.js","sourceRoot":"","sources":["../../../../../src/lib/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"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
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
|
+
declare const documents: {
|
|
14
|
+
"\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 examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n 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>;
|
|
15
|
+
"\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<{
|
|
16
|
+
input: types.Scalars["JSON"]["input"];
|
|
17
|
+
type: types.SchemaType;
|
|
18
|
+
}>>;
|
|
19
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": DocumentNode<types.GetServerQueryQuery, 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 deprecated\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 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 examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n 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 examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n 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"];
|
|
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 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"];
|
|
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 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"];
|
|
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 deprecated\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 deprecated\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 {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as types from "./graphql.js";
|
|
2
|
+
/**
|
|
3
|
+
* Map of all GraphQL operations in the project.
|
|
4
|
+
*
|
|
5
|
+
* This map has several performance disadvantages:
|
|
6
|
+
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
7
|
+
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
8
|
+
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
9
|
+
*
|
|
10
|
+
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
11
|
+
*/
|
|
12
|
+
const documents = {
|
|
13
|
+
"\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 examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n 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,
|
|
14
|
+
"\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,
|
|
15
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": types.GetServerQueryDocument,
|
|
16
|
+
"\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 deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": types.GetCategoriesDocument,
|
|
17
|
+
};
|
|
18
|
+
export function graphql(source) {
|
|
19
|
+
return documents[source] ?? {};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=gql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../../../src/lib/plugins/openapi/graphql/gql.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG;IAChB,6tBAA6tB,EAC3tB,KAAK,CAAC,6BAA6B;IACrC,4TAA4T,EAC1T,KAAK,CAAC,qBAAqB;IAC7B,kIAAkI,EAChI,KAAK,CAAC,sBAAsB;IAC9B,wVAAwV,EACtV,KAAK,CAAC,qBAAqB;CAC9B,CAAC;AAyCF,MAAM,UAAU,OAAO,CAAC,MAAc;IACpC,OAAQ,SAAiB,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeEmpty<T extends {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}, K extends keyof T> = {
|
|
18
|
+
[_ in K]?: never;
|
|
19
|
+
};
|
|
20
|
+
export type Incremental<T> = T | {
|
|
21
|
+
[P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
|
|
22
|
+
};
|
|
23
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
24
|
+
export type Scalars = {
|
|
25
|
+
ID: {
|
|
26
|
+
input: string;
|
|
27
|
+
output: string;
|
|
28
|
+
};
|
|
29
|
+
String: {
|
|
30
|
+
input: string;
|
|
31
|
+
output: string;
|
|
32
|
+
};
|
|
33
|
+
Boolean: {
|
|
34
|
+
input: boolean;
|
|
35
|
+
output: boolean;
|
|
36
|
+
};
|
|
37
|
+
Int: {
|
|
38
|
+
input: number;
|
|
39
|
+
output: number;
|
|
40
|
+
};
|
|
41
|
+
Float: {
|
|
42
|
+
input: number;
|
|
43
|
+
output: number;
|
|
44
|
+
};
|
|
45
|
+
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
46
|
+
JSON: {
|
|
47
|
+
input: any;
|
|
48
|
+
output: any;
|
|
49
|
+
};
|
|
50
|
+
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
51
|
+
JSONObject: {
|
|
52
|
+
input: any;
|
|
53
|
+
output: any;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type EncodingItem = {
|
|
57
|
+
__typename?: "EncodingItem";
|
|
58
|
+
allowReserved?: Maybe<Scalars["Boolean"]["output"]>;
|
|
59
|
+
contentType?: Maybe<Scalars["String"]["output"]>;
|
|
60
|
+
explode?: Maybe<Scalars["Boolean"]["output"]>;
|
|
61
|
+
headers?: Maybe<Scalars["JSONObject"]["output"]>;
|
|
62
|
+
name: Scalars["String"]["output"];
|
|
63
|
+
style?: Maybe<Scalars["String"]["output"]>;
|
|
64
|
+
};
|
|
65
|
+
export type ExampleItem = {
|
|
66
|
+
__typename?: "ExampleItem";
|
|
67
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
68
|
+
externalValue?: Maybe<Scalars["String"]["output"]>;
|
|
69
|
+
name: Scalars["String"]["output"];
|
|
70
|
+
summary?: Maybe<Scalars["String"]["output"]>;
|
|
71
|
+
value?: Maybe<Scalars["String"]["output"]>;
|
|
72
|
+
};
|
|
73
|
+
export type MediaTypeObject = {
|
|
74
|
+
__typename?: "MediaTypeObject";
|
|
75
|
+
encoding?: Maybe<Array<EncodingItem>>;
|
|
76
|
+
examples?: Maybe<Array<ExampleItem>>;
|
|
77
|
+
mediaType: Scalars["String"]["output"];
|
|
78
|
+
schema?: Maybe<Scalars["JSON"]["output"]>;
|
|
79
|
+
};
|
|
80
|
+
export type OperationItem = {
|
|
81
|
+
__typename?: "OperationItem";
|
|
82
|
+
contentTypes: Array<Scalars["String"]["output"]>;
|
|
83
|
+
deprecated?: Maybe<Scalars["Boolean"]["output"]>;
|
|
84
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
85
|
+
method: Scalars["String"]["output"];
|
|
86
|
+
operationId?: Maybe<Scalars["String"]["output"]>;
|
|
87
|
+
parameters?: Maybe<Array<ParameterItem>>;
|
|
88
|
+
path: Scalars["String"]["output"];
|
|
89
|
+
requestBody?: Maybe<RequestBodyObject>;
|
|
90
|
+
responses: Array<ResponseItem>;
|
|
91
|
+
slug: Scalars["String"]["output"];
|
|
92
|
+
summary?: Maybe<Scalars["String"]["output"]>;
|
|
93
|
+
tags?: Maybe<Array<TagItem>>;
|
|
94
|
+
};
|
|
95
|
+
export type ParameterIn = "cookie" | "header" | "path" | "query";
|
|
96
|
+
export type ParameterItem = {
|
|
97
|
+
__typename?: "ParameterItem";
|
|
98
|
+
allowEmptyValue?: Maybe<Scalars["Boolean"]["output"]>;
|
|
99
|
+
allowReserved?: Maybe<Scalars["Boolean"]["output"]>;
|
|
100
|
+
deprecated?: Maybe<Scalars["Boolean"]["output"]>;
|
|
101
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
102
|
+
examples?: Maybe<Array<ExampleItem>>;
|
|
103
|
+
explode?: Maybe<Scalars["Boolean"]["output"]>;
|
|
104
|
+
in: ParameterIn;
|
|
105
|
+
name: Scalars["String"]["output"];
|
|
106
|
+
required?: Maybe<Scalars["Boolean"]["output"]>;
|
|
107
|
+
schema?: Maybe<Scalars["JSON"]["output"]>;
|
|
108
|
+
style?: Maybe<Scalars["String"]["output"]>;
|
|
109
|
+
};
|
|
110
|
+
export type PathItem = {
|
|
111
|
+
__typename?: "PathItem";
|
|
112
|
+
methods: Array<Scalars["String"]["output"]>;
|
|
113
|
+
path: Scalars["String"]["output"];
|
|
114
|
+
};
|
|
115
|
+
export type Query = {
|
|
116
|
+
__typename?: "Query";
|
|
117
|
+
schema: Schema;
|
|
118
|
+
};
|
|
119
|
+
export type QuerySchemaArgs = {
|
|
120
|
+
input: Scalars["JSON"]["input"];
|
|
121
|
+
type: SchemaType;
|
|
122
|
+
};
|
|
123
|
+
export type RequestBodyObject = {
|
|
124
|
+
__typename?: "RequestBodyObject";
|
|
125
|
+
content?: Maybe<Array<MediaTypeObject>>;
|
|
126
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
127
|
+
required?: Maybe<Scalars["Boolean"]["output"]>;
|
|
128
|
+
};
|
|
129
|
+
export type ResponseItem = {
|
|
130
|
+
__typename?: "ResponseItem";
|
|
131
|
+
content?: Maybe<Array<MediaTypeObject>>;
|
|
132
|
+
description: Scalars["String"]["output"];
|
|
133
|
+
headers?: Maybe<Scalars["JSON"]["output"]>;
|
|
134
|
+
links?: Maybe<Scalars["JSON"]["output"]>;
|
|
135
|
+
statusCode: Scalars["String"]["output"];
|
|
136
|
+
};
|
|
137
|
+
export type Schema = {
|
|
138
|
+
__typename?: "Schema";
|
|
139
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
140
|
+
openapi: Scalars["String"]["output"];
|
|
141
|
+
operations: Array<OperationItem>;
|
|
142
|
+
paths: Array<PathItem>;
|
|
143
|
+
tags: Array<SchemaTag>;
|
|
144
|
+
title: Scalars["String"]["output"];
|
|
145
|
+
url: Scalars["String"]["output"];
|
|
146
|
+
version: Scalars["String"]["output"];
|
|
147
|
+
};
|
|
148
|
+
export type SchemaOperationsArgs = {
|
|
149
|
+
method?: InputMaybe<Scalars["String"]["input"]>;
|
|
150
|
+
operationId?: InputMaybe<Scalars["String"]["input"]>;
|
|
151
|
+
path?: InputMaybe<Scalars["String"]["input"]>;
|
|
152
|
+
tag?: InputMaybe<Scalars["String"]["input"]>;
|
|
153
|
+
};
|
|
154
|
+
export type SchemaTagsArgs = {
|
|
155
|
+
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
156
|
+
};
|
|
157
|
+
export type SchemaTag = {
|
|
158
|
+
__typename?: "SchemaTag";
|
|
159
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
160
|
+
name?: Maybe<Scalars["String"]["output"]>;
|
|
161
|
+
operations: Array<OperationItem>;
|
|
162
|
+
};
|
|
163
|
+
export type SchemaType = "json" | "url" | "yaml";
|
|
164
|
+
export type TagItem = {
|
|
165
|
+
__typename?: "TagItem";
|
|
166
|
+
description?: Maybe<Scalars["String"]["output"]>;
|
|
167
|
+
name: Scalars["String"]["output"];
|
|
168
|
+
};
|
|
169
|
+
export type OperationsFragmentFragment = {
|
|
170
|
+
__typename?: "OperationItem";
|
|
171
|
+
slug: string;
|
|
172
|
+
summary?: string | null;
|
|
173
|
+
method: string;
|
|
174
|
+
description?: string | null;
|
|
175
|
+
operationId?: string | null;
|
|
176
|
+
contentTypes: Array<string>;
|
|
177
|
+
path: string;
|
|
178
|
+
parameters?: Array<{
|
|
179
|
+
__typename?: "ParameterItem";
|
|
180
|
+
name: string;
|
|
181
|
+
in: ParameterIn;
|
|
182
|
+
description?: string | null;
|
|
183
|
+
required?: boolean | null;
|
|
184
|
+
schema?: any | null;
|
|
185
|
+
style?: string | null;
|
|
186
|
+
examples?: Array<{
|
|
187
|
+
__typename?: "ExampleItem";
|
|
188
|
+
name: string;
|
|
189
|
+
description?: string | null;
|
|
190
|
+
externalValue?: string | null;
|
|
191
|
+
value?: string | null;
|
|
192
|
+
summary?: string | null;
|
|
193
|
+
}> | null;
|
|
194
|
+
}> | null;
|
|
195
|
+
requestBody?: {
|
|
196
|
+
__typename?: "RequestBodyObject";
|
|
197
|
+
description?: string | null;
|
|
198
|
+
required?: boolean | null;
|
|
199
|
+
content?: Array<{
|
|
200
|
+
__typename?: "MediaTypeObject";
|
|
201
|
+
mediaType: string;
|
|
202
|
+
schema?: any | null;
|
|
203
|
+
encoding?: Array<{
|
|
204
|
+
__typename?: "EncodingItem";
|
|
205
|
+
name: string;
|
|
206
|
+
}> | null;
|
|
207
|
+
}> | null;
|
|
208
|
+
} | null;
|
|
209
|
+
responses: Array<{
|
|
210
|
+
__typename?: "ResponseItem";
|
|
211
|
+
statusCode: string;
|
|
212
|
+
links?: any | null;
|
|
213
|
+
description: string;
|
|
214
|
+
content?: Array<{
|
|
215
|
+
__typename?: "MediaTypeObject";
|
|
216
|
+
mediaType: string;
|
|
217
|
+
schema?: any | null;
|
|
218
|
+
encoding?: Array<{
|
|
219
|
+
__typename?: "EncodingItem";
|
|
220
|
+
name: string;
|
|
221
|
+
}> | null;
|
|
222
|
+
}> | null;
|
|
223
|
+
}>;
|
|
224
|
+
} & {
|
|
225
|
+
" $fragmentName"?: "OperationsFragmentFragment";
|
|
226
|
+
};
|
|
227
|
+
export type AllOperationsQueryVariables = Exact<{
|
|
228
|
+
input: Scalars["JSON"]["input"];
|
|
229
|
+
type: SchemaType;
|
|
230
|
+
}>;
|
|
231
|
+
export type AllOperationsQuery = {
|
|
232
|
+
__typename?: "Query";
|
|
233
|
+
schema: {
|
|
234
|
+
__typename?: "Schema";
|
|
235
|
+
description?: string | null;
|
|
236
|
+
title: string;
|
|
237
|
+
url: string;
|
|
238
|
+
version: string;
|
|
239
|
+
tags: Array<{
|
|
240
|
+
__typename?: "SchemaTag";
|
|
241
|
+
name?: string | null;
|
|
242
|
+
description?: string | null;
|
|
243
|
+
operations: Array<{
|
|
244
|
+
__typename?: "OperationItem";
|
|
245
|
+
slug: string;
|
|
246
|
+
} & {
|
|
247
|
+
" $fragmentRefs"?: {
|
|
248
|
+
OperationsFragmentFragment: OperationsFragmentFragment;
|
|
249
|
+
};
|
|
250
|
+
}>;
|
|
251
|
+
}>;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
export type GetServerQueryQueryVariables = Exact<{
|
|
255
|
+
input: Scalars["JSON"]["input"];
|
|
256
|
+
type: SchemaType;
|
|
257
|
+
}>;
|
|
258
|
+
export type GetServerQueryQuery = {
|
|
259
|
+
__typename?: "Query";
|
|
260
|
+
schema: {
|
|
261
|
+
__typename?: "Schema";
|
|
262
|
+
url: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
export type GetCategoriesQueryVariables = Exact<{
|
|
266
|
+
input: Scalars["JSON"]["input"];
|
|
267
|
+
type: SchemaType;
|
|
268
|
+
}>;
|
|
269
|
+
export type GetCategoriesQuery = {
|
|
270
|
+
__typename?: "Query";
|
|
271
|
+
schema: {
|
|
272
|
+
__typename?: "Schema";
|
|
273
|
+
tags: Array<{
|
|
274
|
+
__typename: "SchemaTag";
|
|
275
|
+
name?: string | null;
|
|
276
|
+
operations: Array<{
|
|
277
|
+
__typename: "OperationItem";
|
|
278
|
+
slug: string;
|
|
279
|
+
deprecated?: boolean | null;
|
|
280
|
+
method: string;
|
|
281
|
+
summary?: string | null;
|
|
282
|
+
operationId?: string | null;
|
|
283
|
+
path: string;
|
|
284
|
+
}>;
|
|
285
|
+
}>;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
export declare const OperationsFragmentFragmentDoc: DocumentNode<OperationsFragmentFragment, unknown>;
|
|
289
|
+
export declare const AllOperationsDocument: DocumentNode<AllOperationsQuery, AllOperationsQueryVariables>;
|
|
290
|
+
export declare const GetServerQueryDocument: DocumentNode<GetServerQueryQuery, GetServerQueryQueryVariables>;
|
|
291
|
+
export declare const GetCategoriesDocument: DocumentNode<GetCategoriesQuery, GetCategoriesQueryVariables>;
|