mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Local actions (#57451)
* feat: 🎸 create UiActionsService * feat: 🎸 add UiActionsServvice.fork() method * feat: 🎸 instantiate UiActionsService in plugin * feat: 🎸 add UiActionsService.registerTrigger(), remove old * feat: 🎸 move attach/detachAction() methods to UiActionsService * refactor: 💡 move remaining actions API to UiActionsService * chore: 🤖 clean up /trigger folder * test: 💍 move registry tests into UiActiosnService tests * fix: 🐛 fix TypeScript typecheck errors * test: 💍 add .fork() trigger tests * feat: 🎸 remove actionIds from ui_actions Trigger interface * fix: 🐛 remove usage of actionIds * fix: 🐛 attach hello world action to trigger in plugin lifecycle * feat: 🎸 fork also trigger to action attachments * fix: 🐛 clear mapping registry in .clear(), improve type
This commit is contained in:
parent
9388ff7b43
commit
ca5e25c139
36 changed files with 764 additions and 734 deletions
|
@ -56,15 +56,12 @@ export class UiActionsExplorerPlugin implements Plugin<void, void, {}, StartDeps
|
|||
public setup(core: CoreSetup<{ uiActions: UiActionsStart }>, deps: SetupDeps) {
|
||||
deps.uiActions.registerTrigger({
|
||||
id: COUNTRY_TRIGGER,
|
||||
actionIds: [],
|
||||
});
|
||||
deps.uiActions.registerTrigger({
|
||||
id: PHONE_TRIGGER,
|
||||
actionIds: [],
|
||||
});
|
||||
deps.uiActions.registerTrigger({
|
||||
id: USER_TRIGGER,
|
||||
actionIds: [],
|
||||
});
|
||||
deps.uiActions.registerAction(lookUpWeatherAction);
|
||||
deps.uiActions.registerAction(viewInMapsAction);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue