@hamak/ui-store-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.
@@ -1 +1,2 @@
1
- $ tsc -p tsconfig.json
1
+
2
+ $ tsc -p tsconfig.json && tsc -p tsconfig.es2015.json
@@ -0,0 +1,6 @@
1
+ /**
2
+ * API Interfaces Export
3
+ */
4
+ export * from './store-manager';
5
+ export * from './middleware-registry';
6
+ export * from './reducer-registry';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Middleware Registry Interface
3
+ * Extension point for plugins to contribute middleware
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Reducer Registry Interface
3
+ * Allows dynamic reducer registration and hot replacement
4
+ */
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Store Manager Interface
3
+ * Main orchestrator for Redux store management
4
+ */
5
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * UI Store API
3
+ * Public interfaces, types, and tokens for Redux state management
4
+ */
5
+ export * from './types';
6
+ export * from './api';
7
+ export * from './tokens';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Tokens Export
3
+ */
4
+ export * from './service-tokens';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Dependency Injection Tokens
3
+ * Used for service resolution in the microkernel
4
+ */
5
+ export const STORE_MANAGER_TOKEN = Symbol('StoreManager');
6
+ export const MIDDLEWARE_REGISTRY_TOKEN = Symbol('MiddlewareRegistry');
7
+ export const REDUCER_REGISTRY_TOKEN = Symbol('ReducerRegistry');
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Type Definitions Export
3
+ */
4
+ export * from './store-types';
5
+ export * from './middleware-types';
6
+ export * from './reducer-types';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Middleware Type Definitions
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reducer Type Definitions
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Store Type Definitions
3
+ */
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/ui-store-api",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "UI Store API - Redux store interfaces and contracts",
@@ -16,7 +16,7 @@
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
  "test": "vitest run",
22
22
  "test:watch": "vitest"
@@ -24,7 +24,13 @@
24
24
  "exports": {
25
25
  ".": {
26
26
  "types": "./dist/index.d.ts",
27
- "import": "./dist/index.js"
27
+ "import": "./dist/index.js",
28
+ "default": "./dist/index.js",
29
+ "legacy": "./dist/es2015/index.js"
30
+ },
31
+ "./es2015": {
32
+ "import": "./dist/es2015/index.js",
33
+ "default": "./dist/es2015/index.js"
28
34
  }
29
35
  },
30
36
  "dependencies": {
@@ -0,0 +1,23 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "ES2015",
5
+ "lib": [
6
+ "ES2015"
7
+ ],
8
+ "outDir": "./dist/es2015",
9
+ "declaration": false,
10
+ "declarationMap": false,
11
+ "sourceMap": false,
12
+ "downlevelIteration": true,
13
+ "composite": false
14
+ },
15
+ "include": [
16
+ "src/**/*"
17
+ ],
18
+ "exclude": [
19
+ "node_modules",
20
+ "dist",
21
+ "**/*.test.ts"
22
+ ]
23
+ }