@chat21/chat21-web-widget 5.0.71-rc.7 → 5.0.71-rc.8

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,10 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.71-rc.8
4
+ - chaged: chatbot-panel.html page UI (added header as CDS)
5
+ - bug-fixed: drop-zone area wrong height if footer in not visible
6
+ - bug-fixed: set archived conversations as read always
7
+
3
8
  ### 5.0.71-rc.5
4
9
  - bug-fixed: last-message box is visible also if text is empty
5
10
 
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.71-rc.7",
4
+ "version": "5.0.71-rc.8",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -37,9 +37,10 @@
37
37
  (onMenuOptionShow)="onMenuOption($event)">
38
38
  </chat-conversation-header>
39
39
 
40
- <div id="dropZone_container" *ngIf="isHovering">
40
+ <div id="dropZone_container" *ngIf="isHovering"
41
+ [class.hideTextReply]="hideFooterTextReply && g?.poweredBy">
41
42
  <div class="drop">
42
- drop zone
43
+ <!-- drop zone -->
43
44
  </div>
44
45
  </div>
45
46
 
@@ -9,7 +9,8 @@
9
9
  --foregroundColor: var(--col-msg-sent);
10
10
  }
11
11
 
12
- :host chat-conversation-content.hideTextReply ::ng-deep .chat21-sheet-content{
12
+ :host chat-conversation-content.hideTextReply ::ng-deep .chat21-sheet-content,
13
+ :host #dropZone_container.hideTextReply{
13
14
 
14
15
  bottom: var(--chat-footer-height) !important
15
16
  }
@@ -143,7 +144,7 @@
143
144
  #dropZone_container{
144
145
  position: absolute;
145
146
  top: 52px;
146
- bottom: 56px;
147
+ bottom: calc(var(--chat-footer-logo-height) + var(--chat-footer-height));
147
148
  left: 0;
148
149
  right: 0;
149
150
  background-color: rgba(240,248,255,0.6);
@@ -248,7 +248,7 @@ textarea:active{
248
248
  // position: absolute;
249
249
  bottom: 100%;
250
250
  width: 100%;
251
- // height: 22px;
251
+ height: var(--chat-footer-logo-height);
252
252
  display: flex;
253
253
  align-items: center;
254
254
  justify-content: center;
@@ -27,7 +27,7 @@
27
27
  --bkg-color-info-message: rgba(24, 119, 242, 0.1);
28
28
 
29
29
  --chat-footer-height: 56px;
30
- --chat-footer-logo-height: 22px;
30
+ --chat-footer-logo-height: 30px;
31
31
  --chat-footer-border-radius: 16px;
32
32
  --chat-footer-background-color: #f6f7fb;
33
33
 
@@ -14,6 +14,15 @@
14
14
  @-ms-keyframes blink {0%{opacity:1;} 50%{opacity:0;} 100%{opacity:1;}} /* IE */
15
15
  @keyframes blink {0%{opacity:1;} 50%{opacity:0;} 100%{opacity:1;}} /* Opera and prob css3 final iteration */
16
16
 
17
+ body{
18
+ --font-family-poppins: 'Poppins', 'Roboto', Arial, sans-serif;
19
+ --blu: #506493;
20
+ --gray-light-02: rgb(223, 227, 237);
21
+ --tiledesk-base-color: rgb(224,106,88);
22
+ --header-height: 60px;
23
+
24
+ }
25
+
17
26
  #preloader {
18
27
  background: #fff;
19
28
  position: fixed;
@@ -162,6 +171,71 @@
162
171
  z-index: 2;
163
172
  position: absolute;
164
173
  cursor: pointer;
174
+ font-size: 21px;
175
+ height: var(--header-height);
176
+ font-family: var(--font-family-poppins);
177
+ color: var(--blu);
178
+ background: white;
179
+ border-bottom: 1px solid var(--gray-light-02);
180
+ display: flex;
181
+ width: 100%;
182
+
183
+ }
184
+
185
+ .header-left{
186
+ max-width: var(--header-height);
187
+ width: 100%;
188
+ transition: 0.3s;
189
+ border-right: 1px solid transparent;
190
+ /* border-right: 1px solid var(--gray-light-02); */
191
+ padding: 10px;
192
+ }
193
+
194
+ .header-left div {
195
+ display: flex;
196
+ justify-content: center;
197
+ align-items: center;
198
+ position: relative;
199
+ width: 100%;
200
+ height: 100%;
201
+ border-radius: 50%;
202
+ box-shadow: rgba(17, 49, 96, 0.16) 0px 8px 16px 0px, rgba(17, 49, 96, 0.06) 0px 0px 0px 1px; ;
203
+ }
204
+
205
+ .header-left div .logo {
206
+ opacity: 1;
207
+ width: 25px;
208
+ position: absolute;
209
+ transition: opacity 0.2s ease-in-out;
210
+ }
211
+
212
+ .header-right {
213
+ display: flex;
214
+ align-items: center;
215
+ justify-content: start;
216
+ width: 100%;
217
+ padding: 0px 10px;
218
+ box-sizing: border-box;
219
+ }
220
+
221
+ .header-right .header-go-back {
222
+ cursor: pointer;
223
+ position: relative;
224
+ }
225
+
226
+ .header-right .header-go-back .cds-text {
227
+ font-weight: 700;
228
+ color: rgb(224,106,88);
229
+ }
230
+
231
+ .header-right .header-title{
232
+ display: flex;
233
+ align-items: center;
234
+ justify-content: center;
235
+ gap: 5px;
236
+ font-weight: 300;
237
+ width: 80%;
238
+
165
239
  }
