Port: feat: Support for SharePoint (Viva) Adaptive Card Extension
Fixes #minor
Description
Porting changes from feat: Support for SharePoint (Viva) Adaptive Card Extension #6695
SharePoint Framework is adding a new adaptive card experience (ACE) where it is powered by a Bot. In order to be able to implement the bot we are updating the BotBuilder Framework to natively support these API's to make it easier for end users to add a bot powered ACE.
Specific Changes
We support 5 new BotInvoke activities:
cardExtension/getCardView
cardExtension/getQuickView
cardExtension/getPropertyPaneConfiguration
cardExtension/setPropertyPaneConfiguration
cardExtension/handleAction
The SharePointActivityHandler in botbuilder.core is the base class for developing a bot powered ACE. Users of this base class will need to implement the following 5 methods:
on_sharepoint_task_get_card_view
on_sharepoint_task_get_quick_view
on_sharepoint_task_get_property_pane_configuration
on_sharepoint_task_set_property_pane_configuration
on_sharepoint_task_handle_action
Testing
Below image shows the new unit tests are passing.