@chat21/chat21-web-widget 5.0.89 → 5.0.90-rc.1

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
@@ -6,6 +6,9 @@
6
6
  ### **Copyrigth**:
7
7
  *Tiledesk SRL*
8
8
 
9
+ # 5.0.90-rc.1
10
+ - **bug-fixed**: if autoStart is false, container page is blocked on mobile when onPageChangeVisibilityMobile is set to 'open'
11
+
9
12
  # 5.0.89 in PROD
10
13
 
11
14
  # 5.0.88 in PROD
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.89",
4
+ "version": "5.0.90-rc.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -267,17 +267,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
267
267
  this.disposeWidget()
268
268
  return;
269
269
  }
270
- //set status (open /close)
271
- if(this.g.isMobile && this.g.onPageChangeVisibilityMobile !== 'last'){
272
- let isOpen = this.g.onPageChangeVisibilityMobile === 'open'? true: false
273
- this.g.setIsOpen(isOpen)
274
- this.appStorageService.setItem('isOpen', isOpen)
275
- }
276
- if(!this.g.isMobile && this.g.onPageChangeVisibilityDesktop !== 'last'){
277
- let isOpen = this.g.onPageChangeVisibilityDesktop === 'open'? true: false
278
- this.g.setIsOpen(isOpen)
279
- this.appStorageService.setItem('isOpen', isOpen)
280
- }
270
+
281
271
 
282
272
  /**CHECK IF JWT IS IN URL PARAMETERS */
283
273
  this.logger.debug('[APP-COMP] check if token is passed throw url: ', this.g.jwt);
@@ -433,6 +423,20 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
433
423
  that.listenToWidgetClick()
434
424
  }
435
425
 
426
+
427
+ //set status (open /close)
428
+ if(this.g.isMobile && this.g.onPageChangeVisibilityMobile !== 'last'){
429
+ let isOpen = this.g.onPageChangeVisibilityMobile === 'open'? true: false
430
+ this.g.setIsOpen(isOpen)
431
+ this.appStorageService.setItem('isOpen', isOpen)
432
+ }
433
+ if(!this.g.isMobile && this.g.onPageChangeVisibilityDesktop !== 'last'){
434
+ let isOpen = this.g.onPageChangeVisibilityDesktop === 'open'? true: false
435
+ this.g.setIsOpen(isOpen)
436
+ this.appStorageService.setItem('isOpen', isOpen)
437
+ }
438
+
439
+
436
440
  } else if (state && state === AUTH_STATE_OFFLINE && !this.forceDisconnect) {
437
441
  /** non sono loggato */
438
442
  that.logger.info('[APP-COMP] OFFLINE - NO CURRENT USER AUTENTICATE: ');