@chat21/chat21-web-widget 5.0.72-rc.1 → 5.0.72-rc.3

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,8 +1,21 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.72-rc.3
4
+ - changed: API_URL template key in favour of SERVER_BASE_URL
5
+
6
+ ### 5.0.71.5 in PROD
7
+
8
+ ### 5.0.71.4 in PROD
9
+
10
+ ### 5.0.72-rc.2
11
+ - bug-fixed: update attributes after setAttributeParameter external function is called
12
+
3
13
  ### 5.0.72-rc.1
4
14
  - changed: set retain option in mqtt connection as FALSE
5
15
 
16
+ ### 5.0.71.3 in PROD
17
+ - bug-fixed: removed img filter from home footer section
18
+
6
19
  ### 5.0.71.2 in PROD
7
20
  - bug-fixing: widget do not restart conversation in chatbot-panel.html file
8
21
 
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.72-rc.1",
4
+ "version": "5.0.72-rc.3",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -744,7 +744,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
744
744
  attributes = {};
745
745
  }
746
746
  }
747
- // this.g.wdLog(['attributes: ', attributes, this.g.attributes]);
747
+ // console.log('attributes: ', attributes, this.g.attributes);
748
748
  // that.g.wdLog(['CLIENT_BROWSER: ', CLIENT_BROWSER);
749
749
  if (CLIENT_BROWSER) {
750
750
  attributes['client'] = CLIENT_BROWSER;
@@ -776,6 +776,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
776
776
  try {
777
777
  // attributes['payload'] = this.g.customAttributes.payload;
778
778
  attributes['payload'] = []
779
+
779
780
  if (this.g.customAttributes) {
780
781
  attributes['payload'] = this.g.customAttributes;
781
782
  }
@@ -1174,6 +1175,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
1174
1175
 
1175
1176
  private setAttributeParameter(parameterObj: {key: string, value: any}){
1176
1177
  this.g.setAttributeParameter(parameterObj.key, parameterObj.value)
1178
+ this.appStorageService.setItem('attributes', JSON.stringify(this.g.attributes));
1177
1179
  }
1178
1180
 
1179
1181
  private removeFirebasewebsocketFromLocalStorage() {
@@ -304,7 +304,7 @@ textarea:active{
304
304
  position: relative;
305
305
  vertical-align: middle;
306
306
  object-fit: contain;
307
- filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
307
+ //filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
308
308
  padding-right: 5px;
309
309
  }
310
310
  }
@@ -295,7 +295,7 @@
295
295
  position: relative;
296
296
  vertical-align: middle;
297
297
  object-fit: contain;
298
- filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
298
+ // filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
299
299
  padding-right: 5px;
300
300
  }
301
301
  }
@@ -23,7 +23,7 @@ import { Rule } from 'src/models/rule';
23
23
  export class Globals {
24
24
 
25
25
  BASE_LOCATION = 'https://widget.tiledesk.com/v2';
26
- POWERED_BY ='<a tabindex="-1" target="_blank" href="http://www.tiledesk.com/?utm_source=widget"><img src="https://support-pre.tiledesk.com/dashboard/assets/img/logos/tiledesk-solo_logo_new_gray.svg"/><span>Powered by Tiledesk</span></a>'
26
+ POWERED_BY ='<a tabindex="-1" target="_blank" href="https://www.tiledesk.com/?utm_source=widget"><img src="https://support-pre.tiledesk.com/dashboard/assets/img/logos/tiledesk-solo_logo_new_gray.svg"/><span>Powered by Tiledesk</span></a>'
27
27
  DEFAULT_LOGO_CHAT = '/assets/images/tiledesk_logo_white_small.svg';
28
28
 
29
29
  // ============ BEGIN: SET FUNCTION BY UTILS ==============//
@@ -986,7 +986,7 @@ class Chat21Client {
986
986
  topic: this.presence_topic,
987
987
  payload: '{"disconnected":true}',
988
988
  qos: 1,
989
- retain: false
989
+ retain: true
990
990
  },
991
991
  clientId: this.client_id,
992
992
  username: 'JWT',
@@ -612,6 +612,8 @@
612
612
  /** HEADER-LOGO **/
613
613
  brandJson['COMMON'].BASE_LOGO_NO_TEXT? document.getElementById('header-logo').src = brandJson['COMMON'].BASE_LOGO_NO_TEXT: null;
614
614
  brandJson['COMMON'].BRAND_PRIMARY_COLOR? document.body.style.setProperty('--base-company-logo', brandJson['COMMON'].BRAND_PRIMARY_COLOR): null;
615
+ /** IFRAME TITLE**/
616
+ brandJson['COMMON'].COMPANY_NAME? document.getElementById('tiledeskiframe').title = brandJson['COMMON'].COMPANY_NAME + ' Widget' : null;
615
617
  }
