@chat21/chat21-web-widget 5.0.80-rc.1 → 5.0.80

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
@@ -5,12 +5,16 @@
5
5
  *Dario De Pascalis*
6
6
  ### **Copyrigth**: *Tiledesk SRL*
7
7
 
8
+ ### 5.0.80 in PROD
9
+
10
+ ### 5.0.80-rc.2
11
+ - changed: background color network disconnection msg
12
+
8
13
  ### 5.0.80-rc.1
9
14
  - added: network-offline component to manage network connection/disconnection
10
15
  - added: onDisconnect MQTT method to subscribe and manage reconnect/close/offline event
11
16
  - changed: v0.1.12.8 chat21client.js
12
17
 
13
-
14
18
  ### 5.0.79 in PROD
15
19
 
16
20
  ### 5.0.79-rc.3
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.80-rc.1",
4
+ "version": "5.0.80",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -706,7 +706,7 @@ chat-root {
706
706
  position: absolute;
707
707
  width: 100%;
708
708
  height: 100%;
709
- background: rgba(0, 0, 0, .32);
709
+ // background: rgba(0, 0, 0, .32);
710
710
  justify-content: center;
711
711
  align-items: flex-end;
712
712
  display: flex;
@@ -22,7 +22,6 @@ export class ConversationEmojiiComponent implements OnInit {
22
22
  constructor(){}
23
23
 
24
24
  ngOnInit(): void {
25
- console.log('varrrrr', this.var)
26
25
  }
27
26
 
28
27
  addEmojiFN(event){
@@ -65,7 +65,7 @@ export class ConversationPreviewComponent implements OnInit {
65
65
  getMetadataSize(metadata): {width, height} {
66
66
  const MAX_WIDTH_IMAGES_PREVIEW = 230
67
67
  const MAX_HEIGHT_IMAGES_PREIEW = 150
68
- console.log('PREVIEW - getMetadataSize metadata', metadata)
68
+
69
69
  if(metadata.width === undefined){
70
70
  metadata.width= MAX_WIDTH_IMAGES_PREVIEW
71
71
  }
@@ -96,7 +96,7 @@ export class ConversationPreviewComponent implements OnInit {
96
96
  sizeImage.width = MAX_HEIGHT_IMAGES_PREIEW / ratio;
97
97
  sizeImage.height = MAX_HEIGHT_IMAGES_PREIEW ;
98
98
  }
99
- console.log('PREVIEW - getMetadataSize return sizeimage', sizeImage)
99
+
100
100
  return sizeImage; // h.toString();
101
101
  }
102
102
 
@@ -19,7 +19,6 @@ export class AudioComponent implements OnInit {
19
19
  constructor(private elementRef: ElementRef) { }
20
20
 
21
21
  ngOnInit() {
22
- // console.log('metadataaaaaa', this.metadata)
23
22
  // this.divPlay = this.elementRef.nativeElement.querySelector('#audio_container').querySelector('#audio_msg')
24
23
  // this.playState= this.elementRef.nativeElement.querySelector('#audio_container').querySelector('#duration')
25
24
  }
@@ -100,7 +100,6 @@ export class BubbleMessageComponent implements OnInit {
100
100
  height: metadata.height
101
101
  };
102
102
 
103
- // console.log('sizeeeeeeee--<', sizeImage, metadata)
104
103
 
105
104
  if (metadata.width && metadata.width < MAX_WIDTH_IMAGES) {
106
105
  if (metadata.width <= 55) {
@@ -78,7 +78,6 @@ export class CarouselComponent implements OnInit{
78
78
  ngOnChanges(changes: SimpleChanges){
79
79
  if(this.message && this.message.attributes && this.message.attributes?.attachment && this.message.attributes?.attachment?.gallery){
80
80
  this.gallery = this.message.attributes.attachment.gallery
81
- // console.log('carrrrrrrrr', this.wrapper, this.elementRef.nativeElement.querySelector(".card"))
82
81
  // this.firstCardWidth = (this.elementRef.nativeElement.querySelector(".card") as HTMLElement).offsetWidth
83
82
  }
84
83
 
@@ -31,7 +31,6 @@ describe('FrameComponent', () => {
31
31
 
32
32
  it('should create', () => {
33
33
  component.url = component['sanitizer'].bypassSecurityTrustResourceUrl('http://www.tiledesk.com');
34
- console.log('cccccc', component)
35
34
  fixture.detectChanges();
36
35
  expect(component).toBeTruthy();
37
36
  });
@@ -15,7 +15,6 @@ export class SendButtonComponent implements OnInit {
15
15
  }
16
16
 
17
17
  onSendPressed(event){
18
- console.log('send pressed')
19
18
  this.onSendButtonClicked.emit(true)
20
19
  }
21
20
 
@@ -38,10 +38,10 @@ export class MQTTNotifications extends NotificationsService {
38
38
  }
39
39
 
40
40
  getNotificationPermissionAndSaveToken(currentUserUid) {
41
- console.log("[MQTTNotificationService] getNotificationPermissionAndSaveToken()",currentUserUid);
41
+ this.logger.log("[MQTTNotificationService] getNotificationPermissionAndSaveToken()",currentUserUid);
42
42
  this.userId = currentUserUid;
43
43
  if (firebase.messaging.isSupported()) {
44
- console.log("[MQTTNotificationService] firebase.messaging.isSupported -> YES");
44
+ this.logger.log("[MQTTNotificationService] firebase.messaging.isSupported -> YES");
45
45
  const messaging = firebase.messaging();
46
46
  // messaging.requestPermission()
47
47
  Notification.requestPermission().then((permission) => {
@@ -31,7 +31,7 @@ export class NativeImageRepoService extends ImageRepoService {
31
31
  checkImageExists(url: string, callback: (exist: boolean) => void): void {
32
32
  this.http.get(url).subscribe( res => {
33
33
  callback(true)
34
- },(error) => { console.log('errorrrrrr', url, error);callback(false)})
34
+ },(error) => { console.log('[NATIVE-IMAGE-REPO-SERVICE] checkImageExists error:', url, error);callback(false)})
35
35
  }
36
36
 
37
37
  }