@bcc-code/vue-bcc-chat-ui 4.2.1 → 4.3.0
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/accessToken.d.ts +2 -0
- package/dist/chat/logger.d.ts +33 -0
- package/dist/chat/login.d.ts +0 -2
- package/dist/chat/types.d.ts +2 -0
- package/dist/vue-bcc-chat-ui.js +12967 -12879
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BccChatMessageList.vue +4 -0
- package/src/components/BccScheduledMessageIcon.vue +1 -1
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ import { CometChatMessageEvents, MessageStatus } from "@cometchat/uikit-resource
|
|
|
20
20
|
import BccChatMessages from "./BccChatMessages.vue";
|
|
21
21
|
import BccScheduledMessages from "./BccScheduledMessages.vue";
|
|
22
22
|
import { getGroupMembersInfo } from "../chat/data";
|
|
23
|
+
import logger from "../chat/logger";
|
|
23
24
|
const props = defineProps({
|
|
24
25
|
chatUid: { type: String, required: true },
|
|
25
26
|
senderDisplayName: { type: String, required: false },
|
|
@@ -79,6 +80,8 @@ const onMessageSend = CometChatMessageEvents.ccMessageSent.subscribe(({ message,
|
|
|
79
80
|
});
|
|
80
81
|
|
|
81
82
|
watch([loggedIn, chat.onlineStatus, () => props.chatUid, chat.initialized, () => props.groupMessageGetter], async ([_loggedIn, _online, _chatUid, _initialized, _groupMessageGetter]) => {
|
|
83
|
+
logger.debug("ChatMessageList watch changed", { chatUid: _chatUid, loggedIn: _loggedIn, online: _online, initialized: _initialized });
|
|
84
|
+
|
|
82
85
|
if (_loggedIn && _chatUid && _initialized) {
|
|
83
86
|
chatGroupNotFound.value = false;
|
|
84
87
|
const [_, group] = await Promise.all([
|
|
@@ -128,6 +131,7 @@ watchEffect(() => {
|
|
|
128
131
|
})
|
|
129
132
|
|
|
130
133
|
onMounted(() => {
|
|
134
|
+
logger.debug("Mounting chat", { chatUid: props.chatUid });
|
|
131
135
|
watchAndApplyStyle(".bcc-chat-message-list-wrapper", [
|
|
132
136
|
{
|
|
133
137
|
selector: ".cc__text",
|
|
@@ -5,7 +5,7 @@ import { ChatInstance } from '../chat/types';
|
|
|
5
5
|
import { CometChatUIKitLoginListener } from '@cometchat/uikit-shared';
|
|
6
6
|
import chat from '../chat';
|
|
7
7
|
import { getCurrentEnvironment } from '../chat/environment';
|
|
8
|
-
import { getAccessToken } from '../chat/
|
|
8
|
+
import { getAccessToken } from '../chat/accessToken';
|
|
9
9
|
|
|
10
10
|
const chatInstance = inject<Ref<ChatInstance>>("chatInstance");
|
|
11
11
|
|