lr-chatbot 0.27.1 → 0.27.3

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
@@ -22344,13 +22344,17 @@ let Tn = class extends An {
22344
22344
  const n = this.messageContext.conversationId;
22345
22345
  this.loading = !0;
22346
22346
  try {
22347
- await new Jt({
22347
+ const i = new Jt({
22348
22348
  baseURL: this.messageContext.apiUrl,
22349
22349
  withCredentials: !0,
22350
22350
  method: "POST"
22351
- }).chatbotConversationsSummaryGet(n), t = be("chatbot:escalation.message", {
22351
+ }), { ticketId: a } = await i.chatbotConversationsInteractionsSummarizePost(n, {
22352
+ language: this.language,
22353
+ origin: ""
22354
+ });
22355
+ t = be("chatbot:escalation.message", {
22352
22356
  context: this.channel,
22353
- conversationId: n
22357
+ conversationId: a
22354
22358
  }), await fo(200);
22355
22359
  } catch {
22356
22360
  } finally {
@@ -22954,7 +22958,7 @@ Lt = Mn([
22954
22958
  Fe("lr-chatbot-conversation-rating")
22955
22959
  ], Lt);
22956
22960
  function Lw(t) {
22957
- const r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/g;
22961
+ const r = new RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)(?<![\\.,;:!?])", "g");
22958
22962
  return t.replace(r, (n) => `<a href="${n}" style="color: inherit" target="_blank">${n}</a>`);
22959
22963
  }
22960
22964
  var Mw = Object.defineProperty, Pw = Object.getOwnPropertyDescriptor, yt = (t, r, e, n) => {
@@ -23079,7 +23083,7 @@ let Mt = class extends ge {
23079
23083
  qn(this, ci, t);
23080
23084
  }
23081
23085
  getVersion() {
23082
- return "LR Chatbot - 0.27.1";
23086
+ return "LR Chatbot - 0.27.3";
23083
23087
  }
23084
23088
  async connectedCallback() {
23085
23089
  super.connectedCallback(), this._conversationHistoryTask.run();