bibot 1.0.61 → 1.0.63

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