@aintela/chat 0.4.13 → 0.4.15
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-DbE21rGt.js → atMentions-uRBrCgLL.js} +15 -8
- package/dist/{atMentions-DbE21rGt.js.map → atMentions-uRBrCgLL.js.map} +1 -1
- package/dist/components.js +5574 -5526
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/index.js +2 -2
- package/dist/src/components/v2/MentionPickerPanel.d.ts +2 -1
- package/dist/src/components/v2/PromptV2.d.ts +2 -0
- package/dist/src/components/v2/TriggerDropdown.d.ts +3 -2
- package/dist/src/hooks/usePromptAssist.d.ts +12 -5
- package/dist/src/services/httpPromptAssistService.d.ts +25 -0
- package/dist/src/utils/atMentions.d.ts +11 -2
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/promptTriggers.d.ts +12 -0
- package/dist/useContainerWidth-RyWSI8nV.js +310 -0
- package/dist/useContainerWidth-RyWSI8nV.js.map +1 -0
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/useContainerWidth-Phmvwrqr.js +0 -300
- package/dist/useContainerWidth-Phmvwrqr.js.map +0 -1
|
@@ -926,16 +926,23 @@ function Q(o, t, e) {
|
|
|
926
926
|
return { next: `${s}${a}${n}`, selectionStart: l, selectionEnd: l, reopenTrigger: !1 };
|
|
927
927
|
}
|
|
928
928
|
d(Q, "applyTriggerInsertion");
|
|
929
|
-
async function tt(o, { onAtQuery: t, onAtPersonQuery: e }, {
|
|
930
|
-
|
|
931
|
-
|
|
929
|
+
async function tt(o, { onAtQuery: t, onAtPersonQuery: e }, {
|
|
930
|
+
personConfidence: s = 0,
|
|
931
|
+
locationConfidence: n = 0,
|
|
932
|
+
personFirstThreshold: i = 0.5,
|
|
933
|
+
vertical: r = "air",
|
|
934
|
+
hotelConfidence: a = 0,
|
|
935
|
+
hotelNameConfidence: l = 0
|
|
936
|
+
} = {}) {
|
|
937
|
+
const [c, u] = await Promise.all([
|
|
938
|
+
t ? t(o, { vertical: r, hotelConfidence: a, hotelNameConfidence: l }).catch(() => []) : Promise.resolve([]),
|
|
932
939
|
e ? e(o).catch(() => []) : Promise.resolve([])
|
|
933
|
-
]);
|
|
940
|
+
]), p = u.map((h) => h.kind ? h : { ...h, kind: "person" });
|
|
934
941
|
if (t && e) {
|
|
935
|
-
const
|
|
936
|
-
return s >= i && s >= n ? [...
|
|
942
|
+
const h = p.map((m) => ({ ...m, group: "person" })), f = c.map((m) => ({ ...m, group: m.kind === "hotel" ? "hotel" : "location" }));
|
|
943
|
+
return s >= i && s >= n ? [...h, ...f] : [...f, ...h];
|
|
937
944
|
}
|
|
938
|
-
return [...
|
|
945
|
+
return [...p, ...c];
|
|
939
946
|
}
|
|
940
947
|
d(tt, "fetchAtMentions");
|
|
941
948
|
function et(o, t) {
|
|
@@ -966,4 +973,4 @@ export {
|
|
|
966
973
|
B as s,
|
|
967
974
|
X as t
|
|
968
975
|
};
|
|
969
|
-
//# sourceMappingURL=atMentions-
|
|
976
|
+
//# sourceMappingURL=atMentions-uRBrCgLL.js.map
|