@quidgest/chatbot 0.0.7 → 0.0.9

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,16 @@
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>
16
+
@@ -0,0 +1,14 @@
1
+ import { ResourceStrings } from "./texts.type"
2
+
3
+ export type ChatBotProps = {
4
+ apiEndpoint?: string
5
+ texts?: ResourceStrings
6
+ username: string
7
+ projectPath: string
8
+ userImage?: string
9
+ chatbotImage?: string
10
+ dateFormat?: string
11
+ mode?: ChatBotMode
12
+ }
13
+
14
+ export type ChatBotMode = 'chat' | 'agent'
@@ -2,10 +2,12 @@ export type ChatBotMessage = {
2
2
  id: number
3
3
  message: string
4
4
  date: Date
5
- sender: 'bot' | 'user'
5
+ sender: ChatBotMessageSender
6
6
  }
7
7
 
8
8
  export type ChatBotMessageContent = {
9
9
  content: string
10
10
  type: string
11
11
  }
12
+
13
+ export type ChatBotMessageSender = 'bot' | 'user'