@meetelise/chat 1.51.7 → 1.51.9
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/README.md +27 -3
- package/declarations.d.ts +1 -0
- package/package.json +1 -1
- package/public/dist/index.js +1 -1
- package/src/WebComponent/launcher/Launcher.ts +8 -0
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# MeetElise Webchat
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
### Installation
|
|
5
4
|
|
|
6
5
|
To install MeetElise webchat on your site, add the following code:
|
|
@@ -44,12 +43,13 @@ You can open any of the widgets via the functions given in the window.eliseAi na
|
|
|
44
43
|
`onOpenCallUsWindow`
|
|
45
44
|
`onOpenChat`
|
|
46
45
|
`onOpenEmailUsWindow`
|
|
46
|
+
`onOpenPriceCalculatorWindow`
|
|
47
47
|
`onOpenSST`
|
|
48
48
|
|
|
49
49
|
Example usage with an `<a>` tag would be:
|
|
50
50
|
|
|
51
51
|
```html
|
|
52
|
-
<a href="
|
|
52
|
+
<a href="javascript:void(0)" onclick="window.eliseAi.onOpenChat()"
|
|
53
53
|
>Chat with us</a
|
|
54
54
|
>
|
|
55
55
|
```
|
|
@@ -60,9 +60,33 @@ While an example with a `<button>` tag would be
|
|
|
60
60
|
<button onclick="window.eliseAi.onOpenSST()">Open SST</button>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
And to open the cost calculator:
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<button onclick="window.eliseAi.onOpenPriceCalculatorWindow()">
|
|
67
|
+
Calculate your cost
|
|
68
|
+
</button>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Each of these functions is only defined when the corresponding option is
|
|
72
|
+
enabled for the building in
|
|
73
|
+
https://app.meetelise.com/settings/widgets — e.g.
|
|
74
|
+
`onOpenPriceCalculatorWindow` only exists when the cost calculator is turned
|
|
75
|
+
on. If you're calling one from a page that may be served for buildings without
|
|
76
|
+
it, guard the call:
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<button onclick="window.eliseAi.onOpenPriceCalculatorWindow?.()">
|
|
80
|
+
Calculate your cost
|
|
81
|
+
</button>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Opening one of these windows closes any other widget window that's currently
|
|
85
|
+
open.
|
|
86
|
+
|
|
63
87
|
### Rentgrata Integration
|
|
64
88
|
|
|
65
|
-
Assuming you've followed [these instructions](https://widget.rentgrata.com/) to install
|
|
89
|
+
Assuming you've followed [these instructions](https://widget.rentgrata.com/) to install Rentgrata on your site, you can add the `overrideRentgrata` option to your snippet to
|
|
66
90
|
|
|
67
91
|
1. Hide the rentgrata widget call to actions
|
|
68
92
|
2. Open the 'contact a resident' window via EliseAI's widget.
|
package/declarations.d.ts
CHANGED
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -5917,7 +5917,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
5917
5917
|
<div class="chevron-down">${Il("black")}</div>
|
|
5918
5918
|
</button>`:""}
|
|
5919
5919
|
</div>
|
|
5920
|
-
`}}connectedCallback(){super.connectedCallback(),this._cleanupMobileListener=Or(e=>{this._isMobile=e})}disconnectedCallback(){var e;null===(e=this._cleanupMobileListener)||void 0===e||e.call(this),super.disconnectedCallback()}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Ja),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",as),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.handleChatTapped(),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()}),(this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile)&&(window.eliseAi.onOpenPriceCalculatorWindow=e=>{this.isCalculatorWindowOpen=!0,e&&e()});const e={top:this._isMobile||void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:this._isMobile||void 0===this.bottom||isNaN(this.bottom)?void 0:`${this.bottom}px`,left:this._isMobile||void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:this._isMobile||void 0===this.right||isNaN(this.right)?void 0:`${this.right}px`};return R`
|
|
5920
|
+
`}}connectedCallback(){super.connectedCallback(),this._cleanupMobileListener=Or(e=>{this._isMobile=e})}disconnectedCallback(){var e;null===(e=this._cleanupMobileListener)||void 0===e||e.call(this),super.disconnectedCallback()}render(){window.customElements.get("email-us-window")||window.customElements.define("email-us-window",Ja),window.customElements.get("call-us-window")||window.customElements.define("call-us-window",as),window.eliseAi.onOpenSST=e=>{this.isSSTWindowOpen=!0,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.onExitChat(),e&&e()},(this.hasChatEnabledDesktop||this.hasChatEnabledMobile)&&(window.eliseAi.onOpenChat=e=>{this.handleChatTapped(),this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.isCalculatorWindowOpen=!1,e&&e()}),(this.hasCallUsEnabledDesktop||this.hasCallUsEnabledMobile)&&(window.eliseAi.onOpenCallUsWindow=e=>{this.isCallUsWindowOpen=!0,this.isSSTWindowOpen=!1,this.isEmailWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasEmailEnabledDesktop||this.hasEmailEnabledMobile)&&(window.eliseAi.onOpenEmailUsWindow=e=>{this.isEmailWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isCalculatorWindowOpen=!1,this.onExitChat(),e&&e()}),(this.hasPricingCalculatorEnabledDesktop||this.hasPricingCalculatorEnabledMobile)&&(window.eliseAi.onOpenPriceCalculatorWindow=e=>{this.isCalculatorWindowOpen=!0,this.isSSTWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isEmailWindowOpen=!1,this.onExitChat(),e&&e()});const e={top:this._isMobile||void 0===this.top||isNaN(this.top)?void 0:`${this.top}px`,bottom:this._isMobile||void 0===this.bottom||isNaN(this.bottom)?void 0:`${this.bottom}px`,left:this._isMobile||void 0===this.left||isNaN(this.left)?void 0:`${this.left}px`,right:this._isMobile||void 0===this.right||isNaN(this.right)?void 0:`${this.right}px`};return R`
|
|
5921
5921
|
<div
|
|
5922
5922
|
class=${ho()({"launcher__mobile-launcher-wrapper":this._isMobile||this.isMinimized,"launcher__mini-launcher-wrapper":!this._isMobile&&!this.isMinimized,"launcher__mini-elevated":"livcor"===this.orgSlug.toLowerCase()&&(this._isMobile||this.isMinimized)})}
|
|
5923
5923
|
style=${Vn({...this.launcherStyles,...this.mobileStyles,top:this._isMobile||void 0===this.top||isNaN(this.top)?void 0!==this.mobileStyles.top?`${this.mobileStyles.top}px`:void 0:this.top-700+"px",bottom:this._isMobile||void 0===this.bottom||isNaN(this.bottom)?void 0!==this.mobileStyles.bottom?`${this.mobileStyles.bottom}px`:"72px":`${this.bottom}px`,left:this._isMobile||void 0===this.left||isNaN(this.left)?void 0!==this.mobileStyles.left?`${this.mobileStyles.left}px`:void 0:`${this.left}px`,right:this._isMobile||void 0===this.right||isNaN(this.right)?void 0!==this.mobileStyles.right?`${this.mobileStyles.right}px`:"18px":`${this.right}px`})}
|
|
@@ -1151,6 +1151,7 @@ export class Launcher extends LitElement {
|
|
|
1151
1151
|
this.isSSTWindowOpen = true;
|
|
1152
1152
|
this.isCallUsWindowOpen = false;
|
|
1153
1153
|
this.isEmailWindowOpen = false;
|
|
1154
|
+
this.isCalculatorWindowOpen = false;
|
|
1154
1155
|
this.onExitChat();
|
|
1155
1156
|
if (callBack) {
|
|
1156
1157
|
callBack();
|
|
@@ -1164,6 +1165,7 @@ export class Launcher extends LitElement {
|
|
|
1164
1165
|
this.isSSTWindowOpen = false;
|
|
1165
1166
|
this.isCallUsWindowOpen = false;
|
|
1166
1167
|
this.isEmailWindowOpen = false;
|
|
1168
|
+
this.isCalculatorWindowOpen = false;
|
|
1167
1169
|
if (callBack) {
|
|
1168
1170
|
callBack();
|
|
1169
1171
|
}
|
|
@@ -1175,6 +1177,7 @@ export class Launcher extends LitElement {
|
|
|
1175
1177
|
this.isCallUsWindowOpen = true;
|
|
1176
1178
|
this.isSSTWindowOpen = false;
|
|
1177
1179
|
this.isEmailWindowOpen = false;
|
|
1180
|
+
this.isCalculatorWindowOpen = false;
|
|
1178
1181
|
this.onExitChat();
|
|
1179
1182
|
if (callBack) {
|
|
1180
1183
|
callBack();
|
|
@@ -1187,6 +1190,7 @@ export class Launcher extends LitElement {
|
|
|
1187
1190
|
this.isEmailWindowOpen = true;
|
|
1188
1191
|
this.isSSTWindowOpen = false;
|
|
1189
1192
|
this.isCallUsWindowOpen = false;
|
|
1193
|
+
this.isCalculatorWindowOpen = false;
|
|
1190
1194
|
this.onExitChat();
|
|
1191
1195
|
if (callBack) {
|
|
1192
1196
|
callBack();
|
|
@@ -1202,6 +1206,10 @@ export class Launcher extends LitElement {
|
|
|
1202
1206
|
callBack?: () => void
|
|
1203
1207
|
) => {
|
|
1204
1208
|
this.isCalculatorWindowOpen = true;
|
|
1209
|
+
this.isSSTWindowOpen = false;
|
|
1210
|
+
this.isCallUsWindowOpen = false;
|
|
1211
|
+
this.isEmailWindowOpen = false;
|
|
1212
|
+
this.onExitChat();
|
|
1205
1213
|
if (callBack) {
|
|
1206
1214
|
callBack();
|
|
1207
1215
|
}
|