@chat21/chat21-web-widget 5.0.46-rc.2 → 5.0.46-rc.4

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-web-widget ver 5.0
2
2
 
3
+ ### 5.0.46-rc.4
4
+ - added: participants property to index-dev list
5
+ - changed: converation-preview UI
6
+
7
+ ### 5.0.46-rc.3
8
+ - added: participants tiledesk property to set specific chatbot/humans to talk with
9
+
3
10
  ### 5.0.46-rc.2
4
11
  - added: scale on hover in message buttons
5
12
  - changed: set themeColorOpacity to 100 as default value
@@ -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">
package/dist/launch.js CHANGED
@@ -124,7 +124,7 @@ function loadIframe(tiledeskScriptBaseLocation) {
124
124
  var httpRequest = createCORSRequest('POST', event_data.detail.appConfigs.apiUrl+event_data.detail.default_settings.projectid+'/events',true); //set async to false because loadParams must return when the get is complete
125
125
  httpRequest.setRequestHeader('Content-type', 'application/json');
126
126
  httpRequest.setRequestHeader('Authorization',tiledeskToken);
127
- httpRequest.send(JSON.stringify({"name":"new_conversation","attributes": {"request_id":event_data.detail.newConvId, "department": event_data.detail.global.departmentSelected.id, "language": event_data.detail.global.lang, "subtype":"info", "fullname":event_data.detail.global.attributes.userFullname, "email":event_data.detail.global.attributes.userEmail, "attributes":event_data.detail.global.attributes}}));
127
+ httpRequest.send(JSON.stringify({"name":"new_conversation","attributes": {"request_id":event_data.detail.newConvId, "department": event_data.detail.global.departmentSelected.id, "participants": event_data.detail.global.participants, "language": event_data.detail.global.lang, "subtype":"info", "fullname":event_data.detail.global.attributes.userFullname, "email":event_data.detail.global.attributes.userEmail, "attributes":event_data.detail.global.attributes}}));
128
128
  }
129
129
  });
130
130