@donotdev/ui 0.3.4 → 0.3.5

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.
Files changed (48) hide show
  1. package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
  2. package/dist/components/cookie-consent/CookieConsent.js +1 -1
  3. package/dist/components/layout/components/Breadcrumbs.d.ts +8 -1
  4. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  5. package/dist/components/layout/components/Breadcrumbs.js +1 -1
  6. package/dist/crud/components/useRecordBreadcrumb.d.ts +1 -1
  7. package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
  8. package/dist/dndev.css +591 -99
  9. package/dist/internal/common/DnDevErrorBoundary.d.ts +3 -1
  10. package/dist/internal/common/DnDevErrorBoundary.d.ts.map +1 -1
  11. package/dist/internal/common/DnDevErrorBoundary.js +1 -1
  12. package/dist/internal/devtools/DebugTools.d.ts.map +1 -1
  13. package/dist/internal/devtools/DebugTools.js +1 -1
  14. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  15. package/dist/internal/layout/components/AutoMetaTags.js +1 -1
  16. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  17. package/dist/internal/providers/UIProviders.js +1 -1
  18. package/dist/routing/AuthGuard.d.ts +3 -0
  19. package/dist/routing/AuthGuard.d.ts.map +1 -1
  20. package/dist/routing/AuthGuard.js +1 -1
  21. package/dist/routing/hooks/hooks.next.d.ts +1 -1
  22. package/dist/routing/hooks/hooks.next.d.ts.map +1 -1
  23. package/dist/routing/hooks/hooks.next.js +1 -1
  24. package/dist/routing/hooks/hooks.vite.d.ts +1 -1
  25. package/dist/routing/hooks/hooks.vite.d.ts.map +1 -1
  26. package/dist/routing/hooks/hooks.vite.js +1 -1
  27. package/dist/routing/hooks/types.d.ts +10 -0
  28. package/dist/routing/hooks/types.d.ts.map +1 -1
  29. package/dist/routing/hooks/useNavigate.next.d.ts +9 -3
  30. package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
  31. package/dist/routing/hooks/useNavigate.next.js +1 -1
  32. package/dist/routing/hooks/useNavigate.vite.d.ts +9 -3
  33. package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
  34. package/dist/routing/hooks/useNavigate.vite.js +1 -1
  35. package/dist/routing/index.d.ts +1 -1
  36. package/dist/routing/index.d.ts.map +1 -1
  37. package/dist/routing/index.js +1 -1
  38. package/dist/routing/parentRoute.d.ts +7 -21
  39. package/dist/routing/parentRoute.d.ts.map +1 -1
  40. package/dist/routing/parentRoute.js +1 -1
  41. package/dist/styles/index.css +591 -99
  42. package/dist/symbol-index.json +1 -1
  43. package/guidelines/COMPONENTS.md +1 -1
  44. package/guidelines/LAYOUTS.md +2 -0
  45. package/guidelines/PAGES.md +3 -0
  46. package/guidelines/ROUTING.md +41 -0
  47. package/guidelines/SEO.md +5 -5
  48. package/package.json +5 -5
