Skip to content

Commit c026acd

Browse files
committed
fix: remove placeholders
1 parent a2244af commit c026acd

File tree

4 files changed

+4
-27
lines changed

4 files changed

+4
-27
lines changed

src/components/ComponentsProvider/chatPlaceholderTypes.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/components/ComponentsProvider/componentsRegistry.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@ import {ErrorBoundaryInner} from '../ErrorBoundary/ErrorBoundary';
33
import {ShardsTable} from '../ShardsTable/ShardsTable';
44
import {StaffCard} from '../User/StaffCard';
55

6-
import {AIAssistantButtonPlaceholder, ChatPanelPlaceholder} from './chatPlaceholderTypes';
76
import type {ComponentsRegistryTemplate} from './registry';
87
import {Registry} from './registry';
98

9+
const AnyPlaceholder = () => null;
10+
1011
const 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

1819
export type ComponentsRegistry = ComponentsRegistryTemplate<typeof componentsRegistryInner>;
1920

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
export {ComponentsProvider} from './ComponentsProvider';
22
export {componentsRegistry} from './componentsRegistry';
33
export type {ComponentsRegistry} from './componentsRegistry';
4-
5-
// Export chat component types for external packages to use
6-
export type {AIAssistantButtonProps, ChatPanelProps} from './chatPlaceholderTypes';

src/lib.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,3 @@ export type {AsideNavigationProps} from './containers/AsideNavigation/AsideNavig
3636
export type {GetMonitoringLink, GetMonitoringClusterLink} from './utils/monitoring';
3737

3838
export {configureUIFactory} from './uiFactory/uiFactory';
39-
40-
// Re-export chat component types from ComponentsProvider
41-
export type {AIAssistantButtonProps, ChatPanelProps} from './components/ComponentsProvider';

0 commit comments

Comments
 (0)