@aintela/chat 0.2.31 → 0.2.33

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 (30) hide show
  1. package/dist/{atMentions-DqhG_vde.js → atMentions-C5Fs9Yab.js} +32 -32
  2. package/dist/{atMentions-DqhG_vde.js.map → atMentions-C5Fs9Yab.js.map} +1 -1
  3. package/dist/{auth-BN22f1HF.js → auth-ffNUief3.js} +2 -2
  4. package/dist/{auth-BN22f1HF.js.map → auth-ffNUief3.js.map} +1 -1
  5. package/dist/components.js +4880 -4771
  6. package/dist/components.js.map +1 -1
  7. package/dist/hooks.js +2 -2
  8. package/dist/{httpArtifactService-RtW5tek8.js → httpArtifactService-hGsIslw7.js} +2 -2
  9. package/dist/{httpArtifactService-RtW5tek8.js.map → httpArtifactService-hGsIslw7.js.map} +1 -1
  10. package/dist/{httpSessionService-BO81zAcx.js → httpSessionService-M1IKQIQK.js} +2 -2
  11. package/dist/{httpSessionService-BO81zAcx.js.map → httpSessionService-M1IKQIQK.js.map} +1 -1
  12. package/dist/index.js +7 -7
  13. package/dist/models.js +1 -1
  14. package/dist/{serializer-DTyYgExG.js → serializer-uea8YsIP.js} +165 -165
  15. package/dist/serializer-uea8YsIP.js.map +1 -0
  16. package/dist/services.js +2 -2
  17. package/dist/src/hooks/index.d.ts +1 -1
  18. package/dist/src/hooks/usePromptAssist.d.ts +34 -1
  19. package/dist/src/models/semanticKernelModel/models.d.ts +3 -3
  20. package/dist/src/services/httpPromptAssistService.d.ts +6 -1
  21. package/dist/src/utils/atMentions.d.ts +10 -6
  22. package/dist/{useChatSessions-C9IQGLh_.js → useChatSessions-C-XVE-h3.js} +2 -2
  23. package/dist/{useChatSessions-C9IQGLh_.js.map → useChatSessions-C-XVE-h3.js.map} +1 -1
  24. package/dist/useContainerWidth-Cs50UcTK.js +309 -0
  25. package/dist/useContainerWidth-Cs50UcTK.js.map +1 -0
  26. package/dist/utils.js +2 -2
  27. package/package.json +1 -1
  28. package/dist/serializer-DTyYgExG.js.map +0 -1
  29. package/dist/useContainerWidth-D0CQQqZ2.js +0 -262
  30. package/dist/useContainerWidth-D0CQQqZ2.js.map +0 -1
@@ -53,7 +53,7 @@ function T(i) {
53
53
  return t = parseInt(e), !isNaN(t) && r > 0.5 ? t : NaN;
54
54
  }
55
55
  h(T, "parseRawNumber");
