nexus-shell 0.1.0 → 0.1.2

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.
package/README.md CHANGED
@@ -8,7 +8,8 @@ Nexus-Shell is a professional-grade, library-first frontend framework for buildi
8
8
  - **Modular Registry System:** Decouple commands, menus, and plugins from the core UI.
9
9
  - **Persistence:** Automatic workspace restoration via `localStorage`.
10
10
  - **Command Palette:** `Ctrl+Shift+P` searchable command interface.
11
- - **Theming:** First-class support for Light, Dark, and custom themes (includes a Georgia Tech theme).
11
+ - **Theming:** First-class support for Light, Dark, and custom themes (includes a Georgia Tech theme), optimized for high accessibility and reduced eye strain.
12
+ - **Accessible Components:** Input fields and buttons follow strict UI/UX guidelines for contrast, sizing, and focus states.
12
13
  - **Library Ready:** ESM and UMD bundles with full TypeScript type definitions.
13
14
 
14
15
  ---
@@ -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';