616
618
  }
617
619
 
@@ -148,7 +148,7 @@
148
148
  justify-content: space-around;
149
149
  }
150
150
  #header-logo{
151
- max-height: 45px;
151
+ height: 45px;
152
152
  }
153
153
 
154
154
  .navbar{
@@ -731,6 +731,8 @@
731
731
  brandJson['COMMON'].BASE_LOGO_WHITE? document.getElementById('header-logo').src = brandJson['COMMON'].BASE_LOGO_WHITE : null;
732
732
  /** HEADER-DOCS RESOURCES **/
733
733
  document.getElementsByClassName('docs')[0].style.display = 'none'
734
+ /** IFRAME TITLE**/
735
+ brandJson['COMMON'].COMPANY_LOGO? document.getElementById('tiledeskiframe').title = brandJson['COMMON'].COMPANY_NAME + ' Widget' : null;
734
736
  }
735
737
  }
736
738
  }
@@ -1681,7 +1683,7 @@
1681
1683
  </div>
1682
1684
 
1683
1685
  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
1684
- <ul class="nav navbar-nav">
1686
+ <ul class="nav navbar-nav docs">
1685
1687
  <li><a href="https://developer.tiledesk.com/widget/web-sdk" target="_blank">WEB SDK &amp; Docs<span></span></a></li>
1686
1688
  <li><a href="https://www.tiledesk.com/pricing-cloud/" target="_blank">Pricing<span></span></a></li>
1687
1689
  <li><a href="https://www.tiledesk.com/blog/" target="_blank">Blog<span></span></a></li>
@@ -151,7 +151,7 @@
151
151
  justify-content: space-around;
152
152
  }
153
153
  #header-logo{
154
- max-height: 45px;
154
+ height: 45px;
155
155
  }
156
156
 
157
157
  #wrapper {
@@ -415,6 +415,8 @@
415
415
  brandJson['COMMON'].BASE_LOGO_WHITE? document.getElementById('header-logo').src = brandJson['COMMON'].BASE_LOGO_WHITE : null;
416
416
  /** HEADER-DOCS RESOURCES **/
417
417
  document.getElementsByClassName('docs')[0].style.display = 'none'
418
+ /** IFRAME TITLE**/
419
+ brandJson['COMMON'].COMPANY_LOGO? document.getElementById('tiledeskiframe').title = brandJson['COMMON'].COMPANY_NAME + ' Widget' : null;
418
420
  }
419
421
 
420
422
  }
@@ -19,7 +19,7 @@
19
19
  "MQTTendpoint": "${MQTT_ENDPOINT}",
20
20
  "APIendpoint": "${MQTT_APIENDPOINT}"
21
21
  },
22
- "apiUrl": "${API_URL}",
22
+ "apiUrl": "${SERVER_BASE_URL}",
23
23
  "baseImageUrl": "${API_BASEIMAGE_URL}",
24
24
  "dashboardUrl": "${DASHBOARD_URL}",
25
25
  "authPersistence": "${AUTH_PERSISTENCE}",