react 16.1.0-beta.1 → 16.2.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.
- package/cjs/react.development.js +67 -178
- package/cjs/react.production.min.js +20 -22
- package/package.json +1 -1
- package/umd/react.development.js +105 -214
- package/umd/react.production.min.js +21 -22
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.2.0
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,42 +6,49 @@
|
|
|
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
|
+
|
|
9
10
|
'use strict';
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
if (process.env.NODE_ENV !== "production") {
|
|
13
|
-
(function() {
|
|
14
13
|
|
|
14
|
+
if (process.env.NODE_ENV !== "production") {
|
|
15
|
+
(function() {
|
|
15
16
|
'use strict';
|
|
16
17
|
|
|
17
18
|
var _assign = require('object-assign');
|
|
18
|
-
var invariant = require('fbjs/lib/invariant');
|
|
19
19
|
var emptyObject = require('fbjs/lib/emptyObject');
|
|
20
|
+
var invariant = require('fbjs/lib/invariant');
|
|
20
21
|
var warning = require('fbjs/lib/warning');
|
|
21
22
|
var emptyFunction = require('fbjs/lib/emptyFunction');
|
|
22
23
|
var checkPropTypes = require('prop-types/checkPropTypes');
|
|
23
24
|
|
|
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
|
-
*/
|
|
25
|
+
// TODO: this is special because it gets imported during build.
|
|
30
26
|
|
|
27
|
+
var ReactVersion = '16.2.0';
|
|
31
28
|
|
|
29
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
30
|
+
// nor polyfill, then a plain number is used for performance.
|
|
31
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol['for']('react.element') : 0xeac7;
|
|
34
|
+
var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
|
|
35
|
+
var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
|
|
36
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
|
|
37
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
|
|
34
38
|
|
|
35
|
-
var
|
|
39
|
+
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
40
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
function getIteratorFn(maybeIterable) {
|
|
43
|
+
if (maybeIterable === null || typeof maybeIterable === 'undefined') {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
47
|
+
if (typeof maybeIterator === 'function') {
|
|
48
|
+
return maybeIterator;
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
45
52
|
|
|
46
53
|
/**
|
|
47
54
|
* WARNING: DO NOT manually require this module.
|
|
@@ -50,39 +57,6 @@ var ReactVersion = '16.1.0-beta.1';
|
|
|
50
57
|
* It always throws.
|
|
51
58
|
*/
|
|
52
59
|
|
|
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
|
-
// Exports React.Fragment
|
|
65
|
-
var enableReactFragment = false;
|
|
66
|
-
// Exports ReactDOM.createRoot
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// Mutating mode (React DOM, React ART, React Native):
|
|
71
|
-
|
|
72
|
-
// Experimental noop mode (currently unused):
|
|
73
|
-
|
|
74
|
-
// Experimental persistent mode (CS):
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// Only used in www builds.
|
|
78
|
-
|
|
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
60
|
/**
|
|
87
61
|
* Forked from fbjs/warning:
|
|
88
62
|
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
@@ -136,13 +110,6 @@ var lowPriorityWarning = function () {};
|
|
|
136
110
|
|
|
137
111
|
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
138
112
|
|
|
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
113
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
147
114
|
|
|
148
115
|
function warnNoop(publicInstance, callerName) {
|
|
@@ -226,13 +193,6 @@ var ReactNoopUpdateQueue = {
|
|
|
226
193
|
}
|
|
227
194
|
};
|
|
228
195
|
|
|
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
196
|
/**
|
|
237
197
|
* Base class helpers for the updating state of a component.
|
|
238
198
|
*/
|
|
@@ -372,28 +332,10 @@ var ReactCurrentOwner = {
|
|
|
372
332
|
* @type {ReactComponent}
|
|
373
333
|
*/
|
|
374
334
|
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
|
-
*/
|
|
335
|
+
};
|
|
390
336
|
|
|
391
337
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
392
338
|
|
|
393
|
-
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
394
|
-
// nor polyfill, then a plain number is used for performance.
|
|
395
|
-
var REACT_ELEMENT_TYPE$1 = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
|
|
396
|
-
|
|
397
339
|
var RESERVED_PROPS = {
|
|
398
340
|
key: true,
|
|
399
341
|
ref: true,
|
|
@@ -479,7 +421,7 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
479
421
|
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
480
422
|
var element = {
|
|
481
423
|
// This tag allow us to uniquely identify this as a React Element
|
|
482
|
-
$$typeof: REACT_ELEMENT_TYPE
|
|
424
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
483
425
|
|
|
484
426
|
// Built-in properties that belong on the element
|
|
485
427
|
type: type,
|
|
@@ -594,7 +536,7 @@ function createElement(type, config, children) {
|
|
|
594
536
|
}
|
|
595
537
|
{
|
|
596
538
|
if (key || ref) {
|
|
597
|
-
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE
|
|
539
|
+
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
|
|
598
540
|
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
599
541
|
if (key) {
|
|
600
542
|
defineKeyPropWarningGetter(props, displayName);
|
|
@@ -694,18 +636,9 @@ function cloneElement(element, config, children) {
|
|
|
694
636
|
* @final
|
|
695
637
|
*/
|
|
696
638
|
function isValidElement(object) {
|
|
697
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE
|
|
639
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
698
640
|
}
|
|
699
641
|
|
|
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
642
|
var ReactDebugCurrentFrame = {};
|
|
710
643
|
|
|
711
644
|
{
|
|
@@ -721,19 +654,6 @@ var ReactDebugCurrentFrame = {};
|
|
|
721
654
|
};
|
|
722
655
|
}
|
|
723
656
|
|
|
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
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
732
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
733
|
-
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
734
|
-
// nor polyfill, then a plain number is used for performance.
|
|
735
|
-
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
|
|
736
|
-
var REACT_PORTAL_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.portal') || 0xeaca;
|
|
737
657
|
var SEPARATOR = '.';
|
|
738
658
|
var SUBSEPARATOR = ':';
|
|
739
659
|
|
|
@@ -817,10 +737,28 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
817
737
|
children = null;
|
|
818
738
|
}
|
|
819
739
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
740
|
+
var invokeCallback = false;
|
|
741
|
+
|
|
742
|
+
if (children === null) {
|
|
743
|
+
invokeCallback = true;
|
|
744
|
+
} else {
|
|
745
|
+
switch (type) {
|
|
746
|
+
case 'string':
|
|
747
|
+
case 'number':
|
|
748
|
+
invokeCallback = true;
|
|
749
|
+
break;
|
|
750
|
+
case 'object':
|
|
751
|
+
switch (children.$$typeof) {
|
|
752
|
+
case REACT_ELEMENT_TYPE:
|
|
753
|
+
case REACT_CALL_TYPE:
|
|
754
|
+
case REACT_RETURN_TYPE:
|
|
755
|
+
case REACT_PORTAL_TYPE:
|
|
756
|
+
invokeCallback = true;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
if (invokeCallback) {
|
|
824
762
|
callback(traverseContext, children,
|
|
825
763
|
// If it's the only child, treat the name as if it was wrapped in an array
|
|
826
764
|
// so that it's consistent if the number of children grows.
|
|
@@ -840,7 +778,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
840
778
|
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
841
779
|
}
|
|
842
780
|
} else {
|
|
843
|
-
var iteratorFn =
|
|
781
|
+
var iteratorFn = getIteratorFn(children);
|
|
844
782
|
if (typeof iteratorFn === 'function') {
|
|
845
783
|
{
|
|
846
784
|
// Warn about using Maps as children
|
|
@@ -1038,15 +976,6 @@ function onlyChild(children) {
|
|
|
1038
976
|
return children;
|
|
1039
977
|
}
|
|
1040
978
|
|
|
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
979
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1051
980
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1052
981
|
};
|
|
@@ -1061,21 +990,7 @@ function getComponentName(fiber) {
|
|
|
1061
990
|
return type.displayName || type.name;
|
|
1062
991
|
}
|
|
1063
992
|
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
|
-
*/
|
|
993
|
+
}
|
|
1079
994
|
|
|
1080
995
|
/**
|
|
1081
996
|
* ReactElementValidator provides a wrapper around a element factory
|
|
@@ -1087,6 +1002,8 @@ function getComponentName(fiber) {
|
|
|
1087
1002
|
{
|
|
1088
1003
|
var currentlyValidatingElement = null;
|
|
1089
1004
|
|
|
1005
|
+
var propTypesMisspellWarningShown = false;
|
|
1006
|
+
|
|
1090
1007
|
var getDisplayName = function (element) {
|
|
1091
1008
|
if (element == null) {
|
|
1092
1009
|
return '#empty';
|
|
@@ -1094,7 +1011,7 @@ function getComponentName(fiber) {
|
|
|
1094
1011
|
return '#text';
|
|
1095
1012
|
} else if (typeof element.type === 'string') {
|
|
1096
1013
|
return element.type;
|
|
1097
|
-
} else if (element.type === REACT_FRAGMENT_TYPE
|
|
1014
|
+
} else if (element.type === REACT_FRAGMENT_TYPE) {
|
|
1098
1015
|
return 'React.Fragment';
|
|
1099
1016
|
} else {
|
|
1100
1017
|
return element.type.displayName || element.type.name || 'Unknown';
|
|
@@ -1112,14 +1029,9 @@ function getComponentName(fiber) {
|
|
|
1112
1029
|
return stack;
|
|
1113
1030
|
};
|
|
1114
1031
|
|
|
1115
|
-
var REACT_FRAGMENT_TYPE$1 = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1116
|
-
|
|
1117
1032
|
var VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
|
|
1118
1033
|
}
|
|
1119
1034
|
|
|
1120
|
-
var ITERATOR_SYMBOL$1 = typeof Symbol === 'function' && Symbol.iterator;
|
|
1121
|
-
var FAUX_ITERATOR_SYMBOL$1 = '@@iterator'; // Before Symbol spec.
|
|
1122
|
-
|
|
1123
1035
|
function getDeclarationErrorAddendum() {
|
|
1124
1036
|
if (ReactCurrentOwner.current) {
|
|
1125
1037
|
var name = getComponentName(ReactCurrentOwner.current);
|
|
@@ -1224,7 +1136,7 @@ function validateChildKeys(node, parentType) {
|
|
|
1224
1136
|
node._store.validated = true;
|
|
1225
1137
|
}
|
|
1226
1138
|
} else if (node) {
|
|
1227
|
-
var iteratorFn =
|
|
1139
|
+
var iteratorFn = getIteratorFn(node);
|
|
1228
1140
|
if (typeof iteratorFn === 'function') {
|
|
1229
1141
|
// Entry iterators used to provide implicit keys,
|
|
1230
1142
|
// but now we print a separate warning for them later.
|
|
@@ -1254,11 +1166,13 @@ function validatePropTypes(element) {
|
|
|
1254
1166
|
}
|
|
1255
1167
|
var name = componentClass.displayName || componentClass.name;
|
|
1256
1168
|
var propTypes = componentClass.propTypes;
|
|
1257
|
-
|
|
1258
1169
|
if (propTypes) {
|
|
1259
1170
|
currentlyValidatingElement = element;
|
|
1260
1171
|
checkPropTypes(propTypes, element.props, 'prop', name, getStackAddendum);
|
|
1261
1172
|
currentlyValidatingElement = null;
|
|
1173
|
+
} else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1174
|
+
propTypesMisspellWarningShown = true;
|
|
1175
|
+
warning(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
1262
1176
|
}
|
|
1263
1177
|
if (typeof componentClass.getDefaultProps === 'function') {
|
|
1264
1178
|
warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
@@ -1314,7 +1228,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1314
1228
|
if (!validType) {
|
|
1315
1229
|
var info = '';
|
|
1316
1230
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
1317
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
|
|
1231
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
1318
1232
|
}
|
|
1319
1233
|
|
|
1320
1234
|
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
@@ -1348,7 +1262,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1348
1262
|
}
|
|
1349
1263
|
}
|
|
1350
1264
|
|
|
1351
|
-
if (typeof type === 'symbol' && type === REACT_FRAGMENT_TYPE
|
|
1265
|
+
if (typeof type === 'symbol' && type === REACT_FRAGMENT_TYPE) {
|
|
1352
1266
|
validateFragmentProps(element);
|
|
1353
1267
|
} else {
|
|
1354
1268
|
validatePropTypes(element);
|
|
@@ -1387,15 +1301,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
1387
1301
|
return newElement;
|
|
1388
1302
|
}
|
|
1389
1303
|
|
|
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
|
-
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1398
|
-
|
|
1399
1304
|
var React = {
|
|
1400
1305
|
Children: {
|
|
1401
1306
|
map: mapChildren,
|
|
@@ -1409,6 +1314,8 @@ var React = {
|
|
|
1409
1314
|
PureComponent: PureComponent,
|
|
1410
1315
|
unstable_AsyncComponent: AsyncComponent,
|
|
1411
1316
|
|
|
1317
|
+
Fragment: REACT_FRAGMENT_TYPE,
|
|
1318
|
+
|
|
1412
1319
|
createElement: createElementWithValidation,
|
|
1413
1320
|
cloneElement: cloneElementWithValidation,
|
|
1414
1321
|
createFactory: createFactoryWithValidation,
|
|
@@ -1423,10 +1330,6 @@ var React = {
|
|
|
1423
1330
|
}
|
|
1424
1331
|
};
|
|
1425
1332
|
|
|
1426
|
-
if (enableReactFragment) {
|
|
1427
|
-
React.Fragment = REACT_FRAGMENT_TYPE;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
1333
|
{
|
|
1431
1334
|
_assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
1432
1335
|
// These should not be included in production.
|
|
@@ -1445,24 +1348,10 @@ var React$2 = Object.freeze({
|
|
|
1445
1348
|
|
|
1446
1349
|
var React$3 = ( React$2 && React ) || React$2;
|
|
1447
1350
|
|
|
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
1351
|
// TODO: decide on the top-level export form.
|
|
1462
1352
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1463
1353
|
var react = React$3['default'] ? React$3['default'] : React$3;
|
|
1464
1354
|
|
|
1465
1355
|
module.exports = react;
|
|
1466
|
-
|
|
1467
|
-
})();
|
|
1356
|
+
})();
|
|
1468
1357
|
}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/** @license React v16.2.0
|
|
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
|
+
*/
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
function O(a,b,d,e){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;if(null===a||"string"===c||"number"===c||"object"===c&&a.$$typeof===I||"object"===c&&a.$$typeof===J)return d(e,a,""===b?"."+P(a,0):b),1;var f=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){c=a[h];var l=b+P(c,h);f+=O(c,l,d,e)}else if(l=H&&a[H]||a["@@iterator"],"function"===typeof l)for(a=l.call(a),h=0;!(c=a.next()).done;)c=c.value,l=b+P(c,h++),f+=O(c,l,d,e);else"object"===c&&(d=""+a,t("31","[object Object]"===
|
|
18
|
-
d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return f}function P(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function Q(a,b){a.func.call(a.context,b,a.count++)}
|
|
19
|
-
function R(a,b,d){var e=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?S(a,e,d,r.thatReturnsArgument):null!=a&&(G(a)&&(b=c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(K,"$\x26/")+"/")+d,a=F(a.type,b,a.ref,a._self,a._source,a._owner,a.props)),e.push(a))}function S(a,b,d,e,c){var f="";null!=d&&(f=(""+d).replace(K,"$\x26/")+"/");b=M(b,f,e,c);null==a||O(a,"",R,b);N(b)}"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
|
|
20
|
-
var T={Children:{map:function(a,b,d){if(null==a)return a;var e=[];S(a,e,null,b,d);return e},forEach:function(a,b,d){if(null==a)return a;b=M(null,null,b,d);null==a||O(a,"",Q,b);N(b)},count:function(a){return null==a?0:O(a,"",r.thatReturnsNull,null)},toArray:function(a){var b=[];S(a,b,null,r.thatReturnsArgument);return b},only:function(a){G(a)?void 0:t("143");return a}},Component:v,PureComponent:w,unstable_AsyncComponent:z,createElement:function(a,b,d){var e,c={},f=null,h=null,l=null,q=null;if(null!=
|
|
21
|
-
b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(f=""+b.key),l=void 0===b.__self?null:b.__self,q=void 0===b.__source?null:b.__source,b)C.call(b,e)&&!E.hasOwnProperty(e)&&(c[e]=b[e]);var k=arguments.length-2;if(1===k)c.children=d;else if(1<k){for(var g=Array(k),m=0;m<k;m++)g[m]=arguments[m+2];c.children=g}if(a&&a.defaultProps)for(e in k=a.defaultProps,k)void 0===c[e]&&(c[e]=k[e]);return F(a,f,h,l,q,B.current,c)},cloneElement:function(a,b,d){var e=n({},a.props),c=a.key,f=a.ref,h=a._self,l=a._source,
|
|
22
|
-
q=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,q=B.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(g in b)C.call(b,g)&&!E.hasOwnProperty(g)&&(e[g]=void 0===b[g]&&void 0!==k?k[g]:b[g])}var g=arguments.length-2;if(1===g)e.children=d;else if(1<g){k=Array(g);for(var m=0;m<g;m++)k[m]=arguments[m+2];e.children=k}return F(a.type,c,f,h,l,q,e)},createFactory:function(a){var b=F.createElement.bind(null,a);b.type=a;return b},isValidElement:G,version:"16.1.0-beta.1",
|
|
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;
|
|
10
|
+
'use strict';var m=require("object-assign"),n=require("fbjs/lib/emptyObject"),p=require("fbjs/lib/emptyFunction"),q="function"===typeof Symbol&&Symbol["for"],r=q?Symbol["for"]("react.element"):60103,t=q?Symbol["for"]("react.call"):60104,u=q?Symbol["for"]("react.return"):60105,v=q?Symbol["for"]("react.portal"):60106,w=q?Symbol["for"]("react.fragment"):60107,x="function"===typeof Symbol&&Symbol.iterator;
|
|
11
|
+
function y(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,c=0;c<b;c++)e+="\x26args[]\x3d"+encodeURIComponent(arguments[c+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;}
|
|
12
|
+
var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function A(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||z}A.prototype.isReactComponent={};A.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?y("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};A.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
|
|
13
|
+
function B(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||z}function C(){}C.prototype=A.prototype;var D=B.prototype=new C;D.constructor=B;m(D,A.prototype);D.isPureReactComponent=!0;function E(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||z}var F=E.prototype=new C;F.constructor=E;m(F,A.prototype);F.unstable_isAsyncReactComponent=!0;F.render=function(){return this.props.children};var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
|
+
function J(a,b,e){var c,d={},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)H.call(b,c)&&!I.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var h=Array(f),l=0;l<f;l++)h[l]=arguments[l+2];d.children=h}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:r,type:a,key:g,ref:k,props:d,_owner:G.current}}function K(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}
|
|
15
|
+
function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var L=/\/+/g,M=[];function N(a,b,e,c){if(M.length){var d=M.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}function O(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>M.length&&M.push(a)}
|
|
16
|
+
function P(a,b,e,c){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case r:case t:case u:case v:g=!0}}if(g)return e(c,a,""===b?"."+Q(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+Q(d,k);g+=P(d,f,e,c)}else if(null===a||"undefined"===typeof a?f=null:(f=x&&a[x]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=
|
|
17
|
+
f.call(a),k=0;!(d=a.next()).done;)d=d.value,f=b+Q(d,k++),g+=P(d,f,e,c);else"object"===d&&(e=""+a,y("31","[object Object]"===e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return g}function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function R(a,b){a.func.call(a.context,b,a.count++)}
|
|
18
|
+
function S(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?T(a,c,e,p.thatReturnsArgument):null!=a&&(K(a)&&(b=d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(L,"$\x26/")+"/")+e,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function T(a,b,e,c,d){var g="";null!=e&&(g=(""+e).replace(L,"$\x26/")+"/");b=N(b,g,c,d);null==a||P(a,"",S,b);O(b)}
|
|
19
|
+
var U={Children:{map:function(a,b,e){if(null==a)return a;var c=[];T(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=N(null,null,b,e);null==a||P(a,"",R,b);O(b)},count:function(a){return null==a?0:P(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];T(a,b,null,p.thatReturnsArgument);return b},only:function(a){K(a)?void 0:y("143");return a}},Component:A,PureComponent:B,unstable_AsyncComponent:E,Fragment:w,createElement:J,cloneElement:function(a,b,e){var c=m({},a.props),
|
|
20
|
+
d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)H.call(b,h)&&!I.hasOwnProperty(h)&&(c[h]=void 0===b[h]&&void 0!==f?f[h]:b[h])}var h=arguments.length-2;if(1===h)c.children=e;else if(1<h){f=Array(h);for(var l=0;l<h;l++)f[l]=arguments[l+2];c.children=f}return{$$typeof:r,type:a.type,key:d,ref:g,props:c,_owner:k}},createFactory:function(a){var b=J.bind(null,a);b.type=a;return b},
|
|
21
|
+
isValidElement:K,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:G,assign:m}},V=Object.freeze({default:U}),W=V&&U||V;module.exports=W["default"]?W["default"]:W;
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.2.0
|
|
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) :
|
|
@@ -77,7 +79,7 @@ function shouldUseNative() {
|
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
|
|
80
|
-
var objectAssign
|
|
82
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
81
83
|
var from;
|
|
82
84
|
var to = toObject(target);
|
|
83
85
|
var symbols;
|
|
@@ -104,18 +106,40 @@ var objectAssign$1 = shouldUseNative() ? Object.assign : function (target, sourc
|
|
|
104
106
|
return to;
|
|
105
107
|
};
|
|
106
108
|
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
*/
|
|
109
|
+
// TODO: this is special because it gets imported during build.
|
|
110
|
+
|
|
111
|
+
var ReactVersion = '16.2.0';
|
|
113
112
|
|
|
113
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
114
|
+
// nor polyfill, then a plain number is used for performance.
|
|
115
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol['for'];
|
|
114
116
|
|
|
117
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol['for']('react.element') : 0xeac7;
|
|
118
|
+
var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
|
|
119
|
+
var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
|
|
120
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
|
|
121
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
|
|
115
122
|
|
|
116
|
-
|
|
123
|
+
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
124
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
117
125
|
|
|
118
|
-
|
|
126
|
+
function getIteratorFn(maybeIterable) {
|
|
127
|
+
if (maybeIterable === null || typeof maybeIterable === 'undefined') {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
131
|
+
if (typeof maybeIterator === 'function') {
|
|
132
|
+
return maybeIterator;
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* WARNING: DO NOT manually require this module.
|
|
139
|
+
* This is a replacement for `invariant(...)` used by the error code system
|
|
140
|
+
* and will _only_ be required by the corresponding babel pass.
|
|
141
|
+
* It always throws.
|
|
142
|
+
*/
|
|
119
143
|
|
|
120
144
|
/**
|
|
121
145
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -123,15 +147,17 @@ var ReactVersion = '16.1.0-beta.1';
|
|
|
123
147
|
* This source code is licensed under the MIT license found in the
|
|
124
148
|
* LICENSE file in the root directory of this source tree.
|
|
125
149
|
*
|
|
126
|
-
*
|
|
127
150
|
*/
|
|
128
151
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
var emptyObject = {};
|
|
155
|
+
|
|
156
|
+
{
|
|
157
|
+
Object.freeze(emptyObject);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
var emptyObject_1 = emptyObject;
|
|
135
161
|
|
|
136
162
|
/**
|
|
137
163
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -185,58 +211,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
185
211
|
}
|
|
186
212
|
}
|
|
187
213
|
|
|
188
|
-
var invariant_1
|
|
189
|
-
|
|
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
|
-
// Exports React.Fragment
|
|
202
|
-
var enableReactFragment = false;
|
|
203
|
-
// Exports ReactDOM.createRoot
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
// Mutating mode (React DOM, React ART, React Native):
|
|
208
|
-
|
|
209
|
-
// Experimental noop mode (currently unused):
|
|
210
|
-
|
|
211
|
-
// Experimental persistent mode (CS):
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
// Only used in www builds.
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the MIT license found in the
|
|
220
|
-
* LICENSE file in the root directory of this source tree.
|
|
221
|
-
*
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
var emptyObject = {};
|
|
227
|
-
|
|
228
|
-
{
|
|
229
|
-
Object.freeze(emptyObject);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
var emptyObject_1 = emptyObject;
|
|
233
|
-
|
|
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
|
-
*/
|
|
214
|
+
var invariant_1 = invariant;
|
|
240
215
|
|
|
241
216
|
/**
|
|
242
217
|
* Forked from fbjs/warning:
|
|
@@ -387,14 +362,7 @@ var warning = emptyFunction_1;
|
|
|
387
362
|
};
|
|
388
363
|
}
|
|
389
364
|
|
|
390
|
-
var warning_1
|
|
391
|
-
|
|
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
|
-
*/
|
|
365
|
+
var warning_1 = warning;
|
|
398
366
|
|
|
399
367
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
400
368
|
|
|
@@ -406,7 +374,7 @@ function warnNoop(publicInstance, callerName) {
|
|
|
406
374
|
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
407
375
|
return;
|
|
408
376
|
}
|
|
409
|
-
warning_1
|
|
377
|
+
warning_1(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, componentName);
|
|
410
378
|
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
411
379
|
}
|
|
412
380
|
}
|
|
@@ -479,13 +447,6 @@ var ReactNoopUpdateQueue = {
|
|
|
479
447
|
}
|
|
480
448
|
};
|
|
481
449
|
|
|
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
450
|
/**
|
|
490
451
|
* Base class helpers for the updating state of a component.
|
|
491
452
|
*/
|
|
@@ -526,7 +487,7 @@ Component.prototype.isReactComponent = {};
|
|
|
526
487
|
* @protected
|
|
527
488
|
*/
|
|
528
489
|
Component.prototype.setState = function (partialState, callback) {
|
|
529
|
-
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant_1
|
|
490
|
+
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? invariant_1(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : void 0;
|
|
530
491
|
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
531
492
|
};
|
|
532
493
|
|
|
@@ -591,7 +552,7 @@ ComponentDummy.prototype = Component.prototype;
|
|
|
591
552
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
592
553
|
pureComponentPrototype.constructor = PureComponent;
|
|
593
554
|
// Avoid an extra prototype jump for these methods.
|
|
594
|
-
objectAssign
|
|
555
|
+
objectAssign(pureComponentPrototype, Component.prototype);
|
|
595
556
|
pureComponentPrototype.isPureReactComponent = true;
|
|
596
557
|
|
|
597
558
|
function AsyncComponent(props, context, updater) {
|
|
@@ -607,7 +568,7 @@ function AsyncComponent(props, context, updater) {
|
|
|
607
568
|
var asyncComponentPrototype = AsyncComponent.prototype = new ComponentDummy();
|
|
608
569
|
asyncComponentPrototype.constructor = AsyncComponent;
|
|
609
570
|
// Avoid an extra prototype jump for these methods.
|
|
610
|
-
objectAssign
|
|
571
|
+
objectAssign(asyncComponentPrototype, Component.prototype);
|
|
611
572
|
asyncComponentPrototype.unstable_isAsyncReactComponent = true;
|
|
612
573
|
asyncComponentPrototype.render = function () {
|
|
613
574
|
return this.props.children;
|
|
@@ -625,28 +586,10 @@ var ReactCurrentOwner = {
|
|
|
625
586
|
* @type {ReactComponent}
|
|
626
587
|
*/
|
|
627
588
|
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
|
-
*/
|
|
589
|
+
};
|
|
643
590
|
|
|
644
591
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
645
592
|
|
|
646
|
-
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
647
|
-
// nor polyfill, then a plain number is used for performance.
|
|
648
|
-
var REACT_ELEMENT_TYPE$1 = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
|
|
649
|
-
|
|
650
593
|
var RESERVED_PROPS = {
|
|
651
594
|
key: true,
|
|
652
595
|
ref: true,
|
|
@@ -685,7 +628,7 @@ function defineKeyPropWarningGetter(props, displayName) {
|
|
|
685
628
|
var warnAboutAccessingKey = function () {
|
|
686
629
|
if (!specialPropKeyWarningShown) {
|
|
687
630
|
specialPropKeyWarningShown = true;
|
|
688
|
-
warning_1
|
|
631
|
+
warning_1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
689
632
|
}
|
|
690
633
|
};
|
|
691
634
|
warnAboutAccessingKey.isReactWarning = true;
|
|
@@ -699,7 +642,7 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
699
642
|
var warnAboutAccessingRef = function () {
|
|
700
643
|
if (!specialPropRefWarningShown) {
|
|
701
644
|
specialPropRefWarningShown = true;
|
|
702
|
-
warning_1
|
|
645
|
+
warning_1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
|
|
703
646
|
}
|
|
704
647
|
};
|
|
705
648
|
warnAboutAccessingRef.isReactWarning = true;
|
|
@@ -732,7 +675,7 @@ function defineRefPropWarningGetter(props, displayName) {
|
|
|
732
675
|
var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
733
676
|
var element = {
|
|
734
677
|
// This tag allow us to uniquely identify this as a React Element
|
|
735
|
-
$$typeof: REACT_ELEMENT_TYPE
|
|
678
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
736
679
|
|
|
737
680
|
// Built-in properties that belong on the element
|
|
738
681
|
type: type,
|
|
@@ -847,7 +790,7 @@ function createElement(type, config, children) {
|
|
|
847
790
|
}
|
|
848
791
|
{
|
|
849
792
|
if (key || ref) {
|
|
850
|
-
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE
|
|
793
|
+
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
|
|
851
794
|
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
|
|
852
795
|
if (key) {
|
|
853
796
|
defineKeyPropWarningGetter(props, displayName);
|
|
@@ -881,7 +824,7 @@ function cloneElement(element, config, children) {
|
|
|
881
824
|
var propName;
|
|
882
825
|
|
|
883
826
|
// Original props are copied
|
|
884
|
-
var props = objectAssign
|
|
827
|
+
var props = objectAssign({}, element.props);
|
|
885
828
|
|
|
886
829
|
// Reserved names are extracted
|
|
887
830
|
var key = element.key;
|
|
@@ -947,18 +890,9 @@ function cloneElement(element, config, children) {
|
|
|
947
890
|
* @final
|
|
948
891
|
*/
|
|
949
892
|
function isValidElement(object) {
|
|
950
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE
|
|
893
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
951
894
|
}
|
|
952
895
|
|
|
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
896
|
var ReactDebugCurrentFrame = {};
|
|
963
897
|
|
|
964
898
|
{
|
|
@@ -974,19 +908,6 @@ var ReactDebugCurrentFrame = {};
|
|
|
974
908
|
};
|
|
975
909
|
}
|
|
976
910
|
|
|
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
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
985
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
986
|
-
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
987
|
-
// nor polyfill, then a plain number is used for performance.
|
|
988
|
-
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
|
|
989
|
-
var REACT_PORTAL_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.portal') || 0xeaca;
|
|
990
911
|
var SEPARATOR = '.';
|
|
991
912
|
var SUBSEPARATOR = ':';
|
|
992
913
|
|
|
@@ -1070,10 +991,28 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1070
991
|
children = null;
|
|
1071
992
|
}
|
|
1072
993
|
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
994
|
+
var invokeCallback = false;
|
|
995
|
+
|
|
996
|
+
if (children === null) {
|
|
997
|
+
invokeCallback = true;
|
|
998
|
+
} else {
|
|
999
|
+
switch (type) {
|
|
1000
|
+
case 'string':
|
|
1001
|
+
case 'number':
|
|
1002
|
+
invokeCallback = true;
|
|
1003
|
+
break;
|
|
1004
|
+
case 'object':
|
|
1005
|
+
switch (children.$$typeof) {
|
|
1006
|
+
case REACT_ELEMENT_TYPE:
|
|
1007
|
+
case REACT_CALL_TYPE:
|
|
1008
|
+
case REACT_RETURN_TYPE:
|
|
1009
|
+
case REACT_PORTAL_TYPE:
|
|
1010
|
+
invokeCallback = true;
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
if (invokeCallback) {
|
|
1077
1016
|
callback(traverseContext, children,
|
|
1078
1017
|
// If it's the only child, treat the name as if it was wrapped in an array
|
|
1079
1018
|
// so that it's consistent if the number of children grows.
|
|
@@ -1093,12 +1032,12 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1093
1032
|
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
1094
1033
|
}
|
|
1095
1034
|
} else {
|
|
1096
|
-
var iteratorFn =
|
|
1035
|
+
var iteratorFn = getIteratorFn(children);
|
|
1097
1036
|
if (typeof iteratorFn === 'function') {
|
|
1098
1037
|
{
|
|
1099
1038
|
// Warn about using Maps as children
|
|
1100
1039
|
if (iteratorFn === children.entries) {
|
|
1101
|
-
warning_1
|
|
1040
|
+
warning_1(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', ReactDebugCurrentFrame.getStackAddendum());
|
|
1102
1041
|
didWarnAboutMaps = true;
|
|
1103
1042
|
}
|
|
1104
1043
|
}
|
|
@@ -1117,7 +1056,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1117
1056
|
addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
|
|
1118
1057
|
}
|
|
1119
1058
|
var childrenString = '' + children;
|
|
1120
|
-
invariant_1
|
|
1059
|
+
invariant_1(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum);
|
|
1121
1060
|
}
|
|
1122
1061
|
}
|
|
1123
1062
|
|
|
@@ -1287,19 +1226,10 @@ function toArray(children) {
|
|
|
1287
1226
|
* structure.
|
|
1288
1227
|
*/
|
|
1289
1228
|
function onlyChild(children) {
|
|
1290
|
-
!isValidElement(children) ? invariant_1
|
|
1229
|
+
!isValidElement(children) ? invariant_1(false, 'React.Children.only expected to receive a single React element child.') : void 0;
|
|
1291
1230
|
return children;
|
|
1292
1231
|
}
|
|
1293
1232
|
|
|
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
1233
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1304
1234
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1305
1235
|
};
|
|
@@ -1314,14 +1244,7 @@ function getComponentName(fiber) {
|
|
|
1314
1244
|
return type.displayName || type.name;
|
|
1315
1245
|
}
|
|
1316
1246
|
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
|
-
*/
|
|
1247
|
+
}
|
|
1325
1248
|
|
|
1326
1249
|
/**
|
|
1327
1250
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1346,8 +1269,8 @@ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
|
1346
1269
|
|
|
1347
1270
|
|
|
1348
1271
|
{
|
|
1349
|
-
var invariant$2 = invariant_1
|
|
1350
|
-
var warning$2 = warning_1
|
|
1272
|
+
var invariant$2 = invariant_1;
|
|
1273
|
+
var warning$2 = warning_1;
|
|
1351
1274
|
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1352
1275
|
var loggedTypeFailures = {};
|
|
1353
1276
|
}
|
|
@@ -1394,14 +1317,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
1394
1317
|
}
|
|
1395
1318
|
}
|
|
1396
1319
|
|
|
1397
|
-
var checkPropTypes_1
|
|
1398
|
-
|
|
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
|
-
*/
|
|
1320
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
1405
1321
|
|
|
1406
1322
|
/**
|
|
1407
1323
|
* ReactElementValidator provides a wrapper around a element factory
|
|
@@ -1413,6 +1329,8 @@ var checkPropTypes_1$1 = checkPropTypes;
|
|
|
1413
1329
|
{
|
|
1414
1330
|
var currentlyValidatingElement = null;
|
|
1415
1331
|
|
|
1332
|
+
var propTypesMisspellWarningShown = false;
|
|
1333
|
+
|
|
1416
1334
|
var getDisplayName = function (element) {
|
|
1417
1335
|
if (element == null) {
|
|
1418
1336
|
return '#empty';
|
|
@@ -1420,7 +1338,7 @@ var checkPropTypes_1$1 = checkPropTypes;
|
|
|
1420
1338
|
return '#text';
|
|
1421
1339
|
} else if (typeof element.type === 'string') {
|
|
1422
1340
|
return element.type;
|
|
1423
|
-
} else if (element.type === REACT_FRAGMENT_TYPE
|
|
1341
|
+
} else if (element.type === REACT_FRAGMENT_TYPE) {
|
|
1424
1342
|
return 'React.Fragment';
|
|
1425
1343
|
} else {
|
|
1426
1344
|
return element.type.displayName || element.type.name || 'Unknown';
|
|
@@ -1438,14 +1356,9 @@ var checkPropTypes_1$1 = checkPropTypes;
|
|
|
1438
1356
|
return stack;
|
|
1439
1357
|
};
|
|
1440
1358
|
|
|
1441
|
-
var REACT_FRAGMENT_TYPE$1 = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1442
|
-
|
|
1443
1359
|
var VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
|
|
1444
1360
|
}
|
|
1445
1361
|
|
|
1446
|
-
var ITERATOR_SYMBOL$1 = typeof Symbol === 'function' && Symbol.iterator;
|
|
1447
|
-
var FAUX_ITERATOR_SYMBOL$1 = '@@iterator'; // Before Symbol spec.
|
|
1448
|
-
|
|
1449
1362
|
function getDeclarationErrorAddendum() {
|
|
1450
1363
|
if (ReactCurrentOwner.current) {
|
|
1451
1364
|
var name = getComponentName(ReactCurrentOwner.current);
|
|
@@ -1519,7 +1432,7 @@ function validateExplicitKey(element, parentType) {
|
|
|
1519
1432
|
|
|
1520
1433
|
currentlyValidatingElement = element;
|
|
1521
1434
|
{
|
|
1522
|
-
warning_1
|
|
1435
|
+
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.%s', currentComponentErrorInfo, childOwner, getStackAddendum());
|
|
1523
1436
|
}
|
|
1524
1437
|
currentlyValidatingElement = null;
|
|
1525
1438
|
}
|
|
@@ -1550,7 +1463,7 @@ function validateChildKeys(node, parentType) {
|
|
|
1550
1463
|
node._store.validated = true;
|
|
1551
1464
|
}
|
|
1552
1465
|
} else if (node) {
|
|
1553
|
-
var iteratorFn =
|
|
1466
|
+
var iteratorFn = getIteratorFn(node);
|
|
1554
1467
|
if (typeof iteratorFn === 'function') {
|
|
1555
1468
|
// Entry iterators used to provide implicit keys,
|
|
1556
1469
|
// but now we print a separate warning for them later.
|
|
@@ -1580,14 +1493,16 @@ function validatePropTypes(element) {
|
|
|
1580
1493
|
}
|
|
1581
1494
|
var name = componentClass.displayName || componentClass.name;
|
|
1582
1495
|
var propTypes = componentClass.propTypes;
|
|
1583
|
-
|
|
1584
1496
|
if (propTypes) {
|
|
1585
1497
|
currentlyValidatingElement = element;
|
|
1586
|
-
checkPropTypes_1
|
|
1498
|
+
checkPropTypes_1(propTypes, element.props, 'prop', name, getStackAddendum);
|
|
1587
1499
|
currentlyValidatingElement = null;
|
|
1500
|
+
} else if (componentClass.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
1501
|
+
propTypesMisspellWarningShown = true;
|
|
1502
|
+
warning_1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
|
|
1588
1503
|
}
|
|
1589
1504
|
if (typeof componentClass.getDefaultProps === 'function') {
|
|
1590
|
-
warning_1
|
|
1505
|
+
warning_1(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
|
|
1591
1506
|
}
|
|
1592
1507
|
}
|
|
1593
1508
|
|
|
@@ -1607,7 +1522,7 @@ function validateFragmentProps(fragment) {
|
|
|
1607
1522
|
var key = _step.value;
|
|
1608
1523
|
|
|
1609
1524
|
if (!VALID_FRAGMENT_PROPS.has(key)) {
|
|
1610
|
-
warning_1
|
|
1525
|
+
warning_1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.%s', key, getStackAddendum());
|
|
1611
1526
|
break;
|
|
1612
1527
|
}
|
|
1613
1528
|
}
|
|
@@ -1627,7 +1542,7 @@ function validateFragmentProps(fragment) {
|
|
|
1627
1542
|
}
|
|
1628
1543
|
|
|
1629
1544
|
if (fragment.ref !== null) {
|
|
1630
|
-
warning_1
|
|
1545
|
+
warning_1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.%s', getStackAddendum());
|
|
1631
1546
|
}
|
|
1632
1547
|
|
|
1633
1548
|
currentlyValidatingElement = null;
|
|
@@ -1640,7 +1555,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1640
1555
|
if (!validType) {
|
|
1641
1556
|
var info = '';
|
|
1642
1557
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
1643
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
|
|
1558
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
1644
1559
|
}
|
|
1645
1560
|
|
|
1646
1561
|
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
@@ -1652,7 +1567,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1652
1567
|
|
|
1653
1568
|
info += getStackAddendum() || '';
|
|
1654
1569
|
|
|
1655
|
-
warning_1
|
|
1570
|
+
warning_1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', type == null ? type : typeof type, info);
|
|
1656
1571
|
}
|
|
1657
1572
|
|
|
1658
1573
|
var element = createElement.apply(this, arguments);
|
|
@@ -1674,7 +1589,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1674
1589
|
}
|
|
1675
1590
|
}
|
|
1676
1591
|
|
|
1677
|
-
if (typeof type === 'symbol' && type === REACT_FRAGMENT_TYPE
|
|
1592
|
+
if (typeof type === 'symbol' && type === REACT_FRAGMENT_TYPE) {
|
|
1678
1593
|
validateFragmentProps(element);
|
|
1679
1594
|
} else {
|
|
1680
1595
|
validatePropTypes(element);
|
|
@@ -1713,15 +1628,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
1713
1628
|
return newElement;
|
|
1714
1629
|
}
|
|
1715
1630
|
|
|
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
|
-
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1724
|
-
|
|
1725
1631
|
var React = {
|
|
1726
1632
|
Children: {
|
|
1727
1633
|
map: mapChildren,
|
|
@@ -1735,6 +1641,8 @@ var React = {
|
|
|
1735
1641
|
PureComponent: PureComponent,
|
|
1736
1642
|
unstable_AsyncComponent: AsyncComponent,
|
|
1737
1643
|
|
|
1644
|
+
Fragment: REACT_FRAGMENT_TYPE,
|
|
1645
|
+
|
|
1738
1646
|
createElement: createElementWithValidation,
|
|
1739
1647
|
cloneElement: cloneElementWithValidation,
|
|
1740
1648
|
createFactory: createFactoryWithValidation,
|
|
@@ -1745,16 +1653,12 @@ var React = {
|
|
|
1745
1653
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
1746
1654
|
ReactCurrentOwner: ReactCurrentOwner,
|
|
1747
1655
|
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
1748
|
-
assign: objectAssign
|
|
1656
|
+
assign: objectAssign
|
|
1749
1657
|
}
|
|
1750
1658
|
};
|
|
1751
1659
|
|
|
1752
|
-
if (enableReactFragment) {
|
|
1753
|
-
React.Fragment = REACT_FRAGMENT_TYPE;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
1660
|
{
|
|
1757
|
-
objectAssign
|
|
1661
|
+
objectAssign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
1758
1662
|
// These should not be included in production.
|
|
1759
1663
|
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
|
|
1760
1664
|
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
|
@@ -1771,19 +1675,6 @@ var React$2 = Object.freeze({
|
|
|
1771
1675
|
|
|
1772
1676
|
var React$3 = ( React$2 && React ) || React$2;
|
|
1773
1677
|
|
|
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
1678
|
// TODO: decide on the top-level export form.
|
|
1788
1679
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1789
1680
|
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
|
-
|
|
14
|
-
b,c){var
|
|
15
|
-
var a=new String("abc");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(
|
|
16
|
-
var c=Object(a);for(var
|
|
17
|
-
|
|
18
|
-
|
|
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.2.0
|
|
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(q,k){"object"===typeof exports&&"undefined"!==typeof module?module.exports=k():"function"===typeof define&&define.amd?define(k):q.React=k()})(this,function(){function q(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,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+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 k(a){return function(){return a}}function p(a,b,c){this.props=a;this.context=b;this.refs=w;this.updater=c||x}function y(a,b,c){this.props=a;this.context=b;this.refs=w;this.updater=c||x}function z(){}function A(a,b,c){this.props=a;this.context=b;this.refs=w;this.updater=c||x}function G(a,b,c){var d,f={},l=null,e=null;if(null!=b)for(d in void 0!==b.ref&&(e=b.ref),void 0!==b.key&&(l=""+b.key),b)H.call(b,d)&&!I.hasOwnProperty(d)&&(f[d]=b[d]);
|
|
11
|
+
var g=arguments.length-2;if(1===g)f.children=c;else if(1<g){for(var h=Array(g),n=0;n<g;n++)h[n]=arguments[n+2];f.children=h}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===f[d]&&(f[d]=g[d]);return{$$typeof:r,type:a,key:l,ref:e,props:f,_owner:B.current}}function C(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 J(a,b,c,d){if(u.length){var f=u.pop();f.result=a;f.keyPrefix=
|
|
12
|
+
b;f.func=c;f.context=d;f.count=0;return f}return{result:a,keyPrefix:b,func:c,context:d,count:0}}function K(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>u.length&&u.push(a)}function t(a,b,c,d){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;var l=!1;if(null===a)l=!0;else switch(f){case "string":case "number":l=!0;break;case "object":switch(a.$$typeof){case r:case P:case Q:case R:l=!0}}if(l)return c(d,a,""===b?"."+D(a,0):b),1;l=0;b=""===b?".":b+":";if(Array.isArray(a))for(var e=
|
|
13
|
+
0;e<a.length;e++){f=a[e];var g=b+D(f,e);l+=t(f,g,c,d)}else if(null===a||"undefined"===typeof a?g=null:(g=L&&a[L]||a["@@iterator"],g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),e=0;!(f=a.next()).done;)f=f.value,g=b+D(f,e++),l+=t(f,g,c,d);else"object"===f&&(c=""+a,q("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return l}function D(a,b){return"object"===typeof a&&null!==a&&null!=a.key?O(a.key):b.toString(36)}function S(a,b,c){a.func.call(a.context,
|
|
14
|
+
b,a.count++)}function T(a,b,c){var d=a.result,f=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?E(a,d,c,F.thatReturnsArgument):null!=a&&(C(a)&&(b=f+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(M,"$\x26/")+"/")+c,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),d.push(a))}function E(a,b,c,d,f){var e="";null!=c&&(e=(""+c).replace(M,"$\x26/")+"/");b=J(b,e,d,f);null==a||t(a,"",T,b);K(b)}var N=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,
|
|
15
|
+
V=Object.prototype.propertyIsEnumerable,v=function(){try{if(!Object.assign)return!1;var a=new String("abc");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(d){return!1}}()?Object.assign:
|
|
16
|
+
function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,f=1;f<arguments.length;f++){var e=Object(arguments[f]);for(var h in e)U.call(e,h)&&(c[h]=e[h]);if(N){d=N(e);for(var g=0;g<d.length;g++)V.call(e,d[g])&&(c[d[g]]=e[d[g]])}}return c},h="function"===typeof Symbol&&Symbol["for"],r=h?Symbol["for"]("react.element"):60103,P=h?Symbol["for"]("react.call"):60104,Q=h?Symbol["for"]("react.return"):60105,R=h?Symbol["for"]("react.portal"):
|
|
17
|
+
60106;h=h?Symbol["for"]("react.fragment"):60107;var L="function"===typeof Symbol&&Symbol.iterator,w={},e=function(){};e.thatReturns=k;e.thatReturnsFalse=k(!1);e.thatReturnsTrue=k(!0);e.thatReturnsNull=k(null);e.thatReturnsThis=function(){return this};e.thatReturnsArgument=function(a){return a};var F=e,x={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}};p.prototype.isReactComponent={};p.prototype.setState=
|
|
18
|
+
function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};p.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};z.prototype=p.prototype;e=y.prototype=new z;e.constructor=y;v(e,p.prototype);e.isPureReactComponent=!0;e=A.prototype=new z;e.constructor=A;v(e,p.prototype);e.unstable_isAsyncReactComponent=!0;e.render=function(){return this.props.children};var B={current:null},H=Object.prototype.hasOwnProperty,
|
|
19
|
+
I={key:!0,ref:!0,__self:!0,__source:!0},M=/\/+/g,u=[];h={Children:{map:function(a,b,c){if(null==a)return a;var d=[];E(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=J(null,null,b,c);null==a||t(a,"",S,b);K(b)},count:function(a,b){return null==a?0:t(a,"",F.thatReturnsNull,null)},toArray:function(a){var b=[];E(a,b,null,F.thatReturnsArgument);return b},only:function(a){C(a)?void 0:q("143");return a}},Component:p,PureComponent:y,unstable_AsyncComponent:A,Fragment:h,createElement:G,
|
|
20
|
+
cloneElement:function(a,b,c){var d=v({},a.props),e=a.key,h=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,k=B.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(m in b)H.call(b,m)&&!I.hasOwnProperty(m)&&(d[m]=void 0===b[m]&&void 0!==g?g[m]:b[m])}var m=arguments.length-2;if(1===m)d.children=c;else if(1<m){g=Array(m);for(var n=0;n<m;n++)g[n]=arguments[n+2];d.children=g}return{$$typeof:r,type:a.type,key:e,ref:h,props:d,_owner:k}},createFactory:function(a){var b=
|
|
21
|
+
G.bind(null,a);b.type=a;return b},isValidElement:C,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:B,assign:v}};h=(e=Object.freeze({default:h}))&&h||e;return h["default"]?h["default"]:h});
|