redux-astroglide 0.1.19 → 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.
@@ -6,6 +6,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  var checkPropTypes__default = /*#__PURE__*/_interopDefaultLegacy(checkPropTypes);
8
8
 
9
+ function _defineProperty(e, r, t) {
10
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
11
+ value: t,
12
+ enumerable: !0,
13
+ configurable: !0,
14
+ writable: !0
15
+ }) : e[r] = t, e;
16
+ }
9
17
  function ownKeys(e, r) {
10
18
  var t = Object.keys(e);
11
19
  if (Object.getOwnPropertySymbols) {
@@ -27,33 +35,19 @@ function _objectSpread2(e) {
27
35
  }
28
36
  return e;
29
37
  }
30
- function _defineProperty(obj, key, value) {
31
- key = _toPropertyKey(key);
32
- if (key in obj) {
33
- Object.defineProperty(obj, key, {
34
- value: value,
35
- enumerable: true,
36
- configurable: true,
37
- writable: true
38
- });
39
- } else {
40
- obj[key] = value;
41
- }
42
- return obj;
43
- }
44
- function _toPrimitive(input, hint) {
45
- if (typeof input !== "object" || input === null) return input;
46
- var prim = input[Symbol.toPrimitive];
47
- if (prim !== undefined) {
48
- var res = prim.call(input, hint || "default");
49
- if (typeof res !== "object") return res;
38
+ function _toPrimitive(t, r) {
39
+ if ("object" != typeof t || !t) return t;
40
+ var e = t[Symbol.toPrimitive];
41
+ if (void 0 !== e) {
42
+ var i = e.call(t, r || "default");
43
+ if ("object" != typeof i) return i;
50
44
  throw new TypeError("@@toPrimitive must return a primitive value.");
51
45
  }
52
- return (hint === "string" ? String : Number)(input);
46
+ return ("string" === r ? String : Number)(t);
53
47
  }
54
- function _toPropertyKey(arg) {
55
- var key = _toPrimitive(arg, "string");
56
- return typeof key === "symbol" ? key : String(key);
48
+ function _toPropertyKey(t) {
49
+ var i = _toPrimitive(t, "string");
50
+ return "symbol" == typeof i ? i : i + "";
57
51
  }
58
52
 
59
53
  var checkPropType = function checkPropType(propType, value, name) {
@@ -4,6 +4,14 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["redux-astroglide/plugins/type"] = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
+ function _defineProperty(e, r, t) {
8
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
9
+ value: t,
10
+ enumerable: !0,
11
+ configurable: !0,
12
+ writable: !0
13
+ }) : e[r] = t, e;
14
+ }
7
15
  function ownKeys(e, r) {
8
16
  var t = Object.keys(e);
9
17
  if (Object.getOwnPropertySymbols) {
@@ -25,33 +33,19 @@
25
33
  }
26
34
  return e;
27
35
  }
28
- function _defineProperty(obj, key, value) {
29
- key = _toPropertyKey(key);
30
- if (key in obj) {
31
- Object.defineProperty(obj, key, {
32
- value: value,
33
- enumerable: true,
34
- configurable: true,
35
- writable: true
36
- });
37
- } else {
38
- obj[key] = value;
39
- }
40
- return obj;
41
- }
42
- function _toPrimitive(input, hint) {
43
- if (typeof input !== "object" || input === null) return input;
44
- var prim = input[Symbol.toPrimitive];
45
- if (prim !== undefined) {
46
- var res = prim.call(input, hint || "default");
47
- if (typeof res !== "object") return res;
36
+ function _toPrimitive(t, r) {
37
+ if ("object" != typeof t || !t) return t;
38
+ var e = t[Symbol.toPrimitive];
39
+ if (void 0 !== e) {
40
+ var i = e.call(t, r || "default");
41
+ if ("object" != typeof i) return i;
48
42
  throw new TypeError("@@toPrimitive must return a primitive value.");
49
43
  }
50
- return (hint === "string" ? String : Number)(input);
44
+ return ("string" === r ? String : Number)(t);
51
45
  }
52
- function _toPropertyKey(arg) {
53
- var key = _toPrimitive(arg, "string");
54
- return typeof key === "symbol" ? key : String(key);
46
+ function _toPropertyKey(t) {
47
+ var i = _toPrimitive(t, "string");
48
+ return "symbol" == typeof i ? i : i + "";
55
49
  }
56
50
 
57
51
  var checkPropTypes$1 = {exports: {}};
@@ -2,6 +2,28 @@ import { useDispatch, useSelector, shallowEqual } from 'react-redux';
2
2
  import { bindActionCreators, createDraftSafeSelector } from '@reduxjs/toolkit';
3
3
  import { useMemo } from 'react';
4
4
 
5
+ function _arrayLikeToArray(r, a) {
6
+ (null == a || a > r.length) && (a = r.length);
7
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
8
+ return n;
9
+ }
10
+ function _arrayWithoutHoles(r) {
11
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
12
+ }
13
+ function _defineProperty(e, r, t) {
14
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
15
+ value: t,
16
+ enumerable: !0,
17
+ configurable: !0,
18
+ writable: !0
19
+ }) : e[r] = t, e;
20
+ }
21
+ function _iterableToArray(r) {
22
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
23
+ }
24
+ function _nonIterableSpread() {
25
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
26
+ }
5
27
  function ownKeys(e, r) {
6
28
  var t = Object.keys(e);
7
29
  if (Object.getOwnPropertySymbols) {
@@ -23,85 +45,49 @@ function _objectSpread2(e) {
23
45
  }
24
46
  return e;
25
47
  }
26
- function _defineProperty(obj, key, value) {
27
- key = _toPropertyKey(key);
28
- if (key in obj) {
29
- Object.defineProperty(obj, key, {
30
- value: value,
31
- enumerable: true,
32
- configurable: true,
33
- writable: true
34
- });
35
- } else {
36
- obj[key] = value;
37
- }
38
- return obj;
39
- }
40
- function _objectWithoutPropertiesLoose(source, excluded) {
41
- if (source == null) return {};
42
- var target = {};
43
- var sourceKeys = Object.keys(source);
44
- var key, i;
45
- for (i = 0; i < sourceKeys.length; i++) {
46
- key = sourceKeys[i];
47
- if (excluded.indexOf(key) >= 0) continue;
48
- target[key] = source[key];
49
- }
50
- return target;
51
- }
52
- function _objectWithoutProperties(source, excluded) {
53
- if (source == null) return {};
54
- var target = _objectWithoutPropertiesLoose(source, excluded);
55
- var key, i;
48
+ function _objectWithoutProperties(e, t) {
49
+ if (null == e) return {};
50
+ var o,
51
+ r,
52
+ i = _objectWithoutPropertiesLoose(e, t);
56
53
  if (Object.getOwnPropertySymbols) {
57
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
58
- for (i = 0; i < sourceSymbolKeys.length; i++) {
59
- key = sourceSymbolKeys[i];
60
- if (excluded.indexOf(key) >= 0) continue;
61
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
62
- target[key] = source[key];
63
- }
54
+ var n = Object.getOwnPropertySymbols(e);
55
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
64
56
  }
65
- return target;
66
- }
67
- function _toConsumableArray(arr) {
68
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
69
- }
70
- function _arrayWithoutHoles(arr) {
71
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
72
- }
73
- function _iterableToArray(iter) {
74
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
75
- }
76
- function _unsupportedIterableToArray(o, minLen) {
77
- if (!o) return;
78
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
79
- var n = Object.prototype.toString.call(o).slice(8, -1);
80
- if (n === "Object" && o.constructor) n = o.constructor.name;
81
- if (n === "Map" || n === "Set") return Array.from(o);
82
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
83
- }
84
- function _arrayLikeToArray(arr, len) {
85
- if (len == null || len > arr.length) len = arr.length;
86
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
87
- return arr2;
57
+ return i;
58
+ }
59
+ function _objectWithoutPropertiesLoose(r, e) {
60
+ if (null == r) return {};
61
+ var t = {};
62
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
63
+ if (-1 !== e.indexOf(n)) continue;
64
+ t[n] = r[n];
65
+ }
66
+ return t;
88
67
  }
89
- function _nonIterableSpread() {
90
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68
+ function _toConsumableArray(r) {
69
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
91
70
  }
92
- function _toPrimitive(input, hint) {
93
- if (typeof input !== "object" || input === null) return input;
94
- var prim = input[Symbol.toPrimitive];
95
- if (prim !== undefined) {
96
- var res = prim.call(input, hint || "default");
97
- if (typeof res !== "object") return res;
71
+ function _toPrimitive(t, r) {
72
+ if ("object" != typeof t || !t) return t;
73
+ var e = t[Symbol.toPrimitive];
74
+ if (void 0 !== e) {
75
+ var i = e.call(t, r || "default");
76
+ if ("object" != typeof i) return i;
98
77
  throw new TypeError("@@toPrimitive must return a primitive value.");
99
78
  }
100
- return (hint === "string" ? String : Number)(input);
79
+ return ("string" === r ? String : Number)(t);
80
+ }
81
+ function _toPropertyKey(t) {
82
+ var i = _toPrimitive(t, "string");
83
+ return "symbol" == typeof i ? i : i + "";
101
84
  }
102
- function _toPropertyKey(arg) {
103
- var key = _toPrimitive(arg, "string");
104
- return typeof key === "symbol" ? key : String(key);
85
+ function _unsupportedIterableToArray(r, a) {
86
+ if (r) {
87
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
88
+ var t = {}.toString.call(r).slice(8, -1);
89
+ 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;
90
+ }
105
91
  }
106
92
 
107
93
  var useAction = function useAction(action, deps) {
@@ -6,6 +6,28 @@ var reactRedux = require('react-redux');
6
6
  var toolkit = require('@reduxjs/toolkit');
7
7
  var react = require('react');
8
8
 
9
+ function _arrayLikeToArray(r, a) {
10
+ (null == a || a > r.length) && (a = r.length);
11
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
12
+ return n;
13
+ }
14
+ function _arrayWithoutHoles(r) {
15
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
16
+ }
17
+ function _defineProperty(e, r, t) {
18
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
19
+ value: t,
20
+ enumerable: !0,
21
+ configurable: !0,
22
+ writable: !0
23
+ }) : e[r] = t, e;
24
+ }
25
+ function _iterableToArray(r) {
26
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
27
+ }
28
+ function _nonIterableSpread() {
29
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
+ }
9
31
  function ownKeys(e, r) {
10
32
  var t = Object.keys(e);
11
33
  if (Object.getOwnPropertySymbols) {
@@ -27,85 +49,49 @@ function _objectSpread2(e) {
27
49
  }
28
50
  return e;
29
51
  }
30
- function _defineProperty(obj, key, value) {
31
- key = _toPropertyKey(key);
32
- if (key in obj) {
33
- Object.defineProperty(obj, key, {
34
- value: value,
35
- enumerable: true,
36
- configurable: true,
37
- writable: true
38
- });
39
- } else {
40
- obj[key] = value;
41
- }
42
- return obj;
43
- }
44
- function _objectWithoutPropertiesLoose(source, excluded) {
45
- if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
49
- for (i = 0; i < sourceKeys.length; i++) {
50
- key = sourceKeys[i];
51
- if (excluded.indexOf(key) >= 0) continue;
52
- target[key] = source[key];
53
- }
54
- return target;
55
- }
56
- function _objectWithoutProperties(source, excluded) {
57
- if (source == null) return {};
58
- var target = _objectWithoutPropertiesLoose(source, excluded);
59
- var key, i;
52
+ function _objectWithoutProperties(e, t) {
53
+ if (null == e) return {};
54
+ var o,
55
+ r,
56
+ i = _objectWithoutPropertiesLoose(e, t);
60
57
  if (Object.getOwnPropertySymbols) {
61
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
62
- for (i = 0; i < sourceSymbolKeys.length; i++) {
63
- key = sourceSymbolKeys[i];
64
- if (excluded.indexOf(key) >= 0) continue;
65
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
66
- target[key] = source[key];
67
- }
58
+ var n = Object.getOwnPropertySymbols(e);
59
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
68
60
  }
69
- return target;
70
- }
71
- function _toConsumableArray(arr) {
72
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
73
- }
74
- function _arrayWithoutHoles(arr) {
75
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
76
- }
77
- function _iterableToArray(iter) {
78
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
79
- }
80
- function _unsupportedIterableToArray(o, minLen) {
81
- if (!o) return;
82
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
83
- var n = Object.prototype.toString.call(o).slice(8, -1);
84
- if (n === "Object" && o.constructor) n = o.constructor.name;
85
- if (n === "Map" || n === "Set") return Array.from(o);
86
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
87
- }
88
- function _arrayLikeToArray(arr, len) {
89
- if (len == null || len > arr.length) len = arr.length;
90
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
91
- return arr2;
61
+ return i;
62
+ }
63
+ function _objectWithoutPropertiesLoose(r, e) {
64
+ if (null == r) return {};
65
+ var t = {};
66
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
67
+ if (-1 !== e.indexOf(n)) continue;
68
+ t[n] = r[n];
69
+ }
70
+ return t;
92
71
  }
93
- function _nonIterableSpread() {
94
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
72
+ function _toConsumableArray(r) {
73
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
95
74
  }
96
- function _toPrimitive(input, hint) {
97
- if (typeof input !== "object" || input === null) return input;
98
- var prim = input[Symbol.toPrimitive];
99
- if (prim !== undefined) {
100
- var res = prim.call(input, hint || "default");
101
- if (typeof res !== "object") return res;
75
+ function _toPrimitive(t, r) {
76
+ if ("object" != typeof t || !t) return t;
77
+ var e = t[Symbol.toPrimitive];
78
+ if (void 0 !== e) {
79
+ var i = e.call(t, r || "default");
80
+ if ("object" != typeof i) return i;
102
81
  throw new TypeError("@@toPrimitive must return a primitive value.");
103
82
  }
104
- return (hint === "string" ? String : Number)(input);
83
+ return ("string" === r ? String : Number)(t);
84
+ }
85
+ function _toPropertyKey(t) {
86
+ var i = _toPrimitive(t, "string");
87
+ return "symbol" == typeof i ? i : i + "";
105
88
  }
106
- function _toPropertyKey(arg) {
107
- var key = _toPrimitive(arg, "string");
108
- return typeof key === "symbol" ? key : String(key);
89
+ function _unsupportedIterableToArray(r, a) {
90
+ if (r) {
91
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
92
+ var t = {}.toString.call(r).slice(8, -1);
93
+ 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;
94
+ }
109
95
  }
110
96
 
111
97
  var useAction = function useAction(action, deps) {