@chat21/chat21-web-widget 5.0.52-rc.1 → 5.0.52-rc.3
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/CHANGELOG.md +5 -0
- package/dist/assets/twp/chatbot-panel.html +1 -23
- package/dist/assets/twp/index-dev.html +5 -5
- package/dist/main.js +1 -1
- package/dist/test.html +1 -1
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.html +1 -0
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +12 -0
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.scss +11 -0
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.ts +1 -0
- package/src/assets/twp/chatbot-panel.html +1 -23
- package/src/assets/twp/index-dev.html +5 -5
- package/src/chat21-core/providers/mqtt/mqtt-archivedconversations-handler.ts +0 -1
- package/src/chat21-core/providers/mqtt/mqtt-conversation-handler.ts +7 -2
- package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +1 -2
- package/src/test.html +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# chat21-web-widget ver 5.0
|
|
2
2
|
|
|
3
|
+
### 5.0.52-rc.3
|
|
4
|
+
- added: build info in menu conversation-header component if singleConversation is enabled
|
|
5
|
+
- bug-fixed: splitted messages is shown twice
|
|
6
|
+
- removed: open automatically the widget after 3s in index-dev.html page
|
|
7
|
+
|
|
3
8
|
### 5.0.52-rc.1
|
|
4
9
|
- changed: background opacity in chatbot-panel html page
|
|
5
10
|
- bug-fixed: splitted messages is shown twice
|
|
@@ -262,6 +262,7 @@
|
|
|
262
262
|
calloutTimer: 1,
|
|
263
263
|
singleConversation: true,
|
|
264
264
|
restartConversation: true,
|
|
265
|
+
isLogEnabled: true,
|
|
265
266
|
hideCloseConversationOptionMenu: true
|
|
266
267
|
// autostart: false
|
|
267
268
|
|
|
@@ -419,29 +420,6 @@
|
|
|
419
420
|
// console.log('tiledesk_projectid: ', tiledesk_projectid);
|
|
420
421
|
// console.log('project_name: ', project_name);
|
|
421
422
|
|
|
422
|
-
window.onload = function() {
|
|
423
|
-
document.getElementById("project_id").innerHTML = '"' + tiledesk_projectid + '"';
|
|
424
|
-
// document.getElementById("project_name").innerHTML = project_name;
|
|
425
|
-
|
|
426
|
-
if(role !== 'agent'){
|
|
427
|
-
document.getElementById("testPageButton").style.display = 'block'
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
// window.tileDeskAsyncInit = function() {
|
|
432
|
-
// window.tiledesk.on('onLoadParams', function(event_data) {
|
|
433
|
-
// // console.log('onLoadParams: ')
|
|
434
|
-
// window.tiledesk.open();
|
|
435
|
-
// });
|
|
436
|
-
|
|
437
|
-
// window.tiledesk.on('onInit', function(event_data) {
|
|
438
|
-
// setTimeout(() => {
|
|
439
|
-
// document.getElementById("preloader").style.display = "none";
|
|
440
|
-
// }, 1000);
|
|
441
|
-
|
|
442
|
-
// });
|
|
443
|
-
// };
|
|
444
|
-
|
|
445
423
|
function getQueryVariable(variable) {
|
|
446
424
|
var query = window.location.search.substring(1);
|
|
447
425
|
var vars = query.split("&");
|
|
@@ -460,11 +460,11 @@
|
|
|
460
460
|
document.getElementById('events').scrollTop = document.getElementById('events').scrollHeight
|
|
461
461
|
}, 1000);
|
|
462
462
|
//open widget after 3s if is closed
|
|
463
|
-
setTimeout(() => {
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
}, 3000);
|
|
463
|
+
// setTimeout(() => {
|
|
464
|
+
// if(event_data && event_data.detail && event_data.detail.global && !event_data.detail.global.isOpen){
|
|
465
|
+
// window.Tiledesk('open')
|
|
466
|
+
// }
|
|
467
|
+
// }, 3000);
|
|
468
468
|
});
|
|
469
469
|
|
|
470
470
|
window.Tiledesk('onAuthStateChanged', function(event_data) {
|