@hamak/ui-shell-spi 0.2.1 → 0.2.3

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 @@
1
- $ tsc -p tsconfig.json
1
+ $ tsc -p tsconfig.json && tsc -p tsconfig.es2015.json
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Navigation Guard
3
+ * Interface for route navigation guards
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Guards
3
+ * Export all guard interfaces
4
+ */
5
+ export * from './NavigationGuard';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Shell Hooks
3
+ * Lifecycle hooks for shell customization
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Hooks
3
+ * Export all hook interfaces
4
+ */
5
+ export * from './ShellHooks';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * UI Shell SPI (Service Provider Interface)
3
+ * Extension points and provider interfaces for UI Shell customization
4
+ *
5
+ * Implement these interfaces to customize shell behavior:
6
+ * - Storage providers (localStorage, cookies, etc.)
7
+ * - Theme providers (CSS vars, styled-components, etc.)
8
+ * - Router strategies (history, hash, memory)
9
+ * - Layout templates
10
+ * - Navigation guards
11
+ * - Lifecycle hooks
12
+ */
13
+ export const version = '0.2.2';
14
+ // Export all providers
15
+ export * from './providers';
16
+ // Export all guards
17
+ export * from './guards';
18
+ // Export all hooks
19
+ export * from './hooks';
20
+ // Export all slots
21
+ export * from './slots';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Router Strategy Interface
3
+ * Abstraction for routing strategies (history, hash, memory)
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Storage Provider Interface
3
+ * Abstraction for storage mechanisms (localStorage, sessionStorage, cookies, etc.)
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Template Provider Interface
3
+ * Extension point for custom layout templates
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Theme Provider Interface
3
+ * Abstraction for theme application strategies (CSS variables, styled-components, etc.)
4
+ */
5
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Providers
3
+ * Export all provider interfaces
4
+ */
5
+ export * from './IStorageProvider';
6
+ export * from './IThemeProvider';
7
+ export * from './IRouterStrategy';
8
+ export * from './ITemplateProvider';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Layout Slot Provider
3
+ * Interface for dynamic layout slot registration
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Template Slot
3
+ * Extension point for template customization
4
+ */
5
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Slots
3
+ * Export all slot interfaces
4
+ */
5
+ export * from './LayoutSlotProvider';
6
+ export * from './TemplateSlot';
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * - Navigation guards
11
11
  * - Lifecycle hooks
12
12
  */
13
- export declare const version = "0.2.1";
13
+ export declare const version = "0.2.2";
14
14
  export * from './providers';
15
15
  export * from './guards';
16
16
  export * from './hooks';
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  * - Navigation guards
11
11
  * - Lifecycle hooks
12
12
  */
13
- export const version = '0.2.1';
13
+ export const version = '0.2.2';
14
14
  // Export all providers
15
15
  export * from './providers';
16
16
  // Export all guards
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/ui-shell-spi",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "UI Shell SPI - Service Provider Interfaces for UI shell",
@@ -16,17 +16,23 @@
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
  "dependencies": {
29
- "@hamak/ui-shell-api": "0.2.1"
35
+ "@hamak/ui-shell-api": "0.2.2"
30
36
  },
31
37
  "devDependencies": {
32
38
  "typescript": "~5.4.0"
package/src/index.ts CHANGED
@@ -11,7 +11,7 @@
11
11
  * - Lifecycle hooks
12
12
  */
13
13
 
14
- export const version = '0.2.1';
14
+ export const version = '0.2.2';
15
15
 
16
16
  // Export all providers
17
17
  export * from './providers';
@@ -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
+ }