@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.
- package/dist/{atMentions-DqhG_vde.js → atMentions-C5Fs9Yab.js} +32 -32
- package/dist/{atMentions-DqhG_vde.js.map → atMentions-C5Fs9Yab.js.map} +1 -1
- package/dist/{auth-BN22f1HF.js → auth-ffNUief3.js} +2 -2
- package/dist/{auth-BN22f1HF.js.map → auth-ffNUief3.js.map} +1 -1
- package/dist/components.js +4880 -4771
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{httpArtifactService-RtW5tek8.js → httpArtifactService-hGsIslw7.js} +2 -2
- package/dist/{httpArtifactService-RtW5tek8.js.map → httpArtifactService-hGsIslw7.js.map} +1 -1
- package/dist/{httpSessionService-BO81zAcx.js → httpSessionService-M1IKQIQK.js} +2 -2
- package/dist/{httpSessionService-BO81zAcx.js.map → httpSessionService-M1IKQIQK.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/models.js +1 -1
- package/dist/{serializer-DTyYgExG.js → serializer-uea8YsIP.js} +165 -165
- package/dist/serializer-uea8YsIP.js.map +1 -0
- package/dist/services.js +2 -2
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/usePromptAssist.d.ts +34 -1
- package/dist/src/models/semanticKernelModel/models.d.ts +3 -3
- package/dist/src/services/httpPromptAssistService.d.ts +6 -1
- package/dist/src/utils/atMentions.d.ts +10 -6
- package/dist/{useChatSessions-C9IQGLh_.js → useChatSessions-C-XVE-h3.js} +2 -2
- package/dist/{useChatSessions-C9IQGLh_.js.map → useChatSessions-C-XVE-h3.js.map} +1 -1
- package/dist/useContainerWidth-Cs50UcTK.js +309 -0
- package/dist/useContainerWidth-Cs50UcTK.js.map +1 -0
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/dist/serializer-DTyYgExG.js.map +0 -1
- package/dist/useContainerWidth-D0CQQqZ2.js +0 -262
- 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
|
|
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(
|
|
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
|
|
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(
|
|
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, "")),
|
|
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
|
|
338
|
-
return r === "asc" ?
|
|
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
|
|
356
|
-
return
|
|
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", (
|
|
414
|
-
|
|
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((
|
|
416
|
+
const c = /* @__PURE__ */ h((u) => {
|
|
417
417
|
if (!s) return;
|
|
418
|
-
const d = l + (
|
|
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"),
|
|
428
|
-
s = !1, t.style.borderRight = "", t.style.background = "", document.removeEventListener("mousemove", c), document.removeEventListener("mouseup",
|
|
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],
|
|
559
|
-
r < n ? o.insertBefore(c,
|
|
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
|
|
564
|
-
if (
|
|
565
|
-
const d = [...
|
|
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
|
|
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 = ((
|
|
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
|
|
629
|
-
return c > l ?
|
|
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,
|
|
853
|
-
const [
|
|
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
|
|
859
|
-
return r >= n ? [...
|
|
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 [...
|
|
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
|
-
|
|
878
|
+
F as g,
|
|
879
879
|
R as h,
|
|
880
880
|
U as i,
|
|
881
881
|
z as j,
|
|
882
|
-
|
|
882
|
+
H as k,
|
|
883
883
|
D as p,
|
|
884
884
|
O as s,
|
|
885
885
|
B as t
|
|
886
886
|
};
|
|
887
|
-
//# sourceMappingURL=atMentions-
|
|
887
|
+
//# sourceMappingURL=atMentions-C5Fs9Yab.js.map
|