react 18.0.0-rc.0-next-9d4e8e84f-20220207 → 18.0.0-rc.0-next-27b569969-20220211
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/react-jsx-dev-runtime.development.js +7 -1
- package/cjs/react-jsx-runtime.development.js +7 -1
- package/cjs/react.development.js +8 -2
- package/cjs/react.production.min.js +1 -1
- package/package.json +2 -6
- package/umd/react.development.js +8 -2
- package/umd/react.production.min.js +1 -1
- package/umd/react.profiling.min.js +1 -1
@@ -39,6 +39,7 @@ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
39
39
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
40
40
|
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
41
41
|
var REACT_CACHE_TYPE = 0xeae4;
|
42
|
+
var REACT_TRACING_MARKER_TYPE = 0xeae5;
|
42
43
|
|
43
44
|
if (typeof Symbol === 'function' && Symbol.for) {
|
44
45
|
var symbolFor = Symbol.for;
|
@@ -59,6 +60,7 @@ if (typeof Symbol === 'function' && Symbol.for) {
|
|
59
60
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
60
61
|
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
61
62
|
REACT_CACHE_TYPE = symbolFor('react.cache');
|
63
|
+
REACT_TRACING_MARKER_TYPE = symbolFor('react.tracing_marker');
|
62
64
|
}
|
63
65
|
|
64
66
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
@@ -120,6 +122,7 @@ function printWarning(level, format, args) {
|
|
120
122
|
var enableCache = false; // Only used in www builds.
|
121
123
|
|
122
124
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
125
|
+
var enableTransitionTracing = false;
|
123
126
|
|
124
127
|
var REACT_MODULE_REFERENCE = 0;
|
125
128
|
|
@@ -133,7 +136,7 @@ function isValidElementType(type) {
|
|
133
136
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
134
137
|
|
135
138
|
|
136
|
-
if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache ) {
|
139
|
+
if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache || enableTransitionTracing ) {
|
137
140
|
return true;
|
138
141
|
}
|
139
142
|
|
@@ -208,6 +211,9 @@ function getComponentNameFromType(type) {
|
|
208
211
|
|
209
212
|
case REACT_CACHE_TYPE:
|
210
213
|
return 'Cache';
|
214
|
+
|
215
|
+
case REACT_TRACING_MARKER_TYPE:
|
216
|
+
return 'TracingMarker';
|
211
217
|
}
|
212
218
|
|
213
219
|
if (typeof type === 'object') {
|
@@ -39,6 +39,7 @@ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
39
39
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
40
40
|
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
41
41
|
var REACT_CACHE_TYPE = 0xeae4;
|
42
|
+
var REACT_TRACING_MARKER_TYPE = 0xeae5;
|
42
43
|
|
43
44
|
if (typeof Symbol === 'function' && Symbol.for) {
|
44
45
|
var symbolFor = Symbol.for;
|
@@ -59,6 +60,7 @@ if (typeof Symbol === 'function' && Symbol.for) {
|
|
59
60
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
60
61
|
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
61
62
|
REACT_CACHE_TYPE = symbolFor('react.cache');
|
63
|
+
REACT_TRACING_MARKER_TYPE = symbolFor('react.tracing_marker');
|
62
64
|
}
|
63
65
|
|
64
66
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
@@ -120,6 +122,7 @@ function printWarning(level, format, args) {
|
|
120
122
|
var enableCache = false; // Only used in www builds.
|
121
123
|
|
122
124
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
125
|
+
var enableTransitionTracing = false;
|
123
126
|
|
124
127
|
var REACT_MODULE_REFERENCE = 0;
|
125
128
|
|
@@ -133,7 +136,7 @@ function isValidElementType(type) {
|
|
133
136
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
134
137
|
|
135
138
|
|
136
|
-
if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache ) {
|
139
|
+
if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache || enableTransitionTracing ) {
|
137
140
|
return true;
|
138
141
|
}
|
139
142
|
|
@@ -208,6 +211,9 @@ function getComponentNameFromType(type) {
|
|
208
211
|
|
209
212
|
case REACT_CACHE_TYPE:
|
210
213
|
return 'Cache';
|
214
|
+
|
215
|
+
case REACT_TRACING_MARKER_TYPE:
|
216
|
+
return 'TracingMarker';
|
211
217
|
}
|
212
218
|
|
213
219
|
if (typeof type === 'object') {
|
package/cjs/react.development.js
CHANGED
@@ -25,7 +25,7 @@ if (
|
|
25
25
|
}
|
26
26
|
var _assign = require('object-assign');
|
27
27
|
|
28
|
-
var ReactVersion = '18.0.0-rc.0-
|
28
|
+
var ReactVersion = '18.0.0-rc.0-27b569969-20220211';
|
29
29
|
|
30
30
|
// ATTENTION
|
31
31
|
// When adding new symbols to this file,
|
@@ -49,6 +49,7 @@ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
49
49
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
50
50
|
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
51
51
|
var REACT_CACHE_TYPE = 0xeae4;
|
52
|
+
var REACT_TRACING_MARKER_TYPE = 0xeae5;
|
52
53
|
|
53
54
|
if (typeof Symbol === 'function' && Symbol.for) {
|
54
55
|
var symbolFor = Symbol.for;
|
@@ -69,6 +70,7 @@ if (typeof Symbol === 'function' && Symbol.for) {
|
|
69
70
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
70
71
|
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
71
72
|
REACT_CACHE_TYPE = symbolFor('react.cache');
|
73
|
+
REACT_TRACING_MARKER_TYPE = symbolFor('react.tracing_marker');
|
72
74
|
}
|
73
75
|
|
74
76
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
@@ -589,6 +591,9 @@ function getComponentNameFromType(type) {
|
|
589
591
|
|
590
592
|
case REACT_CACHE_TYPE:
|
591
593
|
return 'Cache';
|
594
|
+
|
595
|
+
case REACT_TRACING_MARKER_TYPE:
|
596
|
+
return 'TracingMarker';
|
592
597
|
}
|
593
598
|
|
594
599
|
if (typeof type === 'object') {
|
@@ -1540,6 +1545,7 @@ var enableCache = false; // Only used in www builds.
|
|
1540
1545
|
|
1541
1546
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
1542
1547
|
var warnOnSubscriptionInsideStartTransition = false;
|
1548
|
+
var enableTransitionTracing = false;
|
1543
1549
|
|
1544
1550
|
var REACT_MODULE_REFERENCE = 0;
|
1545
1551
|
|
@@ -1553,7 +1559,7 @@ function isValidElementType(type) {
|
|
1553
1559
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
1554
1560
|
|
1555
1561
|
|
1556
|
-
if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache ) {
|
1562
|
+
if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache || enableTransitionTracing ) {
|
1557
1563
|
return true;
|
1558
1564
|
}
|
1559
1565
|
|
@@ -24,4 +24,4 @@ for(var n=0;n<f;n++)g[n]=arguments[n+2];d.children=g}return{$$typeof:m,type:a.ty
|
|
24
24
|
exports.isValidElement=L;exports.lazy=function(a){return{$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return{$$typeof:u,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=S.transition;S.transition=1;try{a()}finally{S.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
25
25
|
exports.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};exports.useCallback=function(a,b){return R.current.useCallback(a,b)};exports.useContext=function(a){return R.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return R.current.useDeferredValue(a)};exports.useEffect=function(a,b){return R.current.useEffect(a,b)};exports.useId=function(){return R.current.useId()};
|
26
26
|
exports.useImperativeHandle=function(a,b,e){return R.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return R.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return R.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return R.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return R.current.useReducer(a,b,e)};exports.useRef=function(a){return R.current.useRef(a)};exports.useState=function(a){return R.current.useState(a)};
|
27
|
-
exports.useSyncExternalStore=function(a,b,e){return R.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return R.current.useTransition()};exports.version="18.0.0-rc.0-
|
27
|
+
exports.useSyncExternalStore=function(a,b,e){return R.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return R.current.useTransition()};exports.version="18.0.0-rc.0-27b569969-20220211";
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"keywords": [
|
5
5
|
"react"
|
6
6
|
],
|
7
|
-
"version": "18.0.0-rc.0-next-
|
7
|
+
"version": "18.0.0-rc.0-next-27b569969-20220211",
|
8
8
|
"homepage": "https://reactjs.org/",
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
10
10
|
"license": "MIT",
|
@@ -24,14 +24,10 @@
|
|
24
24
|
"react-server": "./unstable-shared-subset.js",
|
25
25
|
"default": "./index.js"
|
26
26
|
},
|
27
|
-
"./index": {
|
28
|
-
"react-server": "./unstable-shared-subset.js",
|
29
|
-
"default": "./index.js"
|
30
|
-
},
|
31
27
|
"./package.json": "./package.json",
|
32
28
|
"./jsx-runtime": "./jsx-runtime.js",
|
33
29
|
"./jsx-dev-runtime": "./jsx-dev-runtime.js",
|
34
|
-
"./": "./"
|
30
|
+
"./unstable-shared-subset": "./unstable-shared-subset.js"
|
35
31
|
},
|
36
32
|
"repository": {
|
37
33
|
"type": "git",
|
package/umd/react.development.js
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
(global = global || self, factory(global.React = {}));
|
14
14
|
}(this, (function (exports) { 'use strict';
|
15
15
|
|
16
|
-
var ReactVersion = '18.0.0-rc.0-
|
16
|
+
var ReactVersion = '18.0.0-rc.0-27b569969-20220211';
|
17
17
|
|
18
18
|
// ATTENTION
|
19
19
|
// When adding new symbols to this file,
|
@@ -37,6 +37,7 @@
|
|
37
37
|
var REACT_OFFSCREEN_TYPE = 0xeae2;
|
38
38
|
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
39
39
|
var REACT_CACHE_TYPE = 0xeae4;
|
40
|
+
var REACT_TRACING_MARKER_TYPE = 0xeae5;
|
40
41
|
|
41
42
|
if (typeof Symbol === 'function' && Symbol.for) {
|
42
43
|
var symbolFor = Symbol.for;
|
@@ -57,6 +58,7 @@
|
|
57
58
|
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
58
59
|
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
59
60
|
REACT_CACHE_TYPE = symbolFor('react.cache');
|
61
|
+
REACT_TRACING_MARKER_TYPE = symbolFor('react.tracing_marker');
|
60
62
|
}
|
61
63
|
|
62
64
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
@@ -605,6 +607,9 @@
|
|
605
607
|
|
606
608
|
case REACT_CACHE_TYPE:
|
607
609
|
return 'Cache';
|
610
|
+
|
611
|
+
case REACT_TRACING_MARKER_TYPE:
|
612
|
+
return 'TracingMarker';
|
608
613
|
}
|
609
614
|
|
610
615
|
if (typeof type === 'object') {
|
@@ -1556,6 +1561,7 @@
|
|
1556
1561
|
|
1557
1562
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
1558
1563
|
var warnOnSubscriptionInsideStartTransition = false;
|
1564
|
+
var enableTransitionTracing = false;
|
1559
1565
|
|
1560
1566
|
var REACT_MODULE_REFERENCE = 0;
|
1561
1567
|
|
@@ -1569,7 +1575,7 @@
|
|
1569
1575
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
1570
1576
|
|
1571
1577
|
|
1572
|
-
if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache ) {
|
1578
|
+
if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCache || enableTransitionTracing ) {
|
1573
1579
|
return true;
|
1574
1580
|
}
|
1575
1581
|
|
@@ -28,5 +28,5 @@ if(null!=b){void 0!==b.ref&&(g=b.ref,k=L.current);void 0!==b.key&&(e=""+b.key);i
|
|
28
28
|
Provider:null,Consumer:null};a.Provider={$$typeof:ma,_context:a};return a.Consumer=a};c.createElement=aa;c.createFactory=function(a){var b=aa.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:oa,render:a}};c.isValidElement=M;c.lazy=function(a){return{$$typeof:qa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:pa,type:a,compare:void 0===b?null:b}};c.startTransition=function(a){var b=J.transition;J.transition=
|
29
29
|
1;try{a()}finally{J.transition=b}};c.unstable_act=function(a){throw Error("act(...) is not supported in production builds of React.");};c.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};c.useCallback=function(a,b){return m.current.useCallback(a,b)};c.useContext=function(a){return m.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return m.current.useDeferredValue(a)};
|
30
30
|
c.useEffect=function(a,b){return m.current.useEffect(a,b)};c.useId=function(){return m.current.useId()};c.useImperativeHandle=function(a,b,c){return m.current.useImperativeHandle(a,b,c)};c.useInsertionEffect=function(a,b){return m.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return m.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return m.current.useMemo(a,b)};c.useReducer=function(a,b,c){return m.current.useReducer(a,b,c)};c.useRef=function(a){return m.current.useRef(a)};
|
31
|
-
c.useState=function(a){return m.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return m.current.useTransition()};c.version="18.0.0-rc.0-
|
31
|
+
c.useState=function(a){return m.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return m.current.useTransition()};c.version="18.0.0-rc.0-27b569969-20220211"});
|
32
32
|
})();
|
@@ -28,5 +28,5 @@ if(null!=b){void 0!==b.ref&&(g=b.ref,k=L.current);void 0!==b.key&&(e=""+b.key);i
|
|
28
28
|
Provider:null,Consumer:null};a.Provider={$$typeof:ma,_context:a};return a.Consumer=a};c.createElement=aa;c.createFactory=function(a){var b=aa.bind(null,a);b.type=a;return b};c.createRef=function(){return{current:null}};c.forwardRef=function(a){return{$$typeof:oa,render:a}};c.isValidElement=M;c.lazy=function(a){return{$$typeof:qa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:pa,type:a,compare:void 0===b?null:b}};c.startTransition=function(a){var b=J.transition;J.transition=
|
29
29
|
1;try{a()}finally{J.transition=b}};c.unstable_act=function(a){throw Error("act(...) is not supported in production builds of React.");};c.unstable_createMutableSource=function(a,b){return{_getVersion:b,_source:a,_workInProgressVersionPrimary:null,_workInProgressVersionSecondary:null}};c.useCallback=function(a,b){return m.current.useCallback(a,b)};c.useContext=function(a){return m.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return m.current.useDeferredValue(a)};
|
30
30
|
c.useEffect=function(a,b){return m.current.useEffect(a,b)};c.useId=function(){return m.current.useId()};c.useImperativeHandle=function(a,b,c){return m.current.useImperativeHandle(a,b,c)};c.useInsertionEffect=function(a,b){return m.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return m.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return m.current.useMemo(a,b)};c.useReducer=function(a,b,c){return m.current.useReducer(a,b,c)};c.useRef=function(a){return m.current.useRef(a)};
|
31
|
-
c.useState=function(a){return m.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return m.current.useTransition()};c.version="18.0.0-rc.0-
|
31
|
+
c.useState=function(a){return m.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return m.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return m.current.useTransition()};c.version="18.0.0-rc.0-27b569969-20220211"});
|
32
32
|
})();
|