Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Enable extensibility of AdaptiveCard when using React wrapper #9014

Open
vskh opened this issue Sep 30, 2024 · 0 comments
Open
Labels

Comments

@vskh
Copy link
Member

vskh commented Sep 30, 2024

Problem Statement

AdaptiveCard JS SDK offers a way to extend the list of supported elements in the card as described here. It requires configuration of element registry and creation of serialization context that can then be used by card during parsing.

React wrapper does not provide any means to access this extensibility currently.

Proposed solution

It is straight forward to let users of React wrapper get access to this extensibility by exposing additional property for SerializationContext and then passing it down to AdaptiveCard's parse method.

Alternatives or Workarounds

Currently, the only way around I see, when in React context, is to create custom wrapper around AC JS SDK which, however, most likely would repeat most of the code of existing wrapper from adaptivecards-react.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant