@chat21/chat21-web-widget 5.0.59 → 5.0.60-rc.2

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,11 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.60-rc.2
4
+ - bug-fixed: callout not showed in index.html and index-dev.html pages
5
+
6
+ ### 5.0.60-rc.1
7
+ - bug-fixed: index.html and index-dev.html pages don't load widet on mobile browsers
8
+
3
9
  ### 5.0.59 in PROD
4
10
 
5
11
  ### 5.0.59-rc.4
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.59",
4
+ "version": "5.0.60-rc.2",
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) {
@@ -417,9 +417,13 @@
417
417
  fjs.parentNode.insertBefore(js, fjs);
418
418
  }(document, 'script', 'tiledesk-jssdk'));
419
419
 
420
+ window.addEventListener('load', (event)=> {
421
+ document.dispatchEvent(new Event('mousemove'))
422
+ })
423
+
420
424
  window.Tiledesk('onLoadParams', function(event_data) {
421
425
  console.log("onLoadParams Tiledesk FN", event_data);
422
- window.tiledesk.open();
426
+ // window.tiledesk.open();
423
427
  if(document.getElementById('events')){
424
428
  document.getElementById('events').value += 'onLoadParams --> FIRED!' + '\n'
425
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
  };
@@ -217,6 +217,10 @@
217
217
  fjs.parentNode.insertBefore(js, fjs);
218
218
  }(document, 'script', 'tiledesk-jssdk'));
219
219
 
220
+ window.addEventListener('load', (event)=> {
221
+ document.dispatchEvent(new Event('mousemove'))
222
+ })
223
+
220
224
  window.Tiledesk('onLoadParams', function(event_data) {
221
225
  console.log("onLoadParams Tiledesk FN", event_data);
222
226
  // window.Tiledesk('signInWithCustomToken', 'JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MDliOGVmYTg3MzJlYjAwMTQxNzYzZDlfNWU0ZWNiOThiNzhlZTQwMDE3NDA2MTEwIiwiZmlyc3RuYW1lIjoiS2VsbHkiLCJsYXN0bmFtZSI6IkdyYWNlIiwiZW1haWwiOiJncmFjZUBlbWFpbG5hLmNvIiwic3ViIjoidXNlcmV4dGVybmFsIiwiYXVkIjoiaHR0cHM6Ly90aWxlZGVzay5jb20vcHJvamVjdHMvNjA5YjhlZmE4NzMyZWIwMDE0MTc2M2Q5IiwiaWF0IjoxNjQxODAzODk0fQ.p0reTwd25p93CsDTyQa8tkihgFxThAI4DXloNc6vbXw')