bibot 1.0.61 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
@@ -4124,16 +4124,39 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4124
4124
  }, createElement("div", {
4125
4125
  style: {
4126
4126
  display: 'flex',
4127
- justifyContent: 'center',
4128
- alignItems: 'center',
4129
- flexDirection: 'column',
4130
- textAlign: 'center'
4127
+ flexDirection: 'column'
4128
+ }
4129
+ }, createElement("div", {
4130
+ style: {
4131
+ display: 'flex',
4132
+ alignItems: 'center'
4133
+ }
4134
+ }, createElement(Avatar, {
4135
+ borderColor: '#fff',
4136
+ width: '36px',
4137
+ height: '36px',
4138
+ source: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.logo_url
4139
+ }), createElement("small", {
4140
+ style: {
4141
+ marginLeft: 5
4142
+ }
4143
+ }, " ", chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.title)), createElement("div", {
4144
+ style: {
4145
+ backgroundColor: '#dedede',
4146
+ marginBottom: 20,
4147
+ width: 300,
4148
+ marginLeft: 15,
4149
+ marginTop: 5,
4150
+ borderTopRightRadius: 20,
4151
+ borderBottomRightRadius: 20,
4152
+ borderBottomLeftRadius: 20
4131
4153
  }
4132
4154
  }, createElement("p", {
4133
4155
  style: {
4134
- fontSize: '14px'
4156
+ fontSize: '16px',
4157
+ paddingLeft: 10
4135
4158
  }
4136
- }, "Are you looking for answers to any of these questions? Click for an answer ")), questions.map(function (question, index) {
4159
+ }, "Are you looking for answers to any of these questions? Click for an answer "))), questions.map(function (question, index) {
4137
4160
  var _chatBubbleConfig$col;
4138
4161
  return createElement("div", {
4139
4162
  key: index,
@@ -4144,7 +4167,7 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4144
4167
  margin: '7px',
4145
4168
  textAlign: 'start',
4146
4169
  padding: '14px',
4147
- borderRadius: '50px',
4170
+ borderRadius: '16px',
4148
4171
  cursor: 'pointer'
4149
4172
  },
4150
4173
  onClick: function onClick() {
@@ -4236,10 +4259,16 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4236
4259
  borderTopLeftRadius: 8,
4237
4260
  borderTopRightRadius: 8,
4238
4261
  display: 'flex',
4239
- alignItems: 'center',
4240
- justifyContent: 'flex-start',
4262
+ flexDirection: 'column',
4263
+ justifyContent: 'space-between',
4241
4264
  paddingInline: 15,
4242
- paddingBlock: 20
4265
+ paddingBlock: 15
4266
+ }
4267
+ }, createElement("div", {
4268
+ style: {
4269
+ display: 'flex',
4270
+ justifyContent: 'flex-start',
4271
+ alignItems: 'center'
4243
4272
  }
4244
4273
  }, createElement("div", {
4245
4274
  style: {
@@ -4260,8 +4289,9 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4260
4289
  flexDirection: 'column',
4261
4290
  textAlign: 'left',
4262
4291
  paddingLeft: '10px',
4263
- justifyContent: 'flex-start',
4264
- color: '#fff'
4292
+ justifyContent: 'flex-end',
4293
+ color: '#fff',
4294
+ width: '100%'
4265
4295
  }
4266
4296
  }, createElement("span", {
4267
4297
  style: {
@@ -4272,11 +4302,29 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4272
4302
  style: {
4273
4303
  fontSize: '12px'
4274
4304
  }
4275
- }, "Typing...") : createElement("span", {
4305
+ }, "Typing...") : createElement("div", {
4306
+ style: {
4307
+ display: 'flex',
4308
+ justifyContent: 'space-between',
4309
+ width: '100%'
4310
+ }
4311
+ }, createElement("span", {
4276
4312
  style: {
4277
4313
  fontSize: '12px'
4278
4314
  }
4279
- }, isOnline ? 'Online' : 'Offline'))), createElement("div", {
4315
+ }, isOnline ? 'Online' : 'Offline')))), createElement("div", {
4316
+ style: {
4317
+ display: 'flex',
4318
+ flexDirection: 'row',
4319
+ justifyContent: 'flex-end'
4320
+ }
4321
+ }, createElement("span", {
4322
+ style: {
4323
+ fontSize: '6px',
4324
+ paddingRight: 10,
4325
+ color: '#dedede'
4326
+ }
4327
+ }, !chatBubbleConfig.title ? 'Bot' : chatBubbleConfig.title, " can make mistake "))), createElement("div", {
4280
4328
  className: styles['message-list'],
4281
4329
  style: {
4282
4330
  height: 'calc(100% - 100px)',
@@ -4297,7 +4345,9 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4297
4345
  style: {
4298
4346
  marginBottom: 10,
4299
4347
  padding: '5px 10px',
4300
- borderRadius: 8,
4348
+ borderTopRightRadius: 15,
4349
+ borderTopLeftRadius: 15,
4350
+ borderBottomLeftRadius: 15,
4301
4351
  maxWidth: '70%',
4302
4352
  alignSelf: 'flex-end',
4303
4353
  fontSize: '15px',
@@ -4330,14 +4380,16 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4330
4380
  style: {
4331
4381
  marginBottom: 10,
4332
4382
  padding: '5px 10px',
4333
- borderRadius: 8,
4383
+ borderTopRightRadius: 15,
4384
+ borderBottomRightRadius: 15,
4385
+ borderBottomLeftRadius: 15,
4334
4386
  maxWidth: '70%',
4335
4387
  alignSelf: 'flex-start',
4336
4388
  fontSize: '15px',
4337
4389
  backgroundColor: '#f0f0f0',
4338
4390
  color: '#000',
4339
4391
  textAlign: 'left',
4340
- marginTop: 5
4392
+ margin: 5
4341
4393
  }
4342
4394
  }, message.text));
4343
4395
  }), aiFollowUpQs && !isLoading && createElement(AiFollowUps, {