lr-chatbot 0.39.9 → 0.39.10
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 +3 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -23293,9 +23293,9 @@ let In = class extends fe {
|
|
|
23293
23293
|
), i = parseInt(
|
|
23294
23294
|
window.getComputedStyle(this._chatbotMinimizedElement).getPropertyValue("top")
|
|
23295
23295
|
);
|
|
23296
|
-
this._chatbotMinimizedElement.style.bottom = "", this._chatbotMinimizedElement.style.
|
|
23296
|
+
this._chatbotMinimizedElement.style.bottom = "", this._chatbotMinimizedElement.style.cursor = "grabbing", this._chatbotMinimizedElement.style.left = `${n + r}px`, this._chatbotMinimizedElement.style.top = `${i + e}px`, this._lastX = t.touches[0].clientX, this._lastY = t.touches[0].clientY, this._isClickEventRemoved || (this._isClickEventRemoved = !0);
|
|
23297
23297
|
}, this.handleTouchEnd = (t) => {
|
|
23298
|
-
t.stopPropagation(), this._isDragging && (this._isDragging = !1, this._chatbotMinimizedElement.style.
|
|
23298
|
+
t.stopPropagation(), this._isDragging && (this._isDragging = !1, this._chatbotMinimizedElement.style.cursor = "grab");
|
|
23299
23299
|
}, this.setElement = async () => {
|
|
23300
23300
|
const t = document.querySelector("#chatbot"), r = t == null ? void 0 : t.shadowRoot, e = r == null ? void 0 : r.querySelector("#chat-minimizerd-wrapper"), n = e == null ? void 0 : e.shadowRoot, i = n == null ? void 0 : n.querySelector("#chat-minimized.isDraggable");
|
|
23301
23301
|
i instanceof HTMLElement ? this._chatbotMinimizedElement = i : console.warn("Chatbot minimized element not found in shadow DOM");
|
|
@@ -23402,7 +23402,7 @@ let It = class extends fe {
|
|
|
23402
23402
|
Jn(this, pi, t);
|
|
23403
23403
|
}
|
|
23404
23404
|
getVersion() {
|
|
23405
|
-
return "LR Chatbot - v0.39.
|
|
23405
|
+
return "LR Chatbot - v0.39.10";
|
|
23406
23406
|
}
|
|
23407
23407
|
async connectedCallback() {
|
|
23408
23408
|
super.connectedCallback(), this._conversationHistoryTask.run();
|