@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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.60 in PROD
4
+
5
+ ### 5.0.60-rc.2
6
+ - bug-fixed: callout not showed in index.html and index-dev.html pages
7
+
3
8
  ### 5.0.60-rc.1
4
9
  - bug-fixed: index.html and index-dev.html pages don't load widet on mobile browsers
5
10
 
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.60-rc.1",
4
+ "version": "5.0.60",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -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 = false;
269
+ this.calloutStaus = true;
270
270
  /** message box callout */
271
271
  this.userFullname = '';
272
272
  /** userFullname: Current user fullname. Set this parameter to specify
@@ -260,7 +260,7 @@
260
260
  window.tiledeskSettings = {
261
261
  marginX: "100px",
262
262
  marginY: "50px",
263
- calloutTimer: 1,
263
+ // calloutTimer: 1,
264
264
  singleConversation: true,
265
265
  restartConversation: true,
266
266
  hideCloseConversationOptionMenu: true
@@ -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!')