-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathtypes.d.ts
More file actions
122 lines (122 loc) · 3.04 KB
/
types.d.ts
File metadata and controls
122 lines (122 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
export type BubbleParams = {
theme?: BubbleTheme;
};
export type BubbleTheme = {
chatWindow?: ChatWindowTheme;
button?: ButtonTheme;
tooltip?: ToolTipTheme;
disclaimer?: DisclaimerPopUpTheme;
customCSS?: string;
form?: FormTheme;
};
export type FormTheme = {
backgroundColor?: string;
textColor?: string;
};
export type TextInputTheme = {
backgroundColor?: string;
textColor?: string;
placeholder?: string;
sendButtonColor?: string;
maxChars?: number;
maxCharsWarningMessage?: string;
autoFocus?: boolean;
sendMessageSound?: boolean;
sendSoundLocation?: string;
receiveMessageSound?: boolean;
receiveSoundLocation?: string;
};
export type UserMessageTheme = {
backgroundColor?: string;
textColor?: string;
showAvatar?: boolean;
avatarSrc?: string;
};
export type BotMessageTheme = {
backgroundColor?: string;
textColor?: string;
showAvatar?: boolean;
avatarSrc?: string;
};
export type FollowUpPromptTheme = {
iconColor?: string;
textColor?: string;
text?: string;
};
export type FooterTheme = {
showFooter?: boolean;
textColor?: string;
text?: string;
company?: string;
companyLink?: string;
};
export type FeedbackTheme = {
color?: string;
};
export type ChatWindowTheme = {
showTitle?: boolean;
showAgentMessages?: boolean;
title?: string;
titleAvatarSrc?: string;
titleTextColor?: string;
titleBackgroundColor?: string;
welcomeMessage?: string;
errorMessage?: string;
backgroundColor?: string;
backgroundImage?: string;
height?: number;
width?: number;
fontSize?: number;
userMessage?: UserMessageTheme;
botMessage?: BotMessageTheme;
followUpPrompts?: FollowUpPromptTheme;
textInput?: TextInputTheme;
feedback?: FeedbackTheme;
footer?: FooterTheme;
sourceDocsTitle?: string;
poweredByTextColor?: string;
starterPrompts?: string[];
starterPromptFontSize?: number;
clearChatOnReload?: boolean;
dateTimeToggle?: DateTimeToggleTheme;
renderHTML?: boolean;
};
export type ButtonTheme = {
size?: 'small' | 'medium' | 'large' | number;
backgroundColor?: string;
iconColor?: string;
customIconSrc?: string;
bottom?: number;
right?: number;
dragAndDrop?: boolean;
autoWindowOpen?: autoWindowOpenTheme;
};
export type ToolTipTheme = {
showTooltip?: boolean;
tooltipMessage?: string;
tooltipBackgroundColor?: string;
tooltipTextColor?: string;
tooltipFontSize?: number;
};
export type autoWindowOpenTheme = {
autoOpen?: boolean;
openDelay?: number;
autoOpenOnMobile?: boolean;
};
export type DisclaimerPopUpTheme = {
title?: string;
message?: string;
textColor?: string;
buttonColor?: string;
buttonTextColor?: string;
buttonText?: string;
blurredBackgroundColor?: string;
backgroundColor?: string;
denyButtonBgColor?: string;
denyButtonText?: string;
};
export type DateTimeToggleTheme = {
date?: boolean;
time?: boolean;
};
//# sourceMappingURL=types.d.ts.map