Skip to content

Releases: microsoft/BotFramework-WebChat

[4.10.0] - 2020-08-18

18 Aug 20:34
Compare
Choose a tag to compare

Subresource integrity

<script
  crossorigin="anonymous"
  integrity="sha384-4key3rVGP7b1Yaaqp04c11GMmgLeYgSIgZQ7gtn0rR/wL3fnkFpiAAuOv2Glo6DH"
  src="https://cdn.botframework.com/botframework-webchat/4.10.0/webchat.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-nB4tinBxptD4DwQRrhIiZL2tKeB0n2aHg2b+/RoBi801c0zU2BRRL21pKMYYhr/j"
  src="https://cdn.botframework.com/botframework-webchat/4.10.0/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-2XHvA/fH49BWL345uPZgXXqINkPfHP4jkGtLeg7GrDYpzaEBDcJBpxOSi6jj+jde"
  src="https://cdn.botframework.com/botframework-webchat/4.10.0/webchat-minimal.js"
></script>

[4.10.0] - 2020-08-18

Breaking changes

  • Due to the complexity, we are no longer exposing <CarouselLayout> and <StackedLayout>. Please use <BasicTranscript> to render the transcript instead.
  • With the new activity grouping feature:
    • Customized avatar cannot be wider than styleOptions.avatarSize. If you want to show a wider avatar, please increase styleOptions.avatarSize.
    • If customized avatar is rendering false, bubble will still be padded to leave a gutter for the empty customized avatar. To hide gutter, please set styleOptions.botAvatarInitials and styleOptions.userAvatarInitials to falsy.
  • Default bubble nub offset is set to 0, previously "bottom" (or -0)
    • Previously, we put the bubble nub at the bottom while keeping the avatar on top. This is not consistent in the new layout.
  • By default, we will group avatar per status group.
    • If you want to switch back to previous behaviors, please set styleOptions.showAvatarInGroup to true.
  • Default botAvatarInitials and userAvatarInitials is changed to undefined, from "" (empty string)
    • When the initials is undefined, no gutter space will be reserved for the avatar.
    • When the initials is "" (empty string), gutter space will be reserved, but not avatar will be shown.

Changed

Added

Read more

[4.9.2] - 2020-07-14

16 Jul 18:49
e0b9ccc
Compare
Choose a tag to compare

Subresource integrity

<script
  crossorigin="anonymous"
  integrity="sha384-G0VCa1atd2kw41Vc47SQAzxRtXJ0VUF7STjAmsS/VBtJ30ohQxOkKPOR6iqtUG/H"
  src="https://cdn.botframework.com/botframework-webchat/4.9.2/webchat.js"
></script>

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

<script 
  crossorigin="anonymous"
  integrity="sha384-wLx+ilIRSYD2v2BUIDlJAfELEXQjrxliC/t6JaeMCn3U+KX2q2uFd6KdPYKUSH2l"
  src="https://cdn.botframework.com/botframework-webchat/4.9.2/webchat-minimal.js"
></script>

Changelog

Added

Fixes

  • Fixes #3265. Fix styling specificity regression on microphone button, by @corinagum in PR #3276
  • Fixes #3279. Fix relative timestamp errored out when showing a time before yesterday, by @compulim in PR #3282
  • Fixes #3236, by @compulim in PR #3287
    • Isolated screen reader only live region for incoming activities and added a new <ScreenReaderActivity> component
    • Removed screen reader text for activities outside of live region, including <CarouselFilmstrip>, <StackedLayout>, <TextContent>, and <Timestamp>
    • Updated some accessibility texts
    • Rectified activities render order by delaying activities with replyToId that reference an activity which is not ACK-ed, for up to 5 seconds
    • Disabled widgets will have tabindex="-1" set, instead of disabled attribute
    • Remove tabindex="-1" from Adaptive Cards container
    • Hide activities of type invoke
  • Fixes #3294. Fix blank screen on missing middlewares, by @compulim in PR #3295
  • Fixes #3297. Fix className prop is not honored in <ReactWebChat>, by @compulim in PR #3300

Samples

  • Resolves #3218 and #2811. Adds documentation on reconnecting to a conversation in minimizable sample, by @corinagum, in PR #3239

[dev-preview-timestamp-fix] - 2020-07-08

08 Jul 01:27
Compare
Choose a tag to compare

Tarballs can be found in this workflow, https://github.com/microsoft/BotFramework-WebChat/actions/runs/161358565.

Build time Workflow ID Source version Branch Package version
2020-07-08 01:27:42.503Z 161358565 8696a8e preview-timestamp-fix 4.9.2-preview-timestamp-fix.8696a8e
Force push on tag name

Script tags

<script src="https://github.com/microsoft/BotFramework-WebChat/releases/download/dev-preview-timestamp-fix/webchat.js"></script>

<script src="https://github.com/microsoft/BotFramework-WebChat/releases/download/dev-preview-timestamp-fix/webchat-es5.js"></script>

<script src="https://github.com/microsoft/BotFramework-WebChat/releases/download/dev-preview-timestamp-fix/webchat-minimal.js"></script>

