@supportai.it/chat-widget
Version:
Chat widget web component for supportAI.it
38 lines (37 loc) • 1.07 kB
TypeScript
declare const SafeHTMLElement: {
new (): HTMLElement;
prototype: HTMLElement;
};
declare class ChatWidget extends SafeHTMLElement {
private _isOpen;
private _isMobile;
private _fullChatUrl;
private _baseUrl;
private _isFirstLoad;
private _firstChatOpen;
private readonly _cookieName;
private readonly _cookieExpDays;
private _chatModal;
private _chatButton;
private _messageContainer;
private _lastRenderedState;
private _config;
private setCookie;
private getCookie;
private updateChatUrl;
constructor();
static get observedAttributes(): string[];
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
connectedCallback(): void;
disconnectedCallback(): void;
private setupEventListeners;
private removeEventListeners;
private handleResize;
private toggleChat;
private updateChatState;
private updateMessageBubble;
private updateContext;
set getContext(fn: () => string);
private render;
}
export default ChatWidget;