bibot 1.0.55 → 1.0.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -3824,12 +3824,12 @@ function SendMessageIcon(_ref) {
3824
3824
  return React__default.createElement("svg", {
3825
3825
  xmlns: 'http://www.w3.org/2000/svg',
3826
3826
  className: 'icon icon-tabler icon-tabler-send-2',
3827
- width: '24',
3828
- height: '24',
3827
+ width: '36',
3828
+ height: '36',
3829
3829
  viewBox: '0 0 24 24',
3830
3830
  strokeWidth: '1.5',
3831
3831
  stroke: color,
3832
- fill: 'none',
3832
+ fill: '#d7d7d7',
3833
3833
  strokeLinecap: 'round',
3834
3834
  strokeLinejoin: 'round'
3835
3835
  }, React__default.createElement("path", {
@@ -4126,16 +4126,7 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4126
4126
  flexDirection: 'column',
4127
4127
  textAlign: 'center'
4128
4128
  }
4129
- }, createElement(Avatar, {
4130
- borderColor: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
4131
- width: '40px',
4132
- height: '40px',
4133
- source: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.logo_url
4134
- }), createElement("h5", {
4135
- style: {
4136
- marginBlock: '0.5px'
4137
- }
4138
- }, chatBubbleConfig !== null && chatBubbleConfig !== void 0 && chatBubbleConfig.knownUser ? "Hello " + chatBubbleConfig.knownUser : 'Welcome!'), createElement("p", {
4129
+ }, createElement("p", {
4139
4130
  style: {
4140
4131
  fontSize: '14px'
4141
4132
  }
@@ -4144,13 +4135,13 @@ var PredefinedQuestions = function PredefinedQuestions(_ref) {
4144
4135
  return createElement("div", {
4145
4136
  key: index,
4146
4137
  style: {
4147
- backgroundColor: 'transparent',
4148
- border: "0.5px solid " + (chatBubbleConfig ? (_chatBubbleConfig$col = chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color) != null ? _chatBubbleConfig$col : '#dedede' : '#000'),
4138
+ backgroundColor: '#fafafa',
4139
+ border: "0.3px solid " + (chatBubbleConfig ? (_chatBubbleConfig$col = chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color) != null ? _chatBubbleConfig$col : '#dedede' : '#000'),
4149
4140
  fontSize: '16px',
4150
4141
  margin: '7px',
4151
4142
  textAlign: 'start',
4152
- padding: '10px',
4153
- borderRadius: '6px',
4143
+ padding: '14px',
4144
+ borderRadius: '50px',
4154
4145
  cursor: 'pointer'
4155
4146
  },
4156
4147
  onClick: function onClick() {
@@ -4178,13 +4169,13 @@ var AiFollowUps = function AiFollowUps(_ref) {
4178
4169
  return createElement("div", {
4179
4170
  key: index,
4180
4171
  style: {
4181
- backgroundColor: 'transparent',
4182
- border: "0.5px solid " + (chatBubbleConfig ? (_chatBubbleConfig$col = chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color) != null ? _chatBubbleConfig$col : '#dedede' : '#000'),
4172
+ backgroundColor: '#fafafa',
4173
+ border: "0.3px solid " + (chatBubbleConfig ? (_chatBubbleConfig$col = chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color) != null ? _chatBubbleConfig$col : '#dedede' : '#000'),
4183
4174
  fontSize: '16px',
4184
4175
  margin: '7px',
4185
4176
  textAlign: 'start',
4186
- padding: '10px',
4187
- borderRadius: '6px',
4177
+ padding: '14px',
4178
+ borderRadius: '50px',
4188
4179
  cursor: 'pointer'
4189
4180
  },
4190
4181
  onClick: function onClick() {
@@ -4228,13 +4219,13 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4228
4219
  position: 'absolute',
4229
4220
  bottom: '60px',
4230
4221
  right: '25px',
4231
- width: 350,
4232
- height: 500,
4222
+ width: 370,
4223
+ height: 550,
4233
4224
  borderRadius: 10,
4234
4225
  display: 'flex',
4235
4226
  flexDirection: 'column',
4236
4227
  justifyContent: 'space-between',
4237
- border: "0.5px solid " + (chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color)
4228
+ boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2)'
4238
4229
  }
4239
4230
  }, createElement("div", {
4240
4231
  className: styles['chat-header'],
@@ -4247,7 +4238,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4247
4238
  alignItems: 'center',
4248
4239
  justifyContent: 'flex-start',
4249
4240
  paddingInline: 15,
4250
- paddingBlock: 10
4241
+ paddingBlock: 25
4251
4242
  }
4252
4243
  }, createElement("div", {
4253
4244
  style: {
@@ -4257,10 +4248,10 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4257
4248
  fontWeight: 'bold'
4258
4249
  }
4259
4250
  }, createElement(Avatar, {
4260
- borderColor: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
4251
+ borderColor: 'transparent',
4261
4252
  indicator: isOnline ? 'green' : '#dedede',
4262
- width: '40px',
4263
- height: '40px',
4253
+ width: '70px',
4254
+ height: '70px',
4264
4255
  source: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.logo_url
4265
4256
  })), createElement("div", {
4266
4257
  style: {
@@ -4278,13 +4269,11 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4278
4269
  }
4279
4270
  }, chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.title), isLoading ? createElement("span", {
4280
4271
  style: {
4281
- fontSize: '12px',
4282
- lineHeight: '0.9'
4272
+ fontSize: '12px'
4283
4273
  }
4284
4274
  }, "Typing...") : createElement("span", {
4285
4275
  style: {
4286
- fontSize: '12px',
4287
- lineHeight: '0.9'
4276
+ fontSize: '12px'
4288
4277
  }
4289
4278
  }, isOnline ? 'Online' : 'Offline'))), createElement("div", {
4290
4279
  className: styles['message-list'],
@@ -4318,14 +4307,24 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4318
4307
  }, message.text) : createElement("div", {
4319
4308
  key: index,
4320
4309
  style: {
4321
- display: 'flex'
4310
+ display: 'flex',
4311
+ flexDirection: 'column'
4312
+ }
4313
+ }, createElement("div", {
4314
+ style: {
4315
+ display: 'flex',
4316
+ alignItems: 'center'
4322
4317
  }
4323
- }, createElement(Avatar, {
4324
- borderColor: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
4318
+ }, " ", createElement(Avatar, {
4319
+ borderColor: '#fff',
4325
4320
  width: '20px',
4326
4321
  height: '20px',
4327
4322
  source: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.logo_url
4328
- }), createElement("div", {
4323
+ }), createElement("small", {
4324
+ style: {
4325
+ marginLeft: 10
4326
+ }
4327
+ }, " ", chatBubbleConfig.title, " ")), createElement("div", {
4329
4328
  className: "message " + message.sender,
4330
4329
  style: {
4331
4330
  marginBottom: 10,
@@ -4336,7 +4335,8 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4336
4335
  fontSize: '15px',
4337
4336
  backgroundColor: '#f0f0f0',
4338
4337
  color: '#000',
4339
- textAlign: 'left'
4338
+ textAlign: 'left',
4339
+ marginTop: 5
4340
4340
  }
4341
4341
  }, message.text));
4342
4342
  }), aiFollowUpQs && !isLoading && createElement(AiFollowUps, {
@@ -4357,8 +4357,6 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4357
4357
  alignItems: 'center',
4358
4358
  borderTop: '1px solid #d7d7d7',
4359
4359
  padding: 10,
4360
- borderBottomLeftRadius: 8,
4361
- borderBottomRightRadius: 8,
4362
4360
  backgroundColor: '#fff'
4363
4361
  }
4364
4362
  }, createElement("input", {
@@ -4376,12 +4374,12 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4376
4374
  value: userInput,
4377
4375
  onChange: handleUserInput,
4378
4376
  onKeyDown: handleKeyPress,
4379
- placeholder: 'Ask a question'
4377
+ placeholder: 'Type your message here'
4380
4378
  }), createElement("button", {
4381
4379
  disabled: isLoading != null ? isLoading : true,
4382
4380
  style: {
4383
4381
  backgroundColor: 'transparent',
4384
- color: isLoading ? '#dedede' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
4382
+ color: '#dedede',
4385
4383
  border: 'none',
4386
4384
  cursor: 'pointer'
4387
4385
  },
@@ -4389,8 +4387,37 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4389
4387
  return sendInputInquiry();
4390
4388
  }
4391
4389
  }, createElement(SendMessageIcon, {
4392
- color: isLoading ? '#fff' : chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color
4393
- })))), createElement("div", {
4390
+ color: '#fff'
4391
+ }))), createElement("div", {
4392
+ style: {
4393
+ backgroundColor: '#f9f9f9',
4394
+ minHeight: 45,
4395
+ display: 'flex',
4396
+ flexDirection: 'column',
4397
+ alignItems: 'center',
4398
+ justifyContent: 'center',
4399
+ borderTop: '1px solid #f9f9f9',
4400
+ borderBottomLeftRadius: 10,
4401
+ borderBottomRightRadius: 10
4402
+ }
4403
+ }, createElement("a", {
4404
+ href: 'https://bibot.app',
4405
+ target: '_blank',
4406
+ style: {
4407
+ textDecoration: 'none'
4408
+ }
4409
+ }, " ", createElement("small", {
4410
+ style: {
4411
+ color: '#9ba6b2',
4412
+ fontSize: 10,
4413
+ marginBlock: 5
4414
+ }
4415
+ }, "Powered by ", createElement("span", {
4416
+ style: {
4417
+ fontWeight: 'bold',
4418
+ color: '#1f4760'
4419
+ }
4420
+ }, "BIBOT"))))), createElement("div", {
4394
4421
  style: {
4395
4422
  display: 'flex',
4396
4423
  alignItems: 'center',
@@ -4401,8 +4428,15 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
4401
4428
  fontSize: '12px',
4402
4429
  color: chatBubbleConfig === null || chatBubbleConfig === void 0 ? void 0 : chatBubbleConfig.color,
4403
4430
  textAlign: 'left',
4404
- marginRight: '8px',
4405
- whiteSpace: 'nowrap'
4431
+ marginRight: '5px',
4432
+ whiteSpace: 'nowrap',
4433
+ backgroundColor: '#fff',
4434
+ padding: 15,
4435
+ borderTopRightRadius: 30,
4436
+ borderTopLeftRadius: 10,
4437
+ borderBottomLeftRadius: 10,
4438
+ marginBottom: 60,
4439
+ boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2)'
4406
4440
  }
4407
4441
  }, greeting), createElement("button", {
4408
4442
  onClick: toggleChat,