bibot 1.0.62 → 1.0.64
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +40 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +40 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/types/coreInterfaces.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -4188,7 +4188,6 @@ var AiFollowUps = function AiFollowUps(_ref) {
|
|
4188
4188
|
style: {
|
4189
4189
|
height: '100%',
|
4190
4190
|
color: '#000',
|
4191
|
-
backgroundColor: '#fff',
|
4192
4191
|
padding: 10,
|
4193
4192
|
borderRadius: '6px',
|
4194
4193
|
marginBottom: '20px'
|
@@ -4262,10 +4261,16 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4262
4261
|
borderTopLeftRadius: 8,
|
4263
4262
|
borderTopRightRadius: 8,
|
4264
4263
|
display: 'flex',
|
4265
|
-
|
4266
|
-
justifyContent: '
|
4264
|
+
flexDirection: 'column',
|
4265
|
+
justifyContent: 'space-between',
|
4267
4266
|
paddingInline: 15,
|
4268
|
-
paddingBlock:
|
4267
|
+
paddingBlock: 15
|
4268
|
+
}
|
4269
|
+
}, React.createElement("div", {
|
4270
|
+
style: {
|
4271
|
+
display: 'flex',
|
4272
|
+
justifyContent: 'flex-start',
|
4273
|
+
alignItems: 'center'
|
4269
4274
|
}
|
4270
4275
|
}, React.createElement("div", {
|
4271
4276
|
style: {
|
@@ -4286,8 +4291,9 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4286
4291
|
flexDirection: 'column',
|
4287
4292
|
textAlign: 'left',
|
4288
4293
|
paddingLeft: '10px',
|
4289
|
-
justifyContent: 'flex-
|
4290
|
-
color: '#fff'
|
4294
|
+
justifyContent: 'flex-end',
|
4295
|
+
color: '#fff',
|
4296
|
+
width: '100%'
|
4291
4297
|
}
|
4292
4298
|
}, React.createElement("span", {
|
4293
4299
|
style: {
|
@@ -4298,11 +4304,29 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4298
4304
|
style: {
|
4299
4305
|
fontSize: '12px'
|
4300
4306
|
}
|
4301
|
-
}, "Typing...") : React.createElement("
|
4307
|
+
}, "Typing...") : React.createElement("div", {
|
4308
|
+
style: {
|
4309
|
+
display: 'flex',
|
4310
|
+
justifyContent: 'space-between',
|
4311
|
+
width: '100%'
|
4312
|
+
}
|
4313
|
+
}, React.createElement("span", {
|
4302
4314
|
style: {
|
4303
4315
|
fontSize: '12px'
|
4304
4316
|
}
|
4305
|
-
}, isOnline ? 'Online' : 'Offline'))), React.createElement("div", {
|
4317
|
+
}, isOnline ? 'Online' : 'Offline')))), React.createElement("div", {
|
4318
|
+
style: {
|
4319
|
+
display: 'flex',
|
4320
|
+
flexDirection: 'row',
|
4321
|
+
justifyContent: 'flex-end'
|
4322
|
+
}
|
4323
|
+
}, React.createElement("span", {
|
4324
|
+
style: {
|
4325
|
+
fontSize: '6px',
|
4326
|
+
paddingRight: 10,
|
4327
|
+
color: '#dedede'
|
4328
|
+
}
|
4329
|
+
}, !chatBubbleConfig.title ? 'Bot' : chatBubbleConfig.title, " can make mistake "))), React.createElement("div", {
|
4306
4330
|
className: styles['message-list'],
|
4307
4331
|
style: {
|
4308
4332
|
height: 'calc(100% - 100px)',
|
@@ -4323,7 +4347,9 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4323
4347
|
style: {
|
4324
4348
|
marginBottom: 10,
|
4325
4349
|
padding: '5px 10px',
|
4326
|
-
|
4350
|
+
borderTopRightRadius: 15,
|
4351
|
+
borderTopLeftRadius: 15,
|
4352
|
+
borderBottomLeftRadius: 15,
|
4327
4353
|
maxWidth: '70%',
|
4328
4354
|
alignSelf: 'flex-end',
|
4329
4355
|
fontSize: '15px',
|
@@ -4356,14 +4382,16 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4356
4382
|
style: {
|
4357
4383
|
marginBottom: 10,
|
4358
4384
|
padding: '5px 10px',
|
4359
|
-
|
4385
|
+
borderTopRightRadius: 15,
|
4386
|
+
borderBottomRightRadius: 15,
|
4387
|
+
borderBottomLeftRadius: 15,
|
4360
4388
|
maxWidth: '70%',
|
4361
4389
|
alignSelf: 'flex-start',
|
4362
4390
|
fontSize: '15px',
|
4363
4391
|
backgroundColor: '#f0f0f0',
|
4364
4392
|
color: '#000',
|
4365
4393
|
textAlign: 'left',
|
4366
|
-
|
4394
|
+
margin: 5
|
4367
4395
|
}
|
4368
4396
|
}, message.text));
|
4369
4397
|
}), aiFollowUpQs && !isLoading && React.createElement(AiFollowUps, {
|
@@ -4415,7 +4443,7 @@ var ChatBubbleBiBot = function ChatBubbleBiBot(bibotProps) {
|
|
4415
4443
|
}
|
4416
4444
|
}, React.createElement(SendMessageIcon, {
|
4417
4445
|
color: isLoading ? '#cdcdcd' : chatBubbleConfig.color
|
4418
|
-
}))), React.createElement("div", {
|
4446
|
+
}))), chatBubbleConfig.powered_by_bibot && React.createElement("div", {
|
4419
4447
|
style: {
|
4420
4448
|
backgroundColor: '#f9f9f9',
|
4421
4449
|
minHeight: 45,
|