@hamak/ui-store-impl 0.5.2 → 0.5.5

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.
@@ -8,7 +8,7 @@
8
8
  * 4. Handles retries on failure
9
9
  */
10
10
  import { AutosaveActionTypes, autosaveActions, DEFAULT_AUTOSAVE_CONFIG, } from '@hamak/ui-store-api';
11
- import { resolveAutosaveConfig, getNodeAtPath, pathToKey, } from './autosave-config-resolver';
11
+ import { resolveAutosaveConfig, getNodeAtPath, pathToKey, } from './autosave-config-resolver.js';
12
12
  /**
13
13
  * Content change action types to monitor
14
14
  */
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Autosave Implementation
3
3
  */
4
- export * from './autosave-registry';
5
- export * from './autosave-config-resolver';
6
- export * from './autosave-middleware';
7
- export * from './autosave-sync-middleware';
4
+ export * from './autosave-registry.js';
5
+ export * from './autosave-config-resolver.js';
6
+ export * from './autosave-middleware.js';
7
+ export * from './autosave-sync-middleware.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Autosave Implementation
3
3
  */
4
- export * from './autosave-registry';
5
- export * from './autosave-config-resolver';
6
- export * from './autosave-middleware';
7
- export * from './autosave-sync-middleware';
4
+ export * from './autosave-registry.js';
5
+ export * from './autosave-config-resolver.js';
6
+ export * from './autosave-middleware.js';
7
+ export * from './autosave-sync-middleware.js';
@@ -1,4 +1,4 @@
1
- export * from './store-manager';
2
- export * from './middleware-registry';
3
- export * from './reducer-registry';
1
+ export * from './store-manager.js';
2
+ export * from './middleware-registry.js';
3
+ export * from './reducer-registry.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './store-manager';
2
- export * from './middleware-registry';
3
- export * from './reducer-registry';
1
+ export * from './store-manager.js';
2
+ export * from './middleware-registry.js';
3
+ export * from './reducer-registry.js';
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import { type Store, type Reducer } from '@reduxjs/toolkit';
5
5
  import type { IStoreManager, StoreConfig, RootState, AppAction } from '@hamak/ui-store-api';
6
- import { MiddlewareRegistry } from './middleware-registry';
7
- import { ReducerRegistry } from './reducer-registry';
6
+ import { MiddlewareRegistry } from './middleware-registry.js';
7
+ import { ReducerRegistry } from './reducer-registry.js';
8
8
  export declare class StoreManager implements IStoreManager {
9
9
  private store;
10
10
  private middlewareRegistry;
@@ -2,8 +2,8 @@
2
2
  * Store Manager Implementation
3
3
  */
4
4
  import { configureStore } from '@reduxjs/toolkit';
5
- import { MiddlewareRegistry } from './middleware-registry';
6
- import { ReducerRegistry } from './reducer-registry';
5
+ import { MiddlewareRegistry } from './middleware-registry.js';
6
+ import { ReducerRegistry } from './reducer-registry.js';
7
7
  export class StoreManager {
8
8
  constructor() {
9
9
  this.store = null;
@@ -17,7 +17,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
17
17
  });
18
18
  };
19
19
  import { AutosaveActionTypes, autosaveActions, DEFAULT_AUTOSAVE_CONFIG, } from '@hamak/ui-store-api';
20
- import { resolveAutosaveConfig, getNodeAtPath, pathToKey, } from './autosave-config-resolver';
20
+ import { resolveAutosaveConfig, getNodeAtPath, pathToKey, } from './autosave-config-resolver.js';
21
21
  /**
22
22
  * Content change action types to monitor
23
23
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Autosave Implementation
3
3
  */
