@bcc-code/vue-bcc-chat-ui 1.3.2 → 1.4.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/index.d.ts +1 -0
- package/dist/chat/mobileView.d.ts +10 -0
- package/dist/vue-bcc-chat-ui.js +7273 -7240
- package/package.json +1 -1
- package/src/components/BccChatMessageList.vue +15 -3
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { onBeforeMount, onUnmounted, ref } from "vue";
|
|
2
|
+
import { onBeforeMount, onMounted, onUnmounted, ref, nextTick, watch, Ref } from "vue";
|
|
3
3
|
import chat from "../chat";
|
|
4
4
|
import { connect, disconnect } from "../chat/connection";
|
|
5
5
|
import { loggedIn } from "../chat/login";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "@cometchat/uikit-shared";
|
|
18
18
|
import { CometChatTheme } from "@cometchat/uikit-resources";
|
|
19
19
|
import { BaseMessage, Group, User } from "@cometchat/chat-sdk-javascript";
|
|
20
|
-
import {
|
|
20
|
+
import { watchAndApplyStyle } from "../chat/mobileView";
|
|
21
21
|
|
|
22
22
|
//import { ThreadedMessagesStyle } from '@cometchat/uikit-shared';
|
|
23
23
|
|
|
@@ -30,6 +30,19 @@ const componentId = ref(
|
|
|
30
30
|
);
|
|
31
31
|
const chatGroup = ref<Group | null>(null);
|
|
32
32
|
|
|
33
|
+
watch(chatGroup, (exists: null) => {
|
|
34
|
+
if (!exists) return;
|
|
35
|
+
|
|
36
|
+
nextTick(() => {
|
|
37
|
+
watchAndApplyStyle(
|
|
38
|
+
".bcc-chat-message-list",
|
|
39
|
+
".cc__imageviewer__close-button",
|
|
40
|
+
{ "padding-top": "env(safe-area-inset-top)" },
|
|
41
|
+
'cometchat-full-screen-viewer'
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
})
|
|
45
|
+
|
|
33
46
|
onBeforeMount(async () => {
|
|
34
47
|
await connect(componentId.value);
|
|
35
48
|
await loadData();
|
|
@@ -163,7 +176,6 @@ function getMessageListConfiguration(): MessageListConfiguration {
|
|
|
163
176
|
<template>
|
|
164
177
|
<div v-if="chatGroup" class="bcc-chat-message-list">
|
|
165
178
|
<CometChatMessages
|
|
166
|
-
v-if="chatGroup"
|
|
167
179
|
:hideMessageHeader="true"
|
|
168
180
|
:disableSoundForMessages="true"
|
|
169
181
|
:messageComposerConfiguration="messageComposerConfiguration"
|