@chat21/chat21-web-widget 5.0.47-rc.2 → 5.0.48-rc.1
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 +9 -0
- package/dist/assets/images/{website mockup.jpg → website_mockup.jpg} +0 -0
- package/dist/assets/twp/chatbot-panel.html +2 -2
- package/dist/main.js +1 -1
- package/dist/test.html +1 -4
- package/package.json +1 -1
- package/src/app/app.module.ts +1 -1
- package/src/app/component/home/home.component.ts +1 -1
- package/src/app/component/message/bubble-message/bubble-message.component.html +27 -27
- package/src/app/providers/global-settings.service.ts +8 -4
- package/src/assets/images/{website mockup.jpg → website_mockup.jpg} +0 -0
- package/src/assets/twp/chatbot-panel.html +2 -2
package/dist/test.html
CHANGED
|
@@ -59,10 +59,7 @@
|
|
|
59
59
|
// buttonHoverTextColor: "#828282",
|
|
60
60
|
// buttonHoverBackgroundColor: "#b61416",
|
|
61
61
|
// preChatFormJson: [{"name": "userFullname", "type":"text", "mandatory":true, "label":"LABEL_FIELD_NAME"}]
|
|
62
|
-
hideSettings: false
|
|
63
|
-
whatsappNumber: '222222',
|
|
64
|
-
messangerPageTitle: 'ddsad',
|
|
65
|
-
telegramUsername: 'sdasd'
|
|
62
|
+
hideSettings: false
|
|
66
63
|
};
|
|
67
64
|
|
|
68
65
|
(function(d, s, id) {
|
package/package.json
CHANGED
package/src/app/app.module.ts
CHANGED
|
@@ -228,7 +228,7 @@ export function uploadFactory(http: HttpClient, appConfig: AppConfigService, app
|
|
|
228
228
|
const config = appConfig.getConfig()
|
|
229
229
|
if (config.uploadEngine === UPLOAD_ENGINE_NATIVE) {
|
|
230
230
|
const nativeUploadService = new NativeUploadService(http, appStorage)
|
|
231
|
-
nativeUploadService.setBaseUrl(config.
|
|
231
|
+
nativeUploadService.setBaseUrl(config.baseImageUrl)
|
|
232
232
|
return nativeUploadService
|
|
233
233
|
} else {
|
|
234
234
|
return new FirebaseUploadService();
|
|
@@ -105,7 +105,7 @@ export class HomeComponent implements OnInit, AfterViewInit {
|
|
|
105
105
|
|
|
106
106
|
openConversationOnPlatform(platform: "telegram" | "whatsapp" | "messanger" ){
|
|
107
107
|
if(platform === 'telegram'){
|
|
108
|
-
window.open('https://telegram.me'+this.g.telegramUsername, '_blank')
|
|
108
|
+
window.open('https://telegram.me/'+this.g.telegramUsername, '_blank')
|
|
109
109
|
}else if(platform === 'whatsapp'){
|
|
110
110
|
window.open('https://wa.me/'+this.g.whatsappNumber, '_blank')
|
|
111
111
|
}else if(platform=== 'messanger'){
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- [ngClass]="{'button-in-msg' : message.metadata && message.metadata.button}" -->
|
|
2
2
|
<!-- ngStyle]="{'padding': (isImage(message) || isFrame(message))?'1px':'0 8px'}" -->
|
|
3
3
|
<!-- 'width': (isImage(message) || isFrame(message))? sizeImage?.width + 'px': null -->
|
|
4
|
-
<div [ngStyle]="{'padding': (isImage(message) || isFrame(message))?'0 0px':'0 8px'}" class="messages primary-color">
|
|
4
|
+
<div id="bubble-message" [ngStyle]="{'padding': (isImage(message) || isFrame(message))?'0 0px':'0 8px'}" class="messages primary-color">
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
<div>
|
|
@@ -52,33 +52,33 @@
|
|
|
52
52
|
</ng-template>
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
<!-- [htmlEnabled]="(message?.type==='html')? true : false" -->
|
|
56
|
+
<chat-text *ngIf="message?.type !=='html'"
|
|
57
|
+
[text]="message?.text"
|
|
58
|
+
[color]="fontColor"
|
|
59
|
+
[fontSize]="fontSize"
|
|
60
|
+
[fontFamily]="fontFamily"
|
|
61
|
+
(onBeforeMessageRender)="onBeforeMessageRenderFN($event)"
|
|
62
|
+
(onAfterMessageRender)="onAfterMessageRenderFN($event)">
|
|
63
|
+
</chat-text>
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
65
|
+
<chat-html *ngIf="message?.type==='html'"
|
|
66
|
+
[htmlText]="message?.text"
|
|
67
|
+
[fontSize]="stylesMap.get('buttonFontSize')"
|
|
68
|
+
[themeColor]="stylesMap.get('themeColor')"
|
|
69
|
+
[foregroundColor]="stylesMap.get('foregroundColor')">
|
|
70
|
+
</chat-html>
|
|
71
|
+
<!-- <p #messageEl class="message_innerhtml marked" [innerHTML]="printMessage(message, messageEl, this) | marked"></p> -->
|
|
72
|
+
<!-- <div *ngIf="isPopupUrl(message.text); then contentPopup else contentNewTab">here
|
|
73
|
+
is ignored</div>
|
|
74
|
+
<ng-template #contentPopup>
|
|
75
|
+
<p style="text-decoration: underline; padding:8px; cursor: pointer;"
|
|
76
|
+
(click)="popupUrl(g.windowContext, message.text,'windowName')">{{strip_tags(message.text)}}</p>
|
|
77
|
+
</ng-template>
|
|
78
|
+
<ng-template #contentNewTab>
|
|
79
|
+
<p #messageEl [innerHTML]="printMessage(message, messageEl, this) | linky"></p>
|
|
80
|
+
</ng-template> -->
|
|
81
|
+
</div>
|
|
82
82
|
|
|
83
83
|
</div>
|
|
84
84
|
|
|
@@ -1789,20 +1789,22 @@ export class GlobalSettingsService {
|
|
|
1789
1789
|
// }
|
|
1790
1790
|
// console.log('this.globals.offline_msg ::::', department['offline_msg']);
|
|
1791
1791
|
// console.log('this.globals.online_msg ::::', department['online_msg']);
|
|
1792
|
-
departments.splice(i, 1);
|
|
1792
|
+
// departments.splice(i, 1);
|
|
1793
|
+
this.globals.setParameter('departmentDefault', departments[i]);
|
|
1794
|
+
this.setDepartment(departments[i]);
|
|
1793
1795
|
return;
|
|
1794
1796
|
}
|
|
1795
1797
|
i++;
|
|
1796
1798
|
});
|
|
1797
|
-
this.globals.setParameter('departmentDefault', departments[0]);
|
|
1798
|
-
this.setDepartment(departments[0]);
|
|
1799
|
+
// this.globals.setParameter('departmentDefault', departments[0]);
|
|
1800
|
+
// this.setDepartment(departments[0]);
|
|
1799
1801
|
} else {
|
|
1800
1802
|
// DEPARTMENT DEFAULT NON RESTITUISCE RISULTATI !!!!
|
|
1801
1803
|
this.logger.error('[GLOBAL-SET] initDepartments > DEPARTMENT DEFAULT NON RESTITUISCE RISULTATI ::::');
|
|
1802
1804
|
// return;
|
|
1803
1805
|
}
|
|
1804
1806
|
|
|
1805
|
-
this.setDepartmentFromExternal(); // chiamata ridondante viene fatta nel setParameters come ultima operazione
|
|
1807
|
+
// this.setDepartmentFromExternal(); // chiamata ridondante viene fatta nel setParameters come ultima operazione
|
|
1806
1808
|
}
|
|
1807
1809
|
|
|
1808
1810
|
|
|
@@ -1828,6 +1830,8 @@ export class GlobalSettingsService {
|
|
|
1828
1830
|
}
|
|
1829
1831
|
this.logger.debug('[GLOBAL-SET] setDepartmentFromExternal > END departmentID ::::' + this.globals.departmentID + isValidID);
|
|
1830
1832
|
}
|
|
1833
|
+
//remove default department from list
|
|
1834
|
+
this.globals.departments = this.globals.departments.filter(obj => obj['default'] !== true)
|
|
1831
1835
|
}
|
|
1832
1836
|
|
|
1833
1837
|
/**
|
|
File without changes
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
|
|
102
102
|
.mockup{
|
|
103
103
|
background-repeat: no-repeat;
|
|
104
|
-
background-image: url(../images/
|
|
104
|
+
background-image: url(../images/website_mockup.jpg);
|
|
105
105
|
background-size: calc(100% - 122px);
|
|
106
106
|
background-position-x: 50px;
|
|
107
107
|
background-position-y: 100px;
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
|
|
406
406
|
window.onload = function() {
|
|
407
407
|
document.getElementById("project_id").innerHTML = '"' + tiledesk_projectid + '"';
|
|
408
|
-
document.getElementById("project_name").innerHTML = project_name;
|
|
408
|
+
// document.getElementById("project_name").innerHTML = project_name;
|
|
409
409
|
|
|
410
410
|
if(role !== 'agent'){
|
|
411
411
|
document.getElementById("testPageButton").style.display = 'block'
|