Skip to content

Releases: microsoft/AdaptiveCards

AdaptiveCards 2020.10.1

05 Nov 00:09
fbcdbcb
Compare
Choose a tag to compare

Updated Packages

Renderer

This is a patch update to our recent 20.10 set of renderer artifacts with updates to our mobile renderers with a few accessibility and misc fixes around our Input Validation feature.

Android

  1. [Android][Accessibility] [Successful submit action puts the focus on next card/element in chat] #5018
  2. [Android][Accessibility] [On multiple input validation failures the card scrolls out of viewport] #5019
  3. [Android][Accessibility] [On input validation failure focus does not go to the first invalid input field when the first invalid field is date/time/compact choiceset] #5020
  4. [Android][UX] [Input validation error UX does not working with inline actions] #5021
  5. [Android][Accessibility] Expanded ChoiceSet elements are not reading labels #5039
  6. [Android][Image Rendering] Non-rendered images create app crashes #5048

iOS

  1. [iOS][ChoiceSet] [choice set not rendered properly for long text] #5023
  2. [iOS][Accessibility] [View is getting scrolled on submit validation for input.text and input.number when voice over is on] #5024
  3. [iOS][Custom Action] [ Can not send additional properties to action delegates in case of custom action]
    #5025

Smoke Test Notes

AdaptiveCards 2020.10

31 Oct 05:43
Compare
Choose a tag to compare

Latest Packages

Smoke Test Notes

What's new?

Website

  • [Schema] Update default schema link to use the 1.3.0 schema #4968
  • [Samples][Accessibility] TextBlock wrap in Scenario cards #4991

Renderers

JavaScript

  • [JS] Update renderer README #4905
  • [JS] Fix complex expression parsing #4971
  • [JS][Renderer] Use TextRun.selectAction.title as aria-label #4857

WPF

  • [.NET] Return warning when validated inputs don't have an error message #4885
  • [.NET] Don't set number input text box value to NaN #4911

Android

  • [Android] Auto sized images scale to dp #4956
  • [Android] Update submit validation API #4876
  • [Android] Update input error visual cue rendering to support custom background drawables #4942
  • [Android] Time formatting patch #4878
  • [Android][UX] [Input ChoiceSet (compact) height and width squeezed] #4891
  • [Android][Accessibility] Image focus, altText #4930
  • [Android] Image sizing regression in several configurations #4964
  • [Android][Accessibility] Add role for Containers with Actions
  • [Android][ChoiceSet Input] [Choiceset input (required) rendering fails inside a container] #4994

Breaking changes

If you are a host application developer, leveraging the following APIs for input validation scenarios, please note that breaking changes regarding the custom rendering of input elements and actions have been introduced in this version. All of the APIs that were modified were introduced in the 2.0.0 release:

Old API API in 2.3.0 Notes
void registerInputHandler (IInputHandler, InternalId) void registerInputHandler (IInputHandler, RenderArgs) Scenario: Custom rendering input elements.
Change: The use of InternalId was removed to avoid using the underlying C++ code.
void setParentToCard (InternalId, InternalId) void setParentToCard (long, long) Scenario: Custom rendering a hidden card.
Change: The use of InternalId was removed to avoid using the underlying C++ code.
None void registerSubmitableAction (View renderedAction, RenderArgs) Scenario: Custom rendering an action that must trigger validation and input retrieval.
Change: By adding this method, developers can now register custom actions to trigger input validation, this allows developers to avoid input validation in actions that don't require that process.
boolean areInputsValid (SubmitAction) boolean areInputsValid () Scenario: Input retrieval
Change: As actions now register their submit-like behavior, the reference to the action is not required to retrieve the last input validation result. This also avoids making additional validations to retrieve the last validation result.
void setSelectAction (RenderedAdaptiveCard, BaseActionElement, View, ICardActionHandler) void setSelectAction (RenderedAdaptiveCard, BaseActionElement, View, ICardActionHandler, RenderArgs) Scenario: Custom rendering containers with select actions.
Change: A RenderArgs argument is added to be able to register submit actions for containers with select actions.