166
240
 
167
241
  .share-btn{
@@ -263,6 +337,12 @@
263
337
  to {bottom: 0; opacity: 0;}
264
338
  }
265
339
 
340
+ @media (max-width: 451px) {
341
+ .cds-text{
342
+ display: none;
343
+ }
344
+ }
345
+
266
346
  </style>
267
347
 
268
348
  <!-- <script type="text/javascript">
@@ -440,6 +520,7 @@
440
520
 
441
521
  var url = new URL(currentUrl);
442
522
  var tiledesk_projectid = url.searchParams.get("tiledesk_projectid");
523
+ var tiledesk_widgetTitle = url.searchParams.get("tiledesk_widgetTitle");
443
524
  var project_name = url.searchParams.get("project_name");
444
525
  var role = url.searchParams.get("role")
445
526
  var urlConsole = baseUrlConsole + "#/projects/"+tiledesk_projectid+"/home";
@@ -456,6 +537,10 @@
456
537
  return(false);
457
538
  }
458
539
 
540
+ window.onload = function() {
541
+ document.getElementById("tiledesk_widgetTitle").innerHTML = tiledesk_widgetTitle;
542
+ }
543
+
459
544
 
460
545
 
461
546
  </script>
@@ -473,6 +558,24 @@
473
558
  <!-- <ul class="nav navbar-nav navbar-left">
474
559
  <li class="sign-up"><button class="share-btn" onclick="copyLink()">SHARE THIS PROTOTYPE</button></li>
475
560
  </ul> -->
561
+ <div class="header-left">
562
+ <div>
563
+ <img class="logo" src="./tiledesk_widget_files/logo-short.png">
564
+ </div>
565
+ </div>
566
+ <div class="header-right">
567
+ <div class="header-go-back">
568
+ <!-- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#006cff">
569
+ <path d="M0 0h24v24H0z" fill="none"/><path d="M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"/>
570
+ </svg> -->
571
+ <span class="cds-text">
572
+ Design Studio
573
+ </span>
574
+
575
+ </div>
576
+ <div class="header-title ellips" id="tiledesk_widgetTitle"></div>
577
+ </div>
578
+
476
579
  </header>
477
580
  <!-- The actual snackbar -->
478
581
  <div id="snackbar">Copied to clipboard...</div>
@@ -230,6 +230,7 @@ export class FirebaseConversationsHandler extends ConversationsHandlerService {
230
230
  archiveConversation(conversationId: string) {
231
231
  const that = this
232
232
  this.setClosingConversation(conversationId, true);
233
+ this.setConversationRead(conversationId)
233
234
  const index = searchIndexInArrayForUid(this.conversations, conversationId);
234
235
  // if (index > -1) {
235
236
  // this.conversations.splice(index, 1);
@@ -384,7 +384,8 @@ export class MQTTConversationsHandler extends ConversationsHandlerService {
384
384
  this.isConversationClosingMap.delete(conversationId);
385
385
  }
386
386
 
387
- archiveConversation(conversationId: string) {
387
+ archiveConversation(conversationId: string) {
388
+ this.setConversationRead(conversationId)
388
389
  this.chat21Service.chatClient.archiveConversation(conversationId);
389
390
  }
390
391