[4.9.1] - 2020-06-09

10 Jun 17:42
69d0afb
Compare
Choose a tag to compare

Subresource integrity

<script
  crossorigin="anonymous"
  integrity="sha384-Q1EIOjL3Bf1TgDSIVoQ0+I5X3P5LX+k1OIJPaVmNOkUjXNlSoR1bkAPJZNuK54x2"
  src="https://cdn.botframework.com/botframework-webchat/4.9.1/webchat.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-iUFVOYPvwT6u1UqxL7JaKPyO1VGrqJ0zg/fD+g1QKLH3xi6MzFyYtUKQM51LHuob"
  src="https://cdn.botframework.com/botframework-webchat/4.9.1/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-GM+djQ1F0fU5UT7u/+8oFgNtU9I/eJZkjgBNVmCjNkMxhG30zzxCah0U/5McEpvv"
  src="https://cdn.botframework.com/botframework-webchat/4.9.1/webchat-minimal.js"
></script>

Changelog

Breaking changes

  • Affecting Adaptive Cards, legacy cards and suggested actions
    • For openUrl card action, we are now whitelisting the URL scheme using the same whitelist from the default Markdown + sanitize engine, which includes data, http, https, ftp, mailto, sip, and tel
    • To whitelist a different set of URL schemes, please implement the card action middleware to override this behavior

Added

Fixed

  • Fixes #1340. Card container should not be focusable if they do not have tapAction, by @compulim in PR #3193
  • Fixed #3196. Cards with tapAction should be executable by ENTER or SPACEBAR key, by @compulim in PR #3197
  • Fixed #3203. "New messages" button should be narrated by assistive technology, by @compulim in PR #3204
  • Fixed #3217. Make sure rel="noopener noreferrer is not sanitized, by @compulim in PR #3220
  • Fixed #3223. Tap an openUrl card action should open URL in a new tab with noopener noreferrer set, by @compulim in PR #3224

Changed

Samples

[4.9.0] - 2020-05-13

13 May 16:24
6b6caff
Compare
Choose a tag to compare

Subresource integrity

<script
  crossorigin="anonymous"
  integrity="sha384-gn41zgXj4uDFglvcUFGeHzl+pEV0vpsJ0p/ITM3AV1apUs7OGo/FO1gl8i1EJMr4"
  src="https://cdn.botframework.com/botframework-webchat/4.9.0/webchat.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-f6BvsOUIP9DrTw62SdcJwOm2oa+4Eu21Dzdlh2bfOA2axKA9dL812USg0fMy3CP4"
  src="https://cdn.botframework.com/botframework-webchat/4.9.0/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-N8YF6H5wP3LtjcC9zCauWxFJH8q6LkRXGyH11jkATU9iCbdPH4qoLNhVz25D2hjO"
  src="https://cdn.botframework.com/botframework-webchat/4.9.0/webchat-minimal.js"
></script>

Changelog

Added

  • Resolves #2897. Moved from JUnit to VSTest reporter with file attachments, by @compulim in PR #2990
  • Added aria-label attribute support for default Markdown engine, by @patniko in PR #3022
  • Resolves #2969. Support sovereign cloud for Cognitive Services Speech Services, by @compulim in PR #3040
  • Resolves #2481. Support selecting different audio input devices for Cognitive Services Speech Services, by @compulim in PR #3079
  • Resolves #2850. Added new useFocus hook and deprecating useFocusSendBox hook, by @compulim in PR #3123
    • Modify setFocus argument of useTextBoxSubmit to support main and sendBoxWithoutKeyboard

Fixed

  • Fixes #2989. Fix observeOnce to use ES Observable call pattern, by @compulim in PR #2993
  • Fixes #3024. Using bridge package markdown-it-attrs-es5 for consuming markdown-it-attrs for IE11, by @compulim in PR #3025
  • Fixes #2818. Fix user ID is not set when passing to embed as query parameter, by @p-nagpal in PR #3031
  • Fixes #3026. Fix link rel attribute in the renderMarkdown function, by @tdurnford in PR #3033
  • Fixes #2933. Fix text should not be ignored in messageBack action in hero card, by @geea-develop and @compulim in PR #3003
  • Fixes #2562. Fix timestamps should not stop updating, by @compulim in PR #3066
  • Fixes #2953. Direct Line Speech should not synthesize when the speak property is falsy, by @compulim in PR #3059
  • Fixes #2876. messageBack and postBack should send even if both text and value is falsy or undefined, by @compulim in PR #3120
  • Fixes #2668. Disable Web Audio on insecure connections, by @compulim in PR #3079
  • Fixes #2850. After click suggested action, should focus to send box without keyboard, by @compulim in PR #3123
  • Fixes #3133. Associate ARIA labels with buttons in hero card and Adaptive Cards, by @compulim in PR #3146.
    • Remove browser-based detection from <ScreenReaderText> because it is no longer needed.
    • After stripping Markdown syntax for accessibility labels, cache the result to improve rendering performance.
    • Skip stripping Markdown for non-Markdown text content.
  • Fixes #3155. Patch incoming activities with null fields, by @compulim in PR #3154

