Skip to content

Commit

Permalink
Reduce bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaweiWu committed May 31, 2024
1 parent dc3f76b commit f30c9b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 0 additions & 3 deletions packages/kbn-alerts-ui-shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ export { AlertsSearchBar } from './src/alerts_search_bar';
export type { AlertsSearchBarProps } from './src/alerts_search_bar/types';

export * from './src/alert_fields_table';

export * from './src/rule_type_modal';
export * from './src/alert_filter_controls/types';
export * from './src/rule_form';
export * from './src/common/hooks';
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ import type { DataPublicPluginStart } from '@kbn/data-plugin/public';
import type { DataViewsPublicPluginStart } from '@kbn/data-views-plugin/public';
import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/public';
import { AlertConsumers, RuleCreationValidConsumer } from '@kbn/rule-data-utils';
import {
RuleDefinition,
useLoadRuleTypesQuery,
getRuleErrors,
InitialRule,
} from '@kbn/alerts-ui-shared';
import { RuleDefinition, getRuleErrors, InitialRule } from '@kbn/alerts-ui-shared/src/rule_form';
import { useLoadRuleTypesQuery } from '@kbn/alerts-ui-shared/src/common/hooks';

interface RuleDefinitionSandboxProps {
data: DataPublicPluginStart;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { KueryNode } from '@kbn/es-query';
import { FormattedMessage } from '@kbn/i18n-react';
import { toMountPoint } from '@kbn/react-kibana-mount';
import { parseRuleCircuitBreakerErrorMessage } from '@kbn/alerting-plugin/common';
import { RuleTypeModal } from '@kbn/alerts-ui-shared';
import { RuleTypeModal } from '@kbn/alerts-ui-shared/src/rule_type_modal';
import React, {
lazy,
useEffect,
Expand Down

0 comments on commit f30c9b9

Please sign in to comment.