@bcc-code/vue-bcc-chat-ui 7.1.26 → 7.1.28
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/index.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ declare const chat: {
|
|
|
145
145
|
membersCount: number;
|
|
146
146
|
tags: string[];
|
|
147
147
|
muteSettings?: (Date | null) | undefined;
|
|
148
|
+
hasJoined: boolean;
|
|
148
149
|
}[], UserChatInfo[] | {
|
|
149
150
|
chatUid: string;
|
|
150
151
|
name: string;
|
|
@@ -185,6 +186,7 @@ declare const chat: {
|
|
|
185
186
|
membersCount: number;
|
|
186
187
|
tags: string[];
|
|
187
188
|
muteSettings?: (Date | null) | undefined;
|
|
189
|
+
hasJoined: boolean;
|
|
188
190
|
}[]>;
|
|
189
191
|
userUid: ComputedRef<string | undefined>;
|
|
190
192
|
connect: typeof connect;
|
|
@@ -333,6 +335,7 @@ export declare interface ChatConversationItem {
|
|
|
333
335
|
unreadCount: number;
|
|
334
336
|
lastMessageAt?: Date;
|
|
335
337
|
muteSettings?: Date | null;
|
|
338
|
+
hasJoined?: boolean;
|
|
336
339
|
tags: string[];
|
|
337
340
|
memberCount?: number;
|
|
338
341
|
source?: Conversation | null;
|
|
@@ -581,6 +584,7 @@ declare function getUserChats(): Promise<{
|
|
|
581
584
|
membersCount: number;
|
|
582
585
|
tags: string[];
|
|
583
586
|
muteSettings?: (Date | null) | undefined;
|
|
587
|
+
hasJoined: boolean;
|
|
584
588
|
}[]>;
|
|
585
589
|
|
|
586
590
|
declare function install(app: App, options: ChatInstallOptions): Promise<void>;
|
|
@@ -714,6 +718,7 @@ export declare interface UserChatInfo {
|
|
|
714
718
|
membersCount: number;
|
|
715
719
|
tags: string[];
|
|
716
720
|
muteSettings?: Date | null;
|
|
721
|
+
hasJoined: boolean;
|
|
717
722
|
}
|
|
718
723
|
|
|
719
724
|
export declare interface View {
|
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -5361,6 +5361,7 @@ function dc(e, t) {
|
|
|
5361
5361
|
type: r,
|
|
5362
5362
|
title: _t("scheduledMessages"),
|
|
5363
5363
|
subtitle: _t("hiddenHelperConversation"),
|
|
5364
|
+
hasJoined: !0,
|
|
5364
5365
|
unreadCount: 0,
|
|
5365
5366
|
tags: [],
|
|
5366
5367
|
source: e
|
|
@@ -5374,6 +5375,7 @@ function dc(e, t) {
|
|
|
5374
5375
|
subtitle: l && Tc(l) && !l.isDeleted ? Oc(l) : "No messages yet",
|
|
5375
5376
|
avatar: i ? Qe(i.getAvatar()) : void 0,
|
|
5376
5377
|
unreadCount: Number.isFinite(u) ? u : 0,
|
|
5378
|
+
hasJoined: a?.getHasJoined() ?? !0,
|
|
5377
5379
|
lastMessageAt: s && !l?.isDeleted ? /* @__PURE__ */ new Date((s.getSentAt?.() ?? 0) * 1e3) : void 0,
|
|
5378
5380
|
tags: (e.getTags() ?? []).map((e) => String(e)),
|
|
5379
5381
|
memberCount: a ? Math.max((a.getMembersCount() ?? 1) - 1, 0) : void 0,
|
|
@@ -6090,7 +6092,8 @@ F([() => Q.value?.conversations.value, () => Hl.value], async () => {
|
|
|
6090
6092
|
lastMessage: await Gl(e, t),
|
|
6091
6093
|
membersCount: e.memberCount ?? 0,
|
|
6092
6094
|
tags: [...e.tags],
|
|
6093
|
-
muteSettings: e.muteSettings ?? null
|
|
6095
|
+
muteSettings: e.muteSettings ?? null,
|
|
6096
|
+
hasJoined: e.hasJoined ?? !0
|
|
6094
6097
|
})));
|
|
6095
6098
|
Zl === e && (Xl.value = n);
|
|
6096
6099
|
}), F(() => Hl.value, () => {
|
|
@@ -9814,6 +9817,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9814
9817
|
subtitle: "No messages yet",
|
|
9815
9818
|
unreadCount: 0,
|
|
9816
9819
|
tags: (n.getTags() ?? []).map((e) => String(e)),
|
|
9820
|
+
hasJoined: n.getHasJoined() ?? !1,
|
|
9817
9821
|
memberCount: Math.max((Number(n.getMembersCount()) || 1) - 1, 0),
|
|
9818
9822
|
source: { getConversationWith: () => n }
|
|
9819
9823
|
};
|