jamdesk 1.0.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/LICENSE +21 -0
- package/README.md +323 -0
- package/bin/jamdesk.js +76 -0
- package/dist/__tests__/integration/deprecated-components.integration.test.d.ts +8 -0
- package/dist/__tests__/integration/deprecated-components.integration.test.d.ts.map +1 -0
- package/dist/__tests__/integration/deprecated-components.integration.test.js +165 -0
- package/dist/__tests__/integration/deprecated-components.integration.test.js.map +1 -0
- package/dist/__tests__/integration/migrate.integration.test.d.ts +2 -0
- package/dist/__tests__/integration/migrate.integration.test.d.ts.map +1 -0
- package/dist/__tests__/integration/migrate.integration.test.js +64 -0
- package/dist/__tests__/integration/migrate.integration.test.js.map +1 -0
- package/dist/__tests__/integration/prepublish.integration.test.d.ts +2 -0
- package/dist/__tests__/integration/prepublish.integration.test.d.ts.map +1 -0
- package/dist/__tests__/integration/prepublish.integration.test.js +27 -0
- package/dist/__tests__/integration/prepublish.integration.test.js.map +1 -0
- package/dist/__tests__/integration/validate.integration.test.d.ts +2 -0
- package/dist/__tests__/integration/validate.integration.test.d.ts.map +1 -0
- package/dist/__tests__/integration/validate.integration.test.js +56 -0
- package/dist/__tests__/integration/validate.integration.test.js.map +1 -0
- package/dist/__tests__/unit/deploy-templates.test.d.ts +2 -0
- package/dist/__tests__/unit/deploy-templates.test.d.ts.map +1 -0
- package/dist/__tests__/unit/deploy-templates.test.js +124 -0
- package/dist/__tests__/unit/deploy-templates.test.js.map +1 -0
- package/dist/__tests__/unit/deprecated-components-sync.test.d.ts +2 -0
- package/dist/__tests__/unit/deprecated-components-sync.test.d.ts.map +1 -0
- package/dist/__tests__/unit/deprecated-components-sync.test.js +69 -0
- package/dist/__tests__/unit/deprecated-components-sync.test.js.map +1 -0
- package/dist/__tests__/unit/deps-sync.test.d.ts +14 -0
- package/dist/__tests__/unit/deps-sync.test.d.ts.map +1 -0
- package/dist/__tests__/unit/deps-sync.test.js +166 -0
- package/dist/__tests__/unit/deps-sync.test.js.map +1 -0
- package/dist/__tests__/unit/docs-config.test.d.ts +2 -0
- package/dist/__tests__/unit/docs-config.test.d.ts.map +1 -0
- package/dist/__tests__/unit/docs-config.test.js +288 -0
- package/dist/__tests__/unit/docs-config.test.js.map +1 -0
- package/dist/__tests__/unit/errors.test.d.ts +2 -0
- package/dist/__tests__/unit/errors.test.d.ts.map +1 -0
- package/dist/__tests__/unit/errors.test.js +27 -0
- package/dist/__tests__/unit/errors.test.js.map +1 -0
- package/dist/__tests__/unit/extract-hooks.test.d.ts +5 -0
- package/dist/__tests__/unit/extract-hooks.test.d.ts.map +1 -0
- package/dist/__tests__/unit/extract-hooks.test.js +205 -0
- package/dist/__tests__/unit/extract-hooks.test.js.map +1 -0
- package/dist/__tests__/unit/frontmatter-sync.test.d.ts +8 -0
- package/dist/__tests__/unit/frontmatter-sync.test.d.ts.map +1 -0
- package/dist/__tests__/unit/frontmatter-sync.test.js +26 -0
- package/dist/__tests__/unit/frontmatter-sync.test.js.map +1 -0
- package/dist/__tests__/unit/mdx-validator.test.d.ts +2 -0
- package/dist/__tests__/unit/mdx-validator.test.d.ts.map +1 -0
- package/dist/__tests__/unit/mdx-validator.test.js +264 -0
- package/dist/__tests__/unit/mdx-validator.test.js.map +1 -0
- package/dist/__tests__/unit/migrate-convert.test.d.ts +2 -0
- package/dist/__tests__/unit/migrate-convert.test.d.ts.map +1 -0
- package/dist/__tests__/unit/migrate-convert.test.js +297 -0
- package/dist/__tests__/unit/migrate-convert.test.js.map +1 -0
- package/dist/__tests__/unit/migrate-detect.test.d.ts +2 -0
- package/dist/__tests__/unit/migrate-detect.test.d.ts.map +1 -0
- package/dist/__tests__/unit/migrate-detect.test.js +35 -0
- package/dist/__tests__/unit/migrate-detect.test.js.map +1 -0
- package/dist/__tests__/unit/migrate-mdx.test.d.ts +2 -0
- package/dist/__tests__/unit/migrate-mdx.test.d.ts.map +1 -0
- package/dist/__tests__/unit/migrate-mdx.test.js +158 -0
- package/dist/__tests__/unit/migrate-mdx.test.js.map +1 -0
- package/dist/__tests__/unit/openapi.test.d.ts +2 -0
- package/dist/__tests__/unit/openapi.test.d.ts.map +1 -0
- package/dist/__tests__/unit/openapi.test.js +52 -0
- package/dist/__tests__/unit/openapi.test.js.map +1 -0
- package/dist/__tests__/unit/package-config.test.d.ts +2 -0
- package/dist/__tests__/unit/package-config.test.d.ts.map +1 -0
- package/dist/__tests__/unit/package-config.test.js +63 -0
- package/dist/__tests__/unit/package-config.test.js.map +1 -0
- package/dist/__tests__/unit/port.test.d.ts +2 -0
- package/dist/__tests__/unit/port.test.d.ts.map +1 -0
- package/dist/__tests__/unit/port.test.js +20 -0
- package/dist/__tests__/unit/port.test.js.map +1 -0
- package/dist/__tests__/unit/vendored-sync.test.d.ts +14 -0
- package/dist/__tests__/unit/vendored-sync.test.d.ts.map +1 -0
- package/dist/__tests__/unit/vendored-sync.test.js +90 -0
- package/dist/__tests__/unit/vendored-sync.test.js.map +1 -0
- package/dist/commands/broken-links.d.ts +11 -0
- package/dist/commands/broken-links.d.ts.map +1 -0
- package/dist/commands/broken-links.js +95 -0
- package/dist/commands/broken-links.js.map +1 -0
- package/dist/commands/clean.d.ts +7 -0
- package/dist/commands/clean.d.ts.map +1 -0
- package/dist/commands/clean.js +59 -0
- package/dist/commands/clean.js.map +1 -0
- package/dist/commands/deploy/cloudflare.d.ts +12 -0
- package/dist/commands/deploy/cloudflare.d.ts.map +1 -0
- package/dist/commands/deploy/cloudflare.js +409 -0
- package/dist/commands/deploy/cloudflare.js.map +1 -0
- package/dist/commands/deploy/templates.d.ts +23 -0
- package/dist/commands/deploy/templates.d.ts.map +1 -0
- package/dist/commands/deploy/templates.js +179 -0
- package/dist/commands/deploy/templates.js.map +1 -0
- package/dist/commands/deploy/types.d.ts +19 -0
- package/dist/commands/deploy/types.d.ts.map +1 -0
- package/dist/commands/deploy/types.js +5 -0
- package/dist/commands/deploy/types.js.map +1 -0
- package/dist/commands/dev.d.ts +14 -0
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev.js +817 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/doctor.d.ts +7 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +159 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +96 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/migrate/convert-mdx.d.ts +50 -0
- package/dist/commands/migrate/convert-mdx.d.ts.map +1 -0
- package/dist/commands/migrate/convert-mdx.js +108 -0
- package/dist/commands/migrate/convert-mdx.js.map +1 -0
- package/dist/commands/migrate/convert.d.ts +80 -0
- package/dist/commands/migrate/convert.d.ts.map +1 -0
- package/dist/commands/migrate/convert.js +158 -0
- package/dist/commands/migrate/convert.js.map +1 -0
- package/dist/commands/migrate/detect.d.ts +31 -0
- package/dist/commands/migrate/detect.d.ts.map +1 -0
- package/dist/commands/migrate/detect.js +62 -0
- package/dist/commands/migrate/detect.js.map +1 -0
- package/dist/commands/migrate/extract-hooks.d.ts +71 -0
- package/dist/commands/migrate/extract-hooks.d.ts.map +1 -0
- package/dist/commands/migrate/extract-hooks.js +473 -0
- package/dist/commands/migrate/extract-hooks.js.map +1 -0
- package/dist/commands/migrate/index.d.ts +17 -0
- package/dist/commands/migrate/index.d.ts.map +1 -0
- package/dist/commands/migrate/index.js +282 -0
- package/dist/commands/migrate/index.js.map +1 -0
- package/dist/commands/migrate/prompts.d.ts +22 -0
- package/dist/commands/migrate/prompts.d.ts.map +1 -0
- package/dist/commands/migrate/prompts.js +67 -0
- package/dist/commands/migrate/prompts.js.map +1 -0
- package/dist/commands/migrate/types.d.ts +22 -0
- package/dist/commands/migrate/types.d.ts.map +1 -0
- package/dist/commands/migrate/types.js +26 -0
- package/dist/commands/migrate/types.js.map +1 -0
- package/dist/commands/openapi-check.d.ts +11 -0
- package/dist/commands/openapi-check.d.ts.map +1 -0
- package/dist/commands/openapi-check.js +88 -0
- package/dist/commands/openapi-check.js.map +1 -0
- package/dist/commands/rename.d.ts +10 -0
- package/dist/commands/rename.d.ts.map +1 -0
- package/dist/commands/rename.js +125 -0
- package/dist/commands/rename.js.map +1 -0
- package/dist/commands/update.d.ts +10 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +57 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/validate.d.ts +12 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +163 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +334 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/config.d.ts +7 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +18 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/deprecated-components.d.ts +72 -0
- package/dist/lib/deprecated-components.d.ts.map +1 -0
- package/dist/lib/deprecated-components.js +138 -0
- package/dist/lib/deprecated-components.js.map +1 -0
- package/dist/lib/deps.d.ts +17 -0
- package/dist/lib/deps.d.ts.map +1 -0
- package/dist/lib/deps.js +186 -0
- package/dist/lib/deps.js.map +1 -0
- package/dist/lib/docs-config.d.ts +67 -0
- package/dist/lib/docs-config.d.ts.map +1 -0
- package/dist/lib/docs-config.js +294 -0
- package/dist/lib/docs-config.js.map +1 -0
- package/dist/lib/errors.d.ts +23 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +32 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/frontmatter-utils.d.ts +25 -0
- package/dist/lib/frontmatter-utils.d.ts.map +1 -0
- package/dist/lib/frontmatter-utils.js +64 -0
- package/dist/lib/frontmatter-utils.js.map +1 -0
- package/dist/lib/mdx-validator.d.ts +27 -0
- package/dist/lib/mdx-validator.d.ts.map +1 -0
- package/dist/lib/mdx-validator.js +148 -0
- package/dist/lib/mdx-validator.js.map +1 -0
- package/dist/lib/navigation-validator.d.ts +31 -0
- package/dist/lib/navigation-validator.d.ts.map +1 -0
- package/dist/lib/navigation-validator.js +75 -0
- package/dist/lib/navigation-validator.js.map +1 -0
- package/dist/lib/normalize-config.d.ts +57 -0
- package/dist/lib/normalize-config.d.ts.map +1 -0
- package/dist/lib/normalize-config.js +63 -0
- package/dist/lib/normalize-config.js.map +1 -0
- package/dist/lib/openapi/cache.d.ts +40 -0
- package/dist/lib/openapi/cache.d.ts.map +1 -0
- package/dist/lib/openapi/cache.js +76 -0
- package/dist/lib/openapi/cache.js.map +1 -0
- package/dist/lib/openapi/errors.d.ts +36 -0
- package/dist/lib/openapi/errors.d.ts.map +1 -0
- package/dist/lib/openapi/errors.js +162 -0
- package/dist/lib/openapi/errors.js.map +1 -0
- package/dist/lib/openapi/index.d.ts +10 -0
- package/dist/lib/openapi/index.d.ts.map +1 -0
- package/dist/lib/openapi/index.js +12 -0
- package/dist/lib/openapi/index.js.map +1 -0
- package/dist/lib/openapi/types.d.ts +198 -0
- package/dist/lib/openapi/types.d.ts.map +1 -0
- package/dist/lib/openapi/types.js +8 -0
- package/dist/lib/openapi/types.js.map +1 -0
- package/dist/lib/openapi/validator.d.ts +45 -0
- package/dist/lib/openapi/validator.d.ts.map +1 -0
- package/dist/lib/openapi/validator.js +128 -0
- package/dist/lib/openapi/validator.js.map +1 -0
- package/dist/lib/openapi.d.ts +7 -0
- package/dist/lib/openapi.d.ts.map +1 -0
- package/dist/lib/openapi.js +7 -0
- package/dist/lib/openapi.js.map +1 -0
- package/dist/lib/output.d.ts +14 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/output.js +19 -0
- package/dist/lib/output.js.map +1 -0
- package/dist/lib/path-security.d.ts +23 -0
- package/dist/lib/path-security.d.ts.map +1 -0
- package/dist/lib/path-security.js +35 -0
- package/dist/lib/path-security.js.map +1 -0
- package/dist/lib/port.d.ts +18 -0
- package/dist/lib/port.d.ts.map +1 -0
- package/dist/lib/port.js +65 -0
- package/dist/lib/port.js.map +1 -0
- package/dist/lib/spinner.d.ts +4 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/dist/lib/spinner.js +16 -0
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/version.d.ts +2 -0
- package/dist/lib/version.d.ts.map +1 -0
- package/dist/lib/version.js +49 -0
- package/dist/lib/version.js.map +1 -0
- package/dist/utils/update-checker.d.ts +34 -0
- package/dist/utils/update-checker.d.ts.map +1 -0
- package/dist/utils/update-checker.js +142 -0
- package/dist/utils/update-checker.js.map +1 -0
- package/package.json +125 -0
- package/templates/docs.json +11 -0
- package/templates/introduction.mdx +19 -0
- package/templates/quickstart.mdx +20 -0
- package/vendored/app/[[...slug]]/error.tsx +103 -0
- package/vendored/app/[[...slug]]/page.tsx +690 -0
- package/vendored/app/api/assets/[...path]/route.ts +78 -0
- package/vendored/app/api/ev/route.ts +61 -0
- package/vendored/app/api/isr-health/route.ts +66 -0
- package/vendored/app/api/mcp/[project]/route.ts +435 -0
- package/vendored/app/api/og/route.tsx +167 -0
- package/vendored/app/api/r2/[project]/[...path]/route.ts +214 -0
- package/vendored/app/api/revalidate/route.ts +76 -0
- package/vendored/app/globals.css +37 -0
- package/vendored/app/layout.tsx +571 -0
- package/vendored/app/not-found.tsx +47 -0
- package/vendored/components/CodeBlockCopyButton.tsx +146 -0
- package/vendored/components/HeaderLinkCopy.tsx +135 -0
- package/vendored/components/errors/NotFoundContent.tsx +147 -0
- package/vendored/components/layout/LayoutWrapper.tsx +128 -0
- package/vendored/components/mdx/Accordion.tsx +91 -0
- package/vendored/components/mdx/ApiCodePanel.tsx +51 -0
- package/vendored/components/mdx/ApiEndpoint.tsx +104 -0
- package/vendored/components/mdx/ApiPage.tsx +379 -0
- package/vendored/components/mdx/Badge.tsx +169 -0
- package/vendored/components/mdx/Callouts.tsx +140 -0
- package/vendored/components/mdx/Card.tsx +214 -0
- package/vendored/components/mdx/CodeGroup.tsx +136 -0
- package/vendored/components/mdx/Color.tsx +244 -0
- package/vendored/components/mdx/Columns.tsx +37 -0
- package/vendored/components/mdx/Expandable.tsx +37 -0
- package/vendored/components/mdx/Frame.tsx +51 -0
- package/vendored/components/mdx/Icon.tsx +132 -0
- package/vendored/components/mdx/Latex.tsx +75 -0
- package/vendored/components/mdx/MDXComponents.tsx +414 -0
- package/vendored/components/mdx/Mermaid.tsx +35 -0
- package/vendored/components/mdx/MermaidInner.tsx +342 -0
- package/vendored/components/mdx/OpenApiEndpoint.tsx +971 -0
- package/vendored/components/mdx/Panel.tsx +26 -0
- package/vendored/components/mdx/PanelWrapper.tsx +100 -0
- package/vendored/components/mdx/ParamField.tsx +75 -0
- package/vendored/components/mdx/RequestExample.tsx +91 -0
- package/vendored/components/mdx/ResponseExample.tsx +145 -0
- package/vendored/components/mdx/ResponseField.tsx +109 -0
- package/vendored/components/mdx/Steps.tsx +173 -0
- package/vendored/components/mdx/Table.tsx +352 -0
- package/vendored/components/mdx/Tabs.tsx +147 -0
- package/vendored/components/mdx/Tile.tsx +127 -0
- package/vendored/components/mdx/Tooltip.tsx +111 -0
- package/vendored/components/mdx/Tree.tsx +484 -0
- package/vendored/components/mdx/Update.tsx +90 -0
- package/vendored/components/mdx/View.tsx +354 -0
- package/vendored/components/mdx/YouTube.tsx +35 -0
- package/vendored/components/mdx/ZoomableImage.tsx +83 -0
- package/vendored/components/navigation/Breadcrumb.tsx +241 -0
- package/vendored/components/navigation/DefaultLogo.tsx +81 -0
- package/vendored/components/navigation/Header.tsx +512 -0
- package/vendored/components/navigation/LanguageSelector.tsx +249 -0
- package/vendored/components/navigation/PageNavigation.tsx +174 -0
- package/vendored/components/navigation/Sidebar.tsx +713 -0
- package/vendored/components/navigation/SocialFooter.tsx +186 -0
- package/vendored/components/navigation/TableOfContents.tsx +435 -0
- package/vendored/components/navigation/TabsNav.tsx +182 -0
- package/vendored/components/search/LazySearchModal.tsx +19 -0
- package/vendored/components/search/SearchModal.tsx +573 -0
- package/vendored/components/snippets/ProjectSnippets.tsx +4 -0
- package/vendored/components/theme/ThemeProvider.tsx +31 -0
- package/vendored/components/theme/ThemeToggle.tsx +134 -0
- package/vendored/components/ui/CodePanel.tsx +517 -0
- package/vendored/components/ui/CodePanelModal.tsx +342 -0
- package/vendored/contexts/TabSyncContext.tsx +30 -0
- package/vendored/hooks/useFocusTrap.ts +42 -0
- package/vendored/hooks/useHashNavigation.ts +39 -0
- package/vendored/hooks/useShikiHighlight.ts +101 -0
- package/vendored/lib/analytics-client.ts +77 -0
- package/vendored/lib/build/cache.ts +138 -0
- package/vendored/lib/build/error-parser.ts +690 -0
- package/vendored/lib/build/estimation.ts +113 -0
- package/vendored/lib/build/index.ts +17 -0
- package/vendored/lib/build/page-file-map.ts +48 -0
- package/vendored/lib/build/r2-upload.ts +179 -0
- package/vendored/lib/cache-keys.ts +117 -0
- package/vendored/lib/code-utils.ts +42 -0
- package/vendored/lib/content-loader.ts +176 -0
- package/vendored/lib/deprecated-components.ts +185 -0
- package/vendored/lib/docs-isr.ts +180 -0
- package/vendored/lib/docs-types.ts +874 -0
- package/vendored/lib/docs.ts +203 -0
- package/vendored/lib/domain-helpers.ts +107 -0
- package/vendored/lib/email-notifier.ts +102 -0
- package/vendored/lib/email-templates/build-failure.tsx +193 -0
- package/vendored/lib/email-templates/components/base-layout.tsx +150 -0
- package/vendored/lib/email-templates/components/error-box.tsx +88 -0
- package/vendored/lib/email-templates/components/info-row.tsx +63 -0
- package/vendored/lib/email-templates/index.ts +13 -0
- package/vendored/lib/empty-polyfill.js +3 -0
- package/vendored/lib/extract-highlights.ts +124 -0
- package/vendored/lib/fonts.ts +227 -0
- package/vendored/lib/frontmatter-utils.ts +77 -0
- package/vendored/lib/fs-utils.ts +20 -0
- package/vendored/lib/git-utils.ts +87 -0
- package/vendored/lib/health-checks.ts +224 -0
- package/vendored/lib/icon-utils.ts +492 -0
- package/vendored/lib/infer-page-type.ts +14 -0
- package/vendored/lib/isr-build-executor.ts +185 -0
- package/vendored/lib/language-icons.ts +152 -0
- package/vendored/lib/language-utils.ts +338 -0
- package/vendored/lib/latex-config.ts +64 -0
- package/vendored/lib/link-prefix-context.tsx +32 -0
- package/vendored/lib/logger.ts +63 -0
- package/vendored/lib/mcp-search.ts +255 -0
- package/vendored/lib/mdx-inline-components.ts +155 -0
- package/vendored/lib/mdx.ts +100 -0
- package/vendored/lib/middleware-helpers.ts +519 -0
- package/vendored/lib/navigation-resolver.ts +621 -0
- package/vendored/lib/navigation-utils.ts +103 -0
- package/vendored/lib/normalize-config.ts +94 -0
- package/vendored/lib/openapi/cache.ts +92 -0
- package/vendored/lib/openapi/code-examples.ts +389 -0
- package/vendored/lib/openapi/errors.ts +253 -0
- package/vendored/lib/openapi/generator.ts +230 -0
- package/vendored/lib/openapi/index.ts +84 -0
- package/vendored/lib/openapi/parser.ts +474 -0
- package/vendored/lib/openapi/types.ts +232 -0
- package/vendored/lib/openapi/validator.ts +156 -0
- package/vendored/lib/openapi-isr.ts +121 -0
- package/vendored/lib/page-isr-helpers.ts +137 -0
- package/vendored/lib/path-safety.ts +130 -0
- package/vendored/lib/paths.ts +35 -0
- package/vendored/lib/preprocess-mdx.ts +951 -0
- package/vendored/lib/process-mdx-with-exports.ts +75 -0
- package/vendored/lib/project-resolver.ts +165 -0
- package/vendored/lib/r2-content.ts +60 -0
- package/vendored/lib/r2-manifest.ts +84 -0
- package/vendored/lib/recent-searches.ts +41 -0
- package/vendored/lib/recma-compound-components.ts +84 -0
- package/vendored/lib/redirect-compiler.ts +160 -0
- package/vendored/lib/redirect-matcher.ts +296 -0
- package/vendored/lib/redis.ts +23 -0
- package/vendored/lib/rehype-class-to-classname.ts +31 -0
- package/vendored/lib/rehype-code-meta.ts +275 -0
- package/vendored/lib/rehype-nozoom-to-data.ts +45 -0
- package/vendored/lib/remark-extract-exports.ts +104 -0
- package/vendored/lib/resilience.ts +260 -0
- package/vendored/lib/revalidation-helpers.ts +200 -0
- package/vendored/lib/revalidation-trigger.ts +150 -0
- package/vendored/lib/screenshot-capture.ts +229 -0
- package/vendored/lib/search-client.ts +91 -0
- package/vendored/lib/search-suggestions.ts +38 -0
- package/vendored/lib/search.ts +158 -0
- package/vendored/lib/seo.ts +264 -0
- package/vendored/lib/shiki-client.ts +131 -0
- package/vendored/lib/shiki-config.ts +289 -0
- package/vendored/lib/shiki-css-theme.ts +46 -0
- package/vendored/lib/shiki-highlighter.ts +62 -0
- package/vendored/lib/shiki-transformers.ts +337 -0
- package/vendored/lib/slack-notifier.ts +248 -0
- package/vendored/lib/snippet-compiler-isr.ts +114 -0
- package/vendored/lib/snippet-loader-isr.ts +276 -0
- package/vendored/lib/static-artifacts.ts +375 -0
- package/vendored/lib/static-file-route.ts +72 -0
- package/vendored/lib/tracking-script.ts +19 -0
- package/vendored/lib/typography-config.ts +42 -0
- package/vendored/lib/validate-config.ts +268 -0
- package/vendored/next.config.js +45 -0
- package/vendored/postcss.config.js +6 -0
- package/vendored/schema/README.md +28 -0
- package/vendored/schema/docs-schema.json +4631 -0
- package/vendored/scripts/build-project.cjs +174 -0
- package/vendored/scripts/build-search-index.cjs +347 -0
- package/vendored/scripts/compile-snippets.cjs +488 -0
- package/vendored/scripts/copy-files.cjs +295 -0
- package/vendored/scripts/dev-project.cjs +534 -0
- package/vendored/scripts/enhance-navigation.cjs +354 -0
- package/vendored/scripts/validate-links.cjs +423 -0
- package/vendored/shared/constants.ts +6 -0
- package/vendored/shared/index.ts +19 -0
- package/vendored/shared/logger.ts +62 -0
- package/vendored/shared/memory-monitor.ts +190 -0
- package/vendored/shared/navigation-validator.ts +101 -0
- package/vendored/shared/path-security.ts +39 -0
- package/vendored/shared/status-reporter.ts +199 -0
- package/vendored/shared/timer.ts +51 -0
- package/vendored/shared/types.ts +102 -0
- package/vendored/tailwind.config.ts +39 -0
- package/vendored/themes/base.css +1311 -0
- package/vendored/themes/index.ts +119 -0
- package/vendored/themes/jam/variables.css +835 -0
- package/vendored/themes/nebula/variables.css +282 -0
- package/vendored/themes/pulsar/variables.css +1009 -0
- package/vendored/themes/types.ts +89 -0
- package/vendored/tsconfig.json +48 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useState, useEffect, useRef, useCallback } from 'react';
|
|
4
|
+
import { useRouter, usePathname } from 'next/navigation';
|
|
5
|
+
import type { ResolvedLanguage } from '@/lib/navigation-resolver';
|
|
6
|
+
import type { LanguageCode } from '@/lib/docs-types';
|
|
7
|
+
import {
|
|
8
|
+
transformLanguagePath,
|
|
9
|
+
saveLanguagePreference,
|
|
10
|
+
getLanguagePreference,
|
|
11
|
+
} from '@/lib/language-utils';
|
|
12
|
+
import { useLinkPrefix } from '@/lib/link-prefix-context';
|
|
13
|
+
|
|
14
|
+
interface LanguageSelectorProps {
|
|
15
|
+
/** Available languages from resolved navigation */
|
|
16
|
+
languages: ResolvedLanguage[];
|
|
17
|
+
/** Whether to show compact mode (flag only, used in header) */
|
|
18
|
+
compact?: boolean;
|
|
19
|
+
/** Dropdown direction: 'up' for sidebar, 'down' for header */
|
|
20
|
+
position?: 'up' | 'down';
|
|
21
|
+
/** Default language code for path transformation */
|
|
22
|
+
defaultLanguage?: LanguageCode;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function LanguageSelector({
|
|
26
|
+
languages,
|
|
27
|
+
compact = false,
|
|
28
|
+
position = 'down',
|
|
29
|
+
defaultLanguage = 'en',
|
|
30
|
+
}: LanguageSelectorProps) {
|
|
31
|
+
const router = useRouter();
|
|
32
|
+
const linkPrefix = useLinkPrefix();
|
|
33
|
+
const pathname = usePathname();
|
|
34
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
35
|
+
const [focusedIndex, setFocusedIndex] = useState(-1);
|
|
36
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
37
|
+
const buttonRef = useRef<HTMLButtonElement>(null);
|
|
38
|
+
const listRef = useRef<HTMLUListElement>(null);
|
|
39
|
+
|
|
40
|
+
// Find current language
|
|
41
|
+
const currentLanguage = languages.find((l) => l.isActive) || languages[0];
|
|
42
|
+
|
|
43
|
+
// Find actual default language from config
|
|
44
|
+
const actualDefault = languages.find((l) => l.isDefault)?.code || defaultLanguage;
|
|
45
|
+
|
|
46
|
+
// Check localStorage preference on mount and redirect if needed
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
const savedPref = getLanguagePreference();
|
|
49
|
+
if (savedPref && currentLanguage && savedPref !== currentLanguage.code) {
|
|
50
|
+
// Only redirect if on default language URL (no explicit language in path)
|
|
51
|
+
const hasLangInPath = languages.some(
|
|
52
|
+
(l) => pathname?.includes(`/${l.code}/`) || pathname?.endsWith(`/${l.code}`)
|
|
53
|
+
);
|
|
54
|
+
if (!hasLangInPath) {
|
|
55
|
+
const basePath = transformLanguagePath(
|
|
56
|
+
pathname || '/docs',
|
|
57
|
+
actualDefault,
|
|
58
|
+
savedPref,
|
|
59
|
+
actualDefault
|
|
60
|
+
);
|
|
61
|
+
router.replace(`${linkPrefix}${basePath}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, []); // Only run once on mount
|
|
65
|
+
|
|
66
|
+
// Handle click outside to close
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
if (!isOpen) return;
|
|
69
|
+
|
|
70
|
+
const handleClickOutside = (e: MouseEvent) => {
|
|
71
|
+
if (containerRef.current && !containerRef.current.contains(e.target as Node)) {
|
|
72
|
+
setIsOpen(false);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
77
|
+
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
78
|
+
}, [isOpen]);
|
|
79
|
+
|
|
80
|
+
// Handle keyboard navigation
|
|
81
|
+
const handleKeyDown = useCallback(
|
|
82
|
+
(e: React.KeyboardEvent) => {
|
|
83
|
+
switch (e.key) {
|
|
84
|
+
case 'Escape':
|
|
85
|
+
setIsOpen(false);
|
|
86
|
+
buttonRef.current?.focus();
|
|
87
|
+
break;
|
|
88
|
+
case 'ArrowDown':
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
if (!isOpen) {
|
|
91
|
+
setIsOpen(true);
|
|
92
|
+
setFocusedIndex(0);
|
|
93
|
+
} else {
|
|
94
|
+
setFocusedIndex((prev) => (prev + 1) % languages.length);
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case 'ArrowUp':
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
if (isOpen) {
|
|
100
|
+
setFocusedIndex((prev) => (prev - 1 + languages.length) % languages.length);
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
case 'Enter':
|
|
104
|
+
case ' ':
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
if (!isOpen) {
|
|
107
|
+
setIsOpen(true);
|
|
108
|
+
setFocusedIndex(languages.findIndex((l) => l.isActive));
|
|
109
|
+
} else if (focusedIndex >= 0) {
|
|
110
|
+
handleSelectLanguage(languages[focusedIndex]);
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case 'Tab':
|
|
114
|
+
if (isOpen) {
|
|
115
|
+
setIsOpen(false);
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
[isOpen, focusedIndex, languages]
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
// Focus the item when focusedIndex changes
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (isOpen && focusedIndex >= 0 && listRef.current) {
|
|
126
|
+
const items = listRef.current.querySelectorAll('[role="option"]');
|
|
127
|
+
(items[focusedIndex] as HTMLElement)?.focus();
|
|
128
|
+
}
|
|
129
|
+
}, [isOpen, focusedIndex]);
|
|
130
|
+
|
|
131
|
+
// Handle language selection
|
|
132
|
+
const handleSelectLanguage = (lang: ResolvedLanguage) => {
|
|
133
|
+
if (lang.code === currentLanguage?.code) {
|
|
134
|
+
setIsOpen(false);
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Save preference to localStorage
|
|
139
|
+
saveLanguagePreference(lang.code);
|
|
140
|
+
|
|
141
|
+
// Transform path and navigate
|
|
142
|
+
const basePath = transformLanguagePath(
|
|
143
|
+
pathname || '/docs',
|
|
144
|
+
currentLanguage?.code || actualDefault,
|
|
145
|
+
lang.code,
|
|
146
|
+
actualDefault
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
setIsOpen(false);
|
|
150
|
+
router.push(`${linkPrefix}${basePath}`);
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
// Don't render if no languages or only one language
|
|
154
|
+
if (!languages || languages.length <= 1) {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
<div ref={containerRef} className="relative" onKeyDown={handleKeyDown}>
|
|
160
|
+
{/* Trigger button */}
|
|
161
|
+
<button
|
|
162
|
+
ref={buttonRef}
|
|
163
|
+
onClick={() => setIsOpen(!isOpen)}
|
|
164
|
+
aria-expanded={isOpen}
|
|
165
|
+
aria-haspopup="listbox"
|
|
166
|
+
aria-label={`Select language, current: ${currentLanguage?.displayName}`}
|
|
167
|
+
className={`
|
|
168
|
+
flex items-center gap-2 rounded-lg transition-colors
|
|
169
|
+
text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]
|
|
170
|
+
hover:bg-[var(--color-bg-tertiary)]
|
|
171
|
+
${compact ? 'px-2 py-1.5' : 'px-3 py-2 w-full'}
|
|
172
|
+
`}
|
|
173
|
+
>
|
|
174
|
+
<span className="text-base" role="img" aria-label={currentLanguage?.displayName}>
|
|
175
|
+
{currentLanguage?.flag}
|
|
176
|
+
</span>
|
|
177
|
+
{!compact && (
|
|
178
|
+
<>
|
|
179
|
+
<span className="flex-1 text-left text-sm font-medium truncate">
|
|
180
|
+
{currentLanguage?.displayName}
|
|
181
|
+
</span>
|
|
182
|
+
<i
|
|
183
|
+
className={`fa-solid fa-chevron-${position === 'up' ? 'up' : 'down'} h-3 w-3 transition-transform ${
|
|
184
|
+
isOpen ? (position === 'up' ? 'rotate-180' : 'rotate-180') : ''
|
|
185
|
+
}`}
|
|
186
|
+
aria-hidden="true"
|
|
187
|
+
/>
|
|
188
|
+
</>
|
|
189
|
+
)}
|
|
190
|
+
{compact && (
|
|
191
|
+
<i
|
|
192
|
+
className={`fa-solid fa-chevron-down h-3 w-3 transition-transform ${isOpen ? 'rotate-180' : ''}`}
|
|
193
|
+
aria-hidden="true"
|
|
194
|
+
/>
|
|
195
|
+
)}
|
|
196
|
+
</button>
|
|
197
|
+
|
|
198
|
+
{/* Dropdown menu */}
|
|
199
|
+
{isOpen && (
|
|
200
|
+
<ul
|
|
201
|
+
ref={listRef}
|
|
202
|
+
role="listbox"
|
|
203
|
+
aria-label="Select language"
|
|
204
|
+
className={`
|
|
205
|
+
absolute z-50 min-w-[180px] py-1
|
|
206
|
+
bg-[var(--color-bg-primary)] border border-[var(--color-border)]
|
|
207
|
+
rounded-lg
|
|
208
|
+
transition-all duration-150 ease-out
|
|
209
|
+
${position === 'up' ? 'bottom-full mb-1' : 'top-full mt-1'}
|
|
210
|
+
${compact ? 'right-0' : 'left-0 right-0'}
|
|
211
|
+
`}
|
|
212
|
+
style={{ boxShadow: 'var(--shadow-lg)' }}
|
|
213
|
+
>
|
|
214
|
+
{languages.map((lang, index) => (
|
|
215
|
+
<li key={lang.code}>
|
|
216
|
+
<button
|
|
217
|
+
role="option"
|
|
218
|
+
aria-selected={lang.isActive}
|
|
219
|
+
tabIndex={focusedIndex === index ? 0 : -1}
|
|
220
|
+
onClick={() => handleSelectLanguage(lang)}
|
|
221
|
+
onMouseEnter={() => setFocusedIndex(index)}
|
|
222
|
+
className={`
|
|
223
|
+
w-full flex items-center gap-3 px-3 py-2 text-sm
|
|
224
|
+
transition-colors outline-none
|
|
225
|
+
${
|
|
226
|
+
lang.isActive
|
|
227
|
+
? 'bg-[var(--color-accent-light)] text-[var(--color-accent-text)]'
|
|
228
|
+
: 'text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-secondary)] hover:text-[var(--color-text-primary)]'
|
|
229
|
+
}
|
|
230
|
+
${focusedIndex === index ? 'bg-[var(--color-bg-secondary)]' : ''}
|
|
231
|
+
`}
|
|
232
|
+
>
|
|
233
|
+
<span className="text-base" role="img" aria-hidden="true">
|
|
234
|
+
{lang.flag}
|
|
235
|
+
</span>
|
|
236
|
+
<span className="flex-1 text-left" dir={lang.isRTL ? 'rtl' : 'ltr'}>
|
|
237
|
+
{lang.displayName}
|
|
238
|
+
</span>
|
|
239
|
+
{lang.isActive && (
|
|
240
|
+
<i className="fa-solid fa-check h-4 w-4 text-[var(--color-accent)]" aria-hidden="true" />
|
|
241
|
+
)}
|
|
242
|
+
</button>
|
|
243
|
+
</li>
|
|
244
|
+
))}
|
|
245
|
+
</ul>
|
|
246
|
+
)}
|
|
247
|
+
</div>
|
|
248
|
+
);
|
|
249
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import Link from 'next/link';
|
|
5
|
+
import type { DocsConfig, NavigationPage, GroupConfig } from '@/lib/docs-types';
|
|
6
|
+
import { normalizeNavPage } from '@/lib/docs-types';
|
|
7
|
+
import { useLinkPrefix } from '@/lib/link-prefix-context';
|
|
8
|
+
|
|
9
|
+
interface PageNavigationProps {
|
|
10
|
+
currentSlug: string;
|
|
11
|
+
config: DocsConfig;
|
|
12
|
+
isWideMode?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Extract all pages from navigation structure
|
|
17
|
+
*/
|
|
18
|
+
function extractAllPages(config: DocsConfig): { path: string; title: string }[] {
|
|
19
|
+
const allPages: { path: string; title: string }[] = [];
|
|
20
|
+
const nav = config.navigation;
|
|
21
|
+
|
|
22
|
+
// Helper to extract pages from a group (including nested groups)
|
|
23
|
+
function extractFromGroup(group: GroupConfig) {
|
|
24
|
+
if (group.pages) {
|
|
25
|
+
for (const item of group.pages) {
|
|
26
|
+
if (typeof item === 'string' || 'page' in item) {
|
|
27
|
+
// It's a page
|
|
28
|
+
const { path, title } = normalizeNavPage(item as NavigationPage);
|
|
29
|
+
allPages.push({ path, title });
|
|
30
|
+
} else if ('group' in item) {
|
|
31
|
+
// It's a nested group
|
|
32
|
+
extractFromGroup(item);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Extract from anchors
|
|
39
|
+
if (nav.anchors) {
|
|
40
|
+
for (const anchor of nav.anchors) {
|
|
41
|
+
if (anchor.groups) {
|
|
42
|
+
for (const group of anchor.groups) {
|
|
43
|
+
extractFromGroup(group);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (anchor.pages) {
|
|
47
|
+
for (const item of anchor.pages) {
|
|
48
|
+
if (typeof item === 'string' || 'page' in item) {
|
|
49
|
+
const { path, title } = normalizeNavPage(item as NavigationPage);
|
|
50
|
+
allPages.push({ path, title });
|
|
51
|
+
} else if ('group' in item) {
|
|
52
|
+
extractFromGroup(item);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Extract from tabs
|
|
60
|
+
if (nav.tabs) {
|
|
61
|
+
for (const tab of nav.tabs) {
|
|
62
|
+
if (tab.groups) {
|
|
63
|
+
for (const group of tab.groups) {
|
|
64
|
+
extractFromGroup(group);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (tab.pages) {
|
|
68
|
+
for (const item of tab.pages) {
|
|
69
|
+
if (typeof item === 'string' || 'page' in item) {
|
|
70
|
+
const { path, title } = normalizeNavPage(item as NavigationPage);
|
|
71
|
+
allPages.push({ path, title });
|
|
72
|
+
} else if ('group' in item) {
|
|
73
|
+
extractFromGroup(item);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Extract from top-level groups
|
|
81
|
+
if (nav.groups) {
|
|
82
|
+
for (const group of nav.groups) {
|
|
83
|
+
extractFromGroup(group);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Extract from top-level pages
|
|
88
|
+
if (nav.pages) {
|
|
89
|
+
for (const item of nav.pages) {
|
|
90
|
+
if (typeof item === 'string' || 'page' in item) {
|
|
91
|
+
const { path, title } = normalizeNavPage(item as NavigationPage);
|
|
92
|
+
allPages.push({ path, title });
|
|
93
|
+
} else if ('group' in item) {
|
|
94
|
+
extractFromGroup(item);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return allPages;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function PageNavigation({ currentSlug, config, isWideMode }: PageNavigationProps) {
|
|
103
|
+
// Flatten all pages from navigation into a single array (memoized to avoid tree traversal on re-renders)
|
|
104
|
+
const allPages = useMemo(() => extractAllPages(config), [config]);
|
|
105
|
+
const linkPrefix = useLinkPrefix();
|
|
106
|
+
|
|
107
|
+
// Find current page index
|
|
108
|
+
const currentIndex = allPages.findIndex(p => p.path === currentSlug);
|
|
109
|
+
|
|
110
|
+
if (currentIndex === -1) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const prevPage = currentIndex > 0 ? allPages[currentIndex - 1] : null;
|
|
115
|
+
const nextPage = currentIndex < allPages.length - 1 ? allPages[currentIndex + 1] : null;
|
|
116
|
+
|
|
117
|
+
if (!prevPage && !nextPage) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Scroll to top when navigating to ensure the page gradient shows properly.
|
|
122
|
+
// Without this, Next.js client-side navigation preserves scroll position,
|
|
123
|
+
// which keeps the 'scrolled' class on body and hides the gradient.
|
|
124
|
+
const handleNavClick = () => {
|
|
125
|
+
const contentScroll = document.getElementById('content-scroll-container');
|
|
126
|
+
if (contentScroll) {
|
|
127
|
+
contentScroll.scrollTo({ top: 0, behavior: 'instant' });
|
|
128
|
+
} else {
|
|
129
|
+
window.scrollTo({ top: 0, behavior: 'instant' });
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<nav className="flex items-center justify-between gap-4 mt-12" style={isWideMode ? undefined : { maxWidth: '776px' }}>
|
|
135
|
+
{/* Previous */}
|
|
136
|
+
{prevPage ? (
|
|
137
|
+
<Link
|
|
138
|
+
href={`${linkPrefix}/${prevPage.path}`}
|
|
139
|
+
onClick={handleNavClick}
|
|
140
|
+
className="group flex-1 min-w-0 flex items-center gap-3 p-4 rounded-xl border border-[var(--color-border)] hover:border-[var(--color-accent)] hover:bg-[var(--color-bg-secondary)] no-underline"
|
|
141
|
+
>
|
|
142
|
+
<i className="fa-solid fa-chevron-left h-5 w-5 text-[var(--color-text-muted)] group-hover:text-[var(--color-accent)]" aria-hidden="true" />
|
|
143
|
+
<div className="min-w-0">
|
|
144
|
+
<div className="text-xs text-[var(--color-text-muted)] group-hover:text-[var(--color-accent)] mb-0.5">Previous</div>
|
|
145
|
+
<div className="text-sm font-medium text-[var(--color-text-primary)] truncate group-hover:text-[var(--color-accent)]">
|
|
146
|
+
{prevPage.title}
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</Link>
|
|
150
|
+
) : (
|
|
151
|
+
<div className="flex-1" />
|
|
152
|
+
)}
|
|
153
|
+
|
|
154
|
+
{/* Next */}
|
|
155
|
+
{nextPage ? (
|
|
156
|
+
<Link
|
|
157
|
+
href={`${linkPrefix}/${nextPage.path}`}
|
|
158
|
+
onClick={handleNavClick}
|
|
159
|
+
className="group flex-1 min-w-0 flex items-center justify-end gap-3 p-4 rounded-xl border border-[var(--color-border)] hover:border-[var(--color-accent)] hover:bg-[var(--color-bg-secondary)] text-right no-underline"
|
|
160
|
+
>
|
|
161
|
+
<div className="min-w-0">
|
|
162
|
+
<div className="text-xs text-[var(--color-text-muted)] group-hover:text-[var(--color-accent)] mb-0.5">Next</div>
|
|
163
|
+
<div className="text-sm font-medium text-[var(--color-text-primary)] truncate group-hover:text-[var(--color-accent)]">
|
|
164
|
+
{nextPage.title}
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
<i className="fa-solid fa-chevron-right h-5 w-5 text-[var(--color-text-muted)] group-hover:text-[var(--color-accent)]" aria-hidden="true" />
|
|
168
|
+
</Link>
|
|
169
|
+
) : (
|
|
170
|
+
<div className="flex-1" />
|
|
171
|
+
)}
|
|
172
|
+
</nav>
|
|
173
|
+
);
|
|
174
|
+
}
|