@hanzogui/use-store 8.3.0 → 8.3.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.
Files changed (139) hide show
  1. package/dist/cjs/comparators.js +21 -0
  2. package/dist/cjs/comparators.js.map +1 -0
  3. package/dist/cjs/configureUseStore.js +9 -0
  4. package/dist/cjs/configureUseStore.js.map +1 -0
  5. package/dist/cjs/constants.js +9 -0
  6. package/dist/cjs/constants.js.map +1 -0
  7. package/dist/cjs/decorators.js +10 -0
  8. package/dist/cjs/decorators.js.map +1 -0
  9. package/dist/cjs/helpers.js +50 -0
  10. package/dist/cjs/helpers.js.map +1 -0
  11. package/dist/cjs/index.js +21 -0
  12. package/dist/cjs/index.js.map +1 -0
  13. package/dist/cjs/interfaces.js +3 -0
  14. package/dist/cjs/interfaces.js.map +1 -0
  15. package/dist/cjs/observe.js +141 -0
  16. package/dist/cjs/observe.js.map +1 -0
  17. package/dist/cjs/package.json +1 -0
  18. package/dist/cjs/useStore.js +574 -0
  19. package/dist/cjs/useStore.js.map +1 -0
  20. package/dist/cjs/useStoreDebug.js +41 -0
  21. package/dist/cjs/useStoreDebug.js.map +1 -0
  22. package/dist/esm/comparators.js +17 -0
  23. package/dist/esm/comparators.js.map +1 -0
  24. package/dist/esm/configureUseStore.js +5 -0
  25. package/dist/esm/configureUseStore.js.map +1 -0
  26. package/dist/esm/constants.js +6 -0
  27. package/dist/esm/constants.js.map +1 -0
  28. package/dist/esm/decorators.js +7 -0
  29. package/dist/esm/decorators.js.map +1 -0
  30. package/dist/esm/helpers.js +42 -0
  31. package/dist/esm/helpers.js.map +1 -0
  32. package/dist/esm/index.js +13 -14
  33. package/dist/esm/index.js.map +1 -1
  34. package/dist/esm/interfaces.js +2 -0
  35. package/dist/esm/interfaces.js.map +1 -0
  36. package/dist/esm/observe.js +136 -0
  37. package/dist/esm/observe.js.map +1 -0
  38. package/dist/esm/useStore.js +556 -0
  39. package/dist/esm/useStore.js.map +1 -0
  40. package/dist/esm/useStoreDebug.js +34 -0
  41. package/dist/esm/useStoreDebug.js.map +1 -0
  42. package/package.json +18 -18
  43. package/src/configureUseStore.tsx +1 -1
  44. package/src/helpers.tsx +1 -1
  45. package/src/index.ts +7 -7
  46. package/src/interfaces.tsx +1 -1
  47. package/src/observe.tsx +4 -4
  48. package/src/useStore.tsx +6 -6
  49. package/src/useStoreDebug.tsx +1 -1
  50. package/types/comparators.d.ts +6 -0
  51. package/types/comparators.d.ts.map +1 -0
  52. package/types/configureUseStore.d.ts +4 -0
  53. package/types/configureUseStore.d.ts.map +1 -0
  54. package/types/constants.d.ts +6 -0
  55. package/types/constants.d.ts.map +1 -0
  56. package/types/decorators.d.ts +3 -0
  57. package/types/decorators.d.ts.map +1 -0
  58. package/types/helpers.d.ts +11 -0
  59. package/types/helpers.d.ts.map +1 -0
  60. package/types/index.d.ts +12 -0
  61. package/types/index.d.ts.map +1 -0
  62. package/types/interfaces.d.ts +43 -0
  63. package/types/interfaces.d.ts.map +1 -0
  64. package/types/observe.d.ts +6 -0
  65. package/types/observe.d.ts.map +1 -0
  66. package/types/useStore.d.ts +26 -0
  67. package/types/useStore.d.ts.map +1 -0
  68. package/types/useStoreDebug.d.ts +7 -0
  69. package/types/useStoreDebug.d.ts.map +1 -0
  70. package/dist/cjs/comparators.cjs +0 -41
  71. package/dist/cjs/comparators.native.js +0 -50
  72. package/dist/cjs/comparators.native.js.map +0 -1
  73. package/dist/cjs/configureUseStore.cjs +0 -32
  74. package/dist/cjs/configureUseStore.native.js +0 -35
  75. package/dist/cjs/configureUseStore.native.js.map +0 -1
  76. package/dist/cjs/constants.cjs +0 -33
  77. package/dist/cjs/constants.native.js +0 -36
  78. package/dist/cjs/constants.native.js.map +0 -1
  79. package/dist/cjs/decorators.cjs +0 -33
  80. package/dist/cjs/decorators.native.js +0 -36
  81. package/dist/cjs/decorators.native.js.map +0 -1
  82. package/dist/cjs/helpers.cjs +0 -62
  83. package/dist/cjs/helpers.native.js +0 -71
  84. package/dist/cjs/helpers.native.js.map +0 -1
  85. package/dist/cjs/index.cjs +0 -43
  86. package/dist/cjs/index.native.js +0 -65
  87. package/dist/cjs/index.native.js.map +0 -1
  88. package/dist/cjs/interfaces.cjs +0 -18
  89. package/dist/cjs/interfaces.native.js +0 -21
  90. package/dist/cjs/interfaces.native.js.map +0 -1
  91. package/dist/cjs/observe.cjs +0 -166
  92. package/dist/cjs/observe.native.js +0 -234
  93. package/dist/cjs/observe.native.js.map +0 -1
  94. package/dist/cjs/useStore.cjs +0 -467
  95. package/dist/cjs/useStore.native.js +0 -608
  96. package/dist/cjs/useStore.native.js.map +0 -1
  97. package/dist/cjs/useStoreDebug.cjs +0 -67
  98. package/dist/cjs/useStoreDebug.native.js +0 -71
  99. package/dist/cjs/useStoreDebug.native.js.map +0 -1
  100. package/dist/esm/comparators.mjs +0 -16
  101. package/dist/esm/comparators.mjs.map +0 -1
  102. package/dist/esm/comparators.native.js +0 -22
  103. package/dist/esm/comparators.native.js.map +0 -1
  104. package/dist/esm/configureUseStore.mjs +0 -6
  105. package/dist/esm/configureUseStore.mjs.map +0 -1
  106. package/dist/esm/configureUseStore.native.js +0 -6
  107. package/dist/esm/configureUseStore.native.js.map +0 -1
  108. package/dist/esm/constants.mjs +0 -7
  109. package/dist/esm/constants.mjs.map +0 -1
  110. package/dist/esm/constants.native.js +0 -7
  111. package/dist/esm/constants.native.js.map +0 -1
  112. package/dist/esm/decorators.mjs +0 -8
  113. package/dist/esm/decorators.mjs.map +0 -1
  114. package/dist/esm/decorators.native.js +0 -8
  115. package/dist/esm/decorators.native.js.map +0 -1
  116. package/dist/esm/helpers.mjs +0 -31
  117. package/dist/esm/helpers.mjs.map +0 -1
  118. package/dist/esm/helpers.native.js +0 -37
  119. package/dist/esm/helpers.native.js.map +0 -1
  120. package/dist/esm/index.mjs +0 -15
  121. package/dist/esm/index.mjs.map +0 -1
  122. package/dist/esm/index.native.js +0 -34
  123. package/dist/esm/index.native.js.map +0 -1
  124. package/dist/esm/interfaces.mjs +0 -2
  125. package/dist/esm/interfaces.mjs.map +0 -1
  126. package/dist/esm/interfaces.native.js +0 -2
  127. package/dist/esm/interfaces.native.js.map +0 -1
  128. package/dist/esm/observe.mjs +0 -129
  129. package/dist/esm/observe.mjs.map +0 -1
  130. package/dist/esm/observe.native.js +0 -194
  131. package/dist/esm/observe.native.js.map +0 -1
  132. package/dist/esm/useStore.mjs +0 -415
  133. package/dist/esm/useStore.mjs.map +0 -1
  134. package/dist/esm/useStore.native.js +0 -553
  135. package/dist/esm/useStore.native.js.map +0 -1
  136. package/dist/esm/useStoreDebug.mjs +0 -27
  137. package/dist/esm/useStoreDebug.mjs.map +0 -1
  138. package/dist/esm/useStoreDebug.native.js +0 -28
  139. package/dist/esm/useStoreDebug.native.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/use-store",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "files": [
