react-is 16.10.2 → 16.13.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/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"branch": "pull/
|
|
3
|
-
"buildNumber": "
|
|
4
|
-
"checksum": "
|
|
5
|
-
"commit": "
|
|
2
|
+
"branch": "pull/18344",
|
|
3
|
+
"buildNumber": "106499",
|
|
4
|
+
"checksum": "7fe5a2e",
|
|
5
|
+
"commit": "da834083c",
|
|
6
6
|
"environment": "ci",
|
|
7
|
-
"reactVersion": "16.
|
|
7
|
+
"reactVersion": "16.12.0-da834083c"
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.1
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -15,8 +15,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
15
15
|
(function() {
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
19
|
-
|
|
20
18
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
21
19
|
// nor polyfill, then a plain number is used for performance.
|
|
22
20
|
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
@@ -36,70 +34,16 @@ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
|
36
34
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
37
35
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
38
36
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
37
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
39
38
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
40
39
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
41
40
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
42
41
|
|
|
43
42
|
function isValidElementType(type) {
|
|
44
43
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
45
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
|
|
44
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
/**
|
|
49
|
-
* Forked from fbjs/warning:
|
|
50
|
-
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
51
|
-
*
|
|
52
|
-
* Only change is we use console.warn instead of console.error,
|
|
53
|
-
* and do nothing when 'console' is not supported.
|
|
54
|
-
* This really simplifies the code.
|
|
55
|
-
* ---
|
|
56
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
57
|
-
* This can be used to log issues in development environments in critical
|
|
58
|
-
* paths. Removing the logging code for production environments will keep the
|
|
59
|
-
* same logic and follow the same code paths.
|
|
60
|
-
*/
|
|
61
|
-
var lowPriorityWarningWithoutStack = function () {};
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
var printWarning = function (format) {
|
|
65
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
66
|
-
args[_key - 1] = arguments[_key];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var argIndex = 0;
|
|
70
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
71
|
-
return args[argIndex++];
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
if (typeof console !== 'undefined') {
|
|
75
|
-
console.warn(message);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
try {
|
|
79
|
-
// --- Welcome to debugging React ---
|
|
80
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
81
|
-
// to find the callsite that caused this warning to fire.
|
|
82
|
-
throw new Error(message);
|
|
83
|
-
} catch (x) {}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
lowPriorityWarningWithoutStack = function (condition, format) {
|
|
87
|
-
if (format === undefined) {
|
|
88
|
-
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (!condition) {
|
|
92
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
93
|
-
args[_key2 - 2] = arguments[_key2];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
printWarning.apply(void 0, [format].concat(args));
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
|
|
102
|
-
|
|
103
47
|
function typeOf(object) {
|
|
104
48
|
if (typeof object === 'object' && object !== null) {
|
|
105
49
|
var $$typeof = object.$$typeof;
|
|
@@ -123,6 +67,8 @@ function typeOf(object) {
|
|
|
123
67
|
switch ($$typeofType) {
|
|
124
68
|
case REACT_CONTEXT_TYPE:
|
|
125
69
|
case REACT_FORWARD_REF_TYPE:
|
|
70
|
+
case REACT_LAZY_TYPE:
|
|
71
|
+
case REACT_MEMO_TYPE:
|
|
126
72
|
case REACT_PROVIDER_TYPE:
|
|
127
73
|
return $$typeofType;
|
|
128
74
|
|
|
@@ -132,8 +78,6 @@ function typeOf(object) {
|
|
|
132
78
|
|
|
133
79
|
}
|
|
134
80
|
|
|
135
|
-
case REACT_LAZY_TYPE:
|
|
136
|
-
case REACT_MEMO_TYPE:
|
|
137
81
|
case REACT_PORTAL_TYPE:
|
|
138
82
|
return $$typeof;
|
|
139
83
|
}
|
|
@@ -160,8 +104,9 @@ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecat
|
|
|
160
104
|
function isAsyncMode(object) {
|
|
161
105
|
{
|
|
162
106
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
163
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
164
|
-
|
|
107
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
108
|
+
|
|
109
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
165
110
|
}
|
|
166
111
|
}
|
|
167
112
|
|
|
@@ -204,7 +149,6 @@ function isSuspense(object) {
|
|
|
204
149
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
205
150
|
}
|
|
206
151
|
|
|
207
|
-
exports.typeOf = typeOf;
|
|
208
152
|
exports.AsyncMode = AsyncMode;
|
|
209
153
|
exports.ConcurrentMode = ConcurrentMode;
|
|
210
154
|
exports.ContextConsumer = ContextConsumer;
|
|
@@ -218,7 +162,6 @@ exports.Portal = Portal;
|
|
|
218
162
|
exports.Profiler = Profiler;
|
|
219
163
|
exports.StrictMode = StrictMode;
|
|
220
164
|
exports.Suspense = Suspense;
|
|
221
|
-
exports.isValidElementType = isValidElementType;
|
|
222
165
|
exports.isAsyncMode = isAsyncMode;
|
|
223
166
|
exports.isConcurrentMode = isConcurrentMode;
|
|
224
167
|
exports.isContextConsumer = isContextConsumer;
|
|
@@ -232,5 +175,7 @@ exports.isPortal = isPortal;
|
|
|
232
175
|
exports.isProfiler = isProfiler;
|
|
233
176
|
exports.isStrictMode = isStrictMode;
|
|
234
177
|
exports.isSuspense = isSuspense;
|
|
178
|
+
exports.isValidElementType = isValidElementType;
|
|
179
|
+
exports.typeOf = typeOf;
|
|
235
180
|
})();
|
|
236
181
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
10
|
+
'use strict';var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
11
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
12
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
|
|
13
|
+
exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
|
|
14
|
+
exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
|
|
15
|
+
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.1
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -10,227 +10,172 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
(function (global, factory) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
14
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
15
|
+
(global = global || self, factory(global.ReactIs = {}));
|
|
16
16
|
}(this, (function (exports) { 'use strict';
|
|
17
17
|
|
|
18
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
19
|
-
// nor polyfill, then a plain number is used for performance.
|
|
20
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
21
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
22
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
23
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
24
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
26
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
27
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
28
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
29
|
-
|
|
30
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
31
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
32
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
33
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
34
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
35
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
36
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Forked from fbjs/warning:
|
|
48
|
-
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
49
|
-
*
|
|
50
|
-
* Only change is we use console.warn instead of console.error,
|
|
51
|
-
* and do nothing when 'console' is not supported.
|
|
52
|
-
* This really simplifies the code.
|
|
53
|
-
* ---
|
|
54
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
55
|
-
* This can be used to log issues in development environments in critical
|
|
56
|
-
* paths. Removing the logging code for production environments will keep the
|
|
57
|
-
* same logic and follow the same code paths.
|
|
58
|
-
*/
|
|
59
|
-
var lowPriorityWarningWithoutStack = function () {};
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
var printWarning = function (format) {
|
|
63
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
64
|
-
args[_key - 1] = arguments[_key];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
var argIndex = 0;
|
|
68
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
69
|
-
return args[argIndex++];
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
if (typeof console !== 'undefined') {
|
|
73
|
-
console.warn(message);
|
|
74
|
-
}
|
|
18
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
19
|
+
// nor polyfill, then a plain number is used for performance.
|
|
20
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
21
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
22
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
23
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
24
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
26
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
27
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
28
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
29
|
+
|
|
30
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
31
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
32
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
33
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
34
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
35
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
36
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
37
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
38
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
39
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
40
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
41
|
+
|
|
42
|
+
function isValidElementType(type) {
|
|
43
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
44
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
45
|
+
}
|
|
75
46
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
47
|
+
function typeOf(object) {
|
|
48
|
+
if (typeof object === 'object' && object !== null) {
|
|
49
|
+
var $$typeof = object.$$typeof;
|
|
50
|
+
|
|
51
|
+
switch ($$typeof) {
|
|
52
|
+
case REACT_ELEMENT_TYPE:
|
|
53
|
+
var type = object.type;
|
|
54
|
+
|
|
55
|
+
switch (type) {
|
|
56
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
57
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
58
|
+
case REACT_FRAGMENT_TYPE:
|
|
59
|
+
case REACT_PROFILER_TYPE:
|
|
60
|
+
case REACT_STRICT_MODE_TYPE:
|
|
61
|
+
case REACT_SUSPENSE_TYPE:
|
|
62
|
+
return type;
|
|
63
|
+
|
|
64
|
+
default:
|
|
65
|
+
var $$typeofType = type && type.$$typeof;
|
|
66
|
+
|
|
67
|
+
switch ($$typeofType) {
|
|
68
|
+
case REACT_CONTEXT_TYPE:
|
|
69
|
+
case REACT_FORWARD_REF_TYPE:
|
|
70
|
+
case REACT_LAZY_TYPE:
|
|
71
|
+
case REACT_MEMO_TYPE:
|
|
72
|
+
case REACT_PROVIDER_TYPE:
|
|
73
|
+
return $$typeofType;
|
|
74
|
+
|
|
75
|
+
default:
|
|
76
|
+
return $$typeof;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
case REACT_PORTAL_TYPE:
|
|
82
|
+
return $$typeof;
|
|
83
|
+
}
|
|
87
84
|
}
|
|
88
85
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
return undefined;
|
|
87
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
88
|
+
|
|
89
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
90
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
91
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
92
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
93
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
94
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
95
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
96
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
97
|
+
var Memo = REACT_MEMO_TYPE;
|
|
98
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
99
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
100
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
101
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
102
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
103
|
+
|
|
104
|
+
function isAsyncMode(object) {
|
|
105
|
+
{
|
|
106
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
107
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
108
|
+
|
|
109
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
92
110
|
}
|
|
93
|
-
|
|
94
|
-
printWarning.apply(void 0, [format].concat(args));
|
|
95
111
|
}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
|
|
100
|
-
|
|
101
|
-
function typeOf(object) {
|
|
102
|
-
if (typeof object === 'object' && object !== null) {
|
|
103
|
-
var $$typeof = object.$$typeof;
|
|
104
|
-
|
|
105
|
-
switch ($$typeof) {
|
|
106
|
-
case REACT_ELEMENT_TYPE:
|
|
107
|
-
var type = object.type;
|
|
108
|
-
|
|
109
|
-
switch (type) {
|
|
110
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
111
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
112
|
-
case REACT_FRAGMENT_TYPE:
|
|
113
|
-
case REACT_PROFILER_TYPE:
|
|
114
|
-
case REACT_STRICT_MODE_TYPE:
|
|
115
|
-
case REACT_SUSPENSE_TYPE:
|
|
116
|
-
return type;
|
|
117
|
-
|
|
118
|
-
default:
|
|
119
|
-
var $$typeofType = type && type.$$typeof;
|
|
120
|
-
|
|
121
|
-
switch ($$typeofType) {
|
|
122
|
-
case REACT_CONTEXT_TYPE:
|
|
123
|
-
case REACT_FORWARD_REF_TYPE:
|
|
124
|
-
case REACT_PROVIDER_TYPE:
|
|
125
|
-
return $$typeofType;
|
|
126
|
-
|
|
127
|
-
default:
|
|
128
|
-
return $$typeof;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
case REACT_LAZY_TYPE:
|
|
134
|
-
case REACT_MEMO_TYPE:
|
|
135
|
-
case REACT_PORTAL_TYPE:
|
|
136
|
-
return $$typeof;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
112
|
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
113
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
114
|
+
}
|
|
115
|
+
function isConcurrentMode(object) {
|
|
116
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
117
|
+
}
|
|
118
|
+
function isContextConsumer(object) {
|
|
119
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
120
|
+
}
|
|
121
|
+
function isContextProvider(object) {
|
|
122
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
123
|
+
}
|
|
124
|
+
function isElement(object) {
|
|
125
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
126
|
+
}
|
|
127
|
+
function isForwardRef(object) {
|
|
128
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
129
|
+
}
|
|
130
|
+
function isFragment(object) {
|
|
131
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
132
|
+
}
|
|
133
|
+
function isLazy(object) {
|
|
134
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
135
|
+
}
|
|
136
|
+
function isMemo(object) {
|
|
137
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
138
|
+
}
|
|
139
|
+
function isPortal(object) {
|
|
140
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
141
|
+
}
|
|
142
|
+
function isProfiler(object) {
|
|
143
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
144
|
+
}
|
|
145
|
+
function isStrictMode(object) {
|
|
146
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
147
|
+
}
|
|
148
|
+
function isSuspense(object) {
|
|
149
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
164
150
|
}
|
|
165
151
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
function isProfiler(object) {
|
|
196
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
197
|
-
}
|
|
198
|
-
function isStrictMode(object) {
|
|
199
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
200
|
-
}
|
|
201
|
-
function isSuspense(object) {
|
|
202
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
exports.typeOf = typeOf;
|
|
206
|
-
exports.AsyncMode = AsyncMode;
|
|
207
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
208
|
-
exports.ContextConsumer = ContextConsumer;
|
|
209
|
-
exports.ContextProvider = ContextProvider;
|
|
210
|
-
exports.Element = Element;
|
|
211
|
-
exports.ForwardRef = ForwardRef;
|
|
212
|
-
exports.Fragment = Fragment;
|
|
213
|
-
exports.Lazy = Lazy;
|
|
214
|
-
exports.Memo = Memo;
|
|
215
|
-
exports.Portal = Portal;
|
|
216
|
-
exports.Profiler = Profiler;
|
|
217
|
-
exports.StrictMode = StrictMode;
|
|
218
|
-
exports.Suspense = Suspense;
|
|
219
|
-
exports.isValidElementType = isValidElementType;
|
|
220
|
-
exports.isAsyncMode = isAsyncMode;
|
|
221
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
222
|
-
exports.isContextConsumer = isContextConsumer;
|
|
223
|
-
exports.isContextProvider = isContextProvider;
|
|
224
|
-
exports.isElement = isElement;
|
|
225
|
-
exports.isForwardRef = isForwardRef;
|
|
226
|
-
exports.isFragment = isFragment;
|
|
227
|
-
exports.isLazy = isLazy;
|
|
228
|
-
exports.isMemo = isMemo;
|
|
229
|
-
exports.isPortal = isPortal;
|
|
230
|
-
exports.isProfiler = isProfiler;
|
|
231
|
-
exports.isStrictMode = isStrictMode;
|
|
232
|
-
exports.isSuspense = isSuspense;
|
|
233
|
-
|
|
234
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
152
|
+
exports.AsyncMode = AsyncMode;
|
|
153
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
154
|
+
exports.ContextConsumer = ContextConsumer;
|
|
155
|
+
exports.ContextProvider = ContextProvider;
|
|
156
|
+
exports.Element = Element;
|
|
157
|
+
exports.ForwardRef = ForwardRef;
|
|
158
|
+
exports.Fragment = Fragment;
|
|
159
|
+
exports.Lazy = Lazy;
|
|
160
|
+
exports.Memo = Memo;
|
|
161
|
+
exports.Portal = Portal;
|
|
162
|
+
exports.Profiler = Profiler;
|
|
163
|
+
exports.StrictMode = StrictMode;
|
|
164
|
+
exports.Suspense = Suspense;
|
|
165
|
+
exports.isAsyncMode = isAsyncMode;
|
|
166
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
167
|
+
exports.isContextConsumer = isContextConsumer;
|
|
168
|
+
exports.isContextProvider = isContextProvider;
|
|
169
|
+
exports.isElement = isElement;
|
|
170
|
+
exports.isForwardRef = isForwardRef;
|
|
171
|
+
exports.isFragment = isFragment;
|
|
172
|
+
exports.isLazy = isLazy;
|
|
173
|
+
exports.isMemo = isMemo;
|
|
174
|
+
exports.isPortal = isPortal;
|
|
175
|
+
exports.isProfiler = isProfiler;
|
|
176
|
+
exports.isStrictMode = isStrictMode;
|
|
177
|
+
exports.isSuspense = isSuspense;
|
|
178
|
+
exports.isValidElementType = isValidElementType;
|
|
179
|
+
exports.typeOf = typeOf;
|
|
235
180
|
|
|
236
181
|
})));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(b,
|
|
10
|
-
typeof Symbol&&Symbol.for,r=
|
|
11
|
-
60120,
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
'use strict';(function(b,d){"object"===typeof exports&&"undefined"!==typeof module?d(exports):"function"===typeof define&&define.amd?define(["exports"],d):(b=b||self,d(b.ReactIs={}))})(this,function(b){function d(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case r:switch(a=a.type,a){case t:case e:case f:case g:case h:case k:return a;default:switch(a=a&&a.$$typeof,a){case l:case m:case n:case p:case q:return a;default:return b}}case u:return b}}}function v(a){return d(a)===e}var c=
|
|
10
|
+
"function"===typeof Symbol&&Symbol.for,r=c?Symbol.for("react.element"):60103,u=c?Symbol.for("react.portal"):60106,f=c?Symbol.for("react.fragment"):60107,h=c?Symbol.for("react.strict_mode"):60108,g=c?Symbol.for("react.profiler"):60114,q=c?Symbol.for("react.provider"):60109,l=c?Symbol.for("react.context"):60110,t=c?Symbol.for("react.async_mode"):60111,e=c?Symbol.for("react.concurrent_mode"):60111,m=c?Symbol.for("react.forward_ref"):60112,k=c?Symbol.for("react.suspense"):60113,w=c?Symbol.for("react.suspense_list"):
|
|
11
|
+
60120,p=c?Symbol.for("react.memo"):60115,n=c?Symbol.for("react.lazy"):60116,x=c?Symbol.for("react.block"):60121,y=c?Symbol.for("react.fundamental"):60117,z=c?Symbol.for("react.responder"):60118,A=c?Symbol.for("react.scope"):60119;b.AsyncMode=t;b.ConcurrentMode=e;b.ContextConsumer=l;b.ContextProvider=q;b.Element=r;b.ForwardRef=m;b.Fragment=f;b.Lazy=n;b.Memo=p;b.Portal=u;b.Profiler=g;b.StrictMode=h;b.Suspense=k;b.isAsyncMode=function(a){return v(a)||d(a)===t};b.isConcurrentMode=v;b.isContextConsumer=
|
|
12
|
+
function(a){return d(a)===l};b.isContextProvider=function(a){return d(a)===q};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===r};b.isForwardRef=function(a){return d(a)===m};b.isFragment=function(a){return d(a)===f};b.isLazy=function(a){return d(a)===n};b.isMemo=function(a){return d(a)===p};b.isPortal=function(a){return d(a)===u};b.isProfiler=function(a){return d(a)===g};b.isStrictMode=function(a){return d(a)===h};b.isSuspense=function(a){return d(a)===k};b.isValidElementType=
|
|
13
|
+
function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===k||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===n||a.$$typeof===p||a.$$typeof===q||a.$$typeof===l||a.$$typeof===m||a.$$typeof===y||a.$$typeof===z||a.$$typeof===A||a.$$typeof===x)};b.typeOf=d});
|