@quidgest/chatbot 0.0.8 → 0.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.
@@ -0,0 +1,15 @@
1
+ <template>
2
+ <div class="pulsing-dots">
3
+ <span
4
+ v-for="(_, index) in dots"
5
+ :key="index"
6
+ class="dot"
7
+ :style="{ animationDelay: index * 0.2 + 's' }">
8
+ &bull;
9
+ </span>
10
+ </div>
11
+ </template>
12
+
13
+ <script setup lang="ts">
14
+ const dots = [1, 2, 3]
15
+ </script>
@@ -0,0 +1,15 @@
1
+ import { ResourceStrings } from './texts.type'
2
+
3
+ export type ChatBotProps = {
4
+ apiEndpoint?: string
5
+ controllerEndpoint?: string
6
+ texts?: ResourceStrings
7
+ username: string
8
+ projectPath: string
9
+ userImage?: string
10
+ chatbotImage?: string
11
+ dateFormat?: string
12
+ mode?: ChatBotMode
13
+ }
14
+
15
+ export type ChatBotMode = 'chat' | 'agent'
@@ -2,10 +2,17 @@ export type ChatBotMessage = {
2
2
  id: number
3
3
  message: string
4
4
  date: Date
5
- sender: 'bot' | 'user'
5
+ sender: ChatBotMessageSender
6
+ sessionID: string
7
+ imagePreviewUrl?: string
8
+ isWelcomeMessage?: boolean
6
9
  }
7
10
 
8
11
  export type ChatBotMessageContent = {
9
12
  content: string
10
13
  type: string
14
+ sessionID: string
15
+ imageUrl?: string
11
16
  }
17
+
18
+ export type ChatBotMessageSender = 'bot' | 'user'