@bcc-code/vue-bcc-chat-ui 3.37.0 → 3.40.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@bcc-code/vue-bcc-chat-ui",
3
3
  "author": "bcc-code",
4
4
  "license": "Apache-2.0",
5
- "version": "3.37.0",
5
+ "version": "3.40.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -22,6 +22,7 @@ import BccScheduledMessages from "./BccScheduledMessages.vue";
22
22
  const props = defineProps({
23
23
  chatUid: { type: String, required: true },
24
24
  senderDisplayName: { type: String, required: false },
25
+ hideDeletedMessages: { type: Boolean, required: false, default: false },
25
26
  groupMessageGetter: {
26
27
  type: Function as PropType<(guid: string, query: string) => Promise<any>>,
27
28
  required: false,
@@ -143,7 +144,7 @@ function closeScheduledMessage() {
143
144
  <div>Connecting: {{chat.connecting.value}}</div>
144
145
  <div>CometChat: {{cometChatStatus}} <button @click="getCometChatStatus()">[refresh]</button></div>
145
146
  </div> -->
146
- <BccChatMessages v-if="chatGroup && !chatInstance.showScheduledMessagesChat" :chatGroup="chatGroup"
147
+ <BccChatMessages v-if="chatGroup && !chatInstance.showScheduledMessagesChat" :chatGroup="chatGroup" :hide-deleted-messages="props.hideDeletedMessages"
147
148
  :chatUid="props.chatUid"></BccChatMessages>
148
149
  <BccScheduledMessages v-else-if="chatGroup && chatInstance.showScheduledMessagesChat"
149
150
  class="bcc-scheduled-message-list" :chatGroup="chatInstance.scheduledMessageChat!"
@@ -11,14 +11,15 @@ import { MessageComposerConfiguration } from "@cometchat/uikit-shared";
11
11
 
12
12
  const props = defineProps({
13
13
  chatUid: { type: String, required: true },
14
- chatGroup: { type: Group, required: true }
14
+ chatGroup: { type: Group, required: true },
15
+ hideDeletedMessages: { type: Boolean, required: false, default: false }
15
16
  })
16
17
 
17
18
  const chatGroup = ref<Group>();
18
19
 
19
20
  const chatInstance = inject<Ref<ChatInstance>>("chatInstance");
20
21
  const messageComposerConfiguration = getMessageComposerConfiguration(chatInstance);
21
- const messageListConfiguration = getMessageListConfiguration(chatInstance, chatGroup);
22
+ const messageListConfiguration = getMessageListConfiguration(props.hideDeletedMessages, chatInstance, chatGroup);
22
23
  const threadedMessagesConfiguration = getThreadedMessagesConfiguration(chatGroup);
23
24
  threadedMessagesConfiguration.messageComposerConfiguration = getThreadedMessageComposerConfig();
24
25
 
@@ -2,7 +2,6 @@
2
2
  import { BccButton, BccFormMessage, BccModal } from '@bcc-code/design-library-vue';
3
3
  import { localize } from '@cometchat/uikit-resources';
4
4
  import { computed, onMounted, ref } from 'vue';
5
- import "../style.css";
6
5
 
7
6
  const props = defineProps({
8
7
  isReschedule: { type: Boolean, default: false }