lr-chatbot 0.20.0 → 0.21.0
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/index.js +6 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -22627,7 +22627,7 @@ let Tt = class extends me {
|
|
|
22627
22627
|
jn(this, oi, t);
|
|
22628
22628
|
}
|
|
22629
22629
|
getVersion() {
|
|
22630
|
-
return "LR Chatbot - 0.
|
|
22630
|
+
return "LR Chatbot - 0.21.0";
|
|
22631
22631
|
}
|
|
22632
22632
|
async connectedCallback() {
|
|
22633
22633
|
super.connectedCallback(), this._conversationHistoryTask.run();
|
|
@@ -22841,7 +22841,11 @@ let Tt = class extends me {
|
|
|
22841
22841
|
this.minimized || (this.minimized = !0, this.opened = !1, localStorage.setItem(Hn, "minimized"));
|
|
22842
22842
|
}
|
|
22843
22843
|
open() {
|
|
22844
|
-
|
|
22844
|
+
if (!this.opened) {
|
|
22845
|
+
this.opened = !0, this.minimized = !1, localStorage.setItem(Hn, "opened"), this._broadcastController.send({ action: "open" });
|
|
22846
|
+
const t = new CustomEvent("chatBotWindowOpen", { detail: "true" });
|
|
22847
|
+
window.dispatchEvent(t);
|
|
22848
|
+
}
|
|
22845
22849
|
}
|
|
22846
22850
|
close() {
|
|
22847
22851
|
(this.opened || this.minimized) && (localStorage.removeItem(Ur), localStorage.removeItem(Hn), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this.clearConversation(), this._broadcastController.send({ action: "close" }));
|