@hamak/ui-shell 0.5.1 → 0.5.5

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.
Files changed (56) hide show
  1. package/dist/api/api/IFeatureManager.d.ts +1 -1
  2. package/dist/api/api/ILayoutManager.d.ts +1 -1
  3. package/dist/api/api/IRouter.d.ts +1 -1
  4. package/dist/api/api/IShell.d.ts +4 -4
  5. package/dist/api/api/IThemeManager.d.ts +1 -1
  6. package/dist/api/api/index.d.ts +5 -5
  7. package/dist/api/api/index.js +5 -5
  8. package/dist/api/index.d.ts +3 -3
  9. package/dist/api/index.js +3 -3
  10. package/dist/api/tokens/index.d.ts +1 -1
  11. package/dist/api/tokens/index.js +1 -1
  12. package/dist/api/types/index.d.ts +6 -6
  13. package/dist/api/types/index.js +6 -6
  14. package/dist/api/types/shell-context.d.ts +3 -3
  15. package/dist/impl/core/DefaultFeatureManager.d.ts +2 -2
  16. package/dist/impl/core/DefaultLayoutManager.d.ts +2 -2
  17. package/dist/impl/core/DefaultRouter.d.ts +4 -4
  18. package/dist/impl/core/DefaultShell.d.ts +2 -2
  19. package/dist/impl/core/DefaultShell.js +4 -4
  20. package/dist/impl/core/DefaultThemeManager.d.ts +3 -3
  21. package/dist/impl/core/index.d.ts +5 -5
  22. package/dist/impl/core/index.js +5 -5
  23. package/dist/impl/index.d.ts +9 -9
  24. package/dist/impl/index.js +8 -8
  25. package/dist/impl/plugin/ShellPluginFactory.d.ts +2 -2
  26. package/dist/impl/plugin/ShellPluginFactory.js +3 -3
  27. package/dist/impl/plugin/index.d.ts +1 -1
  28. package/dist/impl/plugin/index.js +1 -1
  29. package/dist/impl/providers/CSSVariablesThemeProvider.d.ts +2 -2
  30. package/dist/impl/providers/HashRouterStrategy.d.ts +1 -1
  31. package/dist/impl/providers/HistoryRouterStrategy.d.ts +1 -1
  32. package/dist/impl/providers/LocalStorageProvider.d.ts +1 -1
  33. package/dist/impl/providers/MemoryStorageProvider.d.ts +1 -1
  34. package/dist/impl/providers/index.d.ts +5 -5
  35. package/dist/impl/providers/index.js +5 -5
  36. package/dist/impl/utils/index.d.ts +1 -1
  37. package/dist/impl/utils/index.js +1 -1
  38. package/dist/impl/utils/viewport-utils.d.ts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/spi/guards/NavigationGuard.d.ts +1 -1
  42. package/dist/spi/guards/index.d.ts +1 -1
  43. package/dist/spi/guards/index.js +1 -1
  44. package/dist/spi/hooks/ShellHooks.d.ts +1 -1
  45. package/dist/spi/hooks/index.d.ts +1 -1
  46. package/dist/spi/hooks/index.js +1 -1
  47. package/dist/spi/index.d.ts +5 -5
  48. package/dist/spi/index.js +5 -5
  49. package/dist/spi/providers/ITemplateProvider.d.ts +1 -1
  50. package/dist/spi/providers/IThemeProvider.d.ts +1 -1
  51. package/dist/spi/providers/index.d.ts +4 -4
  52. package/dist/spi/providers/index.js +4 -4
  53. package/dist/spi/slots/TemplateSlot.d.ts +1 -1
  54. package/dist/spi/slots/index.d.ts +2 -2
  55. package/dist/spi/slots/index.js +2 -2
  56. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
  * Feature Manager Interface
3
3
  * Public API contract for feature flag management
4
4
  */
5
- import type { FeatureFlags } from '../types';
5
+ import type { FeatureFlags } from '../types/index.js';
6
6
  export interface IFeatureManager {
7
7
  /**
8
8
  * Check if a feature is enabled (boolean features)
@@ -2,7 +2,7 @@
2
2
  * Layout Manager Interface
3
3
  * Public API contract for layout management
4
4
  */
5
- import type { LayoutSlot, LayoutArea } from '../types';
5
+ import type { LayoutSlot, LayoutArea } from '../types/index.js';
6
6
  export interface ILayoutManager {
7
7
  /**
8
8
  * Register a layout slot
@@ -2,7 +2,7 @@
2
2
  * Router Interface
3
3
  * Public API contract for routing
4
4
  */
5
- import type { RouteConfig } from '../types';
5
+ import type { RouteConfig } from '../types/index.js';
6
6
  export interface IRouter {
7
7
  /**
8
8
  * Navigate to a path
@@ -2,10 +2,10 @@
2
2
  * Shell Interface
3
3
  * Public API contract for the UI Shell
4
4
  */
5
- import type { ShellConfig, ShellContext, ShellEventListener, ShellEventType } from '../types';
6
- import type { IThemeManager } from './IThemeManager';
7
- import type { IFeatureManager } from './IFeatureManager';
8
- import type { IRouter } from './IRouter';
5
+ import type { ShellConfig, ShellContext, ShellEventListener, ShellEventType } from '../types/index.js';
6
+ import type { IThemeManager } from './IThemeManager.js';
7
+ import type { IFeatureManager } from './IFeatureManager.js';
8
+ import type { IRouter } from './IRouter.js';
9
9
  export interface IShell {
10
10
  /**
11
11
  * Initialize the shell
@@ -2,7 +2,7 @@
2
2
  * Theme Manager Interface
3
3
  * Public API contract for theme management
4
4
  */
5
- import type { ThemeMode } from '../types';
5
+ import type { ThemeMode } from '../types/index.js';
6
6
  export interface IThemeManager {
7
7
  /**
8
8
  * Get the current theme mode
@@ -2,9 +2,9 @@
2
2
  * UI Shell API Interfaces
3
3
  * All public interface definitions
4
4
  */
5
- export * from './IShell';
6
- export * from './IThemeManager';
7
- export * from './IFeatureManager';
8
- export * from './IRouter';
9
- export * from './ILayoutManager';
5
+ export * from './IShell.js';
6
+ export * from './IThemeManager.js';
7
+ export * from './IFeatureManager.js';
8
+ export * from './IRouter.js';
9
+ export * from './ILayoutManager.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -2,8 +2,8 @@
2
2
  * UI Shell API Interfaces
3
3
  * All public interface definitions
4
4
  */
5
- export * from './IShell';
6
- export * from './IThemeManager';
7
- export * from './IFeatureManager';
8
- export * from './IRouter';
9
- export * from './ILayoutManager';
5
+ export * from './IShell.js';
6
+ export * from './IThemeManager.js';
7
+ export * from './IFeatureManager.js';
8
+ export * from './IRouter.js';
9
+ export * from './ILayoutManager.js';
@@ -5,7 +5,7 @@
5
5
  * This module contains only type definitions and interfaces.
6
6
  * Import implementations from @hamak/ui-shell or '@hamak/ui-shell/impl'
7
7
  */
8
- export * from './types';
9
- export * from './api';
10
- export * from './tokens';
8
+ export * from './types/index.js';
9
+ export * from './api/index.js';
10
+ export * from './tokens/index.js';
11
11
  //# sourceMappingURL=index.d.ts.map
package/dist/api/index.js CHANGED
@@ -6,8 +6,8 @@
6
6
  * Import implementations from @hamak/ui-shell or '@hamak/ui-shell/impl'
7
7
  */
8
8
  // Export all types
9
- export * from './types';
9
+ export * from './types/index.js';
10
10
  // Export all API interfaces
11
- export * from './api';
11
+ export * from './api/index.js';
12
12
  // Export service tokens
13
- export * from './tokens';
13
+ export * from './tokens/index.js';
@@ -2,5 +2,5 @@
2
2
  * Tokens
3
3
  * Export all service tokens
4
4
  */
5
- export * from './service-tokens';
5
+ export * from './service-tokens.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,4 @@
2
2
  * Tokens
3
3
  * Export all service tokens
4
4
  */
5
- export * from './service-tokens';
5
+ export * from './service-tokens.js';
@@ -2,10 +2,10 @@
2
2
  * UI Shell API Types
3
3
  * All public type definitions
4
4
  */
5
- export * from './theme-types';
6
- export * from './feature-types';
7
- export * from './route-types';
8
- export * from './layout-types';
9
- export * from './event-types';
10
- export * from './shell-context';
5
+ export * from './theme-types.js';
6
+ export * from './feature-types.js';
7
+ export * from './route-types.js';
8
+ export * from './layout-types.js';
9
+ export * from './event-types.js';
10
+ export * from './shell-context.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -2,9 +2,9 @@
2
2
  * UI Shell API Types
3
3
  * All public type definitions
4
4
  */
5
- export * from './theme-types';
6
- export * from './feature-types';
7
- export * from './route-types';
8
- export * from './layout-types';
9
- export * from './event-types';
10
- export * from './shell-context';
5
+ export * from './theme-types.js';
6
+ export * from './feature-types.js';
7
+ export * from './route-types.js';
8
+ export * from './layout-types.js';
9
+ export * from './event-types.js';
10
+ export * from './shell-context.js';
@@ -2,9 +2,9 @@
2
2
  * Shell Context Types
3
3
  * Type definitions for shell context
4
4
  */
5
- import type { ThemeMode, ThemeConfig } from './theme-types';
6
- import type { FeatureFlags } from './feature-types';
7
- import type { ViewportInfo } from './layout-types';
5
+ import type { ThemeMode, ThemeConfig } from './theme-types.js';
6
+ import type { FeatureFlags } from './feature-types.js';
7
+ import type { ViewportInfo } from './layout-types.js';
8
8
  export interface ShellConfig {
9
9
  /** Theme configuration */
10
10
  theme?: ThemeConfig;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Default Feature Manager Implementation
3
3
  */
4
- import type { IFeatureManager } from '../../api';
5
- import type { FeatureFlags } from '../../api';
4
+ import type { IFeatureManager } from '../../api/index.js';
5
+ import type { FeatureFlags } from '../../api/index.js';
6
6
  export declare class DefaultFeatureManager implements IFeatureManager {
7
7
  private features;
8
8
  private listeners;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Default Layout Manager Implementation
3
3
  */
4
- import type { ILayoutManager } from '../../api';
5
- import type { LayoutSlot, LayoutArea } from '../../api';
4
+ import type { ILayoutManager } from '../../api/index.js';
5
+ import type { LayoutSlot, LayoutArea } from '../../api/index.js';
6
6
  export declare class DefaultLayoutManager implements ILayoutManager {
7
7
  private slots;
8
8
  private listeners;
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Default Router Implementation
3
3
  */
4
- import type { IRouter } from '../../api';
5
- import type { RouteConfig, RouterOptions } from '../../api';
6
- import type { IRouterStrategy } from '../../spi';
7
- import type { NavigationGuard } from '../../spi';
4
+ import type { IRouter } from '../../api/index.js';
5
+ import type { RouteConfig, RouterOptions } from '../../api/index.js';
6
+ import type { IRouterStrategy } from '../../spi/index.js';
7
+ import type { NavigationGuard } from '../../spi/index.js';
8
8
  export declare class DefaultRouter implements IRouter {
9
9
  private routes;
10
10
  private currentRoute;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Default Shell Implementation
3
3
  */
4
- import type { IShell, IThemeManager, IFeatureManager, IRouter } from '../../api';
5
- import type { ShellConfig, ShellContext, ShellEventListener, ShellEventType } from '../../api';
4
+ import type { IShell, IThemeManager, IFeatureManager, IRouter } from '../../api/index.js';
5
+ import type { ShellConfig, ShellContext, ShellEventListener, ShellEventType } from '../../api/index.js';
6
6
  export declare class DefaultShell implements IShell {
7
7
  private themeManager;
8
8
  private featureManager;
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Default Shell Implementation
3
3
  */
4
- import { DefaultThemeManager } from './DefaultThemeManager';
5
- import { DefaultFeatureManager } from './DefaultFeatureManager';
6
- import { LocalStorageProvider } from '../providers/LocalStorageProvider';
7
- import { CSSVariablesThemeProvider } from '../providers/CSSVariablesThemeProvider';
4
+ import { DefaultThemeManager } from './DefaultThemeManager.js';
5
+ import { DefaultFeatureManager } from './DefaultFeatureManager.js';
6
+ import { LocalStorageProvider } from '../providers/LocalStorageProvider.js';
7
+ import { CSSVariablesThemeProvider } from '../providers/CSSVariablesThemeProvider.js';
8
8
  export class DefaultShell {
9
9
  constructor(config = {}) {
10
10
  Object.defineProperty(this, "themeManager", {
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Default Theme Manager Implementation
3
3
  */
4
- import type { IThemeManager } from '../../api';
5
- import type { ThemeMode, ThemeConfig } from '../../api';
6
- import type { IStorageProvider, IThemeProvider } from '../../spi';
4
+ import type { IThemeManager } from '../../api/index.js';
5
+ import type { ThemeMode, ThemeConfig } from '../../api/index.js';
6
+ import type { IStorageProvider, IThemeProvider } from '../../spi/index.js';
7
7
  export declare class DefaultThemeManager implements IThemeManager {
8
8
  private currentTheme;
9
9
  private config;
@@ -2,9 +2,9 @@
2
2
  * Core Implementations
3
3
  * Export all core implementation classes
4
4
  */
5
- export * from './DefaultShell';
6
- export * from './DefaultThemeManager';
7
- export * from './DefaultFeatureManager';
8
- export * from './DefaultLayoutManager';
9
- export * from './DefaultRouter';
5
+ export * from './DefaultShell.js';
6
+ export * from './DefaultThemeManager.js';
7
+ export * from './DefaultFeatureManager.js';
8
+ export * from './DefaultLayoutManager.js';
9
+ export * from './DefaultRouter.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -2,8 +2,8 @@
2
2
  * Core Implementations
3
3
  * Export all core implementation classes
4
4
  */
5
- export * from './DefaultShell';
6
- export * from './DefaultThemeManager';
7
- export * from './DefaultFeatureManager';
8
- export * from './DefaultLayoutManager';
9
- export * from './DefaultRouter';
5
+ export * from './DefaultShell.js';
6
+ export * from './DefaultThemeManager.js';
7
+ export * from './DefaultFeatureManager.js';
8
+ export * from './DefaultLayoutManager.js';
9
+ export * from './DefaultRouter.js';
@@ -5,15 +5,15 @@
5
5
  * This module provides default implementations that can be used directly
6
6
  * or extended for custom behavior.
7
7
  */
8
- export * from '../api';
9
- export * from '../spi';
10
- export * from './core';
11
- export * from './providers';
12
- export * from './utils';
13
- export * from './plugin';
14
- import { DefaultShell } from './core/DefaultShell';
15
- import { DefaultLayoutManager } from './core/DefaultLayoutManager';
16
- import type { ShellConfig } from '../api';
8
+ export * from '../api/index.js';
9
+ export * from '../spi/index.js';
10
+ export * from './core/index.js';
11
+ export * from './providers/index.js';
12
+ export * from './utils/index.js';
13
+ export * from './plugin/index.js';
14
+ import { DefaultShell } from './core/DefaultShell.js';
15
+ import { DefaultLayoutManager } from './core/DefaultLayoutManager.js';
16
+ import type { ShellConfig } from '../api/index.js';
17
17
  export declare function createShell(config?: ShellConfig): DefaultShell;
18
18
  export declare function createLayoutManager(): DefaultLayoutManager;
19
19
  export declare function getShell(config?: ShellConfig): DefaultShell;
@@ -6,19 +6,19 @@
6
6
  * or extended for custom behavior.
7
7
  */
8
8
  // Re-export API and SPI types
9
- export * from '../api';
10
- export * from '../spi';
9
+ export * from '../api/index.js';
10
+ export * from '../spi/index.js';
11
11
  // Export core implementations
12
- export * from './core';
12
+ export * from './core/index.js';
13
13
  // Export providers
14
- export * from './providers';
14
+ export * from './providers/index.js';
15
15
  // Export utilities
16
- export * from './utils';
16
+ export * from './utils/index.js';
17
17
  // Export plugin integration
18
- export * from './plugin';
18
+ export * from './plugin/index.js';
19
19
  // Factory functions
20
- import { DefaultShell } from './core/DefaultShell';
21
- import { DefaultLayoutManager } from './core/DefaultLayoutManager';
20
+ import { DefaultShell } from './core/DefaultShell.js';
21
+ import { DefaultLayoutManager } from './core/DefaultLayoutManager.js';
22
22
  export function createShell(config) {
23
23
  return new DefaultShell(config);
24
24
  }
@@ -4,8 +4,8 @@
4
4
  */
5
5
  import type { PluginModule } from '@hamak/microkernel-spi';
6
6
  import type { ActivateContext } from '@hamak/microkernel-api';
7
- import type { ShellConfig } from '../../api';
8
- import { DefaultShell } from '../core/DefaultShell';
7
+ import type { ShellConfig } from '../../api/index.js';
8
+ import { DefaultShell } from '../core/DefaultShell.js';
9
9
  export declare function createShellPlugin(config?: ShellConfig): PluginModule;
10
10
  export declare function getShellFromContext(ctx: ActivateContext): DefaultShell;
11
11
  //# sourceMappingURL=ShellPluginFactory.d.ts.map
@@ -2,9 +2,9 @@
2
2
  * Shell Plugin Factory
3
3
  * Creates microkernel plugin for UI Shell integration
4
4
  */
5
- import { SHELL_TOKEN, THEME_MANAGER_TOKEN, FEATURE_MANAGER_TOKEN, LAYOUT_MANAGER_TOKEN, ShellCommands, ShellEvents, } from '../../api';
6
- import { DefaultShell } from '../core/DefaultShell';
7
- import { DefaultLayoutManager } from '../core/DefaultLayoutManager';
5
+ import { SHELL_TOKEN, THEME_MANAGER_TOKEN, FEATURE_MANAGER_TOKEN, LAYOUT_MANAGER_TOKEN, ShellCommands, ShellEvents, } from '../../api/index.js';
6
+ import { DefaultShell } from '../core/DefaultShell.js';
7
+ import { DefaultLayoutManager } from '../core/DefaultLayoutManager.js';
8
8
  export function createShellPlugin(config) {
9
9
  let shell;
10
10
  let layoutManager;
@@ -2,5 +2,5 @@
2
2
  * Plugin Integration
3
3
  * Export plugin factory and helpers
4
4
  */
5
- export * from './ShellPluginFactory';
5
+ export * from './ShellPluginFactory.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,4 @@
2
2
  * Plugin Integration
3
3
  * Export plugin factory and helpers
4
4
  */
5
- export * from './ShellPluginFactory';
5
+ export * from './ShellPluginFactory.js';
@@ -2,8 +2,8 @@
2
2
  * CSS Variables Theme Provider
3
3
  * Implements theming using CSS custom properties
4
4
  */
5
- import type { IThemeProvider } from '../../spi';
6
- import type { ThemeMode, ThemeConfig } from '../../api';
5
+ import type { IThemeProvider } from '../../spi/index.js';
6
+ import type { ThemeMode, ThemeConfig } from '../../api/index.js';
7
7
  export declare class CSSVariablesThemeProvider implements IThemeProvider {
8
8
  private mediaQuery?;
9
9
  private listeners;
@@ -2,7 +2,7 @@
2
2
  * Hash Router Strategy
3
3
  * Uses URL hash for routing
4
4
  */
5
- import type { IRouterStrategy } from '../../spi';
5
+ import type { IRouterStrategy } from '../../spi/index.js';
6
6
  export declare class HashRouterStrategy implements IRouterStrategy {
7
7
  private listeners;
8
8
  constructor();
@@ -2,7 +2,7 @@
2
2
  * History Router Strategy
3
3
  * Uses browser History API for routing
4
4
  */
5
- import type { IRouterStrategy } from '../../spi';
5
+ import type { IRouterStrategy } from '../../spi/index.js';
6
6
  export declare class HistoryRouterStrategy implements IRouterStrategy {
7
7
  private base;
8
8
  private listeners;
@@ -2,7 +2,7 @@
2
2
  * LocalStorage Provider
3
3
  * Implementation using browser localStorage
4
4
  */
5
- import type { IStorageProvider } from '../../spi';
5
+ import type { IStorageProvider } from '../../spi/index.js';
6
6
  export declare class LocalStorageProvider implements IStorageProvider {
7
7
  getItem(key: string): string | null;
8
8
  setItem(key: string, value: string): void;
@@ -2,7 +2,7 @@
2
2
  * Memory Storage Provider
3
3
  * In-memory storage for SSR or testing
4
4
  */
5
- import type { IStorageProvider } from '../../spi';
5
+ import type { IStorageProvider } from '../../spi/index.js';
6
6
  export declare class MemoryStorageProvider implements IStorageProvider {
7
7
  private storage;
8
8
  getItem(key: string): string | null;
@@ -2,9 +2,9 @@
2
2
  * Providers
3
3
  * Export all provider implementations
4
4
  */
5
- export * from './LocalStorageProvider';
6
- export * from './MemoryStorageProvider';
7
- export * from './CSSVariablesThemeProvider';
8
- export * from './HistoryRouterStrategy';
9
- export * from './HashRouterStrategy';
5
+ export * from './LocalStorageProvider.js';
6
+ export * from './MemoryStorageProvider.js';
7
+ export * from './CSSVariablesThemeProvider.js';
8
+ export * from './HistoryRouterStrategy.js';
9
+ export * from './HashRouterStrategy.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -2,8 +2,8 @@
2
2
  * Providers
3
3
  * Export all provider implementations
4
4
  */
5
- export * from './LocalStorageProvider';
6
- export * from './MemoryStorageProvider';
7
- export * from './CSSVariablesThemeProvider';
8
- export * from './HistoryRouterStrategy';
9
- export * from './HashRouterStrategy';
5
+ export * from './LocalStorageProvider.js';
6
+ export * from './MemoryStorageProvider.js';
7
+ export * from './CSSVariablesThemeProvider.js';
8
+ export * from './HistoryRouterStrategy.js';
9
+ export * from './HashRouterStrategy.js';
@@ -2,5 +2,5 @@
2
2
  * Utilities
3
3
  * Export all utility classes
4
4
  */
5
- export * from './viewport-utils';
5
+ export * from './viewport-utils.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,4 @@
2
2
  * Utilities
3
3
  * Export all utility classes
4
4
  */
5
- export * from './viewport-utils';
5
+ export * from './viewport-utils.js';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Viewport Utilities
3
3
  */
4
- import type { BreakpointName, Breakpoint } from '../../api';
4
+ import type { BreakpointName, Breakpoint } from '../../api/index.js';
5
5
  export declare const BREAKPOINTS: Record<BreakpointName, Breakpoint>;
6
6
  export declare class ViewportUtils {
7
7
  static getCurrentBreakpoint(): BreakpointName;
package/dist/index.d.ts CHANGED
@@ -7,5 +7,5 @@
7
7
  * - @hamak/ui-shell/api - API types and interfaces only
8
8
  * - @hamak/ui-shell/spi - Service Provider Interfaces for extensions
9
9
  */
10
- export * from './impl';
10
+ export * from './impl/index.js';
11
11
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -8,4 +8,4 @@
8
8
  * - @hamak/ui-shell/spi - Service Provider Interfaces for extensions
9
9
  */
10
10
  // Export everything from implementation
11
- export * from './impl';
11
+ export * from './impl/index.js';
@@ -2,7 +2,7 @@
2
2
  * Navigation Guard
3
3
  * Interface for route navigation guards
4
4
  */
5
- import type { RouteConfig } from '../../api';
5
+ import type { RouteConfig } from '../../api/index.js';
6
6
  export type NavigationGuard = (to: RouteConfig, from: RouteConfig | null) => boolean | Promise<boolean>;
7
7
  export interface NavigationGuardContext {
8
8
  /** Route being navigated to */
@@ -2,5 +2,5 @@
2
2
  * Guards
3
3
  * Export all guard interfaces
4
4
  */
5
- export * from './NavigationGuard';
5
+ export * from './NavigationGuard.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,4 @@
2
2
  * Guards
3
3
  * Export all guard interfaces
4
4
  */
5
- export * from './NavigationGuard';
5
+ export * from './NavigationGuard.js';
@@ -2,7 +2,7 @@
2
2
  * Shell Hooks
3
3
  * Lifecycle hooks for shell customization
4
4
  */
5
- import type { ShellConfig, ShellContext } from '../../api';
5
+ import type { ShellConfig, ShellContext } from '../../api/index.js';
6
6
  export interface ShellLifecycleHooks {
7
7
  /**
8
8
  * Called before shell initialization
@@ -2,5 +2,5 @@
2
2
  * Hooks
3
3
  * Export all hook interfaces
4
4
  */
5
- export * from './ShellHooks';
5
+ export * from './ShellHooks.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,4 @@
2
2
  * Hooks
3
3
  * Export all hook interfaces
4
4
  */
5
- export * from './ShellHooks';
5
+ export * from './ShellHooks.js';
@@ -10,9 +10,9 @@
10
10
  * - Navigation guards
11
11
  * - Lifecycle hooks
12
12
  */
13
- export * from '../api';
14
- export * from './providers';
15
- export * from './guards';
16
- export * from './hooks';
17
- export * from './slots';
13
+ export * from '../api/index.js';
14
+ export * from './providers/index.js';
15
+ export * from './guards/index.js';
16
+ export * from './hooks/index.js';
17
+ export * from './slots/index.js';
18
18
  //# sourceMappingURL=index.d.ts.map
package/dist/spi/index.js CHANGED
@@ -11,12 +11,12 @@
11
11
  * - Lifecycle hooks
12
12
  */
13
13
  // Re-export API types that SPI depends on
14
- export * from '../api';
14
+ export * from '../api/index.js';
15
15
  // Export all providers
16
- export * from './providers';
16
+ export * from './providers/index.js';
17
17
  // Export all guards
18
- export * from './guards';
18
+ export * from './guards/index.js';
19
19
  // Export all hooks
20
- export * from './hooks';
20
+ export * from './hooks/index.js';
21
21
  // Export all slots
22
- export * from './slots';
22
+ export * from './slots/index.js';
@@ -2,7 +2,7 @@
2
2
  * Template Provider Interface
3
3
  * Extension point for custom layout templates
4
4
  */
5
- import type { LayoutSlot } from '../../api';
5
+ import type { LayoutSlot } from '../../api/index.js';
6
6
  export interface TemplateOptions {
7
7
  /** Template name/identifier */
8
8
  name: string;
@@ -2,7 +2,7 @@
2
2
  * Theme Provider Interface
3
3
  * Abstraction for theme application strategies (CSS variables, styled-components, etc.)
4
4
  */
5
- import type { ThemeMode, ThemeConfig } from '../../api';
5
+ import type { ThemeMode, ThemeConfig } from '../../api/index.js';
6
6
  export interface IThemeProvider {
7
7
  /**
8
8
  * Apply theme to the UI
@@ -2,8 +2,8 @@
2
2
  * Providers
3
3
  * Export all provider interfaces
4
4
  */
5
- export * from './IStorageProvider';
6
- export * from './IThemeProvider';
7
- export * from './IRouterStrategy';
8
- export * from './ITemplateProvider';
5
+ export * from './IStorageProvider.js';
6
+ export * from './IThemeProvider.js';
7
+ export * from './IRouterStrategy.js';
8
+ export * from './ITemplateProvider.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,7 @@
2
2
  * Providers
3
3
  * Export all provider interfaces
4
4
  */
5
- export * from './IStorageProvider';
6
- export * from './IThemeProvider';
7
- export * from './IRouterStrategy';
8
- export * from './ITemplateProvider';
5
+ export * from './IStorageProvider.js';
6
+ export * from './IThemeProvider.js';
7
+ export * from './IRouterStrategy.js';
8
+ export * from './ITemplateProvider.js';
@@ -2,7 +2,7 @@
2
2
  * Template Slot
3
3
  * Extension point for template customization
4
4
  */
5
- import type { LayoutSlot } from '../../api';
5
+ import type { LayoutSlot } from '../../api/index.js';
6
6
  export interface TemplateSlotRenderer {
7
7
  /**
8
8
  * Render function for slot content
@@ -2,6 +2,6 @@
2
2
  * Slots
3
3
  * Export all slot interfaces
4
4
  */
5
- export * from './LayoutSlotProvider';
6
- export * from './TemplateSlot';
5
+ export * from './LayoutSlotProvider.js';
6
+ export * from './TemplateSlot.js';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -2,5 +2,5 @@
2
2
  * Slots
3
3
  * Export all slot interfaces
4
4
  */
5
- export * from './LayoutSlotProvider';
6
- export * from './TemplateSlot';
5
+ export * from './LayoutSlotProvider.js';
6
+ export * from './TemplateSlot.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/ui-shell",
3
- "version": "0.5.1",
3
+ "version": "0.5.5",
4
4
  "description": "UI Shell Framework with theming, routing, and layout management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "access": "public"
45
45
  },
46
46
  "scripts": {
47
- "build": "tsc -p tsconfig.lib.json",
47
+ "build": "tsc -p tsconfig.lib.json && node ../../scripts/fix-esm-extensions.mjs ./dist",
48
48
  "clean": "rm -rf dist"
49
49
  },
50
50
  "keywords": [