bibot 1.0.51 → 1.0.52

Sign up to get free protection for your applications and to get access to all the features.
@@ -4196,6 +4196,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4196
4196
  aiFollowUpQs = _useBiBotChatBot.aiFollowUpQs,
4197
4197
  handlePredefinedQuestionSelect = _useBiBotChatBot.handlePredefinedQuestionSelect;
4198
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?';
4199
4200
  return createElement("div", {
4200
4201
  className: "chat-bubble " + (chatIsOpen ? 'open' : ''),
4201
4202
  style: {
@@ -4373,7 +4374,21 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4373
4374
  }
4374
4375
  }, createElement(SendMessageIcon, {
4375
4376
  color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
4376
- })))), createElement("button", {
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", {
4377
4392
  onClick: toggleChat,
4378
4393
  className: styles['chat-toggle'],
4379
4394
  style: {
@@ -4386,9 +4401,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4386
4401
  display: 'flex',
4387
4402
  alignItems: 'center',
4388
4403
  justifyContent: 'center',
4389
- border: 'none'
4404
+ border: 'none',
4405
+ position: 'relative'
4390
4406
  }
4391
- }, chatIsOpen ? createElement(CloseIcon, null) : createElement(ChatIcon, null)));
4407
+ }, chatIsOpen ? createElement(CloseIcon, null) : createElement(ChatIcon, null))));
4392
4408
  };
4393
4409
 
4394
4410
  var BiBot = function BiBot(bibotProps) {