@chat21/chat21-ionic 3.4.27-rc13 → 3.4.27-rc14

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
@@ -8,6 +8,10 @@
8
8
  ### **Copyrigth**:
9
9
  *Tiledesk SRL*
10
10
 
11
+ # 3.4.27-rc14
12
+ - **added**: DISPLAY_EDIT_PROFILE brand variable
13
+ - **bug-fixed**: emojii is sent also if is not allowed
14
+
11
15
  # 3.4.27-rc13
12
16
  - **added**: ability to mantain logout parameter when redirect to dashboard urls from sidebar component
13
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.4.27-rc13",
4
+ "version": "3.4.27-rc14",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -548,6 +548,10 @@ export class MessageTextAreaComponent implements OnInit, AfterViewInit, OnChange
548
548
  e.preventDefault(); // Prevent press enter from creating new line
549
549
  // console.log("[CONVS-DETAIL] replaceTagInMessage onKeydown in msg-texarea * event: ", e);
550
550
 
551
+ if(this.showAlertEmoji || this.showAlertUrl){
552
+ return;
553
+ }
554
+
551
555
  this.countClicks++;
552
556
  this.logger.log('[CONVS-DETAIL][MSG-TEXT-AREA] onKeydown - countClicks: ', this.countClicks);
553
557
  this.logger.log('[CONVS-DETAIL][MSG-TEXT-AREA] onKeydown - event: ', e);
@@ -652,6 +656,11 @@ export class MessageTextAreaComponent implements OnInit, AfterViewInit, OnChange
652
656
  return
653
657
  }
654
658
 
659
+ let check = this.checkForEmojii(text)
660
+ if(!check){
661
+ return;
662
+ }
663
+
655
664
  this.messageString = '';
656
665
  // text = text.replace(/(\r\n|\n|\r)/gm, '');
657
666
 
@@ -51,7 +51,7 @@
51
51
  <div class="user-details-role">
52
52
  <h3>{{ USER_ROLE_LABEL }} </h3>
53
53
 
54
- <div class="user-details-view-profile" (click)="goToUserProfile()">
54
+ <div *ngIf="BRAND_BASE_INFO['DISPLAY_EDIT_PROFILE']" class="user-details-view-profile" (click)="goToUserProfile()">
55
55
  {{translationsMap.get('EditProfile')}}
56
56
  </div>
57
57
 
@@ -7,7 +7,8 @@ export const BRAND_BASE_INFO: { [key: string] : string | boolean} ={
7
7
  FAVICON: "https://tiledesk.com/wp-content/uploads/2022/07/tiledesk_v13-300x300.png",
8
8
  META_TITLE:"Tiledesk - Open Source Live Chat",
9
9
  DOCS: true,
10
- LOGOUT_ENABLED: true
10
+ LOGOUT_ENABLED: true,
11
+ DISPLAY_EDIT_PROFILE: true
11
12
  }
12
13
 
13
14
  export var LOGOS_ITEMS: { [key: string] : { label: string | boolean, icon: string }} ={