@@ -38,6 +38,8 @@ import {
3838import { FormatFactory } from './legacy_imports' ;
3939import { IEmbeddableSetup , IEmbeddableStart } from '../../../../../src/plugins/embeddable/public' ;
4040import { EditorFrameStart } from './types' ;
41+ import { getLensAliasConfig } from './vis_type_alias' ;
42+ import { VisualizationsSetup } from './legacy_imports' ;
4143
4244export interface LensPluginSetupDependencies {
4345 kibanaLegacy : KibanaLegacySetup ;
@@ -46,6 +48,7 @@ export interface LensPluginSetupDependencies {
4648 embeddable : IEmbeddableSetup ;
4749 __LEGACY : {
4850 formatFactory : FormatFactory ;
51+ visualizations : VisualizationsSetup ;
4952 } ;
5053}
5154
@@ -81,7 +84,7 @@ export class LensPlugin {
8184 expressions,
8285 data,
8386 embeddable,
84- __LEGACY : { formatFactory } ,
87+ __LEGACY : { formatFactory, visualizations } ,
8588 } : LensPluginSetupDependencies
8689 ) {
8790 const editorFrameSetupInterface = this . editorFrameService . setup ( core , {
@@ -100,6 +103,8 @@ export class LensPlugin {
100103 this . datatableVisualization . setup ( core , dependencies ) ;
101104 this . metricVisualization . setup ( core , dependencies ) ;
102105
106+ visualizations . types . registerAlias ( getLensAliasConfig ( ) ) ;
107+
103108 kibanaLegacy . registerLegacyApp ( {
104109 id : 'lens' ,
105110 title : NOT_INTERNATIONALIZED_PRODUCT_NAME ,
0 commit comments