UNPKG

angular-chat-widget-rasa

Version:

A chatbot widget that is able to connect to a rasa chatbot using SocketIO

31 lines (30 loc) 882 B
import { ElementRef, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { ChatService } from '../chatbot-rasa.service'; export declare class ChatWidgetComponent implements OnInit { bottom: ElementRef; theme: 'blue' | 'grey' | 'red'; botName: string; botAvatar: string; userAvatar: string; url: string; startingMessage: string; opened: boolean; _visible: boolean; private chatService; constructor(chatService: ChatService); visible: boolean; focus: Subject<{}>; operator: any; client: any; messages: any[]; addMessage(from: any, text: any, type: 'received' | 'sent'): void; scrollToBottom(): void; focusMessage(): void; ngOnInit(): void; toggleChat(): void; sendMessage({ message }: { message: any; }): void; handleKeyboardEvent(event: KeyboardEvent): void; }