react 16.7.0-alpha.0 → 16.8.0-alpha.0

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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "branch": "pull/14555",
3
+ "buildNumber": "12980",
4
+ "checksum": "0715bcb",
5
+ "commit": "f22621f88",
6
+ "environment": "ci",
7
+ "reactVersion": "16.7.0-canary-f22621f88"
8
+ }
@@ -1,4 +1,4 @@
1
- /** @license React v16.7.0-alpha.0
1
+ /** @license React v16.8.0-alpha.0
2
2
  * react.development.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -20,7 +20,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
20
20
 
21
21
  // TODO: this is special because it gets imported during build.
22
22
 
23
- var ReactVersion = '16.7.0-alpha.0';
23
+ var ReactVersion = '16.8.0-alpha.0';
24
24
 
25
25
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
26
26
  // nor polyfill, then a plain number is used for performance.
@@ -33,6 +33,7 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
33
33
  var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
34
34
  var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
35
35
  var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
36
+
36
37
  var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
37
38
  var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
38
39
  var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
@@ -54,7 +55,6 @@ function getIteratorFn(maybeIterable) {
54
55
  }
55
56
 
56
57
  var enableHooks = true;
57
-
58
58
  // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
59
59
 
60
60
 
@@ -77,6 +77,9 @@ var enableHooks = true;
77
77
  // Trace which interactions trigger each commit.
78
78
 
79
79
 
80
+ // Only used in www builds.
81
+ // TODO: true? Here it might just be false.
82
+
80
83
  // Only used in www builds.
81
84
 
82
85
 
@@ -215,63 +218,24 @@ var warningWithoutStack = function () {};
215
218
  return;
216
219
  }
217
220
  if (typeof console !== 'undefined') {
218
- var _args$map = args.map(function (item) {
221
+ var argsWithFormat = args.map(function (item) {
219
222
  return '' + item;
220
- }),
221
- a = _args$map[0],
222
- b = _args$map[1],
223
- c = _args$map[2],
224
- d = _args$map[3],
225
- e = _args$map[4],
226
- f = _args$map[5],
227
- g = _args$map[6],
228
- h = _args$map[7];
229
-
230
- var message = 'Warning: ' + format;
231
-
232
- // We intentionally don't use spread (or .apply) because it breaks IE9:
233
- // https://github.com/facebook/react/issues/13610
234
- switch (args.length) {
235
- case 0:
236
- console.error(message);
237
- break;
238
- case 1:
239
- console.error(message, a);
240
- break;
241
- case 2:
242
- console.error(message, a, b);
243
- break;
244
- case 3:
245
- console.error(message, a, b, c);
246
- break;
247
- case 4:
248
- console.error(message, a, b, c, d);
249
- break;
250
- case 5:
251
- console.error(message, a, b, c, d, e);
252
- break;
253
- case 6:
254
- console.error(message, a, b, c, d, e, f);
255
- break;
256
- case 7:
257
- console.error(message, a, b, c, d, e, f, g);
258
- break;
259
- case 8:
260
- console.error(message, a, b, c, d, e, f, g, h);
261
- break;
262
- default:
263
- throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
264
- }
223
+ });
224
+ argsWithFormat.unshift('Warning: ' + format);
225
+
226
+ // We intentionally don't use spread (or .apply) directly because it
227
+ // breaks IE9: https://github.com/facebook/react/issues/13610
228
+ Function.prototype.apply.call(console.error, console, argsWithFormat);
265
229
  }
266
230
  try {
267
231
  // --- Welcome to debugging React ---
268
232
  // This error was thrown as a convenience so that you can use this stack
269
233
  // to find the callsite that caused this warning to fire.
270
234
  var argIndex = 0;
271
- var _message = 'Warning: ' + format.replace(/%s/g, function () {
235
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
272
236
  return args[argIndex++];
273
237
  });
274
- throw new Error(_message);
238
+ throw new Error(message);
275
239
  } catch (x) {}
276
240
  };
277
241
  }
@@ -485,6 +449,17 @@ function createRef() {
485
449
  return refObject;
486
450
  }
487
451
 
452
+ /**
453
+ * Keeps track of the current dispatcher.
454
+ */
455
+ var ReactCurrentDispatcher = {
456
+ /**
457
+ * @internal
458
+ * @type {ReactComponent}
459
+ */
460
+ current: null
461
+ };
462
+
488
463
  /**
489
464
  * Keeps track of the current owner.
490
465
  *
@@ -496,8 +471,7 @@ var ReactCurrentOwner = {
496
471
  * @internal
497
472
  * @type {ReactComponent}
498
473
  */
