@chat21/chat21-web-widget 5.0.60-rc.1 → 5.0.60
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/angular.json +1 -0
- package/package.json +1 -1
- package/src/app/utils/globals.ts +1 -1
- package/src/assets/twp/chatbot-panel.html +1 -1
- package/src/assets/twp/index-dev.html +3 -3
- package/src/assets/twp/index.html +2 -2
- package/src/chat21-core/providers/mqtt/mqtt-conversations-handler.ts +1 -1
package/CHANGELOG.md
CHANGED
package/angular.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"src/iframe-style.css",
|
|
34
34
|
"src/widget-config-template.json",
|
|
35
35
|
"src/widget-config.json",
|
|
36
|
+
"src/environments/real_data/segment_script-dev.js",
|
|
36
37
|
"src/environments/real_data/widget-config-firebase.json",
|
|
37
38
|
"src/environments/real_data/widget-config-mqtt.json",
|
|
38
39
|
"src/environments/real_data/widget-config-docker.json",
|
package/package.json
CHANGED
package/src/app/utils/globals.ts
CHANGED
|
@@ -266,7 +266,7 @@ export class Globals {
|
|
|
266
266
|
/** title box callout */
|
|
267
267
|
this.calloutMsg = '';
|
|
268
268
|
/** stato callout (shown only first time) */
|
|
269
|
-
this.calloutStaus =
|
|
269
|
+
this.calloutStaus = true;
|
|
270
270
|
/** message box callout */
|
|
271
271
|
this.userFullname = '';
|
|
272
272
|
/** userFullname: Current user fullname. Set this parameter to specify
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
window.tiledeskSettings = {
|
|
398
398
|
marginX: "100px",
|
|
399
399
|
marginY: "50px",
|
|
400
|
-
calloutTimer: 1,
|
|
400
|
+
// calloutTimer: 1,
|
|
401
401
|
};
|
|
402
402
|
|
|
403
403
|
(function(d, s, id) {
|
|
@@ -420,10 +420,10 @@
|
|
|
420
420
|
window.addEventListener('load', (event)=> {
|
|
421
421
|
document.dispatchEvent(new Event('mousemove'))
|
|
422
422
|
})
|
|
423
|
-
|
|
423
|
+
|
|
424
424
|
window.Tiledesk('onLoadParams', function(event_data) {
|
|
425
425
|
console.log("onLoadParams Tiledesk FN", event_data);
|
|
426
|
-
window.tiledesk.open();
|
|
426
|
+
// window.tiledesk.open();
|
|
427
427
|
if(document.getElementById('events')){
|
|
428
428
|
document.getElementById('events').value += 'onLoadParams --> FIRED!' + '\n'
|
|
429
429
|
document.getElementById('events').scrollTop = document.getElementById('events').scrollHeight
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
window.tiledeskSettings = {
|
|
196
196
|
marginX: "100px",
|
|
197
197
|
marginY: "50px",
|
|
198
|
-
calloutTimer: 1
|
|
198
|
+
// calloutTimer: 1
|
|
199
199
|
// autostart: false
|
|
200
200
|
|
|
201
201
|
};
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
window.addEventListener('load', (event)=> {
|
|
221
221
|
document.dispatchEvent(new Event('mousemove'))
|
|
222
222
|
})
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
window.Tiledesk('onLoadParams', function(event_data) {
|
|
225
225
|
console.log("onLoadParams Tiledesk FN", event_data);
|
|
226
226
|
// window.Tiledesk('signInWithCustomToken', 'JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MDliOGVmYTg3MzJlYjAwMTQxNzYzZDlfNWU0ZWNiOThiNzhlZTQwMDE3NDA2MTEwIiwiZmlyc3RuYW1lIjoiS2VsbHkiLCJsYXN0bmFtZSI6IkdyYWNlIiwiZW1haWwiOiJncmFjZUBlbWFpbG5hLmNvIiwic3ViIjoidXNlcmV4dGVybmFsIiwiYXVkIjoiaHR0cHM6Ly90aWxlZGVzay5jb20vcHJvamVjdHMvNjA5YjhlZmE4NzMyZWIwMDE0MTc2M2Q5IiwiaWF0IjoxNjQxODAzODk0fQ.p0reTwd25p93CsDTyQa8tkihgFxThAI4DXloNc6vbXw')
|
|
@@ -148,7 +148,7 @@ export class MQTTConversationsHandler extends ConversationsHandlerService {
|
|
|
148
148
|
this.logger.debug('[MQTTConversationsHandler] connecting MQTT conversations handler');
|
|
149
149
|
this.chat21Service.chatClient.onConversationAdded( (conv) => {
|
|
150
150
|
let conversation = this.completeConversation(conv); // needed to get the "conversation_with", and find the conv in the conv-history
|
|
151
|
-
this.logger.log("onConversationAdded completed:",conversation);
|
|
151
|
+
this.logger.log("[MQTTConversationsHandler] onConversationAdded completed:",conversation);
|
|
152
152
|
const index = this.searchIndexInArrayForConversationWith(this.conversations, conversation.conversation_with);
|
|
153
153
|
if (index > -1) {
|
|
154
154
|
this.logger.log('[MQTTConversationsHandler] Added conv -> Changed!')
|