@chat21/chat21-web-widget 5.0.53-rc.4 → 5.0.53-rc.5

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
@@ -1,5 +1,11 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.53-rc.5
4
+ - changed: minor improvements for last-message component UI
5
+ - changed: last-message UI for long text message and long attachment buttons
6
+ - removed: automatic open widget after 3s on index.html
7
+ - bug-fixed: on click over callout not opens widget correctly if singleConversation is active
8
+
3
9
  ### 5.0.53-rc.4
4
10
  - added: proactive rules from /widget/botsRules
5
11
  - added: imHere method for presence service
@@ -15,6 +21,8 @@
15
21
  - bug-fixed: location.href and document.title is wrong (about:srcdoc)
16
22
  - bug-fixed: wait 2s before publish ImHere event to MQTT presence
17
23
 
24
+ ### 5.0.53 in PROD
25
+
18
26
  ### 5.0.53-rc.3
19
27
  - added: html descriptions to index.html and index-dev.html
20
28
  - changed: script tag for style.css to link tag with rel="stylesheet"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.53-rc.4",
4
+ "version": "5.0.53-rc.5",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -115,7 +115,7 @@
115
115
  *******************************************
116
116
  tabindex -> 20 -->
117
117
  <chat-eyeeye-catcher-card *ngIf="g.senderId"
118
- (onOpenChat)="onOpenChatEyeEyeCatcherCard()"
118
+ (onOpenChat)="onOpenCloseWidget($event)"
119
119
  (onCloseEyeCatcherCard)="onCloseEyeCatcherCard($event)">
120
120
  </chat-eyeeye-catcher-card>
121
121
 
@@ -86,6 +86,8 @@ input[type='text'].errors{
86
86
  position: relative;
87
87
  padding-bottom: 0px; //7px;
88
88
  margin: 35px 0px 0px; //27px 0 0;
89
+ display: flex;
90
+ width: 100%;
89
91
  }
90
92
  .form-group label.control-label {
91
93
  font-size: 11px;
@@ -46,7 +46,7 @@
46
46
  position: fixed;
47
47
  // right: 5px;
48
48
  bottom: 90px;
49
- max-height: calc(100% - 75px);
49
+ // max-height: calc(100% - 75px);
50
50
  width: 375px;
51
51
  max-width: 100%;
52
52
  }
@@ -64,11 +64,30 @@
64
64
  border-radius: $border-radius-bubble-message;
65
65
  padding: 0;
66
66
  word-wrap: break-word;
67
+
68
+ max-height: 160px;
69
+ display: flex;
70
+ overflow-y: auto;
67
71
  // padding: 14px;
68
72
  // padding: 6px 6px 6px 6px;
69
73
  // box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
70
74
  // -webkit-animation: heartbeat 1.5s ease-in-out both;
71
75
  // animation: heartbeat 1.5s ease-in-out both;
76
+ &::-webkit-scrollbar {
77
+ width: 6px;
78
+ background-color: #00000000!important;
79
+ }
80
+
81
+ &:hover {
82
+ &::-webkit-scrollbar-track {
83
+ background-color: #f9f9f9 !important;
84
+ }
85
+
86
+ &::-webkit-scrollbar-thumb {
87
+ background: #777777;
88
+ }
89
+
90
+ }
72
91
  }
73
92
 
74
93
  .no-background{
@@ -93,6 +112,7 @@
93
112
  box-shadow: rgba(0, 18, 46, 0.16) 0px 8px 12px 0px;
94
113
  clear: both;
95
114
  margin-left: 45px;
115
+ margin-right: 16px;
96
116
  margin-bottom: 8px;
97
117
  border-radius: 12px 12px 12px 0px;
98
118
  padding: 5px;
@@ -205,6 +225,7 @@
205
225
  }
206
226
 
207
227
  .headerPreviewMessage {
228
+ margin-right: 16px;
208
229
  position: relative;
209
230
  height: 40;// height: 50;
210
231
  margin: 10px 0px 0px 50px;
@@ -437,7 +437,7 @@
437
437
 
438
438
  var enbedJs = event_data.detail.appConfigs.enbedJs? event_data.detail.appConfigs.enbedJs : false;
439
439
  document.getElementById("enbed").style.display = enbedJs? "inline-block": "none";
440
- document.getElementById("base_url").innerHTML = enbedJs ? baseUrl + '/launch.js': null;
440
+ document.getElementById("base_url").innerHTML = enbedJs ? window.tiledesk.getBaseLocation() + '/launch.js': null;
441
441
 
442
442
  baseUrlConsole = event_data.detail.appConfigs.dashboardUrl? event_data.detail.appConfigs.dashboardUrl : baseUrlConsole;
443
443
  }
@@ -282,7 +282,7 @@
282
282
 
283
283
  var enbedJs = event_data.detail.appConfigs.enbedJs? event_data.detail.appConfigs.enbedJs : false;
284
284
  document.getElementById("enbed").style.display = enbedJs? "inline-block": "none";
285
- document.getElementById("base_url").innerHTML = enbedJs ? baseUrl + '/launch.js': null;
285
+ document.getElementById("base_url").innerHTML = enbedJs ? window.tiledesk.getBaseLocation() + '/launch.js': null;
286
286
 
287
287
  baseUrlConsole = event_data.detail.appConfigs.dashboardUrl? event_data.detail.appConfigs.dashboardUrl : baseUrlConsole;
288
288
  }
@@ -296,11 +296,11 @@
296
296
  document.getElementById("preloader").style.display = "none";
297
297
  }, 1000);
298
298
  //open widget after 3s if is closed
299
- setTimeout(() => {
300
- if(event_data && event_data.detail && event_data.detail.global && !event_data.detail.global.isOpen){
301
- window.Tiledesk('open')
302
- }
303
- }, 3000);
299
+ // setTimeout(() => {
300
+ // if(event_data && event_data.detail && event_data.detail.global && !event_data.detail.global.isOpen){
301
+ // window.Tiledesk('open')
302
+ // }
303
+ // }, 3000);
304
304
  });
305
305
 
306
306
  window.Tiledesk('onAuthStateChanged', function(event_data) {
@@ -70,7 +70,7 @@
70
70
  }
71
71
  #tiledesk-container.closed #tiledeskdiv.messagePreview {
72
72
  width: 375px; /*340px*/
73
- height: 400px; /*300px*/
73
+ height: 440px; /*300px*/
74
74
  min-width: 340px;
75
75
  }
76
76
 
@@ -10,7 +10,8 @@ export interface Rule {
10
10
  regexOption: string,
11
11
  text: string,
12
12
  urlMatches: string,
13
- triggerEvery: number},
13
+ triggerEvery: number
14
+ },
14
15
  do: [
15
16
  {wait: number},
16
17
  {message: any}