redux-astroglide 0.1.20 → 0.1.21
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/index.es.js +101 -139
- package/dist/index.js +101 -139
- package/dist/index.umd.js +3058 -329
- package/dist/plugins/index.es.js +58 -84
- package/dist/plugins/index.js +58 -84
- package/dist/plugins/index.umd.js +58 -84
- package/dist/plugins/persist/index.es.js +3 -1
- package/dist/plugins/persist/index.js +3 -1
- package/dist/plugins/persist/index.umd.js +3 -1
- package/dist/plugins/type/index.es.js +18 -24
- package/dist/plugins/type/index.js +18 -24
- package/dist/plugins/type/index.umd.js +18 -24
- package/dist/selectors/index.es.js +58 -72
- package/dist/selectors/index.js +58 -72
- package/dist/selectors/index.umd.js +2841 -80
- package/dist/types/astroglide.d.ts +1 -1
- package/dist/types/plugins/persist/__tests__/persist.test.d.ts +1 -0
- package/dist/types/setupTests.d.ts +2 -0
- package/package.json +14 -2
- package/CHANGELOG.md +0 -4
- package/plugins/index.es.js +0 -325
- package/plugins/index.js +0 -338
- package/plugins/index.umd.js +0 -422
- package/plugins/persist/index.es.js +0 -69
- package/plugins/persist/index.js +0 -76
- package/plugins/persist/index.umd.js +0 -82
- package/plugins/set/index.es.js +0 -17
- package/plugins/set/index.js +0 -19
- package/plugins/set/index.umd.js +0 -25
- package/plugins/type/index.es.js +0 -104
- package/plugins/type/index.js +0 -110
- package/plugins/type/index.umd.js +0 -194
package/dist/index.es.js
CHANGED
|
@@ -3,6 +3,60 @@ import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
|
3
3
|
import { injectableMiddleware, injectMiddleware } from 'redux-injectable-middleware';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
|
|
6
|
+
function _arrayLikeToArray(r, a) {
|
|
7
|
+
(null == a || a > r.length) && (a = r.length);
|
|
8
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function _arrayWithoutHoles(r) {
|
|
12
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
13
|
+
}
|
|
14
|
+
function _classCallCheck(a, n) {
|
|
15
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
16
|
+
}
|
|
17
|
+
function _construct(t, e, r) {
|
|
18
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
19
|
+
var o = [null];
|
|
20
|
+
o.push.apply(o, e);
|
|
21
|
+
var p = new (t.bind.apply(t, o))();
|
|
22
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
23
|
+
}
|
|
24
|
+
function _defineProperties(e, r) {
|
|
25
|
+
for (var t = 0; t < r.length; t++) {
|
|
26
|
+
var o = r[t];
|
|
27
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function _createClass(e, r, t) {
|
|
31
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
32
|
+
writable: !1
|
|
33
|
+
}), e;
|
|
34
|
+
}
|
|
35
|
+
function _defineProperty(e, r, t) {
|
|
36
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
37
|
+
value: t,
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0
|
|
41
|
+
}) : e[r] = t, e;
|
|
42
|
+
}
|
|
43
|
+
function _isNativeReflectConstruct() {
|
|
44
|
+
try {
|
|
45
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
46
|
+
} catch (t) {}
|
|
47
|
+
return (_isNativeReflectConstruct = function () {
|
|
48
|
+
return !!t;
|
|
49
|
+
})();
|
|
50
|
+
}
|
|
51
|
+
function _iterableToArray(r) {
|
|
52
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
53
|
+
}
|
|
54
|
+
function _nonIterableSpread() {
|
|
55
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
56
|
+
}
|
|
57
|
+
function _objectDestructuringEmpty(t) {
|
|
58
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
59
|
+
}
|
|
6
60
|
function ownKeys(e, r) {
|
|
7
61
|
var t = Object.keys(e);
|
|
8
62
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -24,152 +78,63 @@ function _objectSpread2(e) {
|
|
|
24
78
|
}
|
|
25
79
|
return e;
|
|
26
80
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
function _classCallCheck(instance, Constructor) {
|
|
37
|
-
if (!(instance instanceof Constructor)) {
|
|
38
|
-
throw new TypeError("Cannot call a class as a function");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function _defineProperties(target, props) {
|
|
42
|
-
for (var i = 0; i < props.length; i++) {
|
|
43
|
-
var descriptor = props[i];
|
|
44
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
45
|
-
descriptor.configurable = true;
|
|
46
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
47
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
51
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
53
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
54
|
-
writable: false
|
|
55
|
-
});
|
|
56
|
-
return Constructor;
|
|
57
|
-
}
|
|
58
|
-
function _defineProperty(obj, key, value) {
|
|
59
|
-
key = _toPropertyKey(key);
|
|
60
|
-
if (key in obj) {
|
|
61
|
-
Object.defineProperty(obj, key, {
|
|
62
|
-
value: value,
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true,
|
|
65
|
-
writable: true
|
|
66
|
-
});
|
|
67
|
-
} else {
|
|
68
|
-
obj[key] = value;
|
|
69
|
-
}
|
|
70
|
-
return obj;
|
|
71
|
-
}
|
|
72
|
-
function _setPrototypeOf(o, p) {
|
|
73
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
74
|
-
o.__proto__ = p;
|
|
75
|
-
return o;
|
|
76
|
-
};
|
|
77
|
-
return _setPrototypeOf(o, p);
|
|
78
|
-
}
|
|
79
|
-
function _isNativeReflectConstruct() {
|
|
80
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
81
|
-
if (Reflect.construct.sham) return false;
|
|
82
|
-
if (typeof Proxy === "function") return true;
|
|
83
|
-
try {
|
|
84
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
85
|
-
return true;
|
|
86
|
-
} catch (e) {
|
|
87
|
-
return false;
|
|
81
|
+
function _objectWithoutProperties(e, t) {
|
|
82
|
+
if (null == e) return {};
|
|
83
|
+
var o,
|
|
84
|
+
r,
|
|
85
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
86
|
+
if (Object.getOwnPropertySymbols) {
|
|
87
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
88
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
88
89
|
}
|
|
90
|
+
return i;
|
|
89
91
|
}
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
a.push.apply(a, args);
|
|
97
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
98
|
-
var instance = new Constructor();
|
|
99
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
100
|
-
return instance;
|
|
101
|
-
};
|
|
92
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
93
|
+
if (null == r) return {};
|
|
94
|
+
var t = {};
|
|
95
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
96
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
97
|
+
t[n] = r[n];
|
|
102
98
|
}
|
|
103
|
-
return
|
|
99
|
+
return t;
|
|
104
100
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
101
|
+
function _setPrototypeOf(t, e) {
|
|
102
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
103
|
+
return t.__proto__ = e, t;
|
|
104
|
+
}, _setPrototypeOf(t, e);
|
|
107
105
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
var target = {};
|
|
111
|
-
var sourceKeys = Object.keys(source);
|
|
112
|
-
var key, i;
|
|
113
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
114
|
-
key = sourceKeys[i];
|
|
115
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
116
|
-
target[key] = source[key];
|
|
117
|
-
}
|
|
118
|
-
return target;
|
|
106
|
+
function _toConsumableArray(r) {
|
|
107
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
119
108
|
}
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
key = sourceSymbolKeys[i];
|
|
128
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
129
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
130
|
-
target[key] = source[key];
|
|
131
|
-
}
|
|
109
|
+
function _toPrimitive(t, r) {
|
|
110
|
+
if ("object" != typeof t || !t) return t;
|
|
111
|
+
var e = t[Symbol.toPrimitive];
|
|
112
|
+
if (void 0 !== e) {
|
|
113
|
+
var i = e.call(t, r || "default");
|
|
114
|
+
if ("object" != typeof i) return i;
|
|
115
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
132
116
|
}
|
|
133
|
-
return
|
|
134
|
-
}
|
|
135
|
-
function _toConsumableArray(arr) {
|
|
136
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
137
|
-
}
|
|
138
|
-
function _arrayWithoutHoles(arr) {
|
|
139
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
140
|
-
}
|
|
141
|
-
function _iterableToArray(iter) {
|
|
142
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
143
|
-
}
|
|
144
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
145
|
-
if (!o) return;
|
|
146
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
147
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
148
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
149
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
150
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
117
|
+
return ("string" === r ? String : Number)(t);
|
|
151
118
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return arr2;
|
|
119
|
+
function _toPropertyKey(t) {
|
|
120
|
+
var i = _toPrimitive(t, "string");
|
|
121
|
+
return "symbol" == typeof i ? i : i + "";
|
|
156
122
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
123
|
+
function _typeof(o) {
|
|
124
|
+
"@babel/helpers - typeof";
|
|
125
|
+
|
|
126
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
127
|
+
return typeof o;
|
|
128
|
+
} : function (o) {
|
|
129
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
130
|
+
}, _typeof(o);
|
|
159
131
|
}
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
if (typeof res !== "object") return res;
|
|
166
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
132
|
+
function _unsupportedIterableToArray(r, a) {
|
|
133
|
+
if (r) {
|
|
134
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
135
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
136
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
167
137
|
}
|
|
168
|
-
return (hint === "string" ? String : Number)(input);
|
|
169
|
-
}
|
|
170
|
-
function _toPropertyKey(arg) {
|
|
171
|
-
var key = _toPrimitive(arg, "string");
|
|
172
|
-
return typeof key === "symbol" ? key : String(key);
|
|
173
138
|
}
|
|
174
139
|
|
|
175
140
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -3582,7 +3547,6 @@ var makeSetterReducersFromInitialState = function makeSetterReducersFromInitialS
|
|
|
3582
3547
|
draft: state
|
|
3583
3548
|
}, data)); // provide both state. and draft. apis so fewer users complain
|
|
3584
3549
|
});
|
|
3585
|
-
|
|
3586
3550
|
state[name] = value;
|
|
3587
3551
|
};
|
|
3588
3552
|
});
|
|
@@ -3613,7 +3577,7 @@ var plugin = function plugin(_ref) {
|
|
|
3613
3577
|
}
|
|
3614
3578
|
|
|
3615
3579
|
// either the initial state value or the next plugin
|
|
3616
|
-
_createClass(_class, [{
|
|
3580
|
+
return _createClass(_class, [{
|
|
3617
3581
|
key: "getValue",
|
|
3618
3582
|
value: function getValue() {
|
|
3619
3583
|
return this.value;
|
|
@@ -3649,7 +3613,6 @@ var plugin = function plugin(_ref) {
|
|
|
3649
3613
|
return value;
|
|
3650
3614
|
}
|
|
3651
3615
|
}]);
|
|
3652
|
-
return _class;
|
|
3653
3616
|
}();
|
|
3654
3617
|
};
|
|
3655
3618
|
var addPlugin = function addPlugin(config) {
|
|
@@ -3906,7 +3869,6 @@ var configure = function configure(_ref) {
|
|
|
3906
3869
|
useAction(slice.actions.__override__slice__caution, undefined) // state overwriter
|
|
3907
3870
|
];
|
|
3908
3871
|
};
|
|
3909
|
-
|
|
3910
3872
|
hooks[domainHookKey].select = selectDomain;
|
|
3911
3873
|
hooks[domainHookKey].update = updateFn;
|
|
3912
3874
|
/* eslint-enable react-hooks/rules-of-hooks */
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,60 @@ var reactRedux = require('react-redux');
|
|
|
7
7
|
var reduxInjectableMiddleware = require('redux-injectable-middleware');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
|
|
10
|
+
function _arrayLikeToArray(r, a) {
|
|
11
|
+
(null == a || a > r.length) && (a = r.length);
|
|
12
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
function _arrayWithoutHoles(r) {
|
|
16
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
17
|
+
}
|
|
18
|
+
function _classCallCheck(a, n) {
|
|
19
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
20
|
+
}
|
|
21
|
+
function _construct(t, e, r) {
|
|
22
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
23
|
+
var o = [null];
|
|
24
|
+
o.push.apply(o, e);
|
|
25
|
+
var p = new (t.bind.apply(t, o))();
|
|
26
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
27
|
+
}
|
|
28
|
+
function _defineProperties(e, r) {
|
|
29
|
+
for (var t = 0; t < r.length; t++) {
|
|
30
|
+
var o = r[t];
|
|
31
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function _createClass(e, r, t) {
|
|
35
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
36
|
+
writable: !1
|
|
37
|
+
}), e;
|
|
38
|
+
}
|
|
39
|
+
function _defineProperty(e, r, t) {
|
|
40
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
41
|
+
value: t,
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
configurable: !0,
|
|
44
|
+
writable: !0
|
|
45
|
+
}) : e[r] = t, e;
|
|
46
|
+
}
|
|
47
|
+
function _isNativeReflectConstruct() {
|
|
48
|
+
try {
|
|
49
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
50
|
+
} catch (t) {}
|
|
51
|
+
return (_isNativeReflectConstruct = function () {
|
|
52
|
+
return !!t;
|
|
53
|
+
})();
|
|
54
|
+
}
|
|
55
|
+
function _iterableToArray(r) {
|
|
56
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
57
|
+
}
|
|
58
|
+
function _nonIterableSpread() {
|
|
59
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
60
|
+
}
|
|
61
|
+
function _objectDestructuringEmpty(t) {
|
|
62
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
63
|
+
}
|
|
10
64
|
function ownKeys(e, r) {
|
|
11
65
|
var t = Object.keys(e);
|
|
12
66
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -28,152 +82,63 @@ function _objectSpread2(e) {
|
|
|
28
82
|
}
|
|
29
83
|
return e;
|
|
30
84
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
function _classCallCheck(instance, Constructor) {
|
|
41
|
-
if (!(instance instanceof Constructor)) {
|
|
42
|
-
throw new TypeError("Cannot call a class as a function");
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function _defineProperties(target, props) {
|
|
46
|
-
for (var i = 0; i < props.length; i++) {
|
|
47
|
-
var descriptor = props[i];
|
|
48
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
49
|
-
descriptor.configurable = true;
|
|
50
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
51
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
55
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
56
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
57
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
58
|
-
writable: false
|
|
59
|
-
});
|
|
60
|
-
return Constructor;
|
|
61
|
-
}
|
|
62
|
-
function _defineProperty(obj, key, value) {
|
|
63
|
-
key = _toPropertyKey(key);
|
|
64
|
-
if (key in obj) {
|
|
65
|
-
Object.defineProperty(obj, key, {
|
|
66
|
-
value: value,
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true,
|
|
69
|
-
writable: true
|
|
70
|
-
});
|
|
71
|
-
} else {
|
|
72
|
-
obj[key] = value;
|
|
73
|
-
}
|
|
74
|
-
return obj;
|
|
75
|
-
}
|
|
76
|
-
function _setPrototypeOf(o, p) {
|
|
77
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
78
|
-
o.__proto__ = p;
|
|
79
|
-
return o;
|
|
80
|
-
};
|
|
81
|
-
return _setPrototypeOf(o, p);
|
|
82
|
-
}
|
|
83
|
-
function _isNativeReflectConstruct() {
|
|
84
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
85
|
-
if (Reflect.construct.sham) return false;
|
|
86
|
-
if (typeof Proxy === "function") return true;
|
|
87
|
-
try {
|
|
88
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
89
|
-
return true;
|
|
90
|
-
} catch (e) {
|
|
91
|
-
return false;
|
|
85
|
+
function _objectWithoutProperties(e, t) {
|
|
86
|
+
if (null == e) return {};
|
|
87
|
+
var o,
|
|
88
|
+
r,
|
|
89
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
90
|
+
if (Object.getOwnPropertySymbols) {
|
|
91
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
92
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
92
93
|
}
|
|
94
|
+
return i;
|
|
93
95
|
}
|
|
94
|
-
function
|
|
95
|
-
if (
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
a.push.apply(a, args);
|
|
101
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
102
|
-
var instance = new Constructor();
|
|
103
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
104
|
-
return instance;
|
|
105
|
-
};
|
|
96
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
97
|
+
if (null == r) return {};
|
|
98
|
+
var t = {};
|
|
99
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
100
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
101
|
+
t[n] = r[n];
|
|
106
102
|
}
|
|
107
|
-
return
|
|
103
|
+
return t;
|
|
108
104
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
105
|
+
function _setPrototypeOf(t, e) {
|
|
106
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
107
|
+
return t.__proto__ = e, t;
|
|
108
|
+
}, _setPrototypeOf(t, e);
|
|
111
109
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
var target = {};
|
|
115
|
-
var sourceKeys = Object.keys(source);
|
|
116
|
-
var key, i;
|
|
117
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
118
|
-
key = sourceKeys[i];
|
|
119
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
120
|
-
target[key] = source[key];
|
|
121
|
-
}
|
|
122
|
-
return target;
|
|
110
|
+
function _toConsumableArray(r) {
|
|
111
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
123
112
|
}
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
126
|
-
var
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
key = sourceSymbolKeys[i];
|
|
132
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
133
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
134
|
-
target[key] = source[key];
|
|
135
|
-
}
|
|
113
|
+
function _toPrimitive(t, r) {
|
|
114
|
+
if ("object" != typeof t || !t) return t;
|
|
115
|
+
var e = t[Symbol.toPrimitive];
|
|
116
|
+
if (void 0 !== e) {
|
|
117
|
+
var i = e.call(t, r || "default");
|
|
118
|
+
if ("object" != typeof i) return i;
|
|
119
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
136
120
|
}
|
|
137
|
-
return
|
|
138
|
-
}
|
|
139
|
-
function _toConsumableArray(arr) {
|
|
140
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
141
|
-
}
|
|
142
|
-
function _arrayWithoutHoles(arr) {
|
|
143
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
144
|
-
}
|
|
145
|
-
function _iterableToArray(iter) {
|
|
146
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
147
|
-
}
|
|
148
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
149
|
-
if (!o) return;
|
|
150
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
151
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
152
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
153
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
154
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
121
|
+
return ("string" === r ? String : Number)(t);
|
|
155
122
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return arr2;
|
|
123
|
+
function _toPropertyKey(t) {
|
|
124
|
+
var i = _toPrimitive(t, "string");
|
|
125
|
+
return "symbol" == typeof i ? i : i + "";
|
|
160
126
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
127
|
+
function _typeof(o) {
|
|
128
|
+
"@babel/helpers - typeof";
|
|
129
|
+
|
|
130
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
131
|
+
return typeof o;
|
|
132
|
+
} : function (o) {
|
|
133
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
134
|
+
}, _typeof(o);
|
|
163
135
|
}
|
|
164
|
-
function
|
|
165
|
-
if (
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (typeof res !== "object") return res;
|
|
170
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
136
|
+
function _unsupportedIterableToArray(r, a) {
|
|
137
|
+
if (r) {
|
|
138
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
139
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
140
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
171
141
|
}
|
|
172
|
-
return (hint === "string" ? String : Number)(input);
|
|
173
|
-
}
|
|
174
|
-
function _toPropertyKey(arg) {
|
|
175
|
-
var key = _toPrimitive(arg, "string");
|
|
176
|
-
return typeof key === "symbol" ? key : String(key);
|
|
177
142
|
}
|
|
178
143
|
|
|
179
144
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -3586,7 +3551,6 @@ var makeSetterReducersFromInitialState = function makeSetterReducersFromInitialS
|
|
|
3586
3551
|
draft: state
|
|
3587
3552
|
}, data)); // provide both state. and draft. apis so fewer users complain
|
|
3588
3553
|
});
|
|
3589
|
-
|
|
3590
3554
|
state[name] = value;
|
|
3591
3555
|
};
|
|
3592
3556
|
});
|
|
@@ -3617,7 +3581,7 @@ var plugin = function plugin(_ref) {
|
|
|
3617
3581
|
}
|
|
3618
3582
|
|
|
3619
3583
|
// either the initial state value or the next plugin
|
|
3620
|
-
_createClass(_class, [{
|
|
3584
|
+
return _createClass(_class, [{
|
|
3621
3585
|
key: "getValue",
|
|
3622
3586
|
value: function getValue() {
|
|
3623
3587
|
return this.value;
|
|
@@ -3653,7 +3617,6 @@ var plugin = function plugin(_ref) {
|
|
|
3653
3617
|
return value;
|
|
3654
3618
|
}
|
|
3655
3619
|
}]);
|
|
3656
|
-
return _class;
|
|
3657
3620
|
}();
|
|
3658
3621
|
};
|
|
3659
3622
|
var addPlugin = function addPlugin(config) {
|
|
@@ -3910,7 +3873,6 @@ var configure = function configure(_ref) {
|
|
|
3910
3873
|
useAction(slice.actions.__override__slice__caution, undefined) // state overwriter
|
|
3911
3874
|
];
|
|
3912
3875
|
};
|
|
3913
|
-
|
|
3914
3876
|
hooks[domainHookKey].select = selectDomain;
|
|
3915
3877
|
hooks[domainHookKey].update = updateFn;
|
|
3916
3878
|
/* eslint-enable react-hooks/rules-of-hooks */
|