@bcc-code/vue-bcc-chat-ui 5.4.5 → 5.5.1
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/chat/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseMessage, Group, MessageReceipt } from '@cometchat/chat-sdk-javascript';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { Conversation, Message } from '../offline/types';
|
|
4
|
+
import { FuseResultMatch } from 'fuse.js';
|
|
4
5
|
export interface ChatInstallOptions {
|
|
5
6
|
environment: Environment;
|
|
6
7
|
language?: Language;
|
|
@@ -91,8 +92,14 @@ export declare enum LogSeverity {
|
|
|
91
92
|
ERROR = "Error"
|
|
92
93
|
}
|
|
93
94
|
export interface SearchedItems {
|
|
94
|
-
conversations:
|
|
95
|
-
|
|
95
|
+
conversations: {
|
|
96
|
+
conversation: Conversation;
|
|
97
|
+
matches: FuseResultMatch[];
|
|
98
|
+
}[];
|
|
99
|
+
messages: {
|
|
100
|
+
message: Message;
|
|
101
|
+
matches: FuseResultMatch[];
|
|
102
|
+
}[];
|
|
96
103
|
}
|
|
97
104
|
export interface ParticipantSettings {
|
|
98
105
|
chatUid: string;
|
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -78234,7 +78234,7 @@ class Cat {
|
|
|
78234
78234
|
}
|
|
78235
78235
|
Bi = new WeakMap(), ci = new WeakMap(), gl = new WeakMap(), uu = new WeakMap(), Fo = new WeakSet(), Ch = function(t, r, n) {
|
|
78236
78236
|
const a = structuredClone(n) ?? {};
|
|
78237
|
-
a.chatVersion = "5.
|
|
78237
|
+
a.chatVersion = "5.5.1";
|
|
78238
78238
|
const i = {
|
|
78239
78239
|
logUid: window.crypto.randomUUID(),
|
|
78240
78240
|
correlationUid: yr(this, gl),
|
|
@@ -79729,6 +79729,9 @@ class pit {
|
|
|
79729
79729
|
keys: ["conversationWith.name"],
|
|
79730
79730
|
shouldSort: !0,
|
|
79731
79731
|
includeScore: !0,
|
|
79732
|
+
includeMatches: !0,
|
|
79733
|
+
ignoreLocation: !0,
|
|
79734
|
+
ignoreFieldNorm: !0,
|
|
79732
79735
|
threshold: 0.4
|
|
79733
79736
|
});
|
|
79734
79737
|
}
|
|
@@ -79740,6 +79743,9 @@ class pit {
|
|
|
79740
79743
|
keys: ["data.text"],
|
|
79741
79744
|
shouldSort: !0,
|
|
79742
79745
|
includeScore: !0,
|
|
79746
|
+
includeMatches: !0,
|
|
79747
|
+
ignoreLocation: !0,
|
|
79748
|
+
ignoreFieldNorm: !0,
|
|
79743
79749
|
threshold: 0.3
|
|
79744
79750
|
});
|
|
79745
79751
|
}
|
|
@@ -80033,9 +80039,15 @@ function Lit(e, t = 25) {
|
|
|
80033
80039
|
messages: []
|
|
80034
80040
|
};
|
|
80035
80041
|
return ao.getFuseConversations().search(e, { limit: t }).forEach((n) => {
|
|
80036
|
-
r.conversations.push(
|
|
80042
|
+
r.conversations.push({
|
|
80043
|
+
conversation: n.item,
|
|
80044
|
+
matches: n.matches
|
|
80045
|
+
});
|
|
80037
80046
|
}), ao.getFuseMessages().search(e, { limit: t }).forEach((n) => {
|
|
80038
|
-
r.messages.push(
|
|
80047
|
+
r.messages.push({
|
|
80048
|
+
message: n.item,
|
|
80049
|
+
matches: n.matches
|
|
80050
|
+
});
|
|
80039
80051
|
}), r;
|
|
80040
80052
|
}
|
|
80041
80053
|
function wit(e) {
|