Changed

Read more

[4.8.1] - 2020-04-22

22 Apr 17:56
Compare
Choose a tag to compare

Subresource integrity

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

<script 
  crossorigin="anonymous"
  integrity="sha384-8wbIBXOC04g3ze/UjsvmVyPV2JWVW6zErr0Vhn/aLSIZ24vFo1jiqkDns/53ye8h"
  src="https://cdn.botframework.com/botframework-webchat/4.8.1/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-wOaf1uqEf5k63cybZfnId3htE1b9OLv6FJgAORyLau4vP+EAh+jEYPU5Te5scmnw"
  src="https://cdn.botframework.com/botframework-webchat/4.8.1/webchat-minimal.js"
></script>

Changelog

Fixed

  • Fixes #3075. Fix usability issues around accessibility, by @compulim in PR #3076
    • Fix timestamp should not be narrated more than once.
    • Associate the activity text with its attachments, by adding a role="region" to the activity DOM element.
  • Fixes #3074. Keep props.locale when sending to the bot, by @compulim in PR #3095
  • Fixes #3096. Use <ScreenReaderText> instead of aria-label for message bubbles, by @compulim in PR #3097

Daily build (qfe)

07 Apr 02:01
Compare
Choose a tag to compare
Daily build (qfe) Pre-release
Pre-release

This build will be updated daily. Please do not use this build in production environment.

Build time Build ID Release ID Source version Branch Package version
2020-04-15 11:53:37Z 120273 2025 e640dc5 qfe 4.8.1
<script
  crossorigin="anonymous"
  integrity="sha384-ckY8pga99BTkPPRbRxLlErL5DeaTwspGDoieGGvI4X8X3w4I2OcLXlHeo6P375yw"
  src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily-qfe/webchat.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-8wbIBXOC04g3ze/UjsvmVyPV2JWVW6zErr0Vhn/aLSIZ24vFo1jiqkDns/53ye8h"
  src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily-qfe/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-wOaf1uqEf5k63cybZfnId3htE1b9OLv6FJgAORyLau4vP+EAh+jEYPU5Te5scmnw"
  src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily-qfe/webchat-minimal.js"
></script>

Note: the SHA384 hash may change daily.

Changes:

  • #3097: Use in favor of aria-label
  • #3095: Keep props.locale when sending to bot
  • #3076: Fix usability on accessibility
  • #2982: [HIGH] Bump to 4.8.1-0

This list of changes was auto generated.

[4.8.0] - 2020-03-05

05 Mar 22:49
f152bcb
Compare
Choose a tag to compare

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

Read more

Daily (refs/heads/main)

01 Feb 03:09
Compare
Choose a tag to compare
Pre-release

This release will be updated daily. Please do not use this build in production environment.

Build time Run ID Source version Git ref Package version
2024-02-01 03:09:12Z 7735651583 3d09177 refs/heads/main 4.16.1-main.3d09177
<script
  crossorigin="anonymous"
  integrity="sha384-8qMOr8nEAuqF//IyHqUJE1BLjL4Tv+ZAYqmVo6T5I0KK3Ie34Pcvfcy+bLtJnuvz"
  src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily/webchat.js"
></script>

<script
  crossorigin="anonymous"
  integrity="sha384-zQ+nTa+cjRB0QpSVdo1NFPJgmernii9UsViuYRwjq0QJkkZ+lrI46Ns0FASbSheu"
  src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily/webchat-es5.js"
></script>

<script
  crossorigin="anonymous"
  integrity="sha384-9pAUHP3p59YT8ixgUF9p5QFiW7e/i/mpd3vGy3VRp5mXabpNZZYcfz/TFDzBKfN9"
  src="https://github.com/microsoft/BotFramework-WebChat/releases/download/daily/webchat-minimal.js"
></script>

Note: the SHA384 hash may change daily.

[4.7.1] - 2019-12-13

13 Dec 19:50
cb37aa2
Compare
Choose a tag to compare

Subresource integrity

<script
  crossorigin="anonymous"
  integrity="sha384-YN0GKqdflm3urHta3C1jU7/PX8cC3qAHhfHN7aY+WA28gkqASsLaL6VRw4gbt18b"
  src="https://cdn.botframework.com/botframework-webchat/4.7.1/webchat.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-SLg/iz1Y+04Iie1JbZIc6ahBCa24SGjD5QHACU5r7iJgjmO7WBRpsy3j4rpEyFoT"
  src="https://cdn.botframework.com/botframework-webchat/4.7.1/webchat-es5.js"
></script>

<script 
  crossorigin="anonymous"
  integrity="sha384-3FwpkPszpOUtOc1X/IvCEW8bplnmk+PO9D9IJpVNu6tDAwA/q4ajUoJmf2rhCNS5"
  src="https://cdn.botframework.com/botframework-webchat/4.7.1/webchat-minimal.js"
></script>

Changelog

Changed

  • Moved core-js from dev dependencies to dependencies in botframework-directlinespeech-sdk package, by @tonyanziano, in PR #2727