react 18.0.0-rc.0-next-419ccc2b1-20220217 → 18.0.0-rc.0-next-8c4cd65cf-20220224
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 +41 -63
- package/cjs/react-jsx-dev-runtime.production.min.js +1 -1
- package/cjs/react-jsx-dev-runtime.profiling.min.js +1 -1
- package/cjs/react-jsx-runtime.development.js +41 -63
- package/cjs/react-jsx-runtime.production.min.js +2 -2
- package/cjs/react-jsx-runtime.profiling.min.js +2 -2
- package/cjs/react.development.js +53 -99
- package/cjs/react.production.min.js +16 -18
- package/cjs/{react-unstable-shared-subset.development.js → react.shared-subset.development.js} +1 -1
- package/cjs/{react-unstable-shared-subset.production.min.js → react.shared-subset.production.min.js} +1 -1
- package/package.json +5 -7
- package/react.shared-subset.js +7 -0
- package/umd/react.development.js +50 -124
- package/umd/react.production.min.js +21 -22
- package/umd/react.profiling.min.js +21 -22
- package/unstable-shared-subset.js +0 -7
package/cjs/react.development.js
CHANGED
@@ -23,57 +23,30 @@ if (
|
|
23
23
|
) {
|
24
24
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
25
25
|
}
|
26
|
-
var
|
27
|
-
|
28
|
-
var ReactVersion = '18.0.0-rc.0-419ccc2b1-20220217';
|
26
|
+
var ReactVersion = '18.0.0-rc.0-8c4cd65cf-20220224';
|
29
27
|
|
30
28
|
// ATTENTION
|
31
29
|
// When adding new symbols to this file,
|
32
30
|
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
33
|
-
// The Symbol used to tag the ReactElement-like types.
|
34
|
-
|
35
|
-
var
|
36
|
-
var
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
var
|
41
|
-
var
|
42
|
-
var
|
43
|
-
|
44
|
-
var
|
45
|
-
var
|
46
|
-
var
|
47
|
-
var
|
48
|
-
var
|
49
|
-
var
|
50
|
-
var
|
51
|
-
var
|
52
|
-
var REACT_TRACING_MARKER_TYPE = 0xeae5;
|
53
|
-
|
54
|
-
if (typeof Symbol === 'function' && Symbol.for) {
|
55
|
-
var symbolFor = Symbol.for;
|
56
|
-
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
57
|
-
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
58
|
-
exports.Fragment = symbolFor('react.fragment');
|
59
|
-
exports.StrictMode = symbolFor('react.strict_mode');
|
60
|
-
exports.Profiler = symbolFor('react.profiler');
|
61
|
-
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
62
|
-
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
63
|
-
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
64
|
-
exports.Suspense = symbolFor('react.suspense');
|
65
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
66
|
-
REACT_MEMO_TYPE = symbolFor('react.memo');
|
67
|
-
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
68
|
-
REACT_SCOPE_TYPE = symbolFor('react.scope');
|
69
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
70
|
-
REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
|
71
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
72
|
-
REACT_CACHE_TYPE = symbolFor('react.cache');
|
73
|
-
REACT_TRACING_MARKER_TYPE = symbolFor('react.tracing_marker');
|
74
|
-
}
|
75
|
-
|
76
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
31
|
+
// The Symbol used to tag the ReactElement-like types.
|
32
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
33
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
34
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
35
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
36
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
37
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
38
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
39
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
40
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
41
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
42
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
43
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
44
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
|
45
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
46
|
+
var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');
|
47
|
+
var REACT_CACHE_TYPE = Symbol.for('react.cache');
|
48
|
+
var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker');
|
49
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
77
50
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
78
51
|
function getIteratorFn(maybeIterable) {
|
79
52
|
if (maybeIterable === null || typeof maybeIterable !== 'object') {
|
@@ -168,9 +141,7 @@ function setExtraStackFrame(stack) {
|
|
168
141
|
var ReactSharedInternals = {
|
169
142
|
ReactCurrentDispatcher: ReactCurrentDispatcher,
|
170
143
|
ReactCurrentBatchConfig: ReactCurrentBatchConfig,
|
171
|
-
ReactCurrentOwner: ReactCurrentOwner
|
172
|
-
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
173
|
-
assign: _assign
|
144
|
+
ReactCurrentOwner: ReactCurrentOwner
|
174
145
|
};
|
175
146
|
|
176
147
|
{
|
@@ -318,6 +289,8 @@ var ReactNoopUpdateQueue = {
|
|
318
289
|
}
|
319
290
|
};
|
320
291
|
|
292
|
+
var assign = Object.assign;
|
293
|
+
|
321
294
|
var emptyObject = {};
|
322
295
|
|
323
296
|
{
|
@@ -439,8 +412,7 @@ function PureComponent(props, context, updater) {
|
|
439
412
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
440
413
|
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
|
441
414
|
|
442
|
-
|
443
|
-
|
415
|
+
assign(pureComponentPrototype, Component.prototype);
|
444
416
|
pureComponentPrototype.isPureReactComponent = true;
|
445
417
|
|
446
418
|
// an immutable object with a single mutable value
|
@@ -567,19 +539,19 @@ function getComponentNameFromType(type) {
|
|
567
539
|
}
|
568
540
|
|
569
541
|
switch (type) {
|
570
|
-
case
|
542
|
+
case REACT_FRAGMENT_TYPE:
|
571
543
|
return 'Fragment';
|
572
544
|
|
573
545
|
case REACT_PORTAL_TYPE:
|
574
546
|
return 'Portal';
|
575
547
|
|
576
|
-
case
|
548
|
+
case REACT_PROFILER_TYPE:
|
577
549
|
return 'Profiler';
|
578
550
|
|
579
|
-
case
|
551
|
+
case REACT_STRICT_MODE_TYPE:
|
580
552
|
return 'StrictMode';
|
581
553
|
|
582
|
-
case
|
554
|
+
case REACT_SUSPENSE_TYPE:
|
583
555
|
return 'Suspense';
|
584
556
|
|
585
557
|
case REACT_SUSPENSE_LIST_TYPE:
|
@@ -904,8 +876,7 @@ function cloneElement(element, config, children) {
|
|
904
876
|
|
905
877
|
var propName; // Original props are copied
|
906
878
|
|
907
|
-
var props =
|
908
|
-
|
879
|
+
var props = assign({}, element.props); // Reserved names are extracted
|
909
880
|
|
910
881
|
var key = element.key;
|
911
882
|
var ref = element.ref; // Self is preserved since the owner is preserved.
|
@@ -1536,26 +1507,26 @@ function forwardRef(render) {
|
|
1536
1507
|
return elementType;
|
1537
1508
|
}
|
1538
1509
|
|
1539
|
-
//
|
1540
|
-
var enableCache = false; // Only used in www builds.
|
1510
|
+
// -----------------------------------------------------------------------------
|
1541
1511
|
|
1542
1512
|
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1513
|
+
// Ongoing experiments
|
1514
|
+
//
|
1515
|
+
// These are features that we're either actively exploring or are reasonably
|
1516
|
+
// likely to include in an upcoming release.
|
1517
|
+
// -----------------------------------------------------------------------------
|
1547
1518
|
|
1548
|
-
|
1549
|
-
|
1550
|
-
}
|
1519
|
+
var enableCache = false;
|
1520
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
1551
1521
|
|
1522
|
+
var REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
1552
1523
|
function isValidElementType(type) {
|
1553
1524
|
if (typeof type === 'string' || typeof type === 'function') {
|
1554
1525
|
return true;
|
1555
1526
|
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
1556
1527
|
|
1557
1528
|
|
1558
|
-
if (type ===
|
1529
|
+
if (type === REACT_FRAGMENT_TYPE || 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 ) {
|
1559
1530
|
return true;
|
1560
1531
|
}
|
1561
1532
|
|
@@ -1767,25 +1738,25 @@ function reenableLogs() {
|
|
1767
1738
|
}; // $FlowFixMe Flow thinks console is immutable.
|
1768
1739
|
|
1769
1740
|
Object.defineProperties(console, {
|
1770
|
-
log:
|
1741
|
+
log: assign({}, props, {
|
1771
1742
|
value: prevLog
|
1772
1743
|
}),
|
1773
|
-
info:
|
1744
|
+
info: assign({}, props, {
|
1774
1745
|
value: prevInfo
|
1775
1746
|
}),
|
1776
|
-
warn:
|
1747
|
+
warn: assign({}, props, {
|
1777
1748
|
value: prevWarn
|
1778
1749
|
}),
|
1779
|
-
error:
|
1750
|
+
error: assign({}, props, {
|
1780
1751
|
value: prevError
|
1781
1752
|
}),
|
1782
|
-
group:
|
1753
|
+
group: assign({}, props, {
|
1783
1754
|
value: prevGroup
|
1784
1755
|
}),
|
1785
|
-
groupCollapsed:
|
1756
|
+
groupCollapsed: assign({}, props, {
|
1786
1757
|
value: prevGroupCollapsed
|
1787
1758
|
}),
|
1788
|
-
groupEnd:
|
1759
|
+
groupEnd: assign({}, props, {
|
1789
1760
|
value: prevGroupEnd
|
1790
1761
|
})
|
1791
1762
|
});
|
@@ -2011,7 +1982,7 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2011
1982
|
}
|
2012
1983
|
|
2013
1984
|
switch (type) {
|
2014
|
-
case
|
1985
|
+
case REACT_SUSPENSE_TYPE:
|
2015
1986
|
return describeBuiltInComponentFrame('Suspense');
|
2016
1987
|
|
2017
1988
|
case REACT_SUSPENSE_LIST_TYPE:
|
@@ -2401,7 +2372,7 @@ function createElementWithValidation(type, props, children) {
|
|
2401
2372
|
}
|
2402
2373
|
}
|
2403
2374
|
|
2404
|
-
if (type ===
|
2375
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
2405
2376
|
validateFragmentProps(element);
|
2406
2377
|
} else {
|
2407
2378
|
validatePropTypes(element);
|
@@ -2448,26 +2419,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
2448
2419
|
return newElement;
|
2449
2420
|
}
|
2450
2421
|
|
2451
|
-
function createMutableSource(source, getVersion) {
|
2452
|
-
var mutableSource = {
|
2453
|
-
_getVersion: getVersion,
|
2454
|
-
_source: source,
|
2455
|
-
_workInProgressVersionPrimary: null,
|
2456
|
-
_workInProgressVersionSecondary: null
|
2457
|
-
};
|
2458
|
-
|
2459
|
-
{
|
2460
|
-
mutableSource._currentPrimaryRenderer = null;
|
2461
|
-
mutableSource._currentSecondaryRenderer = null; // Used to detect side effects that update a mutable source during render.
|
2462
|
-
// See https://github.com/facebook/react/issues/19948
|
2463
|
-
|
2464
|
-
mutableSource._currentlyRenderingFiber = null;
|
2465
|
-
mutableSource._initialVersionAsOfFirstRender = null;
|
2466
|
-
}
|
2467
|
-
|
2468
|
-
return mutableSource;
|
2469
|
-
}
|
2470
|
-
|
2471
2422
|
function startTransition(scope) {
|
2472
2423
|
var prevTransition = ReactCurrentBatchConfig.transition;
|
2473
2424
|
ReactCurrentBatchConfig.transition = {};
|
@@ -2483,7 +2434,7 @@ function startTransition(scope) {
|
|
2483
2434
|
ReactCurrentBatchConfig.transition = prevTransition;
|
2484
2435
|
|
2485
2436
|
{
|
2486
|
-
if (prevTransition === null &&
|
2437
|
+
if (prevTransition === null && currentTransition._updatedFibers) {
|
2487
2438
|
var updatedFibersCount = currentTransition._updatedFibers.size;
|
2488
2439
|
|
2489
2440
|
if (updatedFibersCount > 10) {
|
@@ -2741,7 +2692,11 @@ var Children = {
|
|
2741
2692
|
|
2742
2693
|
exports.Children = Children;
|
2743
2694
|
exports.Component = Component;
|
2695
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
2696
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
2744
2697
|
exports.PureComponent = PureComponent;
|
2698
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
2699
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
2745
2700
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
2746
2701
|
exports.cloneElement = cloneElement$1;
|
2747
2702
|
exports.createContext = createContext;
|
@@ -2754,7 +2709,6 @@ exports.lazy = lazy;
|
|
2754
2709
|
exports.memo = memo;
|
2755
2710
|
exports.startTransition = startTransition;
|
2756
2711
|
exports.unstable_act = act;
|
2757
|
-
exports.unstable_createMutableSource = createMutableSource;
|
2758
2712
|
exports.useCallback = useCallback;
|
2759
2713
|
exports.useContext = useContext;
|
2760
2714
|
exports.useDebugValue = useDebugValue;
|
@@ -7,21 +7,19 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var l=
|
11
|
-
|
12
|
-
function
|
13
|
-
|
14
|
-
|
15
|
-
function
|
16
|
-
function
|
17
|
-
|
18
|
-
|
19
|
-
function
|
20
|
-
|
21
|
-
exports.
|
22
|
-
|
23
|
-
|
24
|
-
exports.
|
25
|
-
exports.
|
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-419ccc2b1-20220217";
|
10
|
+
'use strict';var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null}
|
11
|
+
var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};
|
12
|
+
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;
|
13
|
+
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
14
|
+
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
15
|
+
function N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
16
|
+
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
17
|
+
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
18
|
+
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}
|
19
|
+
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=E;exports.Fragment=p;
|
20
|
+
exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
21
|
+
exports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
22
|
+
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:v,render:a}};
|
23
|
+
exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};
|
24
|
+
exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};
|
25
|
+
exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return U.current.useTransition()};exports.version="18.0.0-rc.0-8c4cd65cf-20220224";
|
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-8c4cd65cf-20220224",
|
8
8
|
"homepage": "https://reactjs.org/",
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
10
10
|
"license": "MIT",
|
@@ -16,18 +16,17 @@
|
|
16
16
|
"umd/",
|
17
17
|
"jsx-runtime.js",
|
18
18
|
"jsx-dev-runtime.js",
|
19
|
-
"
|
19
|
+
"react.shared-subset.js"
|
20
20
|
],
|
21
21
|
"main": "index.js",
|
22
22
|
"exports": {
|
23
23
|
".": {
|
24
|
-
"react-server": "./
|
24
|
+
"react-server": "./react.shared-subset.js",
|
25
25
|
"default": "./index.js"
|
26
26
|
},
|
27
27
|
"./package.json": "./package.json",
|
28
28
|
"./jsx-runtime": "./jsx-runtime.js",
|
29
|
-
"./jsx-dev-runtime": "./jsx-dev-runtime.js"
|
30
|
-
"./unstable-shared-subset": "./unstable-shared-subset.js"
|
29
|
+
"./jsx-dev-runtime": "./jsx-dev-runtime.js"
|
31
30
|
},
|
32
31
|
"repository": {
|
33
32
|
"type": "git",
|
@@ -38,8 +37,7 @@
|
|
38
37
|
"node": ">=0.10.0"
|
39
38
|
},
|
40
39
|
"dependencies": {
|
41
|
-
"loose-envify": "^1.1.0"
|
42
|
-
"object-assign": "^4.1.1"
|
40
|
+
"loose-envify": "^1.1.0"
|
43
41
|
},
|
44
42
|
"browserify": {
|
45
43
|
"transform": [
|