@tamagui/use-store 2.0.0-rc.8 → 2.0.0
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 +18 -14
- package/dist/cjs/comparators.native.js +21 -17
- package/dist/cjs/comparators.native.js.map +1 -1
- package/dist/cjs/configureUseStore.cjs +12 -10
- package/dist/cjs/configureUseStore.native.js +12 -10
- package/dist/cjs/configureUseStore.native.js.map +1 -1
- package/dist/cjs/constants.cjs +17 -15
- package/dist/cjs/constants.native.js +17 -15
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/decorators.cjs +14 -11
- package/dist/cjs/decorators.native.js +14 -11
- package/dist/cjs/decorators.native.js.map +1 -1
- package/dist/cjs/helpers.cjs +28 -21
- package/dist/cjs/helpers.native.js +29 -23
- package/dist/cjs/helpers.native.js.map +1 -1
- package/dist/cjs/index.cjs +13 -11
- package/dist/cjs/index.native.js +30 -19
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/interfaces.cjs +7 -5
- package/dist/cjs/interfaces.native.js +7 -5
- package/dist/cjs/interfaces.native.js.map +1 -1
- package/dist/cjs/observe.cjs +105 -59
- package/dist/cjs/observe.native.js +159 -111
- package/dist/cjs/observe.native.js.map +1 -1
- package/dist/cjs/useStore.cjs +271 -194
- package/dist/cjs/useStore.native.js +438 -374
- package/dist/cjs/useStore.native.js.map +1 -1
- package/dist/cjs/useStoreDebug.cjs +42 -31
- package/dist/cjs/useStoreDebug.native.js +42 -36
- package/dist/cjs/useStoreDebug.native.js.map +1 -1
- package/dist/esm/comparators.mjs +6 -4
- package/dist/esm/comparators.mjs.map +1 -1
- package/dist/esm/comparators.native.js +9 -7
- package/dist/esm/comparators.native.js.map +1 -1
- package/dist/esm/constants.mjs +5 -5
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +5 -5
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/decorators.mjs +2 -1
- package/dist/esm/decorators.mjs.map +1 -1
- package/dist/esm/decorators.native.js +2 -1
- package/dist/esm/decorators.native.js.map +1 -1
- package/dist/esm/helpers.mjs +16 -11
- package/dist/esm/helpers.mjs.map +1 -1
- package/dist/esm/helpers.native.js +17 -13
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.js +8 -12
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/index.native.js +17 -8
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/observe.mjs +77 -33
- package/dist/esm/observe.mjs.map +1 -1
- package/dist/esm/observe.native.js +128 -82
- package/dist/esm/observe.native.js.map +1 -1
- package/dist/esm/useStore.mjs +241 -166
- package/dist/esm/useStore.mjs.map +1 -1
- package/dist/esm/useStore.native.js +408 -346
- package/dist/esm/useStore.native.js.map +1 -1
- package/dist/esm/useStoreDebug.mjs +18 -9
- package/dist/esm/useStoreDebug.mjs.map +1 -1
- package/dist/esm/useStoreDebug.native.js +14 -10
- package/dist/esm/useStoreDebug.native.js.map +1 -1
- package/package.json +6 -9
- package/dist/cjs/comparators.js +0 -33
- package/dist/cjs/comparators.js.map +0 -6
- package/dist/cjs/configureUseStore.js +0 -25
- package/dist/cjs/configureUseStore.js.map +0 -6
- package/dist/cjs/constants.js +0 -25
- package/dist/cjs/constants.js.map +0 -6
- package/dist/cjs/decorators.js +0 -25
- package/dist/cjs/decorators.js.map +0 -6
- package/dist/cjs/helpers.js +0 -50
- package/dist/cjs/helpers.js.map +0 -6
- package/dist/cjs/index.js +0 -34
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/interfaces.js +0 -14
- package/dist/cjs/interfaces.js.map +0 -6
- package/dist/cjs/observe.js +0 -105
- package/dist/cjs/observe.js.map +0 -6
- package/dist/cjs/useStore.js +0 -353
- package/dist/cjs/useStore.js.map +0 -6
- package/dist/cjs/useStoreDebug.js +0 -46
- package/dist/cjs/useStoreDebug.js.map +0 -6
- package/dist/esm/comparators.js +0 -17
- package/dist/esm/comparators.js.map +0 -6
- package/dist/esm/configureUseStore.js +0 -9
- package/dist/esm/configureUseStore.js.map +0 -6
- package/dist/esm/constants.js +0 -9
- package/dist/esm/constants.js.map +0 -6
- package/dist/esm/decorators.js +0 -9
- package/dist/esm/decorators.js.map +0 -6
- package/dist/esm/helpers.js +0 -34
- package/dist/esm/helpers.js.map +0 -6
- package/dist/esm/interfaces.js +0 -1
- package/dist/esm/interfaces.js.map +0 -6
- package/dist/esm/observe.js +0 -84
- package/dist/esm/observe.js.map +0 -6
- package/dist/esm/useStore.js +0 -340
- package/dist/esm/useStore.js.map +0 -6
- package/dist/esm/useStoreDebug.js +0 -22
- package/dist/esm/useStoreDebug.js.map +0 -6
package/dist/cjs/comparators.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var comparators_exports = {};
|
|
22
24
|
__export(comparators_exports, {
|
|
@@ -25,13 +27,15 @@ __export(comparators_exports, {
|
|
|
25
27
|
module.exports = __toCommonJS(comparators_exports);
|
|
26
28
|
const isEqualSubsetShallow = (a, b, opts) => {
|
|
27
29
|
if (b == null || a == null) return a === b;
|
|
28
|
-
if (typeof a
|
|
29
|
-
if (typeof b
|
|
30
|
+
if (typeof a !== typeof b) return false;
|
|
31
|
+
if (typeof b === "object") {
|
|
30
32
|
for (const key in b) {
|
|
31
33
|
const compare = opts?.keyComparators?.[key];
|
|
32
|
-
if (compare ? !compare(a[key], b[key]) : b[key] !== a[key])
|
|
34
|
+
if (compare ? !compare(a[key], b[key]) : b[key] !== a[key]) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
|
-
return
|
|
38
|
+
return true;
|
|
35
39
|
}
|
|
36
40
|
return a === b;
|
|
37
41
|
};
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var comparators_exports = {};
|
|
24
26
|
__export(comparators_exports, {
|
|
@@ -28,18 +30,20 @@ module.exports = __toCommonJS(comparators_exports);
|
|
|
28
30
|
function _type_of(obj) {
|
|
29
31
|
"@swc/helpers - typeof";
|
|
30
32
|
|
|
31
|
-
return obj && typeof Symbol
|
|
33
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
32
34
|
}
|
|
33
35
|
var isEqualSubsetShallow = function (a, b, opts) {
|
|
34
36
|
if (b == null || a == null) return a === b;
|
|
35
|
-
if ((typeof a
|
|
36
|
-
if ((typeof b
|
|
37
|
+
if ((typeof a === "undefined" ? "undefined" : _type_of(a)) !== (typeof b === "undefined" ? "undefined" : _type_of(b))) return false;
|
|
38
|
+
if ((typeof b === "undefined" ? "undefined" : _type_of(b)) === "object") {
|
|
37
39
|
for (var key in b) {
|
|
38
|
-
var _opts_keyComparators
|
|
39
|
-
|
|
40
|
-
if (compare ? !compare(a[key], b[key]) : b[key] !== a[key])
|
|
40
|
+
var _opts_keyComparators;
|
|
41
|
+
var compare = opts === null || opts === void 0 ? void 0 : (_opts_keyComparators = opts.keyComparators) === null || _opts_keyComparators === void 0 ? void 0 : _opts_keyComparators[key];
|
|
42
|
+
if (compare ? !compare(a[key], b[key]) : b[key] !== a[key]) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
|
-
return
|
|
46
|
+
return true;
|
|
43
47
|
}
|
|
44
48
|
return a === b;
|
|
45
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","comparators_exports","__export","isEqualSubsetShallow","module","exports","_type_of","obj","Symbol","constructor","a","b","opts","key","_opts_keyComparators","compare","keyComparators"],"sources":["../../src/comparators.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","comparators_exports","__export","isEqualSubsetShallow","module","exports","_type_of","obj","Symbol","constructor","a","b","opts","key","_opts_keyComparators","compare","keyComparators"],"sources":["../../src/comparators.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAT,YAAuB,CAClCK,mBAGG;AACH,SAAIK,QAAKA,CAAAC,GAAQ;EACjB,uBAAiB;;EACjB,OAAIA,GAAA,IAAO,OAAMC,MAAU,oBAAAD,GAAA,CAAAE,WAAA,KAAAD,MAAA,qBAAAD,GAAA;AACzB;AACE,IAAAJ,oBAAgB,YAAAA,CAAMO,CAAA,EAAAC,CAAA,EAAAC,IAAiB,EAAG;EAC1C,IAAAD,CAAA,IAAI,QAAAD,CAAU,IAAC,MAAQ,OAAQA,CAAA,KAAMC,CAAA;EACnC,YAAAD,CAAO,iCAAAJ,QAAA,CAAAI,CAAA,eAAAC,CAAA,iCAAAL,QAAA,CAAAK,CAAA;EAAA,IACT,QAAAA,CAAA,iCAAAL,QAAA,CAAAK,CAAA;IACF,SAAAE,GAAA,IAAAF,CAAA;MACA,IAAAG,oBAAO;MACT,IAAAC,OAAA,GAAAH,IAAA,aAAAA,IAAA,wBAAAE,oBAAA,GAAAF,IAAA,CAAAI,cAAA,cAAAF,oBAAA,uBAAAA,oBAAA,CAAAD,GAAA;MACA,IAAOE,OAAM,IAAAA,OAAA,CAAAL,CAAA,CAAAG,GAAA,GAAAF,CAAA,CAAAE,GAAA,KAAAF,CAAA,CAAAE,GAAA,MAAAH,CAAA,CAAAG,GAAA;QACf","ignoreList":[]}
|
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var configureUseStore_exports = {};
|
|
22
24
|
__export(configureUseStore_exports, {
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var configureUseStore_exports = {};
|
|
24
26
|
__export(configureUseStore_exports, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","configureUseStore_exports","__export","configureOpts","configureUseStore","module","exports","opts"],"sources":["../../src/configureUseStore.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","configureUseStore_exports","__export","configureOpts","configureUseStore","module","exports","opts"],"sources":["../../src/configureUseStore.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAEOC,MAAI,CAAAC,OAAA,GAAAV,YAAiC,CAAAK,yBAAA;AAErC,IAAAE,aAAS;AACd,SAAAC,iBAAgBA,CAAAG,IAAA;EAClBJ,aAAA,GAAAI,IAAA","ignoreList":[]}
|
package/dist/cjs/constants.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var constants_exports = {};
|
|
22
24
|
__export(constants_exports, {
|
|
@@ -24,8 +26,8 @@ __export(constants_exports, {
|
|
|
24
26
|
defaultOptions: () => defaultOptions
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(constants_exports);
|
|
27
|
-
const UNWRAP_PROXY = /* @__PURE__ */Symbol()
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
const UNWRAP_PROXY = /* @__PURE__ */Symbol();
|
|
30
|
+
const defaultOptions = {
|
|
31
|
+
once: false,
|
|
32
|
+
selector: void 0
|
|
33
|
+
};
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var constants_exports = {};
|
|
24
26
|
__export(constants_exports, {
|
|
@@ -26,9 +28,9 @@ __export(constants_exports, {
|
|
|
26
28
|
defaultOptions: () => defaultOptions
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(constants_exports);
|
|
29
|
-
var UNWRAP_PROXY = /* @__PURE__ */Symbol()
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
var UNWRAP_PROXY = /* @__PURE__ */Symbol();
|
|
32
|
+
var defaultOptions = {
|
|
33
|
+
once: false,
|
|
34
|
+
selector: void 0
|
|
35
|
+
};
|
|
34
36
|
//# sourceMappingURL=constants.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","UNWRAP_PROXY","defaultOptions","module","exports","Symbol","once","selector"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","UNWRAP_PROXY","defaultOptions","module","exports","Symbol","once","selector"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAM,CAAAC,OAAA,GAAAV,YAAe,CAAAK,iBAAO;AAE5B,IAAAE,YAAM,kBAAiBI,MAAA;AAAA,IAC5BH,cAAM;EACNI,IAAA,OAAU;EACZC,QAAA","ignoreList":[]}
|
package/dist/cjs/decorators.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var decorators_exports = {};
|
|
22
24
|
__export(decorators_exports, {
|
|
@@ -25,6 +27,7 @@ __export(decorators_exports, {
|
|
|
25
27
|
module.exports = __toCommonJS(decorators_exports);
|
|
26
28
|
function compare(comparator) {
|
|
27
29
|
return (target, propertyKey) => {
|
|
28
|
-
target
|
|
30
|
+
target["_comparators"] = target["_comparators"] || {};
|
|
31
|
+
target["_comparators"][propertyKey] = comparator;
|
|
29
32
|
};
|
|
30
33
|
}
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var decorators_exports = {};
|
|
24
26
|
__export(decorators_exports, {
|
|
@@ -27,7 +29,8 @@ __export(decorators_exports, {
|
|
|
27
29
|
module.exports = __toCommonJS(decorators_exports);
|
|
28
30
|
function compare(comparator) {
|
|
29
31
|
return function (target, propertyKey) {
|
|
30
|
-
target
|
|
32
|
+
target["_comparators"] = target["_comparators"] || {};
|
|
33
|
+
target["_comparators"][propertyKey] = comparator;
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
//# 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"
|
|
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":[]}
|
package/dist/cjs/helpers.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var helpers_exports = {};
|
|
22
24
|
__export(helpers_exports, {
|
|
@@ -31,24 +33,29 @@ __export(helpers_exports, {
|
|
|
31
33
|
module.exports = __toCommonJS(helpers_exports);
|
|
32
34
|
var import_simple_hash = require("@tamagui/simple-hash");
|
|
33
35
|
function getStoreUid(Constructor, props) {
|
|
34
|
-
return (0, import_simple_hash.simpleHash)(`${Constructor}${props ? typeof props
|
|
36
|
+
return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
|
|
35
37
|
}
|
|
36
|
-
const UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO")
|
|
37
|
-
|
|
38
|
+
const UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO");
|
|
39
|
+
const cache = /* @__PURE__ */new Map();
|
|
38
40
|
function getStoreDescriptors(storeInstance) {
|
|
39
|
-
const proto = Object.getPrototypeOf(storeInstance)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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;
|
|
46
50
|
}
|
|
47
51
|
function get(_, b) {
|
|
48
52
|
return _;
|
|
49
53
|
}
|
|
50
54
|
function simpleStr(arg) {
|
|
51
|
-
|
|
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;
|
|
52
59
|
}
|
|
53
60
|
function getStoreDebugInfo(store) {
|
|
54
61
|
return store[UNWRAP_STORE_INFO] ?? cache.get(getStoreUid(store.constructor, store.props));
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var helpers_exports = {};
|
|
24
26
|
__export(helpers_exports, {
|
|
@@ -35,28 +37,32 @@ var import_simple_hash = require("@tamagui/simple-hash");
|
|
|
35
37
|
function _type_of(obj) {
|
|
36
38
|
"@swc/helpers - typeof";
|
|
37
39
|
|
|
38
|
-
return obj && typeof Symbol
|
|
40
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
39
41
|
}
|
|
40
42
|
function getStoreUid(Constructor, props) {
|
|
41
|
-
return (0, import_simple_hash.simpleHash)(`${Constructor}${props ? typeof props
|
|
43
|
+
return (0, import_simple_hash.simpleHash)(`${Constructor}${!props ? "" : typeof props === "string" ? props : JSON.stringify(props)}`, "strict");
|
|
42
44
|
}
|
|
43
|
-
var UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO")
|
|
44
|
-
|
|
45
|
+
var UNWRAP_STORE_INFO = /* @__PURE__ */Symbol("UNWRAP_STORE_INFO");
|
|
46
|
+
var cache = /* @__PURE__ */new Map();
|
|
45
47
|
function getStoreDescriptors(storeInstance) {
|
|
46
|
-
var proto = Object.getPrototypeOf(storeInstance)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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;
|
|
54
57
|
}
|
|
55
58
|
function get(_, b) {
|
|
56
59
|
return _;
|
|
57
60
|
}
|
|
58
61
|
function simpleStr(arg) {
|
|
59
|
-
|
|
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
66
|
}
|
|
61
67
|
function getStoreDebugInfo(store) {
|
|
62
68
|
var _store_UNWRAP_STORE_INFO;
|
|
@@ -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":"
|
|
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":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,21 +3,23 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
21
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
-
value:
|
|
22
|
+
value: true
|
|
21
23
|
}), mod);
|
|
22
24
|
var index_exports = {};
|
|
23
25
|
__export(index_exports, {
|