@@ -1 +1 @@
1
- {"AuthHeader":"/**\n * Auth header component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AuthHeader: ComponentType<AuthHeaderProps>;","AuthMenu":"export declare const AuthMenu: ({ loginPath, display, \"no-tooltip\": noTooltip, customItems, className, style, }","AuthHeaderProps":"/**\n * AuthHeader - Simple, powerful authentication component for headers\n *\n * Automatically reads all configuration from `appConfig.auth` (DRY principle).\n * Accepts `display` prop for layout-specific UI control.\n *\n * Features:\n * - Lazy-loaded components for optimal performance\n * - Responsive design (icon on mobile/tablet, button with label on desktop)\n * - Industry standard patterns (dropdown for 2+ providers)\n * - Error handling via useAuth (no additional error states needed)\n * - 100% Lighthouse compatible\n * - Auto-configuration from appConfig (no props needed)\n *\n * @example\n * ```tsx\n * // Configure once in appConfig.auth\n * const APP_CONFIG = {\n * auth: {\n * loginPath: '/login', // Optional: links to login page\n * authMenuItems: [{ path: '/dashboard' }, { path: '/settings' }] // Optional: user menu routes\n * }\n * };\n *\n * // In presets - reads from appConfig automatically\n * // This component composes AuthPartnerButton and MultipleAuthProviders from @donotdev/auth.\n * // Use AuthHeader if you need a pre-built, responsive authentication component for your app's header.\n * <AuthHeader />\n *\n * // Force icon-only mode (e.g., for sidebars)\n * <AuthHeader display=\"compact\" />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface AuthHeaderProps {\n /**\n * Display - controls auth header presentation in preset layouts\n * - 'compact': Icon-only buttons\n * - 'full': Full buttons with labels\n * - 'auto': Responsive (default)\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /**\n * Button variant for the sign-in trigger.\n * @default 'outline'\n */\n variant?: (typeof BUTTON_VARIANT)[keyof typeof BUTTON_VARIANT];\n /** Optional className for styling the button */\n className?: string;\n /** Optional inline styles for the button */\n style?: CSSProperties;\n}","AuthMenuProps":"/**\n * Props for the AuthMenu component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface AuthMenuProps {\n /** Path for login (unauthenticated users). Falls back to appConfig.auth.loginPath */\n loginPath?: string;\n /**\n * Display - controls auth menu presentation in preset layouts\n * - 'compact': Icon-only button\n * - 'full': Button with label\n * - 'auto': Responsive (default)\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /** Disable tooltip */\n 'no-tooltip'?: boolean;\n /**\n * Custom menu items to add to authenticated menu.\n * Merged with items from appConfig.auth.authMenuItems.\n * Order: Profile (if configured) → authMenuItems → customItems → Delete Account → Sign Out\n */\n customItems?: AuthMenuCustomItem[];\n /** Optional className for styling the button */\n className?: string;\n /** Optional inline styles for the button */\n style?: CSSProperties;\n}","FeatureDisabled":"/**\n * FeatureDisabled - Component for displaying feature unavailable states\n *\n * Provides a consistent UI pattern for when features are disabled or unavailable.\n * Includes options for review cookies, contact support, and retry actions.\n *\n * @example\n * ```tsx\n * <FeatureDisabled\n * featureName=\"Billing\"\n * description=\"Stripe billing is not configured\"\n * showContactSupport={true}\n * showRetry={true}\n * onRetry={() => window.location.reload()}\n * />\n * ```\n *\n * @param props - FeatureDisabled component props\n * @returns React component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function FeatureDisabled({ featureName, title, description, showReviewCookies, showContactSupport, showRetry, supportEmail, onRetry, onReviewCookies, customActions, className, }","Icon":"/**\n * Icon - Unified icon component (FLEXIBLE RUNTIME COMPONENT)\n *\n * **This is the flexible runtime component** - supports Lucide components, emojis, strings, and custom ReactNode.\n *\n * **For PageMeta.icon:** Only lucide-react JSX components are supported (extracted at build time).\n * **For Icon component:** All formats are supported (resolved at runtime).\n *\n * @example\n * ```tsx\n * // Runtime usage - all formats work\n * <Icon icon=\"🚀\" /> // Emoji\n * <Icon icon=\"Rocket\" /> // Lucide name string\n * <Icon icon={<Rocket />} /> // Lucide component\n * <Icon icon={<CustomIcon />} /> // Custom component\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const Icon: ComponentType<IconProps>;","RedirectOverlay":"/**\n * RedirectOverlay - Industry-standard redirect overlay with phase progression\n *\n * Features:\n * - Phase-based progress: connecting → preparing → redirecting → timeout\n * - Cancel button appears after 10s (configurable)\n * - i18n support with operation-specific messaging\n * - Browser event handling (popstate, visibilitychange)\n * - Accessible (ARIA labels, role=\"status\")\n * - RTL-safe styling\n *\n * @example\n * ```tsx\n * // Include once in app root (layout.tsx or App.tsx)\n * import { RedirectOverlay } from '@donotdev/ui';\n *\n * function RootLayout({ children }) {\n * return (\n * <>\n * {children}\n * <RedirectOverlay />\n * </>\n * );\n * }\n *\n * // Hooks trigger it automatically\n * const checkout = useStripeBilling('checkout', authState);\n * await checkout({ priceId: 'price_123' }); // Shows overlay automatically\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function RedirectOverlay(): import(\"react\").JSX.Element | null;","ProgressBar":"/**\n * ProgressBar - A top progress bar for navigation and page transitions\n *\n * Features:\n * - Smooth progress animations\n * - Fake progress simulation for better UX\n * - Configurable duration and behavior\n * - Accessibility support\n * - Auto-hide on completion\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ProgressBar: ComponentType<ProgressBarProps>;","Skeleton":"/**\n * Skeleton - A loading placeholder component\n *\n * Features:\n * - Multiple variants for different content types\n * - Configurable dimensions via escape hatch props\n * - Accessibility support\n * - Smooth animations\n *\n * STYLING APPROACH:\n * - Prefer: <Skeleton className=\"h-4 w-[250px]\" /> (utility classes)\n * - Escape hatch: <Skeleton width={dynamicWidth} height={40} /> (when programmatic)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const Skeleton: ComponentType<SkeletonProps>;","FeatureCard":"/**\n * FeatureCard - Card wrapper with content array and routing\n *\n * Uses Card component internally. Routing via Link when href provided.\n */\ndeclare const FeatureCard: ({ icon, title, subtitle, content, href, variant, elevated, onClick, className, footer, style, clickable, maxLines, ...cardProps }","FeatureCardProps":"/** Props for the FeatureCard component. */\nexport interface FeatureCardProps extends Omit<CardProps, 'content' | 'href' | 'title' | 'subtitle' | 'children'> {\n /** Title (required) */\n title: string | ReactNode;\n /** Subtitle (required) */\n subtitle: string | ReactNode;\n /**\n * Card content - string, string[], or ReactNode.\n * For lists with icons, pass `<List icon={...} items={...} />` directly.\n */\n content?: CardContent;\n /** Route path - enables routing via Link */\n href?: string;\n /** When true, apply clickable styling (cursor, hover) even without href/onClick. Use when card is a dialog trigger. */\n clickable?: boolean;\n /**\n * Max lines for title and subtitle (each). Pass `0` for no line clamp.\n * @default 2\n */\n maxLines?: number;\n}","TechBento":"export declare function TechBento({ title, techs, cols, gap, separator, tone, align, collapsible, open, onOpenChange, defaultOpen, className, }","TechBentoProps":"/** Props for the TechBento component. */\nexport type TechBentoProps = {\n title?: string;\n techs: Array<{\n name: TechKey;\n size?: 'normal' | 'long' | 'high' | 'huge';\n variant?: CardVariant;\n }>;\n /**\n * Number of columns - fixed or responsive (same as Grid)\n * - number: fixed columns (same on all breakpoints)\n * - [mobile, tablet, laptop, desktop]: responsive columns per breakpoint\n * @default 3\n * @example 3 - always 3 columns\n * @example [1, 1, 2, 3] - 1 col mobile/tablet, 2 laptop, 3 desktop\n */\n cols?: number | ResponsiveCols;\n gap?: BentoGap;\n separator?: boolean;\n /** Tone system for background colors (matches Section/CallToAction) */\n tone?: Tone;\n /** Content alignment @default 'center' */\n align?: 'start' | 'center' | 'end';\n /** Whether the section is collapsible */\n collapsible?: boolean;\n /** Controlled open state (when collapsible) */\n open?: boolean;\n /** Callback when open state changes (when collapsible) */\n onOpenChange?: (open: boolean) => void;\n /** Default open state (uncontrolled, when collapsible) */\n defaultOpen?: boolean;\n className?: string;\n}","ConsentBanner":"/**\n * ConsentBanner - Lazy loaded consent component\n * Shows if user hasn't consented yet OR if showBanner flag is set.\n * Renders nothing (and never loads the banner chunk) when the app sets only strictly\n * necessary cookies.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function ConsentBanner(): import(\"react\").JSX.Element | null;","PageContainerVariant":"/**\n * Page container variants - semantic layout patterns\n */\nexport type PageContainerVariant = 'full' | 'standard' | 'docs' | 'narrow' | 'fixed';","PageContainer":"/**\n * PageContainer - Layout wrapper with semantic width constraints\n *\n * DnDevLayout already handles:\n * - Main padding via --content-padding\n * - Sidebar/header spacing\n * - Responsive behavior\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * PageContainer provides:\n * - Semantic width constraints without additional padding\n * - Automatic spacing system using CSS variables\n *\n */\nexport declare const PageContainer: ComponentType<PageContainerProps>;","PageConfig":"/**\n * PageConfig - Declarative per-page layout overrides\n *\n * Sets route-level overrides (preset, hideBreadcrumbs) in the theme store.\n * Cleans up on unmount (resets to defaults).\n *\n * @example\n * ```tsx\n * // In a Next.js page component:\n * export default function MyPage() {\n * return (\n * <>\n * <PageConfig hideBreadcrumbs />\n * <PageContainer>...</PageContainer>\n * </>\n * );\n * }\n * ```\n */\nexport declare function PageConfig({ hideBreadcrumbs, preset, }","CTAButton":"/**\n * CTA button definition\n */\nexport interface CTAButton {\n label: string;\n onClick: () => void;\n disabled?: boolean;\n variant?: 'default' | 'outline' | 'ghost' | 'link';\n}","GameContainerProps":"/**\n * GameContainer props\n */\nexport interface GameContainerProps {\n /** Main content area (scrollable, centered by default) */\n content: ReactNode;\n /** Optional fixed CTA button(s) at bottom - single button or array for multiple buttons */\n cta?: CTAButton | CTAButton[];\n /** Alignment variant for content area */\n align?: 'center' | 'start' | 'stretch';\n /** Justify variant for content area */\n justify?: 'center' | 'start' | 'end' | 'between';\n /** Disable ScrollArea (use plain overflow) - for interactive content */\n disableScrollArea?: boolean;\n /** Content width: 'narrow' (default, constrained) or 'full' */\n contentVariant?: 'full' | 'narrow';\n /** Additional className for content wrapper */\n contentClassName?: string;\n /** Additional className for CTA button */\n ctaClassName?: string;\n}","GameContainer":"/**\n * GameContainer - Content + CTA grid layout for game screens\n *\n * Provides scrollable content area with optional fixed CTA button at bottom.\n * Used for game sessions, onboarding flows, wizards, assessments, tutorials.\n *\n * Layout Zones:\n * - Content: Scrollable (ScrollArea), centered by default (customizable)\n * - CTA: Fixed at bottom, full-width touch target (48px)\n *\n * Default Behavior:\n * - Content is horizontally + vertically centered\n * - ScrollArea enabled for cross-browser scroll styling\n * - CTA has 16px top padding + 2px border separator\n *\n * @param {GameContainerProps} props - Component props\n * @returns {JSX.Element} GameContainer component\n *\n * @example\n * Basic usage (centered content + CTA)\n * ```tsx\n * <GameContainer\n * content={\n * <div className=\"max-w-2xl\">\n * <h1>Welcome</h1>\n * <p>Let's get started</p>\n * </div>\n * }\n * cta={{ label: 'Start', onClick: handleStart }}\n * />\n * ```\n *\n * @example\n * Full-width form (no centering)\n * ```tsx\n * <GameContainer\n * align=\"stretch\"\n * justify=\"start\"\n * content={<FullWidthForm />}\n * cta={{ label: 'Submit', onClick: handleSubmit }}\n * />\n * ```\n *\n * @example\n * Multiple CTA buttons (side by side)\n * ```tsx\n * <GameContainer\n * content={<ChallengeContent />}\n * cta={[\n * { label: 'Accept', onClick: handleAccept, variant: 'default' },\n * { label: 'Decline', onClick: handleDecline, variant: 'outline' }\n * ]}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function GameContainer({ content, cta, align, justify, disableScrollArea, contentVariant, contentClassName, ctaClassName, }","ScreenRegistry":"/**\n * Screen registry type - maps screen names to lazy import functions\n */\nexport type ScreenRegistry = Record<string, () => Promise<{\n default: ComponentType<any>;\n}","GameFlowProps":"/**\n * GameFlow props\n */\nexport interface GameFlowProps {\n /** Registry mapping screen names to lazy import functions */\n screenRegistry: ScreenRegistry;\n /** Current screen name to render */\n currentScreen: string | null;\n /** Next screen name for preloading (optional) */\n nextScreen?: string | null;\n /** Fallback component for Suspense (optional) */\n fallback?: ReactNode;\n}","GameFlow":"/**\n * GameFlow - Screen router for game/session flows\n *\n * Handles:\n * - Routing to correct screen component based on currentScreen\n * - Lazy loading of screen components\n * - Preloading of nextScreen for instant transitions\n * - h-full wrapper for proper layout filling\n * - Suspense boundaries for loading states\n *\n * @param {GameFlowProps} props - Component props\n * @param {ScreenRegistry} props.screenRegistry - Registry of screen lazy imports\n * @param {string | null} props.currentScreen - Current screen name to render\n * @param {string | null} [props.nextScreen] - Next screen name for preloading\n * @param {ReactNode} [props.fallback] - Fallback component for Suspense\n * @returns {JSX.Element | null} GameFlow component\n *\n * @example\n * ```tsx\n * <GameFlow\n * screenRegistry={screenRegistry}\n * currentScreen={currentScreen}\n * nextScreen={nextScreen}\n * fallback={<Spinner overlay />}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function GameFlow({ screenRegistry, currentScreen, nextScreen, fallback, }","AppBranding":"/**\n * AppBranding - Unified branding component\n *\n * Combines AppIcon + AppTitle with DISPLAY mode support.\n * Uses CSS container queries for AUTO mode - no JS breakpoint checks.\n *\n * @example\n * ```tsx\n * // Auto-responsive (default)\n * <AppBranding />\n *\n * // Logo only\n * <AppBranding display=\"compact\" />\n *\n * // Always show logo + title\n * <AppBranding display=\"full\" />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AppBranding: ({ display, linkToHome, className, }","AppIcon":"/**\n * AppIcon - Application icon component\n *\n * Uses logo.svg (user must provide). Reads SVG content synchronously from build-time data.\n * CSS variables (var(--primary), var(--accent)) work automatically when SVG is inlined.\n * Falls back to img tag if logo.svg is not available.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AppIcon: ({ alt, size, className }","AppTitle":"/**\n * AppTitle - Simple app title using text-base xl\n * Automatically gets app name from AppConfig if title not provided\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AppTitle: ({ title, className, linkToHome, }","Breadcrumbs":"/**\n * Breadcrumbs component for navigation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * Automatically generates breadcrumbs from current route or accepts custom items.\n * Renders no generated trail inside a NotFoundDocument (the 404, served for any URL).\n */\ndeclare const Breadcrumbs: ComponentType<BreadcrumbsProps>;","GameTitle":"/**\n * GameTitle Component\n *\n * Renders title/subtitle when available (from themeStore), otherwise falls back to app name.\n * Used in game preset header center slot.\n *\n * Non-negotiable: This component is always rendered in the center of game header.\n *\n * @param props - GameTitle component props\n * @returns React component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const GameTitle: ({ asLink, className }","CacheSettings":"/**\n * CacheSettings - Cache settings component for clearing various caches\n *\n * Provides UI for clearing browser caches including localStorage, sessionStorage,\n * cookies, IndexedDB, and service worker caches.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function CacheSettings(): import(\"react\").JSX.Element;","DropdownNavigation":"/**\n * DropdownNavigation component - professional navigation with dropdown support\n *\n * Renders a navigation bar with dropdown menus for complex navigation structures.\n * Supports both direct links and dropdown menus with subroutes.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @param navigation - Array of navigation menu items\n * @param className - Additional CSS classes\n * @returns Rendered navigation component\n */\ndeclare const DropdownNavigation: ComponentType<DropdownNavigationProps>;","FloatingLanguageSwitcher":"/**\n * FloatingLanguageSwitcher - Professional, floating language selector\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FloatingLanguageSwitcher: ComponentType<FloatingLanguageSwitcherProps>;","HeaderMenu":"/**\n * HeaderMenu - Header controls that collapse into a hamburger\n *\n * Renders `children` inline (`display: contents`, so they sit in the parent row with\n * its gap) and a hamburger whose panel renders the same children while open. Both are\n * in the server HTML; HeaderMenu.css shows the hamburger below the laptop breakpoint\n * (1024px, the split of `useBreakpoint('isMobileOrTablet')`) and the inline controls\n * from it up. No JS breakpoint, no hydration swap: usable at every width.\n *\n * The panel is a Popover, not a DropdownMenu: menu items swallow the clicks of the\n * controls inside them and keep keyboard focus on the item wrapper, which broke\n * nested popups (AuthHeader's provider menu or dialog, LanguageSelector, an account\n * DropdownMenu). Labels are forced visible in the panel (.dndev-menu-content).\n * The panel sits just above the header, so dialogs and menus opened from it show above it.\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Inline on laptop and desktop, burger on mobile and tablet:\n * <HeaderMenu>\n * <AuthHeader />\n * <LanguageSelector />\n * <ThemeToggle />\n * </HeaderMenu>\n * ```\n */\nexport declare const HeaderMenu: ({ children, className }","HeaderNavigation":"/**\n * HeaderNavigation - DISPLAY-aware adaptive navigation component\n *\n * Uses DISPLAY prop to choose navigation strategy:\n * - COMPACT: All items in dropdown menu (HeaderMenu pattern)\n * - FULL: Inline navigation with overflow detection (DnDevNavigationMenu with overflowDetection)\n * - AUTO: Responsive (dropdown on mobile/tablet, inline on desktop)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const HeaderNavigation: ComponentType<HeaderNavigationProps>;","Notifications":"/**\n * Notifications component - notification bell with dropdown\n *\n * Features:\n * - Badge count display with proper formatting\n * - Dropdown notification list\n * - Real-time notification updates\n * - Mark as read functionality\n * - Different notification types with styling\n * - Responsive design\n * - Keyboard navigation support\n * - Loading states\n * - Empty states\n * - Time formatting for timestamps\n *\n * This component provides a complete notification system that can be\n * easily integrated into any layout header or navigation area.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - Notifications component props\n * @returns React component\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Notifications count={3} />\n *\n * // With full notification data\n * <Notifications\n * notifications={[\n * {\n * id: '1',\n * title: 'New message',\n * message: 'You have a new message from John',\n * type: 'info',\n * timestamp: new Date(),\n * }\n * ]}\n * onNotificationClick={handleNotificationClick}\n * />\n *\n * // Custom styling and behavior\n * <Notifications\n * count={notifications.filter(n => !n.read).length}\n * maxVisible={5}\n * onMarkAllRead={markAllAsRead}\n *\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const Notifications: ({ notifications, count, loading, onNotificationClick, onDropdownOpen, className, maxVisible, alwaysShow, size, disabled, }","SettingsMenu":"/**\n * SettingsMenu with fixed hooks order and error protection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function SettingsMenu({ variant, }","ThemeToggle":"/**\n * ThemeToggle - Theme switching component\n *\n * Allows users to switch between available themes (light, dark, system, custom).\n * Integrates with the theme store for state management.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ThemeToggle: ComponentType<ThemeToggleProps>;","FooterBranding":"/**\n * FooterBranding - Framework branding link (power move)\n *\n * Shows AMBROISE-PARK for framework's own site (donotdev.com),\n * otherwise shows DoNotDev for consumer apps.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FooterBranding: React.ComponentType<FooterBrandingProps>;","FooterCopyright":"/**\n * FooterCopyright - Copyright notice component\n *\n * Uses useTranslation internally, so it re-renders when language changes.\n * If appName not provided, reads from app config automatically.\n * Renders nothing when the app has no footer (`app.footer: null`), as DnDevFooter,\n * including in presets that show it in the sidebar.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FooterCopyright: React.ComponentType<FooterCopyrightProps>;","FooterLegalLinks":"/**\n * FooterLegalLinks - Legal links component\n *\n * Renders legal links from app.footer.legalLinks config.\n * If app not provided, reads from app config automatically.\n * Used in footer and sidebar when footer zone is hidden.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FooterLegalLinks: React.ComponentType<FooterLegalLinksProps>;","EntityDisplayRenderer":"/**\n * EntityDisplayRenderer - Automatically fetches and displays entity data\n *\n * Features:\n * - Reactive data fetching using useCrudDoc (stays in sync with edits)\n * - Loading state handling\n * - Error handling\n * - Automatic field rendering (respects visibility rules)\n * - Full i18n support\n * - No form/submit buttons - pure read-only display\n *\n * @example\n * ```tsx\n * <EntityDisplayRenderer entity={carEntity} id={carId} />\n * ```\n */\nexport declare function EntityDisplayRenderer<T extends EntityRecord = EntityRecord>({ entity, id, t, className, loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }","EntityList":"/**\n * Entity List Component - Table view for admin/internal operations\n *\n * Features:\n * - Filters section (collapsible): closed unless filters are active (e.g. from the URL)\n * - Results section with the search / refresh / add toolbar and the DataTable\n * - Excel-like table display with formatted values\n * - Open-link icon per row, bulk select, bulk delete of the checked rows\n * - Auto-routing when handlers not provided\n * - With `parent`, `editable` (default) and an edit form open on that record:\n * joined to the form (`useChildRows`), saved by its Save\n */\nexport declare function EntityList(props: EntityListProps): import(\"react\").JSX.Element | null;","EntityCardList":"/**\n * Entity Card List Component - Card grid view for public/user-facing browsing\n *\n * Features:\n * - Responsive card grid layout\n * - Image + key fields display\n * - Click card to navigate to detail\n * - Simple formatted text display (labels + values)\n * - Empty state handling\n * - Auto-routing when handler not provided\n * - Opt-in feed rendering (`pageSize`): the first `pageSize` cards render (server HTML\n * included), `pageSize` more are added as the end of the grid nears the viewport,\n * until every card is shown. Without `pageSize`, every card renders at once.\n */\nexport declare function EntityCardList({ entity, basePath, onClick, cols, pageSize, staleTime, // 30 minutes default cache\nqueryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }","EntityFormRenderer":"/**\n * EntityFormRenderer - public API.\n * Applies instanceKey as React key on the inner component for clean state isolation\n * when navigating between entities on the same route (e.g. /cars/:id).\n */\nexport declare function EntityFormRenderer<E extends AnyEntity, Op extends FieldOperation = FieldOperation>(props: EntityFormRendererProps<E, Op>): import(\"react\").JSX.Element;","EntityRecommendations":"/**\n * Displays a grid of related entity cards.\n * Uses useCrudCardList (listCard schema) so cards render identically to EntityCardList.\n *\n * **Title resolution (i18n):**\n * 1. `title` prop — if provided, used as-is (pre-translated string)\n * 2. `recommendations.title` in entity namespace — consumer override\n * 3. `recommendations.title` in `crud` namespace — framework default (\"You may also like\")\n *\n * Consumers override by adding to their entity translation file:\n * ```json\n * { \"recommendations\": { \"title\": \"Similar Apartments\" } }\n * ```\n *\n * @example\n * ```tsx\n * // Auto-translated title (entity namespace → crud fallback)\n * <EntityRecommendations\n * entity={apartmentEntity}\n * queryOptions={{\n * where: [\n * { field: 'district_code', operator: 'eq', value: current.district_code },\n * { field: 'id', operator: 'neq', value: current.id },\n * ],\n * limit: 3,\n * }}\n * />\n *\n * // Explicit title override\n * <EntityRecommendations\n * entity={apartmentEntity}\n * title=\"Nearby Apartments\"\n * queryOptions={...}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.15\n * @author AMBROISE PARK Consulting\n */\nexport declare function EntityRecommendations({ entity, queryOptions, title, basePath, cols, tone, className, }","EntityWorkflow":"/**\n * EntityWorkflow — renders a multi-step entity workflow.\n *\n * Default mode: auto-renders Stepper + form + navigation buttons.\n * Custom mode: pass a render prop as children for full control.\n */\nexport declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }","EntityWorkflowProps":"/** Props for EntityWorkflow */\nexport interface EntityWorkflowProps {\n /** Workflow configuration from defineWorkflow() */\n workflow: WorkflowConfig;\n /** Callback when all steps are completed */\n onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;\n /** Callback when step changes */\n onStepChange?: (fromIndex: number, toIndex: number) => void;\n /** Default values to pre-fill across steps */\n defaultValues?: Record<string, unknown>;\n /** Viewer role for form rendering */\n viewerRole?: string;\n /** Render prop for custom layout (receives workflow state) */\n children?: (wf: EntityWorkflowReturn) => ReactNode;\n /** Additional CSS class */\n className?: string;\n}","Form":"/**\n * Form provider component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getErrors, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }","FormItem":"/**\n * Form item component\n *\n * Container component for form fields with spacing and layout.\n *\n * @param {HTMLAttributes<HTMLDivElement>} props - Component props\n * @returns {JSX.Element} Form item component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormItem: ({ className, children, ...props }","FormLabel":"/**\n * Form label component\n *\n * Renders a label for a form field with error state styling.\n *\n * @param {ComponentProps<typeof Label>} props - Component props\n * @returns {JSX.Element | null} Form label component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormLabel: ({ className, ...props }","FormControl":"/**\n * Form control component\n *\n * Wraps form input components with proper ARIA attributes.\n *\n * @param {ComponentProps<typeof Slot>} props - Component props\n * @returns {JSX.Element | null} Form control component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormControl: ({ ...props }","FormDescription":"/**\n * Form description component\n *\n * Renders descriptive text for a form field.\n *\n * @param {HTMLAttributes<HTMLParagraphElement>} props - Component props\n * @returns {JSX.Element | null} Form description component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormDescription: ({ className, ...props }","FormMessage":"/**\n * Form message component\n *\n * Renders error or custom messages for a form field.\n *\n * @param {HTMLAttributes<HTMLParagraphElement>} props - Component props\n * @returns {JSX.Element | null} Form message component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormMessage: ({ className, children, ...props }","FormField":"/**\n * Form field component\n *\n * Wraps a form field with context and controller for react-hook-form integration.\n *\n * @param {ControllerProps<TFieldValues, TName>} props - Controller props\n * @returns {JSX.Element} Form field component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }","useFormField":"/**\n * Hook for accessing form field context\n *\n * Returns form field state and IDs for form components.\n *\n * @returns {Object | null} Form field context with IDs and state\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useFormField: () => {\n invalid: boolean;\n isDirty: boolean;\n isTouched: boolean;\n isValidating: boolean;\n error?: import(\"react-hook-form\").FieldError | undefined;\n id: string;\n name: string;\n formItemId: string;\n formDescriptionId: string;\n formMessageId: string;\n}","TechLogo":"/**\n * Tech logo entry with SVG data URI and metadata\n */\nexport type TechLogo = {\n /** Data URI for the SVG */\n svg: string;\n /** Brand color (hex) */\n color: string;\n /** Display name */\n name: string;\n}","TechKey":"/**\n * Available tech logo keys\n */\nexport type TechKey = 'bun' | 'typescript' | 'react' | 'vite' | 'nextjs' | 'nodejs' | 'firebase' | 'supabase' | 'vercel' | 'stripe' | 'valibot';","techLogos":"/**\n * Tech logos collection with data URIs and brand colors\n *\n * @example\n * ```tsx\n * import { techLogos } from '@donotdev/ui';\n *\n * <img src={techLogos.react.svg} alt={techLogos.react.name} />\n * ```\n */\nexport declare const techLogos: Record<TechKey, TechLogo>;","AuthReturnTo":"/**\n * AuthReturnTo - Restores navigation after OAuth redirect.\n *\n * OAuth always lands on `/` (origin). This component watches for sign-in,\n * reads the saved returnTo path, and navigates back. Runs once per sign-in.\n *\n * Also shows a warning toast when the user was redirected by the auth guard\n * (flag set by useNavigate, consumed here on mount of the landing page).\n *\n * @component\n */\nexport declare function AuthReturnTo(): null;","SignedInRedirect":"/**\n * SignedInRedirect - sends signed-in visitors of a page to `to` (replace).\n *\n * Renders the page for everyone (server render, signed-out visitors). Once the auth\n * user is known, navigates to `to` unless a return-to is pending (`?returnTo=` or\n * the saved `dndev.auth.returnTo`): AuthReturnTo takes the visitor there instead.\n * Generated route wrappers (Next) and createAppRouter (Vite) mount it for pages whose\n * PageMeta sets `signedInRedirect`.\n *\n * @component\n * @example\n * ```tsx\n * <SignedInRedirect to=\"/catalogue\"><HomePage /></SignedInRedirect>\n * ```\n */\nexport declare function SignedInRedirect({ to, children }","SignedInRedirectProps":"/**\n * Props for SignedInRedirect\n */\nexport interface SignedInRedirectProps {\n /** App path signed-in visitors are sent to (PageMeta `signedInRedirect`) */\n to: string;\n /** The page, rendered for everyone until the redirect happens */\n children: ReactNode;\n}","GoToWrapper":"/**\n * GoToWrapper - Keyboard listener + lazy dialog\n *\n * Performance:\n * - Zero code loaded until dialog opens\n * - Cmd+K listener always active\n * - Dialog lazy-loaded on first open\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const GoToWrapper: () => import(\"react\").JSX.Element;","GoToInput":"declare const GoToInput: () => import(\"react\").JSX.Element;","NotFoundPage":"function NotFoundPage({ showRequestedPath, }","NotFoundDocument":"/**\n * Wraps the providers of a 404 document. Rendered by the framework's generated 404\n * pages; an app renders it only in a 404 page of its own.\n *\n * @example\n * ```tsx\n * <NotFoundDocument>\n * <ClientLayout serverCookies=\"\" acceptLanguage={null}>\n * <NotFoundPage showRequestedPath={false} />\n * </ClientLayout>\n * </NotFoundDocument>\n * ```\n *\n * @version 0.1.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport declare function NotFoundDocument({ children }","useIsNotFoundDocument":"/**\n * Whether the render is inside a NotFoundDocument (the 404 document, served for\n * any unknown URL): URL-derived output must be omitted there.\n *\n * @returns `true` inside a NotFoundDocument\n *\n * @version 0.1.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport declare function useIsNotFoundDocument(): boolean;","useNavigate":"/**\n * Navigation hook. Auth is handled by AuthGuard (cold-load redirect).\n * Protected routes are hidden from unauthorized users via useAccessibleRoutes.\n * App paths stay in the current URL's language (`/produits` → `/en/produits` on an\n * English page); a path with an explicit language prefix keeps it.\n *\n * @version 0.3.0\n * @since 0.0.1\n */\nexport declare function useNavigate(): (path: string, options?: NavigateOptions) => void;","useBack":"export declare function useBack(): () => void;","useRefresh":"export declare function useRefresh(): () => void;","usePrefetch":"export declare function usePrefetch(): (to: string) => void;","useLocation":"/**\n * Current location, route-relative: `pathname` has no language prefix (`/en/produits`\n * → `/produits`), so route matching, breadcrumbs and guards see app paths.\n *\n * Reads the query string (`search`): in a cached (static) render that moves the\n * render to the browser up to the nearest Suspense boundary. Use `useRoutePath()`\n * when only the path is needed.\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useLocation(): {\n pathname: string;\n search: string | undefined;\n hash: string;\n state: null;\n}","useRoutePath":"/**\n * Route path of the current URL: the pathname without its language prefix\n * (`/en/produits` → `/produits`). Reads the pathname only: safe in cached (static)\n * renders, where reading the query string (`useLocation().search`,\n * `useSearchParams`) moves the render to the browser up to the nearest Suspense\n * boundary. Use it whenever the query string is not needed. The server render of a\n * per-request page reads its internal pathname (`/<lang>/dndev-session/…`): dropped here, so\n * the server and the browser see the same path. Under Next `trailingSlash: true` the URL\n * ends with `/` (`/en/produits/`): the route path does not (`/produits`), the form of the\n * route mapping.\n *\n * @returns Route path, always starting with `/`, never ending with `/` (except the root)\n *\n * @example\n * ```tsx\n * const path = useRoutePath();\n * const active = path === '/produits';\n * ```\n *\n * @version 0.1.1\n * @since 0.2.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function useRoutePath(): string;","useParams":"export declare function useParams(): Record<string, string | string[] | undefined>;","useRouteParam":"/**\n * Safely extract a route parameter as a string\n *\n * Handles the fact that useParams can return string | string[] | undefined.\n * For standard path parameters (not catch-all routes), this will always be a string.\n *\n * @param paramName - Name of the route parameter\n * @returns The parameter value as a string, or undefined if not present\n *\n * @example\n * ```tsx\n * // Route: /product/:id\n * const id = useRouteParam('id'); // string | undefined\n * if (!id) return <NotFound />;\n * ```\n */\nexport declare function useRouteParam(paramName: string): string | undefined;","useSearchParams":"/**\n * Get current URL search parameters (read-only).\n * Returns a ReadonlyURLSearchParams instance directly (NOT a tuple).\n *\n * To modify search params, use `useNavigate()` with a query string\n * or `useQueryParams()` for a key-value API with defaults.\n *\n * @returns ReadonlyURLSearchParams instance with `.get()`, `.has()`, `.getAll()`, etc.\n *\n * @example\n * ```tsx\n * const searchParams = useSearchParams();\n * const page = searchParams.get('page');\n * const sort = searchParams.get('sort');\n * ```\n */\nexport declare function useSearchParams(): ReturnType<typeof useNextSearchParams>;","useMatch":"/**\n * Match the current route path (language prefix stripped) against a pattern.\n *\n * @version 0.2.0\n * @since 0.0.1\n */\nexport declare function useMatch(pattern: string): {\n params: Record<string, string>;\n pathname: string;\n pattern: string;\n}","useQueryParams":"/**\n * Platform-agnostic useQueryParams hook\n *\n * Provides easy access to query parameters with setter functionality\n *\n * @returns Object with query parameters and setter functions\n *\n * @example\n * ```tsx\n * const { query, setQuery, removeQuery } = useQueryParams();\n *\n * // Get a query parameter\n * const page = query.get('page');\n *\n * // Set a query parameter\n * setQuery('page', '2');\n *\n * // Remove a query parameter\n * removeQuery('page');\n * ```\n */\nexport declare function useQueryParams(): {\n query: import(\"next/navigation\").ReadonlyURLSearchParams;\n setQuery: (key: string, value: string) => void;\n removeQuery: (key: string) => void;\n clearQueries: () => void;\n}","useRedirectGuard":"/**\n * Hook that checks if redirect should happen before render\n *\n * Prevents content flash by determining redirect state synchronously.\n * Returns safe defaults on server (SSR-safe). Reads the query string from\n * `window.location` when it redirects, not through `useSearchParams`: a cached\n * (static) page using it keeps its server-rendered HTML.\n *\n * @param options - Redirect guard configuration\n * @returns Redirect guard state\n */\nexport declare function useRedirectGuard(options?: RedirectGuardOptions): RedirectGuardResult;","useLocalizedPath":"/**\n * Localize app paths in the current URL's language, for `href`s built outside `<Link>`.\n * `<Link path>` and `navigate()` already do it.\n *\n * @returns `(path) => url`: `/produits` → `/en/produits` on an English page\n *\n * @example\n * ```tsx\n * const localize = useLocalizedPath();\n * <a href={localize('/produits')}>…</a>\n * ```\n *\n * @version 0.1.0\n * @since 0.2.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function useLocalizedPath(): (path: string) => string;","useUrlLanguage":"/**\n * Language of the current URL: its prefix, else the default language.\n *\n * @returns Language code (`/en/produits` → `en`)\n *\n * @version 0.1.0\n * @since 0.2.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function useUrlLanguage(): string;","NavigateOptions":"/**\n * Navigation options for useNavigate hook\n */\nexport interface NavigateOptions {\n /** Replace current history entry instead of pushing new one */\n replace?: boolean;\n /** Preserve scroll position (default: false, scrolls to top) */\n preserveScroll?: boolean;\n}","RedirectGuardOptions":"/** Configuration options for the redirect guard hook. */\nexport interface RedirectGuardOptions {\n /** Auth configuration for this route */\n auth?: PageAuth | false;\n /** Custom redirect target (overrides auth config defaults) */\n redirectTo?: string | null;\n /** Custom condition function to check if redirect should happen */\n condition?: (user: any, status: FeatureStatus) => boolean;\n}","RedirectGuardResult":"/** Return value of the useRedirectGuard hook. */\nexport interface RedirectGuardResult {\n /** Whether redirect should happen */\n shouldRedirect: boolean;\n /** Target path for redirect, or null if no redirect */\n redirectTo: string | null;\n /** Whether auth state is still being checked */\n isChecking: boolean;\n}","LinkProps":"/**\n * Link component props interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n path: string;\n replace?: boolean;\n /**\n * Next.js: internal links render next/link, prefetched with its default behaviour for\n * guests and in full for signed-in visitors (their pages render per request, which the\n * default skips); `false` disables prefetching. Vite: no effect.\n * @default true\n */\n prefetch?: boolean;\n children?: ReactNode;\n /** Icon component or string name */\n icon?: string | ReactNode;\n /** Place icon after content instead of before */\n iconEnd?: boolean;\n /** Label text (rendered as span if provided) */\n label?: string;\n 'aria-label'?: string;\n 'aria-describedby'?: string;\n}","Link":"/**\n * Link component. Internal paths are app paths (`/produits`): the rendered `href` and\n * the navigation use the current language's URL (`/en/produits` on an English page,\n * unchanged in the default language or a one-language app). Internal links render\n * next/link on Next.js (route prefetch, client-side navigation) and an `<a href>`\n * navigated by react-router on Vite; both output a real `<a href>`.\n *\n * @version 0.3.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const Link: ComponentType<LinkProps>;","AuthGuard":"/**\n * AuthGuard - cold-load redirect safety net\n *\n * For SPA navigation, auth is intercepted in useNavigate (before page mount).\n * This component handles the cold-load case: user pastes a protected URL directly.\n * It redirects to authRoute, saves returnTo, and AuthReturnTo handles the redirect back.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function AuthGuard({ auth, children, fallback: Fallback, }","useCanNavigate":"/**\n * Hook to check if current user can navigate to a route with given auth config\n * ONLY uses store - single source of truth!\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useCanNavigate(auth: PageAuth | false): boolean;","useUserRole":"/**\n * Hook to get current user's role - directly from store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useUserRole(): typeof USER_ROLES.GUEST | typeof USER_ROLES.USER | typeof USER_ROLES.ADMIN;","useHasRole":"/**\n * Hook to check specific role - directly from store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useHasRole(role: typeof USER_ROLES.GUEST | typeof USER_ROLES.USER | typeof USER_ROLES.ADMIN): boolean;","useAuthState":"/**\n * Hook to get all auth state for debugging\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useAuthState(): {\n authenticated: boolean;\n role: string | undefined;\n tier: string;\n loading: boolean;\n userId: string | undefined;\n}","withAuth":"/**\n * HOC to wrap components with auth protection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function withAuth<P extends object>(Component: ComponentType<P>, auth: PageAuth | false): (props: P) => import(\"react\").JSX.Element;","createAuthConfig":"/**\n * Utility to create auth configs\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const createAuthConfig: {\n /** No authentication required */\n public: () => false;\n /** Basic authentication required */\n required: () => PageAuth;\n /** User role (any authenticated user) */\n user: () => PageAuth;\n /** Admin role (Firebase custom claim isAdmin: true) */\n admin: () => PageAuth;\n /** Tier-based authentication */\n tier: (tier: (typeof SUBSCRIPTION_TIERS)[keyof typeof SUBSCRIPTION_TIERS]) => PageAuth;\n /** Pro tier */\n pro: () => PageAuth;\n /** Premium tier */\n premium: () => PageAuth;\n /** Admin with pro tier requirement */\n adminPro: () => PageAuth;\n /** Custom validation */\n custom: (validate: (role: string, tier: string) => boolean) => PageAuth;\n}","AuthGuardFallback":"/**\n * AuthGuardFallback - Shows login options when users hit protected routes\n *\n * Instead of redirecting to a separate login page, this component shows\n * the authentication options directly on the protected route, providing\n * better UX and keeping users in context.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function AuthGuardFallback({ title, description, showBackButton, onBack, className, }","GoToProps":"/** Props for the GoTo command palette trigger. */\nexport interface GoToProps {\n /**\n * Display - controls button presentation\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /** Additional CSS class */\n className?: string;\n /** Optional callback called after opening command dialog (e.g., to close parent dropdown) */\n onOpen?: () => void;\n}","GoTo":"export declare const GoTo: ({ display, className, onOpen, }","DnDevNavigationMenuProps":"/** Props for the DnDevNavigationMenu component. */\nexport interface DnDevNavigationMenuProps {\n /** Routes to display (optional - auto-fetches if not provided) */\n routes?: NavigationItem[];\n /** Vertical orientation (for sidebars) - defaults to horizontal */\n vertical?: boolean;\n /** Display mode - COMPACT (icon-only), FULL (icon+label), AUTO (CSS-driven) */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /** Enable overflow detection with \"More\" dropdown (for headers) */\n overflowDetection?: boolean;\n /** Whether to show icons */\n showIcons?: boolean;\n /** Additional CSS classes */\n className?: string;\n /** Inline styles */\n style?: React.CSSProperties;\n}","DnDevNavigationMenu":"/**\n * DnDevNavigationMenu - Universal navigation menu component\n *\n * Smart navigation menu with defaults:\n * - Auto-fetches routes if not provided (smart default, auth-reactive)\n * - Resolves icons (always shows icons with LinkIcon fallback)\n * - Injects routing-aware Link component\n * - 48px buttons/icons when vertical (sidebar standard)\n * - Optional overflow detection with \"More\" dropdown (for headers)\n *\n * Works for sidebars, headers, dropdowns, anywhere navigation is needed.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Sidebar - auto-fetches routes (smart default, CSS-driven collapse)\n * <DnDevNavigationMenu vertical display={DISPLAY.AUTO} />\n *\n * // Header with overflow detection\n * <DnDevNavigationMenu overflowDetection showIcons={false} />\n *\n * // Custom routes\n * <DnDevNavigationMenu routes={customRoutes} vertical />\n * ```\n */\nexport declare const DnDevNavigationMenu: ComponentType<DnDevNavigationMenuProps>;","NavigationItem":"/**\n * Enhanced navigation item interface for UI components\n */\nexport interface NavigationItem extends NavigationRoute {\n /** Whether this item is currently active based on current route */\n isActive: boolean;\n /** Whether this item has child routes */\n hasChildren: boolean;\n /** Nested child navigation items */\n children?: NavigationItem[];\n}","useNavigationItems":"/**\n * Smart navigation hook with auth filtering\n *\n * Use this for UI menus, sidebars, and navigation components that should\n * only show routes the user can access.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Array of navigation items filtered by auth state\n *\n * @example\n * ```tsx\n * function SidebarMenu() {\n * const menuItems = useNavigationItems();\n * return <nav>{menuItems.map(item => <MenuItem key={item.path} item={item} />)}</nav>;\n * }\n * ```\n */\nexport declare function useNavigationItems(): NavigationItem[];","useNavigationRoute":"/**\n * Resolves a single navigation item from the store by path.\n *\n * Returns `undefined` if the path is not registered or the user lacks access.\n * Use this to compose a standalone Button-style nav link without reaching for\n * a full NavigationMenu.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * const route = useNavigationRoute('/pricing');\n * if (!route) return null;\n * return (\n * <Button\n * variant=\"ghost\"\n * display={DISPLAY.AUTO}\n * icon={<Icon icon={route.icon} fallback={LinkIcon} />}\n * render={({ children, ...props }) => (\n * <Link path={route.path} {...props}>{children}</Link>\n * )}\n * >\n * {route.label}\n * </Button>\n * );\n * ```\n */\nexport declare function useNavigationRoute(path: string): NavigationItem | undefined;","useGoTo":"/**\n * Hook for navigation with favorites and recents\n * Command component handles search/filtering\n */\nexport declare const useGoTo: () => {\n navigationItems: import(\"./useNavigation\").NavigationItem[];\n favoriteItems: import(\"./useNavigation\").NavigationItem[];\n recentItems: import(\"./useNavigation\").NavigationItem[];\n toggleFavorite: (path: string) => void;\n isFavorite: (path: string) => boolean;\n navigateToItem: (path: string) => void;\n}","layoutClasses":"/**\n * @fileoverview Layout constants\n * @description Layout component class names and CSS selectors\n * Used for IDE autocomplete and type safety\n *\n * Note: CSS uses semantic HTML selectors with role attributes for scoping:\n * - `header[role='banner']` - not `.header` or `.dndev-header`\n * - `main[role='main']` - not `.main` or `.dndev-main`\n * - `footer[role='contentinfo']` - not `.footer` or `.dndev-footer`\n * - `aside[role='navigation'].sidebar` - uses `.sidebar` class but scoped by role\n *\n * Class names are organizational only. CSS targets by element+role for semantic scoping.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const layoutClasses: {\n readonly layoutContainer: \"dndev-layout\";\n readonly sidebar: \"sidebar\";\n readonly sidebarTop: \"sidebar-top\";\n readonly sidebarContent: \"sidebar-content\";\n readonly sidebarBottom: \"sidebar-bottom\";\n readonly sidebarResizeHandle: \"dndev-sidebar-resize-handle\";\n readonly header: \"header\";\n readonly main: \"main\";\n readonly footer: \"footer\";\n readonly container: \"dndev-container\";\n readonly pageContainer: \"dndev-container\";\n readonly breadcrumbsContainer: \"breadcrumbs-container\";\n}","layoutUtilities":"/**\n * Layout utility class names.\n * These are direct CSS class names that map to CSS variables (e.g., h-header → var(--header-height)).\n *\n * Framework components use these CSS classes directly.\n * These are exported for:\n * - Direct use in consumer apps\n * - IDE autocomplete\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const layoutUtilities: {\n readonly zHeader: \"dndev-z-header\";\n readonly zSidebar: \"dndev-z-sidebar\";\n readonly zOverlay: \"dndev-z-overlay\";\n readonly zModal: \"dndev-z-modal\";\n readonly zTooltip: \"dndev-z-tooltip\";\n readonly zToast: \"dndev-z-toast\";\n}","allLayoutClasses":"/**\n * Combined export of all layout classes and utilities\n * For consumer apps\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const allLayoutClasses: {\n readonly zHeader: \"dndev-z-header\";\n readonly zSidebar: \"dndev-z-sidebar\";\n readonly zOverlay: \"dndev-z-overlay\";\n readonly zModal: \"dndev-z-modal\";\n readonly zTooltip: \"dndev-z-tooltip\";\n readonly zToast: \"dndev-z-toast\";\n readonly layoutContainer: \"dndev-layout\";\n readonly sidebar: \"sidebar\";\n readonly sidebarTop: \"sidebar-top\";\n readonly sidebarContent: \"sidebar-content\";\n readonly sidebarBottom: \"sidebar-bottom\";\n readonly sidebarResizeHandle: \"dndev-sidebar-resize-handle\";\n readonly header: \"header\";\n readonly main: \"main\";\n readonly footer: \"footer\";\n readonly container: \"dndev-container\";\n readonly pageContainer: \"dndev-container\";\n readonly breadcrumbsContainer: \"breadcrumbs-container\";\n}","layoutVariables":"/**\n * Layout CSS custom property names for programmatic access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const layoutVariables: {\n readonly headerHeight: \"--header-height\";\n readonly headerPadding: \"--header-padding\";\n readonly headerIconSize: \"--header-icon-size\";\n readonly headerLogoMaxHeight: \"--header-logo-max-height\";\n readonly sidebarWidth: \"--sidebar-width\";\n readonly sidebarPadding: \"--sidebar-padding\";\n readonly mainPadding: \"--main-padding\";\n readonly mainMaxWidth: \"--main-max-width\";\n readonly contentWidth: \"--content-width\";\n readonly contentPadding: \"--content-padding\";\n readonly footerHeight: \"--footer-height\";\n readonly footerPadding: \"--footer-padding\";\n readonly zHeader: \"--z-header\";\n readonly zSidebar: \"--z-sidebar\";\n readonly zFooter: \"--z-footer\";\n readonly zOverlay: \"--z-overlay\";\n readonly zModal: \"--z-modal\";\n readonly zTooltip: \"--z-tooltip\";\n readonly zToast: \"--z-toast\";\n}","cssVariables":"/**\n * CSS variable exports\n * Exports CSS variable names for use in TypeScript\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const cssVariables: {\n readonly headerHeight: \"--header-height\";\n readonly headerPadding: \"--header-padding\";\n readonly logoSize: \"--logo-size\";\n readonly sidebarWidth: \"--sidebar-width\";\n readonly sidebarPadding: \"--sidebar-padding\";\n readonly footerHeight: \"--footer-height\";\n readonly footerPadding: \"--footer-padding\";\n readonly layoutGap: \"--layout-gap\";\n readonly sectionGap: \"--gap-lg\";\n readonly contentGap: \"--content-gap\";\n readonly zHeader: \"--z-header\";\n readonly zSidebar: \"--z-sidebar\";\n readonly zFooter: \"--z-footer\";\n readonly zModal: \"--z-modal\";\n readonly zTooltip: \"--z-tooltip\";\n}","CssVariable":"/**\n * CSS variable type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type CssVariable = keyof typeof cssVariables;","AssetFormats":"/**\n * Asset formats interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface AssetFormats {\n svg?: string;\n png?: string;\n webp?: string;\n avif?: string;\n}","AssetResolver":"/**\n * Modern asset resolution with format preference and browser capability detection\n * Follows Next.js Image optimization patterns\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare class AssetResolver {\n private static cache;\n /**\n * Check if browser supports modern image formats\n */\n static getBrowserSupport(): BrowserSupport;\n /**\n * Recursively extract all string values from nested object/array structure\n */\n private static extractStringValues;\n /**\n * Whether the build-time asset manifest lists `path` (any string in its nested objects\n * and arrays). The server render and the browser read the same manifest\n * ({@link getAssetManifest}), so they answer the same and the HTML hydrates.\n */\n static assetExists(path: string): boolean;\n /**\n * The build-time asset manifest (`getDndevConfig().assets.mapping`), or null before the\n * generated asset config ran. Read on the server too: the app's generated config sets it\n * on `globalThis` at module load in the Next SSR process (`src/config/dndev-config-asset.js`,\n * imported first by `ClientLayout`) and in the browser (same file on Next, the Vite\n * assets virtual module), so every resolver gives the server render and the hydration\n * pass the same paths.\n */\n static getAssetManifest(): AssetManifest | null;\n /**\n * Get logo SVG content for inline rendering\n * Works in both CSR and SSR (globalThis available in both contexts)\n * @returns {string | null} SVG content or null if not available\n */\n static getLogoSvgContent(): string | null;\n /**\n * Resolve logo path\n * Rule: Use manifest optimal if available, otherwise /logo.svg (user must provide).\n * Cached once the manifest is read (the server process keeps the cache across requests,\n * so a resolution made before the generated config ran is not kept).\n */\n static resolveLogo(customPath?: string): string;\n /**\n * Direct asset existence check for development\n * More reliable than the build-time detection\n *\n * **Limitation:** This is a synchronous heuristic that always returns true\n * when `new Image()` doesn't throw. It does NOT wait for the image to load,\n * so it cannot detect 404s. A proper async check would require returning a\n * Promise<boolean> via Image.onload/onerror, but that would change the\n * synchronous contract used by resolveLogo/resolveFaviconSet.\n */\n private static directAssetCheck;\n /**\n * Resolve complete favicon set: `resolveFaviconFiles` (`@donotdev/core`) over the\n * build-time manifest ({@link assetExists}). Same set on the server and in the browser\n * (both read the manifest); cached once the manifest is read.\n */\n static resolveFaviconSet(): FaviconSet;\n /**\n * Resolve optimal favicon for basic usage\n */\n static resolveFavicon(): string;\n /**\n * Clear asset resolution cache\n * Useful when assets change during development\n */\n static clearCache(): void;\n /**\n * Get debug information about detected assets\n */\n static getDebugInfo(): {\n browserSupport: BrowserSupport;\n detectedAssets: Record<string, any> | null | undefined;\n assetManifest: AssetManifest | null;\n cache: {\n [k: string]: any;\n };\n };\n}","resolveLogo":"/**\n * Utility function for logo resolution\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function resolveLogo(customPath?: string): string;","resolveFaviconSet":"/**\n * Utility function for favicon resolution\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function resolveFaviconSet(): FaviconSet;","useAuthSafe":"/**\n * Safe wrapper for useAuth hook.\n *\n * - If @donotdev/auth installed → uses real hook (handles Firebase/consent internally)\n * - If not installed → returns degraded API values\n *\n * @param key - Property name to access from auth API\n * @returns The auth API value, or degraded value if auth unavailable\n *\n * @example\n * ```typescript\n * const user = useAuthSafe('user');\n * const signIn = useAuthSafe('signInWithEmail');\n * const isAvailable = useAuthSafe('isAvailable');\n * ```\n */\nexport declare function useAuthSafe<K extends keyof AuthAPI>(key: K): AuthAPI[K];","isAuthAvailable":"/**\n * Check if auth module is available (for conditional UI rendering)\n */\nexport declare const isAuthAvailable: boolean;","PasswordResetCallback":"/**\n * PasswordResetCallback - auto-overlay for password reset flow.\n * Renders nothing if @donotdev/auth not installed or no reset in progress.\n */\nexport declare const PasswordResetCallback: typeof authModule.PasswordResetCallback;","isFormStoreAvailable":"/**\n * Check if FormStore is available\n */\nexport declare const isFormStoreAvailable: boolean;","useFormStoreSafe":"/**\n * Safe access to FormStore.\n * Returns degraded state selector result if CRUD package not installed.\n *\n * @param selector - Zustand selector function\n * @returns Selected state, or degraded state selection if CRUD not available\n *\n * @example\n * ```tsx\n * const hasDirtyForms = useFormStoreSafe((state) => state.hasDirtyForms());\n * // Always safe to call - returns false when degraded\n * ```\n */\nexport declare function useFormStoreSafe<T>(selector: (state: FormStoreLike) => T): T;","AuthVisibilityState":"/** Return value of the useAuthVisibility hook. */\nexport interface AuthVisibilityState {\n /**\n * True if auth UI should be completely hidden (not initialized or not available)\n */\n shouldHide: boolean;\n /**\n * True if auth is in loading state (but UI should still be visible with spinner)\n */\n isLoading: boolean;\n /**\n * True if auth is initialized and available (ready to show UI)\n */\n isReady: boolean;\n /**\n * True if user is authenticated\n */\n isAuthenticated: boolean;\n}","useAuthVisibility":"/**\n * Hook to determine auth UI visibility and loading states\n *\n * **Visibility Rules:**\n * - Hide if `status !== 'ready' || !isAvailable` (not ready or not installed)\n * - Show with loading if `status === 'initializing'` during operations\n * - Show normal UI when `status === 'ready' && isAvailable`\n *\n * @returns AuthVisibilityState with visibility flags\n *\n * @example\n * ```typescript\n * const { shouldHide, isLoading, isReady, isAuthenticated } = useAuthVisibility();\n *\n * if (shouldHide) return null;\n *\n * if (isLoading) {\n * return <Button disabled><Spinner /></Button>;\n * }\n *\n * if (isAuthenticated) {\n * return <UserMenu />;\n * }\n *\n * return <SignInButton />;\n * ```\n */\nexport declare function useAuthVisibility(): AuthVisibilityState;","useStripeBillingSafe":"/**\n * Safe wrapper for useStripeBilling hook.\n *\n * - If @donotdev/billing installed → uses real hook\n * - If not installed → returns degraded API values\n *\n * **IMPORTANT:** For `isAvailable` to return `true`, you must pass `authState`.\n * Without auth state, billing will return `isAvailable: false` until auth status is `ready`.\n *\n * @param key - Property name to access from billing API\n * @param authState - Auth state from useAuthSafe (user, status)\n * @returns The billing API value, or degraded value if billing unavailable\n *\n * @example\n * ```typescript\n * // Get auth state first\n * const user = useAuthSafe('user');\n * const status = useAuthSafe('status'); // 'initializing' | 'ready' | 'degraded' | 'error'\n * const authState = { user, status };\n *\n * // Pass to billing\n * const checkout = useStripeBillingSafe('checkout', authState);\n * const billingStatus = useStripeBillingSafe('status', authState);\n * const isAvailable = useStripeBillingSafe('isAvailable', authState);\n * ```\n */\nexport declare function useStripeBillingSafe<K extends keyof BillingAPI>(key: K, authState?: BillingAuthState): BillingAPI[K];","isBillingAvailable":"/**\n * Check if billing module is available (for conditional UI rendering)\n */\nexport declare const isBillingAvailable: boolean;","BillingVisibilityState":"/** Return value of the useBillingVisibility hook. */\nexport interface BillingVisibilityState {\n /**\n * True if billing UI should be completely hidden (not available)\n */\n shouldHide: boolean;\n /**\n * True if billing is in loading state (but UI should still be visible with spinner)\n */\n isLoading: boolean;\n /**\n * True if billing is available (ready to show UI)\n */\n isReady: boolean;\n}","useBillingVisibility":"/**\n * Hook to determine billing UI visibility and loading states\n *\n * **Visibility Rules:**\n * - Hide if `!isAvailable` (not installed/configured)\n * - Show with loading if `status === 'initializing'` during operations\n * - Show normal UI when `isAvailable && status === 'ready'`\n *\n * @returns BillingVisibilityState with visibility flags\n *\n * @example\n * ```typescript\n * const { shouldHide, isLoading, isReady } = useBillingVisibility();\n *\n * if (shouldHide) {\n * return <FeatureDisabled featureName=\"Billing\" />;\n * }\n *\n * if (isLoading) {\n * return <Button disabled><Spinner /></Button>;\n * }\n *\n * return <BillingForm />;\n * ```\n */\nexport declare function useBillingVisibility(): BillingVisibilityState;","useCrudSafe":"/**\n * Safe wrapper for useCrud hook.\n *\n * - If @donotdev/crud installed → uses real hook (handles Firebase/consent internally)\n * - If not installed → returns degraded API values\n *\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Options including backend type and schema\n * @returns CRUD operations and state, or degraded API if crud unavailable\n *\n * @example\n * ```typescript\n * // With entity\n * const { add, update } = useCrudSafe(carEntity);\n *\n * // With collection string\n * const { get, set } = useCrudSafe('users', { schema: UserSchema });\n * ```\n */\nexport declare function useCrudSafe<T = unknown>(entityOrCollection: Entity | string, options?: UseCrudSafeOptions<T>): CrudAPI<T>;","isCrudAvailable":"/**\n * Check if CRUD module is available (for conditional UI rendering)\n */\nexport declare const isCrudAvailable: boolean;","useOAuthSafe":"/**\n * Safe wrapper for useOAuth hook.\n *\n * - If @donotdev/oauth installed → uses real hook (handles credentials/consent internally)\n * - If not installed → returns degraded API values\n *\n * @param key - Property name to access from OAuth API\n * @returns The OAuth API value, or degraded value if OAuth unavailable\n *\n * @example\n * ```typescript\n * const connect = useOAuthSafe('connect');\n * const loading = useOAuthSafe('loading');\n * const isAvailable = useOAuthSafe('isAvailable');\n * ```\n */\nexport declare function useOAuthSafe<K extends keyof OAuthAPI>(key: K): OAuthAPI[K];","isOAuthAvailable":"/**\n * Check if OAuth module is available (for conditional UI rendering)\n */\nexport declare const isOAuthAvailable: boolean;","tList":"/**\n * Renders a translated array as a List with optional icon\n *\n * Opinionated helper that reduces boilerplate for the common pattern:\n * `<List icon={<CheckCircle size={16} />} items={translateArray(t, key, count)} />`\n *\n * @param t - Translation function from useTranslation\n * @param key - Translation key prefix for the array\n * @param count - Maximum number of items to fetch\n * @param icon - Lucide icon, null for no icon, or undefined for default (CheckCircle)\n * @param size - Optional icon size (default: 16)\n * @returns ReactNode containing the List component\n *\n * @example\n * ```tsx\n * // With default icon (CheckCircle)\n * <Card content={tList(t, 'features.items', 4)} />\n *\n * // With custom icon\n * <Card content={tList(t, 'features.items', 4, Star)} />\n *\n * // Without icon (for emoji-prefixed labels like \"🚀 Kick-off\")\n * <Card content={tList(t, 'features.items', 4, null)} />\n * ```\n */\nexport declare function tList(t: TFunction, key: string, count: number, icon?: LucideIcon | null, size?: number): ReactNode;","sanitizeSvg":"/**\n * Strips known XSS vectors from an SVG string.\n *\n * @param svg - Raw SVG string (build-time or static source)\n * @returns Sanitized SVG string safe for dangerouslySetInnerHTML\n *\n * @security This function uses regex-based sanitization suitable ONLY for build-time trusted SVGs.\n * For user-uploaded or untrusted SVG content, use a dedicated sanitization library like DOMPurify.\n * Regex-based sanitization is bypassable via mutation XSS, SVG event handlers, or entity encoding.\n *\n * @example\n * ```tsx\n * <div dangerouslySetInnerHTML={{ __html: sanitizeSvg(svgContent) }} />\n * ```\n */\nexport declare function sanitizeSvg(svg: string): string;","ViteAppProviders":"/**\n * ViteAppProviders - Vite platform-specific app providers\n *\n * Clean provider hierarchy with configuration via context (no prop drilling).\n * Uses React Router v7 data router pattern (RouterProvider + createBrowserRouter).\n *\n * Provider hierarchy (outside router):\n * 1. AppConfigProvider (configuration context)\n * 2. SentryInitializer (error monitoring)\n * 3. ViteStoresInitializer (store setup)\n * 4. HelmetProvider (head management)\n * 5. NavigationProvider (RouterProvider with auto-abort)\n *\n * Provider hierarchy (inside router via RootLayout):\n * 6. QueryProviders (React Query)\n * 7. UIProviders (design system)\n * 8. AutoMetaTags (SEO)\n * 9. FrameworkReadySignal (framework initialization)\n * 10. Layout (application layout)\n * 11. ConsentBanner (cookie consent)\n * 12. PWAUpdateNotification (PWA updates)\n *\n * No favicon component: the build writes the favicon tags into index.html and every\n * prerendered page (`createViteFaviconPlugin`, `faviconHeadTags` of `@donotdev/core`).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * <ViteAppProviders\n * config={{ app: { name: 'My App' } }}\n * />\n * ```\n *\n * Note: HomePage.tsx in src/pages/ is automatically used for the root route \"/\"\n */\nexport declare function ViteAppProviders(props: AppProvidersProps): import(\"react\").JSX.Element;","NextJsAppProviders":"export declare function NextJsAppProviders(props: NextJsAppProvidersProps): import(\"react\").JSX.Element;","FontHead":"/**\n * Font preloads of `lang` and the inline `@font-face` style.\n *\n * @param props.fonts - The generated font plan (`FONTS` of `fonts.generated.ts`)\n * @param props.lang - The page language\n * @returns The `<style>` element (null when the theme uses system fonts only)\n * @throws {Error} When the plan has no entry for `lang` (the generated file is stale)\n *\n * @version 0.1.0\n * @since 0.3.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function FontHead({ fonts, lang }","FontHeadData":"/**\n * The font plan as the document head needs it (`src/app/fonts.generated.ts`).\n *\n * @version 0.1.0\n * @since 0.3.3\n * @author AMBROISE PARK Consulting\n */\nexport interface FontHeadData {\n /** Every `@font-face` of the app (web faces, then the size-matched fallback faces) */\n readonly css: string;\n /** Per app language: the first-paint font file URLs */\n readonly preloads: Readonly<Record<string, readonly string[]>>;\n}","InternalLink":"/**\n * Internal link (Next.js): renders next/link (a real `<a href>`) in the current language.\n * - `prefetch` true (default), guest: next/link's default (`auto`: static routes fully,\n * dynamic routes up to the nearest `loading.js`; production only). Guests get the\n * cached site tree, which `auto` prefetches in full.\n * - `prefetch` true, signed in: `prefetch={true}`, the full route of each visible link.\n * Signed-in visitors get the per-request session tree (`dndev-session`, dynamic), which\n * `auto` skips. Signed-in state is `useAuth('isAuthenticated')`: the request's cookie\n * snapshot on the server and in the hydration pass, the provider's once ready. The\n * anchor HTML does not depend on it (prefetch runs after mount): no hydration mismatch.\n * - `prefetch` false: no prefetch, signed in or not.\n * - Plain left click: client-side navigation, open overlays closed (same as `navigate()`).\n * Modifier / middle clicks keep the browser default (new tab). An `onClick` calling\n * `preventDefault()` cancels the navigation.\n *\n * @version 0.2.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport declare function InternalLink({ path, replace, prefetch, children, ...anchorProps }","InternalLinkProps":"/**\n * Props of `InternalLink`: an anchor to an app path, rendered as a real `<a href>`.\n *\n * @version 0.1.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport interface InternalLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {\n /** App path (`/produits`): the link uses the current language's URL */\n path: string;\n /** Replace the current history entry instead of pushing one */\n replace?: boolean;\n /**\n * Next.js: `true` (default) prefetches with next/link's default for guests and the full\n * route for signed-in visitors; `false` disables prefetching. Vite: ignored\n */\n prefetch?: boolean;\n children?: ReactNode;\n}"}
1
+ {"AuthHeader":"/**\n * Auth header component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AuthHeader: ComponentType<AuthHeaderProps>;","AuthMenu":"export declare const AuthMenu: ({ loginPath, display, \"no-tooltip\": noTooltip, customItems, className, style, }","AuthHeaderProps":"/**\n * AuthHeader - Simple, powerful authentication component for headers\n *\n * Automatically reads all configuration from `appConfig.auth` (DRY principle).\n * Accepts `display` prop for layout-specific UI control.\n *\n * Features:\n * - Lazy-loaded components for optimal performance\n * - Responsive design (icon on mobile/tablet, button with label on desktop)\n * - Industry standard patterns (dropdown for 2+ providers)\n * - Error handling via useAuth (no additional error states needed)\n * - 100% Lighthouse compatible\n * - Auto-configuration from appConfig (no props needed)\n *\n * @example\n * ```tsx\n * // Configure once in appConfig.auth\n * const APP_CONFIG = {\n * auth: {\n * loginPath: '/login', // Optional: links to login page\n * authMenuItems: [{ path: '/dashboard' }, { path: '/settings' }] // Optional: user menu routes\n * }\n * };\n *\n * // In presets - reads from appConfig automatically\n * // This component composes AuthPartnerButton and MultipleAuthProviders from @donotdev/auth.\n * // Use AuthHeader if you need a pre-built, responsive authentication component for your app's header.\n * <AuthHeader />\n *\n * // Force icon-only mode (e.g., for sidebars)\n * <AuthHeader display=\"compact\" />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface AuthHeaderProps {\n /**\n * Display - controls auth header presentation in preset layouts\n * - 'compact': Icon-only buttons\n * - 'full': Full buttons with labels\n * - 'auto': Responsive (default)\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /**\n * Button variant for the sign-in trigger.\n * @default 'outline'\n */\n variant?: (typeof BUTTON_VARIANT)[keyof typeof BUTTON_VARIANT];\n /** Optional className for styling the button */\n className?: string;\n /** Optional inline styles for the button */\n style?: CSSProperties;\n}","AuthMenuProps":"/**\n * Props for the AuthMenu component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface AuthMenuProps {\n /** Path for login (unauthenticated users). Falls back to appConfig.auth.loginPath */\n loginPath?: string;\n /**\n * Display - controls auth menu presentation in preset layouts\n * - 'compact': Icon-only button\n * - 'full': Button with label\n * - 'auto': Responsive (default)\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /** Disable tooltip */\n 'no-tooltip'?: boolean;\n /**\n * Custom menu items to add to authenticated menu.\n * Merged with items from appConfig.auth.authMenuItems.\n * Order: Profile (if configured) → authMenuItems → customItems → Delete Account → Sign Out\n */\n customItems?: AuthMenuCustomItem[];\n /** Optional className for styling the button */\n className?: string;\n /** Optional inline styles for the button */\n style?: CSSProperties;\n}","FeatureDisabled":"/**\n * FeatureDisabled - Component for displaying feature unavailable states\n *\n * Provides a consistent UI pattern for when features are disabled or unavailable.\n * Includes options for review cookies, contact support, and retry actions.\n *\n * @example\n * ```tsx\n * <FeatureDisabled\n * featureName=\"Billing\"\n * description=\"Stripe billing is not configured\"\n * showContactSupport={true}\n * showRetry={true}\n * onRetry={() => window.location.reload()}\n * />\n * ```\n *\n * @param props - FeatureDisabled component props\n * @returns React component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function FeatureDisabled({ featureName, title, description, showReviewCookies, showContactSupport, showRetry, supportEmail, onRetry, onReviewCookies, customActions, className, }","Icon":"/**\n * Icon - Unified icon component (FLEXIBLE RUNTIME COMPONENT)\n *\n * **This is the flexible runtime component** - supports Lucide components, emojis, strings, and custom ReactNode.\n *\n * **For PageMeta.icon:** Only lucide-react JSX components are supported (extracted at build time).\n * **For Icon component:** All formats are supported (resolved at runtime).\n *\n * @example\n * ```tsx\n * // Runtime usage - all formats work\n * <Icon icon=\"🚀\" /> // Emoji\n * <Icon icon=\"Rocket\" /> // Lucide name string\n * <Icon icon={<Rocket />} /> // Lucide component\n * <Icon icon={<CustomIcon />} /> // Custom component\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const Icon: ComponentType<IconProps>;","RedirectOverlay":"/**\n * RedirectOverlay - Industry-standard redirect overlay with phase progression\n *\n * Features:\n * - Phase-based progress: connecting → preparing → redirecting → timeout\n * - Cancel button appears after 10s (configurable)\n * - i18n support with operation-specific messaging\n * - Browser event handling (popstate, visibilitychange)\n * - Accessible (ARIA labels, role=\"status\")\n * - RTL-safe styling\n *\n * @example\n * ```tsx\n * // Include once in app root (layout.tsx or App.tsx)\n * import { RedirectOverlay } from '@donotdev/ui';\n *\n * function RootLayout({ children }) {\n * return (\n * <>\n * {children}\n * <RedirectOverlay />\n * </>\n * );\n * }\n *\n * // Hooks trigger it automatically\n * const checkout = useStripeBilling('checkout', authState);\n * await checkout({ priceId: 'price_123' }); // Shows overlay automatically\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function RedirectOverlay(): import(\"react\").JSX.Element | null;","ProgressBar":"/**\n * ProgressBar - A top progress bar for navigation and page transitions\n *\n * Features:\n * - Smooth progress animations\n * - Fake progress simulation for better UX\n * - Configurable duration and behavior\n * - Accessibility support\n * - Auto-hide on completion\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ProgressBar: ComponentType<ProgressBarProps>;","Skeleton":"/**\n * Skeleton - A loading placeholder component\n *\n * Features:\n * - Multiple variants for different content types\n * - Configurable dimensions via escape hatch props\n * - Accessibility support\n * - Smooth animations\n *\n * STYLING APPROACH:\n * - Prefer: <Skeleton className=\"h-4 w-[250px]\" /> (utility classes)\n * - Escape hatch: <Skeleton width={dynamicWidth} height={40} /> (when programmatic)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const Skeleton: ComponentType<SkeletonProps>;","FeatureCard":"/**\n * FeatureCard - Card wrapper with content array and routing\n *\n * Uses Card component internally. Routing via Link when href provided.\n */\ndeclare const FeatureCard: ({ icon, title, subtitle, content, href, variant, elevated, onClick, className, footer, style, clickable, maxLines, ...cardProps }","FeatureCardProps":"/** Props for the FeatureCard component. */\nexport interface FeatureCardProps extends Omit<CardProps, 'content' | 'href' | 'title' | 'subtitle' | 'children'> {\n /** Title (required) */\n title: string | ReactNode;\n /** Subtitle (required) */\n subtitle: string | ReactNode;\n /**\n * Card content - string, string[], or ReactNode.\n * For lists with icons, pass `<List icon={...} items={...} />` directly.\n */\n content?: CardContent;\n /** Route path - enables routing via Link */\n href?: string;\n /** When true, apply clickable styling (cursor, hover) even without href/onClick. Use when card is a dialog trigger. */\n clickable?: boolean;\n /**\n * Max lines for title and subtitle (each). Pass `0` for no line clamp.\n * @default 2\n */\n maxLines?: number;\n}","TechBento":"export declare function TechBento({ title, techs, cols, gap, separator, tone, align, collapsible, open, onOpenChange, defaultOpen, className, }","TechBentoProps":"/** Props for the TechBento component. */\nexport type TechBentoProps = {\n title?: string;\n techs: Array<{\n name: TechKey;\n size?: 'normal' | 'long' | 'high' | 'huge';\n variant?: CardVariant;\n }>;\n /**\n * Number of columns - fixed or responsive (same as Grid)\n * - number: fixed columns (same on all breakpoints)\n * - [mobile, tablet, laptop, desktop]: responsive columns per breakpoint\n * @default 3\n * @example 3 - always 3 columns\n * @example [1, 1, 2, 3] - 1 col mobile/tablet, 2 laptop, 3 desktop\n */\n cols?: number | ResponsiveCols;\n gap?: BentoGap;\n separator?: boolean;\n /** Tone system for background colors (matches Section/CallToAction) */\n tone?: Tone;\n /** Content alignment @default 'center' */\n align?: 'start' | 'center' | 'end';\n /** Whether the section is collapsible */\n collapsible?: boolean;\n /** Controlled open state (when collapsible) */\n open?: boolean;\n /** Callback when open state changes (when collapsible) */\n onOpenChange?: (open: boolean) => void;\n /** Default open state (uncontrolled, when collapsible) */\n defaultOpen?: boolean;\n className?: string;\n}","ConsentBanner":"/**\n * ConsentBanner - Lazy loaded consent component\n * Shows if user hasn't consented yet OR if showBanner flag is set.\n * Renders nothing (and never loads the banner chunk) when the app sets only strictly\n * necessary cookies.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function ConsentBanner(): import(\"react\").JSX.Element | null;","PageContainerVariant":"/**\n * Page container variants - semantic layout patterns\n */\nexport type PageContainerVariant = 'full' | 'standard' | 'docs' | 'narrow' | 'fixed';","PageContainer":"/**\n * PageContainer - Layout wrapper with semantic width constraints\n *\n * DnDevLayout already handles:\n * - Main padding via --content-padding\n * - Sidebar/header spacing\n * - Responsive behavior\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * PageContainer provides:\n * - Semantic width constraints without additional padding\n * - Automatic spacing system using CSS variables\n *\n */\nexport declare const PageContainer: ComponentType<PageContainerProps>;","PageConfig":"/**\n * PageConfig - Declarative per-page layout overrides\n *\n * Sets route-level overrides (preset, hideBreadcrumbs) in the theme store.\n * Cleans up on unmount (resets to defaults).\n *\n * @example\n * ```tsx\n * // In a Next.js page component:\n * export default function MyPage() {\n * return (\n * <>\n * <PageConfig hideBreadcrumbs />\n * <PageContainer>...</PageContainer>\n * </>\n * );\n * }\n * ```\n */\nexport declare function PageConfig({ hideBreadcrumbs, preset, }","CTAButton":"/**\n * CTA button definition\n */\nexport interface CTAButton {\n label: string;\n onClick: () => void;\n disabled?: boolean;\n variant?: 'default' | 'outline' | 'ghost' | 'link';\n}","GameContainerProps":"/**\n * GameContainer props\n */\nexport interface GameContainerProps {\n /** Main content area (scrollable, centered by default) */\n content: ReactNode;\n /** Optional fixed CTA button(s) at bottom - single button or array for multiple buttons */\n cta?: CTAButton | CTAButton[];\n /** Alignment variant for content area */\n align?: 'center' | 'start' | 'stretch';\n /** Justify variant for content area */\n justify?: 'center' | 'start' | 'end' | 'between';\n /** Disable ScrollArea (use plain overflow) - for interactive content */\n disableScrollArea?: boolean;\n /** Content width: 'narrow' (default, constrained) or 'full' */\n contentVariant?: 'full' | 'narrow';\n /** Additional className for content wrapper */\n contentClassName?: string;\n /** Additional className for CTA button */\n ctaClassName?: string;\n}","GameContainer":"/**\n * GameContainer - Content + CTA grid layout for game screens\n *\n * Provides scrollable content area with optional fixed CTA button at bottom.\n * Used for game sessions, onboarding flows, wizards, assessments, tutorials.\n *\n * Layout Zones:\n * - Content: Scrollable (ScrollArea), centered by default (customizable)\n * - CTA: Fixed at bottom, full-width touch target (48px)\n *\n * Default Behavior:\n * - Content is horizontally + vertically centered\n * - ScrollArea enabled for cross-browser scroll styling\n * - CTA has 16px top padding + 2px border separator\n *\n * @param {GameContainerProps} props - Component props\n * @returns {JSX.Element} GameContainer component\n *\n * @example\n * Basic usage (centered content + CTA)\n * ```tsx\n * <GameContainer\n * content={\n * <div className=\"max-w-2xl\">\n * <h1>Welcome</h1>\n * <p>Let's get started</p>\n * </div>\n * }\n * cta={{ label: 'Start', onClick: handleStart }}\n * />\n * ```\n *\n * @example\n * Full-width form (no centering)\n * ```tsx\n * <GameContainer\n * align=\"stretch\"\n * justify=\"start\"\n * content={<FullWidthForm />}\n * cta={{ label: 'Submit', onClick: handleSubmit }}\n * />\n * ```\n *\n * @example\n * Multiple CTA buttons (side by side)\n * ```tsx\n * <GameContainer\n * content={<ChallengeContent />}\n * cta={[\n * { label: 'Accept', onClick: handleAccept, variant: 'default' },\n * { label: 'Decline', onClick: handleDecline, variant: 'outline' }\n * ]}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function GameContainer({ content, cta, align, justify, disableScrollArea, contentVariant, contentClassName, ctaClassName, }","ScreenRegistry":"/**\n * Screen registry type - maps screen names to lazy import functions\n */\nexport type ScreenRegistry = Record<string, () => Promise<{\n default: ComponentType<any>;\n}","GameFlowProps":"/**\n * GameFlow props\n */\nexport interface GameFlowProps {\n /** Registry mapping screen names to lazy import functions */\n screenRegistry: ScreenRegistry;\n /** Current screen name to render */\n currentScreen: string | null;\n /** Next screen name for preloading (optional) */\n nextScreen?: string | null;\n /** Fallback component for Suspense (optional) */\n fallback?: ReactNode;\n}","GameFlow":"/**\n * GameFlow - Screen router for game/session flows\n *\n * Handles:\n * - Routing to correct screen component based on currentScreen\n * - Lazy loading of screen components\n * - Preloading of nextScreen for instant transitions\n * - h-full wrapper for proper layout filling\n * - Suspense boundaries for loading states\n *\n * @param {GameFlowProps} props - Component props\n * @param {ScreenRegistry} props.screenRegistry - Registry of screen lazy imports\n * @param {string | null} props.currentScreen - Current screen name to render\n * @param {string | null} [props.nextScreen] - Next screen name for preloading\n * @param {ReactNode} [props.fallback] - Fallback component for Suspense\n * @returns {JSX.Element | null} GameFlow component\n *\n * @example\n * ```tsx\n * <GameFlow\n * screenRegistry={screenRegistry}\n * currentScreen={currentScreen}\n * nextScreen={nextScreen}\n * fallback={<Spinner overlay />}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function GameFlow({ screenRegistry, currentScreen, nextScreen, fallback, }","AppBranding":"/**\n * AppBranding - Unified branding component\n *\n * Combines AppIcon + AppTitle with DISPLAY mode support.\n * Uses CSS container queries for AUTO mode - no JS breakpoint checks.\n *\n * @example\n * ```tsx\n * // Auto-responsive (default)\n * <AppBranding />\n *\n * // Logo only\n * <AppBranding display=\"compact\" />\n *\n * // Always show logo + title\n * <AppBranding display=\"full\" />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AppBranding: ({ display, linkToHome, className, }","AppIcon":"/**\n * AppIcon - Application icon component\n *\n * Uses logo.svg (user must provide). Reads SVG content synchronously from build-time data.\n * CSS variables (var(--primary), var(--accent)) work automatically when SVG is inlined.\n * Falls back to img tag if logo.svg is not available.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AppIcon: ({ alt, size, className }","AppTitle":"/**\n * AppTitle - Simple app title using text-base xl\n * Automatically gets app name from AppConfig if title not provided\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const AppTitle: ({ title, className, linkToHome, }","Breadcrumbs":"/**\n * Breadcrumbs component for navigation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * Automatically generates breadcrumbs from current route or accepts custom items.\n * Generated trail: home, the page's ancestors (`routeAncestors`, the chain of the\n * BreadcrumbList JSON-LD and the forms' parent path), linked, then the page, each named by\n * its route's title (`routeLabel`: `seo.title`, else `<namespace>:title`, as its\n * `<title>`); the page reads as the shown record's name (`useRecordBreadcrumb`) when its\n * last URL segment names it. A URL prefix that is no route is no crumb. Routes are the\n * build's route manifest (not auth-filtered): the server render and the browser build the\n * same trail. Renders no generated trail inside a NotFoundDocument (the 404, served for\n * any URL).\n */\ndeclare const Breadcrumbs: ComponentType<BreadcrumbsProps>;","GameTitle":"/**\n * GameTitle Component\n *\n * Renders title/subtitle when available (from themeStore), otherwise falls back to app name.\n * Used in game preset header center slot.\n *\n * Non-negotiable: This component is always rendered in the center of game header.\n *\n * @param props - GameTitle component props\n * @returns React component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const GameTitle: ({ asLink, className }","CacheSettings":"/**\n * CacheSettings - Cache settings component for clearing various caches\n *\n * Provides UI for clearing browser caches including localStorage, sessionStorage,\n * cookies, IndexedDB, and service worker caches.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function CacheSettings(): import(\"react\").JSX.Element;","DropdownNavigation":"/**\n * DropdownNavigation component - professional navigation with dropdown support\n *\n * Renders a navigation bar with dropdown menus for complex navigation structures.\n * Supports both direct links and dropdown menus with subroutes.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @param navigation - Array of navigation menu items\n * @param className - Additional CSS classes\n * @returns Rendered navigation component\n */\ndeclare const DropdownNavigation: ComponentType<DropdownNavigationProps>;","FloatingLanguageSwitcher":"/**\n * FloatingLanguageSwitcher - Professional, floating language selector\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FloatingLanguageSwitcher: ComponentType<FloatingLanguageSwitcherProps>;","HeaderMenu":"/**\n * HeaderMenu - Header controls that collapse into a hamburger\n *\n * Renders `children` inline (`display: contents`, so they sit in the parent row with\n * its gap) and a hamburger whose panel renders the same children while open. Both are\n * in the server HTML; HeaderMenu.css shows the hamburger below the laptop breakpoint\n * (1024px, the split of `useBreakpoint('isMobileOrTablet')`) and the inline controls\n * from it up. No JS breakpoint, no hydration swap: usable at every width.\n *\n * The panel is a Popover, not a DropdownMenu: menu items swallow the clicks of the\n * controls inside them and keep keyboard focus on the item wrapper, which broke\n * nested popups (AuthHeader's provider menu or dialog, LanguageSelector, an account\n * DropdownMenu). Labels are forced visible in the panel (.dndev-menu-content).\n * The panel sits just above the header, so dialogs and menus opened from it show above it.\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Inline on laptop and desktop, burger on mobile and tablet:\n * <HeaderMenu>\n * <AuthHeader />\n * <LanguageSelector />\n * <ThemeToggle />\n * </HeaderMenu>\n * ```\n */\nexport declare const HeaderMenu: ({ children, className }","HeaderNavigation":"/**\n * HeaderNavigation - DISPLAY-aware adaptive navigation component\n *\n * Uses DISPLAY prop to choose navigation strategy:\n * - COMPACT: All items in dropdown menu (HeaderMenu pattern)\n * - FULL: Inline navigation with overflow detection (DnDevNavigationMenu with overflowDetection)\n * - AUTO: Responsive (dropdown on mobile/tablet, inline on desktop)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const HeaderNavigation: ComponentType<HeaderNavigationProps>;","Notifications":"/**\n * Notifications component - notification bell with dropdown\n *\n * Features:\n * - Badge count display with proper formatting\n * - Dropdown notification list\n * - Real-time notification updates\n * - Mark as read functionality\n * - Different notification types with styling\n * - Responsive design\n * - Keyboard navigation support\n * - Loading states\n * - Empty states\n * - Time formatting for timestamps\n *\n * This component provides a complete notification system that can be\n * easily integrated into any layout header or navigation area.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param props - Notifications component props\n * @returns React component\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Notifications count={3} />\n *\n * // With full notification data\n * <Notifications\n * notifications={[\n * {\n * id: '1',\n * title: 'New message',\n * message: 'You have a new message from John',\n * type: 'info',\n * timestamp: new Date(),\n * }\n * ]}\n * onNotificationClick={handleNotificationClick}\n * />\n *\n * // Custom styling and behavior\n * <Notifications\n * count={notifications.filter(n => !n.read).length}\n * maxVisible={5}\n * onMarkAllRead={markAllAsRead}\n *\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const Notifications: ({ notifications, count, loading, onNotificationClick, onDropdownOpen, className, maxVisible, alwaysShow, size, disabled, }","SettingsMenu":"/**\n * SettingsMenu with fixed hooks order and error protection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function SettingsMenu({ variant, }","ThemeToggle":"/**\n * ThemeToggle - Theme switching component\n *\n * Allows users to switch between available themes (light, dark, system, custom).\n * Integrates with the theme store for state management.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ThemeToggle: ComponentType<ThemeToggleProps>;","FooterBranding":"/**\n * FooterBranding - Framework branding link (power move)\n *\n * Shows AMBROISE-PARK for framework's own site (donotdev.com),\n * otherwise shows DoNotDev for consumer apps.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FooterBranding: React.ComponentType<FooterBrandingProps>;","FooterCopyright":"/**\n * FooterCopyright - Copyright notice component\n *\n * Uses useTranslation internally, so it re-renders when language changes.\n * If appName not provided, reads from app config automatically.\n * Renders nothing when the app has no footer (`app.footer: null`), as DnDevFooter,\n * including in presets that show it in the sidebar.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FooterCopyright: React.ComponentType<FooterCopyrightProps>;","FooterLegalLinks":"/**\n * FooterLegalLinks - Legal links component\n *\n * Renders legal links from app.footer.legalLinks config.\n * If app not provided, reads from app config automatically.\n * Used in footer and sidebar when footer zone is hidden.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const FooterLegalLinks: React.ComponentType<FooterLegalLinksProps>;","EntityDisplayRenderer":"/**\n * EntityDisplayRenderer - Automatically fetches and displays entity data\n *\n * Features:\n * - Reactive data fetching using useCrudDoc (stays in sync with edits)\n * - Loading state handling\n * - Error handling\n * - Automatic field rendering (respects visibility rules)\n * - Full i18n support\n * - No form/submit buttons - pure read-only display\n *\n * @example\n * ```tsx\n * <EntityDisplayRenderer entity={carEntity} id={carId} />\n * ```\n */\nexport declare function EntityDisplayRenderer<T extends EntityRecord = EntityRecord>({ entity, id, t, className, loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }","EntityList":"/**\n * Entity List Component - Table view for admin/internal operations\n *\n * Features:\n * - Filters section (collapsible): closed unless filters are active (e.g. from the URL)\n * - Results section with the search / refresh / add toolbar and the DataTable\n * - Excel-like table display with formatted values\n * - Open-link icon per row, bulk select, bulk delete of the checked rows\n * - Auto-routing when handlers not provided\n * - With `parent`, `editable` (default) and an edit form open on that record:\n * joined to the form (`useChildRows`), saved by its Save\n */\nexport declare function EntityList(props: EntityListProps): import(\"react\").JSX.Element | null;","EntityCardList":"/**\n * Entity Card List Component - Card grid view for public/user-facing browsing\n *\n * Features:\n * - Responsive card grid layout\n * - Image + key fields display\n * - Click card to navigate to detail\n * - Simple formatted text display (labels + values)\n * - Empty state handling\n * - Auto-routing when handler not provided\n * - Opt-in feed rendering (`pageSize`): the first `pageSize` cards render (server HTML\n * included), `pageSize` more are added as the end of the grid nears the viewport,\n * until every card is shown. Without `pageSize`, every card renders at once.\n */\nexport declare function EntityCardList({ entity, basePath, onClick, cols, pageSize, staleTime, // 30 minutes default cache\nqueryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }","EntityFormRenderer":"/**\n * EntityFormRenderer - public API.\n * Applies instanceKey as React key on the inner component for clean state isolation\n * when navigating between entities on the same route (e.g. /cars/:id).\n */\nexport declare function EntityFormRenderer<E extends AnyEntity, Op extends FieldOperation = FieldOperation>(props: EntityFormRendererProps<E, Op>): import(\"react\").JSX.Element;","EntityRecommendations":"/**\n * Displays a grid of related entity cards.\n * Uses useCrudCardList (listCard schema) so cards render identically to EntityCardList.\n *\n * **Title resolution (i18n):**\n * 1. `title` prop — if provided, used as-is (pre-translated string)\n * 2. `recommendations.title` in entity namespace — consumer override\n * 3. `recommendations.title` in `crud` namespace — framework default (\"You may also like\")\n *\n * Consumers override by adding to their entity translation file:\n * ```json\n * { \"recommendations\": { \"title\": \"Similar Apartments\" } }\n * ```\n *\n * @example\n * ```tsx\n * // Auto-translated title (entity namespace → crud fallback)\n * <EntityRecommendations\n * entity={apartmentEntity}\n * queryOptions={{\n * where: [\n * { field: 'district_code', operator: 'eq', value: current.district_code },\n * { field: 'id', operator: 'neq', value: current.id },\n * ],\n * limit: 3,\n * }}\n * />\n *\n * // Explicit title override\n * <EntityRecommendations\n * entity={apartmentEntity}\n * title=\"Nearby Apartments\"\n * queryOptions={...}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.15\n * @author AMBROISE PARK Consulting\n */\nexport declare function EntityRecommendations({ entity, queryOptions, title, basePath, cols, tone, className, }","EntityWorkflow":"/**\n * EntityWorkflow — renders a multi-step entity workflow.\n *\n * Default mode: auto-renders Stepper + form + navigation buttons.\n * Custom mode: pass a render prop as children for full control.\n */\nexport declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }","EntityWorkflowProps":"/** Props for EntityWorkflow */\nexport interface EntityWorkflowProps {\n /** Workflow configuration from defineWorkflow() */\n workflow: WorkflowConfig;\n /** Callback when all steps are completed */\n onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;\n /** Callback when step changes */\n onStepChange?: (fromIndex: number, toIndex: number) => void;\n /** Default values to pre-fill across steps */\n defaultValues?: Record<string, unknown>;\n /** Viewer role for form rendering */\n viewerRole?: string;\n /** Render prop for custom layout (receives workflow state) */\n children?: (wf: EntityWorkflowReturn) => ReactNode;\n /** Additional CSS class */\n className?: string;\n}","Form":"/**\n * Form provider component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getErrors, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }","FormItem":"/**\n * Form item component\n *\n * Container component for form fields with spacing and layout.\n *\n * @param {HTMLAttributes<HTMLDivElement>} props - Component props\n * @returns {JSX.Element} Form item component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormItem: ({ className, children, ...props }","FormLabel":"/**\n * Form label component\n *\n * Renders a label for a form field with error state styling.\n *\n * @param {ComponentProps<typeof Label>} props - Component props\n * @returns {JSX.Element | null} Form label component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormLabel: ({ className, ...props }","FormControl":"/**\n * Form control component\n *\n * Wraps form input components with proper ARIA attributes.\n *\n * @param {ComponentProps<typeof Slot>} props - Component props\n * @returns {JSX.Element | null} Form control component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormControl: ({ ...props }","FormDescription":"/**\n * Form description component\n *\n * Renders descriptive text for a form field.\n *\n * @param {HTMLAttributes<HTMLParagraphElement>} props - Component props\n * @returns {JSX.Element | null} Form description component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormDescription: ({ className, ...props }","FormMessage":"/**\n * Form message component\n *\n * Renders error or custom messages for a form field.\n *\n * @param {HTMLAttributes<HTMLParagraphElement>} props - Component props\n * @returns {JSX.Element | null} Form message component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormMessage: ({ className, children, ...props }","FormField":"/**\n * Form field component\n *\n * Wraps a form field with context and controller for react-hook-form integration.\n *\n * @param {ControllerProps<TFieldValues, TName>} props - Controller props\n * @returns {JSX.Element} Form field component\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }","useFormField":"/**\n * Hook for accessing form field context\n *\n * Returns form field state and IDs for form components.\n *\n * @returns {Object | null} Form field context with IDs and state\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useFormField: () => {\n invalid: boolean;\n isDirty: boolean;\n isTouched: boolean;\n isValidating: boolean;\n error?: import(\"react-hook-form\").FieldError | undefined;\n id: string;\n name: string;\n formItemId: string;\n formDescriptionId: string;\n formMessageId: string;\n}","TechLogo":"/**\n * Tech logo entry with SVG data URI and metadata\n */\nexport type TechLogo = {\n /** Data URI for the SVG */\n svg: string;\n /** Brand color (hex) */\n color: string;\n /** Display name */\n name: string;\n}","TechKey":"/**\n * Available tech logo keys\n */\nexport type TechKey = 'bun' | 'typescript' | 'react' | 'vite' | 'nextjs' | 'nodejs' | 'firebase' | 'supabase' | 'vercel' | 'stripe' | 'valibot';","techLogos":"/**\n * Tech logos collection with data URIs and brand colors\n *\n * @example\n * ```tsx\n * import { techLogos } from '@donotdev/ui';\n *\n * <img src={techLogos.react.svg} alt={techLogos.react.name} />\n * ```\n */\nexport declare const techLogos: Record<TechKey, TechLogo>;","AuthReturnTo":"/**\n * AuthReturnTo - Restores navigation after OAuth redirect.\n *\n * OAuth always lands on `/` (origin). This component watches for sign-in,\n * reads the saved returnTo path, and navigates back. Runs once per sign-in.\n *\n * Also shows a warning toast when the user was redirected by the auth guard\n * (flag set by useNavigate, consumed here on mount of the landing page).\n *\n * @component\n */\nexport declare function AuthReturnTo(): null;","SignedInRedirect":"/**\n * SignedInRedirect - sends signed-in visitors of a page to `to` (replace).\n *\n * Renders the page for everyone (server render, signed-out visitors). Once the auth\n * user is known, navigates to `to` unless a return-to is pending (`?returnTo=` or\n * the saved `dndev.auth.returnTo`): AuthReturnTo takes the visitor there instead.\n * Generated route wrappers (Next) and createAppRouter (Vite) mount it for pages whose\n * PageMeta sets `signedInRedirect`.\n *\n * @component\n * @example\n * ```tsx\n * <SignedInRedirect to=\"/catalogue\"><HomePage /></SignedInRedirect>\n * ```\n */\nexport declare function SignedInRedirect({ to, children }","SignedInRedirectProps":"/**\n * Props for SignedInRedirect\n */\nexport interface SignedInRedirectProps {\n /** App path signed-in visitors are sent to (PageMeta `signedInRedirect`) */\n to: string;\n /** The page, rendered for everyone until the redirect happens */\n children: ReactNode;\n}","GoToWrapper":"/**\n * GoToWrapper - Keyboard listener + lazy dialog\n *\n * Performance:\n * - Zero code loaded until dialog opens\n * - Cmd+K listener always active\n * - Dialog lazy-loaded on first open\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const GoToWrapper: () => import(\"react\").JSX.Element;","GoToInput":"declare const GoToInput: () => import(\"react\").JSX.Element;","NotFoundPage":"function NotFoundPage({ showRequestedPath, }","NotFoundDocument":"/**\n * Wraps the providers of a 404 document. Rendered by the framework's generated 404\n * pages; an app renders it only in a 404 page of its own.\n *\n * @example\n * ```tsx\n * <NotFoundDocument>\n * <ClientLayout serverCookies=\"\" acceptLanguage={null}>\n * <NotFoundPage showRequestedPath={false} />\n * </ClientLayout>\n * </NotFoundDocument>\n * ```\n *\n * @version 0.1.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport declare function NotFoundDocument({ children }","useIsNotFoundDocument":"/**\n * Whether the render is inside a NotFoundDocument (the 404 document, served for\n * any unknown URL): URL-derived output must be omitted there.\n *\n * @returns `true` inside a NotFoundDocument\n *\n * @version 0.1.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport declare function useIsNotFoundDocument(): boolean;","useNavigate":"/**\n * Navigation hook. Auth is handled by AuthGuard (cold-load redirect).\n * Protected routes are hidden from unauthorized users via useAccessibleRoutes.\n * App paths stay in the current URL's language (`/produits` → `/en/produits` on an\n * English page); a path with an explicit language prefix keeps it.\n *\n * Returns the navigate function itself, so `const navigate = useNavigate()` works as\n * before. It also carries `navigate` and `pending`, for `const { navigate, pending } =\n * useNavigate()`: the router call runs in a React transition and `pending` stays true\n * until the App Router has rendered the new route. Use it for `loading` on the button\n * that navigates. Overlays still close at the click (`closeAll`).\n *\n * @version 0.4.0\n * @since 0.0.1\n */\nexport declare function useNavigate(): Navigate;","useBack":"export declare function useBack(): () => void;","useRefresh":"export declare function useRefresh(): () => void;","usePrefetch":"export declare function usePrefetch(): (to: string) => void;","useLocation":"/**\n * Current location, route-relative: `pathname` has no language prefix (`/en/produits`\n * → `/produits`), so route matching, breadcrumbs and guards see app paths.\n *\n * Reads the query string (`search`): in a cached (static) render that moves the\n * render to the browser up to the nearest Suspense boundary. Use `useRoutePath()`\n * when only the path is needed.\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useLocation(): {\n pathname: string;\n search: string | undefined;\n hash: string;\n state: null;\n}","useRoutePath":"/**\n * Route path of the current URL: the pathname without its language prefix\n * (`/en/produits` → `/produits`). Reads the pathname only: safe in cached (static)\n * renders, where reading the query string (`useLocation().search`,\n * `useSearchParams`) moves the render to the browser up to the nearest Suspense\n * boundary. Use it whenever the query string is not needed. The server render of a\n * per-request page reads its internal pathname (`/<lang>/dndev-session/…`): dropped here, so\n * the server and the browser see the same path. Under Next `trailingSlash: true` the URL\n * ends with `/` (`/en/produits/`): the route path does not (`/produits`), the form of the\n * route mapping.\n *\n * @returns Route path, always starting with `/`, never ending with `/` (except the root)\n *\n * @example\n * ```tsx\n * const path = useRoutePath();\n * const active = path === '/produits';\n * ```\n *\n * @version 0.1.1\n * @since 0.2.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function useRoutePath(): string;","useParams":"export declare function useParams(): Record<string, string | string[] | undefined>;","useRouteParam":"/**\n * Safely extract a route parameter as a string\n *\n * Handles the fact that useParams can return string | string[] | undefined.\n * For standard path parameters (not catch-all routes), this will always be a string.\n *\n * @param paramName - Name of the route parameter\n * @returns The parameter value as a string, or undefined if not present\n *\n * @example\n * ```tsx\n * // Route: /product/:id\n * const id = useRouteParam('id'); // string | undefined\n * if (!id) return <NotFound />;\n * ```\n */\nexport declare function useRouteParam(paramName: string): string | undefined;","useSearchParams":"/**\n * Get current URL search parameters (read-only).\n * Returns a ReadonlyURLSearchParams instance directly (NOT a tuple).\n *\n * To modify search params, use `useNavigate()` with a query string\n * or `useQueryParams()` for a key-value API with defaults.\n *\n * @returns ReadonlyURLSearchParams instance with `.get()`, `.has()`, `.getAll()`, etc.\n *\n * @example\n * ```tsx\n * const searchParams = useSearchParams();\n * const page = searchParams.get('page');\n * const sort = searchParams.get('sort');\n * ```\n */\nexport declare function useSearchParams(): ReturnType<typeof useNextSearchParams>;","useMatch":"/**\n * Match the current route path (language prefix stripped) against a pattern.\n *\n * @version 0.2.0\n * @since 0.0.1\n */\nexport declare function useMatch(pattern: string): {\n params: Record<string, string>;\n pathname: string;\n pattern: string;\n}","useQueryParams":"/**\n * Platform-agnostic useQueryParams hook\n *\n * Provides easy access to query parameters with setter functionality\n *\n * @returns Object with query parameters and setter functions\n *\n * @example\n * ```tsx\n * const { query, setQuery, removeQuery } = useQueryParams();\n *\n * // Get a query parameter\n * const page = query.get('page');\n *\n * // Set a query parameter\n * setQuery('page', '2');\n *\n * // Remove a query parameter\n * removeQuery('page');\n * ```\n */\nexport declare function useQueryParams(): {\n query: import(\"next/navigation\").ReadonlyURLSearchParams;\n setQuery: (key: string, value: string) => void;\n removeQuery: (key: string) => void;\n clearQueries: () => void;\n}","useRedirectGuard":"/**\n * Hook that checks if redirect should happen before render\n *\n * Prevents content flash by determining redirect state synchronously.\n * Returns safe defaults on server (SSR-safe). Reads the query string from\n * `window.location` when it redirects, not through `useSearchParams`: a cached\n * (static) page using it keeps its server-rendered HTML.\n *\n * @param options - Redirect guard configuration\n * @returns Redirect guard state\n */\nexport declare function useRedirectGuard(options?: RedirectGuardOptions): RedirectGuardResult;","useLocalizedPath":"/**\n * Localize app paths in the current URL's language, for `href`s built outside `<Link>`.\n * `<Link path>` and `navigate()` already do it.\n *\n * @returns `(path) => url`: `/produits` → `/en/produits` on an English page\n *\n * @example\n * ```tsx\n * const localize = useLocalizedPath();\n * <a href={localize('/produits')}>…</a>\n * ```\n *\n * @version 0.1.0\n * @since 0.2.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function useLocalizedPath(): (path: string) => string;","useUrlLanguage":"/**\n * Language of the current URL: its prefix, else the default language.\n *\n * @returns Language code (`/en/produits` → `en`)\n *\n * @version 0.1.0\n * @since 0.2.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function useUrlLanguage(): string;","Navigate":"/**\n * What `useNavigate()` returns: the navigate function, also carrying itself as\n * `navigate` and the transition's `pending` (true until the new route has rendered).\n */\nexport type Navigate = NavigateFunction & {\n navigate: NavigateFunction;\n pending: boolean;\n}","NavigateFunction":"/** Navigates to an app path, or `'back'`. */\nexport type NavigateFunction = (path: string, options?: NavigateOptions) => void;","NavigateOptions":"/**\n * Navigation options for useNavigate hook\n */\nexport interface NavigateOptions {\n /** Replace current history entry instead of pushing new one */\n replace?: boolean;\n /** Preserve scroll position (default: false, scrolls to top) */\n preserveScroll?: boolean;\n}","RedirectGuardOptions":"/** Configuration options for the redirect guard hook. */\nexport interface RedirectGuardOptions {\n /** Auth configuration for this route */\n auth?: PageAuth | false;\n /** Custom redirect target (overrides auth config defaults) */\n redirectTo?: string | null;\n /** Custom condition function to check if redirect should happen */\n condition?: (user: any, status: FeatureStatus) => boolean;\n}","RedirectGuardResult":"/** Return value of the useRedirectGuard hook. */\nexport interface RedirectGuardResult {\n /** Whether redirect should happen */\n shouldRedirect: boolean;\n /** Target path for redirect, or null if no redirect */\n redirectTo: string | null;\n /** Whether auth state is still being checked */\n isChecking: boolean;\n}","LinkProps":"/**\n * Link component props interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n path: string;\n replace?: boolean;\n /**\n * Next.js: internal links render next/link, prefetched with its default behaviour for\n * guests and in full for signed-in visitors (their pages render per request, which the\n * default skips); `false` disables prefetching. Vite: no effect.\n * @default true\n */\n prefetch?: boolean;\n children?: ReactNode;\n /** Icon component or string name */\n icon?: string | ReactNode;\n /** Place icon after content instead of before */\n iconEnd?: boolean;\n /** Label text (rendered as span if provided) */\n label?: string;\n 'aria-label'?: string;\n 'aria-describedby'?: string;\n}","Link":"/**\n * Link component. Internal paths are app paths (`/produits`): the rendered `href` and\n * the navigation use the current language's URL (`/en/produits` on an English page,\n * unchanged in the default language or a one-language app). Internal links render\n * next/link on Next.js (route prefetch, client-side navigation) and an `<a href>`\n * navigated by react-router on Vite; both output a real `<a href>`.\n *\n * @version 0.3.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const Link: ComponentType<LinkProps>;","AuthGuard":"/**\n * AuthGuard - cold-load redirect safety net\n *\n * For SPA navigation, auth is intercepted in useNavigate (before page mount).\n * This component handles the cold-load case: user pastes a protected URL directly.\n * It redirects to authRoute, saves returnTo, and AuthReturnTo handles the redirect back.\n * A user who signs out (or deletes the account) on the page is sent to authRoute\n * without a returnTo or the guard toast: they left on purpose, and a saved returnTo\n * would send the next sign-in (or the sign-in that ends a sign-up) back here.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function AuthGuard({ auth, children, fallback: Fallback, }","useCanNavigate":"/**\n * Hook to check if current user can navigate to a route with given auth config\n * ONLY uses store - single source of truth!\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useCanNavigate(auth: PageAuth | false): boolean;","useUserRole":"/**\n * Hook to get current user's role - directly from store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useUserRole(): typeof USER_ROLES.GUEST | typeof USER_ROLES.USER | typeof USER_ROLES.ADMIN;","useHasRole":"/**\n * Hook to check specific role - directly from store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useHasRole(role: typeof USER_ROLES.GUEST | typeof USER_ROLES.USER | typeof USER_ROLES.ADMIN): boolean;","useAuthState":"/**\n * Hook to get all auth state for debugging\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function useAuthState(): {\n authenticated: boolean;\n role: string | undefined;\n tier: string;\n loading: boolean;\n userId: string | undefined;\n}","withAuth":"/**\n * HOC to wrap components with auth protection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function withAuth<P extends object>(Component: ComponentType<P>, auth: PageAuth | false): (props: P) => import(\"react\").JSX.Element;","createAuthConfig":"/**\n * Utility to create auth configs\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const createAuthConfig: {\n /** No authentication required */\n public: () => false;\n /** Basic authentication required */\n required: () => PageAuth;\n /** User role (any authenticated user) */\n user: () => PageAuth;\n /** Admin role (Firebase custom claim isAdmin: true) */\n admin: () => PageAuth;\n /** Tier-based authentication */\n tier: (tier: (typeof SUBSCRIPTION_TIERS)[keyof typeof SUBSCRIPTION_TIERS]) => PageAuth;\n /** Pro tier */\n pro: () => PageAuth;\n /** Premium tier */\n premium: () => PageAuth;\n /** Admin with pro tier requirement */\n adminPro: () => PageAuth;\n /** Custom validation */\n custom: (validate: (role: string, tier: string) => boolean) => PageAuth;\n}","AuthGuardFallback":"/**\n * AuthGuardFallback - Shows login options when users hit protected routes\n *\n * Instead of redirecting to a separate login page, this component shows\n * the authentication options directly on the protected route, providing\n * better UX and keeping users in context.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function AuthGuardFallback({ title, description, showBackButton, onBack, className, }","GoToProps":"/** Props for the GoTo command palette trigger. */\nexport interface GoToProps {\n /**\n * Display - controls button presentation\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /** Additional CSS class */\n className?: string;\n /** Optional callback called after opening command dialog (e.g., to close parent dropdown) */\n onOpen?: () => void;\n}","GoTo":"export declare const GoTo: ({ display, className, onOpen, }","DnDevNavigationMenuProps":"/** Props for the DnDevNavigationMenu component. */\nexport interface DnDevNavigationMenuProps {\n /** Routes to display (optional - auto-fetches if not provided) */\n routes?: NavigationItem[];\n /** Vertical orientation (for sidebars) - defaults to horizontal */\n vertical?: boolean;\n /** Display mode - COMPACT (icon-only), FULL (icon+label), AUTO (CSS-driven) */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /** Enable overflow detection with \"More\" dropdown (for headers) */\n overflowDetection?: boolean;\n /** Whether to show icons */\n showIcons?: boolean;\n /** Additional CSS classes */\n className?: string;\n /** Inline styles */\n style?: React.CSSProperties;\n}","DnDevNavigationMenu":"/**\n * DnDevNavigationMenu - Universal navigation menu component\n *\n * Smart navigation menu with defaults:\n * - Auto-fetches routes if not provided (smart default, auth-reactive)\n * - Resolves icons (always shows icons with LinkIcon fallback)\n * - Injects routing-aware Link component\n * - 48px buttons/icons when vertical (sidebar standard)\n * - Optional overflow detection with \"More\" dropdown (for headers)\n *\n * Works for sidebars, headers, dropdowns, anywhere navigation is needed.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Sidebar - auto-fetches routes (smart default, CSS-driven collapse)\n * <DnDevNavigationMenu vertical display={DISPLAY.AUTO} />\n *\n * // Header with overflow detection\n * <DnDevNavigationMenu overflowDetection showIcons={false} />\n *\n * // Custom routes\n * <DnDevNavigationMenu routes={customRoutes} vertical />\n * ```\n */\nexport declare const DnDevNavigationMenu: ComponentType<DnDevNavigationMenuProps>;","NavigationItem":"/**\n * Enhanced navigation item interface for UI components\n */\nexport interface NavigationItem extends NavigationRoute {\n /** Whether this item is currently active based on current route */\n isActive: boolean;\n /** Whether this item has child routes */\n hasChildren: boolean;\n /** Nested child navigation items */\n children?: NavigationItem[];\n}","useNavigationItems":"/**\n * Smart navigation hook with auth filtering\n *\n * Use this for UI menus, sidebars, and navigation components that should\n * only show routes the user can access.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Array of navigation items filtered by auth state\n *\n * @example\n * ```tsx\n * function SidebarMenu() {\n * const menuItems = useNavigationItems();\n * return <nav>{menuItems.map(item => <MenuItem key={item.path} item={item} />)}</nav>;\n * }\n * ```\n */\nexport declare function useNavigationItems(): NavigationItem[];","useNavigationRoute":"/**\n * Resolves a single navigation item from the store by path.\n *\n * Returns `undefined` if the path is not registered or the user lacks access.\n * Use this to compose a standalone Button-style nav link without reaching for\n * a full NavigationMenu.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * const route = useNavigationRoute('/pricing');\n * if (!route) return null;\n * return (\n * <Button\n * variant=\"ghost\"\n * display={DISPLAY.AUTO}\n * icon={<Icon icon={route.icon} fallback={LinkIcon} />}\n * render={({ children, ...props }) => (\n * <Link path={route.path} {...props}>{children}</Link>\n * )}\n * >\n * {route.label}\n * </Button>\n * );\n * ```\n */\nexport declare function useNavigationRoute(path: string): NavigationItem | undefined;","useGoTo":"/**\n * Hook for navigation with favorites and recents\n * Command component handles search/filtering\n */\nexport declare const useGoTo: () => {\n navigationItems: import(\"./useNavigation\").NavigationItem[];\n favoriteItems: import(\"./useNavigation\").NavigationItem[];\n recentItems: import(\"./useNavigation\").NavigationItem[];\n toggleFavorite: (path: string) => void;\n isFavorite: (path: string) => boolean;\n navigateToItem: (path: string) => void;\n}","layoutClasses":"/**\n * @fileoverview Layout constants\n * @description Layout component class names and CSS selectors\n * Used for IDE autocomplete and type safety\n *\n * Note: CSS uses semantic HTML selectors with role attributes for scoping:\n * - `header[role='banner']` - not `.header` or `.dndev-header`\n * - `main[role='main']` - not `.main` or `.dndev-main`\n * - `footer[role='contentinfo']` - not `.footer` or `.dndev-footer`\n * - `aside[role='navigation'].sidebar` - uses `.sidebar` class but scoped by role\n *\n * Class names are organizational only. CSS targets by element+role for semantic scoping.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const layoutClasses: {\n readonly layoutContainer: \"dndev-layout\";\n readonly sidebar: \"sidebar\";\n readonly sidebarTop: \"sidebar-top\";\n readonly sidebarContent: \"sidebar-content\";\n readonly sidebarBottom: \"sidebar-bottom\";\n readonly sidebarResizeHandle: \"dndev-sidebar-resize-handle\";\n readonly header: \"header\";\n readonly main: \"main\";\n readonly footer: \"footer\";\n readonly container: \"dndev-container\";\n readonly pageContainer: \"dndev-container\";\n readonly breadcrumbsContainer: \"breadcrumbs-container\";\n}","layoutUtilities":"/**\n * Layout utility class names.\n * These are direct CSS class names that map to CSS variables (e.g., h-header → var(--header-height)).\n *\n * Framework components use these CSS classes directly.\n * These are exported for:\n * - Direct use in consumer apps\n * - IDE autocomplete\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const layoutUtilities: {\n readonly zHeader: \"dndev-z-header\";\n readonly zSidebar: \"dndev-z-sidebar\";\n readonly zOverlay: \"dndev-z-overlay\";\n readonly zModal: \"dndev-z-modal\";\n readonly zTooltip: \"dndev-z-tooltip\";\n readonly zToast: \"dndev-z-toast\";\n}","allLayoutClasses":"/**\n * Combined export of all layout classes and utilities\n * For consumer apps\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const allLayoutClasses: {\n readonly zHeader: \"dndev-z-header\";\n readonly zSidebar: \"dndev-z-sidebar\";\n readonly zOverlay: \"dndev-z-overlay\";\n readonly zModal: \"dndev-z-modal\";\n readonly zTooltip: \"dndev-z-tooltip\";\n readonly zToast: \"dndev-z-toast\";\n readonly layoutContainer: \"dndev-layout\";\n readonly sidebar: \"sidebar\";\n readonly sidebarTop: \"sidebar-top\";\n readonly sidebarContent: \"sidebar-content\";\n readonly sidebarBottom: \"sidebar-bottom\";\n readonly sidebarResizeHandle: \"dndev-sidebar-resize-handle\";\n readonly header: \"header\";\n readonly main: \"main\";\n readonly footer: \"footer\";\n readonly container: \"dndev-container\";\n readonly pageContainer: \"dndev-container\";\n readonly breadcrumbsContainer: \"breadcrumbs-container\";\n}","layoutVariables":"/**\n * Layout CSS custom property names for programmatic access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const layoutVariables: {\n readonly headerHeight: \"--header-height\";\n readonly headerPadding: \"--header-padding\";\n readonly headerIconSize: \"--header-icon-size\";\n readonly headerLogoMaxHeight: \"--header-logo-max-height\";\n readonly sidebarWidth: \"--sidebar-width\";\n readonly sidebarPadding: \"--sidebar-padding\";\n readonly mainPadding: \"--main-padding\";\n readonly mainMaxWidth: \"--main-max-width\";\n readonly contentWidth: \"--content-width\";\n readonly contentPadding: \"--content-padding\";\n readonly footerHeight: \"--footer-height\";\n readonly footerPadding: \"--footer-padding\";\n readonly zHeader: \"--z-header\";\n readonly zSidebar: \"--z-sidebar\";\n readonly zFooter: \"--z-footer\";\n readonly zOverlay: \"--z-overlay\";\n readonly zModal: \"--z-modal\";\n readonly zTooltip: \"--z-tooltip\";\n readonly zToast: \"--z-toast\";\n}","cssVariables":"/**\n * CSS variable exports\n * Exports CSS variable names for use in TypeScript\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare const cssVariables: {\n readonly headerHeight: \"--header-height\";\n readonly headerPadding: \"--header-padding\";\n readonly logoSize: \"--logo-size\";\n readonly sidebarWidth: \"--sidebar-width\";\n readonly sidebarPadding: \"--sidebar-padding\";\n readonly footerHeight: \"--footer-height\";\n readonly footerPadding: \"--footer-padding\";\n readonly layoutGap: \"--layout-gap\";\n readonly sectionGap: \"--gap-lg\";\n readonly contentGap: \"--content-gap\";\n readonly zHeader: \"--z-header\";\n readonly zSidebar: \"--z-sidebar\";\n readonly zFooter: \"--z-footer\";\n readonly zModal: \"--z-modal\";\n readonly zTooltip: \"--z-tooltip\";\n}","CssVariable":"/**\n * CSS variable type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport type CssVariable = keyof typeof cssVariables;","AssetFormats":"/**\n * Asset formats interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport interface AssetFormats {\n svg?: string;\n png?: string;\n webp?: string;\n avif?: string;\n}","AssetResolver":"/**\n * Modern asset resolution with format preference and browser capability detection\n * Follows Next.js Image optimization patterns\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare class AssetResolver {\n private static cache;\n /**\n * Check if browser supports modern image formats\n */\n static getBrowserSupport(): BrowserSupport;\n /**\n * Recursively extract all string values from nested object/array structure\n */\n private static extractStringValues;\n /**\n * Whether the build-time asset manifest lists `path` (any string in its nested objects\n * and arrays). The server render and the browser read the same manifest\n * ({@link getAssetManifest}), so they answer the same and the HTML hydrates.\n */\n static assetExists(path: string): boolean;\n /**\n * The build-time asset manifest (`getDndevConfig().assets.mapping`), or null before the\n * generated asset config ran. Read on the server too: the app's generated config sets it\n * on `globalThis` at module load in the Next SSR process (`src/config/dndev-config-asset.js`,\n * imported first by `ClientLayout`) and in the browser (same file on Next, the Vite\n * assets virtual module), so every resolver gives the server render and the hydration\n * pass the same paths.\n */\n static getAssetManifest(): AssetManifest | null;\n /**\n * Get logo SVG content for inline rendering\n * Works in both CSR and SSR (globalThis available in both contexts)\n * @returns {string | null} SVG content or null if not available\n */\n static getLogoSvgContent(): string | null;\n /**\n * Resolve logo path\n * Rule: Use manifest optimal if available, otherwise /logo.svg (user must provide).\n * Cached once the manifest is read (the server process keeps the cache across requests,\n * so a resolution made before the generated config ran is not kept).\n */\n static resolveLogo(customPath?: string): string;\n /**\n * Direct asset existence check for development\n * More reliable than the build-time detection\n *\n * **Limitation:** This is a synchronous heuristic that always returns true\n * when `new Image()` doesn't throw. It does NOT wait for the image to load,\n * so it cannot detect 404s. A proper async check would require returning a\n * Promise<boolean> via Image.onload/onerror, but that would change the\n * synchronous contract used by resolveLogo/resolveFaviconSet.\n */\n private static directAssetCheck;\n /**\n * Resolve complete favicon set: `resolveFaviconFiles` (`@donotdev/core`) over the\n * build-time manifest ({@link assetExists}). Same set on the server and in the browser\n * (both read the manifest); cached once the manifest is read.\n */\n static resolveFaviconSet(): FaviconSet;\n /**\n * Resolve optimal favicon for basic usage\n */\n static resolveFavicon(): string;\n /**\n * Clear asset resolution cache\n * Useful when assets change during development\n */\n static clearCache(): void;\n /**\n * Get debug information about detected assets\n */\n static getDebugInfo(): {\n browserSupport: BrowserSupport;\n detectedAssets: Record<string, any> | null | undefined;\n assetManifest: AssetManifest | null;\n cache: {\n [k: string]: any;\n };\n };\n}","resolveLogo":"/**\n * Utility function for logo resolution\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function resolveLogo(customPath?: string): string;","resolveFaviconSet":"/**\n * Utility function for favicon resolution\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\nexport declare function resolveFaviconSet(): FaviconSet;","useAuthSafe":"/**\n * Safe wrapper for useAuth hook.\n *\n * - If @donotdev/auth installed → uses real hook (handles Firebase/consent internally)\n * - If not installed → returns degraded API values\n *\n * @param key - Property name to access from auth API\n * @returns The auth API value, or degraded value if auth unavailable\n *\n * @example\n * ```typescript\n * const user = useAuthSafe('user');\n * const signIn = useAuthSafe('signInWithEmail');\n * const isAvailable = useAuthSafe('isAvailable');\n * ```\n */\nexport declare function useAuthSafe<K extends keyof AuthAPI>(key: K): AuthAPI[K];","isAuthAvailable":"/**\n * Check if auth module is available (for conditional UI rendering)\n */\nexport declare const isAuthAvailable: boolean;","PasswordResetCallback":"/**\n * PasswordResetCallback - auto-overlay for password reset flow.\n * Renders nothing if @donotdev/auth not installed or no reset in progress.\n */\nexport declare const PasswordResetCallback: typeof authModule.PasswordResetCallback;","isFormStoreAvailable":"/**\n * Check if FormStore is available\n */\nexport declare const isFormStoreAvailable: boolean;","useFormStoreSafe":"/**\n * Safe access to FormStore.\n * Returns degraded state selector result if CRUD package not installed.\n *\n * @param selector - Zustand selector function\n * @returns Selected state, or degraded state selection if CRUD not available\n *\n * @example\n * ```tsx\n * const hasDirtyForms = useFormStoreSafe((state) => state.hasDirtyForms());\n * // Always safe to call - returns false when degraded\n * ```\n */\nexport declare function useFormStoreSafe<T>(selector: (state: FormStoreLike) => T): T;","AuthVisibilityState":"/** Return value of the useAuthVisibility hook. */\nexport interface AuthVisibilityState {\n /**\n * True if auth UI should be completely hidden (not initialized or not available)\n */\n shouldHide: boolean;\n /**\n * True if auth is in loading state (but UI should still be visible with spinner)\n */\n isLoading: boolean;\n /**\n * True if auth is initialized and available (ready to show UI)\n */\n isReady: boolean;\n /**\n * True if user is authenticated\n */\n isAuthenticated: boolean;\n}","useAuthVisibility":"/**\n * Hook to determine auth UI visibility and loading states\n *\n * **Visibility Rules:**\n * - Hide if `status !== 'ready' || !isAvailable` (not ready or not installed)\n * - Show with loading if `status === 'initializing'` during operations\n * - Show normal UI when `status === 'ready' && isAvailable`\n *\n * @returns AuthVisibilityState with visibility flags\n *\n * @example\n * ```typescript\n * const { shouldHide, isLoading, isReady, isAuthenticated } = useAuthVisibility();\n *\n * if (shouldHide) return null;\n *\n * if (isLoading) {\n * return <Button disabled><Spinner /></Button>;\n * }\n *\n * if (isAuthenticated) {\n * return <UserMenu />;\n * }\n *\n * return <SignInButton />;\n * ```\n */\nexport declare function useAuthVisibility(): AuthVisibilityState;","useStripeBillingSafe":"/**\n * Safe wrapper for useStripeBilling hook.\n *\n * - If @donotdev/billing installed → uses real hook\n * - If not installed → returns degraded API values\n *\n * **IMPORTANT:** For `isAvailable` to return `true`, you must pass `authState`.\n * Without auth state, billing will return `isAvailable: false` until auth status is `ready`.\n *\n * @param key - Property name to access from billing API\n * @param authState - Auth state from useAuthSafe (user, status)\n * @returns The billing API value, or degraded value if billing unavailable\n *\n * @example\n * ```typescript\n * // Get auth state first\n * const user = useAuthSafe('user');\n * const status = useAuthSafe('status'); // 'initializing' | 'ready' | 'degraded' | 'error'\n * const authState = { user, status };\n *\n * // Pass to billing\n * const checkout = useStripeBillingSafe('checkout', authState);\n * const billingStatus = useStripeBillingSafe('status', authState);\n * const isAvailable = useStripeBillingSafe('isAvailable', authState);\n * ```\n */\nexport declare function useStripeBillingSafe<K extends keyof BillingAPI>(key: K, authState?: BillingAuthState): BillingAPI[K];","isBillingAvailable":"/**\n * Check if billing module is available (for conditional UI rendering)\n */\nexport declare const isBillingAvailable: boolean;","BillingVisibilityState":"/** Return value of the useBillingVisibility hook. */\nexport interface BillingVisibilityState {\n /**\n * True if billing UI should be completely hidden (not available)\n */\n shouldHide: boolean;\n /**\n * True if billing is in loading state (but UI should still be visible with spinner)\n */\n isLoading: boolean;\n /**\n * True if billing is available (ready to show UI)\n */\n isReady: boolean;\n}","useBillingVisibility":"/**\n * Hook to determine billing UI visibility and loading states\n *\n * **Visibility Rules:**\n * - Hide if `!isAvailable` (not installed/configured)\n * - Show with loading if `status === 'initializing'` during operations\n * - Show normal UI when `isAvailable && status === 'ready'`\n *\n * @returns BillingVisibilityState with visibility flags\n *\n * @example\n * ```typescript\n * const { shouldHide, isLoading, isReady } = useBillingVisibility();\n *\n * if (shouldHide) {\n * return <FeatureDisabled featureName=\"Billing\" />;\n * }\n *\n * if (isLoading) {\n * return <Button disabled><Spinner /></Button>;\n * }\n *\n * return <BillingForm />;\n * ```\n */\nexport declare function useBillingVisibility(): BillingVisibilityState;","useCrudSafe":"/**\n * Safe wrapper for useCrud hook.\n *\n * - If @donotdev/crud installed → uses real hook (handles Firebase/consent internally)\n * - If not installed → returns degraded API values\n *\n * @param entityOrCollection - Entity definition or collection name\n * @param options - Options including backend type and schema\n * @returns CRUD operations and state, or degraded API if crud unavailable\n *\n * @example\n * ```typescript\n * // With entity\n * const { add, update } = useCrudSafe(carEntity);\n *\n * // With collection string\n * const { get, set } = useCrudSafe('users', { schema: UserSchema });\n * ```\n */\nexport declare function useCrudSafe<T = unknown>(entityOrCollection: Entity | string, options?: UseCrudSafeOptions<T>): CrudAPI<T>;","isCrudAvailable":"/**\n * Check if CRUD module is available (for conditional UI rendering)\n */\nexport declare const isCrudAvailable: boolean;","useOAuthSafe":"/**\n * Safe wrapper for useOAuth hook.\n *\n * - If @donotdev/oauth installed → uses real hook (handles credentials/consent internally)\n * - If not installed → returns degraded API values\n *\n * @param key - Property name to access from OAuth API\n * @returns The OAuth API value, or degraded value if OAuth unavailable\n *\n * @example\n * ```typescript\n * const connect = useOAuthSafe('connect');\n * const loading = useOAuthSafe('loading');\n * const isAvailable = useOAuthSafe('isAvailable');\n * ```\n */\nexport declare function useOAuthSafe<K extends keyof OAuthAPI>(key: K): OAuthAPI[K];","isOAuthAvailable":"/**\n * Check if OAuth module is available (for conditional UI rendering)\n */\nexport declare const isOAuthAvailable: boolean;","tList":"/**\n * Renders a translated array as a List with optional icon\n *\n * Opinionated helper that reduces boilerplate for the common pattern:\n * `<List icon={<CheckCircle size={16} />} items={translateArray(t, key, count)} />`\n *\n * @param t - Translation function from useTranslation\n * @param key - Translation key prefix for the array\n * @param count - Maximum number of items to fetch\n * @param icon - Lucide icon, null for no icon, or undefined for default (CheckCircle)\n * @param size - Optional icon size (default: 16)\n * @returns ReactNode containing the List component\n *\n * @example\n * ```tsx\n * // With default icon (CheckCircle)\n * <Card content={tList(t, 'features.items', 4)} />\n *\n * // With custom icon\n * <Card content={tList(t, 'features.items', 4, Star)} />\n *\n * // Without icon (for emoji-prefixed labels like \"🚀 Kick-off\")\n * <Card content={tList(t, 'features.items', 4, null)} />\n * ```\n */\nexport declare function tList(t: TFunction, key: string, count: number, icon?: LucideIcon | null, size?: number): ReactNode;","sanitizeSvg":"/**\n * Strips known XSS vectors from an SVG string.\n *\n * @param svg - Raw SVG string (build-time or static source)\n * @returns Sanitized SVG string safe for dangerouslySetInnerHTML\n *\n * @security This function uses regex-based sanitization suitable ONLY for build-time trusted SVGs.\n * For user-uploaded or untrusted SVG content, use a dedicated sanitization library like DOMPurify.\n * Regex-based sanitization is bypassable via mutation XSS, SVG event handlers, or entity encoding.\n *\n * @example\n * ```tsx\n * <div dangerouslySetInnerHTML={{ __html: sanitizeSvg(svgContent) }} />\n * ```\n */\nexport declare function sanitizeSvg(svg: string): string;","ViteAppProviders":"/**\n * ViteAppProviders - Vite platform-specific app providers\n *\n * Clean provider hierarchy with configuration via context (no prop drilling).\n * Uses React Router v7 data router pattern (RouterProvider + createBrowserRouter).\n *\n * Provider hierarchy (outside router):\n * 1. AppConfigProvider (configuration context)\n * 2. SentryInitializer (error monitoring)\n * 3. ViteStoresInitializer (store setup)\n * 4. HelmetProvider (head management)\n * 5. NavigationProvider (RouterProvider with auto-abort)\n *\n * Provider hierarchy (inside router via RootLayout):\n * 6. QueryProviders (React Query)\n * 7. UIProviders (design system)\n * 8. AutoMetaTags (SEO)\n * 9. FrameworkReadySignal (framework initialization)\n * 10. Layout (application layout)\n * 11. ConsentBanner (cookie consent)\n * 12. PWAUpdateNotification (PWA updates)\n *\n * No favicon component: the build writes the favicon tags into index.html and every\n * prerendered page (`createViteFaviconPlugin`, `faviconHeadTags` of `@donotdev/core`).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * <ViteAppProviders\n * config={{ app: { name: 'My App' } }}\n * />\n * ```\n *\n * Note: HomePage.tsx in src/pages/ is automatically used for the root route \"/\"\n */\nexport declare function ViteAppProviders(props: AppProvidersProps): import(\"react\").JSX.Element;","NextJsAppProviders":"export declare function NextJsAppProviders(props: NextJsAppProvidersProps): import(\"react\").JSX.Element;","FontHead":"/**\n * Font preloads of `lang` and the inline `@font-face` style.\n *\n * @param props.fonts - The generated font plan (`FONTS` of `fonts.generated.ts`)\n * @param props.lang - The page language\n * @returns The `<style>` element (null when the theme uses system fonts only)\n * @throws {Error} When the plan has no entry for `lang` (the generated file is stale)\n *\n * @version 0.1.0\n * @since 0.3.3\n * @author AMBROISE PARK Consulting\n */\nexport declare function FontHead({ fonts, lang }","FontHeadData":"/**\n * The font plan as the document head needs it (`src/app/fonts.generated.ts`).\n *\n * @version 0.1.0\n * @since 0.3.3\n * @author AMBROISE PARK Consulting\n */\nexport interface FontHeadData {\n /** Every `@font-face` of the app (web faces, then the size-matched fallback faces) */\n readonly css: string;\n /** Per app language: the first-paint font file URLs */\n readonly preloads: Readonly<Record<string, readonly string[]>>;\n}","InternalLink":"/**\n * Internal link (Next.js): renders next/link (a real `<a href>`) in the current language.\n * - `prefetch` true (default), guest: next/link's default (`auto`: static routes fully,\n * dynamic routes up to the nearest `loading.js`; production only). Guests get the\n * cached site tree, which `auto` prefetches in full.\n * - `prefetch` true, signed in: `prefetch={true}`, the full route of each visible link.\n * Signed-in visitors get the per-request session tree (`dndev-session`, dynamic), which\n * `auto` skips. Signed-in state is `useAuth('isAuthenticated')`: the request's cookie\n * snapshot on the server and in the hydration pass, the provider's once ready. The\n * anchor HTML does not depend on it (prefetch runs after mount): no hydration mismatch.\n * - `prefetch` false: no prefetch, signed in or not.\n * - Plain left click: client-side navigation, open overlays closed (same as `navigate()`).\n * Modifier / middle clicks keep the browser default (new tab). An `onClick` calling\n * `preventDefault()` cancels the navigation.\n *\n * @version 0.2.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport declare function InternalLink({ path, replace, prefetch, children, ...anchorProps }","InternalLinkProps":"/**\n * Props of `InternalLink`: an anchor to an app path, rendered as a real `<a href>`.\n *\n * @version 0.1.0\n * @since 0.3.2\n * @author AMBROISE PARK Consulting\n */\nexport interface InternalLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {\n /** App path (`/produits`): the link uses the current language's URL */\n path: string;\n /** Replace the current history entry instead of pushing one */\n replace?: boolean;\n /**\n * Next.js: `true` (default) prefetches with next/link's default for guests and the full\n * route for signed-in visitors; `false` disables prefetching. Vite: ignored\n */\n prefetch?: boolean;\n children?: ReactNode;\n}"}
@@ -20,7 +20,7 @@
20
20
  - **AppIcon** - App icon component.
