bibot 1.0.51 → 1.0.52
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4199,6 +4199,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4199
4199
|
aiFollowUpQs = _useBiBotChatBot.aiFollowUpQs,
|
4200
4200
|
handlePredefinedQuestionSelect = _useBiBotChatBot.handlePredefinedQuestionSelect;
|
4201
4201
|
var isOnline = useOnlineStatus();
|
4202
|
+
var greeting = chatBubbleConfig !== null && chatBubbleConfig !== void 0 && chatBubbleConfig.knownUser ? "Hi, " + chatBubbleConfig.knownUser + "! How can I help you today?" : 'Hello! How can I help you today?';
|
4202
4203
|
return React.createElement("div", {
|
4203
4204
|
className: "chat-bubble " + (chatIsOpen ? 'open' : ''),
|
4204
4205
|
style: {
|
@@ -4376,7 +4377,21 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4376
4377
|
}
|
4377
4378
|
}, React.createElement(SendMessageIcon, {
|
4378
4379
|
color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
|
4379
|
-
})))), React.createElement("
|
4380
|
+
})))), React.createElement("div", {
|
4381
|
+
style: {
|
4382
|
+
display: 'flex',
|
4383
|
+
alignItems: 'center',
|
4384
|
+
padding: '0 10px'
|
4385
|
+
}
|
4386
|
+
}, React.createElement("span", {
|
4387
|
+
style: {
|
4388
|
+
fontSize: '12px',
|
4389
|
+
color: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
|
4390
|
+
textAlign: 'left',
|
4391
|
+
marginRight: '8px',
|
4392
|
+
whiteSpace: 'nowrap'
|
4393
|
+
}
|
4394
|
+
}, greeting), React.createElement("button", {
|
4380
4395
|
onClick: toggleChat,
|
4381
4396
|
className: styles['chat-toggle'],
|
4382
4397
|
style: {
|
@@ -4389,9 +4404,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4389
4404
|
display: 'flex',
|
4390
4405
|
alignItems: 'center',
|
4391
4406
|
justifyContent: 'center',
|
4392
|
-
border: 'none'
|
4407
|
+
border: 'none',
|
4408
|
+
position: 'relative'
|
4393
4409
|
}
|
4394
|
-
}, chatIsOpen ? React.createElement(CloseIcon, null) : React.createElement(ChatIcon, null)));
|
4410
|
+
}, chatIsOpen ? React.createElement(CloseIcon, null) : React.createElement(ChatIcon, null))));
|
4395
4411
|
};
|
4396
4412
|
|
4397
4413
|
var BiBot = function BiBot(bibotProps) {
|