@tamagui/use-store 2.7.6 → 3.0.0-beta.637.1

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 (83) hide show
  1. package/dist/cjs/comparators.cjs +27 -30
  2. package/dist/cjs/comparators.native.cjs +45 -0
  3. package/dist/cjs/comparators.native.js +31 -34
  4. package/dist/cjs/comparators.native.js.map +1 -1
  5. package/dist/cjs/configureUseStore.cjs +17 -18
  6. package/dist/cjs/configureUseStore.native.cjs +33 -0
  7. package/dist/cjs/configureUseStore.native.js +17 -17
  8. package/dist/cjs/configureUseStore.native.js.map +1 -1
  9. package/dist/cjs/constants.cjs +19 -20
  10. package/dist/cjs/constants.native.cjs +34 -0
  11. package/dist/cjs/constants.native.js +19 -19
  12. package/dist/cjs/constants.native.js.map +1 -1
  13. package/dist/cjs/decorators.cjs +19 -22
  14. package/dist/cjs/decorators.native.cjs +32 -0
  15. package/dist/cjs/decorators.native.js +19 -21
  16. package/dist/cjs/decorators.native.js.map +1 -1
  17. package/dist/cjs/helpers.cjs +39 -40
  18. package/dist/cjs/helpers.native.cjs +68 -0
  19. package/dist/cjs/helpers.native.js +42 -43
  20. package/dist/cjs/helpers.native.js.map +1 -1
  21. package/dist/cjs/index.cjs +22 -23
  22. package/dist/cjs/index.native.cjs +62 -0
  23. package/dist/cjs/index.native.js +35 -36
  24. package/dist/cjs/index.native.js.map +1 -1
  25. package/dist/cjs/interfaces.cjs +10 -11
  26. package/dist/cjs/interfaces.native.cjs +19 -0
  27. package/dist/cjs/interfaces.native.js +10 -10
  28. package/dist/cjs/interfaces.native.js.map +1 -1
  29. package/dist/cjs/observe.cjs +132 -138
  30. package/dist/cjs/observe.native.cjs +221 -0
  31. package/dist/cjs/observe.native.js +192 -203
  32. package/dist/cjs/observe.native.js.map +1 -1
  33. package/dist/cjs/useStore.cjs +366 -403
  34. package/dist/cjs/useStore.native.cjs +557 -0
  35. package/dist/cjs/useStore.native.js +487 -536
  36. package/dist/cjs/useStore.native.js.map +1 -1
  37. package/dist/cjs/useStoreDebug.cjs +39 -45
  38. package/dist/cjs/useStoreDebug.native.cjs +64 -0
  39. package/dist/cjs/useStoreDebug.native.js +43 -48
  40. package/dist/cjs/useStoreDebug.native.js.map +1 -1
  41. package/dist/esm/comparators.mjs +13 -12
  42. package/dist/esm/comparators.mjs.map +1 -1
  43. package/dist/esm/comparators.native.js +17 -17
  44. package/dist/esm/comparators.native.js.map +1 -1
  45. package/dist/esm/configureUseStore.mjs +2 -1
  46. package/dist/esm/configureUseStore.mjs.map +1 -1
  47. package/dist/esm/configureUseStore.native.js +2 -1
  48. package/dist/esm/configureUseStore.native.js.map +1 -1
  49. package/dist/esm/constants.mjs +4 -3
  50. package/dist/esm/constants.mjs.map +1 -1
  51. package/dist/esm/constants.native.js +4 -3
  52. package/dist/esm/constants.native.js.map +1 -1
  53. package/dist/esm/decorators.mjs +5 -4
  54. package/dist/esm/decorators.mjs.map +1 -1
  55. package/dist/esm/decorators.native.js +5 -4
  56. package/dist/esm/decorators.native.js.map +1 -1
  57. package/dist/esm/helpers.mjs +20 -18
  58. package/dist/esm/helpers.mjs.map +1 -1
  59. package/dist/esm/helpers.native.js +23 -22
  60. package/dist/esm/helpers.native.js.map +1 -1
  61. package/dist/esm/index.js +18 -11
  62. package/dist/esm/index.js.map +1 -1
  63. package/dist/esm/index.mjs +18 -11
  64. package/dist/esm/index.mjs.map +1 -1
  65. package/dist/esm/index.native.js +30 -24
  66. package/dist/esm/index.native.js.map +1 -1
  67. package/dist/esm/interfaces.mjs +0 -2
  68. package/dist/esm/interfaces.native.js +0 -2
  69. package/dist/esm/observe.mjs +115 -113
  70. package/dist/esm/observe.mjs.map +1 -1
  71. package/dist/esm/observe.native.js +175 -179
  72. package/dist/esm/observe.native.js.map +1 -1
  73. package/dist/esm/useStore.mjs +336 -363
  74. package/dist/esm/useStore.mjs.map +1 -1
  75. package/dist/esm/useStore.native.js +457 -497
  76. package/dist/esm/useStore.native.js.map +1 -1
  77. package/dist/esm/useStoreDebug.mjs +20 -18
  78. package/dist/esm/useStoreDebug.mjs.map +1 -1
  79. package/dist/esm/useStoreDebug.native.js +23 -21
  80. package/dist/esm/useStoreDebug.native.js.map +1 -1
  81. package/package.json +3 -3
  82. package/dist/esm/interfaces.mjs.map +0 -1
  83. package/dist/esm/interfaces.native.js.map +0 -1
