@tamagui/use-store 2.7.7 → 3.0.0-beta.1093.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 (93) hide show
  1. package/dist/cjs/Store.cjs +29 -0
  2. package/dist/cjs/Store.native.cjs +49 -0
  3. package/dist/cjs/Store.native.js +51 -0
  4. package/dist/cjs/Store.native.js.map +1 -0
  5. package/dist/cjs/comparators.cjs +26 -30
  6. package/dist/cjs/comparators.native.cjs +40 -0
  7. package/dist/cjs/comparators.native.js +28 -36
  8. package/dist/cjs/comparators.native.js.map +1 -1
  9. package/dist/cjs/configureUseStore.cjs +16 -18
  10. package/dist/cjs/configureUseStore.native.cjs +32 -0
  11. package/dist/cjs/configureUseStore.native.js +16 -17
  12. package/dist/cjs/configureUseStore.native.js.map +1 -1
  13. package/dist/cjs/constants.cjs +18 -20
  14. package/dist/cjs/constants.native.cjs +33 -0
  15. package/dist/cjs/constants.native.js +18 -19
  16. package/dist/cjs/constants.native.js.map +1 -1
  17. package/dist/cjs/decorators.cjs +18 -22
  18. package/dist/cjs/decorators.native.cjs +31 -0
  19. package/dist/cjs/decorators.native.js +18 -21
  20. package/dist/cjs/decorators.native.js.map +1 -1
  21. package/dist/cjs/helpers.cjs +38 -40
  22. package/dist/cjs/helpers.native.cjs +63 -0
  23. package/dist/cjs/helpers.native.js +39 -45
  24. package/dist/cjs/helpers.native.js.map +1 -1
  25. package/dist/cjs/index.cjs +16 -23
  26. package/dist/cjs/index.native.cjs +38 -0
  27. package/dist/cjs/index.native.js +16 -41
  28. package/dist/cjs/index.native.js.map +1 -1
  29. package/dist/cjs/interfaces.cjs +9 -11
  30. package/dist/cjs/interfaces.native.cjs +18 -0
  31. package/dist/cjs/interfaces.native.js +9 -10
  32. package/dist/cjs/interfaces.native.js.map +1 -1
  33. package/dist/cjs/observe.cjs +131 -138
  34. package/dist/cjs/observe.native.cjs +220 -0
  35. package/dist/cjs/observe.native.js +191 -203
  36. package/dist/cjs/observe.native.js.map +1 -1
  37. package/dist/cjs/useStore.cjs +365 -403
  38. package/dist/cjs/useStore.native.cjs +552 -0
  39. package/dist/cjs/useStore.native.js +484 -538
  40. package/dist/cjs/useStore.native.js.map +1 -1
  41. package/dist/cjs/useStoreDebug.cjs +38 -45
  42. package/dist/cjs/useStoreDebug.native.cjs +63 -0
  43. package/dist/cjs/useStoreDebug.native.js +42 -48
  44. package/dist/cjs/useStoreDebug.native.js.map +1 -1
  45. package/dist/esm/Store.mjs +9 -0
  46. package/dist/esm/Store.mjs.map +1 -0
  47. package/dist/esm/Store.native.js +27 -0
  48. package/dist/esm/Store.native.js.map +1 -0
  49. package/dist/esm/comparators.mjs +13 -12
  50. package/dist/esm/comparators.mjs.map +1 -1
  51. package/dist/esm/comparators.native.js +15 -19
  52. package/dist/esm/comparators.native.js.map +1 -1
  53. package/dist/esm/configureUseStore.mjs +2 -1
  54. package/dist/esm/configureUseStore.mjs.map +1 -1
  55. package/dist/esm/configureUseStore.native.js +2 -1
  56. package/dist/esm/configureUseStore.native.js.map +1 -1
  57. package/dist/esm/constants.mjs +4 -3
  58. package/dist/esm/constants.mjs.map +1 -1
  59. package/dist/esm/constants.native.js +4 -3
  60. package/dist/esm/constants.native.js.map +1 -1
  61. package/dist/esm/decorators.mjs +5 -4
  62. package/dist/esm/decorators.mjs.map +1 -1
  63. package/dist/esm/decorators.native.js +5 -4
  64. package/dist/esm/decorators.native.js.map +1 -1
  65. package/dist/esm/helpers.mjs +20 -18
  66. package/dist/esm/helpers.mjs.map +1 -1
  67. package/dist/esm/helpers.native.js +20 -23
  68. package/dist/esm/helpers.native.js.map +1 -1
  69. package/dist/esm/index.js +13 -13
  70. package/dist/esm/index.mjs +13 -13
  71. package/dist/esm/index.native.js +12 -31
  72. package/dist/esm/interfaces.mjs +0 -2
  73. package/dist/esm/interfaces.native.js +0 -2
  74. package/dist/esm/observe.mjs +115 -113
  75. package/dist/esm/observe.mjs.map +1 -1
  76. package/dist/esm/observe.native.js +175 -179
  77. package/dist/esm/observe.native.js.map +1 -1
  78. package/dist/esm/useStore.mjs +336 -363
  79. package/dist/esm/useStore.mjs.map +1 -1
  80. package/dist/esm/useStore.native.js +455 -499
  81. package/dist/esm/useStore.native.js.map +1 -1
  82. package/dist/esm/useStoreDebug.mjs +20 -18
  83. package/dist/esm/useStoreDebug.mjs.map +1 -1
  84. package/dist/esm/useStoreDebug.native.js +23 -21
  85. package/dist/esm/useStoreDebug.native.js.map +1 -1
  86. package/package.json +6 -5
  87. package/src/Store.ts +7 -0
  88. package/src/index.ts +1 -5
  89. package/dist/esm/index.js.map +0 -1
  90. package/dist/esm/index.mjs.map +0 -1
  91. package/dist/esm/index.native.js.map +0 -1
  92. package/dist/esm/interfaces.mjs.map +0 -1
  93. package/dist/esm/interfaces.native.js.map +0 -1
