@chat21/chat21-web-widget 5.0.91-rc2 → 5.0.91-rc3

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.91-rc3
10
+ - **added**: showAudioRecorderFooterButton property variable
11
+
9
12
  # 5.0.91-rc2
10
13
  - **changed**: colors for chat-audio-track component managed
11
14
 
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.91-rc2",
4
+ "version": "5.0.91-rc3",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -119,7 +119,7 @@
119
119
  [userEmail]="g?.userEmail"
120
120
  [showAttachmentFooterButton]="g?.showAttachmentFooterButton"
121
121
  [showEmojiFooterButton]="g?.showEmojiFooterButton"
122
- [showRegisterAudioFooterButton]="g?.showRegisterAudioFooterButton"
122
+ [showAudioRecorderFooterButton]="g?.showAudioRecorderFooterButton"
123
123
  [hideTextAreaContent]="(g?.singleConversation && hideTextAreaContent) || (isConversationArchived && !g?.allowReopen)"
124
124
  [isConversationArchived]="isConversationArchived"
125
125
  [hideTextReply]="hideFooterTextReply"
@@ -67,7 +67,7 @@
67
67
  </div>
68
68
 
69
69
  <!-- ICON SEND -->
70
- <div *ngIf="(textInputTextArea !== '' && !isStopRec) || !showRegisterAudioFooterButton" tabindex="-1" class="chat21-textarea-button" [class.active]="textInputTextArea && !hideTextReply" id="chat21-button-send" (click)="onSendPressed($event)">
70
+ <div *ngIf="(textInputTextArea !== '' && !isStopRec) || !showAudioRecorderFooterButton" tabindex="-1" class="chat21-textarea-button" [class.active]="textInputTextArea && !hideTextReply" id="chat21-button-send" (click)="onSendPressed($event)">
71
71
  <span class="v-align-center">
72
72
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="24" width="24" viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
73
73
  <path d="M1.8,18.9V1.7L22,10.3L1.8,18.9z M3.9,15.6l12.6-5.4L3.9,4.9v3.7l6.4,1.6l-6.4,1.6V15.6z M3.9,15.6V4.9v7V15.6z"/>
@@ -76,7 +76,7 @@
76
76
  </div>
77
77
 
78
78
  <!-- ICON REC -->
79
- <div *ngIf="showRegisterAudioFooterButton && !textInputTextArea" tabindex="-1" class="chat21-audio-button" [class.active]="isStopRec" id="chat21-button-rec">
79
+ <div *ngIf="showAudioRecorderFooterButton && !textInputTextArea" tabindex="-1" class="chat21-audio-button" [class.active]="isStopRec" id="chat21-button-rec">
80
80
  <chat-audio-recorder
81
81
  (startRecordingEvent)="onStartRecording()"
82
82
  (deleteRecordingEvent)="onDeleteRecording()"
