bibot 1.0.31 → 1.0.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -4079,7 +4079,8 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4079
4079
  color: '#000',
4080
4080
  backgroundColor: '#fff',
4081
4081
  padding: 10,
4082
- borderRadius: '6px'
4082
+ borderRadius: '6px',
4083
+ marginBottom: '20px'
4083
4084
  }
4084
4085
  }, createElement("div", {
4085
4086
  style: {
@@ -4100,8 +4101,7 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4100
4101
  }
4101
4102
  }, "Welcome!"), createElement("p", {
4102
4103
  style: {
4103
- fontSize: '14px',
4104
- fontWeight: 'bold'
4104
+ fontSize: '14px'
4105
4105
  }
4106
4106
  }, "Are you looking for answers to any of these questions? Click for an answer ")), questions.map(function (question, index) {
4107
4107
  var _chatBubbleConfig$col;
@@ -4157,7 +4157,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4157
4157
  }, chatIsOpen && createElement("div", {
4158
4158
  className: styles['chat-window'],
4159
4159
  style: {
4160
- backgroundColor: '#dfdfdf',
4160
+ backgroundColor: '#fff',
4161
4161
  position: 'absolute',
4162
4162
  bottom: '60px',
4163
4163
  right: '25px',
@@ -4166,7 +4166,8 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4166
4166
  borderRadius: 10,
4167
4167
  display: 'flex',
4168
4168
  flexDirection: 'column',
4169
- justifyContent: 'space-between'
4169
+ justifyContent: 'space-between',
4170
+ border: "0.5px solid " + (chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color)
4170
4171
  }
4171
4172
  }, createElement("div", {
4172
4173
  className: styles['chat-header'],
@@ -4228,7 +4229,11 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4228
4229
  flexGrow: 1,
4229
4230
  flexDirection: 'column'
4230
4231
  }
4231
- }, messages.map(function (message, index) {
4232
+ }, showPredefinedQuestions && predefinedQuestions && predefinedQuestions.length > 0 && createElement(PredefinedQuestions, {
4233
+ questions: predefinedQuestions.slice(0, 3),
4234
+ onSelect: handlePredefinedQuestionSelect,
4235
+ clientId: clientId
4236
+ }), messages.map(function (message, index) {
4232
4237
  return message.sender === 'user' ? createElement("div", {
4233
4238
  key: index,
4234
4239
  className: "message " + message.sender,
@@ -4272,22 +4277,18 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4272
4277
  marginLeft: '20px'
4273
4278
  },
4274
4279
  className: 'message'
4275
- }, ' ', createElement(Loader, null)), showPredefinedQuestions && predefinedQuestions && predefinedQuestions.length > 0 && createElement(PredefinedQuestions, {
4276
- questions: predefinedQuestions.slice(0, 3),
4277
- onSelect: handlePredefinedQuestionSelect,
4278
- clientId: clientId
4279
- }), createElement("div", {
4280
+ }, ' ', createElement(Loader, null)), createElement("div", {
4280
4281
  ref: messageEndRef
4281
4282
  })), createElement("div", {
4282
4283
  className: styles['input-area'],
4283
4284
  style: {
4284
4285
  display: 'flex',
4285
4286
  alignItems: 'center',
4286
- borderTop: '1px solid #b6b6b6',
4287
+ borderTop: '1px solid #d7d7d7',
4287
4288
  padding: 10,
4288
4289
  borderBottomLeftRadius: 8,
4289
4290
  borderBottomRightRadius: 8,
4290
- backgroundColor: '#dedede'
4291
+ backgroundColor: '#fff'
4291
4292
  }
4292
4293
  }, createElement("input", {
4293
4294
  style: {