Hi, all. I’m working on a plugin to automate design specs. One of the ideas is to visually highlight the components of a shared library and show it’s name and properties.
So far, through the INSTANCE nodes I’m able to get the properties, but no the main-component name.
For example, I’m able to get this from a component called Button:
{
Disabled: {value: 'No', type: 'VARIANT'}
Icon: {value: 'None', type: 'VARIANT'}
Size: {value: 'Default', type: 'VARIANT'}
State: {value: 'Default', type: 'VARIANT'}
Type: {value: 'Secondary', type: 'VARIANT'}
}
But I cannot find a way to get the name of the main component, which in this case should be Button
Can anyone point me how to get this info? Thanks in advance,