bibot 1.0.50 → 1.0.52
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/index.js +20 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -4157,19 +4157,7 @@ var AiFollowUps = function AiFollowUps(_ref) {
|
|
4157
4157
|
borderRadius: '6px',
|
4158
4158
|
marginBottom: '20px'
|
4159
4159
|
}
|
4160
|
-
},
|
4161
|
-
style: {
|
4162
|
-
display: 'flex',
|
4163
|
-
justifyContent: 'center',
|
4164
|
-
alignItems: 'center',
|
4165
|
-
flexDirection: 'column',
|
4166
|
-
textAlign: 'center'
|
4167
|
-
}
|
4168
|
-
}, createElement("p", {
|
4169
|
-
style: {
|
4170
|
-
fontSize: '14px'
|
4171
|
-
}
|
4172
|
-
}, " Related questions ")), questions.map(function (question, index) {
|
4160
|
+
}, questions.map(function (question, index) {
|
4173
4161
|
var _chatBubbleConfig$col;
|
4174
4162
|
return createElement("div", {
|
4175
4163
|
key: index,
|
@@ -4208,6 +4196,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4208
4196
|
aiFollowUpQs = _useBiBotChatBot.aiFollowUpQs,
|
4209
4197
|
handlePredefinedQuestionSelect = _useBiBotChatBot.handlePredefinedQuestionSelect;
|
4210
4198
|
var isOnline = useOnlineStatus();
|
4199
|
+
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?';
|
4211
4200
|
return createElement("div", {
|
4212
4201
|
className: "chat-bubble " + (chatIsOpen ? 'open' : ''),
|
4213
4202
|
style: {
|
@@ -4385,7 +4374,21 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4385
4374
|
}
|
4386
4375
|
}, createElement(SendMessageIcon, {
|
4387
4376
|
color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
|
4388
|
-
})))), createElement("
|
4377
|
+
})))), createElement("div", {
|
4378
|
+
style: {
|
4379
|
+
display: 'flex',
|
4380
|
+
alignItems: 'center',
|
4381
|
+
padding: '0 10px'
|
4382
|
+
}
|
4383
|
+
}, createElement("span", {
|
4384
|
+
style: {
|
4385
|
+
fontSize: '12px',
|
4386
|
+
color: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
|
4387
|
+
textAlign: 'left',
|
4388
|
+
marginRight: '8px',
|
4389
|
+
whiteSpace: 'nowrap'
|
4390
|
+
}
|
4391
|
+
}, greeting), createElement("button", {
|
4389
4392
|
onClick: toggleChat,
|
4390
4393
|
className: styles['chat-toggle'],
|
4391
4394
|
style: {
|
@@ -4398,9 +4401,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4398
4401
|
display: 'flex',
|
4399
4402
|
alignItems: 'center',
|
4400
4403
|
justifyContent: 'center',
|
4401
|
-
border: 'none'
|
4404
|
+
border: 'none',
|
4405
|
+
position: 'relative'
|
4402
4406
|
}
|
4403
|
-
}, chatIsOpen ? createElement(CloseIcon, null) : createElement(ChatIcon, null)));
|
4407
|
+
}, chatIsOpen ? createElement(CloseIcon, null) : createElement(ChatIcon, null))));
|
4404
4408
|
};
|
4405
4409
|
|
4406
4410
|
var BiBot = function BiBot(bibotProps) {
|