-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(panel): spread widgetRenderState in the options in panel (#4527)
* update panel * add a story * provide an empty object to widgetRenderState by default * add generic to panel * update the story to infer the type instead of importing and using the type itself * extract to PanelRenderOptions * clean the code * fix type error * feat(panel): smoother accessing of widgetRenderState (#4558) * WIP * now it works * better example * revert for lower ts used here * gotta be more generic * WIP trying to replace any with unknown * add UnknownWidgetFactory * parenthesis, move back to any (unknown is stricter than any) * reuse UnknownWidgetFactory in panel component Co-authored-by: Haroen Viaene <[email protected]>
- Loading branch information
Showing
4 changed files
with
105 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters