@meetelise/chat 1.22.21 → 1.22.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -3167,7 +3167,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
3167
3167
|
<div class="chevron-right">${Qn}</div>
|
|
3168
3168
|
</div>
|
|
3169
3169
|
`:""}
|
|
3170
|
-
</div>`}render(){return window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Dn),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",nr),
|
|
3170
|
+
</div>`}render(){return window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Dn),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",nr),window.eliseAi.onOpenSST=e=>{this.isSSTWindowOpen=!0,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()},(this.hasChatEnabledDesktop||this.hasChatEnabledMobile)&&(window.eliseAi.onOpenChat=e=>{this.onChatTapped(),this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,e&&e()}),(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile)&&(window.eliseAi.onOpenCallUsWindow=e=>{this.isCallUsWindowOpen=!0,this.isSSTWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile)&&(window.eliseAi.onOpenEmailUsWindow=e=>{this.isEmailWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.onExitChat(),e&&e()}),U`
|
|
3171
3171
|
<div
|
|
3172
3172
|
class=${Qi()({"launcher__mobile-launcher-wrapper":ci()||this.isMinimized,"launcher__mini-launcher-wrapper":!ci()&&!this.isMinimized,"launcher__mini-elevated":"livcor"===this.orgSlug.toLowerCase()&&(ci()||this.isMinimized)})}
|
|
3173
3173
|
style=${Pe({...this.launcherStyles,...this.mobileStyles,top:ci()||void 0===this.top||isNaN(this.top)?void 0!==this.mobileStyles.top?`${this.mobileStyles.top}px`:void 0:this.top-700+"px",bottom:ci()||void 0===this.bottom||isNaN(this.bottom)?void 0!==this.mobileStyles.bottom?`${this.mobileStyles.bottom}px`:"72px":`${this.bottom}px`,left:ci()||void 0===this.left||isNaN(this.left)?void 0!==this.mobileStyles.left?`${this.mobileStyles.left}px`:void 0:`${this.left}px`,right:ci()||void 0===this.right||isNaN(this.right)?void 0!==this.mobileStyles.right?`${this.mobileStyles.right}px`:"18px":`${this.right}px`})}
|
|
@@ -4515,7 +4515,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4515
4515
|
.backgroundColor=${this.backgroundColor}
|
|
4516
4516
|
.onClick=${()=>{this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,localStorage.setItem("isChatOpen","false")}}
|
|
4517
4517
|
></minimize-expand-button>
|
|
4518
|
-
</div>`}}async handleChatInitializeAnalytics(){var e,t,i,n;this.analytics=new an(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Gr(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab)}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){un({logType:ln.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w,S,T,x,A,C,O,I,N,E;vr();const R=this.hideLauncher&&!this.isLoading&&!ci();return
|
|
4518
|
+
</div>`}}async handleChatInitializeAnalytics(){var e,t,i,n;this.analytics=new an(this.orgSlug,this.buildingSlug,null!==(t=null===(e=this.myPubnub)||void 0===e?void 0:e.channel)&&void 0!==t?t:"",null!==(n=null===(i=this.LeadSourceClient)||void 0===i?void 0:i.leadSource)&&void 0!==n?n:null),Math.random()<.05&&this.analytics.ping("webchat_heartbeat")}async restartConversation(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),Gr(this.buildingSlug),this.myPubnub=null,this.displayPubnubChat=!1,await this.setupWebchat(),this.hideLauncher=!1}show(){this.launcher&&(this.launcher.style.display="")}hide(){this.launcher&&(this.launcher.style.display="none")}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.adjustPositionChatAdditionalActions),window.addEventListener("keydown",this.handleKeydownTab)}getDeepActiveElement(){let e=document.activeElement,t=0;for(;(null==e?void 0:e.shadowRoot)&&(null==e?void 0:e.shadowRoot.activeElement);)if(t+=1,e=null==e?void 0:e.shadowRoot.activeElement,t>100){un({logType:ln.error,buildingSlug:this.buildingSlug,logTitle:"[ERROR_GETTING_DEEP_ELEMENT]",logData:{message:"error getting deep active element"}});break}return e}updated(){this.adjustPositionChatAdditionalActions()}disconnectedCallback(){var e;null===(e=this.myPubnub)||void 0===e||e.handleDisconnect(),window.removeEventListener("resize",this.adjustPositionChatAdditionalActions),window.removeEventListener("keydown",this.handleKeydownTab),super.disconnectedCallback()}render(){var e,t,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w,S,T,x,A,C,O,I,N,E;vr();const R=this.hideLauncher&&!this.isLoading&&!ci();return U`
|
|
4519
4519
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
4520
4520
|
<div id="aria-describe-info" style="display: none;">
|
|
4521
4521
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
@@ -775,18 +775,17 @@ export class Launcher extends LitElement {
|
|
|
775
775
|
installEmailUsWindow();
|
|
776
776
|
installCallUsWindow();
|
|
777
777
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}
|
|
778
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
779
|
+
(window as any).eliseAi.onOpenSST = (callBack?: () => void) => {
|
|
780
|
+
this.isSSTWindowOpen = true;
|
|
781
|
+
this.isCallUsWindowOpen = false;
|
|
782
|
+
this.isEmailWindowOpen = false;
|
|
783
|
+
this.onExitChat();
|
|
784
|
+
if (callBack) {
|
|
785
|
+
callBack();
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
|
|
790
789
|
if (this.hasChatEnabledDesktop || this.hasChatEnabledMobile) {
|
|
791
790
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
792
791
|
(window as any).eliseAi.onOpenChat = (callBack?: () => void) => {
|
|
@@ -733,14 +733,6 @@ export class MEChat extends LitElement {
|
|
|
733
733
|
const showChatAdditionalActions =
|
|
734
734
|
this.hideLauncher && !this.isLoading && !isMobile();
|
|
735
735
|
|
|
736
|
-
const numEnabledChatWidgets = Object.values(this.enabledChatWidgets).filter(
|
|
737
|
-
(val) => val
|
|
738
|
-
).length;
|
|
739
|
-
|
|
740
|
-
if (numEnabledChatWidgets === 0) {
|
|
741
|
-
return html``;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
736
|
return html`
|
|
745
737
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
746
738
|
<div id="aria-describe-info" style="display: none;">
|