@chat21/chat21-web-widget 5.1.0-rc5 → 5.1.0-rc6
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 +3 -0
- package/Dockerfile +1 -1
- package/deploy_beta.sh +2 -1
- package/deploy_prod.sh +3 -3
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation/conversation.component.html +0 -1
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html +2 -2
- package/src/app/component/conversation-detail/conversation-header/conversation-header.component.ts +0 -1
- package/src/app/providers/global-settings.service.ts +0 -14
- package/src/app/utils/globals.ts +1 -4
- package/src/assets/twp/index-dev.html +0 -17
package/CHANGELOG.md
CHANGED
package/Dockerfile
CHANGED
package/deploy_beta.sh
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# npm version prerelease --preid=beta
|
|
2
2
|
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
3
|
echo "version $version"
|
|
4
|
-
|
|
4
|
+
echo "____________WIDGET-V5______________"
|
|
5
|
+
echo "CREATING TAG ON GIT FOR version: $version"
|
|
5
6
|
|
|
6
7
|
# Get curent branch name
|
|
7
8
|
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
package/deploy_prod.sh
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# npm version
|
|
1
|
+
# npm version prerelease --preid=beta
|
|
2
2
|
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
|
-
|
|
3
|
+
echo "version $version"
|
|
4
|
+
echo "____________WIDGET-V5______________"
|
|
4
5
|
echo "CREATING TAG ON GIT FOR version: $version"
|
|
5
|
-
# echo "version $version"
|
|
6
6
|
|
|
7
7
|
# Get curent branch name
|
|
8
8
|
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
package/package.json
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
[hideHeaderCloseButton]="g?.hideHeaderCloseButton"
|
|
16
16
|
[hideHeaderBackButton]="g?.singleConversation"
|
|
17
17
|
[hideCloseConversationOptionMenu]="(isConversationArchived || g?.hideCloseConversationOptionMenu)"
|
|
18
|
-
[hideRestartConversationOptionsMenu]="(isConversationArchived || (!g?.singleConversation && !hideTextAreaContent) || g?.hideRestartConversationOptionsMenu)"
|
|
19
18
|
[hideHeaderConversationOptionsMenu]="g?.hideHeaderConversationOptionsMenu"
|
|
20
19
|
[hideSignOutOptionMenu]="(!g?.singleConversation || !g?.showLogoutOption)"
|
|
21
20
|
[hideChatDetailOptionMenu]="(!g?.isDevMode)"
|
package/src/app/component/conversation-detail/conversation-header/conversation-header.component.html
CHANGED
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
<!-- ICON RESTART CONVERSATION -->
|
|
115
|
-
<div class="c21-header-button c21-right" *ngIf="!hideRestartConversationOptionsMenu" (click)="restartChat()">
|
|
115
|
+
<!-- <div class="c21-header-button c21-right" *ngIf="!hideRestartConversationOptionsMenu" (click)="restartChat()">
|
|
116
116
|
<svg role="img" id="refresh" aria-labelledby="altIconTitle" class="icon-menu" xmlns="http://www.w3.org/2000/svg"
|
|
117
117
|
width="20px" height="20px" viewBox="0 0 20 20">
|
|
118
118
|
<path d="M9.6,18.2c0.6,0,1-0.7,1-1.5s-0.5-1.5-1-1.5H6c-0.6,0-1-0.7-1-1.5V7.8h1c0.4,0,0.8-0.4,1-0.9c0.2-0.6,0.1-1.2-0.2-1.6 l-2.1-3c-0.4-0.6-1.1-0.6-1.5,0l-2.1,3C0.9,5.7,0.8,6.3,1,6.9s0.5,0.9,1,0.9h1v5.9c0,2.5,1.4,4.4,3.1,4.4H9.6z"/>
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
<title id="altIconTitle">{{ translationMap?.get('RESTART') }}</title>
|
|
121
121
|
</svg>
|
|
122
122
|
<span class="label-menu-item">{{ translationMap?.get('RESTART') }}</span>
|
|
123
|
-
</div>
|
|
123
|
+
</div> -->
|
|
124
124
|
|
|
125
125
|
<!-- ICON MAXIMIZE -->
|
|
126
126
|
<!-- <div class="c21-header-button c21-right" *ngIf="heightStatus==='min'" (click)="maximizeMinimize('max')">
|
package/src/app/component/conversation-detail/conversation-header/conversation-header.component.ts
CHANGED
|
@@ -23,7 +23,6 @@ export class ConversationHeaderComponent implements OnInit, OnChanges {
|
|
|
23
23
|
@Input() typingLocation: string;
|
|
24
24
|
@Input() isTrascriptDownloadEnabled: boolean;
|
|
25
25
|
@Input() hideCloseConversationOptionMenu: boolean;
|
|
26
|
-
@Input() hideRestartConversationOptionsMenu: boolean;
|
|
27
26
|
@Input() hideHeaderCloseButton: boolean;
|
|
28
27
|
@Input() hideHeaderBackButton: boolean;
|
|
29
28
|
@Input() hideHeaderConversationOptionsMenu: boolean;
|
|
@@ -865,11 +865,6 @@ export class GlobalSettingsService {
|
|
|
865
865
|
if (TEMP !== undefined) {
|
|
866
866
|
globals.hideCloseConversationOptionMenu = (TEMP === true) ? true : false;;
|
|
867
867
|
}
|
|
868
|
-
TEMP = tiledeskSettings['hideRestartConversationOptionsMenu'];
|
|
869
|
-
// this.logger.debug('[GLOBAL-SET] setVariablesFromSettings > hideHeaderConversationOptionsMenu:: ', TEMP]);
|
|
870
|
-
if (TEMP !== undefined) {
|
|
871
|
-
globals.hideRestartConversationOptionsMenu = (TEMP === true) ? true : false;;
|
|
872
|
-
}
|
|
873
868
|
TEMP = tiledeskSettings['hideHeaderConversationOptionsMenu'];
|
|
874
869
|
// this.logger.debug('[GLOBAL-SET] setVariablesFromSettings > hideHeaderConversationOptionsMenu:: ', TEMP]);
|
|
875
870
|
if (TEMP !== undefined) {
|
|
@@ -1240,10 +1235,6 @@ export class GlobalSettingsService {
|
|
|
1240
1235
|
if (TEMP !== null) {
|
|
1241
1236
|
this.globals.hideCloseConversationOptionMenu = TEMP;
|
|
1242
1237
|
}
|
|
1243
|
-
TEMP = el.nativeElement.getAttribute('hideRestartConversationOptionsMenu');
|
|
1244
|
-
if (TEMP !== null) {
|
|
1245
|
-
this.globals.hideRestartConversationOptionsMenu = TEMP;
|
|
1246
|
-
}
|
|
1247
1238
|
TEMP = el.nativeElement.getAttribute('hideSettings');
|
|
1248
1239
|
if (TEMP !== null) {
|
|
1249
1240
|
this.globals.hideSettings = TEMP;
|
|
@@ -1637,11 +1628,6 @@ export class GlobalSettingsService {
|
|
|
1637
1628
|
globals.hideCloseConversationOptionMenu = stringToBoolean(TEMP);
|
|
1638
1629
|
}
|
|
1639
1630
|
|
|
1640
|
-
TEMP = getParameterByName(windowContext, 'tiledesk_hideRestartConversationOptionsMenu');
|
|
1641
|
-
if (TEMP) {
|
|
1642
|
-
globals.hideRestartConversationOptionsMenu = stringToBoolean(TEMP);
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
1631
|
TEMP = getParameterByName(windowContext, 'tiledesk_hideSettings');
|
|
1646
1632
|
if (TEMP) {
|
|
1647
1633
|
globals.hideSettings = stringToBoolean(TEMP);
|
package/src/app/utils/globals.ts
CHANGED
|
@@ -163,7 +163,6 @@ export class Globals {
|
|
|
163
163
|
openExternalLinkButton: boolean;
|
|
164
164
|
hideHeaderConversationOptionsMenu: boolean;
|
|
165
165
|
hideCloseConversationOptionMenu: boolean;
|
|
166
|
-
hideRestartConversationOptionsMenu: boolean;
|
|
167
166
|
hideSettings: boolean;
|
|
168
167
|
filterByRequester: boolean;
|
|
169
168
|
persistence;
|
|
@@ -337,8 +336,6 @@ export class Globals {
|
|
|
337
336
|
/** enable to close a conversation from upper-right header menu */
|
|
338
337
|
this.hideCloseConversationOptionMenu = false;
|
|
339
338
|
/** enable to hide/show options menu in conversation detail header */
|
|
340
|
-
this.hideRestartConversationOptionsMenu = false;
|
|
341
|
-
/** enable to hide/show options menu in conversation detail header */
|
|
342
339
|
this.hideSettings = false;
|
|
343
340
|
/** enable to hide/show options menu in home component */
|
|
344
341
|
this.filterByRequester = false;
|
|
@@ -528,7 +525,7 @@ export class Globals {
|
|
|
528
525
|
'fullscreenMode': this.fullscreenMode,
|
|
529
526
|
'filterByRequester': this.filterByRequester,
|
|
530
527
|
'hideHeaderConversationOptionsMenu': this.hideHeaderConversationOptionsMenu, 'hideHeaderCloseButton': this.hideHeaderCloseButton,
|
|
531
|
-
'hideCloseConversationOptionMenu': this.hideCloseConversationOptionMenu,
|
|
528
|
+
'hideCloseConversationOptionMenu': this.hideCloseConversationOptionMenu,
|
|
532
529
|
'hideSettings': this.hideSettings,
|
|
533
530
|
'isLogEnabled': this.isLogEnabled,
|
|
534
531
|
'isOpen': this.isOpen, 'isShown': this.isShown,
|
|
@@ -1263,13 +1263,6 @@
|
|
|
1263
1263
|
window.Tiledesk('restart')
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
|
-
function onClickHideRestartConversationOptionsMenu(){
|
|
1267
|
-
let status = document.querySelector('input[name="hideRestartConversationOptionsMenu"]:checked').value
|
|
1268
|
-
window.tiledeskSettings['hideRestartConversationOptionsMenu'] = stringToBoolean(status)
|
|
1269
|
-
console.log('onClickHideRestartConversationOptionsMenu:', window.tiledeskSettings)
|
|
1270
|
-
window.Tiledesk('restart')
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
1266
|
function onClickAllowTranscriptDownload(){
|
|
1274
1267
|
let status = document.querySelector('input[name="allowTranscriptDownload"]:checked').value
|
|
1275
1268
|
window.tiledeskSettings['allowTranscriptDownload'] = stringToBoolean(status)
|
|
@@ -2277,16 +2270,6 @@
|
|
|
2277
2270
|
<button class="btn btn-light" onclick="onClickHideCloseConversationOptionMenu()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
|
|
2278
2271
|
</div>
|
|
2279
2272
|
</div>
|
|
2280
|
-
<div class="row">
|
|
2281
|
-
<div class="col-md-5 formElement"><span><em><strong>hideRestartConversationOptionsMenu</strong></em></span></div>
|
|
2282
|
-
<div class="col-md-5">
|
|
2283
|
-
<input class="form-check-input" type="radio" name="hideRestartConversationOptionsMenu" value="true"><label>True</label>
|
|
2284
|
-
<input class="form-check-input" type="radio" name="hideRestartConversationOptionsMenu" value="false" checked><label >False</label>
|
|
2285
|
-
</div>
|
|
2286
|
-
<div class="col-md-2">
|
|
2287
|
-
<button class="btn btn-light" onclick="onClickHideRestartConversationOptionsMenu()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
|
|
2288
|
-
</div>
|
|
2289
|
-
</div>
|
|
2290
2273
|
<div class="row">
|
|
2291
2274
|
<div class="col-md-5 formElement"><span><em><strong>allowTranscriptDownload</strong></em></span></div>
|
|
2292
2275
|
<div class="col-md-5">
|