Files
shadcn/app/registry/default/example/app-switcher-navigation-bar-demo.tsx
zeekay 3e6252864b feat: v0.2.0 - Page Builder, Shiki Syntax Highlighting, and New Blocks
Major Features:
- Visual Page Builder with drag-and-drop interface
- Shiki syntax highlighting integration via Fumadocs
- 10 new blocks (5 newsletter variants + blog/photo/showcase blocks)
- AI Voice Settings component
- Comprehensive AI documentation

Page Builder Features:
- Filterable block library with 1/4 scale previews
- Drag-to-reorder blocks in canvas
- Viewport controls (Desktop/Tablet/Mobile)
- Export to React TSX, copy code, download file
- Deploy with Hanzo integration
- Real-time block rendering with dynamic imports

Syntax Highlighting:
- GitHub Light/Dark themes for automatic mode support
- Multi-color syntax highlighting
- Copy-to-clipboard, line numbers, line highlighting
- Zero client-side JavaScript (static HTML)

New Blocks:
- newsletter-01 through newsletter-05 (5 variants)
- blog-cards-01 (Modern blog post card layout)
- photo-grid-01 (Responsive photo gallery)
- showcase-marketing-01, showcase-ecommerce-01, showcase-app-ui-01

New Components:
- ai-voice-settings (Voice configuration interface)

New Documentation:
- AI Actions, Agents, Assistant, Code, Models, Vision, Voice guides
- Newsletter blocks documentation

Bug Fixes:
- Fixed block display registry access pattern
- Stubbed billing-dependent blocks with instructions
- Replaced iframe previews with direct component rendering
- Eliminated 404 errors in block previews

Technical Improvements:
- Enhanced MDX configuration with Shiki rehype plugin
- Integrated Fumadocs CodeBlock wrapper
- Improved registry build error handling
- Updated component props for better type safety

CI/CD:
- Added automatic npm publishing on tag creation
- Tests must pass before publishing
- Automatic GitHub release creation
- Documentation deployment to GitHub Pages

CHANGELOG:
- Created comprehensive CHANGELOG.md with v0.2.0 release notes
2025-11-04 08:40:36 -08:00

35 lines
831 B
TypeScript

import { Database, FileText, Home, Settings } from "lucide-react"
import { AppSwitcherNavigationBar } from "@/registry/default/ui/app-switcher-navigation-bar"
export default function AppSwitcherNavigationBarDemo() {
const apps = [
{
id: "dashboard",
name: "Dashboard",
icon: <Home className="h-4 w-4" />,
},
{
id: "documents",
name: "Documents",
icon: <FileText className="h-4 w-4" />,
},
{
id: "database",
name: "Database",
icon: <Database className="h-4 w-4" />,
},
{
id: "settings",
name: "Settings",
icon: <Settings className="h-4 w-4" />,
},
]
return (
<div className="flex min-h-[400px] items-center justify-center p-8">
<AppSwitcherNavigationBar apps={apps} currentApp="dashboard" />
</div>
)
}