@bcc-code/vue-bcc-chat-ui 3.32.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.32.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
@@ -106,7 +106,8 @@ function scheduleMessage() {
106
106
  .modal {
107
107
  width: 90%;
108
108
  margin-left: 5%;
109
- margin-bottom: 40%;
109
+ margin-top: auto;
110
+ margin-bottom: auto;
110
111
  background-color: var(--cc__background);
111
112
  color: var(--cc__text-color);
112
113
  }
@@ -105,13 +105,16 @@ onUnmounted(() => {
105
105
  width: 92%;
106
106
  font-size: large;
107
107
  vertical-align: middle;
108
- margin: 3px
108
+ margin-top: 4px;
109
+ margin-left: 6px;
110
+ color: var(--cc__text-color);
109
111
  }
110
112
 
111
113
  .closeIcon {
112
114
  max-height: 35px;
113
115
  width: 8%;
114
116
  cursor: pointer;
117
+ color: var(--cc__text-color);
115
118
  }
116
119
  }
117
120