[RAM] Reduce triggers actions UI bundle size (#149473)

## Summary
Reduces the bundle size of `triggersActionsUI`. Fix a change in a recent
PR that added util functions to an index file that was in turn being
imported when it wasn't needed. Gets it down to `118085`.


![image](https://user-images.githubusercontent.com/74562234/214467217-7e778b38-51e9-482a-8ce2-5774f9d96425.png)
This commit is contained in:
Jiawei Wu 2023-01-25 06:23:02 -08:00 committed by GitHub
parent 32b1e9b1ab
commit e2824c3041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View file

@ -11,7 +11,3 @@ export { createActionConnector } from './create';
export { deleteActions } from './delete';
export { executeAction } from './execute';
export { updateActionConnector } from './update';
export type { LoadGlobalConnectorExecutionLogAggregationsProps } from './load_execution_log_aggregations';
export { loadGlobalConnectorExecutionLogAggregations } from './load_execution_log_aggregations';
export type { LoadGlobalConnectorExecutionKPIAggregationsProps } from './load_execution_kpi_aggregations';
export { loadGlobalConnectorExecutionKPIAggregations } from './load_execution_kpi_aggregations';

View file

@ -29,7 +29,7 @@ import {
CONNECTOR_LOCKED_COLUMNS,
} from '../../../constants';
import { CenterJustifiedSpinner } from '../../../components/center_justified_spinner';
import { LoadGlobalConnectorExecutionLogAggregationsProps } from '../../../lib/action_connector_api';
import { LoadGlobalConnectorExecutionLogAggregationsProps } from '../../../lib/action_connector_api/load_execution_log_aggregations';
import {
ComponentOpts as ConnectorApis,
withActionOperations,

View file

@ -9,13 +9,15 @@ import React from 'react';
import { IExecutionLogResult, IExecutionKPIResult } from '@kbn/actions-plugin/common';
import { ActionType } from '../../../../types';
import { loadActionTypes } from '../../../lib/action_connector_api';
import {
loadActionTypes,
LoadGlobalConnectorExecutionLogAggregationsProps,
loadGlobalConnectorExecutionLogAggregations,
LoadGlobalConnectorExecutionKPIAggregationsProps,
loadGlobalConnectorExecutionKPIAggregations,
} from '../../../lib/action_connector_api';
LoadGlobalConnectorExecutionKPIAggregationsProps,
} from '../../../lib/action_connector_api/load_execution_kpi_aggregations';
import {
loadGlobalConnectorExecutionLogAggregations,
LoadGlobalConnectorExecutionLogAggregationsProps,
} from '../../../lib/action_connector_api/load_execution_log_aggregations';
import { useKibana } from '../../../../common/lib/kibana';
export interface ComponentOpts {