mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
- FakeMUI now imports hooks directly from root /hooks folder (not barrel export) - Avoids pulling in hooks with project-specific dependencies (@/lib/routing) - useAccessible, useToast, useMediaQuery, useDragResize all use direct imports - Removed @metabuilder/hooks dependency from fakemui package.json - Updated workflowui to use CSS globals instead of complex M3 SCSS - Created globals.css with precompiled M3 design tokens - Bypasses complex SCSS module dependencies (cdk) - Fixed React types mismatch (upgraded @types/react to ^19.0.0) - Cleaned up duplicate accessibility code in fakemui/src/utils/ - Removed CodeQL artifacts and build scripts - Build succeeds with Next.js 16 webpack mode Organization per user guidelines: - SCSS stays in fakemui folder - Hooks stay in root hooks folder - Components stay in root components folder Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
628 B
TypeScript
26 lines
628 B
TypeScript
'use client'
|
|
|
|
/**
|
|
* ToastContext - Re-exported from root hooks folder
|
|
*
|
|
* This provides toast notifications for FakeMUI components.
|
|
* Direct import from root hooks folder bypasses the barrel export
|
|
* to avoid pulling in hooks with project-specific dependencies.
|
|
*/
|
|
|
|
export {
|
|
ToastProvider,
|
|
useToast,
|
|
} from '../../../../hooks/useToast'
|
|
|
|
export type {
|
|
ToastSeverity,
|
|
ToastOptions,
|
|
ToastContextValue,
|
|
ToastProviderProps,
|
|
} from '../../../../hooks/useToast'
|
|
|
|
// Re-export ToastProvider as default for backwards compatibility
|
|
import { ToastProvider } from '../../../../hooks/useToast'
|
|
export default ToastProvider
|