bibot 1.0.51 → 1.0.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
@@ -3707,7 +3707,6 @@ var useBiBotChatBot = function useBiBotChatBot(bibotProps) {
|
|
3707
3707
|
var _useContext = useContext(AppContext),
|
3708
3708
|
state = _useContext.state,
|
3709
3709
|
dispatch = _useContext.dispatch;
|
3710
|
-
console.log('This is the value of test and bibotProps', bibotProps.test, bibotProps);
|
3711
3710
|
var baseURL = bibotProps !== null && bibotProps !== void 0 && bibotProps.test ? endpoints.getInferenceURL(bibotProps === null || bibotProps === void 0 ? void 0 : bibotProps.test) : endpoints.getInferenceURL(false);
|
3712
3711
|
var pluginAxiosInstance = createPluginAxiosInstance(baseURL, {}, {
|
3713
3712
|
Authorization: bibotProps.jwt
|
@@ -4196,6 +4195,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4196
4195
|
aiFollowUpQs = _useBiBotChatBot.aiFollowUpQs,
|
4197
4196
|
handlePredefinedQuestionSelect = _useBiBotChatBot.handlePredefinedQuestionSelect;
|
4198
4197
|
var isOnline = useOnlineStatus();
|
4198
|
+
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?';
|
4199
4199
|
return createElement("div", {
|
4200
4200
|
className: "chat-bubble " + (chatIsOpen ? 'open' : ''),
|
4201
4201
|
style: {
|
@@ -4373,7 +4373,21 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4373
4373
|
}
|
4374
4374
|
}, createElement(SendMessageIcon, {
|
4375
4375
|
color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
|
4376
|
-
})))), createElement("
|
4376
|
+
})))), createElement("div", {
|
4377
|
+
style: {
|
4378
|
+
display: 'flex',
|
4379
|
+
alignItems: 'center',
|
4380
|
+
padding: '0 10px'
|
4381
|
+
}
|
4382
|
+
}, createElement("span", {
|
4383
|
+
style: {
|
4384
|
+
fontSize: '12px',
|
4385
|
+
color: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
|
4386
|
+
textAlign: 'left',
|
4387
|
+
marginRight: '8px',
|
4388
|
+
whiteSpace: 'nowrap'
|
4389
|
+
}
|
4390
|
+
}, greeting), createElement("button", {
|
4377
4391
|
onClick: toggleChat,
|
4378
4392
|
className: styles['chat-toggle'],
|
4379
4393
|
style: {
|
@@ -4386,9 +4400,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4386
4400
|
display: 'flex',
|
4387
4401
|
alignItems: 'center',
|
4388
4402
|
justifyContent: 'center',
|
4389
|
-
border: 'none'
|
4403
|
+
border: 'none',
|
4404
|
+
position: 'relative'
|
4390
4405
|
}
|
4391
|
-
}, chatIsOpen ? createElement(CloseIcon, null) : createElement(ChatIcon, null)));
|
4406
|
+
}, chatIsOpen ? createElement(CloseIcon, null) : createElement(ChatIcon, null))));
|
4392
4407
|
};
|
4393
4408
|
|
4394
4409
|
var BiBot = function BiBot(bibotProps) {
|