bibot 1.0.62 → 1.0.64

Sign up to get free protection for your applications and to get access to all the features.
@@ -4185,7 +4185,6 @@ var AiFollowUps = function AiFollowUps(_ref) {
4185
4185
  style: {
4186
4186
  height: '100%',
4187
4187
  color: '#000',
4188
- backgroundColor: '#fff',
4189
4188
  padding: 10,
4190
4189
  borderRadius: '6px',
4191
4190
  marginBottom: '20px'
@@ -4259,10 +4258,16 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4259
4258
  borderTopLeftRadius: 8,
4260
4259
  borderTopRightRadius: 8,
4261
4260
  display: 'flex',
4262
- alignItems: 'center',
4263
- justifyContent: 'flex-start',
4261
+ flexDirection: 'column',
4262
+ justifyContent: 'space-between',
4264
4263
  paddingInline: 15,
4265
- paddingBlock: 20
4264
+ paddingBlock: 15
4265
+ }
4266
+ }, createElement("div", {
4267
+ style: {
4268
+ display: 'flex',
4269
+ justifyContent: 'flex-start',
4270
+ alignItems: 'center'
4266
4271
  }
4267
4272
  }, createElement("div", {
4268
4273
  style: {
@@ -4283,8 +4288,9 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4283
4288
  flexDirection: 'column',
4284
4289
  textAlign: 'left',
4285
4290
  paddingLeft: '10px',
4286
- justifyContent: 'flex-start',
4287
- color: '#fff'
4291
+ justifyContent: 'flex-end',
4292
+ color: '#fff',
4293
+ width: '100%'
4288
4294
  }
4289
4295
  }, createElement("span", {
4290
4296
  style: {
@@ -4295,11 +4301,29 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4295
4301
  style: {
4296
4302
  fontSize: '12px'
4297
4303
  }
4298
- }, "Typing...") : createElement("span", {
4304
+ }, "Typing...") : createElement("div", {
4305
+ style: {
4306
+ display: 'flex',
4307
+ justifyContent: 'space-between',
4308
+ width: '100%'
4309
+ }
4310
+ }, createElement("span", {
4299
4311
  style: {
4300
4312
  fontSize: '12px'
4301
4313
  }
4302
- }, isOnline ? 'Online' : 'Offline'))), createElement("div", {
4314
+ }, isOnline ? 'Online' : 'Offline')))), createElement("div", {
4315
+ style: {
4316
+ display: 'flex',
4317
+ flexDirection: 'row',
4318
+ justifyContent: 'flex-end'
4319
+ }
4320
+ }, createElement("span", {
4321
+ style: {
4322
+ fontSize: '6px',
4323
+ paddingRight: 10,
4324
+ color: '#dedede'
4325
+ }
4326
+ }, !chatBubbleConfig.title ? 'Bot' : chatBubbleConfig.title, " can make mistake "))), createElement("div", {
4303
4327
  className: styles['message-list'],
4304
4328
  style: {
4305
4329
  height: 'calc(100% - 100px)',
@@ -4320,7 +4344,9 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4320
4344
  style: {
4321
4345
  marginBottom: 10,
4322
4346
  padding: '5px 10px',
4323
- borderRadius: 8,
4347
+ borderTopRightRadius: 15,
4348
+ borderTopLeftRadius: 15,
4349
+ borderBottomLeftRadius: 15,
4324
4350
  maxWidth: '70%',
4325
4351
  alignSelf: 'flex-end',
4326
4352
  fontSize: '15px',
@@ -4353,14 +4379,16 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4353
4379
  style: {
4354
4380
  marginBottom: 10,
4355
4381
  padding: '5px 10px',
4356
- borderRadius: 8,
4382
+ borderTopRightRadius: 15,
4383
+ borderBottomRightRadius: 15,
4384
+ borderBottomLeftRadius: 15,
4357
4385
  maxWidth: '70%',
4358
4386
  alignSelf: 'flex-start',
4359
4387
  fontSize: '15px',
4360
4388
  backgroundColor: '#f0f0f0',
4361
4389
  color: '#000',
4362
4390
  textAlign: 'left',
4363
- marginTop: 5
4391
+ margin: 5
4364
4392
  }
4365
4393
  }, message.text));
4366
4394
  }), aiFollowUpQs && !isLoading && createElement(AiFollowUps, {
@@ -4412,7 +4440,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4412
4440
  }
4413
4441
  }, createElement(SendMessageIcon, {
4414
4442
  color: isLoading ? '#cdcdcd' : chatBubbleConfig.color
4415
- }))), createElement("div", {
4443
+ }))), chatBubbleConfig.powered_by_bibot && createElement("div", {
4416
4444
  style: {
4417
4445
  backgroundColor: '#f9f9f9',
4418
4446
  minHeight: 45,