AdaptiveCards v1.2.0
shalinijoshi19
released this
01 Jun 01:07
·
150 commits
to release/1.2
since this release
New features:
- Element-level fallback support
- Full bleed background images/containers
- Action.ToggleVisibility
- More Container styles to match Textblock styles
- Better inline text formatting
- TextBlock inline Actions
- Base64 encode image into URI (Data URIs)
- Input.Text with associated action (Quick-Reply)
- TextBlock font styles
- Action sentiment (primary / destructive)
- Place actions anywhere in the card (ActionSet)
- Stretch and Repeat for Background Images
- MinHeight Property on Containers
- Wrap property on ChoiceSet/Toggle
Breaking Changes:
- UWP SDK: Background images in UWP are now of type 'object' and not 'string'
- WPF Renderer: WPF Input.ChoiceSet now correctly defaults to "compact" as documented
- TS Renderer:
a. Removedspeak
property from every element. Now only available on root AdaptiveCard element.
b. RemovedrenderSpeech()
method throughout
c. RemovedCardElement.validate()
andAction.validate()
methods. Custom elements and actions should now override theinternalValidateProperties()
method. See README.md for more details. - Introducing FontTypes: The fontFamily, FontSizes and FontWeights are now not recommended. Instead use the 'fontTypes' property in hostConfig and populate the default/monospace types.
- Android Renderer:
a. TheAdaptiveCardRenderer.render
method was changed to replace theElementParserRegistration
parameter for aParseContext
parameter which includes theElementParserRegistration
and theActionParserRegistration
objects
b. Therender
method inBaseCardElementRenderer
was changed to include theRenderedAdaptiveCard
parameter andContainerStyle
was changed for aRenderArgs
where theContainerStyle
is now contained
Notable Bug Fixes:
.NET
- Added inline action support for ShowCard
- Enforced duplicate input ID to fail as exception
- Fixed AdaptiveCard ctor to set the correct version
- Fixed issue where multiple show cards in WPF don't interact together correctly
- Fix Null value handling for Min, Max, and Value in AdaptiveNumberInput
- Fixed TextBlock text to use appropriate ContainerStyle foreground color
- Removed references to UWP in dotnet project
- Reverted AdaptiveContainerStyle class back to nullable to match what has shipped in 1.0
Android
- Added nested [] support inside markdown link display text
- Added back setDataJson method
- Allowed AdaptiveCards to be rendererd even with empty ColumnSet
- Changed date and time renderer to respect styles from the client
- Enforced duplicate input ID to fail as exception
- Fixed hardcoded input text color
- Fixed initial value not being displayed for Date Input
- Fixed issue where Container item cannot get rendered successfully
iOS
- Added access to default elemental parsers to iOS custom parser
- Added ACRTextField.h to bridging header
- Added nested [] support inside markdown link display text
- Allowed AdaptiveCards to be rendererd even with empty ColumnSet
- Enforced duplicate input ID to fail as exception
- Fixed ACR separator used between two columns to maintain its intrinsicContentSize
- Fixed initial value not being displayed for Date Input
- Resolved the issue where main thread checker is raised when rendering a card on a background thread
JS
- Changed SelectAction on Actions to take precedence over body SelectAction
- Duplicate IDs now generate validation errors
- Fixed horizontalAlignment parsing bug
- Fixed Webpack's source-map-loader can't find src*.ts files error
- Removed dependency on css-loader/webpack from build pipeline of the host project
UWP
- Added ARM64 support for UWP
- Added default parsers to AdaptiveActionParserRegistration
- Added nested [] support inside markdown link display text
- Allowed AdaptiveCards to be rendererd even with empty ColumnSet
- Enforced duplicate input ID to fail as exception
- Fixed initial value not being displayed for Date Input
- Fixed images ignoring constraints of parent container