@meetelise/chat 1.22.21 → 1.22.22
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`})}
|
|
@@ -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) => {
|