@@ -1,36 +1,34 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  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;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var decorators_exports = {};
26
- __export(decorators_exports, {
27
- compare: () => compare
28
- });
25
+ __export(decorators_exports, { compare: () => compare });
29
26
  module.exports = __toCommonJS(decorators_exports);
30
27
  function compare(comparator) {
31
- return function (target, propertyKey) {
32
- target["_comparators"] = target["_comparators"] || {};
33
- target["_comparators"][propertyKey] = comparator;
34
- };
28
+ return function(target, propertyKey) {
29
+ target["_comparators"] = target["_comparators"] || {};
30
+ target["_comparators"][propertyKey] = comparator;
31
+ };
35
32
  }
33
+
36
34
  //# sourceMappingURL=decorators.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","decorators_exports","__export","compare","module","exports","comparator","target","propertyKey"],"sources":["../../src/decorators.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAA;AAAA;AAEOC,MAAA,CAAAC,OAAS,GAAQT,YAA0B,CAAAK,kBAAA;AAChD,SAAOE,OAACA,CAAAG,UAAa;EACnB,iBAAOC,MAAA,EAAcC,WAAW;IAChCD,MAAA,CAAO,cAAc,IAAEA,MAAA,eAAe;IACxCA,MAAA,iBAAAC,WAAA,IAAAF,UAAA;EACF","ignoreList":[]}