@@ -3,31 +3,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
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;
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
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var decorators_exports = {};
24
- __export(decorators_exports, {
25
- compare: () => compare
26
- });
22
+ __export(decorators_exports, { compare: () => compare });
27
23
  module.exports = __toCommonJS(decorators_exports);
28
24
  function compare(comparator) {
29
- return (target, propertyKey) => {
30
- target["_comparators"] = target["_comparators"] || {};
31
- target["_comparators"][propertyKey] = comparator;
32
- };
33
- }
25
+ return (target, propertyKey) => {
26
+ target["_comparators"] = target["_comparators"] || {};
27
+ target["_comparators"][propertyKey] = comparator;
28
+ };
29
+ }
@@ -0,0 +1,31 @@
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", { value: true }), mod);
23
+ var decorators_exports = {};
24
+ __export(decorators_exports, { compare: () => compare });
25
+ module.exports = __toCommonJS(decorators_exports);
26
+ function compare(comparator) {
27
+ return function(target, propertyKey) {
28
+ target["_comparators"] = target["_comparators"] || {};
29
+ target["_comparators"][propertyKey] = comparator;
30
+ };
31
+ }
@@ -5,32 +5,29 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
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;
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
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var decorators_exports = {};
26
- __export(decorators_exports, {
27
- compare: () => compare
28
- });
24
+ __export(decorators_exports, { compare: () => compare });
29
25
  module.exports = __toCommonJS(decorators_exports);
30
26
  function compare(comparator) {
31
- return function (target, propertyKey) {
32
- target["_comparators"] = target["_comparators"] || {};
33
- target["_comparators"][propertyKey] = comparator;
34
- };
27
+ return function(target, propertyKey) {
28
+ target["_comparators"] = target["_comparators"] || {};
29
+ target["_comparators"][propertyKey] = comparator;
30
+ };
35
31
  }
32
+
36
33
  //# 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,eAAe,CAAC,eAAe;CACxC;AACF"}
@@ -3,60 +3,58 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
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;
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
19
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
21
  var helpers_exports = {};
24
22
  __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
23
+ UNWRAP_STORE_INFO: () => UNWRAP_STORE_INFO,
24
+ cache: () => cache,
25
+ get: () => get,
26
+ getStoreDebugInfo: () => getStoreDebugInfo,
27
+ getStoreDescriptors: () => getStoreDescriptors,
28
+ getStoreUid: () => getStoreUid,
29
+ simpleStr: () => simpleStr
32
30
  });
33
31
  module.exports = __toCommonJS(helpers_exports);
34
32
  var import_simple_hash = require("@tamagui/simple-hash");
35
33
  function getStoreUid(Constructor, props) {
36
- return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
34
+ return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
37
35
  }
38
- const UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO");
39
- const cache = /* @__PURE__ */new Map();
36
+ const UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol("UNWRAP_STORE_INFO");
37
+ const cache = /* @__PURE__ */ new Map();
40
38
  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;
39
+ const proto = Object.getPrototypeOf(storeInstance);
40
+ const instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
41
+ const protoDescriptors = Object.getOwnPropertyDescriptors(proto);
42
+ const descriptors = {
43
+ ...protoDescriptors,
44
+ ...instanceDescriptors
45
+ };
46
+ delete descriptors.constructor;
47
+ return descriptors;
50
48
  }
51
49
  function get(_, b) {
52
- return _;
50
+ return _;
53
51
  }
54
52
  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;
53
+ if (process.env.NODE_ENV === "development") {
54
+ return typeof arg === "function" ? "fn" : typeof arg === "string" ? `"${arg}"` : !arg ? arg : typeof arg !== "object" ? arg : Array.isArray(arg) ? "[...]" : `{...}`;
55
+ }
56
+ return arg;
59
57
  }
60
58
  function getStoreDebugInfo(store) {
61
- return store[UNWRAP_STORE_INFO] ?? cache.get(getStoreUid(store.constructor, store.props));
62
- }
59
+ return store[UNWRAP_STORE_INFO] ?? cache.get(getStoreUid(store.constructor, store.props));
60
+ }
@@ -0,0 +1,63 @@
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", { value: true }), mod);
23
+ var helpers_exports = {};
24
+ __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
32
+ });
33
+ module.exports = __toCommonJS(helpers_exports);
34
+ var import_simple_hash = require("@tamagui/simple-hash");
35
+ function getStoreUid(Constructor, props) {
36
+ return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
37
+ }
38
+ var UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol("UNWRAP_STORE_INFO");
39
+ var cache = /* @__PURE__ */ new Map();
40
+ function getStoreDescriptors(storeInstance) {
41
+ var proto = Object.getPrototypeOf(storeInstance);
42
+ var instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
43
+ var protoDescriptors = Object.getOwnPropertyDescriptors(proto);
44
+ var descriptors = {
45
+ ...protoDescriptors,
46
+ ...instanceDescriptors
47
+ };
48
+ delete descriptors.constructor;
49
+ return descriptors;
50
+ }
51
+ function get(_, b) {
52
+ return _;
53
+ }
54
+ 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;
59
+ }
60
+ function getStoreDebugInfo(store) {
61
+ var _store_UNWRAP_STORE_INFO;
62
+ 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));
63
+ }
@@ -5,67 +5,61 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
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;
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
21
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
23
  var helpers_exports = {};
26
24
  __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
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
34
32
  });
35
33
  module.exports = __toCommonJS(helpers_exports);
36
34
  var import_simple_hash = require("@tamagui/simple-hash");
37
- function _type_of(obj) {
38
- "@swc/helpers - typeof";
39
-
40
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
41
- }
42
35
  function getStoreUid(Constructor, props) {
43
- return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
36
+ return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
44
37
  }
45
- var UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO");
46
- var cache = /* @__PURE__ */new Map();
38
+ var UNWRAP_STORE_INFO = /* @__PURE__ */ Symbol("UNWRAP_STORE_INFO");
39
+ var cache = /* @__PURE__ */ new Map();
47
40
  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;
41
+ var proto = Object.getPrototypeOf(storeInstance);
42
+ var instanceDescriptors = Object.getOwnPropertyDescriptors(storeInstance);
43
+ var protoDescriptors = Object.getOwnPropertyDescriptors(proto);
44
+ var descriptors = {
45
+ ...protoDescriptors,
46
+ ...instanceDescriptors
47
+ };
48
+ delete descriptors.constructor;
49
+ return descriptors;
57
50
  }
58
51
  function get(_, b) {
59
- return _;
52
+ return _;
60
53
  }
61
54
  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;
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;
66
59
  }
67
60
  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));
61
+ var _store_UNWRAP_STORE_INFO;
62
+ 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
63
  }
64
+
71
65
  //# 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 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 !== \"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,YAAY,aAAa,OAAO;CACvC,QAAQ,GAAG,mBAAmB,WAAU,CAAE,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,MAAM,OAAO,QAAQ,WAAW,MAAM,MAAM,QAAQ,GAAG,IAAI,UAAU;CAC/J;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"}
@@ -3,29 +3,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
10
  };
11
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;
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
19
  };
20
20
  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);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
22
  var index_exports = {};
25
23
  __export(index_exports, {
26
- Store: () => Store,
27
- UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
28
- configureUseStore: () => import_configureUseStore.configureUseStore
24
+ Store: () => import_Store.Store,
25
+ UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
26
+ configureUseStore: () => import_configureUseStore.configureUseStore
29
27
  });
30
28
  module.exports = __toCommonJS(index_exports);
31
29
  __reExport(index_exports, require("./useStore.cjs"), module.exports);
@@ -35,9 +33,4 @@ __reExport(index_exports, require("./observe.cjs"), module.exports);
35
33
  var import_constants = require("./constants.cjs");
36
34
  __reExport(index_exports, require("./comparators.cjs"), module.exports);
37
35
  __reExport(index_exports, require("./decorators.cjs"), module.exports);
38
- class Store {
39
- constructor(props) {
40
- this.props = props;
41
- }
42
- props;
43
- }
36
+ var import_Store = require("./Store.cjs");
@@ -0,0 +1,38 @@
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, {
26
+ Store: () => import_Store.Store,
27
+ UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
28
+ configureUseStore: () => import_configureUseStore.configureUseStore
29
+ });
30
+ module.exports = __toCommonJS(index_exports);
31
+ __reExport(index_exports, require("./useStore.native.js"), module.exports);
32
+ var import_configureUseStore = require("./configureUseStore.native.js");
33
+ __reExport(index_exports, require("./interfaces.native.js"), module.exports);
34
+ __reExport(index_exports, require("./observe.native.js"), module.exports);
35
+ var import_constants = require("./constants.native.js");
36
+ __reExport(index_exports, require("./comparators.native.js"), module.exports);
37
+ __reExport(index_exports, require("./decorators.native.js"), module.exports);
38
+ var import_Store = require("./Store.native.js");
@@ -5,29 +5,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
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;
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
21
  };
22
22
  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);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
24
  var index_exports = {};
27
25
  __export(index_exports, {
28
- Store: () => Store,
29
- UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
30
- configureUseStore: () => import_configureUseStore.configureUseStore
26
+ Store: () => import_Store.Store,
27
+ UNWRAP_PROXY: () => import_constants.UNWRAP_PROXY,
28
+ configureUseStore: () => import_configureUseStore.configureUseStore
31
29
  });
32
30
  module.exports = __toCommonJS(index_exports);
33
31
  __reExport(index_exports, require("./useStore.native.js"), module.exports);
@@ -37,29 +35,6 @@ __reExport(index_exports, require("./observe.native.js"), module.exports);
37
35
  var import_constants = require("./constants.native.js");
38
36
  __reExport(index_exports, require("./comparators.native.js"), module.exports);
39
37
  __reExport(index_exports, require("./decorators.native.js"), module.exports);
40
- function _class_call_check(instance, Constructor) {
41
- if (!(instance instanceof Constructor)) {
42
- throw new TypeError("Cannot call a class as a function");
43
- }
44
- }
45
- 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;
57
- }
58
- var Store = function Store2(props) {
59
- "use strict";
38
+ var import_Store = require("./Store.native.js");
60
39
 
61
- _class_call_check(this, Store2);
62
- _define_property(this, "props", void 0);
63
- this.props = props;
64
- };
65
40
  //# 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: () => import_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);\nvar import_Store = require(\"./Store\");\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,aAAa;CAC1B,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,IAAI,eAAe,QAAQ,mBAAS"}