@meetelise/chat 1.22.11 → 1.22.13
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.
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
hasRentgrata,
|
|
41
41
|
openRengrataWidget,
|
|
42
42
|
} from "../../rentgrata";
|
|
43
|
+
import noop from "lodash/noop";
|
|
43
44
|
|
|
44
45
|
@customElement("meetelise-launcher")
|
|
45
46
|
export class Launcher extends LitElement {
|
|
@@ -147,6 +148,9 @@ export class Launcher extends LitElement {
|
|
|
147
148
|
return;
|
|
148
149
|
};
|
|
149
150
|
|
|
151
|
+
@property({ attribute: true })
|
|
152
|
+
onSstClose: () => void = noop;
|
|
153
|
+
|
|
150
154
|
@property({ attribute: true })
|
|
151
155
|
overrideRentgrata = false;
|
|
152
156
|
|
|
@@ -271,6 +275,7 @@ export class Launcher extends LitElement {
|
|
|
271
275
|
};
|
|
272
276
|
|
|
273
277
|
onCloseSSTWindow = (): void => {
|
|
278
|
+
this.onSstClose();
|
|
274
279
|
this.isSSTWindowOpen = false;
|
|
275
280
|
if (this.showTourNextToChat) {
|
|
276
281
|
this.dispatchEvent(
|
|
@@ -195,6 +195,9 @@ export class MEChat extends LitElement {
|
|
|
195
195
|
@property()
|
|
196
196
|
onWidgetLoaded: () => void = noop;
|
|
197
197
|
|
|
198
|
+
@property({ attribute: true })
|
|
199
|
+
onSstClose: () => void = noop;
|
|
200
|
+
|
|
198
201
|
@state()
|
|
199
202
|
private enabledChatWidgets: {
|
|
200
203
|
callDesktop: boolean;
|
|
@@ -806,6 +809,7 @@ export class MEChat extends LitElement {
|
|
|
806
809
|
.backgroundColor=${this.backgroundColor}
|
|
807
810
|
.isMinimized=${this.isMinimized}
|
|
808
811
|
.onClickMinimize=${this.onClickMinimize}
|
|
812
|
+
.onSstClose=${this.onSstClose}
|
|
809
813
|
.overrideRentgrata=${this.overrideRentgrata}
|
|
810
814
|
.autoOpenChatWidget=${this.building.autoOpenChatWidget ??
|
|
811
815
|
false}
|
|
@@ -998,11 +1002,6 @@ const overrideContactUsForm = async (
|
|
|
998
1002
|
btn = element;
|
|
999
1003
|
break;
|
|
1000
1004
|
}
|
|
1001
|
-
// for entrata forms https://arrelloapts.com/contact/
|
|
1002
|
-
if (element.classList.contains("form__field--submit")) {
|
|
1003
|
-
btn = element;
|
|
1004
|
-
break;
|
|
1005
|
-
}
|
|
1006
1005
|
}
|
|
1007
1006
|
|
|
1008
1007
|
if (!btn) {
|
package/src/main/MEChat.ts
CHANGED
|
@@ -173,6 +173,9 @@ export default class MEChat {
|
|
|
173
173
|
handleRentgrataOverride();
|
|
174
174
|
meChatElement.overrideRentgrata = true;
|
|
175
175
|
}
|
|
176
|
+
if (opts.onSstClose) {
|
|
177
|
+
meChatElement.onSstClose = opts.onSstClose;
|
|
178
|
+
}
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
if (opts.position) {
|
|
@@ -380,6 +383,7 @@ export interface Options {
|
|
|
380
383
|
onWidgetLoaded?: () => void;
|
|
381
384
|
overrideRentgrata?: boolean;
|
|
382
385
|
widgetType?: string;
|
|
386
|
+
onSstClose?: () => void;
|
|
383
387
|
}
|
|
384
388
|
|
|
385
389
|
export enum WidgetType {
|