|Feature||Flex UI 1.0||Flex UI 2.0||Enhancements in UI 2.0|
Built using Twilio Paste tokens, primitives, components, and compositions that are completely composable.
|State management||Redux||Redux Toolkit||New tools provide some guardrails for your state management, helping you set up boilerplate code more easily and with better defaults.|
|Theme and branding||
||New theming structure promotes consistency, customization, and web accessibility. See Theme and Branding for a list of configuration and property changes.|
||Built on upgraded components and dependencies. Click on respective Flex version tab to view the example package.json files.|
While UI 2.0 supports Legacy Messaging, you will need to use Flex Conversations and the new Interactions API. Issues with stale or 1-participant chats have been resolved by Flex Conversations. Read the Getting Started guide for a list of enhanced messaging features.
For a list of identified Chat SDK properties and methods that have changed, been removed or deprecated, see Conversations SDK in the Migration Guide.
|Web accessibility||N/A||WCAG 2.1 AA||Aligns with WCAG 2.1 AA standards for improved accessibility. See Flex UI web accessibility for more details.|
|Degraded mode||Introduced in
||Enabled for all minor versions||Flex UI will initialize with limited capabilities, even if some of the components like SDKs (TaskRouter, Conversations, Voice or Sync) are down. See Degraded mode for more details.|
|User and Activity Controls||
The User Controls component was split out into two components:
These controls have been updated for easier access and improved programmability. As this is a potentially breaking change, see the migration guide for more detailed steps on working with UI 2.0.
|Messaging UI||MessageInput||MessageInputV2||Moving to Flex Conversations offers more customization options for the Messaging UI. There is a new dynamic Component structure and default props. See Flex Messaging UI v2 changes for more details.|
|TaskRouter SDK wrappers||
New Actions and Flex Events
TaskRouter SDK upgraded to
|In Flex UI 2.0, new Flex actions and events have been added to the Flex UI Actions Framework saving the need to access the TaskRouter SDK directly. See New Actions and Flex Events for TaskRouter SDK.|
||You need to update your AppConfig structure to utilize the new config structure’s names and capabilities.|
|DownloadMedia Action||Requires a message object in the payload||Requires a media file as it uses Twilio Conversations||Uses Twilio Conversations under the hood.|
||See Renamed actions for the full list of renamed Insights Player actions.|
Other Flex Actions
||Some Flex actions have been removed, deprecated, and updated for flexibility.|
See Voice SDK for details on what's changed as well as a link to the SDK migration guide.
||Some Flex events have been removed.|
Native Dialpad introduced in
|Legacy Dialpad implementations are no longer supported. Please migrate to the native Flex Dialpad.|