@hamak/ui-shell-api 0.2.1 → 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.
- package/.turbo/turbo-build.log +2 -1
- package/dist/es2015/api/IFeatureManager.js +5 -0
- package/dist/es2015/api/ILayoutManager.js +5 -0
- package/dist/es2015/api/IRouter.js +5 -0
- package/dist/es2015/api/IShell.js +5 -0
- package/dist/es2015/api/IThemeManager.js +5 -0
- package/dist/es2015/api/index.js +9 -0
- package/dist/es2015/index.js +14 -0
- package/dist/es2015/tokens/index.js +5 -0
- package/dist/es2015/tokens/service-tokens.js +56 -0
- package/dist/es2015/types/event-types.js +5 -0
- package/dist/es2015/types/feature-types.js +26 -0
- package/dist/es2015/types/index.js +10 -0
- package/dist/es2015/types/layout-types.js +5 -0
- package/dist/es2015/types/route-types.js +5 -0
- package/dist/es2015/types/shell-context.js +5 -0
- package/dist/es2015/types/theme-types.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -3
- package/src/index.ts +1 -1
- package/tsconfig.es2015.json +24 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mtsc -p tsconfig.json && tsc -p tsconfig.es2015.json[0m
|
|
@@ -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,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,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';
|
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.2.
|
|
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.2.
|
|
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.
|
|
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
|
@@ -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
|
+
}
|