[4.15.0] - 2022-03-03
Subresource Integrity
<script
crossorigin="anonymous"
integrity="sha384-w3rSEnqXidJWdUi5rzyfT+ge4heH7DfPfZnzwfFPqRx5s/TxTRhFbizmbX6kQe2v"
src="https://cdn.botframework.com/botframework-webchat/4.15.0/webchat.js"
></script>
<script
crossorigin="anonymous"
integrity="sha384-TtowdQBmshxMHrPmS4fj8c7Y1++TrzO2Z7TvQ1lF9EskDY6cchxo8RO9/JT21JTL"
src="https://cdn.botframework.com/botframework-webchat/4.15.0/webchat-es5.js"
></script>
<script
crossorigin="anonymous"
integrity="sha384-oQJ4itwTnOHHjD3Gkl9pUfcNMZDSG9LixGJ5H5ib50uBihBhAtWkkFzvOvUK9YPj"
src="https://cdn.botframework.com/botframework-webchat/4.15.0/webchat-minimal.js"
></script>
Changelog
Breaking changes
- New
Map
object polyfill is required for IE11 when using NPM version of Web Chat:Map
object polyfill is not required when using ES5 bundle of Web Chat from our CDN (webchat-es5.js
)- If you are seeing new errors while loading NPM version of Web Chat under IE11, please add a polyfill
- We recommend
core-js
package, it can be loaded byimport 'core-js/features/map'
- Our current list of required polyfills can be found in
packages/bundle/src/polyfill.ts
- Style options are introduced to send button for improved accessibility:
suggestedActionBackground
andsuggestedActionXXXBackground
are being deprecated in favor ofsuggestedActionBackgroundColor
andsuggestedActionBackgroundColorOnXXX
respectively, for consistencies when porting to other platformssuggestedActionDisabledXXX
is being renamed tosuggestedActionXXXOnDisabled
, for consistencies with other style optionssuggestedActionXXXOnActive
,suggestedActionXXXOnFocus
,suggestedActionXXXOnHover
are introduced for styling per user gesturessuggestedActionKeyboardFocusIndicatorXXX
are introduced for styling the "focus ring" when focused using a keyboard
Added
- Adds
eslint-plugin-security
, consolidate.eslintrc.yml
at project root, and treat warnings as errors, by @compulim, in PR #4079 - Adds allowed protocol list to file attachment and OAuth card, by @compulim, in PR #4143
Fixed
- Fixes #4018. When using TAB or SHIFT + TAB key to focus on the transcript, it should select the last activity, by @compulim, in PR #4035
- Fixes #4020. With or without scan mode turned on, screen reader users should be able to press ENTER to focus on interactive activity, by @compulim, in PR #4041
- Fixes #4021. For screen reader usability, suggested actions container should not render "Is empty" alt text initially, by @compulim, in PR #4041
- Fixes #4029. Added new keyboard focus indicator for suggested actions, by @compulim, in PR #4035
- New style options are introduced:
suggestedActionXXXOnActive
,suggestedActionXXXOnFocus
,suggestedActionXXXOnHover
,suggestedActionKeyboardFocusIndicatorXXX
- Style options are renamed:
suggestedActionDisabledXXX
becomesuggestedActionXXXOnDisabled
- New style options are introduced:
- Fixes #4028. Added new keyboard focus indicator for send box buttons, by @compulim, in PR #4035
- New style options are introduced:
sendBoxButtonXXXOnActive
,sendBoxButtonXXXOnFocus
,sendBoxButtonXXXOnHover
,sendBoxButtonKeyboardFocusIndicatorXXX
- New style options are introduced:
- Fixes #4015. Added
role="heading"
to titles of rich card, by @compulim, in PR #4074 - Fixes #4081. Updated typing for
StyleOptions.suggestedActionsStackedOverflow
, by @compulim, in PR #4083 - Fixes #4075. Added
box-sizing: border-box
to all descendants under Adaptive Cards, by @compulim, in PR #4084 - Fixes #4104 and #4105. Fixed invalid entry in
core/package-lock.json
, removedplayground/host
, and added script to rebase URLs inpackage-lock.json
, by @compulim, in PR #4106 - Fixes #3933, #3934, #3994 and #4019, for various accessibility improvements, by @compulim, in PR #4108
- Added a new keyboard help screen
- Reduce repetitions when reading message content and briefier readings
- Separated hints for links and interactive widgets
- Focus trap when focus is on interactive attachments or Adaptive Cards
- Using
role="feed"
/role="article"
for chat history and its messages - Always assign a message to
aria-activedescendant
for chat history - Updated verbiage from "transcript" to "chat history"
- Fixed overlapping hit zone causing clicking on bottom edge of message bubble may focus on the next activity instead
- Fixed typings of
useFocus
anduseLocalizer
- Fixes #3165 and #4094. Allowlist
aria-label
for links in Markdown and skip unrecognized attributes or invalid curly brackets, by @compulim, in PR #4095 - Fixes #4190. Recent Markdown curly bracket fix should not break IE11 due to unsupported "u" flag in
RegExp
, by @compulim, in PR #4191
Changed
- Bumped all dependencies to the latest versions, by @compulim in PR #4074 and PR #4123
- Production dependencies
- Development dependencies
@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]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Samples
- Fixes #4031. Updated
05.custom-components/b.send-typing-indicator
to reply withmessage
activity, instead oftyping
activity, in PR #4063, by @compulim