Skip to content

[4.8.0] - 2020-03-05

Compare
Choose a tag to compare
@compulim compulim released this 05 Mar 22:49
· 222 commits to master since this release
f152bcb

Subresource integrity

<script
  crossorigin="anonymous"
  integrity="sha384-EAMohwVGPGHagMPKSsrNj19/AUPEveyotCJG2ZriygMOR7dujHk9iLMoKOeZiETX"
  src="https://cdn.botframework.com/botframework-webchat/4.8.0/webchat.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-kBFopxfE3U3wq2fCUCdxNFihClv3I5jnxsQqqeShIPDs7wpWg9K8NSKUINSzPuJs"
  src="https://cdn.botframework.com/botframework-webchat/4.8.0/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-85eymmymrLVw3ykXTOZtd2ApKmykFvEq8/GZeU9ebWsrq1zktTdd/pq2oLe+fdcQ"
  src="https://cdn.botframework.com/botframework-webchat/4.8.0/webchat-minimal.js"
></script>

Changelog

Breaking changes

  • Localization
    • locale prop: zh-YUE has been renamed to yue to conform with Unicode standard. zh-YUE will continue to work with warnings
    • Most strings have been validated and retranslated by the Microsoft localization team, with the exception of English (US), Egyptian Arabic, Jordan Arabic, and Chinese Yue
      • If the new strings are undesirable, please use the overideLocalizedStrings prop for customization
      • String IDs have been refreshed and now use a standard format
    • useLocalize and useLocalizeDate is deprecated. Please use useLocalizer and useDateFormatter instead
  • Customizable typing indicator: data and hook related to typing indicator are being revamped in PR #2912
    • lastTypingAt reducer is deprecated, use typing instead. The newer reducer contains typing indicator from the user
    • useLastTypingAt() hook is deprecated, use useActiveTyping(duration?: number) instead. For all typing information, pass Infinity to duration argument
  • Customizable activity status: new nextVisibleActivity to control activity status visibility
    • Previously, we use timestampClassName to control if the activity should show or hide timestamp. The timestampClassName was added as a class attribute the DOM element which contains the timestamp
    • Today, activity and nextVisibleActivity are passed to the middleware, so the activityRendererMiddleware can decide whether the timestamp should be shown or not. For example, developers can group timestamp based on activity type

Added

Fixed

Changed

Samples