[4.8.0] - 2020-03-05
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
localeprop:zh-YUEhas been renamed toyueto conform with Unicode standard.zh-YUEwill 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
overideLocalizedStringsprop for customization - String IDs have been refreshed and now use a standard format
- If the new strings are undesirable, please use the
useLocalizeanduseLocalizeDateis deprecated. Please useuseLocalizeranduseDateFormatterinstead
- Customizable typing indicator: data and hook related to typing indicator are being revamped in PR #2912
lastTypingAtreducer is deprecated, usetypinginstead. The newer reducer contains typing indicator from the useruseLastTypingAt()hook is deprecated, useuseActiveTyping(duration?: number)instead. For all typing information, passInfinitytodurationargument
- Customizable activity status: new
nextVisibleActivityto control activity status visibility- Previously, we use
timestampClassNameto control if the activity should show or hide timestamp. ThetimestampClassNamewas added as aclassattribute the DOM element which contains the timestamp - Today,
activityandnextVisibleActivityare passed to the middleware, so theactivityRendererMiddlewarecan decide whether the timestamp should be shown or not. For example, developers can group timestamp based on activity type
- Previously, we use
Added
- Resolves #2753. Added support for updating an activity by the ID, by @compulim in PR #2825
- Added custom hooks -
useTimeranduseIntervalSince- to replace the headlessTimercomponent, by @tdurnford, in PR #2771 - Resolves #2720, added customizable activity status using
activityStatusMiddlewareprops, by @compulim, in PR #2788 - Added default
onErrorprop to theDictationcomponent, by @tonyanziano, in PR #2866 - Resolves #1976. Added RTL support with localization for Hebrew and Arabic, by @corinagum, in PR #2890
- Resolves #2755. Added notification system and toast UI, by @compulim, in PR #2883
- Please read this article on how to use notification
- Slow connection timer can now be set using
styleOptions.slowConnectionAfter(in milliseconds)
- Resolves #2871. Moved typing indicator to transcript, by @compulim, in PR #2883
- Resolves #2756. Improved localizability and add override support for localized strings, by @compulim in PR #2894
- Will be translated into 44 languages, plus 2 community-contributed translations
- For details, please read the documentation on the localization
- Resolves #2213. Added customization for typing activity, by @compulim, in PR #2912
- Resolves #2754. Added telemetry system, by @compulim, in PR #2922
- Resolves #2857. Added the ability to customize the avatar on a per activity basis, by @compulim, in PR #2943
- Resolves #2944. Updated Azure locale mapping in embed page, by @compulim in PR #2965
Fixed
- Fixes #2611. Fix sample 21: hooks errors, by @corinagum in PR #2740
- Fixes #2609. Fix sample 12: minimizable button is causing another reconnect on restore, by @compulim in PR #2758
- Fixes #2773. Import ES5 version of the following bundles, by @compulim in PR #2774
- Fixes the following issues and improves test reliability, by @compulim in PR #2777
- Fixes #2612. Wait until language change
- Fixes #2653. Scroll-to-bottom check will do 5 consecutive checks to determine stickiness.
- Fixes #2691. Wait until button is shown/hid before taking screenshot
- Fixes #2737. Use
driver.waitfor conditions - Fixes #2776. Wait until button is shown/hid before taking screenshot
- Use a new timeout
fetchImagefor images
- Fixes #2780. Added the
telprotocol to theallowedSchemain thesanitize-htmloptions, by @tdurnford in PR #2787 - Fixes #2747. Moved
Timestampinto theSendStatuscomponent and removed theTimestampstyle set, by @tdurnford in PR #2786 - Fixes #2647. Update the
CroppedImagecomponentPropType, by @tdurnford in PR #2795 - Fixes #2794. Fix change locale sample, by @corinagum in PR #2798
- Fixes #2510. Host hybrid-react and clear-after-idle samples, by @corinagum in PR #2798
- Fixes #2772. Updated Adaptive Cards HostConfig to include container styles, by @tdurnford in PR #2810
- Fixes #2145. Updated Adaptive Cards styles to include action styles, by @tdurnford in PR #2810
- Fixes #2459. Updated Cognitive Services Speech Services to use latest fetch credentials signature, by @compulim in PR #2740
- Fixes #1673. Configured suggested action and carousel flippers to blur on click, by @tdunford in PR #2801
- Fixes #2822. Fixed
credentialsshould returnauthorizationTokenandsubscriptionKeyas string and allow empty LUIS reference grammar ID, by @compulim in PR #2824 - Fixes #2751. Move documentation to docs folder, by @corinagum in PR #2832
- Fixes #2838. Fixed
concatMiddlewareshould allow any middleware to call its downstream middleware twice, by @compulim in PR #2839 - Fixes #2864. Replaced
DownloadAttachmentandUploadAttachmentwithFileAttachment, which shows the download link and icon if the attachment contains thecontentUrl, by @compulim in PR #2868 - Fixes #2877. Updated Cognitive Services Speech Services samples to use both pre-4.8 and 4.8 API signature, by @compulim in PR #2916
- Fixes #2757. New message indicator should only show up for new messages, by @compulim in PR #2915
- Fixes #2945. Toast should not overlap with each other, by @compulim in PR #2952
- Fixes #2946. Updated JSON filenames for localization strings, by @compulim in PR #2949
- Fixes #2560. Bumped to
[email protected]to workaround a bug from Angular/zone.js, by @compulim in PR #2960 - Fixes #2923. Added
downloadattribute to file attachment (<FileContent>), by @compulim in PR #2963 - Fixes #2904. Fixed border radius when rendering bubble nub in RTL, by @compulim in PR #2943
- Fixes #2966. Collapsed toast should show at most 2 lines of text, by @compulim in PR #2967
- Fixes #2941, #2921, and #2948. Update documentation and fix redux sample, by @corinagum in PR #2968
- Fixes #2972. Compatibility fix for IE11, by @compulim in PR #2973
- Fixes #2977.
sr-Cyrlandsr-Latnshould display Serbian texts, by @compulim in PR #2978 - Fixes #2979. Lock
microsoft-cognitiveservices-speech-sdkto1.8.1, by @compulim in PR #2980
Changed
- Bumped all dependencies to latest versions, by @corinagum in PR #2740
- Development dependencies
- Root package
@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]
- Other packages
@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@babel/[email protected]@types/[email protected]@types/[email protected]@typescript-eslint/[email protected]@typescript-eslint/[email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected]
- Root package
- Production dependencies
corebundlecomponentembed
- Development dependencies
- Resolves #2748, updated build scripts and CI pipeline, by @compulim, in PR #2767
component: Bumps[email protected], by @tdurnford in PR #2801- Removes
sendTypingand deprecation notes in PR #2845, by @corinagum, in PR #2918 component: Bumps[email protected], by @compulim in PR #2960
Samples
- Bump samples to Web Chat 4.7.0, by @compulim in PR #2726
- Resolves #2641. Reorganize Web Chat samples, by @corinagum, in PR #2762
- Resolves #2755, added "how to use notification and customize the toast UI" sample, by @compulim, in PR #2883
- Resolves #2213. Added Customize Typing Indicator Demo, by @compulim, in PR #2912
- Resolves #2754. Added telemetry collection using Azure Application Insights and telemetry collection using Google Analytics, by @compulim, in PR #2922
- Resolves #2857. Added Customize Avatar Demo, by @compulim, in PR #2943