@chat21/chat21-ionic 3.4.19-rc2 → 3.4.19

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,11 @@
8
8
  ### **Copyrigth**:
9
9
  *Tiledesk SRL*
10
10
 
11
+ # 3.4.19 in PROD
12
+
13
+ # 3.4.19-rc3
14
+ - **changed**: eml message link added from attributes
15
+
11
16
  # 3.4.19-rc2
12
17
  - **bug-fixed**: minor fix on ion-texarea element with allowed url domain
13
18
 
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.19-rc2",
4
+ "version": "3.4.19",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -1,5 +1,13 @@
1
- <!-- [ngStyle] = "{ 'width': message.type === 'image' ? media_width +'px' : '' }" -->
2
1
  <p #messageEl class="message_innerhtml marked"
3
2
  [innerHTML]="printMessage(text, messageEl, this) | htmlEntiesEncode | marked"
4
3
  [ngStyle]="{'color': '$'+ color }">
5
4
  </p>
5
+
6
+ <span *ngIf="message?.attributes?.email_eml" class="email-eml">
7
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1" viewBox="0 0 100 125">
8
+ <path fill="#000" d="M91,50.5h-8v-12s0,0,0,0c0,0,0-.2,0-.3,0,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1-.1-.2,0,0,0,0,0-.1,0-.1-.2-.2-.2-.3l-19.1-19.1s0,0,0,0c0,0-.2-.2-.3-.2,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1,0-.2,0-.1,0-.2,0-.4,0H18.9c-1.1,0-1.9.9-1.9,1.9v31.1h-8c-1.1,0-2.1.9-2.1,2.1v29.4c0,1.2.9,2.1,2.1,2.1h8v21.5c0,1.1.9,1.9,1.9,1.9h62.2c1.1,0,1.9-.9,1.9-1.9v-21.5h8c1.1,0,2.1-.9,2.1-2.1v-29.4c0-1.1-.9-2.1-2.1-2.1ZM63.9,24l12.6,12.6h-12.6v-12.6ZM20.8,21.3h39.3v17.2c0,1.1.9,1.9,1.9,1.9h17.2v10.1H20.8v-29.2ZM79.1,72.4v5.3h-14.6v-20.8h5.9v15.5s8.7,0,8.7,0ZM60.9,77.8h-5.9l-.3-8.2c0-.2,0-.4,0-.7,0,.2-.1.3-.2.5l-2.3,8.1h-4.6l-2-7.8-.3,8.1h-5.7l1.2-20.8h6.9l1.9,7c.2.9.4,1.7.6,2.5.2-.8.4-1.7.6-2.5l2.1-7h6.8l1,20.8ZM35.5,64.2v5.3h-8.7v3h9.7v5.3h-15.6v-21h15.3v5.4h-9.3v2s8.7,0,8.7,0ZM79.2,103.7H20.8v-19.6h58.4s0,19.6,0,19.6Z"/>
9
+ </svg>
10
+ <p [innerHTML]="message?.attributes?.email_eml | marked"></p>
11
+ </span>
12
+
13
+
@@ -48,4 +48,15 @@ p ::ng-deep ol{
48
48
  }
49
49
  }
50
50
 
51
+ .email-eml{
52
+ display: flex;
53
+ flex-direction: row;
54
+ align-items: center;
55
+ padding: 0px 14px 14px 0px;
56
+
57
+ p {
58
+ padding: 0;
59
+ }
60
+ }
61
+
51
62
 
@@ -9,13 +9,13 @@ export class TextComponent implements OnInit {
9
9
 
10
10
  @Input() text: string;
11
11
  @Input() color: string;
12
+ @Input() fontSize: string;
13
+ @Input() fontFamily: string;
12
14
  @Output() onBeforeMessageRender = new EventEmitter();
13
15
  @Output() onAfterMessageRender = new EventEmitter();
14
16
 
15
17
  @Input() message: any;
16
18
 
17
- public media_width: number;
18
- public media_height: number;
19
19
 
20
20
  constructor() { }
21
21
 
@@ -34,23 +34,4 @@ export class TextComponent implements OnInit {
34
34
  return messageText;
35
35
  }
36
36
 
37
- ngOnChanges() {
38
- if (this.message.type === 'image') {
39
- // console.log('TextComponent message ', this.message)
40
- if (this.message.metadata.width && this.message.metadata.width > MAX_WIDTH_IMAGES) {
41
-
42
- const ratio = (this.message.metadata['width'] / this.message.metadata['height']);
43
-
44
- this.media_width = MAX_WIDTH_IMAGES;
45
- this.media_height = MAX_WIDTH_IMAGES / ratio;
46
-
47
- // console.log('TextComponent media_width ', this.media_width, ' media_height' , this.media_height)
48
- } else {
49
- this.media_width = this.message.metadata.width;
50
- this.media_height = this.message.metadata.height;
51
- // console.log('TextComponent media_width ', this.media_width, ' media_height' , this.media_height)
52
- }
53
- }
54
- }
55
-
56
37
  }