499
- current: null,
500
- currentDispatcher: null
474
+ current: null
501
475
  };
502
476
 
503
477
  var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
@@ -628,6 +602,7 @@ function setCurrentlyValidatingElement(element) {
628
602
  }
629
603
 
630
604
  var ReactSharedInternals = {
605
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
631
606
  ReactCurrentOwner: ReactCurrentOwner,
632
607
  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
633
608
  assign: _assign
@@ -1321,6 +1296,9 @@ function createContext(defaultValue, calculateChangedBits) {
1321
1296
  // Secondary renderers store their context values on separate fields.
1322
1297
  _currentValue: defaultValue,
1323
1298
  _currentValue2: defaultValue,
1299
+ // Used to track how many concurrent renderers this context currently
1300
+ // supports within in a single renderer. Such as parallel server rendering.
1301
+ _threadCount: 0,
1324
1302
  // These are circular
1325
1303
  Provider: null,
1326
1304
  Consumer: null
@@ -1373,6 +1351,14 @@ function createContext(defaultValue, calculateChangedBits) {
1373
1351
  context._currentValue2 = _currentValue2;
1374
1352
  }
1375
1353
  },
1354
+ _threadCount: {
1355
+ get: function () {
1356
+ return context._threadCount;
1357
+ },
1358
+ set: function (_threadCount) {
1359
+ context._threadCount = _threadCount;
1360
+ }
1361
+ },
1376
1362
  Consumer: {
1377
1363
  get: function () {
1378
1364
  if (!hasWarnedAboutUsingNestedContextConsumers) {
@@ -1396,18 +1382,58 @@ function createContext(defaultValue, calculateChangedBits) {
1396
1382
  }
1397
1383
 
1398
1384
  function lazy(ctor) {
1399
- return {
1385
+ var lazyType = {
1400
1386
  $$typeof: REACT_LAZY_TYPE,
1401
1387
  _ctor: ctor,
1402
1388
  // React uses these fields to store the result.
1403
1389
  _status: -1,
1404
1390
  _result: null
1405
1391
  };
1392
+
1393
+ {
1394
+ // In production, this would just set it on the object.
1395
+ var defaultProps = void 0;
1396
+ var propTypes = void 0;
1397
+ Object.defineProperties(lazyType, {
1398
+ defaultProps: {
1399
+ configurable: true,
1400
+ get: function () {
1401
+ return defaultProps;
1402
+ },
1403
+ set: function (newDefaultProps) {
1404
+ warning$1(false, '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.');
1405
+ defaultProps = newDefaultProps;
1406
+ // Match production behavior more closely:
1407
+ Object.defineProperty(lazyType, 'defaultProps', {
1408
+ enumerable: true
1409
+ });
1410
+ }
1411
+ },
1412
+ propTypes: {
1413
+ configurable: true,
1414
+ get: function () {
1415
+ return propTypes;
1416
+ },
1417
+ set: function (newPropTypes) {
1418
+ warning$1(false, '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.');
1419
+ propTypes = newPropTypes;
1420
+ // Match production behavior more closely:
1421
+ Object.defineProperty(lazyType, 'propTypes', {
1422
+ enumerable: true
1423
+ });
1424
+ }
1425
+ }
1426
+ });
1427
+ }
1428
+
1429
+ return lazyType;
1406
1430
  }
1407
1431
 
1408
1432
  function forwardRef(render) {
1409
1433
  {
1410
- if (typeof render !== 'function') {
1434
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1435
+ warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1436
+ } else if (typeof render !== 'function') {
1411
1437
  warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1412
1438
  } else {
1413
1439
  !(
@@ -1446,7 +1472,7 @@ function memo(type, compare) {
1446
1472
  }
1447
1473
 
1448
1474
  function resolveDispatcher() {
1449
- var dispatcher = ReactCurrentOwner.currentDispatcher;
1475
+ var dispatcher = ReactCurrentDispatcher.current;
1450
1476
  !(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
1451
1477
  return dispatcher;
1452
1478
  }
@@ -1489,11 +1515,6 @@ function useEffect(create, inputs) {
1489
1515
  return dispatcher.useEffect(create, inputs);
1490
1516
  }
1491
1517
 
1492
- function useMutationEffect(create, inputs) {
1493
- var dispatcher = resolveDispatcher();
1494
- return dispatcher.useMutationEffect(create, inputs);
1495
- }
1496
-
1497
1518
  function useLayoutEffect(create, inputs) {
1498
1519
  var dispatcher = resolveDispatcher();
1499
1520
  return dispatcher.useLayoutEffect(create, inputs);
@@ -1600,7 +1621,7 @@ function validateExplicitKey(element, parentType) {
1600
1621
 
1601
1622
  setCurrentlyValidatingElement(element);
1602
1623
  {
1603
- warning$1(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
1624
+ warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
1604
1625
  }
1605
1626
  setCurrentlyValidatingElement(null);
1606
1627
  }
@@ -1656,16 +1677,17 @@ function validateChildKeys(node, parentType) {
1656
1677
  */
1657
1678
  function validatePropTypes(element) {
1658
1679
  var type = element.type;
1659
- var name = void 0,
1660
- propTypes = void 0;
1680
+ if (type === null || type === undefined || typeof type === 'string') {
1681
+ return;
1682
+ }
1683
+ var name = getComponentName(type);
1684
+ var propTypes = void 0;
1661
1685
  if (typeof type === 'function') {
1662
- // Class or function component
1663
- name = type.displayName || type.name;
1664
1686
  propTypes = type.propTypes;
1665
- } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
1666
- // ForwardRef
1667
- var functionName = type.render.displayName || type.render.name || '';
1668
- name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
1687
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
1688
+ // Note: Memo only checks outer props here.
1689
+ // Inner props are checked in the reconciler.
1690
+ type.$$typeof === REACT_MEMO_TYPE)) {
1669
1691
  propTypes = type.propTypes;
1670
1692
  } else {
1671
1693
  return;
@@ -1825,15 +1847,22 @@ var React = {
1825
1847
 
1826
1848
  version: ReactVersion,
1827
1849
 
1850
+ unstable_ConcurrentMode: REACT_CONCURRENT_MODE_TYPE,
1851
+ unstable_Profiler: REACT_PROFILER_TYPE,
1852
+
1828
1853
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
1829
1854
  };
1830
1855
 
1856
+ // Note: some APIs are added with feature flags.
1857
+ // Make sure that stable builds for open source
1858
+ // don't modify the React object to avoid deopts.
1859
+ // Also let's not expose their names in stable builds.
1860
+
1831
1861
  if (enableStableConcurrentModeAPIs) {
1832
1862
  React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1833
1863
  React.Profiler = REACT_PROFILER_TYPE;
1834
- } else {
1835
- React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1836
- React.unstable_Profiler = REACT_PROFILER_TYPE;
1864
+ React.unstable_ConcurrentMode = undefined;
1865
+ React.unstable_Profiler = undefined;
1837
1866
  }
1838
1867
 
1839
1868
  if (enableHooks) {
@@ -1843,7 +1872,6 @@ if (enableHooks) {
1843
1872
  React.useImperativeMethods = useImperativeMethods;
1844
1873
  React.useLayoutEffect = useLayoutEffect;
1845
1874
  React.useMemo = useMemo;
1846
- React.useMutationEffect = useMutationEffect;
1847
1875
  React.useReducer = useReducer;
1848
1876
  React.useRef = useRef;
1849
1877
  React.useState = useState;
@@ -1,4 +1,4 @@
1
- /** @license React v16.7.0-alpha.0
1
+ /** @license React v16.8.0-alpha.0
2
2
  * react.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -7,19 +7,19 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
 
10
- 'use strict';var k=require("object-assign"),l="function"===typeof Symbol&&Symbol.for,p=l?Symbol.for("react.element"):60103,q=l?Symbol.for("react.portal"):60106,r=l?Symbol.for("react.fragment"):60107,t=l?Symbol.for("react.strict_mode"):60108,u=l?Symbol.for("react.profiler"):60114,v=l?Symbol.for("react.provider"):60109,w=l?Symbol.for("react.context"):60110,x=l?Symbol.for("react.concurrent_mode"):60111,y=l?Symbol.for("react.forward_ref"):60112,z=l?Symbol.for("react.suspense"):60113,A=l?Symbol.for("react.memo"):
11
- 60115,aa=l?Symbol.for("react.lazy"):60116,B="function"===typeof Symbol&&Symbol.iterator;function ba(a,b,d,c,e,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[d,c,e,g,h,f],n=0;a=Error(b.replace(/%s/g,function(){return m[n++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
12
- function C(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);ba(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};
13
- function F(a,b,d){this.props=a;this.context=b;this.refs=E;this.updater=d||D}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?C("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function G(){}G.prototype=F.prototype;function H(a,b,d){this.props=a;this.context=b;this.refs=E;this.updater=d||D}var I=H.prototype=new G;
14
- I.constructor=H;k(I,F.prototype);I.isPureReactComponent=!0;var J={current:null,currentDispatcher:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
15
- function M(a,b,d){var c=void 0,e={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var m=Array(f),n=0;n<f;n++)m[n]=arguments[n+2];e.children=m}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:e,_owner:J.current}}
16
- function ca(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}}
10
+ 'use strict';var h=require("object-assign"),l="function"===typeof Symbol&&Symbol.for,p=l?Symbol.for("react.element"):60103,q=l?Symbol.for("react.portal"):60106,r=l?Symbol.for("react.fragment"):60107,t=l?Symbol.for("react.strict_mode"):60108,u=l?Symbol.for("react.profiler"):60114,v=l?Symbol.for("react.provider"):60109,w=l?Symbol.for("react.context"):60110,x=l?Symbol.for("react.concurrent_mode"):60111,y=l?Symbol.for("react.forward_ref"):60112,z=l?Symbol.for("react.suspense"):60113,aa=l?Symbol.for("react.memo"):
11
+ 60115,ba=l?Symbol.for("react.lazy"):60116,A="function"===typeof Symbol&&Symbol.iterator;function ca(a,b,d,c,e,g,k,f){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[d,c,e,g,k,f],n=0;a=Error(b.replace(/%s/g,function(){return m[n++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
12
+ function B(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);ca(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};
13
+ function E(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?B("85"):void 0;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,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}var H=G.prototype=new F;
14
+ H.constructor=G;h(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
15
+ function M(a,b,d){var c=void 0,e={},g=null,k=null;if(null!=b)for(c in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var m=Array(f),n=0;n<f;n++)m[n]=arguments[n+2];e.children=m}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:k,props:e,_owner:J.current}}
16
+ function da(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}}
17
17
  function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}
18
- function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){e=a[h];var f=b+T(e,h);g+=S(e,f,d,c)}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),h=
19
- 0;!(e=a.next()).done;)e=e.value,f=b+T(e,h++),g+=S(e,f,d,c);else"object"===e&&(d=""+a,C("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function U(a,b,d){return null==a?0:S(a,"",b,d)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function da(a,b){a.func.call(a.context,b,a.count++)}
20
- function ea(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=ca(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function V(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,ea,b);R(b)}function W(){var a=J.currentDispatcher;null===a?C("298"):void 0;return a}
21
- var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];V(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,da,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:C("143");return a}},createRef:function(){return{current:null}},Component:F,PureComponent:H,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
22
- _currentValue:a,_currentValue2:a,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:aa,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:M,cloneElement:function(a,b,d){null===a||void 0===a?C("267",a):void 0;var c=void 0,e=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==
23
- b.ref&&(h=b.ref,f=J.current);void 0!==b.key&&(g=""+b.key);var m=void 0;a.type&&a.type.defaultProps&&(m=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==m?m[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){m=Array(c);for(var n=0;n<c;n++)m[n]=arguments[n+2];e.children=m}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.7.0-alpha.0",
24
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:J,assign:k}};X.ConcurrentMode=x;X.Profiler=u;X.useCallback=function(a,b){return W().useCallback(a,b)};X.useContext=function(a,b){return W().useContext(a,b)};X.useEffect=function(a,b){return W().useEffect(a,b)};X.useImperativeMethods=function(a,b,d){return W().useImperativeMethods(a,b,d)};X.useLayoutEffect=function(a,b){return W().useLayoutEffect(a,b)};X.useMemo=function(a,b){return W().useMemo(a,b)};
25
- X.useMutationEffect=function(a,b){return W().useMutationEffect(a,b)};X.useReducer=function(a,b,d){return W().useReducer(a,b,d)};X.useRef=function(a){return W().useRef(a)};X.useState=function(a){return W().useState(a)};var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
18
+ function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){e=a[k];var f=b+T(e,k);g+=S(e,f,d,c)}else if(null===a||"object"!==typeof a?f=null:(f=A&&a[A]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
19
+ 0;!(e=a.next()).done;)e=e.value,f=b+T(e,k++),g+=S(e,f,d,c);else"object"===e&&(d=""+a,B("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function U(a,b,d){return null==a?0:S(a,"",b,d)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ea(a,b){a.func.call(a.context,b,a.count++)}
20
+ function fa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=da(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function V(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,fa,b);R(b)}function W(){var a=I.current;null===a?B("298"):void 0;return a}
21
+ var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];V(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,ea,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B("143");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
22
+ _currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:ba,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:aa,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:M,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=h({},a.props),g=a.key,k=a.ref,f=a._owner;
23
+ if(null!=b){void 0!==b.ref&&(k=b.ref,f=J.current);void 0!==b.key&&(g=""+b.key);var m=void 0;a.type&&a.type.defaultProps&&(m=a.type.defaultProps);for(c in b)K.call(b,c)&&!L.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==m?m[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){m=Array(c);for(var n=0;n<c;n++)m[n]=arguments[n+2];e.children=m}return{$$typeof:p,type:a.type,key:g,ref:k,props:e,_owner:f}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.8.0-alpha.0",
24
+ unstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:I,ReactCurrentOwner:J,assign:h}};X.ConcurrentMode=x;X.Profiler=u;X.unstable_ConcurrentMode=void 0;X.unstable_Profiler=void 0;X.useCallback=function(a,b){return W().useCallback(a,b)};X.useContext=function(a,b){return W().useContext(a,b)};X.useEffect=function(a,b){return W().useEffect(a,b)};X.useImperativeMethods=function(a,b,d){return W().useImperativeMethods(a,b,d)};
25
+ X.useLayoutEffect=function(a,b){return W().useLayoutEffect(a,b)};X.useMemo=function(a,b){return W().useMemo(a,b)};X.useReducer=function(a,b,d){return W().useReducer(a,b,d)};X.useRef=function(a){return W().useRef(a)};X.useState=function(a){return W().useState(a)};var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
package/package.json CHANGED
@@ -1,34 +1,66 @@
1
1
  {
2
- "name": "react",
3
- "description": "React is a JavaScript library for building user interfaces.",
4
- "keywords": [
5
- "react"
2
+ "_from": "react@0.0.0-f22621f88",
3
+ "_id": "react@0.0.0-f22621f88",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-AFOkK6cNns4Vdrq5YB0cRPLslzym5Y2iLL5bPWz2s48O7cSrHIfhZJHL8n9GhkaTYil6enMt03bSJaMrlOLfzw==",
6
+ "_location": "/react",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "version",
10
+ "registry": true,
11
+ "raw": "react@0.0.0-f22621f88",
12
+ "name": "react",
13
+ "escapedName": "react",
14
+ "rawSpec": "0.0.0-f22621f88",
15
+ "saveSpec": null,
16
+ "fetchSpec": "0.0.0-f22621f88"
17
+ },
18
+ "_requiredBy": [
19
+ "#USER",
20
+ "/"
6
21
  ],
7
- "version": "16.7.0-alpha.0",
8
- "homepage": "https://reactjs.org/",
9
- "bugs": "https://github.com/facebook/react/issues",
10
- "license": "MIT",
22
+ "_resolved": "https://registry.npmjs.org/react/-/react-0.0.0-f22621f88.tgz",
23
+ "_shasum": "f69c6e51546bb86f79c0424010e86273a70a972c",
24
+ "_spec": "react@0.0.0-f22621f88",
25
+ "_where": "/Users/gaearon/p/react/build/node_modules",
26
+ "browserify": {
27
+ "transform": [
28
+ "loose-envify"
29
+ ]
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/facebook/react/issues"
33
+ },
34
+ "bundleDependencies": false,
35
+ "dependencies": {
36
+ "loose-envify": "^1.1.0",
37
+ "object-assign": "^4.1.1",
38
+ "prop-types": "^15.6.2",
39
+ "scheduler": "^0.13.0-alpha.0"
40
+ },
41
+ "deprecated": false,
42
+ "description": "React is a JavaScript library for building user interfaces.",
43
+ "engines": {
44
+ "node": ">=0.10.0"
45
+ },
11
46
  "files": [
12
47
  "LICENSE",
13
48
  "README.md",
49
+ "build-info.json",
14
50
  "index.js",
15
51
  "cjs/",
16
52
  "umd/"
17
53
  ],
54
+ "homepage": "https://reactjs.org/",
55
+ "keywords": [
56
+ "react"
57
+ ],
58
+ "license": "MIT",
18
59
  "main": "index.js",
19
- "repository": "facebook/react",
20
- "engines": {
21
- "node": ">=0.10.0"
22
- },
23
- "dependencies": {
24
- "loose-envify": "^1.1.0",
25
- "object-assign": "^4.1.1",
26
- "prop-types": "^15.6.2",
27
- "scheduler": "^0.11.0-alpha.0"
60
+ "name": "react",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/facebook/react.git"
28
64
  },
29
- "browserify": {
30
- "transform": [
31
- "loose-envify"
32
- ]
33
- }
65
+ "version": "16.8.0-alpha.0"
34
66
  }