4
- export * from './autosave-registry';
5
- export * from './autosave-config-resolver';
6
- export * from './autosave-middleware';
7
- export * from './autosave-sync-middleware';
4
+ export * from './autosave-registry.js';
5
+ export * from './autosave-config-resolver.js';
6
+ export * from './autosave-middleware.js';
7
+ export * from './autosave-sync-middleware.js';
@@ -1,3 +1,3 @@
1
- export * from './store-manager';
2
- export * from './middleware-registry';
3
- export * from './reducer-registry';
1
+ export * from './store-manager.js';
2
+ export * from './middleware-registry.js';
3
+ export * from './reducer-registry.js';
@@ -2,8 +2,8 @@
2
2
  * Store Manager Implementation
3
3
  */
4
4
  import { configureStore } from '@reduxjs/toolkit';
5
- import { MiddlewareRegistry } from './middleware-registry';
6
- import { ReducerRegistry } from './reducer-registry';
5
+ import { MiddlewareRegistry } from './middleware-registry.js';
6
+ import { ReducerRegistry } from './reducer-registry.js';
7
7
  export class StoreManager {
8
8
  constructor() {
9
9
  this.store = null;
@@ -1,8 +1,8 @@
1
1
  import { fileSystemNodeInitialState } from '@hamak/ui-store-api';
2
2
  import { pathSteps } from '@hamak/shared-utils';
3
- import { DataUpdater } from '../utils/data-updater';
3
+ import { DataUpdater } from '../utils/data-updater.js';
4
4
  import { produce, current, isDraft, original } from 'immer';
5
- import { deepEqual } from '../utils/deep-equal';
5
+ import { deepEqual } from '../utils/deep-equal.js';
6
6
  // Re-export path utilities from shared-utils for internal use
7
7
  export { pathSteps, parentPathSteps } from '@hamak/shared-utils';
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { FileSystemCommandHandler, pathSteps } from '../commands/fs-commands';
2
+ import { FileSystemCommandHandler, pathSteps } from '../commands/fs-commands.js';
3
3
  import { fileSystemNodeInitialState } from '@hamak/ui-store-api';
4
4
  /**
5
5
  * Factory function to create a FileSystemAdapter
@@ -1,11 +1,11 @@
1
1
  // Core filesystem functionality
2
- export * from './core/fs-adapter';
3
- export * from './core/fs-facade';
2
+ export * from './core/fs-adapter.js';
3
+ export * from './core/fs-facade.js';
4
4
  // Commands
5
- export * from './commands/fs-commands';
6
- export * from './commands/structure-commands';
5
+ export * from './commands/fs-commands.js';
6
+ export * from './commands/structure-commands.js';
7
7
  // Re-export path utilities from shared-utils for backward compatibility
8
8
  export { pathSteps, parentPathSteps } from '@hamak/shared-utils';
9
9
  // Utilities
10
- export * from './utils/data-updater';
11
- export * from './utils/deep-equal';
10
+ export * from './utils/data-updater.js';
11
+ export * from './utils/deep-equal.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Middleware Export
3
3
  */
4
- export * from './event-bridge-middleware';
5
- export * from './logger-middleware';
4
+ export * from './event-bridge-middleware.js';
5
+ export * from './logger-middleware.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Plugin Export
3
3
  */
4
- export * from './store-plugin-factory';
4
+ export * from './store-plugin-factory.js';
@@ -12,10 +12,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
12
12
  });
13
13
  };
14
14
  import { STORE_MANAGER_TOKEN, MIDDLEWARE_REGISTRY_TOKEN, REDUCER_REGISTRY_TOKEN, STORE_EXTENSIONS_TOKEN, } from '@hamak/ui-store-api';
15
- import { StoreManager } from '../core/store-manager';
16
- import { createEventBridgeMiddleware, createLoggerMiddleware, } from '../middleware';
17
- import { applyStoreExtensions, createStoreExtensionsCollector, } from '../extensions/store-extensions';
18
- import { createFileSystemAdapter } from '../fs/core/fs-adapter';
15
+ import { StoreManager } from '../core/store-manager.js';
16
+ import { createEventBridgeMiddleware, createLoggerMiddleware, } from '../middleware/index.js';
17
+ import { applyStoreExtensions, createStoreExtensionsCollector, } from '../extensions/store-extensions.js';
18
+ import { createFileSystemAdapter } from '../fs/core/fs-adapter.js';
19
19
  // DI token for filesystem adapter
