sandia-chatbot-widget
Version:
Production-ready Sandia AI Chatbot Widget v3.0 with advanced themes, animations, notifications, and enterprise features
40 lines • 1.34 kB
TypeScript
import React from 'react';
import { WidgetStyles, ChatConfiguration } from '../types';
export interface SandiaWidgetProps {
chatbotId: string;
shareToken?: string;
apiUrl?: string;
styles?: Partial<WidgetStyles>;
chatConfig?: Partial<ChatConfiguration>;
onReady?: () => void;
onOpen?: () => void;
onClose?: () => void;
onMinimize?: () => void;
onRestore?: () => void;
onMessage?: (message: {
content: string;
role: 'user' | 'assistant';
timestamp: Date;
}) => void;
onTyping?: (isTyping: boolean) => void;
onError?: (error: Error) => void;
onSubscriptionError?: (error: {
message: string;
upgradeRequired?: boolean;
}) => void;
onFileUpload?: (file: File) => void;
onVoiceStart?: () => void;
onVoiceEnd?: (transcript: string) => void;
metadata?: Record<string, any>;
debug?: boolean;
version?: string;
/** @deprecated Use styles.position instead */
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
/** @deprecated Use styles.primaryColor instead */
primaryColor?: string;
/** @deprecated Use styles.size instead */
size?: 'sm' | 'md' | 'lg';
}
declare const SandiaWidget: React.FC<SandiaWidgetProps>;
export default SandiaWidget;
//# sourceMappingURL=SandiaWidget.d.ts.map