UNPKG

@iblai/iblai-web-mentor

Version:

IBL AI Mentor

63 lines (62 loc) 2.29 kB
import { Theme } from "./models"; export { sendHTMLContentToHost, sendHTMLContentToIframe, proxyContextPostMessage, } from "./context-share"; export default class MentorAI extends HTMLElement { isEmbeddedMentorReady: boolean; iblData: string; lastUrl: string; private iframeContexts; constructor(); onPostMessage(event: MessageEvent): Promise<void>; connectedCallback(): void; disconnectedCallback(): void; get mentorUrl(): string; set mentorUrl(value: string); get authUrl(): string; set authUrl(value: string); get lmsUrl(): string; set lmsUrl(value: string); get theme(): Theme; set theme(value: Theme); get tenant(): string | null; set tenant(value: string); get extraParams(): string | null; set extraParams(value: string); get contextOrigins(): string[]; set contextOrigins(value: string); get mentor(): string | null; set mentor(value: string); get edxUsageId(): string | null; set edxUsageId(value: string); get edxCourseId(): string | null; set edxCourseId(value: string); get edxUserId(): string | null; set edxUserId(value: string); get authRelyOnHost(): boolean; set authRelyOnHost(value: boolean); get isAnonymous(): boolean; set isAnonymous(value: boolean); get isAdvanced(): boolean; set isAdvanced(value: boolean); get isContextAware(): boolean; set isContextAware(value: boolean); get redirectToken(): string | null; set redirectToken(value: string); get component(): "chat" | null; set component(value: string); get modal(): "dataset" | "settings" | null; set modal(value: string); get documentFilter(): string | null; set documentFilter(value: string); static get observedAttributes(): string[]; attributeChangedCallback(name: string, oldValue: any, newValue: any): void; getCleanBodyContent(): string; sendHostInfoToIframe(): void; sendDocumentFilterToIframe(): void; sendDataToIframe(data: Record<string, any>): void; switchTheme(theme: string): void; sendAuthDataToIframe(iblData: any): void; isTokenExpired(token_expires: string): boolean; redirectToAuthSPA(forceLogout?: boolean): void; toggleWidget(): void; } export * from "./mentor-ai";