@bcc-code/vue-bcc-chat-ui 1.1.5 → 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.5",
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,20 +96,16 @@ const initTemplates = () => {
91
96
  };
92
97
 
93
98
  messageListConfiguration.value = new MessageListConfiguration({
99
+
94
100
  templates: definedTemplates,
95
101
  });
96
-
97
102
  }
98
103
 
99
-
100
-
101
-
102
-
103
104
  </script>
104
105
 
105
106
  <template>
106
107
  <div v-if="chatGroup" class="bcc-chat-message-list">
107
- <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>
108
109
  </div>
109
110
  </template>
110
111