export type and runtme code separation (#95320)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
cd703c0c89
commit
f7caefd13a
|
@ -8,24 +8,28 @@
|
|||
|
||||
import { PluginInitializerContext } from 'kibana/public';
|
||||
|
||||
export {
|
||||
export type {
|
||||
FeatureCatalogueSetup,
|
||||
EnvironmentSetup,
|
||||
TutorialSetup,
|
||||
HomePublicPluginSetup,
|
||||
HomePublicPluginStart,
|
||||
} from './plugin';
|
||||
export {
|
||||
|
||||
export { FeatureCatalogueCategory } from './services';
|
||||
|
||||
export type {
|
||||
FeatureCatalogueEntry,
|
||||
FeatureCatalogueSolution,
|
||||
FeatureCatalogueCategory,
|
||||
Environment,
|
||||
TutorialVariables,
|
||||
TutorialDirectoryNoticeComponent,
|
||||
TutorialDirectoryHeaderLinkComponent,
|
||||
TutorialModuleNoticeComponent,
|
||||
} from './services';
|
||||
export * from '../common/instruction_variant';
|
||||
|
||||
export { INSTRUCTION_VARIANT, getDisplayText } from '../common/instruction_variant';
|
||||
|
||||
import { HomePublicPlugin } from './plugin';
|
||||
|
||||
export const plugin = (initializerContext: PluginInitializerContext) =>
|
||||
|
|
|
@ -6,4 +6,5 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { EnvironmentService, Environment, EnvironmentServiceSetup } from './environment';
|
||||
export { EnvironmentService } from './environment';
|
||||
export type { Environment, EnvironmentServiceSetup } from './environment';
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export {
|
||||
FeatureCatalogueCategory,
|
||||
export { FeatureCatalogueCategory, FeatureCatalogueRegistry } from './feature_catalogue_registry';
|
||||
|
||||
export type {
|
||||
FeatureCatalogueEntry,
|
||||
FeatureCatalogueSolution,
|
||||
FeatureCatalogueRegistry,
|
||||
FeatureCatalogueRegistrySetup,
|
||||
} from './feature_catalogue_registry';
|
||||
|
|
|
@ -6,6 +6,23 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export * from './feature_catalogue';
|
||||
export * from './environment';
|
||||
export * from './tutorials';
|
||||
export { FeatureCatalogueCategory, FeatureCatalogueRegistry } from './feature_catalogue';
|
||||
|
||||
export type {
|
||||
FeatureCatalogueEntry,
|
||||
FeatureCatalogueSolution,
|
||||
FeatureCatalogueRegistrySetup,
|
||||
} from './feature_catalogue';
|
||||
|
||||
export { EnvironmentService } from './environment';
|
||||
export type { Environment, EnvironmentServiceSetup } from './environment';
|
||||
|
||||
export { TutorialService } from './tutorials';
|
||||
|
||||
export type {
|
||||
TutorialVariables,
|
||||
TutorialServiceSetup,
|
||||
TutorialDirectoryNoticeComponent,
|
||||
TutorialDirectoryHeaderLinkComponent,
|
||||
TutorialModuleNoticeComponent,
|
||||
} from './tutorials';
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export {
|
||||
TutorialService,
|
||||
export { TutorialService } from './tutorial_service';
|
||||
|
||||
export type {
|
||||
TutorialVariables,
|
||||
TutorialServiceSetup,
|
||||
TutorialDirectoryNoticeComponent,
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { HomeServerPluginSetup, HomeServerPluginStart } from './plugin';
|
||||
export { TutorialProvider } from './services';
|
||||
export { SampleDatasetProvider, SampleDataRegistrySetup } from './services';
|
||||
export type { HomeServerPluginSetup, HomeServerPluginStart } from './plugin';
|
||||
export type { TutorialProvider } from './services';
|
||||
export type { SampleDatasetProvider, SampleDataRegistrySetup } from './services';
|
||||
import { PluginInitializerContext, PluginConfigDescriptor } from 'kibana/server';
|
||||
import { HomeServerPlugin } from './plugin';
|
||||
import { configSchema, ConfigSchema } from '../config';
|
||||
|
@ -26,4 +26,5 @@ export const config: PluginConfigDescriptor<ConfigSchema> = {
|
|||
export const plugin = (initContext: PluginInitializerContext) => new HomeServerPlugin(initContext);
|
||||
|
||||
export { INSTRUCTION_VARIANT } from '../common/instruction_variant';
|
||||
export { ArtifactsSchema, TutorialsCategory } from './services/tutorials';
|
||||
export { TutorialsCategory } from './services/tutorials';
|
||||
export type { ArtifactsSchema } from './services/tutorials';
|
||||
|
|
|
@ -9,9 +9,12 @@
|
|||
// provided to other plugins as APIs
|
||||
// should model the plugin lifecycle
|
||||
|
||||
export { TutorialsRegistry, TutorialsRegistrySetup, TutorialsRegistryStart } from './tutorials';
|
||||
export {
|
||||
TutorialsCategory,
|
||||
export { TutorialsRegistry } from './tutorials';
|
||||
export type { TutorialsRegistrySetup, TutorialsRegistryStart } from './tutorials';
|
||||
|
||||
export { TutorialsCategory } from './tutorials';
|
||||
|
||||
export type {
|
||||
ParamTypes,
|
||||
InstructionSetSchema,
|
||||
ParamsSchema,
|
||||
|
@ -24,10 +27,8 @@ export {
|
|||
ScopedTutorialContextFactory,
|
||||
} from './tutorials';
|
||||
|
||||
export {
|
||||
SampleDataRegistry,
|
||||
SampleDataRegistrySetup,
|
||||
SampleDataRegistryStart,
|
||||
} from './sample_data';
|
||||
export { SampleDataRegistry } from './sample_data';
|
||||
|
||||
export { SampleDatasetSchema, SampleDatasetProvider } from './sample_data';
|
||||
export type { SampleDataRegistrySetup, SampleDataRegistryStart } from './sample_data';
|
||||
|
||||
export type { SampleDatasetSchema, SampleDatasetProvider } from './sample_data';
|
||||
|
|
|
@ -6,10 +6,11 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export {
|
||||
SampleDataRegistry,
|
||||
SampleDataRegistrySetup,
|
||||
SampleDataRegistryStart,
|
||||
} from './sample_data_registry';
|
||||
export { SampleDataRegistry } from './sample_data_registry';
|
||||
|
||||
export { SampleDatasetSchema, SampleDatasetProvider } from './lib/sample_dataset_registry_types';
|
||||
export type { SampleDataRegistrySetup, SampleDataRegistryStart } from './sample_data_registry';
|
||||
|
||||
export type {
|
||||
SampleDatasetSchema,
|
||||
SampleDatasetProvider,
|
||||
} from './lib/sample_dataset_registry_types';
|
||||
|
|
|
@ -6,13 +6,12 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export {
|
||||
TutorialsRegistry,
|
||||
TutorialsRegistrySetup,
|
||||
TutorialsRegistryStart,
|
||||
} from './tutorials_registry';
|
||||
export {
|
||||
TutorialsCategory,
|
||||
export { TutorialsRegistry } from './tutorials_registry';
|
||||
export type { TutorialsRegistrySetup, TutorialsRegistryStart } from './tutorials_registry';
|
||||
|
||||
export { TutorialsCategory } from './lib/tutorials_registry_types';
|
||||
|
||||
export type {
|
||||
ParamTypes,
|
||||
InstructionSetSchema,
|
||||
ParamsSchema,
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
"declarationMap": true,
|
||||
"isolatedModules": true
|
||||
},
|
||||
"include": [
|
||||
"common/**/*",
|
||||
|
|
Loading…
Reference in a new issue