zudoku 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +1 -0
- package/dist/app/ZuploBuildConfig.d.ts +1 -1
- package/dist/app/ZuploBuildConfig.js +1 -1
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/entry.client.js +5 -4
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.js +2 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.js +6 -6
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +4 -1
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/cli.js +2 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- package/dist/cli/cmds/preview.d.ts +1 -1
- package/dist/cli/common/analytics/lib.js +1 -1
- package/dist/cli/common/analytics/lib.js.map +1 -1
- package/dist/cli/common/logger.js +0 -1
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/cli/common/machine-id/lib.js +3 -2
- package/dist/cli/common/machine-id/lib.js.map +1 -1
- package/dist/cli/common/outdated.js +2 -1
- package/dist/cli/common/outdated.js.map +1 -1
- package/dist/cli/common/output.js +2 -3
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/box.js +2 -2
- package/dist/cli/common/utils/box.js.map +1 -1
- package/dist/cli/common/validators/lib.js +1 -1
- package/dist/cli/common/validators/lib.js.map +1 -1
- package/dist/cli/dev/handler.js +0 -4
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/codegen.js +2 -2
- package/dist/codegen.js.map +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +1 -1
- package/dist/config/validators/BuildSchema.js +3 -3
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7 -1
- package/dist/config/validators/InputNavigationSchema.js +4 -2
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js +2 -1
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -1
- package/dist/config/validators/NavigationSchema.d.ts +1 -1
- package/dist/config/validators/NavigationSchema.js +2 -2
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.js +1 -1
- package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -1
- package/dist/config/validators/auth.d.ts +2 -2
- package/dist/config/validators/auth.js +1 -1
- package/dist/config/validators/auth.js.map +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/config/validators/validate.js +3 -3
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +1 -2
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +2 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +1 -1
- package/dist/lib/MissingIcon.js.map +1 -1
- package/dist/lib/auth/issuer.test.js +1 -0
- package/dist/lib/auth/issuer.test.js.map +1 -1
- package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
- package/dist/lib/authentication/authentication.d.ts +1 -3
- package/dist/lib/authentication/components/OAuthErrorPage.d.ts +1 -1
- package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +1 -1
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +1 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/azureb2c.d.ts +2 -2
- package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.d.ts +2 -2
- package/dist/lib/authentication/providers/openid.d.ts +2 -2
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +2 -2
- package/dist/lib/authentication/providers/supabase.js +1 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
- package/dist/lib/authentication/use-broadcast/shared.js +3 -3
- package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
- package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
- package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +2 -1
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/Header.js +1 -3
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.js +2 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +4 -4
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/PathRenderer.js +1 -1
- package/dist/lib/components/PathRenderer.js.map +1 -1
- package/dist/lib/components/Search.js +1 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/Slot.js.map +1 -1
- package/dist/lib/components/Slot.test.js +7 -3
- package/dist/lib/components/Slot.test.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js +2 -2
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +2 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/context/ComponentsContext.js.map +1 -1
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
- package/dist/lib/components/context/SlotProvider.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
- package/dist/lib/components/index.js +1 -1
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/NavigationCategory.js +6 -1
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -1
- package/dist/lib/components/navigation/NavigationItem.js +2 -2
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
- package/dist/lib/components/navigation/Toc.js.map +1 -1
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
- package/dist/lib/components/navigation/utils.d.ts +3 -3
- package/dist/lib/components/navigation/utils.js +1 -2
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -1
- package/dist/lib/core/ZudokuContext.js +1 -0
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +0 -1
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/errors/TopLevelError.d.ts +2 -2
- package/dist/lib/errors/TopLevelError.js +1 -2
- package/dist/lib/errors/TopLevelError.js.map +1 -1
- package/dist/lib/oas/graphql/circular.js +2 -2
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +2 -1
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -1
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
- package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
- package/dist/lib/oas/parser/index.js +1 -1
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +2 -1
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +5 -6
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +3 -3
- package/dist/lib/plugins/api-keys/index.js +1 -1
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -3
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +2 -2
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
- package/dist/lib/plugins/openapi/OasProvider.js +1 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +8 -4
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +6 -4
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +3 -1
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +4 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/createServer.js +1 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +0 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -2
- package/dist/lib/plugins/openapi/index.js +2 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -3
- package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +3 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
- package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js +1 -0
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +1 -2
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
- package/dist/lib/plugins/search-inkeep/index.js +1 -1
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +4 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
- package/dist/lib/shiki.d.ts +2 -5
- package/dist/lib/shiki.js +3 -6
- package/dist/lib/shiki.js.map +1 -1
- package/dist/lib/ui/Breadcrumb.js +1 -1
- package/dist/lib/ui/Breadcrumb.js.map +1 -1
- package/dist/lib/ui/Carousel.js.map +1 -1
- package/dist/lib/ui/CodeBlock.js +1 -1
- package/dist/lib/ui/CodeBlock.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +2 -2
- package/dist/lib/ui/Command.js +2 -6
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Dialog.js +1 -1
- package/dist/lib/ui/Dialog.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +2 -2
- package/dist/lib/ui/Pagination.d.ts +1 -1
- package/dist/lib/ui/Pagination.js +1 -1
- package/dist/lib/ui/Pagination.js.map +1 -1
- package/dist/lib/ui/ToggleGroup.d.ts +1 -1
- package/dist/lib/util/MdxComponents.d.ts +1 -1
- package/dist/lib/util/MdxComponents.js +4 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/cn.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/createVariantComponent.js.map +1 -1
- package/dist/lib/util/groupBy.js +1 -0
- package/dist/lib/util/groupBy.js.map +1 -1
- package/dist/lib/util/humanFileSize.js +1 -1
- package/dist/lib/util/humanFileSize.js.map +1 -1
- package/dist/lib/util/invariant.js +3 -1
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/lib/util/pastellize.js +2 -2
- package/dist/lib/util/pastellize.js.map +1 -1
- package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +2 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/ts.js +3 -3
- package/dist/ts.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +6 -6
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +1 -2
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +1 -1
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +1 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/dev-server.js +2 -2
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +2 -2
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
- package/dist/vite/mdx/remark-inject-filepath.js +6 -0
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
- package/dist/vite/mdx/remark-last-modified.js +0 -1
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
- package/dist/vite/mdx/remark-link-rewrite.js +20 -0
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
- package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
- package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
- package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
- package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
- package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
- package/dist/vite/mdx/remark-static-generation.js.map +1 -0
- package/dist/vite/output.d.ts +1 -1
- package/dist/vite/output.js +1 -1
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +1 -1
- package/dist/vite/plugin-api-keys.js +1 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -4
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +1 -1
- package/dist/vite/plugin-auth.js +1 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +1 -1
- package/dist/vite/plugin-config-reload.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +1 -1
- package/dist/vite/plugin-custom-pages.js +1 -1
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.js +2 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +1 -1
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +1 -1
- package/dist/vite/plugin-mdx.js +9 -25
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-navigation.d.ts +2 -2
- package/dist/vite/plugin-navigation.js +34 -35
- package/dist/vite/plugin-navigation.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +1 -1
- package/dist/vite/plugin-redirect.js +1 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +1 -1
- package/dist/vite/plugin-search.js +1 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-shiki-register.js +1 -1
- package/dist/vite/plugin-shiki-register.js.map +1 -1
- package/dist/vite/plugin-theme.js +6 -6
- package/dist/vite/plugin-theme.js.map +1 -1
- package/dist/vite/plugin-theme.test.js +2 -0
- package/dist/vite/plugin-theme.test.js.map +1 -1
- package/dist/vite/plugin.d.ts +1 -1
- package/dist/vite/plugin.js +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.js +5 -3
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
- package/dist/vite/prerender/InMemoryResponse.js +3 -1
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
- package/dist/vite/prerender/prerender.js +1 -1
- package/dist/vite/prerender/prerender.js.map +1 -1
- package/dist/vite/prerender/worker.d.ts +1 -1
- package/dist/vite/prerender/worker.js.map +1 -1
- package/dist/vite/reporter.js +2 -2
- package/dist/vite/reporter.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +8 -33
- package/dist/vite/sitemap.js +4 -4
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.js +3 -3
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/policy-types.js +0 -1
- package/dist/zuplo/policy-types.js.map +1 -1
- package/dist/zuplo/with-zuplo.js +1 -1
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/{CodeBlock-yJjjRwj-.js → CodeBlock-CX_J17Hf.js} +10 -10
- package/lib/CodeBlock-CX_J17Hf.js.map +1 -0
- package/lib/{Command-CDn17s8X.js → Command-CUSlH0gJ.js} +21 -27
- package/lib/Command-CUSlH0gJ.js.map +1 -0
- package/lib/{Dialog-BrIjMmUK.js → Dialog-BmgXWOaz.js} +2 -2
- package/lib/Dialog-BmgXWOaz.js.map +1 -0
- package/lib/{MdxPage-BmOQ5m5g.js → MdxPage-Dae--mnh.js} +12 -12
- package/lib/MdxPage-Dae--mnh.js.map +1 -0
- package/lib/{OAuthErrorPage-Jv3r8wnL.js → OAuthErrorPage-C2pwoHzm.js} +6 -6
- package/lib/OAuthErrorPage-C2pwoHzm.js.map +1 -0
- package/lib/{OasProvider-CA_lpILt.js → OasProvider-qKBA2fuv.js} +3 -2
- package/lib/OasProvider-qKBA2fuv.js.map +1 -0
- package/lib/{OperationList-C-TObVw6.js → OperationList-sDq65nbj.js} +302 -306
- package/lib/OperationList-sDq65nbj.js.map +1 -0
- package/lib/{Pagination-CBiRGddW.js → Pagination-CmDrHzPg.js} +2 -2
- package/lib/{Pagination-CBiRGddW.js.map → Pagination-CmDrHzPg.js.map} +1 -1
- package/lib/{RouteGuard-JLH6tCY8.js → RouteGuard-BIksrt_C.js} +4 -4
- package/lib/{RouteGuard-JLH6tCY8.js.map → RouteGuard-BIksrt_C.js.map} +1 -1
- package/lib/{RouterError-DcVonMP1.js → RouterError-BYHrbLtD.js} +2 -2
- package/lib/{RouterError-DcVonMP1.js.map → RouterError-BYHrbLtD.js.map} +1 -1
- package/lib/{SchemaList-BeYWvBC7.js → SchemaList-DdwSRBpd.js} +7 -7
- package/lib/{SchemaList-BeYWvBC7.js.map → SchemaList-DdwSRBpd.js.map} +1 -1
- package/lib/{SchemaView-CRcShewo.js → SchemaView-CA_Q_bvL.js} +65 -62
- package/lib/SchemaView-CA_Q_bvL.js.map +1 -0
- package/lib/{Select-C3efYI1n.js → Select-DWh0wSay.js} +3 -3
- package/lib/{Select-C3efYI1n.js.map → Select-DWh0wSay.js.map} +1 -1
- package/lib/{SignUp-CxBGHgba.js → SignUp-u6c0hFsC.js} +4 -4
- package/lib/SignUp-u6c0hFsC.js.map +1 -0
- package/lib/{Slot-DOtTvoyj.js → Slot-BbdqiRXo.js} +267 -239
- package/lib/{Slot-DOtTvoyj.js.map → Slot-BbdqiRXo.js.map} +1 -1
- package/lib/{SyntaxHighlight-GR0eix_L.js → SyntaxHighlight-CvzJ7DNa.js} +6 -9
- package/lib/{SyntaxHighlight-GR0eix_L.js.map → SyntaxHighlight-CvzJ7DNa.js.map} +1 -1
- package/lib/{Toc-BlcGIkXc.js → Toc-BAa-kpqN.js} +2 -2
- package/lib/{Toc-BlcGIkXc.js.map → Toc-BAa-kpqN.js.map} +1 -1
- package/lib/{ZudokuContext-BuJD7yIX.js → ZudokuContext-BR-lnR7O.js} +16 -17
- package/lib/{ZudokuContext-BuJD7yIX.js.map → ZudokuContext-BR-lnR7O.js.map} +1 -1
- package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -1
- package/lib/{circular-CGTcsqA3.js → circular-vrOlHc7z.js} +2 -2
- package/lib/{circular-CGTcsqA3.js.map → circular-vrOlHc7z.js.map} +1 -1
- package/lib/cn-dYga0KKN.js.map +1 -1
- package/lib/{createServer-DjgpuLne.js → createServer-BFra0x-X.js} +12 -27
- package/lib/createServer-BFra0x-X.js.map +1 -0
- package/lib/{errors-CrI3s7mR.js → errors-B6u81sEb.js} +2 -2
- package/lib/errors-B6u81sEb.js.map +1 -0
- package/lib/{hook-bv3iuX7X.js → hook-B4Q30zMI.js} +2 -2
- package/lib/{hook-bv3iuX7X.js.map → hook-B4Q30zMI.js.map} +1 -1
- package/lib/{index-HarEI51d.js → index-CQGi1b3U.js} +2 -2
- package/lib/{index-HarEI51d.js.map → index-CQGi1b3U.js.map} +1 -1
- package/lib/{index-CvTWnHZF.js → index-D1QlkVH3.js} +55 -52
- package/lib/index-D1QlkVH3.js.map +1 -0
- package/lib/{index-DzO-Qh6S.js → index-z-rQiwfg.js} +143 -146
- package/lib/index-z-rQiwfg.js.map +1 -0
- package/lib/invariant-Bm-FVUQE.js.map +1 -1
- package/lib/{mutation-Dy_5up8v.js → mutation-CiMUdKRU.js} +2 -2
- package/lib/{mutation-Dy_5up8v.js.map → mutation-CiMUdKRU.js.map} +1 -1
- package/lib/ui/Breadcrumb.js +22 -21
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +20 -26
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/Pagination.js +28 -29
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/zudoku.__internal.js +824 -815
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +5 -5
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.auth-supabase.js +3 -2
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +4 -4
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +40 -40
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +6 -6
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +7 -22
- package/src/app/ZuploBuildConfig.ts +1 -1
- package/src/app/entry.client.tsx +6 -5
- package/src/app/entry.server.tsx +3 -3
- package/src/app/env.ts +6 -6
- package/src/app/main.tsx +2 -2
- package/src/app/standalone.tsx +7 -2
- package/src/lib/MissingIcon.tsx +1 -1
- package/src/lib/auth/issuer.test.ts +1 -0
- package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
- package/src/lib/authentication/authentication.ts +3 -3
- package/src/lib/authentication/components/OAuthErrorPage.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +1 -1
- package/src/lib/authentication/providers/auth0.tsx +5 -5
- package/src/lib/authentication/providers/azureb2c.tsx +5 -5
- package/src/lib/authentication/providers/clerk.tsx +5 -5
- package/src/lib/authentication/providers/openid.tsx +6 -6
- package/src/lib/authentication/providers/supabase.tsx +7 -6
- package/src/lib/authentication/use-broadcast/shared.ts +4 -4
- package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
- package/src/lib/components/AnchorLink.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +1 -1
- package/src/lib/components/Bootstrap.tsx +1 -0
- package/src/lib/components/BuildCheck.tsx +2 -1
- package/src/lib/components/Header.tsx +2 -3
- package/src/lib/components/Heading.tsx +2 -3
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/Markdown.tsx +5 -2
- package/src/lib/components/MobileTopNavigation.tsx +11 -13
- package/src/lib/components/PathRenderer.tsx +2 -2
- package/src/lib/components/Search.tsx +1 -1
- package/src/lib/components/Slot.test.tsx +8 -8
- package/src/lib/components/Slot.tsx +2 -2
- package/src/lib/components/TopNavigation.tsx +3 -3
- package/src/lib/components/Zudoku.tsx +2 -2
- package/src/lib/components/context/ComponentsContext.tsx +2 -2
- package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
- package/src/lib/components/context/SlotProvider.tsx +4 -4
- package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
- package/src/lib/components/context/ZudokuContext.ts +1 -1
- package/src/lib/components/context/ZudokuProvider.tsx +1 -1
- package/src/lib/components/index.ts +1 -1
- package/src/lib/components/navigation/NavigationCategory.tsx +8 -1
- package/src/lib/components/navigation/NavigationItem.tsx +2 -2
- package/src/lib/components/navigation/NavigationWrapper.tsx +1 -1
- package/src/lib/components/navigation/Toc.tsx +2 -2
- package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
- package/src/lib/components/navigation/utils.ts +5 -6
- package/src/lib/core/ZudokuContext.ts +2 -1
- package/src/lib/errors/ErrorAlert.tsx +0 -1
- package/src/lib/errors/TopLevelError.tsx +2 -4
- package/src/lib/hooks/useEvent.test.tsx +2 -2
- package/src/lib/oas/graphql/circular.ts +3 -3
- package/src/lib/oas/graphql/index.ts +2 -1
- package/src/lib/oas/parser/dereference/index.ts +2 -1
- package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
- package/src/lib/oas/parser/index.ts +2 -2
- package/src/lib/oas/parser/upgrade/index.ts +2 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +5 -6
- package/src/lib/plugins/api-keys/index.tsx +8 -8
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +5 -5
- package/src/lib/plugins/markdown/index.tsx +1 -1
- package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
- package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
- package/src/lib/plugins/openapi/OperationList.tsx +5 -4
- package/src/lib/plugins/openapi/OperationListItem.tsx +18 -20
- package/src/lib/plugins/openapi/ParamInfos.tsx +2 -1
- package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -3
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -3
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -1
- package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
- package/src/lib/plugins/openapi/client/createServer.ts +1 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
- package/src/lib/plugins/openapi/context.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/fragment-masking.ts +0 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +0 -1
- package/src/lib/plugins/openapi/graphql/graphql.ts +0 -1
- package/src/lib/plugins/openapi/index.tsx +5 -4
- package/src/lib/plugins/openapi/interfaces.ts +5 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Headers.tsx +1 -1
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +2 -2
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +1 -1
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +3 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +3 -3
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
- package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
- package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -1
- package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
- package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +1 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +3 -4
- package/src/lib/plugins/openapi/util/getRoutes.tsx +2 -2
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +3 -3
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +2 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +3 -4
- package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
- package/src/lib/shiki.ts +6 -6
- package/src/lib/ui/Breadcrumb.tsx +1 -0
- package/src/lib/ui/Carousel.tsx +1 -0
- package/src/lib/ui/CodeBlock.tsx +3 -1
- package/src/lib/ui/Command.tsx +2 -4
- package/src/lib/ui/Dialog.tsx +1 -2
- package/src/lib/ui/Form.tsx +4 -4
- package/src/lib/ui/Pagination.tsx +1 -2
- package/src/lib/ui/ToggleGroup.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +9 -2
- package/src/lib/util/cn.ts +1 -1
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/groupBy.ts +1 -0
- package/src/lib/util/humanFileSize.ts +2 -3
- package/src/lib/util/invariant.ts +1 -0
- package/src/lib/util/pastellize.ts +2 -2
- package/src/lib/util/types.ts +1 -1
- package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
- package/src/lib/util/useScrollToAnchor.ts +3 -1
- package/src/shiki/langs/vue-vine.js +1 -0
- package/dist/lib/components/ReactMarkdown.d.ts +0 -29
- package/dist/lib/components/ReactMarkdown.js +0 -182
- package/dist/lib/components/ReactMarkdown.js.map +0 -1
- package/dist/vite/remarkStaticGeneration.js.map +0 -1
- package/lib/CodeBlock-yJjjRwj-.js.map +0 -1
- package/lib/Command-CDn17s8X.js.map +0 -1
- package/lib/Dialog-BrIjMmUK.js.map +0 -1
- package/lib/MdxPage-BmOQ5m5g.js.map +0 -1
- package/lib/OAuthErrorPage-Jv3r8wnL.js.map +0 -1
- package/lib/OasProvider-CA_lpILt.js.map +0 -1
- package/lib/OperationList-C-TObVw6.js.map +0 -1
- package/lib/SchemaView-CRcShewo.js.map +0 -1
- package/lib/SignUp-CxBGHgba.js.map +0 -1
- package/lib/createServer-DjgpuLne.js.map +0 -1
- package/lib/errors-CrI3s7mR.js.map +0 -1
- package/lib/index-CvTWnHZF.js.map +0 -1
- package/lib/index-DzO-Qh6S.js.map +0 -1
- package/src/lib/components/ReactMarkdown.license.txt +0 -21
- package/src/lib/components/ReactMarkdown.tsx +0 -264
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PopoverAnchor } from "@radix-ui/react-popover";
|
|
2
2
|
import { useCommandState } from "cmdk";
|
|
3
|
-
import {
|
|
3
|
+
import { type KeyboardEvent, type Ref, useRef, useState } from "react";
|
|
4
4
|
import {
|
|
5
5
|
Command,
|
|
6
6
|
CommandInlineInput,
|
|
@@ -32,6 +32,7 @@ const Bootstrap = ({
|
|
|
32
32
|
}) => (
|
|
33
33
|
<StrictMode>
|
|
34
34
|
<QueryClientProvider client={queryClient}>
|
|
35
|
+
{/* biome-ignore lint/suspicious/noExplicitAny: Allow any type */}
|
|
35
36
|
<HydrationBoundary state={hydrate ? (window as any).DATA : undefined}>
|
|
36
37
|
<BypassProtectedRoutesContext value={false}>
|
|
37
38
|
<HelmetProvider>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQuery } from "@tanstack/react-query";
|
|
2
2
|
import { CircleFadingArrowUpIcon, LoaderCircleIcon } from "lucide-react";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
|
-
import { z } from "zod
|
|
4
|
+
import { z } from "zod";
|
|
5
5
|
import { Button } from "../ui/Button.js";
|
|
6
6
|
|
|
7
7
|
const BuildStatusSchema = z.object({
|
|
@@ -38,6 +38,7 @@ export const BuildCheck = ({
|
|
|
38
38
|
buildStatusQuery.data?.status === "success" &&
|
|
39
39
|
buildStatusQuery.data.buildId
|
|
40
40
|
) {
|
|
41
|
+
// biome-ignore lint/suspicious/noDocumentCookie: CookieStore too new to use
|
|
41
42
|
document.cookie = `zuplo-build=${buildStatusQuery.data.buildId}; path=/; max-age=300; secure; SameSite=None`;
|
|
42
43
|
}
|
|
43
44
|
}, [buildStatusQuery.data]);
|
|
@@ -37,9 +37,8 @@ const RecursiveMenu = ({ item }: { item: ProfileNavigationItem }) => {
|
|
|
37
37
|
<DropdownMenuSubTrigger>{item.label}</DropdownMenuSubTrigger>
|
|
38
38
|
<DropdownMenuPortal>
|
|
39
39
|
<DropdownMenuSubContent>
|
|
40
|
-
{item.children.map((
|
|
41
|
-
|
|
42
|
-
<RecursiveMenu key={i} item={item} />
|
|
40
|
+
{item.children.map((child) => (
|
|
41
|
+
<RecursiveMenu key={child.label} item={child} />
|
|
43
42
|
))}
|
|
44
43
|
</DropdownMenuSubContent>
|
|
45
44
|
</DropdownMenuPortal>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import { useRegisterAnchorElement } from "./context/ViewportAnchorContext.js";
|
|
3
|
-
|
|
4
1
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
5
2
|
import { LinkIcon } from "lucide-react";
|
|
3
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
6
4
|
import { cn } from "../util/cn.js";
|
|
5
|
+
import { useRegisterAnchorElement } from "./context/ViewportAnchorContext.js";
|
|
7
6
|
|
|
8
7
|
const heading = cva("group relative", {
|
|
9
8
|
variants: {
|
|
@@ -23,9 +23,12 @@ export const Markdown = memo(
|
|
|
23
23
|
const rehypePlugins = useMemo(
|
|
24
24
|
() => [
|
|
25
25
|
rehypeRaw,
|
|
26
|
-
...createConfiguredShikiRehypePlugins(
|
|
26
|
+
...createConfiguredShikiRehypePlugins(
|
|
27
|
+
syntaxHighlighting?.themes,
|
|
28
|
+
syntaxHighlighting?.highlighter,
|
|
29
|
+
),
|
|
27
30
|
],
|
|
28
|
-
[syntaxHighlighting?.themes],
|
|
31
|
+
[syntaxHighlighting?.themes, syntaxHighlighting?.highlighter],
|
|
29
32
|
);
|
|
30
33
|
|
|
31
34
|
const mdComponents = useMemo(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
2
2
|
import { MenuIcon } from "lucide-react";
|
|
3
|
-
import {
|
|
3
|
+
import { useState } from "react";
|
|
4
4
|
import { Skeleton } from "zudoku/ui/Skeleton.js";
|
|
5
5
|
import { useAuth } from "../authentication/hook.js";
|
|
6
6
|
import {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { ClientOnly } from "./ClientOnly.js";
|
|
13
13
|
import { useZudoku } from "./context/ZudokuContext.js";
|
|
14
14
|
import { PoweredByZudoku } from "./navigation/PoweredByZudoku.js";
|
|
15
|
-
import {
|
|
15
|
+
import { shouldShowItem } from "./navigation/utils.js";
|
|
16
16
|
import { PageProgress } from "./PageProgress.js";
|
|
17
17
|
import { Search } from "./Search.js";
|
|
18
18
|
import { Slot } from "./Slot.js";
|
|
@@ -28,7 +28,7 @@ export const MobileTopNavigation = () => {
|
|
|
28
28
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
29
29
|
|
|
30
30
|
const accountItems = getProfileMenuItems();
|
|
31
|
-
const filteredItems = navigation.filter(
|
|
31
|
+
const filteredItems = navigation.filter(shouldShowItem(authState, context));
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<Drawer
|
|
@@ -72,16 +72,14 @@ export const MobileTopNavigation = () => {
|
|
|
72
72
|
</li>
|
|
73
73
|
) : (
|
|
74
74
|
Object.values(getProfileMenuItems()).length > 0 && (
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</li>
|
|
84
|
-
</Fragment>
|
|
75
|
+
<li>
|
|
76
|
+
{profile?.name ? `${profile.name}` : "My Account"}
|
|
77
|
+
{profile?.email && (
|
|
78
|
+
<div className="font-normal text-muted-foreground">
|
|
79
|
+
{profile.email}
|
|
80
|
+
</div>
|
|
81
|
+
)}
|
|
82
|
+
</li>
|
|
85
83
|
)
|
|
86
84
|
)}
|
|
87
85
|
</ClientOnly>
|
|
@@ -22,7 +22,7 @@ export const PathRenderer = ({
|
|
|
22
22
|
matches.forEach((match) => {
|
|
23
23
|
const [originalValue, name] = match;
|
|
24
24
|
if (!name) return;
|
|
25
|
-
const startIndex = match.index
|
|
25
|
+
const startIndex = match.index;
|
|
26
26
|
|
|
27
27
|
if (startIndex > lastIndex) {
|
|
28
28
|
elements.push(
|
|
@@ -50,7 +50,7 @@ export const PathRenderer = ({
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
return (
|
|
53
|
-
//
|
|
53
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
|
|
54
54
|
<Fragment key={`${part}-${i}`}>
|
|
55
55
|
{elements}
|
|
56
56
|
{i < arr.length - 1 && "/"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
2
2
|
import {
|
|
3
3
|
act,
|
|
4
|
+
type RenderResult,
|
|
4
5
|
screen,
|
|
5
6
|
render as testRender,
|
|
6
|
-
type RenderResult,
|
|
7
7
|
} from "@testing-library/react";
|
|
8
8
|
import type { PropsWithChildren, ReactNode } from "react";
|
|
9
9
|
import { useEffect, useState } from "react";
|
|
10
10
|
import { MemoryRouter } from "react-router";
|
|
11
11
|
import { describe, expect, it } from "vitest";
|
|
12
12
|
import { ZudokuContext } from "../core/ZudokuContext.js";
|
|
13
|
-
import { Slot } from "./Slot.js";
|
|
14
13
|
import { SlotProvider } from "./context/SlotProvider.js";
|
|
15
14
|
import { ZudokuProvider } from "./context/ZudokuProvider.js";
|
|
15
|
+
import { Slot } from "./Slot.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @vitest-environment happy-dom
|
|
@@ -196,12 +196,10 @@ describe("Slot", () => {
|
|
|
196
196
|
expect(screen.getByText("Source content")).toBeInTheDocument();
|
|
197
197
|
|
|
198
198
|
rerender(
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
/>
|
|
204
|
-
</>,
|
|
199
|
+
<Slot.Target
|
|
200
|
+
name="footer-after"
|
|
201
|
+
fallback={<div>Fallback content</div>}
|
|
202
|
+
/>,
|
|
205
203
|
);
|
|
206
204
|
|
|
207
205
|
expect(screen.getByText("Fallback content")).toBeInTheDocument();
|
|
@@ -374,11 +372,13 @@ describe("Slot", () => {
|
|
|
374
372
|
await render(
|
|
375
373
|
<>
|
|
376
374
|
{manySlots.map((name) => (
|
|
375
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
377
376
|
<Slot.Source key={name} name={name as any}>
|
|
378
377
|
<div>Content {name}</div>
|
|
379
378
|
</Slot.Source>
|
|
380
379
|
))}
|
|
381
380
|
{manySlots.map((name) => (
|
|
381
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
382
382
|
<Slot.Target key={name} name={name as any} />
|
|
383
383
|
))}
|
|
384
384
|
</>,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useId, useLayoutEffect
|
|
1
|
+
import { type ReactNode, useId, useLayoutEffect } from "react";
|
|
2
2
|
import {
|
|
3
|
+
type SlotType,
|
|
3
4
|
useRenderSlot,
|
|
4
5
|
useSlotContext,
|
|
5
|
-
type SlotType,
|
|
6
6
|
} from "./context/SlotProvider.js";
|
|
7
7
|
|
|
8
8
|
// This is to augment the type of the Slot component with custom slot names
|
|
@@ -2,18 +2,18 @@ import { cx } from "class-variance-authority";
|
|
|
2
2
|
import { deepEqual } from "fast-equals";
|
|
3
3
|
import { Suspense } from "react";
|
|
4
4
|
import { NavLink, type NavLinkProps } from "react-router";
|
|
5
|
-
import {
|
|
5
|
+
import type { NavigationItem } from "../../config/validators/NavigationSchema.js";
|
|
6
6
|
import { useAuth } from "../authentication/hook.js";
|
|
7
7
|
import { joinUrl } from "../util/joinUrl.js";
|
|
8
8
|
import { useCurrentNavigation, useZudoku } from "./context/ZudokuContext.js";
|
|
9
|
-
import {
|
|
9
|
+
import { shouldShowItem, traverseNavigationItem } from "./navigation/utils.js";
|
|
10
10
|
import { Slot } from "./Slot.js";
|
|
11
11
|
|
|
12
12
|
export const TopNavigation = () => {
|
|
13
13
|
const context = useZudoku();
|
|
14
14
|
const { navigation } = context;
|
|
15
15
|
const auth = useAuth();
|
|
16
|
-
const filteredItems = navigation.filter(
|
|
16
|
+
const filteredItems = navigation.filter(shouldShowItem(auth, context));
|
|
17
17
|
|
|
18
18
|
if (filteredItems.length === 0 || import.meta.env.MODE === "standalone") {
|
|
19
19
|
return <style>{`:root { --top-nav-height: 0px; }`}</style>;
|
|
@@ -66,7 +66,7 @@ const ZudokoInner = memo(
|
|
|
66
66
|
const queryClient = useQueryClient();
|
|
67
67
|
|
|
68
68
|
useEffect(() => {
|
|
69
|
-
if (didNavigate) {
|
|
69
|
+
if (didNavigate || !navigation.location) {
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
setDidNavigate(true);
|
|
@@ -78,7 +78,7 @@ const ZudokoInner = memo(
|
|
|
78
78
|
?.flatMap((plugin) =>
|
|
79
79
|
hasHead(plugin) ? (plugin.getHead?.({ location }) ?? []) : [],
|
|
80
80
|
)
|
|
81
|
-
//
|
|
81
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: No other key is available
|
|
82
82
|
.map((entry, i) => <Helmet key={i}>{entry}</Helmet>);
|
|
83
83
|
|
|
84
84
|
return (
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
+
type ComponentType,
|
|
2
3
|
createContext,
|
|
3
4
|
Fragment,
|
|
5
|
+
type PropsWithChildren,
|
|
6
|
+
type ReactNode,
|
|
4
7
|
use,
|
|
5
8
|
useMemo,
|
|
6
9
|
useRef,
|
|
7
|
-
type ComponentType,
|
|
8
|
-
type PropsWithChildren,
|
|
9
|
-
type ReactNode,
|
|
10
10
|
} from "react";
|
|
11
11
|
import { createStore, useStore } from "zustand";
|
|
12
12
|
import {
|
|
13
|
-
useExposedProps,
|
|
14
13
|
type ExposedComponentProps,
|
|
14
|
+
useExposedProps,
|
|
15
15
|
} from "../../util/useExposedProps.js";
|
|
16
16
|
|
|
17
17
|
export type SlotType = ReactNode | ComponentType<ExposedComponentProps>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createContext,
|
|
3
|
+
type PropsWithChildren,
|
|
3
4
|
use,
|
|
4
5
|
useCallback,
|
|
5
6
|
useEffect,
|
|
6
7
|
useMemo,
|
|
7
8
|
useRef,
|
|
8
9
|
useState,
|
|
9
|
-
type PropsWithChildren,
|
|
10
10
|
} from "react";
|
|
11
11
|
|
|
12
12
|
type AnchorContextType = {
|
|
@@ -128,7 +128,7 @@ export const ViewportAnchorProvider = ({ children }: PropsWithChildren) => {
|
|
|
128
128
|
|
|
129
129
|
const value = useMemo(
|
|
130
130
|
() => ({ activeAnchor, setActiveAnchor, ...observeFns }),
|
|
131
|
-
[activeAnchor,
|
|
131
|
+
[activeAnchor, observeFns],
|
|
132
132
|
);
|
|
133
133
|
|
|
134
134
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
import { matchPath, useLocation } from "react-router";
|
|
4
|
-
import {
|
|
4
|
+
import type { NavigationItem } from "../../../config/validators/NavigationSchema.js";
|
|
5
5
|
import type { ZudokuContext } from "../../core/ZudokuContext.js";
|
|
6
6
|
import { joinUrl } from "../../util/joinUrl.js";
|
|
7
7
|
import { CACHE_KEYS } from "../cache.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
2
2
|
import type { PropsWithChildren } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import type { ZudokuContext } from "../../core/ZudokuContext.js";
|
|
4
4
|
import { NO_DEHYDRATE } from "../cache.js";
|
|
5
5
|
import { ZudokuReactContext } from "./ZudokuContext.js";
|
|
6
6
|
|
|
@@ -5,11 +5,11 @@ import { Link as LinkImport } from "react-router";
|
|
|
5
5
|
import { useAuth as useAuthImport } from "../authentication/hook.js";
|
|
6
6
|
import { Button as ButtonImport } from "../ui/Button.js";
|
|
7
7
|
import { Callout as CalloutImport } from "../ui/Callout.js";
|
|
8
|
+
import { ClientOnly as ClientOnlyImport } from "./ClientOnly.js";
|
|
8
9
|
import {
|
|
9
10
|
CACHE_KEYS as CACHE_KEYS_IMPORT,
|
|
10
11
|
useCache as useCacheImport,
|
|
11
12
|
} from "./cache.js";
|
|
12
|
-
import { ClientOnly as ClientOnlyImport } from "./ClientOnly.js";
|
|
13
13
|
import { useZudoku as useZudokuImport } from "./context/ZudokuContext.js";
|
|
14
14
|
import { Markdown as MarkdownImport } from "./Markdown.js";
|
|
15
15
|
import { Spinner as SpinnerImport } from "./Spinner.js";
|
|
@@ -104,7 +104,14 @@ const NavigationCategoryInner = ({
|
|
|
104
104
|
</div>
|
|
105
105
|
</NavLink>
|
|
106
106
|
) : (
|
|
107
|
-
|
|
107
|
+
// biome-ignore lint/a11y/noStaticElementInteractions: This is only to track if the user has interacted
|
|
108
|
+
<div
|
|
109
|
+
onClick={() => setHasInteracted(true)}
|
|
110
|
+
onKeyUp={(e) => {
|
|
111
|
+
if (e.key === "Enter" || e.key === " ") setHasInteracted(true);
|
|
112
|
+
}}
|
|
113
|
+
className={styles}
|
|
114
|
+
>
|
|
108
115
|
{icon}
|
|
109
116
|
<div className="flex items-center justify-between w-full">
|
|
110
117
|
<div className="flex gap-2 truncate w-full">{category.label}</div>
|
|
@@ -17,7 +17,7 @@ import { useViewportAnchor } from "../context/ViewportAnchorContext.js";
|
|
|
17
17
|
import { useZudoku } from "../context/ZudokuContext.js";
|
|
18
18
|
import { NavigationBadge } from "./NavigationBadge.js";
|
|
19
19
|
import { NavigationCategory } from "./NavigationCategory.js";
|
|
20
|
-
import {
|
|
20
|
+
import { navigationListItem, shouldShowItem } from "./utils.js";
|
|
21
21
|
|
|
22
22
|
const TruncatedLabel = ({
|
|
23
23
|
label,
|
|
@@ -79,7 +79,7 @@ export const NavigationItem = ({
|
|
|
79
79
|
const auth = useAuth();
|
|
80
80
|
const context = useZudoku();
|
|
81
81
|
|
|
82
|
-
if (!
|
|
82
|
+
if (!shouldShowItem(auth, context)(item)) {
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEffect, useRef
|
|
1
|
+
import { type PropsWithChildren, useEffect, useRef } from "react";
|
|
2
2
|
import { cn } from "../../util/cn.js";
|
|
3
3
|
import { scrollIntoViewIfNeeded } from "../../util/scrollIntoViewIfNeeded.js";
|
|
4
4
|
import { useZudoku } from "../context/ZudokuContext.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { TocEntry } from "@stefanprobst/rehype-extract-toc";
|
|
2
2
|
import { ListTreeIcon } from "lucide-react";
|
|
3
3
|
import {
|
|
4
|
+
type CSSProperties,
|
|
5
|
+
type PropsWithChildren,
|
|
4
6
|
useEffect,
|
|
5
7
|
useRef,
|
|
6
8
|
useState,
|
|
7
|
-
type CSSProperties,
|
|
8
|
-
type PropsWithChildren,
|
|
9
9
|
} from "react";
|
|
10
10
|
import { cn } from "../../util/cn.js";
|
|
11
11
|
import { AnchorLink } from "../AnchorLink.js";
|
|
@@ -67,7 +67,6 @@ export const useIsCategoryOpen = (category: NavigationCategory) => {
|
|
|
67
67
|
case "custom-page":
|
|
68
68
|
case "doc":
|
|
69
69
|
return joinUrl(item.path) === location.pathname ? true : undefined;
|
|
70
|
-
case "link":
|
|
71
70
|
default:
|
|
72
71
|
return undefined;
|
|
73
72
|
}
|
|
@@ -75,14 +74,14 @@ export const useIsCategoryOpen = (category: NavigationCategory) => {
|
|
|
75
74
|
};
|
|
76
75
|
|
|
77
76
|
export const usePrevNext = (): {
|
|
78
|
-
prev?: { label
|
|
79
|
-
next?: { label
|
|
77
|
+
prev?: { label?: string; id: string };
|
|
78
|
+
next?: { label?: string; id: string };
|
|
80
79
|
} => {
|
|
81
80
|
const currentId = useLocation().pathname;
|
|
82
81
|
const { navigation } = useCurrentNavigation();
|
|
83
82
|
|
|
84
|
-
let prev;
|
|
85
|
-
let next;
|
|
83
|
+
let prev: { label?: string; id: string } | undefined;
|
|
84
|
+
let next: { label?: string; id: string } | undefined;
|
|
86
85
|
|
|
87
86
|
let foundCurrent = false;
|
|
88
87
|
|
|
@@ -134,7 +133,7 @@ export const navigationListItem = cva(
|
|
|
134
133
|
},
|
|
135
134
|
);
|
|
136
135
|
|
|
137
|
-
export const
|
|
136
|
+
export const shouldShowItem =
|
|
138
137
|
(auth: UseAuthReturn, context: ZudokuContext) =>
|
|
139
138
|
(item: NavigationItem): boolean => {
|
|
140
139
|
if (typeof item.display === "function") {
|
|
@@ -3,7 +3,7 @@ import { createNanoEvents } from "nanoevents";
|
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
4
|
import type { Location } from "react-router";
|
|
5
5
|
import type { BundledTheme, HighlighterCore } from "shiki";
|
|
6
|
-
import type { z } from "zod
|
|
6
|
+
import type { z } from "zod";
|
|
7
7
|
import type { Navigation } from "../../config/validators/NavigationSchema.js";
|
|
8
8
|
import type {
|
|
9
9
|
CallbackContext,
|
|
@@ -162,6 +162,7 @@ export class ZudokuContext {
|
|
|
162
162
|
if (!isEventConsumerPlugin(plugin)) return;
|
|
163
163
|
|
|
164
164
|
objectEntries(plugin.events).forEach(([event, handler]) => {
|
|
165
|
+
// biome-ignore lint/style/noNonNullAssertion: handler is guaranteed to be defined
|
|
165
166
|
this.emitter.on(event, handler!);
|
|
166
167
|
});
|
|
167
168
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { FallbackProps } from "react-error-boundary";
|
|
1
|
+
import type { FallbackProps } from "react-error-boundary";
|
|
2
2
|
import { ErrorAlert } from "./ErrorAlert.js";
|
|
3
3
|
|
|
4
|
-
export function TopLevelError({ error
|
|
5
|
-
// Call resetErrorBoundary() to reset the error boundary and retry the render.
|
|
6
|
-
|
|
4
|
+
export function TopLevelError({ error }: FallbackProps) {
|
|
7
5
|
return <ErrorAlert error={error} />;
|
|
8
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
2
2
|
import { act, renderHook, waitFor } from "@testing-library/react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { PropsWithChildren } from "react";
|
|
4
|
+
import type { Location } from "react-router";
|
|
5
5
|
import { assertType, describe, expect, it, vi } from "vitest";
|
|
6
6
|
import { ZudokuProvider } from "../components/context/ZudokuProvider.js";
|
|
7
7
|
import { ZudokuContext, type ZudokuEvents } from "../core/ZudokuContext.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphQLJSON } from "graphql-type-json";
|
|
2
1
|
import { GraphQLScalarType } from "graphql/index.js";
|
|
2
|
+
import { GraphQLJSON } from "graphql-type-json";
|
|
3
3
|
import type { RecordAny } from "../../util/traverse.js";
|
|
4
4
|
|
|
5
5
|
export const CIRCULAR_REF = "$[Circular Reference]";
|
|
@@ -14,12 +14,12 @@ const OPENAPI_PROPS = new Set([
|
|
|
14
14
|
]);
|
|
15
15
|
|
|
16
16
|
const handleCircularRefs = (
|
|
17
|
-
//
|
|
17
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
18
18
|
obj: any,
|
|
19
19
|
visited = new WeakSet(),
|
|
20
20
|
refs = new WeakMap(),
|
|
21
21
|
path: string[] = [],
|
|
22
|
-
//
|
|
22
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
23
23
|
): any => {
|
|
24
24
|
if (obj === null || typeof obj !== "object") return obj;
|
|
25
25
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// biome-ignore-all lint/suspicious/noExplicitAny: Allow any type
|
|
2
2
|
import SchemaBuilder from "@pothos/core";
|
|
3
3
|
import {
|
|
4
4
|
type CountableSlugify,
|
|
@@ -554,6 +554,7 @@ const Schema = builder.objectRef<OpenAPIDocument>("Schema").implement({
|
|
|
554
554
|
resolve: (root) =>
|
|
555
555
|
Object.entries(root.paths ?? {}).map(([path, value]) => ({
|
|
556
556
|
path,
|
|
557
|
+
// biome-ignore lint/style/noNonNullAssertion: value is guaranteed to be defined
|
|
557
558
|
methods: Object.keys(value!) as typeof HttpMethods,
|
|
558
559
|
})),
|
|
559
560
|
}),
|
|
@@ -8,7 +8,7 @@ type CustomResolver = (ref: string) => Promise<JSONSchema | undefined>;
|
|
|
8
8
|
|
|
9
9
|
const cache = new Map<JSONSchema, JSONSchema>();
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
12
12
|
const isIndexableObject = (obj: any): obj is Record<string, any> =>
|
|
13
13
|
obj !== null && typeof obj === "object";
|
|
14
14
|
|
|
@@ -18,6 +18,7 @@ export const dereference = async (
|
|
|
18
18
|
resolvers: CustomResolver[] = [],
|
|
19
19
|
) => {
|
|
20
20
|
if (cache.has(schema)) {
|
|
21
|
+
// biome-ignore lint/style/noNonNullAssertion: Cache is guaranteed to have a value
|
|
21
22
|
return cache.get(schema)!;
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -11,13 +11,13 @@ export const resolveLocalRef = (schema: JSONSchema, ref: string): unknown => {
|
|
|
11
11
|
}
|
|
12
12
|
const schemaCache = cache.get(schema);
|
|
13
13
|
|
|
14
|
-
if (schemaCache
|
|
15
|
-
return schemaCache
|
|
14
|
+
if (schemaCache?.has(ref)) {
|
|
15
|
+
return schemaCache.get(ref);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const path = ref.split("/").slice(1);
|
|
19
19
|
|
|
20
|
-
//
|
|
20
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
21
21
|
let current: any = schema;
|
|
22
22
|
for (const segment of path) {
|
|
23
23
|
if (!current || typeof current !== "object") {
|
|
@@ -27,6 +27,6 @@ export const resolveLocalRef = (schema: JSONSchema, ref: string): unknown => {
|
|
|
27
27
|
current = current[segment] ?? null;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
schemaCache
|
|
30
|
+
schemaCache?.set(ref, current);
|
|
31
31
|
return current;
|
|
32
32
|
};
|
|
@@ -43,7 +43,7 @@ const parseSchemaInput = async (
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
if (schemaInput.includes("://")) {
|
|
46
|
-
let response;
|
|
46
|
+
let response: Response;
|
|
47
47
|
try {
|
|
48
48
|
response = await fetch(schemaInput, {
|
|
49
49
|
cache: "force-cache",
|
|
@@ -83,7 +83,7 @@ const parseSchemaInput = async (
|
|
|
83
83
|
|
|
84
84
|
if (typeof schemaInput === "object") return schemaInput as JSONSchema;
|
|
85
85
|
|
|
86
|
-
throw new GraphQLError(
|
|
86
|
+
throw new GraphQLError(`Unsupported schema input: ${schemaInput}`);
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
1
|
import { type RecordAny, traverse } from "../../../util/traverse.js";
|
|
3
2
|
import type { OpenAPIDocument } from "../index.js";
|
|
4
3
|
/**
|
|
@@ -71,6 +70,7 @@ export const upgradeSchema = (schema: RecordAny): OpenAPIDocument => {
|
|
|
71
70
|
|
|
72
71
|
if (isMultipart) {
|
|
73
72
|
// Types
|
|
73
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
74
74
|
const entries: [string, any][] = Object.entries(schema.properties);
|
|
75
75
|
|
|
76
76
|
for (const [, value] of entries) {
|
|
@@ -110,6 +110,7 @@ export const upgradeSchema = (schema: RecordAny): OpenAPIDocument => {
|
|
|
110
110
|
|
|
111
111
|
schema = traverse(schema, (sub) => {
|
|
112
112
|
if (sub.type === "string" && sub.format === "binary") {
|
|
113
|
+
// biome-ignore lint/suspicious/noExplicitAny: Allow any type
|
|
113
114
|
return undefined as any;
|
|
114
115
|
}
|
|
115
116
|
|