[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
Mapobject polyfill is required for IE11 when using NPM version of Web Chat:Mapobject 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-jspackage, 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:
suggestedActionBackgroundandsuggestedActionXXXBackgroundare being deprecated in favor ofsuggestedActionBackgroundColorandsuggestedActionBackgroundColorOnXXXrespectively, for consistencies when porting to other platformssuggestedActionDisabledXXXis being renamed tosuggestedActionXXXOnDisabled, for consistencies with other style optionssuggestedActionXXXOnActive,suggestedActionXXXOnFocus,suggestedActionXXXOnHoverare introduced for styling per user gesturessuggestedActionKeyboardFocusIndicatorXXXare introduced for styling the "focus ring" when focused using a keyboard
Added
- Adds
eslint-plugin-security, consolidate.eslintrc.ymlat 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:
suggestedActionDisabledXXXbecomesuggestedActionXXXOnDisabled
- 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-boxto 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-activedescendantfor 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
useFocusanduseLocalizer
- Fixes #3165 and #4094. Allowlist
aria-labelfor 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/cli@7.15.7@babel/core@7.15.8@babel/plugin-proposal-object-rest-spread@7.15.6@babel/plugin-transform-runtime@7.15.8@babel/preset-env@7.15.8@babel/preset-typescript@7.15.0@types/node@16.10.9@types/react@17.0.29@typescript-eslint/eslint-plugin@4.33.0@typescript-eslint/parser@4.33.0babel-jest@27.2.5botbuilder@4.15.0concurrently@6.3.0core-js@3.18.3esbuild@0.12.29eslint-plugin-prettier@3.4.1eslint-plugin-react@7.26.1eslint@7.32.0istanbul-lib-coverage@3.0.2jest-environment-node@27.2.5jest-junit@13.0.0jest@27.2.5node-dev@7.1.0node-fetch@2.6.7prettier@2.4.1react-scripts@5.0.0restify@8.6.0selenium-webdriver@4.0.0serve@13.0.2strip-ansi@6.0.1terser-webpack-plugin@5.2.4webpack-cli@4.9.0webpack@5.58.2
Samples
- Fixes #4031. Updated
05.custom-components/b.send-typing-indicatorto reply withmessageactivity, instead oftypingactivity, in PR #4063, by @compulim