react 18.3.0-next-0b974418c-20230106 → 18.3.0-next-0f4a83596-20230110

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ if (
23
23
  ) {
24
24
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
25
25
  }
26
- var ReactVersion = '18.3.0-next-0b974418c-20230106';
26
+ var ReactVersion = '18.3.0-next-0f4a83596-20230110';
27
27
 
28
28
  // ATTENTION
29
29
  // When adding new symbols to this file,
@@ -108,8 +108,7 @@ var ReactCurrentOwner = {
108
108
  current: null
109
109
  };
110
110
 
111
- var ReactDebugCurrentFrame = // $FlowFixMe[incompatible-exact]
112
- {};
111
+ var ReactDebugCurrentFrame = {};
113
112
  var currentExtraStackFrame = null;
114
113
  function setExtraStackFrame(stack) {
115
114
  {
@@ -1224,7 +1223,8 @@ function countChildren(children) {
1224
1223
 
1225
1224
 
1226
1225
  function forEachChildren(children, forEachFunc, forEachContext) {
1227
- mapChildren(children, function () {
1226
+ mapChildren(children, // $FlowFixMe[missing-this-annot]
1227
+ function () {
1228
1228
  forEachFunc.apply(this, arguments); // Don't return anything.
1229
1229
  }, forEachContext);
1230
1230
  }
@@ -1464,6 +1464,7 @@ function lazy(ctor) {
1464
1464
  get: function () {
1465
1465
  return defaultProps;
1466
1466
  },
1467
+ // $FlowFixMe[missing-local-annot]
1467
1468
  set: function (newDefaultProps) {
1468
1469
  error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1469
1470
 
@@ -1480,6 +1481,7 @@ function lazy(ctor) {
1480
1481
  get: function () {
1481
1482
  return propTypes;
1482
1483
  },
1484
+ // $FlowFixMe[missing-local-annot]
1483
1485
  set: function (newPropTypes) {
1484
1486
  error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1485
1487
 
@@ -2656,11 +2658,11 @@ function startTransition(scope, options) {
2656
2658
  if (prevTransition === null && currentTransition._updatedFibers) {
2657
2659
  var updatedFibersCount = currentTransition._updatedFibers.size;
2658
2660
 
2661
+ currentTransition._updatedFibers.clear();
2662
+
2659
2663
  if (updatedFibersCount > 10) {
2660
2664
  warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
2661
2665
  }
2662
-
2663
- currentTransition._updatedFibers.clear();
2664
2666
  }
2665
2667
  }
2666
2668
  }
@@ -27,4 +27,4 @@ exports.createServerContext=function(a,b){var d=!0;if(!Z[a]){d=!1;var c={$$typeo
27
27
  exports.isValidElement=P;exports.lazy=function(a){return{$$typeof:z,_payload:{_status:-1,_result:a},_init:ba}};exports.memo=function(a,b){return{$$typeof:y,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.unstable_useCacheRefresh=function(){return W.current.useCacheRefresh()};exports.use=function(a){return W.current.use(a)};
28
28
  exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return W.current.useDeferredValue(a)};exports.useEffect=function(a,b){return W.current.useEffect(a,b)};exports.useId=function(){return W.current.useId()};exports.useImperativeHandle=function(a,b,d){return W.current.useImperativeHandle(a,b,d)};
29
29
  exports.useInsertionEffect=function(a,b){return W.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return W.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.useReducer=function(a,b,d){return W.current.useReducer(a,b,d)};exports.useRef=function(a){return W.current.useRef(a)};exports.useState=function(a){return W.current.useState(a)};exports.useSyncExternalStore=function(a,b,d){return W.current.useSyncExternalStore(a,b,d)};
30
- exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-next-0b974418c-20230106";
30
+ exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-next-0f4a83596-20230110";
@@ -61,8 +61,7 @@ var ReactCurrentOwner = {
61
61
  current: null
62
62
  };
63
63
 
64
- var ReactDebugCurrentFrame = // $FlowFixMe[incompatible-exact]
65
- {};
64
+ var ReactDebugCurrentFrame = {};
66
65
  var currentExtraStackFrame = null;
67
66
  function setExtraStackFrame(stack) {
68
67
  {
@@ -303,7 +302,7 @@ function generateCacheKey(request) {
303
302
  }
304
303
  }
305
304
 
306
- var ReactVersion = '18.3.0-next-0b974418c-20230106';
305
+ var ReactVersion = '18.3.0-next-0f4a83596-20230110';
307
306
 
308
307
  // ATTENTION
309
308
  // When adding new symbols to this file,
@@ -1335,7 +1334,8 @@ function countChildren(children) {
1335
1334
 
1336
1335
 
1337
1336
  function forEachChildren(children, forEachFunc, forEachContext) {
1338
- mapChildren(children, function () {
1337
+ mapChildren(children, // $FlowFixMe[missing-this-annot]
1338
+ function () {
1339
1339
  forEachFunc.apply(this, arguments); // Don't return anything.
1340
1340
  }, forEachContext);
1341
1341
  }
@@ -1461,6 +1461,7 @@ function lazy(ctor) {
1461
1461
  get: function () {
1462
1462
  return defaultProps;
1463
1463
  },
1464
+ // $FlowFixMe[missing-local-annot]
1464
1465
  set: function (newDefaultProps) {
1465
1466
  error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1466
1467
 
@@ -1477,6 +1478,7 @@ function lazy(ctor) {
1477
1478
  get: function () {
1478
1479
  return propTypes;
1479
1480
  },
1481
+ // $FlowFixMe[missing-local-annot]
1480
1482
  set: function (newPropTypes) {
1481
1483
  error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1482
1484
 
@@ -2580,11 +2582,11 @@ function startTransition(scope, options) {
2580
2582
  if (prevTransition === null && currentTransition._updatedFibers) {
2581
2583
  var updatedFibersCount = currentTransition._updatedFibers.size;
2582
2584
 
2585
+ currentTransition._updatedFibers.clear();
2586
+
2583
2587
  if (updatedFibersCount > 10) {
2584
2588
  warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
2585
2589
  }
2586
-
2587
- currentTransition._updatedFibers.clear();
2588
2590
  }
2589
2591
  }
2590
2592
  }
@@ -26,4 +26,4 @@ exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(F(267,a
26
26
  key:e,ref:f,props:c,_owner:g}};exports.createElement=function(a,b,d){var c,e={},f=null,g=null;if(null!=b)for(c in void 0!==b.ref&&(g=b.ref),void 0!==b.key&&(f=""+b.key),b)N.call(b,c)&&!P.hasOwnProperty(c)&&(e[c]=b[c]);var h=arguments.length-2;if(1===h)e.children=d;else if(1<h){for(var k=Array(h),l=0;l<h;l++)k[l]=arguments[l+2];e.children=k}if(a&&a.defaultProps)for(c in h=a.defaultProps,h)void 0===e[c]&&(e[c]=h[c]);return{$$typeof:t,type:a,key:f,ref:g,props:e,_owner:O.current}};exports.createRef=function(){return{current:null}};
27
27
  exports.createServerContext=function(a,b){var d=!0;if(!Z[a]){d=!1;var c={$$typeof:z,_currentValue:b,_currentValue2:b,_defaultValue:b,_threadCount:0,Provider:null,Consumer:null,_globalName:a};c.Provider={$$typeof:y,_context:c};Z[a]=c}c=Z[a];if(c._defaultValue===D)c._defaultValue=b,c._currentValue===D&&(c._currentValue=b),c._currentValue2===D&&(c._currentValue2=b);else if(d)throw Error(F(429,a));return c};exports.forwardRef=function(a){return{$$typeof:A,render:a}};exports.isValidElement=Q;
28
28
  exports.lazy=function(a){return{$$typeof:aa,_payload:{_status:-1,_result:a},_init:da}};exports.memo=function(a,b){return{$$typeof:C,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.use=function(a){return W.current.use(a)};exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};
29
- exports.useId=function(){return W.current.useId()};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.version="18.3.0-next-0b974418c-20230106";
29
+ exports.useId=function(){return W.current.useId()};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.version="18.3.0-next-0f4a83596-20230110";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "18.3.0-next-0b974418c-20230106",
7
+ "version": "18.3.0-next-0f4a83596-20230110",
8
8
  "homepage": "https://reactjs.org/",
9
9
  "bugs": "https://github.com/facebook/react/issues",
10
10
  "license": "MIT",
@@ -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.3.0-next-0b974418c-20230106';
16
+ var ReactVersion = '18.3.0-next-0f4a83596-20230110';
17
17
 
18
18
  // ATTENTION
19
19
  // When adding new symbols to this file,
@@ -98,8 +98,7 @@
98
98
  current: null
99
99
  };
100
100
 
101
- var ReactDebugCurrentFrame = // $FlowFixMe[incompatible-exact]
102
- {};
101
+ var ReactDebugCurrentFrame = {};
103
102
  var currentExtraStackFrame = null;
104
103
  function setExtraStackFrame(stack) {
105
104
  {
@@ -1214,7 +1213,8 @@
1214
1213
 
1215
1214
 
1216
1215
  function forEachChildren(children, forEachFunc, forEachContext) {
1217
- mapChildren(children, function () {
1216
+ mapChildren(children, // $FlowFixMe[missing-this-annot]
1217
+ function () {
1218
1218
  forEachFunc.apply(this, arguments); // Don't return anything.
1219
1219
  }, forEachContext);
1220
1220
  }
@@ -1454,6 +1454,7 @@
1454
1454
  get: function () {
1455
1455
  return defaultProps;
1456
1456
  },
1457
+ // $FlowFixMe[missing-local-annot]
1457
1458
  set: function (newDefaultProps) {
1458
1459
  error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1459
1460
 
@@ -1470,6 +1471,7 @@
1470
1471
  get: function () {
1471
1472
  return propTypes;
1472
1473
  },
1474
+ // $FlowFixMe[missing-local-annot]
1473
1475
  set: function (newPropTypes) {
1474
1476
  error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1475
1477
 
@@ -2969,6 +2971,7 @@
2969
2971
 
2970
2972
  function unstable_wrapCallback(callback) {
2971
2973
  var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return]
2974
+ // $FlowFixMe[missing-this-annot]
2972
2975
 
2973
2976
  return function () {
2974
2977
  // This is a fork of runWithPriority, inlined for performance.
@@ -3291,11 +3294,11 @@
3291
3294
  if (prevTransition === null && currentTransition._updatedFibers) {
3292
3295
  var updatedFibersCount = currentTransition._updatedFibers.size;
3293
3296
 
3297
+ currentTransition._updatedFibers.clear();
3298
+
3294
3299
  if (updatedFibersCount > 10) {
3295
3300
  warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
3296
3301
  }
3297
-
3298
- currentTransition._updatedFibers.clear();
3299
3302
  }
3300
3303
  }
3301
3304
  }
@@ -30,5 +30,5 @@ b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(h in b)da.ca
30
30
  W&&(e._currentValue2=b);else if(c)throw Error("ServerContext: "+a+" already defined");return e};c.forwardRef=function(a){return{$$typeof:Ca,render:a}};c.isValidElement=O;c.lazy=function(a){return{$$typeof:Fa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:Ea,type:a,compare:void 0===b?null:b}};c.startTransition=function(a,b){b=K.transition;K.transition={};try{a()}finally{K.transition=b}};c.unstable_act=function(a){throw Error("act(...) is not supported in production builds of React.");
31
31
  };c.unstable_useCacheRefresh=function(){return e.current.useCacheRefresh()};c.use=function(a){return e.current.use(a)};c.useCallback=function(a,b){return e.current.useCallback(a,b)};c.useContext=function(a){return e.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return e.current.useDeferredValue(a)};c.useEffect=function(a,b){return e.current.useEffect(a,b)};c.useId=function(){return e.current.useId()};c.useImperativeHandle=function(a,b,c){return e.current.useImperativeHandle(a,
32
32
  b,c)};c.useInsertionEffect=function(a,b){return e.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return e.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return e.current.useMemo(a,b)};c.useReducer=function(a,b,c){return e.current.useReducer(a,b,c)};c.useRef=function(a){return e.current.useRef(a)};c.useState=function(a){return e.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return e.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return e.current.useTransition()};
33
- c.version="18.3.0-next-0b974418c-20230106"});
33
+ c.version="18.3.0-next-0f4a83596-20230110"});
34
34
  })();
@@ -30,5 +30,5 @@ b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(h in b)da.ca
30
30
  W&&(e._currentValue2=b);else if(c)throw Error("ServerContext: "+a+" already defined");return e};c.forwardRef=function(a){return{$$typeof:Ca,render:a}};c.isValidElement=O;c.lazy=function(a){return{$$typeof:Fa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:Ea,type:a,compare:void 0===b?null:b}};c.startTransition=function(a,b){b=K.transition;K.transition={};try{a()}finally{K.transition=b}};c.unstable_act=function(a){throw Error("act(...) is not supported in production builds of React.");
31
31
  };c.unstable_useCacheRefresh=function(){return e.current.useCacheRefresh()};c.use=function(a){return e.current.use(a)};c.useCallback=function(a,b){return e.current.useCallback(a,b)};c.useContext=function(a){return e.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return e.current.useDeferredValue(a)};c.useEffect=function(a,b){return e.current.useEffect(a,b)};c.useId=function(){return e.current.useId()};c.useImperativeHandle=function(a,b,c){return e.current.useImperativeHandle(a,
32
32
  b,c)};c.useInsertionEffect=function(a,b){return e.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return e.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return e.current.useMemo(a,b)};c.useReducer=function(a,b,c){return e.current.useReducer(a,b,c)};c.useRef=function(a){return e.current.useRef(a)};c.useState=function(a){return e.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return e.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return e.current.useTransition()};
33
- c.version="18.3.0-next-0b974418c-20230106"});
33
+ c.version="18.3.0-next-0f4a83596-20230110"});
34
34
  })();