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.js
CHANGED
@@ -3710,7 +3710,6 @@ var useBiBotChatBot = function useBiBotChatBot(bibotProps) {
|
|
3710
3710
|
var _useContext = React.useContext(AppContext),
|
3711
3711
|
state = _useContext.state,
|
3712
3712
|
dispatch = _useContext.dispatch;
|
3713
|
-
console.log('This is the value of test and bibotProps', bibotProps.test, bibotProps);
|
3714
3713
|
var baseURL = bibotProps !== null && bibotProps !== void 0 && bibotProps.test ? endpoints.getInferenceURL(bibotProps === null || bibotProps === void 0 ? void 0 : bibotProps.test) : endpoints.getInferenceURL(false);
|
3715
3714
|
var pluginAxiosInstance = createPluginAxiosInstance(baseURL, {}, {
|
3716
3715
|
Authorization: bibotProps.jwt
|
@@ -4199,6 +4198,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4199
4198
|
aiFollowUpQs = _useBiBotChatBot.aiFollowUpQs,
|
4200
4199
|
handlePredefinedQuestionSelect = _useBiBotChatBot.handlePredefinedQuestionSelect;
|
4201
4200
|
var isOnline = useOnlineStatus();
|
4201
|
+
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
4202
|
return React.createElement("div", {
|
4203
4203
|
className: "chat-bubble " + (chatIsOpen ? 'open' : ''),
|
4204
4204
|
style: {
|
@@ -4376,7 +4376,21 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4376
4376
|
}
|
4377
4377
|
}, React.createElement(SendMessageIcon, {
|
4378
4378
|
color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
|
4379
|
-
})))), React.createElement("
|
4379
|
+
})))), React.createElement("div", {
|
4380
|
+
style: {
|
4381
|
+
display: 'flex',
|
4382
|
+
alignItems: 'center',
|
4383
|
+
padding: '0 10px'
|
4384
|
+
}
|
4385
|
+
}, React.createElement("span", {
|
4386
|
+
style: {
|
4387
|
+
fontSize: '12px',
|
4388
|
+
color: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
|
4389
|
+
textAlign: 'left',
|
4390
|
+
marginRight: '8px',
|
4391
|
+
whiteSpace: 'nowrap'
|
4392
|
+
}
|
4393
|
+
}, greeting), React.createElement("button", {
|
4380
4394
|
onClick: toggleChat,
|
4381
4395
|
className: styles['chat-toggle'],
|
4382
4396
|
style: {
|
@@ -4389,9 +4403,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4389
4403
|
display: 'flex',
|
4390
4404
|
alignItems: 'center',
|
4391
4405
|
justifyContent: 'center',
|
4392
|
-
border: 'none'
|
4406
|
+
border: 'none',
|
4407
|
+
position: 'relative'
|
4393
4408
|
}
|
4394
|
-
}, chatIsOpen ? React.createElement(CloseIcon, null) : React.createElement(ChatIcon, null)));
|
4409
|
+
}, chatIsOpen ? React.createElement(CloseIcon, null) : React.createElement(ChatIcon, null))));
|
4395
4410
|
};
|
4396
4411
|
|
4397
4412
|
var BiBot = function BiBot(bibotProps) {
|