Matching properties by name to keep variant selection

Issue:

  • component A has 3 variant properties
  • component B has 4 variant properties

3 properties are named identically and have same values, also the layers have the same structure.
So component B has one more additional property compared to component A.

Current behaviour:
When switching between A and B the component gets reset to default variant.

Expected behaviour:
Properties are matched by name and kept as much as possible for the 3 common props, especially since layers are matching and prop values are also matching.