[2.0.0-alpha3] Add allow_variant_expose source plugin

Created on 2 May 2024, 7 months ago
Updated 3 July 2024, 5 months ago

Maybe it will not be named "allow_variant_expose"

As a replacement of allow_variant_expose property from UI Patterns Settings 2.x

The idea is to leverage this new source plugin: ✨ [2.0.0-alpha3] Add allow_expose source plugin Active

So, we may need some change in the variant selector and elswhere:

  • variant (or variants plural? Let's discuss...) become a "magic" prop type plugin like slot (so not like the regular JSON schema based props)
  • If the component definition has a variants property, a variant prop is automatically added with this prop type.
  • the form hardcoded in ComponentForm::buildComponentVariantSelectorForm() become the default source plugin of this prop type
  • If a source plugin (like the one from ✨ [2.0.0-alpha3] Add allow_expose source plugin Active ] also targets "variants" prop type, a source selector is now available for variants in forms
✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024