@@ -88,15 +88,17 @@ const buttonConfig = (isReact = false) => {
88
88
backgroundColor: "#3B81F6",
89
89
right: 20,
90
90
bottom: 20,
91
- size: "medium",
91
+ size: 48, // small | medium | large | number
92
+ dragAndDrop: true,
92
93
iconColor: "white",
93
94
customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
94
95
}`
95
96
: `button: {
96
97
backgroundColor: "#3B81F6",
97
98
right: 20,
98
99
bottom: 20,
99
- size: "medium",
100
+ size: 48, // small | medium | large | number
101
+ dragAndDrop: true,
100
102
iconColor: "white",
101
103
customIconSrc: "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
102
104
}`
@@ -105,7 +107,11 @@ const buttonConfig = (isReact = false) => {
105
107
const chatwindowConfig = ( isReact = false ) => {
106
108
return isReact
107
109
? `chatWindow: {
108
- welcomeMessage: "Hello! This is custom welcome message",
110
+ showTitle: true,
111
+ title: 'Flowise Bot',
112
+ titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
113
+ welcomeMessage: 'Hello! This is custom welcome message',
114
+ errorMessage: 'This is a custom error message',
109
115
backgroundColor: "#ffffff",
110
116
height: 700,
111
117
width: 400,
@@ -124,14 +130,29 @@ const chatwindowConfig = (isReact = false) => {
124
130
avatarSrc: "https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/usericon.png",
125
131
},
126
132
textInput: {
127
- placeholder: "Type your question",
128
- backgroundColor: "#ffffff",
129
- textColor: "#303235",
130
- sendButtonColor: "#3B81F6",
133
+ placeholder: 'Type your question',
134
+ backgroundColor: '#ffffff',
135
+ textColor: '#303235',
136
+ sendButtonColor: '#3B81F6',
137
+ maxChars: 50,
138
+ maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.',
139
+ },
140
+ feedback: {
141
+ color: '#303235',
142
+ },
143
+ footer: {
144
+ textColor: '#303235',
145
+ text: 'Powered by',
146
+ company: 'Flowise',
147
+ companyLink: 'https://flowiseai.com',
131
148
}
132
149
}`
133
150
: `chatWindow: {
134
- welcomeMessage: "Hello! This is custom welcome message",
151
+ showTitle: true,
152
+ title: 'Flowise Bot',
153
+ titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
154
+ welcomeMessage: 'Hello! This is custom welcome message',
155
+ errorMessage: 'This is a custom error message',
135
156
backgroundColor: "#ffffff",
136
157
height: 700,
137
158
width: 400,
@@ -150,10 +171,21 @@ const chatwindowConfig = (isReact = false) => {
150
171
avatarSrc: "https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/usericon.png",
151
172
},
152
173
textInput: {
153
- placeholder: "Type your question",
154
- backgroundColor: "#ffffff",
155
- textColor: "#303235",
156
- sendButtonColor: "#3B81F6",
174
+ placeholder: 'Type your question',
175
+ backgroundColor: '#ffffff',
176
+ textColor: '#303235',
177
+ sendButtonColor: '#3B81F6',
178
+ maxChars: 50,
179
+ maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 50 characters.',
180
+ },
181
+ feedback: {
182
+ color: '#303235',
183
+ },
184
+ footer: {
185
+ textColor: '#303235',
186
+ text: 'Powered by',
187
+ company: 'Flowise',
188
+ companyLink: 'https://flowiseai.com',
157
189
}
158
190
}`
159
191
}
0 commit comments