1
+ {"version":3,"file":"decorators.native.js","names":[],"sources":["cjs/decorators.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar decorators_exports = {};\n__export(decorators_exports, {\n compare: () => compare\n});\nmodule.exports = __toCommonJS(decorators_exports);\nfunction compare(comparator) {\n return function(target, propertyKey) {\n target[\"_comparators\"] = target[\"_comparators\"] || {};\n target[\"_comparators\"][propertyKey] = comparator;\n };\n}\n//# sourceMappingURL=decorators.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,qBAAqB,CAAC;AAC1B,SAAS,oBAAoB,EAC3B,eAAe,QACjB,CAAC;AACD,OAAO,UAAU,aAAa,kBAAkB;AAChD,SAAS,QAAQ,YAAY;CAC3B,OAAO,SAAS,QAAQ,aAAa;EACnC,OAAO,kBAAkB,OAAO,mBAAmB,CAAC;EACpD,OAAO,gBAAgB,eAAe;CACxC;AACF"}
@@ -1,62 +1,61 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  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;
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
19
20
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
22
  var helpers_exports = {};
24
23
  __export(helpers_exports, {
25
- UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,
26
- cache: () => cache,
27
- get: () => get,
28
- getStoreDebugInfo: () => getStoreDebugInfo,
29
- getStoreDescriptors: () => getStoreDescriptors,
30
- getStoreUid: () => getStoreUid,
31
- simpleStr: () => simpleStr
24
+ UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,
25
+ cache: () => cache,
26
+ get: () => get,
27
+ getStoreDebugInfo: () => getStoreDebugInfo,
28
+ getStoreDescriptors: () => getStoreDescriptors,
29
+ getStoreUid: () => getStoreUid,
30
+ simpleStr: () => simpleStr
32
31
  });
33
32
  module.exports = __toCommonJS(helpers_exports);
34
33
  var import_simple_hash = require("@tamagui/simple-hash");
35
34
  function getStoreUid(Constructor, props) {
36
- return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
35
+ return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
37
36
  }
38
- const UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO");
39
- const cache = /* @__PURE__ */new Map();
37
+ const UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol("UNWRAP_STORE_INFO");
38
+ const cache = /* @__PURE__ */ new Map();
40
39
  function getStoreDescriptors(storeInstance) {
41
- const proto = Object.getPrototypeOf(storeInstance);
42
- const instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
43
- const protoDescriptors = Object.getOwnPropertyDescriptors(proto);
44
- const descriptors = {
45
- ...protoDescriptors,
46
- ...instanceDescriptors
47
- };
48
- delete descriptors.constructor;
49
- return descriptors;
40
+ const proto = Object.getPrototypeOf(storeInstance);
41
+ const instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
42
+ const protoDescriptors = Object.getOwnPropertyDescriptors(proto);
43
+ const descriptors = {
44
+ ...protoDescriptors,
45
+ ...instanceDescriptors
46
+ };
47
+ delete descriptors.constructor;
48
+ return descriptors;
50
49
  }
51
50
  function get(_, b) {
52
- return _;
51
+ return _;
53
52
  }
54
53
  function simpleStr(arg) {
55
- if (process.env.NODE_ENV === "development") {
56
- return typeof arg === "function" ? "fn" : typeof arg === "string" ? `"${arg}"` : !arg ? arg : typeof arg !== "object" ? arg : Array.isArray(arg) ? "[...]" : `{...}`;
57
- }
58
- return arg;
54
+ if (process.env.NODE_ENV === "development") {
55
+ return typeof arg === "function" ? "fn" : typeof arg === "string" ? `"${arg}"` : !arg ? arg : typeof arg !== "object" ? arg : Array.isArray(arg) ? "[...]" : `{...}`;
56
+ }
57
+ return arg;
59
58
  }
60
59
  function getStoreDebugInfo(store) {
61
- return store[UNWRAP_STORE_INFO] ?? cache.get(getStoreUid(store.constructor, store.props));
62
- }
60
+ return store[UNWRAP_STORE_INFO] ?? cache.get(getStoreUid(store.constructor, store.props));
61
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var helpers_exports = {};
25
+ __export(helpers_exports, {
26
+ UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,
27
+ cache: () => cache,
28
+ get: () => get,
29
+ getStoreDebugInfo: () => getStoreDebugInfo,
30
+ getStoreDescriptors: () => getStoreDescriptors,
31
+ getStoreUid: () => getStoreUid,
32
+ simpleStr: () => simpleStr
33
+ });
34
+ module.exports = __toCommonJS(helpers_exports);
35
+ var import_simple_hash = require("@tamagui/simple-hash");
36
+ function _type_of(obj) {
37
+ "@swc/helpers - typeof";
38
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
39
+ }
40
+ function getStoreUid(Constructor, props) {
41
+ return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
42
+ }
43
+ var UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol("UNWRAP_STORE_INFO");
44
+ var cache = /* @__PURE__ */ new Map();
45
+ function getStoreDescriptors(storeInstance) {
46
+ var proto = Object.getPrototypeOf(storeInstance);
47
+ var instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
48
+ var protoDescriptors = Object.getOwnPropertyDescriptors(proto);
49
+ var descriptors = {
50
+ ...protoDescriptors,
51
+ ...instanceDescriptors
52
+ };
53
+ delete descriptors.constructor;
54
+ return descriptors;
55
+ }
56
+ function get(_, b) {
57
+ return _;
58
+ }
59
+ function simpleStr(arg) {
60
+ if (process.env.NODE_ENV === "development") {
61
+ return typeof arg === "function" ? "fn" : typeof arg === "string" ? `"${arg}"` : !arg ? arg : (typeof arg === "undefined" ? "undefined" : _type_of(arg)) !== "object" ? arg : Array.isArray(arg) ? "[...]" : `{...}`;
62
+ }
63
+ return arg;
64
+ }
65
+ function getStoreDebugInfo(store) {
66
+ var _store_UNWRAP_STORE_INFO;
67
+ return (_store_UNWRAP_STORE_INFO = store[UNWRAP_STORE_INFO]) !== null && _store_UNWRAP_STORE_INFO !== void 0 ? _store_UNWRAP_STORE_INFO : cache.get(getStoreUid(store.constructor, store.props));
68
+ }
@@ -1,71 +1,70 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  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;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var helpers_exports = {};
26
25
  __export(helpers_exports, {
27
- UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,
28
- cache: () => cache,
29
- get: () => get,
30
- getStoreDebugInfo: () => getStoreDebugInfo,
31
- getStoreDescriptors: () => getStoreDescriptors,
32
- getStoreUid: () => getStoreUid,
33
- simpleStr: () => simpleStr
26
+ UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,
27
+ cache: () => cache,
28
+ get: () => get,
29
+ getStoreDebugInfo: () => getStoreDebugInfo,
30
+ getStoreDescriptors: () => getStoreDescriptors,
31
+ getStoreUid: () => getStoreUid,
32
+ simpleStr: () => simpleStr
34
33
  });
35
34
  module.exports = __toCommonJS(helpers_exports);
36
35
  var import_simple_hash = require("@tamagui/simple-hash");
37
36
  function _type_of(obj) {
38
- "@swc/helpers - typeof";
39
-
40
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
37
+ "@swc/helpers - typeof";
38
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
41
39
  }
42
40
  function getStoreUid(Constructor, props) {
43
- return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
41
+ return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
44
42
  }
45
- var UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO");
46
- var cache = /* @__PURE__ */new Map();
43
+ var UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol("UNWRAP_STORE_INFO");
44
+ var cache = /* @__PURE__ */ new Map();
47
45
  function getStoreDescriptors(storeInstance) {
48
- var proto = Object.getPrototypeOf(storeInstance);
49
- var instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
50
- var protoDescriptors = Object.getOwnPropertyDescriptors(proto);
51
- var descriptors = {
52
- ...protoDescriptors,
53
- ...instanceDescriptors
54
- };
55
- delete descriptors.constructor;
56
- return descriptors;
46
+ var proto = Object.getPrototypeOf(storeInstance);
47
+ var instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
48
+ var protoDescriptors = Object.getOwnPropertyDescriptors(proto);
49
+ var descriptors = {
50
+ ...protoDescriptors,
51
+ ...instanceDescriptors
52
+ };
53
+ delete descriptors.constructor;
54
+ return descriptors;
57
55
  }
58
56
  function get(_, b) {
59
- return _;
57
+ return _;
60
58
  }
61
59
  function simpleStr(arg) {
62
- if (process.env.NODE_ENV === "development") {
63
- return typeof arg === "function" ? "fn" : typeof arg === "string" ? `"${arg}"` : !arg ? arg : (typeof arg === "undefined" ? "undefined" : _type_of(arg)) !== "object" ? arg : Array.isArray(arg) ? "[...]" : `{...}`;
64
- }
65
- return arg;
60
+ if (process.env.NODE_ENV === "development") {
61
+ return typeof arg === "function" ? "fn" : typeof arg === "string" ? `"${arg}"` : !arg ? arg : (typeof arg === "undefined" ? "undefined" : _type_of(arg)) !== "object" ? arg : Array.isArray(arg) ? "[...]" : `{...}`;
62
+ }
63
+ return arg;
66
64
  }
67
65
  function getStoreDebugInfo(store) {
68
- var _store_UNWRAP_STORE_INFO;
69
- return (_store_UNWRAP_STORE_INFO = store[UNWRAP_STORE_INFO]) !== null && _store_UNWRAP_STORE_INFO !== void 0 ? _store_UNWRAP_STORE_INFO : cache.get(getStoreUid(store.constructor, store.props));
66
+ var _store_UNWRAP_STORE_INFO;
67
+ return (_store_UNWRAP_STORE_INFO = store[UNWRAP_STORE_INFO]) !== null && _store_UNWRAP_STORE_INFO !== void 0 ? _store_UNWRAP_STORE_INFO : cache.get(getStoreUid(store.constructor, store.props));
70
68
  }
69
+
71
70
  //# sourceMappingURL=helpers.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","helpers_exports","__export","UNWRAP_STORE_INFO","cache","get","getStoreDebugInfo","getStoreDescriptors","getStoreUid","simpleStr","module","exports","import_simple_hash","require","_type_of","obj","Symbol","constructor","Constructor","props","simpleHash","JSON","stringify","Map","storeInstance","proto","Object","getPrototypeOf","instanceDescriptors","getOwnPropertyDescriptors","protoDescriptors","descriptors","_","b","arg","process","env","NODE_ENV","Array","isArray","store"],"sources":["../../src/helpers.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,GAAA,EAAAA,CAAA,KAAAA,GAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAf,YAA2B,CAAAK,eAAA;AAIpB,IAAAW,kBAAqB,GAAAC,OAAA,uBAAiD;AAC3E,SAAAC,QAAOA,CAAAC,GAAA;EAAA,uBAEF;;EACH,OACAA,GAAA,WAAAC,MAAA,oBAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AAAA;AAEJ,SAAAP,YAAAU,WAAA,EAAAC,KAAA;EAEO,OAAM,IAAAP,kBAAoB,CAAAQ,UAAA,KAAAF,WAAO,IAAAC,KAAA,GAAmB,YAAAA,KAAA,gBAAAA,KAAA,GAAAE,IAAA,CAAAC,SAAA,CAAAH,KAAA;AACpD;AAEA,IAAAhB,iBAAS,kBAAoBa,MAAoB;AACtD,IAAAZ,KAAM,kBAAe,IAAAmB,GAAA;AACrB,SAAMhB,oBAAAiB,aAA6B;EACnC,IAAAC,KAAM,GAAAC,MAAA,CAAAC,cAA0B,CAAAH,aAAA;EAChC,IAAAI,mBAAoB,GAAAF,MAAA,CAAAG,yBAAA,CAAAL,aAAA;EAAA,IAClBM,gBAAG,GAAAJ,MAAA,CAAAG,yBAAA,CAAAJ,KAAA;EAAA,IACHM,WAAG;IACL,GAAAD,gBAAA;IAEA,GAAAF;EACA;EACF,OAAAG,WAAA,CAAAd,WAAA;EAEO,OAASc,WAAsE;AACpF;AACF,SAAA1B,IAAA2B,CAAA,EAAAC,CAAA;EAEO,OAASD,CAAA;AACd;AACE,SAAAvB,SAAcA,CAAAyB,GAAA;EAWhB,IAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;IACA,OAAO,OAAAH,GAAA,gCAAAA,GAAA,oBAAAA,GAAA,OAAAA,GAAA,GAAAA,GAAA,WAAAA,GAAA,iCAAApB,QAAA,CAAAoB,GAAA,kBAAAA,GAAA,GAAAI,KAAA,CAAAC,OAAA,CAAAL,GAAA;EACT;EAGO,OAASA,GAAA;AACd;AAGF,SAAA5B,kBAAAkC,KAAA","ignoreList":[]}
1
+ {"version":3,"file":"helpers.native.js","names":[],"sources":["cjs/helpers.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar helpers_exports = {};\n__export(helpers_exports, {\n UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,\n cache: () => cache,\n get: () => get,\n getStoreDebugInfo: () => getStoreDebugInfo,\n getStoreDescriptors: () => getStoreDescriptors,\n getStoreUid: () => getStoreUid,\n simpleStr: () => simpleStr\n});\nmodule.exports = __toCommonJS(helpers_exports);\nvar import_simple_hash = require(\"@tamagui/simple-hash\");\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction getStoreUid(Constructor, props) {\n return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? \"\" : typeof props === \"string\" ? props : JSON.stringify(props)}`, \"strict\");\n}\nvar UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol(\"UNWRAP_STORE_INFO\");\nvar cache = /* @__PURE__ */ new Map();\nfunction getStoreDescriptors(storeInstance) {\n var proto = Object.getPrototypeOf(storeInstance);\n var instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);\n var protoDescriptors = Object.getOwnPropertyDescriptors(proto);\n var descriptors = {\n ...protoDescriptors,\n ...instanceDescriptors\n };\n delete descriptors.constructor;\n return descriptors;\n}\nfunction get(_, b) {\n return _;\n}\nfunction simpleStr(arg) {\n if (process.env.NODE_ENV === \"development\") {\n return typeof arg === \"function\" ? \"fn\" : typeof arg === \"string\" ? `\"${arg}\"` : !arg ? arg : (typeof arg === \"undefined\" ? \"undefined\" : _type_of(arg)) !== \"object\" ? arg : Array.isArray(arg) ? \"[...]\" : `{...}`;\n }\n return arg;\n}\nfunction getStoreDebugInfo(store) {\n var _store_UNWRAP_STORE_INFO;\n return (_store_UNWRAP_STORE_INFO = store[UNWRAP_STORE_INFO]) !== null && _store_UNWRAP_STORE_INFO !== void 0 ? _store_UNWRAP_STORE_INFO : cache.get(getStoreUid(store.constructor, store.props));\n}\n//# sourceMappingURL=helpers.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,kBAAkB,CAAC;AACvB,SAAS,iBAAiB;CACxB,yBAAyB;CACzB,aAAa;CACb,WAAW;CACX,yBAAyB;CACzB,2BAA2B;CAC3B,mBAAmB;CACnB,iBAAiB;AACnB,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,qBAAqB,QAAQ,sBAAsB;AACvD,SAAS,SAAS,KAAK;CACrB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAChG;AACA,SAAS,YAAY,aAAa,OAAO;CACvC,QAAQ,GAAG,mBAAmB,YAAY,GAAG,cAAc,CAAC,QAAQ,KAAK,OAAO,UAAU,WAAW,QAAQ,KAAK,UAAU,KAAK,KAAK,QAAQ;AAChJ;AACA,IAAI,oBAAoC,uBAAO,mBAAmB;AAClE,IAAI,wBAAwB,IAAI,IAAI;AACpC,SAAS,oBAAoB,eAAe;CAC1C,IAAI,QAAQ,OAAO,eAAe,aAAa;CAC/C,IAAI,sBAAsB,OAAO,0BAA0B,aAAa;CACxE,IAAI,mBAAmB,OAAO,0BAA0B,KAAK;CAC7D,IAAI,cAAc;EAChB,GAAG;EACH,GAAG;CACL;CACA,OAAO,YAAY;CACnB,OAAO;AACT;AACA,SAAS,IAAI,GAAG,GAAG;CACjB,OAAO;AACT;AACA,SAAS,UAAU,KAAK;CACtB,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,OAAO,OAAO,QAAQ,aAAa,OAAO,OAAO,QAAQ,WAAW,IAAI,IAAI,KAAK,CAAC,MAAM,OAAO,OAAO,QAAQ,cAAc,cAAc,SAAS,GAAG,OAAO,WAAW,MAAM,MAAM,QAAQ,GAAG,IAAI,UAAU;CAC/M;CACA,OAAO;AACT;AACA,SAAS,kBAAkB,OAAO;CAChC,IAAI;CACJ,QAAQ,2BAA2B,MAAM,wBAAwB,QAAQ,6BAA6B,KAAK,IAAI,2BAA2B,MAAM,IAAI,YAAY,MAAM,aAAa,MAAM,KAAK,CAAC;AACjM"}
@@ -1,31 +1,30 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  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;
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
19
20
  };
20
21
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
- value: true
23
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
23
  var index_exports = {};
25
24
  __export(index_exports, {
26
- Store: () => Store,
27
- UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
28
- configureUseStore: () => import_configureUseStore.configureUseStore
25
+ Store: () => Store,
26
+ UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
27
+ configureUseStore: () => import_configureUseStore.configureUseStore
29
28
  });
30
29
  module.exports = __toCommonJS(index_exports);
31
30
  __reExport(index_exports, require("./useStore.cjs"), module.exports);
@@ -35,9 +34,9 @@ __reExport(index_exports, require("./observe.cjs"), module.exports);
35
34
  var import_constants = require("./constants.cjs");
36
35
  __reExport(index_exports, require("./comparators.cjs"), module.exports);
37
36
  __reExport(index_exports, require("./decorators.cjs"), module.exports);
38
- class Store {
39
- constructor(props) {
40
- this.props = props;
41
- }
42
- props;
43
- }
37
+ var Store = class {
38
+ constructor(props) {
39
+ this.props = props;
40
+ }
41
+ props;
42
+ };
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var index_exports = {};
26
+ __export(index_exports, {
27
+ Store: () => Store,
28
+ UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
29
+ configureUseStore: () => import_configureUseStore.configureUseStore
30
+ });
31
+ module.exports = __toCommonJS(index_exports);
32
+ __reExport(index_exports, require("./useStore.native.js"), module.exports);
33
+ var import_configureUseStore = require("./configureUseStore.native.js");
34
+ __reExport(index_exports, require("./interfaces.native.js"), module.exports);
35
+ __reExport(index_exports, require("./observe.native.js"), module.exports);
36
+ var import_constants = require("./constants.native.js");
37
+ __reExport(index_exports, require("./comparators.native.js"), module.exports);
38
+ __reExport(index_exports, require("./decorators.native.js"), module.exports);
39
+ function _class_call_check(instance, Constructor) {
40
+ if (!(instance instanceof Constructor)) {
41
+ throw new TypeError("Cannot call a class as a function");
42
+ }
43
+ }
44
+ function _define_property(obj, key, value) {
45
+ if (key in obj) {
46
+ Object.defineProperty(obj, key, {
47
+ value,
48
+ enumerable: true,
49
+ configurable: true,
50
+ writable: true
51
+ });
52
+ } else {
53
+ obj[key] = value;
54
+ }
55
+ return obj;
56
+ }
57
+ var Store = function Store2(props) {
58
+ "use strict";
59
+ _class_call_check(this, Store2);
60
+ _define_property(this, "props", void 0);
61
+ this.props = props;
62
+ };
@@ -1,33 +1,32 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  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;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
23
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
- value: true
25
- }), mod);
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
25
  var index_exports = {};
