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.
@@ -23,57 +23,30 @@ if (
23
23
  ) {
24
24
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
25
25
  }
26
- var _assign = require('object-assign');
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. If there is no native Symbol
34
- // nor polyfill, then a plain number is used for performance.
35
- var REACT_ELEMENT_TYPE = 0xeac7;
36
- var REACT_PORTAL_TYPE = 0xeaca;
37
- exports.Fragment = 0xeacb;
38
- exports.StrictMode = 0xeacc;
39
- exports.Profiler = 0xead2;
40
- var REACT_PROVIDER_TYPE = 0xeacd;
41
- var REACT_CONTEXT_TYPE = 0xeace;
42
- var REACT_FORWARD_REF_TYPE = 0xead0;
43
- exports.Suspense = 0xead1;
44
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
45
- var REACT_MEMO_TYPE = 0xead3;
46
- var REACT_LAZY_TYPE = 0xead4;
47
- var REACT_SCOPE_TYPE = 0xead7;
48
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
49
- var REACT_OFFSCREEN_TYPE = 0xeae2;
50
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
51
- var REACT_CACHE_TYPE = 0xeae4;
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
- _assign(pureComponentPrototype, Component.prototype);
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 exports.Fragment:
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 exports.Profiler:
548
+ case REACT_PROFILER_TYPE:
577
549
  return 'Profiler';
578
550
 
579
- case exports.StrictMode:
551
+ case REACT_STRICT_MODE_TYPE:
580
552
  return 'StrictMode';
581
553
 
582
- case exports.Suspense:
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 = _assign({}, element.props); // Reserved names are extracted
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
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
1540
- var enableCache = false; // Only used in www builds.
1510
+ // -----------------------------------------------------------------------------
1541
1511
 
1542
1512
  var enableScopeAPI = false; // Experimental Create Event Handle API.
1543
- var warnOnSubscriptionInsideStartTransition = false;
1544
- var enableTransitionTracing = false;
1545
-
1546
- var REACT_MODULE_REFERENCE = 0;
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
- if (typeof Symbol === 'function') {
1549
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
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 === 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 ) {
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: _assign({}, props, {
1741
+ log: assign({}, props, {
1771
1742
  value: prevLog
1772
1743
  }),
1773
- info: _assign({}, props, {
1744
+ info: assign({}, props, {
1774
1745
  value: prevInfo
1775
1746
  }),
1776
- warn: _assign({}, props, {
1747
+ warn: assign({}, props, {
1777
1748
  value: prevWarn
1778
1749
  }),
1779
- error: _assign({}, props, {
1750
+ error: assign({}, props, {
1780
1751
  value: prevError
1781
1752
  }),
1782
- group: _assign({}, props, {
1753
+ group: assign({}, props, {
1783
1754
  value: prevGroup
1784
1755
  }),
1785
- groupCollapsed: _assign({}, props, {
1756
+ groupCollapsed: assign({}, props, {
1786
1757
  value: prevGroupCollapsed
1787
1758
  }),
1788
- groupEnd: _assign({}, props, {
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 exports.Suspense:
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 === exports.Fragment) {
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 && warnOnSubscriptionInsideStartTransition && currentTransition._updatedFibers) {
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=require("object-assign"),m=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;
11
- if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;m=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy")}var x="function"===typeof Symbol&&Symbol.iterator;
12
- function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return"function"===typeof a?a:null}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A={};function B(a,b,e){this.props=a;this.context=b;this.refs=A;this.updater=e||z}B.prototype.isReactComponent={};
13
- B.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")};B.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function C(){}C.prototype=B.prototype;function D(a,b,e){this.props=a;this.context=b;this.refs=A;this.updater=e||z}var E=D.prototype=new C;
14
- E.constructor=D;l(E,B.prototype);E.isPureReactComponent=!0;var F=Array.isArray,G=Object.prototype.hasOwnProperty,H={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};
15
- function J(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)G.call(b,d)&&!I.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),n=0;n<g;n++)f[n]=arguments[n+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:m,type:a,key:k,ref:h,props:c,_owner:H.current}}
16
- function K(a,b){return{$$typeof:m,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return"object"===typeof a&&null!==a&&a.$$typeof===m}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
17
- function O(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 m:case p:h=!0}}if(h)return h=a,c=c(h),a=""===d?"."+N(h,0):d,F(c)?(e="",null!=a&&(e=a.replace(M,"$&/")+"/"),O(c,b,e,"",function(a){return a})):null!=c&&(L(c)&&(c=K(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(M,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(F(a))for(var g=0;g<a.length;g++){k=
18
- a[g];var f=d+N(k,g);h+=O(k,b,e,f,c)}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+N(k,g++),h+=O(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}
19
- function P(a,b,e){if(null==a)return a;var d=[],c=0;O(a,d,"","",function(a){return b.call(e,a,c++)});return d}function Q(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;}
20
- var R={current:null},S={transition:null},T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:S,ReactCurrentOwner:H,assign:l};exports.Children={map:P,forEach:function(a,b,e){P(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;P(a,function(){b++});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=B;exports.PureComponent=D;
21
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
22
- 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=l({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=H.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)G.call(b,f)&&!I.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);
23
- for(var n=0;n<f;n++)g[n]=arguments[n+2];d.children=g}return{$$typeof:m,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:r,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:t,render:a}};
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={};try{a()}finally{S.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
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
- 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";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license React
3
- * react-unstable-shared-subset.development.js
3
+ * react.shared-subset.development.js
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license React
3
- * react-unstable-shared-subset.production.min.js
3
+ * react.shared-subset.production.min.js
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "18.0.0-rc.0-next-419ccc2b1-20220217",
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
- "unstable-shared-subset.js"
19
+ "react.shared-subset.js"
20
20
  ],
21
21
  "main": "index.js",
22
22
  "exports": {
23
23
  ".": {
24
- "react-server": "./unstable-shared-subset.js",
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": [
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === 'production') {
4
+ module.exports = require('./cjs/react.shared-subset.production.min.js');
5
+ } else {
6
+ module.exports = require('./cjs/react.shared-subset.development.js');
7
+ }