mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Refactors outdated approach of sharing the custom data grid component from the `ml` plugin to the `transform` plugin to use packages instead. Creates the following packages: - `@kbn/ml-data-grid` - `@kbn/ml-date-utils` - `@kbn/ml-runtime-field-utils` ---- - Imports have been refactored so the `transform` plugin no longer imports code from packages `@kbn/ml-anomaly-utils` and `@kbn/ml-data-frame-analytics-utils`. - Removed again auto-generated `@type` related JSDoc comments. Within the code those annotations are quite redundant, would be cumbersome to maintain and they are not necessary to satisfy the "missing comments" check. - The `renderCellPopover` callback has been refactored out of the `DataGrid` component and can now be passed in as an optional prop. It is only used for Data Frame Analytics and this way we can avoid some dependency of the transform plugin on DFA related code. - Some more code has been moved to `@kbn/ml-anomaly-utils` to make available via packages what's needed for the data grid.
11 lines
567 B
TypeScript
11 lines
567 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* 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.
|
|
*/
|
|
|
|
export { composeValidators, patternValidator } from './util/validators';
|
|
export { getDefaultCapabilities as getDefaultMlCapabilities } from './types/capabilities';
|
|
export { DATAFEED_STATE, JOB_STATE } from './constants/states';
|
|
export type { MlSummaryJob, SummaryJobState } from './types/anomaly_detection_jobs';
|