beestate 0.1.10 → 0.1.12
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/@types/InternalStore.d.ts +17 -10
- package/dist/@types/StoreProvider.d.ts +3 -8
- package/dist/@types/constants.d.ts +3 -0
- package/dist/@types/createStore.d.ts +5 -2
- package/dist/@types/createStoreRegistry.d.ts +9 -6
- package/dist/@types/createUsePropSelector.d.ts +3 -0
- package/dist/@types/createUsePropSelectorAll.d.ts +3 -0
- package/dist/@types/createUseStore.d.ts +2 -4
- package/dist/@types/ensureInternalStore.d.ts +6 -0
- package/dist/@types/index.d.ts +3 -4
- package/dist/@types/pickPropAll.d.ts +3 -0
- package/dist/@types/types/DeferredAction.d.ts +7 -0
- package/dist/@types/types/InitInstance.d.ts +3 -3
- package/dist/@types/types/InitializedStateLink.d.ts +11 -0
- package/dist/@types/types/InitializedStoreInstance.d.ts +5 -0
- package/dist/@types/types/InstanceKeyStateLink.d.ts +11 -0
- package/dist/@types/types/InternalStore/ApplyState.d.ts +5 -0
- package/dist/@types/types/InternalStore/Dispatch.d.ts +1 -1
- package/dist/@types/types/InternalStore/EnsureInstance.d.ts +4 -0
- package/dist/@types/types/InternalStore/GetInitializedInstance.d.ts +6 -0
- package/dist/@types/types/InternalStore/GetInstance.d.ts +6 -0
- package/dist/@types/types/InternalStore/GetUninitializedInstance.d.ts +6 -0
- package/dist/@types/types/InternalStore/InitInstance.d.ts +2 -4
- package/dist/@types/types/InternalStore/IsInitialized.d.ts +4 -0
- package/dist/@types/types/InternalStore/Listener.d.ts +1 -1
- package/dist/@types/types/InternalStore/ListenerAll.d.ts +1 -1
- package/dist/@types/types/InternalStore/PruneInstance.d.ts +4 -0
- package/dist/@types/types/InternalStore/ResetInstance.d.ts +3 -3
- package/dist/@types/types/InternalStoreProps.d.ts +2 -2
- package/dist/@types/types/ReducerMap.d.ts +2 -2
- package/dist/@types/types/RegisterDefaultInstance.d.ts +3 -3
- package/dist/@types/types/RegisterInstance.d.ts +3 -3
- package/dist/@types/types/ResetInstance.d.ts +2 -3
- package/dist/@types/types/Store.d.ts +4 -0
- package/dist/@types/types/StoreContextValue.d.ts +6 -0
- package/dist/@types/types/StoreInstance.d.ts +8 -0
- package/dist/@types/types/StoreProviderProps.d.ts +10 -0
- package/dist/@types/types/StoreRegistry.d.ts +2 -2
- package/dist/@types/types/UninitializedStoreInstance.d.ts +5 -0
- package/dist/@types/types/UseProp.d.ts +4 -0
- package/dist/@types/types/UsePropSelector.d.ts +11 -0
- package/dist/@types/types/UsePropSelectorAll.d.ts +7 -0
- package/dist/cjs/index.cjs.js +353 -210
- package/dist/esm/index.esm.js +353 -212
- package/package.json +1 -1
- package/dist/@types/createStoreController.d.ts +0 -6
- package/dist/@types/createUseSelector.d.ts +0 -1
- package/dist/@types/types/InitPayload.d.ts +0 -3
- package/dist/@types/types/ResetPayload.d.ts +0 -3
- package/dist/@types/types/StoreController.d.ts +0 -10
- package/dist/@types/types/StoreInstanceController.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { InternalStoreProps } from './types/InternalStoreProps.tsx';
|
|
2
|
-
import type { ReducerMap } from './types/ReducerMap.tsx';
|
|
3
|
-
import type { StoreController } from './types/StoreController.tsx';
|
|
4
|
-
import type { StoreRegistry } from './types/StoreRegistry.tsx';
|
|
5
|
-
import type { StoreState } from './types/StoreState.tsx';
|
|
6
|
-
export declare function createStoreController<TStoreState extends StoreState = StoreState, TReducerMap extends ReducerMap<TStoreState> = ReducerMap<TStoreState>>(storeRegistry: StoreRegistry, internalStoreProps: InternalStoreProps<string, TStoreState, TReducerMap>): StoreController<TStoreState, TReducerMap>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createUseSelector(): any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InternalStore } from '../InternalStore.tsx';
|
|
2
|
-
import type { InstanceKey } from './InstanceKey.tsx';
|
|
3
|
-
import type { ReducerMap } from './ReducerMap.tsx';
|
|
4
|
-
import type { StoreInstanceController } from './StoreInstanceController.tsx';
|
|
5
|
-
import type { StoreState } from './StoreState.tsx';
|
|
6
|
-
export type StoreController<TStoreState extends StoreState = StoreState, TReducerMap extends ReducerMap<TStoreState> = ReducerMap<TStoreState>> = {
|
|
7
|
-
internalStore: InternalStore<TStoreState, TReducerMap>;
|
|
8
|
-
instances: Record<InstanceKey, StoreInstanceController<TStoreState, Parameters<TReducerMap[`$$reset`]>[1]>>;
|
|
9
|
-
earlySubscribers: Record<InstanceKey, (() => void)[]>;
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StoreState } from './StoreState.tsx';
|
|
2
|
-
import type { Payload } from './Payload.tsx';
|
|
3
|
-
import type { Reducer } from './Reducer.tsx';
|
|
4
|
-
export type StoreInstanceController<TStoreState extends StoreState = StoreState, TResetPayload extends void | Payload = void | Payload> = {
|
|
5
|
-
owners: symbol[];
|
|
6
|
-
resetState: (resetPayload: TResetPayload, resetReducer: Reducer<TStoreState, TResetPayload>) => void;
|
|
7
|
-
};
|