bibot 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4082,7 +4082,8 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4082
4082
  color: '#000',
4083
4083
  backgroundColor: '#fff',
4084
4084
  padding: 10,
4085
- borderRadius: '6px'
4085
+ borderRadius: '6px',
4086
+ marginBottom: '20px'
4086
4087
  }
4087
4088
  }, React.createElement("div", {
4088
4089
  style: {
@@ -4103,8 +4104,7 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4103
4104
  }
4104
4105
  }, "Welcome!"), React.createElement("p", {
4105
4106
  style: {
4106
- fontSize: '14px',
4107
- fontWeight: 'bold'
4107
+ fontSize: '14px'
4108
4108
  }
4109
4109
  }, "Are you looking for answers to any of these questions? Click for an answer ")), questions.map(function (question, index) {
4110
4110
  var _chatBubbleConfig$col;
@@ -4160,7 +4160,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4160
4160
  }, chatIsOpen && React.createElement("div", {
4161
4161
  className: styles['chat-window'],
4162
4162
  style: {
4163
- backgroundColor: '#dfdfdf',
4163
+ backgroundColor: '#fff',
4164
4164
  position: 'absolute',
4165
4165
  bottom: '60px',
4166
4166
  right: '25px',
@@ -4169,7 +4169,8 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4169
4169
  borderRadius: 10,
4170
4170
  display: 'flex',
4171
4171
  flexDirection: 'column',
4172
- justifyContent: 'space-between'
4172
+ justifyContent: 'space-between',
4173
+ border: "0.5px solid " + (chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color)
4173
4174
  }
4174
4175
  }, React.createElement("div", {
4175
4176
  className: styles['chat-header'],
@@ -4231,7 +4232,11 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4231
4232
  flexGrow: 1,
4232
4233
  flexDirection: 'column'
4233
4234
  }
4234
- }, messages.map(function (message, index) {
4235
+ }, showPredefinedQuestions && predefinedQuestions && predefinedQuestions.length > 0 && React.createElement(PredefinedQuestions, {
4236
+ questions: predefinedQuestions.slice(0, 3),
4237
+ onSelect: handlePredefinedQuestionSelect,
4238
+ clientId: clientId
4239
+ }), messages.map(function (message, index) {
4235
4240
  return message.sender === 'user' ? React.createElement("div", {
4236
4241
  key: index,
4237
4242
  className: "message " + message.sender,
@@ -4275,22 +4280,18 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(_ref2) {
4275
4280
  marginLeft: '20px'
4276
4281
  },
4277
4282
  className: 'message'
4278
- }, ' ', React.createElement(Loader, null)), showPredefinedQuestions && predefinedQuestions && predefinedQuestions.length > 0 && React.createElement(PredefinedQuestions, {
4279
- questions: predefinedQuestions.slice(0, 3),
4280
- onSelect: handlePredefinedQuestionSelect,
4281
- clientId: clientId
4282
- }), React.createElement("div", {
4283
+ }, ' ', React.createElement(Loader, null)), React.createElement("div", {
4283
4284
  ref: messageEndRef
4284
4285
  })), React.createElement("div", {
4285
4286
  className: styles['input-area'],
4286
4287
  style: {
4287
4288
  display: 'flex',
4288
4289
  alignItems: 'center',
4289
- borderTop: '1px solid #b6b6b6',
4290
+ borderTop: '1px solid #d7d7d7',
4290
4291
  padding: 10,
4291
4292
  borderBottomLeftRadius: 8,
4292
4293
  borderBottomRightRadius: 8,
4293
- backgroundColor: '#dedede'
4294
+ backgroundColor: '#fff'
4294
4295
  }
4295
4296
  }, React.createElement("input", {
4296
4297
  style: {