lr-chatbot 0.19.8 → 0.19.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 CHANGED
@@ -20802,6 +20802,7 @@ const us = class us extends me {
20802
20802
  ?disabled=${n}
20803
20803
  class=${e}
20804
20804
  part="base"
20805
+ type="button"
20805
20806
  @click=${this.handleClick}
20806
20807
  >
20807
20808
  ${s}
@@ -21089,6 +21090,7 @@ const Da = /* @__PURE__ */ new WeakMap(), D3 = zi(class extends jd {
21089
21090
  --chat-sticky-width: 100%;
21090
21091
  --chat-sticky-min-width: 360px;
21091
21092
  --chat-sticky-minimized-size: 80px;
21093
+ --chat-sticky-offset-left: calc(100% - var(--chat-sticky-minimized-size));
21092
21094
  --chat-menu-height: 50px;
21093
21095
  --font-family: var(--lr-poppins);
21094
21096
  font-family: var(--font-family);
@@ -21173,7 +21175,7 @@ const Da = /* @__PURE__ */ new WeakMap(), D3 = zi(class extends jd {
21173
21175
  height: var(--chat-sticky-minimized-size);
21174
21176
  bottom: var(--chat-sticky-offset-bottom);
21175
21177
  z-index: 10001;
21176
- left: calc(100% - var(--chat-sticky-minimized-size));
21178
+ left: var(--chat-sticky-offset-left);
21177
21179
  background-color: #cbd2ff;
21178
21180
  border-radius: 16px;
21179
21181
  display: flex;
@@ -21191,15 +21193,14 @@ const Da = /* @__PURE__ */ new WeakMap(), D3 = zi(class extends jd {
21191
21193
  }
21192
21194
  @media (min-width: ${x(_.devices.mobile.max)}px) {
21193
21195
  --chat-sticky-width: 45vw;
21194
- transform: scale(1) translate(0%, 0%);
21195
- left: calc(
21196
+ --chat-sticky-offset-left: calc(
21196
21197
  100% -
21197
21198
  (
21198
21199
  var(--chat-sticky-offset-right) +
21199
21200
  ((var(--chat-sticky-width) / 2) - var(--chat-sticky-minimized-size))
21200
21201
  )
21201
21202
  );
21202
-
21203
+ transform: scale(1) translate(0%, 0%);
21203
21204
  &:hover {
21204
21205
  transform: scale(1.1) translate(0%, 0%);
21205
21206
  }
@@ -22423,7 +22424,7 @@ let Cn = class extends me {
22423
22424
  }
22424
22425
  async handleSubmit(t) {
22425
22426
  var r, e;
22426
- if (t.preventDefault(), !(this.rating > 0)) {
22427
+ if (t.preventDefault(), t.stopPropagation(), !(this.rating > 0)) {
22427
22428
  if (!((r = this.messageContext) != null && r.apiUrl) || !((e = this.messageContext) != null && e.conversationId))
22428
22429
  throw Error("Missing information to call API on message rating");
22429
22430
  try {
@@ -22591,7 +22592,7 @@ let At = class extends me {
22591
22592
  Bn(this, si, t);
22592
22593
  }
22593
22594
  getVersion() {
22594
- return "LR Chatbot - 0.19.8";
22595
+ return "LR Chatbot - 0.19.10";
22595
22596
  }
22596
22597
  async connectedCallback() {
22597
22598
  super.connectedCallback(), this._conversationHistoryTask.run();