@bcc-code/vue-bcc-chat-ui 1.1.6 → 1.1.7

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": "1.1.6",
5
+ "version": "1.1.7",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -8,7 +8,7 @@ import {
8
8
  ImageBubbleStyle,
9
9
  MessageBubbleAlignment,
10
10
  } from "@cometchat/chat-uikit-vue";
11
- import { MessageListConfiguration } from "@cometchat/uikit-shared";
11
+ import { MessageListConfiguration, MessageComposerConfiguration } from "@cometchat/uikit-shared";
12
12
  import { Group } from '@cometchat/chat-sdk-javascript';
13
13
  import { watch, Ref } from 'vue';
14
14
  //import { ThreadedMessagesStyle } from '@cometchat/uikit-shared';
@@ -56,6 +56,11 @@ const loadData = async () => {
56
56
  };
57
57
 
58
58
  const messageListConfiguration:Ref<any> = ref(null);
59
+ const messageComposerConfiguration:Ref<any> = ref(new MessageComposerConfiguration({
60
+ hideLiveReaction: true,
61
+ hideVoiceRecording: true
62
+ }));
63
+
59
64
  let templatesInitialized = false;
60
65
  const initTemplates = () => {
61
66
  if (templatesInitialized) {
@@ -91,6 +96,7 @@ const initTemplates = () => {
91
96
  };
92
97
 
93
98
  messageListConfiguration.value = new MessageListConfiguration({
99
+
94
100
  templates: definedTemplates,
95
101
  });
96
102
  }
@@ -99,7 +105,7 @@ const initTemplates = () => {
99
105
 
100
106
  <template>
101
107
  <div v-if="chatGroup" class="bcc-chat-message-list">
102
- <CometChatMessages v-if="chatGroup" :hideMessageHeader="true" :messageListConfiguration="messageListConfiguration" :hideMessageComposer="false" :hideDetails="true" :group="chatGroup"></CometChatMessages>
108
+ <CometChatMessages v-if="chatGroup" :hideMessageHeader="true" :messageComposerConfiguration="messageComposerConfiguration" :messageListConfiguration="messageListConfiguration" :hideMessageComposer="false" :hideDetails="true" :group="chatGroup"></CometChatMessages>
103
109
  </div>
104
110
  </template>
105
111