@schmitech/chatbot-widget 0.4.7 → 0.4.8
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/README.md +73 -46
- package/dist/chatbot-widget.bundle.js +61 -96
- package/dist/chatbot-widget.css +1 -1
- package/dist/chatbot-widget.es.js +2469 -2632
- package/dist/chatbot-widget.umd.js +60 -95
- package/dist/config/index.d.ts +0 -4
- package/dist/ui/MessagesList.d.ts +2 -2
- package/package.json +1 -1
- package/dist/config.d.ts +0 -42
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export type IconType = 'heart' | 'message-square' | 'message-circle' | 'help-circle' | 'info' | 'bot' | 'sparkles';
|
|
2
1
|
export interface ChatConfig {
|
|
3
2
|
header: {
|
|
4
3
|
title: string;
|
|
@@ -30,7 +29,6 @@ export interface ChatConfig {
|
|
|
30
29
|
background: string;
|
|
31
30
|
hoverBackground?: string;
|
|
32
31
|
};
|
|
33
|
-
iconColor: string;
|
|
34
32
|
};
|
|
35
33
|
welcome: {
|
|
36
34
|
title: string;
|
|
@@ -40,7 +38,6 @@ export interface ChatConfig {
|
|
|
40
38
|
text: string;
|
|
41
39
|
query: string;
|
|
42
40
|
}>;
|
|
43
|
-
icon?: IconType;
|
|
44
41
|
}
|
|
45
42
|
export declare const defaultTheme: {
|
|
46
43
|
primary: string;
|
|
@@ -69,6 +66,5 @@ export declare const defaultTheme: {
|
|
|
69
66
|
background: string;
|
|
70
67
|
hoverBackground: string;
|
|
71
68
|
};
|
|
72
|
-
iconColor: string;
|
|
73
69
|
};
|
|
74
70
|
export declare const getChatConfig: () => ChatConfig;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Message as MessageType } from '../store/chatStore';
|
|
3
|
-
import {
|
|
3
|
+
import { ChatConfig } from '../config/index';
|
|
4
4
|
export interface MessagesListProps {
|
|
5
5
|
messages: MessageType[];
|
|
6
6
|
isLoading: boolean;
|
|
7
|
-
theme:
|
|
7
|
+
theme: ChatConfig['theme'];
|
|
8
8
|
currentConfig: ChatConfig;
|
|
9
9
|
showScrollTop: boolean;
|
|
10
10
|
showScrollBottom: boolean;
|
package/package.json
CHANGED
package/dist/config.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface ThemeConfig {
|
|
2
|
-
primary: string;
|
|
3
|
-
secondary: string;
|
|
4
|
-
background: string;
|
|
5
|
-
text: {
|
|
6
|
-
primary: string;
|
|
7
|
-
secondary: string;
|
|
8
|
-
inverse: string;
|
|
9
|
-
};
|
|
10
|
-
input: {
|
|
11
|
-
background: string;
|
|
12
|
-
border: string;
|
|
13
|
-
};
|
|
14
|
-
message: {
|
|
15
|
-
user: string;
|
|
16
|
-
assistant: string;
|
|
17
|
-
userText: string;
|
|
18
|
-
};
|
|
19
|
-
suggestedQuestions: {
|
|
20
|
-
background: string;
|
|
21
|
-
hoverBackground: string;
|
|
22
|
-
text: string;
|
|
23
|
-
};
|
|
24
|
-
iconColor: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const defaultTheme: ThemeConfig;
|
|
27
|
-
export type IconType = 'heart' | 'message-square' | 'message-circle' | 'help-circle' | 'info' | 'bot' | 'sparkles';
|
|
28
|
-
export interface ChatConfig {
|
|
29
|
-
header: {
|
|
30
|
-
title: string;
|
|
31
|
-
};
|
|
32
|
-
welcome: {
|
|
33
|
-
title: string;
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
suggestedQuestions: Array<{
|
|
37
|
-
text: string;
|
|
38
|
-
query: string;
|
|
39
|
-
}>;
|
|
40
|
-
theme: ThemeConfig;
|
|
41
|
-
icon?: IconType;
|
|
42
|
-
}
|