nexus-shell 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ComponentConstructor = React.ComponentType<any>;
4
+ export declare class ComponentRegistry {
5
+ private components;
6
+ /**
7
+ * Register a component with a unique ID.
8
+ * This ID is what you use in your FlexLayout models.
9
+ */
10
+ register(id: string, component: ComponentConstructor): void;
11
+ /**
12
+ * Retrieve a registered component by its ID.
13
+ */
14
+ get(id: string): ComponentConstructor | undefined;
15
+ /**
16
+ * Get all registered component IDs.
17
+ */
18
+ getRegisteredIds(): string[];
19
+ }
20
+ export declare const componentRegistry: ComponentRegistry;
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export { TerminalPane } from './components/widgets/TerminalPane';
12
12
  export { commandRegistry, type ICommand } from './core/registry/CommandRegistry';
13
13
  export { menuRegistry, type IMenuItem } from './core/registry/MenuRegistry';
14
14
  export { pluginRegistry, type IPlugin } from './core/registry/PluginRegistry';
15
+ export { componentRegistry, type ComponentConstructor } from './core/registry/ComponentRegistry';
15
16
  export { initializeShell } from './core/Boot';
16
17
  export { useLayoutStore } from './core/services/LayoutService';
17
18
  export { useThemeStore, type ThemeType } from './core/services/ThemeService';