@bcc-code/vue-bcc-chat-ui 3.30.0 → 3.34.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.30.0",
5
+ "version": "3.34.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -5,6 +5,7 @@ import { ChatInstance } from '../chat/types';
5
5
  import { CometChatUIKitLoginListener } from '@cometchat/uikit-shared';
6
6
  import chat from '../chat';
7
7
  import { getCurrentEnvironment } from '../chat/environment';
8
+ import { getAccessToken } from '../chat/login';
8
9
 
9
10
  const chatInstance = inject<Ref<ChatInstance>>("chatInstance");
10
11
 
@@ -23,7 +24,7 @@ async function redirectToScheduledMessagesChat() {
23
24
  method: 'POST',
24
25
  headers: {
25
26
  'Content-Type': 'application/json',
26
- 'Authorization': "Bearer " + localStorage.getItem('at')
27
+ 'Authorization': `Bearer ${getAccessToken()}`
27
28
  }
28
29
  }).then(async (res) => {
29
30
  if (res.ok) {
@@ -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