react 0.0.0-experimental-d7382b6c4 → 0.0.0-experimental-e5d06e34b
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 +4 -4
- package/cjs/react-jsx-dev-runtime.development.js +45 -24
- package/cjs/react-jsx-dev-runtime.production.min.js +2 -2
- package/cjs/react-jsx-dev-runtime.profiling.min.js +2 -2
- package/cjs/react-jsx-runtime.development.js +45 -24
- package/cjs/react-jsx-runtime.production.min.js +3 -3
- package/cjs/react-jsx-runtime.profiling.min.js +3 -3
- package/cjs/react.development.js +242 -96
- package/cjs/react.production.min.js +18 -18
- package/package.json +1 -1
- package/umd/react.development.js +242 -96
- package/umd/react.production.min.js +25 -26
- package/umd/react.profiling.min.js +32 -32
package/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"branch": "master",
|
|
3
|
-
"buildNumber": "
|
|
4
|
-
"checksum": "
|
|
5
|
-
"commit": "
|
|
3
|
+
"buildNumber": "124749",
|
|
4
|
+
"checksum": "f931ce0",
|
|
5
|
+
"commit": "e5d06e34b",
|
|
6
6
|
"environment": "ci",
|
|
7
|
-
"reactVersion": "16.13.1-experimental-
|
|
7
|
+
"reactVersion": "16.13.1-experimental-e5d06e34b"
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react-jsx-dev-runtime.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -19,25 +19,47 @@ var React = require('react');
|
|
|
19
19
|
|
|
20
20
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
21
21
|
// nor polyfill, then a plain number is used for performance.
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
|
|
22
|
+
var REACT_ELEMENT_TYPE = 0xeac7;
|
|
23
|
+
var REACT_PORTAL_TYPE = 0xeaca;
|
|
24
|
+
exports.Fragment = 0xeacb;
|
|
25
|
+
var REACT_STRICT_MODE_TYPE = 0xeacc;
|
|
26
|
+
var REACT_PROFILER_TYPE = 0xead2;
|
|
27
|
+
var REACT_PROVIDER_TYPE = 0xeacd;
|
|
28
|
+
var REACT_CONTEXT_TYPE = 0xeace;
|
|
29
|
+
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
30
|
+
var REACT_SUSPENSE_TYPE = 0xead1;
|
|
31
|
+
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
|
|
32
|
+
var REACT_MEMO_TYPE = 0xead3;
|
|
33
|
+
var REACT_LAZY_TYPE = 0xead4;
|
|
34
|
+
var REACT_BLOCK_TYPE = 0xead9;
|
|
35
|
+
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
36
|
+
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
37
|
+
var REACT_RESPONDER_TYPE = 0xead6;
|
|
38
|
+
var REACT_SCOPE_TYPE = 0xead7;
|
|
39
|
+
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
40
|
+
|
|
41
|
+
if (typeof Symbol === 'function' && Symbol.for) {
|
|
42
|
+
var symbolFor = Symbol.for;
|
|
43
|
+
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
44
|
+
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
45
|
+
exports.Fragment = symbolFor('react.fragment');
|
|
46
|
+
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
47
|
+
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
48
|
+
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
49
|
+
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
50
|
+
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
51
|
+
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
52
|
+
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
53
|
+
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
54
|
+
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
55
|
+
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
56
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
57
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
58
|
+
REACT_RESPONDER_TYPE = symbolFor('react.responder');
|
|
59
|
+
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
60
|
+
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
61
|
+
}
|
|
62
|
+
|
|
41
63
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
42
64
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
43
65
|
function getIteratorFn(maybeIterable) {
|
|
@@ -107,7 +129,7 @@ function printWarning(level, format, args) {
|
|
|
107
129
|
|
|
108
130
|
function isValidElementType(type) {
|
|
109
131
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
110
|
-
type ===
|
|
132
|
+
type === exports.Fragment || 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 || type[0] === REACT_SERVER_BLOCK_TYPE);
|
|
111
133
|
}
|
|
112
134
|
|
|
113
135
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
@@ -140,7 +162,7 @@ function getComponentName(type) {
|
|
|
140
162
|
}
|
|
141
163
|
|
|
142
164
|
switch (type) {
|
|
143
|
-
case
|
|
165
|
+
case exports.Fragment:
|
|
144
166
|
return 'Fragment';
|
|
145
167
|
|
|
146
168
|
case REACT_PORTAL_TYPE:
|
|
@@ -780,7 +802,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
|
780
802
|
}
|
|
781
803
|
}
|
|
782
804
|
|
|
783
|
-
if (type ===
|
|
805
|
+
if (type === exports.Fragment) {
|
|
784
806
|
validateFragmentProps(element);
|
|
785
807
|
} else {
|
|
786
808
|
validatePropTypes(element);
|
|
@@ -792,7 +814,6 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
|
792
814
|
|
|
793
815
|
var jsxDEV$1 = jsxWithValidation ;
|
|
794
816
|
|
|
795
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
796
817
|
exports.jsxDEV = jsxDEV$1;
|
|
797
818
|
})();
|
|
798
819
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react-jsx-dev-runtime.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';require("react");
|
|
10
|
+
'use strict';require("react");exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var a=Symbol.for;exports.Fragment=a("react.fragment")}exports.jsxDEV=void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react-jsx-dev-runtime.profiling.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';require("react");
|
|
10
|
+
'use strict';require("react");exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var a=Symbol.for;exports.Fragment=a("react.fragment")}exports.jsxDEV=void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react-jsx-runtime.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -19,25 +19,47 @@ var React = require('react');
|
|
|
19
19
|
|
|
20
20
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
21
21
|
// nor polyfill, then a plain number is used for performance.
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
|
|
22
|
+
var REACT_ELEMENT_TYPE = 0xeac7;
|
|
23
|
+
var REACT_PORTAL_TYPE = 0xeaca;
|
|
24
|
+
exports.Fragment = 0xeacb;
|
|
25
|
+
var REACT_STRICT_MODE_TYPE = 0xeacc;
|
|
26
|
+
var REACT_PROFILER_TYPE = 0xead2;
|
|
27
|
+
var REACT_PROVIDER_TYPE = 0xeacd;
|
|
28
|
+
var REACT_CONTEXT_TYPE = 0xeace;
|
|
29
|
+
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
30
|
+
var REACT_SUSPENSE_TYPE = 0xead1;
|
|
31
|
+
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
|
|
32
|
+
var REACT_MEMO_TYPE = 0xead3;
|
|
33
|
+
var REACT_LAZY_TYPE = 0xead4;
|
|
34
|
+
var REACT_BLOCK_TYPE = 0xead9;
|
|
35
|
+
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
36
|
+
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
37
|
+
var REACT_RESPONDER_TYPE = 0xead6;
|
|
38
|
+
var REACT_SCOPE_TYPE = 0xead7;
|
|
39
|
+
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
40
|
+
|
|
41
|
+
if (typeof Symbol === 'function' && Symbol.for) {
|
|
42
|
+
var symbolFor = Symbol.for;
|
|
43
|
+
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
44
|
+
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
45
|
+
exports.Fragment = symbolFor('react.fragment');
|
|
46
|
+
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
47
|
+
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
48
|
+
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
49
|
+
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
50
|
+
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
51
|
+
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
52
|
+
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
53
|
+
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
54
|
+
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
55
|
+
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
56
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
57
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
58
|
+
REACT_RESPONDER_TYPE = symbolFor('react.responder');
|
|
59
|
+
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
60
|
+
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
61
|
+
}
|
|
62
|
+
|
|
41
63
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
42
64
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
43
65
|
function getIteratorFn(maybeIterable) {
|
|
@@ -107,7 +129,7 @@ function printWarning(level, format, args) {
|
|
|
107
129
|
|
|
108
130
|
function isValidElementType(type) {
|
|
109
131
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
110
|
-
type ===
|
|
132
|
+
type === exports.Fragment || 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 || type[0] === REACT_SERVER_BLOCK_TYPE);
|
|
111
133
|
}
|
|
112
134
|
|
|
113
135
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
@@ -140,7 +162,7 @@ function getComponentName(type) {
|
|
|
140
162
|
}
|
|
141
163
|
|
|
142
164
|
switch (type) {
|
|
143
|
-
case
|
|
165
|
+
case exports.Fragment:
|
|
144
166
|
return 'Fragment';
|
|
145
167
|
|
|
146
168
|
case REACT_PORTAL_TYPE:
|
|
@@ -780,7 +802,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
|
780
802
|
}
|
|
781
803
|
}
|
|
782
804
|
|
|
783
|
-
if (type ===
|
|
805
|
+
if (type === exports.Fragment) {
|
|
784
806
|
validateFragmentProps(element);
|
|
785
807
|
} else {
|
|
786
808
|
validatePropTypes(element);
|
|
@@ -809,7 +831,6 @@ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs intern
|
|
|
809
831
|
|
|
810
832
|
var jsxs = jsxWithValidationStatic ;
|
|
811
833
|
|
|
812
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
813
834
|
exports.jsx = jsx;
|
|
814
835
|
exports.jsxs = jsxs;
|
|
815
836
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react-jsx-runtime.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var f=require("react"),g="function"===typeof Symbol&&Symbol.for
|
|
11
|
-
function
|
|
10
|
+
'use strict';var f=require("react"),g=60103;exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");exports.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
11
|
+
function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react-jsx-runtime.profiling.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var f=require("react"),g="function"===typeof Symbol&&Symbol.for
|
|
11
|
-
function
|
|
10
|
+
'use strict';var f=require("react"),g=60103;exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");exports.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
11
|
+
function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;
|
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v0.0.0-experimental-
|
|
1
|
+
/** @license React v0.0.0-experimental-e5d06e34b
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -18,29 +18,51 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
18
18
|
var _assign = require('object-assign');
|
|
19
19
|
|
|
20
20
|
// TODO: this is special because it gets imported during build.
|
|
21
|
-
var ReactVersion = '16.13.1-experimental-
|
|
21
|
+
var ReactVersion = '16.13.1-experimental-e5d06e34b';
|
|
22
22
|
|
|
23
23
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
24
24
|
// nor polyfill, then a plain number is used for performance.
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
|
|
25
|
+
var REACT_ELEMENT_TYPE = 0xeac7;
|
|
26
|
+
var REACT_PORTAL_TYPE = 0xeaca;
|
|
27
|
+
exports.Fragment = 0xeacb;
|
|
28
|
+
exports.StrictMode = 0xeacc;
|
|
29
|
+
exports.Profiler = 0xead2;
|
|
30
|
+
var REACT_PROVIDER_TYPE = 0xeacd;
|
|
31
|
+
var REACT_CONTEXT_TYPE = 0xeace;
|
|
32
|
+
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
33
|
+
exports.Suspense = 0xead1;
|
|
34
|
+
exports.SuspenseList = 0xead8;
|
|
35
|
+
var REACT_MEMO_TYPE = 0xead3;
|
|
36
|
+
var REACT_LAZY_TYPE = 0xead4;
|
|
37
|
+
var REACT_BLOCK_TYPE = 0xead9;
|
|
38
|
+
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
39
|
+
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
40
|
+
var REACT_RESPONDER_TYPE = 0xead6;
|
|
41
|
+
var REACT_SCOPE_TYPE = 0xead7;
|
|
42
|
+
var REACT_OPAQUE_ID_TYPE = 0xeae0;
|
|
43
|
+
|
|
44
|
+
if (typeof Symbol === 'function' && Symbol.for) {
|
|
45
|
+
var symbolFor = Symbol.for;
|
|
46
|
+
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
47
|
+
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
48
|
+
exports.Fragment = symbolFor('react.fragment');
|
|
49
|
+
exports.StrictMode = symbolFor('react.strict_mode');
|
|
50
|
+
exports.Profiler = symbolFor('react.profiler');
|
|
51
|
+
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
52
|
+
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
53
|
+
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
54
|
+
exports.Suspense = symbolFor('react.suspense');
|
|
55
|
+
exports.SuspenseList = symbolFor('react.suspense_list');
|
|
56
|
+
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
57
|
+
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
58
|
+
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
59
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
60
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
61
|
+
REACT_RESPONDER_TYPE = symbolFor('react.responder');
|
|
62
|
+
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
|
63
|
+
REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
|
|
64
|
+
}
|
|
65
|
+
|
|
44
66
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
45
67
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
46
68
|
function getIteratorFn(maybeIterable) {
|
|
@@ -91,26 +113,24 @@ var ReactCurrentOwner = {
|
|
|
91
113
|
};
|
|
92
114
|
|
|
93
115
|
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
94
|
-
|
|
116
|
+
|
|
117
|
+
function describeComponentFrame(name, source, ownerName) {
|
|
95
118
|
var sourceInfo = '';
|
|
96
119
|
|
|
97
|
-
if (source) {
|
|
120
|
+
if ( source) {
|
|
98
121
|
var path = source.fileName;
|
|
99
|
-
var fileName = path.replace(BEFORE_SLASH_RE, '');
|
|
122
|
+
var fileName = path.replace(BEFORE_SLASH_RE, ''); // In DEV, include code for a common special case:
|
|
123
|
+
// prefer "folder/index.js" instead of just "index.js".
|
|
100
124
|
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
// prefer "folder/index.js" instead of just "index.js".
|
|
104
|
-
if (/^index\./.test(fileName)) {
|
|
105
|
-
var match = path.match(BEFORE_SLASH_RE);
|
|
125
|
+
if (/^index\./.test(fileName)) {
|
|
126
|
+
var match = path.match(BEFORE_SLASH_RE);
|
|
106
127
|
|
|
107
|
-
|
|
108
|
-
|
|
128
|
+
if (match) {
|
|
129
|
+
var pathBeforeSlash = match[1];
|
|
109
130
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
131
|
+
if (pathBeforeSlash) {
|
|
132
|
+
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
|
|
133
|
+
fileName = folderName + '/' + fileName;
|
|
114
134
|
}
|
|
115
135
|
}
|
|
116
136
|
}
|
|
@@ -123,73 +143,75 @@ function describeComponentFrame (name, source, ownerName) {
|
|
|
123
143
|
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
124
144
|
}
|
|
125
145
|
|
|
126
|
-
function
|
|
127
|
-
var
|
|
128
|
-
|
|
146
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
147
|
+
var ownerName = null;
|
|
148
|
+
|
|
149
|
+
if ( ownerFn) {
|
|
150
|
+
ownerName = ownerFn.displayName || ownerFn.name || null;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return describeComponentFrame(name, source, ownerName);
|
|
129
154
|
}
|
|
155
|
+
function describeClassComponentFrame(ctor, source, ownerFn) {
|
|
156
|
+
return describeFunctionComponentFrame(ctor, source, ownerFn);
|
|
157
|
+
}
|
|
158
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
159
|
+
if (!fn) {
|
|
160
|
+
return '';
|
|
161
|
+
}
|
|
130
162
|
|
|
131
|
-
|
|
132
|
-
|
|
163
|
+
var name = fn.displayName || fn.name || null;
|
|
164
|
+
var ownerName = null;
|
|
165
|
+
|
|
166
|
+
if ( ownerFn) {
|
|
167
|
+
ownerName = ownerFn.displayName || ownerFn.name || null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return describeComponentFrame(name, source, ownerName);
|
|
133
171
|
}
|
|
134
172
|
|
|
135
|
-
function
|
|
173
|
+
function shouldConstruct(Component) {
|
|
174
|
+
var prototype = Component.prototype;
|
|
175
|
+
return !!(prototype && prototype.isReactComponent);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
179
|
+
|
|
136
180
|
if (type == null) {
|
|
137
|
-
|
|
138
|
-
return null;
|
|
181
|
+
return '';
|
|
139
182
|
}
|
|
140
183
|
|
|
141
|
-
{
|
|
142
|
-
if (
|
|
143
|
-
|
|
184
|
+
if (typeof type === 'function') {
|
|
185
|
+
if (shouldConstruct(type)) {
|
|
186
|
+
return describeClassComponentFrame(type, source, ownerFn);
|
|
144
187
|
}
|
|
145
|
-
}
|
|
146
188
|
|
|
147
|
-
|
|
148
|
-
return type.displayName || type.name || null;
|
|
189
|
+
return describeFunctionComponentFrame(type, source, ownerFn);
|
|
149
190
|
}
|
|
150
191
|
|
|
151
192
|
if (typeof type === 'string') {
|
|
152
|
-
return type;
|
|
193
|
+
return describeBuiltInComponentFrame(type, source, ownerFn);
|
|
153
194
|
}
|
|
154
195
|
|
|
155
196
|
switch (type) {
|
|
156
|
-
case
|
|
157
|
-
return '
|
|
158
|
-
|
|
159
|
-
case REACT_PORTAL_TYPE:
|
|
160
|
-
return 'Portal';
|
|
161
|
-
|
|
162
|
-
case REACT_PROFILER_TYPE:
|
|
163
|
-
return "Profiler";
|
|
164
|
-
|
|
165
|
-
case REACT_STRICT_MODE_TYPE:
|
|
166
|
-
return 'StrictMode';
|
|
167
|
-
|
|
168
|
-
case REACT_SUSPENSE_TYPE:
|
|
169
|
-
return 'Suspense';
|
|
197
|
+
case exports.Suspense:
|
|
198
|
+
return describeBuiltInComponentFrame('Suspense', source, ownerFn);
|
|
170
199
|
|
|
171
|
-
case
|
|
172
|
-
return 'SuspenseList';
|
|
200
|
+
case exports.SuspenseList:
|
|
201
|
+
return describeBuiltInComponentFrame('SuspenseList', source, ownerFn);
|
|
173
202
|
}
|
|
174
203
|
|
|
175
204
|
if (typeof type === 'object') {
|
|
176
205
|
switch (type.$$typeof) {
|
|
177
|
-
case REACT_CONTEXT_TYPE:
|
|
178
|
-
var context = type;
|
|
179
|
-
return getContextName(context) + '.Consumer';
|
|
180
|
-
|
|
181
|
-
case REACT_PROVIDER_TYPE:
|
|
182
|
-
var provider = type;
|
|
183
|
-
return getContextName(provider._context) + '.Provider';
|
|
184
|
-
|
|
185
206
|
case REACT_FORWARD_REF_TYPE:
|
|
186
|
-
return
|
|
207
|
+
return describeFunctionComponentFrame(type.render, source, ownerFn);
|
|
187
208
|
|
|
188
209
|
case REACT_MEMO_TYPE:
|
|
189
|
-
|
|
210
|
+
// Memo may contain any component type so we recursively resolve it.
|
|
211
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
190
212
|
|
|
191
213
|
case REACT_BLOCK_TYPE:
|
|
192
|
-
return
|
|
214
|
+
return describeFunctionComponentFrame(type._render, source, ownerFn);
|
|
193
215
|
|
|
194
216
|
case REACT_LAZY_TYPE:
|
|
195
217
|
{
|
|
@@ -198,15 +220,14 @@ function getComponentName(type) {
|
|
|
198
220
|
var init = lazyComponent._init;
|
|
199
221
|
|
|
200
222
|
try {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
223
|
+
// Lazy may contain any component type so we recursively resolve it.
|
|
224
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
225
|
+
} catch (x) {}
|
|
205
226
|
}
|
|
206
227
|
}
|
|
207
228
|
}
|
|
208
229
|
|
|
209
|
-
return
|
|
230
|
+
return '';
|
|
210
231
|
}
|
|
211
232
|
|
|
212
233
|
var ReactDebugCurrentFrame = {};
|
|
@@ -231,9 +252,8 @@ function setCurrentlyValidatingElement(element) {
|
|
|
231
252
|
var stack = ''; // Add an extra top frame while an element is being validated
|
|
232
253
|
|
|
233
254
|
if (currentlyValidatingElement) {
|
|
234
|
-
var name = getComponentName(currentlyValidatingElement.type);
|
|
235
255
|
var owner = currentlyValidatingElement._owner;
|
|
236
|
-
stack +=
|
|
256
|
+
stack += describeUnknownElementTypeFrameInDEV(currentlyValidatingElement.type, currentlyValidatingElement._source, owner ? owner.type : null);
|
|
237
257
|
} // Delegate to the injected renderer-specific implementation
|
|
238
258
|
|
|
239
259
|
|
|
@@ -563,6 +583,92 @@ function createRef() {
|
|
|
563
583
|
return refObject;
|
|
564
584
|
}
|
|
565
585
|
|
|
586
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
587
|
+
var functionName = innerType.displayName || innerType.name || '';
|
|
588
|
+
return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
function getContextName(type) {
|
|
592
|
+
return type.displayName || 'Context';
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
function getComponentName(type) {
|
|
596
|
+
if (type == null) {
|
|
597
|
+
// Host root, text node or just invalid type.
|
|
598
|
+
return null;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
{
|
|
602
|
+
if (typeof type.tag === 'number') {
|
|
603
|
+
error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
if (typeof type === 'function') {
|
|
608
|
+
return type.displayName || type.name || null;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (typeof type === 'string') {
|
|
612
|
+
return type;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
switch (type) {
|
|
616
|
+
case exports.Fragment:
|
|
617
|
+
return 'Fragment';
|
|
618
|
+
|
|
619
|
+
case REACT_PORTAL_TYPE:
|
|
620
|
+
return 'Portal';
|
|
621
|
+
|
|
622
|
+
case exports.Profiler:
|
|
623
|
+
return "Profiler";
|
|
624
|
+
|
|
625
|
+
case exports.StrictMode:
|
|
626
|
+
return 'StrictMode';
|
|
627
|
+
|
|
628
|
+
case exports.Suspense:
|
|
629
|
+
return 'Suspense';
|
|
630
|
+
|
|
631
|
+
case exports.SuspenseList:
|
|
632
|
+
return 'SuspenseList';
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
if (typeof type === 'object') {
|
|
636
|
+
switch (type.$$typeof) {
|
|
637
|
+
case REACT_CONTEXT_TYPE:
|
|
638
|
+
var context = type;
|
|
639
|
+
return getContextName(context) + '.Consumer';
|
|
640
|
+
|
|
641
|
+
case REACT_PROVIDER_TYPE:
|
|
642
|
+
var provider = type;
|
|
643
|
+
return getContextName(provider._context) + '.Provider';
|
|
644
|
+
|
|
645
|
+
case REACT_FORWARD_REF_TYPE:
|
|
646
|
+
return getWrappedName(type, type.render, 'ForwardRef');
|
|
647
|
+
|
|
648
|
+
case REACT_MEMO_TYPE:
|
|
649
|
+
return getComponentName(type.type);
|
|
650
|
+
|
|
651
|
+
case REACT_BLOCK_TYPE:
|
|
652
|
+
return getComponentName(type._render);
|
|
653
|
+
|
|
654
|
+
case REACT_LAZY_TYPE:
|
|
655
|
+
{
|
|
656
|
+
var lazyComponent = type;
|
|
657
|
+
var payload = lazyComponent._payload;
|
|
658
|
+
var init = lazyComponent._init;
|
|
659
|
+
|
|
660
|
+
try {
|
|
661
|
+
return getComponentName(init(payload));
|
|
662
|
+
} catch (x) {
|
|
663
|
+
return null;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
return null;
|
|
670
|
+
}
|
|
671
|
+
|
|
566
672
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
567
673
|
var RESERVED_PROPS = {
|
|
568
674
|
key: true,
|
|
@@ -1042,7 +1148,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
|
1042
1148
|
// Warn about using Maps as children
|
|
1043
1149
|
if (iteratorFn === iterableChildren.entries) {
|
|
1044
1150
|
if (!didWarnAboutMaps) {
|
|
1045
|
-
warn('Using Maps as children is
|
|
1151
|
+
warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
|
|
1046
1152
|
}
|
|
1047
1153
|
|
|
1048
1154
|
didWarnAboutMaps = true;
|
|
@@ -1278,9 +1384,9 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
1278
1384
|
get: function () {
|
|
1279
1385
|
return context.displayName;
|
|
1280
1386
|
},
|
|
1281
|
-
set: function () {
|
|
1387
|
+
set: function (displayName) {
|
|
1282
1388
|
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1283
|
-
warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '
|
|
1389
|
+
warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1284
1390
|
|
|
1285
1391
|
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1286
1392
|
}
|
|
@@ -1420,15 +1526,35 @@ function forwardRef(render) {
|
|
|
1420
1526
|
}
|
|
1421
1527
|
}
|
|
1422
1528
|
|
|
1423
|
-
|
|
1529
|
+
var elementType = {
|
|
1424
1530
|
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1425
1531
|
render: render
|
|
1426
1532
|
};
|
|
1533
|
+
|
|
1534
|
+
{
|
|
1535
|
+
var ownName;
|
|
1536
|
+
Object.defineProperty(elementType, 'displayName', {
|
|
1537
|
+
enumerable: false,
|
|
1538
|
+
configurable: true,
|
|
1539
|
+
get: function () {
|
|
1540
|
+
return ownName;
|
|
1541
|
+
},
|
|
1542
|
+
set: function (name) {
|
|
1543
|
+
ownName = name;
|
|
1544
|
+
|
|
1545
|
+
if (render.displayName == null) {
|
|
1546
|
+
render.displayName = name;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
return elementType;
|
|
1427
1553
|
}
|
|
1428
1554
|
|
|
1429
1555
|
function isValidElementType(type) {
|
|
1430
1556
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1431
|
-
type ===
|
|
1557
|
+
type === exports.Fragment || type === exports.Profiler || type === exports.StrictMode || type === exports.Suspense || type === exports.SuspenseList || 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 || type[0] === REACT_SERVER_BLOCK_TYPE);
|
|
1432
1558
|
}
|
|
1433
1559
|
|
|
1434
1560
|
function memo(type, compare) {
|
|
@@ -1438,11 +1564,31 @@ function memo(type, compare) {
|
|
|
1438
1564
|
}
|
|
1439
1565
|
}
|
|
1440
1566
|
|
|
1441
|
-
|
|
1567
|
+
var elementType = {
|
|
1442
1568
|
$$typeof: REACT_MEMO_TYPE,
|
|
1443
1569
|
type: type,
|
|
1444
1570
|
compare: compare === undefined ? null : compare
|
|
1445
1571
|
};
|
|
1572
|
+
|
|
1573
|
+
{
|
|
1574
|
+
var ownName;
|
|
1575
|
+
Object.defineProperty(elementType, 'displayName', {
|
|
1576
|
+
enumerable: false,
|
|
1577
|
+
configurable: true,
|
|
1578
|
+
get: function () {
|
|
1579
|
+
return ownName;
|
|
1580
|
+
},
|
|
1581
|
+
set: function (name) {
|
|
1582
|
+
ownName = name;
|
|
1583
|
+
|
|
1584
|
+
if (type.displayName == null) {
|
|
1585
|
+
type.displayName = name;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
return elementType;
|
|
1446
1592
|
}
|
|
1447
1593
|
|
|
1448
1594
|
function lazyInitializer$1(payload) {
|
|
@@ -1589,6 +1735,10 @@ function useDeferredValue(value, config) {
|
|
|
1589
1735
|
var dispatcher = resolveDispatcher();
|
|
1590
1736
|
return dispatcher.useDeferredValue(value, config);
|
|
1591
1737
|
}
|
|
1738
|
+
function useOpaqueIdentifier() {
|
|
1739
|
+
var dispatcher = resolveDispatcher();
|
|
1740
|
+
return dispatcher.useOpaqueIdentifier();
|
|
1741
|
+
}
|
|
1592
1742
|
function useMutableSource(source, getSnapshot, subscribe) {
|
|
1593
1743
|
var dispatcher = resolveDispatcher();
|
|
1594
1744
|
return dispatcher.useMutableSource(source, getSnapshot, subscribe);
|
|
@@ -1923,7 +2073,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1923
2073
|
}
|
|
1924
2074
|
}
|
|
1925
2075
|
|
|
1926
|
-
if (type ===
|
|
2076
|
+
if (type === exports.Fragment) {
|
|
1927
2077
|
validateFragmentProps(element);
|
|
1928
2078
|
} else {
|
|
1929
2079
|
validatePropTypes(element);
|
|
@@ -2012,12 +2162,7 @@ var Children = {
|
|
|
2012
2162
|
|
|
2013
2163
|
exports.Children = Children;
|
|
2014
2164
|
exports.Component = Component;
|
|
2015
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2016
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2017
2165
|
exports.PureComponent = PureComponent;
|
|
2018
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2019
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2020
|
-
exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
2021
2166
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2022
2167
|
exports.block = block;
|
|
2023
2168
|
exports.cloneElement = cloneElement$1;
|
|
@@ -2030,6 +2175,7 @@ exports.forwardRef = forwardRef;
|
|
|
2030
2175
|
exports.isValidElement = isValidElement;
|
|
2031
2176
|
exports.lazy = lazy;
|
|
2032
2177
|
exports.memo = memo;
|
|
2178
|
+
exports.unstable_useOpaqueIdentifier = useOpaqueIdentifier;
|
|
2033
2179
|
exports.unstable_withSuspenseConfig = withSuspenseConfig;
|
|
2034
2180
|
exports.useCallback = useCallback;
|
|
2035
2181
|
exports.useContext = useContext;
|