27
26
  __export(index_exports, {
28
- Store: () => Store,
29
- UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
30
- configureUseStore: () => import_configureUseStore.configureUseStore
27
+ Store: () => Store,
28
+ UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
29
+ configureUseStore: () => import_configureUseStore.configureUseStore
31
30
  });
32
31
  module.exports = __toCommonJS(index_exports);
33
32
  __reExport(index_exports, require("./useStore.native.js"), module.exports);
@@ -38,28 +37,28 @@ var import_constants = require("./constants.native.js");
38
37
  __reExport(index_exports, require("./comparators.native.js"), module.exports);
39
38
  __reExport(index_exports, require("./decorators.native.js"), module.exports);
40
39
  function _class_call_check(instance, Constructor) {
41
- if (!(instance instanceof Constructor)) {
42
- throw new TypeError("Cannot call a class as a function");
43
- }
40
+ if (!(instance instanceof Constructor)) {
41
+ throw new TypeError("Cannot call a class as a function");
42
+ }
44
43
  }
45
44
  function _define_property(obj, key, value) {
46
- if (key in obj) {
47
- Object.defineProperty(obj, key, {
48
- value,
49
- enumerable: true,
50
- configurable: true,
51
- writable: true
52
- });
53
- } else {
54
- obj[key] = value;
55
- }
56
- return obj;
45
+ if (key in obj) {
46
+ Object.defineProperty(obj, key, {
47
+ value,
48
+ enumerable: true,
49
+ configurable: true,
50
+ writable: true
51
+ });
52
+ } else {
53
+ obj[key] = value;
54
+ }
55
+ return obj;
57
56
  }
