zudoku 0.0.0-ec20d13 → 0.0.0-ec4a6db
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/app/ZuploBuildConfig.d.ts +11 -121
- package/dist/app/ZuploBuildConfig.js +8 -8
- package/dist/app/ZuploBuildConfig.js.map +1 -1
- package/dist/app/demo.js +21 -5
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +0 -2
- package/dist/app/entry.client.js +0 -2
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +0 -2
- package/dist/app/entry.server.js +0 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +7 -7
- package/dist/app/env.js +8 -0
- package/dist/app/env.js.map +1 -1
- package/dist/app/main.d.ts +1 -0
- package/dist/app/main.js +13 -18
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +7 -6
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/config/loader.js +4 -8
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +20 -44
- package/dist/config/validators/BuildSchema.js +8 -14
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/InputNavigationSchema.d.ts +7369 -0
- package/dist/config/validators/InputNavigationSchema.js +74 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
- package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
- package/dist/config/validators/NavigationSchema.d.ts +44 -0
- package/dist/config/validators/NavigationSchema.js +95 -0
- package/dist/config/validators/NavigationSchema.js.map +1 -0
- package/dist/config/validators/icon-types.d.ts +2 -1
- package/dist/config/validators/icon-types.js +1813 -1
- package/dist/config/validators/icon-types.js.map +1 -1
- package/dist/config/validators/validate.d.ts +464 -5669
- package/dist/config/validators/validate.js +80 -71
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +65 -4
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +325 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/issuer.js +1 -1
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/auth/issuer.test.js +1 -1
- package/dist/lib/auth/issuer.test.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +2 -0
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +4 -3
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +4 -2
- package/dist/lib/authentication/providers/openid.js +11 -5
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Autocomplete.js +2 -2
- package/dist/lib/components/Autocomplete.js.map +1 -1
- package/dist/lib/components/Banner.js +2 -2
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/BuildCheck.js +1 -1
- package/dist/lib/components/BuildCheck.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/ErrorPage.js +2 -2
- package/dist/lib/components/ErrorPage.js.map +1 -1
- package/dist/lib/components/Footer.js +1 -1
- package/dist/lib/components/Footer.js.map +1 -1
- package/dist/lib/components/Framed.d.ts +7 -0
- package/dist/lib/components/Framed.js +26 -0
- package/dist/lib/components/Framed.js.map +1 -0
- package/dist/lib/components/Header.js +19 -18
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +6 -2
- package/dist/lib/components/Heading.js +2 -2
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/Main.js +4 -4
- package/dist/lib/components/Main.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +0 -1
- package/dist/lib/components/Markdown.js +2 -3
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +11 -7
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/NotFoundPage.js +2 -2
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PageProgress.d.ts +1 -0
- package/dist/lib/components/PageProgress.js +20 -0
- package/dist/lib/components/PageProgress.js.map +1 -0
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +7 -3
- package/dist/lib/components/TopNavigation.js +49 -44
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Typography.d.ts +5 -0
- package/dist/lib/components/Typography.js +8 -0
- package/dist/lib/components/Typography.js.map +1 -0
- package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
- package/dist/lib/components/context/ZudokuContext.js +44 -26
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/index.js +2 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Navigation.d.ts +5 -0
- package/dist/lib/components/navigation/Navigation.js +12 -0
- package/dist/lib/components/navigation/Navigation.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
- package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
- package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
- package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +14 -12
- package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
- package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
- package/dist/lib/components/navigation/NavigationItem.js +47 -0
- package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
- package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
- package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
- package/dist/lib/components/navigation/utils.d.ts +7 -9
- package/dist/lib/components/navigation/utils.js +17 -17
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +12 -13
- package/dist/lib/core/ZudokuContext.js +21 -10
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -2
- package/dist/lib/errors/ErrorAlert.js +2 -3
- package/dist/lib/errors/ErrorAlert.js.map +1 -1
- package/dist/lib/hooks/useEvent.test.js +5 -3
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/hooks/useHotkey.d.ts +4 -0
- package/dist/lib/hooks/useHotkey.js +58 -0
- package/dist/lib/hooks/useHotkey.js.map +1 -0
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
- package/dist/lib/plugins/api-catalog/index.js +10 -10
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +13 -16
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.js +23 -2
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
- package/dist/lib/plugins/custom-pages/index.js +15 -10
- package/dist/lib/plugins/custom-pages/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -2
- package/dist/lib/plugins/markdown/MdxPage.js +30 -10
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +10 -2
- package/dist/lib/plugins/markdown/index.js +9 -26
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +2 -3
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
- package/dist/lib/plugins/openapi/OperationListItem.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/SchemaList.js +2 -3
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/graphql.js +2 -2
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +3 -3
- package/dist/lib/plugins/openapi/index.js +10 -10
- 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 +2 -2
- package/dist/lib/plugins/openapi/playground/BodyPanel.js +16 -12
- package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
- package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/Headers.js +52 -30
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
- package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +47 -34
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
- package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
- package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +69 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +7 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +25 -32
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +4 -2
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +4 -4
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.js +3 -2
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +5 -4
- package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +2 -2
- 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.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.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 +12 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +6 -5
- package/dist/lib/ui/Alert.js +12 -10
- package/dist/lib/ui/Alert.js.map +1 -1
- package/dist/lib/ui/CodeBlock.d.ts +1 -2
- package/dist/lib/ui/CodeBlock.js +10 -11
- package/dist/lib/ui/CodeBlock.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/EmbeddedCodeBlock.d.ts +15 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
- package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/dist/lib/ui/Select.js +1 -1
- package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
- package/dist/lib/ui/SyntaxHighlight.js +3 -2
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
- package/dist/lib/util/MdxComponents.d.ts +9 -1
- package/dist/lib/util/MdxComponents.js +4 -2
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/os.d.ts +2 -0
- package/dist/lib/util/os.js +21 -0
- package/dist/lib/util/os.js.map +1 -0
- package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
- package/dist/lib/util/useCopyToClipboard.js +11 -0
- package/dist/lib/util/useCopyToClipboard.js.map +1 -0
- package/dist/lib/util/useScrollToAnchor.js +3 -3
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +4 -4
- package/dist/vite/api/SchemaManager.js +25 -21
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +4 -4
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +42 -11
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +82 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +8 -2
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.js +12 -2
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/css/plugin.js +11 -0
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.js +1 -1
- package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
- package/dist/vite/mdx/remark-last-modified.js +29 -0
- package/dist/vite/mdx/remark-last-modified.js.map +1 -0
- package/dist/vite/mdx/utils.d.ts +2 -0
- package/dist/vite/mdx/utils.js +31 -0
- package/dist/vite/mdx/utils.js.map +1 -0
- package/dist/vite/plugin-api.js +8 -8
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +2 -0
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-custom-pages.js +2 -2
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.js +61 -59
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.js +6 -2
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.js +17 -38
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/{plugin-sidebar.d.ts → plugin-navigation.d.ts} +1 -1
- package/dist/vite/{plugin-sidebar.js → plugin-navigation.js} +20 -19
- package/dist/vite/plugin-navigation.js.map +1 -0
- package/dist/vite/plugin-theme.d.ts +8 -0
- package/dist/vite/plugin-theme.js +235 -0
- package/dist/vite/plugin-theme.js.map +1 -0
- package/dist/vite/plugin-theme.test.d.ts +1 -0
- package/dist/vite/plugin-theme.test.js +291 -0
- package/dist/vite/plugin-theme.test.js.map +1 -0
- package/dist/vite/plugin.js +4 -6
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/shadcn-registry.d.ts +45 -0
- package/dist/vite/shadcn-registry.js +29 -0
- package/dist/vite/shadcn-registry.js.map +1 -0
- package/lib/Alert-FYKbqjIt.js +161 -0
- package/lib/Alert-FYKbqjIt.js.map +1 -0
- package/lib/CodeBlock-DAKxs_Tu.js +85 -0
- package/lib/CodeBlock-DAKxs_Tu.js.map +1 -0
- package/lib/Command-xsbs2uhf.js +140 -0
- package/lib/Command-xsbs2uhf.js.map +1 -0
- package/lib/{Dialog-BxpuVLh9.js → Dialog-CiIdyz6a.js} +5 -5
- package/lib/Dialog-CiIdyz6a.js.map +1 -0
- package/lib/Drawer-BzkOKwgC.js.map +1 -1
- package/lib/MdxPage-DyRuoE_F.js +110 -0
- package/lib/MdxPage-DyRuoE_F.js.map +1 -0
- package/lib/OasProvider-CUA-DFGE.js +35 -0
- package/lib/OasProvider-CUA-DFGE.js.map +1 -0
- package/lib/{OperationList-Bi9ufpnW.js → OperationList-CRMvWoTv.js} +583 -570
- package/lib/OperationList-CRMvWoTv.js.map +1 -0
- package/lib/Pagination-HZKe5ncg.js +37 -0
- package/lib/Pagination-HZKe5ncg.js.map +1 -0
- package/lib/RouteGuard-CbKd7_9h.js +737 -0
- package/lib/RouteGuard-CbKd7_9h.js.map +1 -0
- package/lib/{SchemaList-Dx3pkSpp.js → SchemaList-B792ORza.js} +32 -43
- package/lib/SchemaList-B792ORza.js.map +1 -0
- package/lib/{SchemaView-DFs4gzhN.js → SchemaView-Bo53TeMb.js} +94 -103
- package/lib/SchemaView-Bo53TeMb.js.map +1 -0
- package/lib/SignUp-DfVvOCYB.js +56 -0
- package/lib/SignUp-DfVvOCYB.js.map +1 -0
- package/lib/{Markdown-r4buN85T.js → Slot-BpO_AGKJ.js} +3328 -2937
- package/lib/Slot-BpO_AGKJ.js.map +1 -0
- package/lib/{SyntaxHighlight-CqKHkyEy.js → SyntaxHighlight-CZgjJ7-f.js} +1152 -1151
- package/lib/SyntaxHighlight-CZgjJ7-f.js.map +1 -0
- package/lib/{Toc-lxYQEOzX.js → Toc-DYMzDvOa.js} +2 -2
- package/lib/{Toc-lxYQEOzX.js.map → Toc-DYMzDvOa.js.map} +1 -1
- package/lib/{chunk-DQRVZFIR-BblmKnHy.js → chunk-DQRVZFIR-DHK7_Ilc.js} +7 -7
- package/lib/{chunk-DQRVZFIR-BblmKnHy.js.map → chunk-DQRVZFIR-DHK7_Ilc.js.map} +1 -1
- package/lib/{circular-Dcv3tia6.js → circular-CLdQ0oUd.js} +2 -2
- package/lib/{circular-Dcv3tia6.js.map → circular-CLdQ0oUd.js.map} +1 -1
- package/lib/clerk-BDZ31hjU.js +25190 -0
- package/lib/clerk-BDZ31hjU.js.map +1 -0
- package/lib/{createServer-Bq93MdwG.js → createServer-Co4BBP-i.js} +4 -4
- package/lib/createServer-Co4BBP-i.js.map +1 -0
- package/lib/{errors-D27ZTQgx.js → errors-DE1gK7ms.js} +12 -12
- package/lib/{errors-D27ZTQgx.js.map → errors-DE1gK7ms.js.map} +1 -1
- package/lib/hook-Bd0yS8M0.js +1503 -0
- package/lib/hook-Bd0yS8M0.js.map +1 -0
- package/lib/index-ClhS5TxS.js +107 -0
- package/lib/index-ClhS5TxS.js.map +1 -0
- package/lib/index-CrcNWbel.js.map +1 -1
- package/lib/index-DLshv89l.js +3979 -0
- package/lib/index-DLshv89l.js.map +1 -0
- package/lib/{index-BvvmIczU.js → index-DLzZDv8_.js} +2 -2
- package/lib/{index-BvvmIczU.js.map → index-DLzZDv8_.js.map} +1 -1
- package/lib/index-DYP-V0jG.js +3469 -0
- package/lib/index-DYP-V0jG.js.map +1 -0
- package/lib/ui/Alert.js +54 -38
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/CodeBlock.js +6 -81
- package/lib/ui/CodeBlock.js.map +1 -1
- package/lib/ui/Command.js +1 -1
- package/lib/ui/Dialog.js +23 -23
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +80 -0
- package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +5 -4
- package/lib/ui/SyntaxHighlight.js.map +1 -1
- package/lib/{useExposedProps-BZQkZneR.js → useExposedProps-BIYjecPD.js} +2 -2
- package/lib/{useExposedProps-BZQkZneR.js.map → useExposedProps-BIYjecPD.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +1553 -1556
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +3 -3
- package/lib/zudoku.auth-openid.js +115 -106
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +33 -4201
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +10 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +47 -47
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +257 -217
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +12 -18
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +19 -69
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +6 -6
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +54 -57
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +211 -117
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +29 -24
- package/src/app/ZuploBuildConfig.ts +8 -8
- package/src/app/defaultTheme.css +68 -49
- package/src/app/demo.tsx +24 -6
- package/src/app/entry.client.tsx +0 -2
- package/src/app/entry.server.tsx +0 -2
- package/src/app/env.ts +8 -0
- package/src/app/main.css +10 -53
- package/src/app/main.tsx +17 -23
- package/src/app/standalone.tsx +7 -6
- package/src/lib/auth/issuer.test.ts +1 -1
- package/src/lib/auth/issuer.ts +1 -1
- package/src/lib/authentication/authentication.ts +2 -2
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +5 -12
- package/src/lib/authentication/providers/openid.tsx +23 -4
- package/src/lib/components/Autocomplete.tsx +2 -1
- package/src/lib/components/Banner.tsx +1 -2
- package/src/lib/components/BuildCheck.tsx +1 -1
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/ErrorPage.tsx +3 -3
- package/src/lib/components/Footer.tsx +1 -1
- package/src/lib/components/Framed.tsx +51 -0
- package/src/lib/components/Header.tsx +24 -21
- package/src/lib/components/Heading.tsx +7 -3
- package/src/lib/components/Main.tsx +9 -9
- package/src/lib/components/Markdown.tsx +3 -5
- package/src/lib/components/MobileTopNavigation.tsx +69 -15
- package/src/lib/components/NotFoundPage.tsx +3 -3
- package/src/lib/components/PageProgress.tsx +28 -0
- package/src/lib/components/Pagination.tsx +5 -4
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +75 -68
- package/src/lib/components/Typography.tsx +14 -0
- package/src/lib/components/context/ZudokuContext.ts +50 -32
- package/src/lib/components/index.ts +2 -0
- package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
- package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
- package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +16 -14
- package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +23 -17
- package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +7 -4
- package/src/lib/components/navigation/utils.ts +27 -28
- package/src/lib/core/ZudokuContext.ts +35 -20
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/errors/ErrorAlert.tsx +3 -9
- package/src/lib/hooks/useEvent.test.tsx +7 -5
- package/src/lib/hooks/useHotkey.ts +70 -0
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-catalog/index.tsx +19 -19
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +52 -29
- package/src/lib/plugins/api-keys/index.tsx +26 -4
- package/src/lib/plugins/custom-pages/index.tsx +21 -16
- package/src/lib/plugins/markdown/MdxPage.tsx +76 -21
- package/src/lib/plugins/markdown/index.tsx +28 -41
- package/src/lib/plugins/openapi/OperationList.tsx +9 -19
- package/src/lib/plugins/openapi/OperationListItem.tsx +3 -3
- package/src/lib/plugins/openapi/ParameterListItem.tsx +6 -0
- package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
- package/src/lib/plugins/openapi/Sidecar.tsx +1 -0
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +5 -5
- package/src/lib/plugins/openapi/graphql/graphql.ts +6 -6
- package/src/lib/plugins/openapi/index.tsx +12 -12
- package/src/lib/plugins/openapi/interfaces.ts +3 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +40 -31
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +7 -3
- package/src/lib/plugins/openapi/playground/Headers.tsx +187 -89
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +3 -2
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +7 -12
- package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/PathParams.tsx +4 -5
- package/src/lib/plugins/openapi/playground/Playground.tsx +174 -125
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +104 -58
- package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
- package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
- package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +115 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +103 -97
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +68 -92
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +3 -3
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -3
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -10
- package/src/lib/plugins/openapi/schema/utils.ts +3 -2
- package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +6 -5
- 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 +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +1 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -4
- package/src/lib/ui/Alert.tsx +45 -39
- package/src/lib/ui/CodeBlock.tsx +40 -55
- package/src/lib/ui/Dialog.tsx +2 -2
- package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/ui/SyntaxHighlight.tsx +11 -3
- package/src/lib/util/MdxComponents.tsx +13 -2
- package/src/lib/util/os.ts +18 -0
- package/src/lib/util/useCopyToClipboard.ts +17 -0
- package/src/lib/util/useScrollToAnchor.ts +3 -3
- package/dist/config/validators/InputSidebarSchema.d.ts +0 -220
- package/dist/config/validators/InputSidebarSchema.js +0 -63
- package/dist/config/validators/InputSidebarSchema.js.map +0 -1
- package/dist/config/validators/SidebarSchema.d.ts +0 -46
- package/dist/config/validators/SidebarSchema.js +0 -118
- package/dist/config/validators/SidebarSchema.js.map +0 -1
- package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
- package/dist/lib/components/navigation/Sidebar.js +0 -10
- package/dist/lib/components/navigation/Sidebar.js.map +0 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
- package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
- package/dist/lib/components/navigation/SidebarItem.js +0 -44
- package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
- package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
- package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
- package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
- package/dist/lib/plugins/markdown/resolver.js +0 -46
- package/dist/lib/plugins/markdown/resolver.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
- package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
- package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
- package/dist/vite/plugin-configure-tailwind.js +0 -38
- package/dist/vite/plugin-configure-tailwind.js.map +0 -1
- package/dist/vite/plugin-sidebar.js.map +0 -1
- package/dist/vite/plugin-theme-css.d.ts +0 -5
- package/dist/vite/plugin-theme-css.js +0 -77
- package/dist/vite/plugin-theme-css.js.map +0 -1
- package/lib/Callout-CoVxYafP.js +0 -231
- package/lib/Callout-CoVxYafP.js.map +0 -1
- package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
- package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
- package/lib/Dialog-BxpuVLh9.js.map +0 -1
- package/lib/Markdown-r4buN85T.js.map +0 -1
- package/lib/MdxPage-DYKsTerz.js +0 -84
- package/lib/MdxPage-DYKsTerz.js.map +0 -1
- package/lib/OasProvider-C499U3sP.js +0 -33
- package/lib/OasProvider-C499U3sP.js.map +0 -1
- package/lib/OperationList-Bi9ufpnW.js.map +0 -1
- package/lib/Pagination-CCxhL836.js +0 -36
- package/lib/Pagination-CCxhL836.js.map +0 -1
- package/lib/RouteGuard-B7GVW4oL.js +0 -55
- package/lib/RouteGuard-B7GVW4oL.js.map +0 -1
- package/lib/SchemaList-Dx3pkSpp.js.map +0 -1
- package/lib/SchemaView-DFs4gzhN.js.map +0 -1
- package/lib/SignUp-CRIKdWt9.js +0 -63
- package/lib/SignUp-CRIKdWt9.js.map +0 -1
- package/lib/Slot-B5qSAnwR.js +0 -160
- package/lib/Slot-B5qSAnwR.js.map +0 -1
- package/lib/SyntaxHighlight-CqKHkyEy.js.map +0 -1
- package/lib/clerk-yAKDC3Qz.js +0 -24812
- package/lib/clerk-yAKDC3Qz.js.map +0 -1
- package/lib/createServer-Bq93MdwG.js.map +0 -1
- package/lib/hook-7wZANGJP.js +0 -1483
- package/lib/hook-7wZANGJP.js.map +0 -1
- package/lib/index--oeBayMa.js +0 -86
- package/lib/index--oeBayMa.js.map +0 -1
- package/lib/index-BgPFzhG_.js +0 -3226
- package/lib/index-BgPFzhG_.js.map +0 -1
- package/lib/index-Bn6Lc9tq.js +0 -9
- package/lib/index-Bn6Lc9tq.js.map +0 -1
- package/lib/index-QzXzw_ra.js +0 -24
- package/lib/index-QzXzw_ra.js.map +0 -1
- package/lib/index.esm-BFcSKCe-.js +0 -683
- package/lib/index.esm-BFcSKCe-.js.map +0 -1
- package/lib/joinPath-B7kNnUX4.js +0 -8
- package/lib/joinPath-B7kNnUX4.js.map +0 -1
- package/lib/mutation-C1XCQTQL.js +0 -196
- package/lib/mutation-C1XCQTQL.js.map +0 -1
- package/lib/objectEntries-yMIkr2mI.js +0 -5
- package/lib/objectEntries-yMIkr2mI.js.map +0 -1
- package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
- package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
- package/lib/useLatest-hmRS46UF.js +0 -11
- package/lib/useLatest-hmRS46UF.js.map +0 -1
- package/lib/useMutation-BKvPttRn.js +0 -97
- package/lib/useMutation-BKvPttRn.js.map +0 -1
- package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
- package/src/lib/plugins/markdown/resolver.ts +0 -59
- package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
|
@@ -4,29 +4,29 @@ import { useNavigation } from "react-router";
|
|
|
4
4
|
import { Drawer, DrawerTrigger } from "zudoku/ui/Drawer.js";
|
|
5
5
|
import { cn } from "../util/cn.js";
|
|
6
6
|
import { useCurrentNavigation, useZudoku } from "./context/ZudokuContext.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Navigation } from "./navigation/Navigation.js";
|
|
8
8
|
import { Slot } from "./Slot.js";
|
|
9
9
|
|
|
10
10
|
export const Main = ({ children }: PropsWithChildren) => {
|
|
11
11
|
const [isDrawerOpen, setDrawerOpen] = useState(false);
|
|
12
|
-
const {
|
|
13
|
-
const
|
|
12
|
+
const { navigation } = useCurrentNavigation();
|
|
13
|
+
const hasNavigation = navigation.length > 0;
|
|
14
14
|
const isNavigating = useNavigation().state === "loading";
|
|
15
15
|
const { options } = useZudoku();
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<Drawer
|
|
19
|
-
direction={options.
|
|
19
|
+
direction={options.site?.dir === "rtl" ? "right" : "left"}
|
|
20
20
|
open={isDrawerOpen}
|
|
21
21
|
onOpenChange={(open) => setDrawerOpen(open)}
|
|
22
22
|
>
|
|
23
|
-
{
|
|
24
|
-
<
|
|
23
|
+
{hasNavigation && (
|
|
24
|
+
<Navigation
|
|
25
25
|
onRequestClose={() => setDrawerOpen(false)}
|
|
26
|
-
|
|
26
|
+
navigation={navigation}
|
|
27
27
|
/>
|
|
28
28
|
)}
|
|
29
|
-
{
|
|
29
|
+
{hasNavigation && (
|
|
30
30
|
<div className="lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b">
|
|
31
31
|
<DrawerTrigger className="flex items-center gap-2 px-4">
|
|
32
32
|
<PanelLeftIcon size={16} strokeWidth={1.5} />
|
|
@@ -38,7 +38,7 @@ export const Main = ({ children }: PropsWithChildren) => {
|
|
|
38
38
|
data-pagefind-body
|
|
39
39
|
className={cn(
|
|
40
40
|
"px-4 lg:pe-8 lg:px-8",
|
|
41
|
-
!
|
|
41
|
+
!hasNavigation && "col-span-full",
|
|
42
42
|
isNavigating && "animate-pulse",
|
|
43
43
|
)}
|
|
44
44
|
>
|
|
@@ -5,12 +5,10 @@ import remarkGfm from "remark-gfm";
|
|
|
5
5
|
import { createConfiguredShikiRehypePlugins } from "../shiki.js";
|
|
6
6
|
import { MdxComponents } from "../util/MdxComponents.js";
|
|
7
7
|
import { useZudoku } from "./context/ZudokuContext.js";
|
|
8
|
+
import { Typography } from "./Typography.js";
|
|
8
9
|
|
|
9
10
|
const remarkPlugins = [remarkGfm];
|
|
10
11
|
|
|
11
|
-
// other styles are defined in main.css .prose
|
|
12
|
-
export const ProseClasses = "prose dark:prose-invert prose-neutral";
|
|
13
|
-
|
|
14
12
|
export const Markdown = memo(
|
|
15
13
|
({
|
|
16
14
|
content,
|
|
@@ -36,7 +34,7 @@ export const Markdown = memo(
|
|
|
36
34
|
);
|
|
37
35
|
|
|
38
36
|
return (
|
|
39
|
-
<
|
|
37
|
+
<Typography className={className}>
|
|
40
38
|
<MarkdownHooks
|
|
41
39
|
remarkPlugins={remarkPlugins}
|
|
42
40
|
rehypePlugins={rehypePlugins}
|
|
@@ -44,7 +42,7 @@ export const Markdown = memo(
|
|
|
44
42
|
>
|
|
45
43
|
{content}
|
|
46
44
|
</MarkdownHooks>
|
|
47
|
-
</
|
|
45
|
+
</Typography>
|
|
48
46
|
);
|
|
49
47
|
},
|
|
50
48
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
2
2
|
import { MenuIcon } from "lucide-react";
|
|
3
|
-
import { useState } from "react";
|
|
3
|
+
import { Fragment, useState } from "react";
|
|
4
|
+
import { Skeleton } from "zudoku/ui/Skeleton.js";
|
|
4
5
|
import { useAuth } from "../authentication/hook.js";
|
|
5
6
|
import {
|
|
6
7
|
Drawer,
|
|
@@ -8,21 +9,27 @@ import {
|
|
|
8
9
|
DrawerTitle,
|
|
9
10
|
DrawerTrigger,
|
|
10
11
|
} from "../ui/Drawer.js";
|
|
12
|
+
import { ClientOnly } from "./ClientOnly.js";
|
|
11
13
|
import { useZudoku } from "./context/ZudokuContext.js";
|
|
12
14
|
import { PoweredByZudoku } from "./navigation/PoweredByZudoku.js";
|
|
13
15
|
import { isHiddenItem } from "./navigation/utils.js";
|
|
16
|
+
import { PageProgress } from "./PageProgress.js";
|
|
14
17
|
import { Search } from "./Search.js";
|
|
18
|
+
import { Slot } from "./Slot.js";
|
|
15
19
|
import { ThemeSwitch } from "./ThemeSwitch.js";
|
|
16
|
-
import {
|
|
20
|
+
import { TopNavItem, TopNavLink } from "./TopNavigation.js";
|
|
17
21
|
|
|
18
22
|
export const MobileTopNavigation = () => {
|
|
19
|
-
const {
|
|
20
|
-
const { isAuthenticated } = useAuth();
|
|
23
|
+
const { navigation, options, getProfileMenuItems } = useZudoku();
|
|
24
|
+
const { isAuthenticated, profile, isAuthEnabled, login } = useAuth();
|
|
21
25
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
22
26
|
|
|
27
|
+
const accountItems = getProfileMenuItems();
|
|
28
|
+
const filteredItems = navigation.filter(isHiddenItem(isAuthenticated));
|
|
29
|
+
|
|
23
30
|
return (
|
|
24
31
|
<Drawer
|
|
25
|
-
direction={options.
|
|
32
|
+
direction={options.site?.dir === "rtl" ? "left" : "right"}
|
|
26
33
|
open={drawerOpen}
|
|
27
34
|
onOpenChange={(open) => setDrawerOpen(open)}
|
|
28
35
|
>
|
|
@@ -43,21 +50,68 @@ export const MobileTopNavigation = () => {
|
|
|
43
50
|
</VisuallyHidden>
|
|
44
51
|
<Search className="flex p-4" />
|
|
45
52
|
<ul className="flex flex-col items-center gap-4 p-4">
|
|
53
|
+
<li className="empty:hidden">
|
|
54
|
+
<Slot.Target name="top-navigation-side" />
|
|
55
|
+
</li>
|
|
56
|
+
|
|
57
|
+
{isAuthEnabled && (
|
|
58
|
+
<ClientOnly
|
|
59
|
+
fallback={<Skeleton className="rounded-sm h-5 w-24 mr-4" />}
|
|
60
|
+
>
|
|
61
|
+
{!isAuthenticated ? (
|
|
62
|
+
<li>
|
|
63
|
+
<TopNavLink
|
|
64
|
+
to="/signin"
|
|
65
|
+
onClick={() => setDrawerOpen(false)}
|
|
66
|
+
>
|
|
67
|
+
Login
|
|
68
|
+
</TopNavLink>
|
|
69
|
+
</li>
|
|
70
|
+
) : (
|
|
71
|
+
Object.values(getProfileMenuItems()).length > 0 && (
|
|
72
|
+
<Fragment>
|
|
73
|
+
<li>
|
|
74
|
+
{profile?.name ? `${profile.name}` : "My Account"}
|
|
75
|
+
{profile?.email && (
|
|
76
|
+
<div className="font-normal text-muted-foreground">
|
|
77
|
+
{profile.email}
|
|
78
|
+
</div>
|
|
79
|
+
)}
|
|
80
|
+
</li>
|
|
81
|
+
</Fragment>
|
|
82
|
+
)
|
|
83
|
+
)}
|
|
84
|
+
</ClientOnly>
|
|
85
|
+
)}
|
|
86
|
+
{filteredItems.map((item) => (
|
|
87
|
+
<li key={item.label}>
|
|
88
|
+
<button type="button" onClick={() => setDrawerOpen(false)}>
|
|
89
|
+
<TopNavItem {...item} />
|
|
90
|
+
</button>
|
|
91
|
+
</li>
|
|
92
|
+
))}
|
|
93
|
+
{isAuthEnabled && isAuthenticated && accountItems.length > 0 && (
|
|
94
|
+
<ClientOnly
|
|
95
|
+
fallback={<Skeleton className="rounded-sm h-5 w-24 mr-4" />}
|
|
96
|
+
>
|
|
97
|
+
{accountItems.map((i) => (
|
|
98
|
+
<li key={i.label}>
|
|
99
|
+
<TopNavLink
|
|
100
|
+
to={i.path ?? ""}
|
|
101
|
+
onClick={() => setDrawerOpen(false)}
|
|
102
|
+
>
|
|
103
|
+
{i.label}
|
|
104
|
+
</TopNavLink>
|
|
105
|
+
</li>
|
|
106
|
+
))}
|
|
107
|
+
</ClientOnly>
|
|
108
|
+
)}
|
|
46
109
|
<li>
|
|
47
110
|
<ThemeSwitch />
|
|
48
111
|
</li>
|
|
49
|
-
{topNavigation
|
|
50
|
-
.filter(isHiddenItem(isAuthenticated))
|
|
51
|
-
.map((item) => (
|
|
52
|
-
<li key={item.label}>
|
|
53
|
-
<button type="button" onClick={() => setDrawerOpen(false)}>
|
|
54
|
-
<TopNavItem {...item} />
|
|
55
|
-
</button>
|
|
56
|
-
</li>
|
|
57
|
-
))}
|
|
58
112
|
</ul>
|
|
59
113
|
</div>
|
|
60
|
-
{options.
|
|
114
|
+
{options.site?.showPoweredBy !== false && (
|
|
61
115
|
<PoweredByZudoku className="grow-0 justify-center gap-1" />
|
|
62
116
|
)}
|
|
63
117
|
</div>
|
|
@@ -3,13 +3,13 @@ import { Link, useParams } from "react-router";
|
|
|
3
3
|
import { CategoryHeading } from "./CategoryHeading.js";
|
|
4
4
|
import { DeveloperHint } from "./DeveloperHint.js";
|
|
5
5
|
import { Heading } from "./Heading.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Typography } from "./Typography.js";
|
|
7
7
|
|
|
8
8
|
export const NotFoundPage = () => {
|
|
9
9
|
const params = useParams();
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<
|
|
12
|
+
<Typography className="h-full pt-(--padding-content-top)">
|
|
13
13
|
<CategoryHeading>404</CategoryHeading>
|
|
14
14
|
<Heading level={1} className="flex gap-3.5 items-center">
|
|
15
15
|
Page not found
|
|
@@ -28,6 +28,6 @@ export const NotFoundPage = () => {
|
|
|
28
28
|
menu to find the correct page.
|
|
29
29
|
</p>
|
|
30
30
|
<Link to="/">Go back home</Link>
|
|
31
|
-
</
|
|
31
|
+
</Typography>
|
|
32
32
|
);
|
|
33
33
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useNProgress } from "@tanem/react-nprogress";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { useNavigation } from "react-router";
|
|
4
|
+
|
|
5
|
+
export const PageProgress = () => {
|
|
6
|
+
const navigation = useNavigation();
|
|
7
|
+
const isNavigating = navigation.state === "loading";
|
|
8
|
+
// delay the animation to avoid flickering
|
|
9
|
+
const [isAnimating, setIsAnimating] = useState(false);
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const timer = setTimeout(() => setIsAnimating(isNavigating), 200);
|
|
13
|
+
|
|
14
|
+
return () => clearTimeout(timer);
|
|
15
|
+
}, [isNavigating]);
|
|
16
|
+
|
|
17
|
+
const { isFinished, progress } = useNProgress({ isAnimating });
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div
|
|
21
|
+
className="absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out"
|
|
22
|
+
style={{
|
|
23
|
+
opacity: isFinished ? 0 : 1,
|
|
24
|
+
width: isFinished ? 0 : `${progress * 100}%`,
|
|
25
|
+
}}
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
@@ -22,20 +22,21 @@ export const Pagination = ({
|
|
|
22
22
|
prev ? "justify-between" : "justify-end",
|
|
23
23
|
className,
|
|
24
24
|
)}
|
|
25
|
+
data-pagefind-ignore="all"
|
|
25
26
|
>
|
|
26
27
|
{prev && (
|
|
27
28
|
<Button variant="ghost" asChild>
|
|
28
29
|
<Link to={prev.to} relative="path" className={linkClass}>
|
|
29
|
-
<ArrowLeftIcon size={
|
|
30
|
-
<span className="truncate">{prev.label}</span>
|
|
30
|
+
<ArrowLeftIcon size={14} strokeWidth={2.5} />
|
|
31
|
+
<span className="text-lg truncate">{prev.label}</span>
|
|
31
32
|
</Link>
|
|
32
33
|
</Button>
|
|
33
34
|
)}
|
|
34
35
|
{next && (
|
|
35
36
|
<Button variant="ghost" asChild>
|
|
36
37
|
<Link to={next.to} relative="path" className={linkClass}>
|
|
37
|
-
<span className="truncate">{next.label}</span>
|
|
38
|
-
<ArrowRightIcon size={
|
|
38
|
+
<span className="text-lg truncate">{next.label}</span>
|
|
39
|
+
<ArrowRightIcon size={14} strokeWidth={2.5} />
|
|
39
40
|
</Link>
|
|
40
41
|
</Button>
|
|
41
42
|
)}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import { ErrorPage } from "./ErrorPage.js";
|
|
3
|
+
import { NotFoundPage } from "./NotFoundPage.js";
|
|
3
4
|
|
|
4
5
|
type StatusPageProps = {
|
|
5
6
|
statusCode: number;
|
|
@@ -79,6 +80,10 @@ const getDefaultContent = (
|
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
export const StatusPage = ({ statusCode, message }: StatusPageProps) => {
|
|
83
|
+
if (statusCode === 404) {
|
|
84
|
+
return <NotFoundPage />;
|
|
85
|
+
}
|
|
86
|
+
|
|
82
87
|
const defaultContent = getDefaultContent(statusCode);
|
|
83
88
|
|
|
84
89
|
return (
|
|
@@ -1,44 +1,19 @@
|
|
|
1
|
-
import { useNProgress } from "@tanem/react-nprogress";
|
|
2
1
|
import { cx } from "class-variance-authority";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import type
|
|
2
|
+
import { deepEqual } from "fast-equals";
|
|
3
|
+
import { Suspense } from "react";
|
|
4
|
+
import { NavLink, type NavLinkProps } from "react-router";
|
|
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 { isHiddenItem,
|
|
9
|
+
import { isHiddenItem, traverseNavigationItem } from "./navigation/utils.js";
|
|
10
10
|
import { Slot } from "./Slot.js";
|
|
11
11
|
|
|
12
|
-
export const PageProgress = () => {
|
|
13
|
-
const navigation = useNavigation();
|
|
14
|
-
const isNavigating = navigation.state === "loading";
|
|
15
|
-
// delay the animation to avoid flickering
|
|
16
|
-
const [isAnimating, setIsAnimating] = useState(false);
|
|
17
|
-
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
const timer = setTimeout(() => setIsAnimating(isNavigating), 100);
|
|
20
|
-
|
|
21
|
-
return () => clearTimeout(timer);
|
|
22
|
-
}, [isNavigating]);
|
|
23
|
-
|
|
24
|
-
const { isFinished, progress } = useNProgress({ isAnimating });
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<div
|
|
28
|
-
className="absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out"
|
|
29
|
-
style={{
|
|
30
|
-
opacity: isFinished ? 0 : 1,
|
|
31
|
-
width: isFinished ? 0 : `${progress * 100}%`,
|
|
32
|
-
}}
|
|
33
|
-
/>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
12
|
export const TopNavigation = () => {
|
|
38
|
-
const {
|
|
13
|
+
const { navigation } = useZudoku();
|
|
39
14
|
const { isAuthenticated } = useAuth();
|
|
40
15
|
|
|
41
|
-
const filteredItems =
|
|
16
|
+
const filteredItems = navigation.filter(isHiddenItem(isAuthenticated));
|
|
42
17
|
|
|
43
18
|
if (filteredItems.length === 0 || import.meta.env.MODE === "standalone") {
|
|
44
19
|
return <style>{`:root { --top-nav-height: 0px; }`}</style>;
|
|
@@ -50,7 +25,7 @@ export const TopNavigation = () => {
|
|
|
50
25
|
<nav className="text-sm">
|
|
51
26
|
<ul className="flex flex-row items-center gap-8">
|
|
52
27
|
{filteredItems.map((item) => (
|
|
53
|
-
<li key={item.
|
|
28
|
+
<li key={item.label + item.type}>
|
|
54
29
|
<TopNavItem {...item} />
|
|
55
30
|
</li>
|
|
56
31
|
))}
|
|
@@ -58,50 +33,82 @@ export const TopNavigation = () => {
|
|
|
58
33
|
</nav>
|
|
59
34
|
<Slot.Target name="top-navigation-side" />
|
|
60
35
|
</div>
|
|
61
|
-
<PageProgress />
|
|
36
|
+
{/* <PageProgress /> */}
|
|
62
37
|
</Suspense>
|
|
63
38
|
);
|
|
64
39
|
};
|
|
65
40
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
41
|
+
const getPathForItem = (item: NavigationItem): string => {
|
|
42
|
+
switch (item.type) {
|
|
43
|
+
case "doc":
|
|
44
|
+
return joinUrl(item.path);
|
|
45
|
+
case "link":
|
|
46
|
+
return item.to;
|
|
47
|
+
case "category": {
|
|
48
|
+
if (item.link?.path) {
|
|
49
|
+
return joinUrl(item.link.path);
|
|
50
|
+
}
|
|
76
51
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
52
|
+
return (
|
|
53
|
+
traverseNavigationItem(item, (child) => {
|
|
54
|
+
if (child.type !== "category") {
|
|
55
|
+
return getPathForItem(child);
|
|
56
|
+
}
|
|
57
|
+
}) ?? ""
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
case "custom-page":
|
|
61
|
+
return item.path;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
89
64
|
|
|
65
|
+
export const TopNavLink = ({
|
|
66
|
+
isActive,
|
|
67
|
+
children,
|
|
68
|
+
...props
|
|
69
|
+
}: {
|
|
70
|
+
isActive?: boolean;
|
|
71
|
+
children: React.ReactNode;
|
|
72
|
+
} & NavLinkProps) => {
|
|
90
73
|
return (
|
|
91
|
-
// We don't use isActive here because it has to be inside the sidebar,
|
|
92
|
-
// the top nav id doesn't necessarily start with the sidebar id
|
|
93
74
|
<NavLink
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
75
|
+
viewTransition
|
|
76
|
+
className={({ isActive: isActiveNavLink, isPending }) => {
|
|
77
|
+
const isActiveReal = isActiveNavLink || isActive;
|
|
78
|
+
return cx(
|
|
79
|
+
"flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
|
|
80
|
+
isActiveReal || isPending
|
|
81
|
+
? [
|
|
82
|
+
"text-foreground",
|
|
83
|
+
// underline with view transition animation
|
|
84
|
+
"after:content-[''] after:absolute after:bottom-0 after:left-0 after:right-0",
|
|
85
|
+
"after:h-0.5 after:bg-primary",
|
|
86
|
+
isActiveReal &&
|
|
87
|
+
"after:[view-transition-name:top-nav-underline]",
|
|
88
|
+
isPending && "after:bg-primary/25",
|
|
89
|
+
]
|
|
90
|
+
: "text-foreground/75 hover:text-foreground",
|
|
91
|
+
);
|
|
92
|
+
}}
|
|
93
|
+
{...props}
|
|
103
94
|
>
|
|
104
|
-
{
|
|
95
|
+
{children}
|
|
105
96
|
</NavLink>
|
|
106
97
|
);
|
|
107
98
|
};
|
|
99
|
+
|
|
100
|
+
export const TopNavItem = (item: NavigationItem) => {
|
|
101
|
+
const currentNav = useCurrentNavigation();
|
|
102
|
+
const isActiveTopNavItem = deepEqual(currentNav.topNavItem, item);
|
|
103
|
+
|
|
104
|
+
const path = getPathForItem(item);
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
// We don't use isActive here because it has to be inside the navigation,
|
|
108
|
+
// the top nav id doesn't necessarily start with the navigation id
|
|
109
|
+
<TopNavLink to={path} isActive={isActiveTopNavItem}>
|
|
110
|
+
{item.icon && <item.icon size={16} className="align-[-0.125em]" />}
|
|
111
|
+
{item.label}
|
|
112
|
+
</TopNavLink>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cn } from "../util/cn.js";
|
|
2
|
+
|
|
3
|
+
// other styles are defined in main.css .prose
|
|
4
|
+
export const ProseClasses = "prose dark:prose-invert prose-neutral";
|
|
5
|
+
|
|
6
|
+
export const Typography = ({
|
|
7
|
+
children,
|
|
8
|
+
className,
|
|
9
|
+
}: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
}) => {
|
|
13
|
+
return <div className={cn(ProseClasses, className)}>{children}</div>;
|
|
14
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
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 { type NavigationItem } from "../../../config/validators/NavigationSchema.js";
|
|
4
5
|
import { useAuth } from "../../authentication/hook.js";
|
|
5
6
|
import type { ZudokuContext } from "../../core/ZudokuContext.js";
|
|
6
7
|
import { joinUrl } from "../../util/joinUrl.js";
|
|
7
8
|
import { CACHE_KEYS } from "../cache.js";
|
|
8
|
-
import {
|
|
9
|
+
import { traverseNavigation } from "../navigation/utils.js";
|
|
9
10
|
|
|
10
11
|
export const ZudokuReactContext = createContext<ZudokuContext | undefined>(
|
|
11
12
|
undefined,
|
|
@@ -30,8 +31,22 @@ export const useApiIdentities = () => {
|
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
33
|
|
|
34
|
+
const getItemPath = (item: NavigationItem) => {
|
|
35
|
+
switch (item.type) {
|
|
36
|
+
case "doc":
|
|
37
|
+
return joinUrl(item.path);
|
|
38
|
+
case "category":
|
|
39
|
+
return item.link ? joinUrl(item.link.path) : undefined;
|
|
40
|
+
case "link":
|
|
41
|
+
return item.to;
|
|
42
|
+
case "custom-page":
|
|
43
|
+
return item.path;
|
|
44
|
+
default:
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
33
48
|
export const useCurrentNavigation = () => {
|
|
34
|
-
const {
|
|
49
|
+
const { getPluginNavigation, navigation, options } = useZudoku();
|
|
35
50
|
const location = useLocation();
|
|
36
51
|
const auth = useAuth();
|
|
37
52
|
|
|
@@ -39,44 +54,47 @@ export const useCurrentNavigation = () => {
|
|
|
39
54
|
matchPath(route, location.pathname),
|
|
40
55
|
);
|
|
41
56
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
? joinUrl(item.id)
|
|
47
|
-
: item.type === "category" && item.link
|
|
48
|
-
? joinUrl(item.link.id)
|
|
49
|
-
: undefined;
|
|
50
|
-
|
|
51
|
-
if (itemId === location.pathname) {
|
|
52
|
-
return item;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
57
|
+
const navItem = traverseNavigation(navigation, (item, parentCategories) => {
|
|
58
|
+
if (getItemPath(item) === location.pathname) {
|
|
59
|
+
return parentCategories.at(0) ?? item;
|
|
60
|
+
}
|
|
55
61
|
});
|
|
56
|
-
const currentTopNavItem =
|
|
57
|
-
topNavigation.find((t) => t.id === currentSidebarItem?.[0]) ??
|
|
58
|
-
topNavigation.find((item) => matchPath(item.id, location.pathname));
|
|
59
|
-
|
|
60
|
-
if (
|
|
61
|
-
currentTopNavItem &&
|
|
62
|
-
!currentSidebarItem &&
|
|
63
|
-
currentTopNavItem.id in sidebars
|
|
64
|
-
) {
|
|
65
|
-
currentSidebarItem = ["", sidebars[currentTopNavItem.id]!];
|
|
66
|
-
}
|
|
67
62
|
|
|
68
63
|
const { data } = useSuspenseQuery({
|
|
69
|
-
queryFn: () =>
|
|
70
|
-
queryKey: ["plugin-
|
|
64
|
+
queryFn: () => getPluginNavigation(location.pathname),
|
|
65
|
+
queryKey: ["plugin-navigation", location.pathname],
|
|
71
66
|
});
|
|
72
67
|
|
|
73
|
-
|
|
68
|
+
let topNavItem = navItem;
|
|
69
|
+
if (!navItem && data.length > 0) {
|
|
70
|
+
// Extract base paths from plugin navigation items
|
|
71
|
+
const pluginBasePaths = data.flatMap((item) => {
|
|
72
|
+
return getItemPath(item)?.split("?").at(0)?.split("#").at(0) ?? [];
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
// Find top-level nav item that matches any plugin base path
|
|
76
|
+
topNavItem = navigation
|
|
77
|
+
.flatMap((item) => {
|
|
78
|
+
const itemPath = getItemPath(item);
|
|
79
|
+
return itemPath ? [{ item, path: itemPath }] : [];
|
|
80
|
+
})
|
|
81
|
+
.sort((a, b) => b.path.length - a.path.length)
|
|
82
|
+
.find(({ path }) => {
|
|
83
|
+
return pluginBasePaths.some(
|
|
84
|
+
(basePath) =>
|
|
85
|
+
matchPath({ path, end: false }, basePath) ??
|
|
86
|
+
matchPath({ path: basePath, end: false }, path),
|
|
87
|
+
);
|
|
88
|
+
})?.item;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const hasNavigation =
|
|
74
92
|
auth.isAuthEnabled && !auth.isAuthenticated && isProtectedRoute;
|
|
75
93
|
|
|
76
94
|
return {
|
|
77
|
-
|
|
95
|
+
navigation: hasNavigation
|
|
78
96
|
? []
|
|
79
|
-
: [...(
|
|
80
|
-
topNavItem
|
|
97
|
+
: [...(navItem?.type === "category" ? navItem.items : []), ...data],
|
|
98
|
+
topNavItem,
|
|
81
99
|
};
|
|
82
100
|
};
|
|
@@ -23,6 +23,7 @@ import { Layout as LayoutImport } from "./Layout.js";
|
|
|
23
23
|
import { Markdown as MarkdownImport } from "./Markdown.js";
|
|
24
24
|
import { Spinner as SpinnerImport } from "./Spinner.js";
|
|
25
25
|
import { StatusPage as StatusPageImport } from "./StatusPage.js";
|
|
26
|
+
import { Typography as TypographyImport } from "./Typography.js";
|
|
26
27
|
import { Zudoku as ZudokuImport } from "./Zudoku.js";
|
|
27
28
|
|
|
28
29
|
export const Layout = /*@__PURE__*/ LayoutImport;
|
|
@@ -41,6 +42,7 @@ export const Button = /*@__PURE__*/ ButtonImport;
|
|
|
41
42
|
export const Link = /*@__PURE__*/ LinkImport;
|
|
42
43
|
export const BuildCheck = /*@__PURE__*/ BuildCheckImport;
|
|
43
44
|
export const Zudoku = /*@__PURE__*/ ZudokuImport;
|
|
45
|
+
export const Typography = /*@__PURE__*/ TypographyImport;
|
|
44
46
|
|
|
45
47
|
/** @deprecated Import from `zudoku/hooks` instead */
|
|
46
48
|
export const useMDXComponents = /*@__PURE__*/ useMDXComponentsImport;
|