@@ -29,7 +29,7 @@ export class ConversationFooterComponent implements OnInit, OnChanges {
29
29
  @Input() userEmail: string;
30
30
  @Input() showAttachmentFooterButton: boolean;
31
31
  @Input() showEmojiFooterButton: boolean
32
- @Input() showRegisterAudioFooterButton: boolean
32
+ @Input() showAudioRecorderFooterButton: boolean
33
33
  // @Input() showContinueConversationButton: boolean;
34
34
  @Input() isConversationArchived: boolean;
35
35
  @Input() hideTextAreaContent: boolean;
@@ -512,8 +512,8 @@ export class GlobalSettingsService {
512
512
  if (variables.hasOwnProperty('showAttachmentFooterButton')) {
513
513
  globals['showAttachmentFooterButton'] = variables['showAttachmentFooterButton'];
514
514
  }
515
- if (variables.hasOwnProperty('showRegisterAudioFooterButton')) {
516
- globals['showRegisterAudioFooterButton'] = variables['showRegisterAudioFooterButton'];
515
+ if (variables.hasOwnProperty('showAudioRecorderFooterButton')) {
516
+ globals['showAudioRecorderFooterButton'] = variables['showAudioRecorderFooterButton'];
517
517
  }
518
518
 
519
519
  }
@@ -1056,10 +1056,10 @@ export class GlobalSettingsService {
1056
1056
  if (TEMP !== undefined) {
1057
1057
  globals.showEmojiFooterButton = (TEMP === true) ? true : false;
1058
1058
  }
1059
- TEMP = tiledeskSettings['showRegisterAudioFooterButton'];
1059
+ TEMP = tiledeskSettings['showAudioRecorderFooterButton'];
1060
1060
  // this.logger.debug('[GLOBAL-SET] setVariablesFromSettings > showEmojiFooterButton:: ', TEMP]);
1061
1061
  if (TEMP !== undefined) {
1062
- globals.showRegisterAudioFooterButton = (TEMP === true) ? true : false;
1062
+ globals.showAudioRecorderFooterButton = (TEMP === true) ? true : false;
1063
1063
  }
1064
1064
  }
1065
1065
 
@@ -1335,9 +1335,9 @@ export class GlobalSettingsService {
1335
1335
  if (TEMP !== null) {
1336
1336
  this.globals.showEmojiFooterButton = (TEMP === true) ? true : false;
1337
1337
  }
1338
- TEMP = el.nativeElement.getAttribute('showRegisterAudioFooterButton');
1338
+ TEMP = el.nativeElement.getAttribute('showAudioRecorderFooterButton');
1339
1339
  if (TEMP !== null) {
1340
- this.globals.showRegisterAudioFooterButton = (TEMP === true) ? true : false;
1340
+ this.globals.showAudioRecorderFooterButton = (TEMP === true) ? true : false;
1341
1341
  }
1342
1342
 
1343
1343
 
@@ -218,7 +218,7 @@ export class Globals {
218
218
 
219
219
  showEmojiFooterButton: boolean // ******* new ********
220
220
  showAttachmentFooterButton: boolean // ******* new ********
221
- showRegisterAudioFooterButton: boolean // ******* new ********
221
+ showAudioRecorderFooterButton: boolean // ******* new ********
222
222
  constructor(
223
223
  ) { }
224
224
 
@@ -419,7 +419,7 @@ export class Globals {
419
419
  /** show/hide attachment option in footer chat-detail page */
420
420
  this.showAttachmentFooterButton = true;
421
421
  /** show/hide rec audio option in footer chat-detail page */
422
- this.showRegisterAudioFooterButton = true;
422
+ this.showAudioRecorderFooterButton = true;
423
423
 
424
424
  // ============ END: SET EXTERNAL PARAMETERS ==============//
425
425
 
@@ -1352,10 +1352,10 @@
1352
1352
  window.Tiledesk('restart')
1353
1353
  }
1354
1354
 
1355
- function onClickShowRegisterAudioFooterButton(){
1356
- let status = document.querySelector('input[name="showRegisterAudioFooterButton"]:checked').value
1357
- window.tiledeskSettings['showRegisterAudioFooterButton'] = stringToBoolean(status)
1358
- console.log('onClickShowRegisterAudioFooterButton:', window.tiledeskSettings)
1355
+ function onClickshowAudioRecorderFooterButton(){
1356
+ let status = document.querySelector('input[name="showAudioRecorderFooterButton"]:checked').value
1357
+ window.tiledeskSettings['showAudioRecorderFooterButton'] = stringToBoolean(status)
1358
+ console.log('onClickshowAudioRecorderFooterButton:', window.tiledeskSettings)
1359
1359
  window.Tiledesk('restart')
1360
1360
  }
1361
1361
 
@@ -2402,13 +2402,13 @@
2402
2402
  </div>
2403
2403
 
2404
2404
  <div class="row">
2405
- <div class="col-md-5 formElement"><span><em><strong>showRegisterAudioFooterButton</strong></em></span></div>
2405
+ <div class="col-md-5 formElement"><span><em><strong>showAudioRecorderFooterButton</strong></em></span></div>
2406
2406
  <div class="col-md-5">
2407
- <input class="form-check-input" type="radio" name="showRegisterAudioFooterButton" value="true" checked><label>True</label>
2408
- <input class="form-check-input" type="radio" name="showRegisterAudioFooterButton" value="false"><label>False</label>
2407
+ <input class="form-check-input" type="radio" name="showAudioRecorderFooterButton" value="true" checked><label>True</label>
2408
+ <input class="form-check-input" type="radio" name="showAudioRecorderFooterButton" value="false"><label>False</label>
2409
2409
  </div>
2410
2410
  <div class="col-md-2">
2411
- <button class="btn btn-light" onclick="onClickShowRegisterAudioFooterButton()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
2411
+ <button class="btn btn-light" onclick="onClickshowAudioRecorderFooterButton()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
2412
2412
  </div>
2413
2413
  </div>
2414
2414