@chat21/chat21-web-widget 5.0.46-rc.3 → 5.0.46
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 +6 -0
- package/dist/assets/twp/index-dev.html +16 -0
- package/dist/environments/real_data/widget-config-docker.json +1 -0
- package/dist/environments/real_data/widget-config-firebase.json +2 -2
- package/dist/environments/real_data/widget-config-native-mqtt.json +1 -0
- package/dist/main.js +1 -1
- package/dist/vendor.js +1 -1
- package/e2e/protractor.conf.js +32 -0
- package/package.json +1 -1
- package/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.scss +13 -8
- package/src/app/utils/globals.ts +46 -26
- package/src/assets/twp/index-dev.html +16 -0
- package/src/environments/real_data/widget-config-docker.json +1 -0
- package/src/environments/real_data/widget-config-firebase.json +2 -2
- package/src/environments/real_data/widget-config-native-mqtt.json +1 -0
- package/coverage/widget/base.css +0 -224
- package/coverage/widget/block-navigation.js +0 -87
- package/coverage/widget/favicon.png +0 -0
- package/coverage/widget/index.html +0 -881
- package/coverage/widget/lcov.info +0 -10516
- package/coverage/widget/polyfills.ts.html +0 -277
- package/coverage/widget/prettify.css +0 -1
- package/coverage/widget/prettify.js +0 -2
- package/coverage/widget/sort-arrow-sprite.png +0 -0
- package/coverage/widget/sorter.js +0 -196
- package/coverage/widget/src/app/app.component.ts.html +0 -6328
- package/coverage/widget/src/app/component/conversation-detail/conversation/conversation.component.ts.html +0 -3871
- package/coverage/widget/src/app/component/conversation-detail/conversation/index.html +0 -116
- package/coverage/widget/src/app/component/conversation-detail/conversation-content/conversation-content.component.ts.html +0 -925
- package/coverage/widget/src/app/component/conversation-detail/conversation-content/index.html +0 -116
- package/coverage/widget/src/app/component/conversation-detail/conversation-footer/conversation-footer.component.ts.html +0 -1816
- package/coverage/widget/src/app/component/conversation-detail/conversation-footer/index.html +0 -116
- package/coverage/widget/src/app/component/conversation-detail/conversation-header/conversation-header.component.ts.html +0 -811
- package/coverage/widget/src/app/component/conversation-detail/conversation-header/index.html +0 -116
- package/coverage/widget/src/app/component/conversation-detail/conversation-internal-frame/conversation-internal-frame.component.ts.html +0 -397
- package/coverage/widget/src/app/component/conversation-detail/conversation-internal-frame/index.html +0 -116
- package/coverage/widget/src/app/component/conversation-detail/conversation-preview/conversation-preview.component.ts.html +0 -991
- package/coverage/widget/src/app/component/conversation-detail/conversation-preview/index.html +0 -116
- package/coverage/widget/src/app/component/eyeeye-catcher-card/eyeeye-catcher-card.component.ts.html +0 -586
- package/coverage/widget/src/app/component/eyeeye-catcher-card/index.html +0 -116
- package/coverage/widget/src/app/component/form/form-builder/form-builder.component.ts.html +0 -664
- package/coverage/widget/src/app/component/form/form-builder/index.html +0 -116
- package/coverage/widget/src/app/component/form/inputs/form-checkbox/form-checkbox.component.ts.html +0 -208
- package/coverage/widget/src/app/component/form/inputs/form-checkbox/index.html +0 -116
- package/coverage/widget/src/app/component/form/inputs/form-label/form-label.component.ts.html +0 -157
- package/coverage/widget/src/app/component/form/inputs/form-label/index.html +0 -116
- package/coverage/widget/src/app/component/form/inputs/form-radio-button/form-radio-button.component.ts.html +0 -130
- package/coverage/widget/src/app/component/form/inputs/form-radio-button/index.html +0 -116
- package/coverage/widget/src/app/component/form/inputs/form-select/form-select.component.ts.html +0 -130
- package/coverage/widget/src/app/component/form/inputs/form-select/index.html +0 -116
- package/coverage/widget/src/app/component/form/inputs/form-text/form-text.component.ts.html +0 -301
- package/coverage/widget/src/app/component/form/inputs/form-text/index.html +0 -116
- package/coverage/widget/src/app/component/form/inputs/form-textarea/form-textarea.component.ts.html +0 -358
- package/coverage/widget/src/app/component/form/inputs/form-textarea/index.html +0 -116
- package/coverage/widget/src/app/component/form/prechat-form/index.html +0 -116
- package/coverage/widget/src/app/component/form/prechat-form/prechat-form.component.ts.html +0 -565
- package/coverage/widget/src/app/component/home/home.component.ts.html +0 -559
- package/coverage/widget/src/app/component/home/index.html +0 -116
- package/coverage/widget/src/app/component/home-conversations/home-conversations.component.ts.html +0 -985
- package/coverage/widget/src/app/component/home-conversations/index.html +0 -116
- package/coverage/widget/src/app/component/last-message/index.html +0 -116
- package/coverage/widget/src/app/component/last-message/last-message.component.ts.html +0 -484
- package/coverage/widget/src/app/component/launcher-button/index.html +0 -116
- package/coverage/widget/src/app/component/launcher-button/launcher-button.component.ts.html +0 -307
- package/coverage/widget/src/app/component/list-all-conversations/index.html +0 -116
- package/coverage/widget/src/app/component/list-all-conversations/list-all-conversations.component.ts.html +0 -676
- package/coverage/widget/src/app/component/list-conversations/index.html +0 -116
- package/coverage/widget/src/app/component/list-conversations/list-conversations.component.ts.html +0 -475
- package/coverage/widget/src/app/component/menu-options/index.html +0 -116
- package/coverage/widget/src/app/component/menu-options/menu-options.component.ts.html +0 -226
- package/coverage/widget/src/app/component/message/avatar/avatar.component.ts.html +0 -271
- package/coverage/widget/src/app/component/message/avatar/index.html +0 -116
- package/coverage/widget/src/app/component/message/bubble-message/bubble-message.component.ts.html +0 -655
- package/coverage/widget/src/app/component/message/bubble-message/index.html +0 -116
- package/coverage/widget/src/app/component/message/buttons/action-button/action-button.component.ts.html +0 -274
- package/coverage/widget/src/app/component/message/buttons/action-button/index.html +0 -116
- package/coverage/widget/src/app/component/message/buttons/link-button/index.html +0 -116
- package/coverage/widget/src/app/component/message/buttons/link-button/link-button.component.ts.html +0 -232
- package/coverage/widget/src/app/component/message/buttons/text-button/index.html +0 -116
- package/coverage/widget/src/app/component/message/buttons/text-button/text-button.component.ts.html +0 -235
- package/coverage/widget/src/app/component/message/frame/frame.component.ts.html +0 -199
- package/coverage/widget/src/app/component/message/frame/index.html +0 -116
- package/coverage/widget/src/app/component/message/html/html.component.ts.html +0 -184
- package/coverage/widget/src/app/component/message/html/index.html +0 -116
- package/coverage/widget/src/app/component/message/image/image.component.ts.html +0 -394
- package/coverage/widget/src/app/component/message/image/index.html +0 -116
- package/coverage/widget/src/app/component/message/info-message/index.html +0 -116
- package/coverage/widget/src/app/component/message/info-message/info-message.component.ts.html +0 -211
- package/coverage/widget/src/app/component/message/like-unlike/index.html +0 -116
- package/coverage/widget/src/app/component/message/like-unlike/like-unlike.component.ts.html +0 -151
- package/coverage/widget/src/app/component/message/return-receipt/index.html +0 -116
- package/coverage/widget/src/app/component/message/return-receipt/return-receipt.component.ts.html +0 -157
- package/coverage/widget/src/app/component/message/text/index.html +0 -116
- package/coverage/widget/src/app/component/message/text/text.component.ts.html +0 -190
- package/coverage/widget/src/app/component/message-attachment/index.html +0 -116
- package/coverage/widget/src/app/component/message-attachment/message-attachment.component.ts.html +0 -343
- package/coverage/widget/src/app/component/selection-department/index.html +0 -116
- package/coverage/widget/src/app/component/selection-department/selection-department.component.ts.html +0 -676
- package/coverage/widget/src/app/component/send-button/index.html +0 -116
- package/coverage/widget/src/app/component/send-button/send-button.component.ts.html +0 -154
- package/coverage/widget/src/app/component/star-rating-widget/index.html +0 -116
- package/coverage/widget/src/app/component/star-rating-widget/star-rating-widget.component.ts.html +0 -451
- package/coverage/widget/src/app/directives/html-entities-encode.pipe.ts.html +0 -136
- package/coverage/widget/src/app/directives/index.html +0 -146
- package/coverage/widget/src/app/directives/marked.pipe.ts.html +0 -166
- package/coverage/widget/src/app/directives/safe-html.pipe.ts.html +0 -136
- package/coverage/widget/src/app/index.html +0 -116
- package/coverage/widget/src/app/providers/app-config.service.ts.html +0 -247
- package/coverage/widget/src/app/providers/global-settings.service.ts.html +0 -5698
- package/coverage/widget/src/app/providers/index.html +0 -206
- package/coverage/widget/src/app/providers/settings-saver.service.ts.html +0 -253
- package/coverage/widget/src/app/providers/star-rating-widget.service.ts.html +0 -385
- package/coverage/widget/src/app/providers/storage.service.ts.html +0 -745
- package/coverage/widget/src/app/providers/translator.service.ts.html +0 -1498
- package/coverage/widget/src/app/providers/waiting.service.ts.html +0 -178
- package/coverage/widget/src/app/utils/constants.ts.html +0 -304
- package/coverage/widget/src/app/utils/globals.ts.html +0 -1939
- package/coverage/widget/src/app/utils/index.html +0 -146
- package/coverage/widget/src/app/utils/utils.ts.html +0 -1240
- package/coverage/widget/src/chat21-core/models/conversation.ts.html +0 -160
- package/coverage/widget/src/chat21-core/models/index.html +0 -146
- package/coverage/widget/src/chat21-core/models/upload.ts.html +0 -118
- package/coverage/widget/src/chat21-core/models/user.ts.html +0 -133
- package/coverage/widget/src/chat21-core/providers/abstract/app-storage.service.ts.html +0 -142
- package/coverage/widget/src/chat21-core/providers/abstract/archivedconversations-handler.service.ts.html +0 -184
- package/coverage/widget/src/chat21-core/providers/abstract/conversation-handler-builder.service.ts.html +0 -121
- package/coverage/widget/src/chat21-core/providers/abstract/conversation-handler.service.ts.html +0 -235
- package/coverage/widget/src/chat21-core/providers/abstract/conversations-handler.service.ts.html +0 -208
- package/coverage/widget/src/chat21-core/providers/abstract/groups-handler.service.ts.html +0 -160
- package/coverage/widget/src/chat21-core/providers/abstract/image-repo.service.ts.html +0 -169
- package/coverage/widget/src/chat21-core/providers/abstract/index.html +0 -296
- package/coverage/widget/src/chat21-core/providers/abstract/logger.service.ts.html +0 -136
- package/coverage/widget/src/chat21-core/providers/abstract/messagingAuth.service.ts.html +0 -238
- package/coverage/widget/src/chat21-core/providers/abstract/notifications.service.ts.html +0 -172
- package/coverage/widget/src/chat21-core/providers/abstract/presence.service.ts.html +0 -190
- package/coverage/widget/src/chat21-core/providers/abstract/typing.service.ts.html +0 -187
- package/coverage/widget/src/chat21-core/providers/abstract/upload.service.ts.html +0 -178
- package/coverage/widget/src/chat21-core/providers/chat-manager.ts.html +0 -895
- package/coverage/widget/src/chat21-core/providers/custom-translate.service.ts.html +0 -223
- package/coverage/widget/src/chat21-core/providers/index.html +0 -131
- package/coverage/widget/src/chat21-core/providers/logger/customLogger.ts.html +0 -265
- package/coverage/widget/src/chat21-core/providers/logger/index.html +0 -131
- package/coverage/widget/src/chat21-core/providers/logger/loggerInstance.ts.html +0 -142
- package/coverage/widget/src/chat21-core/providers/tiledesk/index.html +0 -131
- package/coverage/widget/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts.html +0 -655
- package/coverage/widget/src/chat21-core/providers/tiledesk/tiledesk-requests.service.ts.html +0 -241
- package/coverage/widget/src/chat21-core/utils/constants.ts.html +0 -409
- package/coverage/widget/src/chat21-core/utils/index.html +0 -176
- package/coverage/widget/src/chat21-core/utils/triggerHandler.ts.html +0 -1069
- package/coverage/widget/src/chat21-core/utils/user-typing/index.html +0 -116
- package/coverage/widget/src/chat21-core/utils/user-typing/user-typing.component.ts.html +0 -184
- package/coverage/widget/src/chat21-core/utils/utils-message.ts.html +0 -637
- package/coverage/widget/src/chat21-core/utils/utils-user.ts.html +0 -229
- package/coverage/widget/src/chat21-core/utils/utils.ts.html +0 -2221
- package/coverage/widget/src/environments/environment.ts.html +0 -205
- package/coverage/widget/src/environments/index.html +0 -116
- package/coverage/widget/src/index.html +0 -131
- package/coverage/widget/src/models/index.html +0 -116
- package/coverage/widget/src/models/project.ts.html +0 -319
- package/coverage/widget/src/polyfills.ts.html +0 -277
- package/coverage/widget/src/test.ts.html +0 -142
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
// Protractor configuration file, see link for more information
|
|
3
|
+
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
4
|
+
|
|
5
|
+
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @type { import("protractor").Config }
|
|
9
|
+
*/
|
|
10
|
+
exports.config = {
|
|
11
|
+
allScriptsTimeout: 11000,
|
|
12
|
+
specs: [
|
|
13
|
+
'./src/**/*.e2e-spec.ts'
|
|
14
|
+
],
|
|
15
|
+
capabilities: {
|
|
16
|
+
'browserName': 'chrome'
|
|
17
|
+
},
|
|
18
|
+
directConnect: true,
|
|
19
|
+
baseUrl: 'http://localhost:4200/',
|
|
20
|
+
framework: 'jasmine',
|
|
21
|
+
jasmineNodeOpts: {
|
|
22
|
+
showColors: true,
|
|
23
|
+
defaultTimeoutInterval: 30000,
|
|
24
|
+
print: function() {}
|
|
25
|
+
},
|
|
26
|
+
onPrepare() {
|
|
27
|
+
require('ts-node').register({
|
|
28
|
+
project: require('path').join(__dirname, './tsconfig.json')
|
|
29
|
+
});
|
|
30
|
+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
|
31
|
+
}
|
|
32
|
+
};
|
package/package.json
CHANGED
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
position: fixed;
|
|
56
56
|
top: var(--margin-top);
|
|
57
57
|
|
|
58
|
-
-webkit-box-shadow: 0 3px 5px -3px rgba(0, 0, 0, 0.4);
|
|
59
|
-
-moz-box-shadow: 0 3px 5px -3pxrgba(0, 0, 0, 0.4);
|
|
60
|
-
box-shadow: 0 3px 5px -3px rgba(0, 0, 0, 0.4);
|
|
58
|
+
// -webkit-box-shadow: 0 3px 5px -3px rgba(0, 0, 0, 0.4);
|
|
59
|
+
// -moz-box-shadow: 0 3px 5px -3pxrgba(0, 0, 0, 0.4);
|
|
60
|
+
// box-shadow: 0 3px 5px -3px rgba(0, 0, 0, 0.4);
|
|
61
61
|
.c21-header-container{
|
|
62
62
|
// height: var(--header-height);
|
|
63
|
-
|
|
63
|
+
height: calc( var(--header-height));
|
|
64
64
|
// margin: inherit;
|
|
65
65
|
|
|
66
66
|
.c21-header-content {
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.c21-header-button{
|
|
91
|
+
margin: 6px;
|
|
91
92
|
width: 30px;
|
|
92
93
|
height: 30px;
|
|
93
94
|
}
|
|
@@ -104,6 +105,9 @@
|
|
|
104
105
|
width: var(--modal-width);
|
|
105
106
|
height: var(--content-height);
|
|
106
107
|
|
|
108
|
+
display: flex;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
align-items: center;
|
|
107
111
|
// img {
|
|
108
112
|
// border-radius: 8px;
|
|
109
113
|
// //padding: 3px;
|
|
@@ -134,6 +138,7 @@
|
|
|
134
138
|
position: absolute;
|
|
135
139
|
top: 0;
|
|
136
140
|
right: 0;
|
|
141
|
+
|
|
137
142
|
}
|
|
138
143
|
#scroll-me-preview:hover {
|
|
139
144
|
&::-webkit-scrollbar-thumb {
|
|
@@ -151,10 +156,10 @@
|
|
|
151
156
|
|
|
152
157
|
#img-preview-file-extension {
|
|
153
158
|
text-align: center;
|
|
154
|
-
position: relative;
|
|
159
|
+
position: absolute;//relative;
|
|
155
160
|
text-transform: uppercase;
|
|
156
161
|
color: #fff;
|
|
157
|
-
|
|
162
|
+
bottom: 30px; //-25px;
|
|
158
163
|
font-weight: 500;
|
|
159
164
|
}
|
|
160
165
|
}
|
|
@@ -171,7 +176,7 @@
|
|
|
171
176
|
|
|
172
177
|
display: flex;
|
|
173
178
|
gap: 5px;
|
|
174
|
-
padding: var(--paddingTopBottom)
|
|
179
|
+
padding: var(--paddingTopBottom) 10px;
|
|
175
180
|
-webkit-box-sizing: border-box;
|
|
176
181
|
box-sizing: border-box;
|
|
177
182
|
|
|
@@ -244,7 +249,7 @@
|
|
|
244
249
|
border-radius: 10px;
|
|
245
250
|
background-color: $chat-footer-background-color;
|
|
246
251
|
-webkit-box-flex: 1;
|
|
247
|
-
width:
|
|
252
|
+
width: 88%;
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
.chat21-textarea-button {
|
package/src/app/utils/globals.ts
CHANGED
|
@@ -502,34 +502,54 @@ export class Globals {
|
|
|
502
502
|
*/
|
|
503
503
|
createDefaultSettingsObject() {
|
|
504
504
|
this.default_settings = {
|
|
505
|
-
'
|
|
506
|
-
'
|
|
507
|
-
'
|
|
508
|
-
'
|
|
509
|
-
'
|
|
510
|
-
'lang': this.lang, 'calloutTimer': this.calloutTimer, 'calloutStaus': this.calloutStaus,
|
|
511
|
-
'align': this.align,'welcomeMsg': this.welcomeMsg, 'calloutTitle': this.calloutTitle,
|
|
512
|
-
'calloutMsg': this.calloutMsg, 'fullscreenMode': this.fullscreenMode, 'hideHeaderCloseButton': this.hideHeaderCloseButton,
|
|
513
|
-
'themeColor': this.themeColor, 'themeColorOpacity': this.themeColorOpacity, 'themeForegroundColor': this.themeForegroundColor,
|
|
514
|
-
'allowTranscriptDownload': this.allowTranscriptDownload, //'userToken': this.userToken,
|
|
515
|
-
'autoStart': this.autoStart, 'startHidden': this.startHidden, 'isShown': this.isShown,
|
|
516
|
-
'startFromHome': this.startFromHome, 'logoChat': this.logoChat,
|
|
517
|
-
'welcomeTitle': this.welcomeTitle, 'marginX': this.marginX,
|
|
518
|
-
'marginY': this.marginY, 'lancherWidth': this.launcherWidth, 'lancherHeight': this.launcherHeight,
|
|
519
|
-
'baloonImage': this.baloonImage, 'baloonShape': this.baloonShape, 'isLogEnabled': this.isLogEnabled,
|
|
520
|
-
'openExternalLinkButton': this.openExternalLinkButton, 'hideHeaderConversationOptionsMenu': this.hideHeaderConversationOptionsMenu,
|
|
521
|
-
'hideCloseConversationOptionMenu': this.hideCloseConversationOptionMenu, 'hideRestartConversationOptionsMenu': this.hideRestartConversationOptionsMenu,
|
|
522
|
-
'showInfoMessage': this.showInfoMessage, 'typingLocation': this.typingLocation, 'allowReopen': this.allowReopen,
|
|
523
|
-
'hideSettings': this.hideSettings,'filterByRequester': this.filterByRequester,
|
|
524
|
-
'persistence': this.persistence,'showWaitTime': this.showWaitTime, 'showAvailableAgents': this.showAvailableAgents,
|
|
525
|
-
'showLogoutOption': this.showLogoutOption, 'showAttachmentButton': this.showAttachmentButton,
|
|
526
|
-
'showAllConversations': this.showAllConversations, 'jwt': this.jwt,
|
|
527
|
-
'dynamicWaitTimeReply': this.dynamicWaitTimeReply, 'soundEnabled': this.soundEnabled, 'logLevel': this.logLevel,
|
|
505
|
+
'align': this.align,
|
|
506
|
+
'allowReopen': this.allowReopen,
|
|
507
|
+
'allowTranscriptDownload': this.allowTranscriptDownload,
|
|
508
|
+
'autoStart': this.autoStart,
|
|
509
|
+
'baloonShape': this.baloonShape, 'baloonImage': this.baloonImage,
|
|
528
510
|
'bubbleSentBackground' : this.bubbleSentBackground, 'bubbleSentTextColor': this.bubbleSentTextColor,
|
|
529
511
|
'bubbleReceivedBackground': this.bubbleReceivedBackground, 'bubbleReceivedTextColor': this.bubbleReceivedTextColor,
|
|
530
|
-
'
|
|
531
|
-
'
|
|
532
|
-
'
|
|
512
|
+
'buttonBackgroundColor': this.buttonBackgroundColor, 'buttonTextColor': this.buttonTextColor, 'buttonFontSize': this.buttonFontSize,
|
|
513
|
+
'buttonHoverBackgroundColor': this.buttonHoverBackgroundColor, 'buttonHoverTextColor': this.buttonHoverTextColor,
|
|
514
|
+
'calloutTitle': this.calloutTitle, 'calloutMsg': this.calloutMsg,
|
|
515
|
+
'calloutTimer': this.calloutTimer, 'calloutStaus': this.calloutStaus,
|
|
516
|
+
'channelType': this.channelType,
|
|
517
|
+
'dynamicWaitTimeReply': this.dynamicWaitTimeReply,
|
|
518
|
+
'fontSize': this.fontSize, 'fontFamily': this.fontFamily,
|
|
519
|
+
'fullscreenMode': this.fullscreenMode,
|
|
520
|
+
'filterByRequester': this.filterByRequester,
|
|
521
|
+
'hideHeaderConversationOptionsMenu': this.hideHeaderConversationOptionsMenu, 'hideHeaderCloseButton': this.hideHeaderCloseButton,
|
|
522
|
+
'hideCloseConversationOptionMenu': this.hideCloseConversationOptionMenu, 'hideRestartConversationOptionsMenu': this.hideRestartConversationOptionsMenu,
|
|
523
|
+
'hideSettings': this.hideSettings,
|
|
524
|
+
'isLogEnabled': this.isLogEnabled,
|
|
525
|
+
'isOpen': this.isOpen, 'isShown': this.isShown,
|
|
526
|
+
'jwt': this.jwt,
|
|
527
|
+
'logLevel': this.logLevel,
|
|
528
|
+
'logoChat': this.logoChat,
|
|
529
|
+
'lang': this.lang,
|
|
530
|
+
'lancherWidth': this.launcherWidth, 'lancherHeight': this.launcherHeight,
|
|
531
|
+
'marginX': this.marginX, 'marginY': this.marginY,
|
|
532
|
+
'mobileMarginX': this.mobileMarginX, 'mobileMarginY': this.mobileMarginY,
|
|
533
|
+
'nativeRating': this.nativeRating,
|
|
534
|
+
'openExternalLinkButton': this.openExternalLinkButton,
|
|
535
|
+
'participants':this.participants,
|
|
536
|
+
'persistence': this.persistence,
|
|
537
|
+
'poweredBy': this.poweredBy,
|
|
538
|
+
'preChatForm': this.preChatForm, 'preChatFormJson': this.preChatFormJson,
|
|
539
|
+
'projectid': this.projectid,
|
|
540
|
+
'recipientId': this.recipientId,
|
|
541
|
+
'singleConversation': this.singleConversation,
|
|
542
|
+
'showInfoMessage': this.showInfoMessage, 'showAllConversations': this.showAllConversations,
|
|
543
|
+
'showWaitTime': this.showWaitTime, 'showAvailableAgents': this.showAvailableAgents,
|
|
544
|
+
'showLogoutOption': this.showLogoutOption, 'showAttachmentButton': this.showAttachmentButton,
|
|
545
|
+
'soundEnabled': this.soundEnabled,
|
|
546
|
+
'startHidden': this.startHidden, 'startFromHome': this.startFromHome,
|
|
547
|
+
'tenant': this.tenant,
|
|
548
|
+
'themeColor': this.themeColor, 'themeColorOpacity': this.themeColorOpacity, 'themeForegroundColor': this.themeForegroundColor,
|
|
549
|
+
'typingLocation': this.typingLocation,
|
|
550
|
+
'userEmail': this.userEmail, 'userFullname': this.userFullname,
|
|
551
|
+
'widgetTitle': this.widgetTitle,
|
|
552
|
+
'welcomeMsg': this.welcomeMsg, 'welcomeTitle': this.welcomeTitle,
|
|
533
553
|
};
|
|
534
554
|
}
|
|
535
555
|
|
|
@@ -1142,6 +1142,13 @@
|
|
|
1142
1142
|
window.Tiledesk('restart')
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
|
+
function onClickParticipants(){
|
|
1146
|
+
let text = document.getElementById('participants').value
|
|
1147
|
+
window.tiledeskSettings['participants'] = text
|
|
1148
|
+
console.log('onClickParticipants:', window.tiledeskSettings)
|
|
1149
|
+
window.Tiledesk('restart')
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1145
1152
|
function onClickShowAttachmentButton(){
|
|
1146
1153
|
let status = document.querySelector('input[name="showAttachmentButton"]:checked').value
|
|
1147
1154
|
window.tiledeskSettings['showAttachmentButton'] = stringToBoolean(status)
|
|
@@ -2067,6 +2074,15 @@
|
|
|
2067
2074
|
<button class="btn btn-light" onclick="onClickShowInfoMessage()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
|
|
2068
2075
|
</div>
|
|
2069
2076
|
</div>
|
|
2077
|
+
<div class="row">
|
|
2078
|
+
<div class="col-md-5 formElement"><span><em><strong>participants</strong></em></span></div>
|
|
2079
|
+
<div class="col-md-5">
|
|
2080
|
+
<textarea class="form-control" id="participants" placeholder="Set a comma separated string..." rows="6" cols="30"></textarea>
|
|
2081
|
+
</div>
|
|
2082
|
+
<div class="col-md-2">
|
|
2083
|
+
<button class="btn btn-light" onclick="onClickParticipants()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
|
|
2084
|
+
</div>
|
|
2085
|
+
</div>
|
|
2070
2086
|
<div class="row">
|
|
2071
2087
|
<div class="col-md-5 formElement"><span><em><strong>showAttachmentButton</strong></em></span></div>
|
|
2072
2088
|
<div class="col-md-5">
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"apiUrl": "https://tiledesk-server-pre.herokuapp.com/",
|
|
24
24
|
"baseImageUrl": "https://firebasestorage.googleapis.com/v0/b/",
|
|
25
|
+
"dashboardUrl": "https://support-pre.tiledesk.com/dashboard/",
|
|
25
26
|
"authPersistence": "LOCAL",
|
|
26
|
-
"enbedJs": true
|
|
27
|
-
"enbedJsBaseUrl":"https://widget-pre.tiledesk.com/v5/"
|
|
27
|
+
"enbedJs": true
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
|
package/coverage/widget/base.css
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
body, html {
|
|
2
|
-
margin:0; padding: 0;
|
|
3
|
-
height: 100%;
|
|
4
|
-
}
|
|
5
|
-
body {
|
|
6
|
-
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
color:#333;
|
|
9
|
-
}
|
|
10
|
-
.small { font-size: 12px; }
|
|
11
|
-
*, *:after, *:before {
|
|
12
|
-
-webkit-box-sizing:border-box;
|
|
13
|
-
-moz-box-sizing:border-box;
|
|
14
|
-
box-sizing:border-box;
|
|
15
|
-
}
|
|
16
|
-
h1 { font-size: 20px; margin: 0;}
|
|
17
|
-
h2 { font-size: 14px; }
|
|
18
|
-
pre {
|
|
19
|
-
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
-
margin: 0;
|
|
21
|
-
padding: 0;
|
|
22
|
-
-moz-tab-size: 2;
|
|
23
|
-
-o-tab-size: 2;
|
|
24
|
-
tab-size: 2;
|
|
25
|
-
}
|
|
26
|
-
a { color:#0074D9; text-decoration:none; }
|
|
27
|
-
a:hover { text-decoration:underline; }
|
|
28
|
-
.strong { font-weight: bold; }
|
|
29
|
-
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
-
.pad2y { padding: 20px 0; }
|
|
31
|
-
.pad1y { padding: 10px 0; }
|
|
32
|
-
.pad2x { padding: 0 20px; }
|
|
33
|
-
.pad2 { padding: 20px; }
|
|
34
|
-
.pad1 { padding: 10px; }
|
|
35
|
-
.space-left2 { padding-left:55px; }
|
|
36
|
-
.space-right2 { padding-right:20px; }
|
|
37
|
-
.center { text-align:center; }
|
|
38
|
-
.clearfix { display:block; }
|
|
39
|
-
.clearfix:after {
|
|
40
|
-
content:'';
|
|
41
|
-
display:block;
|
|
42
|
-
height:0;
|
|
43
|
-
clear:both;
|
|
44
|
-
visibility:hidden;
|
|
45
|
-
}
|
|
46
|
-
.fl { float: left; }
|
|
47
|
-
@media only screen and (max-width:640px) {
|
|
48
|
-
.col3 { width:100%; max-width:100%; }
|
|
49
|
-
.hide-mobile { display:none!important; }
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.quiet {
|
|
53
|
-
color: #7f7f7f;
|
|
54
|
-
color: rgba(0,0,0,0.5);
|
|
55
|
-
}
|
|
56
|
-
.quiet a { opacity: 0.7; }
|
|
57
|
-
|
|
58
|
-
.fraction {
|
|
59
|
-
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
-
font-size: 10px;
|
|
61
|
-
color: #555;
|
|
62
|
-
background: #E8E8E8;
|
|
63
|
-
padding: 4px 5px;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
vertical-align: middle;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
-
table.coverage {
|
|
70
|
-
border-collapse: collapse;
|
|
71
|
-
margin: 10px 0 0 0;
|
|
72
|
-
padding: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
table.coverage td {
|
|
76
|
-
margin: 0;
|
|
77
|
-
padding: 0;
|
|
78
|
-
vertical-align: top;
|
|
79
|
-
}
|
|
80
|
-
table.coverage td.line-count {
|
|
81
|
-
text-align: right;
|
|
82
|
-
padding: 0 5px 0 20px;
|
|
83
|
-
}
|
|
84
|
-
table.coverage td.line-coverage {
|
|
85
|
-
text-align: right;
|
|
86
|
-
padding-right: 10px;
|
|
87
|
-
min-width:20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
table.coverage td span.cline-any {
|
|
91
|
-
display: inline-block;
|
|
92
|
-
padding: 0 5px;
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
.missing-if-branch {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
margin-right: 5px;
|
|
98
|
-
border-radius: 3px;
|
|
99
|
-
position: relative;
|
|
100
|
-
padding: 0 4px;
|
|
101
|
-
background: #333;
|
|
102
|
-
color: yellow;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.skip-if-branch {
|
|
106
|
-
display: none;
|
|
107
|
-
margin-right: 10px;
|
|
108
|
-
position: relative;
|
|
109
|
-
padding: 0 4px;
|
|
110
|
-
background: #ccc;
|
|
111
|
-
color: white;
|
|
112
|
-
}
|
|
113
|
-
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
-
color: inherit !important;
|
|
115
|
-
}
|
|
116
|
-
.coverage-summary {
|
|
117
|
-
border-collapse: collapse;
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
-
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
-
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
-
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
-
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
-
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
-
.coverage-summary th {
|
|
127
|
-
text-align: left;
|
|
128
|
-
font-weight: normal;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
}
|
|
131
|
-
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
-
.coverage-summary th.pct { }
|
|
133
|
-
.coverage-summary th.pic,
|
|
134
|
-
.coverage-summary th.abs,
|
|
135
|
-
.coverage-summary td.pct,
|
|
136
|
-
.coverage-summary td.abs { text-align: right; }
|
|
137
|
-
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
-
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
-
.coverage-summary tfoot td { }
|
|
140
|
-
|
|
141
|
-
.coverage-summary .sorter {
|
|
142
|
-
height: 10px;
|
|
143
|
-
width: 7px;
|
|
144
|
-
display: inline-block;
|
|
145
|
-
margin-left: 0.5em;
|
|
146
|
-
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
-
}
|
|
148
|
-
.coverage-summary .sorted .sorter {
|
|
149
|
-
background-position: 0 -20px;
|
|
150
|
-
}
|
|
151
|
-
.coverage-summary .sorted-desc .sorter {
|
|
152
|
-
background-position: 0 -10px;
|
|
153
|
-
}
|
|
154
|
-
.status-line { height: 10px; }
|
|
155
|
-
/* yellow */
|
|
156
|
-
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
-
/* dark red */
|
|
158
|
-
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
-
.low .chart { border:1px solid #C21F39 }
|
|
160
|
-
.highlighted,
|
|
161
|
-
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
-
background: #C21F39 !important;
|
|
163
|
-
}
|
|
164
|
-
/* medium red */
|
|
165
|
-
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
-
/* light red */
|
|
167
|
-
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
-
/* light green */
|
|
169
|
-
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
-
/* medium green */
|
|
171
|
-
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
-
/* dark green */
|
|
173
|
-
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
-
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
-
/* dark yellow (gold) */
|
|
176
|
-
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
-
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
-
/* light yellow */
|
|
179
|
-
.medium { background: #fff4c2; }
|
|
180
|
-
|
|
181
|
-
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
-
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
-
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
-
|
|
185
|
-
span.cline-neutral { background: #eaeaea; }
|
|
186
|
-
|
|
187
|
-
.coverage-summary td.empty {
|
|
188
|
-
opacity: .5;
|
|
189
|
-
padding-top: 4px;
|
|
190
|
-
padding-bottom: 4px;
|
|
191
|
-
line-height: 1;
|
|
192
|
-
color: #888;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.cover-fill, .cover-empty {
|
|
196
|
-
display:inline-block;
|
|
197
|
-
height: 12px;
|
|
198
|
-
}
|
|
199
|
-
.chart {
|
|
200
|
-
line-height: 0;
|
|
201
|
-
}
|
|
202
|
-
.cover-empty {
|
|
203
|
-
background: white;
|
|
204
|
-
}
|
|
205
|
-
.cover-full {
|
|
206
|
-
border-right: none !important;
|
|
207
|
-
}
|
|
208
|
-
pre.prettyprint {
|
|
209
|
-
border: none !important;
|
|
210
|
-
padding: 0 !important;
|
|
211
|
-
margin: 0 !important;
|
|
212
|
-
}
|
|
213
|
-
.com { color: #999 !important; }
|
|
214
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
-
|
|
216
|
-
.wrapper {
|
|
217
|
-
min-height: 100%;
|
|
218
|
-
height: auto !important;
|
|
219
|
-
height: 100%;
|
|
220
|
-
margin: 0 auto -48px;
|
|
221
|
-
}
|
|
222
|
-
.footer, .push {
|
|
223
|
-
height: 48px;
|
|
224
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
var jumpToCode = (function init() {
|
|
3
|
-
// Classes of code we would like to highlight in the file view
|
|
4
|
-
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
-
|
|
6
|
-
// Elements to highlight in the file listing view
|
|
7
|
-
var fileListingElements = ['td.pct.low'];
|
|
8
|
-
|
|
9
|
-
// We don't want to select elements that are direct descendants of another match
|
|
10
|
-
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
-
|
|
12
|
-
// Selecter that finds elements on the page to which we can jump
|
|
13
|
-
var selector =
|
|
14
|
-
fileListingElements.join(', ') +
|
|
15
|
-
', ' +
|
|
16
|
-
notSelector +
|
|
17
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
-
|
|
19
|
-
// The NodeList of matching elements
|
|
20
|
-
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
-
|
|
22
|
-
var currentIndex;
|
|
23
|
-
|
|
24
|
-
function toggleClass(index) {
|
|
25
|
-
missingCoverageElements
|
|
26
|
-
.item(currentIndex)
|
|
27
|
-
.classList.remove('highlighted');
|
|
28
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function makeCurrent(index) {
|
|
32
|
-
toggleClass(index);
|
|
33
|
-
currentIndex = index;
|
|
34
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
-
behavior: 'smooth',
|
|
36
|
-
block: 'center',
|
|
37
|
-
inline: 'center'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function goToPrevious() {
|
|
42
|
-
var nextIndex = 0;
|
|
43
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
-
} else if (missingCoverageElements.length > 1) {
|
|
46
|
-
nextIndex = currentIndex - 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
makeCurrent(nextIndex);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function goToNext() {
|
|
53
|
-
var nextIndex = 0;
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
typeof currentIndex === 'number' &&
|
|
57
|
-
currentIndex < missingCoverageElements.length - 1
|
|
58
|
-
) {
|
|
59
|
-
nextIndex = currentIndex + 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
makeCurrent(nextIndex);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return function jump(event) {
|
|
66
|
-
if (
|
|
67
|
-
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
-
document.activeElement != null
|
|
69
|
-
) {
|
|
70
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
switch (event.which) {
|
|
75
|
-
case 78: // n
|
|
76
|
-
case 74: // j
|
|
77
|
-
goToNext();
|
|
78
|
-
break;
|
|
79
|
-
case 66: // b
|
|
80
|
-
case 75: // k
|
|
81
|
-
case 80: // p
|
|
82
|
-
goToPrevious();
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
})();
|
|
87
|
-
window.addEventListener('keydown', jumpToCode);
|
|
Binary file
|