@hamak/ui-shell-api 0.10.1 → 0.12.0

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 (61) hide show
  1. package/package.json +2 -2
  2. package/dist/api/IFeatureManager.d.ts +0 -56
  3. package/dist/api/IFeatureManager.d.ts.map +0 -1
  4. package/dist/api/IFeatureManager.js +0 -5
  5. package/dist/api/ILayoutManager.d.ts +0 -40
  6. package/dist/api/ILayoutManager.d.ts.map +0 -1
  7. package/dist/api/ILayoutManager.js +0 -5
  8. package/dist/api/IRouter.d.ts +0 -40
  9. package/dist/api/IRouter.d.ts.map +0 -1
  10. package/dist/api/IRouter.js +0 -5
  11. package/dist/api/IShell.d.ts +0 -55
  12. package/dist/api/IShell.d.ts.map +0 -1
  13. package/dist/api/IShell.js +0 -5
  14. package/dist/api/IThemeManager.d.ts +0 -36
  15. package/dist/api/IThemeManager.d.ts.map +0 -1
  16. package/dist/api/IThemeManager.js +0 -5
  17. package/dist/api/index.d.ts +0 -10
  18. package/dist/api/index.d.ts.map +0 -1
  19. package/dist/api/index.js +0 -9
  20. package/dist/es2015/api/IFeatureManager.js +0 -5
  21. package/dist/es2015/api/ILayoutManager.js +0 -5
  22. package/dist/es2015/api/IRouter.js +0 -5
  23. package/dist/es2015/api/IShell.js +0 -5
  24. package/dist/es2015/api/IThemeManager.js +0 -5
  25. package/dist/es2015/api/index.js +0 -9
  26. package/dist/es2015/tokens/index.js +0 -5
  27. package/dist/es2015/tokens/service-tokens.js +0 -56
  28. package/dist/es2015/types/event-types.js +0 -5
  29. package/dist/es2015/types/feature-types.js +0 -26
  30. package/dist/es2015/types/index.js +0 -10
  31. package/dist/es2015/types/layout-types.js +0 -5
  32. package/dist/es2015/types/route-types.js +0 -5
  33. package/dist/es2015/types/shell-context.js +0 -5
  34. package/dist/es2015/types/theme-types.js +0 -5
  35. package/dist/tokens/index.d.ts +0 -6
  36. package/dist/tokens/index.d.ts.map +0 -1
  37. package/dist/tokens/index.js +0 -5
  38. package/dist/tokens/service-tokens.d.ts +0 -57
  39. package/dist/tokens/service-tokens.d.ts.map +0 -1
  40. package/dist/tokens/service-tokens.js +0 -56
  41. package/dist/types/event-types.d.ts +0 -14
  42. package/dist/types/event-types.d.ts.map +0 -1
  43. package/dist/types/event-types.js +0 -5
  44. package/dist/types/feature-types.d.ts +0 -26
  45. package/dist/types/feature-types.d.ts.map +0 -1
  46. package/dist/types/feature-types.js +0 -26
  47. package/dist/types/index.d.ts +0 -11
  48. package/dist/types/index.d.ts.map +0 -1
  49. package/dist/types/index.js +0 -10
  50. package/dist/types/layout-types.d.ts +0 -29
  51. package/dist/types/layout-types.d.ts.map +0 -1
  52. package/dist/types/layout-types.js +0 -5
  53. package/dist/types/route-types.d.ts +0 -22
  54. package/dist/types/route-types.d.ts.map +0 -1
  55. package/dist/types/route-types.js +0 -5
  56. package/dist/types/shell-context.d.ts +0 -34
  57. package/dist/types/shell-context.d.ts.map +0 -1
  58. package/dist/types/shell-context.js +0 -5
  59. package/dist/types/theme-types.d.ts +0 -13
  60. package/dist/types/theme-types.d.ts.map +0 -1
  61. package/dist/types/theme-types.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/ui-shell-api",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "[DEPRECATED] Use @hamak/ui-shell/api instead",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "author": "",
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@hamak/ui-shell": "*"
38
+ "@hamak/ui-shell": "^0.12.0"
39
39
  },
40
40
  "deprecated": "Use @hamak/ui-shell/api instead",