5
5
  "src",
6
6
  "types",
@@ -8,41 +8,41 @@
8
8
  ],
9
9
  "type": "module",
10
10
  "sideEffects": false,
11
- "main": "dist/cjs",
12
- "module": "dist/esm",
13
- "types": "./src",
11
+ "main": "./dist/cjs/index.js",
12
+ "module": "./dist/esm/index.js",
13
+ "types": "./types/index.d.ts",
14
14
  "exports": {
15
15
  "./package.json": "./package.json",
16
16
  ".": {
17
- "types": "./src/index.ts",
18
- "react-native": "./dist/esm/index.native.js",
19
- "browser": "./dist/esm/index.mjs",
20
- "module": "./dist/esm/index.mjs",
21
- "import": "./dist/esm/index.mjs",
22
- "require": "./dist/cjs/index.cjs",
23
- "default": "./dist/esm/index.mjs"
17
+ "types": "./types/index.d.ts",
18
+ "react-native": "./dist/esm/index.js",
19
+ "browser": "./dist/esm/index.js",
20
+ "module": "./dist/esm/index.js",
21
+ "import": "./dist/esm/index.js",
22
+ "require": "./dist/cjs/index.js",
23
+ "default": "./dist/esm/index.js"
24
24
  }
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
29
  "scripts": {
30
- "build": "hanzogui-build --skip-types",
30
+ "build": "hanzogui-build --skip-native",
31
31
  "watch": "hanzogui-build --skip-types --watch",
32
32
  "clean": "hanzogui-build clean",
33
33
  "clean:build": "hanzogui-build clean:build"
34
34
  },
35
35
  "dependencies": {
36
- "@hanzogui/simple-hash": "8.3.0"
36
+ "@hanzogui/simple-hash": "8.3.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@hanzogui/build": "8.3.0",
40
- "@testing-library/react": "^16.1.0",
41
- "react": ">=19",
42
- "vitest": "4.0.4"
39
+ "@hanzogui/build": "8.3.2",
40
+ "@testing-library/react": "^16.3.3",
41
+ "react": "19.2.8",
42
+ "vitest": "^4.1.11"
43
43
  },
44
44
  "peerDependencies": {
45
- "react": ">=19"
45
+ "react": ">=19.2.8"
46
46
  },
47
47
  "repository": {
48
48
  "type": "git",
@@ -1,4 +1,4 @@
1
- import type { UseStoreConfig } from './interfaces'
1
+ import type { UseStoreConfig } from './interfaces.tsx'
2
2
 
3
3
  export let configureOpts: UseStoreConfig = {}
4
4
 
package/src/helpers.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { simpleHash } from '@hanzogui/simple-hash'
2
2
 
3
- import type { StoreInfo } from './interfaces'
3
+ import type { StoreInfo } from './interfaces.tsx'
4
4
 
5
5
  export function getStoreUid(Constructor: any, props: string | object | void) {
6
6
  return simpleHash(
package/src/index.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from './useStore'
2
- export { configureUseStore } from './configureUseStore'
3
- export * from './interfaces'
4
- export * from './observe'
5
- export { UNWRAP_PROXY } from './constants'
6
- export * from './comparators'
7
- export * from './decorators'
1
+ export * from './useStore.tsx'
2
+ export { configureUseStore } from './configureUseStore.tsx'
3
+ export * from './interfaces.tsx'
4
+ export * from './observe.tsx'
5
+ export { UNWRAP_PROXY } from './constants.tsx'
6
+ export * from './comparators.tsx'
7
+ export * from './decorators.tsx'
8
8
 
9
9
  // to extend for prop types
10
10
  export class Store<Props extends Record<string, any>> {
@@ -1,4 +1,4 @@
1
- import type { StoreTracker } from './useStore'
1
+ import type { StoreTracker } from './useStore.tsx'
2
2
 
3
3
  export type Selector<A = unknown, B = unknown> = (x: A) => B
4
4
 
package/src/observe.tsx CHANGED
@@ -1,9 +1,9 @@
1
1
  import React from 'react'
2
2
 
3
- import { isEqualSubsetShallow } from './comparators'
4
- import { UNWRAP_PROXY } from './constants'
5
- import type { StoreInfo } from './interfaces'
6
- import { trackStoresAccess } from './useStore'
3
+ import { isEqualSubsetShallow } from './comparators.tsx'
4
+ import { UNWRAP_PROXY } from './constants.tsx'
5
+ import type { StoreInfo } from './interfaces.tsx'
6
+ import { trackStoresAccess } from './useStore.tsx'
7
7
 
8
8
  const logUpdate =
9
9
  process.env.NODE_ENV === 'development'
package/src/useStore.tsx CHANGED
@@ -1,17 +1,17 @@
1
1
  import React from 'react'
2
2
 
3
- import { isEqualSubsetShallow } from './comparators'
4
- import { configureOpts } from './configureUseStore'
5
- import { UNWRAP_PROXY, defaultOptions } from './constants'
3
+ import { isEqualSubsetShallow } from './comparators.tsx'
4
+ import { configureOpts } from './configureUseStore.tsx'
5
+ import { UNWRAP_PROXY, defaultOptions } from './constants.tsx'
6
6
  import {
7
7
  UNWRAP_STORE_INFO,
8
8
  cache,
9
9
  getStoreDescriptors,
10
10
  getStoreUid,
11
11
  simpleStr,
12
- } from './helpers'
13
- import type { Selector, Store, StoreInfo, UseStoreOptions } from './interfaces'
14
- import { DebugStores, shouldDebug, useCurrentComponent } from './useStoreDebug'
12
+ } from './helpers.tsx'
13
+ import type { Selector, Store, StoreInfo, UseStoreOptions } from './interfaces.tsx'
14
+ import { DebugStores, shouldDebug, useCurrentComponent } from './useStoreDebug.tsx'
15
15
 
16
16
  const idFn = (_) => _
17
17
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
 
3
- import type { StoreInfo } from './interfaces'
3
+ import type { StoreInfo } from './interfaces.tsx'
4
4
 
5
5
  // const { ReactCurrentOwner } = (React as any)
6
6
  // .__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
@@ -0,0 +1,6 @@
1
+ export declare const isEqualSubsetShallow: (a: any, b: any, opts?: {
2
+ keyComparators?: {
3
+ [key: string]: (a: any, b: any) => boolean;
4
+ };
5
+ }) => boolean;
6
+ //# sourceMappingURL=comparators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comparators.d.ts","sourceRoot":"","sources":["../src/comparators.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,MAC5B,GAAG,KACH,GAAG,SACC;IAAE,cAAc,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,OAAO,CAAA;KAAE,CAAA;CAAE,YAc3E,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { UseStoreConfig } from './interfaces.tsx';
2
+ export declare let configureOpts: UseStoreConfig;
3
+ export declare function configureUseStore(opts: UseStoreConfig): void;
4
+ //# sourceMappingURL=configureUseStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configureUseStore.d.ts","sourceRoot":"","sources":["../src/configureUseStore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,eAAO,IAAI,aAAa,EAAE,cAAmB,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,QAErD"}
@@ -0,0 +1,6 @@
1
+ export declare const UNWRAP_PROXY: unique symbol;
2
+ export declare const defaultOptions: {
3
+ once: boolean;
4
+ selector: undefined;
5
+ };
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,eAAW,CAAA;AAEpC,eAAO,MAAM,cAAc;IACzB,IAAI;IACJ,QAAQ;CACT,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type ComparisonFn = (a: any, b: any) => boolean;
2
+ export declare function compare(comparator: ComparisonFn): (target: any, propertyKey: string) => any;
3
+ //# sourceMappingURL=decorators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../src/decorators.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,OAAO,CAAA;AAEtD,wBAAgB,OAAO,CAAC,UAAU,EAAE,YAAY,YAC9B,GAAG,eAAe,MAAM,KAAG,GAAG,CAI/C"}
@@ -0,0 +1,11 @@
1
+ import type { StoreInfo } from './interfaces.tsx';
2
+ export declare function getStoreUid(Constructor: any, props: string | object | void): string;
3
+ export declare const UNWRAP_STORE_INFO: unique symbol;
4
+ export declare const cache: Map<string, StoreInfo>;
5
+ export declare function getStoreDescriptors(storeInstance: any): {
6
+ [x: string]: TypedPropertyDescriptor<any> & PropertyDescriptor;
7
+ };
8
+ export declare function get<A>(_: A, b?: any): A extends new (props?: any) => infer B ? B : A;
9
+ export declare function simpleStr(arg: any): any;
10
+ export declare function getStoreDebugInfo(store: any): any;
11
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,wBAAgB,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,UAO1E;AAED,eAAO,MAAM,iBAAiB,eAA8B,CAAA;AAC5D,eAAO,MAAM,KAAK,wBAA+B,CAAA;AAEjD,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,GAAG;;EAWrD;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,SAAS,KAAK,KAAK,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAEpF;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,OAejC;AAGD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,OAI3C"}
@@ -0,0 +1,12 @@
1
+ export * from './useStore.tsx';
2
+ export { configureUseStore } from './configureUseStore.tsx';
3
+ export * from './interfaces.tsx';
4
+ export * from './observe.tsx';
5
+ export { UNWRAP_PROXY } from './constants.tsx';
6
+ export * from './comparators.tsx';
7
+ export * from './decorators.tsx';
8
+ export declare class Store<Props extends Record<string, any>> {
9
+ props: Props;
10
+ constructor(props: Props);
11
+ }
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAGhC,qBAAa,KAAK,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAC/B,KAAK,EAAE,KAAK;IAA/B,YAAmB,KAAK,EAAE,KAAK,EAAI;CACpC"}
@@ -0,0 +1,43 @@
1
+ import type { StoreTracker } from './useStore.tsx';
2
+ export type Selector<A = unknown, B = unknown> = (x: A) => B;
3
+ export type UseStoreSelector<Store, Res> = (store: Store) => Res;
4
+ export type UseStoreOptions<Store = any, SelectorRes = any> = {
5
+ debug?: boolean;
6
+ selector?: UseStoreSelector<Store, SelectorRes>;
7
+ once?: boolean;
8
+ };
9
+ export interface Store<Props = Record<string, any> | null | undefined> {
10
+ new (...args: any[]): any;
11
+ props: Props;
12
+ }
13
+ export type StoreInfo<A = Store> = {
14
+ uid: string;
15
+ keyComparators?: {
16
+ [key: string]: (a: any, b: any) => boolean;
17
+ };
18
+ store: A;
19
+ props: Record<string, any> | null;
20
+ storeInstance: any;
21
+ getters: {
22
+ [key: string]: any;
23
+ };
24
+ actions: any;
25
+ stateKeys: Set<string>;
26
+ debug?: boolean;
27
+ gettersState: {
28
+ getCache: Map<string, any>;
29
+ depsToGetter: Map<string, Set<string>>;
30
+ curGetKeys: Set<string>;
31
+ isGetting: boolean;
32
+ };
33
+ listeners: Set<Function>;
34
+ trackers: Set<StoreTracker>;
35
+ version: number;
36
+ subscribe: (onChanged: () => void) => () => void;
37
+ triggerUpdate: Function;
38
+ disableTracking: boolean;
39
+ };
40
+ export type UseStoreConfig = {
41
+ logLevel?: 'debug' | 'info' | 'error';
42
+ };
43
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,MAAM,MAAM,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAA;AAE5D,MAAM,MAAM,gBAAgB,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAA;AAChE,MAAM,MAAM,eAAe,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,GAAG,GAAG,IAAI;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;IAC/C,IAAI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Aa,EAAE,QAAQ,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;CACtC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare function observe(fn: () => any): {
2
+ dispose: () => void;
3
+ getValue: () => any;
4
+ };
5
+ export declare function useObserve<A>(fn: () => A): A;
6
+ //# sourceMappingURL=observe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observe.d.ts","sourceRoot":"","sources":["../src/observe.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG;IAmCjC,OAAO;IAIP,QAAQ;EAEX;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CA4C5C"}
@@ -0,0 +1,26 @@
1
+ import type { Selector, Store, StoreInfo, UseStoreOptions } from './interfaces.tsx';
2
+ export declare function useStore<A, B extends object>(StoreKlass: (new (props: B) => A) | (new () => A) | null | undefined, props?: B | null, options?: UseStoreOptions<A, any>): A;
3
+ export declare function useStoreDebug<A, B extends object>(StoreKlass: (new (props: B) => A) | (new () => A), props?: B): A;
4
+ export declare function createStore<A, B extends object>(StoreKlass: new (props: B) => A | (new () => A) | null | undefined, props?: B, options?: UseStoreOptions<A, any>): A;
5
+ export declare function useGlobalStore<A, B extends object>(instance: A, debug?: boolean): A;
6
+ export declare function useGlobalStoreSelector<A, Selector extends (store: A) => any>(instance: A, selector: Selector, debug?: boolean): Selector extends (a: A) => infer C ? C : unknown;
7
+ export declare function createUseStore<Props, Store>(StoreKlass: (new (props: Props) => Store) | (new () => Store)): <Res, C extends Selector<Store, Res>, Props_1 extends object>(props?: Props_1, options?: UseStoreOptions) => C extends Selector<any, infer B> ? (B extends object ? B : Store) : Store;
8
+ export declare function createUseStoreSelector<A extends Store<Props>, Props extends object, Selected>(StoreKlass: (new (props: Props) => A) | (new () => A), selector: Selector<A, Selected>): (props?: Props) => Selected;
9
+ export declare function useStoreSelector<A, B extends object, S extends Selector<A, any>>(StoreKlass: (new (props: B) => A) | (new () => A), selector: S, props?: B): S extends Selector<any, infer R> ? R : unknown;
10
+ type StoreAccessTracker = (store: StoreInfo) => void;
11
+ export declare function trackStoresAccess(cb: StoreAccessTracker): () => void;
12
+ export declare function getStore<A, B extends object>(StoreKlass: (new (props: B) => A) | (new () => A) | null | undefined, props?: B): A;
13
+ export declare function getOrCreateStore<A, B extends object>(StoreKlass: (new (props: B) => A) | (new () => A) | null | undefined, props?: B): A;
14
+ export declare function getStoreInfo(StoreKlass: any, props: any): StoreInfo | null;
15
+ export type CreateStoreListener = (storeInfo: StoreInfo) => void;
16
+ export declare function onCreateStore(cb: CreateStoreListener): () => void;
17
+ export declare const allStores: {};
18
+ export declare const setIsInReaction: (val: boolean) => void;
19
+ export type StoreTracker = {
20
+ tracked: Set<string>;
21
+ component?: any;
22
+ last?: any;
23
+ lastKeys?: any;
24
+ };
25
+ export {};
26
+ //# sourceMappingURL=useStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../src/useStore.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAMnF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAC1C,UAAU,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACpE,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAChB,OAAO,GAAE,eAAe,CAAC,CAAC,EAAE,GAAG,CAAkB,GAChD,CAAC,CAGH;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,MA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AgB,YAAY,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,oBAIvD;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAA;AAIhE,wBAAgB,aAAa,CAAC,EAAE,EAAE,mBAAmB,cAKpD;AAwGD,eAAO,MAAM,SAAS,IAAK,CAAA;AAmB3B,eAAO,MAAM,eAAe,QAAS,OAAO,SAE3C,CAAA;AAsaD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACpB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,QAAQ,CAAC,EAAE,GAAG,CAAA;CACf,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { StoreInfo } from './interfaces.tsx';
2
+ export declare const useCurrentComponent: () => {};
3
+ export declare function useDebugStoreComponent(StoreCons: any): void;
4
+ export declare const shouldDebug: (component: any, info: Pick<StoreInfo, 'storeInstance'>) => boolean | undefined;
5
+ export declare const DebugComponents: Map<any, Set<any>>;
6
+ export declare const DebugStores: Set<any>;
7
+ //# sourceMappingURL=useStoreDebug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStoreDebug.d.ts","sourceRoot":"","sources":["../src/useStoreDebug.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAIjD,eAAO,MAAM,mBAAmB,UAO/B,CAAA;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,GAAG,QAiBpD;AAED,eAAO,MAAM,WAAW,cAAe,GAAG,QAAQ,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,wBAGjF,CAAA;AAED,eAAO,MAAM,eAAe,oBAA2B,CAAA;AACvD,eAAO,MAAM,WAAW,UAAiB,CAAA"}
@@ -1,41 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var comparators_exports = {};
24
- __export(comparators_exports, {
25
- isEqualSubsetShallow: () => isEqualSubsetShallow
26
- });
27
- module.exports = __toCommonJS(comparators_exports);
28
- const isEqualSubsetShallow = (a, b, opts) => {
29
- if (b == null || a == null) return a === b;
30
- if (typeof a !== typeof b) return false;
31
- if (typeof b === "object") {
32
- for (const key in b) {
33
- const compare = opts?.keyComparators?.[key];
34
- if (compare ? !compare(a[key], b[key]) : b[key] !== a[key]) {
35
- return false;
36
- }
37
- }
38
- return true;
39
- }
40
- return a === b;
41
- };
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var comparators_exports = {};
26
- __export(comparators_exports, {
27
- isEqualSubsetShallow: () => isEqualSubsetShallow
28
- });
29
- module.exports = __toCommonJS(comparators_exports);
30
- function _type_of(obj) {
31
- "@swc/helpers - typeof";
32
-
33
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
34
- }
35
- var isEqualSubsetShallow = function (a, b, opts) {
36
- if (b == null || a == null) return a === b;
37
- if ((typeof a === "undefined" ? "undefined" : _type_of(a)) !== (typeof b === "undefined" ? "undefined" : _type_of(b))) return false;
38
- if ((typeof b === "undefined" ? "undefined" : _type_of(b)) === "object") {
39
- for (var key in b) {
40
- var _opts_keyComparators;
41
- var compare = opts === null || opts === void 0 ? void 0 : (_opts_keyComparators = opts.keyComparators) === null || _opts_keyComparators === void 0 ? void 0 : _opts_keyComparators[key];
42
- if (compare ? !compare(a[key], b[key]) : b[key] !== a[key]) {
43
- return false;
44
- }
45
- }
46
- return true;
47
- }
48
- return a === b;
49
- };
50
- //# sourceMappingURL=comparators.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","comparators_exports","__export","isEqualSubsetShallow","module","exports","_type_of","obj","Symbol","constructor","a","b","opts","key","_opts_keyComparators","compare","keyComparators"],"sources":["../../src/comparators.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAT,YAAuB,CAClCK,mBAGG;AACH,SAAIK,QAAKA,CAAAC,GAAQ;EACjB,uBAAiB;;EACjB,OAAIA,GAAA,IAAO,OAAMC,MAAU,oBAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AACzB;AACE,IAAAJ,oBAAgB,YAAAA,CAAMO,CAAA,EAAAC,CAAA,EAAAC,IAAiB,EAAG;EAC1C,IAAAD,CAAA,IAAI,QAAAD,CAAU,IAAC,MAAQ,OAAQA,CAAA,KAAMC,CAAA;EACnC,YAAAD,CAAO,iCAAAJ,QAAA,CAAAI,CAAA,eAAAC,CAAA,iCAAAL,QAAA,CAAAK,CAAA;EAAA,IACT,QAAAA,CAAA,iCAAAL,QAAA,CAAAK,CAAA;IACF,SAAAE,GAAA,IAAAF,CAAA;MACA,IAAAG,oBAAO;MACT,IAAAC,OAAA,GAAAH,IAAA,aAAAA,IAAA,wBAAAE,oBAAA,GAAAF,IAAA,CAAAI,cAAA,cAAAF,oBAAA,uBAAAA,oBAAA,CAAAD,GAAA;MACA,IAAOE,OAAM,IAAAA,OAAA,CAAAL,CAAA,CAAAG,GAAA,GAAAF,CAAA,CAAAE,GAAA,KAAAF,CAAA,CAAAE,GAAA,MAAAH,CAAA,CAAAG,GAAA;QACf","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var configureUseStore_exports = {};
24
- __export(configureUseStore_exports, {
25
- configureOpts: () => configureOpts,
26
- configureUseStore: () => configureUseStore
27
- });
28
- module.exports = __toCommonJS(configureUseStore_exports);
29
- let configureOpts = {};
30
- function configureUseStore(opts) {
31
- configureOpts = opts;
32
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var configureUseStore_exports = {};
26
- __export(configureUseStore_exports, {
27
- configureOpts: () => configureOpts,
28
- configureUseStore: () => configureUseStore
29
- });
30
- module.exports = __toCommonJS(configureUseStore_exports);
31
- var configureOpts = {};
32
- function configureUseStore(opts) {
33
- configureOpts = opts;
34
- }
35
- //# sourceMappingURL=configureUseStore.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","configureUseStore_exports","__export","configureOpts","configureUseStore","module","exports","opts"],"sources":["../../src/configureUseStore.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAEOC,MAAI,CAAAC,OAAA,GAAAV,YAAiC,CAAAK,yBAAA;AAErC,IAAAE,aAAS;AACd,SAAAC,iBAAgBA,CAAAG,IAAA;EAClBJ,aAAA,GAAAI,IAAA","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var constants_exports = {};
24
- __export(constants_exports, {
25
- UNWRAP_PROXY: () => UNWRAP_PROXY,
26
- defaultOptions: () => defaultOptions
27
- });
28
- module.exports = __toCommonJS(constants_exports);
29
- const UNWRAP_PROXY = /* @__PURE__ */Symbol();
30
- const defaultOptions = {
31
- once: false,
32
- selector: void 0
33
- };
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var constants_exports = {};
26
- __export(constants_exports, {
27
- UNWRAP_PROXY: () => UNWRAP_PROXY,
28
- defaultOptions: () => defaultOptions
29
- });
30
- module.exports = __toCommonJS(constants_exports);
31
- var UNWRAP_PROXY = /* @__PURE__ */Symbol();
32
- var defaultOptions = {
33
- once: false,
34
- selector: void 0
35
- };
36
- //# sourceMappingURL=constants.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","UNWRAP_PROXY","defaultOptions","module","exports","Symbol","once","selector"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAV,YAAe,CAAAK,iBAAO;AAE5B,IAAAE,YAAM,kBAAiBI,MAAA;AAAA,IAC5BH,cAAM;EACNI,IAAA,OAAU;EACZC,QAAA","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var decorators_exports = {};
24
- __export(decorators_exports, {
25
- compare: () => compare
26
- });
27
- module.exports = __toCommonJS(decorators_exports);
28
- function compare(comparator) {
29
- return (target, propertyKey) => {
30
- target["_comparators"] = target["_comparators"] || {};
31
- target["_comparators"][propertyKey] = comparator;
32
- };
33
- }