@bcc-code/vue-bcc-chat-ui 5.7.7 → 6.1.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": "5.7.7",
5
+ "version": "6.1.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -29,6 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "peerDependencies": {
32
+ "@bcc-code/component-library-vue": "^0.6.0",
32
33
  "vue": "^3.0.0"
33
34
  },
34
35
  "devDependencies": {
@@ -47,10 +48,10 @@
47
48
  "typescript": "^5.8.2",
48
49
  "vite": "^6.2.0",
49
50
  "vite-plugin-dts": "^4.5.3",
50
- "vue": "^3.5.13"
51
+ "vue": "^3.5.13",
52
+ "@bcc-code/component-library-vue": "^0.6.1"
51
53
  },
52
54
  "dependencies": {
53
- "@bcc-code/design-library-vue": "^3.0.18",
54
55
  "@bcc-code/icons-vue": "^1.4.0",
55
56
  "@cometchat/chat-sdk-javascript": "4.0.12",
56
57
  "@cometchat/chat-uikit-vue": "4.3.24",
@@ -63,6 +64,7 @@
63
64
  "markdown-it": "^14.1.0",
64
65
  "panzoom": "^9.4.3"
65
66
  },
67
+ "packageManager": "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a",
66
68
  "scripts": {
67
69
  "dev": "vite",
68
70
  "build": "npm run hotfix && vite build",
@@ -1,17 +1,17 @@
1
1
  <script setup lang="ts">
2
- import chat from "../chat";
2
+ import { BccMessage } from "@bcc-code/component-library-vue";
3
3
  import { Group } from "@cometchat/chat-sdk-javascript";
4
+ import { localize } from "@cometchat/uikit-resources";
5
+ import { MessageComposerConfiguration } from "@cometchat/uikit-shared";
4
6
  import { computed, inject, nextTick, onMounted, onUnmounted, Ref, ref, watch, watchEffect } from 'vue';
7
+ import chat from "../chat";
8
+ import { CometChatMessages } from "../chat/cometChatPatches";
9
+ import { sendScheduledMessage } from "../chat/scheduledMessage";
5
10
  import { ChatInstance } from '../chat/types';
11
+ import { getMessageComposerConfiguration, getMessageListConfiguration, getThreadedMessagesConfiguration } from "../chat/uiKit";
6
12
  import BccAttachmentBox from "./BccAttachmentBox.vue";
7
13
  import BccChatSendButton from "./BccChatSendButton.vue";
8
- import { getMessageComposerConfiguration, getMessageListConfiguration, getThreadedMessagesConfiguration } from "../chat/uiKit";
9
- import { CometChatMessages } from "../chat/cometChatPatches";
10
- import { MessageComposerConfiguration } from "@cometchat/uikit-shared";
11
- import { sendScheduledMessage } from "../chat/scheduledMessage";
12
14
  import BccScheduledMessageModal from "./BccScheduledMessageModal.vue";
13
- import { BccAlert } from "@bcc-code/design-library-vue";
14
- import { localize } from "@cometchat/uikit-resources";
15
15
 
16
16
  const props = defineProps({
17
17
  chatUid: { type: String, required: true },
@@ -204,9 +204,9 @@ function isParticipant(): boolean {
204
204
  </div>
205
205
  <BccScheduledMessageModal v-if="showModal" @close="closeModal()" @send="scheduleMessage" :closeOnOutsideClick="false">
206
206
  </BccScheduledMessageModal>
207
- <BccAlert class="absolute top-0 w-[97%] mx-2 mt-1" icon closeButton context="danger" :open="showAlert"
208
- @close="showAlert = false">
207
+ <BccMessage v-if="showAlert" class="absolute top-0 w-[97%] mx-2 mt-1" icon severity="error"
208
+ closable @close="showAlert = false">
209
209
  {{ localize("ERROR_SENDING_SCHEDULED_MESSAGE") }}
210
- </BccAlert>
210
+ </BccMessage>
211
211
  </div>
212
212
  </template>
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { BccButton, BccFormMessage, BccModal } from '@bcc-code/design-library-vue';
2
+ import { BccButton, BccDialog, BccMessage } from '@bcc-code/component-library-vue';
3
3
  import { localize } from '@cometchat/uikit-resources';
4
4
  import { computed, onMounted, ref } from 'vue';
5
5
 
@@ -50,23 +50,21 @@ function scheduleMessage() {
50
50
  </script>
51
51
 
52
52
  <template>
53
- <BccModal class="modal" :title="title" :open="true" @close="close()" :closeOnOutsideClick="closeOnOutsideClick"
54
- :closeButton="true">
53
+ <BccDialog class="modal" :header="title" :visible="true" modal @hide="close()"
54
+ :dismissableMask="closeOnOutsideClick" :closable="true">
55
55
  <div class="flex flex-col w-full">
56
56
  <div class="flex w-full items-center justify-between">
57
57
  <input class="bcc-input text-right justify-end" type="date" v-model="dateInput" required />
58
58
  <p class="mx-2">{{ localize("AT") }}</p>
59
59
  <input class="bcc-input text-right justify-end" type="time" v-model="timeInput" required />
60
60
  </div>
61
- <BccFormMessage class="text-center mt-2 mb-0 text-red-500" v-if="!isDateInFuture" state="error">
61
+ <BccMessage class="mt-2" v-if="!isDateInFuture" severity="error">
62
62
  {{ localize("ERROR_DATE_IN_FUTURE") }}
63
- </BccFormMessage>
63
+ </BccMessage>
64
64
  </div>
65
65
 
66
- <template #primaryAction>
67
- <BccButton class="button" :disabled="messageSent" @click="scheduleMessage()">
68
- {{ localize("SCHEDULE_MESSAGE") }}
69
- </BccButton>
66
+ <template #footer>
67
+ <BccButton class="button" :label="localize('SCHEDULE_MESSAGE')" :disabled="messageSent" @click="scheduleMessage()" />
70
68
  </template>
71
- </BccModal>
69
+ </BccDialog>
72
70
  </template>
@@ -7,7 +7,7 @@ import { getScheduledMessagesComposerConfiguration, getScheduledMessagesListConf
7
7
  import { inject, nextTick, onMounted, onUnmounted, ref, Ref, watchEffect } from "vue";
8
8
  import { ChatInstance } from "../chat/types";
9
9
  import { localize } from "@cometchat/uikit-resources";
10
- import { BccAlert } from "@bcc-code/design-library-vue";
10
+ import { BccMessage } from "@bcc-code/component-library-vue";
11
11
  import BccAttachmentBox from "./BccAttachmentBox.vue";
12
12
  const emit = defineEmits(['close']);
13
13
 
@@ -87,14 +87,14 @@ onUnmounted(() => {
87
87
  <span v-if="chat.onlineStatus.value === 'offline'">Waiting for network...</span>
88
88
  <span v-else>Connecting... </span>
89
89
  </div>
90
- <BccAlert class="absolute top-0 w-[97%] mx-2 mt-11" icon closeButton context="danger"
91
- :open="chatInstance!.showAlert" @close="chatInstance!.showAlert = false">
90
+ <BccMessage v-if="chatInstance!.showAlert" class="absolute top-0 w-[97%] mx-2 mt-11" icon severity="error"
91
+ closable @close="chatInstance!.showAlert = false">
92
92
  {{ localize("ERROR_SENDING_SCHEDULED_MESSAGE") }}
93
- </BccAlert>
94
- <BccAlert class="absolute top-0 w-[97%] mx-2 mt-11" icon closeButton context="danger"
95
- :open="chatInstance!.showRescheduleAlert" @close="chatInstance!.showRescheduleAlert = false">
93
+ </BccMessage>
94
+ <BccMessage v-if="chatInstance!.showRescheduleAlert" class="absolute top-0 w-[97%] mx-2 mt-11" icon severity="error"
95
+ closable @close="chatInstance!.showRescheduleAlert = false">
96
96
  {{ localize("ERROR_RESCHEDULING_MESSAGE") }}
97
- </BccAlert>
97
+ </BccMessage>
98
98
  </div>
99
99
  </div>
100
100
  </template>