lr-chatbot 0.19.3 → 0.19.4

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.
Files changed (3) hide show
  1. package/index.js +13 -15
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -22076,7 +22076,7 @@ let Sn = class extends _n {
22076
22076
  super(...arguments), this.channel = "", this.shouldGetSummary = !1;
22077
22077
  }
22078
22078
  connectedCallback() {
22079
- super.connectedCallback(), this.shouldGetSummary || (this.href = this.getUrl(), this.target = "_blank");
22079
+ super.connectedCallback();
22080
22080
  }
22081
22081
  getUrl(t) {
22082
22082
  return Fe("chatbot:escalation.url", { context: this.channel, message: t });
@@ -22085,21 +22085,19 @@ let Sn = class extends _n {
22085
22085
  super.handleClick(), await this.escalate();
22086
22086
  }
22087
22087
  async escalate() {
22088
- var t;
22089
- if (this.shouldGetSummary) {
22090
- let r = "";
22091
- if ((t = this.messageContext) != null && t.conversationId) {
22092
- this.loading = !0;
22093
- try {
22094
- await io(200);
22095
- } catch {
22096
- } finally {
22097
- this.loading = !1;
22098
- }
22088
+ var e;
22089
+ let t = "";
22090
+ if (this.shouldGetSummary && (e = this.messageContext) != null && e.conversationId) {
22091
+ this.loading = !0;
22092
+ try {
22093
+ await io(200);
22094
+ } catch {
22095
+ } finally {
22096
+ this.loading = !1;
22099
22097
  }
22100
- const e = this.getUrl(r);
22101
- e && window.open(e, "_blank");
22102
22098
  }
22099
+ const r = this.getUrl(t);
22100
+ r && window.open(r, "_blank");
22103
22101
  }
22104
22102
  };
22105
22103
  Sn.styles = [_n.styles, ew];
@@ -22533,7 +22531,7 @@ let At = class extends me {
22533
22531
  Bn(this, oi, t);
22534
22532
  }
22535
22533
  getVersion() {
22536
- return "LR Chatbot - 0.19.3";
22534
+ return "LR Chatbot - 0.19.4";
22537
22535
  }
22538
22536
  async connectedCallback() {
22539
22537
  super.connectedCallback(), this._conversationHistoryTask.run();