Open sonntag-philipp opened 1 year ago
@thepassle Sorry for the notification, but maybe you could help me understand why things were previously implemented this way.
Not sure, most of that code already existed when I worked on it. Maybe you can improve it and add support for other things as well :)
Describe the bug The
slots
,attributes
and possibly other declaration types are not applied when the component is opened in the iframe directly.To Reproduce The issue can be reproduced, but as I already spent much effort into debugging the issue I think an thorough explaination would help more.
My problem When creating a new slot or attribute, I am able to set its value in the Storybook directly via the table at the bottom. When opening the component directly in a standalone iframe, I'm not able to pass arguments down to the component via the route.
After a debug session, I came across this piece of code. Here, only the type of properties is set even though attributes, slots and other declarations also have decent type definitions.
If I manually set the type of my slot or attribute using the debugger, the value is correctly displayed.
System
Additional context