@vercel/geistdocs 1.25.0 → 1.25.1-canary.738f050
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/dist/cli/index.js +1 -1
- package/dist/components/blockquote.d.ts +3 -0
- package/dist/components/blockquote.d.ts.map +1 -0
- package/dist/components/blockquote.js +3 -0
- package/dist/components/callout.d.ts +13 -10
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +7 -7
- package/dist/components/code-block-tabs.d.ts +5 -2
- package/dist/components/code-block-tabs.d.ts.map +1 -1
- package/dist/components/code-block-tabs.js +28 -5
- package/dist/components/code-block.d.ts +2 -6
- package/dist/components/code-block.d.ts.map +1 -1
- package/dist/components/code-block.js +22 -68
- package/dist/components/command-prompt.d.ts.map +1 -1
- package/dist/components/command-prompt.js +3 -3
- package/dist/components/copy-prompt.d.ts.map +1 -1
- package/dist/components/copy-prompt.js +4 -4
- package/dist/components/mermaid.js +1 -1
- package/dist/controls.d.ts +8 -4
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +14 -14
- package/dist/footer.d.ts.map +1 -1
- package/dist/footer.js +6 -6
- package/dist/home-layout.js +1 -1
- package/dist/internal/chat/conversation.d.ts +4 -3
- package/dist/internal/chat/conversation.d.ts.map +1 -1
- package/dist/internal/chat/conversation.js +5 -5
- package/dist/internal/chat/copy-chat.d.ts.map +1 -1
- package/dist/internal/chat/copy-chat.js +13 -10
- package/dist/internal/chat/dots-spinner.d.ts +5 -0
- package/dist/internal/chat/dots-spinner.d.ts.map +1 -0
- package/dist/internal/chat/dots-spinner.js +15 -0
- package/dist/internal/chat/message-metadata.d.ts.map +1 -1
- package/dist/internal/chat/message-metadata.js +8 -7
- package/dist/internal/chat/message.d.ts.map +1 -1
- package/dist/internal/chat/message.js +5 -5
- package/dist/internal/chat/prompt-input.d.ts +1 -1
- package/dist/internal/chat/prompt-input.d.ts.map +1 -1
- package/dist/internal/chat/prompt-input.js +25 -27
- package/dist/internal/chat/shell.d.ts.map +1 -1
- package/dist/internal/chat/shell.js +27 -19
- package/dist/internal/chat/sources.d.ts +3 -1
- package/dist/internal/chat/sources.d.ts.map +1 -1
- package/dist/internal/chat/sources.js +6 -6
- package/dist/internal/chat/suggestion.d.ts +11 -6
- package/dist/internal/chat/suggestion.d.ts.map +1 -1
- package/dist/internal/chat/suggestion.js +5 -5
- package/dist/internal/docs-page-error-boundary.d.ts.map +1 -1
- package/dist/internal/docs-page-error-boundary.js +3 -3
- package/dist/internal/external-arrow.d.ts.map +1 -1
- package/dist/internal/external-arrow.js +1 -1
- package/dist/internal/footer/rss-button.d.ts.map +1 -1
- package/dist/internal/footer/rss-button.js +3 -3
- package/dist/internal/github-button.d.ts.map +1 -1
- package/dist/internal/github-button.js +3 -3
- package/dist/internal/navbar/desktop-menu.d.ts.map +1 -1
- package/dist/internal/navbar/desktop-menu.js +3 -3
- package/dist/internal/navbar/mobile-menu.d.ts.map +1 -1
- package/dist/internal/navbar/mobile-menu.js +3 -3
- package/dist/internal/navbar/navbar-logo.d.ts.map +1 -1
- package/dist/internal/navbar/navbar-logo.js +6 -8
- package/dist/internal/navbar/navbar-shell.d.ts.map +1 -1
- package/dist/internal/navbar/navbar-shell.js +1 -1
- package/dist/internal/page-actions-client.d.ts.map +1 -1
- package/dist/internal/page-actions-client.js +19 -20
- package/dist/internal/page-breadcrumb.d.ts.map +1 -1
- package/dist/internal/page-breadcrumb.js +3 -3
- package/dist/internal/page-footer.d.ts.map +1 -1
- package/dist/internal/page-footer.js +2 -2
- package/dist/internal/provider-client.d.ts.map +1 -1
- package/dist/internal/provider-client.js +9 -9
- package/dist/internal/search.d.ts.map +1 -1
- package/dist/internal/search.js +2 -2
- package/dist/internal/sidebar-tree.d.ts.map +1 -1
- package/dist/internal/sidebar-tree.js +9 -7
- package/dist/internal/sidebar.d.ts.map +1 -1
- package/dist/internal/sidebar.js +6 -8
- package/dist/internal/toc-items.d.ts.map +1 -1
- package/dist/internal/toc-items.js +1 -1
- package/dist/internal/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/internal/ui/dropdown-menu.js +5 -5
- package/dist/internal/ui/navigation-menu.d.ts.map +1 -1
- package/dist/internal/ui/navigation-menu.js +2 -2
- package/dist/internal/ui/popover.d.ts.map +1 -1
- package/dist/internal/ui/popover.js +1 -1
- package/dist/internal/ui/scroll-area.d.ts.map +1 -1
- package/dist/internal/ui/scroll-area.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +9 -3
- package/dist/mobile-docs-bar.d.ts.map +1 -1
- package/dist/mobile-docs-bar.js +1 -2
- package/dist/navbar.js +3 -2
- package/dist/pages/docs.d.ts.map +1 -1
- package/dist/pages/docs.js +8 -3
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +0 -2
- package/dist/versions.d.ts.map +1 -1
- package/dist/versions.js +5 -5
- package/docs/agents.md +1 -2
- package/docs/llms.txt +131 -86
- package/docs/manifest.json +1 -10
- package/docs/pages/migration.md +5 -7
- package/docs/pages/syntax.md +122 -11
- package/docs/pages/versioned-docs.md +3 -3
- package/docs/sitemap.md +0 -1
- package/package.json +10 -102
- package/styles.css +3 -2
- package/template/AGENTS.md +10 -0
- package/template/app/[lang]/(home)/components/hero.tsx +2 -2
- package/template/app/[lang]/(home)/components/one-two-section.tsx +9 -1
- package/template/app/[lang]/(home)/components/text-grid-section.tsx +1 -1
- package/template/app/[lang]/(home)/page.tsx +5 -6
- package/template/app/[lang]/layout.tsx +7 -4
- package/template/app/styles/geistdocs.css +17 -14
- package/template/content/docs/configuration.cn.mdx +2 -2
- package/template/content/docs/migration.mdx +5 -7
- package/template/content/docs/syntax.mdx +123 -11
- package/template/content/docs/versioned-docs.mdx +3 -3
- package/template/lib/geistdocs/config.tsx +0 -5
- package/template/next.config.ts +16 -2
- package/template/package.json +5 -7
- package/theme.css +71 -700
- package/dist/assets/icons/icon-acronym-ts.d.ts +0 -5
- package/dist/assets/icons/icon-acronym-ts.d.ts.map +0 -1
- package/dist/assets/icons/icon-acronym-ts.js +0 -4
- package/dist/assets/icons/icon-agents.d.ts +0 -5
- package/dist/assets/icons/icon-agents.d.ts.map +0 -1
- package/dist/assets/icons/icon-agents.js +0 -4
- package/dist/assets/icons/icon-api.d.ts +0 -5
- package/dist/assets/icons/icon-api.d.ts.map +0 -1
- package/dist/assets/icons/icon-api.js +0 -4
- package/dist/assets/icons/icon-arrow-up-right-small.d.ts +0 -8
- package/dist/assets/icons/icon-arrow-up-right-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-arrow-up-right-small.js +0 -4
- package/dist/assets/icons/icon-arrow-up-right.d.ts +0 -5
- package/dist/assets/icons/icon-arrow-up-right.d.ts.map +0 -1
- package/dist/assets/icons/icon-arrow-up-right.js +0 -4
- package/dist/assets/icons/icon-check.d.ts +0 -5
- package/dist/assets/icons/icon-check.d.ts.map +0 -1
- package/dist/assets/icons/icon-check.js +0 -4
- package/dist/assets/icons/icon-chevron-down-small.d.ts +0 -8
- package/dist/assets/icons/icon-chevron-down-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-chevron-down-small.js +0 -7
- package/dist/assets/icons/icon-chevron-right.d.ts +0 -5
- package/dist/assets/icons/icon-chevron-right.d.ts.map +0 -1
- package/dist/assets/icons/icon-chevron-right.js +0 -4
- package/dist/assets/icons/icon-clock.d.ts +0 -5
- package/dist/assets/icons/icon-clock.d.ts.map +0 -1
- package/dist/assets/icons/icon-clock.js +0 -4
- package/dist/assets/icons/icon-copy.d.ts +0 -5
- package/dist/assets/icons/icon-copy.d.ts.map +0 -1
- package/dist/assets/icons/icon-copy.js +0 -4
- package/dist/assets/icons/icon-display-small.d.ts +0 -5
- package/dist/assets/icons/icon-display-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-display-small.js +0 -4
- package/dist/assets/icons/icon-display.d.ts +0 -5
- package/dist/assets/icons/icon-display.d.ts.map +0 -1
- package/dist/assets/icons/icon-display.js +0 -4
- package/dist/assets/icons/icon-file-text.d.ts +0 -5
- package/dist/assets/icons/icon-file-text.d.ts.map +0 -1
- package/dist/assets/icons/icon-file-text.js +0 -4
- package/dist/assets/icons/icon-folder-open.d.ts +0 -5
- package/dist/assets/icons/icon-folder-open.d.ts.map +0 -1
- package/dist/assets/icons/icon-folder-open.js +0 -4
- package/dist/assets/icons/icon-linked.d.ts +0 -5
- package/dist/assets/icons/icon-linked.d.ts.map +0 -1
- package/dist/assets/icons/icon-linked.js +0 -4
- package/dist/assets/icons/icon-logs.d.ts +0 -5
- package/dist/assets/icons/icon-logs.d.ts.map +0 -1
- package/dist/assets/icons/icon-logs.js +0 -4
- package/dist/assets/icons/icon-menu-alt.d.ts +0 -5
- package/dist/assets/icons/icon-menu-alt.d.ts.map +0 -1
- package/dist/assets/icons/icon-menu-alt.js +0 -4
- package/dist/assets/icons/icon-message.d.ts +0 -5
- package/dist/assets/icons/icon-message.d.ts.map +0 -1
- package/dist/assets/icons/icon-message.js +0 -4
- package/dist/assets/icons/icon-moon-small.d.ts +0 -5
- package/dist/assets/icons/icon-moon-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-moon-small.js +0 -4
- package/dist/assets/icons/icon-moon.d.ts +0 -5
- package/dist/assets/icons/icon-moon.d.ts.map +0 -1
- package/dist/assets/icons/icon-moon.js +0 -4
- package/dist/assets/icons/icon-openai.d.ts +0 -5
- package/dist/assets/icons/icon-openai.d.ts.map +0 -1
- package/dist/assets/icons/icon-openai.js +0 -4
- package/dist/assets/icons/icon-plus-circle.d.ts +0 -5
- package/dist/assets/icons/icon-plus-circle.d.ts.map +0 -1
- package/dist/assets/icons/icon-plus-circle.js +0 -4
- package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts +0 -5
- package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts.map +0 -1
- package/dist/assets/icons/icon-refresh-counter-clockwise.js +0 -4
- package/dist/assets/icons/icon-robot.d.ts +0 -5
- package/dist/assets/icons/icon-robot.d.ts.map +0 -1
- package/dist/assets/icons/icon-robot.js +0 -4
- package/dist/assets/icons/icon-sandbox.d.ts +0 -5
- package/dist/assets/icons/icon-sandbox.d.ts.map +0 -1
- package/dist/assets/icons/icon-sandbox.js +0 -4
- package/dist/assets/icons/icon-slash-forward.d.ts +0 -8
- package/dist/assets/icons/icon-slash-forward.d.ts.map +0 -1
- package/dist/assets/icons/icon-slash-forward.js +0 -4
- package/dist/assets/icons/icon-sparkles.d.ts +0 -5
- package/dist/assets/icons/icon-sparkles.d.ts.map +0 -1
- package/dist/assets/icons/icon-sparkles.js +0 -4
- package/dist/assets/icons/icon-sun-small.d.ts +0 -5
- package/dist/assets/icons/icon-sun-small.d.ts.map +0 -1
- package/dist/assets/icons/icon-sun-small.js +0 -4
- package/dist/assets/icons/icon-sun.d.ts +0 -5
- package/dist/assets/icons/icon-sun.d.ts.map +0 -1
- package/dist/assets/icons/icon-sun.js +0 -4
- package/dist/assets/icons/icon-trash.d.ts +0 -5
- package/dist/assets/icons/icon-trash.d.ts.map +0 -1
- package/dist/assets/icons/icon-trash.js +0 -4
- package/dist/assets/icons/icon-user.d.ts +0 -5
- package/dist/assets/icons/icon-user.d.ts.map +0 -1
- package/dist/assets/icons/icon-user.js +0 -4
- package/dist/assets/icons/icon-workflow.d.ts +0 -5
- package/dist/assets/icons/icon-workflow.d.ts.map +0 -1
- package/dist/assets/icons/icon-workflow.js +0 -4
- package/dist/assets/icons/icon-wrench.d.ts +0 -5
- package/dist/assets/icons/icon-wrench.d.ts.map +0 -1
- package/dist/assets/icons/icon-wrench.js +0 -4
- package/dist/assets/icons/index.d.ts +0 -35
- package/dist/assets/icons/index.d.ts.map +0 -1
- package/dist/assets/icons/index.js +0 -35
- package/dist/assets/logos/index.d.ts +0 -17
- package/dist/assets/logos/index.d.ts.map +0 -1
- package/dist/assets/logos/index.js +0 -17
- package/dist/assets/logos/logo-ai-elements.d.ts +0 -5
- package/dist/assets/logos/logo-ai-elements.d.ts.map +0 -1
- package/dist/assets/logos/logo-ai-elements.js +0 -5
- package/dist/assets/logos/logo-ai-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-ai-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-ai-sdk.js +0 -5
- package/dist/assets/logos/logo-chat-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-chat-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-chat-sdk.js +0 -5
- package/dist/assets/logos/logo-eve.d.ts +0 -5
- package/dist/assets/logos/logo-eve.d.ts.map +0 -1
- package/dist/assets/logos/logo-eve.js +0 -5
- package/dist/assets/logos/logo-flags-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-flags-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-flags-sdk.js +0 -5
- package/dist/assets/logos/logo-icon-vercel.d.ts +0 -5
- package/dist/assets/logos/logo-icon-vercel.d.ts.map +0 -1
- package/dist/assets/logos/logo-icon-vercel.js +0 -4
- package/dist/assets/logos/logo-nextjs.d.ts +0 -5
- package/dist/assets/logos/logo-nextjs.d.ts.map +0 -1
- package/dist/assets/logos/logo-nextjs.js +0 -9
- package/dist/assets/logos/logo-streamdown.d.ts +0 -5
- package/dist/assets/logos/logo-streamdown.d.ts.map +0 -1
- package/dist/assets/logos/logo-streamdown.js +0 -5
- package/dist/assets/logos/logo-svelte-kit.d.ts +0 -5
- package/dist/assets/logos/logo-svelte-kit.d.ts.map +0 -1
- package/dist/assets/logos/logo-svelte-kit.js +0 -4
- package/dist/assets/logos/logo-turborepo.d.ts +0 -5
- package/dist/assets/logos/logo-turborepo.d.ts.map +0 -1
- package/dist/assets/logos/logo-turborepo.js +0 -5
- package/dist/assets/logos/logo-vercel-oss.d.ts +0 -5
- package/dist/assets/logos/logo-vercel-oss.d.ts.map +0 -1
- package/dist/assets/logos/logo-vercel-oss.js +0 -4
- package/dist/assets/logos/logo-workflow-sdk.d.ts +0 -5
- package/dist/assets/logos/logo-workflow-sdk.d.ts.map +0 -1
- package/dist/assets/logos/logo-workflow-sdk.js +0 -5
- package/dist/components/badge.d.ts +0 -11
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -22
- package/dist/components/button-group.d.ts +0 -2
- package/dist/components/button-group.d.ts.map +0 -1
- package/dist/components/button-group.js +0 -2
- package/dist/components/button.d.ts +0 -2
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -2
- package/dist/components/card.d.ts +0 -2
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -2
- package/dist/components/dialog.d.ts +0 -13
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -35
- package/dist/components/drawer.d.ts +0 -2
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js +0 -3
- package/dist/components/input-group.d.ts +0 -2
- package/dist/components/input-group.d.ts.map +0 -1
- package/dist/components/input-group.js +0 -3
- package/dist/components/input.d.ts +0 -2
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -2
- package/dist/components/kbd.d.ts +0 -2
- package/dist/components/kbd.d.ts.map +0 -1
- package/dist/components/kbd.js +0 -2
- package/dist/components/separator.d.ts +0 -2
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -3
- package/dist/components/sheet.d.ts +0 -2
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -3
- package/dist/components/sonner.d.ts +0 -2
- package/dist/components/sonner.d.ts.map +0 -1
- package/dist/components/sonner.js +0 -3
- package/dist/components/spinner.d.ts +0 -2
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/spinner.js +0 -2
- package/dist/components/switch.d.ts +0 -11
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -12
- package/dist/components/textarea.d.ts +0 -2
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -2
- package/dist/components/theme-aware-image.d.ts +0 -12
- package/dist/components/theme-aware-image.d.ts.map +0 -1
- package/dist/components/theme-aware-image.js +0 -8
- package/dist/components/theme-switcher.d.ts +0 -8
- package/dist/components/theme-switcher.d.ts.map +0 -1
- package/dist/components/theme-switcher.js +0 -37
- package/dist/components/tooltip.d.ts +0 -2
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -3
- package/dist/internal/chat/shimmer.d.ts +0 -11
- package/dist/internal/chat/shimmer.d.ts.map +0 -1
- package/dist/internal/chat/shimmer.js +0 -22
- package/dist/internal/cn.d.ts +0 -3
- package/dist/internal/cn.d.ts.map +0 -1
- package/dist/internal/cn.js +0 -47
- package/dist/internal/ui/button-group.d.ts +0 -13
- package/dist/internal/ui/button-group.d.ts.map +0 -1
- package/dist/internal/ui/button-group.js +0 -26
- package/dist/internal/ui/button.d.ts +0 -12
- package/dist/internal/ui/button.d.ts.map +0 -1
- package/dist/internal/ui/button.js +0 -33
- package/dist/internal/ui/card.d.ts +0 -6
- package/dist/internal/ui/card.d.ts.map +0 -1
- package/dist/internal/ui/card.js +0 -14
- package/dist/internal/ui/drawer.d.ts +0 -8
- package/dist/internal/ui/drawer.d.ts.map +0 -1
- package/dist/internal/ui/drawer.js +0 -19
- package/dist/internal/ui/input-group.d.ts +0 -15
- package/dist/internal/ui/input-group.d.ts.map +0 -1
- package/dist/internal/ui/input-group.js +0 -44
- package/dist/internal/ui/input.d.ts +0 -3
- package/dist/internal/ui/input.d.ts.map +0 -1
- package/dist/internal/ui/input.js +0 -5
- package/dist/internal/ui/kbd.d.ts +0 -4
- package/dist/internal/ui/kbd.d.ts.map +0 -1
- package/dist/internal/ui/kbd.js +0 -8
- package/dist/internal/ui/separator.d.ts +0 -4
- package/dist/internal/ui/separator.d.ts.map +0 -1
- package/dist/internal/ui/separator.js +0 -7
- package/dist/internal/ui/sheet.d.ts +0 -13
- package/dist/internal/ui/sheet.d.ts.map +0 -1
- package/dist/internal/ui/sheet.js +0 -24
- package/dist/internal/ui/sonner.d.ts +0 -3
- package/dist/internal/ui/sonner.d.ts.map +0 -1
- package/dist/internal/ui/sonner.js +0 -20
- package/dist/internal/ui/spinner.d.ts +0 -3
- package/dist/internal/ui/spinner.d.ts.map +0 -1
- package/dist/internal/ui/spinner.js +0 -6
- package/dist/internal/ui/textarea.d.ts +0 -3
- package/dist/internal/ui/textarea.d.ts.map +0 -1
- package/dist/internal/ui/textarea.js +0 -5
- package/dist/internal/ui/tooltip.d.ts +0 -7
- package/dist/internal/ui/tooltip.d.ts.map +0 -1
- package/dist/internal/ui/tooltip.js +0 -16
- package/docs/pages/theme-aware-image.md +0 -59
- package/template/app/[lang]/(home)/components/centered-section.tsx +0 -32
- package/template/content/docs/theme-aware-image.mdx +0 -57
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/scroll-area.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/internal/ui/scroll-area.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAiBjD;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,mBAAmB,CAAC,2CAqBhE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@vercel/geistcn/utils";
|
|
3
4
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
4
|
-
import { cn } from "../cn";
|
|
5
5
|
export function ScrollArea({ className, children, ...props }) {
|
|
6
6
|
return (_jsxs(ScrollAreaPrimitive.Root, { className: cn("relative", className), "data-slot": "scroll-area", ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { className: "size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-gray-600/50", "data-slot": "scroll-area-viewport", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] }));
|
|
7
7
|
}
|
package/dist/layout.js
CHANGED
|
@@ -22,5 +22,5 @@ export const GeistdocsDocsLayout = ({ config, containerProps, sidebarMode, sideb
|
|
|
22
22
|
component: _jsx(GeistdocsSidebar, { mode: sidebarMode, top: sidebarTop }),
|
|
23
23
|
}, tabMode: "auto", themeSwitch: {
|
|
24
24
|
enabled: false,
|
|
25
|
-
}, tree: tree, children: children }) }));
|
|
25
|
+
}, tree: tree, children: _jsx("main", { className: "contents", children: children }) }) }));
|
|
26
26
|
};
|
package/dist/mdx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAoB/C,OAAO,EAGL,KAAK,4BAA4B,IAAI,mBAAmB,EAGzD,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,2BAA2B,8EAAe,CAAC;AACxD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAoB,CAAC;AAC5D,eAAO,MAAM,mBAAmB;;;;;;;gCAAa,CAAC;AAC9C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAC1C,MAAM,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;AAI/D,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEnD,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBA+CD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,sBAAsB,KAClC,sBAA+D,CAAC;AAEnE,eAAO,MAAM,2BAA2B,GACtC,GAAG,eAAe,KAAK,CAAC,sBAAsB,GAAG,SAAS,CAAC,KAC1D,sBACkD,CAAC"}
|
package/dist/mdx.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@vercel/geistcn/utils";
|
|
3
|
+
import { IconArrowUpRightSmall } from "@vercel/geistcn-assets/icons";
|
|
2
4
|
import { TypeTable } from "fumadocs-ui/components/type-table";
|
|
3
5
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
6
|
+
import { Blockquote } from "./components/blockquote";
|
|
4
7
|
import { Callout, CalloutContainer, CalloutDescription, CalloutTitle, } from "./components/callout";
|
|
5
8
|
import { CodeBlock } from "./components/code-block";
|
|
6
|
-
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, } from "./components/code-block-tabs";
|
|
9
|
+
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, CompactCodeBlockTabs, } from "./components/code-block-tabs";
|
|
7
10
|
import { CopyPrompt } from "./components/copy-prompt";
|
|
8
11
|
import { Mermaid } from "./components/mermaid";
|
|
9
12
|
import { Video } from "./components/video";
|
|
@@ -13,11 +16,14 @@ export const defineGeistdocsSourceConfig = sourceConfig;
|
|
|
13
16
|
export const geistdocsFrontmatterSchema = frontmatterSchema;
|
|
14
17
|
export const geistdocsMetaSchema = metaSchema;
|
|
15
18
|
export const geistShikiTheme = shikiTheme;
|
|
19
|
+
const HTTP_URL = /^https?:\/\//;
|
|
16
20
|
export const getGeistdocsMDXComponents = (components) => ({
|
|
17
21
|
...defaultMdxComponents,
|
|
18
22
|
pre: CodeBlock,
|
|
19
|
-
|
|
23
|
+
blockquote: Blockquote,
|
|
24
|
+
a: ({ children, className, href, ...props }) => typeof href === "string" && href.startsWith("/") ? (_jsx(LocalizedLink, { className: cn("font-normal text-gray-1000! underline decoration-1 decoration-gray-700 underline-offset-4 hover:text-gray-1000! hover:decoration-gray-1000 hover:opacity-100!", className), href: href, ...props, children: children })) : (_jsxs("a", { className: cn("font-normal text-gray-1000! underline decoration-1 decoration-gray-700 underline-offset-4 hover:text-gray-1000! hover:decoration-gray-1000 hover:opacity-100!", className), href: href, ...props, children: [children, typeof href === "string" && HTTP_URL.test(href) ? (_jsx("span", { className: "inline-flex -translate-y-1 align-text-bottom", children: _jsx(IconArrowUpRightSmall, { size: 16 }) })) : null] })),
|
|
20
25
|
CodeBlockTabs,
|
|
26
|
+
CompactCodeBlockTabs,
|
|
21
27
|
CodeBlockTabsList,
|
|
22
28
|
CodeBlockTabsTrigger,
|
|
23
29
|
CodeBlockTab,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-docs-bar.d.ts","sourceRoot":"","sources":["../src/mobile-docs-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mobile-docs-bar.d.ts","sourceRoot":"","sources":["../src/mobile-docs-bar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD,UAAU,kBAAkB;IAC1B,GAAG,CAAC,EAAE,eAAe,CAAC;CACvB;AAcD,eAAO,MAAM,aAAa,GAAI,SAAS,kBAAkB,4CA0ExD,CAAC"}
|
package/dist/mobile-docs-bar.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { IconFileText, IconMenuAlt } from "@vercel/geistcn-assets/icons";
|
|
3
4
|
import { useActiveAnchors } from "fumadocs-core/toc";
|
|
4
5
|
import { useState } from "react";
|
|
5
|
-
import { IconFileText } from "./assets/icons/icon-file-text";
|
|
6
|
-
import { IconMenuAlt } from "./assets/icons/icon-menu-alt";
|
|
7
6
|
import { Popover, PopoverContent, PopoverTrigger } from "./internal/ui/popover";
|
|
8
7
|
import { useGeistdocsSidebar } from "./sidebar";
|
|
9
8
|
// Text indentation per heading depth. Top-level items sit flush with the
|
package/dist/navbar.js
CHANGED
|
@@ -5,7 +5,8 @@ import { DesktopMenu } from "./internal/navbar/desktop-menu";
|
|
|
5
5
|
import { MobileMenu } from "./internal/navbar/mobile-menu";
|
|
6
6
|
import { NavbarLogo } from "./internal/navbar/navbar-logo";
|
|
7
7
|
import { NavbarShell } from "./internal/navbar/navbar-shell";
|
|
8
|
-
const SEARCH_BUTTON_CLASSES =
|
|
8
|
+
// const SEARCH_BUTTON_CLASSES =
|
|
9
|
+
// "group hidden h-10 justify-between pr-1.5 text-gray-900 @min-[1024px]:flex @min-[1024px]:h-8 @min-[1024px]:w-[150px] [&_[data-slot=kbd]]:transition-colors group-hover:[&_[data-slot=kbd]]:text-gray-1000";
|
|
9
10
|
export const Navbar = ({ config }) => {
|
|
10
11
|
const nav = config.nav ?? [];
|
|
11
12
|
const variant = config.navbarVariant ?? "oss";
|
|
@@ -16,5 +17,5 @@ export const Navbar = ({ config }) => {
|
|
|
16
17
|
// resolved and filtered inside the client menus below. Pass the raw custom
|
|
17
18
|
// list (if any) and the active product down; each menu drops the active one.
|
|
18
19
|
const activeProduct = config.navbarActiveProduct;
|
|
19
|
-
return (_jsx(NavbarShell, { children: _jsxs("div", { className: "@container mx-auto flex w-full max-w-[1448px] justify-between px-2", children: [_jsxs("div", { className: "flex select-none flex-row items-center", children: [isOss ? (_jsx(NavbarLogo, { activeProduct: activeProduct, className: "ml-4", href: config.logoHref, logo: config.logo, ossProducts: config.navbarOssProducts, variant: "oss" })) : (_jsx(NavbarLogo, { className: "ml-4", href: config.logoHref, logo: config.logo, variant: "standard" })), _jsx(DesktopMenu, { className: "@min-[1024px]:flex hidden", items: nav })] }), _jsxs("div", { className: "mr-4 flex flex-row items-center justify-end gap-2", children: [_jsx(SearchButton, { className:
|
|
20
|
+
return (_jsx(NavbarShell, { children: _jsxs("div", { className: "@container mx-auto flex w-full max-w-[1448px] justify-between px-2", children: [_jsxs("div", { className: "flex select-none flex-row items-center", children: [isOss ? (_jsx(NavbarLogo, { activeProduct: activeProduct, className: "ml-4", href: config.logoHref, logo: config.logo, ossProducts: config.navbarOssProducts, variant: "oss" })) : (_jsx(NavbarLogo, { className: "ml-4", href: config.logoHref, logo: config.logo, variant: "standard" })), _jsx(DesktopMenu, { className: "@min-[1024px]:flex hidden", items: nav })] }), _jsxs("div", { className: "mr-4 flex flex-row items-center justify-end gap-2", children: [_jsx(SearchButton, { className: "@min-[1024px]:flex hidden w-36" }), _jsx(AskAIButton, { className: "@min-[768px]:flex hidden shrink-0", size: "small", variant: "secondary" }), _jsx(AskAIButton, { className: "@min-[768px]:hidden", size: "small", variant: "secondary" }), showGithub ? (_jsx(GitHubButton, { className: "@min-[768px]:inline-flex hidden shrink-0", github: config.github })) : null, _jsx(MobileMenu, { activeProduct: activeProduct, githubUrl: githubUrl, nav: nav, ossProducts: config.navbarOssProducts, showOss: isOss })] })] }) }));
|
|
20
21
|
};
|
package/dist/pages/docs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/pages/docs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/pages/docs.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,QAAQ,IAAI,gBAAgB,EAE7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ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
2
|
+
import { cn } from "@vercel/geistcn/utils";
|
|
3
|
+
import { IconArrowUpRightSmall } from "@vercel/geistcn-assets/icons";
|
|
2
4
|
import Link from "fumadocs-core/link";
|
|
3
5
|
import { DocsBody as FumadocsDocsBody, DocsDescription as FumadocsDocsDescription, DocsPage as FumadocsDocsPage, DocsTitle as FumadocsDocsTitle, } from "fumadocs-ui/layouts/docs/page";
|
|
4
6
|
import { createRelativeLink } from "fumadocs-ui/mdx";
|
|
5
7
|
import { notFound } from "next/navigation";
|
|
6
8
|
import { getPublicPath, withBasePath } from "../config";
|
|
7
|
-
import { cn } from "../internal/cn";
|
|
8
9
|
import { DocsPageErrorBoundary } from "../internal/docs-page-error-boundary";
|
|
9
10
|
import { resolveDocumentTitle } from "../internal/document-title";
|
|
10
11
|
import { resolvePageMarkdownUrl as resolveInternalPageMarkdownUrl } from "../internal/markdown-url.js";
|
|
@@ -15,7 +16,11 @@ import { getPageFooterItems, PageFooter } from "../internal/page-footer";
|
|
|
15
16
|
import { GeistdocsTableOfContents } from "../internal/table-of-contents";
|
|
16
17
|
import { createMdxComponents } from "../mdx";
|
|
17
18
|
import { getPageRobots, } from "../page-visibility";
|
|
18
|
-
const
|
|
19
|
+
const HTTP_URL = /^https?:\/\//;
|
|
20
|
+
const PrefetchedDocsLink = ({ children, className, href, ...props }) => {
|
|
21
|
+
const external = typeof href === "string" && HTTP_URL.test(href);
|
|
22
|
+
return (_jsxs(Link, { ...props, className: cn("font-normal text-gray-1000! underline decoration-1 decoration-gray-700 underline-offset-4 hover:text-gray-1000! hover:decoration-gray-1000 hover:opacity-100!", className), href: href, prefetch: !external, children: [children, external ? (_jsx("span", { className: "inline-flex -translate-y-1 align-text-bottom", children: _jsx(IconArrowUpRightSmall, { size: 16 }) })) : null] }));
|
|
23
|
+
};
|
|
19
24
|
export const resolvePageMarkdownUrl = (options) => resolveInternalPageMarkdownUrl(options);
|
|
20
25
|
const DocsTitle = ({ className, ...props }) => (_jsx(FumadocsDocsTitle, { className: cn("mb-4 text-balance", className), ...props }));
|
|
21
26
|
const DocsDescription = ({ className, ...props }) => (_jsx(FumadocsDocsDescription, { className: cn("text-gray-900", className), ...props }));
|
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,MAAM,EAEP,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,MAAM,EAEP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAG1B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAC;AAErC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AA0FlD,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IACl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AAM,CAAC;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;CAC1D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,6CAKjC,0BAA0B,KAAG,MAAM,EAYrC,CAAC;AAEF,MAAM,WAAW,gCAAgC;IAC/C,UAAU,CAAC,EAAE,0BAA0B,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,EAAE,KAAK,CAAC,CAAC;CAClE;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,iCAIvC,gCAAgC,KAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAiBvE,CAAC"}
|
package/dist/source.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineI18n } from "fumadocs-core/i18n";
|
|
2
2
|
import { loader, } from "fumadocs-core/source";
|
|
3
|
-
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
|
|
4
3
|
import { getPublicPath, withBasePath, } from "./config.js";
|
|
5
4
|
import { stripVersionRoutePrefix, } from "./internal/version-paths.js";
|
|
6
5
|
const MARKDOWN_LINK_PATTERN = /(\]\()(\/(?!\/)[^)\s]*)/g;
|
|
@@ -98,7 +97,6 @@ export const createSource = ({ docs, config, baseUrl = "/docs", id, label, markd
|
|
|
98
97
|
transformers: [pageTreeTransformer],
|
|
99
98
|
},
|
|
100
99
|
source: docs.toFumadocsSource(),
|
|
101
|
-
plugins: [lucideIconsPlugin()],
|
|
102
100
|
});
|
|
103
101
|
const getPageImage = (page) => {
|
|
104
102
|
const segments = [...page.slugs, "image.png"];
|
package/dist/versions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../src/versions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../src/versions.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAOhF,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAC;AAErC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,uBAAuB,CAAC,IAAI,SAAS,wBAAwB;IACrE,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,yBAAyB;IACjC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,UAAU,yBAAyB,CAAC,IAAI,SAAS,wBAAwB;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC;IACzE,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC;CACtE;AAED,UAAU,2BAA2B;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,SAAS,MAAM,EAAE,CAAC,CAAC;IAClE,QAAQ,EAAE,sBAAsB,EAAE,GAAG,uBAAuB,CAAC;CAC9D;AAkED,eAAO,MAAM,gBAAgB,GAAI,IAAI,SAAS,wBAAwB,EAAE,kCAIrE,uBAAuB,CAAC,IAAI,CAAC,WA0B/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,wCAIhC,yBAAyB,WACgD,CAAC;AAE7E,eAAO,MAAM,oBAAoB,GAAI,IAAI,SAAS,wBAAwB,EAAE,uEAOzE,yBAAyB,CAAC,IAAI,CAAC,mDA0FjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,0CAKpC,2BAA2B,4CAqC7B,CAAC"}
|
package/dist/versions.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "@vercel/geistcn/utils";
|
|
4
|
+
import { IconArchive, IconBox, IconCheck, IconChevronDown, } from "@vercel/geistcn-assets/icons";
|
|
4
5
|
import { usePathname, useRouter } from "next/navigation";
|
|
5
|
-
import { cn } from "./internal/cn";
|
|
6
6
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "./internal/ui/dropdown-menu";
|
|
7
7
|
import { resolveVersionSwitchPath, } from "./internal/version-paths.js";
|
|
8
8
|
const LEADING_SLASH_PATTERN = /^\//;
|
|
@@ -21,7 +21,7 @@ const SelectIcon = ({ active, children, }) => (_jsx("span", { className: cn("fle
|
|
|
21
21
|
? "border-blue-500 bg-blue-100 text-blue-900"
|
|
22
22
|
: "border-gray-alpha-400 bg-gray-100 text-gray-800"), children: children }));
|
|
23
23
|
const VersionIcon = ({ active }) => {
|
|
24
|
-
const Icon = active ?
|
|
24
|
+
const Icon = active ? IconBox : IconArchive;
|
|
25
25
|
return (_jsx(SelectIcon, { active: active, children: _jsx(Icon, { className: "size-5" }) }));
|
|
26
26
|
};
|
|
27
27
|
const defaultRenderIcon = ({ active, item, }) => (item.icon ? _jsx(SelectIcon, { active: active, children: item.icon }) : null);
|
|
@@ -73,10 +73,10 @@ export const GeistdocsRouteSelect = ({ ariaLabel = "Select route", className, cu
|
|
|
73
73
|
const currentDescription = currentItem
|
|
74
74
|
? getDescription({ active: true, item: currentItem })
|
|
75
75
|
: null;
|
|
76
|
-
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { "aria-label": ariaLabel, className: cn("group flex w-full items-center gap-2 rounded-md px-2 py-2 text-left outline-none transition-colors duration-150 ease-[cubic-bezier(0.175,0.885,0.32,1.1)] hover:bg-gray-alpha-100 focus-visible:shadow-[var(--ds-focus-ring)] active:bg-gray-alpha-300 data-[state=open]:bg-gray-alpha-100 motion-reduce:transition-none", className), type: "button", children: [currentItem ? renderIcon({ active: true, item: currentItem }) : null, _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: currentItem?.label ?? currentId }), currentDescription ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: currentDescription })) : null] }), _jsx(
|
|
76
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { "aria-label": ariaLabel, className: cn("group flex w-full items-center gap-2 rounded-md px-2 py-2 text-left outline-none transition-colors duration-150 ease-[cubic-bezier(0.175,0.885,0.32,1.1)] hover:bg-gray-alpha-100 focus-visible:shadow-[var(--ds-focus-ring)] active:bg-gray-alpha-300 data-[state=open]:bg-gray-alpha-100 motion-reduce:transition-none", className), type: "button", children: [currentItem ? renderIcon({ active: true, item: currentItem }) : null, _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: currentItem?.label ?? currentId }), currentDescription ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: currentDescription })) : null] }), _jsx(IconChevronDown, { className: "size-4 shrink-0 text-gray-900 transition-transform duration-150 ease-[cubic-bezier(0.175,0.885,0.32,1.1)] group-data-[state=open]:rotate-180 motion-reduce:transition-none" })] }) }), _jsx(DropdownMenuContent, { align: "start", className: "w-(--radix-dropdown-menu-trigger-width) min-w-64 rounded-xl bg-background-100 p-1 shadow-(--ds-shadow-menu)", children: items.map((item) => {
|
|
77
77
|
const active = item.id === currentId;
|
|
78
78
|
const description = getDescription({ active, item });
|
|
79
|
-
return (_jsxs(DropdownMenuItem, { "aria-current": active ? "page" : undefined, className: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2", onSelect: () => navigateToItem(item), children: [renderIcon({ active, item }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: item.label }), description ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: description })) : null] }), active ? _jsx(
|
|
79
|
+
return (_jsxs(DropdownMenuItem, { "aria-current": active ? "page" : undefined, className: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2", onSelect: () => navigateToItem(item), children: [renderIcon({ active, item }), _jsxs("span", { className: "min-w-0 flex-1", children: [_jsx("span", { className: "block truncate text-button-14 text-gray-1000", children: item.label }), description ? (_jsx("span", { className: "block truncate text-gray-900 text-label-13", children: description })) : null] }), active ? _jsx(IconCheck, { className: "size-4 text-blue-900" }) : null] }, item.id));
|
|
80
80
|
}) })] }));
|
|
81
81
|
};
|
|
82
82
|
export const GeistdocsVersionSelect = ({ className, current, paths, versions, }) => {
|
package/docs/agents.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Docs
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 1.25.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 1.25.1-canary.738f050 so agents can understand the installed package without web access.
|
|
4
4
|
They are generated from `apps/template/content/docs` during the package build.
|
|
5
5
|
|
|
6
6
|
## How to use these files
|
|
@@ -43,4 +43,3 @@ They are generated from `apps/template/content/docs` during the package build.
|
|
|
43
43
|
- [Open in Chat](pages/open-in-chat.md): Transfer documentation context to AI chat platforms like ChatGPT, Claude, Cursor, and v0 with a single click.
|
|
44
44
|
- [RSS](pages/rss.md): An automatically generated RSS 2.0 feed that keeps users informed when documentation is published or updated.
|
|
45
45
|
- [Table of contents](pages/table-of-contents.md): Geistdocs builds the "On this page" outline from your headings, indents sub-headings under their parent, and tracks the active section along a straight vertical guide rail.
|
|
46
|
-
- [Theme-Aware Image](pages/theme-aware-image.md): A component that swaps images based on the active theme, built on top of Next.js Image.
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Documentation
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 1.25.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 1.25.1-canary.738f050.
|
|
4
4
|
They describe how to build package-backed Geistdocs sites and how to use the package APIs from generated project adapters.
|
|
5
5
|
|
|
6
6
|
## Documentation Index
|
|
@@ -26,7 +26,6 @@ They describe how to build package-backed Geistdocs sites and how to use the pac
|
|
|
26
26
|
- [Open in Chat](pages/open-in-chat.md): Transfer documentation context to AI chat platforms like ChatGPT, Claude, Cursor, and v0 with a single click.
|
|
27
27
|
- [RSS](pages/rss.md): An automatically generated RSS 2.0 feed that keeps users informed when documentation is published or updated.
|
|
28
28
|
- [Table of contents](pages/table-of-contents.md): Geistdocs builds the "On this page" outline from your headings, indents sub-headings under their parent, and tracks the active section along a straight vertical guide rail.
|
|
29
|
-
- [Theme-Aware Image](pages/theme-aware-image.md): A component that swaps images based on the active theme, built on top of Next.js Image.
|
|
30
29
|
|
|
31
30
|
---
|
|
32
31
|
|
|
@@ -424,7 +423,7 @@ Fix unrelated build failures first. A migration is safer when the starting point
|
|
|
424
423
|
|
|
425
424
|
## Install Geistdocs
|
|
426
425
|
|
|
427
|
-
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting.
|
|
426
|
+
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting. Geistdocs requires Next.js 16.3.3 or later within 16.x. Earlier 16.3 releases can retain an optional catch-all route's index content after a client navigation to a child page when Cache Components and Partial Prefetching are enabled.
|
|
428
427
|
|
|
429
428
|
For an existing project, use your package manager directly:
|
|
430
429
|
|
|
@@ -757,16 +756,14 @@ For a base-path application whose root page is documentation, add `"/"` to the s
|
|
|
757
756
|
Tailwind CSS v4 requires `@source` entries for package components and related dependencies.
|
|
758
757
|
|
|
759
758
|
```css title="app/styles/geistdocs.css"
|
|
760
|
-
@import "
|
|
759
|
+
@import "@vercel/geistcn/tailwind.css";
|
|
760
|
+
@import "@vercel/geistcn/styles.css";
|
|
761
761
|
@import "fumadocs-ui/css/shadcn.css";
|
|
762
762
|
@import "fumadocs-ui/css/preset.css";
|
|
763
|
-
@import "
|
|
764
|
-
|
|
765
|
-
@source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
|
|
766
|
-
@source "../../node_modules/streamdown/dist/*.js";
|
|
763
|
+
@import "@vercel/geistdocs/theme.css";
|
|
767
764
|
```
|
|
768
765
|
|
|
769
|
-
|
|
766
|
+
Geistcn owns the Geist tokens, theme, typography, preflight, and animation utilities. The Geistdocs theme entry point remains during the compatibility migration for documentation and Fumadocs integration rules and to source the compiled runtime dependencies.
|
|
770
767
|
|
|
771
768
|
## Handle environment variables
|
|
772
769
|
|
|
@@ -1205,7 +1202,9 @@ related:
|
|
|
1205
1202
|
|
|
1206
1203
|
Geistdocs supports MDX, a superset of Markdown that allows you to use JSX components within your documentation. This guide covers all the formatting options available.
|
|
1207
1204
|
|
|
1208
|
-
Help me write a Geistdocs MDX page. Use this page as a syntax reference and
|
|
1205
|
+
Help me write a Geistdocs MDX page. Use this page as a syntax reference and
|
|
1206
|
+
create an example page with frontmatter, headings, links, a code block, a
|
|
1207
|
+
`Callout`, and a `CopyPrompt` component.
|
|
1209
1208
|
|
|
1210
1209
|
## Frontmatter
|
|
1211
1210
|
|
|
@@ -1257,11 +1256,17 @@ Headings automatically generate anchor links for navigation and deep linking.
|
|
|
1257
1256
|
|
|
1258
1257
|
Create unordered lists with `-`, `*`, or `+`:
|
|
1259
1258
|
|
|
1260
|
-
|
|
1261
|
-
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1259
|
+
```md
|
|
1260
|
+
- Install the required packages
|
|
1261
|
+
- Configure your project
|
|
1262
|
+
- Start the development server
|
|
1263
|
+
```
|
|
1264
|
+
|
|
1265
|
+
This renders as:
|
|
1266
|
+
|
|
1267
|
+
- Install the required packages
|
|
1268
|
+
- Configure your project
|
|
1269
|
+
- Start the development server
|
|
1265
1270
|
|
|
1266
1271
|
Create ordered lists with numbers:
|
|
1267
1272
|
|
|
@@ -1273,7 +1278,29 @@ Create ordered lists with numbers:
|
|
|
1273
1278
|
|
|
1274
1279
|
Use `>` to create blockquotes:
|
|
1275
1280
|
|
|
1276
|
-
>
|
|
1281
|
+
> **Watch:** Learn more about how to use `next/image` → [YouTube (9 minutes)](https://youtu.be/IU_qq_c_lKA).
|
|
1282
|
+
|
|
1283
|
+
### Callouts
|
|
1284
|
+
|
|
1285
|
+
Use `<Callout>` for a highlighted informational note:
|
|
1286
|
+
|
|
1287
|
+
```mdx
|
|
1288
|
+
<Callout>This is automatically set when deploying to Vercel.</Callout>
|
|
1289
|
+
```
|
|
1290
|
+
|
|
1291
|
+
This renders as:
|
|
1292
|
+
|
|
1293
|
+
> This is automatically set when deploying to Vercel.
|
|
1294
|
+
|
|
1295
|
+
Callouts can also contain a title and lists:
|
|
1296
|
+
|
|
1297
|
+
> Note:
|
|
1298
|
+
- The `App Router` uses [React canary
|
|
1299
|
+
releases](https://react.dev/blog/2023/05/03/react-canaries) built-in, which
|
|
1300
|
+
include all the stable React 19 changes, as well as newer features being
|
|
1301
|
+
validated in frameworks, but you should still declare react and react-dom in
|
|
1302
|
+
package.json for tooling and ecosystem compatibility.
|
|
1303
|
+
- The `Pages Router` uses the React version from your `package.json`.
|
|
1277
1304
|
|
|
1278
1305
|
### Links
|
|
1279
1306
|
|
|
@@ -1282,6 +1309,15 @@ Create links with `[text](url)`:
|
|
|
1282
1309
|
- [External link](https://vercel.com)
|
|
1283
1310
|
- [Internal link](/docs/getting-started)
|
|
1284
1311
|
|
|
1312
|
+
Use an absolute `https://` or `http://` URL to mark a link as external. External
|
|
1313
|
+
links open outside the docs site and display an arrow icon. Use a root-relative
|
|
1314
|
+
path beginning with `/` for internal links:
|
|
1315
|
+
|
|
1316
|
+
```md
|
|
1317
|
+
[External link](https://vercel.com)
|
|
1318
|
+
[Internal link](/docs/getting-started)
|
|
1319
|
+
```
|
|
1320
|
+
|
|
1285
1321
|
### Images
|
|
1286
1322
|
|
|
1287
1323
|
Add images with ``:
|
|
@@ -1386,6 +1422,78 @@ export const Button = ({ children }) => {
|
|
|
1386
1422
|
};
|
|
1387
1423
|
```
|
|
1388
1424
|
|
|
1425
|
+
### Tabs and switchers
|
|
1426
|
+
|
|
1427
|
+
Use consecutive fences with `tab` metadata for code tabs that expose every
|
|
1428
|
+
option at once:
|
|
1429
|
+
|
|
1430
|
+
````md
|
|
1431
|
+
```ts tab="TypeScript" title="example.ts"
|
|
1432
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1433
|
+
```
|
|
1434
|
+
|
|
1435
|
+
```js tab="JavaScript" title="example.js"
|
|
1436
|
+
export const greeting = "Hello from JavaScript";
|
|
1437
|
+
```
|
|
1438
|
+
````
|
|
1439
|
+
|
|
1440
|
+
This renders as:
|
|
1441
|
+
|
|
1442
|
+
```ts tab="TypeScript" title="example.ts"
|
|
1443
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1444
|
+
```
|
|
1445
|
+
|
|
1446
|
+
```js tab="JavaScript" title="example.js"
|
|
1447
|
+
export const greeting = "Hello from JavaScript";
|
|
1448
|
+
```
|
|
1449
|
+
|
|
1450
|
+
Wrap the same fences in `<CodeBlockTabs compact>` to move the selector into the
|
|
1451
|
+
code-block header:
|
|
1452
|
+
|
|
1453
|
+
````mdx
|
|
1454
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
1455
|
+
<CodeBlockTabsList>
|
|
1456
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
1457
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
1458
|
+
</CodeBlockTabsList>
|
|
1459
|
+
<CodeBlockTab value="TypeScript">
|
|
1460
|
+
```ts title="example.ts"
|
|
1461
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1462
|
+
```
|
|
1463
|
+
</CodeBlockTab>
|
|
1464
|
+
<CodeBlockTab value="JavaScript">
|
|
1465
|
+
```js title="example.js"
|
|
1466
|
+
export const greeting = "Hello from JavaScript";
|
|
1467
|
+
```
|
|
1468
|
+
</CodeBlockTab>
|
|
1469
|
+
</CompactCodeBlockTabs>
|
|
1470
|
+
````
|
|
1471
|
+
|
|
1472
|
+
This renders as:
|
|
1473
|
+
|
|
1474
|
+
<CompactCodeBlockTabs defaultValue="TypeScript">
|
|
1475
|
+
<CodeBlockTabsList>
|
|
1476
|
+
<CodeBlockTabsTrigger value="TypeScript">TypeScript</CodeBlockTabsTrigger>
|
|
1477
|
+
<CodeBlockTabsTrigger value="JavaScript">JavaScript</CodeBlockTabsTrigger>
|
|
1478
|
+
</CodeBlockTabsList>
|
|
1479
|
+
<CodeBlockTab value="TypeScript">
|
|
1480
|
+
```ts title="example.ts"
|
|
1481
|
+
export const greeting: string = "Hello from TypeScript";
|
|
1482
|
+
```
|
|
1483
|
+
</CodeBlockTab>
|
|
1484
|
+
<CodeBlockTab value="JavaScript">
|
|
1485
|
+
```js title="example.js"
|
|
1486
|
+
export const greeting = "Hello from JavaScript";
|
|
1487
|
+
```
|
|
1488
|
+
</CodeBlockTab>
|
|
1489
|
+
</CompactCodeBlockTabs>
|
|
1490
|
+
|
|
1491
|
+
When migrating an existing site such as next-site, translate adjacent
|
|
1492
|
+
`switcher` fences to `tab="TypeScript"` and `tab="JavaScript"`, then wrap the
|
|
1493
|
+
pair with `<CodeBlockTabs compact>`. Import `@vercel/geistdocs/styles.css` (or
|
|
1494
|
+
`theme.css` with the documented Geist dependencies) so Tailwind scans the
|
|
1495
|
+
package's compiled components and emits the tab layout utilities.
|
|
1496
|
+
|
|
1389
1497
|
### Framework icons
|
|
1390
1498
|
|
|
1391
1499
|
Append `#<framework>` to the title to show a framework logo instead of the
|
|
@@ -1394,22 +1502,22 @@ values are `#next` / `#nextjs` and `#svelte` / `#sveltekit`:
|
|
|
1394
1502
|
|
|
1395
1503
|
````md
|
|
1396
1504
|
```ts title="flags.ts#next"
|
|
1397
|
-
import { flag } from
|
|
1505
|
+
import { flag } from "flags/next";
|
|
1398
1506
|
```
|
|
1399
1507
|
|
|
1400
1508
|
```ts title="flags.ts#svelte"
|
|
1401
|
-
import { flag } from
|
|
1509
|
+
import { flag } from "flags/sveltekit";
|
|
1402
1510
|
```
|
|
1403
1511
|
````
|
|
1404
1512
|
|
|
1405
1513
|
This renders as:
|
|
1406
1514
|
|
|
1407
1515
|
```ts title="flags.ts#next"
|
|
1408
|
-
import { flag } from
|
|
1516
|
+
import { flag } from "flags/next";
|
|
1409
1517
|
```
|
|
1410
1518
|
|
|
1411
1519
|
```ts title="flags.ts#svelte"
|
|
1412
|
-
import { flag } from
|
|
1520
|
+
import { flag } from "flags/sveltekit";
|
|
1413
1521
|
```
|
|
1414
1522
|
|
|
1415
1523
|
### Line Numbers
|
|
@@ -1898,7 +2006,7 @@ Each version can define an `icon` to override the default current/previous versi
|
|
|
1898
2006
|
Use `GeistdocsRouteSelect` for framework, product, or route switchers that should not use version-specific labels:
|
|
1899
2007
|
|
|
1900
2008
|
```tsx
|
|
1901
|
-
import {
|
|
2009
|
+
import { LogoIconNextSvg, LogoSvelte } from "@vercel/geistcn-assets/logos";
|
|
1902
2010
|
import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
1903
2011
|
|
|
1904
2012
|
<GeistdocsRouteSelect
|
|
@@ -1909,14 +2017,14 @@ import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
|
1909
2017
|
id: "nextjs",
|
|
1910
2018
|
label: "Next.js",
|
|
1911
2019
|
description: "React framework",
|
|
1912
|
-
icon: <
|
|
2020
|
+
icon: <LogoIconNextSvg size={18} />,
|
|
1913
2021
|
href: "/:path*",
|
|
1914
2022
|
},
|
|
1915
2023
|
{
|
|
1916
2024
|
id: "sveltekit",
|
|
1917
2025
|
label: "SvelteKit",
|
|
1918
2026
|
description: "Svelte framework",
|
|
1919
|
-
icon: <
|
|
2027
|
+
icon: <LogoSvelte height={18} />,
|
|
1920
2028
|
routePrefix: "/sveltekit",
|
|
1921
2029
|
href: "/sveltekit/:path*",
|
|
1922
2030
|
},
|
|
@@ -3607,66 +3715,3 @@ On mobile, Geistdocs replaces the sidebar outline with a compact menu in the pag
|
|
|
3607
3715
|
|
|
3608
3716
|
Keep headings short and descriptive so the outline reads like a summary of the page. Name each heading after the goal of its section, and avoid stacking two headings with no content between them.
|
|
3609
3717
|
|
|
3610
|
-
|
|
3611
|
-
---
|
|
3612
|
-
|
|
3613
|
-
---
|
|
3614
|
-
title: Theme-Aware Image
|
|
3615
|
-
description: Display different images based on the user's light or dark theme preference
|
|
3616
|
-
type: reference
|
|
3617
|
-
summary: A component that swaps images based on the active theme, built on top of Next.js Image.
|
|
3618
|
-
url: /docs/theme-aware-image
|
|
3619
|
-
source: apps/template/content/docs/theme-aware-image.mdx
|
|
3620
|
-
prerequisites:
|
|
3621
|
-
- /docs/getting-started
|
|
3622
|
-
- /docs/provider
|
|
3623
|
-
related:
|
|
3624
|
-
- /docs/syntax
|
|
3625
|
-
- /docs/configuration
|
|
3626
|
-
---
|
|
3627
|
-
|
|
3628
|
-
# Theme-Aware Image
|
|
3629
|
-
|
|
3630
|
-
The `ThemeAwareImage` component renders different images depending on whether the user is viewing your documentation in light or dark mode. It extends the Next.js `Image` component, so you get all the same optimization benefits like lazy loading, responsive sizing, and format conversion.
|
|
3631
|
-
|
|
3632
|
-
Help me add a theme-aware image to a Geistdocs MDX page. Create a usage example with light and dark image sources, alt text, width, and height, then explain where to place the image files.
|
|
3633
|
-
|
|
3634
|
-
## Usage
|
|
3635
|
-
|
|
3636
|
-
Import the component and pass a `src` object with `light` and `dark` variants:
|
|
3637
|
-
|
|
3638
|
-
```tsx
|
|
3639
|
-
import { ThemeAwareImage } from "@vercel/geistdocs/components/theme-aware-image";
|
|
3640
|
-
|
|
3641
|
-
<ThemeAwareImage
|
|
3642
|
-
src={{
|
|
3643
|
-
light: "/images/diagram-light.png",
|
|
3644
|
-
dark: "/images/diagram-dark.png",
|
|
3645
|
-
}}
|
|
3646
|
-
alt="Architecture diagram"
|
|
3647
|
-
width={800}
|
|
3648
|
-
height={400}
|
|
3649
|
-
/>
|
|
3650
|
-
```
|
|
3651
|
-
|
|
3652
|
-
The component reads the current theme from `next-themes` and resolves the correct image source automatically. All standard Next.js `Image` props (such as `width`, `height`, `alt`, `priority`, and `className`) are supported.
|
|
3653
|
-
|
|
3654
|
-
## How it works
|
|
3655
|
-
|
|
3656
|
-
`ThemeAwareImage` uses the `resolvedTheme` value from the `useTheme` hook provided by `next-themes`. This ensures it responds to the actual rendered theme, even when the user's preference is set to "system".
|
|
3657
|
-
|
|
3658
|
-
- When `resolvedTheme` is `"dark"`, the `src.dark` image is displayed.
|
|
3659
|
-
- Otherwise, the `src.light` image is used.
|
|
3660
|
-
|
|
3661
|
-
Because this component relies on client-side theme detection, it is a client component (`"use client"`).
|
|
3662
|
-
|
|
3663
|
-
## Props
|
|
3664
|
-
|
|
3665
|
-
| Prop | Type | Description |
|
|
3666
|
-
| --- | --- | --- |
|
|
3667
|
-
| `src` | `{ light: ImageProps["src"]; dark: ImageProps["src"] }` | An object containing the light and dark image sources |
|
|
3668
|
-
| `alt` | `string` | Accessible alt text for the image |
|
|
3669
|
-
| `width` | `number` | The width of the image in pixels |
|
|
3670
|
-
| `height` | `number` | The height of the image in pixels |
|
|
3671
|
-
| `...rest` | `ImageProps` | Any additional props supported by the Next.js `Image` component |
|
|
3672
|
-
|
package/docs/manifest.json
CHANGED
|
@@ -196,17 +196,8 @@
|
|
|
196
196
|
"title": "Table of contents",
|
|
197
197
|
"type": "reference",
|
|
198
198
|
"url": "/docs/table-of-contents"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"description": "Display different images based on the user's light or dark theme preference",
|
|
202
|
-
"path": "pages/theme-aware-image.md",
|
|
203
|
-
"source": "apps/template/content/docs/theme-aware-image.mdx",
|
|
204
|
-
"summary": "A component that swaps images based on the active theme, built on top of Next.js Image.",
|
|
205
|
-
"title": "Theme-Aware Image",
|
|
206
|
-
"type": "reference",
|
|
207
|
-
"url": "/docs/theme-aware-image"
|
|
208
199
|
}
|
|
209
200
|
],
|
|
210
201
|
"source": "apps/template/content/docs",
|
|
211
|
-
"version": "1.25.
|
|
202
|
+
"version": "1.25.1-canary.738f050"
|
|
212
203
|
}
|
package/docs/pages/migration.md
CHANGED
|
@@ -44,7 +44,7 @@ Fix unrelated build failures first. A migration is safer when the starting point
|
|
|
44
44
|
|
|
45
45
|
## Install Geistdocs
|
|
46
46
|
|
|
47
|
-
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting.
|
|
47
|
+
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting. Geistdocs requires Next.js 16.3.3 or later within 16.x. Earlier 16.3 releases can retain an optional catch-all route's index content after a client navigation to a child page when Cache Components and Partial Prefetching are enabled.
|
|
48
48
|
|
|
49
49
|
For an existing project, use your package manager directly:
|
|
50
50
|
|
|
@@ -377,16 +377,14 @@ For a base-path application whose root page is documentation, add `"/"` to the s
|
|
|
377
377
|
Tailwind CSS v4 requires `@source` entries for package components and related dependencies.
|
|
378
378
|
|
|
379
379
|
```css title="app/styles/geistdocs.css"
|
|
380
|
-
@import "
|
|
380
|
+
@import "@vercel/geistcn/tailwind.css";
|
|
381
|
+
@import "@vercel/geistcn/styles.css";
|
|
381
382
|
@import "fumadocs-ui/css/shadcn.css";
|
|
382
383
|
@import "fumadocs-ui/css/preset.css";
|
|
383
|
-
@import "
|
|
384
|
-
|
|
385
|
-
@source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
|
|
386
|
-
@source "../../node_modules/streamdown/dist/*.js";
|
|
384
|
+
@import "@vercel/geistdocs/theme.css";
|
|
387
385
|
```
|
|
388
386
|
|
|
389
|
-
|
|
387
|
+
Geistcn owns the Geist tokens, theme, typography, preflight, and animation utilities. The Geistdocs theme entry point remains during the compatibility migration for documentation and Fumadocs integration rules and to source the compiled runtime dependencies.
|
|
390
388
|
|
|
391
389
|
## Handle environment variables
|
|
392
390
|
|