{"version":3,"sources":["../src/index.ts"],"names":["ProviderFactory","CloudinaryProvider"],"mappings":"m4BAoHAA,mBAAAA,CAAgB,QAAA,CAAS,aAAcC,mBAAkB,CAAA","file":"index.cjs","sourcesContent":["// Core exports\r\nexport { UploadProvider, ProviderFactory } from \"./core/provider\";\r\nexport { FileProcessor } from \"./core/file-processor\";\r\nexport {\r\n  DEFAULT_CONFIG,\r\n  FILE_SIZE,\r\n  TIMING,\r\n  QUALITY,\r\n  DIMENSIONS,\r\n  UPLOAD,\r\n  PERFORMANCE,\r\n  LAYOUT,\r\n  FORMATS,\r\n  COLORS,\r\n  VIDEO,\r\n  ConfigValidator,\r\n  type FileFormatType,\r\n  type ImageFormat,\r\n  type ColorTheme,\r\n  type ComponentSize,\r\n  type ComponentVariant,\r\n} from \"./core/config\";\r\n\r\n// Smart defaults and presets\r\nexport {\r\n  SMART_DEFAULTS,\r\n  PRESETS,\r\n  getSmartDefaults,\r\n  getPreset,\r\n  mergePreset,\r\n  type SmartDefaults,\r\n  type PresetName,\r\n} from \"./core/smart-defaults\";\r\n\r\n// Advanced features exports\r\nexport { UploadError, ErrorBoundary } from \"./core/error-handler\";\r\nexport {\r\n  PerformanceMonitor,\r\n  PerformanceOptimizer,\r\n} from \"./core/performance-monitor\";\r\nexport {\r\n  InputValidator,\r\n  validateInput,\r\n  type ValidationResult,\r\n} from \"./core/validation\";\r\nexport {\r\n  AccessibilityManager,\r\n  type AccessibilityConfig,\r\n  type AccessibilityTheme,\r\n} from \"./core/accessibility\";\r\nexport {\r\n  InternationalizationManager,\r\n  type I18nConfig,\r\n  type LocaleConfig,\r\n  type Translation,\r\n} from \"./core/internationalization\";\r\n\r\n// New advanced features exports\r\nexport {\r\n  FilePreviewManager,\r\n  type PreviewOptions,\r\n  type FilePreview,\r\n} from \"./core/file-preview\";\r\nexport {\r\n  DragReorderManager,\r\n  type DragReorderOptions,\r\n  type DragState,\r\n  type ReorderResult,\r\n} from \"./core/drag-reorder\";\r\nexport {\r\n  UploadResumeManager,\r\n  type ResumeOptions,\r\n  type ResumeState,\r\n  type ResumeResult,\r\n  type UploadChunk,\r\n} from \"./core/upload-resume\";\r\n\r\n// Provider exports\r\nexport { CloudinaryProvider } from \"./providers/cloudinary\";\r\nexport type { CloudinaryConfig } from \"./providers/cloudinary\";\r\n\r\n// Component exports\r\nexport { SmartDropzone } from \"./components/smart-dropzone\";\r\nexport { FileItem } from \"./components/file-item\";\r\n\r\n// NEW: Simplified components with smart defaults\r\nexport { SmartDropzoneSimple } from \"./components/smart-dropzone-simple\";\r\nexport { \r\n  SimpleUpload, \r\n  GalleryUpload, \r\n  DocumentUpload, \r\n  MediaUpload, \r\n  EnterpriseUpload \r\n} from \"./components/smart-dropzone-simple\";\r\n\r\n// Hook exports\r\nexport { useUpload } from \"./hooks/use-upload\";\r\n\r\n// Type exports\r\nexport type {\r\n  UploadFile,\r\n  UploadStatus,\r\n  UploadResponse,\r\n  UploadOptions,\r\n  FileValidationResult,\r\n  UploadProgressEvent,\r\n  FileProcessingResult,\r\n  ThemeConfig,\r\n  SmartDropzoneProps,\r\n} from \"./types\";\r\n\r\n// Provider registration\r\nimport { ProviderFactory } from \"./core/provider\";\r\nimport { CloudinaryProvider } from \"./providers/cloudinary\";\r\n\r\n// Auto-register built-in providers\r\nProviderFactory.register(\"cloudinary\", CloudinaryProvider);\r\n\r\n// Re-export provider factory for convenience\r\nexport { ProviderFactory as UploadProviderFactory };\r\n\r\n// Tree-shaking friendly exports\r\n// Import only what you need:\r\n// import { SmartDropzoneSimple } from '@tanflare/smart-dropzone/components/smart-dropzone-simple'\r\n// import { CloudinaryProvider } from '@tanflare/smart-dropzone/providers/cloudinary'\r\n// import { useUpload } from '@tanflare/smart-dropzone/hooks/use-upload'\r\n"]}