@chat21/chat21-ionic 3.0.81-rc.3 → 3.0.82-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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.82-rc.1
4
+ - changed: forceArchive to force while calling /close API URL
5
+ - changed: chat21Client.js from 1.12.1 to 1.12.2
6
+ - changed: list conversations component with from 360px to 320px
7
+
8
+ ### 3.0.81 in PROD
9
+
3
10
  ### 3.0.81-rc.3
4
11
  - bug-fixed: if window width is less then 991px, move 'Close detail' icon to right
5
12
  - changed: removed segment from index.html and loaded dynamically only if in not production
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
3
  "author": "Tiledesk SRL",
4
- "version": "3.0.81-rc.3",
4
+ "version": "3.0.82-rc.1",
5
5
  "license": "MIT License",
6
6
  "homepage": "https://tiledesk.com/",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  @import '../variables.scss';
2
2
 
3
3
  .split-pane-md.split-pane-visible > .split-pane-side {
4
- min-width: 360px; //312px;
4
+ min-width: 320px; //360px; //312px;
5
5
  display: block; // Safari bug fix
6
6
  margin-left: var(--sidebar-width);
7
7
  --border: 0px;
@@ -5,7 +5,8 @@
5
5
  <img id="myImg"
6
6
  class="message-contentX message-content-imageX"
7
7
  [ngClass]="{'isLoadingImage': loading}"
8
- [ngStyle]="{ 'width': width , 'height': height }"
8
+ [width]="width"
9
+ [height]="height"
9
10
  [src]="metadata.src"
10
11
  (load)="onLoaded($event)"
11
12
  (click)="openImageViewerModal(metadata.src, metadata.name)" />
@@ -22,6 +22,7 @@ ion-item {
22
22
  --background: transparent;
23
23
  border-radius: var(--border-radius-item);
24
24
  margin: 4px 5px;
25
+ transition: none;
25
26
  .conv-container{
26
27
  width: 84%;
27
28
  height: 100%;
@@ -231,6 +231,7 @@
231
231
 
232
232
  .flex-container-project-for-panel:hover {
233
233
  background-color: rgba(24, 119, 242, 0.2);
234
+ transition: none;
234
235
  }
235
236
 
236
237
  .flex-child-right {
@@ -5,7 +5,7 @@
5
5
  <span class="user-details-dshbrd-lang-code" style="text-transform: uppercase;color: #647491;">
6
6
  {{chat_lang}}
7
7
  </span>
8
- <img *ngIf="flag_url" [src]="flag_url" style="width: auto;height: 19px; position: relative;top: 1px;">
8
+ <img *ngIf="flag_url" [src]="flag_url" width="19px" height="19px" style=" position: relative;top: 1px;">
9
9
 
10
10
  </div>
11
11
 
@@ -40,7 +40,7 @@ export class TiledeskService {
40
40
  // console.log('CLOUD FUNCT CLOSE SUPPORT GROUP REQUEST BODY ', body);
41
41
  // https://tiledesk-server-pre.herokuapp.com/
42
42
  // const url = 'https://tiledesk-server-pre.herokuapp.com/' + this.project_id + '/requests/' + group_id + '/close';
43
- const url = this.apiUrl + projectid + '/requests/' + supportgroupid + '/close'+'?forceArchive=true';
43
+ const url = this.apiUrl + projectid + '/requests/' + supportgroupid + '/close'+'?force=true';
44
44
 
45
45
  this.logger.log('[TILEDESK-SERVICE] - closeSupportGroup URL ', url);
46
46
  return this.http.put(url, body, httpOptions).pipe(map((res: any) => {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Chat21Client
3
3
 
4
- v0.1.12.1
4
+ v0.1.12.2
5
5
 
6
6
  @Author Andrea Sponziello
7
7
  (c) Tiledesk 2020
@@ -630,12 +630,11 @@ class Chat21Client {
630
630
  // Observing conversations added from messages
631
631
  // console.log("Observing conversations added from messages", message_json);
632
632
  // if (this.onConversationAddedCallbacks) {
633
- // console.log("callbacks ok........");
634
633
  let update_conversation = true;
635
- if (message_json.attributes && message_json.attributes.updateconversation == false) {
636
- update_conversation = false
637
- }
638
- // console.log("update_conversation........", update_conversation);
634
+ // temporarily ignoring the updateconversation = false option
635
+ // if (message_json.attributes && message_json.attributes.updateconversation == false) {
636
+ // update_conversation = false
637
+ // }
639
638
  if (update_conversation && this.onConversationAddedCallbacks) {
640
639
  this.onConversationAddedCallbacks.forEach((callback, handler, map) => {
641
640
  message_json.is_new = true;
package/src/global.scss CHANGED
@@ -107,189 +107,6 @@ app-conversations-list {
107
107
  font-size: 13px;
108
108
  }
109
109
 
110
- // .popover-md .popover-content{
111
- // width: auto!important;
112
- // }
113
-
114
- // ion-backdrop{
115
- // display: block;
116
- // background-color: #000000!important;
117
- // width: 100%;
118
- // height: 100%;
119
- // opacity: 0.0!important;
120
- // }
121
-
122
- // ion-app, ion-nav, ion-tab, ion-tabs, .app-root, .ion-page {
123
- // contain: none!important;
124
- // }
125
-
126
- // .avatar-profile {
127
- // position: absolute;
128
- // top: 0px;
129
- // left: 0px;
130
- // display: inline-block;
131
- // width: 50px;
132
- // height: 50px;
133
- // background-color: transparent;
134
- // background-size: cover;
135
- // background-position: top center;
136
- // border-radius: 50%;
137
- // border-color: #c3c3c3;
138
- // border-style: solid;
139
- // border-width: 0px;
140
- // }
141
- // .chat21-avatar.big{
142
- // width: 200px;
143
- // height: 200px;
144
- // }
145
-
146
- // /* LOADING */
147
- // /*http://tobiasahlin.com/spinkit/*/
148
- // #chat21-spinner {
149
- // min-height: 20px;
150
- // display: none;
151
- // margin: 20px auto 0;
152
- // width: 70px;
153
- // text-align: center;
154
- // }
155
- // #chat21-spinner.active {
156
- // display: block;
157
- // }
158
- // #chat21-spinner > div {
159
- // width: 12px;
160
- // height: 12px;
161
- // background-color: #2a69c1;
162
- // border-radius: 100%;
163
- // display: inline-block;
164
- // -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
165
- // animation: sk-bouncedelay 1.4s infinite ease-in-out both;
166
- // }
167
- // #chat21-spinner .chat21-bounce1 {
168
- // -webkit-animation-delay: -0.32s;
169
- // animation-delay: -0.32s;
170
- // }
171
- // #chat21-spinner .chat21-bounce2 {
172
- // -webkit-animation-delay: -0.16s;
173
- // animation-delay: -0.16s;
174
- // }
175
- // #chat21-spinner span {
176
- // display: block;
177
- // margin: 0.5em 0 0 0;
178
- // color: #2a6ac1;
179
- // /* text-transform: uppercase; */
180
- // font-family: 'Roboto', sans-serif;
181
- // -webkit-animation: pulse 2000ms linear infinite;
182
- // -moz-animation: pulse 2000ms linear infinite;
183
- // animation: pulse 2000ms linear infinite;
184
- // text-align: center;
185
- // }
186
-
187
- // @-webkit-keyframes sk-bouncedelay {
188
- // 0%, 80%, 100% { -webkit-transform: scale(0) }
189
- // 40% { -webkit-transform: scale(1.0) }
190
- // }
191
-
192
- // @keyframes sk-bouncedelay {
193
- // 0%, 80%, 100% {
194
- // -webkit-transform: scale(0);
195
- // transform: scale(0);
196
- // } 40% {
197
- // -webkit-transform: scale(1.0);
198
- // transform: scale(1.0);
199
- // }
200
- // }
201
-
202
- // .c21-right{
203
- // float: right;
204
- // }
205
- // .c21-left{
206
- // float: left;
207
- // }
208
- // .clearfix:after {
209
- // display: block;
210
- // clear: both;
211
- // content: '';
212
- // }
213
- // .clear{
214
- // clear: both;
215
- // }
216
-
217
- // /* END LOADIN */
218
-
219
- // .c21-alert {
220
- // &.c21-alert-notification {
221
- // display: inline-block;
222
- // margin: 0 auto;
223
- // position: fixed;
224
- // -webkit-transition: all .5s ease-in-out 0s;
225
- // transition: all .5s ease-in-out 0s;
226
- // z-index: 1031;
227
- // top: -100px;
228
- // left: 0px;
229
- // right: 0px;
230
- // max-width: 450px;
231
- // width: 80%;
232
- // padding: 10px;
233
- // cursor: pointer;
234
- // display: block;
235
- // }
236
- // &.alert-danger {
237
- // background-color: #f55a4e;
238
- // color: #fff;
239
- // border-radius: 3px;
240
- // -webkit-box-shadow: 0 12px 20px -10px rgba(244,67,54,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(244,67,54,.2);
241
- // box-shadow: 0 12px 20px -10px rgba(244,67,54,.28), 0 4px 20px 0 rgba(0,0,0,.12), 0 7px 8px -5px rgba(244,67,54,.2);
242
- // }
243
- // &.animated {
244
- // top: 10px;
245
- // -webkit-animation-duration: 1s;
246
- // animation-duration: 1s;
247
- // -webkit-animation-fill-mode: both;
248
- // animation-fill-mode: both;
249
- // }
250
-
251
- // }
252
-
253
- // ion-navbar {
254
- // .toolbar-background{
255
- // /* height: 55px; */
256
- // box-shadow: inset 0px -1px 0px #f7f7f7;
257
- // }
258
-
259
- // }
260
-
261
- // ion-toolbar {
262
- // .toolbar-background {
263
- // background-color: #ffffff;
264
- // }
265
- // .transparent{
266
- // .toolbar-background {
267
- // background-color: transparent;
268
- // }
269
- // }
270
- // }
271
-
272
- // .footer:before {
273
- // height: 1px;
274
- // }
275
- // // .modal-page {
276
- // // z-index: 1;
277
- // // background-color: transparent;
278
- // // opacity: 0;
279
- // // transition: all 0.2s;
280
- // // right: -100%;
281
- // // &.open {
282
- // // // background-color: $trasp-black;
283
- // // opacity: 1;
284
- // // transition: all 0.3s;
285
- // // right: 0px;
286
- // // }
287
- // // }
288
-
289
- // .split-pane-side {
290
- // border-right: 1px solid rgba(169, 169, 169, 0.1)!important;
291
- // }
292
-
293
110
  // START GESTIONE SIDEBAR ESTERNA CON IFRAME //
294
111
  #tld-sidebar {
295
112
  position: absolute;
@@ -411,11 +228,6 @@ select:-webkit-autofill:focus {
411
228
  font-weight: 300;
412
229
  }
413
230
 
414
- // da rivedere
415
- // :host ::ng-deep tiledeskwidget-bubble-message > div > div > tiledeskwidget-image > div > img {
416
- // display: none !important;
417
- // }
418
-
419
231
  /*
420
232
  * Canned responses
421
233
  * -------------------------------------------- */
@@ -473,18 +285,7 @@ select:-webkit-autofill:focus {
473
285
  line-height: 42px;
474
286
  }
475
287
  /* End rules for the member list refactoring in the "info-group.component.html" (replacement of ion-grid with ion-list) */
476
- .missing-connection-toast {
477
- --background: #fdd764;
478
- --color: #2e3939;
479
- font-weight: 500;
480
- font-size: 16px;
481
- }
482
288
 
483
- .missing-connection-toast::part(message) {
484
- // display: none;
485
- display: flex;
486
- align-items: center;
487
- }
488
289
 
489
290
  // User details Sidebar
490
291
  .user-details-sidebar {