@quidgest/chatbot 0.0.9 → 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.
- package/dist/components/CBMessage.vue.d.ts +44 -0
- package/dist/components/ChatBot.vue.d.ts +10 -2
- package/dist/index.js +68 -6
- package/dist/index.mjs +2376 -1197
- package/dist/style.css +1 -1
- package/dist/types/chatbot.type.d.ts +1 -0
- package/dist/types/message.type.d.ts +5 -0
- package/package.json +12 -11
- package/src/assets/copy.svg +7 -0
- package/src/assets/styles/styles.scss +74 -20
- package/src/assets/thumbDown.svg +9 -0
- package/src/assets/thumbUp.svg +9 -0
- package/src/components/CBMessage.vue +200 -14
- package/src/components/ChatBot.vue +121 -13
- package/src/components/PulseDots.vue +11 -12
- package/src/types/chatbot.type.ts +3 -2
- package/src/types/message.type.ts +5 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChatBotMessageSender } from '../types/message.type';
|
|
2
|
+
import { ResourceStrings } from '../types/texts.type';
|
|
2
3
|
|
|
3
4
|
export interface CBMessageProps {
|
|
4
5
|
sender?: ChatBotMessageSender;
|
|
@@ -9,6 +10,22 @@ export interface CBMessageProps {
|
|
|
9
10
|
* Project locale
|
|
10
11
|
*/
|
|
11
12
|
dateFormat?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Image preview URL
|
|
15
|
+
*/
|
|
16
|
+
imagePreviewUrl?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Default chatBot texts
|
|
19
|
+
*/
|
|
20
|
+
texts?: ResourceStrings;
|
|
21
|
+
/**
|
|
22
|
+
* Default api endpoint
|
|
23
|
+
*/
|
|
24
|
+
apiEndpoint?: String;
|
|
25
|
+
/**
|
|
26
|
+
* Session ID
|
|
27
|
+
*/
|
|
28
|
+
sessionID?: String;
|
|
12
29
|
/**
|
|
13
30
|
* User image
|
|
14
31
|
*/
|
|
@@ -17,18 +34,45 @@ export interface CBMessageProps {
|
|
|
17
34
|
* Chatbot image
|
|
18
35
|
*/
|
|
19
36
|
chatbotImage: string;
|
|
37
|
+
/**
|
|
38
|
+
* Flag to mark welcome messages
|
|
39
|
+
*/
|
|
40
|
+
isWelcomeMessage?: boolean;
|
|
20
41
|
}
|
|
21
42
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CBMessageProps>, {
|
|
22
43
|
sender: string;
|
|
23
44
|
userImage: undefined;
|
|
24
45
|
date: () => Date;
|
|
46
|
+
texts: () => {
|
|
47
|
+
commentDialogTitle: string;
|
|
48
|
+
commentPlaceholder: string;
|
|
49
|
+
goodResponse: string;
|
|
50
|
+
badResponse: string;
|
|
51
|
+
copyResponse: string;
|
|
52
|
+
submitButton: string;
|
|
53
|
+
cancelButton: string;
|
|
54
|
+
senderImage: string;
|
|
55
|
+
imagePreview: string;
|
|
56
|
+
};
|
|
25
57
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CBMessageProps>, {
|
|
26
58
|
sender: string;
|
|
27
59
|
userImage: undefined;
|
|
28
60
|
date: () => Date;
|
|
61
|
+
texts: () => {
|
|
62
|
+
commentDialogTitle: string;
|
|
63
|
+
commentPlaceholder: string;
|
|
64
|
+
goodResponse: string;
|
|
65
|
+
badResponse: string;
|
|
66
|
+
copyResponse: string;
|
|
67
|
+
submitButton: string;
|
|
68
|
+
cancelButton: string;
|
|
69
|
+
senderImage: string;
|
|
70
|
+
imagePreview: string;
|
|
71
|
+
};
|
|
29
72
|
}>>> & Readonly<{}>, {
|
|
30
73
|
sender: ChatBotMessageSender;
|
|
31
74
|
date: Date;
|
|
75
|
+
texts: ResourceStrings;
|
|
32
76
|
userImage: string;
|
|
33
77
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
78
|
export default _default;
|
|
@@ -10,6 +10,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
10
|
sendMessage: string;
|
|
11
11
|
clearChat: string;
|
|
12
12
|
inputLabel: string;
|
|
13
|
+
imageUpload: string;
|
|
14
|
+
imageUploadQButton: string;
|
|
15
|
+
goodResponse: string;
|
|
16
|
+
badResponse: string;
|
|
13
17
|
initialMessage: string;
|
|
14
18
|
initialAgentMessage: string;
|
|
15
19
|
loginError: string;
|
|
@@ -25,17 +29,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
25
29
|
sendMessage: string;
|
|
26
30
|
clearChat: string;
|
|
27
31
|
inputLabel: string;
|
|
32
|
+
imageUpload: string;
|
|
33
|
+
imageUploadQButton: string;
|
|
34
|
+
goodResponse: string;
|
|
35
|
+
badResponse: string;
|
|
28
36
|
initialMessage: string;
|
|
29
37
|
initialAgentMessage: string;
|
|
30
38
|
loginError: string;
|
|
31
39
|
botIsSick: string;
|
|
32
40
|
};
|
|
33
41
|
}>>> & Readonly<{}>, {
|
|
42
|
+
texts: import('../types/texts.type').ResourceStrings;
|
|
43
|
+
apiEndpoint: string;
|
|
34
44
|
userImage: string;
|
|
35
45
|
chatbotImage: string;
|
|
36
46
|
mode: import('../types/chatbot.type').ChatBotMode;
|
|
37
|
-
apiEndpoint: string;
|
|
38
|
-
texts: import('../types/texts.type').ResourceStrings;
|
|
39
47
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
40
48
|
export default _default;
|
|
41
49
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|