@chat21/chat21-web-widget 5.0.46 → 5.0.47-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-web-widget ver 5.0
2
2
 
3
+ ### 5.0.47-rc.1
4
+ - added: sourceTitle info in attributes
5
+ - added: restartConversation settings parameter to ALWAYS restart a conversation if singleConversation mode is active
6
+ - bug-fixed: aligned title header component vertically
7
+ - bug-fixed: chinese characters not displayed due to isEmojii function
8
+ - bug-fixed: mqtt-conversations-handler service publish wrong changed conversation
9
+
3
10
  ### 5.0.46 in PROD
4
11
 
5
12
  ### 5.0.46-rc.4
@@ -801,6 +801,13 @@
801
801
  window.Tiledesk('restart')
802
802
  }
803
803
 
804
+ function onClickRestartConversation(){
805
+ let status = document.querySelector('input[name="restartConversation"]:checked').value
806
+ window.tiledeskSettings['restart'] = stringToBoolean(status)
807
+ console.log('onClickRestartConversation: status-->',window.tiledeskSettings);
808
+ window.Tiledesk('restart')
809
+ }
810
+
804
811
  function onClickHideSettings(){
805
812
  let status = document.querySelector('input[name="hideSettings"]:checked').value
806
813
  window.tiledeskSettings['hideSettings'] = stringToBoolean(status)
@@ -1694,6 +1701,17 @@
1694
1701
  <button class="btn btn-light" onclick="onClickSingleConversation()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
1695
1702
  </div>
1696
1703
  </div>
1704
+ <div class="row">
1705
+ <div class="col-md-5 formElement"><span><em><strong>restartConversation</strong></em></span></div>
1706
+ <div class="col-md-5">
1707
+ <input class="form-check-input" type="radio" name="restartConversation" value="true"><label>True</label>
1708
+ <input class="form-check-input" type="radio" name="restartConversation" value="false" checked><label>False</label>
1709
+ </div>
1710
+ <div class="col-md-2">
1711
+ <button class="btn btn-light" onclick="onClickRestartConversation()">Test this setting <i class="fa fa-magic" aria-hidden="true"></i></button>
1712
+ </div>
1713
+ </div>
1714
+
1697
1715
 
1698
1716
  <div class="row">
1699
1717
  <div class="col-md-5 formElement"><span><em><strong>hideSettings</strong></em></span></div>
package/dist/launch.js CHANGED
@@ -161,6 +161,7 @@ function loadIframe(tiledeskScriptBaseLocation) {
161
161
  });
162
162
  /**** END EVENST ****/
163
163
 
164
+ // ifrm.srcdoc = srcTileDesk
164
165
  iDiv.appendChild(ifrm);
165
166
  ifrm.contentWindow.document.open();
166
167
  ifrm.contentWindow.document.write(srcTileDesk);