@bcc-code/vue-bcc-chat-ui 3.34.0 → 3.35.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.34.0",
5
+ "version": "3.35.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -1,16 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  import chat from "../chat";
3
3
  import { Group } from "@cometchat/chat-sdk-javascript";
4
- import { inject, nextTick, onMounted, onUnmounted, Ref, ref, watch, watchEffect } from 'vue';
5
- import { sendScheduledMessage } from '../chat/scheduledMessage';
4
+ import { inject, nextTick, onMounted, Ref, ref, watch, watchEffect } from 'vue';
6
5
  import { ChatInstance } from '../chat/types';
7
6
  import BccAttachmentBox from "./BccAttachmentBox.vue";
8
7
  import BccChatSendButton from "./BccChatSendButton.vue";
9
8
  import { getMessageComposerConfiguration, getMessageListConfiguration, getThreadedMessagesConfiguration } from "../chat/uiKit";
10
9
  import { CometChatMessages } from "../chat/cometChatPatches";
11
- import BccScheduledMessageModal from "./BccScheduledMessageModal.vue";
12
- import { BccAlert } from "@bcc-code/design-library-vue";
13
- import { localize } from "@cometchat/uikit-resources";
14
10
  import { MessageComposerConfiguration } from "@cometchat/uikit-shared";
15
11
 
16
12
  const props = defineProps({
@@ -30,11 +26,9 @@ onMounted(async () => {
30
26
  chatGroup.value = props.chatGroup
31
27
  // attachEventlisteners();
32
28
 
29
+ messageComposerConfiguration.value.text = chatInstance?.value.userInput ?? '';
30
+
33
31
  await nextTick();
34
- const userInput = document.querySelector('.messageinput-input');
35
- if (userInput && chatInstance?.value.userInput) {
36
- userInput.innerHTML = chatInstance.value.userInput;
37
- }
38
32
  if (chatInstance?.value.decoyAttachment) {
39
33
  chatInstance.value.captionedAttachment = chatInstance.value.decoyAttachment
40
34
  chatInstance.value.decoyAttachment = null