mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Remove dynamic mapped types from UiActions (#87075)
* Remove dynamic mapped types from UiActions * Remove import between data <-> embeddables * remove outdated comments, export action types from discover_enhanced * fix notice.txt Co-authored-by: restrry <restrry@gmail.com>
This commit is contained in:
parent
1363a2aa73
commit
0af81310b6
167 changed files with 483 additions and 1149 deletions
|
@ -30,6 +30,7 @@ interface StartServices {
|
|||
|
||||
export const createHelloWorldAction = (getStartServices: () => Promise<StartServices>) =>
|
||||
createAction({
|
||||
id: ACTION_HELLO_WORLD,
|
||||
type: ACTION_HELLO_WORLD,
|
||||
getDisplayName: () => 'Hello World!',
|
||||
execute: async () => {
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
import { Plugin, CoreSetup, CoreStart } from '../../../src/core/public';
|
||||
import { UiActionsSetup, UiActionsStart } from '../../../src/plugins/ui_actions/public';
|
||||
import { createHelloWorldAction, ACTION_HELLO_WORLD } from './hello_world_action';
|
||||
import { helloWorldTrigger, HELLO_WORLD_TRIGGER_ID } from './hello_world_trigger';
|
||||
import { createHelloWorldAction } from './hello_world_action';
|
||||
import { helloWorldTrigger } from './hello_world_trigger';
|
||||
|
||||
export interface UiActionExamplesSetupDependencies {
|
||||
uiActions: UiActionsSetup;
|
||||
|
@ -30,16 +30,6 @@ export interface UiActionExamplesStartDependencies {
|
|||
uiActions: UiActionsStart;
|
||||
}
|
||||
|
||||
declare module '../../../src/plugins/ui_actions/public' {
|
||||
export interface TriggerContextMapping {
|
||||
[HELLO_WORLD_TRIGGER_ID]: {};
|
||||
}
|
||||
|
||||
export interface ActionContextMapping {
|
||||
[ACTION_HELLO_WORLD]: {};
|
||||
}
|
||||
}
|
||||
|
||||
export class UiActionExamplesPlugin
|
||||
implements
|
||||
Plugin<void, void, UiActionExamplesSetupDependencies, UiActionExamplesStartDependencies> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue