@hamak/ui-shell 0.5.2 → 0.5.6
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/dist/api/api/IFeatureManager.d.ts +1 -1
- package/dist/api/api/ILayoutManager.d.ts +1 -1
- package/dist/api/api/IRouter.d.ts +1 -1
- package/dist/api/api/IShell.d.ts +4 -4
- package/dist/api/api/IThemeManager.d.ts +1 -1
- package/dist/api/api/index.d.ts +5 -5
- package/dist/api/api/index.js +5 -5
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.js +3 -3
- package/dist/api/tokens/index.d.ts +1 -1
- package/dist/api/tokens/index.js +1 -1
- package/dist/api/types/index.d.ts +6 -6
- package/dist/api/types/index.js +6 -6
- package/dist/api/types/shell-context.d.ts +3 -3
- package/dist/impl/core/DefaultFeatureManager.d.ts +2 -2
- package/dist/impl/core/DefaultLayoutManager.d.ts +2 -2
- package/dist/impl/core/DefaultRouter.d.ts +4 -4
- package/dist/impl/core/DefaultShell.d.ts +2 -2
- package/dist/impl/core/DefaultShell.js +4 -4
- package/dist/impl/core/DefaultThemeManager.d.ts +3 -3
- package/dist/impl/core/index.d.ts +5 -5
- package/dist/impl/core/index.js +5 -5
- package/dist/impl/index.d.ts +9 -9
- package/dist/impl/index.js +8 -8
- package/dist/impl/plugin/ShellPluginFactory.d.ts +2 -2
- package/dist/impl/plugin/ShellPluginFactory.js +3 -3
- package/dist/impl/plugin/index.d.ts +1 -1
- package/dist/impl/plugin/index.js +1 -1
- package/dist/impl/providers/CSSVariablesThemeProvider.d.ts +2 -2
- package/dist/impl/providers/HashRouterStrategy.d.ts +1 -1
- package/dist/impl/providers/HistoryRouterStrategy.d.ts +1 -1
- package/dist/impl/providers/LocalStorageProvider.d.ts +1 -1
- package/dist/impl/providers/MemoryStorageProvider.d.ts +1 -1
- package/dist/impl/providers/index.d.ts +5 -5
- package/dist/impl/providers/index.js +5 -5
- package/dist/impl/utils/index.d.ts +1 -1
- package/dist/impl/utils/index.js +1 -1
- package/dist/impl/utils/viewport-utils.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/spi/guards/NavigationGuard.d.ts +1 -1
- package/dist/spi/guards/index.d.ts +1 -1
- package/dist/spi/guards/index.js +1 -1
- package/dist/spi/hooks/ShellHooks.d.ts +1 -1
- package/dist/spi/hooks/index.d.ts +1 -1
- package/dist/spi/hooks/index.js +1 -1
- package/dist/spi/index.d.ts +5 -5
- package/dist/spi/index.js +5 -5
- package/dist/spi/providers/ITemplateProvider.d.ts +1 -1
- package/dist/spi/providers/IThemeProvider.d.ts +1 -1
- package/dist/spi/providers/index.d.ts +4 -4
- package/dist/spi/providers/index.js +4 -4
- package/dist/spi/slots/TemplateSlot.d.ts +1 -1
- package/dist/spi/slots/index.d.ts +2 -2
- package/dist/spi/slots/index.js +2 -2
- 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
|
package/dist/api/api/IShell.d.ts
CHANGED
|
@@ -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
|
package/dist/api/api/index.d.ts
CHANGED
|
@@ -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
|
package/dist/api/api/index.js
CHANGED
|
@@ -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';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/api/tokens/index.js
CHANGED
|
@@ -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
|
package/dist/api/types/index.js
CHANGED
|
@@ -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
|
package/dist/impl/core/index.js
CHANGED
|
@@ -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';
|
package/dist/impl/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/impl/index.js
CHANGED
|
@@ -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,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';
|
package/dist/impl/utils/index.js
CHANGED
|
@@ -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
package/dist/index.js
CHANGED
|
@@ -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 */
|
package/dist/spi/guards/index.js
CHANGED
|
@@ -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
|
package/dist/spi/hooks/index.js
CHANGED
package/dist/spi/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/spi/slots/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/ui-shell",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
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": [
|