Releases: microsoft/AdaptiveCards
AdaptiveCards v1.2.0
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
ios-v1.2.0
tag for ios release
Announcing release v1.2.0-beta1
coming soon
iOS release v1.1
iOS v1.1 release
ios-v1.1.0-beta1
* allowed variable number of lines in ChoiceSet (#1687)
* updated intrinsic content size calculation logic for InputView
* updated toggle switch style
* added ACRDateTextField
* fixes line clipping issue of toggle switch
* added explicit column width for iOS (#1672)
* updated priority for FactSet title (#1670)
* changed toggle view to UISwitch (#1631)
* added multiline input and enforced input limit for TextView and TextField (#1643)
* implemented placeholder text in multiline input
* added support for custom background image loader (#1642)
* fixed url loading sync issue for actions
* removed hard coded image icon placement
* added vertical scroll support (#1650)
* fixed extra spacing issue in UICollectionView (#1628)
* added explicit image size iOS (#1374)
* fixed separator issue (#1629)
* added support for handling cases where compact style lacking defaults (#1627)
* compact style choice set "make choice" row reflects user choice (#1596)
* updated showcard rendering position (#1600)
* allowed column with numeric width value to stretch (#1595)
* removed spacing for the first item
* iOS custom styling support via XIB (#1474)
* added vertical stretch support (#1584)
Anouncing release v1.0.3
iOS
- Added ability to scroll when there are more buttons than viewing area (#1581)
- Added additional headers to public lis in framework. (#1562)
- Only render text on iOS if markdown is present
- render syncronously (#1547)
- hugging priority for UILabel (#1527)
- fixed showcard not closing (#1544)
- image portrait mode fix when auto size used (#1520)
- corrected "auto" and "stretch" behavior of column width (#1510)
- show only one showcard at a time (#1503)
- fixed view not loading when background image load fails (#1504)
- changed ImageSetUICollectionView to use custom Image renderer when it's (#1497)
- fixes default value not captured when user select no input (#1488)
Anouncing release v1.0.2
d1bd29a Remove untrustable fix for fact set wrapping issue (#1505) (#1506)
133f37e Fix to time preparsing returning invalid value (#1494) (#1501)
87be3d2 factset fix (#1484) (#1502)
7c265b0 Fix build break caused by bad merge (taking an extra line from 1.1 feature)
999d0d7 Update ios build version
af1ead6 Update Android build version to 1.0.2
3b2d6f4 ios text clipping fix (#1477)
e422706 Fix double button rendering (#1475)
b94e4e5 updated sample app to use didLoadElements delegate (#1473)
e941b49 share shared model's c++ header (#1445)
42e0271 fixes adding newline char issue in the text (#1465)
3cc71a8 Fix Button spacing issues and add horizontal scroll view in case actions orientation is horizontal (#1452)
1383df4 [Android] Add horizontal scroll bar for horizontal layout actions (#1471)
7bf87c9 showcard to call delegate (#1458)
2bc5d0d fix for #1419 (#1444)
693bf07 Missing changes from code review feedback for FactSets (#1417)
42d9168 Improve FactSet behavior in .NET/UWP/Android/iOS renderers (#1388)
21722f4 Fixing crash where no item in RadioGroup is selected (#1406)
e0250f4 Updating the swig file to include vector and running swig (#1405)
feb4efd Do not call render at viewDidLoad (#1379)
2155554 [Android] Updating our gradle version names/codes, rename app, and add logo (#1372)
Announcing v1.0.1
- Adding support for precompiled headers for UWP projects (#1231)
- Move inline ShowCards out of the card padding (#1275)
- fixes issue 1239 (#1240)
- Include tests directory in test app and fix bug for unknown elements
- returns UIView by default (#1242)
- image size fix (#1264)
- fixes image set issues (#1251) (#1262)
- fixes crash when default hostconfig is used (#1308)
- [iOS] Fix Input not passing down to new cards shown (#1259)
- return adaptive card with intrinsic content height (#1313)
- updates placement of showcard view (#1315)
- Add HasKey check before LookingUp values in ResouceDictionaryMap (#1251)
- Allowing empty items in Column and adding check in Android renderer f…
- Fixing issue where url may not be encoded (#1249)
- Check the supporstInteractivity option in the host config before rend…
- Fix ignore of font family in UWP and Android (#1310)
- Respect maxImageHeight from image set host config. (#1302)
- Removal of HSTRING variables inside UWP renderer (#1248)
- .net 1.0 final changes (#1234)
- Fix .NET codesign build (#1235)
- Update README.md
- Move inline ShowCards out of the card padding (#1275)
- Updating the version of the Android maven package in readme.
- Fixing typo in iOS Readme
Announcing v1.0
We are excited to announce the release of Adaptive Cards 1.0! 🎉
Adaptive Cards 1.0
NOTE: These are BREAKING CHANGES from v1.0 - Beta
Many of these changes do have back-compat support in existing renderers, but as clients upgrade to v1.0 through the end of the year we will start to see less support for the v1.0-Beta.
Schema Changes
UWP
- None
.NET
lang
isn't supported yetIList
properties were changed toList
for XML serialization
Android
- Package rename from
com.microsoft.adaptivecards
toio.adaptivecards
AdaptiveCardRenderer.Render
now returns aRenderedAdaptiveCardObject
that contains the original card, the generated view, a collection of warnings, and a way to gather user input.AdaptiveCardRenderer.Render
arguments has changed. Takes in an instance of aICardActionHandler
instead ofIShowCardActionHandler
and anISubmitActionHandler
ActionRendererRegistration
has been removed. All actions are rendered in one way and once invoked, theonAction
method provided by the caller gets invoked.onAction
gets invoked with theBaseActionElement
and theRenderedAdaptiveCardObject
.AdaptiveCards.DeserializeFromString
returns aParseResult
object that contains theAdaptiveCard
object and a list ofParseWarnings
iOS
- Actions (events) are passed directly to clients for handling via
didFetchUserResponse(ACOAdatpiveCard *)card action:(ACOBaseActionElement *)action
delegate. Input can be examined by sending message inputs to the card.
SDKs
Platform | Install | Build | Docs |
---|---|---|---|
HTML Client | Source | Docs | |
.NET Model | Source | Docs | |
.NET WPF | Source | Docs | |
.NET HTML | Source | Docs | |
Windows UWP | Source | Docs | |
Android | Source | Docs | |
iOS | Source | Docs |
Special Thanks
A huge thanks for the following people (and many others) that got us here!
@dclaux
@riarenas
@RebeccaAnne
@nesalang
@eschavez
@danmarshall
@Anbare
@Clancey
@QingpingMeng
@bekao
@EricDahlvang
@tongyliu
@almedina-ms
@yeohan
@zhusongm
@mrbrennonwilliams
AdaptiveCards v1.0-beta.1
For release notes, check out the release announcement