diff --git a/packages/kbn-alerts-ui-shared/index.ts b/packages/kbn-alerts-ui-shared/index.ts index 45724a0a4f87d..eb3eae1496144 100644 --- a/packages/kbn-alerts-ui-shared/index.ts +++ b/packages/kbn-alerts-ui-shared/index.ts @@ -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'; diff --git a/x-pack/examples/triggers_actions_ui_example/public/components/rule_form/rule_definition_sandbox.tsx b/x-pack/examples/triggers_actions_ui_example/public/components/rule_form/rule_definition_sandbox.tsx index 55dbfab6ddc4c..71b8c3ccf276b 100644 --- a/x-pack/examples/triggers_actions_ui_example/public/components/rule_form/rule_definition_sandbox.tsx +++ b/x-pack/examples/triggers_actions_ui_example/public/components/rule_form/rule_definition_sandbox.tsx @@ -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; diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.tsx index 6fcce17f00542..a36068125a6a5 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rules_list.tsx @@ -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,