58
57
  var Store = function Store2(props) {
59
- "use strict";
60
-
61
- _class_call_check(this, Store2);
62
- _define_property(this, "props", void 0);
63
- this.props = props;
58
+ "use strict";
59
+ _class_call_check(this, Store2);
60
+ _define_property(this, "props", void 0);
61
+ this.props = props;
64
62
  };
63
+
65
64
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","Store","UNWRAP_PROXY","import_constants","configureUseStore","import_configureUseStore","module","exports","__reExport","require","_class_call_check","instance","Constructor","TypeError"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAC,gBAAA,CAAAD,YAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAC,wBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAb,YAAc,CAAAK,aAAA;AACdS,UAAA,CAAAT,aAAA,EAAAU,OAAkC,0BAAAH,MAAA,CAAAC,OAAA;AAClC,IAAAF,wBAAc,GAAAI,OAAA,gCAFd;AAGAD,UAAA,CAAAT,aAAA,EAAcU,OAAA,yBAHd,GAAAH,MAAA,CAAAC,OAAA;AAIAC,UAAA,CAAAT,aAA6B,EAAAU,OAAA,yBAAAH,MAAA,CAAAC,OAAA;AAC7B,IAAAJ,gBAAA,GAAAM,OAAc;AACdD,UAAA,CAAAT,aAAA,EAAcU,OAAA,6BANdH,MAAA,CAAAC,OAAA;AASOC,UAAM,CAAAT,aAAyC,EAAAU,OAAA,4BAAAH,MAAA,CAAAC,OAAA;AAAA,SACpDG,iBAAiCA,CAAAC,QAAA,EAAAC,WAAA;EAAd,MAAAD,QAAA,YAAAC,WAAA;IAAe,UAAAC,SAAA;EAAf;AACrB","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n Store: () => Store,\n UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,\n configureUseStore: () => import_configureUseStore.configureUseStore\n});\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./useStore\"), module.exports);\nvar import_configureUseStore = require(\"./configureUseStore\");\n__reExport(index_exports, require(\"./interfaces\"), module.exports);\n__reExport(index_exports, require(\"./observe\"), module.exports);\nvar import_constants = require(\"./constants\");\n__reExport(index_exports, require(\"./comparators\"), module.exports);\n__reExport(index_exports, require(\"./decorators\"), module.exports);\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar Store = function Store2(props) {\n \"use strict\";\n _class_call_check(this, Store2);\n _define_property(this, \"props\", void 0);\n this.props = props;\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,aAAa;CACb,oBAAoB,iBAAiB;CACrC,yBAAyB,yBAAyB;AACpD,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO;AAC/D,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,WAAW,eAAe,QAAQ,wBAAc,GAAG,OAAO,OAAO;AACjE,WAAW,eAAe,QAAQ,qBAAW,GAAG,OAAO,OAAO;AAC9D,IAAI,mBAAmB,QAAQ,uBAAa;AAC5C,WAAW,eAAe,QAAQ,yBAAe,GAAG,OAAO,OAAO;AAClE,WAAW,eAAe,QAAQ,wBAAc,GAAG,OAAO,OAAO;AACjE,SAAS,kBAAkB,UAAU,aAAa;CAChD,IAAI,EAAE,oBAAoB,cAAc;EACtC,MAAM,IAAI,UAAU,mCAAmC;CACzD;AACF;AACA,SAAS,iBAAiB,KAAK,KAAK,OAAO;CACzC,IAAI,OAAO,KAAK;EACd,OAAO,eAAe,KAAK,KAAK;GAC9B;GACA,YAAY;GACZ,cAAc;GACd,UAAU;EACZ,CAAC;CACH,OAAO;EACL,IAAI,OAAO;CACb;CACA,OAAO;AACT;AACA,IAAI,QAAQ,SAAS,OAAO,OAAO;CACjC;CACA,kBAAkB,MAAM,MAAM;CAC9B,iBAAiB,MAAM,SAAS,KAAK,CAAC;CACtC,KAAK,QAAQ;AACf"}