@chat21/chat21-ionic 3.0.90-rc.6 → 3.0.90-rc.7
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 +4 -0
- package/angular.json +1 -0
- package/package.json +1 -1
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +1 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +2 -1
- package/src/app/chatlib/conversation-detail/message/options/options.component.ts +3 -1
- package/src/app/components/bubbleMessageInfo-popover/bubbleinfo-popover.component.html +2 -2
- package/src/app/components/bubbleMessageInfo-popover/bubbleinfo-popover.component.ts +4 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +0 -10
- package/src/chat-config-native-prod.json +36 -0
- package/src/chat-config-pre.json +1 -1
- package/src/chat21-core/providers/abstract/logger.service.ts +1 -0
- package/src/chat21-core/providers/logger/customLogger.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# chat21-ionic ver 3.0
|
|
2
2
|
|
|
3
|
+
### 3.0.90-rc.7
|
|
4
|
+
- added: logLevel condition to enable Json Message option in bubble-message
|
|
5
|
+
- bug-fixed: enable Copy option in bubble-message only if text exist
|
|
6
|
+
|
|
3
7
|
### 3.0.90-rc.6
|
|
4
8
|
- changed: dimension of bottom tiledesk logo in left sidebar
|
|
5
9
|
- removed: isDev control
|
package/angular.json
CHANGED
package/package.json
CHANGED
package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts
CHANGED
|
@@ -23,6 +23,7 @@ export class BubbleMessageComponent implements OnInit, OnChanges {
|
|
|
23
23
|
@Input() fontColor: string;
|
|
24
24
|
@Input() fontSize: string;
|
|
25
25
|
@Input() fontFamily: string;
|
|
26
|
+
@Input() supportMode: boolean;
|
|
26
27
|
@Output() onBeforeMessageRender = new EventEmitter();
|
|
27
28
|
@Output() onAfterMessageRender = new EventEmitter();
|
|
28
29
|
@Output() onElementRendered = new EventEmitter<{element: string, status: boolean}>();
|
|
@@ -53,7 +54,7 @@ export class BubbleMessageComponent implements OnInit, OnChanges {
|
|
|
53
54
|
};
|
|
54
55
|
sizeImage : { width: number, height: number}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
public logger: LoggerService = LoggerInstance.getInstance()
|
|
57
58
|
|
|
58
59
|
constructor(
|
|
59
60
|
public sanitizer: DomSanitizer,
|
|
@@ -12,7 +12,8 @@ import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance'
|
|
|
12
12
|
})
|
|
13
13
|
export class OptionsComponent implements OnInit {
|
|
14
14
|
|
|
15
|
-
@Input() message: MessageModel
|
|
15
|
+
@Input() message: MessageModel;
|
|
16
|
+
@Input() logLevel: number;
|
|
16
17
|
@Output() onOptionsMessage = new EventEmitter<{option: string, message: MessageModel}>();
|
|
17
18
|
|
|
18
19
|
private logger: LoggerService = LoggerInstance.getInstance()
|
|
@@ -30,6 +31,7 @@ export class OptionsComponent implements OnInit {
|
|
|
30
31
|
async presentPopover(ev: any, message: MessageModel) {
|
|
31
32
|
const attributes = {
|
|
32
33
|
message: message,
|
|
34
|
+
logLevel: this.logLevel,
|
|
33
35
|
conversationWith: message.recipient
|
|
34
36
|
}
|
|
35
37
|
const popover = await this.popoverController.create({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<ion-list lines="none" class="ion-no-padding">
|
|
2
|
-
<ion-item button="true" (click)="onClickOption('copy')">
|
|
2
|
+
<ion-item button="true" *ngIf="message.text.trim() !== ''"(click)="onClickOption('copy')">
|
|
3
3
|
<ion-icon name="copy-outline" slot="start"></ion-icon>
|
|
4
4
|
<ion-label>{{translationsMap?.get('COPY')}}</ion-label>
|
|
5
5
|
</ion-item>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<!-- <span class="add-canned-response-add-icon">+</span> -->
|
|
9
9
|
<ion-label>{{translationsMap?.get('AddAsCannedResponse')}}</ion-label>
|
|
10
10
|
</ion-item>
|
|
11
|
-
<ion-item button="true" (click)="onClickOption('jsonInfo')">
|
|
11
|
+
<ion-item button="true" *ngIf="logLevel >= LogLevel.DEBUG" (click)="onClickOption('jsonInfo')">
|
|
12
12
|
<ion-icon src="assets/images/json-file.svg" slot="start"></ion-icon>
|
|
13
13
|
<ion-label>{{translationsMap?.get('JSON_RESPONSE')}}</ion-label>
|
|
14
14
|
</ion-item>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LogLevel } from './../../../chat21-core/utils/constants';
|
|
1
2
|
import { PopoverController } from '@ionic/angular';
|
|
2
3
|
import { LoggerInstance } from './../../../chat21-core/providers/logger/loggerInstance';
|
|
3
4
|
import { LoggerService } from 'src/chat21-core/providers/abstract/logger.service';
|
|
@@ -13,6 +14,9 @@ import { CustomTranslateService } from 'src/chat21-core/providers/custom-transla
|
|
|
13
14
|
export class BubbleInfoPopoverComponent implements OnInit {
|
|
14
15
|
|
|
15
16
|
@Input() message: MessageModel
|
|
17
|
+
@Input() logLevel: number;
|
|
18
|
+
|
|
19
|
+
LogLevel = LogLevel
|
|
16
20
|
|
|
17
21
|
public translationsMap: Map<string, string>;
|
|
18
22
|
private logger: LoggerService = LoggerInstance.getInstance()
|
|
@@ -24,16 +24,6 @@
|
|
|
24
24
|
<span class="tile-username truncate">{{ conversationAvatar.conversation_with_fullname}} </span>
|
|
25
25
|
<!-- <span class="tile-username">{{ conversation_with_fullname }} </span> -->
|
|
26
26
|
</div>
|
|
27
|
-
|
|
28
|
-
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '63px' : '' }" -->
|
|
29
|
-
<!-- <div *ngIf="isDirect" class="user-presence" [ngClass]="{ 'user-presence-ios': platformName === 'ios' }">
|
|
30
|
-
<app-user-presence
|
|
31
|
-
[idUser]=conversationAvatar.conversation_with
|
|
32
|
-
[translationMap]=translationsMap
|
|
33
|
-
[borderColor]=borderColor
|
|
34
|
-
[fontColor]=fontColor>
|
|
35
|
-
</app-user-presence>
|
|
36
|
-
</div> -->
|
|
37
27
|
|
|
38
28
|
<div class="subtitle-info">
|
|
39
29
|
<div class="conversation_project">
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"t2y12PruGU9wUtEGzBJfolMIgK": "CAR:T-PAY:T-ANA:T-ACT:T-APP:T-MTT:T",
|
|
3
|
+
"chatEngine": "mqtt",
|
|
4
|
+
"uploadEngine": "native",
|
|
5
|
+
"pushEngine": "mqtt",
|
|
6
|
+
"fileUploadAccept": "/",
|
|
7
|
+
"firebaseConfig": {
|
|
8
|
+
"tenant":"tilechat",
|
|
9
|
+
"apiKey": "AIzaSyDKfdKrlD7AYcbQ-U-xxgV-b3FUQ4xt7NM",
|
|
10
|
+
"authDomain": "tiledesk-prod-v2.firebaseapp.com",
|
|
11
|
+
"databaseURL": "https://tiledesk-prod-v2.firebaseio.com/",
|
|
12
|
+
"projectId": "tiledesk-prod-v2",
|
|
13
|
+
"storageBucket": "tiledesk-prod-v2.appspot.com",
|
|
14
|
+
"messagingSenderId": "92907897826",
|
|
15
|
+
"appId": "1:92907897826:web:f255664014a7cc14ee2fbb",
|
|
16
|
+
"chat21ApiUrl": "'https://us-central1-tiledesk-prod-v2.cloudfunctions.net/",
|
|
17
|
+
"vapidKey": "BLhTl-rK33_I4Avgk40T6MR9AGtgAfwDJK_sRbyBQHzIfyztLVsvrxILP6I6KgwagQCQIx-t6lgguEsSt0vULjw"
|
|
18
|
+
},
|
|
19
|
+
"chat21Config": {
|
|
20
|
+
"appId": "tilechat",
|
|
21
|
+
"MQTTendpoint": "wss://eu.rtmv3.tiledesk.com/mqws/ws",
|
|
22
|
+
"APIendpoint": "https://eu.rtmv3.tiledesk.com/chatapi/api/"
|
|
23
|
+
},
|
|
24
|
+
"apiUrl": "https://api.tiledesk.com/v3/",
|
|
25
|
+
"baseImageUrl": "https://eu.rtmv3.tiledesk.com/api/",
|
|
26
|
+
"dashboardUrl": "https://console.tiledesk.com/v3/dashboard/",
|
|
27
|
+
"testsiteBaseUrl": "https://widget.tiledesk.com/v6/assets/twp/index.html",
|
|
28
|
+
"wsUrl": "wss://eu.rtmv3.tiledesk.com/api/",
|
|
29
|
+
"logLevel": "debug",
|
|
30
|
+
"authPersistence": "LOCAL",
|
|
31
|
+
"storage_prefix": "chat_sv6",
|
|
32
|
+
"supportMode": true,
|
|
33
|
+
"archivedButton": true,
|
|
34
|
+
"writeToButton": true,
|
|
35
|
+
"emailSection":true
|
|
36
|
+
}
|
package/src/chat-config-pre.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"baseImageUrl": "https://firebasestorage.googleapis.com/v0/b/",
|
|
27
27
|
"dashboardUrl": "https://support-pre.tiledesk.com/dashboard/",
|
|
28
28
|
"testsiteBaseUrl": "https://widget-pre.tiledesk.com/v5/assets/twp/index.html",
|
|
29
|
-
"logLevel": "
|
|
29
|
+
"logLevel": "error",
|
|
30
30
|
"authPersistence": "LOCAL",
|
|
31
31
|
"supportMode": true,
|
|
32
32
|
"archivedButton": true,
|
|
@@ -8,6 +8,7 @@ export abstract class LoggerService {
|
|
|
8
8
|
constructor() { }
|
|
9
9
|
|
|
10
10
|
abstract setLoggerConfig(isLogEnabled: boolean, logLevel: string);
|
|
11
|
+
abstract getLoggerConfig(): {isLogEnabled: boolean, logLevel: number};
|
|
11
12
|
abstract debug(...message: any[])
|
|
12
13
|
abstract log(...message: any[])
|
|
13
14
|
abstract warn(...message: any[])
|
|
@@ -24,6 +24,10 @@ export class CustomLogger implements LoggerService {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
getLoggerConfig(): {isLogEnabled: boolean, logLevel: number}{
|
|
28
|
+
return {isLogEnabled: this.isLogEnabled, logLevel: this.logLevel}
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
error(...message: any[]) {
|
|
28
32
|
if (this.isLogEnabled && this.logLevel >= LogLevel.ERROR) {
|
|
29
33
|
this.logger.error(message)
|