-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Until now it was possible to add new component or to add and replace existing components. There was no official way to remove an existing ui component. Flow - KPUIComponent was separated to KPUIAddComponent and KPUIRemoveComponent UIWrapper was added a new api - removeComponent(component: KPUIRemoveComponent): Function getUIComponents handling was changed accordingly
- Loading branch information
1 parent
f0954de
commit fd2172c
Showing
2 changed files
with
29 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
// @flow | ||
declare type KPUIComponent = KPUIComponentOptions & { | ||
declare type KPUIAddComponent = KPUIComponentOptions & { | ||
get: Function, | ||
props?: {} | ||
}; | ||
|
||
declare type KPUIRemoveComponent = { | ||
removeComponent: string, | ||
presets: Array<string>, | ||
area: string | ||
}; | ||
|
||
declare type KPUIComponent = KPUIAddComponent | KPUIRemoveComponent; |
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