41
41
  "devDependencies": {
@@ -1,56 +0,0 @@
1
- /**
2
- * Feature Manager Interface
3
- * Public API contract for feature flag management
4
- */
5
- import type { FeatureFlags } from '../types/index.js';
6
- export interface IFeatureManager {
7
- /**
8
- * Check if a feature is enabled (boolean features)
9
- */
10
- isEnabled(key: string): boolean;
11
- /**
12
- * Get a feature value with optional default
13
- */
14
- get<T = any>(key: string, defaultValue?: T): T;
15
- /**
16
- * Set a feature value
17
- */
18
- set(key: string, value: any): void;
19
- /**
20
- * Enable a feature (set to true)
21
- */
22
- enable(key: string): void;
23
- /**
24
- * Disable a feature (set to false)
25
- */
26
- disable(key: string): void;
27
- /**
28
- * Toggle a boolean feature
29
- */
30
- toggle(key: string): void;
31
- /**
32
- * Update multiple features at once
33
- */
34
- update(updates: FeatureFlags): void;
35
- /**
36
- * Get all features
37
- */
38
- getAll(): Readonly<FeatureFlags>;
39
- /**
40
- * Check if a feature exists
41
- */
42
- has(key: string): boolean;
43
- /**
44
- * Subscribe to feature changes
45
- */
46
- subscribe(key: string, listener: (value: any) => void): () => void;
47
- /**
48
- * Subscribe to all feature changes
49
- */
50
- subscribeAll(listener: (key: string, value: any) => void): () => void;
51
- /**
52
- * Clean up resources
53
- */
54
- destroy(): void;
55
- }
56
- //# sourceMappingURL=IFeatureManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFeatureManager.d.ts","sourceRoot":"","sources":["../../src/api/IFeatureManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAEhC;;OAEG;IACH,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAE/C;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,MAAM,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEjC;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAEnE;;OAEG;IACH,YAAY,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAEtE;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Feature Manager Interface
3
- * Public API contract for feature flag management
4
- */
5
- export {};
@@ -1,40 +0,0 @@
1
- /**
2
- * Layout Manager Interface
3
- * Public API contract for layout management
4
- */
5
- import type { LayoutSlot, LayoutArea } from '../types/index.js';
6
- export interface ILayoutManager {
7
- /**
8
- * Register a layout slot
9
- */
10
- registerSlot(slot: LayoutSlot): () => void;
11
- /**
12
- * Unregister a layout slot
13
- */
14
- unregisterSlot(slot: LayoutSlot): void;
15
- /**
16
- * Get all slots for an area
17
- */
18
- getSlots(area: LayoutArea): LayoutSlot[];
19
- /**
20
- * Get all registered areas
21
- */
22
- getAreas(): LayoutArea[];
23
- /**
24
- * Check if an area has any slots
25
- */
26
- hasSlots(area: LayoutArea): boolean;
27
- /**
28
- * Subscribe to layout changes
29
- */
30
- subscribe(listener: () => void): () => void;
31
- /**
32
- * Clear all slots
33
- */
34
- clear(): void;
35
- /**
36
- * Clean up resources
37
- */
38
- destroy(): void;
39
- }
40
- //# sourceMappingURL=ILayoutManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ILayoutManager.d.ts","sourceRoot":"","sources":["../../src/api/ILayoutManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,IAAI,CAAC;IAE3C;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,EAAE,CAAC;IAEzC;;OAEG;IACH,QAAQ,IAAI,UAAU,EAAE,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;IAEpC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;IAE5C;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Layout Manager Interface
3
- * Public API contract for layout management
4
- */
5
- export {};
@@ -1,40 +0,0 @@
1
- /**
2
- * Router Interface
3
- * Public API contract for routing
4
- */
5
- import type { RouteConfig } from '../types/index.js';
6
- export interface IRouter {
7
- /**
8
- * Navigate to a path
9
- */
10
- push(path: string): Promise<boolean>;
11
- /**
12
- * Replace current route
13
- */
14
- replace(path: string): Promise<boolean>;
15
- /**
16
- * Go back in history
17
- */
18
- back(): void;
19
- /**
20
- * Go forward in history
21
- */
22
- forward(): void;
23
- /**
24
- * Get current route
25
- */
26
- getCurrentRoute(): RouteConfig | null;
27
- /**
28
- * Subscribe to route changes
29
- */
30
- subscribe(listener: (route: RouteConfig) => void): () => void;
31
- /**
32
- * Load a route component (lazy loading)
33
- */
34
- loadRouteComponent(route: RouteConfig): Promise<any>;
35
- /**
36
- * Clean up resources
37
- */
38
- destroy(): void;
39
- }
40
- //# sourceMappingURL=IRouter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IRouter.d.ts","sourceRoot":"","sources":["../../src/api/IRouter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAExC;;OAEG;IACH,IAAI,IAAI,IAAI,CAAC;IAEb;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;IAEhB;;OAEG;IACH,eAAe,IAAI,WAAW,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAE9D;;OAEG;IACH,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAErD;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Router Interface
3
- * Public API contract for routing
4
- */
5
- export {};
@@ -1,55 +0,0 @@
1
- /**
2
- * Shell Interface
3
- * Public API contract for the UI Shell
4
- */
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
- export interface IShell {
10
- /**
11
- * Initialize the shell
12
- */
13
- initialize(): Promise<void>;
14
- /**
15
- * Get shell context for consumers
16
- */
17
- getContext(): ShellContext;
18
- /**
19
- * Get theme manager
20
- */
21
- getThemeManager(): IThemeManager;
22
- /**
23
- * Get feature manager
24
- */
25
- getFeatureManager(): IFeatureManager;
26
- /**
27
- * Get router instance
28
- */
29
- getRouter(): IRouter | null;
30
- /**
31
- * Emit a shell event
32
- */
33
- emit(type: ShellEventType, payload?: any): void;
34
- /**
35
- * Subscribe to shell events
36
- */
37
- on(type: ShellEventType | '*', listener: ShellEventListener): () => void;
38
- /**
39
- * Unsubscribe from shell events
40
- */
41
- off(type: ShellEventType | '*', listener: ShellEventListener): void;
42
- /**
43
- * Check if shell is ready
44
- */
45
- ready(): boolean;
46
- /**
47
- * Get configuration
48
- */
49
- getConfig(): Readonly<ShellConfig>;
50
- /**
51
- * Clean up resources
52
- */
53
- destroy(): void;
54
- }
55
- //# sourceMappingURL=IShell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IShell.d.ts","sourceRoot":"","sources":["../../src/api/IShell.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAc,kBAAkB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;OAEG;IACH,UAAU,IAAI,YAAY,CAAC;IAE3B;;OAEG;IACH,eAAe,IAAI,aAAa,CAAC;IAEjC;;OAEG;IACH,iBAAiB,IAAI,eAAe,CAAC;IAErC;;OAEG;IACH,SAAS,IAAI,OAAO,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAEhD;;OAEG;IACH,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,GAAG,EAAE,QAAQ,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAAC;IAEzE;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,GAAG,EAAE,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEpE;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC;IAEnC;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Shell Interface
3
- * Public API contract for the UI Shell
4
- */
5
- export {};
@@ -1,36 +0,0 @@
1
- /**
2
- * Theme Manager Interface
3
- * Public API contract for theme management
4
- */
5
- import type { ThemeMode } from '../types/index.js';
6
- export interface IThemeManager {
7
- /**
8
- * Get the current theme mode
9
- */
10
- getTheme(): ThemeMode;
11
- /**
12
- * Get the resolved theme (converts 'system' to actual theme)
13
- */
14
- getResolvedTheme(): 'light' | 'dark';
15
- /**
16
- * Set the theme mode
17
- */
18
- setTheme(mode: ThemeMode): void;
19
- /**
20
- * Toggle between light and dark themes
21
- */
22
- toggleTheme(): void;
23
- /**
24
- * Subscribe to theme changes
25
- */
26
- subscribe(listener: (theme: ThemeMode) => void): () => void;
27
- /**
28
- * Apply custom CSS variables
29
- */
30
- setCSSVariables(variables: Record<string, string>): void;
31
- /**
32
- * Clean up resources
33
- */
34
- destroy(): void;
35
- }
36
- //# sourceMappingURL=IThemeManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IThemeManager.d.ts","sourceRoot":"","sources":["../../src/api/IThemeManager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,IAAI,SAAS,CAAC;IAEtB;;OAEG;IACH,gBAAgB,IAAI,OAAO,GAAG,MAAM,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,WAAW,IAAI,IAAI,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAE5D;;OAEG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Theme Manager Interface
3
- * Public API contract for theme management
4
- */
5
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * UI Shell API Interfaces
3
- * All public interface definitions
4
- */
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
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
package/dist/api/index.js DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * UI Shell API Interfaces
3
- * All public interface definitions
4
- */
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';
@@ -1,5 +0,0 @@
1
- /**
2
- * Feature Manager Interface
3
- * Public API contract for feature flag management
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Layout Manager Interface
3
- * Public API contract for layout management
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Router Interface
3
- * Public API contract for routing
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Shell Interface
3
- * Public API contract for the UI Shell
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Theme Manager Interface
3
- * Public API contract for theme management
4
- */
5
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * UI Shell API Interfaces
3
- * All public interface definitions
4
- */
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';
@@ -1,5 +0,0 @@
1
- /**
2
- * Tokens
3
- * Export all service tokens
4
- */
5
- export * from './service-tokens.js';
@@ -1,56 +0,0 @@
1
- /**
2
- * Service Tokens
3
- * Dependency injection tokens for shell services
4
- */
5
- /**
6
- * Token for Shell service
7
- */
8
- export const SHELL_TOKEN = Symbol('Shell');
9
- /**
10
- * Token for ThemeManager service
11
- */
12
- export const THEME_MANAGER_TOKEN = Symbol('ThemeManager');
13
- /**
14
- * Token for FeatureManager service
15
- */
16
- export const FEATURE_MANAGER_TOKEN = Symbol('FeatureManager');
17
- /**
18
- * Token for Router service
19
- */
20
- export const ROUTER_TOKEN = Symbol('Router');
21
- /**
22
- * Token for LayoutManager service
23
- */
24
- export const LAYOUT_MANAGER_TOKEN = Symbol('LayoutManager');
25
- /**
26
- * Shell command names
27
- */
28
- export const ShellCommands = {
29
- SET_THEME: 'shell.setTheme',
30
- TOGGLE_THEME: 'shell.toggleTheme',
31
- ENABLE_FEATURE: 'shell.enableFeature',
32
- DISABLE_FEATURE: 'shell.disableFeature',
33
- TOGGLE_FEATURE: 'shell.toggleFeature',
34
- NAVIGATE: 'shell.navigate',
35
- NAVIGATE_BACK: 'shell.navigateBack',
36
- };
37
- /**
38
- * Shell event names
39
- */
40
- export const ShellEvents = {
41
- READY: 'shell:ready',
42
- THEME_CHANGED: 'shell:theme-changed',
43
- FEATURE_TOGGLED: 'shell:feature-toggled',
44
- ROUTE_CHANGED: 'shell:route-changed',
45
- VIEWPORT_RESIZED: 'shell:viewport-resized',
46
- };
47
- /**
48
- * Shell view slot names
49
- */
50
- export const ShellViewSlots = {
51
- HEADER: 'shell.header',
52
- SIDEBAR: 'shell.sidebar',
53
- MAIN: 'shell.main',
54
- FOOTER: 'shell.footer',
55
- OVERLAY: 'shell.overlay',
56
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * Event Types
3
- * Type definitions for shell events
4
- */
5
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * Feature Types
3
- * Type definitions for feature flag management
4
- */
5
- /**
6
- * Common feature flag definitions
7
- */
8
- export const CommonFeatures = {
9
- // UI Features
10
- DARK_MODE: 'ui.darkMode',
11
- SIDEBAR: 'ui.sidebar',
12
- MOBILE_NAV: 'ui.mobileNav',
13
- BREADCRUMBS: 'ui.breadcrumbs',
14
- // Experimental Features
15
- SSR: 'experimental.ssr',
16
- STREAMING: 'experimental.streaming',
17
- LAZY_LOADING: 'experimental.lazyLoading',
18
- // User Features
19
- VOICE_MODE: 'user.voiceMode',
20
- ADVANCED_COMPOSER: 'user.advancedComposer',
21
- UPGRADE_PILLS: 'user.upgradePills',
22
- // Performance Features
23
- REQUEST_RETRY: 'performance.requestRetry',
24
- POLLING: 'performance.polling',
25
- CACHE: 'performance.cache',
26
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * UI Shell API Types
3
- * All public type definitions
4
- */
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';
@@ -1,5 +0,0 @@
1
- /**
2
- * Layout Types
3
- * Type definitions for layout and responsive design
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Route Types
3
- * Type definitions for routing
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Shell Context Types
3
- * Type definitions for shell context
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Theme Types
3
- * Type definitions for theme management
4
- */
5
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Tokens
3
- * Export all service tokens
4
- */
5
- export * from './service-tokens.js';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,kBAAkB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Tokens
3
- * Export all service tokens
4
- */
5
- export * from './service-tokens.js';
@@ -1,57 +0,0 @@
1
- /**
2
- * Service Tokens
3
- * Dependency injection tokens for shell services
4
- */
5
- /**
6
- * Token for Shell service
7
- */
8
- export declare const SHELL_TOKEN: unique symbol;
9
- /**
10
- * Token for ThemeManager service
11
- */
12
- export declare const THEME_MANAGER_TOKEN: unique symbol;
13
- /**
14
- * Token for FeatureManager service
15
- */
16
- export declare const FEATURE_MANAGER_TOKEN: unique symbol;
17
- /**
18
- * Token for Router service
19
- */
20
- export declare const ROUTER_TOKEN: unique symbol;
21
- /**
22
- * Token for LayoutManager service
23
- */
24
- export declare const LAYOUT_MANAGER_TOKEN: unique symbol;
25
- /**
26
- * Shell command names
27
- */
28
- export declare const ShellCommands: {
29
- readonly SET_THEME: "shell.setTheme";
30
- readonly TOGGLE_THEME: "shell.toggleTheme";
31
- readonly ENABLE_FEATURE: "shell.enableFeature";
32
- readonly DISABLE_FEATURE: "shell.disableFeature";
33
- readonly TOGGLE_FEATURE: "shell.toggleFeature";
34
- readonly NAVIGATE: "shell.navigate";
35
- readonly NAVIGATE_BACK: "shell.navigateBack";
36
- };
37
- /**
38
- * Shell event names
39
- */
40
- export declare const ShellEvents: {
41
- readonly READY: "shell:ready";
42
- readonly THEME_CHANGED: "shell:theme-changed";
43
- readonly FEATURE_TOGGLED: "shell:feature-toggled";
44
- readonly ROUTE_CHANGED: "shell:route-changed";
45
- readonly VIEWPORT_RESIZED: "shell:viewport-resized";
46
- };
47
- /**
48
- * Shell view slot names
49
- */
50
- export declare const ShellViewSlots: {
51
- readonly HEADER: "shell.header";
52
- readonly SIDEBAR: "shell.sidebar";
53
- readonly MAIN: "shell.main";
54
- readonly FOOTER: "shell.footer";
55
- readonly OVERLAY: "shell.overlay";
56
- };
57
- //# sourceMappingURL=service-tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-tokens.d.ts","sourceRoot":"","sources":["../../src/tokens/service-tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW,eAAkB,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,mBAAmB,eAAyB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAA2B,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,YAAY,eAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,oBAAoB,eAA0B,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;CAQhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC"}
@@ -1,56 +0,0 @@
1
- /**
2
- * Service Tokens
3
- * Dependency injection tokens for shell services
4
- */
5
- /**
6
- * Token for Shell service
7
- */
8
- export const SHELL_TOKEN = Symbol('Shell');
9
- /**
10
- * Token for ThemeManager service
11
- */
12
- export const THEME_MANAGER_TOKEN = Symbol('ThemeManager');
13
- /**
14
- * Token for FeatureManager service
15
- */
16
- export const FEATURE_MANAGER_TOKEN = Symbol('FeatureManager');
17
- /**
18
- * Token for Router service
19
- */
20
- export const ROUTER_TOKEN = Symbol('Router');
21
- /**
22
- * Token for LayoutManager service
23
- */
24
- export const LAYOUT_MANAGER_TOKEN = Symbol('LayoutManager');
25
- /**
26
- * Shell command names
27
- */
28
- export const ShellCommands = {
29
- SET_THEME: 'shell.setTheme',
30
- TOGGLE_THEME: 'shell.toggleTheme',
31
- ENABLE_FEATURE: 'shell.enableFeature',
32
- DISABLE_FEATURE: 'shell.disableFeature',
33
- TOGGLE_FEATURE: 'shell.toggleFeature',
34
- NAVIGATE: 'shell.navigate',
35
- NAVIGATE_BACK: 'shell.navigateBack',
36
- };
37
- /**
38
- * Shell event names
39
- */
40
- export const ShellEvents = {
41
- READY: 'shell:ready',
42
- THEME_CHANGED: 'shell:theme-changed',
43
- FEATURE_TOGGLED: 'shell:feature-toggled',
44
- ROUTE_CHANGED: 'shell:route-changed',
45
- VIEWPORT_RESIZED: 'shell:viewport-resized',
46
- };
47
- /**
48
- * Shell view slot names
49
- */
50
- export const ShellViewSlots = {
51
- HEADER: 'shell.header',
52
- SIDEBAR: 'shell.sidebar',
53
- MAIN: 'shell.main',
54
- FOOTER: 'shell.footer',
55
- OVERLAY: 'shell.overlay',
56
- };
@@ -1,14 +0,0 @@
1
- /**
2
- * Event Types
3
- * Type definitions for shell events
4
- */
5
- export type ShellEventType = 'theme:changed' | 'feature:toggled' | 'route:changed' | 'viewport:resized' | 'shell:ready' | 'shell:error';
6
- export interface ShellEvent {
7
- type: string;
8
- payload?: any;
9
- timestamp: number;
10
- }
11
- export interface ShellEventListener {
12
- (event: ShellEvent): void;
13
- }
14
- //# sourceMappingURL=event-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event-types.d.ts","sourceRoot":"","sources":["../../src/types/event-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,cAAc,GACtB,eAAe,GACf,iBAAiB,GACjB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,aAAa,CAAC;AAElB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3B"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Event Types
3
- * Type definitions for shell events
4
- */
5
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * Feature Types
3
- * Type definitions for feature flag management
4
- */
5
- export interface FeatureFlags {
6
- [key: string]: boolean | string | number | object;
7
- }
8
- /**
9
- * Common feature flag definitions
10
- */
11
- export declare const CommonFeatures: {
12
- readonly DARK_MODE: "ui.darkMode";
13
- readonly SIDEBAR: "ui.sidebar";
14
- readonly MOBILE_NAV: "ui.mobileNav";
15
- readonly BREADCRUMBS: "ui.breadcrumbs";
16
- readonly SSR: "experimental.ssr";
17
- readonly STREAMING: "experimental.streaming";
18
- readonly LAZY_LOADING: "experimental.lazyLoading";
19
- readonly VOICE_MODE: "user.voiceMode";
20
- readonly ADVANCED_COMPOSER: "user.advancedComposer";
21
- readonly UPGRADE_PILLS: "user.upgradePills";
22
- readonly REQUEST_RETRY: "performance.requestRetry";
23
- readonly POLLING: "performance.polling";
24
- readonly CACHE: "performance.cache";
25
- };
26
- //# sourceMappingURL=feature-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-types.d.ts","sourceRoot":"","sources":["../../src/types/feature-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAqBjB,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Feature Types
3
- * Type definitions for feature flag management
4
- */
5
- /**
6
- * Common feature flag definitions
7
- */
8
- export const CommonFeatures = {
9
- // UI Features
10
- DARK_MODE: 'ui.darkMode',
11
- SIDEBAR: 'ui.sidebar',
12
- MOBILE_NAV: 'ui.mobileNav',
13
- BREADCRUMBS: 'ui.breadcrumbs',
14
- // Experimental Features
15
- SSR: 'experimental.ssr',
16
- STREAMING: 'experimental.streaming',
17
- LAZY_LOADING: 'experimental.lazyLoading',
18
- // User Features
19
- VOICE_MODE: 'user.voiceMode',
20
- ADVANCED_COMPOSER: 'user.advancedComposer',
21
- UPGRADE_PILLS: 'user.upgradePills',
22
- // Performance Features
23
- REQUEST_RETRY: 'performance.requestRetry',
24
- POLLING: 'performance.polling',
25
- CACHE: 'performance.cache',
26
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * UI Shell API Types
3
- * All public type definitions
4
- */
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
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * UI Shell API Types
3
- * All public type definitions
4
- */
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';
@@ -1,29 +0,0 @@
1
- /**
2
- * Layout Types
3
- * Type definitions for layout and responsive design
4
- */
5
- export type LayoutArea = 'header' | 'sidebar' | 'main' | 'footer' | 'overlay';
6
- export interface LayoutSlot {
7
- /** Slot identifier */
8
- id: string;
9
- /** Slot position/area */
10
- area: LayoutArea;
11
- /** Slot priority for ordering */
12
- priority?: number;
13
- /** Optional metadata */
14
- meta?: Record<string, any>;
15
- }
16
- export interface ViewportInfo {
17
- width: number;
18
- height: number;
19
- isMobile: boolean;
20
- isTablet: boolean;
21
- isDesktop: boolean;
22
- }
23
- export type BreakpointName = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
24
- export interface Breakpoint {
25
- name: BreakpointName;
26
- minWidth: number;
27
- maxWidth?: number;
28
- }
29
- //# sourceMappingURL=layout-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-types.d.ts","sourceRoot":"","sources":["../../src/types/layout-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE9E,MAAM,WAAW,UAAU;IACzB,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEtE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Layout Types
3
- * Type definitions for layout and responsive design
4
- */
5
- export {};
@@ -1,22 +0,0 @@
1
- /**
2
- * Route Types
3
- * Type definitions for routing
4
- */
5
- export interface RouteConfig {
6
- path: string;
7
- /** Lazy-loaded component factory */
8
- component: () => Promise<any>;
9
- /** Route metadata */
10
- meta?: Record<string, any>;
11
- /** Child routes */
12
- children?: RouteConfig[];
13
- /** Route guards */
14
- beforeEnter?: (to: RouteConfig, from: RouteConfig) => boolean | Promise<boolean>;
15
- }
16
- export type RouterMode = 'history' | 'hash' | 'memory';
17
- export interface RouterOptions {
18
- routes: RouteConfig[];
19
- mode?: RouterMode;
20
- base?: string;
21
- }
22
- //# sourceMappingURL=route-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route-types.d.ts","sourceRoot":"","sources":["../../src/types/route-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,SAAS,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9B,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,mBAAmB;IACnB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,mBAAmB;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAClF;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Route Types
3
- * Type definitions for routing
4
- */
5
- export {};
@@ -1,34 +0,0 @@
1
- /**
2
- * Shell Context Types
3
- * Type definitions for shell context
4
- */
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
- export interface ShellConfig {
9
- /** Theme configuration */
10
- theme?: ThemeConfig;
11
- /** Feature flags and experimental configurations */
12
- features?: FeatureFlags;
13
- /** Enable server-side rendering */
14
- ssr?: boolean;
15
- /** Enable streaming rendering */
16
- streaming?: boolean;
17
- /** Custom shell metadata */
18
- metadata?: Record<string, any>;
19
- }
20
- export interface ShellContext {
21
- /** Current theme mode */
22
- theme: ThemeMode;
23
- /** Set theme mode */
24
- setTheme: (mode: ThemeMode) => void;
25
- /** Feature flags */
26
- features: FeatureFlags;
27
- /** Check if a feature is enabled */
28
- isFeatureEnabled: (key: string) => boolean;
29
- /** Get feature value */
30
- getFeature: <T = any>(key: string, defaultValue?: T) => T;
31
- /** Current viewport size */
32
- viewport: ViewportInfo;
33
- }
34
- //# sourceMappingURL=shell-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shell-context.d.ts","sourceRoot":"","sources":["../../src/types/shell-context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,0BAA0B;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,mCAAmC;IACnC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,iCAAiC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,qBAAqB;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,oBAAoB;IACpB,QAAQ,EAAE,YAAY,CAAC;IACvB,oCAAoC;IACpC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,wBAAwB;IACxB,UAAU,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAC1D,4BAA4B;IAC5B,QAAQ,EAAE,YAAY,CAAC;CACxB"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Shell Context Types
3
- * Type definitions for shell context
4
- */
5
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Theme Types
3
- * Type definitions for theme management
4
- */
5
- export type ThemeMode = 'light' | 'dark' | 'system';
6
- export interface ThemeConfig {
7
- mode: ThemeMode;
8
- /** Primary color scheme */
9
- primaryColor?: string;
10
- /** Custom CSS variables */
11
- cssVariables?: Record<string, string>;
12
- }
13
- //# sourceMappingURL=theme-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-types.d.ts","sourceRoot":"","sources":["../../src/types/theme-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Theme Types
3
- * Type definitions for theme management
4
- */
5
- export {};