react 16.1.0-beta.1 → 16.1.0-rc
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.
- package/cjs/react.development.js +7 -132
- package/cjs/react.production.min.js +22 -23
- package/package.json +1 -1
- package/umd/react.development.js +6 -127
- package/umd/react.production.min.js +21 -22
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.1.0-
|
|
1
|
+
/** @license React v16.1.0-rc
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';
|
|
10
9
|
|
|
10
|
+
'use strict';
|
|
11
11
|
|
|
12
12
|
if (process.env.NODE_ENV !== "production") {
|
|
13
|
-
(function() {
|
|
14
|
-
|
|
13
|
+
(function() {
|
|
15
14
|
'use strict';
|
|
16
15
|
|
|
17
16
|
var _assign = require('object-assign');
|
|
@@ -21,27 +20,9 @@ var warning = require('fbjs/lib/warning');
|
|
|
21
20
|
var emptyFunction = require('fbjs/lib/emptyFunction');
|
|
22
21
|
var checkPropTypes = require('prop-types/checkPropTypes');
|
|
23
22
|
|
|
24
|
-
/**
|
|
25
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
23
|
// TODO: this is special because it gets imported during build.
|
|
34
24
|
|
|
35
|
-
var ReactVersion = '16.1.0-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
25
|
+
var ReactVersion = '16.1.0-rc';
|
|
45
26
|
|
|
46
27
|
/**
|
|
47
28
|
* WARNING: DO NOT manually require this module.
|
|
@@ -50,17 +31,6 @@ var ReactVersion = '16.1.0-beta.1';
|
|
|
50
31
|
* It always throws.
|
|
51
32
|
*/
|
|
52
33
|
|
|
53
|
-
/**
|
|
54
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
34
|
// Exports React.Fragment
|
|
65
35
|
var enableReactFragment = false;
|
|
66
36
|
// Exports ReactDOM.createRoot
|
|
@@ -76,13 +46,6 @@ var enableReactFragment = false;
|
|
|
76
46
|
|
|
77
47
|
// Only used in www builds.
|
|
78
48
|
|
|
79
|
-
/**
|
|
80
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the MIT license found in the
|
|
83
|
-
* LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/
|
|
85
|
-
|
|
86
49
|
/**
|
|
87
50
|
* Forked from fbjs/warning:
|
|
88
51
|
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
@@ -136,13 +99,6 @@ var lowPriorityWarning = function () {};
|
|
|
136
99
|
|
|
137
100
|
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
138
101
|
|
|
139
|
-
/**
|
|
140
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the MIT license found in the
|
|
143
|
-
* LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
102
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
147
103
|
|
|
148
104
|
function warnNoop(publicInstance, callerName) {
|
|
@@ -226,13 +182,6 @@ var ReactNoopUpdateQueue = {
|
|
|
226
182
|
}
|
|
227
183
|
};
|
|
228
184
|
|
|
229
|
-
/**
|
|
230
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the MIT license found in the
|
|
233
|
-
* LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/
|
|
235
|
-
|
|
236
185
|
/**
|
|
237
186
|
* Base class helpers for the updating state of a component.
|
|
238
187
|
*/
|
|
@@ -372,21 +321,7 @@ var ReactCurrentOwner = {
|
|
|
372
321
|
* @type {ReactComponent}
|
|
373
322
|
*/
|
|
374
323
|
current: null
|
|
375
|
-
};
|
|
376
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
377
|
-
*
|
|
378
|
-
* This source code is licensed under the MIT license found in the
|
|
379
|
-
* LICENSE file in the root directory of this source tree.
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*/
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the MIT license found in the
|
|
388
|
-
* LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/
|
|
324
|
+
};
|
|
390
325
|
|
|
391
326
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
392
327
|
|
|
@@ -697,15 +632,6 @@ function isValidElement(object) {
|
|
|
697
632
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE$1;
|
|
698
633
|
}
|
|
699
634
|
|
|
700
|
-
/**
|
|
701
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
702
|
-
*
|
|
703
|
-
* This source code is licensed under the MIT license found in the
|
|
704
|
-
* LICENSE file in the root directory of this source tree.
|
|
705
|
-
*
|
|
706
|
-
*
|
|
707
|
-
*/
|
|
708
|
-
|
|
709
635
|
var ReactDebugCurrentFrame = {};
|
|
710
636
|
|
|
711
637
|
{
|
|
@@ -721,13 +647,6 @@ var ReactDebugCurrentFrame = {};
|
|
|
721
647
|
};
|
|
722
648
|
}
|
|
723
649
|
|
|
724
|
-
/**
|
|
725
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
726
|
-
*
|
|
727
|
-
* This source code is licensed under the MIT license found in the
|
|
728
|
-
* LICENSE file in the root directory of this source tree.
|
|
729
|
-
*/
|
|
730
|
-
|
|
731
650
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
732
651
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
733
652
|
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
@@ -1038,15 +957,6 @@ function onlyChild(children) {
|
|
|
1038
957
|
return children;
|
|
1039
958
|
}
|
|
1040
959
|
|
|
1041
|
-
/**
|
|
1042
|
-
* Copyright (c) 2016-present, Facebook, Inc.
|
|
1043
|
-
*
|
|
1044
|
-
* This source code is licensed under the MIT license found in the
|
|
1045
|
-
* LICENSE file in the root directory of this source tree.
|
|
1046
|
-
*
|
|
1047
|
-
*
|
|
1048
|
-
*/
|
|
1049
|
-
|
|
1050
960
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1051
961
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1052
962
|
};
|
|
@@ -1061,21 +971,7 @@ function getComponentName(fiber) {
|
|
|
1061
971
|
return type.displayName || type.name;
|
|
1062
972
|
}
|
|
1063
973
|
return null;
|
|
1064
|
-
}
|
|
1065
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1066
|
-
*
|
|
1067
|
-
* This source code is licensed under the MIT license found in the
|
|
1068
|
-
* LICENSE file in the root directory of this source tree.
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
*/
|
|
1072
|
-
|
|
1073
|
-
/**
|
|
1074
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1075
|
-
*
|
|
1076
|
-
* This source code is licensed under the MIT license found in the
|
|
1077
|
-
* LICENSE file in the root directory of this source tree.
|
|
1078
|
-
*/
|
|
974
|
+
}
|
|
1079
975
|
|
|
1080
976
|
/**
|
|
1081
977
|
* ReactElementValidator provides a wrapper around a element factory
|
|
@@ -1387,13 +1283,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
1387
1283
|
return newElement;
|
|
1388
1284
|
}
|
|
1389
1285
|
|
|
1390
|
-
/**
|
|
1391
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1392
|
-
*
|
|
1393
|
-
* This source code is licensed under the MIT license found in the
|
|
1394
|
-
* LICENSE file in the root directory of this source tree.
|
|
1395
|
-
*/
|
|
1396
|
-
|
|
1397
1286
|
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1398
1287
|
|
|
1399
1288
|
var React = {
|
|
@@ -1445,24 +1334,10 @@ var React$2 = Object.freeze({
|
|
|
1445
1334
|
|
|
1446
1335
|
var React$3 = ( React$2 && React ) || React$2;
|
|
1447
1336
|
|
|
1448
|
-
/**
|
|
1449
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1450
|
-
*
|
|
1451
|
-
* This source code is licensed under the MIT license found in the
|
|
1452
|
-
* LICENSE file in the root directory of this source tree.
|
|
1453
|
-
*
|
|
1454
|
-
*
|
|
1455
|
-
*/
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
1337
|
// TODO: decide on the top-level export form.
|
|
1462
1338
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1463
1339
|
var react = React$3['default'] ? React$3['default'] : React$3;
|
|
1464
1340
|
|
|
1465
1341
|
module.exports = react;
|
|
1466
|
-
|
|
1467
|
-
})();
|
|
1342
|
+
})();
|
|
1468
1343
|
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function t(a){
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
b)
|
|
22
|
-
|
|
23
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:B,assign:n}},U=Object.freeze({default:T}),V=U&&T||U;module.exports=V["default"]?V["default"]:V;
|
|
1
|
+
/** @license React v16.1.0-rc
|
|
2
|
+
* react.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
'use strict';var m=require("object-assign"),n=require("fbjs/lib/emptyObject"),p=require("fbjs/lib/emptyFunction");
|
|
10
|
+
function q(a){for(var b=arguments.length-1,e="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,d=0;d<b;d++)e+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
|
|
11
|
+
var r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function t(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}t.prototype.isReactComponent={};t.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};t.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
|
|
12
|
+
function u(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}function v(){}v.prototype=t.prototype;var w=u.prototype=new v;w.constructor=u;m(w,t.prototype);w.isPureReactComponent=!0;function x(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}var y=x.prototype=new v;y.constructor=x;m(y,t.prototype);y.unstable_isAsyncReactComponent=!0;y.render=function(){return this.props.children};
|
|
13
|
+
var z={current:null},A=Object.prototype.hasOwnProperty,B="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,C={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
|
+
function D(a,b,e){var d,c={},h=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(h=""+b.key),b)A.call(b,d)&&!C.hasOwnProperty(d)&&(c[d]=b[d]);var f=arguments.length-2;if(1===f)c.children=e;else if(1<f){for(var g=Array(f),l=0;l<f;l++)g[l]=arguments[l+2];c.children=g}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===c[d]&&(c[d]=f[d]);return{$$typeof:B,type:a,key:h,ref:k,props:c,_owner:z.current}}function E(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}
|
|
15
|
+
var F="function"===typeof Symbol&&Symbol.iterator,G="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106;function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var I=/\/+/g,J=[];
|
|
16
|
+
function K(a,b,e,d){if(J.length){var c=J.pop();c.result=a;c.keyPrefix=b;c.func=e;c.context=d;c.count=0;return c}return{result:a,keyPrefix:b,func:e,context:d,count:0}}function L(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>J.length&&J.push(a)}
|
|
17
|
+
function M(a,b,e,d){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;if(null===a||"string"===c||"number"===c||"object"===c&&a.$$typeof===G||"object"===c&&a.$$typeof===H)return e(d,a,""===b?"."+N(a,0):b),1;var h=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){c=a[k];var f=b+N(c,k);h+=M(c,f,e,d)}else if(f=F&&a[F]||a["@@iterator"],"function"===typeof f)for(a=f.call(a),k=0;!(c=a.next()).done;)c=c.value,f=b+N(c,k++),h+=M(c,f,e,d);else"object"===c&&(e=""+a,q("31","[object Object]"===
|
|
18
|
+
e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return h}function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function O(a,b){a.func.call(a.context,b,a.count++)}
|
|
19
|
+
function P(a,b,e){var d=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?Q(a,d,e,p.thatReturnsArgument):null!=a&&(E(a)&&(b=c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(I,"$\x26/")+"/")+e,a={$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),d.push(a))}function Q(a,b,e,d,c){var h="";null!=e&&(h=(""+e).replace(I,"$\x26/")+"/");b=K(b,h,d,c);null==a||M(a,"",P,b);L(b)}"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
|
|
20
|
+
var R={Children:{map:function(a,b,e){if(null==a)return a;var d=[];Q(a,d,null,b,e);return d},forEach:function(a,b,e){if(null==a)return a;b=K(null,null,b,e);null==a||M(a,"",O,b);L(b)},count:function(a){return null==a?0:M(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];Q(a,b,null,p.thatReturnsArgument);return b},only:function(a){E(a)?void 0:q("143");return a}},Component:t,PureComponent:u,unstable_AsyncComponent:x,createElement:D,cloneElement:function(a,b,e){var d=m({},a.props),c=a.key,h=a.ref,
|
|
21
|
+
k=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,k=z.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(g in b)A.call(b,g)&&!C.hasOwnProperty(g)&&(d[g]=void 0===b[g]&&void 0!==f?f[g]:b[g])}var g=arguments.length-2;if(1===g)d.children=e;else if(1<g){f=Array(g);for(var l=0;l<g;l++)f[l]=arguments[l+2];d.children=f}return{$$typeof:B,type:a.type,key:c,ref:h,props:d,_owner:k}},createFactory:function(a){var b=D.bind(null,a);b.type=a;return b},isValidElement:E,
|
|
22
|
+
version:"16.1.0-rc",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:z,assign:m}},S=Object.freeze({default:R}),T=S&&R||S;module.exports=T["default"]?T["default"]:T;
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.1.0-
|
|
1
|
+
/** @license React v16.1.0-rc
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
10
12
|
(function (global, factory) {
|
|
11
13
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
12
14
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -104,27 +106,9 @@ var objectAssign$1 = shouldUseNative() ? Object.assign : function (target, sourc
|
|
|
104
106
|
return to;
|
|
105
107
|
};
|
|
106
108
|
|
|
107
|
-
/**
|
|
108
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the MIT license found in the
|
|
111
|
-
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
109
|
// TODO: this is special because it gets imported during build.
|
|
117
110
|
|
|
118
|
-
var ReactVersion = '16.1.0-
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the MIT license found in the
|
|
124
|
-
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*/
|
|
111
|
+
var ReactVersion = '16.1.0-rc';
|
|
128
112
|
|
|
129
113
|
/**
|
|
130
114
|
* WARNING: DO NOT manually require this module.
|
|
@@ -187,17 +171,6 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
187
171
|
|
|
188
172
|
var invariant_1$1 = invariant;
|
|
189
173
|
|
|
190
|
-
/**
|
|
191
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the MIT license found in the
|
|
194
|
-
* LICENSE file in the root directory of this source tree.
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*/
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
174
|
// Exports React.Fragment
|
|
202
175
|
var enableReactFragment = false;
|
|
203
176
|
// Exports ReactDOM.createRoot
|
|
@@ -231,13 +204,6 @@ var emptyObject = {};
|
|
|
231
204
|
|
|
232
205
|
var emptyObject_1 = emptyObject;
|
|
233
206
|
|
|
234
|
-
/**
|
|
235
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the MIT license found in the
|
|
238
|
-
* LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/
|
|
240
|
-
|
|
241
207
|
/**
|
|
242
208
|
* Forked from fbjs/warning:
|
|
243
209
|
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
@@ -389,13 +355,6 @@ var warning = emptyFunction_1;
|
|
|
389
355
|
|
|
390
356
|
var warning_1$1 = warning;
|
|
391
357
|
|
|
392
|
-
/**
|
|
393
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
394
|
-
*
|
|
395
|
-
* This source code is licensed under the MIT license found in the
|
|
396
|
-
* LICENSE file in the root directory of this source tree.
|
|
397
|
-
*/
|
|
398
|
-
|
|
399
358
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
400
359
|
|
|
401
360
|
function warnNoop(publicInstance, callerName) {
|
|
@@ -479,13 +438,6 @@ var ReactNoopUpdateQueue = {
|
|
|
479
438
|
}
|
|
480
439
|
};
|
|
481
440
|
|
|
482
|
-
/**
|
|
483
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
484
|
-
*
|
|
485
|
-
* This source code is licensed under the MIT license found in the
|
|
486
|
-
* LICENSE file in the root directory of this source tree.
|
|
487
|
-
*/
|
|
488
|
-
|
|
489
441
|
/**
|
|
490
442
|
* Base class helpers for the updating state of a component.
|
|
491
443
|
*/
|
|
@@ -625,21 +577,7 @@ var ReactCurrentOwner = {
|
|
|
625
577
|
* @type {ReactComponent}
|
|
626
578
|
*/
|
|
627
579
|
current: null
|
|
628
|
-
};
|
|
629
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
630
|
-
*
|
|
631
|
-
* This source code is licensed under the MIT license found in the
|
|
632
|
-
* LICENSE file in the root directory of this source tree.
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
*/
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
639
|
-
*
|
|
640
|
-
* This source code is licensed under the MIT license found in the
|
|
641
|
-
* LICENSE file in the root directory of this source tree.
|
|
642
|
-
*/
|
|
580
|
+
};
|
|
643
581
|
|
|
644
582
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
645
583
|
|
|
@@ -950,15 +888,6 @@ function isValidElement(object) {
|
|
|
950
888
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE$1;
|
|
951
889
|
}
|
|
952
890
|
|
|
953
|
-
/**
|
|
954
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
955
|
-
*
|
|
956
|
-
* This source code is licensed under the MIT license found in the
|
|
957
|
-
* LICENSE file in the root directory of this source tree.
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
*/
|
|
961
|
-
|
|
962
891
|
var ReactDebugCurrentFrame = {};
|
|
963
892
|
|
|
964
893
|
{
|
|
@@ -974,13 +903,6 @@ var ReactDebugCurrentFrame = {};
|
|
|
974
903
|
};
|
|
975
904
|
}
|
|
976
905
|
|
|
977
|
-
/**
|
|
978
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
979
|
-
*
|
|
980
|
-
* This source code is licensed under the MIT license found in the
|
|
981
|
-
* LICENSE file in the root directory of this source tree.
|
|
982
|
-
*/
|
|
983
|
-
|
|
984
906
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
985
907
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
986
908
|
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
@@ -1291,15 +1213,6 @@ function onlyChild(children) {
|
|
|
1291
1213
|
return children;
|
|
1292
1214
|
}
|
|
1293
1215
|
|
|
1294
|
-
/**
|
|
1295
|
-
* Copyright (c) 2016-present, Facebook, Inc.
|
|
1296
|
-
*
|
|
1297
|
-
* This source code is licensed under the MIT license found in the
|
|
1298
|
-
* LICENSE file in the root directory of this source tree.
|
|
1299
|
-
*
|
|
1300
|
-
*
|
|
1301
|
-
*/
|
|
1302
|
-
|
|
1303
1216
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1304
1217
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1305
1218
|
};
|
|
@@ -1314,14 +1227,7 @@ function getComponentName(fiber) {
|
|
|
1314
1227
|
return type.displayName || type.name;
|
|
1315
1228
|
}
|
|
1316
1229
|
return null;
|
|
1317
|
-
}
|
|
1318
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1319
|
-
*
|
|
1320
|
-
* This source code is licensed under the MIT license found in the
|
|
1321
|
-
* LICENSE file in the root directory of this source tree.
|
|
1322
|
-
*
|
|
1323
|
-
*
|
|
1324
|
-
*/
|
|
1230
|
+
}
|
|
1325
1231
|
|
|
1326
1232
|
/**
|
|
1327
1233
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1396,13 +1302,6 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
1396
1302
|
|
|
1397
1303
|
var checkPropTypes_1$1 = checkPropTypes;
|
|
1398
1304
|
|
|
1399
|
-
/**
|
|
1400
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1401
|
-
*
|
|
1402
|
-
* This source code is licensed under the MIT license found in the
|
|
1403
|
-
* LICENSE file in the root directory of this source tree.
|
|
1404
|
-
*/
|
|
1405
|
-
|
|
1406
1305
|
/**
|
|
1407
1306
|
* ReactElementValidator provides a wrapper around a element factory
|
|
1408
1307
|
* which validates the props passed to the element. This is intended to be
|
|
@@ -1713,13 +1612,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
1713
1612
|
return newElement;
|
|
1714
1613
|
}
|
|
1715
1614
|
|
|
1716
|
-
/**
|
|
1717
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1718
|
-
*
|
|
1719
|
-
* This source code is licensed under the MIT license found in the
|
|
1720
|
-
* LICENSE file in the root directory of this source tree.
|
|
1721
|
-
*/
|
|
1722
|
-
|
|
1723
1615
|
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1724
1616
|
|
|
1725
1617
|
var React = {
|
|
@@ -1771,19 +1663,6 @@ var React$2 = Object.freeze({
|
|
|
1771
1663
|
|
|
1772
1664
|
var React$3 = ( React$2 && React ) || React$2;
|
|
1773
1665
|
|
|
1774
|
-
/**
|
|
1775
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1776
|
-
*
|
|
1777
|
-
* This source code is licensed under the MIT license found in the
|
|
1778
|
-
* LICENSE file in the root directory of this source tree.
|
|
1779
|
-
*
|
|
1780
|
-
*
|
|
1781
|
-
*/
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
1666
|
// TODO: decide on the top-level export form.
|
|
1788
1667
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1789
1668
|
var react = React$3['default'] ? React$3['default'] : React$3;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
b+
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var c=Object(a);for(var e,f=1;f<arguments.length;f++){var d=Object(arguments[f]);for(var
|
|
17
|
-
b,c,e){},enqueueSetState:function(a,b,c,e){}};n.prototype.isReactComponent={};n.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?
|
|
18
|
-
!0;d.render=function(){return this.props.children};var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
a);b.type=a;return b},isValidElement:B,version:"16.1.0-beta.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:F,assign:v}};var O=Object.freeze({default:d});d=O&&d||O;return d["default"]?d["default"]:d});
|
|
1
|
+
/** @license React v16.1.0-rc
|
|
2
|
+
* react.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
'use strict';(function(p,l){"object"===typeof exports&&"undefined"!==typeof module?module.exports=l():"function"===typeof define&&define.amd?define(l):p.React=l()})(this,function(){function p(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,e=0;e<b;e++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[e+1]);b=Error(c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");
|
|
10
|
+
b.name="Invariant Violation";b.framesToPop=1;throw b;}function l(a){return function(){return a}}function n(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function x(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function y(){}function z(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function F(a,b,c){var e,f={},d=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(d=""+b.key),b)G.call(b,e)&&!H.hasOwnProperty(e)&&(f[e]=b[e]);
|
|
11
|
+
var g=arguments.length-2;if(1===g)f.children=c;else if(1<g){for(var k=Array(g),m=0;m<g;m++)k[m]=arguments[m+2];f.children=k}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===f[e]&&(f[e]=g[e]);return{$$typeof:r,type:a,key:d,ref:h,props:f,_owner:A.current}}function B(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}function O(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function I(a,b,c,e){if(t.length){var f=t.pop();f.result=a;f.keyPrefix=
|
|
12
|
+
b;f.func=c;f.context=e;f.count=0;return f}return{result:a,keyPrefix:b,func:c,context:e,count:0}}function J(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>t.length&&t.push(a)}function q(a,b,c,e){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;if(null===a||"string"===f||"number"===f||"object"===f&&a.$$typeof===P||"object"===f&&a.$$typeof===Q)return c(e,a,""===b?"."+C(a,0):b),1;var d=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){f=a[h];var g=
|
|
13
|
+
b+C(f,h);d+=q(f,g,c,e)}else if(g=K&&a[K]||a["@@iterator"],"function"===typeof g)for(a=g.call(a),h=0;!(f=a.next()).done;)f=f.value,g=b+C(f,h++),d+=q(f,g,c,e);else"object"===f&&(c=""+a,p("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return d}function C(a,b){return"object"===typeof a&&null!==a&&null!=a.key?O(a.key):b.toString(36)}function R(a,b,c){a.func.call(a.context,b,a.count++)}function S(a,b,c){var e=a.result,f=a.keyPrefix;a=a.func.call(a.context,b,a.count++);
|
|
14
|
+
Array.isArray(a)?D(a,e,c,E.thatReturnsArgument):null!=a&&(B(a)&&(b=f+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(L,"$\x26/")+"/")+c,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),e.push(a))}function D(a,b,c,e,f){var d="";null!=c&&(d=(""+c).replace(L,"$\x26/")+"/");b=I(b,d,e,f);null==a||q(a,"",S,b);J(b)}var M=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,u=function(){try{if(!Object.assign)return!1;var a=new String("abc");
|
|
15
|
+
a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(e){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
16
|
+
var c=Object(a);for(var e,f=1;f<arguments.length;f++){var d=Object(arguments[f]);for(var h in d)T.call(d,h)&&(c[h]=d[h]);if(M){e=M(d);for(var g=0;g<e.length;g++)U.call(d,e[g])&&(c[e[g]]=d[e[g]])}}return c},v={},d=function(){};d.thatReturns=l;d.thatReturnsFalse=l(!1);d.thatReturnsTrue=l(!0);d.thatReturnsNull=l(null);d.thatReturnsThis=function(){return this};d.thatReturnsArgument=function(a){return a};var E=d,w={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,
|
|
17
|
+
b,c,e){},enqueueSetState:function(a,b,c,e){}};n.prototype.isReactComponent={};n.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?p("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};n.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};y.prototype=n.prototype;d=x.prototype=new y;d.constructor=x;u(d,n.prototype);d.isPureReactComponent=!0;d=z.prototype=new y;d.constructor=z;u(d,n.prototype);d.unstable_isAsyncReactComponent=
|
|
18
|
+
!0;d.render=function(){return this.props.children};var A={current:null},G=Object.prototype.hasOwnProperty,r="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H={key:!0,ref:!0,__self:!0,__source:!0},K="function"===typeof Symbol&&Symbol.iterator,P="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Q="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,L=/\/+/g,t=[];"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
|
|
19
|
+
d={Children:{map:function(a,b,c){if(null==a)return a;var e=[];D(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=I(null,null,b,c);null==a||q(a,"",R,b);J(b)},count:function(a,b){return null==a?0:q(a,"",E.thatReturnsNull,null)},toArray:function(a){var b=[];D(a,b,null,E.thatReturnsArgument);return b},only:function(a){B(a)?void 0:p("143");return a}},Component:n,PureComponent:x,unstable_AsyncComponent:z,createElement:F,cloneElement:function(a,b,c){var e=u({},a.props),d=a.key,l=a.ref,
|
|
20
|
+
h=a._owner;if(null!=b){void 0!==b.ref&&(l=b.ref,h=A.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(k in b)G.call(b,k)&&!H.hasOwnProperty(k)&&(e[k]=void 0===b[k]&&void 0!==g?g[k]:b[k])}var k=arguments.length-2;if(1===k)e.children=c;else if(1<k){g=Array(k);for(var m=0;m<k;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:r,type:a.type,key:d,ref:l,props:e,_owner:h}},createFactory:function(a){var b=F.bind(null,a);b.type=a;return b},isValidElement:B,
|
|
21
|
+
version:"16.1.0-rc",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:u}};var N=Object.freeze({default:d});d=N&&d||N;return d["default"]?d["default"]:d});
|