@restnfeel/agentc-starter-kit
Version:
한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템
212 lines (190 loc) • 4.96 kB
text/typescript
// ================================================================
// AgentC Customer Chat Library - Main Exports
// ================================================================
// ================================================================
// Core Components
// ================================================================
// Main Unified Library
export {
default as UnifiedCustomerChatLibrary,
SimpleCustomerChat,
AdvancedCustomerChat,
useCustomerChat,
ChatLibraryDebugInfo,
} from "./unified-customer-chat-library";
// Individual Components
export { default as FloatingChatButton } from "./floating-chat-button";
export { default as ChatDock } from "./chat-dock";
export { default as ChatbotWidget, useChatbotWidget } from "./chatbot-widget";
export {
default as SuggestedQuestions,
useSuggestedQuestions,
} from "./suggested-questions";
// Responsive System Components
export {
ResponsiveChatSystem,
useResponsiveChatSystem,
} from "./responsive-chat-system";
export {
UnifiedChatSystem,
UnifiedFloatingChatButton,
useUnifiedChatRouter,
ChatMode,
} from "./unified-chat-router";
export {
DeviceDetectorProvider,
useDeviceDetection,
DeviceConditional,
DeviceDetectionDebug,
useIsMobile,
DeviceType,
} from "./device-detector";
// ================================================================
// Configuration & Utilities
// ================================================================
export {
DEFAULT_QUESTIONS,
QUESTION_CATEGORIES,
CONTEXTUAL_QUESTIONS,
QuestionAnalytics,
} from "./suggested-questions-config";
// Theme exports
export {
useTheme,
applyTheme,
themes,
defaultTheme,
darkTheme,
compactTheme,
getThemeVariables,
createThemeStylesheet,
generateThemeClasses,
} from "./theme-config";
// i18n exports
export {
I18nProvider,
useI18n,
LanguageSelector,
RTLText,
} from "./i18n-context";
export {
translations,
languages,
t,
isRTL,
detectBrowserLanguage,
adjustTextLength,
DEFAULT_LANGUAGE,
} from "./i18n-config";
// ================================================================
// Types & Interfaces
// ================================================================
// Core types from types.ts
export type {
Message,
ChatSession,
ChatError,
DeviceInfo,
DeviceBreakpoints,
ChatbotTheme,
ThemeName,
ChatbotTranslations,
SupportedLanguage,
LanguageInfo,
ApiConfig,
PerformanceConfig,
AccessibilityConfig,
AnalyticsConfig,
BaseComponentProps,
FloatingButtonProps,
ChatWidgetProps,
ResponsiveChatSystemProps,
ResponsiveChatSystemConfig,
UnifiedCustomerChatLibraryConfig,
ChatEvent,
ChatEventHandlers,
UseChatReturn,
UseDeviceDetectionReturn,
UseResponsiveChatReturn,
ChatPlugin,
ChatPluginContext,
CustomComponent,
DeepPartial,
RequiredKeys,
OptionalKeys,
EventCallback,
AsyncFunction,
ChatEventType,
CHAT_EVENTS,
DEFAULT_CONFIG,
} from "./types";
// Legacy types for backward compatibility
export type {
SuggestedQuestion,
QuestionCategory,
} from "./suggested-questions-config";
// ================================================================
// Type Guards & Validators
// ================================================================
export {
isMessage,
isChatSession,
isChatError,
isDeviceType,
isChatMode,
isDeviceInfo,
isApiConfig,
isSupportedLanguage,
isChatbotTheme,
isChatEvent,
isChatEventType,
validateUnifiedChatLibraryConfig,
assertIsMessage,
assertIsChatSession,
assertIsDeviceInfo,
assertIsChatMode,
isValidUrl,
isValidApiKey,
isValidEmailAddress,
isValidSessionId,
isValidMessageContent,
sanitizeMessage,
sanitizeApiConfig,
validatePerformanceConfig,
validateAccessibilityConfig,
ChatLibraryTypeError,
createTypeError,
logTypeValidation,
validateAndLog,
} from "./type-guards";
// ================================================================
// Advanced Components & Hooks
// ================================================================
// Performance & Optimization
export {
PerformanceWrapper,
VirtualizedList,
LazyComponent,
usePerformanceOptimizer,
} from "./performance-optimizer";
// Edge Case Handling
export {
EdgeCaseMonitor,
useEdgeCaseHandler,
useGracefulDegradation,
} from "./edge-case-handler";
// Real-time Monitoring
export {
useRealTimeDeviceMonitor,
useDeviceChangeDetection,
useDevicePerformanceMonitor,
} from "./real-time-device-monitor";
// ================================================================
// Version & Metadata
// ================================================================
export const LIBRARY_VERSION = "1.0.0";
export const LIBRARY_NAME = "AgentC Customer Chat Library";
// ================================================================
// Default Export
// ================================================================
export { default } from "./unified-customer-chat-library";