@hamak/ui-store 0.5.2 → 0.5.6
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/dist/api/api/index.d.ts +3 -3
- package/dist/api/api/index.js +3 -3
- package/dist/api/api/middleware-registry.d.ts +1 -1
- package/dist/api/api/reducer-registry.d.ts +1 -1
- package/dist/api/api/store-manager.d.ts +3 -3
- package/dist/api/autosave/autosave-action-factory.d.ts +2 -2
- package/dist/api/autosave/autosave-action-factory.js +1 -1
- package/dist/api/autosave/autosave-action-types.d.ts +1 -1
- package/dist/api/autosave/index.d.ts +3 -3
- package/dist/api/autosave/index.js +3 -3
- package/dist/api/fs/index.d.ts +2 -2
- package/dist/api/fs/index.js +2 -2
- package/dist/api/index.d.ts +5 -5
- package/dist/api/index.js +5 -5
- package/dist/api/tokens/index.d.ts +1 -1
- package/dist/api/tokens/index.js +1 -1
- package/dist/api/types/extension-types.d.ts +1 -1
- package/dist/api/types/index.d.ts +4 -4
- package/dist/api/types/index.js +4 -4
- package/dist/impl/autosave/autosave-config-resolver.d.ts +1 -1
- package/dist/impl/autosave/autosave-config-resolver.js +1 -1
- package/dist/impl/autosave/autosave-middleware.d.ts +2 -2
- package/dist/impl/autosave/autosave-middleware.js +2 -2
- package/dist/impl/autosave/autosave-registry.d.ts +1 -1
- package/dist/impl/autosave/autosave-sync-middleware.d.ts +1 -1
- package/dist/impl/autosave/autosave-sync-middleware.js +1 -1
- package/dist/impl/autosave/index.d.ts +4 -4
- package/dist/impl/autosave/index.js +4 -4
- package/dist/impl/core/index.d.ts +3 -3
- package/dist/impl/core/index.js +3 -3
- package/dist/impl/core/middleware-registry.d.ts +1 -1
- package/dist/impl/core/reducer-registry.d.ts +1 -1
- package/dist/impl/core/store-manager.d.ts +3 -3
- package/dist/impl/core/store-manager.js +2 -2
- package/dist/impl/extensions/store-extensions.d.ts +1 -1
- package/dist/impl/fs/commands/fs-commands.d.ts +3 -3
- package/dist/impl/fs/commands/fs-commands.js +3 -3
- package/dist/impl/fs/core/fs-adapter.d.ts +3 -3
- package/dist/impl/fs/core/fs-adapter.js +2 -2
- package/dist/impl/fs/core/fs-facade.d.ts +2 -2
- package/dist/impl/fs/index.d.ts +6 -6
- package/dist/impl/fs/index.js +6 -6
- package/dist/impl/fs/utils/data-updater.d.ts +1 -1
- package/dist/impl/index.d.ts +7 -7
- package/dist/impl/index.js +7 -7
- package/dist/impl/middleware/index.d.ts +2 -2
- package/dist/impl/middleware/index.js +2 -2
- package/dist/impl/plugin/index.d.ts +1 -1
- package/dist/impl/plugin/index.js +1 -1
- package/dist/impl/plugin/store-plugin-factory.d.ts +1 -1
- package/dist/impl/plugin/store-plugin-factory.js +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/spi/autosave/i-autosave-registry.d.ts +1 -1
- package/dist/spi/autosave/index.d.ts +2 -2
- package/dist/spi/autosave/index.js +2 -2
- package/dist/spi/index.d.ts +4 -4
- package/dist/spi/index.js +4 -4
- package/dist/spi/middleware/index.d.ts +1 -1
- package/dist/spi/middleware/index.js +1 -1
- package/dist/spi/middleware/middleware-provider.d.ts +1 -1
- package/dist/spi/persistence/index.d.ts +1 -1
- package/dist/spi/persistence/index.js +1 -1
- package/package.json +2 -2
package/dist/api/api/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* API Interfaces Export
|
|
3
3
|
*/
|
|
4
|
-
export * from './store-manager';
|
|
5
|
-
export * from './middleware-registry';
|
|
6
|
-
export * from './reducer-registry';
|
|
4
|
+
export * from './store-manager.js';
|
|
5
|
+
export * from './middleware-registry.js';
|
|
6
|
+
export * from './reducer-registry.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/api/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* API Interfaces Export
|
|
3
3
|
*/
|
|
4
|
-
export * from './store-manager';
|
|
5
|
-
export * from './middleware-registry';
|
|
6
|
-
export * from './reducer-registry';
|
|
4
|
+
export * from './store-manager.js';
|
|
5
|
+
export * from './middleware-registry.js';
|
|
6
|
+
export * from './reducer-registry.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Extension point for plugins to contribute middleware
|
|
4
4
|
*/
|
|
5
5
|
import type { Middleware } from 'redux';
|
|
6
|
-
import type { MiddlewareRegistration } from '../types';
|
|
6
|
+
import type { MiddlewareRegistration } from '../types/index.js';
|
|
7
7
|
export interface IMiddlewareRegistry {
|
|
8
8
|
/**
|
|
9
9
|
* Register a middleware
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Allows dynamic reducer registration and hot replacement
|
|
4
4
|
*/
|
|
5
5
|
import type { Reducer } from 'redux';
|
|
6
|
-
import type { ReducerMap, ReducerRegistration } from '../types';
|
|
6
|
+
import type { ReducerMap, ReducerRegistration } from '../types/index.js';
|
|
7
7
|
export interface IReducerRegistry {
|
|
8
8
|
/**
|
|
9
9
|
* Register a reducer for a state slice key
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Main orchestrator for Redux store management
|
|
4
4
|
*/
|
|
5
5
|
import type { Store, Reducer, Action } from 'redux';
|
|
6
|
-
import type { StoreConfig, RootState, AppAction } from '../types';
|
|
7
|
-
import type { IMiddlewareRegistry } from './middleware-registry';
|
|
8
|
-
import type { IReducerRegistry } from './reducer-registry';
|
|
6
|
+
import type { StoreConfig, RootState, AppAction } from '../types/index.js';
|
|
7
|
+
import type { IMiddlewareRegistry } from './middleware-registry.js';
|
|
8
|
+
import type { IReducerRegistry } from './reducer-registry.js';
|
|
9
9
|
export interface IStoreManager {
|
|
10
10
|
/**
|
|
11
11
|
* Get the Redux store instance
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Factory for creating autosave actions.
|
|
5
5
|
*/
|
|
6
6
|
import type { AnyAction } from 'redux';
|
|
7
|
-
import type { AutosaveConfig } from './autosave-types';
|
|
8
|
-
import { type SetAutosaveConfigAction, type ClearAutosaveConfigAction, type ChangeDetectedAction, type DebounceExpiredAction, type SaveStartedAction, type SaveSucceededAction, type SaveFailedAction, type RetryScheduledAction, type FlushPendingAction, type FlushAllPendingAction, type CancelPendingAction, type AutosaveAction } from './autosave-action-types';
|
|
7
|
+
import type { AutosaveConfig } from './autosave-types.js';
|
|
8
|
+
import { type SetAutosaveConfigAction, type ClearAutosaveConfigAction, type ChangeDetectedAction, type DebounceExpiredAction, type SaveStartedAction, type SaveSucceededAction, type SaveFailedAction, type RetryScheduledAction, type FlushPendingAction, type FlushAllPendingAction, type CancelPendingAction, type AutosaveAction } from './autosave-action-types.js';
|
|
9
9
|
/**
|
|
10
10
|
* Factory class for creating autosave actions
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Actual saves are performed by plugin providers using their own actions
|
|
6
6
|
* (e.g., PUT_REQUEST for remote-fs, UPDATE_ENTITY for remote-resource).
|
|
7
7
|
*/
|
|
8
|
-
import type { AutosaveConfig, AutosaveError } from './autosave-types';
|
|
8
|
+
import type { AutosaveConfig, AutosaveError } from './autosave-types.js';
|
|
9
9
|
/**
|
|
10
10
|
* Autosave action type constants
|
|
11
11
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Public API for autosave functionality.
|
|
5
5
|
*/
|
|
6
|
-
export * from './autosave-types';
|
|
7
|
-
export * from './autosave-action-types';
|
|
8
|
-
export * from './autosave-action-factory';
|
|
6
|
+
export * from './autosave-types.js';
|
|
7
|
+
export * from './autosave-action-types.js';
|
|
8
|
+
export * from './autosave-action-factory.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Public API for autosave functionality.
|
|
5
5
|
*/
|
|
6
|
-
export * from './autosave-types';
|
|
7
|
-
export * from './autosave-action-types';
|
|
8
|
-
export * from './autosave-action-factory';
|
|
6
|
+
export * from './autosave-types.js';
|
|
7
|
+
export * from './autosave-action-types.js';
|
|
8
|
+
export * from './autosave-action-factory.js';
|
package/dist/api/fs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { FileSystemNode, DirectoryNode, FileNode, FileSystemNodeBase, FileSystemNodeState, FileMemoState, FileSystemState, FileContentSchema } from '@hamak/shared-utils';
|
|
2
2
|
export { fileSystemNodeInitialState } from '@hamak/shared-utils';
|
|
3
|
-
export * from './contracts/filesystem-manager.contract';
|
|
4
|
-
export * from './contracts/filesystem-facade.contract';
|
|
3
|
+
export * from './contracts/filesystem-manager.contract.js';
|
|
4
|
+
export * from './contracts/filesystem-facade.contract.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/fs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { fileSystemNodeInitialState } from '@hamak/shared-utils';
|
|
2
2
|
// Filesystem contracts
|
|
3
|
-
export * from './contracts/filesystem-manager.contract';
|
|
4
|
-
export * from './contracts/filesystem-facade.contract';
|
|
3
|
+
export * from './contracts/filesystem-manager.contract.js';
|
|
4
|
+
export * from './contracts/filesystem-facade.contract.js';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* UI Store API
|
|
3
3
|
* Public interfaces, types, and tokens for Redux state management
|
|
4
4
|
*/
|
|
5
|
-
export * from './types';
|
|
6
|
-
export * from './api';
|
|
7
|
-
export * from './tokens';
|
|
8
|
-
export * from './fs';
|
|
9
|
-
export * from './autosave';
|
|
5
|
+
export * from './types/index.js';
|
|
6
|
+
export * from './api/index.js';
|
|
7
|
+
export * from './tokens/index.js';
|
|
8
|
+
export * from './fs/index.js';
|
|
9
|
+
export * from './autosave/index.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* UI Store API
|
|
3
3
|
* Public interfaces, types, and tokens for Redux state management
|
|
4
4
|
*/
|
|
5
|
-
export * from './types';
|
|
6
|
-
export * from './api';
|
|
7
|
-
export * from './tokens';
|
|
8
|
-
export * from './fs';
|
|
9
|
-
export * from './autosave';
|
|
5
|
+
export * from './types/index.js';
|
|
6
|
+
export * from './api/index.js';
|
|
7
|
+
export * from './tokens/index.js';
|
|
8
|
+
export * from './fs/index.js';
|
|
9
|
+
export * from './autosave/index.js';
|
package/dist/api/tokens/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Store extension types
|
|
3
3
|
*/
|
|
4
4
|
import type { Reducer } from 'redux';
|
|
5
|
-
import type { MiddlewareRegistration } from './middleware-types';
|
|
5
|
+
import type { MiddlewareRegistration } from './middleware-types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Middleware contribution matches registry entries
|
|
8
8
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type Definitions Export
|
|
3
3
|
*/
|
|
4
|
-
export * from './store-types';
|
|
5
|
-
export * from './middleware-types';
|
|
6
|
-
export * from './reducer-types';
|
|
7
|
-
export * from './extension-types';
|
|
4
|
+
export * from './store-types.js';
|
|
5
|
+
export * from './middleware-types.js';
|
|
6
|
+
export * from './reducer-types.js';
|
|
7
|
+
export * from './extension-types.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/types/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type Definitions Export
|
|
3
3
|
*/
|
|
4
|
-
export * from './store-types';
|
|
5
|
-
export * from './middleware-types';
|
|
6
|
-
export * from './reducer-types';
|
|
7
|
-
export * from './extension-types';
|
|
4
|
+
export * from './store-types.js';
|
|
5
|
+
export * from './middleware-types.js';
|
|
6
|
+
export * from './reducer-types.js';
|
|
7
|
+
export * from './extension-types.js';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 3. Default config
|
|
9
9
|
*/
|
|
10
10
|
import type { FileSystemNode, DirectoryNode } from '@hamak/shared-utils';
|
|
11
|
-
import { type AutosaveConfig, type AutosaveExtensionState } from '../../api';
|
|
11
|
+
import { type AutosaveConfig, type AutosaveExtensionState } from '../../api/index.js';
|
|
12
12
|
/**
|
|
13
13
|
* Get autosave extension state from a node
|
|
14
14
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* 2. Parent folder config (recursive, respects inherit flag)
|
|
8
8
|
* 3. Default config
|
|
9
9
|
*/
|
|
10
|
-
import { AUTOSAVE_EXTENSION_KEY, DEFAULT_AUTOSAVE_CONFIG, } from '../../api';
|
|
10
|
+
import { AUTOSAVE_EXTENSION_KEY, DEFAULT_AUTOSAVE_CONFIG, } from '../../api/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Get autosave extension state from a node
|
|
13
13
|
*/
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* 4. Handles retries on failure
|
|
9
9
|
*/
|
|
10
10
|
import type { Middleware } from 'redux';
|
|
11
|
-
import type { IAutosaveProviderRegistry, AutosaveResult } from '../../spi';
|
|
12
|
-
import { type AutosaveConfig } from '../../api';
|
|
11
|
+
import type { IAutosaveProviderRegistry, AutosaveResult } from '../../spi/index.js';
|
|
12
|
+
import { type AutosaveConfig } from '../../api/index.js';
|
|
13
13
|
/**
|
|
14
14
|
* Autosave middleware configuration
|
|
15
15
|
*/
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* 3. Delegates save operations to registered providers
|
|
8
8
|
* 4. Handles retries on failure
|
|
9
9
|
*/
|
|
10
|
-
import { AutosaveActionTypes, autosaveActions, DEFAULT_AUTOSAVE_CONFIG, } from '../../api';
|
|
11
|
-
import { resolveAutosaveConfig, getNodeAtPath, pathToKey, } from './autosave-config-resolver';
|
|
10
|
+
import { AutosaveActionTypes, autosaveActions, DEFAULT_AUTOSAVE_CONFIG, } from '../../api/index.js';
|
|
11
|
+
import { resolveAutosaveConfig, getNodeAtPath, pathToKey, } from './autosave-config-resolver.js';
|
|
12
12
|
/**
|
|
13
13
|
* Content change action types to monitor
|
|
14
14
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Autosave Provider Registry Implementation
|
|
3
3
|
*/
|
|
4
4
|
import type { FileSystemNode } from '@hamak/shared-utils';
|
|
5
|
-
import type { IAutosaveProvider, IAutosaveProviderRegistry } from '../../spi';
|
|
5
|
+
import type { IAutosaveProvider, IAutosaveProviderRegistry } from '../../spi/index.js';
|
|
6
6
|
export declare class AutosaveProviderRegistry implements IAutosaveProviderRegistry {
|
|
7
7
|
private providers;
|
|
8
8
|
register(provider: IAutosaveProvider): void;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* state so components can display autosave status.
|
|
7
7
|
*/
|
|
8
8
|
import type { Middleware, AnyAction } from 'redux';
|
|
9
|
-
import { type AutosaveExtensionState } from '../../api';
|
|
9
|
+
import { type AutosaveExtensionState } from '../../api/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* Autosave sync middleware configuration
|
|
12
12
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This middleware runs after the main autosave middleware and updates the
|
|
6
6
|
* state so components can display autosave status.
|
|
7
7
|
*/
|
|
8
|
-
import { AutosaveActionTypes, autosaveActions, } from '../../api';
|
|
8
|
+
import { AutosaveActionTypes, autosaveActions, } from '../../api/index.js';
|
|
9
9
|
/**
|
|
10
10
|
* Create autosave sync middleware
|
|
11
11
|
*/
|
|
@@ -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
|
package/dist/impl/core/index.js
CHANGED
|
@@ -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,7 +2,7 @@
|
|
|
2
2
|
* Middleware Registry Implementation
|
|
3
3
|
*/
|
|
4
4
|
import type { Middleware } from 'redux';
|
|
5
|
-
import type { IMiddlewareRegistry, MiddlewareRegistration } from '../../api';
|
|
5
|
+
import type { IMiddlewareRegistry, MiddlewareRegistration } from '../../api/index.js';
|
|
6
6
|
export declare class MiddlewareRegistry implements IMiddlewareRegistry {
|
|
7
7
|
private registrations;
|
|
8
8
|
private locked;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reducer Registry Implementation
|
|
3
3
|
*/
|
|
4
4
|
import { type Reducer } from 'redux';
|
|
5
|
-
import type { IReducerRegistry, ReducerMap, ReducerRegistration } from '../../api';
|
|
5
|
+
import type { IReducerRegistry, ReducerMap, ReducerRegistration } from '../../api/index.js';
|
|
6
6
|
export declare class ReducerRegistry implements IReducerRegistry {
|
|
7
7
|
private reducers;
|
|
8
8
|
private onReducerChange?;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Store Manager Implementation
|
|
3
3
|
*/
|
|
4
4
|
import { type Store, type Reducer } from '@reduxjs/toolkit';
|
|
5
|
-
import type { IStoreManager, StoreConfig, RootState, AppAction } from '../../api';
|
|
6
|
-
import { MiddlewareRegistry } from './middleware-registry';
|
|
7
|
-
import { ReducerRegistry } from './reducer-registry';
|
|
5
|
+
import type { IStoreManager, StoreConfig, RootState, AppAction } from '../../api/index.js';
|
|
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
|
Object.defineProperty(this, "store", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Store extensions collector
|
|
3
3
|
*/
|
|
4
|
-
import type { IMiddlewareRegistry, IReducerRegistry, StoreExtensionsRegistry, StorePluginExtensions } from '../../api';
|
|
4
|
+
import type { IMiddlewareRegistry, IReducerRegistry, StoreExtensionsRegistry, StorePluginExtensions } from '../../api/index.js';
|
|
5
5
|
interface StoreExtensionsEntry {
|
|
6
6
|
source: string;
|
|
7
7
|
extensions: StorePluginExtensions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FileNode, FileSystemNode, FileSystemState, FileContentSchema } from '../../../api';
|
|
2
|
-
import { StructureNodeCommand } from './structure-commands';
|
|
3
|
-
import { DataUpdater } from '../utils/data-updater';
|
|
1
|
+
import { FileNode, FileSystemNode, FileSystemState, FileContentSchema } from '../../../api/index.js';
|
|
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
|
-
import { fileSystemNodeInitialState } from '../../../api';
|
|
1
|
+
import { fileSystemNodeInitialState } from '../../../api/index.js';
|
|
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 { FileSystemCommandHandler } from '../commands/fs-commands';
|
|
3
|
-
import { FileSystemNode, FileSystemState, FileContentSchema, FileSystemNodeActionParams, FileSystemNodeAction, Selector } from '../../../api';
|
|
4
|
-
import { StructureNodeCommand } from '../commands/structure-commands';
|
|
2
|
+
import { FileSystemCommandHandler } from '../commands/fs-commands.js';
|
|
3
|
+
import { FileSystemNode, FileSystemState, FileContentSchema, FileSystemNodeActionParams, FileSystemNodeAction, Selector } from '../../../api/index.js';
|
|
4
|
+
import { StructureNodeCommand } from '../commands/structure-commands.js';
|
|
5
5
|
/**
|
|
6
6
|
* Factory function to create a FileSystemAdapter
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
-
import { FileSystemCommandHandler, pathSteps } from '../commands/fs-commands';
|
|
3
|
-
import { fileSystemNodeInitialState } from '../../../api';
|
|
2
|
+
import { FileSystemCommandHandler, pathSteps } from '../commands/fs-commands.js';
|
|
3
|
+
import { fileSystemNodeInitialState } from '../../../api/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* Factory function to create a FileSystemAdapter
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileNode, FileSystemNode, FileSystemState, Selector } from '../../../api';
|
|
2
|
-
import { FileSystemAdapter, FileSystemNodeActions } from './fs-adapter';
|
|
1
|
+
import { FileNode, FileSystemNode, FileSystemState, Selector } from '../../../api/index.js';
|
|
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
|
package/dist/impl/fs/index.d.ts
CHANGED
|
@@ -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/impl/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
|
*/
|
package/dist/impl/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* UI Store Implementation
|
|
3
3
|
* Concrete implementations of Redux store management
|
|
4
4
|
*/
|
|
5
|
-
export * from '../api';
|
|
6
|
-
export * from '../spi';
|
|
7
|
-
export * from './core';
|
|
8
|
-
export * from './middleware';
|
|
9
|
-
export * from './plugin';
|
|
10
|
-
export * from './fs';
|
|
11
|
-
export * from './autosave';
|
|
5
|
+
export * from '../api/index.js';
|
|
6
|
+
export * from '../spi/index.js';
|
|
7
|
+
export * from './core/index.js';
|
|
8
|
+
export * from './middleware/index.js';
|
|
9
|
+
export * from './plugin/index.js';
|
|
10
|
+
export * from './fs/index.js';
|
|
11
|
+
export * from './autosave/index.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/impl/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Concrete implementations of Redux store management
|
|
4
4
|
*/
|
|
5
5
|
// Re-export API and SPI for convenience
|
|
6
|
-
export * from '../api';
|
|
7
|
-
export * from '../spi';
|
|
8
|
-
export * from './core';
|
|
9
|
-
export * from './middleware';
|
|
10
|
-
export * from './plugin';
|
|
11
|
-
export * from './fs';
|
|
12
|
-
export * from './autosave';
|
|
6
|
+
export * from '../api/index.js';
|
|
7
|
+
export * from '../spi/index.js';
|
|
8
|
+
export * from './core/index.js';
|
|
9
|
+
export * from './middleware/index.js';
|
|
10
|
+
export * from './plugin/index.js';
|
|
11
|
+
export * from './fs/index.js';
|
|
12
|
+
export * from './autosave/index.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Creates a microkernel plugin for Redux store management
|
|
4
4
|
*/
|
|
5
5
|
import type { PluginModule } from '@hamak/microkernel-spi';
|
|
6
|
-
import { type StorePluginExtensions } from '../../api';
|
|
6
|
+
import { type StorePluginExtensions } from '../../api/index.js';
|
|
7
7
|
export declare const FILESYSTEM_ADAPTER_TOKEN = "FILESYSTEM_ADAPTER";
|
|
8
8
|
export interface StorePluginConfig extends StorePluginExtensions {
|
|
9
9
|
/** Enable Redux DevTools integration */
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Store Plugin Factory
|
|
3
3
|
* Creates a microkernel plugin for Redux store management
|
|
4
4
|
*/
|
|
5
|
-
import { STORE_MANAGER_TOKEN, MIDDLEWARE_REGISTRY_TOKEN, REDUCER_REGISTRY_TOKEN, STORE_EXTENSIONS_TOKEN, } from '../../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';
|
|
5
|
+
import { STORE_MANAGER_TOKEN, MIDDLEWARE_REGISTRY_TOKEN, REDUCER_REGISTRY_TOKEN, STORE_EXTENSIONS_TOKEN, } from '../../api/index.js';
|
|
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/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* the appropriate provider for each file.
|
|
7
7
|
*/
|
|
8
8
|
import type { FileSystemNode } from '@hamak/shared-utils';
|
|
9
|
-
import type { IAutosaveProvider } from './i-autosave-provider';
|
|
9
|
+
import type { IAutosaveProvider } from './i-autosave-provider.js';
|
|
10
10
|
/**
|
|
11
11
|
* Registry for autosave providers
|
|
12
12
|
*/
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Service Provider Interfaces for autosave functionality.
|
|
5
5
|
*/
|
|
6
|
-
export * from './i-autosave-provider';
|
|
7
|
-
export * from './i-autosave-registry';
|
|
6
|
+
export * from './i-autosave-provider.js';
|
|
7
|
+
export * from './i-autosave-registry.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/spi/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* UI Store SPI
|
|
3
3
|
* Service Provider Interfaces for Redux store extensions
|
|
4
4
|
*/
|
|
5
|
-
export * from '../api';
|
|
6
|
-
export * from './middleware';
|
|
7
|
-
export * from './persistence';
|
|
8
|
-
export * from './autosave';
|
|
5
|
+
export * from '../api/index.js';
|
|
6
|
+
export * from './middleware/index.js';
|
|
7
|
+
export * from './persistence/index.js';
|
|
8
|
+
export * from './autosave/index.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/spi/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Service Provider Interfaces for Redux store extensions
|
|
4
4
|
*/
|
|
5
5
|
// Re-export API for convenience
|
|
6
|
-
export * from '../api';
|
|
7
|
-
export * from './middleware';
|
|
8
|
-
export * from './persistence';
|
|
9
|
-
export * from './autosave';
|
|
6
|
+
export * from '../api/index.js';
|
|
7
|
+
export * from './middleware/index.js';
|
|
8
|
+
export * from './persistence/index.js';
|
|
9
|
+
export * from './autosave/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './middleware-provider';
|
|
1
|
+
export * from './middleware-provider.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './middleware-provider';
|
|
1
|
+
export * from './middleware-provider.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './persistence-provider';
|
|
1
|
+
export * from './persistence-provider.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './persistence-provider';
|
|
1
|
+
export * from './persistence-provider.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamak/ui-store",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Redux store management for microkernel-based applications",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "tsc -p tsconfig.lib.json",
|
|
22
|
+
"build": "tsc -p tsconfig.lib.json && node ../../scripts/fix-esm-extensions.mjs ./dist",
|
|
23
23
|
"clean": "rm -rf dist",
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:watch": "vitest"
|