@chat21/chat21-web-widget 5.0.57-rc.5 → 5.0.57

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,7 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.57 in PROD
4
+
3
5
  ### 5.0.57-rc.5
4
6
  - changed: chat21client.js to v0.1.12.5 (window scope fixed)
5
7
  - changed: tiledesk logo in conversation and home components
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.57-rc.5",
4
+ "version": "5.0.57",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -305,7 +305,7 @@ textarea:active{
305
305
  vertical-align: middle;
306
306
  object-fit: contain;
307
307
  filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
308
- padding-right: 8px;
308
+ padding-right: 5px;
309
309
  }
310
310
  }
311
311
  b{
@@ -296,7 +296,7 @@
296
296
  vertical-align: middle;
297
297
  object-fit: contain;
298
298
  filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(212%) hue-rotate(173deg) brightness(92%) contrast(88%);
299
- padding-right: 8px;
299
+ padding-right: 5px;
300
300
  }
301
301
  }
302
302
  b{
@@ -1197,6 +1197,13 @@
1197
1197
  window.Tiledesk('restart')
1198
1198
  }
1199
1199
 
1200
+ function onClickFileUploadAccept(){
1201
+ let text = document.getElementById('fileUploadAccept').value
1202
+ window.tiledeskSettings['fileUploadAccept'] = text
1203
+ console.log('onClickFileUploadAccept:', window.tiledeskSettings)
1204
+ window.Tiledesk('restart')
1205
+ }
1206
+
1200
1207
  function onClickShowAttachmentButton(){
1201
1208
  let status = document.querySelector('input[name="showAttachmentButton"]:checked').value
1202
1209
  window.tiledeskSettings['showAttachmentButton'] = stringToBoolean(status)
@@ -2193,6 +2200,15 @@
2193
2200
  <button class="btn btn-light" onclick="onClickParticipants()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
2194
2201
  </div>
2195
2202
  </div>
2203
+ <div class="row">
2204
+ <div class="col-md-5 formElement"><span><em><strong>fileUploadAccept</strong></em> (more<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers"> here</a>)</span></div>
2205
+ <div class="col-md-5">
2206
+ <input class="form-control" type="text" id="fileUploadAccept" name="fileUploadAccept" placeholder="Set a comma separated string...">
2207
+ </div>
2208
+ <div class="col-md-2">
2209
+ <button class="btn btn-light" onclick="onClickFileUploadAccept()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
2210
+ </div>
2211
+ </div>
2196
2212
  <div class="row">
2197
2213
  <div class="col-md-5 formElement"><span><em><strong>showAttachmentButton</strong></em></span></div>
2198
2214
  <div class="col-md-5">