Skip to content

Commit

Permalink
removing exporting setup in index
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Nov 21, 2019
1 parent aece1e0 commit fa77bb1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/legacy/core_plugins/visualizations/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ export { DefaultEditorSize } from 'ui/vis/editor_size';
* @public
*/
export * from './np_ready/public';

// for backwards compatibility with 7.3
export { setup as visualizations } from './np_ready/public/legacy';
3 changes: 1 addition & 2 deletions src/legacy/ui/public/chrome/api/angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ import { uiModules } from '../../modules';

import { directivesProvider } from '../directives';
import { registerSubUrlHooks } from './sub_url_hooks';
import { start as data } from '../../../../core_plugins/data/public/legacy';
import { configureAppAngularModule } from 'ui/legacy_compat';
import { npStart } from '../../new_platform/new_platform';

export function initAngularApi(chrome, internals) {
chrome.setupAngular = function () {
const kibana = uiModules.get('kibana');

configureAppAngularModule(kibana, npStart.core, data, false);
configureAppAngularModule(kibana, npStart.core, false);

kibana.value('chrome', chrome);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { i18n } from '@kbn/i18n';
import { visualizations } from '../../../../../src/legacy/core_plugins/visualizations/public';
import { setup as visualizations } from '../../../../../src/legacy/core_plugins/visualizations/public/np_ready/public/legacy';
import { getBasePath, getEditPath } from '../common';

visualizations.types.registerAlias({
Expand Down

0 comments on commit fa77bb1

Please sign in to comment.