[4.15.3] - 2022-08-10
Subresource Integrity
<script
crossorigin="anonymous"
integrity="sha384-Va7pNFHjKGxgI1g9J4tvLCSGEhtfpZzf76PDRDDKkaI+ZZXMCz7FplIZdjUrjkxg"
src="https://cdn.botframework.com/botframework-webchat/4.15.3/webchat.js"
></script>
<script
crossorigin="anonymous"
integrity="sha384-G/4GhuAj4f+IvvVgyTT1u6m5DjjdPI7hcrfgXmnWKC6uWtZkrI+jDkVk2MmJoclR"
src="https://cdn.botframework.com/botframework-webchat/4.15.3/webchat-es5.js"
></script>
<script
crossorigin="anonymous"
integrity="sha384-1CAMb60XukTImMnaUTHJvRYbYckPlkzXGVibWExFb5e8WbLsCrfkbQM+K1smVB5a"
src="https://cdn.botframework.com/botframework-webchat/4.15.3/webchat-minimal.js"
></script>
Changelog
Breaking changes
- Suggested actions is now a
role="toolbar"
and adopted roving tab index- TAB key will now land on the container, instead of individual button
- While the focus is on the container, LEFT/RIGHT arrow keys are used to select different buttons (UP/DOWN for stacked layout)
- Visual focus indicator is now two tiered. The default styling is same as the one we use in chat history
- New style options added
suggestedActionsVisualKeyboardIndicatorColor
,suggestedActionsVisualKeyboardIndicatorStyle
,suggestedActionsVisualKeyboardIndicatorWidth
- New style options added
- Suggested actions container will be unmounted when there are no suggested action button to display
- Suggested actions container is not longer a live region. The suggested action buttons will now be narrated by the chat history live region
- Published NPM packages will now include
/dist
,/lib
, and/src
folders- The
/dist
folder was previously missing from our NPM packages
- The
- The
activity.channelData.state
property is being deprecated in favor of the updatedactivity.channelData['webchat:send-status']
property. Main differences include:- Previously, we would set the
state
property to"send failed"
when the chat adapter failed to send the activity, or after passing a timeout as defined instyleOptions.sendTimeout
- The new
'webchat:send-status'
property will be set to"send failed"
when the chat adapter fails to send the activity or after passing a hardcoded timeout of 5 minutes - See PR #4362 for details
- Previously, we would set the
Changed
- Resolves #4301. Updated
Dockerfile
to support secure container supply chain, by @compulim in PR #4303 - Resolves #4317. Updated
package.json
to allowlist/dist
,/lib
,/src
, by @compulim in PR #4318 - Resolves #4322. Improved error messages for sending activities, by @compulim in PR #4362
- Resolves #4211. Added new
useSendStatusByActivityKey
hook to check the UI send status of an outgoing activity, by @compulim in PR #4362- The send status returned by this hook is designed to display different UIs that reflect the "sending", "send failed" or "sent" status of the activity
- When modifying
styleOptions.sendTimeout
prop, the send status returned by this hook may transition from"send failed"
to"sending"
, and vice versa - This is different from the send status provided by the chat adapter, namely
activity.channelData['webchat:send-status']
Fixed
- Fixes #4293 and #4296. Fixed accessibility issues for suggested actions, by @compulim, in PR #4314
- Centralized live region of suggested actions into chat history live region for better live region control
- Suggested actions container is now a
role="toolbar"
and uses roving tab index for multiple suggested action
- Fixes #4319. Fixed navigation keys not working in suggested actions under IE Mode, by @compulim, in PR #4320
- Fixes #4315. Cleaned up localization strings for suggested actions, by @compulim, in PR #4323
- Fixes #4294. Screen reader should not read message twice when navigating in the chat history, by @compulim, in PR #4323
- Fixes #4295. Screen reader should not read suggested actions twice when message arrive in live region, by @compulim, in PR #4323
- Fixes #4325.
aria-keyshortcuts
should use modifier keys according toKeyboardEvent
key values spec, by @compulim, in PR #4323 - Fixes #4327. In Adaptive Cards,
TextBlock
withstyle="heading"
should havearia-level
set, by @compulim, in PR #4329 - Fixes #3949. For accessibility reasons, buttons in Adaptive Cards should be
role="button"
instead ofrole="menubar"
/role="menuitem"
, by @compulim, in PR #4263 - Fixes #4211. Screen reader should read when an activity was failed to send, by @compulim, in PR #4362, also fixed:
- The "send failed" status on the activity should show up as soon as the chat adapter failed to send the activity
- Fixes #4312.
groupActivityMiddleware
returning invalid value should not throw exceptions, by @compulim, in PR #4378. - Fixes #4386. Clicking on Adaptive Cards should not throw exception under IE11, by @compulim, in PR #4387, also fixed:
- Prop type warning should not be shown for
<ActivityRow>
- Prop type warning should not be shown for
Changes
Samples
- Added
01.getting-started/l.sharepoint-web-part
for hosting Web Chat as a SharePoint web part, in PR #4385, by @compulim