21
21
  - **AppTitle** - App title display component.
22
22
  - **GameTitle** - Game title component for game preset.
23
- - **Breadcrumbs** - Breadcrumb navigation component.
23
+ - **Breadcrumbs** - Breadcrumb navigation component. Auto-generated from the route, or `items` (`{ label, href? }`, the last one is the current page, not a link), `showHome`. Wraps on narrow screens; flush with the content edge in page content (the layout's breadcrumb bar insets it).
24
24
  - **HeaderNavigation** - Header navigation menu component.
25
25
  - **DropdownNavigation** - Dropdown navigation menu.
26
26
  - **HeaderMenu** - Header controls inline from 1024px up, behind a hamburger below (CSS switch, no hydration swap). Popups inside it (DropdownMenu, Dialog) work from the burger panel.
@@ -250,6 +250,8 @@ footerMode: 'scroll',
250
250
 
251
251
  A footer inside `main` (`scroll`, or a `<footer>` rendered after the page) keeps its own height and sits at the bottom of the screen on a short page: only the page grows (the first child of `main`, or the one after the breadcrumbs). While a page inside a `<Suspense>` streams in, `main` stays empty above the footer, so nothing moves when it arrives.
252
252
 
253
+ While an `ActionBar` (`@donotdev/components`) is shown, the layout reserves its height at the bottom (`--action-bar-height`, set by the bar on `<html>`), so the end of the page and the footer, in either mode, scroll above the bar instead of under it.
254
+
253
255
  Set `footerMode` in your preset config or in the `layout` prop:
254
256
  ```tsx
255
257
  <ViteAppProviders
@@ -113,6 +113,9 @@ export const meta: PageMeta = {
113
113
 
114
114
  // Signed-in visitors go elsewhere (e.g. landing → catalogue)
115
115
  signedInRedirect: '/catalogue', // Next + Supabase cookie: proxy redirects (verified session) before render; else client replace
116
+
117
+ // Parent page when the URL prefix is no page (/produits/:slug, no /produits page)
118
+ parent: '/catalogue', // Breadcrumbs, BreadcrumbList JSON-LD, forms' parent path (ROUTING guideline)
116
119
  };
117
120
  ```
118
121
 
@@ -79,6 +79,11 @@ not-found wrappers opt into this generic, badge-free content. This prop hides on
79
79
  the path badge; translated labels, route suggestions and Home/Back actions remain
80
80
  server-renderable. It does not disable SSR or defer navigation until mount.
81
81
 
82
+ A Next page answers 404 with Next's `notFound()` (`next/navigation`; entity pages
83
+ get it generated). The framework error boundaries re-throw Next's router control flow
84
+ (`notFound()`, `forbidden()`, `unauthorized()`, `redirect()`), so the app's 404 page
85
+ shows, not the error fallback.
86
+
82
87
  The badge is not the only URL-derived output. The static Next 404 is built once (at
83
88
  `/_not-found`) and served for every unknown URL, so anything computed from the
