File tree Expand file tree Collapse file tree 4 files changed +4
-27
lines changed
components/ComponentsProvider Expand file tree Collapse file tree 4 files changed +4
-27
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,17 +3,18 @@ import {ErrorBoundaryInner} from '../ErrorBoundary/ErrorBoundary';
33import { ShardsTable } from '../ShardsTable/ShardsTable' ;
44import { StaffCard } from '../User/StaffCard' ;
55
6- import { AIAssistantButtonPlaceholder , ChatPanelPlaceholder } from './chatPlaceholderTypes' ;
76import type { ComponentsRegistryTemplate } from './registry' ;
87import { Registry } from './registry' ;
98
9+ const AnyPlaceholder = ( ) => null ;
10+
1011const componentsRegistryInner = new Registry ( )
1112 . register ( 'StaffCard' , StaffCard )
1213 . register ( 'AsideNavigation' , AsideNavigation )
1314 . register ( 'ErrorBoundary' , ErrorBoundaryInner )
1415 . register ( 'ShardsTable' , ShardsTable )
15- . register ( 'AIAssistantButton' , AIAssistantButtonPlaceholder )
16- . register ( 'ChatPanel' , ChatPanelPlaceholder ) ;
16+ . register ( 'AIAssistantButton' , AnyPlaceholder )
17+ . register ( 'ChatPanel' , AnyPlaceholder ) ;
1718
1819export type ComponentsRegistry = ComponentsRegistryTemplate < typeof componentsRegistryInner > ;
1920
Original file line number Diff line number Diff line change 11export { ComponentsProvider } from './ComponentsProvider' ;
22export { componentsRegistry } from './componentsRegistry' ;
33export type { ComponentsRegistry } from './componentsRegistry' ;
4-
5- // Export chat component types for external packages to use
6- export type { AIAssistantButtonProps , ChatPanelProps } from './chatPlaceholderTypes' ;
Original file line number Diff line number Diff line change @@ -36,6 +36,3 @@ export type {AsideNavigationProps} from './containers/AsideNavigation/AsideNavig
3636export type { GetMonitoringLink , GetMonitoringClusterLink } from './utils/monitoring' ;
3737
3838export { configureUIFactory } from './uiFactory/uiFactory' ;
39-
40- // Re-export chat component types from ComponentsProvider
41- export type { AIAssistantButtonProps , ChatPanelProps } from './components/ComponentsProvider' ;
You can’t perform that action at this time.
0 commit comments