bibot 1.0.50 → 1.0.52

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -4160,19 +4160,7 @@ var AiFollowUps = function AiFollowUps(_ref) {
4160
4160
  borderRadius: '6px',
4161
4161
  marginBottom: '20px'
4162
4162
  }
4163
- }, React.createElement("div", {
4164
- style: {
4165
- display: 'flex',
4166
- justifyContent: 'center',
4167
- alignItems: 'center',
4168
- flexDirection: 'column',
4169
- textAlign: 'center'
4170
- }
4171
- }, React.createElement("p", {
4172
- style: {
4173
- fontSize: '14px'
4174
- }
4175
- }, " Related questions ")), questions.map(function (question, index) {
4163
+ }, questions.map(function (question, index) {
4176
4164
  var _chatBubbleConfig$col;
4177
4165
  return React.createElement("div", {
4178
4166
  key: index,
@@ -4211,6 +4199,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4211
4199
  aiFollowUpQs = _useBiBotChatBot.aiFollowUpQs,
4212
4200
  handlePredefinedQuestionSelect = _useBiBotChatBot.handlePredefinedQuestionSelect;
4213
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?';
4214
4203
  return React.createElement("div", {
4215
4204
  className: "chat-bubble " + (chatIsOpen ? 'open' : ''),
4216
4205
  style: {
@@ -4388,7 +4377,21 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4388
4377
  }
4389
4378
  }, React.createElement(SendMessageIcon, {
4390
4379
  color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
4391
- })))), React.createElement("button", {
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", {
4392
4395
  onClick: toggleChat,
4393
4396
  className: styles['chat-toggle'],
4394
4397
  style: {
@@ -4401,9 +4404,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4401
4404
  display: 'flex',
4402
4405
  alignItems: 'center',
4403
4406
  justifyContent: 'center',
4404
- border: 'none'
4407
+ border: 'none',
4408
+ position: 'relative'
4405
4409
  }
4406
- }, chatIsOpen ? React.createElement(CloseIcon, null) : React.createElement(ChatIcon, null)));
4410
+ }, chatIsOpen ? React.createElement(CloseIcon, null) : React.createElement(ChatIcon, null))));
4407
4411
  };
4408
4412
 
4409
4413
  var BiBot = function BiBot(bibotProps) {