84
89
  pathname differs between its HTML and the browser's render (React #418). The
@@ -133,6 +138,14 @@ function ProductForm() {
133
138
  }
134
139
  ```
135
140
 
141
+ **Loading state while the next page loads:** destructure `pending` (true until the new route has rendered; navigation runs in a React transition):
142
+ ```tsx
143
+ const { navigate, pending } = useNavigate();
144
+
145
+ <Button loading={pending} onClick={() => navigate('/checkout')}>{t('checkout')}</Button>
146
+ ```
147
+ Overlays still close at the click, so a button inside a framework Dialog/Sheet will not show its spinner.
148
+
136
149
  **DON'T use react-router-dom:**
137
150
  ```tsx
138
151
  import { useNavigate } from 'react-router-dom'; // BREAKS FRAMEWORK
@@ -390,6 +403,34 @@ export function ProductsPage() {
390
403
  - Handles lazy loading
391
404
  - Creates route structure
392
405
 
406
+ ### Parent page and breadcrumbs
407
+
408
+ A page's ancestors are its URL prefixes that are pages (`/routines/:id` → `/routines`). A
409
+ page whose URL prefix is no page names its parent with PageMeta `parent`:
410
+
411
+ ```tsx
412
+ // src/pages/ProductPage.tsx: /produits/:slug, no /produits page; the catalogue lists them
413
+ export const meta: PageMeta = {
414
+ route: '/produits/:slug',
415
+ entity: productEntity,
416
+ parent: '/catalogue',
417
+ };
418
+ ```
419
+
420
+ One chain (`routeAncestors` in `@donotdev/core`: the direct URL prefix when it is a page,
421
+ else `parent`, else the nearest shorter prefix that is a page, then the parent's own chain)
422
+ feeds the visible `Breadcrumbs` (Home > Catalogue > product), every BreadcrumbList JSON-LD
423
+ (see SEO.md) and the forms' parent path (cancel / after save). Each crumb is named by its
424
+ page's title (the `<title>` chain: `seo.title`, else `<namespace>:title`; `routeLabel`);
425
+ a URL prefix that is no page is no crumb; the shown record keeps its name
426
+ (`useRecordBreadcrumb`). The trail reads the build's route manifest, so the server HTML and
427
+ the browser render are identical.
428
+
429
+ `parent` is read at build like `route`: a literal static path of an existing page
430
+ (`/x`, no `:param`, `*`, query or hash), `'/'` for home. The build fails on any other
431
+ value, on the page itself, on a loop, and when the URL prefix is itself a page (it is the
432
+ parent already: remove `parent`).
433
+
393
434
  ---
394
435
 
395
436
  ## Common Mistakes
package/guidelines/SEO.md CHANGED
@@ -112,7 +112,7 @@ An app whose own config lacks `cleanUrls` never serves the prerendered pages at
112
112
 
113
113
  | Route | Page identity (title, description, Open Graph, Twitter, robots, JSON-LD) | Always AutoMetaTags |
114
114
  |-------|------|------|
115
- | Static (`/about`), dynamic without server metadata | AutoMetaTags (PageMeta + i18n) | canonical, `og:url`, `og:site_name`, `hreflang`, BreadcrumbList / WebSite / Organization JSON-LD |
115
+ | Static (`/about`), dynamic without server metadata | AutoMetaTags (PageMeta + i18n) | canonical, `og:url`, `og:site_name`, `hreflang`, BreadcrumbList (site, the page's ancestors and the page, by page title) / WebSite / Organization JSON-LD |
116
116
  | Entity page (`/produits/:slug`, see below) | The generated page: `generateMetadata` + JSON-LD from the record (AutoMetaTags emits none) | same, except the BreadcrumbList: the page renders it (record title last) |
117
117
  | Page module exporting `generateMetadata` | That `generateMetadata` (AutoMetaTags emits none) | same |
118
118
  | Blog post (`blog` namespace, dynamic route) | The generated page's `generateMetadata` (per-post title, description, Open Graph) | same |
@@ -143,7 +143,7 @@ export const meta: PageMeta = {
143
143
  - **Read:** the generated `page.tsx` reads the record named by the URL (`<param> == value`, `status` not in `HIDDEN_STATUSES`) with the public server reader of `generateStaticParams` (signed-out visitor: RLS / Security Rules decide; `@donotdev/supabase` or `@donotdev/firebase`, any other provider fails the build). React `cache`: `generateMetadata` and the page share one read per request. The page's own client data reads are separate. `appConfig.prerenderRecords: false` stops the build-time prerender only: each URL still reads its record on its first request.
144
144
  - **`generateMetadata`:** title `<record title> | <site name>` (absolute: no layout title template; site name = `appConfig.seo.siteName`, else `appConfig.app.name`), description, Open Graph (title, description, absolute image, `og:type`), Twitter card. Derived by `deriveEntitySeo` with the entity's `seo` option (see Entity-derived identity), text in the URL's language (entity namespace then `crud` translations, `@donotdev/core/rsc`). Canonical, `og:url` and `hreflang` stay with AutoMetaTags.
145
145
  - **`og:type`:** PageMeta `seo.type` (`website` default, `article`, `product`). `product` also renders Product JSON-LD (`<script type="application/ld+json">`, from `buildProductJsonLd`) and `<meta property="og:type" content="product">` in the page (Next's metadata API has no `product` type).
146
- - **BreadcrumbList JSON-LD:** rendered by the page (`buildBreadcrumbJsonLd`, shared with the Vite record pages): the site name, the URL's segments named as the visible breadcrumb names them (words title-cased), the record title last: the label the visible breadcrumb shows on the segment naming the record (`useRecordBreadcrumb`: the slug on `/produits/:slug`, the id on `/products/:id`). No record title: no BreadcrumbList.
146
+ - **BreadcrumbList JSON-LD:** rendered by the page (`buildBreadcrumbJsonLd`, shared with the Vite record pages and AutoMetaTags): the site name, the page's ancestors (`routeAncestors`: URL prefixes that are pages, else PageMeta `parent`, see ROUTING.md) each named by its page title in the page language (`routeLabel`, the `<title>` chain; the generated page embeds those routes as `BREADCRUMB_ROUTES`), the record title last: the label the visible breadcrumb shows for the page (`useRecordBreadcrumb`: the slug on `/produits/:slug`, the id on `/products/:id`). A URL prefix that is no page is no item (`/produits/serum` with `parent: '/catalogue'`: site > Catalogue > record). No record title: no BreadcrumbList.
147
147
  - **Missing record** (unknown value, hidden status): `notFound()`. The response is HTTP 404 with the app's 404 page and Next's `noindex`; a page component's own not-found state is never served for such a URL.
148
148
  - **Own `generateMetadata` wins:** a server page module (no `'use client'`) exporting `generateMetadata` replaces the generated metadata, JSON-LD and 404 (one source, no second title); it then calls `notFound()` itself.
149
149
  - **Build fails** without the app's `entities` package, without a site name, or with a provider that has no server reader. Opt a route out with `seo: { noindex: true }` (also leaves the sitemap).
@@ -224,11 +224,11 @@ export const meta: PageMeta = {
224
224
 
225
225
  The build generates `public/og-image.png` (1200x630, logo centered) from `public/logo.svg`, next to the favicon and PWA icons. Vite and Next.js both default `og:image` to it (`appConfig.seo.defaultImage`, default `DEFAULT_OG_IMAGE`, `/og-image.png`), as an absolute URL when `APP_URL` is set. One default for every tag: AutoMetaTags, the Vite prerendered pages (static and record), the Next entity page metadata and `getMetadataForPath`.
226
226
 
227
- - **Replace it:** put your own `public/og-image.png`; an existing file is never overwritten.
227
+ - **Replace it:** put your own `public/og-image.png`: it is never overwritten. The build regenerates only the one it generated (recorded in `.dndev/icons.json`) when `logo.svg` changes, and replaces a framework default one.
228
228
  - **Per page:** `seo.image` in `PageMeta`, or `meta.image` in the namespace's translations.
229
229
  - **Entity pages (Next, Vite record pages):** the record's first image (`deriveEntitySeo`), else the site default.
230
230
  - **Site-wide:** `appConfig.seo.defaultImage` (e.g. `'/og-image.jpg'`) replaces the default everywhere (build-written and runtime tags stay identical).
231
- - **Not generated** without `public/logo.svg` or without `sharp` installed (the build log lists it as skipped): `og:image` then points to a missing `/og-image.png`. Add the file to `public/`.
231
+ - **Not generated** without `public/logo.svg` or without `sharp` installed (build warning): `og:image` then points to a missing `/og-image.png`. Add the file to `public/`.
232
232
 
233
233
  Use JPG or PNG: link-preview crawlers do not reliably render SVG.
234
234
 
@@ -238,7 +238,7 @@ Use JPG or PNG: link-preview crawlers do not reliably render SVG.
238
238
 
239
239
  The JSON-LD logo is always the app's `public/logo.svg` (`SITE_LOGO_PATH`, `@donotdev/core`), as an absolute URL: the Organization `logo` (home page, when `appConfig.app.links` is set) and the WebPage / Article `publisher.logo` (every page with an app URL). One path, no existence check or asset-manifest lookup at render, so the server render, the browser and the Vite prerendered pages write the same URL (no hydration mismatch). The generated PWA icons (`icon-*x*.png`) are never used for it.
240
240
 
241
- - **Missing `public/logo.svg`:** the build warns (`logo.svg not found in public/`); the JSON-LD logo then points to a missing file, and no favicon, PWA icons or `og-image.png` are generated. Add `public/logo.svg`.
241
+ - **Missing `public/logo.svg`:** the build warns (`public/logo.svg is missing: ...`, naming any framework default icon left in `public/`); the JSON-LD logo then points to a missing file, and no favicon, PWA icons or `og-image.png` are generated. Add `public/logo.svg`.
242
242
 
243
243
  ---
244
244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/ui",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -67,11 +67,11 @@
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@donotdev/ai": "^0.3.2",
70
- "@donotdev/auth": "^0.3.3",
70
+ "@donotdev/auth": "^0.3.4",
71
71
  "@donotdev/billing": "^0.3.2",
72
- "@donotdev/components": "^0.3.4",
73
- "@donotdev/core": "^0.3.3",
74
- "@donotdev/crud": "^0.3.3",
72
+ "@donotdev/components": "^0.3.5",
73
+ "@donotdev/core": "^0.3.4",
74
+ "@donotdev/crud": "^0.3.4",
75
75
  "@donotdev/oauth": "^0.3.2",
76
76
  "@hookform/resolvers": "^5.9.2",
77
77
  "lucide-react": "^0.575.0",