iOS

  • [iOS][ColumnSet Parity Issue] [Parity issue between iOS and desktop for image width in columnSet] #4918
  • [iOS][Resource Resolver] Add Placeholder Image Support For Resource Resolver #4897
  • [iOS][Image - repeatHorizontally] [Parity issue: iOS requires minimum height to render background image] #4832
  • [iOS][Input Evolution] [input validation error messages enabled on the card sent by bot] #4907
  • [iOS][input validation error] [UX issue : Input view styling on validation error] #4852
  • [iOS][Issue with isVisibility] [isVisibility for an item in Container gets imposed on other items] #4920
  • [iOS] Added Event Handler Registration #4943
  • [iOS][Accessibility ] [Focus is not going to the first accessibility element] #4890
  • [iOS] Updated accessiblity for Inputs #4951
  • [iOS] Updated layout notification to include properties #4944
  • [iOS] Updated custom registration for ActionSet #4965
  • [iOS][Visibility false field causes spacing issues] [Element with visibility false and spacing defined causes spacing issues] #4900
  • [iOS][Icon with data in buttons] [Parity: b64 encoded image data for button icons does not get rendered] #4902
  • [iOS][Accessibility] [Input.Time/Date with a validation failure does not announce label and error after the submit] #4980
  • [iOS][Accessibility] [Compact Style Input.ChoiceSet Doesn't Include Placeholder text during VoiceOver] #4982

UWP

  • [UWP] Update multiline Input.Text controls to wrap #4916

Miscellaneous

Known Issues

  • [Android][Inconsistency] [Column Width Stretch] #4960
  • [Android][Column Rendering] Long text makes column with image not show up at all #4988
  • [Android][Rendering] Images in column take too much height space #4989

AdaptiveCards 1.2.13

30 Oct 23:15
f87bab0
Compare
Choose a tag to compare

Latest Packages

What's new?

iOS

  • [iOS][Image Rendering][ResourceResolvers] Card elongation #4665
  • [iOS][Resource Resolver] Add Placeholder Image Support For Resource Resolver #4682
  • [iOS][Rendering] Crash when "bleed" property used on outermost container #4745

AdaptiveCards 2020.09

02 Oct 03:06
Compare
Choose a tag to compare

Latest Packages

Smoke Test Notes

What's new?

Designer

  • Designer data binding error when sample data contains empty array #4734
  • Adaptive Card Designer - toolbar buttons missing html type attribute #4721
  • [Designer] Trap keyboard for modal dialogs #4850
  • [Designer] Add help button and dialog #4849

Website

  • [Site] regex property being reported as v1.0 #4728
  • [Sample Cards] Text in sample cards truncated #4712
  • Website: added label accessibility note to samples and schema explorer #4807
  • [Website] Update hostconfig container colors in script.js file #4806
  • [Sample][Accessibility] Update templated sample #4804
  • Website: added label accessibility note to samples and schema explorer #4807

Renderers

JavaScript

  • [Javascript][Actions] [Execute ShowCardActions programmatically] #4818
  • [Javascript] TypeError: Cannot read property 'isValid' of undefined #4767
  • [nodejs][Keyboard shortcut] Ctrl+Enter not working when inlineAction associated with a text.input #4575
  • [JS][Renderer] Use TextRun.selectAction.title as aria-label #4857
  • [JavaScript][Accessibility] Inline action img explicit role=presentation #4803
  • [JS] Fix arrow keys and actionset aria #4859

WPF

  • [WPF] Change TextBlock to render only when text is not empty #4799

Android

  • [Android][TextBlock] Font Weights are not consumed. #4015
  • [Android][Inconsistency between desktop and android] [Cards containing facts with empty title do not render] #3949
  • [Android] Placeholder values of input components are not applied #4484
  • [Android][inconsistency android vs web] [Columns in a column set get pushed out of the card when width set to auto] #3855

iOS

  • [iOS][Rendering] Crash when "bleed" property used on outermost container #4745
  • [iOS][Accessibility] ACRTextView placeholder text color too light #4672
  • [iOS][Input validation] [Card UX issue : when error message is displayed on the card on button click] #4835
  • [iOS][RichTextBlock Rendering] [Parity issue in RichTextBlock TextRun with action] #4531

Miscellaneous

  • Input.ChoiceSet docs and placeholder updates #4810
  • [MSTeams][Android/Ios] [Adaptive card input.choice set placeholder not getting displayed] #3885
  • Text Blocks default to false for wrap #4483
  • [iOS-Android-UWP][Parity Issue - Fact Set] [Card with empty factSet does not render on iOS but renders on other platforms] #4136
  • [Desktop vs Mobile][Platform Inconsistency] TextBlock with no text property #4478

AdaptiveCards 2020.08

01 Sep 23:57
1286005
Compare
Choose a tag to compare

Latest Packages

Smoke Test Notes

What's new?

Designer && Website

  • [Designer] Copy Card JSON changes to include the data bound card #4579
  • [Designer] Select Action is wrongly supported in version 1.0 #4595
  • [Designer] Set focus on first card in card catalog when it loads #4562
  • [Designer] Added landmarks and labels to the designer #4634
  • [JavaScript][Accessibility] Return focus after copy #4591
  • [Site][Accessibility] Reflow during resize #4660
  • [Site] Generate tree markup for Schema Explorer #4608

Renderers

JavaScript

  • [JavaScript] Automatic tooltip for selectAction title #4699
  • [JS] Add keyboard invocation for media elements #4577
  • [JavaScript] Spurious warning regarding height property #4563
  • [JavaScript] toJSON() in 2.1.0 sets incorrect version (1.3) when another (1.2) is specified #4620

.NET

  • .NET WPF doesn't render a simple card #2569

Android

  • Updated tests
  • [Android] Custom typeface support #3328
  • [Android][Rendering] Conflict between image size and column weight #4439
  • [Android][Dev Experience] There is no BaseActionParser class for parsing properties in BaseActionElement #4509

Android && iOS Renderers

  • [Mobile][Usability] [Chevron no reset issue in Action.ShowCards ] #4548

UWP

  • [UWP] Null pointer check on outparam in column fallback case #4627
  • Misc. Perf improvements
  • Async image crash fix

Shared model

  • [Shared/UWP] InputNecessityIndicators enum and property on AdaptiveCard #4622

Templating

.NET

  • [Templating] Adaptive Cards pre-built functions are not working within $data construct #4574

JavaScript

  • [JS][Templating] "$when" should not be emitted in expanded template #4692

Miscellaneous

Known Issues

  • [Sample Cards] Text in sample cards truncated #4712

AdaptiveCards 1.2.12

01 Sep 23:57
8e5bda8
Compare
Choose a tag to compare

This is a patch release with only bug fixes and no new features included. Please see details below.

Latest Packages

  • 🎉 Android 1.2.12
    • Fix for "[Mobile][Usability] [Chevron no reset issue in Action.ShowCards ]" #4548
    • [Android] Streamline Android publishing #4541
  • 🎉 iOS 1.2.12
    • Fix for "[Mobile][Usability] [Chevron no reset issue in Action.ShowCards ]" #4548

Smoke Test Notes

AdaptiveCards 2020.07

06 Aug 01:23
Compare
Choose a tag to compare

Renderer

🎉Announcing AdaptiveCards schema version 1.3 with support for InputValidation and Labels.:tada:

New Features:

  1. Input Validation and Labels
  2. Underline Support in TextRuns

Breaking Changes:

  1. This release introduces a change in the behavior of the interaction between Submit actions and ShowCard actions. Previously, all inputs in all parts of the card would be gathered when a submit action is pressed. Going forward, inputs will gathered only if they are on the same card as the Action.Submit, or on any parent cards of the card containing the Action.Submit in the case of a card under an Action.ShowCard. Inputs will not be submitted if they are on a card that is a child or sibling show card of the card containing the Action.Submit. This includes cards from Action.ShowCards in ActionSets in the body of that card. For more information see the input validation documentation here.
  2. [.NET WPF] Input.ChoiceSet incorrectly defaults to "expanded"
  3. [UWP][Fallback Requirements] Change requirements handling from a function to a property

Smoke Test Notes

  1. Automated CI/CD on release/20.07 branch
  2. Regression tests against:

Known issues

  1. [Android][Regression] [The Sizes of Images in ImageSet in Food Order May Be Different] #4519
  2. [Android] Input.Number will fail validation if an empty value is supplied #4544

Other Notable Bug Fixes

  1. [JavaScript][Deregistering a property from the parser/render]
  2. [UWP] Unnecessary string copying
  3. [UWP] non-latin characters breaks markdown on UWP renderer

Templating

This is a non-breaking release for our existing .NET + JS templating SDK's.

Notable Bug Fixes:

  1. [.NET][Templating] [Unable to render only the template]
  2. [.NET][AdaptiveCards.AdaptiveSerializationException] [AdaptiveCard.FromJson failed when isVisible attribute using a bool variable from an object]
  3. [JS]data binding to boolean expression fails
  4. [JS]data binding to $index fails

Website (adaptivecards.io)

  • Refreshed for 1.3 schema changes
  • Sample updates
  • Miscellaneous Accessibility fixes

Designer

This is a non-breaking release with some ongoing improvements.

Notable Bug Fixes:

  1. [JavaScript][Validation] Customize parse warning messages for unsupported element/action types
  2. [Javascript][Validation][Warning should be returned for unsupported action types]

AdaptiveCards v1.2.11

05 Aug 01:19
3caec26
Compare
Choose a tag to compare

AdaptiveCards 2020.06

07 Jul 23:41
Compare
Choose a tag to compare

Templating

We are now announcing the GeneralAvailability(GA) release, v1.0.0, of our Templating SDK's for both JS + .NET

  1. Templating SDK support for JS + .NET

Website (adaptivecards.io)

There's a few accessibility bug fixes that we've made for the website in general and the designer in particular. Listing key ones below:

  1. Update default hostconfigs for color contrast
  2. [JS] Express action sets as collections
  3. [JS] Fix aria accessibility for media element
  4. [JS] Add aria-expanded state to showcard action button
  5. [JS] Prevent factsets from presenting as tables for accessibility

Designer

  1. Designer fixes
  2. [Designer] Change icon and error background colors for contrast
  3. [Designer] Add aria attributes to dropdown controls

Renderer

JS 2.0

Miscellaneous renderer fixes:

AdaptiveCards v1.2.10

08 Jul 04:25
d0cde0f
Compare
Choose a tag to compare

This is a patch release with only bug fixes and no new features included. Please see details below.

New Bug Fixes!

Android Renderer Fixes:

  1. [Android][Input.Choice] Spacing within Input.Choice sets not rendered.
  2. [Android][Render Problem] [Buttons Disappear after clicking an Action.OpenUrl]
  3. [Adaptive Cards / Platform Discrepancy] Excess spacing in empty text blocks
  4. [Mobile][Usability] [No Chevron on Action.ShowCards]
  5. [Mobile][Markdown support] [Markdown with the * does not work on mobile renderers]

iOS Renderer Fixes:

  1. [iOS][InputField - Keyboard] [Japanese keyboard is not working properly with ACRTextField input field]
  2. [iOS][ColumnSet] [Auto and stretch columns have the same behaviour]
  3. [Ios] [Adaptive Cards Input Toggle(CheckBox) display issue in Iphone]
  4. [Adaptive Cards / Platform Discrepancy] Excess spacing in empty text blocks
  5. [iOS][Font color - Input Fields] [Font color in ACRTextView gets overwritten]
  6. [Mobile][Usability] [No Chevron on Action.ShowCards]
  7. [Mobile][Markdown support] [Markdown with the * does not work on mobile renderers]
  8. [iOS][Rendering] Crash occurs when ColumnSet has height: stretch
  9. [IOS][Layout] [When put submit button on the right column of the card, it could be cut off]

UWP Renderer Fixes:

  1. [UWP][Image] [Image doesn't include spacing]
  2. [UWP] Improve performance of base64 decoding
  3. [UWP] JSON parsing performance
  4. [Adaptive Cards / Platform Discrepancy] Excess spacing in empty text blocks
  5. [Mobile][Markdown support] [Markdown with the * does not work on mobile renderers]