@hamak/ui-shell-api 0.2.0 → 0.2.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.
@@ -1 +1,2 @@
1
- $ tsc -p tsconfig.json
1
+
2
+ $ tsc -p tsconfig.json && tsc -p tsconfig.es2015.json
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Feature Manager Interface
3
+ * Public API contract for feature flag management
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Layout Manager Interface
3
+ * Public API contract for layout management
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Router Interface
3
+ * Public API contract for routing
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Shell Interface
3
+ * Public API contract for the UI Shell
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Theme Manager Interface
3
+ * Public API contract for theme management
4
+ */
5
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * UI Shell API Interfaces
3
+ * All public interface definitions
4
+ */
5
+ export * from './IShell';
6
+ export * from './IThemeManager';
7
+ export * from './IFeatureManager';
8
+ export * from './IRouter';
9
+ export * from './ILayoutManager';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * UI Shell API
3
+ * Public API surface for the UI Shell framework
4
+ *
5
+ * This package contains only type definitions and interfaces.
6
+ * Import implementations from @hamak/ui-shell-impl
7
+ */
8
+ export const version = '0.2.2';
9
+ // Export all types
10
+ export * from './types';
11
+ // Export all API interfaces
12
+ export * from './api';
13
+ // Export service tokens
14
+ export * from './tokens';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Tokens
3
+ * Export all service tokens
4
+ */
5
+ export * from './service-tokens';
@@ -0,0 +1,56 @@
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
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Event Types
3
+ * Type definitions for shell events
4
+ */
5
+ export {};
@@ -0,0 +1,26 @@
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
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * UI Shell API Types
3
+ * All public type definitions
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';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Layout Types
3
+ * Type definitions for layout and responsive design
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Route Types
3
+ * Type definitions for routing
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Shell Context Types
3
+ * Type definitions for shell context
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Theme Types
3
+ * Type definitions for theme management
4
+ */
5
+ export {};
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * This package contains only type definitions and interfaces.
6
6
  * Import implementations from @hamak/ui-shell-impl
7
7
  */
8
- export declare const version = "0.1.0";
8
+ export declare const version = "0.2.2";
9
9
  export * from './types';
10
10
  export * from './api';
11
11
  export * from './tokens';
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * This package contains only type definitions and interfaces.
6
6
  * Import implementations from @hamak/ui-shell-impl
7
7
  */
8
- export const version = '0.1.0';
8
+ export const version = '0.2.2';
9
9
  // Export all types
10
10
  export * from './types';
11
11
  // Export all API interfaces
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/ui-shell-api",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "UI Shell API - Core UI shell interfaces",
@@ -16,13 +16,19 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "tsc -p tsconfig.json",
19
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.es2015.json",
20
20
  "clean": "rm -rf dist"
21
21
  },
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
- "import": "./dist/index.js"
25
+ "import": "./dist/index.js",
26
+ "default": "./dist/index.js",
27
+ "legacy": "./dist/es2015/index.js"
28
+ },
29
+ "./es2015": {
30
+ "import": "./dist/es2015/index.js",
31
+ "default": "./dist/es2015/index.js"
26
32
  }
27
33
  },
28
34
  "devDependencies": {
package/src/index.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * Import implementations from @hamak/ui-shell-impl
7
7
  */
8
8
 
9
- export const version = '0.1.0';
9
+ export const version = '0.2.2';
10
10
 
11
11
  // Export all types
12
12
  export * from './types';
@@ -0,0 +1,24 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "ES2015",
5
+ "lib": [
6
+ "ES2015",
7
+ "DOM",
8
+ "DOM.Iterable"
9
+ ],
10
+ "outDir": "dist/es2015",
11
+ "declaration": false,
12
+ "declarationMap": false,
13
+ "sourceMap": false,
14
+ "downlevelIteration": true,
15
+ "composite": false
16
+ },
17
+ "include": [
18
+ "src/**/*"
19
+ ],
20
+ "exclude": [
21
+ "node_modules",
22
+ "dist"
23
+ ]
24
+ }