56
- function H(i) {
56
+ function F(i) {
57
57
  if (!i) return { prefix: void 0, suffix: void 0, number: void 0 };
58
58
  const t = /[$%(\w?\$)]/gi, e = /[a-z]?\$/gi;
59
59
  let r = "", n = "";
@@ -73,15 +73,15 @@ function H(i) {
73
73
  }
74
74
  return o = parseFloat(s), isNaN(o) ? { prefix: void 0, suffix: void 0, number: void 0 } : { prefix: r, suffix: n, number: o };
75
75
  }
76
- h(H, "parseKnownNumbers");
76
+ h(F, "parseKnownNumbers");
77
77
  const E = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i, A = /^[0-9a-f]{32}/i;
78
- function F(i) {
78
+ function H(i) {
79
79
  if (!i || typeof i != "string")
80
80
  return !1;
81
81
  const t = N(i);
82
82
  return t === null ? !1 : i.startsWith(t);
83
83
  }
84
- h(F, "startsWithInteractionId");
84
+ h(H, "startsWithInteractionId");
85
85
  function N(i) {
86
86
  if (!i || typeof i != "string")
87
87
  return null;
@@ -240,7 +240,7 @@ const S = /* @__PURE__ */ new Set(), C = class C {
240
240
  n.querySelectorAll("td, th").forEach((s) => {
241
241
  const l = s.textContent.trim().match(/^([\d,]+\.?\d*)[eE][+-]?(\d+)$/);
242
242
  if (l) {
243
- const c = parseFloat(l[1].replace(/,/g, "")), u = parseInt(l[2]), p = c * Math.pow(10, u), d = this.formatNumber(p);
243
+ const c = parseFloat(l[1].replace(/,/g, "")), p = parseInt(l[2]), u = c * Math.pow(10, p), d = this.formatNumber(u);
244
244
  s.textContent = d;
245
245
  }
246
246
  });
@@ -334,8 +334,8 @@ const S = /* @__PURE__ */ new Set(), C = class C {
334
334
  const l = this.extractValue(s), c = this.extractValue(a);
335
335
  if (this.options.customSorters[e])
336
336
  return this.options.customSorters[e](l, c, r);
337
- const u = this.compareValues(l, c);
338
- return r === "asc" ? u : -u;
337
+ const p = this.compareValues(l, c);
338
+ return r === "asc" ? p : -p;
339
339
  });
340
340
  }
341
341
  /**
@@ -352,8 +352,8 @@ const S = /* @__PURE__ */ new Set(), C = class C {
352
352
  return parseFloat(o[1].replace(/,/g, ""));
353
353
  const s = e.match(/^([\d,]+\.?\d*)[eE][+-]?(\d+)$/);
354
354
  if (s) {
355
- const u = parseFloat(s[1].replace(/,/g, "")), p = parseInt(s[2]);
356
- return u * Math.pow(10, p);
355
+ const p = parseFloat(s[1].replace(/,/g, "")), u = parseInt(s[2]);
356
+ return p * Math.pow(10, u);
357
357
  }
358
358
  if (e.match(/^[\d,]+\.?\d*[KMB]?$/))
359
359
  return this.parseNumber(e);
@@ -410,12 +410,12 @@ const S = /* @__PURE__ */ new Set(), C = class C {
410
410
  z-index: 10;
411
411
  `, t.appendChild(o);
412
412
  let s = !1, a = 0, l = 0;
413
- o.addEventListener("mousedown", (p) => {
414
- p.preventDefault(), p.stopPropagation(), p.stopImmediatePropagation(), s = !0, a = p.clientX, l = t.offsetWidth, t.style.borderRight = "2px solid var(--primary-main, #2196F3)", t.style.background = "var(--background-active, rgba(255, 255, 255, 0.1))", document.addEventListener("mousemove", c), document.addEventListener("mouseup", u), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
413
+ o.addEventListener("mousedown", (u) => {
414
+ u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation(), s = !0, a = u.clientX, l = t.offsetWidth, t.style.borderRight = "2px solid var(--primary-main, #2196F3)", t.style.background = "var(--background-active, rgba(255, 255, 255, 0.1))", document.addEventListener("mousemove", c), document.addEventListener("mouseup", p), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
415
415
  });
416
- const c = /* @__PURE__ */ h((p) => {
416
+ const c = /* @__PURE__ */ h((u) => {
417
417
  if (!s) return;
418
- const d = l + (p.clientX - a);
418
+ const d = l + (u.clientX - a);
419
419
  if (d > 30) {
420
420
  t.style.width = d + "px";
421
421
  const m = Array.from(t.parentNode.children).indexOf(t), f = e.querySelector("tbody");
@@ -424,8 +424,8 @@ const S = /* @__PURE__ */ new Set(), C = class C {
424
424
  b && (b.style.width = d + "px");
425
425
  }), this.updateTableWidth(e);
426
426
  }
427
- }, "handleResize"), u = /* @__PURE__ */ h(() => {
428
- s = !1, t.style.borderRight = "", t.style.background = "", document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u), document.body.style.cursor = "", document.body.style.userSelect = "";
427
+ }, "handleResize"), p = /* @__PURE__ */ h(() => {
428
+ s = !1, t.style.borderRight = "", t.style.background = "", document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", p), document.body.style.cursor = "", document.body.style.userSelect = "";
429
429
  }, "stopResize");
430
430
  }
431
431
  /**
@@ -555,14 +555,14 @@ const S = /* @__PURE__ */ new Set(), C = class C {
555
555
  }
556
556
  if (r === n)
557
557
  return;
558
- const c = a[r], u = a[n];
559
- r < n ? o.insertBefore(c, u.nextSibling) : o.insertBefore(c, u), l.forEach((d, m) => {
558
+ const c = a[r], p = a[n];
559
+ r < n ? o.insertBefore(c, p.nextSibling) : o.insertBefore(c, p), l.forEach((d, m) => {
560
560
  const f = Array.from(d.children), g = f[r], y = f[n];
561
561
  r < n ? d.insertBefore(g, y.nextSibling) : d.insertBefore(g, y);
562
562
  });
563
- const p = this.originalColumnOrder.get(e);
564
- if (p) {
565
- const d = [...p], m = d[r];
563
+ const u = this.originalColumnOrder.get(e);
564
+ if (u) {
565
+ const d = [...u], m = d[r];
566
566
  d.splice(r, 1), d.splice(n, 0, m), this.originalColumnOrder.set(e, d);
567
567
  }
568
568
  this.applyTableStyles(t), this.refreshDragAndDropListeners(t, e);
@@ -602,7 +602,7 @@ const S = /* @__PURE__ */ new Set(), C = class C {
602
602
  * Calculate intelligent table width based on header text length
603
603
  */
604
604
  calculateTableWidth(t) {
605
- var p;
605
+ var u;
606
606
  const e = t.getAttribute("data-original-width"), r = e ? parseFloat(e) : 0, n = t.querySelectorAll("th");
607
607
  let o = 0;
608
608
  t.parentElement.clientWidth;
@@ -611,7 +611,7 @@ const S = /* @__PURE__ */ new Set(), C = class C {
611
611
  let f = d.textContent.replace(/[📊🔍]/g, "").trim().length * this.charWidth + 15;
612
612
  s.push(f), o += f;
613
613
  });
614
- const a = t.querySelectorAll("tr"), l = ((p = t.parentElement) == null ? void 0 : p.getBoundingClientRect().width) ?? o;
614
+ const a = t.querySelectorAll("tr"), l = ((u = t.parentElement) == null ? void 0 : u.getBoundingClientRect().width) ?? o;
615
615
  var c = 0;
616
616
  for (const d of a)
617
617
  d.querySelectorAll("td").forEach((f, g) => {
@@ -625,8 +625,8 @@ const S = /* @__PURE__ */ new Set(), C = class C {
625
625
  } else
626
626
  d.style.width = `${s[m]}px`;
627
627
  });
628
- let u = 0;
629
- return c > l ? u = "100%" : u = `${Math.max(c, r)}px`, u;
628
+ let p = 0;
629
+ return c > l ? p = "100%" : p = `${Math.max(c, r)}px`, p;
630
630
  }
631
631
  /**
632
632
  * Apply inline styles to ensure text clipping and horizontal scroll work
@@ -849,16 +849,16 @@ const x = /* @__PURE__ */ new Set(["/", "@", "#"]), W = /* @__PURE__ */ h((i) =>
849
849
  }
850
850
  return r;
851
851
  }, "chipLocations");
852
- async function V(i, { onAtQuery: t, onAtPersonQuery: e }, { personConfidence: r = 0, personFirstThreshold: n = 0.5 } = {}) {
853
- const [o, s] = await Promise.all([
852
+ async function V(i, { onAtQuery: t, onAtPersonQuery: e }, { personConfidence: r = 0, locationConfidence: n = 0, personFirstThreshold: o = 0.5 } = {}) {
853
+ const [s, a] = await Promise.all([
854
854
  t ? t(i).catch(() => []) : Promise.resolve([]),
855
855
  e ? e(i).catch(() => []) : Promise.resolve([])
856
856
  ]);
857
857
  if (t && e) {
858
- const a = s.map((c) => ({ ...c, group: "person" })), l = o.map((c) => ({ ...c, group: "location" }));
859
- return r >= n ? [...a, ...l] : [...l, ...a];
858
+ const l = a.map((u) => ({ ...u, group: "person" })), c = s.map((u) => ({ ...u, group: "location" }));
859
+ return r >= o && r >= n ? [...l, ...c] : [...c, ...l];
860
860
  }
861
- return [...s, ...o];
861
+ return [...a, ...s];
862
862
  }
863
863
  h(V, "fetchAtMentions");
864
864
  function U(i, t) {
@@ -875,13 +875,13 @@ export {
875
875
  _ as d,
876
876
  N as e,
877
877
  V as f,
878
- H as g,
878
+ F as g,
879
879
  R as h,
880
880
  U as i,
881
881
  z as j,
882
- F as k,
882
+ H as k,
883
883
  D as p,
884
884
  O as s,
885
885
  B as t
886
886
  };
887
- //# sourceMappingURL=atMentions-DqhG_vde.js.map
887
+ //# sourceMappingURL=atMentions-C5Fs9Yab.js.map