import { CoreSetup , Plugin } from 'kibana/public' ; import { UiActionsSetup } from '../../../../../src/plugins/ui_actions/public' ; import { CONTEXT_MENU_TRIGGER } from '../../../../../src/plugins/embeddable/public' ; import { createSamplePanelAction } from './sample_panel_action' ; import { createSamplePanelLink } from './sample_panel_link' ; export class SampelPanelActionTestPlugin implements Plugin < SampelPanelActionTestPluginSetup , SampelPanelActionTestPluginStart > { public setup ( core , { uiActions } ) { const samplePanelAction = createSamplePanelAction ( core . getStartServices ) ; const samplePanelLink = createSamplePanelLink ( ) ; uiActions . addTriggerAction ( CONTEXT_MENU_TRIGGER , samplePanelAction ) ; uiActions . addTriggerAction ( CONTEXT_MENU_TRIGGER , samplePanelLink ) ; return { } ; } public start ( ) { } public stop ( ) { } } export type SampelPanelActionTestPluginSetup = ReturnType < SampelPanelActionTestPlugin [ 'setup' ] > ; export type SampelPanelActionTestPluginStart = ReturnType < SampelPanelActionTestPlugin [ 'start' ] > ;