2019-09-09 19:15:58 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
|
|
* 2.0.
|
2019-09-09 19:15:58 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
import { PluginInitializerContext } from '../../../../src/core/server';
|
2021-02-08 10:19:54 +01:00
|
|
|
import { FeaturesPlugin } from './plugin';
|
2019-09-09 19:15:58 +02:00
|
|
|
|
|
|
|
// These exports are part of public Features plugin contract, any change in signature of exported
|
|
|
|
// functions or removal of exports should be considered as a breaking change. Ideally we should
|
|
|
|
// reduce number of such exports to zero and provide everything we want to expose via Setup/Start
|
|
|
|
// run-time contracts.
|
|
|
|
export { uiCapabilitiesRegex } from './feature_schema';
|
|
|
|
|
2020-09-14 15:30:47 +02:00
|
|
|
export {
|
|
|
|
KibanaFeature,
|
|
|
|
KibanaFeatureConfig,
|
|
|
|
FeatureKibanaPrivileges,
|
|
|
|
ElasticsearchFeature,
|
|
|
|
ElasticsearchFeatureConfig,
|
|
|
|
FeatureElasticsearchPrivileges,
|
|
|
|
} from '../common';
|
2020-02-28 15:06:48 +01:00
|
|
|
export { PluginSetupContract, PluginStartContract } from './plugin';
|
2019-09-09 19:15:58 +02:00
|
|
|
|
|
|
|
export const plugin = (initializerContext: PluginInitializerContext) =>
|
2021-02-08 10:19:54 +01:00
|
|
|
new FeaturesPlugin(initializerContext);
|