@vercel/geistdocs 1.25.1-canary.9556d32 → 1.25.2
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/assets/icons/icon-acronym-ts.d.ts +5 -0
- package/dist/assets/icons/icon-acronym-ts.d.ts.map +1 -0
- package/dist/assets/icons/icon-acronym-ts.js +4 -0
- package/dist/assets/icons/icon-agents.d.ts +5 -0
- package/dist/assets/icons/icon-agents.d.ts.map +1 -0
- package/dist/assets/icons/icon-agents.js +4 -0
- package/dist/assets/icons/icon-api.d.ts +5 -0
- package/dist/assets/icons/icon-api.d.ts.map +1 -0
- package/dist/assets/icons/icon-api.js +4 -0
- package/dist/assets/icons/icon-arrow-up-right-small.d.ts +8 -0
- package/dist/assets/icons/icon-arrow-up-right-small.d.ts.map +1 -0
- package/dist/assets/icons/icon-arrow-up-right-small.js +4 -0
- package/dist/assets/icons/icon-arrow-up-right.d.ts +5 -0
- package/dist/assets/icons/icon-arrow-up-right.d.ts.map +1 -0
- package/dist/assets/icons/icon-arrow-up-right.js +4 -0
- package/dist/assets/icons/icon-check.d.ts +5 -0
- package/dist/assets/icons/icon-check.d.ts.map +1 -0
- package/dist/assets/icons/icon-check.js +4 -0
- package/dist/assets/icons/icon-chevron-down-small.d.ts +8 -0
- package/dist/assets/icons/icon-chevron-down-small.d.ts.map +1 -0
- package/dist/assets/icons/icon-chevron-down-small.js +7 -0
- package/dist/assets/icons/icon-chevron-right.d.ts +5 -0
- package/dist/assets/icons/icon-chevron-right.d.ts.map +1 -0
- package/dist/assets/icons/icon-chevron-right.js +4 -0
- package/dist/assets/icons/icon-clock.d.ts +5 -0
- package/dist/assets/icons/icon-clock.d.ts.map +1 -0
- package/dist/assets/icons/icon-clock.js +4 -0
- package/dist/assets/icons/icon-copy.d.ts +5 -0
- package/dist/assets/icons/icon-copy.d.ts.map +1 -0
- package/dist/assets/icons/icon-copy.js +4 -0
- package/dist/assets/icons/icon-display-small.d.ts +5 -0
- package/dist/assets/icons/icon-display-small.d.ts.map +1 -0
- package/dist/assets/icons/icon-display-small.js +4 -0
- package/dist/assets/icons/icon-display.d.ts +5 -0
- package/dist/assets/icons/icon-display.d.ts.map +1 -0
- package/dist/assets/icons/icon-display.js +4 -0
- package/dist/assets/icons/icon-file-text.d.ts +5 -0
- package/dist/assets/icons/icon-file-text.d.ts.map +1 -0
- package/dist/assets/icons/icon-file-text.js +4 -0
- package/dist/assets/icons/icon-folder-open.d.ts +5 -0
- package/dist/assets/icons/icon-folder-open.d.ts.map +1 -0
- package/dist/assets/icons/icon-folder-open.js +4 -0
- package/dist/assets/icons/icon-linked.d.ts +5 -0
- package/dist/assets/icons/icon-linked.d.ts.map +1 -0
- package/dist/assets/icons/icon-linked.js +4 -0
- package/dist/assets/icons/icon-logs.d.ts +5 -0
- package/dist/assets/icons/icon-logs.d.ts.map +1 -0
- package/dist/assets/icons/icon-logs.js +4 -0
- package/dist/assets/icons/icon-menu-alt.d.ts +5 -0
- package/dist/assets/icons/icon-menu-alt.d.ts.map +1 -0
- package/dist/assets/icons/icon-menu-alt.js +4 -0
- package/dist/assets/icons/icon-message.d.ts +5 -0
- package/dist/assets/icons/icon-message.d.ts.map +1 -0
- package/dist/assets/icons/icon-message.js +4 -0
- package/dist/assets/icons/icon-moon-small.d.ts +5 -0
- package/dist/assets/icons/icon-moon-small.d.ts.map +1 -0
- package/dist/assets/icons/icon-moon-small.js +4 -0
- package/dist/assets/icons/icon-moon.d.ts +5 -0
- package/dist/assets/icons/icon-moon.d.ts.map +1 -0
- package/dist/assets/icons/icon-moon.js +4 -0
- package/dist/assets/icons/icon-openai.d.ts +5 -0
- package/dist/assets/icons/icon-openai.d.ts.map +1 -0
- package/dist/assets/icons/icon-openai.js +4 -0
- package/dist/assets/icons/icon-plus-circle.d.ts +5 -0
- package/dist/assets/icons/icon-plus-circle.d.ts.map +1 -0
- package/dist/assets/icons/icon-plus-circle.js +4 -0
- package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts +5 -0
- package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts.map +1 -0
- package/dist/assets/icons/icon-refresh-counter-clockwise.js +4 -0
- package/dist/assets/icons/icon-robot.d.ts +5 -0
- package/dist/assets/icons/icon-robot.d.ts.map +1 -0
- package/dist/assets/icons/icon-robot.js +4 -0
- package/dist/assets/icons/icon-sandbox.d.ts +5 -0
- package/dist/assets/icons/icon-sandbox.d.ts.map +1 -0
- package/dist/assets/icons/icon-sandbox.js +4 -0
- package/dist/assets/icons/icon-slash-forward.d.ts +8 -0
- package/dist/assets/icons/icon-slash-forward.d.ts.map +1 -0
- package/dist/assets/icons/icon-slash-forward.js +4 -0
- package/dist/assets/icons/icon-sparkles.d.ts +5 -0
- package/dist/assets/icons/icon-sparkles.d.ts.map +1 -0
- package/dist/assets/icons/icon-sparkles.js +4 -0
- package/dist/assets/icons/icon-sun-small.d.ts +5 -0
- package/dist/assets/icons/icon-sun-small.d.ts.map +1 -0
- package/dist/assets/icons/icon-sun-small.js +4 -0
- package/dist/assets/icons/icon-sun.d.ts +5 -0
- package/dist/assets/icons/icon-sun.d.ts.map +1 -0
- package/dist/assets/icons/icon-sun.js +4 -0
- package/dist/assets/icons/icon-trash.d.ts +5 -0
- package/dist/assets/icons/icon-trash.d.ts.map +1 -0
- package/dist/assets/icons/icon-trash.js +4 -0
- package/dist/assets/icons/icon-user.d.ts +5 -0
- package/dist/assets/icons/icon-user.d.ts.map +1 -0
- package/dist/assets/icons/icon-user.js +4 -0
- package/dist/assets/icons/icon-workflow.d.ts +5 -0
- package/dist/assets/icons/icon-workflow.d.ts.map +1 -0
- package/dist/assets/icons/icon-workflow.js +4 -0
- package/dist/assets/icons/icon-wrench.d.ts +5 -0
- package/dist/assets/icons/icon-wrench.d.ts.map +1 -0
- package/dist/assets/icons/icon-wrench.js +4 -0
- package/dist/assets/icons/index.d.ts +35 -0
- package/dist/assets/icons/index.d.ts.map +1 -0
- package/dist/assets/icons/index.js +35 -0
- package/dist/assets/logos/index.d.ts +17 -0
- package/dist/assets/logos/index.d.ts.map +1 -0
- package/dist/assets/logos/index.js +17 -0
- package/dist/assets/logos/logo-ai-elements.d.ts +5 -0
- package/dist/assets/logos/logo-ai-elements.d.ts.map +1 -0
- package/dist/assets/logos/logo-ai-elements.js +5 -0
- package/dist/assets/logos/logo-ai-sdk.d.ts +5 -0
- package/dist/assets/logos/logo-ai-sdk.d.ts.map +1 -0
- package/dist/assets/logos/logo-ai-sdk.js +5 -0
- package/dist/assets/logos/logo-chat-sdk.d.ts +5 -0
- package/dist/assets/logos/logo-chat-sdk.d.ts.map +1 -0
- package/dist/assets/logos/logo-chat-sdk.js +5 -0
- package/dist/assets/logos/logo-eve.d.ts +5 -0
- package/dist/assets/logos/logo-eve.d.ts.map +1 -0
- package/dist/assets/logos/logo-eve.js +5 -0
- package/dist/assets/logos/logo-flags-sdk.d.ts +5 -0
- package/dist/assets/logos/logo-flags-sdk.d.ts.map +1 -0
- package/dist/assets/logos/logo-flags-sdk.js +5 -0
- package/dist/assets/logos/logo-icon-vercel.d.ts +5 -0
- package/dist/assets/logos/logo-icon-vercel.d.ts.map +1 -0
- package/dist/assets/logos/logo-icon-vercel.js +4 -0
- package/dist/assets/logos/logo-nextjs.d.ts +5 -0
- package/dist/assets/logos/logo-nextjs.d.ts.map +1 -0
- package/dist/assets/logos/logo-nextjs.js +9 -0
- package/dist/assets/logos/logo-streamdown.d.ts +5 -0
- package/dist/assets/logos/logo-streamdown.d.ts.map +1 -0
- package/dist/assets/logos/logo-streamdown.js +5 -0
- package/dist/assets/logos/logo-svelte-kit.d.ts +5 -0
- package/dist/assets/logos/logo-svelte-kit.d.ts.map +1 -0
- package/dist/assets/logos/logo-svelte-kit.js +4 -0
- package/dist/assets/logos/logo-turborepo.d.ts +5 -0
- package/dist/assets/logos/logo-turborepo.d.ts.map +1 -0
- package/dist/assets/logos/logo-turborepo.js +5 -0
- package/dist/assets/logos/logo-vercel-oss.d.ts +5 -0
- package/dist/assets/logos/logo-vercel-oss.d.ts.map +1 -0
- package/dist/assets/logos/logo-vercel-oss.js +4 -0
- package/dist/assets/logos/logo-workflow-sdk.d.ts +5 -0
- package/dist/assets/logos/logo-workflow-sdk.d.ts.map +1 -0
- package/dist/assets/logos/logo-workflow-sdk.js +5 -0
- package/dist/cli/index.js +1 -1
- package/dist/components/badge.d.ts +11 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +22 -0
- package/dist/components/button-group.d.ts +2 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +2 -0
- package/dist/components/button.d.ts +2 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +2 -0
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +1 -1
- package/dist/components/card.d.ts +2 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +2 -0
- package/dist/components/code-block-tabs.d.ts.map +1 -1
- package/dist/components/code-block-tabs.js +1 -1
- package/dist/components/code-block.d.ts +6 -2
- package/dist/components/code-block.d.ts.map +1 -1
- package/dist/components/code-block.js +75 -4
- 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/dialog.d.ts +13 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +35 -0
- package/dist/components/drawer.d.ts +2 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +3 -0
- package/dist/components/input-group.d.ts +2 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +3 -0
- package/dist/components/input.d.ts +2 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +2 -0
- package/dist/components/kbd.d.ts +2 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +2 -0
- package/dist/components/mermaid.js +1 -1
- package/dist/components/separator.d.ts +2 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +3 -0
- package/dist/components/sheet.d.ts +2 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +3 -0
- package/dist/components/sonner.d.ts +2 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +3 -0
- package/dist/components/spinner.d.ts +2 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +2 -0
- package/dist/components/switch.d.ts +11 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +12 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +2 -0
- package/dist/components/theme-aware-image.d.ts +12 -0
- package/dist/components/theme-aware-image.d.ts.map +1 -0
- package/dist/components/theme-aware-image.js +8 -0
- package/dist/components/theme-switcher.d.ts +8 -0
- package/dist/components/theme-switcher.d.ts.map +1 -0
- package/dist/components/theme-switcher.js +37 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +3 -0
- package/dist/controls.d.ts +4 -8
- 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/internal/chat/conversation.d.ts +3 -4
- 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 +10 -13
- package/dist/internal/chat/message-metadata.d.ts.map +1 -1
- package/dist/internal/chat/message-metadata.js +7 -8
- 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 +27 -24
- package/dist/internal/chat/shell.d.ts.map +1 -1
- package/dist/internal/chat/shell.js +19 -27
- package/dist/internal/chat/shimmer.d.ts +11 -0
- package/dist/internal/chat/shimmer.d.ts.map +1 -0
- package/dist/internal/chat/shimmer.js +22 -0
- package/dist/internal/chat/sources.d.ts +1 -3
- 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 +6 -11
- package/dist/internal/chat/suggestion.d.ts.map +1 -1
- package/dist/internal/chat/suggestion.js +5 -5
- package/dist/internal/cn.d.ts +3 -0
- package/dist/internal/cn.d.ts.map +1 -0
- package/dist/internal/cn.js +47 -0
- 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 +2 -2
- 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 +7 -5
- 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 +20 -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/sidebar.d.ts.map +1 -1
- package/dist/internal/sidebar.js +8 -6
- package/dist/internal/toc-items.d.ts.map +1 -1
- package/dist/internal/toc-items.js +1 -1
- package/dist/internal/ui/button-group.d.ts +13 -0
- package/dist/internal/ui/button-group.d.ts.map +1 -0
- package/dist/internal/ui/button-group.js +26 -0
- package/dist/internal/ui/button.d.ts +12 -0
- package/dist/internal/ui/button.d.ts.map +1 -0
- package/dist/internal/ui/button.js +33 -0
- package/dist/internal/ui/card.d.ts +6 -0
- package/dist/internal/ui/card.d.ts.map +1 -0
- package/dist/internal/ui/card.js +14 -0
- package/dist/internal/ui/drawer.d.ts +8 -0
- package/dist/internal/ui/drawer.d.ts.map +1 -0
- package/dist/internal/ui/drawer.js +19 -0
- package/dist/internal/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/internal/ui/dropdown-menu.js +5 -5
- package/dist/internal/ui/input-group.d.ts +15 -0
- package/dist/internal/ui/input-group.d.ts.map +1 -0
- package/dist/internal/ui/input-group.js +44 -0
- package/dist/internal/ui/input.d.ts +3 -0
- package/dist/internal/ui/input.d.ts.map +1 -0
- package/dist/internal/ui/input.js +5 -0
- package/dist/internal/ui/kbd.d.ts +4 -0
- package/dist/internal/ui/kbd.d.ts.map +1 -0
- package/dist/internal/ui/kbd.js +8 -0
- 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/internal/ui/separator.d.ts +4 -0
- package/dist/internal/ui/separator.d.ts.map +1 -0
- package/dist/internal/ui/separator.js +7 -0
- package/dist/internal/ui/sheet.d.ts +13 -0
- package/dist/internal/ui/sheet.d.ts.map +1 -0
- package/dist/internal/ui/sheet.js +24 -0
- package/dist/internal/ui/sonner.d.ts +3 -0
- package/dist/internal/ui/sonner.d.ts.map +1 -0
- package/dist/internal/ui/sonner.js +20 -0
- package/dist/internal/ui/spinner.d.ts +3 -0
- package/dist/internal/ui/spinner.d.ts.map +1 -0
- package/dist/internal/ui/spinner.js +6 -0
- package/dist/internal/ui/textarea.d.ts +3 -0
- package/dist/internal/ui/textarea.d.ts.map +1 -0
- package/dist/internal/ui/textarea.js +5 -0
- package/dist/internal/ui/tooltip.d.ts +7 -0
- package/dist/internal/ui/tooltip.d.ts.map +1 -0
- package/dist/internal/ui/tooltip.js +16 -0
- package/dist/mobile-docs-bar.d.ts.map +1 -1
- package/dist/mobile-docs-bar.js +2 -1
- package/dist/navbar.js +2 -3
- package/dist/pages/docs.d.ts.map +1 -1
- package/dist/pages/docs.js +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +2 -0
- package/dist/versions.d.ts.map +1 -1
- package/dist/versions.js +5 -5
- package/docs/agents.md +2 -1
- package/docs/llms.txt +75 -9
- package/docs/manifest.json +10 -1
- package/docs/pages/migration.md +7 -5
- package/docs/pages/theme-aware-image.md +59 -0
- package/docs/pages/versioned-docs.md +3 -3
- package/docs/sitemap.md +1 -0
- package/package.json +102 -10
- package/styles.css +2 -3
- package/template/AGENTS.md +0 -10
- package/template/app/[lang]/(home)/components/centered-section.tsx +32 -0
- package/template/app/[lang]/(home)/components/hero.tsx +2 -2
- package/template/app/[lang]/(home)/components/one-two-section.tsx +1 -9
- package/template/app/[lang]/(home)/components/text-grid-section.tsx +1 -1
- package/template/app/[lang]/(home)/page.tsx +6 -5
- package/template/app/[lang]/layout.tsx +4 -7
- package/template/app/styles/geistdocs.css +14 -17
- package/template/content/docs/configuration.cn.mdx +2 -2
- package/template/content/docs/migration.mdx +7 -5
- package/template/content/docs/theme-aware-image.mdx +57 -0
- package/template/content/docs/versioned-docs.mdx +3 -3
- package/template/lib/geistdocs/config.tsx +5 -0
- package/template/next.config.ts +2 -16
- package/template/package.json +7 -5
- package/theme.css +661 -4
- package/dist/internal/chat/dots-spinner.d.ts +0 -5
- package/dist/internal/chat/dots-spinner.d.ts.map +0 -1
- package/dist/internal/chat/dots-spinner.js +0 -15
package/dist/navbar.js
CHANGED
|
@@ -5,8 +5,7 @@ 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
|
-
|
|
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";
|
|
8
|
+
const SEARCH_BUTTON_CLASSES = "group hidden h-10 justify-between pr-1.5 text-gray-900 shadow-none @min-[1024px]:flex @min-[1024px]:h-8 @min-[1024px]:w-[150px] [&_[data-slot=kbd]]:transition-colors group-hover:[&_[data-slot=kbd]]:text-gray-1000";
|
|
10
9
|
export const Navbar = ({ config }) => {
|
|
11
10
|
const nav = config.nav ?? [];
|
|
12
11
|
const variant = config.navbarVariant ?? "oss";
|
|
@@ -17,5 +16,5 @@ export const Navbar = ({ config }) => {
|
|
|
17
16
|
// resolved and filtered inside the client menus below. Pass the raw custom
|
|
18
17
|
// list (if any) and the active product down; each menu drops the active one.
|
|
19
18
|
const activeProduct = config.navbarActiveProduct;
|
|
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:
|
|
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: SEARCH_BUTTON_CLASSES }), _jsx(AskAIButton, { className: "@min-[768px]:flex hidden shrink-0 shadow-none", size: "sm", variant: "outline" }), _jsx(AskAIButton, { className: "@min-[768px]:hidden shadow-none", size: "sm", variant: "outline" }), 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 })] })] }) }));
|
|
21
20
|
};
|
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":"AACA,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,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,KAAK,eAAe,EAA+B,MAAM,WAAW,CAAC;AAc9E,OAAO,EACL,K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AAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,aAAa,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,MAAM,CAAC;KACvB,KAAK,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE;QACtB,IAAI,EAAE,YAAY,CAAC;QACnB,IAAI,EAAE,aAAa,CAAC;QACpB,MAAM,EAAE,YAAY,CAAC;KACtB,KAAK,YAAY,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,qBAAqB,CAAC,EAAE,cAAc,CACpC,OAAO,gBAAgB,CACxB,CAAC,uBAAuB,CAAC,CAAC;CAC5B;AAyCD,eAAO,MAAM,cAAc,GAAI,6LAe5B,qBAAqB;wBAiMnB;QACD,MAAM,EAAE,OAAO,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC,CAAC;KACpD;;oCAcE;QACD,MAAM,EAAE,OAAO,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;SAAE,CAAC,CAAC;KACpD,KAAG,OAAO,CAAC,QAAQ,CAAC;CAwDtB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAA4B,CAAC"}
|
package/dist/pages/docs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@vercel/geistcn/utils";
|
|
3
2
|
import Link from "fumadocs-core/link";
|
|
4
3
|
import { DocsBody as FumadocsDocsBody, DocsDescription as FumadocsDocsDescription, DocsPage as FumadocsDocsPage, DocsTitle as FumadocsDocsTitle, } from "fumadocs-ui/layouts/docs/page";
|
|
5
4
|
import { createRelativeLink } from "fumadocs-ui/mdx";
|
|
6
5
|
import { notFound } from "next/navigation";
|
|
7
6
|
import { getPublicPath, withBasePath } from "../config";
|
|
7
|
+
import { cn } from "../internal/cn";
|
|
8
8
|
import { DocsPageErrorBoundary } from "../internal/docs-page-error-boundary";
|
|
9
9
|
import { resolveDocumentTitle } from "../internal/document-title";
|
|
10
10
|
import { resolvePageMarkdownUrl as resolveInternalPageMarkdownUrl } from "../internal/markdown-url.js";
|
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;AAE9B,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,C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WAAW,0BAA0B;IACzC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,EAAE,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,MAAM,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,5 +1,6 @@
|
|
|
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";
|
|
3
4
|
import { getPublicPath, withBasePath, } from "./config.js";
|
|
4
5
|
import { stripVersionRoutePrefix, } from "./internal/version-paths.js";
|
|
5
6
|
const MARKDOWN_LINK_PATTERN = /(\]\()(\/(?!\/)[^)\s]*)/g;
|
|
@@ -97,6 +98,7 @@ export const createSource = ({ docs, config, baseUrl = "/docs", id, label, markd
|
|
|
97
98
|
transformers: [pageTreeTransformer],
|
|
98
99
|
},
|
|
99
100
|
source: docs.toFumadocsSource(),
|
|
101
|
+
plugins: [lucideIconsPlugin()],
|
|
100
102
|
});
|
|
101
103
|
const getPageImage = (page) => {
|
|
102
104
|
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":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAQhF,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 {
|
|
4
|
-
import { IconArchive, IconBox, IconCheck, IconChevronDown, } from "@vercel/geistcn-assets/icons";
|
|
3
|
+
import { ArchiveIcon, BoxIcon, CheckIcon, ChevronDownIcon } from "lucide-react";
|
|
5
4
|
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 ? BoxIcon : ArchiveIcon;
|
|
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(ChevronDownIcon, { 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(CheckIcon, { 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.2 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,3 +43,4 @@ 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.2.
|
|
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,6 +26,7 @@ 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.
|
|
29
30
|
|
|
30
31
|
---
|
|
31
32
|
|
|
@@ -423,7 +424,7 @@ Fix unrelated build failures first. A migration is safer when the starting point
|
|
|
423
424
|
|
|
424
425
|
## Install Geistdocs
|
|
425
426
|
|
|
426
|
-
Add `@vercel/geistdocs` and align the supported Fumadocs and Next.js dependencies for the package version you are adopting.
|
|
427
|
+
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.
|
|
427
428
|
|
|
428
429
|
For an existing project, use your package manager directly:
|
|
429
430
|
|
|
@@ -756,14 +757,16 @@ For a base-path application whose root page is documentation, add `"/"` to the s
|
|
|
756
757
|
Tailwind CSS v4 requires `@source` entries for package components and related dependencies.
|
|
757
758
|
|
|
758
759
|
```css title="app/styles/geistdocs.css"
|
|
759
|
-
@import "
|
|
760
|
-
@import "@vercel/geistcn/styles.css";
|
|
760
|
+
@import "tailwindcss";
|
|
761
761
|
@import "fumadocs-ui/css/shadcn.css";
|
|
762
762
|
@import "fumadocs-ui/css/preset.css";
|
|
763
|
-
@import "
|
|
763
|
+
@import "tw-animate-css";
|
|
764
|
+
|
|
765
|
+
@source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
|
|
766
|
+
@source "../../node_modules/streamdown/dist/*.js";
|
|
764
767
|
```
|
|
765
768
|
|
|
766
|
-
|
|
769
|
+
Move Tailwind CSS v3 plugin utilities into CSS-first v4 utilities or theme variables. Keep custom token names stable while you migrate components.
|
|
767
770
|
|
|
768
771
|
## Handle environment variables
|
|
769
772
|
|
|
@@ -1895,7 +1898,7 @@ Each version can define an `icon` to override the default current/previous versi
|
|
|
1895
1898
|
Use `GeistdocsRouteSelect` for framework, product, or route switchers that should not use version-specific labels:
|
|
1896
1899
|
|
|
1897
1900
|
```tsx
|
|
1898
|
-
import {
|
|
1901
|
+
import { LogoNextjs, LogoSvelteKit } from "@vercel/geistdocs/assets/logos";
|
|
1899
1902
|
import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
1900
1903
|
|
|
1901
1904
|
<GeistdocsRouteSelect
|
|
@@ -1906,14 +1909,14 @@ import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
|
1906
1909
|
id: "nextjs",
|
|
1907
1910
|
label: "Next.js",
|
|
1908
1911
|
description: "React framework",
|
|
1909
|
-
icon: <
|
|
1912
|
+
icon: <LogoNextjs height={18} />,
|
|
1910
1913
|
href: "/:path*",
|
|
1911
1914
|
},
|
|
1912
1915
|
{
|
|
1913
1916
|
id: "sveltekit",
|
|
1914
1917
|
label: "SvelteKit",
|
|
1915
1918
|
description: "Svelte framework",
|
|
1916
|
-
icon: <
|
|
1919
|
+
icon: <LogoSvelteKit height={18} />,
|
|
1917
1920
|
routePrefix: "/sveltekit",
|
|
1918
1921
|
href: "/sveltekit/:path*",
|
|
1919
1922
|
},
|
|
@@ -3604,3 +3607,66 @@ On mobile, Geistdocs replaces the sidebar outline with a compact menu in the pag
|
|
|
3604
3607
|
|
|
3605
3608
|
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.
|
|
3606
3609
|
|
|
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,8 +196,17 @@
|
|
|
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"
|
|
199
208
|
}
|
|
200
209
|
],
|
|
201
210
|
"source": "apps/template/content/docs",
|
|
202
|
-
"version": "1.25.
|
|
211
|
+
"version": "1.25.2"
|
|
203
212
|
}
|
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,14 +377,16 @@ 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 "
|
|
381
|
-
@import "@vercel/geistcn/styles.css";
|
|
380
|
+
@import "tailwindcss";
|
|
382
381
|
@import "fumadocs-ui/css/shadcn.css";
|
|
383
382
|
@import "fumadocs-ui/css/preset.css";
|
|
384
|
-
@import "
|
|
383
|
+
@import "tw-animate-css";
|
|
384
|
+
|
|
385
|
+
@source "../../node_modules/@vercel/geistdocs/dist/**/*.js";
|
|
386
|
+
@source "../../node_modules/streamdown/dist/*.js";
|
|
385
387
|
```
|
|
386
388
|
|
|
387
|
-
|
|
389
|
+
Move Tailwind CSS v3 plugin utilities into CSS-first v4 utilities or theme variables. Keep custom token names stable while you migrate components.
|
|
388
390
|
|
|
389
391
|
## Handle environment variables
|
|
390
392
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Theme-Aware Image
|
|
3
|
+
description: Display different images based on the user's light or dark theme preference
|
|
4
|
+
type: reference
|
|
5
|
+
summary: A component that swaps images based on the active theme, built on top of Next.js Image.
|
|
6
|
+
url: /docs/theme-aware-image
|
|
7
|
+
source: apps/template/content/docs/theme-aware-image.mdx
|
|
8
|
+
prerequisites:
|
|
9
|
+
- /docs/getting-started
|
|
10
|
+
- /docs/provider
|
|
11
|
+
related:
|
|
12
|
+
- /docs/syntax
|
|
13
|
+
- /docs/configuration
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Theme-Aware Image
|
|
17
|
+
|
|
18
|
+
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.
|
|
19
|
+
|
|
20
|
+
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.
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
Import the component and pass a `src` object with `light` and `dark` variants:
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { ThemeAwareImage } from "@vercel/geistdocs/components/theme-aware-image";
|
|
28
|
+
|
|
29
|
+
<ThemeAwareImage
|
|
30
|
+
src={{
|
|
31
|
+
light: "/images/diagram-light.png",
|
|
32
|
+
dark: "/images/diagram-dark.png",
|
|
33
|
+
}}
|
|
34
|
+
alt="Architecture diagram"
|
|
35
|
+
width={800}
|
|
36
|
+
height={400}
|
|
37
|
+
/>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
## How it works
|
|
43
|
+
|
|
44
|
+
`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".
|
|
45
|
+
|
|
46
|
+
- When `resolvedTheme` is `"dark"`, the `src.dark` image is displayed.
|
|
47
|
+
- Otherwise, the `src.light` image is used.
|
|
48
|
+
|
|
49
|
+
Because this component relies on client-side theme detection, it is a client component (`"use client"`).
|
|
50
|
+
|
|
51
|
+
## Props
|
|
52
|
+
|
|
53
|
+
| Prop | Type | Description |
|
|
54
|
+
| --- | --- | --- |
|
|
55
|
+
| `src` | `{ light: ImageProps["src"]; dark: ImageProps["src"] }` | An object containing the light and dark image sources |
|
|
56
|
+
| `alt` | `string` | Accessible alt text for the image |
|
|
57
|
+
| `width` | `number` | The width of the image in pixels |
|
|
58
|
+
| `height` | `number` | The height of the image in pixels |
|
|
59
|
+
| `...rest` | `ImageProps` | Any additional props supported by the Next.js `Image` component |
|
|
@@ -181,7 +181,7 @@ Each version can define an `icon` to override the default current/previous versi
|
|
|
181
181
|
Use `GeistdocsRouteSelect` for framework, product, or route switchers that should not use version-specific labels:
|
|
182
182
|
|
|
183
183
|
```tsx
|
|
184
|
-
import {
|
|
184
|
+
import { LogoNextjs, LogoSvelteKit } from "@vercel/geistdocs/assets/logos";
|
|
185
185
|
import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
186
186
|
|
|
187
187
|
<GeistdocsRouteSelect
|
|
@@ -192,14 +192,14 @@ import { GeistdocsRouteSelect } from "@vercel/geistdocs/versions";
|
|
|
192
192
|
id: "nextjs",
|
|
193
193
|
label: "Next.js",
|
|
194
194
|
description: "React framework",
|
|
195
|
-
icon: <
|
|
195
|
+
icon: <LogoNextjs height={18} />,
|
|
196
196
|
href: "/:path*",
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
id: "sveltekit",
|
|
200
200
|
label: "SvelteKit",
|
|
201
201
|
description: "Svelte framework",
|
|
202
|
-
icon: <
|
|
202
|
+
icon: <LogoSvelteKit height={18} />,
|
|
203
203
|
routePrefix: "/sveltekit",
|
|
204
204
|
href: "/sveltekit/:path*",
|
|
205
205
|
},
|
package/docs/sitemap.md
CHANGED
|
@@ -24,3 +24,4 @@ Use it to choose focused page files from `docs/pages/` before reading the full `
|
|
|
24
24
|
- [Open in Chat](pages/open-in-chat.md) | URL: /docs/open-in-chat | Type: conceptual | Summary: Transfer documentation context to AI chat platforms like ChatGPT, Claude, Cursor, and v0 with a single click.
|
|
25
25
|
- [RSS](pages/rss.md) | URL: /docs/rss | Type: conceptual | Summary: An automatically generated RSS 2.0 feed that keeps users informed when documentation is published or updated.
|
|
26
26
|
- [Table of contents](pages/table-of-contents.md) | URL: /docs/table-of-contents | Type: reference | Summary: 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.
|
|
27
|
+
- [Theme-Aware Image](pages/theme-aware-image.md) | URL: /docs/theme-aware-image | Type: reference | Summary: A component that swaps images based on the active theme, built on top of Next.js Image.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/geistdocs",
|
|
3
3
|
"description": "Runtime and CLI for Geistdocs projects.",
|
|
4
|
-
"version": "1.25.
|
|
4
|
+
"version": "1.25.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -131,10 +131,26 @@
|
|
|
131
131
|
"types": "./dist/shiki-theme.d.ts",
|
|
132
132
|
"default": "./dist/shiki-theme.js"
|
|
133
133
|
},
|
|
134
|
+
"./components/badge": {
|
|
135
|
+
"types": "./dist/components/badge.d.ts",
|
|
136
|
+
"default": "./dist/components/badge.js"
|
|
137
|
+
},
|
|
138
|
+
"./components/button": {
|
|
139
|
+
"types": "./dist/components/button.d.ts",
|
|
140
|
+
"default": "./dist/components/button.js"
|
|
141
|
+
},
|
|
142
|
+
"./components/button-group": {
|
|
143
|
+
"types": "./dist/components/button-group.d.ts",
|
|
144
|
+
"default": "./dist/components/button-group.js"
|
|
145
|
+
},
|
|
134
146
|
"./components/callout": {
|
|
135
147
|
"types": "./dist/components/callout.d.ts",
|
|
136
148
|
"default": "./dist/components/callout.js"
|
|
137
149
|
},
|
|
150
|
+
"./components/card": {
|
|
151
|
+
"types": "./dist/components/card.d.ts",
|
|
152
|
+
"default": "./dist/components/card.js"
|
|
153
|
+
},
|
|
138
154
|
"./components/code-block": {
|
|
139
155
|
"types": "./dist/components/code-block.d.ts",
|
|
140
156
|
"default": "./dist/components/code-block.js"
|
|
@@ -155,10 +171,34 @@
|
|
|
155
171
|
"types": "./dist/components/copy-prompt.d.ts",
|
|
156
172
|
"default": "./dist/components/copy-prompt.js"
|
|
157
173
|
},
|
|
174
|
+
"./components/dialog": {
|
|
175
|
+
"types": "./dist/components/dialog.d.ts",
|
|
176
|
+
"default": "./dist/components/dialog.js"
|
|
177
|
+
},
|
|
178
|
+
"./components/drawer": {
|
|
179
|
+
"types": "./dist/components/drawer.d.ts",
|
|
180
|
+
"default": "./dist/components/drawer.js"
|
|
181
|
+
},
|
|
158
182
|
"./components/dropdown-menu": {
|
|
159
183
|
"types": "./dist/components/dropdown-menu.d.ts",
|
|
160
184
|
"default": "./dist/components/dropdown-menu.js"
|
|
161
185
|
},
|
|
186
|
+
"./components/input": {
|
|
187
|
+
"types": "./dist/components/input.d.ts",
|
|
188
|
+
"default": "./dist/components/input.js"
|
|
189
|
+
},
|
|
190
|
+
"./components/input-group": {
|
|
191
|
+
"types": "./dist/components/input-group.d.ts",
|
|
192
|
+
"default": "./dist/components/input-group.js"
|
|
193
|
+
},
|
|
194
|
+
"./components/kbd": {
|
|
195
|
+
"types": "./dist/components/kbd.d.ts",
|
|
196
|
+
"default": "./dist/components/kbd.js"
|
|
197
|
+
},
|
|
198
|
+
"./components/theme-aware-image": {
|
|
199
|
+
"types": "./dist/components/theme-aware-image.d.ts",
|
|
200
|
+
"default": "./dist/components/theme-aware-image.js"
|
|
201
|
+
},
|
|
162
202
|
"./components/mermaid": {
|
|
163
203
|
"types": "./dist/components/mermaid.d.ts",
|
|
164
204
|
"default": "./dist/components/mermaid.js"
|
|
@@ -175,30 +215,74 @@
|
|
|
175
215
|
"types": "./dist/components/scroll-area.d.ts",
|
|
176
216
|
"default": "./dist/components/scroll-area.js"
|
|
177
217
|
},
|
|
218
|
+
"./components/separator": {
|
|
219
|
+
"types": "./dist/components/separator.d.ts",
|
|
220
|
+
"default": "./dist/components/separator.js"
|
|
221
|
+
},
|
|
222
|
+
"./components/sheet": {
|
|
223
|
+
"types": "./dist/components/sheet.d.ts",
|
|
224
|
+
"default": "./dist/components/sheet.js"
|
|
225
|
+
},
|
|
226
|
+
"./components/sonner": {
|
|
227
|
+
"types": "./dist/components/sonner.d.ts",
|
|
228
|
+
"default": "./dist/components/sonner.js"
|
|
229
|
+
},
|
|
230
|
+
"./components/spinner": {
|
|
231
|
+
"types": "./dist/components/spinner.d.ts",
|
|
232
|
+
"default": "./dist/components/spinner.js"
|
|
233
|
+
},
|
|
234
|
+
"./components/switch": {
|
|
235
|
+
"types": "./dist/components/switch.d.ts",
|
|
236
|
+
"default": "./dist/components/switch.js"
|
|
237
|
+
},
|
|
238
|
+
"./components/theme-switcher": {
|
|
239
|
+
"types": "./dist/components/theme-switcher.d.ts",
|
|
240
|
+
"default": "./dist/components/theme-switcher.js"
|
|
241
|
+
},
|
|
242
|
+
"./components/textarea": {
|
|
243
|
+
"types": "./dist/components/textarea.d.ts",
|
|
244
|
+
"default": "./dist/components/textarea.js"
|
|
245
|
+
},
|
|
246
|
+
"./components/tooltip": {
|
|
247
|
+
"types": "./dist/components/tooltip.d.ts",
|
|
248
|
+
"default": "./dist/components/tooltip.js"
|
|
249
|
+
},
|
|
178
250
|
"./components/video": {
|
|
179
251
|
"types": "./dist/components/video.d.ts",
|
|
180
252
|
"default": "./dist/components/video.js"
|
|
181
253
|
},
|
|
254
|
+
"./assets/icons": {
|
|
255
|
+
"types": "./dist/assets/icons/index.d.ts",
|
|
256
|
+
"default": "./dist/assets/icons/index.js"
|
|
257
|
+
},
|
|
258
|
+
"./assets/icons/*": {
|
|
259
|
+
"types": "./dist/assets/icons/*.d.ts",
|
|
260
|
+
"default": "./dist/assets/icons/*.js"
|
|
261
|
+
},
|
|
262
|
+
"./assets/logos": {
|
|
263
|
+
"types": "./dist/assets/logos/index.d.ts",
|
|
264
|
+
"default": "./dist/assets/logos/index.js"
|
|
265
|
+
},
|
|
266
|
+
"./assets/logos/*": {
|
|
267
|
+
"types": "./dist/assets/logos/*.d.ts",
|
|
268
|
+
"default": "./dist/assets/logos/*.js"
|
|
269
|
+
},
|
|
182
270
|
"./styles.css": "./styles.css",
|
|
183
271
|
"./theme.css": "./theme.css",
|
|
184
272
|
"./package.json": "./package.json"
|
|
185
273
|
},
|
|
186
|
-
"scripts": {
|
|
187
|
-
"build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
|
|
188
|
-
"dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
|
|
189
|
-
},
|
|
190
274
|
"dependencies": {
|
|
191
275
|
"@ai-sdk/react": "^3.0.134",
|
|
192
276
|
"@clack/prompts": "^0.11.0",
|
|
277
|
+
"@icons-pack/react-simple-icons": "^13.8.0",
|
|
193
278
|
"@orama/tokenizers": "^3.1.16",
|
|
194
279
|
"@streamdown/cjk": "^1.0.1",
|
|
195
280
|
"@streamdown/code": "^1.0.1",
|
|
196
281
|
"@vercel/agent-readability": "^0.6.0",
|
|
197
|
-
"@vercel/geistcn": "1.0.3",
|
|
198
|
-
"@vercel/geistcn-assets": "2.0.1",
|
|
199
282
|
"@vercel/oidc": "^3.4.1",
|
|
200
283
|
"ai": "^6.0.132",
|
|
201
284
|
"class-variance-authority": "^0.7.1",
|
|
285
|
+
"clsx": "^2.1.1",
|
|
202
286
|
"commander": "^14.0.2",
|
|
203
287
|
"dexie": "^4.2.1",
|
|
204
288
|
"dexie-react-hooks": "^4.2.0",
|
|
@@ -206,6 +290,7 @@
|
|
|
206
290
|
"fumadocs-mdx": "14.0.4",
|
|
207
291
|
"fumadocs-ui": "16.2.2",
|
|
208
292
|
"glob": "^11.0.0",
|
|
293
|
+
"lucide-react": "^0.555.0",
|
|
209
294
|
"mermaid": "^11.12.2",
|
|
210
295
|
"motion": "^12.23.25",
|
|
211
296
|
"next-themes": "^0.4.6",
|
|
@@ -215,16 +300,19 @@
|
|
|
215
300
|
"remark-gfm": "^4.0.1",
|
|
216
301
|
"remark-mdx": "^3.1.1",
|
|
217
302
|
"remark-parse": "^11.0.0",
|
|
303
|
+
"sonner": "^2.0.7",
|
|
218
304
|
"streamdown": "^2.1.0",
|
|
305
|
+
"tailwind-merge": "^3.4.0",
|
|
219
306
|
"ts-morph": "^27.0.2",
|
|
220
307
|
"tw-animate-css": "^1.4.0",
|
|
221
308
|
"unified": "^11.0.5",
|
|
222
309
|
"unist-util-visit": "^5.1.0",
|
|
223
310
|
"use-stick-to-bottom": "^1.1.1",
|
|
311
|
+
"vaul": "^1.1.2",
|
|
224
312
|
"zod": "^4.1.13"
|
|
225
313
|
},
|
|
226
314
|
"peerDependencies": {
|
|
227
|
-
"next": "^16.3.
|
|
315
|
+
"next": "^16.3.3",
|
|
228
316
|
"react": "^19.2.3",
|
|
229
317
|
"react-dom": "^19.2.3",
|
|
230
318
|
"tailwindcss": "^4.1.17"
|
|
@@ -238,10 +326,14 @@
|
|
|
238
326
|
"@types/react": "^19.2.7",
|
|
239
327
|
"@types/react-dom": "^19.2.3",
|
|
240
328
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
241
|
-
"next": "16.3.
|
|
329
|
+
"next": "16.3.3",
|
|
242
330
|
"react": "^19.2.3",
|
|
243
331
|
"react-dom": "^19.2.3",
|
|
244
332
|
"tsup": "^8.5.1",
|
|
245
333
|
"typescript": "^5.9.3"
|
|
334
|
+
},
|
|
335
|
+
"scripts": {
|
|
336
|
+
"build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
|
|
337
|
+
"dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
|
|
246
338
|
}
|
|
247
|
-
}
|
|
339
|
+
}
|