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.
Files changed (51) hide show
  1. package/dist/@types/InternalStore.d.ts +17 -10
  2. package/dist/@types/StoreProvider.d.ts +3 -8
  3. package/dist/@types/constants.d.ts +3 -0
  4. package/dist/@types/createStore.d.ts +5 -2
  5. package/dist/@types/createStoreRegistry.d.ts +9 -6
  6. package/dist/@types/createUsePropSelector.d.ts +3 -0
  7. package/dist/@types/createUsePropSelectorAll.d.ts +3 -0
  8. package/dist/@types/createUseStore.d.ts +2 -4
  9. package/dist/@types/ensureInternalStore.d.ts +6 -0
  10. package/dist/@types/index.d.ts +3 -4
  11. package/dist/@types/pickPropAll.d.ts +3 -0
  12. package/dist/@types/types/DeferredAction.d.ts +7 -0
  13. package/dist/@types/types/InitInstance.d.ts +3 -3
  14. package/dist/@types/types/InitializedStateLink.d.ts +11 -0
  15. package/dist/@types/types/InitializedStoreInstance.d.ts +5 -0
  16. package/dist/@types/types/InstanceKeyStateLink.d.ts +11 -0
  17. package/dist/@types/types/InternalStore/ApplyState.d.ts +5 -0
  18. package/dist/@types/types/InternalStore/Dispatch.d.ts +1 -1
  19. package/dist/@types/types/InternalStore/EnsureInstance.d.ts +4 -0
  20. package/dist/@types/types/InternalStore/GetInitializedInstance.d.ts +6 -0
  21. package/dist/@types/types/InternalStore/GetInstance.d.ts +6 -0
  22. package/dist/@types/types/InternalStore/GetUninitializedInstance.d.ts +6 -0
  23. package/dist/@types/types/InternalStore/InitInstance.d.ts +2 -4
  24. package/dist/@types/types/InternalStore/IsInitialized.d.ts +4 -0
  25. package/dist/@types/types/InternalStore/Listener.d.ts +1 -1
  26. package/dist/@types/types/InternalStore/ListenerAll.d.ts +1 -1
  27. package/dist/@types/types/InternalStore/PruneInstance.d.ts +4 -0
  28. package/dist/@types/types/InternalStore/ResetInstance.d.ts +3 -3
  29. package/dist/@types/types/InternalStoreProps.d.ts +2 -2
  30. package/dist/@types/types/ReducerMap.d.ts +2 -2
  31. package/dist/@types/types/RegisterDefaultInstance.d.ts +3 -3
  32. package/dist/@types/types/RegisterInstance.d.ts +3 -3
  33. package/dist/@types/types/ResetInstance.d.ts +2 -3
  34. package/dist/@types/types/Store.d.ts +4 -0
  35. package/dist/@types/types/StoreContextValue.d.ts +6 -0
  36. package/dist/@types/types/StoreInstance.d.ts +8 -0
  37. package/dist/@types/types/StoreProviderProps.d.ts +10 -0
  38. package/dist/@types/types/StoreRegistry.d.ts +2 -2
  39. package/dist/@types/types/UninitializedStoreInstance.d.ts +5 -0
  40. package/dist/@types/types/UseProp.d.ts +4 -0
  41. package/dist/@types/types/UsePropSelector.d.ts +11 -0
  42. package/dist/@types/types/UsePropSelectorAll.d.ts +7 -0
  43. package/dist/cjs/index.cjs.js +353 -210
  44. package/dist/esm/index.esm.js +353 -212
  45. package/package.json +1 -1
  46. package/dist/@types/createStoreController.d.ts +0 -6
  47. package/dist/@types/createUseSelector.d.ts +0 -1
  48. package/dist/@types/types/InitPayload.d.ts +0 -3
  49. package/dist/@types/types/ResetPayload.d.ts +0 -3
  50. package/dist/@types/types/StoreController.d.ts +0 -10
  51. package/dist/@types/types/StoreInstanceController.d.ts +0 -7
package/package.json CHANGED
@@ -20,5 +20,5 @@
20
20
  "prepublishOnly": "npm run build"
21
21
  },
22
22
  "types": "dist/@types",
23
- "version": "0.1.10"
23
+ "version": "0.1.12"
24
24
  }
@@ -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,3 +0,0 @@
1
- import type { ReducerMap } from './ReducerMap.tsx';
2
- import type { ReducerPayload } from './ReducerPayload.tsx';
3
- export type InitPayload<TReducerMap extends ReducerMap<any> = ReducerMap<any>> = ReducerPayload<TReducerMap[`$$init`]>;
@@ -1,3 +0,0 @@
1
- import type { ReducerMap } from './ReducerMap.tsx';
2
- import type { ReducerPayload } from './ReducerPayload.tsx';
3
- export type ResetPayload<TReducerMap extends ReducerMap<any> = ReducerMap<any>> = ReducerPayload<TReducerMap[`$$reset`]>;
@@ -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
- };