-
Notifications
You must be signed in to change notification settings - Fork 550
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
[Designer] Version Restriction #3260
Comments
Thanks for the feedback. This is something that is being worked on, hopefully we'll have it finished it shortly. In the mean time, can you try this code to at least restrict items from the toolbar? let designer = new ACDesigner.CardDesigner(hostContainers);
Adaptive.AdaptiveCard.elementTypeRegistry.unregisterType("RichTextBlock");
ACDesigner.CardDesignerSurface.cardElementPeerRegistry.unregisterPeer(Adaptive.RichTextBlock);
Adaptive.AdaptiveCard.elementTypeRegistry.unregisterType("ActionSet");
ACDesigner.CardDesignerSurface.cardElementPeerRegistry.unregisterPeer(Adaptive.ActionSet);
designer.attachTo(document.getElementById("designerRootHost"));
Adaptive.AdaptiveCard.actionTypeRegistry.unregisterType("Action.ToggleVisibility");
ACDesigner.CardDesignerSurface.actionPeerRegistry.unregisterPeer(Adaptive.ToggleVisibilityAction); |
@dclaux, can this be closed now? |
@shalinijoshi19 no, there is still a lot to do to actually make the designer version aware. What Matt suggests above is a way to de-register elements, but that doesn't fully solve the problem. |
Thanks; Do we have a quick one-pager/spec consolidating the versioning requirements we are targeting for the designer? |
We don't. By the time I have a PR for the feature, I will open an issue with a description of what it entails. But it's fairly simple:
|
Thanks. I've also captured this to the internal OneNote I'd created for tracking. |
This issue has been automatically marked as stale because it has not had any activity for 5 days. |
Platform
Version of SDK
1.1
Version of Adaptive Cards Designer
0.7.1
Issue / Feature Request
Is there a way to restrict the adaptive cards designer to only support a certain adapative cards version? We're still on version 1.1 and don't want our developers to use features beyond this.
The text was updated successfully, but these errors were encountered: