@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.
- package/dist/cjs/comparators.cjs +27 -30
- package/dist/cjs/comparators.native.cjs +45 -0
- package/dist/cjs/comparators.native.js +31 -34
- package/dist/cjs/comparators.native.js.map +1 -1
- package/dist/cjs/configureUseStore.cjs +17 -18
- package/dist/cjs/configureUseStore.native.cjs +33 -0
- package/dist/cjs/configureUseStore.native.js +17 -17
- package/dist/cjs/configureUseStore.native.js.map +1 -1
- package/dist/cjs/constants.cjs +19 -20
- package/dist/cjs/constants.native.cjs +34 -0
- package/dist/cjs/constants.native.js +19 -19
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/decorators.cjs +19 -22
- package/dist/cjs/decorators.native.cjs +32 -0
- package/dist/cjs/decorators.native.js +19 -21
- package/dist/cjs/decorators.native.js.map +1 -1
- package/dist/cjs/helpers.cjs +39 -40
- package/dist/cjs/helpers.native.cjs +68 -0
- package/dist/cjs/helpers.native.js +42 -43
- package/dist/cjs/helpers.native.js.map +1 -1
- package/dist/cjs/index.cjs +22 -23
- package/dist/cjs/index.native.cjs +62 -0
- package/dist/cjs/index.native.js +35 -36
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/interfaces.cjs +10 -11
- package/dist/cjs/interfaces.native.cjs +19 -0
- package/dist/cjs/interfaces.native.js +10 -10
- package/dist/cjs/interfaces.native.js.map +1 -1
- package/dist/cjs/observe.cjs +132 -138
- package/dist/cjs/observe.native.cjs +221 -0
- package/dist/cjs/observe.native.js +192 -203
- package/dist/cjs/observe.native.js.map +1 -1
- package/dist/cjs/useStore.cjs +366 -403
- package/dist/cjs/useStore.native.cjs +557 -0
- package/dist/cjs/useStore.native.js +487 -536
- package/dist/cjs/useStore.native.js.map +1 -1
- package/dist/cjs/useStoreDebug.cjs +39 -45
- package/dist/cjs/useStoreDebug.native.cjs +64 -0
- package/dist/cjs/useStoreDebug.native.js +43 -48
- package/dist/cjs/useStoreDebug.native.js.map +1 -1
- package/dist/esm/comparators.mjs +13 -12
- package/dist/esm/comparators.mjs.map +1 -1
- package/dist/esm/comparators.native.js +17 -17
- package/dist/esm/comparators.native.js.map +1 -1
- package/dist/esm/configureUseStore.mjs +2 -1
- package/dist/esm/configureUseStore.mjs.map +1 -1
- package/dist/esm/configureUseStore.native.js +2 -1
- package/dist/esm/configureUseStore.native.js.map +1 -1
- package/dist/esm/constants.mjs +4 -3
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +4 -3
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/decorators.mjs +5 -4
- package/dist/esm/decorators.mjs.map +1 -1
- package/dist/esm/decorators.native.js +5 -4
- package/dist/esm/decorators.native.js.map +1 -1
- package/dist/esm/helpers.mjs +20 -18
- package/dist/esm/helpers.mjs.map +1 -1
- package/dist/esm/helpers.native.js +23 -22
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.js +18 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +18 -11
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +30 -24
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/interfaces.mjs +0 -2
- package/dist/esm/interfaces.native.js +0 -2
- package/dist/esm/observe.mjs +115 -113
- package/dist/esm/observe.mjs.map +1 -1
- package/dist/esm/observe.native.js +175 -179
- package/dist/esm/observe.native.js.map +1 -1
- package/dist/esm/useStore.mjs +336 -363
- package/dist/esm/useStore.mjs.map +1 -1
- package/dist/esm/useStore.native.js +457 -497
- package/dist/esm/useStore.native.js.map +1 -1
- package/dist/esm/useStoreDebug.mjs +20 -18
- package/dist/esm/useStoreDebug.mjs.map +1 -1
- package/dist/esm/useStoreDebug.native.js +23 -21
- package/dist/esm/useStoreDebug.native.js.map +1 -1
- package/package.json +3 -3
- package/dist/esm/interfaces.mjs.map +0 -1
- 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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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,"
|
|
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"}
|
package/dist/cjs/helpers.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
51
|
+
return _;
|
|
53
52
|
}
|
|
54
53
|
function simpleStr(arg) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
57
|
+
return _;
|
|
60
58
|
}
|
|
61
59
|
function simpleStr(arg) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
69
|
-
|
|
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,"
|
|
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,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MAAM,aAAa,MAAM,KAAK,CAAC;AACjM"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
+
};
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
42
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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,"
|
|
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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