import { CoreSetup , CoreStart , Plugin , PluginInitializerContext } from 'src/core/server' ; import { AdvancedUiActionsSetup , AdvancedUiActionsStart } from '../../ui_actions_enhanced/server' ; import { EMBEDDABLE_TO_DASHBOARD_DRILLDOWN , createExtract , createInject } from '../common' ; export interface SetupDependencies { uiActionsEnhanced : AdvancedUiActionsSetup ; } export interface StartDependencies { uiActionsEnhanced : AdvancedUiActionsStart ; } export interface SetupContract { } export interface StartContract { } export class DashboardEnhancedPlugin implements Plugin < SetupContract , StartContract , SetupDependencies , StartDependencies > { constructor ( protected readonly context ) { } public setup ( core , plugins ) { plugins . uiActionsEnhanced . registerActionFactory ( { id : EMBEDDABLE_TO_DASHBOARD_DRILLDOWN , inject : createInject ( { drilldownId : EMBEDDABLE_TO_DASHBOARD_DRILLDOWN } ) , extract : createExtract ( { drilldownId : EMBEDDABLE_TO_DASHBOARD_DRILLDOWN } ) , } ) ; return { } ; } public start ( core , plugins ) { return { } ; } public stop ( ) { } }