20
20
  export const FILESYSTEM_ADAPTER_TOKEN = 'FILESYSTEM_ADAPTER';
21
21
  export function createStorePlugin(config = {}) {
@@ -1,6 +1,6 @@
1
1
  import { FileNode, FileSystemNode, FileSystemState, FileContentSchema } from '@hamak/ui-store-api';
2
- import { StructureNodeCommand } from './structure-commands';
3
- import { DataUpdater } from '../utils/data-updater';
2
+ import { StructureNodeCommand } from './structure-commands.js';
3
+ import { DataUpdater } from '../utils/data-updater.js';
4
4
  /**
5
5
  * Base interface for filesystem commands
6
6
  */
@@ -1,8 +1,8 @@
1
1
  import { fileSystemNodeInitialState } from '@hamak/ui-store-api';
2
2
  import { pathSteps } from '@hamak/shared-utils';
3
- import { DataUpdater } from '../utils/data-updater';
3
+ import { DataUpdater } from '../utils/data-updater.js';
4
4
  import { produce, current, isDraft, original } from 'immer';
5
- import { deepEqual } from '../utils/deep-equal';
5
+ import { deepEqual } from '../utils/deep-equal.js';
6
6
  // Re-export path utilities from shared-utils for internal use
7
7
  export { pathSteps, parentPathSteps } from '@hamak/shared-utils';
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  import { Action } from '@reduxjs/toolkit';
2
- import { FileSystemCommand, FileSystemCommandHandler } from '../commands/fs-commands';
2
+ import { FileSystemCommand, FileSystemCommandHandler } from '../commands/fs-commands.js';
3
3
  import { FileSystemNode, FileSystemState, FileContentSchema, FileSystemNodeActionParams, Selector } from '@hamak/ui-store-api';
4
- import { StructureNodeCommand } from '../commands/structure-commands';
4
+ import { StructureNodeCommand } from '../commands/structure-commands.js';
5
5
  /**
6
6
  * Action interface for filesystem operations
7
7
  */
@@ -1,5 +1,5 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { FileSystemCommandHandler, pathSteps } from '../commands/fs-commands';
2
+ import { FileSystemCommandHandler, pathSteps } from '../commands/fs-commands.js';
3
3
  import { fileSystemNodeInitialState } from '@hamak/ui-store-api';
4
4
  /**
5
5
  * Factory function to create a FileSystemAdapter
@@ -1,5 +1,5 @@
1
1
  import { FileNode, FileSystemNode, FileSystemState, Selector } from '@hamak/ui-store-api';
2
- import { FileSystemAdapter, FileSystemNodeActions } from './fs-adapter';
2
+ import { FileSystemAdapter, FileSystemNodeActions } from './fs-adapter.js';
3
3
  import { Path, Pathway, PathwayResolver, RelativePathwayResolver } from '@hamak/shared-utils';
4
4
  /**
5
5
  * Selector that returns a FileSystemNode generally the root of the Filesystem Overlay
@@ -1,8 +1,8 @@
1
- export * from './core/fs-adapter';
2
- export * from './core/fs-facade';
3
- export * from './commands/fs-commands';
4
- export * from './commands/structure-commands';
1
+ export * from './core/fs-adapter.js';
2
+ export * from './core/fs-facade.js';
3
+ export * from './commands/fs-commands.js';
4
+ export * from './commands/structure-commands.js';
5
5
  export { pathSteps, parentPathSteps } from '@hamak/shared-utils';
6
- export * from './utils/data-updater';
7
- export * from './utils/deep-equal';
6
+ export * from './utils/data-updater.js';
7
+ export * from './utils/deep-equal.js';
8
8
  //# sourceMappingURL=index.d.ts.map
package/dist/fs/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // Core filesystem functionality
2
- export * from './core/fs-adapter';
3
- export * from './core/fs-facade';
2
+ export * from './core/fs-adapter.js';
3
+ export * from './core/fs-facade.js';
4
4
  // Commands
5
- export * from './commands/fs-commands';
6
- export * from './commands/structure-commands';
5
+ export * from './commands/fs-commands.js';
6
+ export * from './commands/structure-commands.js';
7
7
  // Re-export path utilities from shared-utils for backward compatibility
8
8
  export { pathSteps, parentPathSteps } from '@hamak/shared-utils';
9
9
  // Utilities
10
- export * from './utils/data-updater';
11
- export * from './utils/deep-equal';
10
+ export * from './utils/data-updater.js';
11
+ export * from './utils/deep-equal.js';
@@ -1,5 +1,5 @@
1
1
  import { Itinerary, StackElement } from '@hamak/shared-utils';
2
- import { UnitaryStructureNodeCommand, BatchUpdateStructureNodeCommand } from '../commands/structure-commands';
2
+ import { UnitaryStructureNodeCommand, BatchUpdateStructureNodeCommand } from '../commands/structure-commands.js';
3
3
  /**
4
4
  * DataUpdater class handles operations on data structures using itineraries
5
5
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Middleware Export
3
3
  */
4
- export * from './event-bridge-middleware';
5
- export * from './logger-middleware';
4
+ export * from './event-bridge-middleware.js';
5
+ export * from './logger-middleware.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Middleware Export
3
3
  */
4
- export * from './event-bridge-middleware';
5
- export * from './logger-middleware';
4
+ export * from './event-bridge-middleware.js';
5
+ export * from './logger-middleware.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Plugin Export
3
3
  */
4
- export * from './store-plugin-factory';
4
+ export * from './store-plugin-factory.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Plugin Export
3
3
  */
4
- export * from './store-plugin-factory';
4
+ export * from './store-plugin-factory.js';
@@ -3,10 +3,10 @@
3
3
  * Creates a microkernel plugin for Redux store management
4
4
  */
5
5
  import { STORE_MANAGER_TOKEN, MIDDLEWARE_REGISTRY_TOKEN, REDUCER_REGISTRY_TOKEN, STORE_EXTENSIONS_TOKEN, } from '@hamak/ui-store-api';
6
- import { StoreManager } from '../core/store-manager';
7
- import { createEventBridgeMiddleware, createLoggerMiddleware, } from '../middleware';
8
- import { applyStoreExtensions, createStoreExtensionsCollector, } from '../extensions/store-extensions';
9
- import { createFileSystemAdapter } from '../fs/core/fs-adapter';
6
+ import { StoreManager } from '../core/store-manager.js';
7
+ import { createEventBridgeMiddleware, createLoggerMiddleware, } from '../middleware/index.js';
8
+ import { applyStoreExtensions, createStoreExtensionsCollector, } from '../extensions/store-extensions.js';
9
+ import { createFileSystemAdapter } from '../fs/core/fs-adapter.js';
10
10
  // DI token for filesystem adapter
11
11
  export const FILESYSTEM_ADAPTER_TOKEN = 'FILESYSTEM_ADAPTER';
12
12
  export function createStorePlugin(config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/ui-store-impl",
3
- "version": "0.5.2",
3
+ "version": "0.5.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "DEPRECATED: Use @hamak/ui-store instead",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "deprecated": "Use @hamak/ui-store instead",
22
22
  "scripts": {
23
- "build": "tsc -p tsconfig.json",
23
+ "build": "tsc -p tsconfig.json && node ../../../scripts/fix-esm-extensions.mjs ./dist",
24
24
  "clean": "rm -rf dist"
25
25
  },
26
26
  "exports": {