diff options
author | afc163 <afc163@gmail.com> | 2017-02-20 16:41:50 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-02-20 16:41:50 +0800 |
commit | 7967d52afc0bb7edee7dc26f30d291970a0d81a7 (patch) | |
tree | f1484a6ca6409193a3e7c69b74c6233f1b86f934 /examples/common.js | |
parent | bb0a25cb853ddbd2971bf1d0c74b6c4694015367 (diff) | |
download | time-picker-7967d52afc0bb7edee7dc26f30d291970a0d81a7.tar.gz time-picker-7967d52afc0bb7edee7dc26f30d291970a0d81a7.tar.zst time-picker-7967d52afc0bb7edee7dc26f30d291970a0d81a7.zip |
Updates
Diffstat (limited to 'examples/common.js')
-rw-r--r-- | examples/common.js | 4896 |
1 files changed, 2344 insertions, 2552 deletions
diff --git a/examples/common.js b/examples/common.js index 3471ad5..8562f55 100644 --- a/examples/common.js +++ b/examples/common.js | |||
@@ -12,7 +12,28 @@ | |||
12 | /******/ installedChunks[chunkId] = 0; | 12 | /******/ installedChunks[chunkId] = 0; |
13 | /******/ } | 13 | /******/ } |
14 | /******/ for(moduleId in moreModules) { | 14 | /******/ for(moduleId in moreModules) { |
15 | /******/ modules[moduleId] = moreModules[moduleId]; | 15 | /******/ var _m = moreModules[moduleId]; |
16 | /******/ | ||
17 | /******/ // Check if module is deduplicated | ||
18 | /******/ switch(typeof _m) { | ||
19 | /******/ case "object": | ||
20 | /******/ // Module can be created from a template | ||
21 | /******/ modules[moduleId] = (function(_m) { | ||
22 | /******/ var args = _m.slice(1), templateId = _m[0]; | ||
23 | /******/ return function (a,b,c) { | ||
24 | /******/ modules[templateId].apply(this, [a,b,c].concat(args)); | ||
25 | /******/ }; | ||
26 | /******/ }(_m)); | ||
27 | /******/ break; | ||
28 | /******/ case "function": | ||
29 | /******/ // Normal module | ||
30 | /******/ modules[moduleId] = _m; | ||
31 | /******/ break; | ||
32 | /******/ default: | ||
33 | /******/ // Module is a copy of another module | ||
34 | /******/ modules[moduleId] = modules[_m]; | ||
35 | /******/ break; | ||
36 | /******/ } | ||
16 | /******/ } | 37 | /******/ } |
17 | /******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules); | 38 | /******/ if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules); |
18 | /******/ while(callbacks.length) | 39 | /******/ while(callbacks.length) |
@@ -30,7 +51,7 @@ | |||
30 | /******/ // "0" means "already loaded" | 51 | /******/ // "0" means "already loaded" |
31 | /******/ // Array means "loading", array contains callbacks | 52 | /******/ // Array means "loading", array contains callbacks |
32 | /******/ var installedChunks = { | 53 | /******/ var installedChunks = { |
33 | /******/ 5:0 | 54 | /******/ 6:0 |
34 | /******/ }; | 55 | /******/ }; |
35 | /******/ | 56 | /******/ |
36 | /******/ // The require function | 57 | /******/ // The require function |
@@ -76,7 +97,7 @@ | |||
76 | /******/ script.charset = 'utf-8'; | 97 | /******/ script.charset = 'utf-8'; |
77 | /******/ script.async = true; | 98 | /******/ script.async = true; |
78 | /******/ | 99 | /******/ |
79 | /******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"disabled","1":"format","2":"hidden","3":"pick-time","4":"value-and-defaultValue"}[chunkId]||chunkId) + ".js"; | 100 | /******/ script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"disabled","1":"format","2":"hidden","3":"open","4":"pick-time","5":"value-and-defaultValue"}[chunkId]||chunkId) + ".js"; |
80 | /******/ head.appendChild(script); | 101 | /******/ head.appendChild(script); |
81 | /******/ } | 102 | /******/ } |
82 | /******/ }; | 103 | /******/ }; |
@@ -91,7 +112,30 @@ | |||
91 | /******/ __webpack_require__.p = ""; | 112 | /******/ __webpack_require__.p = ""; |
92 | /******/ }) | 113 | /******/ }) |
93 | /************************************************************************/ | 114 | /************************************************************************/ |
94 | /******/ ([ | 115 | /******/ ((function(modules) { |
116 | // Check all modules for deduplicated modules | ||
117 | for(var i in modules) { | ||
118 | if(Object.prototype.hasOwnProperty.call(modules, i)) { | ||
119 | switch(typeof modules[i]) { | ||
120 | case "function": break; | ||
121 | case "object": | ||
122 | // Module can be created from a template | ||
123 | modules[i] = (function(_m) { | ||
124 | var args = _m.slice(1), fn = modules[_m[0]]; | ||
125 | return function (a,b,c) { | ||
126 | fn.apply(this, [a,b,c].concat(args)); | ||
127 | }; | ||
128 | }(modules[i])); | ||
129 | break; | ||
130 | default: | ||
131 | // Module is a copy of another module | ||
132 | modules[i] = modules[modules[i]]; | ||
133 | break; | ||
134 | } | ||
135 | } | ||
136 | } | ||
137 | return modules; | ||
138 | }([ | ||
95 | /* 0 */, | 139 | /* 0 */, |
96 | /* 1 */, | 140 | /* 1 */, |
97 | /* 2 */ | 141 | /* 2 */ |
@@ -120,7 +164,6 @@ | |||
120 | * LICENSE file in the root directory of this source tree. An additional grant | 164 | * LICENSE file in the root directory of this source tree. An additional grant |
121 | * of patent rights can be found in the PATENTS file in the same directory. | 165 | * of patent rights can be found in the PATENTS file in the same directory. |
122 | * | 166 | * |
123 | * @providesModule React | ||
124 | */ | 167 | */ |
125 | 168 | ||
126 | 'use strict'; | 169 | 'use strict'; |
@@ -128,15 +171,15 @@ | |||
128 | var _assign = __webpack_require__(6); | 171 | var _assign = __webpack_require__(6); |
129 | 172 | ||
130 | var ReactChildren = __webpack_require__(7); | 173 | var ReactChildren = __webpack_require__(7); |
131 | var ReactComponent = __webpack_require__(19); | 174 | var ReactComponent = __webpack_require__(20); |
132 | var ReactPureComponent = __webpack_require__(22); | 175 | var ReactPureComponent = __webpack_require__(23); |
133 | var ReactClass = __webpack_require__(23); | 176 | var ReactClass = __webpack_require__(24); |
134 | var ReactDOMFactories = __webpack_require__(28); | 177 | var ReactDOMFactories = __webpack_require__(26); |
135 | var ReactElement = __webpack_require__(11); | 178 | var ReactElement = __webpack_require__(11); |
136 | var ReactPropTypes = __webpack_require__(33); | 179 | var ReactPropTypes = __webpack_require__(31); |
137 | var ReactVersion = __webpack_require__(34); | 180 | var ReactVersion = __webpack_require__(32); |
138 | 181 | ||
139 | var onlyChild = __webpack_require__(35); | 182 | var onlyChild = __webpack_require__(33); |
140 | var warning = __webpack_require__(13); | 183 | var warning = __webpack_require__(13); |
141 | 184 | ||
142 | var createElement = ReactElement.createElement; | 185 | var createElement = ReactElement.createElement; |
@@ -144,7 +187,7 @@ | |||
144 | var cloneElement = ReactElement.cloneElement; | 187 | var cloneElement = ReactElement.cloneElement; |
145 | 188 | ||
146 | if (process.env.NODE_ENV !== 'production') { | 189 | if (process.env.NODE_ENV !== 'production') { |
147 | var ReactElementValidator = __webpack_require__(29); | 190 | var ReactElementValidator = __webpack_require__(27); |
148 | createElement = ReactElementValidator.createElement; | 191 | createElement = ReactElementValidator.createElement; |
149 | createFactory = ReactElementValidator.createFactory; | 192 | createFactory = ReactElementValidator.createFactory; |
150 | cloneElement = ReactElementValidator.cloneElement; | 193 | cloneElement = ReactElementValidator.cloneElement; |
@@ -393,8 +436,15 @@ | |||
393 | /* 6 */ | 436 | /* 6 */ |
394 | /***/ function(module, exports) { | 437 | /***/ function(module, exports) { |
395 | 438 | ||
439 | /* | ||
440 | object-assign | ||
441 | (c) Sindre Sorhus | ||
442 | @license MIT | ||
443 | */ | ||
444 | |||
396 | 'use strict'; | 445 | 'use strict'; |
397 | /* eslint-disable no-unused-vars */ | 446 | /* eslint-disable no-unused-vars */ |
447 | var getOwnPropertySymbols = Object.getOwnPropertySymbols; | ||
398 | var hasOwnProperty = Object.prototype.hasOwnProperty; | 448 | var hasOwnProperty = Object.prototype.hasOwnProperty; |
399 | var propIsEnumerable = Object.prototype.propertyIsEnumerable; | 449 | var propIsEnumerable = Object.prototype.propertyIsEnumerable; |
400 | 450 | ||
@@ -415,7 +465,7 @@ | |||
415 | // Detect buggy property enumeration order in older V8 versions. | 465 | // Detect buggy property enumeration order in older V8 versions. |
416 | 466 | ||
417 | // https://bugs.chromium.org/p/v8/issues/detail?id=4118 | 467 | // https://bugs.chromium.org/p/v8/issues/detail?id=4118 |
418 | var test1 = new String('abc'); // eslint-disable-line | 468 | var test1 = new String('abc'); // eslint-disable-line no-new-wrappers |
419 | test1[5] = 'de'; | 469 | test1[5] = 'de'; |
420 | if (Object.getOwnPropertyNames(test1)[0] === '5') { | 470 | if (Object.getOwnPropertyNames(test1)[0] === '5') { |
421 | return false; | 471 | return false; |
@@ -444,7 +494,7 @@ | |||
444 | } | 494 | } |
445 | 495 | ||
446 | return true; | 496 | return true; |
447 | } catch (e) { | 497 | } catch (err) { |
448 | // We don't expect any of the above to throw, but better to be safe. | 498 | // We don't expect any of the above to throw, but better to be safe. |
449 | return false; | 499 | return false; |
450 | } | 500 | } |
@@ -464,8 +514,8 @@ | |||
464 | } | 514 | } |
465 | } | 515 | } |
466 | 516 | ||
467 | if (Object.getOwnPropertySymbols) { | 517 | if (getOwnPropertySymbols) { |
468 | symbols = Object.getOwnPropertySymbols(from); | 518 | symbols = getOwnPropertySymbols(from); |
469 | for (var i = 0; i < symbols.length; i++) { | 519 | for (var i = 0; i < symbols.length; i++) { |
470 | if (propIsEnumerable.call(from, symbols[i])) { | 520 | if (propIsEnumerable.call(from, symbols[i])) { |
471 | to[symbols[i]] = from[symbols[i]]; | 521 | to[symbols[i]] = from[symbols[i]]; |
@@ -490,7 +540,6 @@ | |||
490 | * LICENSE file in the root directory of this source tree. An additional grant | 540 | * LICENSE file in the root directory of this source tree. An additional grant |
491 | * of patent rights can be found in the PATENTS file in the same directory. | 541 | * of patent rights can be found in the PATENTS file in the same directory. |
492 | * | 542 | * |
493 | * @providesModule ReactChildren | ||
494 | */ | 543 | */ |
495 | 544 | ||
496 | 'use strict'; | 545 | 'use strict'; |
@@ -499,7 +548,7 @@ | |||
499 | var ReactElement = __webpack_require__(11); | 548 | var ReactElement = __webpack_require__(11); |
500 | 549 | ||
501 | var emptyFunction = __webpack_require__(14); | 550 | var emptyFunction = __webpack_require__(14); |
502 | var traverseAllChildren = __webpack_require__(16); | 551 | var traverseAllChildren = __webpack_require__(17); |
503 | 552 | ||
504 | var twoArgumentPooler = PooledClass.twoArgumentPooler; | 553 | var twoArgumentPooler = PooledClass.twoArgumentPooler; |
505 | var fourArgumentPooler = PooledClass.fourArgumentPooler; | 554 | var fourArgumentPooler = PooledClass.fourArgumentPooler; |
@@ -530,8 +579,8 @@ | |||
530 | PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler); | 579 | PooledClass.addPoolingTo(ForEachBookKeeping, twoArgumentPooler); |
531 | 580 | ||
532 | function forEachSingleChild(bookKeeping, child, name) { | 581 | function forEachSingleChild(bookKeeping, child, name) { |
533 | var func = bookKeeping.func; | 582 | var func = bookKeeping.func, |
534 | var context = bookKeeping.context; | 583 | context = bookKeeping.context; |
535 | 584 | ||
536 | func.call(context, child, bookKeeping.count++); | 585 | func.call(context, child, bookKeeping.count++); |
537 | } | 586 | } |
@@ -583,10 +632,10 @@ | |||
583 | PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler); | 632 | PooledClass.addPoolingTo(MapBookKeeping, fourArgumentPooler); |
584 | 633 | ||
585 | function mapSingleChildIntoContext(bookKeeping, child, childKey) { | 634 | function mapSingleChildIntoContext(bookKeeping, child, childKey) { |
586 | var result = bookKeeping.result; | 635 | var result = bookKeeping.result, |
587 | var keyPrefix = bookKeeping.keyPrefix; | 636 | keyPrefix = bookKeeping.keyPrefix, |
588 | var func = bookKeeping.func; | 637 | func = bookKeeping.func, |
589 | var context = bookKeeping.context; | 638 | context = bookKeeping.context; |
590 | 639 | ||
591 | 640 | ||
592 | var mappedChild = func.call(context, child, bookKeeping.count++); | 641 | var mappedChild = func.call(context, child, bookKeeping.count++); |
@@ -676,132 +725,7 @@ | |||
676 | 725 | ||
677 | /***/ }, | 726 | /***/ }, |
678 | /* 8 */ | 727 | /* 8 */ |
679 | /***/ function(module, exports, __webpack_require__) { | 728 | [271, 9], |
680 | |||
681 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
682 | * Copyright 2013-present, Facebook, Inc. | ||
683 | * All rights reserved. | ||
684 | * | ||
685 | * This source code is licensed under the BSD-style license found in the | ||
686 | * LICENSE file in the root directory of this source tree. An additional grant | ||
687 | * of patent rights can be found in the PATENTS file in the same directory. | ||
688 | * | ||
689 | * @providesModule PooledClass | ||
690 | */ | ||
691 | |||
692 | 'use strict'; | ||
693 | |||
694 | var _prodInvariant = __webpack_require__(9); | ||
695 | |||
696 | var invariant = __webpack_require__(10); | ||
697 | |||
698 | /** | ||
699 | * Static poolers. Several custom versions for each potential number of | ||
700 | * arguments. A completely generic pooler is easy to implement, but would | ||
701 | * require accessing the `arguments` object. In each of these, `this` refers to | ||
702 | * the Class itself, not an instance. If any others are needed, simply add them | ||
703 | * here, or in their own files. | ||
704 | */ | ||
705 | var oneArgumentPooler = function (copyFieldsFrom) { | ||
706 | var Klass = this; | ||
707 | if (Klass.instancePool.length) { | ||
708 | var instance = Klass.instancePool.pop(); | ||
709 | Klass.call(instance, copyFieldsFrom); | ||
710 | return instance; | ||
711 | } else { | ||
712 | return new Klass(copyFieldsFrom); | ||
713 | } | ||
714 | }; | ||
715 | |||
716 | var twoArgumentPooler = function (a1, a2) { | ||
717 | var Klass = this; | ||
718 | if (Klass.instancePool.length) { | ||
719 | var instance = Klass.instancePool.pop(); | ||
720 | Klass.call(instance, a1, a2); | ||
721 | return instance; | ||
722 | } else { | ||
723 | return new Klass(a1, a2); | ||
724 | } | ||
725 | }; | ||
726 | |||
727 | var threeArgumentPooler = function (a1, a2, a3) { | ||
728 | var Klass = this; | ||
729 | if (Klass.instancePool.length) { | ||
730 | var instance = Klass.instancePool.pop(); | ||
731 | Klass.call(instance, a1, a2, a3); | ||
732 | return instance; | ||
733 | } else { | ||
734 | return new Klass(a1, a2, a3); | ||
735 | } | ||
736 | }; | ||
737 | |||
738 | var fourArgumentPooler = function (a1, a2, a3, a4) { | ||
739 | var Klass = this; | ||
740 | if (Klass.instancePool.length) { | ||
741 | var instance = Klass.instancePool.pop(); | ||
742 | Klass.call(instance, a1, a2, a3, a4); | ||
743 | return instance; | ||
744 | } else { | ||
745 | return new Klass(a1, a2, a3, a4); | ||
746 | } | ||
747 | }; | ||
748 | |||
749 | var fiveArgumentPooler = function (a1, a2, a3, a4, a5) { | ||
750 | var Klass = this; | ||
751 | if (Klass.instancePool.length) { | ||
752 | var instance = Klass.instancePool.pop(); | ||
753 | Klass.call(instance, a1, a2, a3, a4, a5); | ||
754 | return instance; | ||
755 | } else { | ||
756 | return new Klass(a1, a2, a3, a4, a5); | ||
757 | } | ||
758 | }; | ||
759 | |||
760 | var standardReleaser = function (instance) { | ||
761 | var Klass = this; | ||
762 | !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0; | ||
763 | instance.destructor(); | ||
764 | if (Klass.instancePool.length < Klass.poolSize) { | ||
765 | Klass.instancePool.push(instance); | ||
766 | } | ||
767 | }; | ||
768 | |||
769 | var DEFAULT_POOL_SIZE = 10; | ||
770 | var DEFAULT_POOLER = oneArgumentPooler; | ||
771 | |||
772 | /** | ||
773 | * Augments `CopyConstructor` to be a poolable class, augmenting only the class | ||
774 | * itself (statically) not adding any prototypical fields. Any CopyConstructor | ||
775 | * you give this may have a `poolSize` property, and will look for a | ||
776 | * prototypical `destructor` on instances. | ||
777 | * | ||
778 | * @param {Function} CopyConstructor Constructor that can be used to reset. | ||
779 | * @param {Function} pooler Customizable pooler. | ||
780 | */ | ||
781 | var addPoolingTo = function (CopyConstructor, pooler) { | ||
782 | var NewKlass = CopyConstructor; | ||
783 | NewKlass.instancePool = []; | ||
784 | NewKlass.getPooled = pooler || DEFAULT_POOLER; | ||
785 | if (!NewKlass.poolSize) { | ||
786 | NewKlass.poolSize = DEFAULT_POOL_SIZE; | ||
787 | } | ||
788 | NewKlass.release = standardReleaser; | ||
789 | return NewKlass; | ||
790 | }; | ||
791 | |||
792 | var PooledClass = { | ||
793 | addPoolingTo: addPoolingTo, | ||
794 | oneArgumentPooler: oneArgumentPooler, | ||
795 | twoArgumentPooler: twoArgumentPooler, | ||
796 | threeArgumentPooler: threeArgumentPooler, | ||
797 | fourArgumentPooler: fourArgumentPooler, | ||
798 | fiveArgumentPooler: fiveArgumentPooler | ||
799 | }; | ||
800 | |||
801 | module.exports = PooledClass; | ||
802 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
803 | |||
804 | /***/ }, | ||
805 | /* 9 */ | 729 | /* 9 */ |
806 | /***/ function(module, exports) { | 730 | /***/ function(module, exports) { |
807 | 731 | ||
@@ -813,7 +737,6 @@ | |||
813 | * LICENSE file in the root directory of this source tree. An additional grant | 737 | * LICENSE file in the root directory of this source tree. An additional grant |
814 | * of patent rights can be found in the PATENTS file in the same directory. | 738 | * of patent rights can be found in the PATENTS file in the same directory. |
815 | * | 739 | * |
816 | * @providesModule reactProdInvariant | ||
817 | * | 740 | * |
818 | */ | 741 | */ |
819 | 'use strict'; | 742 | 'use strict'; |
@@ -872,12 +795,18 @@ | |||
872 | * will remain to ensure logic does not differ in production. | 795 | * will remain to ensure logic does not differ in production. |
873 | */ | 796 | */ |
874 | 797 | ||
875 | function invariant(condition, format, a, b, c, d, e, f) { | 798 | var validateFormat = function validateFormat(format) {}; |
876 | if (process.env.NODE_ENV !== 'production') { | 799 | |
800 | if (process.env.NODE_ENV !== 'production') { | ||
801 | validateFormat = function validateFormat(format) { | ||
877 | if (format === undefined) { | 802 | if (format === undefined) { |
878 | throw new Error('invariant requires an error message argument'); | 803 | throw new Error('invariant requires an error message argument'); |
879 | } | 804 | } |
880 | } | 805 | }; |
806 | } | ||
807 | |||
808 | function invariant(condition, format, a, b, c, d, e, f) { | ||
809 | validateFormat(format); | ||
881 | 810 | ||
882 | if (!condition) { | 811 | if (!condition) { |
883 | var error; | 812 | var error; |
@@ -912,7 +841,6 @@ | |||
912 | * LICENSE file in the root directory of this source tree. An additional grant | 841 | * LICENSE file in the root directory of this source tree. An additional grant |
913 | * of patent rights can be found in the PATENTS file in the same directory. | 842 | * of patent rights can be found in the PATENTS file in the same directory. |
914 | * | 843 | * |
915 | * @providesModule ReactElement | ||
916 | */ | 844 | */ |
917 | 845 | ||
918 | 'use strict'; | 846 | 'use strict'; |
@@ -925,9 +853,7 @@ | |||
925 | var canDefineProperty = __webpack_require__(15); | 853 | var canDefineProperty = __webpack_require__(15); |
926 | var hasOwnProperty = Object.prototype.hasOwnProperty; | 854 | var hasOwnProperty = Object.prototype.hasOwnProperty; |
927 | 855 | ||
928 | // The Symbol used to tag the ReactElement type. If there is no native Symbol | 856 | var REACT_ELEMENT_TYPE = __webpack_require__(16); |
929 | // nor polyfill, then a plain number is used for performance. | ||
930 | var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7; | ||
931 | 857 | ||
932 | var RESERVED_PROPS = { | 858 | var RESERVED_PROPS = { |
933 | key: true, | 859 | key: true, |
@@ -1031,7 +957,6 @@ | |||
1031 | // This can be replaced with a WeakMap once they are implemented in | 957 | // This can be replaced with a WeakMap once they are implemented in |
1032 | // commonly used development environments. | 958 | // commonly used development environments. |
1033 | element._store = {}; | 959 | element._store = {}; |
1034 | var shadowChildren = Array.isArray(props.children) ? props.children.slice(0) : props.children; | ||
1035 | 960 | ||
1036 | // To make comparing ReactElements easier for testing purposes, we make | 961 | // To make comparing ReactElements easier for testing purposes, we make |
1037 | // the validation flag non-enumerable (where possible, which should | 962 | // the validation flag non-enumerable (where possible, which should |
@@ -1051,12 +976,6 @@ | |||
1051 | writable: false, | 976 | writable: false, |
1052 | value: self | 977 | value: self |
1053 | }); | 978 | }); |
1054 | Object.defineProperty(element, '_shadowChildren', { | ||
1055 | configurable: false, | ||
1056 | enumerable: false, | ||
1057 | writable: false, | ||
1058 | value: shadowChildren | ||
1059 | }); | ||
1060 | // Two elements created in two different places should be considered | 979 | // Two elements created in two different places should be considered |
1061 | // equal for testing purposes and therefore we hide it from enumeration. | 980 | // equal for testing purposes and therefore we hide it from enumeration. |
1062 | Object.defineProperty(element, '_source', { | 981 | Object.defineProperty(element, '_source', { |
@@ -1068,7 +987,6 @@ | |||
1068 | } else { | 987 | } else { |
1069 | element._store.validated = false; | 988 | element._store.validated = false; |
1070 | element._self = self; | 989 | element._self = self; |
1071 | element._shadowChildren = shadowChildren; | ||
1072 | element._source = source; | 990 | element._source = source; |
1073 | } | 991 | } |
1074 | if (Object.freeze) { | 992 | if (Object.freeze) { |
@@ -1123,6 +1041,11 @@ | |||
1123 | for (var i = 0; i < childrenLength; i++) { | 1041 | for (var i = 0; i < childrenLength; i++) { |
1124 | childArray[i] = arguments[i + 2]; | 1042 | childArray[i] = arguments[i + 2]; |
1125 | } | 1043 | } |
1044 | if (process.env.NODE_ENV !== 'production') { | ||
1045 | if (Object.freeze) { | ||
1046 | Object.freeze(childArray); | ||
1047 | } | ||
1048 | } | ||
1126 | props.children = childArray; | 1049 | props.children = childArray; |
1127 | } | 1050 | } |
1128 | 1051 | ||
@@ -1249,8 +1172,6 @@ | |||
1249 | return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | 1172 | return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; |
1250 | }; | 1173 | }; |
1251 | 1174 | ||
1252 | ReactElement.REACT_ELEMENT_TYPE = REACT_ELEMENT_TYPE; | ||
1253 | |||
1254 | module.exports = ReactElement; | 1175 | module.exports = ReactElement; |
1255 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 1176 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
1256 | 1177 | ||
@@ -1266,7 +1187,7 @@ | |||
1266 | * LICENSE file in the root directory of this source tree. An additional grant | 1187 | * LICENSE file in the root directory of this source tree. An additional grant |
1267 | * of patent rights can be found in the PATENTS file in the same directory. | 1188 | * of patent rights can be found in the PATENTS file in the same directory. |
1268 | * | 1189 | * |
1269 | * @providesModule ReactCurrentOwner | 1190 | * |
1270 | */ | 1191 | */ |
1271 | 1192 | ||
1272 | 'use strict'; | 1193 | 'use strict'; |
@@ -1277,7 +1198,6 @@ | |||
1277 | * The current owner is the component who should own any components that are | 1198 | * The current owner is the component who should own any components that are |
1278 | * currently being constructed. | 1199 | * currently being constructed. |
1279 | */ | 1200 | */ |
1280 | |||
1281 | var ReactCurrentOwner = { | 1201 | var ReactCurrentOwner = { |
1282 | 1202 | ||
1283 | /** | 1203 | /** |
@@ -1417,7 +1337,7 @@ | |||
1417 | * LICENSE file in the root directory of this source tree. An additional grant | 1337 | * LICENSE file in the root directory of this source tree. An additional grant |
1418 | * of patent rights can be found in the PATENTS file in the same directory. | 1338 | * of patent rights can be found in the PATENTS file in the same directory. |
1419 | * | 1339 | * |
1420 | * @providesModule canDefineProperty | 1340 | * |
1421 | */ | 1341 | */ |
1422 | 1342 | ||
1423 | 'use strict'; | 1343 | 'use strict'; |
@@ -1425,6 +1345,7 @@ | |||
1425 | var canDefineProperty = false; | 1345 | var canDefineProperty = false; |
1426 | if (process.env.NODE_ENV !== 'production') { | 1346 | if (process.env.NODE_ENV !== 'production') { |
1427 | try { | 1347 | try { |
1348 | // $FlowFixMe https://github.com/facebook/flow/issues/285 | ||
1428 | Object.defineProperty({}, 'x', { get: function () {} }); | 1349 | Object.defineProperty({}, 'x', { get: function () {} }); |
1429 | canDefineProperty = true; | 1350 | canDefineProperty = true; |
1430 | } catch (x) { | 1351 | } catch (x) { |
@@ -1437,6 +1358,30 @@ | |||
1437 | 1358 | ||
1438 | /***/ }, | 1359 | /***/ }, |
1439 | /* 16 */ | 1360 | /* 16 */ |
1361 | /***/ function(module, exports) { | ||
1362 | |||
1363 | /** | ||
1364 | * Copyright 2014-present, Facebook, Inc. | ||
1365 | * All rights reserved. | ||
1366 | * | ||
1367 | * This source code is licensed under the BSD-style license found in the | ||
1368 | * LICENSE file in the root directory of this source tree. An additional grant | ||
1369 | * of patent rights can be found in the PATENTS file in the same directory. | ||
1370 | * | ||
1371 | * | ||
1372 | */ | ||
1373 | |||
1374 | 'use strict'; | ||
1375 | |||
1376 | // The Symbol used to tag the ReactElement type. If there is no native Symbol | ||
1377 | // nor polyfill, then a plain number is used for performance. | ||
1378 | |||
1379 | var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7; | ||
1380 | |||
1381 | module.exports = REACT_ELEMENT_TYPE; | ||
1382 | |||
1383 | /***/ }, | ||
1384 | /* 17 */ | ||
1440 | /***/ function(module, exports, __webpack_require__) { | 1385 | /***/ function(module, exports, __webpack_require__) { |
1441 | 1386 | ||
1442 | /* WEBPACK VAR INJECTION */(function(process) {/** | 1387 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -1447,7 +1392,6 @@ | |||
1447 | * LICENSE file in the root directory of this source tree. An additional grant | 1392 | * LICENSE file in the root directory of this source tree. An additional grant |
1448 | * of patent rights can be found in the PATENTS file in the same directory. | 1393 | * of patent rights can be found in the PATENTS file in the same directory. |
1449 | * | 1394 | * |
1450 | * @providesModule traverseAllChildren | ||
1451 | */ | 1395 | */ |
1452 | 1396 | ||
1453 | 'use strict'; | 1397 | 'use strict'; |
@@ -1455,17 +1399,23 @@ | |||
1455 | var _prodInvariant = __webpack_require__(9); | 1399 | var _prodInvariant = __webpack_require__(9); |
1456 | 1400 | ||
1457 | var ReactCurrentOwner = __webpack_require__(12); | 1401 | var ReactCurrentOwner = __webpack_require__(12); |
1458 | var ReactElement = __webpack_require__(11); | 1402 | var REACT_ELEMENT_TYPE = __webpack_require__(16); |
1459 | 1403 | ||
1460 | var getIteratorFn = __webpack_require__(17); | 1404 | var getIteratorFn = __webpack_require__(18); |
1461 | var invariant = __webpack_require__(10); | 1405 | var invariant = __webpack_require__(10); |
1462 | var KeyEscapeUtils = __webpack_require__(18); | 1406 | var KeyEscapeUtils = __webpack_require__(19); |
1463 | var warning = __webpack_require__(13); | 1407 | var warning = __webpack_require__(13); |
1464 | 1408 | ||
1465 | var SEPARATOR = '.'; | 1409 | var SEPARATOR = '.'; |
1466 | var SUBSEPARATOR = ':'; | 1410 | var SUBSEPARATOR = ':'; |
1467 | 1411 | ||
1468 | /** | 1412 | /** |
1413 | * This is inlined from ReactElement since this file is shared between | ||
1414 | * isomorphic and renderers. We could extract this to a | ||
1415 | * | ||
1416 | */ | ||
1417 | |||
1418 | /** | ||
1469 | * TODO: Test that a single child and an array with one item have the same key | 1419 | * TODO: Test that a single child and an array with one item have the same key |
1470 | * pattern. | 1420 | * pattern. |
1471 | */ | 1421 | */ |
@@ -1506,7 +1456,10 @@ | |||
1506 | children = null; | 1456 | children = null; |
1507 | } | 1457 | } |
1508 | 1458 | ||
1509 | if (children === null || type === 'string' || type === 'number' || ReactElement.isValidElement(children)) { | 1459 | if (children === null || type === 'string' || type === 'number' || |
1460 | // The following is inlined from ReactElement. This means we can optimize | ||
1461 | // some checks. React Fiber also inlines this logic for similar purposes. | ||
1462 | type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) { | ||
1510 | callback(traverseContext, children, | 1463 | callback(traverseContext, children, |
1511 | // If it's the only child, treat the name as if it was wrapped in an array | 1464 | // If it's the only child, treat the name as if it was wrapped in an array |
1512 | // so that it's consistent if the number of children grows. | 1465 | // so that it's consistent if the number of children grows. |
@@ -1609,7 +1562,7 @@ | |||
1609 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 1562 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
1610 | 1563 | ||
1611 | /***/ }, | 1564 | /***/ }, |
1612 | /* 17 */ | 1565 | /* 18 */ |
1613 | /***/ function(module, exports) { | 1566 | /***/ function(module, exports) { |
1614 | 1567 | ||
1615 | /** | 1568 | /** |
@@ -1620,7 +1573,6 @@ | |||
1620 | * LICENSE file in the root directory of this source tree. An additional grant | 1573 | * LICENSE file in the root directory of this source tree. An additional grant |
1621 | * of patent rights can be found in the PATENTS file in the same directory. | 1574 | * of patent rights can be found in the PATENTS file in the same directory. |
1622 | * | 1575 | * |
1623 | * @providesModule getIteratorFn | ||
1624 | * | 1576 | * |
1625 | */ | 1577 | */ |
1626 | 1578 | ||
@@ -1655,7 +1607,7 @@ | |||
1655 | module.exports = getIteratorFn; | 1607 | module.exports = getIteratorFn; |
1656 | 1608 | ||
1657 | /***/ }, | 1609 | /***/ }, |
1658 | /* 18 */ | 1610 | /* 19 */ |
1659 | /***/ function(module, exports) { | 1611 | /***/ function(module, exports) { |
1660 | 1612 | ||
1661 | /** | 1613 | /** |
@@ -1666,7 +1618,6 @@ | |||
1666 | * LICENSE file in the root directory of this source tree. An additional grant | 1618 | * LICENSE file in the root directory of this source tree. An additional grant |
1667 | * of patent rights can be found in the PATENTS file in the same directory. | 1619 | * of patent rights can be found in the PATENTS file in the same directory. |
1668 | * | 1620 | * |
1669 | * @providesModule KeyEscapeUtils | ||
1670 | * | 1621 | * |
1671 | */ | 1622 | */ |
1672 | 1623 | ||
@@ -1719,7 +1670,7 @@ | |||
1719 | module.exports = KeyEscapeUtils; | 1670 | module.exports = KeyEscapeUtils; |
1720 | 1671 | ||
1721 | /***/ }, | 1672 | /***/ }, |
1722 | /* 19 */ | 1673 | /* 20 */ |
1723 | /***/ function(module, exports, __webpack_require__) { | 1674 | /***/ function(module, exports, __webpack_require__) { |
1724 | 1675 | ||
1725 | /* WEBPACK VAR INJECTION */(function(process) {/** | 1676 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -1730,17 +1681,16 @@ | |||
1730 | * LICENSE file in the root directory of this source tree. An additional grant | 1681 | * LICENSE file in the root directory of this source tree. An additional grant |
1731 | * of patent rights can be found in the PATENTS file in the same directory. | 1682 | * of patent rights can be found in the PATENTS file in the same directory. |
1732 | * | 1683 | * |
1733 | * @providesModule ReactComponent | ||
1734 | */ | 1684 | */ |
1735 | 1685 | ||
1736 | 'use strict'; | 1686 | 'use strict'; |
1737 | 1687 | ||
1738 | var _prodInvariant = __webpack_require__(9); | 1688 | var _prodInvariant = __webpack_require__(9); |
1739 | 1689 | ||
1740 | var ReactNoopUpdateQueue = __webpack_require__(20); | 1690 | var ReactNoopUpdateQueue = __webpack_require__(21); |
1741 | 1691 | ||
1742 | var canDefineProperty = __webpack_require__(15); | 1692 | var canDefineProperty = __webpack_require__(15); |
1743 | var emptyObject = __webpack_require__(21); | 1693 | var emptyObject = __webpack_require__(22); |
1744 | var invariant = __webpack_require__(10); | 1694 | var invariant = __webpack_require__(10); |
1745 | var warning = __webpack_require__(13); | 1695 | var warning = __webpack_require__(13); |
1746 | 1696 | ||
@@ -1843,7 +1793,7 @@ | |||
1843 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 1793 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
1844 | 1794 | ||
1845 | /***/ }, | 1795 | /***/ }, |
1846 | /* 20 */ | 1796 | /* 21 */ |
1847 | /***/ function(module, exports, __webpack_require__) { | 1797 | /***/ function(module, exports, __webpack_require__) { |
1848 | 1798 | ||
1849 | /* WEBPACK VAR INJECTION */(function(process) {/** | 1799 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -1854,7 +1804,6 @@ | |||
1854 | * LICENSE file in the root directory of this source tree. An additional grant | 1804 | * LICENSE file in the root directory of this source tree. An additional grant |
1855 | * of patent rights can be found in the PATENTS file in the same directory. | 1805 | * of patent rights can be found in the PATENTS file in the same directory. |
1856 | * | 1806 | * |
1857 | * @providesModule ReactNoopUpdateQueue | ||
1858 | */ | 1807 | */ |
1859 | 1808 | ||
1860 | 'use strict'; | 1809 | 'use strict'; |
@@ -1945,7 +1894,7 @@ | |||
1945 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 1894 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
1946 | 1895 | ||
1947 | /***/ }, | 1896 | /***/ }, |
1948 | /* 21 */ | 1897 | /* 22 */ |
1949 | /***/ function(module, exports, __webpack_require__) { | 1898 | /***/ function(module, exports, __webpack_require__) { |
1950 | 1899 | ||
1951 | /* WEBPACK VAR INJECTION */(function(process) {/** | 1900 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -1970,7 +1919,7 @@ | |||
1970 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 1919 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
1971 | 1920 | ||
1972 | /***/ }, | 1921 | /***/ }, |
1973 | /* 22 */ | 1922 | /* 23 */ |
1974 | /***/ function(module, exports, __webpack_require__) { | 1923 | /***/ function(module, exports, __webpack_require__) { |
1975 | 1924 | ||
1976 | /** | 1925 | /** |
@@ -1981,17 +1930,16 @@ | |||
1981 | * LICENSE file in the root directory of this source tree. An additional grant | 1930 | * LICENSE file in the root directory of this source tree. An additional grant |
1982 | * of patent rights can be found in the PATENTS file in the same directory. | 1931 | * of patent rights can be found in the PATENTS file in the same directory. |
1983 | * | 1932 | * |
1984 | * @providesModule ReactPureComponent | ||
1985 | */ | 1933 | */ |
1986 | 1934 | ||
1987 | 'use strict'; | 1935 | 'use strict'; |
1988 | 1936 | ||
1989 | var _assign = __webpack_require__(6); | 1937 | var _assign = __webpack_require__(6); |
1990 | 1938 | ||
1991 | var ReactComponent = __webpack_require__(19); | 1939 | var ReactComponent = __webpack_require__(20); |
1992 | var ReactNoopUpdateQueue = __webpack_require__(20); | 1940 | var ReactNoopUpdateQueue = __webpack_require__(21); |
1993 | 1941 | ||
1994 | var emptyObject = __webpack_require__(21); | 1942 | var emptyObject = __webpack_require__(22); |
1995 | 1943 | ||
1996 | /** | 1944 | /** |
1997 | * Base class helpers for the updating state of a component. | 1945 | * Base class helpers for the updating state of a component. |
@@ -2017,7 +1965,7 @@ | |||
2017 | module.exports = ReactPureComponent; | 1965 | module.exports = ReactPureComponent; |
2018 | 1966 | ||
2019 | /***/ }, | 1967 | /***/ }, |
2020 | /* 23 */ | 1968 | /* 24 */ |
2021 | /***/ function(module, exports, __webpack_require__) { | 1969 | /***/ function(module, exports, __webpack_require__) { |
2022 | 1970 | ||
2023 | /* WEBPACK VAR INJECTION */(function(process) {/** | 1971 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -2028,7 +1976,6 @@ | |||
2028 | * LICENSE file in the root directory of this source tree. An additional grant | 1976 | * LICENSE file in the root directory of this source tree. An additional grant |
2029 | * of patent rights can be found in the PATENTS file in the same directory. | 1977 | * of patent rights can be found in the PATENTS file in the same directory. |
2030 | * | 1978 | * |
2031 | * @providesModule ReactClass | ||
2032 | */ | 1979 | */ |
2033 | 1980 | ||
2034 | 'use strict'; | 1981 | 'use strict'; |
@@ -2036,44 +1983,27 @@ | |||
2036 | var _prodInvariant = __webpack_require__(9), | 1983 | var _prodInvariant = __webpack_require__(9), |
2037 | _assign = __webpack_require__(6); | 1984 | _assign = __webpack_require__(6); |
2038 | 1985 | ||
2039 | var ReactComponent = __webpack_require__(19); | 1986 | var ReactComponent = __webpack_require__(20); |
2040 | var ReactElement = __webpack_require__(11); | 1987 | var ReactElement = __webpack_require__(11); |
2041 | var ReactPropTypeLocations = __webpack_require__(24); | 1988 | var ReactPropTypeLocationNames = __webpack_require__(25); |
2042 | var ReactPropTypeLocationNames = __webpack_require__(26); | 1989 | var ReactNoopUpdateQueue = __webpack_require__(21); |
2043 | var ReactNoopUpdateQueue = __webpack_require__(20); | ||
2044 | 1990 | ||
2045 | var emptyObject = __webpack_require__(21); | 1991 | var emptyObject = __webpack_require__(22); |
2046 | var invariant = __webpack_require__(10); | 1992 | var invariant = __webpack_require__(10); |
2047 | var keyMirror = __webpack_require__(25); | ||
2048 | var keyOf = __webpack_require__(27); | ||
2049 | var warning = __webpack_require__(13); | 1993 | var warning = __webpack_require__(13); |
2050 | 1994 | ||
2051 | var MIXINS_KEY = keyOf({ mixins: null }); | 1995 | var MIXINS_KEY = 'mixins'; |
1996 | |||
1997 | // Helper function to allow the creation of anonymous functions which do not | ||
1998 | // have .name set to the name of the variable being assigned to. | ||
1999 | function identity(fn) { | ||
2000 | return fn; | ||
2001 | } | ||
2052 | 2002 | ||
2053 | /** | 2003 | /** |
2054 | * Policies that describe methods in `ReactClassInterface`. | 2004 | * Policies that describe methods in `ReactClassInterface`. |
2055 | */ | 2005 | */ |
2056 | var SpecPolicy = keyMirror({ | 2006 | |
2057 | /** | ||
2058 | * These methods may be defined only once by the class specification or mixin. | ||
2059 | */ | ||
2060 | DEFINE_ONCE: null, | ||
2061 | /** | ||
2062 | * These methods may be defined by both the class specification and mixins. | ||
2063 | * Subsequent definitions will be chained. These methods must return void. | ||
2064 | */ | ||
2065 | DEFINE_MANY: null, | ||
2066 | /** | ||
2067 | * These methods are overriding the base class. | ||
2068 | */ | ||
2069 | OVERRIDE_BASE: null, | ||
2070 | /** | ||
2071 | * These methods are similar to DEFINE_MANY, except we assume they return | ||
2072 | * objects. We try to merge the keys of the return values of all the mixed in | ||
2073 | * functions. If there is a key conflict we throw. | ||
2074 | */ | ||
2075 | DEFINE_MANY_MERGED: null | ||
2076 | }); | ||
2077 | 2007 | ||
2078 | var injectedMixins = []; | 2008 | var injectedMixins = []; |
2079 | 2009 | ||
@@ -2107,7 +2037,7 @@ | |||
2107 | * @type {array} | 2037 | * @type {array} |
2108 | * @optional | 2038 | * @optional |
2109 | */ | 2039 | */ |
2110 | mixins: SpecPolicy.DEFINE_MANY, | 2040 | mixins: 'DEFINE_MANY', |
2111 | 2041 | ||
2112 | /** | 2042 | /** |
2113 | * An object containing properties and methods that should be defined on | 2043 | * An object containing properties and methods that should be defined on |
@@ -2116,7 +2046,7 @@ | |||
2116 | * @type {object} | 2046 | * @type {object} |
2117 | * @optional | 2047 | * @optional |
2118 | */ | 2048 | */ |
2119 | statics: SpecPolicy.DEFINE_MANY, | 2049 | statics: 'DEFINE_MANY', |
2120 | 2050 | ||
2121 | /** | 2051 | /** |
2122 | * Definition of prop types for this component. | 2052 | * Definition of prop types for this component. |
@@ -2124,7 +2054,7 @@ | |||
2124 | * @type {object} | 2054 | * @type {object} |
2125 | * @optional | 2055 | * @optional |
2126 | */ | 2056 | */ |
2127 | propTypes: SpecPolicy.DEFINE_MANY, | 2057 | propTypes: 'DEFINE_MANY', |
2128 | 2058 | ||
2129 | /** | 2059 | /** |
2130 | * Definition of context types for this component. | 2060 | * Definition of context types for this component. |
@@ -2132,7 +2062,7 @@ | |||
2132 | * @type {object} | 2062 | * @type {object} |
2133 | * @optional | 2063 | * @optional |
2134 | */ | 2064 | */ |
2135 | contextTypes: SpecPolicy.DEFINE_MANY, | 2065 | contextTypes: 'DEFINE_MANY', |
2136 | 2066 | ||
2137 | /** | 2067 | /** |
2138 | * Definition of context types this component sets for its children. | 2068 | * Definition of context types this component sets for its children. |
@@ -2140,7 +2070,7 @@ | |||
2140 | * @type {object} | 2070 | * @type {object} |
2141 | * @optional | 2071 | * @optional |
2142 | */ | 2072 | */ |
2143 | childContextTypes: SpecPolicy.DEFINE_MANY, | 2073 | childContextTypes: 'DEFINE_MANY', |
2144 | 2074 | ||
2145 | // ==== Definition methods ==== | 2075 | // ==== Definition methods ==== |
2146 | 2076 | ||
@@ -2154,7 +2084,7 @@ | |||
2154 | * @return {object} | 2084 | * @return {object} |
2155 | * @optional | 2085 | * @optional |
2156 | */ | 2086 | */ |
2157 | getDefaultProps: SpecPolicy.DEFINE_MANY_MERGED, | 2087 | getDefaultProps: 'DEFINE_MANY_MERGED', |
2158 | 2088 | ||
2159 | /** | 2089 | /** |
2160 | * Invoked once before the component is mounted. The return value will be used | 2090 | * Invoked once before the component is mounted. The return value will be used |
@@ -2170,13 +2100,13 @@ | |||
2170 | * @return {object} | 2100 | * @return {object} |
2171 | * @optional | 2101 | * @optional |
2172 | */ | 2102 | */ |
2173 | getInitialState: SpecPolicy.DEFINE_MANY_MERGED, | 2103 | getInitialState: 'DEFINE_MANY_MERGED', |
2174 | 2104 | ||
2175 | /** | 2105 | /** |
2176 | * @return {object} | 2106 | * @return {object} |
2177 | * @optional | 2107 | * @optional |
2178 | */ | 2108 | */ |
2179 | getChildContext: SpecPolicy.DEFINE_MANY_MERGED, | 2109 | getChildContext: 'DEFINE_MANY_MERGED', |
2180 | 2110 | ||
2181 | /** | 2111 | /** |
2182 | * Uses props from `this.props` and state from `this.state` to render the | 2112 | * Uses props from `this.props` and state from `this.state` to render the |
@@ -2194,7 +2124,7 @@ | |||
2194 | * @nosideeffects | 2124 | * @nosideeffects |
2195 | * @required | 2125 | * @required |
2196 | */ | 2126 | */ |
2197 | render: SpecPolicy.DEFINE_ONCE, | 2127 | render: 'DEFINE_ONCE', |
2198 | 2128 | ||
2199 | // ==== Delegate methods ==== | 2129 | // ==== Delegate methods ==== |
2200 | 2130 | ||
@@ -2205,7 +2135,7 @@ | |||
2205 | * | 2135 | * |
2206 | * @optional | 2136 | * @optional |
2207 | */ | 2137 | */ |
2208 | componentWillMount: SpecPolicy.DEFINE_MANY, | 2138 | componentWillMount: 'DEFINE_MANY', |
2209 | 2139 | ||
2210 | /** | 2140 | /** |
2211 | * Invoked when the component has been mounted and has a DOM representation. | 2141 | * Invoked when the component has been mounted and has a DOM representation. |
@@ -2217,7 +2147,7 @@ | |||
2217 | * @param {DOMElement} rootNode DOM element representing the component. | 2147 | * @param {DOMElement} rootNode DOM element representing the component. |
2218 | * @optional | 2148 | * @optional |
2219 | */ | 2149 | */ |
2220 | componentDidMount: SpecPolicy.DEFINE_MANY, | 2150 | componentDidMount: 'DEFINE_MANY', |
2221 | 2151 | ||
2222 | /** | 2152 | /** |
2223 | * Invoked before the component receives new props. | 2153 | * Invoked before the component receives new props. |
@@ -2238,7 +2168,7 @@ | |||
2238 | * @param {object} nextProps | 2168 | * @param {object} nextProps |
2239 | * @optional | 2169 | * @optional |
2240 | */ | 2170 | */ |
2241 | componentWillReceiveProps: SpecPolicy.DEFINE_MANY, | 2171 | componentWillReceiveProps: 'DEFINE_MANY', |
2242 | 2172 | ||
2243 | /** | 2173 | /** |
2244 | * Invoked while deciding if the component should be updated as a result of | 2174 | * Invoked while deciding if the component should be updated as a result of |
@@ -2260,7 +2190,7 @@ | |||
2260 | * @return {boolean} True if the component should update. | 2190 | * @return {boolean} True if the component should update. |
2261 | * @optional | 2191 | * @optional |
2262 | */ | 2192 | */ |
2263 | shouldComponentUpdate: SpecPolicy.DEFINE_ONCE, | 2193 | shouldComponentUpdate: 'DEFINE_ONCE', |
2264 | 2194 | ||
2265 | /** | 2195 | /** |
2266 | * Invoked when the component is about to update due to a transition from | 2196 | * Invoked when the component is about to update due to a transition from |
@@ -2277,7 +2207,7 @@ | |||
2277 | * @param {ReactReconcileTransaction} transaction | 2207 | * @param {ReactReconcileTransaction} transaction |
2278 | * @optional | 2208 | * @optional |
2279 | */ | 2209 | */ |
2280 | componentWillUpdate: SpecPolicy.DEFINE_MANY, | 2210 | componentWillUpdate: 'DEFINE_MANY', |
2281 | 2211 | ||
2282 | /** | 2212 | /** |
2283 | * Invoked when the component's DOM representation has been updated. | 2213 | * Invoked when the component's DOM representation has been updated. |
@@ -2291,7 +2221,7 @@ | |||
2291 | * @param {DOMElement} rootNode DOM element representing the component. | 2221 | * @param {DOMElement} rootNode DOM element representing the component. |
2292 | * @optional | 2222 | * @optional |
2293 | */ | 2223 | */ |
2294 | componentDidUpdate: SpecPolicy.DEFINE_MANY, | 2224 | componentDidUpdate: 'DEFINE_MANY', |
2295 | 2225 | ||
2296 | /** | 2226 | /** |
2297 | * Invoked when the component is about to be removed from its parent and have | 2227 | * Invoked when the component is about to be removed from its parent and have |
@@ -2304,7 +2234,7 @@ | |||
2304 | * | 2234 | * |
2305 | * @optional | 2235 | * @optional |
2306 | */ | 2236 | */ |
2307 | componentWillUnmount: SpecPolicy.DEFINE_MANY, | 2237 | componentWillUnmount: 'DEFINE_MANY', |
2308 | 2238 | ||
2309 | // ==== Advanced methods ==== | 2239 | // ==== Advanced methods ==== |
2310 | 2240 | ||
@@ -2318,7 +2248,7 @@ | |||
2318 | * @internal | 2248 | * @internal |
2319 | * @overridable | 2249 | * @overridable |
2320 | */ | 2250 | */ |
2321 | updateComponent: SpecPolicy.OVERRIDE_BASE | 2251 | updateComponent: 'OVERRIDE_BASE' |
2322 | 2252 | ||
2323 | }; | 2253 | }; |
2324 | 2254 | ||
@@ -2344,13 +2274,13 @@ | |||
2344 | }, | 2274 | }, |
2345 | childContextTypes: function (Constructor, childContextTypes) { | 2275 | childContextTypes: function (Constructor, childContextTypes) { |
2346 | if (process.env.NODE_ENV !== 'production') { | 2276 | if (process.env.NODE_ENV !== 'production') { |
2347 | validateTypeDef(Constructor, childContextTypes, ReactPropTypeLocations.childContext); | 2277 | validateTypeDef(Constructor, childContextTypes, 'childContext'); |
2348 | } | 2278 | } |
2349 | Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes); | 2279 | Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes); |
2350 | }, | 2280 | }, |
2351 | contextTypes: function (Constructor, contextTypes) { | 2281 | contextTypes: function (Constructor, contextTypes) { |
2352 | if (process.env.NODE_ENV !== 'production') { | 2282 | if (process.env.NODE_ENV !== 'production') { |
2353 | validateTypeDef(Constructor, contextTypes, ReactPropTypeLocations.context); | 2283 | validateTypeDef(Constructor, contextTypes, 'context'); |
2354 | } | 2284 | } |
2355 | Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes); | 2285 | Constructor.contextTypes = _assign({}, Constructor.contextTypes, contextTypes); |
2356 | }, | 2286 | }, |
@@ -2367,7 +2297,7 @@ | |||
2367 | }, | 2297 | }, |
2368 | propTypes: function (Constructor, propTypes) { | 2298 | propTypes: function (Constructor, propTypes) { |
2369 | if (process.env.NODE_ENV !== 'production') { | 2299 | if (process.env.NODE_ENV !== 'production') { |
2370 | validateTypeDef(Constructor, propTypes, ReactPropTypeLocations.prop); | 2300 | validateTypeDef(Constructor, propTypes, 'prop'); |
2371 | } | 2301 | } |
2372 | Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); | 2302 | Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); |
2373 | }, | 2303 | }, |
@@ -2376,7 +2306,6 @@ | |||
2376 | }, | 2306 | }, |
2377 | autobind: function () {} }; | 2307 | autobind: function () {} }; |
2378 | 2308 | ||
2379 | // noop | ||
2380 | function validateTypeDef(Constructor, typeDef, location) { | 2309 | function validateTypeDef(Constructor, typeDef, location) { |
2381 | for (var propName in typeDef) { | 2310 | for (var propName in typeDef) { |
2382 | if (typeDef.hasOwnProperty(propName)) { | 2311 | if (typeDef.hasOwnProperty(propName)) { |
@@ -2392,12 +2321,12 @@ | |||
2392 | 2321 | ||
2393 | // Disallow overriding of base class methods unless explicitly allowed. | 2322 | // Disallow overriding of base class methods unless explicitly allowed. |
2394 | if (ReactClassMixin.hasOwnProperty(name)) { | 2323 | if (ReactClassMixin.hasOwnProperty(name)) { |
2395 | !(specPolicy === SpecPolicy.OVERRIDE_BASE) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0; | 2324 | !(specPolicy === 'OVERRIDE_BASE') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.', name) : _prodInvariant('73', name) : void 0; |
2396 | } | 2325 | } |
2397 | 2326 | ||
2398 | // Disallow defining methods more than once unless explicitly allowed. | 2327 | // Disallow defining methods more than once unless explicitly allowed. |
2399 | if (isAlreadyDefined) { | 2328 | if (isAlreadyDefined) { |
2400 | !(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0; | 2329 | !(specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void 0; |
2401 | } | 2330 | } |
2402 | } | 2331 | } |
2403 | 2332 | ||
@@ -2463,13 +2392,13 @@ | |||
2463 | var specPolicy = ReactClassInterface[name]; | 2392 | var specPolicy = ReactClassInterface[name]; |
2464 | 2393 | ||
2465 | // These cases should already be caught by validateMethodOverride. | 2394 | // These cases should already be caught by validateMethodOverride. |
2466 | !(isReactClassMethod && (specPolicy === SpecPolicy.DEFINE_MANY_MERGED || specPolicy === SpecPolicy.DEFINE_MANY)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0; | 2395 | !(isReactClassMethod && (specPolicy === 'DEFINE_MANY_MERGED' || specPolicy === 'DEFINE_MANY')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.', specPolicy, name) : _prodInvariant('77', specPolicy, name) : void 0; |
2467 | 2396 | ||
2468 | // For methods which are defined more than once, call the existing | 2397 | // For methods which are defined more than once, call the existing |
2469 | // methods before calling the new property, merging if appropriate. | 2398 | // methods before calling the new property, merging if appropriate. |
2470 | if (specPolicy === SpecPolicy.DEFINE_MANY_MERGED) { | 2399 | if (specPolicy === 'DEFINE_MANY_MERGED') { |
2471 | proto[name] = createMergedResultFunction(proto[name], property); | 2400 | proto[name] = createMergedResultFunction(proto[name], property); |
2472 | } else if (specPolicy === SpecPolicy.DEFINE_MANY) { | 2401 | } else if (specPolicy === 'DEFINE_MANY') { |
2473 | proto[name] = createChainedFunction(proto[name], property); | 2402 | proto[name] = createChainedFunction(proto[name], property); |
2474 | } | 2403 | } |
2475 | } else { | 2404 | } else { |
@@ -2664,7 +2593,10 @@ | |||
2664 | * @public | 2593 | * @public |
2665 | */ | 2594 | */ |
2666 | createClass: function (spec) { | 2595 | createClass: function (spec) { |
2667 | var Constructor = function (props, context, updater) { | 2596 | // To keep our warnings more understandable, we'll use a little hack here to |
2597 | // ensure that Constructor.name !== 'Constructor'. This makes sure we don't | ||
2598 | // unnecessarily identify a class without displayName as 'Constructor'. | ||
2599 | var Constructor = identity(function (props, context, updater) { | ||
2668 | // This constructor gets overridden by mocks. The argument is used | 2600 | // This constructor gets overridden by mocks. The argument is used |
2669 | // by mocks to assert on what gets mounted. | 2601 | // by mocks to assert on what gets mounted. |
2670 | 2602 | ||
@@ -2699,7 +2631,7 @@ | |||
2699 | !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0; | 2631 | !(typeof initialState === 'object' && !Array.isArray(initialState)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getInitialState(): must return an object or null', Constructor.displayName || 'ReactCompositeComponent') : _prodInvariant('82', Constructor.displayName || 'ReactCompositeComponent') : void 0; |
2700 | 2632 | ||
2701 | this.state = initialState; | 2633 | this.state = initialState; |
2702 | }; | 2634 | }); |
2703 | Constructor.prototype = new ReactClassComponent(); | 2635 | Constructor.prototype = new ReactClassComponent(); |
2704 | Constructor.prototype.constructor = Constructor; | 2636 | Constructor.prototype.constructor = Constructor; |
2705 | Constructor.prototype.__reactAutoBindPairs = []; | 2637 | Constructor.prototype.__reactAutoBindPairs = []; |
@@ -2755,90 +2687,10 @@ | |||
2755 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 2687 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
2756 | 2688 | ||
2757 | /***/ }, | 2689 | /***/ }, |
2758 | /* 24 */ | ||
2759 | /***/ function(module, exports, __webpack_require__) { | ||
2760 | |||
2761 | /** | ||
2762 | * Copyright 2013-present, Facebook, Inc. | ||
2763 | * All rights reserved. | ||
2764 | * | ||
2765 | * This source code is licensed under the BSD-style license found in the | ||
2766 | * LICENSE file in the root directory of this source tree. An additional grant | ||
2767 | * of patent rights can be found in the PATENTS file in the same directory. | ||
2768 | * | ||
2769 | * @providesModule ReactPropTypeLocations | ||
2770 | */ | ||
2771 | |||
2772 | 'use strict'; | ||
2773 | |||
2774 | var keyMirror = __webpack_require__(25); | ||
2775 | |||
2776 | var ReactPropTypeLocations = keyMirror({ | ||
2777 | prop: null, | ||
2778 | context: null, | ||
2779 | childContext: null | ||
2780 | }); | ||
2781 | |||
2782 | module.exports = ReactPropTypeLocations; | ||
2783 | |||
2784 | /***/ }, | ||
2785 | /* 25 */ | 2690 | /* 25 */ |
2786 | /***/ function(module, exports, __webpack_require__) { | 2691 | /***/ function(module, exports, __webpack_require__) { |
2787 | 2692 | ||
2788 | /* WEBPACK VAR INJECTION */(function(process) {/** | 2693 | /* WEBPACK VAR INJECTION */(function(process) {/** |
2789 | * Copyright (c) 2013-present, Facebook, Inc. | ||
2790 | * All rights reserved. | ||
2791 | * | ||
2792 | * This source code is licensed under the BSD-style license found in the | ||
2793 | * LICENSE file in the root directory of this source tree. An additional grant | ||
2794 | * of patent rights can be found in the PATENTS file in the same directory. | ||
2795 | * | ||
2796 | * @typechecks static-only | ||
2797 | */ | ||
2798 | |||
2799 | 'use strict'; | ||
2800 | |||
2801 | var invariant = __webpack_require__(10); | ||
2802 | |||
2803 | /** | ||
2804 | * Constructs an enumeration with keys equal to their value. | ||
2805 | * | ||
2806 | * For example: | ||
2807 | * | ||
2808 | * var COLORS = keyMirror({blue: null, red: null}); | ||
2809 | * var myColor = COLORS.blue; | ||
2810 | * var isColorValid = !!COLORS[myColor]; | ||
2811 | * | ||
2812 | * The last line could not be performed if the values of the generated enum were | ||
2813 | * not equal to their keys. | ||
2814 | * | ||
2815 | * Input: {key1: val1, key2: val2} | ||
2816 | * Output: {key1: key1, key2: key2} | ||
2817 | * | ||
2818 | * @param {object} obj | ||
2819 | * @return {object} | ||
2820 | */ | ||
2821 | var keyMirror = function keyMirror(obj) { | ||
2822 | var ret = {}; | ||
2823 | var key; | ||
2824 | !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0; | ||
2825 | for (key in obj) { | ||
2826 | if (!obj.hasOwnProperty(key)) { | ||
2827 | continue; | ||
2828 | } | ||
2829 | ret[key] = key; | ||
2830 | } | ||
2831 | return ret; | ||
2832 | }; | ||
2833 | |||
2834 | module.exports = keyMirror; | ||
2835 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
2836 | |||
2837 | /***/ }, | ||
2838 | /* 26 */ | ||
2839 | /***/ function(module, exports, __webpack_require__) { | ||
2840 | |||
2841 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
2842 | * Copyright 2013-present, Facebook, Inc. | 2694 | * Copyright 2013-present, Facebook, Inc. |
2843 | * All rights reserved. | 2695 | * All rights reserved. |
2844 | * | 2696 | * |
@@ -2846,7 +2698,7 @@ | |||
2846 | * LICENSE file in the root directory of this source tree. An additional grant | 2698 | * LICENSE file in the root directory of this source tree. An additional grant |
2847 | * of patent rights can be found in the PATENTS file in the same directory. | 2699 | * of patent rights can be found in the PATENTS file in the same directory. |
2848 | * | 2700 | * |
2849 | * @providesModule ReactPropTypeLocationNames | 2701 | * |
2850 | */ | 2702 | */ |
2851 | 2703 | ||
2852 | 'use strict'; | 2704 | 'use strict'; |
@@ -2865,46 +2717,7 @@ | |||
2865 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 2717 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
2866 | 2718 | ||
2867 | /***/ }, | 2719 | /***/ }, |
2868 | /* 27 */ | 2720 | /* 26 */ |
2869 | /***/ function(module, exports) { | ||
2870 | |||
2871 | "use strict"; | ||
2872 | |||
2873 | /** | ||
2874 | * Copyright (c) 2013-present, Facebook, Inc. | ||
2875 | * All rights reserved. | ||
2876 | * | ||
2877 | * This source code is licensed under the BSD-style license found in the | ||
2878 | * LICENSE file in the root directory of this source tree. An additional grant | ||
2879 | * of patent rights can be found in the PATENTS file in the same directory. | ||
2880 | * | ||
2881 | */ | ||
2882 | |||
2883 | /** | ||
2884 | * Allows extraction of a minified key. Let's the build system minify keys | ||
2885 | * without losing the ability to dynamically use key strings as values | ||
2886 | * themselves. Pass in an object with a single key/val pair and it will return | ||
2887 | * you the string key of that single record. Suppose you want to grab the | ||
2888 | * value for a key 'className' inside of an object. Key/val minification may | ||
2889 | * have aliased that key to be 'xa12'. keyOf({className: null}) will return | ||
2890 | * 'xa12' in that case. Resolve keys you want to use once at startup time, then | ||
2891 | * reuse those resolutions. | ||
2892 | */ | ||
2893 | var keyOf = function keyOf(oneKeyObj) { | ||
2894 | var key; | ||
2895 | for (key in oneKeyObj) { | ||
2896 | if (!oneKeyObj.hasOwnProperty(key)) { | ||
2897 | continue; | ||
2898 | } | ||
2899 | return key; | ||
2900 | } | ||
2901 | return null; | ||
2902 | }; | ||
2903 | |||
2904 | module.exports = keyOf; | ||
2905 | |||
2906 | /***/ }, | ||
2907 | /* 28 */ | ||
2908 | /***/ function(module, exports, __webpack_require__) { | 2721 | /***/ function(module, exports, __webpack_require__) { |
2909 | 2722 | ||
2910 | /* WEBPACK VAR INJECTION */(function(process) {/** | 2723 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -2915,7 +2728,6 @@ | |||
2915 | * LICENSE file in the root directory of this source tree. An additional grant | 2728 | * LICENSE file in the root directory of this source tree. An additional grant |
2916 | * of patent rights can be found in the PATENTS file in the same directory. | 2729 | * of patent rights can be found in the PATENTS file in the same directory. |
2917 | * | 2730 | * |
2918 | * @providesModule ReactDOMFactories | ||
2919 | */ | 2731 | */ |
2920 | 2732 | ||
2921 | 'use strict'; | 2733 | 'use strict'; |
@@ -2929,7 +2741,7 @@ | |||
2929 | */ | 2741 | */ |
2930 | var createDOMFactory = ReactElement.createFactory; | 2742 | var createDOMFactory = ReactElement.createFactory; |
2931 | if (process.env.NODE_ENV !== 'production') { | 2743 | if (process.env.NODE_ENV !== 'production') { |
2932 | var ReactElementValidator = __webpack_require__(29); | 2744 | var ReactElementValidator = __webpack_require__(27); |
2933 | createDOMFactory = ReactElementValidator.createFactory; | 2745 | createDOMFactory = ReactElementValidator.createFactory; |
2934 | } | 2746 | } |
2935 | 2747 | ||
@@ -3080,7 +2892,7 @@ | |||
3080 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 2892 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
3081 | 2893 | ||
3082 | /***/ }, | 2894 | /***/ }, |
3083 | /* 29 */ | 2895 | /* 27 */ |
3084 | /***/ function(module, exports, __webpack_require__) { | 2896 | /***/ function(module, exports, __webpack_require__) { |
3085 | 2897 | ||
3086 | /* WEBPACK VAR INJECTION */(function(process) {/** | 2898 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -3091,7 +2903,6 @@ | |||
3091 | * LICENSE file in the root directory of this source tree. An additional grant | 2903 | * LICENSE file in the root directory of this source tree. An additional grant |
3092 | * of patent rights can be found in the PATENTS file in the same directory. | 2904 | * of patent rights can be found in the PATENTS file in the same directory. |
3093 | * | 2905 | * |
3094 | * @providesModule ReactElementValidator | ||
3095 | */ | 2906 | */ |
3096 | 2907 | ||
3097 | /** | 2908 | /** |
@@ -3104,14 +2915,13 @@ | |||
3104 | 'use strict'; | 2915 | 'use strict'; |
3105 | 2916 | ||
3106 | var ReactCurrentOwner = __webpack_require__(12); | 2917 | var ReactCurrentOwner = __webpack_require__(12); |
3107 | var ReactComponentTreeHook = __webpack_require__(30); | 2918 | var ReactComponentTreeHook = __webpack_require__(28); |
3108 | var ReactElement = __webpack_require__(11); | 2919 | var ReactElement = __webpack_require__(11); |
3109 | var ReactPropTypeLocations = __webpack_require__(24); | ||
3110 | 2920 | ||
3111 | var checkReactTypeSpec = __webpack_require__(31); | 2921 | var checkReactTypeSpec = __webpack_require__(29); |
3112 | 2922 | ||
3113 | var canDefineProperty = __webpack_require__(15); | 2923 | var canDefineProperty = __webpack_require__(15); |
3114 | var getIteratorFn = __webpack_require__(17); | 2924 | var getIteratorFn = __webpack_require__(18); |
3115 | var warning = __webpack_require__(13); | 2925 | var warning = __webpack_require__(13); |
3116 | 2926 | ||
3117 | function getDeclarationErrorAddendum() { | 2927 | function getDeclarationErrorAddendum() { |
@@ -3235,7 +3045,7 @@ | |||
3235 | } | 3045 | } |
3236 | var name = componentClass.displayName || componentClass.name; | 3046 | var name = componentClass.displayName || componentClass.name; |
3237 | if (componentClass.propTypes) { | 3047 | if (componentClass.propTypes) { |
3238 | checkReactTypeSpec(componentClass.propTypes, element.props, ReactPropTypeLocations.prop, name, element, null); | 3048 | checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null); |
3239 | } | 3049 | } |
3240 | if (typeof componentClass.getDefaultProps === 'function') { | 3050 | if (typeof componentClass.getDefaultProps === 'function') { |
3241 | process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; | 3051 | process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; |
@@ -3249,7 +3059,14 @@ | |||
3249 | // We warn in this case but don't throw. We expect the element creation to | 3059 | // We warn in this case but don't throw. We expect the element creation to |
3250 | // succeed and there will likely be errors in render. | 3060 | // succeed and there will likely be errors in render. |
3251 | if (!validType) { | 3061 | if (!validType) { |
3252 | process.env.NODE_ENV !== 'production' ? warning(false, 'React.createElement: type should not be null, undefined, boolean, or ' + 'number. It should be a string (for DOM elements) or a ReactClass ' + '(for composite components).%s', getDeclarationErrorAddendum()) : void 0; | 3062 | if (typeof type !== 'function' && typeof type !== 'string') { |
3063 | var info = ''; | ||
3064 | if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { | ||
3065 | info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.'; | ||
3066 | } | ||
3067 | info += getDeclarationErrorAddendum(); | ||
3068 | process.env.NODE_ENV !== 'production' ? warning(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) : void 0; | ||
3069 | } | ||
3253 | } | 3070 | } |
3254 | 3071 | ||
3255 | var element = ReactElement.createElement.apply(this, arguments); | 3072 | var element = ReactElement.createElement.apply(this, arguments); |
@@ -3314,7 +3131,7 @@ | |||
3314 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 3131 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
3315 | 3132 | ||
3316 | /***/ }, | 3133 | /***/ }, |
3317 | /* 30 */ | 3134 | /* 28 */ |
3318 | /***/ function(module, exports, __webpack_require__) { | 3135 | /***/ function(module, exports, __webpack_require__) { |
3319 | 3136 | ||
3320 | /* WEBPACK VAR INJECTION */(function(process) {/** | 3137 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -3325,7 +3142,7 @@ | |||
3325 | * LICENSE file in the root directory of this source tree. An additional grant | 3142 | * LICENSE file in the root directory of this source tree. An additional grant |
3326 | * of patent rights can be found in the PATENTS file in the same directory. | 3143 | * of patent rights can be found in the PATENTS file in the same directory. |
3327 | * | 3144 | * |
3328 | * @providesModule ReactComponentTreeHook | 3145 | * |
3329 | */ | 3146 | */ |
3330 | 3147 | ||
3331 | 'use strict'; | 3148 | 'use strict'; |
@@ -3368,113 +3185,96 @@ | |||
3368 | // Set.prototype.keys | 3185 | // Set.prototype.keys |
3369 | Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys); | 3186 | Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys); |
3370 | 3187 | ||
3371 | var itemMap; | 3188 | var setItem; |
3372 | var rootIDSet; | 3189 | var getItem; |
3373 | 3190 | var removeItem; | |
3374 | var itemByKey; | 3191 | var getItemIDs; |
3375 | var rootByKey; | 3192 | var addRoot; |
3193 | var removeRoot; | ||
3194 | var getRootIDs; | ||
3376 | 3195 | ||
3377 | if (canUseCollections) { | 3196 | if (canUseCollections) { |
3378 | itemMap = new Map(); | 3197 | var itemMap = new Map(); |
3379 | rootIDSet = new Set(); | 3198 | var rootIDSet = new Set(); |
3380 | } else { | ||
3381 | itemByKey = {}; | ||
3382 | rootByKey = {}; | ||
3383 | } | ||
3384 | |||
3385 | var unmountedIDs = []; | ||
3386 | |||
3387 | // Use non-numeric keys to prevent V8 performance issues: | ||
3388 | // https://github.com/facebook/react/pull/7232 | ||
3389 | function getKeyFromID(id) { | ||
3390 | return '.' + id; | ||
3391 | } | ||
3392 | function getIDFromKey(key) { | ||
3393 | return parseInt(key.substr(1), 10); | ||
3394 | } | ||
3395 | 3199 | ||
3396 | function get(id) { | 3200 | setItem = function (id, item) { |
3397 | if (canUseCollections) { | 3201 | itemMap.set(id, item); |
3202 | }; | ||
3203 | getItem = function (id) { | ||
3398 | return itemMap.get(id); | 3204 | return itemMap.get(id); |
3399 | } else { | 3205 | }; |
3400 | var key = getKeyFromID(id); | 3206 | removeItem = function (id) { |
3401 | return itemByKey[key]; | ||
3402 | } | ||
3403 | } | ||
3404 | |||
3405 | function remove(id) { | ||
3406 | if (canUseCollections) { | ||
3407 | itemMap['delete'](id); | 3207 | itemMap['delete'](id); |
3408 | } else { | 3208 | }; |
3409 | var key = getKeyFromID(id); | 3209 | getItemIDs = function () { |
3410 | delete itemByKey[key]; | 3210 | return Array.from(itemMap.keys()); |
3411 | } | 3211 | }; |
3412 | } | ||
3413 | 3212 | ||
3414 | function create(id, element, parentID) { | 3213 | addRoot = function (id) { |
3415 | var item = { | 3214 | rootIDSet.add(id); |
3416 | element: element, | 3215 | }; |
3417 | parentID: parentID, | 3216 | removeRoot = function (id) { |
3418 | text: null, | 3217 | rootIDSet['delete'](id); |
3419 | childIDs: [], | 3218 | }; |
3420 | isMounted: false, | 3219 | getRootIDs = function () { |
3421 | updateCount: 0 | 3220 | return Array.from(rootIDSet.keys()); |
3221 | }; | ||
3222 | } else { | ||
3223 | var itemByKey = {}; | ||
3224 | var rootByKey = {}; | ||
3225 | |||
3226 | // Use non-numeric keys to prevent V8 performance issues: | ||
3227 | // https://github.com/facebook/react/pull/7232 | ||
3228 | var getKeyFromID = function (id) { | ||
3229 | return '.' + id; | ||
3230 | }; | ||
3231 | var getIDFromKey = function (key) { | ||
3232 | return parseInt(key.substr(1), 10); | ||
3422 | }; | 3233 | }; |
3423 | 3234 | ||
3424 | if (canUseCollections) { | 3235 | setItem = function (id, item) { |
3425 | itemMap.set(id, item); | ||
3426 | } else { | ||
3427 | var key = getKeyFromID(id); | 3236 | var key = getKeyFromID(id); |
3428 | itemByKey[key] = item; | 3237 | itemByKey[key] = item; |
3429 | } | 3238 | }; |
3430 | } | 3239 | getItem = function (id) { |
3240 | var key = getKeyFromID(id); | ||
3241 | return itemByKey[key]; | ||
3242 | }; | ||
3243 | removeItem = function (id) { | ||
3244 | var key = getKeyFromID(id); | ||
3245 | delete itemByKey[key]; | ||
3246 | }; | ||
3247 | getItemIDs = function () { | ||
3248 | return Object.keys(itemByKey).map(getIDFromKey); | ||
3249 | }; | ||
3431 | 3250 | ||
3432 | function addRoot(id) { | 3251 | addRoot = function (id) { |
3433 | if (canUseCollections) { | ||
3434 | rootIDSet.add(id); | ||
3435 | } else { | ||
3436 | var key = getKeyFromID(id); | 3252 | var key = getKeyFromID(id); |
3437 | rootByKey[key] = true; | 3253 | rootByKey[key] = true; |
3438 | } | 3254 | }; |
3439 | } | 3255 | removeRoot = function (id) { |
3440 | |||
3441 | function removeRoot(id) { | ||
3442 | if (canUseCollections) { | ||
3443 | rootIDSet['delete'](id); | ||
3444 | } else { | ||
3445 | var key = getKeyFromID(id); | 3256 | var key = getKeyFromID(id); |
3446 | delete rootByKey[key]; | 3257 | delete rootByKey[key]; |
3447 | } | 3258 | }; |
3448 | } | 3259 | getRootIDs = function () { |
3449 | |||
3450 | function getRegisteredIDs() { | ||
3451 | if (canUseCollections) { | ||
3452 | return Array.from(itemMap.keys()); | ||
3453 | } else { | ||
3454 | return Object.keys(itemByKey).map(getIDFromKey); | ||
3455 | } | ||
3456 | } | ||
3457 | |||
3458 | function getRootIDs() { | ||
3459 | if (canUseCollections) { | ||
3460 | return Array.from(rootIDSet.keys()); | ||
3461 | } else { | ||
3462 | return Object.keys(rootByKey).map(getIDFromKey); | 3260 | return Object.keys(rootByKey).map(getIDFromKey); |
3463 | } | 3261 | }; |
3464 | } | 3262 | } |
3465 | 3263 | ||
3264 | var unmountedIDs = []; | ||
3265 | |||
3466 | function purgeDeep(id) { | 3266 | function purgeDeep(id) { |
3467 | var item = get(id); | 3267 | var item = getItem(id); |
3468 | if (item) { | 3268 | if (item) { |
3469 | var childIDs = item.childIDs; | 3269 | var childIDs = item.childIDs; |
3470 | 3270 | ||
3471 | remove(id); | 3271 | removeItem(id); |
3472 | childIDs.forEach(purgeDeep); | 3272 | childIDs.forEach(purgeDeep); |
3473 | } | 3273 | } |
3474 | } | 3274 | } |
3475 | 3275 | ||
3476 | function describeComponentFrame(name, source, ownerName) { | 3276 | function describeComponentFrame(name, source, ownerName) { |
3477 | return '\n in ' + name + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); | 3277 | return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); |
3478 | } | 3278 | } |
3479 | 3279 | ||
3480 | function getDisplayName(element) { | 3280 | function getDisplayName(element) { |
@@ -3503,12 +3303,13 @@ | |||
3503 | 3303 | ||
3504 | var ReactComponentTreeHook = { | 3304 | var ReactComponentTreeHook = { |
3505 | onSetChildren: function (id, nextChildIDs) { | 3305 | onSetChildren: function (id, nextChildIDs) { |
3506 | var item = get(id); | 3306 | var item = getItem(id); |
3307 | !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0; | ||
3507 | item.childIDs = nextChildIDs; | 3308 | item.childIDs = nextChildIDs; |
3508 | 3309 | ||
3509 | for (var i = 0; i < nextChildIDs.length; i++) { | 3310 | for (var i = 0; i < nextChildIDs.length; i++) { |
3510 | var nextChildID = nextChildIDs[i]; | 3311 | var nextChildID = nextChildIDs[i]; |
3511 | var nextChild = get(nextChildID); | 3312 | var nextChild = getItem(nextChildID); |
3512 | !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0; | 3313 | !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0; |
3513 | !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0; | 3314 | !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0; |
3514 | !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0; | 3315 | !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0; |
@@ -3516,16 +3317,24 @@ | |||
3516 | nextChild.parentID = id; | 3317 | nextChild.parentID = id; |
3517 | // TODO: This shouldn't be necessary but mounting a new root during in | 3318 | // TODO: This shouldn't be necessary but mounting a new root during in |
3518 | // componentWillMount currently causes not-yet-mounted components to | 3319 | // componentWillMount currently causes not-yet-mounted components to |
3519 | // be purged from our tree data so their parent ID is missing. | 3320 | // be purged from our tree data so their parent id is missing. |
3520 | } | 3321 | } |
3521 | !(nextChild.parentID === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0; | 3322 | !(nextChild.parentID === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0; |
3522 | } | 3323 | } |
3523 | }, | 3324 | }, |
3524 | onBeforeMountComponent: function (id, element, parentID) { | 3325 | onBeforeMountComponent: function (id, element, parentID) { |
3525 | create(id, element, parentID); | 3326 | var item = { |
3327 | element: element, | ||
3328 | parentID: parentID, | ||
3329 | text: null, | ||
3330 | childIDs: [], | ||
3331 | isMounted: false, | ||
3332 | updateCount: 0 | ||
3333 | }; | ||
3334 | setItem(id, item); | ||
3526 | }, | 3335 | }, |
3527 | onBeforeUpdateComponent: function (id, element) { | 3336 | onBeforeUpdateComponent: function (id, element) { |
3528 | var item = get(id); | 3337 | var item = getItem(id); |
3529 | if (!item || !item.isMounted) { | 3338 | if (!item || !item.isMounted) { |
3530 | // We may end up here as a result of setState() in componentWillUnmount(). | 3339 | // We may end up here as a result of setState() in componentWillUnmount(). |
3531 | // In this case, ignore the element. | 3340 | // In this case, ignore the element. |
@@ -3534,7 +3343,8 @@ | |||
3534 | item.element = element; | 3343 | item.element = element; |
3535 | }, | 3344 | }, |
3536 | onMountComponent: function (id) { | 3345 | onMountComponent: function (id) { |
3537 | var item = get(id); | 3346 | var item = getItem(id); |
3347 | !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0; | ||
3538 | item.isMounted = true; | 3348 | item.isMounted = true; |
3539 | var isRoot = item.parentID === 0; | 3349 | var isRoot = item.parentID === 0; |
3540 | if (isRoot) { | 3350 | if (isRoot) { |
@@ -3542,7 +3352,7 @@ | |||
3542 | } | 3352 | } |
3543 | }, | 3353 | }, |
3544 | onUpdateComponent: function (id) { | 3354 | onUpdateComponent: function (id) { |
3545 | var item = get(id); | 3355 | var item = getItem(id); |
3546 | if (!item || !item.isMounted) { | 3356 | if (!item || !item.isMounted) { |
3547 | // We may end up here as a result of setState() in componentWillUnmount(). | 3357 | // We may end up here as a result of setState() in componentWillUnmount(). |
3548 | // In this case, ignore the element. | 3358 | // In this case, ignore the element. |
@@ -3551,7 +3361,7 @@ | |||
3551 | item.updateCount++; | 3361 | item.updateCount++; |
3552 | }, | 3362 | }, |
3553 | onUnmountComponent: function (id) { | 3363 | onUnmountComponent: function (id) { |
3554 | var item = get(id); | 3364 | var item = getItem(id); |
3555 | if (item) { | 3365 | if (item) { |
3556 | // We need to check if it exists. | 3366 | // We need to check if it exists. |
3557 | // `item` might not exist if it is inside an error boundary, and a sibling | 3367 | // `item` might not exist if it is inside an error boundary, and a sibling |
@@ -3579,16 +3389,15 @@ | |||
3579 | unmountedIDs.length = 0; | 3389 | unmountedIDs.length = 0; |
3580 | }, | 3390 | }, |
3581 | isMounted: function (id) { | 3391 | isMounted: function (id) { |
3582 | var item = get(id); | 3392 | var item = getItem(id); |
3583 | return item ? item.isMounted : false; | 3393 | return item ? item.isMounted : false; |
3584 | }, | 3394 | }, |
3585 | getCurrentStackAddendum: function (topElement) { | 3395 | getCurrentStackAddendum: function (topElement) { |
3586 | var info = ''; | 3396 | var info = ''; |
3587 | if (topElement) { | 3397 | if (topElement) { |
3588 | var type = topElement.type; | 3398 | var name = getDisplayName(topElement); |
3589 | var name = typeof type === 'function' ? type.displayName || type.name : type; | ||
3590 | var owner = topElement._owner; | 3399 | var owner = topElement._owner; |
3591 | info += describeComponentFrame(name || 'Unknown', topElement._source, owner && owner.getName()); | 3400 | info += describeComponentFrame(name, topElement._source, owner && owner.getName()); |
3592 | } | 3401 | } |
3593 | 3402 | ||
3594 | var currentOwner = ReactCurrentOwner.current; | 3403 | var currentOwner = ReactCurrentOwner.current; |
@@ -3606,7 +3415,7 @@ | |||
3606 | return info; | 3415 | return info; |
3607 | }, | 3416 | }, |
3608 | getChildIDs: function (id) { | 3417 | getChildIDs: function (id) { |
3609 | var item = get(id); | 3418 | var item = getItem(id); |
3610 | return item ? item.childIDs : []; | 3419 | return item ? item.childIDs : []; |
3611 | }, | 3420 | }, |
3612 | getDisplayName: function (id) { | 3421 | getDisplayName: function (id) { |
@@ -3617,7 +3426,7 @@ | |||
3617 | return getDisplayName(element); | 3426 | return getDisplayName(element); |
3618 | }, | 3427 | }, |
3619 | getElement: function (id) { | 3428 | getElement: function (id) { |
3620 | var item = get(id); | 3429 | var item = getItem(id); |
3621 | return item ? item.element : null; | 3430 | return item ? item.element : null; |
3622 | }, | 3431 | }, |
3623 | getOwnerID: function (id) { | 3432 | getOwnerID: function (id) { |
@@ -3628,11 +3437,11 @@ | |||
3628 | return element._owner._debugID; | 3437 | return element._owner._debugID; |
3629 | }, | 3438 | }, |
3630 | getParentID: function (id) { | 3439 | getParentID: function (id) { |
3631 | var item = get(id); | 3440 | var item = getItem(id); |
3632 | return item ? item.parentID : null; | 3441 | return item ? item.parentID : null; |
3633 | }, | 3442 | }, |
3634 | getSource: function (id) { | 3443 | getSource: function (id) { |
3635 | var item = get(id); | 3444 | var item = getItem(id); |
3636 | var element = item ? item.element : null; | 3445 | var element = item ? item.element : null; |
3637 | var source = element != null ? element._source : null; | 3446 | var source = element != null ? element._source : null; |
3638 | return source; | 3447 | return source; |
@@ -3648,21 +3457,20 @@ | |||
3648 | } | 3457 | } |
3649 | }, | 3458 | }, |
3650 | getUpdateCount: function (id) { | 3459 | getUpdateCount: function (id) { |
3651 | var item = get(id); | 3460 | var item = getItem(id); |
3652 | return item ? item.updateCount : 0; | 3461 | return item ? item.updateCount : 0; |
3653 | }, | 3462 | }, |
3654 | 3463 | ||
3655 | 3464 | ||
3656 | getRegisteredIDs: getRegisteredIDs, | 3465 | getRootIDs: getRootIDs, |
3657 | 3466 | getRegisteredIDs: getItemIDs | |
3658 | getRootIDs: getRootIDs | ||
3659 | }; | 3467 | }; |
3660 | 3468 | ||
3661 | module.exports = ReactComponentTreeHook; | 3469 | module.exports = ReactComponentTreeHook; |
3662 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 3470 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
3663 | 3471 | ||
3664 | /***/ }, | 3472 | /***/ }, |
3665 | /* 31 */ | 3473 | /* 29 */ |
3666 | /***/ function(module, exports, __webpack_require__) { | 3474 | /***/ function(module, exports, __webpack_require__) { |
3667 | 3475 | ||
3668 | /* WEBPACK VAR INJECTION */(function(process) {/** | 3476 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -3673,15 +3481,14 @@ | |||
3673 | * LICENSE file in the root directory of this source tree. An additional grant | 3481 | * LICENSE file in the root directory of this source tree. An additional grant |
3674 | * of patent rights can be found in the PATENTS file in the same directory. | 3482 | * of patent rights can be found in the PATENTS file in the same directory. |
3675 | * | 3483 | * |
3676 | * @providesModule checkReactTypeSpec | ||
3677 | */ | 3484 | */ |
3678 | 3485 | ||
3679 | 'use strict'; | 3486 | 'use strict'; |
3680 | 3487 | ||
3681 | var _prodInvariant = __webpack_require__(9); | 3488 | var _prodInvariant = __webpack_require__(9); |
3682 | 3489 | ||
3683 | var ReactPropTypeLocationNames = __webpack_require__(26); | 3490 | var ReactPropTypeLocationNames = __webpack_require__(25); |
3684 | var ReactPropTypesSecret = __webpack_require__(32); | 3491 | var ReactPropTypesSecret = __webpack_require__(30); |
3685 | 3492 | ||
3686 | var invariant = __webpack_require__(10); | 3493 | var invariant = __webpack_require__(10); |
3687 | var warning = __webpack_require__(13); | 3494 | var warning = __webpack_require__(13); |
@@ -3694,7 +3501,7 @@ | |||
3694 | // https://github.com/facebook/react/issues/7240 | 3501 | // https://github.com/facebook/react/issues/7240 |
3695 | // Remove the inline requires when we don't need them anymore: | 3502 | // Remove the inline requires when we don't need them anymore: |
3696 | // https://github.com/facebook/react/pull/7178 | 3503 | // https://github.com/facebook/react/pull/7178 |
3697 | ReactComponentTreeHook = __webpack_require__(30); | 3504 | ReactComponentTreeHook = __webpack_require__(28); |
3698 | } | 3505 | } |
3699 | 3506 | ||
3700 | var loggedTypeFailures = {}; | 3507 | var loggedTypeFailures = {}; |
@@ -3736,7 +3543,7 @@ | |||
3736 | 3543 | ||
3737 | if (process.env.NODE_ENV !== 'production') { | 3544 | if (process.env.NODE_ENV !== 'production') { |
3738 | if (!ReactComponentTreeHook) { | 3545 | if (!ReactComponentTreeHook) { |
3739 | ReactComponentTreeHook = __webpack_require__(30); | 3546 | ReactComponentTreeHook = __webpack_require__(28); |
3740 | } | 3547 | } |
3741 | if (debugID !== null) { | 3548 | if (debugID !== null) { |
3742 | componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID); | 3549 | componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID); |
@@ -3755,7 +3562,7 @@ | |||
3755 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 3562 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
3756 | 3563 | ||
3757 | /***/ }, | 3564 | /***/ }, |
3758 | /* 32 */ | 3565 | /* 30 */ |
3759 | /***/ function(module, exports) { | 3566 | /***/ function(module, exports) { |
3760 | 3567 | ||
3761 | /** | 3568 | /** |
@@ -3766,7 +3573,7 @@ | |||
3766 | * LICENSE file in the root directory of this source tree. An additional grant | 3573 | * LICENSE file in the root directory of this source tree. An additional grant |
3767 | * of patent rights can be found in the PATENTS file in the same directory. | 3574 | * of patent rights can be found in the PATENTS file in the same directory. |
3768 | * | 3575 | * |
3769 | * @providesModule ReactPropTypesSecret | 3576 | * |
3770 | */ | 3577 | */ |
3771 | 3578 | ||
3772 | 'use strict'; | 3579 | 'use strict'; |
@@ -3776,7 +3583,7 @@ | |||
3776 | module.exports = ReactPropTypesSecret; | 3583 | module.exports = ReactPropTypesSecret; |
3777 | 3584 | ||
3778 | /***/ }, | 3585 | /***/ }, |
3779 | /* 33 */ | 3586 | /* 31 */ |
3780 | /***/ function(module, exports, __webpack_require__) { | 3587 | /***/ function(module, exports, __webpack_require__) { |
3781 | 3588 | ||
3782 | /* WEBPACK VAR INJECTION */(function(process) {/** | 3589 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -3787,17 +3594,16 @@ | |||
3787 | * LICENSE file in the root directory of this source tree. An additional grant | 3594 | * LICENSE file in the root directory of this source tree. An additional grant |
3788 | * of patent rights can be found in the PATENTS file in the same directory. | 3595 | * of patent rights can be found in the PATENTS file in the same directory. |
3789 | * | 3596 | * |
3790 | * @providesModule ReactPropTypes | ||
3791 | */ | 3597 | */ |
3792 | 3598 | ||
3793 | 'use strict'; | 3599 | 'use strict'; |
3794 | 3600 | ||
3795 | var ReactElement = __webpack_require__(11); | 3601 | var ReactElement = __webpack_require__(11); |
3796 | var ReactPropTypeLocationNames = __webpack_require__(26); | 3602 | var ReactPropTypeLocationNames = __webpack_require__(25); |
3797 | var ReactPropTypesSecret = __webpack_require__(32); | 3603 | var ReactPropTypesSecret = __webpack_require__(30); |
3798 | 3604 | ||
3799 | var emptyFunction = __webpack_require__(14); | 3605 | var emptyFunction = __webpack_require__(14); |
3800 | var getIteratorFn = __webpack_require__(17); | 3606 | var getIteratorFn = __webpack_require__(18); |
3801 | var warning = __webpack_require__(13); | 3607 | var warning = __webpack_require__(13); |
3802 | 3608 | ||
3803 | /** | 3609 | /** |
@@ -3912,7 +3718,7 @@ | |||
3912 | if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') { | 3718 | if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') { |
3913 | var cacheKey = componentName + ':' + propName; | 3719 | var cacheKey = componentName + ':' + propName; |
3914 | if (!manualPropTypeCallCache[cacheKey]) { | 3720 | if (!manualPropTypeCallCache[cacheKey]) { |
3915 | process.env.NODE_ENV !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in the next major version. You may be ' + 'seeing this warning due to a third-party PropTypes library. ' + 'See https://fb.me/react-warning-dont-call-proptypes for details.', propFullName, componentName) : void 0; | 3721 | process.env.NODE_ENV !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0; |
3916 | manualPropTypeCallCache[cacheKey] = true; | 3722 | manualPropTypeCallCache[cacheKey] = true; |
3917 | } | 3723 | } |
3918 | } | 3724 | } |
@@ -3920,7 +3726,10 @@ | |||
3920 | if (props[propName] == null) { | 3726 | if (props[propName] == null) { |
3921 | var locationName = ReactPropTypeLocationNames[location]; | 3727 | var locationName = ReactPropTypeLocationNames[location]; |
3922 | if (isRequired) { | 3728 | if (isRequired) { |
3923 | return new PropTypeError('Required ' + locationName + ' `' + propFullName + '` was not specified in ' + ('`' + componentName + '`.')); | 3729 | if (props[propName] === null) { |
3730 | return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); | ||
3731 | } | ||
3732 | return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); | ||
3924 | } | 3733 | } |
3925 | return null; | 3734 | return null; |
3926 | } else { | 3735 | } else { |
@@ -4213,7 +4022,7 @@ | |||
4213 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 4022 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
4214 | 4023 | ||
4215 | /***/ }, | 4024 | /***/ }, |
4216 | /* 34 */ | 4025 | /* 32 */ |
4217 | /***/ function(module, exports) { | 4026 | /***/ function(module, exports) { |
4218 | 4027 | ||
4219 | /** | 4028 | /** |
@@ -4224,15 +4033,14 @@ | |||
4224 | * LICENSE file in the root directory of this source tree. An additional grant | 4033 | * LICENSE file in the root directory of this source tree. An additional grant |
4225 | * of patent rights can be found in the PATENTS file in the same directory. | 4034 | * of patent rights can be found in the PATENTS file in the same directory. |
4226 | * | 4035 | * |
4227 | * @providesModule ReactVersion | ||
4228 | */ | 4036 | */ |
4229 | 4037 | ||
4230 | 'use strict'; | 4038 | 'use strict'; |
4231 | 4039 | ||
4232 | module.exports = '15.3.2'; | 4040 | module.exports = '15.4.2'; |
4233 | 4041 | ||
4234 | /***/ }, | 4042 | /***/ }, |
4235 | /* 35 */ | 4043 | /* 33 */ |
4236 | /***/ function(module, exports, __webpack_require__) { | 4044 | /***/ function(module, exports, __webpack_require__) { |
4237 | 4045 | ||
4238 | /* WEBPACK VAR INJECTION */(function(process) {/** | 4046 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -4243,7 +4051,6 @@ | |||
4243 | * LICENSE file in the root directory of this source tree. An additional grant | 4051 | * LICENSE file in the root directory of this source tree. An additional grant |
4244 | * of patent rights can be found in the PATENTS file in the same directory. | 4052 | * of patent rights can be found in the PATENTS file in the same directory. |
4245 | * | 4053 | * |
4246 | * @providesModule onlyChild | ||
4247 | */ | 4054 | */ |
4248 | 'use strict'; | 4055 | 'use strict'; |
4249 | 4056 | ||
@@ -4276,16 +4083,16 @@ | |||
4276 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 4083 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
4277 | 4084 | ||
4278 | /***/ }, | 4085 | /***/ }, |
4279 | /* 36 */ | 4086 | /* 34 */ |
4280 | /***/ function(module, exports, __webpack_require__) { | 4087 | /***/ function(module, exports, __webpack_require__) { |
4281 | 4088 | ||
4282 | 'use strict'; | 4089 | 'use strict'; |
4283 | 4090 | ||
4284 | module.exports = __webpack_require__(37); | 4091 | module.exports = __webpack_require__(35); |
4285 | 4092 | ||
4286 | 4093 | ||
4287 | /***/ }, | 4094 | /***/ }, |
4288 | /* 37 */ | 4095 | /* 35 */ |
4289 | /***/ function(module, exports, __webpack_require__) { | 4096 | /***/ function(module, exports, __webpack_require__) { |
4290 | 4097 | ||
4291 | /* WEBPACK VAR INJECTION */(function(process) {/** | 4098 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -4296,23 +4103,22 @@ | |||
4296 | * LICENSE file in the root directory of this source tree. An additional grant | 4103 | * LICENSE file in the root directory of this source tree. An additional grant |
4297 | * of patent rights can be found in the PATENTS file in the same directory. | 4104 | * of patent rights can be found in the PATENTS file in the same directory. |
4298 | * | 4105 | * |
4299 | * @providesModule ReactDOM | ||
4300 | */ | 4106 | */ |
4301 | 4107 | ||
4302 | /* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/ | 4108 | /* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/ |
4303 | 4109 | ||
4304 | 'use strict'; | 4110 | 'use strict'; |
4305 | 4111 | ||
4306 | var ReactDOMComponentTree = __webpack_require__(38); | 4112 | var ReactDOMComponentTree = __webpack_require__(36); |
4307 | var ReactDefaultInjection = __webpack_require__(41); | 4113 | var ReactDefaultInjection = __webpack_require__(40); |
4308 | var ReactMount = __webpack_require__(164); | 4114 | var ReactMount = __webpack_require__(168); |
4309 | var ReactReconciler = __webpack_require__(61); | 4115 | var ReactReconciler = __webpack_require__(61); |
4310 | var ReactUpdates = __webpack_require__(58); | 4116 | var ReactUpdates = __webpack_require__(58); |
4311 | var ReactVersion = __webpack_require__(34); | 4117 | var ReactVersion = __webpack_require__(173); |
4312 | 4118 | ||
4313 | var findDOMNode = __webpack_require__(169); | 4119 | var findDOMNode = __webpack_require__(174); |
4314 | var getHostComponentFromComposite = __webpack_require__(170); | 4120 | var getHostComponentFromComposite = __webpack_require__(175); |
4315 | var renderSubtreeIntoContainer = __webpack_require__(171); | 4121 | var renderSubtreeIntoContainer = __webpack_require__(176); |
4316 | var warning = __webpack_require__(13); | 4122 | var warning = __webpack_require__(13); |
4317 | 4123 | ||
4318 | ReactDefaultInjection.inject(); | 4124 | ReactDefaultInjection.inject(); |
@@ -4330,7 +4136,6 @@ | |||
4330 | 4136 | ||
4331 | // Inject the runtime into a devtools global hook regardless of browser. | 4137 | // Inject the runtime into a devtools global hook regardless of browser. |
4332 | // Allows for debugging when the hook is injected on the page. | 4138 | // Allows for debugging when the hook is injected on the page. |
4333 | /* eslint-enable camelcase */ | ||
4334 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') { | 4139 | if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function') { |
4335 | __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ | 4140 | __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ |
4336 | ComponentTree: { | 4141 | ComponentTree: { |
@@ -4353,7 +4158,7 @@ | |||
4353 | } | 4158 | } |
4354 | 4159 | ||
4355 | if (process.env.NODE_ENV !== 'production') { | 4160 | if (process.env.NODE_ENV !== 'production') { |
4356 | var ExecutionEnvironment = __webpack_require__(51); | 4161 | var ExecutionEnvironment = __webpack_require__(50); |
4357 | if (ExecutionEnvironment.canUseDOM && window.top === window.self) { | 4162 | if (ExecutionEnvironment.canUseDOM && window.top === window.self) { |
4358 | 4163 | ||
4359 | // First check if devtools is not installed | 4164 | // First check if devtools is not installed |
@@ -4377,7 +4182,7 @@ | |||
4377 | 4182 | ||
4378 | var expectedFeatures = [ | 4183 | var expectedFeatures = [ |
4379 | // shims | 4184 | // shims |
4380 | Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.split, String.prototype.trim]; | 4185 | Array.isArray, Array.prototype.every, Array.prototype.forEach, Array.prototype.indexOf, Array.prototype.map, Date.now, Function.prototype.bind, Object.keys, String.prototype.trim]; |
4381 | 4186 | ||
4382 | for (var i = 0; i < expectedFeatures.length; i++) { | 4187 | for (var i = 0; i < expectedFeatures.length; i++) { |
4383 | if (!expectedFeatures[i]) { | 4188 | if (!expectedFeatures[i]) { |
@@ -4390,18 +4195,20 @@ | |||
4390 | 4195 | ||
4391 | if (process.env.NODE_ENV !== 'production') { | 4196 | if (process.env.NODE_ENV !== 'production') { |
4392 | var ReactInstrumentation = __webpack_require__(64); | 4197 | var ReactInstrumentation = __webpack_require__(64); |
4393 | var ReactDOMUnknownPropertyHook = __webpack_require__(172); | 4198 | var ReactDOMUnknownPropertyHook = __webpack_require__(177); |
4394 | var ReactDOMNullInputValuePropHook = __webpack_require__(173); | 4199 | var ReactDOMNullInputValuePropHook = __webpack_require__(178); |
4200 | var ReactDOMInvalidARIAHook = __webpack_require__(179); | ||
4395 | 4201 | ||
4396 | ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook); | 4202 | ReactInstrumentation.debugTool.addHook(ReactDOMUnknownPropertyHook); |
4397 | ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook); | 4203 | ReactInstrumentation.debugTool.addHook(ReactDOMNullInputValuePropHook); |
4204 | ReactInstrumentation.debugTool.addHook(ReactDOMInvalidARIAHook); | ||
4398 | } | 4205 | } |
4399 | 4206 | ||
4400 | module.exports = ReactDOM; | 4207 | module.exports = ReactDOM; |
4401 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 4208 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
4402 | 4209 | ||
4403 | /***/ }, | 4210 | /***/ }, |
4404 | /* 38 */ | 4211 | /* 36 */ |
4405 | /***/ function(module, exports, __webpack_require__) { | 4212 | /***/ function(module, exports, __webpack_require__) { |
4406 | 4213 | ||
4407 | /* WEBPACK VAR INJECTION */(function(process) {/** | 4214 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -4412,15 +4219,14 @@ | |||
4412 | * LICENSE file in the root directory of this source tree. An additional grant | 4219 | * LICENSE file in the root directory of this source tree. An additional grant |
4413 | * of patent rights can be found in the PATENTS file in the same directory. | 4220 | * of patent rights can be found in the PATENTS file in the same directory. |
4414 | * | 4221 | * |
4415 | * @providesModule ReactDOMComponentTree | ||
4416 | */ | 4222 | */ |
4417 | 4223 | ||
4418 | 'use strict'; | 4224 | 'use strict'; |
4419 | 4225 | ||
4420 | var _prodInvariant = __webpack_require__(9); | 4226 | var _prodInvariant = __webpack_require__(37); |
4421 | 4227 | ||
4422 | var DOMProperty = __webpack_require__(39); | 4228 | var DOMProperty = __webpack_require__(38); |
4423 | var ReactDOMComponentFlags = __webpack_require__(40); | 4229 | var ReactDOMComponentFlags = __webpack_require__(39); |
4424 | 4230 | ||
4425 | var invariant = __webpack_require__(10); | 4231 | var invariant = __webpack_require__(10); |
4426 | 4232 | ||
@@ -4430,6 +4236,13 @@ | |||
4430 | var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2); | 4236 | var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2); |
4431 | 4237 | ||
4432 | /** | 4238 | /** |
4239 | * Check if a given node should be cached. | ||
4240 | */ | ||
4241 | function shouldPrecacheNode(node, nodeID) { | ||
4242 | return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' '; | ||
4243 | } | ||
4244 | |||
4245 | /** | ||
4433 | * Drill down (through composites and empty components) until we get a host or | 4246 | * Drill down (through composites and empty components) until we get a host or |
4434 | * host text component. | 4247 | * host text component. |
4435 | * | 4248 | * |
@@ -4494,7 +4307,7 @@ | |||
4494 | } | 4307 | } |
4495 | // We assume the child nodes are in the same order as the child instances. | 4308 | // We assume the child nodes are in the same order as the child instances. |
4496 | for (; childNode !== null; childNode = childNode.nextSibling) { | 4309 | for (; childNode !== null; childNode = childNode.nextSibling) { |
4497 | if (childNode.nodeType === 1 && childNode.getAttribute(ATTR_NAME) === String(childID) || childNode.nodeType === 8 && childNode.nodeValue === ' react-text: ' + childID + ' ' || childNode.nodeType === 8 && childNode.nodeValue === ' react-empty: ' + childID + ' ') { | 4310 | if (shouldPrecacheNode(childNode, childID)) { |
4498 | precacheNode(childInst, childNode); | 4311 | precacheNode(childInst, childNode); |
4499 | continue outer; | 4312 | continue outer; |
4500 | } | 4313 | } |
@@ -4595,7 +4408,9 @@ | |||
4595 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 4408 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
4596 | 4409 | ||
4597 | /***/ }, | 4410 | /***/ }, |
4598 | /* 39 */ | 4411 | /* 37 */ |
4412 | 9, | ||
4413 | /* 38 */ | ||
4599 | /***/ function(module, exports, __webpack_require__) { | 4414 | /***/ function(module, exports, __webpack_require__) { |
4600 | 4415 | ||
4601 | /* WEBPACK VAR INJECTION */(function(process) {/** | 4416 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -4606,12 +4421,11 @@ | |||
4606 | * LICENSE file in the root directory of this source tree. An additional grant | 4421 | * LICENSE file in the root directory of this source tree. An additional grant |
4607 | * of patent rights can be found in the PATENTS file in the same directory. | 4422 | * of patent rights can be found in the PATENTS file in the same directory. |
4608 | * | 4423 | * |
4609 | * @providesModule DOMProperty | ||
4610 | */ | 4424 | */ |
4611 | 4425 | ||
4612 | 'use strict'; | 4426 | 'use strict'; |
4613 | 4427 | ||
4614 | var _prodInvariant = __webpack_require__(9); | 4428 | var _prodInvariant = __webpack_require__(37); |
4615 | 4429 | ||
4616 | var invariant = __webpack_require__(10); | 4430 | var invariant = __webpack_require__(10); |
4617 | 4431 | ||
@@ -4777,9 +4591,13 @@ | |||
4777 | /** | 4591 | /** |
4778 | * Mapping from lowercase property names to the properly cased version, used | 4592 | * Mapping from lowercase property names to the properly cased version, used |
4779 | * to warn in the case of missing properties. Available only in __DEV__. | 4593 | * to warn in the case of missing properties. Available only in __DEV__. |
4594 | * | ||
4595 | * autofocus is predefined, because adding it to the property whitelist | ||
4596 | * causes unintended side effects. | ||
4597 | * | ||
4780 | * @type {Object} | 4598 | * @type {Object} |
4781 | */ | 4599 | */ |
4782 | getPossibleStandardName: process.env.NODE_ENV !== 'production' ? {} : null, | 4600 | getPossibleStandardName: process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null, |
4783 | 4601 | ||
4784 | /** | 4602 | /** |
4785 | * All of the isCustomAttribute() functions that have been injected. | 4603 | * All of the isCustomAttribute() functions that have been injected. |
@@ -4807,7 +4625,7 @@ | |||
4807 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 4625 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
4808 | 4626 | ||
4809 | /***/ }, | 4627 | /***/ }, |
4810 | /* 40 */ | 4628 | /* 39 */ |
4811 | /***/ function(module, exports) { | 4629 | /***/ function(module, exports) { |
4812 | 4630 | ||
4813 | /** | 4631 | /** |
@@ -4818,7 +4636,6 @@ | |||
4818 | * LICENSE file in the root directory of this source tree. An additional grant | 4636 | * LICENSE file in the root directory of this source tree. An additional grant |
4819 | * of patent rights can be found in the PATENTS file in the same directory. | 4637 | * of patent rights can be found in the PATENTS file in the same directory. |
4820 | * | 4638 | * |
4821 | * @providesModule ReactDOMComponentFlags | ||
4822 | */ | 4639 | */ |
4823 | 4640 | ||
4824 | 'use strict'; | 4641 | 'use strict'; |
@@ -4830,7 +4647,7 @@ | |||
4830 | module.exports = ReactDOMComponentFlags; | 4647 | module.exports = ReactDOMComponentFlags; |
4831 | 4648 | ||
4832 | /***/ }, | 4649 | /***/ }, |
4833 | /* 41 */ | 4650 | /* 40 */ |
4834 | /***/ function(module, exports, __webpack_require__) { | 4651 | /***/ function(module, exports, __webpack_require__) { |
4835 | 4652 | ||
4836 | /** | 4653 | /** |
@@ -4841,29 +4658,29 @@ | |||
4841 | * LICENSE file in the root directory of this source tree. An additional grant | 4658 | * LICENSE file in the root directory of this source tree. An additional grant |
4842 | * of patent rights can be found in the PATENTS file in the same directory. | 4659 | * of patent rights can be found in the PATENTS file in the same directory. |
4843 | * | 4660 | * |
4844 | * @providesModule ReactDefaultInjection | ||
4845 | */ | 4661 | */ |
4846 | 4662 | ||
4847 | 'use strict'; | 4663 | 'use strict'; |
4848 | 4664 | ||
4665 | var ARIADOMPropertyConfig = __webpack_require__(41); | ||
4849 | var BeforeInputEventPlugin = __webpack_require__(42); | 4666 | var BeforeInputEventPlugin = __webpack_require__(42); |
4850 | var ChangeEventPlugin = __webpack_require__(57); | 4667 | var ChangeEventPlugin = __webpack_require__(57); |
4851 | var DefaultEventPluginOrder = __webpack_require__(75); | 4668 | var DefaultEventPluginOrder = __webpack_require__(74); |
4852 | var EnterLeaveEventPlugin = __webpack_require__(76); | 4669 | var EnterLeaveEventPlugin = __webpack_require__(75); |
4853 | var HTMLDOMPropertyConfig = __webpack_require__(81); | 4670 | var HTMLDOMPropertyConfig = __webpack_require__(80); |
4854 | var ReactComponentBrowserEnvironment = __webpack_require__(82); | 4671 | var ReactComponentBrowserEnvironment = __webpack_require__(81); |
4855 | var ReactDOMComponent = __webpack_require__(96); | 4672 | var ReactDOMComponent = __webpack_require__(94); |
4856 | var ReactDOMComponentTree = __webpack_require__(38); | 4673 | var ReactDOMComponentTree = __webpack_require__(36); |
4857 | var ReactDOMEmptyComponent = __webpack_require__(135); | 4674 | var ReactDOMEmptyComponent = __webpack_require__(139); |
4858 | var ReactDOMTreeTraversal = __webpack_require__(136); | 4675 | var ReactDOMTreeTraversal = __webpack_require__(140); |
4859 | var ReactDOMTextComponent = __webpack_require__(137); | 4676 | var ReactDOMTextComponent = __webpack_require__(141); |
4860 | var ReactDefaultBatchingStrategy = __webpack_require__(138); | 4677 | var ReactDefaultBatchingStrategy = __webpack_require__(142); |
4861 | var ReactEventListener = __webpack_require__(139); | 4678 | var ReactEventListener = __webpack_require__(143); |
4862 | var ReactInjection = __webpack_require__(142); | 4679 | var ReactInjection = __webpack_require__(146); |
4863 | var ReactReconcileTransaction = __webpack_require__(143); | 4680 | var ReactReconcileTransaction = __webpack_require__(147); |
4864 | var SVGDOMPropertyConfig = __webpack_require__(151); | 4681 | var SVGDOMPropertyConfig = __webpack_require__(155); |
4865 | var SelectEventPlugin = __webpack_require__(152); | 4682 | var SelectEventPlugin = __webpack_require__(156); |
4866 | var SimpleEventPlugin = __webpack_require__(153); | 4683 | var SimpleEventPlugin = __webpack_require__(157); |
4867 | 4684 | ||
4868 | var alreadyInjected = false; | 4685 | var alreadyInjected = false; |
4869 | 4686 | ||
@@ -4901,6 +4718,7 @@ | |||
4901 | 4718 | ||
4902 | ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent); | 4719 | ReactInjection.HostComponent.injectTextComponentClass(ReactDOMTextComponent); |
4903 | 4720 | ||
4721 | ReactInjection.DOMProperty.injectDOMPropertyConfig(ARIADOMPropertyConfig); | ||
4904 | ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig); | 4722 | ReactInjection.DOMProperty.injectDOMPropertyConfig(HTMLDOMPropertyConfig); |
4905 | ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig); | 4723 | ReactInjection.DOMProperty.injectDOMPropertyConfig(SVGDOMPropertyConfig); |
4906 | 4724 | ||
@@ -4919,6 +4737,84 @@ | |||
4919 | }; | 4737 | }; |
4920 | 4738 | ||
4921 | /***/ }, | 4739 | /***/ }, |
4740 | /* 41 */ | ||
4741 | /***/ function(module, exports) { | ||
4742 | |||
4743 | /** | ||
4744 | * Copyright 2013-present, Facebook, Inc. | ||
4745 | * All rights reserved. | ||
4746 | * | ||
4747 | * This source code is licensed under the BSD-style license found in the | ||
4748 | * LICENSE file in the root directory of this source tree. An additional grant | ||
4749 | * of patent rights can be found in the PATENTS file in the same directory. | ||
4750 | * | ||
4751 | */ | ||
4752 | |||
4753 | 'use strict'; | ||
4754 | |||
4755 | var ARIADOMPropertyConfig = { | ||
4756 | Properties: { | ||
4757 | // Global States and Properties | ||
4758 | 'aria-current': 0, // state | ||
4759 | 'aria-details': 0, | ||
4760 | 'aria-disabled': 0, // state | ||
4761 | 'aria-hidden': 0, // state | ||
4762 | 'aria-invalid': 0, // state | ||
4763 | 'aria-keyshortcuts': 0, | ||
4764 | 'aria-label': 0, | ||
4765 | 'aria-roledescription': 0, | ||
4766 | // Widget Attributes | ||
4767 | 'aria-autocomplete': 0, | ||
4768 | 'aria-checked': 0, | ||
4769 | 'aria-expanded': 0, | ||
4770 | 'aria-haspopup': 0, | ||
4771 | 'aria-level': 0, | ||
4772 | 'aria-modal': 0, | ||
4773 | 'aria-multiline': 0, | ||
4774 | 'aria-multiselectable': 0, | ||
4775 | 'aria-orientation': 0, | ||
4776 | 'aria-placeholder': 0, | ||
4777 | 'aria-pressed': 0, | ||
4778 | 'aria-readonly': 0, | ||
4779 | 'aria-required': 0, | ||
4780 | 'aria-selected': 0, | ||
4781 | 'aria-sort': 0, | ||
4782 | 'aria-valuemax': 0, | ||
4783 | 'aria-valuemin': 0, | ||
4784 | 'aria-valuenow': 0, | ||
4785 | 'aria-valuetext': 0, | ||
4786 | // Live Region Attributes | ||
4787 | 'aria-atomic': 0, | ||
4788 | 'aria-busy': 0, | ||
4789 | 'aria-live': 0, | ||
4790 | 'aria-relevant': 0, | ||
4791 | // Drag-and-Drop Attributes | ||
4792 | 'aria-dropeffect': 0, | ||
4793 | 'aria-grabbed': 0, | ||
4794 | // Relationship Attributes | ||
4795 | 'aria-activedescendant': 0, | ||
4796 | 'aria-colcount': 0, | ||
4797 | 'aria-colindex': 0, | ||
4798 | 'aria-colspan': 0, | ||
4799 | 'aria-controls': 0, | ||
4800 | 'aria-describedby': 0, | ||
4801 | 'aria-errormessage': 0, | ||
4802 | 'aria-flowto': 0, | ||
4803 | 'aria-labelledby': 0, | ||
4804 | 'aria-owns': 0, | ||
4805 | 'aria-posinset': 0, | ||
4806 | 'aria-rowcount': 0, | ||
4807 | 'aria-rowindex': 0, | ||
4808 | 'aria-rowspan': 0, | ||
4809 | 'aria-setsize': 0 | ||
4810 | }, | ||
4811 | DOMAttributeNames: {}, | ||
4812 | DOMPropertyNames: {} | ||
4813 | }; | ||
4814 | |||
4815 | module.exports = ARIADOMPropertyConfig; | ||
4816 | |||
4817 | /***/ }, | ||
4922 | /* 42 */ | 4818 | /* 42 */ |
4923 | /***/ function(module, exports, __webpack_require__) { | 4819 | /***/ function(module, exports, __webpack_require__) { |
4924 | 4820 | ||
@@ -4930,20 +4826,16 @@ | |||
4930 | * LICENSE file in the root directory of this source tree. An additional grant | 4826 | * LICENSE file in the root directory of this source tree. An additional grant |
4931 | * of patent rights can be found in the PATENTS file in the same directory. | 4827 | * of patent rights can be found in the PATENTS file in the same directory. |
4932 | * | 4828 | * |
4933 | * @providesModule BeforeInputEventPlugin | ||
4934 | */ | 4829 | */ |
4935 | 4830 | ||
4936 | 'use strict'; | 4831 | 'use strict'; |
4937 | 4832 | ||
4938 | var EventConstants = __webpack_require__(43); | 4833 | var EventPropagators = __webpack_require__(43); |
4939 | var EventPropagators = __webpack_require__(44); | 4834 | var ExecutionEnvironment = __webpack_require__(50); |
4940 | var ExecutionEnvironment = __webpack_require__(51); | 4835 | var FallbackCompositionState = __webpack_require__(51); |
4941 | var FallbackCompositionState = __webpack_require__(52); | ||
4942 | var SyntheticCompositionEvent = __webpack_require__(54); | 4836 | var SyntheticCompositionEvent = __webpack_require__(54); |
4943 | var SyntheticInputEvent = __webpack_require__(56); | 4837 | var SyntheticInputEvent = __webpack_require__(56); |
4944 | 4838 | ||
4945 | var keyOf = __webpack_require__(27); | ||
4946 | |||
4947 | var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space | 4839 | var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space |
4948 | var START_KEYCODE = 229; | 4840 | var START_KEYCODE = 229; |
4949 | 4841 | ||
@@ -4976,37 +4868,35 @@ | |||
4976 | var SPACEBAR_CODE = 32; | 4868 | var SPACEBAR_CODE = 32; |
4977 | var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); | 4869 | var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE); |
4978 | 4870 | ||
4979 | var topLevelTypes = EventConstants.topLevelTypes; | ||
4980 | |||
4981 | // Events and their corresponding property names. | 4871 | // Events and their corresponding property names. |
4982 | var eventTypes = { | 4872 | var eventTypes = { |
4983 | beforeInput: { | 4873 | beforeInput: { |
4984 | phasedRegistrationNames: { | 4874 | phasedRegistrationNames: { |
4985 | bubbled: keyOf({ onBeforeInput: null }), | 4875 | bubbled: 'onBeforeInput', |
4986 | captured: keyOf({ onBeforeInputCapture: null }) | 4876 | captured: 'onBeforeInputCapture' |
4987 | }, | 4877 | }, |
4988 | dependencies: [topLevelTypes.topCompositionEnd, topLevelTypes.topKeyPress, topLevelTypes.topTextInput, topLevelTypes.topPaste] | 4878 | dependencies: ['topCompositionEnd', 'topKeyPress', 'topTextInput', 'topPaste'] |
4989 | }, | 4879 | }, |
4990 | compositionEnd: { | 4880 | compositionEnd: { |
4991 | phasedRegistrationNames: { | 4881 | phasedRegistrationNames: { |
4992 | bubbled: keyOf({ onCompositionEnd: null }), | 4882 | bubbled: 'onCompositionEnd', |
4993 | captured: keyOf({ onCompositionEndCapture: null }) | 4883 | captured: 'onCompositionEndCapture' |
4994 | }, | 4884 | }, |
4995 | dependencies: [topLevelTypes.topBlur, topLevelTypes.topCompositionEnd, topLevelTypes.topKeyDown, topLevelTypes.topKeyPress, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown] | 4885 | dependencies: ['topBlur', 'topCompositionEnd', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown'] |
4996 | }, | 4886 | }, |
4997 | compositionStart: { | 4887 | compositionStart: { |
4998 | phasedRegistrationNames: { | 4888 | phasedRegistrationNames: { |
4999 | bubbled: keyOf({ onCompositionStart: null }), | 4889 | bubbled: 'onCompositionStart', |
5000 | captured: keyOf({ onCompositionStartCapture: null }) | 4890 | captured: 'onCompositionStartCapture' |
5001 | }, | 4891 | }, |
5002 | dependencies: [topLevelTypes.topBlur, topLevelTypes.topCompositionStart, topLevelTypes.topKeyDown, topLevelTypes.topKeyPress, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown] | 4892 | dependencies: ['topBlur', 'topCompositionStart', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown'] |
5003 | }, | 4893 | }, |
5004 | compositionUpdate: { | 4894 | compositionUpdate: { |
5005 | phasedRegistrationNames: { | 4895 | phasedRegistrationNames: { |
5006 | bubbled: keyOf({ onCompositionUpdate: null }), | 4896 | bubbled: 'onCompositionUpdate', |
5007 | captured: keyOf({ onCompositionUpdateCapture: null }) | 4897 | captured: 'onCompositionUpdateCapture' |
5008 | }, | 4898 | }, |
5009 | dependencies: [topLevelTypes.topBlur, topLevelTypes.topCompositionUpdate, topLevelTypes.topKeyDown, topLevelTypes.topKeyPress, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown] | 4899 | dependencies: ['topBlur', 'topCompositionUpdate', 'topKeyDown', 'topKeyPress', 'topKeyUp', 'topMouseDown'] |
5010 | } | 4900 | } |
5011 | }; | 4901 | }; |
5012 | 4902 | ||
@@ -5032,11 +4922,11 @@ | |||
5032 | */ | 4922 | */ |
5033 | function getCompositionEventType(topLevelType) { | 4923 | function getCompositionEventType(topLevelType) { |
5034 | switch (topLevelType) { | 4924 | switch (topLevelType) { |
5035 | case topLevelTypes.topCompositionStart: | 4925 | case 'topCompositionStart': |
5036 | return eventTypes.compositionStart; | 4926 | return eventTypes.compositionStart; |
5037 | case topLevelTypes.topCompositionEnd: | 4927 | case 'topCompositionEnd': |
5038 | return eventTypes.compositionEnd; | 4928 | return eventTypes.compositionEnd; |
5039 | case topLevelTypes.topCompositionUpdate: | 4929 | case 'topCompositionUpdate': |
5040 | return eventTypes.compositionUpdate; | 4930 | return eventTypes.compositionUpdate; |
5041 | } | 4931 | } |
5042 | } | 4932 | } |
@@ -5050,7 +4940,7 @@ | |||
5050 | * @return {boolean} | 4940 | * @return {boolean} |
5051 | */ | 4941 | */ |
5052 | function isFallbackCompositionStart(topLevelType, nativeEvent) { | 4942 | function isFallbackCompositionStart(topLevelType, nativeEvent) { |
5053 | return topLevelType === topLevelTypes.topKeyDown && nativeEvent.keyCode === START_KEYCODE; | 4943 | return topLevelType === 'topKeyDown' && nativeEvent.keyCode === START_KEYCODE; |
5054 | } | 4944 | } |
5055 | 4945 | ||
5056 | /** | 4946 | /** |
@@ -5062,16 +4952,16 @@ | |||
5062 | */ | 4952 | */ |
5063 | function isFallbackCompositionEnd(topLevelType, nativeEvent) { | 4953 | function isFallbackCompositionEnd(topLevelType, nativeEvent) { |
5064 | switch (topLevelType) { | 4954 | switch (topLevelType) { |
5065 | case topLevelTypes.topKeyUp: | 4955 | case 'topKeyUp': |
5066 | // Command keys insert or clear IME input. | 4956 | // Command keys insert or clear IME input. |
5067 | return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; | 4957 | return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1; |
5068 | case topLevelTypes.topKeyDown: | 4958 | case 'topKeyDown': |
5069 | // Expect IME keyCode on each keydown. If we get any other | 4959 | // Expect IME keyCode on each keydown. If we get any other |
5070 | // code we must have exited earlier. | 4960 | // code we must have exited earlier. |
5071 | return nativeEvent.keyCode !== START_KEYCODE; | 4961 | return nativeEvent.keyCode !== START_KEYCODE; |
5072 | case topLevelTypes.topKeyPress: | 4962 | case 'topKeyPress': |
5073 | case topLevelTypes.topMouseDown: | 4963 | case 'topMouseDown': |
5074 | case topLevelTypes.topBlur: | 4964 | case 'topBlur': |
5075 | // Events are not possible without cancelling IME. | 4965 | // Events are not possible without cancelling IME. |
5076 | return true; | 4966 | return true; |
5077 | default: | 4967 | default: |
@@ -5156,9 +5046,9 @@ | |||
5156 | */ | 5046 | */ |
5157 | function getNativeBeforeInputChars(topLevelType, nativeEvent) { | 5047 | function getNativeBeforeInputChars(topLevelType, nativeEvent) { |
5158 | switch (topLevelType) { | 5048 | switch (topLevelType) { |
5159 | case topLevelTypes.topCompositionEnd: | 5049 | case 'topCompositionEnd': |
5160 | return getDataFromCustomEvent(nativeEvent); | 5050 | return getDataFromCustomEvent(nativeEvent); |
5161 | case topLevelTypes.topKeyPress: | 5051 | case 'topKeyPress': |
5162 | /** | 5052 | /** |
5163 | * If native `textInput` events are available, our goal is to make | 5053 | * If native `textInput` events are available, our goal is to make |
5164 | * use of them. However, there is a special case: the spacebar key. | 5054 | * use of them. However, there is a special case: the spacebar key. |
@@ -5181,7 +5071,7 @@ | |||
5181 | hasSpaceKeypress = true; | 5071 | hasSpaceKeypress = true; |
5182 | return SPACEBAR_CHAR; | 5072 | return SPACEBAR_CHAR; |
5183 | 5073 | ||
5184 | case topLevelTypes.topTextInput: | 5074 | case 'topTextInput': |
5185 | // Record the characters to be added to the DOM. | 5075 | // Record the characters to be added to the DOM. |
5186 | var chars = nativeEvent.data; | 5076 | var chars = nativeEvent.data; |
5187 | 5077 | ||
@@ -5214,7 +5104,7 @@ | |||
5214 | // If composition event is available, we extract a string only at | 5104 | // If composition event is available, we extract a string only at |
5215 | // compositionevent, otherwise extract it at fallback events. | 5105 | // compositionevent, otherwise extract it at fallback events. |
5216 | if (currentComposition) { | 5106 | if (currentComposition) { |
5217 | if (topLevelType === topLevelTypes.topCompositionEnd || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { | 5107 | if (topLevelType === 'topCompositionEnd' || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { |
5218 | var chars = currentComposition.getData(); | 5108 | var chars = currentComposition.getData(); |
5219 | FallbackCompositionState.release(currentComposition); | 5109 | FallbackCompositionState.release(currentComposition); |
5220 | currentComposition = null; | 5110 | currentComposition = null; |
@@ -5224,11 +5114,11 @@ | |||
5224 | } | 5114 | } |
5225 | 5115 | ||
5226 | switch (topLevelType) { | 5116 | switch (topLevelType) { |
5227 | case topLevelTypes.topPaste: | 5117 | case 'topPaste': |
5228 | // If a paste event occurs after a keypress, throw out the input | 5118 | // If a paste event occurs after a keypress, throw out the input |
5229 | // chars. Paste events should not lead to BeforeInput events. | 5119 | // chars. Paste events should not lead to BeforeInput events. |
5230 | return null; | 5120 | return null; |
5231 | case topLevelTypes.topKeyPress: | 5121 | case 'topKeyPress': |
5232 | /** | 5122 | /** |
5233 | * As of v27, Firefox may fire keypress events even when no character | 5123 | * As of v27, Firefox may fire keypress events even when no character |
5234 | * will be inserted. A few possibilities: | 5124 | * will be inserted. A few possibilities: |
@@ -5249,7 +5139,7 @@ | |||
5249 | return String.fromCharCode(nativeEvent.which); | 5139 | return String.fromCharCode(nativeEvent.which); |
5250 | } | 5140 | } |
5251 | return null; | 5141 | return null; |
5252 | case topLevelTypes.topCompositionEnd: | 5142 | case 'topCompositionEnd': |
5253 | return useFallbackCompositionData ? null : nativeEvent.data; | 5143 | return useFallbackCompositionData ? null : nativeEvent.data; |
5254 | default: | 5144 | default: |
5255 | return null; | 5145 | return null; |
@@ -5317,108 +5207,6 @@ | |||
5317 | /* 43 */ | 5207 | /* 43 */ |
5318 | /***/ function(module, exports, __webpack_require__) { | 5208 | /***/ function(module, exports, __webpack_require__) { |
5319 | 5209 | ||
5320 | /** | ||
5321 | * Copyright 2013-present, Facebook, Inc. | ||
5322 | * All rights reserved. | ||
5323 | * | ||
5324 | * This source code is licensed under the BSD-style license found in the | ||
5325 | * LICENSE file in the root directory of this source tree. An additional grant | ||
5326 | * of patent rights can be found in the PATENTS file in the same directory. | ||
5327 | * | ||
5328 | * @providesModule EventConstants | ||
5329 | */ | ||
5330 | |||
5331 | 'use strict'; | ||
5332 | |||
5333 | var keyMirror = __webpack_require__(25); | ||
5334 | |||
5335 | var PropagationPhases = keyMirror({ bubbled: null, captured: null }); | ||
5336 | |||
5337 | /** | ||
5338 | * Types of raw signals from the browser caught at the top level. | ||
5339 | */ | ||
5340 | var topLevelTypes = keyMirror({ | ||
5341 | topAbort: null, | ||
5342 | topAnimationEnd: null, | ||
5343 | topAnimationIteration: null, | ||
5344 | topAnimationStart: null, | ||
5345 | topBlur: null, | ||
5346 | topCanPlay: null, | ||
5347 | topCanPlayThrough: null, | ||
5348 | topChange: null, | ||
5349 | topClick: null, | ||
5350 | topCompositionEnd: null, | ||
5351 | topCompositionStart: null, | ||
5352 | topCompositionUpdate: null, | ||
5353 | topContextMenu: null, | ||
5354 | topCopy: null, | ||
5355 | topCut: null, | ||
5356 | topDoubleClick: null, | ||
5357 | topDrag: null, | ||
5358 | topDragEnd: null, | ||
5359 | topDragEnter: null, | ||
5360 | topDragExit: null, | ||
5361 | topDragLeave: null, | ||
5362 | topDragOver: null, | ||
5363 | topDragStart: null, | ||
5364 | topDrop: null, | ||
5365 | topDurationChange: null, | ||
5366 | topEmptied: null, | ||
5367 | topEncrypted: null, | ||
5368 | topEnded: null, | ||
5369 | topError: null, | ||
5370 | topFocus: null, | ||
5371 | topInput: null, | ||
5372 | topInvalid: null, | ||
5373 | topKeyDown: null, | ||
5374 | topKeyPress: null, | ||
5375 | topKeyUp: null, | ||
5376 | topLoad: null, | ||
5377 | topLoadedData: null, | ||
5378 | topLoadedMetadata: null, | ||
5379 | topLoadStart: null, | ||
5380 | topMouseDown: null, | ||
5381 | topMouseMove: null, | ||
5382 | topMouseOut: null, | ||
5383 | topMouseOver: null, | ||
5384 | topMouseUp: null, | ||
5385 | topPaste: null, | ||
5386 | topPause: null, | ||
5387 | topPlay: null, | ||
5388 | topPlaying: null, | ||
5389 | topProgress: null, | ||
5390 | topRateChange: null, | ||
5391 | topReset: null, | ||
5392 | topScroll: null, | ||
5393 | topSeeked: null, | ||
5394 | topSeeking: null, | ||
5395 | topSelectionChange: null, | ||
5396 | topStalled: null, | ||
5397 | topSubmit: null, | ||
5398 | topSuspend: null, | ||
5399 | topTextInput: null, | ||
5400 | topTimeUpdate: null, | ||
5401 | topTouchCancel: null, | ||
5402 | topTouchEnd: null, | ||
5403 | topTouchMove: null, | ||
5404 | topTouchStart: null, | ||
5405 | topTransitionEnd: null, | ||
5406 | topVolumeChange: null, | ||
5407 | topWaiting: null, | ||
5408 | topWheel: null | ||
5409 | }); | ||
5410 | |||
5411 | var EventConstants = { | ||
5412 | topLevelTypes: topLevelTypes, | ||
5413 | PropagationPhases: PropagationPhases | ||
5414 | }; | ||
5415 | |||
5416 | module.exports = EventConstants; | ||
5417 | |||
5418 | /***/ }, | ||
5419 | /* 44 */ | ||
5420 | /***/ function(module, exports, __webpack_require__) { | ||
5421 | |||
5422 | /* WEBPACK VAR INJECTION */(function(process) {/** | 5210 | /* WEBPACK VAR INJECTION */(function(process) {/** |
5423 | * Copyright 2013-present, Facebook, Inc. | 5211 | * Copyright 2013-present, Facebook, Inc. |
5424 | * All rights reserved. | 5212 | * All rights reserved. |
@@ -5427,20 +5215,17 @@ | |||
5427 | * LICENSE file in the root directory of this source tree. An additional grant | 5215 | * LICENSE file in the root directory of this source tree. An additional grant |
5428 | * of patent rights can be found in the PATENTS file in the same directory. | 5216 | * of patent rights can be found in the PATENTS file in the same directory. |
5429 | * | 5217 | * |
5430 | * @providesModule EventPropagators | ||
5431 | */ | 5218 | */ |
5432 | 5219 | ||
5433 | 'use strict'; | 5220 | 'use strict'; |
5434 | 5221 | ||
5435 | var EventConstants = __webpack_require__(43); | 5222 | var EventPluginHub = __webpack_require__(44); |
5436 | var EventPluginHub = __webpack_require__(45); | 5223 | var EventPluginUtils = __webpack_require__(46); |
5437 | var EventPluginUtils = __webpack_require__(47); | ||
5438 | 5224 | ||
5439 | var accumulateInto = __webpack_require__(49); | 5225 | var accumulateInto = __webpack_require__(48); |
5440 | var forEachAccumulated = __webpack_require__(50); | 5226 | var forEachAccumulated = __webpack_require__(49); |
5441 | var warning = __webpack_require__(13); | 5227 | var warning = __webpack_require__(13); |
5442 | 5228 | ||
5443 | var PropagationPhases = EventConstants.PropagationPhases; | ||
5444 | var getListener = EventPluginHub.getListener; | 5229 | var getListener = EventPluginHub.getListener; |
5445 | 5230 | ||
5446 | /** | 5231 | /** |
@@ -5458,11 +5243,10 @@ | |||
5458 | * Mutating the event's members allows us to not have to create a wrapping | 5243 | * Mutating the event's members allows us to not have to create a wrapping |
5459 | * "dispatch" object that pairs the event with the listener. | 5244 | * "dispatch" object that pairs the event with the listener. |
5460 | */ | 5245 | */ |
5461 | function accumulateDirectionalDispatches(inst, upwards, event) { | 5246 | function accumulateDirectionalDispatches(inst, phase, event) { |
5462 | if (process.env.NODE_ENV !== 'production') { | 5247 | if (process.env.NODE_ENV !== 'production') { |
5463 | process.env.NODE_ENV !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0; | 5248 | process.env.NODE_ENV !== 'production' ? warning(inst, 'Dispatching inst must not be null') : void 0; |
5464 | } | 5249 | } |
5465 | var phase = upwards ? PropagationPhases.bubbled : PropagationPhases.captured; | ||
5466 | var listener = listenerAtPhase(inst, event, phase); | 5250 | var listener = listenerAtPhase(inst, event, phase); |
5467 | if (listener) { | 5251 | if (listener) { |
5468 | event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); | 5252 | event._dispatchListeners = accumulateInto(event._dispatchListeners, listener); |
@@ -5559,7 +5343,7 @@ | |||
5559 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 5343 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
5560 | 5344 | ||
5561 | /***/ }, | 5345 | /***/ }, |
5562 | /* 45 */ | 5346 | /* 44 */ |
5563 | /***/ function(module, exports, __webpack_require__) { | 5347 | /***/ function(module, exports, __webpack_require__) { |
5564 | 5348 | ||
5565 | /* WEBPACK VAR INJECTION */(function(process) {/** | 5349 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -5570,19 +5354,18 @@ | |||
5570 | * LICENSE file in the root directory of this source tree. An additional grant | 5354 | * LICENSE file in the root directory of this source tree. An additional grant |
5571 | * of patent rights can be found in the PATENTS file in the same directory. | 5355 | * of patent rights can be found in the PATENTS file in the same directory. |
5572 | * | 5356 | * |
5573 | * @providesModule EventPluginHub | ||
5574 | */ | 5357 | */ |
5575 | 5358 | ||
5576 | 'use strict'; | 5359 | 'use strict'; |
5577 | 5360 | ||
5578 | var _prodInvariant = __webpack_require__(9); | 5361 | var _prodInvariant = __webpack_require__(37); |
5579 | 5362 | ||
5580 | var EventPluginRegistry = __webpack_require__(46); | 5363 | var EventPluginRegistry = __webpack_require__(45); |
5581 | var EventPluginUtils = __webpack_require__(47); | 5364 | var EventPluginUtils = __webpack_require__(46); |
5582 | var ReactErrorUtils = __webpack_require__(48); | 5365 | var ReactErrorUtils = __webpack_require__(47); |
5583 | 5366 | ||
5584 | var accumulateInto = __webpack_require__(49); | 5367 | var accumulateInto = __webpack_require__(48); |
5585 | var forEachAccumulated = __webpack_require__(50); | 5368 | var forEachAccumulated = __webpack_require__(49); |
5586 | var invariant = __webpack_require__(10); | 5369 | var invariant = __webpack_require__(10); |
5587 | 5370 | ||
5588 | /** | 5371 | /** |
@@ -5625,6 +5408,28 @@ | |||
5625 | return '.' + inst._rootNodeID; | 5408 | return '.' + inst._rootNodeID; |
5626 | }; | 5409 | }; |
5627 | 5410 | ||
5411 | function isInteractive(tag) { | ||
5412 | return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; | ||
5413 | } | ||
5414 | |||
5415 | function shouldPreventMouseEvent(name, type, props) { | ||
5416 | switch (name) { | ||
5417 | case 'onClick': | ||
5418 | case 'onClickCapture': | ||
5419 | case 'onDoubleClick': | ||
5420 | case 'onDoubleClickCapture': | ||
5421 | case 'onMouseDown': | ||
5422 | case 'onMouseDownCapture': | ||
5423 | case 'onMouseMove': | ||
5424 | case 'onMouseMoveCapture': | ||
5425 | case 'onMouseUp': | ||
5426 | case 'onMouseUpCapture': | ||
5427 | return !!(props.disabled && isInteractive(type)); | ||
5428 | default: | ||
5429 | return false; | ||
5430 | } | ||
5431 | } | ||
5432 | |||
5628 | /** | 5433 | /** |
5629 | * This is a unified interface for event plugins to be installed and configured. | 5434 | * This is a unified interface for event plugins to be installed and configured. |
5630 | * | 5435 | * |
@@ -5693,7 +5498,12 @@ | |||
5693 | * @return {?function} The stored callback. | 5498 | * @return {?function} The stored callback. |
5694 | */ | 5499 | */ |
5695 | getListener: function (inst, registrationName) { | 5500 | getListener: function (inst, registrationName) { |
5501 | // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not | ||
5502 | // live here; needs to be moved to a better place soon | ||
5696 | var bankForRegistrationName = listenerBank[registrationName]; | 5503 | var bankForRegistrationName = listenerBank[registrationName]; |
5504 | if (shouldPreventMouseEvent(registrationName, inst._currentElement.type, inst._currentElement.props)) { | ||
5505 | return null; | ||
5506 | } | ||
5697 | var key = getDictionaryKey(inst); | 5507 | var key = getDictionaryKey(inst); |
5698 | return bankForRegistrationName && bankForRegistrationName[key]; | 5508 | return bankForRegistrationName && bankForRegistrationName[key]; |
5699 | }, | 5509 | }, |
@@ -5816,7 +5626,7 @@ | |||
5816 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 5626 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
5817 | 5627 | ||
5818 | /***/ }, | 5628 | /***/ }, |
5819 | /* 46 */ | 5629 | /* 45 */ |
5820 | /***/ function(module, exports, __webpack_require__) { | 5630 | /***/ function(module, exports, __webpack_require__) { |
5821 | 5631 | ||
5822 | /* WEBPACK VAR INJECTION */(function(process) {/** | 5632 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -5827,19 +5637,19 @@ | |||
5827 | * LICENSE file in the root directory of this source tree. An additional grant | 5637 | * LICENSE file in the root directory of this source tree. An additional grant |
5828 | * of patent rights can be found in the PATENTS file in the same directory. | 5638 | * of patent rights can be found in the PATENTS file in the same directory. |
5829 | * | 5639 | * |
5830 | * @providesModule EventPluginRegistry | 5640 | * |
5831 | */ | 5641 | */ |
5832 | 5642 | ||
5833 | 'use strict'; | 5643 | 'use strict'; |
5834 | 5644 | ||
5835 | var _prodInvariant = __webpack_require__(9); | 5645 | var _prodInvariant = __webpack_require__(37); |
5836 | 5646 | ||
5837 | var invariant = __webpack_require__(10); | 5647 | var invariant = __webpack_require__(10); |
5838 | 5648 | ||
5839 | /** | 5649 | /** |
5840 | * Injectable ordering of event plugins. | 5650 | * Injectable ordering of event plugins. |
5841 | */ | 5651 | */ |
5842 | var EventPluginOrder = null; | 5652 | var eventPluginOrder = null; |
5843 | 5653 | ||
5844 | /** | 5654 | /** |
5845 | * Injectable mapping from names to event plugin modules. | 5655 | * Injectable mapping from names to event plugin modules. |
@@ -5852,22 +5662,22 @@ | |||
5852 | * @private | 5662 | * @private |
5853 | */ | 5663 | */ |
5854 | function recomputePluginOrdering() { | 5664 | function recomputePluginOrdering() { |
5855 | if (!EventPluginOrder) { | 5665 | if (!eventPluginOrder) { |
5856 | // Wait until an `EventPluginOrder` is injected. | 5666 | // Wait until an `eventPluginOrder` is injected. |
5857 | return; | 5667 | return; |
5858 | } | 5668 | } |
5859 | for (var pluginName in namesToPlugins) { | 5669 | for (var pluginName in namesToPlugins) { |
5860 | var PluginModule = namesToPlugins[pluginName]; | 5670 | var pluginModule = namesToPlugins[pluginName]; |
5861 | var pluginIndex = EventPluginOrder.indexOf(pluginName); | 5671 | var pluginIndex = eventPluginOrder.indexOf(pluginName); |
5862 | !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0; | 5672 | !(pluginIndex > -1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.', pluginName) : _prodInvariant('96', pluginName) : void 0; |
5863 | if (EventPluginRegistry.plugins[pluginIndex]) { | 5673 | if (EventPluginRegistry.plugins[pluginIndex]) { |
5864 | continue; | 5674 | continue; |
5865 | } | 5675 | } |
5866 | !PluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0; | 5676 | !pluginModule.extractEvents ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.', pluginName) : _prodInvariant('97', pluginName) : void 0; |
5867 | EventPluginRegistry.plugins[pluginIndex] = PluginModule; | 5677 | EventPluginRegistry.plugins[pluginIndex] = pluginModule; |
5868 | var publishedEvents = PluginModule.eventTypes; | 5678 | var publishedEvents = pluginModule.eventTypes; |
5869 | for (var eventName in publishedEvents) { | 5679 | for (var eventName in publishedEvents) { |
5870 | !publishEventForPlugin(publishedEvents[eventName], PluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0; | 5680 | !publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.', eventName, pluginName) : _prodInvariant('98', eventName, pluginName) : void 0; |
5871 | } | 5681 | } |
5872 | } | 5682 | } |
5873 | } | 5683 | } |
@@ -5880,7 +5690,7 @@ | |||
5880 | * @return {boolean} True if the event was successfully published. | 5690 | * @return {boolean} True if the event was successfully published. |
5881 | * @private | 5691 | * @private |
5882 | */ | 5692 | */ |
5883 | function publishEventForPlugin(dispatchConfig, PluginModule, eventName) { | 5693 | function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { |
5884 | !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0; | 5694 | !!EventPluginRegistry.eventNameDispatchConfigs.hasOwnProperty(eventName) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.', eventName) : _prodInvariant('99', eventName) : void 0; |
5885 | EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig; | 5695 | EventPluginRegistry.eventNameDispatchConfigs[eventName] = dispatchConfig; |
5886 | 5696 | ||
@@ -5889,12 +5699,12 @@ | |||
5889 | for (var phaseName in phasedRegistrationNames) { | 5699 | for (var phaseName in phasedRegistrationNames) { |
5890 | if (phasedRegistrationNames.hasOwnProperty(phaseName)) { | 5700 | if (phasedRegistrationNames.hasOwnProperty(phaseName)) { |
5891 | var phasedRegistrationName = phasedRegistrationNames[phaseName]; | 5701 | var phasedRegistrationName = phasedRegistrationNames[phaseName]; |
5892 | publishRegistrationName(phasedRegistrationName, PluginModule, eventName); | 5702 | publishRegistrationName(phasedRegistrationName, pluginModule, eventName); |
5893 | } | 5703 | } |
5894 | } | 5704 | } |
5895 | return true; | 5705 | return true; |
5896 | } else if (dispatchConfig.registrationName) { | 5706 | } else if (dispatchConfig.registrationName) { |
5897 | publishRegistrationName(dispatchConfig.registrationName, PluginModule, eventName); | 5707 | publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); |
5898 | return true; | 5708 | return true; |
5899 | } | 5709 | } |
5900 | return false; | 5710 | return false; |
@@ -5908,10 +5718,10 @@ | |||
5908 | * @param {object} PluginModule Plugin publishing the event. | 5718 | * @param {object} PluginModule Plugin publishing the event. |
5909 | * @private | 5719 | * @private |
5910 | */ | 5720 | */ |
5911 | function publishRegistrationName(registrationName, PluginModule, eventName) { | 5721 | function publishRegistrationName(registrationName, pluginModule, eventName) { |
5912 | !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0; | 5722 | !!EventPluginRegistry.registrationNameModules[registrationName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.', registrationName) : _prodInvariant('100', registrationName) : void 0; |
5913 | EventPluginRegistry.registrationNameModules[registrationName] = PluginModule; | 5723 | EventPluginRegistry.registrationNameModules[registrationName] = pluginModule; |
5914 | EventPluginRegistry.registrationNameDependencies[registrationName] = PluginModule.eventTypes[eventName].dependencies; | 5724 | EventPluginRegistry.registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; |
5915 | 5725 | ||
5916 | if (process.env.NODE_ENV !== 'production') { | 5726 | if (process.env.NODE_ENV !== 'production') { |
5917 | var lowerCasedName = registrationName.toLowerCase(); | 5727 | var lowerCasedName = registrationName.toLowerCase(); |
@@ -5957,6 +5767,7 @@ | |||
5957 | * @type {Object} | 5767 | * @type {Object} |
5958 | */ | 5768 | */ |
5959 | possibleRegistrationNames: process.env.NODE_ENV !== 'production' ? {} : null, | 5769 | possibleRegistrationNames: process.env.NODE_ENV !== 'production' ? {} : null, |
5770 | // Trust the developer to only use possibleRegistrationNames in __DEV__ | ||
5960 | 5771 | ||
5961 | /** | 5772 | /** |
5962 | * Injects an ordering of plugins (by plugin name). This allows the ordering | 5773 | * Injects an ordering of plugins (by plugin name). This allows the ordering |
@@ -5967,10 +5778,10 @@ | |||
5967 | * @internal | 5778 | * @internal |
5968 | * @see {EventPluginHub.injection.injectEventPluginOrder} | 5779 | * @see {EventPluginHub.injection.injectEventPluginOrder} |
5969 | */ | 5780 | */ |
5970 | injectEventPluginOrder: function (InjectedEventPluginOrder) { | 5781 | injectEventPluginOrder: function (injectedEventPluginOrder) { |
5971 | !!EventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0; | 5782 | !!eventPluginOrder ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.') : _prodInvariant('101') : void 0; |
5972 | // Clone the ordering so it cannot be dynamically mutated. | 5783 | // Clone the ordering so it cannot be dynamically mutated. |
5973 | EventPluginOrder = Array.prototype.slice.call(InjectedEventPluginOrder); | 5784 | eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); |
5974 | recomputePluginOrdering(); | 5785 | recomputePluginOrdering(); |
5975 | }, | 5786 | }, |
5976 | 5787 | ||
@@ -5990,10 +5801,10 @@ | |||
5990 | if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { | 5801 | if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { |
5991 | continue; | 5802 | continue; |
5992 | } | 5803 | } |
5993 | var PluginModule = injectedNamesToPlugins[pluginName]; | 5804 | var pluginModule = injectedNamesToPlugins[pluginName]; |
5994 | if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== PluginModule) { | 5805 | if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { |
5995 | !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0; | 5806 | !!namesToPlugins[pluginName] ? process.env.NODE_ENV !== 'production' ? invariant(false, 'EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.', pluginName) : _prodInvariant('102', pluginName) : void 0; |
5996 | namesToPlugins[pluginName] = PluginModule; | 5807 | namesToPlugins[pluginName] = pluginModule; |
5997 | isOrderingDirty = true; | 5808 | isOrderingDirty = true; |
5998 | } | 5809 | } |
5999 | } | 5810 | } |
@@ -6014,13 +5825,19 @@ | |||
6014 | if (dispatchConfig.registrationName) { | 5825 | if (dispatchConfig.registrationName) { |
6015 | return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null; | 5826 | return EventPluginRegistry.registrationNameModules[dispatchConfig.registrationName] || null; |
6016 | } | 5827 | } |
6017 | for (var phase in dispatchConfig.phasedRegistrationNames) { | 5828 | if (dispatchConfig.phasedRegistrationNames !== undefined) { |
6018 | if (!dispatchConfig.phasedRegistrationNames.hasOwnProperty(phase)) { | 5829 | // pulling phasedRegistrationNames out of dispatchConfig helps Flow see |
6019 | continue; | 5830 | // that it is not undefined. |
6020 | } | 5831 | var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; |
6021 | var PluginModule = EventPluginRegistry.registrationNameModules[dispatchConfig.phasedRegistrationNames[phase]]; | 5832 | |
6022 | if (PluginModule) { | 5833 | for (var phase in phasedRegistrationNames) { |
6023 | return PluginModule; | 5834 | if (!phasedRegistrationNames.hasOwnProperty(phase)) { |
5835 | continue; | ||
5836 | } | ||
5837 | var pluginModule = EventPluginRegistry.registrationNameModules[phasedRegistrationNames[phase]]; | ||
5838 | if (pluginModule) { | ||
5839 | return pluginModule; | ||
5840 | } | ||
6024 | } | 5841 | } |
6025 | } | 5842 | } |
6026 | return null; | 5843 | return null; |
@@ -6031,7 +5848,7 @@ | |||
6031 | * @private | 5848 | * @private |
6032 | */ | 5849 | */ |
6033 | _resetEventPlugins: function () { | 5850 | _resetEventPlugins: function () { |
6034 | EventPluginOrder = null; | 5851 | eventPluginOrder = null; |
6035 | for (var pluginName in namesToPlugins) { | 5852 | for (var pluginName in namesToPlugins) { |
6036 | if (namesToPlugins.hasOwnProperty(pluginName)) { | 5853 | if (namesToPlugins.hasOwnProperty(pluginName)) { |
6037 | delete namesToPlugins[pluginName]; | 5854 | delete namesToPlugins[pluginName]; |
@@ -6069,7 +5886,7 @@ | |||
6069 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 5886 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
6070 | 5887 | ||
6071 | /***/ }, | 5888 | /***/ }, |
6072 | /* 47 */ | 5889 | /* 46 */ |
6073 | /***/ function(module, exports, __webpack_require__) { | 5890 | /***/ function(module, exports, __webpack_require__) { |
6074 | 5891 | ||
6075 | /* WEBPACK VAR INJECTION */(function(process) {/** | 5892 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -6080,15 +5897,13 @@ | |||
6080 | * LICENSE file in the root directory of this source tree. An additional grant | 5897 | * LICENSE file in the root directory of this source tree. An additional grant |
6081 | * of patent rights can be found in the PATENTS file in the same directory. | 5898 | * of patent rights can be found in the PATENTS file in the same directory. |
6082 | * | 5899 | * |
6083 | * @providesModule EventPluginUtils | ||
6084 | */ | 5900 | */ |
6085 | 5901 | ||
6086 | 'use strict'; | 5902 | 'use strict'; |
6087 | 5903 | ||
6088 | var _prodInvariant = __webpack_require__(9); | 5904 | var _prodInvariant = __webpack_require__(37); |
6089 | 5905 | ||
6090 | var EventConstants = __webpack_require__(43); | 5906 | var ReactErrorUtils = __webpack_require__(47); |
6091 | var ReactErrorUtils = __webpack_require__(48); | ||
6092 | 5907 | ||
6093 | var invariant = __webpack_require__(10); | 5908 | var invariant = __webpack_require__(10); |
6094 | var warning = __webpack_require__(13); | 5909 | var warning = __webpack_require__(13); |
@@ -6118,17 +5933,15 @@ | |||
6118 | } | 5933 | } |
6119 | }; | 5934 | }; |
6120 | 5935 | ||
6121 | var topLevelTypes = EventConstants.topLevelTypes; | ||
6122 | |||
6123 | function isEndish(topLevelType) { | 5936 | function isEndish(topLevelType) { |
6124 | return topLevelType === topLevelTypes.topMouseUp || topLevelType === topLevelTypes.topTouchEnd || topLevelType === topLevelTypes.topTouchCancel; | 5937 | return topLevelType === 'topMouseUp' || topLevelType === 'topTouchEnd' || topLevelType === 'topTouchCancel'; |
6125 | } | 5938 | } |
6126 | 5939 | ||
6127 | function isMoveish(topLevelType) { | 5940 | function isMoveish(topLevelType) { |
6128 | return topLevelType === topLevelTypes.topMouseMove || topLevelType === topLevelTypes.topTouchMove; | 5941 | return topLevelType === 'topMouseMove' || topLevelType === 'topTouchMove'; |
6129 | } | 5942 | } |
6130 | function isStartish(topLevelType) { | 5943 | function isStartish(topLevelType) { |
6131 | return topLevelType === topLevelTypes.topMouseDown || topLevelType === topLevelTypes.topTouchStart; | 5944 | return topLevelType === 'topMouseDown' || topLevelType === 'topTouchStart'; |
6132 | } | 5945 | } |
6133 | 5946 | ||
6134 | var validateEventDispatches; | 5947 | var validateEventDispatches; |
@@ -6304,7 +6117,7 @@ | |||
6304 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 6117 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
6305 | 6118 | ||
6306 | /***/ }, | 6119 | /***/ }, |
6307 | /* 48 */ | 6120 | /* 47 */ |
6308 | /***/ function(module, exports, __webpack_require__) { | 6121 | /***/ function(module, exports, __webpack_require__) { |
6309 | 6122 | ||
6310 | /* WEBPACK VAR INJECTION */(function(process) {/** | 6123 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -6315,7 +6128,7 @@ | |||
6315 | * LICENSE file in the root directory of this source tree. An additional grant | 6128 | * LICENSE file in the root directory of this source tree. An additional grant |
6316 | * of patent rights can be found in the PATENTS file in the same directory. | 6129 | * of patent rights can be found in the PATENTS file in the same directory. |
6317 | * | 6130 | * |
6318 | * @providesModule ReactErrorUtils | 6131 | * |
6319 | */ | 6132 | */ |
6320 | 6133 | ||
6321 | 'use strict'; | 6134 | 'use strict'; |
@@ -6325,19 +6138,18 @@ | |||
6325 | /** | 6138 | /** |
6326 | * Call a function while guarding against errors that happens within it. | 6139 | * Call a function while guarding against errors that happens within it. |
6327 | * | 6140 | * |
6328 | * @param {?String} name of the guard to use for logging or debugging | 6141 | * @param {String} name of the guard to use for logging or debugging |
6329 | * @param {Function} func The function to invoke | 6142 | * @param {Function} func The function to invoke |
6330 | * @param {*} a First argument | 6143 | * @param {*} a First argument |
6331 | * @param {*} b Second argument | 6144 | * @param {*} b Second argument |
6332 | */ | 6145 | */ |
6333 | function invokeGuardedCallback(name, func, a, b) { | 6146 | function invokeGuardedCallback(name, func, a) { |
6334 | try { | 6147 | try { |
6335 | return func(a, b); | 6148 | func(a); |
6336 | } catch (x) { | 6149 | } catch (x) { |
6337 | if (caughtError === null) { | 6150 | if (caughtError === null) { |
6338 | caughtError = x; | 6151 | caughtError = x; |
6339 | } | 6152 | } |
6340 | return undefined; | ||
6341 | } | 6153 | } |
6342 | } | 6154 | } |
6343 | 6155 | ||
@@ -6370,11 +6182,12 @@ | |||
6370 | */ | 6182 | */ |
6371 | if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { | 6183 | if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') { |
6372 | var fakeNode = document.createElement('react'); | 6184 | var fakeNode = document.createElement('react'); |
6373 | ReactErrorUtils.invokeGuardedCallback = function (name, func, a, b) { | 6185 | ReactErrorUtils.invokeGuardedCallback = function (name, func, a) { |
6374 | var boundFunc = func.bind(null, a, b); | 6186 | var boundFunc = func.bind(null, a); |
6375 | var evtType = 'react-' + name; | 6187 | var evtType = 'react-' + name; |
6376 | fakeNode.addEventListener(evtType, boundFunc, false); | 6188 | fakeNode.addEventListener(evtType, boundFunc, false); |
6377 | var evt = document.createEvent('Event'); | 6189 | var evt = document.createEvent('Event'); |
6190 | // $FlowFixMe https://github.com/facebook/flow/issues/2336 | ||
6378 | evt.initEvent(evtType, false, false); | 6191 | evt.initEvent(evtType, false, false); |
6379 | fakeNode.dispatchEvent(evt); | 6192 | fakeNode.dispatchEvent(evt); |
6380 | fakeNode.removeEventListener(evtType, boundFunc, false); | 6193 | fakeNode.removeEventListener(evtType, boundFunc, false); |
@@ -6386,7 +6199,7 @@ | |||
6386 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 6199 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
6387 | 6200 | ||
6388 | /***/ }, | 6201 | /***/ }, |
6389 | /* 49 */ | 6202 | /* 48 */ |
6390 | /***/ function(module, exports, __webpack_require__) { | 6203 | /***/ function(module, exports, __webpack_require__) { |
6391 | 6204 | ||
6392 | /* WEBPACK VAR INJECTION */(function(process) {/** | 6205 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -6397,13 +6210,12 @@ | |||
6397 | * LICENSE file in the root directory of this source tree. An additional grant | 6210 | * LICENSE file in the root directory of this source tree. An additional grant |
6398 | * of patent rights can be found in the PATENTS file in the same directory. | 6211 | * of patent rights can be found in the PATENTS file in the same directory. |
6399 | * | 6212 | * |
6400 | * @providesModule accumulateInto | ||
6401 | * | 6213 | * |
6402 | */ | 6214 | */ |
6403 | 6215 | ||
6404 | 'use strict'; | 6216 | 'use strict'; |
6405 | 6217 | ||
6406 | var _prodInvariant = __webpack_require__(9); | 6218 | var _prodInvariant = __webpack_require__(37); |
6407 | 6219 | ||
6408 | var invariant = __webpack_require__(10); | 6220 | var invariant = __webpack_require__(10); |
6409 | 6221 | ||
@@ -6450,7 +6262,7 @@ | |||
6450 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 6262 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
6451 | 6263 | ||
6452 | /***/ }, | 6264 | /***/ }, |
6453 | /* 50 */ | 6265 | /* 49 */ |
6454 | /***/ function(module, exports) { | 6266 | /***/ function(module, exports) { |
6455 | 6267 | ||
6456 | /** | 6268 | /** |
@@ -6461,7 +6273,6 @@ | |||
6461 | * LICENSE file in the root directory of this source tree. An additional grant | 6273 | * LICENSE file in the root directory of this source tree. An additional grant |
6462 | * of patent rights can be found in the PATENTS file in the same directory. | 6274 | * of patent rights can be found in the PATENTS file in the same directory. |
6463 | * | 6275 | * |
6464 | * @providesModule forEachAccumulated | ||
6465 | * | 6276 | * |
6466 | */ | 6277 | */ |
6467 | 6278 | ||
@@ -6486,7 +6297,7 @@ | |||
6486 | module.exports = forEachAccumulated; | 6297 | module.exports = forEachAccumulated; |
6487 | 6298 | ||
6488 | /***/ }, | 6299 | /***/ }, |
6489 | /* 51 */ | 6300 | /* 50 */ |
6490 | /***/ function(module, exports) { | 6301 | /***/ function(module, exports) { |
6491 | 6302 | ||
6492 | /** | 6303 | /** |
@@ -6526,7 +6337,7 @@ | |||
6526 | module.exports = ExecutionEnvironment; | 6337 | module.exports = ExecutionEnvironment; |
6527 | 6338 | ||
6528 | /***/ }, | 6339 | /***/ }, |
6529 | /* 52 */ | 6340 | /* 51 */ |
6530 | /***/ function(module, exports, __webpack_require__) { | 6341 | /***/ function(module, exports, __webpack_require__) { |
6531 | 6342 | ||
6532 | /** | 6343 | /** |
@@ -6537,14 +6348,13 @@ | |||
6537 | * LICENSE file in the root directory of this source tree. An additional grant | 6348 | * LICENSE file in the root directory of this source tree. An additional grant |
6538 | * of patent rights can be found in the PATENTS file in the same directory. | 6349 | * of patent rights can be found in the PATENTS file in the same directory. |
6539 | * | 6350 | * |
6540 | * @providesModule FallbackCompositionState | ||
6541 | */ | 6351 | */ |
6542 | 6352 | ||
6543 | 'use strict'; | 6353 | 'use strict'; |
6544 | 6354 | ||
6545 | var _assign = __webpack_require__(6); | 6355 | var _assign = __webpack_require__(6); |
6546 | 6356 | ||
6547 | var PooledClass = __webpack_require__(8); | 6357 | var PooledClass = __webpack_require__(52); |
6548 | 6358 | ||
6549 | var getTextContentAccessor = __webpack_require__(53); | 6359 | var getTextContentAccessor = __webpack_require__(53); |
6550 | 6360 | ||
@@ -6626,6 +6436,8 @@ | |||
6626 | module.exports = FallbackCompositionState; | 6436 | module.exports = FallbackCompositionState; |
6627 | 6437 | ||
6628 | /***/ }, | 6438 | /***/ }, |
6439 | /* 52 */ | ||
6440 | [271, 37], | ||
6629 | /* 53 */ | 6441 | /* 53 */ |
6630 | /***/ function(module, exports, __webpack_require__) { | 6442 | /***/ function(module, exports, __webpack_require__) { |
6631 | 6443 | ||
@@ -6637,12 +6449,11 @@ | |||
6637 | * LICENSE file in the root directory of this source tree. An additional grant | 6449 | * LICENSE file in the root directory of this source tree. An additional grant |
6638 | * of patent rights can be found in the PATENTS file in the same directory. | 6450 | * of patent rights can be found in the PATENTS file in the same directory. |
6639 | * | 6451 | * |
6640 | * @providesModule getTextContentAccessor | ||
6641 | */ | 6452 | */ |
6642 | 6453 | ||
6643 | 'use strict'; | 6454 | 'use strict'; |
6644 | 6455 | ||
6645 | var ExecutionEnvironment = __webpack_require__(51); | 6456 | var ExecutionEnvironment = __webpack_require__(50); |
6646 | 6457 | ||
6647 | var contentKey = null; | 6458 | var contentKey = null; |
6648 | 6459 | ||
@@ -6675,7 +6486,6 @@ | |||
6675 | * LICENSE file in the root directory of this source tree. An additional grant | 6486 | * LICENSE file in the root directory of this source tree. An additional grant |
6676 | * of patent rights can be found in the PATENTS file in the same directory. | 6487 | * of patent rights can be found in the PATENTS file in the same directory. |
6677 | * | 6488 | * |
6678 | * @providesModule SyntheticCompositionEvent | ||
6679 | */ | 6489 | */ |
6680 | 6490 | ||
6681 | 'use strict'; | 6491 | 'use strict'; |
@@ -6716,14 +6526,13 @@ | |||
6716 | * LICENSE file in the root directory of this source tree. An additional grant | 6526 | * LICENSE file in the root directory of this source tree. An additional grant |
6717 | * of patent rights can be found in the PATENTS file in the same directory. | 6527 | * of patent rights can be found in the PATENTS file in the same directory. |
6718 | * | 6528 | * |
6719 | * @providesModule SyntheticEvent | ||
6720 | */ | 6529 | */ |
6721 | 6530 | ||
6722 | 'use strict'; | 6531 | 'use strict'; |
6723 | 6532 | ||
6724 | var _assign = __webpack_require__(6); | 6533 | var _assign = __webpack_require__(6); |
6725 | 6534 | ||
6726 | var PooledClass = __webpack_require__(8); | 6535 | var PooledClass = __webpack_require__(52); |
6727 | 6536 | ||
6728 | var emptyFunction = __webpack_require__(14); | 6537 | var emptyFunction = __webpack_require__(14); |
6729 | var warning = __webpack_require__(13); | 6538 | var warning = __webpack_require__(13); |
@@ -6990,7 +6799,6 @@ | |||
6990 | * LICENSE file in the root directory of this source tree. An additional grant | 6799 | * LICENSE file in the root directory of this source tree. An additional grant |
6991 | * of patent rights can be found in the PATENTS file in the same directory. | 6800 | * of patent rights can be found in the PATENTS file in the same directory. |
6992 | * | 6801 | * |
6993 | * @providesModule SyntheticInputEvent | ||
6994 | */ | 6802 | */ |
6995 | 6803 | ||
6996 | 'use strict'; | 6804 | 'use strict'; |
@@ -7032,33 +6840,28 @@ | |||
7032 | * LICENSE file in the root directory of this source tree. An additional grant | 6840 | * LICENSE file in the root directory of this source tree. An additional grant |
7033 | * of patent rights can be found in the PATENTS file in the same directory. | 6841 | * of patent rights can be found in the PATENTS file in the same directory. |
7034 | * | 6842 | * |
7035 | * @providesModule ChangeEventPlugin | ||
7036 | */ | 6843 | */ |
7037 | 6844 | ||
7038 | 'use strict'; | 6845 | 'use strict'; |
7039 | 6846 | ||
7040 | var EventConstants = __webpack_require__(43); | 6847 | var EventPluginHub = __webpack_require__(44); |
7041 | var EventPluginHub = __webpack_require__(45); | 6848 | var EventPropagators = __webpack_require__(43); |
7042 | var EventPropagators = __webpack_require__(44); | 6849 | var ExecutionEnvironment = __webpack_require__(50); |
7043 | var ExecutionEnvironment = __webpack_require__(51); | 6850 | var ReactDOMComponentTree = __webpack_require__(36); |
7044 | var ReactDOMComponentTree = __webpack_require__(38); | ||
7045 | var ReactUpdates = __webpack_require__(58); | 6851 | var ReactUpdates = __webpack_require__(58); |
7046 | var SyntheticEvent = __webpack_require__(55); | 6852 | var SyntheticEvent = __webpack_require__(55); |
7047 | 6853 | ||
7048 | var getEventTarget = __webpack_require__(72); | 6854 | var getEventTarget = __webpack_require__(71); |
7049 | var isEventSupported = __webpack_require__(73); | 6855 | var isEventSupported = __webpack_require__(72); |
7050 | var isTextInputElement = __webpack_require__(74); | 6856 | var isTextInputElement = __webpack_require__(73); |
7051 | var keyOf = __webpack_require__(27); | ||
7052 | |||
7053 | var topLevelTypes = EventConstants.topLevelTypes; | ||
7054 | 6857 | ||
7055 | var eventTypes = { | 6858 | var eventTypes = { |
7056 | change: { | 6859 | change: { |
7057 | phasedRegistrationNames: { | 6860 | phasedRegistrationNames: { |
7058 | bubbled: keyOf({ onChange: null }), | 6861 | bubbled: 'onChange', |
7059 | captured: keyOf({ onChangeCapture: null }) | 6862 | captured: 'onChangeCapture' |
7060 | }, | 6863 | }, |
7061 | dependencies: [topLevelTypes.topBlur, topLevelTypes.topChange, topLevelTypes.topClick, topLevelTypes.topFocus, topLevelTypes.topInput, topLevelTypes.topKeyDown, topLevelTypes.topKeyUp, topLevelTypes.topSelectionChange] | 6864 | dependencies: ['topBlur', 'topChange', 'topClick', 'topFocus', 'topInput', 'topKeyDown', 'topKeyUp', 'topSelectionChange'] |
7062 | } | 6865 | } |
7063 | }; | 6866 | }; |
7064 | 6867 | ||
@@ -7123,17 +6926,17 @@ | |||
7123 | } | 6926 | } |
7124 | 6927 | ||
7125 | function getTargetInstForChangeEvent(topLevelType, targetInst) { | 6928 | function getTargetInstForChangeEvent(topLevelType, targetInst) { |
7126 | if (topLevelType === topLevelTypes.topChange) { | 6929 | if (topLevelType === 'topChange') { |
7127 | return targetInst; | 6930 | return targetInst; |
7128 | } | 6931 | } |
7129 | } | 6932 | } |
7130 | function handleEventsForChangeEventIE8(topLevelType, target, targetInst) { | 6933 | function handleEventsForChangeEventIE8(topLevelType, target, targetInst) { |
7131 | if (topLevelType === topLevelTypes.topFocus) { | 6934 | if (topLevelType === 'topFocus') { |
7132 | // stopWatching() should be a noop here but we call it just in case we | 6935 | // stopWatching() should be a noop here but we call it just in case we |
7133 | // missed a blur event somehow. | 6936 | // missed a blur event somehow. |
7134 | stopWatchingForChangeEventIE8(); | 6937 | stopWatchingForChangeEventIE8(); |
7135 | startWatchingForChangeEventIE8(target, targetInst); | 6938 | startWatchingForChangeEventIE8(target, targetInst); |
7136 | } else if (topLevelType === topLevelTypes.topBlur) { | 6939 | } else if (topLevelType === 'topBlur') { |
7137 | stopWatchingForChangeEventIE8(); | 6940 | stopWatchingForChangeEventIE8(); |
7138 | } | 6941 | } |
7139 | } | 6942 | } |
@@ -7231,7 +7034,7 @@ | |||
7231 | * If a `change` event should be fired, returns the target's ID. | 7034 | * If a `change` event should be fired, returns the target's ID. |
7232 | */ | 7035 | */ |
7233 | function getTargetInstForInputEvent(topLevelType, targetInst) { | 7036 | function getTargetInstForInputEvent(topLevelType, targetInst) { |
7234 | if (topLevelType === topLevelTypes.topInput) { | 7037 | if (topLevelType === 'topInput') { |
7235 | // In modern browsers (i.e., not IE8 or IE9), the input event is exactly | 7038 | // In modern browsers (i.e., not IE8 or IE9), the input event is exactly |
7236 | // what we want so fall through here and trigger an abstract event | 7039 | // what we want so fall through here and trigger an abstract event |
7237 | return targetInst; | 7040 | return targetInst; |
@@ -7239,7 +7042,7 @@ | |||
7239 | } | 7042 | } |
7240 | 7043 | ||
7241 | function handleEventsForInputEventIE(topLevelType, target, targetInst) { | 7044 | function handleEventsForInputEventIE(topLevelType, target, targetInst) { |
7242 | if (topLevelType === topLevelTypes.topFocus) { | 7045 | if (topLevelType === 'topFocus') { |
7243 | // In IE8, we can capture almost all .value changes by adding a | 7046 | // In IE8, we can capture almost all .value changes by adding a |
7244 | // propertychange handler and looking for events with propertyName | 7047 | // propertychange handler and looking for events with propertyName |
7245 | // equal to 'value' | 7048 | // equal to 'value' |
@@ -7255,14 +7058,14 @@ | |||
7255 | // missed a blur event somehow. | 7058 | // missed a blur event somehow. |
7256 | stopWatchingForValueChange(); | 7059 | stopWatchingForValueChange(); |
7257 | startWatchingForValueChange(target, targetInst); | 7060 | startWatchingForValueChange(target, targetInst); |
7258 | } else if (topLevelType === topLevelTypes.topBlur) { | 7061 | } else if (topLevelType === 'topBlur') { |
7259 | stopWatchingForValueChange(); | 7062 | stopWatchingForValueChange(); |
7260 | } | 7063 | } |
7261 | } | 7064 | } |
7262 | 7065 | ||
7263 | // For IE8 and IE9. | 7066 | // For IE8 and IE9. |
7264 | function getTargetInstForInputEventIE(topLevelType, targetInst) { | 7067 | function getTargetInstForInputEventIE(topLevelType, targetInst) { |
7265 | if (topLevelType === topLevelTypes.topSelectionChange || topLevelType === topLevelTypes.topKeyUp || topLevelType === topLevelTypes.topKeyDown) { | 7068 | if (topLevelType === 'topSelectionChange' || topLevelType === 'topKeyUp' || topLevelType === 'topKeyDown') { |
7266 | // On the selectionchange event, the target is just document which isn't | 7069 | // On the selectionchange event, the target is just document which isn't |
7267 | // helpful for us so just check activeElement instead. | 7070 | // helpful for us so just check activeElement instead. |
7268 | // | 7071 | // |
@@ -7291,7 +7094,7 @@ | |||
7291 | } | 7094 | } |
7292 | 7095 | ||
7293 | function getTargetInstForClickEvent(topLevelType, targetInst) { | 7096 | function getTargetInstForClickEvent(topLevelType, targetInst) { |
7294 | if (topLevelType === topLevelTypes.topClick) { | 7097 | if (topLevelType === 'topClick') { |
7295 | return targetInst; | 7098 | return targetInst; |
7296 | } | 7099 | } |
7297 | } | 7100 | } |
@@ -7362,19 +7165,18 @@ | |||
7362 | * LICENSE file in the root directory of this source tree. An additional grant | 7165 | * LICENSE file in the root directory of this source tree. An additional grant |
7363 | * of patent rights can be found in the PATENTS file in the same directory. | 7166 | * of patent rights can be found in the PATENTS file in the same directory. |
7364 | * | 7167 | * |
7365 | * @providesModule ReactUpdates | ||
7366 | */ | 7168 | */ |
7367 | 7169 | ||
7368 | 'use strict'; | 7170 | 'use strict'; |
7369 | 7171 | ||
7370 | var _prodInvariant = __webpack_require__(9), | 7172 | var _prodInvariant = __webpack_require__(37), |
7371 | _assign = __webpack_require__(6); | 7173 | _assign = __webpack_require__(6); |
7372 | 7174 | ||
7373 | var CallbackQueue = __webpack_require__(59); | 7175 | var CallbackQueue = __webpack_require__(59); |
7374 | var PooledClass = __webpack_require__(8); | 7176 | var PooledClass = __webpack_require__(52); |
7375 | var ReactFeatureFlags = __webpack_require__(60); | 7177 | var ReactFeatureFlags = __webpack_require__(60); |
7376 | var ReactReconciler = __webpack_require__(61); | 7178 | var ReactReconciler = __webpack_require__(61); |
7377 | var Transaction = __webpack_require__(71); | 7179 | var Transaction = __webpack_require__(70); |
7378 | 7180 | ||
7379 | var invariant = __webpack_require__(10); | 7181 | var invariant = __webpack_require__(10); |
7380 | 7182 | ||
@@ -7427,7 +7229,7 @@ | |||
7427 | /* useCreateElement */true); | 7229 | /* useCreateElement */true); |
7428 | } | 7230 | } |
7429 | 7231 | ||
7430 | _assign(ReactUpdatesFlushTransaction.prototype, Transaction.Mixin, { | 7232 | _assign(ReactUpdatesFlushTransaction.prototype, Transaction, { |
7431 | getTransactionWrappers: function () { | 7233 | getTransactionWrappers: function () { |
7432 | return TRANSACTION_WRAPPERS; | 7234 | return TRANSACTION_WRAPPERS; |
7433 | }, | 7235 | }, |
@@ -7443,7 +7245,7 @@ | |||
7443 | perform: function (method, scope, a) { | 7245 | perform: function (method, scope, a) { |
7444 | // Essentially calls `this.reconcileTransaction.perform(method, scope, a)` | 7246 | // Essentially calls `this.reconcileTransaction.perform(method, scope, a)` |
7445 | // with this transaction's wrappers around it. | 7247 | // with this transaction's wrappers around it. |
7446 | return Transaction.Mixin.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a); | 7248 | return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a); |
7447 | } | 7249 | } |
7448 | }); | 7250 | }); |
7449 | 7251 | ||
@@ -7451,7 +7253,7 @@ | |||
7451 | 7253 | ||
7452 | function batchedUpdates(callback, a, b, c, d, e) { | 7254 | function batchedUpdates(callback, a, b, c, d, e) { |
7453 | ensureInjected(); | 7255 | ensureInjected(); |
7454 | batchingStrategy.batchedUpdates(callback, a, b, c, d, e); | 7256 | return batchingStrategy.batchedUpdates(callback, a, b, c, d, e); |
7455 | } | 7257 | } |
7456 | 7258 | ||
7457 | /** | 7259 | /** |
@@ -7497,7 +7299,7 @@ | |||
7497 | if (ReactFeatureFlags.logTopLevelRenders) { | 7299 | if (ReactFeatureFlags.logTopLevelRenders) { |
7498 | var namedComponent = component; | 7300 | var namedComponent = component; |
7499 | // Duck type TopLevelWrapper. This is probably always true. | 7301 | // Duck type TopLevelWrapper. This is probably always true. |
7500 | if (component._currentElement.props === component._renderedComponent._currentElement) { | 7302 | if (component._currentElement.type.isReactTopLevelWrapper) { |
7501 | namedComponent = component._renderedComponent; | 7303 | namedComponent = component._renderedComponent; |
7502 | } | 7304 | } |
7503 | markerName = 'React update: ' + namedComponent.getName(); | 7305 | markerName = 'React update: ' + namedComponent.getName(); |
@@ -7619,15 +7421,16 @@ | |||
7619 | * LICENSE file in the root directory of this source tree. An additional grant | 7421 | * LICENSE file in the root directory of this source tree. An additional grant |
7620 | * of patent rights can be found in the PATENTS file in the same directory. | 7422 | * of patent rights can be found in the PATENTS file in the same directory. |
7621 | * | 7423 | * |
7622 | * @providesModule CallbackQueue | 7424 | * |
7623 | */ | 7425 | */ |
7624 | 7426 | ||
7625 | 'use strict'; | 7427 | 'use strict'; |
7626 | 7428 | ||
7627 | var _prodInvariant = __webpack_require__(9), | 7429 | var _prodInvariant = __webpack_require__(37); |
7628 | _assign = __webpack_require__(6); | ||
7629 | 7430 | ||
7630 | var PooledClass = __webpack_require__(8); | 7431 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
7432 | |||
7433 | var PooledClass = __webpack_require__(52); | ||
7631 | 7434 | ||
7632 | var invariant = __webpack_require__(10); | 7435 | var invariant = __webpack_require__(10); |
7633 | 7436 | ||
@@ -7642,12 +7445,15 @@ | |||
7642 | * @implements PooledClass | 7445 | * @implements PooledClass |
7643 | * @internal | 7446 | * @internal |
7644 | */ | 7447 | */ |
7645 | function CallbackQueue() { | ||
7646 | this._callbacks = null; | ||
7647 | this._contexts = null; | ||
7648 | } | ||
7649 | 7448 | ||
7650 | _assign(CallbackQueue.prototype, { | 7449 | var CallbackQueue = function () { |
7450 | function CallbackQueue(arg) { | ||
7451 | _classCallCheck(this, CallbackQueue); | ||
7452 | |||
7453 | this._callbacks = null; | ||
7454 | this._contexts = null; | ||
7455 | this._arg = arg; | ||
7456 | } | ||
7651 | 7457 | ||
7652 | /** | 7458 | /** |
7653 | * Enqueues a callback to be invoked when `notifyAll` is invoked. | 7459 | * Enqueues a callback to be invoked when `notifyAll` is invoked. |
@@ -7656,12 +7462,14 @@ | |||
7656 | * @param {?object} context Context to call `callback` with. | 7462 | * @param {?object} context Context to call `callback` with. |
7657 | * @internal | 7463 | * @internal |
7658 | */ | 7464 | */ |
7659 | enqueue: function (callback, context) { | 7465 | |
7466 | |||
7467 | CallbackQueue.prototype.enqueue = function enqueue(callback, context) { | ||
7660 | this._callbacks = this._callbacks || []; | 7468 | this._callbacks = this._callbacks || []; |
7661 | this._contexts = this._contexts || []; | ||
7662 | this._callbacks.push(callback); | 7469 | this._callbacks.push(callback); |
7470 | this._contexts = this._contexts || []; | ||
7663 | this._contexts.push(context); | 7471 | this._contexts.push(context); |
7664 | }, | 7472 | }; |
7665 | 7473 | ||
7666 | /** | 7474 | /** |
7667 | * Invokes all enqueued callbacks and clears the queue. This is invoked after | 7475 | * Invokes all enqueued callbacks and clears the queue. This is invoked after |
@@ -7669,54 +7477,60 @@ | |||
7669 | * | 7477 | * |
7670 | * @internal | 7478 | * @internal |
7671 | */ | 7479 | */ |
7672 | notifyAll: function () { | 7480 | |
7481 | |||
7482 | CallbackQueue.prototype.notifyAll = function notifyAll() { | ||
7673 | var callbacks = this._callbacks; | 7483 | var callbacks = this._callbacks; |
7674 | var contexts = this._contexts; | 7484 | var contexts = this._contexts; |
7675 | if (callbacks) { | 7485 | var arg = this._arg; |
7486 | if (callbacks && contexts) { | ||
7676 | !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0; | 7487 | !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0; |
7677 | this._callbacks = null; | 7488 | this._callbacks = null; |
7678 | this._contexts = null; | 7489 | this._contexts = null; |
7679 | for (var i = 0; i < callbacks.length; i++) { | 7490 | for (var i = 0; i < callbacks.length; i++) { |
7680 | callbacks[i].call(contexts[i]); | 7491 | callbacks[i].call(contexts[i], arg); |
7681 | } | 7492 | } |
7682 | callbacks.length = 0; | 7493 | callbacks.length = 0; |
7683 | contexts.length = 0; | 7494 | contexts.length = 0; |
7684 | } | 7495 | } |
7685 | }, | 7496 | }; |
7686 | 7497 | ||
7687 | checkpoint: function () { | 7498 | CallbackQueue.prototype.checkpoint = function checkpoint() { |
7688 | return this._callbacks ? this._callbacks.length : 0; | 7499 | return this._callbacks ? this._callbacks.length : 0; |
7689 | }, | 7500 | }; |
7690 | 7501 | ||
7691 | rollback: function (len) { | 7502 | CallbackQueue.prototype.rollback = function rollback(len) { |
7692 | if (this._callbacks) { | 7503 | if (this._callbacks && this._contexts) { |
7693 | this._callbacks.length = len; | 7504 | this._callbacks.length = len; |
7694 | this._contexts.length = len; | 7505 | this._contexts.length = len; |
7695 | } | 7506 | } |
7696 | }, | 7507 | }; |
7697 | 7508 | ||
7698 | /** | 7509 | /** |
7699 | * Resets the internal queue. | 7510 | * Resets the internal queue. |
7700 | * | 7511 | * |
7701 | * @internal | 7512 | * @internal |
7702 | */ | 7513 | */ |
7703 | reset: function () { | 7514 | |
7515 | |||
7516 | CallbackQueue.prototype.reset = function reset() { | ||
7704 | this._callbacks = null; | 7517 | this._callbacks = null; |
7705 | this._contexts = null; | 7518 | this._contexts = null; |
7706 | }, | 7519 | }; |
7707 | 7520 | ||
7708 | /** | 7521 | /** |
7709 | * `PooledClass` looks for this. | 7522 | * `PooledClass` looks for this. |
7710 | */ | 7523 | */ |
7711 | destructor: function () { | ||
7712 | this.reset(); | ||
7713 | } | ||
7714 | 7524 | ||
7715 | }); | ||
7716 | 7525 | ||
7717 | PooledClass.addPoolingTo(CallbackQueue); | 7526 | CallbackQueue.prototype.destructor = function destructor() { |
7527 | this.reset(); | ||
7528 | }; | ||
7529 | |||
7530 | return CallbackQueue; | ||
7531 | }(); | ||
7718 | 7532 | ||
7719 | module.exports = CallbackQueue; | 7533 | module.exports = PooledClass.addPoolingTo(CallbackQueue); |
7720 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 7534 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
7721 | 7535 | ||
7722 | /***/ }, | 7536 | /***/ }, |
@@ -7731,7 +7545,6 @@ | |||
7731 | * LICENSE file in the root directory of this source tree. An additional grant | 7545 | * LICENSE file in the root directory of this source tree. An additional grant |
7732 | * of patent rights can be found in the PATENTS file in the same directory. | 7546 | * of patent rights can be found in the PATENTS file in the same directory. |
7733 | * | 7547 | * |
7734 | * @providesModule ReactFeatureFlags | ||
7735 | * | 7548 | * |
7736 | */ | 7549 | */ |
7737 | 7550 | ||
@@ -7758,7 +7571,6 @@ | |||
7758 | * LICENSE file in the root directory of this source tree. An additional grant | 7571 | * LICENSE file in the root directory of this source tree. An additional grant |
7759 | * of patent rights can be found in the PATENTS file in the same directory. | 7572 | * of patent rights can be found in the PATENTS file in the same directory. |
7760 | * | 7573 | * |
7761 | * @providesModule ReactReconciler | ||
7762 | */ | 7574 | */ |
7763 | 7575 | ||
7764 | 'use strict'; | 7576 | 'use strict'; |
@@ -7932,7 +7744,7 @@ | |||
7932 | * LICENSE file in the root directory of this source tree. An additional grant | 7744 | * LICENSE file in the root directory of this source tree. An additional grant |
7933 | * of patent rights can be found in the PATENTS file in the same directory. | 7745 | * of patent rights can be found in the PATENTS file in the same directory. |
7934 | * | 7746 | * |
7935 | * @providesModule ReactRef | 7747 | * |
7936 | */ | 7748 | */ |
7937 | 7749 | ||
7938 | 'use strict'; | 7750 | 'use strict'; |
@@ -7960,7 +7772,7 @@ | |||
7960 | } | 7772 | } |
7961 | 7773 | ||
7962 | ReactRef.attachRefs = function (instance, element) { | 7774 | ReactRef.attachRefs = function (instance, element) { |
7963 | if (element === null || element === false) { | 7775 | if (element === null || typeof element !== 'object') { |
7964 | return; | 7776 | return; |
7965 | } | 7777 | } |
7966 | var ref = element.ref; | 7778 | var ref = element.ref; |
@@ -7982,19 +7794,27 @@ | |||
7982 | // is made. It probably belongs where the key checking and | 7794 | // is made. It probably belongs where the key checking and |
7983 | // instantiateReactComponent is done. | 7795 | // instantiateReactComponent is done. |
7984 | 7796 | ||
7985 | var prevEmpty = prevElement === null || prevElement === false; | 7797 | var prevRef = null; |
7986 | var nextEmpty = nextElement === null || nextElement === false; | 7798 | var prevOwner = null; |
7799 | if (prevElement !== null && typeof prevElement === 'object') { | ||
7800 | prevRef = prevElement.ref; | ||
7801 | prevOwner = prevElement._owner; | ||
7802 | } | ||
7987 | 7803 | ||
7988 | return ( | 7804 | var nextRef = null; |
7989 | // This has a few false positives w/r/t empty components. | 7805 | var nextOwner = null; |
7990 | prevEmpty || nextEmpty || nextElement.ref !== prevElement.ref || | 7806 | if (nextElement !== null && typeof nextElement === 'object') { |
7991 | // If owner changes but we have an unchanged function ref, don't update refs | 7807 | nextRef = nextElement.ref; |
7992 | typeof nextElement.ref === 'string' && nextElement._owner !== prevElement._owner | 7808 | nextOwner = nextElement._owner; |
7993 | ); | 7809 | } |
7810 | |||
7811 | return prevRef !== nextRef || | ||
7812 | // If owner changes but we have an unchanged function ref, don't update refs | ||
7813 | typeof nextRef === 'string' && nextOwner !== prevOwner; | ||
7994 | }; | 7814 | }; |
7995 | 7815 | ||
7996 | ReactRef.detachRefs = function (instance, element) { | 7816 | ReactRef.detachRefs = function (instance, element) { |
7997 | if (element === null || element === false) { | 7817 | if (element === null || typeof element !== 'object') { |
7998 | return; | 7818 | return; |
7999 | } | 7819 | } |
8000 | var ref = element.ref; | 7820 | var ref = element.ref; |
@@ -8017,16 +7837,25 @@ | |||
8017 | * LICENSE file in the root directory of this source tree. An additional grant | 7837 | * LICENSE file in the root directory of this source tree. An additional grant |
8018 | * of patent rights can be found in the PATENTS file in the same directory. | 7838 | * of patent rights can be found in the PATENTS file in the same directory. |
8019 | * | 7839 | * |
8020 | * @providesModule ReactOwner | 7840 | * |
8021 | */ | 7841 | */ |
8022 | 7842 | ||
8023 | 'use strict'; | 7843 | 'use strict'; |
8024 | 7844 | ||
8025 | var _prodInvariant = __webpack_require__(9); | 7845 | var _prodInvariant = __webpack_require__(37); |
8026 | 7846 | ||
8027 | var invariant = __webpack_require__(10); | 7847 | var invariant = __webpack_require__(10); |
8028 | 7848 | ||
8029 | /** | 7849 | /** |
7850 | * @param {?object} object | ||
7851 | * @return {boolean} True if `object` is a valid owner. | ||
7852 | * @final | ||
7853 | */ | ||
7854 | function isValidOwner(object) { | ||
7855 | return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function'); | ||
7856 | } | ||
7857 | |||
7858 | /** | ||
8030 | * ReactOwners are capable of storing references to owned components. | 7859 | * ReactOwners are capable of storing references to owned components. |
8031 | * | 7860 | * |
8032 | * All components are capable of //being// referenced by owner components, but | 7861 | * All components are capable of //being// referenced by owner components, but |
@@ -8057,16 +7886,6 @@ | |||
8057 | * @class ReactOwner | 7886 | * @class ReactOwner |
8058 | */ | 7887 | */ |
8059 | var ReactOwner = { | 7888 | var ReactOwner = { |
8060 | |||
8061 | /** | ||
8062 | * @param {?object} object | ||
8063 | * @return {boolean} True if `object` is a valid owner. | ||
8064 | * @final | ||
8065 | */ | ||
8066 | isValidOwner: function (object) { | ||
8067 | return !!(object && typeof object.attachRef === 'function' && typeof object.detachRef === 'function'); | ||
8068 | }, | ||
8069 | |||
8070 | /** | 7889 | /** |
8071 | * Adds a component by ref to an owner component. | 7890 | * Adds a component by ref to an owner component. |
8072 | * | 7891 | * |
@@ -8077,7 +7896,7 @@ | |||
8077 | * @internal | 7896 | * @internal |
8078 | */ | 7897 | */ |
8079 | addComponentAsRefTo: function (component, ref, owner) { | 7898 | addComponentAsRefTo: function (component, ref, owner) { |
8080 | !ReactOwner.isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0; | 7899 | !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('119') : void 0; |
8081 | owner.attachRef(ref, component); | 7900 | owner.attachRef(ref, component); |
8082 | }, | 7901 | }, |
8083 | 7902 | ||
@@ -8091,7 +7910,7 @@ | |||
8091 | * @internal | 7910 | * @internal |
8092 | */ | 7911 | */ |
8093 | removeComponentAsRefFrom: function (component, ref, owner) { | 7912 | removeComponentAsRefFrom: function (component, ref, owner) { |
8094 | !ReactOwner.isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0; | 7913 | !isValidOwner(owner) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component\'s `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).') : _prodInvariant('120') : void 0; |
8095 | var ownerPublicInstance = owner.getPublicInstance(); | 7914 | var ownerPublicInstance = owner.getPublicInstance(); |
8096 | // Check that `component`'s owner is still alive and that `component` is still the current ref | 7915 | // Check that `component`'s owner is still alive and that `component` is still the current ref |
8097 | // because we do not want to detach the ref if another component stole it. | 7916 | // because we do not want to detach the ref if another component stole it. |
@@ -8117,11 +7936,13 @@ | |||
8117 | * LICENSE file in the root directory of this source tree. An additional grant | 7936 | * LICENSE file in the root directory of this source tree. An additional grant |
8118 | * of patent rights can be found in the PATENTS file in the same directory. | 7937 | * of patent rights can be found in the PATENTS file in the same directory. |
8119 | * | 7938 | * |
8120 | * @providesModule ReactInstrumentation | 7939 | * |
8121 | */ | 7940 | */ |
8122 | 7941 | ||
8123 | 'use strict'; | 7942 | 'use strict'; |
8124 | 7943 | ||
7944 | // Trust the developer to only use ReactInstrumentation with a __DEV__ check | ||
7945 | |||
8125 | var debugTool = null; | 7946 | var debugTool = null; |
8126 | 7947 | ||
8127 | if (process.env.NODE_ENV !== 'production') { | 7948 | if (process.env.NODE_ENV !== 'production') { |
@@ -8144,18 +7965,17 @@ | |||
8144 | * LICENSE file in the root directory of this source tree. An additional grant | 7965 | * LICENSE file in the root directory of this source tree. An additional grant |
8145 | * of patent rights can be found in the PATENTS file in the same directory. | 7966 | * of patent rights can be found in the PATENTS file in the same directory. |
8146 | * | 7967 | * |
8147 | * @providesModule ReactDebugTool | 7968 | * |
8148 | */ | 7969 | */ |
8149 | 7970 | ||
8150 | 'use strict'; | 7971 | 'use strict'; |
8151 | 7972 | ||
8152 | var ReactInvalidSetStateWarningHook = __webpack_require__(66); | 7973 | var ReactInvalidSetStateWarningHook = __webpack_require__(66); |
8153 | var ReactHostOperationHistoryHook = __webpack_require__(67); | 7974 | var ReactHostOperationHistoryHook = __webpack_require__(67); |
8154 | var ReactComponentTreeHook = __webpack_require__(30); | 7975 | var ReactComponentTreeHook = __webpack_require__(28); |
8155 | var ReactChildrenMutationWarningHook = __webpack_require__(68); | 7976 | var ExecutionEnvironment = __webpack_require__(50); |
8156 | var ExecutionEnvironment = __webpack_require__(51); | ||
8157 | 7977 | ||
8158 | var performanceNow = __webpack_require__(69); | 7978 | var performanceNow = __webpack_require__(68); |
8159 | var warning = __webpack_require__(13); | 7979 | var warning = __webpack_require__(13); |
8160 | 7980 | ||
8161 | var hooks = []; | 7981 | var hooks = []; |
@@ -8184,11 +8004,11 @@ | |||
8184 | var flushHistory = []; | 8004 | var flushHistory = []; |
8185 | var lifeCycleTimerStack = []; | 8005 | var lifeCycleTimerStack = []; |
8186 | var currentFlushNesting = 0; | 8006 | var currentFlushNesting = 0; |
8187 | var currentFlushMeasurements = null; | 8007 | var currentFlushMeasurements = []; |
8188 | var currentFlushStartTime = null; | 8008 | var currentFlushStartTime = 0; |
8189 | var currentTimerDebugID = null; | 8009 | var currentTimerDebugID = null; |
8190 | var currentTimerStartTime = null; | 8010 | var currentTimerStartTime = 0; |
8191 | var currentTimerNestedFlushDuration = null; | 8011 | var currentTimerNestedFlushDuration = 0; |
8192 | var currentTimerType = null; | 8012 | var currentTimerType = null; |
8193 | 8013 | ||
8194 | var lifeCycleTimerHasWarned = false; | 8014 | var lifeCycleTimerHasWarned = false; |
@@ -8208,7 +8028,7 @@ | |||
8208 | updateCount: ReactComponentTreeHook.getUpdateCount(id), | 8028 | updateCount: ReactComponentTreeHook.getUpdateCount(id), |
8209 | childIDs: ReactComponentTreeHook.getChildIDs(id), | 8029 | childIDs: ReactComponentTreeHook.getChildIDs(id), |
8210 | // Text nodes don't have owners but this is close enough. | 8030 | // Text nodes don't have owners but this is close enough. |
8211 | ownerID: ownerID || ReactComponentTreeHook.getOwnerID(parentID), | 8031 | ownerID: ownerID || parentID && ReactComponentTreeHook.getOwnerID(parentID) || 0, |
8212 | parentID: parentID | 8032 | parentID: parentID |
8213 | }; | 8033 | }; |
8214 | return tree; | 8034 | return tree; |
@@ -8217,12 +8037,12 @@ | |||
8217 | 8037 | ||
8218 | function resetMeasurements() { | 8038 | function resetMeasurements() { |
8219 | var previousStartTime = currentFlushStartTime; | 8039 | var previousStartTime = currentFlushStartTime; |
8220 | var previousMeasurements = currentFlushMeasurements || []; | 8040 | var previousMeasurements = currentFlushMeasurements; |
8221 | var previousOperations = ReactHostOperationHistoryHook.getHistory(); | 8041 | var previousOperations = ReactHostOperationHistoryHook.getHistory(); |
8222 | 8042 | ||
8223 | if (currentFlushNesting === 0) { | 8043 | if (currentFlushNesting === 0) { |
8224 | currentFlushStartTime = null; | 8044 | currentFlushStartTime = 0; |
8225 | currentFlushMeasurements = null; | 8045 | currentFlushMeasurements = []; |
8226 | clearHistory(); | 8046 | clearHistory(); |
8227 | return; | 8047 | return; |
8228 | } | 8048 | } |
@@ -8243,7 +8063,7 @@ | |||
8243 | } | 8063 | } |
8244 | 8064 | ||
8245 | function checkDebugID(debugID) { | 8065 | function checkDebugID(debugID) { |
8246 | var allowRoot = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; | 8066 | var allowRoot = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; |
8247 | 8067 | ||
8248 | if (allowRoot && debugID === 0) { | 8068 | if (allowRoot && debugID === 0) { |
8249 | return; | 8069 | return; |
@@ -8282,8 +8102,8 @@ | |||
8282 | duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration | 8102 | duration: performanceNow() - currentTimerStartTime - currentTimerNestedFlushDuration |
8283 | }); | 8103 | }); |
8284 | } | 8104 | } |
8285 | currentTimerStartTime = null; | 8105 | currentTimerStartTime = 0; |
8286 | currentTimerNestedFlushDuration = null; | 8106 | currentTimerNestedFlushDuration = 0; |
8287 | currentTimerDebugID = null; | 8107 | currentTimerDebugID = null; |
8288 | currentTimerType = null; | 8108 | currentTimerType = null; |
8289 | } | 8109 | } |
@@ -8296,19 +8116,18 @@ | |||
8296 | timerType: currentTimerType | 8116 | timerType: currentTimerType |
8297 | }; | 8117 | }; |
8298 | lifeCycleTimerStack.push(currentTimer); | 8118 | lifeCycleTimerStack.push(currentTimer); |
8299 | currentTimerStartTime = null; | 8119 | currentTimerStartTime = 0; |
8300 | currentTimerNestedFlushDuration = null; | 8120 | currentTimerNestedFlushDuration = 0; |
8301 | currentTimerDebugID = null; | 8121 | currentTimerDebugID = null; |
8302 | currentTimerType = null; | 8122 | currentTimerType = null; |
8303 | } | 8123 | } |
8304 | 8124 | ||
8305 | function resumeCurrentLifeCycleTimer() { | 8125 | function resumeCurrentLifeCycleTimer() { |
8306 | var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(); | 8126 | var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(), |
8307 | 8127 | startTime = _lifeCycleTimerStack$.startTime, | |
8308 | var startTime = _lifeCycleTimerStack$.startTime; | 8128 | nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime, |
8309 | var nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime; | 8129 | debugID = _lifeCycleTimerStack$.debugID, |
8310 | var debugID = _lifeCycleTimerStack$.debugID; | 8130 | timerType = _lifeCycleTimerStack$.timerType; |
8311 | var timerType = _lifeCycleTimerStack$.timerType; | ||
8312 | 8131 | ||
8313 | var nestedFlushDuration = performanceNow() - nestedFlushStartTime; | 8132 | var nestedFlushDuration = performanceNow() - nestedFlushStartTime; |
8314 | currentTimerStartTime = startTime; | 8133 | currentTimerStartTime = startTime; |
@@ -8317,6 +8136,60 @@ | |||
8317 | currentTimerType = timerType; | 8136 | currentTimerType = timerType; |
8318 | } | 8137 | } |
8319 | 8138 | ||
8139 | var lastMarkTimeStamp = 0; | ||
8140 | var canUsePerformanceMeasure = | ||
8141 | // $FlowFixMe https://github.com/facebook/flow/issues/2345 | ||
8142 | typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function'; | ||
8143 | |||
8144 | function shouldMark(debugID) { | ||
8145 | if (!isProfiling || !canUsePerformanceMeasure) { | ||
8146 | return false; | ||
8147 | } | ||
8148 | var element = ReactComponentTreeHook.getElement(debugID); | ||
8149 | if (element == null || typeof element !== 'object') { | ||
8150 | return false; | ||
8151 | } | ||
8152 | var isHostElement = typeof element.type === 'string'; | ||
8153 | if (isHostElement) { | ||
8154 | return false; | ||
8155 | } | ||
8156 | return true; | ||
8157 | } | ||
8158 | |||
8159 | function markBegin(debugID, markType) { | ||
8160 | if (!shouldMark(debugID)) { | ||
8161 | return; | ||
8162 | } | ||
8163 | |||
8164 | var markName = debugID + '::' + markType; | ||
8165 | lastMarkTimeStamp = performanceNow(); | ||
8166 | performance.mark(markName); | ||
8167 | } | ||
8168 | |||
8169 | function markEnd(debugID, markType) { | ||
8170 | if (!shouldMark(debugID)) { | ||
8171 | return; | ||
8172 | } | ||
8173 | |||
8174 | var markName = debugID + '::' + markType; | ||
8175 | var displayName = ReactComponentTreeHook.getDisplayName(debugID) || 'Unknown'; | ||
8176 | |||
8177 | // Chrome has an issue of dropping markers recorded too fast: | ||
8178 | // https://bugs.chromium.org/p/chromium/issues/detail?id=640652 | ||
8179 | // To work around this, we will not report very small measurements. | ||
8180 | // I determined the magic number by tweaking it back and forth. | ||
8181 | // 0.05ms was enough to prevent the issue, but I set it to 0.1ms to be safe. | ||
8182 | // When the bug is fixed, we can `measure()` unconditionally if we want to. | ||
8183 | var timeStamp = performanceNow(); | ||
8184 | if (timeStamp - lastMarkTimeStamp > 0.1) { | ||
8185 | var measurementName = displayName + ' [' + markType + ']'; | ||
8186 | performance.measure(measurementName, markName); | ||
8187 | } | ||
8188 | |||
8189 | performance.clearMarks(markName); | ||
8190 | performance.clearMeasures(measurementName); | ||
8191 | } | ||
8192 | |||
8320 | var ReactDebugTool = { | 8193 | var ReactDebugTool = { |
8321 | addHook: function (hook) { | 8194 | addHook: function (hook) { |
8322 | hooks.push(hook); | 8195 | hooks.push(hook); |
@@ -8369,11 +8242,13 @@ | |||
8369 | onBeginLifeCycleTimer: function (debugID, timerType) { | 8242 | onBeginLifeCycleTimer: function (debugID, timerType) { |
8370 | checkDebugID(debugID); | 8243 | checkDebugID(debugID); |
8371 | emitEvent('onBeginLifeCycleTimer', debugID, timerType); | 8244 | emitEvent('onBeginLifeCycleTimer', debugID, timerType); |
8245 | markBegin(debugID, timerType); | ||
8372 | beginLifeCycleTimer(debugID, timerType); | 8246 | beginLifeCycleTimer(debugID, timerType); |
8373 | }, | 8247 | }, |
8374 | onEndLifeCycleTimer: function (debugID, timerType) { | 8248 | onEndLifeCycleTimer: function (debugID, timerType) { |
8375 | checkDebugID(debugID); | 8249 | checkDebugID(debugID); |
8376 | endLifeCycleTimer(debugID, timerType); | 8250 | endLifeCycleTimer(debugID, timerType); |
8251 | markEnd(debugID, timerType); | ||
8377 | emitEvent('onEndLifeCycleTimer', debugID, timerType); | 8252 | emitEvent('onEndLifeCycleTimer', debugID, timerType); |
8378 | }, | 8253 | }, |
8379 | onBeginProcessingChildContext: function () { | 8254 | onBeginProcessingChildContext: function () { |
@@ -8382,9 +8257,9 @@ | |||
8382 | onEndProcessingChildContext: function () { | 8257 | onEndProcessingChildContext: function () { |
8383 | emitEvent('onEndProcessingChildContext'); | 8258 | emitEvent('onEndProcessingChildContext'); |
8384 | }, | 8259 | }, |
8385 | onHostOperation: function (debugID, type, payload) { | 8260 | onHostOperation: function (operation) { |
8386 | checkDebugID(debugID); | 8261 | checkDebugID(operation.instanceID); |
8387 | emitEvent('onHostOperation', debugID, type, payload); | 8262 | emitEvent('onHostOperation', operation); |
8388 | }, | 8263 | }, |
8389 | onSetState: function () { | 8264 | onSetState: function () { |
8390 | emitEvent('onSetState'); | 8265 | emitEvent('onSetState'); |
@@ -8398,25 +8273,31 @@ | |||
8398 | checkDebugID(debugID); | 8273 | checkDebugID(debugID); |
8399 | checkDebugID(parentDebugID, true); | 8274 | checkDebugID(parentDebugID, true); |
8400 | emitEvent('onBeforeMountComponent', debugID, element, parentDebugID); | 8275 | emitEvent('onBeforeMountComponent', debugID, element, parentDebugID); |
8276 | markBegin(debugID, 'mount'); | ||
8401 | }, | 8277 | }, |
8402 | onMountComponent: function (debugID) { | 8278 | onMountComponent: function (debugID) { |
8403 | checkDebugID(debugID); | 8279 | checkDebugID(debugID); |
8280 | markEnd(debugID, 'mount'); | ||
8404 | emitEvent('onMountComponent', debugID); | 8281 | emitEvent('onMountComponent', debugID); |
8405 | }, | 8282 | }, |
8406 | onBeforeUpdateComponent: function (debugID, element) { | 8283 | onBeforeUpdateComponent: function (debugID, element) { |
8407 | checkDebugID(debugID); | 8284 | checkDebugID(debugID); |
8408 | emitEvent('onBeforeUpdateComponent', debugID, element); | 8285 | emitEvent('onBeforeUpdateComponent', debugID, element); |
8286 | markBegin(debugID, 'update'); | ||
8409 | }, | 8287 | }, |
8410 | onUpdateComponent: function (debugID) { | 8288 | onUpdateComponent: function (debugID) { |
8411 | checkDebugID(debugID); | 8289 | checkDebugID(debugID); |
8290 | markEnd(debugID, 'update'); | ||
8412 | emitEvent('onUpdateComponent', debugID); | 8291 | emitEvent('onUpdateComponent', debugID); |
8413 | }, | 8292 | }, |
8414 | onBeforeUnmountComponent: function (debugID) { | 8293 | onBeforeUnmountComponent: function (debugID) { |
8415 | checkDebugID(debugID); | 8294 | checkDebugID(debugID); |
8416 | emitEvent('onBeforeUnmountComponent', debugID); | 8295 | emitEvent('onBeforeUnmountComponent', debugID); |
8296 | markBegin(debugID, 'unmount'); | ||
8417 | }, | 8297 | }, |
8418 | onUnmountComponent: function (debugID) { | 8298 | onUnmountComponent: function (debugID) { |
8419 | checkDebugID(debugID); | 8299 | checkDebugID(debugID); |
8300 | markEnd(debugID, 'unmount'); | ||
8420 | emitEvent('onUnmountComponent', debugID); | 8301 | emitEvent('onUnmountComponent', debugID); |
8421 | }, | 8302 | }, |
8422 | onTestEvent: function () { | 8303 | onTestEvent: function () { |
@@ -8430,7 +8311,6 @@ | |||
8430 | 8311 | ||
8431 | ReactDebugTool.addHook(ReactInvalidSetStateWarningHook); | 8312 | ReactDebugTool.addHook(ReactInvalidSetStateWarningHook); |
8432 | ReactDebugTool.addHook(ReactComponentTreeHook); | 8313 | ReactDebugTool.addHook(ReactComponentTreeHook); |
8433 | ReactDebugTool.addHook(ReactChildrenMutationWarningHook); | ||
8434 | var url = ExecutionEnvironment.canUseDOM && window.location.href || ''; | 8314 | var url = ExecutionEnvironment.canUseDOM && window.location.href || ''; |
8435 | if (/[?&]react_perf\b/.test(url)) { | 8315 | if (/[?&]react_perf\b/.test(url)) { |
8436 | ReactDebugTool.beginProfiling(); | 8316 | ReactDebugTool.beginProfiling(); |
@@ -8451,7 +8331,7 @@ | |||
8451 | * LICENSE file in the root directory of this source tree. An additional grant | 8331 | * LICENSE file in the root directory of this source tree. An additional grant |
8452 | * of patent rights can be found in the PATENTS file in the same directory. | 8332 | * of patent rights can be found in the PATENTS file in the same directory. |
8453 | * | 8333 | * |
8454 | * @providesModule ReactInvalidSetStateWarningHook | 8334 | * |
8455 | */ | 8335 | */ |
8456 | 8336 | ||
8457 | 'use strict'; | 8337 | 'use strict'; |
@@ -8493,7 +8373,7 @@ | |||
8493 | * LICENSE file in the root directory of this source tree. An additional grant | 8373 | * LICENSE file in the root directory of this source tree. An additional grant |
8494 | * of patent rights can be found in the PATENTS file in the same directory. | 8374 | * of patent rights can be found in the PATENTS file in the same directory. |
8495 | * | 8375 | * |
8496 | * @providesModule ReactHostOperationHistoryHook | 8376 | * |
8497 | */ | 8377 | */ |
8498 | 8378 | ||
8499 | 'use strict'; | 8379 | 'use strict'; |
@@ -8501,12 +8381,8 @@ | |||
8501 | var history = []; | 8381 | var history = []; |
8502 | 8382 | ||
8503 | var ReactHostOperationHistoryHook = { | 8383 | var ReactHostOperationHistoryHook = { |
8504 | onHostOperation: function (debugID, type, payload) { | 8384 | onHostOperation: function (operation) { |
8505 | history.push({ | 8385 | history.push(operation); |
8506 | instanceID: debugID, | ||
8507 | type: type, | ||
8508 | payload: payload | ||
8509 | }); | ||
8510 | }, | 8386 | }, |
8511 | clearHistory: function () { | 8387 | clearHistory: function () { |
8512 | if (ReactHostOperationHistoryHook._preventClearing) { | 8388 | if (ReactHostOperationHistoryHook._preventClearing) { |
@@ -8527,66 +8403,6 @@ | |||
8527 | /* 68 */ | 8403 | /* 68 */ |
8528 | /***/ function(module, exports, __webpack_require__) { | 8404 | /***/ function(module, exports, __webpack_require__) { |
8529 | 8405 | ||
8530 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
8531 | * Copyright 2013-present, Facebook, Inc. | ||
8532 | * All rights reserved. | ||
8533 | * | ||
8534 | * This source code is licensed under the BSD-style license found in the | ||
8535 | * LICENSE file in the root directory of this source tree. An additional grant | ||
8536 | * of patent rights can be found in the PATENTS file in the same directory. | ||
8537 | * | ||
8538 | * @providesModule ReactChildrenMutationWarningHook | ||
8539 | */ | ||
8540 | |||
8541 | 'use strict'; | ||
8542 | |||
8543 | var ReactComponentTreeHook = __webpack_require__(30); | ||
8544 | |||
8545 | var warning = __webpack_require__(13); | ||
8546 | |||
8547 | function handleElement(debugID, element) { | ||
8548 | if (element == null) { | ||
8549 | return; | ||
8550 | } | ||
8551 | if (element._shadowChildren === undefined) { | ||
8552 | return; | ||
8553 | } | ||
8554 | if (element._shadowChildren === element.props.children) { | ||
8555 | return; | ||
8556 | } | ||
8557 | var isMutated = false; | ||
8558 | if (Array.isArray(element._shadowChildren)) { | ||
8559 | if (element._shadowChildren.length === element.props.children.length) { | ||
8560 | for (var i = 0; i < element._shadowChildren.length; i++) { | ||
8561 | if (element._shadowChildren[i] !== element.props.children[i]) { | ||
8562 | isMutated = true; | ||
8563 | } | ||
8564 | } | ||
8565 | } else { | ||
8566 | isMutated = true; | ||
8567 | } | ||
8568 | } | ||
8569 | if (!Array.isArray(element._shadowChildren) || isMutated) { | ||
8570 | process.env.NODE_ENV !== 'production' ? warning(false, 'Component\'s children should not be mutated.%s', ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; | ||
8571 | } | ||
8572 | } | ||
8573 | |||
8574 | var ReactChildrenMutationWarningHook = { | ||
8575 | onMountComponent: function (debugID) { | ||
8576 | handleElement(debugID, ReactComponentTreeHook.getElement(debugID)); | ||
8577 | }, | ||
8578 | onUpdateComponent: function (debugID) { | ||
8579 | handleElement(debugID, ReactComponentTreeHook.getElement(debugID)); | ||
8580 | } | ||
8581 | }; | ||
8582 | |||
8583 | module.exports = ReactChildrenMutationWarningHook; | ||
8584 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
8585 | |||
8586 | /***/ }, | ||
8587 | /* 69 */ | ||
8588 | /***/ function(module, exports, __webpack_require__) { | ||
8589 | |||
8590 | 'use strict'; | 8406 | 'use strict'; |
8591 | 8407 | ||
8592 | /** | 8408 | /** |
@@ -8600,7 +8416,7 @@ | |||
8600 | * @typechecks | 8416 | * @typechecks |
8601 | */ | 8417 | */ |
8602 | 8418 | ||
8603 | var performance = __webpack_require__(70); | 8419 | var performance = __webpack_require__(69); |
8604 | 8420 | ||
8605 | var performanceNow; | 8421 | var performanceNow; |
8606 | 8422 | ||
@@ -8622,7 +8438,7 @@ | |||
8622 | module.exports = performanceNow; | 8438 | module.exports = performanceNow; |
8623 | 8439 | ||
8624 | /***/ }, | 8440 | /***/ }, |
8625 | /* 70 */ | 8441 | /* 69 */ |
8626 | /***/ function(module, exports, __webpack_require__) { | 8442 | /***/ function(module, exports, __webpack_require__) { |
8627 | 8443 | ||
8628 | /** | 8444 | /** |
@@ -8638,7 +8454,7 @@ | |||
8638 | 8454 | ||
8639 | 'use strict'; | 8455 | 'use strict'; |
8640 | 8456 | ||
8641 | var ExecutionEnvironment = __webpack_require__(51); | 8457 | var ExecutionEnvironment = __webpack_require__(50); |
8642 | 8458 | ||
8643 | var performance; | 8459 | var performance; |
8644 | 8460 | ||
@@ -8649,7 +8465,7 @@ | |||
8649 | module.exports = performance || {}; | 8465 | module.exports = performance || {}; |
8650 | 8466 | ||
8651 | /***/ }, | 8467 | /***/ }, |
8652 | /* 71 */ | 8468 | /* 70 */ |
8653 | /***/ function(module, exports, __webpack_require__) { | 8469 | /***/ function(module, exports, __webpack_require__) { |
8654 | 8470 | ||
8655 | /* WEBPACK VAR INJECTION */(function(process) {/** | 8471 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -8660,15 +8476,17 @@ | |||
8660 | * LICENSE file in the root directory of this source tree. An additional grant | 8476 | * LICENSE file in the root directory of this source tree. An additional grant |
8661 | * of patent rights can be found in the PATENTS file in the same directory. | 8477 | * of patent rights can be found in the PATENTS file in the same directory. |
8662 | * | 8478 | * |
8663 | * @providesModule Transaction | 8479 | * |
8664 | */ | 8480 | */ |
8665 | 8481 | ||
8666 | 'use strict'; | 8482 | 'use strict'; |
8667 | 8483 | ||
8668 | var _prodInvariant = __webpack_require__(9); | 8484 | var _prodInvariant = __webpack_require__(37); |
8669 | 8485 | ||
8670 | var invariant = __webpack_require__(10); | 8486 | var invariant = __webpack_require__(10); |
8671 | 8487 | ||
8488 | var OBSERVED_ERROR = {}; | ||
8489 | |||
8672 | /** | 8490 | /** |
8673 | * `Transaction` creates a black box that is able to wrap any method such that | 8491 | * `Transaction` creates a black box that is able to wrap any method such that |
8674 | * certain invariants are maintained before and after the method is invoked | 8492 | * certain invariants are maintained before and after the method is invoked |
@@ -8730,7 +8548,7 @@ | |||
8730 | * | 8548 | * |
8731 | * @class Transaction | 8549 | * @class Transaction |
8732 | */ | 8550 | */ |
8733 | var Mixin = { | 8551 | var TransactionImpl = { |
8734 | /** | 8552 | /** |
8735 | * Sets up this instance so that it is prepared for collecting metrics. Does | 8553 | * Sets up this instance so that it is prepared for collecting metrics. Does |
8736 | * so such that this setup method may be used on an instance that is already | 8554 | * so such that this setup method may be used on an instance that is already |
@@ -8820,10 +8638,10 @@ | |||
8820 | // OBSERVED_ERROR state before overwriting it with the real return value | 8638 | // OBSERVED_ERROR state before overwriting it with the real return value |
8821 | // of initialize -- if it's still set to OBSERVED_ERROR in the finally | 8639 | // of initialize -- if it's still set to OBSERVED_ERROR in the finally |
8822 | // block, it means wrapper.initialize threw. | 8640 | // block, it means wrapper.initialize threw. |
8823 | this.wrapperInitData[i] = Transaction.OBSERVED_ERROR; | 8641 | this.wrapperInitData[i] = OBSERVED_ERROR; |
8824 | this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null; | 8642 | this.wrapperInitData[i] = wrapper.initialize ? wrapper.initialize.call(this) : null; |
8825 | } finally { | 8643 | } finally { |
8826 | if (this.wrapperInitData[i] === Transaction.OBSERVED_ERROR) { | 8644 | if (this.wrapperInitData[i] === OBSERVED_ERROR) { |
8827 | // The initializer for wrapper i threw an error; initialize the | 8645 | // The initializer for wrapper i threw an error; initialize the |
8828 | // remaining wrappers but silence any exceptions from them to ensure | 8646 | // remaining wrappers but silence any exceptions from them to ensure |
8829 | // that the first error is the one to bubble up. | 8647 | // that the first error is the one to bubble up. |
@@ -8854,7 +8672,7 @@ | |||
8854 | // close -- if it's still set to true in the finally block, it means | 8672 | // close -- if it's still set to true in the finally block, it means |
8855 | // wrapper.close threw. | 8673 | // wrapper.close threw. |
8856 | errorThrown = true; | 8674 | errorThrown = true; |
8857 | if (initData !== Transaction.OBSERVED_ERROR && wrapper.close) { | 8675 | if (initData !== OBSERVED_ERROR && wrapper.close) { |
8858 | wrapper.close.call(this, initData); | 8676 | wrapper.close.call(this, initData); |
8859 | } | 8677 | } |
8860 | errorThrown = false; | 8678 | errorThrown = false; |
@@ -8873,22 +8691,11 @@ | |||
8873 | } | 8691 | } |
8874 | }; | 8692 | }; |
8875 | 8693 | ||
8876 | var Transaction = { | 8694 | module.exports = TransactionImpl; |
8877 | |||
8878 | Mixin: Mixin, | ||
8879 | |||
8880 | /** | ||
8881 | * Token to look for to determine if an error occurred. | ||
8882 | */ | ||
8883 | OBSERVED_ERROR: {} | ||
8884 | |||
8885 | }; | ||
8886 | |||
8887 | module.exports = Transaction; | ||
8888 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 8695 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
8889 | 8696 | ||
8890 | /***/ }, | 8697 | /***/ }, |
8891 | /* 72 */ | 8698 | /* 71 */ |
8892 | /***/ function(module, exports) { | 8699 | /***/ function(module, exports) { |
8893 | 8700 | ||
8894 | /** | 8701 | /** |
@@ -8899,7 +8706,6 @@ | |||
8899 | * LICENSE file in the root directory of this source tree. An additional grant | 8706 | * LICENSE file in the root directory of this source tree. An additional grant |
8900 | * of patent rights can be found in the PATENTS file in the same directory. | 8707 | * of patent rights can be found in the PATENTS file in the same directory. |
8901 | * | 8708 | * |
8902 | * @providesModule getEventTarget | ||
8903 | */ | 8709 | */ |
8904 | 8710 | ||
8905 | 'use strict'; | 8711 | 'use strict'; |
@@ -8928,7 +8734,7 @@ | |||
8928 | module.exports = getEventTarget; | 8734 | module.exports = getEventTarget; |
8929 | 8735 | ||
8930 | /***/ }, | 8736 | /***/ }, |
8931 | /* 73 */ | 8737 | /* 72 */ |
8932 | /***/ function(module, exports, __webpack_require__) { | 8738 | /***/ function(module, exports, __webpack_require__) { |
8933 | 8739 | ||
8934 | /** | 8740 | /** |
@@ -8939,12 +8745,11 @@ | |||
8939 | * LICENSE file in the root directory of this source tree. An additional grant | 8745 | * LICENSE file in the root directory of this source tree. An additional grant |
8940 | * of patent rights can be found in the PATENTS file in the same directory. | 8746 | * of patent rights can be found in the PATENTS file in the same directory. |
8941 | * | 8747 | * |
8942 | * @providesModule isEventSupported | ||
8943 | */ | 8748 | */ |
8944 | 8749 | ||
8945 | 'use strict'; | 8750 | 'use strict'; |
8946 | 8751 | ||
8947 | var ExecutionEnvironment = __webpack_require__(51); | 8752 | var ExecutionEnvironment = __webpack_require__(50); |
8948 | 8753 | ||
8949 | var useHasFeature; | 8754 | var useHasFeature; |
8950 | if (ExecutionEnvironment.canUseDOM) { | 8755 | if (ExecutionEnvironment.canUseDOM) { |
@@ -8993,7 +8798,7 @@ | |||
8993 | module.exports = isEventSupported; | 8798 | module.exports = isEventSupported; |
8994 | 8799 | ||
8995 | /***/ }, | 8800 | /***/ }, |
8996 | /* 74 */ | 8801 | /* 73 */ |
8997 | /***/ function(module, exports) { | 8802 | /***/ function(module, exports) { |
8998 | 8803 | ||
8999 | /** | 8804 | /** |
@@ -9004,7 +8809,6 @@ | |||
9004 | * LICENSE file in the root directory of this source tree. An additional grant | 8809 | * LICENSE file in the root directory of this source tree. An additional grant |
9005 | * of patent rights can be found in the PATENTS file in the same directory. | 8810 | * of patent rights can be found in the PATENTS file in the same directory. |
9006 | * | 8811 | * |
9007 | * @providesModule isTextInputElement | ||
9008 | * | 8812 | * |
9009 | */ | 8813 | */ |
9010 | 8814 | ||
@@ -9049,8 +8853,8 @@ | |||
9049 | module.exports = isTextInputElement; | 8853 | module.exports = isTextInputElement; |
9050 | 8854 | ||
9051 | /***/ }, | 8855 | /***/ }, |
9052 | /* 75 */ | 8856 | /* 74 */ |
9053 | /***/ function(module, exports, __webpack_require__) { | 8857 | /***/ function(module, exports) { |
9054 | 8858 | ||
9055 | /** | 8859 | /** |
9056 | * Copyright 2013-present, Facebook, Inc. | 8860 | * Copyright 2013-present, Facebook, Inc. |
@@ -9060,13 +8864,10 @@ | |||
9060 | * LICENSE file in the root directory of this source tree. An additional grant | 8864 | * LICENSE file in the root directory of this source tree. An additional grant |
9061 | * of patent rights can be found in the PATENTS file in the same directory. | 8865 | * of patent rights can be found in the PATENTS file in the same directory. |
9062 | * | 8866 | * |
9063 | * @providesModule DefaultEventPluginOrder | ||
9064 | */ | 8867 | */ |
9065 | 8868 | ||
9066 | 'use strict'; | 8869 | 'use strict'; |
9067 | 8870 | ||
9068 | var keyOf = __webpack_require__(27); | ||
9069 | |||
9070 | /** | 8871 | /** |
9071 | * Module that is injectable into `EventPluginHub`, that specifies a | 8872 | * Module that is injectable into `EventPluginHub`, that specifies a |
9072 | * deterministic ordering of `EventPlugin`s. A convenient way to reason about | 8873 | * deterministic ordering of `EventPlugin`s. A convenient way to reason about |
@@ -9076,12 +8877,13 @@ | |||
9076 | * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that | 8877 | * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that |
9077 | * preventing default on events is convenient in `SimpleEventPlugin` handlers. | 8878 | * preventing default on events is convenient in `SimpleEventPlugin` handlers. |
9078 | */ | 8879 | */ |
9079 | var DefaultEventPluginOrder = [keyOf({ ResponderEventPlugin: null }), keyOf({ SimpleEventPlugin: null }), keyOf({ TapEventPlugin: null }), keyOf({ EnterLeaveEventPlugin: null }), keyOf({ ChangeEventPlugin: null }), keyOf({ SelectEventPlugin: null }), keyOf({ BeforeInputEventPlugin: null })]; | 8880 | |
8881 | var DefaultEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'TapEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin']; | ||
9080 | 8882 | ||
9081 | module.exports = DefaultEventPluginOrder; | 8883 | module.exports = DefaultEventPluginOrder; |
9082 | 8884 | ||
9083 | /***/ }, | 8885 | /***/ }, |
9084 | /* 76 */ | 8886 | /* 75 */ |
9085 | /***/ function(module, exports, __webpack_require__) { | 8887 | /***/ function(module, exports, __webpack_require__) { |
9086 | 8888 | ||
9087 | /** | 8889 | /** |
@@ -9092,28 +8894,22 @@ | |||
9092 | * LICENSE file in the root directory of this source tree. An additional grant | 8894 | * LICENSE file in the root directory of this source tree. An additional grant |
9093 | * of patent rights can be found in the PATENTS file in the same directory. | 8895 | * of patent rights can be found in the PATENTS file in the same directory. |
9094 | * | 8896 | * |
9095 | * @providesModule EnterLeaveEventPlugin | ||
9096 | */ | 8897 | */ |
9097 | 8898 | ||
9098 | 'use strict'; | 8899 | 'use strict'; |
9099 | 8900 | ||
9100 | var EventConstants = __webpack_require__(43); | 8901 | var EventPropagators = __webpack_require__(43); |
9101 | var EventPropagators = __webpack_require__(44); | 8902 | var ReactDOMComponentTree = __webpack_require__(36); |
9102 | var ReactDOMComponentTree = __webpack_require__(38); | 8903 | var SyntheticMouseEvent = __webpack_require__(76); |
9103 | var SyntheticMouseEvent = __webpack_require__(77); | ||
9104 | |||
9105 | var keyOf = __webpack_require__(27); | ||
9106 | |||
9107 | var topLevelTypes = EventConstants.topLevelTypes; | ||
9108 | 8904 | ||
9109 | var eventTypes = { | 8905 | var eventTypes = { |
9110 | mouseEnter: { | 8906 | mouseEnter: { |
9111 | registrationName: keyOf({ onMouseEnter: null }), | 8907 | registrationName: 'onMouseEnter', |
9112 | dependencies: [topLevelTypes.topMouseOut, topLevelTypes.topMouseOver] | 8908 | dependencies: ['topMouseOut', 'topMouseOver'] |
9113 | }, | 8909 | }, |
9114 | mouseLeave: { | 8910 | mouseLeave: { |
9115 | registrationName: keyOf({ onMouseLeave: null }), | 8911 | registrationName: 'onMouseLeave', |
9116 | dependencies: [topLevelTypes.topMouseOut, topLevelTypes.topMouseOver] | 8912 | dependencies: ['topMouseOut', 'topMouseOver'] |
9117 | } | 8913 | } |
9118 | }; | 8914 | }; |
9119 | 8915 | ||
@@ -9129,10 +8925,10 @@ | |||
9129 | * the `mouseover` top-level event. | 8925 | * the `mouseover` top-level event. |
9130 | */ | 8926 | */ |
9131 | extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { | 8927 | extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) { |
9132 | if (topLevelType === topLevelTypes.topMouseOver && (nativeEvent.relatedTarget || nativeEvent.fromElement)) { | 8928 | if (topLevelType === 'topMouseOver' && (nativeEvent.relatedTarget || nativeEvent.fromElement)) { |
9133 | return null; | 8929 | return null; |
9134 | } | 8930 | } |
9135 | if (topLevelType !== topLevelTypes.topMouseOut && topLevelType !== topLevelTypes.topMouseOver) { | 8931 | if (topLevelType !== 'topMouseOut' && topLevelType !== 'topMouseOver') { |
9136 | // Must not be a mouse in or mouse out - ignoring. | 8932 | // Must not be a mouse in or mouse out - ignoring. |
9137 | return null; | 8933 | return null; |
9138 | } | 8934 | } |
@@ -9153,7 +8949,7 @@ | |||
9153 | 8949 | ||
9154 | var from; | 8950 | var from; |
9155 | var to; | 8951 | var to; |
9156 | if (topLevelType === topLevelTypes.topMouseOut) { | 8952 | if (topLevelType === 'topMouseOut') { |
9157 | from = targetInst; | 8953 | from = targetInst; |
9158 | var related = nativeEvent.relatedTarget || nativeEvent.toElement; | 8954 | var related = nativeEvent.relatedTarget || nativeEvent.toElement; |
9159 | to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null; | 8955 | to = related ? ReactDOMComponentTree.getClosestInstanceFromNode(related) : null; |
@@ -9191,7 +8987,7 @@ | |||
9191 | module.exports = EnterLeaveEventPlugin; | 8987 | module.exports = EnterLeaveEventPlugin; |
9192 | 8988 | ||
9193 | /***/ }, | 8989 | /***/ }, |
9194 | /* 77 */ | 8990 | /* 76 */ |
9195 | /***/ function(module, exports, __webpack_require__) { | 8991 | /***/ function(module, exports, __webpack_require__) { |
9196 | 8992 | ||
9197 | /** | 8993 | /** |
@@ -9202,15 +8998,14 @@ | |||
9202 | * LICENSE file in the root directory of this source tree. An additional grant | 8998 | * LICENSE file in the root directory of this source tree. An additional grant |
9203 | * of patent rights can be found in the PATENTS file in the same directory. | 8999 | * of patent rights can be found in the PATENTS file in the same directory. |
9204 | * | 9000 | * |
9205 | * @providesModule SyntheticMouseEvent | ||
9206 | */ | 9001 | */ |
9207 | 9002 | ||
9208 | 'use strict'; | 9003 | 'use strict'; |
9209 | 9004 | ||
9210 | var SyntheticUIEvent = __webpack_require__(78); | 9005 | var SyntheticUIEvent = __webpack_require__(77); |
9211 | var ViewportMetrics = __webpack_require__(79); | 9006 | var ViewportMetrics = __webpack_require__(78); |
9212 | 9007 | ||
9213 | var getEventModifierState = __webpack_require__(80); | 9008 | var getEventModifierState = __webpack_require__(79); |
9214 | 9009 | ||
9215 | /** | 9010 | /** |
9216 | * @interface MouseEvent | 9011 | * @interface MouseEvent |
@@ -9268,7 +9063,7 @@ | |||
9268 | module.exports = SyntheticMouseEvent; | 9063 | module.exports = SyntheticMouseEvent; |
9269 | 9064 | ||
9270 | /***/ }, | 9065 | /***/ }, |
9271 | /* 78 */ | 9066 | /* 77 */ |
9272 | /***/ function(module, exports, __webpack_require__) { | 9067 | /***/ function(module, exports, __webpack_require__) { |
9273 | 9068 | ||
9274 | /** | 9069 | /** |
@@ -9279,14 +9074,13 @@ | |||
9279 | * LICENSE file in the root directory of this source tree. An additional grant | 9074 | * LICENSE file in the root directory of this source tree. An additional grant |
9280 | * of patent rights can be found in the PATENTS file in the same directory. | 9075 | * of patent rights can be found in the PATENTS file in the same directory. |
9281 | * | 9076 | * |
9282 | * @providesModule SyntheticUIEvent | ||
9283 | */ | 9077 | */ |
9284 | 9078 | ||
9285 | 'use strict'; | 9079 | 'use strict'; |
9286 | 9080 | ||
9287 | var SyntheticEvent = __webpack_require__(55); | 9081 | var SyntheticEvent = __webpack_require__(55); |
9288 | 9082 | ||
9289 | var getEventTarget = __webpack_require__(72); | 9083 | var getEventTarget = __webpack_require__(71); |
9290 | 9084 | ||
9291 | /** | 9085 | /** |
9292 | * @interface UIEvent | 9086 | * @interface UIEvent |
@@ -9332,7 +9126,7 @@ | |||
9332 | module.exports = SyntheticUIEvent; | 9126 | module.exports = SyntheticUIEvent; |
9333 | 9127 | ||
9334 | /***/ }, | 9128 | /***/ }, |
9335 | /* 79 */ | 9129 | /* 78 */ |
9336 | /***/ function(module, exports) { | 9130 | /***/ function(module, exports) { |
9337 | 9131 | ||
9338 | /** | 9132 | /** |
@@ -9343,7 +9137,6 @@ | |||
9343 | * LICENSE file in the root directory of this source tree. An additional grant | 9137 | * LICENSE file in the root directory of this source tree. An additional grant |
9344 | * of patent rights can be found in the PATENTS file in the same directory. | 9138 | * of patent rights can be found in the PATENTS file in the same directory. |
9345 | * | 9139 | * |
9346 | * @providesModule ViewportMetrics | ||
9347 | */ | 9140 | */ |
9348 | 9141 | ||
9349 | 'use strict'; | 9142 | 'use strict'; |
@@ -9364,7 +9157,7 @@ | |||
9364 | module.exports = ViewportMetrics; | 9157 | module.exports = ViewportMetrics; |
9365 | 9158 | ||
9366 | /***/ }, | 9159 | /***/ }, |
9367 | /* 80 */ | 9160 | /* 79 */ |
9368 | /***/ function(module, exports) { | 9161 | /***/ function(module, exports) { |
9369 | 9162 | ||
9370 | /** | 9163 | /** |
@@ -9375,7 +9168,6 @@ | |||
9375 | * LICENSE file in the root directory of this source tree. An additional grant | 9168 | * LICENSE file in the root directory of this source tree. An additional grant |
9376 | * of patent rights can be found in the PATENTS file in the same directory. | 9169 | * of patent rights can be found in the PATENTS file in the same directory. |
9377 | * | 9170 | * |
9378 | * @providesModule getEventModifierState | ||
9379 | */ | 9171 | */ |
9380 | 9172 | ||
9381 | 'use strict'; | 9173 | 'use strict'; |
@@ -9412,7 +9204,7 @@ | |||
9412 | module.exports = getEventModifierState; | 9204 | module.exports = getEventModifierState; |
9413 | 9205 | ||
9414 | /***/ }, | 9206 | /***/ }, |
9415 | /* 81 */ | 9207 | /* 80 */ |
9416 | /***/ function(module, exports, __webpack_require__) { | 9208 | /***/ function(module, exports, __webpack_require__) { |
9417 | 9209 | ||
9418 | /** | 9210 | /** |
@@ -9423,12 +9215,11 @@ | |||
9423 | * LICENSE file in the root directory of this source tree. An additional grant | 9215 | * LICENSE file in the root directory of this source tree. An additional grant |
9424 | * of patent rights can be found in the PATENTS file in the same directory. | 9216 | * of patent rights can be found in the PATENTS file in the same directory. |
9425 | * | 9217 | * |
9426 | * @providesModule HTMLDOMPropertyConfig | ||
9427 | */ | 9218 | */ |
9428 | 9219 | ||
9429 | 'use strict'; | 9220 | 'use strict'; |
9430 | 9221 | ||
9431 | var DOMProperty = __webpack_require__(39); | 9222 | var DOMProperty = __webpack_require__(38); |
9432 | 9223 | ||
9433 | var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY; | 9224 | var MUST_USE_PROPERTY = DOMProperty.injection.MUST_USE_PROPERTY; |
9434 | var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE; | 9225 | var HAS_BOOLEAN_VALUE = DOMProperty.injection.HAS_BOOLEAN_VALUE; |
@@ -9629,7 +9420,7 @@ | |||
9629 | module.exports = HTMLDOMPropertyConfig; | 9420 | module.exports = HTMLDOMPropertyConfig; |
9630 | 9421 | ||
9631 | /***/ }, | 9422 | /***/ }, |
9632 | /* 82 */ | 9423 | /* 81 */ |
9633 | /***/ function(module, exports, __webpack_require__) { | 9424 | /***/ function(module, exports, __webpack_require__) { |
9634 | 9425 | ||
9635 | /** | 9426 | /** |
@@ -9640,13 +9431,12 @@ | |||
9640 | * LICENSE file in the root directory of this source tree. An additional grant | 9431 | * LICENSE file in the root directory of this source tree. An additional grant |
9641 | * of patent rights can be found in the PATENTS file in the same directory. | 9432 | * of patent rights can be found in the PATENTS file in the same directory. |
9642 | * | 9433 | * |
9643 | * @providesModule ReactComponentBrowserEnvironment | ||
9644 | */ | 9434 | */ |
9645 | 9435 | ||
9646 | 'use strict'; | 9436 | 'use strict'; |
9647 | 9437 | ||
9648 | var DOMChildrenOperations = __webpack_require__(83); | 9438 | var DOMChildrenOperations = __webpack_require__(82); |
9649 | var ReactDOMIDOperations = __webpack_require__(95); | 9439 | var ReactDOMIDOperations = __webpack_require__(93); |
9650 | 9440 | ||
9651 | /** | 9441 | /** |
9652 | * Abstracts away all functionality of the reconciler that requires knowledge of | 9442 | * Abstracts away all functionality of the reconciler that requires knowledge of |
@@ -9664,7 +9454,7 @@ | |||
9664 | module.exports = ReactComponentBrowserEnvironment; | 9454 | module.exports = ReactComponentBrowserEnvironment; |
9665 | 9455 | ||
9666 | /***/ }, | 9456 | /***/ }, |
9667 | /* 83 */ | 9457 | /* 82 */ |
9668 | /***/ function(module, exports, __webpack_require__) { | 9458 | /***/ function(module, exports, __webpack_require__) { |
9669 | 9459 | ||
9670 | /* WEBPACK VAR INJECTION */(function(process) {/** | 9460 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -9675,20 +9465,18 @@ | |||
9675 | * LICENSE file in the root directory of this source tree. An additional grant | 9465 | * LICENSE file in the root directory of this source tree. An additional grant |
9676 | * of patent rights can be found in the PATENTS file in the same directory. | 9466 | * of patent rights can be found in the PATENTS file in the same directory. |
9677 | * | 9467 | * |
9678 | * @providesModule DOMChildrenOperations | ||
9679 | */ | 9468 | */ |
9680 | 9469 | ||
9681 | 'use strict'; | 9470 | 'use strict'; |
9682 | 9471 | ||
9683 | var DOMLazyTree = __webpack_require__(84); | 9472 | var DOMLazyTree = __webpack_require__(83); |
9684 | var Danger = __webpack_require__(90); | 9473 | var Danger = __webpack_require__(89); |
9685 | var ReactMultiChildUpdateTypes = __webpack_require__(94); | 9474 | var ReactDOMComponentTree = __webpack_require__(36); |
9686 | var ReactDOMComponentTree = __webpack_require__(38); | ||
9687 | var ReactInstrumentation = __webpack_require__(64); | 9475 | var ReactInstrumentation = __webpack_require__(64); |
9688 | 9476 | ||
9689 | var createMicrosoftUnsafeLocalFunction = __webpack_require__(87); | 9477 | var createMicrosoftUnsafeLocalFunction = __webpack_require__(86); |
9690 | var setInnerHTML = __webpack_require__(86); | 9478 | var setInnerHTML = __webpack_require__(85); |
9691 | var setTextContent = __webpack_require__(88); | 9479 | var setTextContent = __webpack_require__(87); |
9692 | 9480 | ||
9693 | function getNodeAfter(parentNode, node) { | 9481 | function getNodeAfter(parentNode, node) { |
9694 | // Special case for text components, which return [open, close] comments | 9482 | // Special case for text components, which return [open, close] comments |
@@ -9781,7 +9569,11 @@ | |||
9781 | } | 9569 | } |
9782 | 9570 | ||
9783 | if (process.env.NODE_ENV !== 'production') { | 9571 | if (process.env.NODE_ENV !== 'production') { |
9784 | ReactInstrumentation.debugTool.onHostOperation(ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID, 'replace text', stringText); | 9572 | ReactInstrumentation.debugTool.onHostOperation({ |
9573 | instanceID: ReactDOMComponentTree.getInstanceFromNode(openingComment)._debugID, | ||
9574 | type: 'replace text', | ||
9575 | payload: stringText | ||
9576 | }); | ||
9785 | } | 9577 | } |
9786 | } | 9578 | } |
9787 | 9579 | ||
@@ -9790,11 +9582,19 @@ | |||
9790 | dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) { | 9582 | dangerouslyReplaceNodeWithMarkup = function (oldChild, markup, prevInstance) { |
9791 | Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup); | 9583 | Danger.dangerouslyReplaceNodeWithMarkup(oldChild, markup); |
9792 | if (prevInstance._debugID !== 0) { | 9584 | if (prevInstance._debugID !== 0) { |
9793 | ReactInstrumentation.debugTool.onHostOperation(prevInstance._debugID, 'replace with', markup.toString()); | 9585 | ReactInstrumentation.debugTool.onHostOperation({ |
9586 | instanceID: prevInstance._debugID, | ||
9587 | type: 'replace with', | ||
9588 | payload: markup.toString() | ||
9589 | }); | ||
9794 | } else { | 9590 | } else { |
9795 | var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node); | 9591 | var nextInstance = ReactDOMComponentTree.getInstanceFromNode(markup.node); |
9796 | if (nextInstance._debugID !== 0) { | 9592 | if (nextInstance._debugID !== 0) { |
9797 | ReactInstrumentation.debugTool.onHostOperation(nextInstance._debugID, 'mount', markup.toString()); | 9593 | ReactInstrumentation.debugTool.onHostOperation({ |
9594 | instanceID: nextInstance._debugID, | ||
9595 | type: 'mount', | ||
9596 | payload: markup.toString() | ||
9597 | }); | ||
9798 | } | 9598 | } |
9799 | } | 9599 | } |
9800 | }; | 9600 | }; |
@@ -9824,34 +9624,54 @@ | |||
9824 | for (var k = 0; k < updates.length; k++) { | 9624 | for (var k = 0; k < updates.length; k++) { |
9825 | var update = updates[k]; | 9625 | var update = updates[k]; |
9826 | switch (update.type) { | 9626 | switch (update.type) { |
9827 | case ReactMultiChildUpdateTypes.INSERT_MARKUP: | 9627 | case 'INSERT_MARKUP': |
9828 | insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode)); | 9628 | insertLazyTreeChildAt(parentNode, update.content, getNodeAfter(parentNode, update.afterNode)); |
9829 | if (process.env.NODE_ENV !== 'production') { | 9629 | if (process.env.NODE_ENV !== 'production') { |
9830 | ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'insert child', { toIndex: update.toIndex, content: update.content.toString() }); | 9630 | ReactInstrumentation.debugTool.onHostOperation({ |
9631 | instanceID: parentNodeDebugID, | ||
9632 | type: 'insert child', | ||
9633 | payload: { toIndex: update.toIndex, content: update.content.toString() } | ||
9634 | }); | ||
9831 | } | 9635 | } |
9832 | break; | 9636 | break; |
9833 | case ReactMultiChildUpdateTypes.MOVE_EXISTING: | 9637 | case 'MOVE_EXISTING': |
9834 | moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)); | 9638 | moveChild(parentNode, update.fromNode, getNodeAfter(parentNode, update.afterNode)); |
9835 | if (process.env.NODE_ENV !== 'production') { | 9639 | if (process.env.NODE_ENV !== 'production') { |
9836 | ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'move child', { fromIndex: update.fromIndex, toIndex: update.toIndex }); | 9640 | ReactInstrumentation.debugTool.onHostOperation({ |
9641 | instanceID: parentNodeDebugID, | ||
9642 | type: 'move child', | ||
9643 | payload: { fromIndex: update.fromIndex, toIndex: update.toIndex } | ||
9644 | }); | ||
9837 | } | 9645 | } |
9838 | break; | 9646 | break; |
9839 | case ReactMultiChildUpdateTypes.SET_MARKUP: | 9647 | case 'SET_MARKUP': |
9840 | setInnerHTML(parentNode, update.content); | 9648 | setInnerHTML(parentNode, update.content); |
9841 | if (process.env.NODE_ENV !== 'production') { | 9649 | if (process.env.NODE_ENV !== 'production') { |
9842 | ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'replace children', update.content.toString()); | 9650 | ReactInstrumentation.debugTool.onHostOperation({ |
9651 | instanceID: parentNodeDebugID, | ||
9652 | type: 'replace children', | ||
9653 | payload: update.content.toString() | ||
9654 | }); | ||
9843 | } | 9655 | } |
9844 | break; | 9656 | break; |
9845 | case ReactMultiChildUpdateTypes.TEXT_CONTENT: | 9657 | case 'TEXT_CONTENT': |
9846 | setTextContent(parentNode, update.content); | 9658 | setTextContent(parentNode, update.content); |
9847 | if (process.env.NODE_ENV !== 'production') { | 9659 | if (process.env.NODE_ENV !== 'production') { |
9848 | ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'replace text', update.content.toString()); | 9660 | ReactInstrumentation.debugTool.onHostOperation({ |
9661 | instanceID: parentNodeDebugID, | ||
9662 | type: 'replace text', | ||
9663 | payload: update.content.toString() | ||
9664 | }); | ||
9849 | } | 9665 | } |
9850 | break; | 9666 | break; |
9851 | case ReactMultiChildUpdateTypes.REMOVE_NODE: | 9667 | case 'REMOVE_NODE': |
9852 | removeChild(parentNode, update.fromNode); | 9668 | removeChild(parentNode, update.fromNode); |
9853 | if (process.env.NODE_ENV !== 'production') { | 9669 | if (process.env.NODE_ENV !== 'production') { |
9854 | ReactInstrumentation.debugTool.onHostOperation(parentNodeDebugID, 'remove child', { fromIndex: update.fromIndex }); | 9670 | ReactInstrumentation.debugTool.onHostOperation({ |
9671 | instanceID: parentNodeDebugID, | ||
9672 | type: 'remove child', | ||
9673 | payload: { fromIndex: update.fromIndex } | ||
9674 | }); | ||
9855 | } | 9675 | } |
9856 | break; | 9676 | break; |
9857 | } | 9677 | } |
@@ -9864,7 +9684,7 @@ | |||
9864 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 9684 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
9865 | 9685 | ||
9866 | /***/ }, | 9686 | /***/ }, |
9867 | /* 84 */ | 9687 | /* 83 */ |
9868 | /***/ function(module, exports, __webpack_require__) { | 9688 | /***/ function(module, exports, __webpack_require__) { |
9869 | 9689 | ||
9870 | /** | 9690 | /** |
@@ -9875,16 +9695,15 @@ | |||
9875 | * LICENSE file in the root directory of this source tree. An additional grant | 9695 | * LICENSE file in the root directory of this source tree. An additional grant |
9876 | * of patent rights can be found in the PATENTS file in the same directory. | 9696 | * of patent rights can be found in the PATENTS file in the same directory. |
9877 | * | 9697 | * |
9878 | * @providesModule DOMLazyTree | ||
9879 | */ | 9698 | */ |
9880 | 9699 | ||
9881 | 'use strict'; | 9700 | 'use strict'; |
9882 | 9701 | ||
9883 | var DOMNamespaces = __webpack_require__(85); | 9702 | var DOMNamespaces = __webpack_require__(84); |
9884 | var setInnerHTML = __webpack_require__(86); | 9703 | var setInnerHTML = __webpack_require__(85); |
9885 | 9704 | ||
9886 | var createMicrosoftUnsafeLocalFunction = __webpack_require__(87); | 9705 | var createMicrosoftUnsafeLocalFunction = __webpack_require__(86); |
9887 | var setTextContent = __webpack_require__(88); | 9706 | var setTextContent = __webpack_require__(87); |
9888 | 9707 | ||
9889 | var ELEMENT_NODE_TYPE = 1; | 9708 | var ELEMENT_NODE_TYPE = 1; |
9890 | var DOCUMENT_FRAGMENT_NODE_TYPE = 11; | 9709 | var DOCUMENT_FRAGMENT_NODE_TYPE = 11; |
@@ -9987,7 +9806,7 @@ | |||
9987 | module.exports = DOMLazyTree; | 9806 | module.exports = DOMLazyTree; |
9988 | 9807 | ||
9989 | /***/ }, | 9808 | /***/ }, |
9990 | /* 85 */ | 9809 | /* 84 */ |
9991 | /***/ function(module, exports) { | 9810 | /***/ function(module, exports) { |
9992 | 9811 | ||
9993 | /** | 9812 | /** |
@@ -9998,7 +9817,6 @@ | |||
9998 | * LICENSE file in the root directory of this source tree. An additional grant | 9817 | * LICENSE file in the root directory of this source tree. An additional grant |
9999 | * of patent rights can be found in the PATENTS file in the same directory. | 9818 | * of patent rights can be found in the PATENTS file in the same directory. |
10000 | * | 9819 | * |
10001 | * @providesModule DOMNamespaces | ||
10002 | */ | 9820 | */ |
10003 | 9821 | ||
10004 | 'use strict'; | 9822 | 'use strict'; |
@@ -10012,7 +9830,7 @@ | |||
10012 | module.exports = DOMNamespaces; | 9830 | module.exports = DOMNamespaces; |
10013 | 9831 | ||
10014 | /***/ }, | 9832 | /***/ }, |
10015 | /* 86 */ | 9833 | /* 85 */ |
10016 | /***/ function(module, exports, __webpack_require__) { | 9834 | /***/ function(module, exports, __webpack_require__) { |
10017 | 9835 | ||
10018 | /** | 9836 | /** |
@@ -10023,18 +9841,17 @@ | |||
10023 | * LICENSE file in the root directory of this source tree. An additional grant | 9841 | * LICENSE file in the root directory of this source tree. An additional grant |
10024 | * of patent rights can be found in the PATENTS file in the same directory. | 9842 | * of patent rights can be found in the PATENTS file in the same directory. |
10025 | * | 9843 | * |
10026 | * @providesModule setInnerHTML | ||
10027 | */ | 9844 | */ |
10028 | 9845 | ||
10029 | 'use strict'; | 9846 | 'use strict'; |
10030 | 9847 | ||
10031 | var ExecutionEnvironment = __webpack_require__(51); | 9848 | var ExecutionEnvironment = __webpack_require__(50); |
10032 | var DOMNamespaces = __webpack_require__(85); | 9849 | var DOMNamespaces = __webpack_require__(84); |
10033 | 9850 | ||
10034 | var WHITESPACE_TEST = /^[ \r\n\t\f]/; | 9851 | var WHITESPACE_TEST = /^[ \r\n\t\f]/; |
10035 | var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/; | 9852 | var NONVISIBLE_TEST = /<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/; |
10036 | 9853 | ||
10037 | var createMicrosoftUnsafeLocalFunction = __webpack_require__(87); | 9854 | var createMicrosoftUnsafeLocalFunction = __webpack_require__(86); |
10038 | 9855 | ||
10039 | // SVG temp container for IE lacking innerHTML | 9856 | // SVG temp container for IE lacking innerHTML |
10040 | var reusableSVGContainer; | 9857 | var reusableSVGContainer; |
@@ -10115,7 +9932,7 @@ | |||
10115 | module.exports = setInnerHTML; | 9932 | module.exports = setInnerHTML; |
10116 | 9933 | ||
10117 | /***/ }, | 9934 | /***/ }, |
10118 | /* 87 */ | 9935 | /* 86 */ |
10119 | /***/ function(module, exports) { | 9936 | /***/ function(module, exports) { |
10120 | 9937 | ||
10121 | /** | 9938 | /** |
@@ -10126,7 +9943,6 @@ | |||
10126 | * LICENSE file in the root directory of this source tree. An additional grant | 9943 | * LICENSE file in the root directory of this source tree. An additional grant |
10127 | * of patent rights can be found in the PATENTS file in the same directory. | 9944 | * of patent rights can be found in the PATENTS file in the same directory. |
10128 | * | 9945 | * |
10129 | * @providesModule createMicrosoftUnsafeLocalFunction | ||
10130 | */ | 9946 | */ |
10131 | 9947 | ||
10132 | /* globals MSApp */ | 9948 | /* globals MSApp */ |
@@ -10152,7 +9968,7 @@ | |||
10152 | module.exports = createMicrosoftUnsafeLocalFunction; | 9968 | module.exports = createMicrosoftUnsafeLocalFunction; |
10153 | 9969 | ||
10154 | /***/ }, | 9970 | /***/ }, |
10155 | /* 88 */ | 9971 | /* 87 */ |
10156 | /***/ function(module, exports, __webpack_require__) { | 9972 | /***/ function(module, exports, __webpack_require__) { |
10157 | 9973 | ||
10158 | /** | 9974 | /** |
@@ -10163,14 +9979,13 @@ | |||
10163 | * LICENSE file in the root directory of this source tree. An additional grant | 9979 | * LICENSE file in the root directory of this source tree. An additional grant |
10164 | * of patent rights can be found in the PATENTS file in the same directory. | 9980 | * of patent rights can be found in the PATENTS file in the same directory. |
10165 | * | 9981 | * |
10166 | * @providesModule setTextContent | ||
10167 | */ | 9982 | */ |
10168 | 9983 | ||
10169 | 'use strict'; | 9984 | 'use strict'; |
10170 | 9985 | ||
10171 | var ExecutionEnvironment = __webpack_require__(51); | 9986 | var ExecutionEnvironment = __webpack_require__(50); |
10172 | var escapeTextContentForBrowser = __webpack_require__(89); | 9987 | var escapeTextContentForBrowser = __webpack_require__(88); |
10173 | var setInnerHTML = __webpack_require__(86); | 9988 | var setInnerHTML = __webpack_require__(85); |
10174 | 9989 | ||
10175 | /** | 9990 | /** |
10176 | * Set the textContent property of a node, ensuring that whitespace is preserved | 9991 | * Set the textContent property of a node, ensuring that whitespace is preserved |
@@ -10197,6 +10012,10 @@ | |||
10197 | if (ExecutionEnvironment.canUseDOM) { | 10012 | if (ExecutionEnvironment.canUseDOM) { |
10198 | if (!('textContent' in document.documentElement)) { | 10013 | if (!('textContent' in document.documentElement)) { |
10199 | setTextContent = function (node, text) { | 10014 | setTextContent = function (node, text) { |
10015 | if (node.nodeType === 3) { | ||
10016 | node.nodeValue = text; | ||
10017 | return; | ||
10018 | } | ||
10200 | setInnerHTML(node, escapeTextContentForBrowser(text)); | 10019 | setInnerHTML(node, escapeTextContentForBrowser(text)); |
10201 | }; | 10020 | }; |
10202 | } | 10021 | } |
@@ -10205,7 +10024,7 @@ | |||
10205 | module.exports = setTextContent; | 10024 | module.exports = setTextContent; |
10206 | 10025 | ||
10207 | /***/ }, | 10026 | /***/ }, |
10208 | /* 89 */ | 10027 | /* 88 */ |
10209 | /***/ function(module, exports) { | 10028 | /***/ function(module, exports) { |
10210 | 10029 | ||
10211 | /** | 10030 | /** |
@@ -10241,7 +10060,6 @@ | |||
10241 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | 10060 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
10242 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 10061 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
10243 | * | 10062 | * |
10244 | * @providesModule escapeTextContentForBrowser | ||
10245 | */ | 10063 | */ |
10246 | 10064 | ||
10247 | 'use strict'; | 10065 | 'use strict'; |
@@ -10333,7 +10151,7 @@ | |||
10333 | module.exports = escapeTextContentForBrowser; | 10151 | module.exports = escapeTextContentForBrowser; |
10334 | 10152 | ||
10335 | /***/ }, | 10153 | /***/ }, |
10336 | /* 90 */ | 10154 | /* 89 */ |
10337 | /***/ function(module, exports, __webpack_require__) { | 10155 | /***/ function(module, exports, __webpack_require__) { |
10338 | 10156 | ||
10339 | /* WEBPACK VAR INJECTION */(function(process) {/** | 10157 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -10344,17 +10162,16 @@ | |||
10344 | * LICENSE file in the root directory of this source tree. An additional grant | 10162 | * LICENSE file in the root directory of this source tree. An additional grant |
10345 | * of patent rights can be found in the PATENTS file in the same directory. | 10163 | * of patent rights can be found in the PATENTS file in the same directory. |
10346 | * | 10164 | * |
10347 | * @providesModule Danger | ||
10348 | */ | 10165 | */ |
10349 | 10166 | ||
10350 | 'use strict'; | 10167 | 'use strict'; |
10351 | 10168 | ||
10352 | var _prodInvariant = __webpack_require__(9); | 10169 | var _prodInvariant = __webpack_require__(37); |
10353 | 10170 | ||
10354 | var DOMLazyTree = __webpack_require__(84); | 10171 | var DOMLazyTree = __webpack_require__(83); |
10355 | var ExecutionEnvironment = __webpack_require__(51); | 10172 | var ExecutionEnvironment = __webpack_require__(50); |
10356 | 10173 | ||
10357 | var createNodesFromMarkup = __webpack_require__(91); | 10174 | var createNodesFromMarkup = __webpack_require__(90); |
10358 | var emptyFunction = __webpack_require__(14); | 10175 | var emptyFunction = __webpack_require__(14); |
10359 | var invariant = __webpack_require__(10); | 10176 | var invariant = __webpack_require__(10); |
10360 | 10177 | ||
@@ -10387,7 +10204,7 @@ | |||
10387 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 10204 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
10388 | 10205 | ||
10389 | /***/ }, | 10206 | /***/ }, |
10390 | /* 91 */ | 10207 | /* 90 */ |
10391 | /***/ function(module, exports, __webpack_require__) { | 10208 | /***/ function(module, exports, __webpack_require__) { |
10392 | 10209 | ||
10393 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; | 10210 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; |
@@ -10405,10 +10222,10 @@ | |||
10405 | 10222 | ||
10406 | /*eslint-disable fb-www/unsafe-html*/ | 10223 | /*eslint-disable fb-www/unsafe-html*/ |
10407 | 10224 | ||
10408 | var ExecutionEnvironment = __webpack_require__(51); | 10225 | var ExecutionEnvironment = __webpack_require__(50); |
10409 | 10226 | ||
10410 | var createArrayFromMixed = __webpack_require__(92); | 10227 | var createArrayFromMixed = __webpack_require__(91); |
10411 | var getMarkupWrap = __webpack_require__(93); | 10228 | var getMarkupWrap = __webpack_require__(92); |
10412 | var invariant = __webpack_require__(10); | 10229 | var invariant = __webpack_require__(10); |
10413 | 10230 | ||
10414 | /** | 10231 | /** |
@@ -10476,7 +10293,7 @@ | |||
10476 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 10293 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
10477 | 10294 | ||
10478 | /***/ }, | 10295 | /***/ }, |
10479 | /* 92 */ | 10296 | /* 91 */ |
10480 | /***/ function(module, exports, __webpack_require__) { | 10297 | /***/ function(module, exports, __webpack_require__) { |
10481 | 10298 | ||
10482 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; | 10299 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; |
@@ -10608,7 +10425,7 @@ | |||
10608 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 10425 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
10609 | 10426 | ||
10610 | /***/ }, | 10427 | /***/ }, |
10611 | /* 93 */ | 10428 | /* 92 */ |
10612 | /***/ function(module, exports, __webpack_require__) { | 10429 | /***/ function(module, exports, __webpack_require__) { |
10613 | 10430 | ||
10614 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; | 10431 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; |
@@ -10625,7 +10442,7 @@ | |||
10625 | 10442 | ||
10626 | /*eslint-disable fb-www/unsafe-html */ | 10443 | /*eslint-disable fb-www/unsafe-html */ |
10627 | 10444 | ||
10628 | var ExecutionEnvironment = __webpack_require__(51); | 10445 | var ExecutionEnvironment = __webpack_require__(50); |
10629 | 10446 | ||
10630 | var invariant = __webpack_require__(10); | 10447 | var invariant = __webpack_require__(10); |
10631 | 10448 | ||
@@ -10708,44 +10525,7 @@ | |||
10708 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 10525 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
10709 | 10526 | ||
10710 | /***/ }, | 10527 | /***/ }, |
10711 | /* 94 */ | 10528 | /* 93 */ |
10712 | /***/ function(module, exports, __webpack_require__) { | ||
10713 | |||
10714 | /** | ||
10715 | * Copyright 2013-present, Facebook, Inc. | ||
10716 | * All rights reserved. | ||
10717 | * | ||
10718 | * This source code is licensed under the BSD-style license found in the | ||
10719 | * LICENSE file in the root directory of this source tree. An additional grant | ||
10720 | * of patent rights can be found in the PATENTS file in the same directory. | ||
10721 | * | ||
10722 | * @providesModule ReactMultiChildUpdateTypes | ||
10723 | */ | ||
10724 | |||
10725 | 'use strict'; | ||
10726 | |||
10727 | var keyMirror = __webpack_require__(25); | ||
10728 | |||
10729 | /** | ||
10730 | * When a component's children are updated, a series of update configuration | ||
10731 | * objects are created in order to batch and serialize the required changes. | ||
10732 | * | ||
10733 | * Enumerates all the possible types of update configurations. | ||
10734 | * | ||
10735 | * @internal | ||
10736 | */ | ||
10737 | var ReactMultiChildUpdateTypes = keyMirror({ | ||
10738 | INSERT_MARKUP: null, | ||
10739 | MOVE_EXISTING: null, | ||
10740 | REMOVE_NODE: null, | ||
10741 | SET_MARKUP: null, | ||
10742 | TEXT_CONTENT: null | ||
10743 | }); | ||
10744 | |||
10745 | module.exports = ReactMultiChildUpdateTypes; | ||
10746 | |||
10747 | /***/ }, | ||
10748 | /* 95 */ | ||
10749 | /***/ function(module, exports, __webpack_require__) { | 10529 | /***/ function(module, exports, __webpack_require__) { |
10750 | 10530 | ||
10751 | /** | 10531 | /** |
@@ -10756,13 +10536,12 @@ | |||
10756 | * LICENSE file in the root directory of this source tree. An additional grant | 10536 | * LICENSE file in the root directory of this source tree. An additional grant |
10757 | * of patent rights can be found in the PATENTS file in the same directory. | 10537 | * of patent rights can be found in the PATENTS file in the same directory. |
10758 | * | 10538 | * |
10759 | * @providesModule ReactDOMIDOperations | ||
10760 | */ | 10539 | */ |
10761 | 10540 | ||
10762 | 'use strict'; | 10541 | 'use strict'; |
10763 | 10542 | ||
10764 | var DOMChildrenOperations = __webpack_require__(83); | 10543 | var DOMChildrenOperations = __webpack_require__(82); |
10765 | var ReactDOMComponentTree = __webpack_require__(38); | 10544 | var ReactDOMComponentTree = __webpack_require__(36); |
10766 | 10545 | ||
10767 | /** | 10546 | /** |
10768 | * Operations used to process updates to DOM nodes. | 10547 | * Operations used to process updates to DOM nodes. |
@@ -10784,7 +10563,7 @@ | |||
10784 | module.exports = ReactDOMIDOperations; | 10563 | module.exports = ReactDOMIDOperations; |
10785 | 10564 | ||
10786 | /***/ }, | 10565 | /***/ }, |
10787 | /* 96 */ | 10566 | /* 94 */ |
10788 | /***/ function(module, exports, __webpack_require__) { | 10567 | /***/ function(module, exports, __webpack_require__) { |
10789 | 10568 | ||
10790 | /* WEBPACK VAR INJECTION */(function(process) {/** | 10569 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -10795,44 +10574,40 @@ | |||
10795 | * LICENSE file in the root directory of this source tree. An additional grant | 10574 | * LICENSE file in the root directory of this source tree. An additional grant |
10796 | * of patent rights can be found in the PATENTS file in the same directory. | 10575 | * of patent rights can be found in the PATENTS file in the same directory. |
10797 | * | 10576 | * |
10798 | * @providesModule ReactDOMComponent | ||
10799 | */ | 10577 | */ |
10800 | 10578 | ||
10801 | /* global hasOwnProperty:true */ | 10579 | /* global hasOwnProperty:true */ |
10802 | 10580 | ||
10803 | 'use strict'; | 10581 | 'use strict'; |
10804 | 10582 | ||
10805 | var _prodInvariant = __webpack_require__(9), | 10583 | var _prodInvariant = __webpack_require__(37), |
10806 | _assign = __webpack_require__(6); | 10584 | _assign = __webpack_require__(6); |
10807 | 10585 | ||
10808 | var AutoFocusUtils = __webpack_require__(97); | 10586 | var AutoFocusUtils = __webpack_require__(95); |
10809 | var CSSPropertyOperations = __webpack_require__(99); | 10587 | var CSSPropertyOperations = __webpack_require__(97); |
10810 | var DOMLazyTree = __webpack_require__(84); | 10588 | var DOMLazyTree = __webpack_require__(83); |
10811 | var DOMNamespaces = __webpack_require__(85); | 10589 | var DOMNamespaces = __webpack_require__(84); |
10812 | var DOMProperty = __webpack_require__(39); | 10590 | var DOMProperty = __webpack_require__(38); |
10813 | var DOMPropertyOperations = __webpack_require__(107); | 10591 | var DOMPropertyOperations = __webpack_require__(105); |
10814 | var EventConstants = __webpack_require__(43); | 10592 | var EventPluginHub = __webpack_require__(44); |
10815 | var EventPluginHub = __webpack_require__(45); | 10593 | var EventPluginRegistry = __webpack_require__(45); |
10816 | var EventPluginRegistry = __webpack_require__(46); | 10594 | var ReactBrowserEventEmitter = __webpack_require__(107); |
10817 | var ReactBrowserEventEmitter = __webpack_require__(109); | 10595 | var ReactDOMComponentFlags = __webpack_require__(39); |
10818 | var ReactDOMButton = __webpack_require__(112); | 10596 | var ReactDOMComponentTree = __webpack_require__(36); |
10819 | var ReactDOMComponentFlags = __webpack_require__(40); | 10597 | var ReactDOMInput = __webpack_require__(110); |
10820 | var ReactDOMComponentTree = __webpack_require__(38); | 10598 | var ReactDOMOption = __webpack_require__(113); |
10821 | var ReactDOMInput = __webpack_require__(114); | 10599 | var ReactDOMSelect = __webpack_require__(114); |
10822 | var ReactDOMOption = __webpack_require__(116); | 10600 | var ReactDOMTextarea = __webpack_require__(115); |
10823 | var ReactDOMSelect = __webpack_require__(117); | ||
10824 | var ReactDOMTextarea = __webpack_require__(118); | ||
10825 | var ReactInstrumentation = __webpack_require__(64); | 10601 | var ReactInstrumentation = __webpack_require__(64); |
10826 | var ReactMultiChild = __webpack_require__(119); | 10602 | var ReactMultiChild = __webpack_require__(116); |
10827 | var ReactServerRenderingTransaction = __webpack_require__(131); | 10603 | var ReactServerRenderingTransaction = __webpack_require__(135); |
10828 | 10604 | ||
10829 | var emptyFunction = __webpack_require__(14); | 10605 | var emptyFunction = __webpack_require__(14); |
10830 | var escapeTextContentForBrowser = __webpack_require__(89); | 10606 | var escapeTextContentForBrowser = __webpack_require__(88); |
10831 | var invariant = __webpack_require__(10); | 10607 | var invariant = __webpack_require__(10); |
10832 | var isEventSupported = __webpack_require__(73); | 10608 | var isEventSupported = __webpack_require__(72); |
10833 | var keyOf = __webpack_require__(27); | 10609 | var shallowEqual = __webpack_require__(125); |
10834 | var shallowEqual = __webpack_require__(126); | 10610 | var validateDOMNesting = __webpack_require__(138); |
10835 | var validateDOMNesting = __webpack_require__(134); | ||
10836 | var warning = __webpack_require__(13); | 10611 | var warning = __webpack_require__(13); |
10837 | 10612 | ||
10838 | var Flags = ReactDOMComponentFlags; | 10613 | var Flags = ReactDOMComponentFlags; |
@@ -10844,8 +10619,8 @@ | |||
10844 | // For quickly matching children type, to test if can be treated as content. | 10619 | // For quickly matching children type, to test if can be treated as content. |
10845 | var CONTENT_TYPES = { 'string': true, 'number': true }; | 10620 | var CONTENT_TYPES = { 'string': true, 'number': true }; |
10846 | 10621 | ||
10847 | var STYLE = keyOf({ style: null }); | 10622 | var STYLE = 'style'; |
10848 | var HTML = keyOf({ __html: null }); | 10623 | var HTML = '__html'; |
10849 | var RESERVED_PROPS = { | 10624 | var RESERVED_PROPS = { |
10850 | children: null, | 10625 | children: null, |
10851 | dangerouslySetInnerHTML: null, | 10626 | dangerouslySetInnerHTML: null, |
@@ -11052,7 +10827,7 @@ | |||
11052 | switch (inst._tag) { | 10827 | switch (inst._tag) { |
11053 | case 'iframe': | 10828 | case 'iframe': |
11054 | case 'object': | 10829 | case 'object': |
11055 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load', node)]; | 10830 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)]; |
11056 | break; | 10831 | break; |
11057 | case 'video': | 10832 | case 'video': |
11058 | case 'audio': | 10833 | case 'audio': |
@@ -11061,23 +10836,23 @@ | |||
11061 | // Create listener for each media event | 10836 | // Create listener for each media event |
11062 | for (var event in mediaEvents) { | 10837 | for (var event in mediaEvents) { |
11063 | if (mediaEvents.hasOwnProperty(event)) { | 10838 | if (mediaEvents.hasOwnProperty(event)) { |
11064 | inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes[event], mediaEvents[event], node)); | 10839 | inst._wrapperState.listeners.push(ReactBrowserEventEmitter.trapBubbledEvent(event, mediaEvents[event], node)); |
11065 | } | 10840 | } |
11066 | } | 10841 | } |
11067 | break; | 10842 | break; |
11068 | case 'source': | 10843 | case 'source': |
11069 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topError, 'error', node)]; | 10844 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node)]; |
11070 | break; | 10845 | break; |
11071 | case 'img': | 10846 | case 'img': |
11072 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topError, 'error', node), ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load', node)]; | 10847 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topError', 'error', node), ReactBrowserEventEmitter.trapBubbledEvent('topLoad', 'load', node)]; |
11073 | break; | 10848 | break; |
11074 | case 'form': | 10849 | case 'form': |
11075 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topReset, 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topSubmit, 'submit', node)]; | 10850 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topReset', 'reset', node), ReactBrowserEventEmitter.trapBubbledEvent('topSubmit', 'submit', node)]; |
11076 | break; | 10851 | break; |
11077 | case 'input': | 10852 | case 'input': |
11078 | case 'select': | 10853 | case 'select': |
11079 | case 'textarea': | 10854 | case 'textarea': |
11080 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent(EventConstants.topLevelTypes.topInvalid, 'invalid', node)]; | 10855 | inst._wrapperState.listeners = [ReactBrowserEventEmitter.trapBubbledEvent('topInvalid', 'invalid', node)]; |
11081 | break; | 10856 | break; |
11082 | } | 10857 | } |
11083 | } | 10858 | } |
@@ -11107,7 +10882,6 @@ | |||
11107 | 'wbr': true | 10882 | 'wbr': true |
11108 | }; | 10883 | }; |
11109 | 10884 | ||
11110 | // NOTE: menuitem's close tag should be omitted, but that causes problems. | ||
11111 | var newlineEatingTags = { | 10885 | var newlineEatingTags = { |
11112 | 'listing': true, | 10886 | 'listing': true, |
11113 | 'pre': true, | 10887 | 'pre': true, |
@@ -11216,9 +10990,6 @@ | |||
11216 | }; | 10990 | }; |
11217 | transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); | 10991 | transaction.getReactMountReady().enqueue(trapBubbledEventsLocal, this); |
11218 | break; | 10992 | break; |
11219 | case 'button': | ||
11220 | props = ReactDOMButton.getHostProps(this, props, hostParent); | ||
11221 | break; | ||
11222 | case 'input': | 10993 | case 'input': |
11223 | ReactDOMInput.mountWrapper(this, props, hostParent); | 10994 | ReactDOMInput.mountWrapper(this, props, hostParent); |
11224 | props = ReactDOMInput.getHostProps(this, props); | 10995 | props = ReactDOMInput.getHostProps(this, props); |
@@ -11478,12 +11249,18 @@ | |||
11478 | } else { | 11249 | } else { |
11479 | var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null; | 11250 | var contentToUse = CONTENT_TYPES[typeof props.children] ? props.children : null; |
11480 | var childrenToUse = contentToUse != null ? null : props.children; | 11251 | var childrenToUse = contentToUse != null ? null : props.children; |
11252 | // TODO: Validate that text is allowed as a child of this node | ||
11481 | if (contentToUse != null) { | 11253 | if (contentToUse != null) { |
11482 | // TODO: Validate that text is allowed as a child of this node | 11254 | // Avoid setting textContent when the text is empty. In IE11 setting |
11483 | if (process.env.NODE_ENV !== 'production') { | 11255 | // textContent on a text area will cause the placeholder to not |
11484 | setAndValidateContentChildDev.call(this, contentToUse); | 11256 | // show within the textarea until it has been focused and blurred again. |
11257 | // https://github.com/facebook/react/issues/6731#issuecomment-254874553 | ||
11258 | if (contentToUse !== '') { | ||
11259 | if (process.env.NODE_ENV !== 'production') { | ||
11260 | setAndValidateContentChildDev.call(this, contentToUse); | ||
11261 | } | ||
11262 | DOMLazyTree.queueText(lazyTree, contentToUse); | ||
11485 | } | 11263 | } |
11486 | DOMLazyTree.queueText(lazyTree, contentToUse); | ||
11487 | } else if (childrenToUse != null) { | 11264 | } else if (childrenToUse != null) { |
11488 | var mountImages = this.mountChildren(childrenToUse, transaction, context); | 11265 | var mountImages = this.mountChildren(childrenToUse, transaction, context); |
11489 | for (var i = 0; i < mountImages.length; i++) { | 11266 | for (var i = 0; i < mountImages.length; i++) { |
@@ -11522,10 +11299,6 @@ | |||
11522 | var nextProps = this._currentElement.props; | 11299 | var nextProps = this._currentElement.props; |
11523 | 11300 | ||
11524 | switch (this._tag) { | 11301 | switch (this._tag) { |
11525 | case 'button': | ||
11526 | lastProps = ReactDOMButton.getHostProps(this, lastProps); | ||
11527 | nextProps = ReactDOMButton.getHostProps(this, nextProps); | ||
11528 | break; | ||
11529 | case 'input': | 11302 | case 'input': |
11530 | lastProps = ReactDOMInput.getHostProps(this, lastProps); | 11303 | lastProps = ReactDOMInput.getHostProps(this, lastProps); |
11531 | nextProps = ReactDOMInput.getHostProps(this, nextProps); | 11304 | nextProps = ReactDOMInput.getHostProps(this, nextProps); |
@@ -11796,7 +11569,7 @@ | |||
11796 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 11569 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
11797 | 11570 | ||
11798 | /***/ }, | 11571 | /***/ }, |
11799 | /* 97 */ | 11572 | /* 95 */ |
11800 | /***/ function(module, exports, __webpack_require__) { | 11573 | /***/ function(module, exports, __webpack_require__) { |
11801 | 11574 | ||
11802 | /** | 11575 | /** |
@@ -11807,14 +11580,13 @@ | |||
11807 | * LICENSE file in the root directory of this source tree. An additional grant | 11580 | * LICENSE file in the root directory of this source tree. An additional grant |
11808 | * of patent rights can be found in the PATENTS file in the same directory. | 11581 | * of patent rights can be found in the PATENTS file in the same directory. |
11809 | * | 11582 | * |
11810 | * @providesModule AutoFocusUtils | ||
11811 | */ | 11583 | */ |
11812 | 11584 | ||
11813 | 'use strict'; | 11585 | 'use strict'; |
11814 | 11586 | ||
11815 | var ReactDOMComponentTree = __webpack_require__(38); | 11587 | var ReactDOMComponentTree = __webpack_require__(36); |
11816 | 11588 | ||
11817 | var focusNode = __webpack_require__(98); | 11589 | var focusNode = __webpack_require__(96); |
11818 | 11590 | ||
11819 | var AutoFocusUtils = { | 11591 | var AutoFocusUtils = { |
11820 | focusDOMComponent: function () { | 11592 | focusDOMComponent: function () { |
@@ -11825,7 +11597,7 @@ | |||
11825 | module.exports = AutoFocusUtils; | 11597 | module.exports = AutoFocusUtils; |
11826 | 11598 | ||
11827 | /***/ }, | 11599 | /***/ }, |
11828 | /* 98 */ | 11600 | /* 96 */ |
11829 | /***/ function(module, exports) { | 11601 | /***/ function(module, exports) { |
11830 | 11602 | ||
11831 | /** | 11603 | /** |
@@ -11856,7 +11628,7 @@ | |||
11856 | module.exports = focusNode; | 11628 | module.exports = focusNode; |
11857 | 11629 | ||
11858 | /***/ }, | 11630 | /***/ }, |
11859 | /* 99 */ | 11631 | /* 97 */ |
11860 | /***/ function(module, exports, __webpack_require__) { | 11632 | /***/ function(module, exports, __webpack_require__) { |
11861 | 11633 | ||
11862 | /* WEBPACK VAR INJECTION */(function(process) {/** | 11634 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -11867,19 +11639,18 @@ | |||
11867 | * LICENSE file in the root directory of this source tree. An additional grant | 11639 | * LICENSE file in the root directory of this source tree. An additional grant |
11868 | * of patent rights can be found in the PATENTS file in the same directory. | 11640 | * of patent rights can be found in the PATENTS file in the same directory. |
11869 | * | 11641 | * |
11870 | * @providesModule CSSPropertyOperations | ||
11871 | */ | 11642 | */ |
11872 | 11643 | ||
11873 | 'use strict'; | 11644 | 'use strict'; |
11874 | 11645 | ||
11875 | var CSSProperty = __webpack_require__(100); | 11646 | var CSSProperty = __webpack_require__(98); |
11876 | var ExecutionEnvironment = __webpack_require__(51); | 11647 | var ExecutionEnvironment = __webpack_require__(50); |
11877 | var ReactInstrumentation = __webpack_require__(64); | 11648 | var ReactInstrumentation = __webpack_require__(64); |
11878 | 11649 | ||
11879 | var camelizeStyleName = __webpack_require__(101); | 11650 | var camelizeStyleName = __webpack_require__(99); |
11880 | var dangerousStyleValue = __webpack_require__(103); | 11651 | var dangerousStyleValue = __webpack_require__(101); |
11881 | var hyphenateStyleName = __webpack_require__(104); | 11652 | var hyphenateStyleName = __webpack_require__(102); |
11882 | var memoizeStringOnly = __webpack_require__(106); | 11653 | var memoizeStringOnly = __webpack_require__(104); |
11883 | var warning = __webpack_require__(13); | 11654 | var warning = __webpack_require__(13); |
11884 | 11655 | ||
11885 | var processStyleName = memoizeStringOnly(function (styleName) { | 11656 | var processStyleName = memoizeStringOnly(function (styleName) { |
@@ -12029,7 +11800,11 @@ | |||
12029 | */ | 11800 | */ |
12030 | setValueForStyles: function (node, styles, component) { | 11801 | setValueForStyles: function (node, styles, component) { |
12031 | if (process.env.NODE_ENV !== 'production') { | 11802 | if (process.env.NODE_ENV !== 'production') { |
12032 | ReactInstrumentation.debugTool.onHostOperation(component._debugID, 'update styles', styles); | 11803 | ReactInstrumentation.debugTool.onHostOperation({ |
11804 | instanceID: component._debugID, | ||
11805 | type: 'update styles', | ||
11806 | payload: styles | ||
11807 | }); | ||
12033 | } | 11808 | } |
12034 | 11809 | ||
12035 | var style = node.style; | 11810 | var style = node.style; |
@@ -12067,7 +11842,7 @@ | |||
12067 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 11842 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
12068 | 11843 | ||
12069 | /***/ }, | 11844 | /***/ }, |
12070 | /* 100 */ | 11845 | /* 98 */ |
12071 | /***/ function(module, exports) { | 11846 | /***/ function(module, exports) { |
12072 | 11847 | ||
12073 | /** | 11848 | /** |
@@ -12078,7 +11853,6 @@ | |||
12078 | * LICENSE file in the root directory of this source tree. An additional grant | 11853 | * LICENSE file in the root directory of this source tree. An additional grant |
12079 | * of patent rights can be found in the PATENTS file in the same directory. | 11854 | * of patent rights can be found in the PATENTS file in the same directory. |
12080 | * | 11855 | * |
12081 | * @providesModule CSSProperty | ||
12082 | */ | 11856 | */ |
12083 | 11857 | ||
12084 | 'use strict'; | 11858 | 'use strict'; |
@@ -12220,7 +11994,7 @@ | |||
12220 | module.exports = CSSProperty; | 11994 | module.exports = CSSProperty; |
12221 | 11995 | ||
12222 | /***/ }, | 11996 | /***/ }, |
12223 | /* 101 */ | 11997 | /* 99 */ |
12224 | /***/ function(module, exports, __webpack_require__) { | 11998 | /***/ function(module, exports, __webpack_require__) { |
12225 | 11999 | ||
12226 | /** | 12000 | /** |
@@ -12236,7 +12010,7 @@ | |||
12236 | 12010 | ||
12237 | 'use strict'; | 12011 | 'use strict'; |
12238 | 12012 | ||
12239 | var camelize = __webpack_require__(102); | 12013 | var camelize = __webpack_require__(100); |
12240 | 12014 | ||
12241 | var msPattern = /^-ms-/; | 12015 | var msPattern = /^-ms-/; |
12242 | 12016 | ||
@@ -12264,7 +12038,7 @@ | |||
12264 | module.exports = camelizeStyleName; | 12038 | module.exports = camelizeStyleName; |
12265 | 12039 | ||
12266 | /***/ }, | 12040 | /***/ }, |
12267 | /* 102 */ | 12041 | /* 100 */ |
12268 | /***/ function(module, exports) { | 12042 | /***/ function(module, exports) { |
12269 | 12043 | ||
12270 | "use strict"; | 12044 | "use strict"; |
@@ -12300,7 +12074,7 @@ | |||
12300 | module.exports = camelize; | 12074 | module.exports = camelize; |
12301 | 12075 | ||
12302 | /***/ }, | 12076 | /***/ }, |
12303 | /* 103 */ | 12077 | /* 101 */ |
12304 | /***/ function(module, exports, __webpack_require__) { | 12078 | /***/ function(module, exports, __webpack_require__) { |
12305 | 12079 | ||
12306 | /* WEBPACK VAR INJECTION */(function(process) {/** | 12080 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -12311,12 +12085,11 @@ | |||
12311 | * LICENSE file in the root directory of this source tree. An additional grant | 12085 | * LICENSE file in the root directory of this source tree. An additional grant |
12312 | * of patent rights can be found in the PATENTS file in the same directory. | 12086 | * of patent rights can be found in the PATENTS file in the same directory. |
12313 | * | 12087 | * |
12314 | * @providesModule dangerousStyleValue | ||
12315 | */ | 12088 | */ |
12316 | 12089 | ||
12317 | 'use strict'; | 12090 | 'use strict'; |
12318 | 12091 | ||
12319 | var CSSProperty = __webpack_require__(100); | 12092 | var CSSProperty = __webpack_require__(98); |
12320 | var warning = __webpack_require__(13); | 12093 | var warning = __webpack_require__(13); |
12321 | 12094 | ||
12322 | var isUnitlessNumber = CSSProperty.isUnitlessNumber; | 12095 | var isUnitlessNumber = CSSProperty.isUnitlessNumber; |
@@ -12385,7 +12158,7 @@ | |||
12385 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 12158 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
12386 | 12159 | ||
12387 | /***/ }, | 12160 | /***/ }, |
12388 | /* 104 */ | 12161 | /* 102 */ |
12389 | /***/ function(module, exports, __webpack_require__) { | 12162 | /***/ function(module, exports, __webpack_require__) { |
12390 | 12163 | ||
12391 | /** | 12164 | /** |
@@ -12401,7 +12174,7 @@ | |||
12401 | 12174 | ||
12402 | 'use strict'; | 12175 | 'use strict'; |
12403 | 12176 | ||
12404 | var hyphenate = __webpack_require__(105); | 12177 | var hyphenate = __webpack_require__(103); |
12405 | 12178 | ||
12406 | var msPattern = /^ms-/; | 12179 | var msPattern = /^ms-/; |
12407 | 12180 | ||
@@ -12428,7 +12201,7 @@ | |||
12428 | module.exports = hyphenateStyleName; | 12201 | module.exports = hyphenateStyleName; |
12429 | 12202 | ||
12430 | /***/ }, | 12203 | /***/ }, |
12431 | /* 105 */ | 12204 | /* 103 */ |
12432 | /***/ function(module, exports) { | 12205 | /***/ function(module, exports) { |
12433 | 12206 | ||
12434 | 'use strict'; | 12207 | 'use strict'; |
@@ -12465,7 +12238,7 @@ | |||
12465 | module.exports = hyphenate; | 12238 | module.exports = hyphenate; |
12466 | 12239 | ||
12467 | /***/ }, | 12240 | /***/ }, |
12468 | /* 106 */ | 12241 | /* 104 */ |
12469 | /***/ function(module, exports) { | 12242 | /***/ function(module, exports) { |
12470 | 12243 | ||
12471 | /** | 12244 | /** |
@@ -12499,7 +12272,7 @@ | |||
12499 | module.exports = memoizeStringOnly; | 12272 | module.exports = memoizeStringOnly; |
12500 | 12273 | ||
12501 | /***/ }, | 12274 | /***/ }, |
12502 | /* 107 */ | 12275 | /* 105 */ |
12503 | /***/ function(module, exports, __webpack_require__) { | 12276 | /***/ function(module, exports, __webpack_require__) { |
12504 | 12277 | ||
12505 | /* WEBPACK VAR INJECTION */(function(process) {/** | 12278 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -12510,16 +12283,15 @@ | |||
12510 | * LICENSE file in the root directory of this source tree. An additional grant | 12283 | * LICENSE file in the root directory of this source tree. An additional grant |
12511 | * of patent rights can be found in the PATENTS file in the same directory. | 12284 | * of patent rights can be found in the PATENTS file in the same directory. |
12512 | * | 12285 | * |
12513 | * @providesModule DOMPropertyOperations | ||
12514 | */ | 12286 | */ |
12515 | 12287 | ||
12516 | 'use strict'; | 12288 | 'use strict'; |
12517 | 12289 | ||
12518 | var DOMProperty = __webpack_require__(39); | 12290 | var DOMProperty = __webpack_require__(38); |
12519 | var ReactDOMComponentTree = __webpack_require__(38); | 12291 | var ReactDOMComponentTree = __webpack_require__(36); |
12520 | var ReactInstrumentation = __webpack_require__(64); | 12292 | var ReactInstrumentation = __webpack_require__(64); |
12521 | 12293 | ||
12522 | var quoteAttributeValueForBrowser = __webpack_require__(108); | 12294 | var quoteAttributeValueForBrowser = __webpack_require__(106); |
12523 | var warning = __webpack_require__(13); | 12295 | var warning = __webpack_require__(13); |
12524 | 12296 | ||
12525 | var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$'); | 12297 | var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + DOMProperty.ATTRIBUTE_NAME_START_CHAR + '][' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$'); |
@@ -12655,7 +12427,11 @@ | |||
12655 | if (process.env.NODE_ENV !== 'production') { | 12427 | if (process.env.NODE_ENV !== 'production') { |
12656 | var payload = {}; | 12428 | var payload = {}; |
12657 | payload[name] = value; | 12429 | payload[name] = value; |
12658 | ReactInstrumentation.debugTool.onHostOperation(ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 'update attribute', payload); | 12430 | ReactInstrumentation.debugTool.onHostOperation({ |
12431 | instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, | ||
12432 | type: 'update attribute', | ||
12433 | payload: payload | ||
12434 | }); | ||
12659 | } | 12435 | } |
12660 | }, | 12436 | }, |
12661 | 12437 | ||
@@ -12672,7 +12448,11 @@ | |||
12672 | if (process.env.NODE_ENV !== 'production') { | 12448 | if (process.env.NODE_ENV !== 'production') { |
12673 | var payload = {}; | 12449 | var payload = {}; |
12674 | payload[name] = value; | 12450 | payload[name] = value; |
12675 | ReactInstrumentation.debugTool.onHostOperation(ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 'update attribute', payload); | 12451 | ReactInstrumentation.debugTool.onHostOperation({ |
12452 | instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, | ||
12453 | type: 'update attribute', | ||
12454 | payload: payload | ||
12455 | }); | ||
12676 | } | 12456 | } |
12677 | }, | 12457 | }, |
12678 | 12458 | ||
@@ -12685,7 +12465,11 @@ | |||
12685 | deleteValueForAttribute: function (node, name) { | 12465 | deleteValueForAttribute: function (node, name) { |
12686 | node.removeAttribute(name); | 12466 | node.removeAttribute(name); |
12687 | if (process.env.NODE_ENV !== 'production') { | 12467 | if (process.env.NODE_ENV !== 'production') { |
12688 | ReactInstrumentation.debugTool.onHostOperation(ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 'remove attribute', name); | 12468 | ReactInstrumentation.debugTool.onHostOperation({ |
12469 | instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, | ||
12470 | type: 'remove attribute', | ||
12471 | payload: name | ||
12472 | }); | ||
12689 | } | 12473 | } |
12690 | }, | 12474 | }, |
12691 | 12475 | ||
@@ -12716,7 +12500,11 @@ | |||
12716 | } | 12500 | } |
12717 | 12501 | ||
12718 | if (process.env.NODE_ENV !== 'production') { | 12502 | if (process.env.NODE_ENV !== 'production') { |
12719 | ReactInstrumentation.debugTool.onHostOperation(ReactDOMComponentTree.getInstanceFromNode(node)._debugID, 'remove attribute', name); | 12503 | ReactInstrumentation.debugTool.onHostOperation({ |
12504 | instanceID: ReactDOMComponentTree.getInstanceFromNode(node)._debugID, | ||
12505 | type: 'remove attribute', | ||
12506 | payload: name | ||
12507 | }); | ||
12720 | } | 12508 | } |
12721 | } | 12509 | } |
12722 | 12510 | ||
@@ -12726,7 +12514,7 @@ | |||
12726 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 12514 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
12727 | 12515 | ||
12728 | /***/ }, | 12516 | /***/ }, |
12729 | /* 108 */ | 12517 | /* 106 */ |
12730 | /***/ function(module, exports, __webpack_require__) { | 12518 | /***/ function(module, exports, __webpack_require__) { |
12731 | 12519 | ||
12732 | /** | 12520 | /** |
@@ -12737,12 +12525,11 @@ | |||
12737 | * LICENSE file in the root directory of this source tree. An additional grant | 12525 | * LICENSE file in the root directory of this source tree. An additional grant |
12738 | * of patent rights can be found in the PATENTS file in the same directory. | 12526 | * of patent rights can be found in the PATENTS file in the same directory. |
12739 | * | 12527 | * |
12740 | * @providesModule quoteAttributeValueForBrowser | ||
12741 | */ | 12528 | */ |
12742 | 12529 | ||
12743 | 'use strict'; | 12530 | 'use strict'; |
12744 | 12531 | ||
12745 | var escapeTextContentForBrowser = __webpack_require__(89); | 12532 | var escapeTextContentForBrowser = __webpack_require__(88); |
12746 | 12533 | ||
12747 | /** | 12534 | /** |
12748 | * Escapes attribute value to prevent scripting attacks. | 12535 | * Escapes attribute value to prevent scripting attacks. |
@@ -12757,7 +12544,7 @@ | |||
12757 | module.exports = quoteAttributeValueForBrowser; | 12544 | module.exports = quoteAttributeValueForBrowser; |
12758 | 12545 | ||
12759 | /***/ }, | 12546 | /***/ }, |
12760 | /* 109 */ | 12547 | /* 107 */ |
12761 | /***/ function(module, exports, __webpack_require__) { | 12548 | /***/ function(module, exports, __webpack_require__) { |
12762 | 12549 | ||
12763 | /** | 12550 | /** |
@@ -12768,20 +12555,18 @@ | |||
12768 | * LICENSE file in the root directory of this source tree. An additional grant | 12555 | * LICENSE file in the root directory of this source tree. An additional grant |
12769 | * of patent rights can be found in the PATENTS file in the same directory. | 12556 | * of patent rights can be found in the PATENTS file in the same directory. |
12770 | * | 12557 | * |
12771 | * @providesModule ReactBrowserEventEmitter | ||
12772 | */ | 12558 | */ |
12773 | 12559 | ||
12774 | 'use strict'; | 12560 | 'use strict'; |
12775 | 12561 | ||
12776 | var _assign = __webpack_require__(6); | 12562 | var _assign = __webpack_require__(6); |
12777 | 12563 | ||
12778 | var EventConstants = __webpack_require__(43); | 12564 | var EventPluginRegistry = __webpack_require__(45); |
12779 | var EventPluginRegistry = __webpack_require__(46); | 12565 | var ReactEventEmitterMixin = __webpack_require__(108); |
12780 | var ReactEventEmitterMixin = __webpack_require__(110); | 12566 | var ViewportMetrics = __webpack_require__(78); |
12781 | var ViewportMetrics = __webpack_require__(79); | ||
12782 | 12567 | ||
12783 | var getVendorPrefixedEventName = __webpack_require__(111); | 12568 | var getVendorPrefixedEventName = __webpack_require__(109); |
12784 | var isEventSupported = __webpack_require__(73); | 12569 | var isEventSupported = __webpack_require__(72); |
12785 | 12570 | ||
12786 | /** | 12571 | /** |
12787 | * Summary of `ReactBrowserEventEmitter` event handling: | 12572 | * Summary of `ReactBrowserEventEmitter` event handling: |
@@ -12999,42 +12784,41 @@ | |||
12999 | var isListening = getListeningForDocument(mountAt); | 12784 | var isListening = getListeningForDocument(mountAt); |
13000 | var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName]; | 12785 | var dependencies = EventPluginRegistry.registrationNameDependencies[registrationName]; |
13001 | 12786 | ||
13002 | var topLevelTypes = EventConstants.topLevelTypes; | ||
13003 | for (var i = 0; i < dependencies.length; i++) { | 12787 | for (var i = 0; i < dependencies.length; i++) { |
13004 | var dependency = dependencies[i]; | 12788 | var dependency = dependencies[i]; |
13005 | if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) { | 12789 | if (!(isListening.hasOwnProperty(dependency) && isListening[dependency])) { |
13006 | if (dependency === topLevelTypes.topWheel) { | 12790 | if (dependency === 'topWheel') { |
13007 | if (isEventSupported('wheel')) { | 12791 | if (isEventSupported('wheel')) { |
13008 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel, 'wheel', mountAt); | 12792 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'wheel', mountAt); |
13009 | } else if (isEventSupported('mousewheel')) { | 12793 | } else if (isEventSupported('mousewheel')) { |
13010 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel, 'mousewheel', mountAt); | 12794 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'mousewheel', mountAt); |
13011 | } else { | 12795 | } else { |
13012 | // Firefox needs to capture a different mouse scroll event. | 12796 | // Firefox needs to capture a different mouse scroll event. |
13013 | // @see http://www.quirksmode.org/dom/events/tests/scroll.html | 12797 | // @see http://www.quirksmode.org/dom/events/tests/scroll.html |
13014 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel, 'DOMMouseScroll', mountAt); | 12798 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topWheel', 'DOMMouseScroll', mountAt); |
13015 | } | 12799 | } |
13016 | } else if (dependency === topLevelTypes.topScroll) { | 12800 | } else if (dependency === 'topScroll') { |
13017 | 12801 | ||
13018 | if (isEventSupported('scroll', true)) { | 12802 | if (isEventSupported('scroll', true)) { |
13019 | ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topScroll, 'scroll', mountAt); | 12803 | ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topScroll', 'scroll', mountAt); |
13020 | } else { | 12804 | } else { |
13021 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topScroll, 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE); | 12805 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topScroll', 'scroll', ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE); |
13022 | } | 12806 | } |
13023 | } else if (dependency === topLevelTypes.topFocus || dependency === topLevelTypes.topBlur) { | 12807 | } else if (dependency === 'topFocus' || dependency === 'topBlur') { |
13024 | 12808 | ||
13025 | if (isEventSupported('focus', true)) { | 12809 | if (isEventSupported('focus', true)) { |
13026 | ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topFocus, 'focus', mountAt); | 12810 | ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topFocus', 'focus', mountAt); |
13027 | ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topBlur, 'blur', mountAt); | 12811 | ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent('topBlur', 'blur', mountAt); |
13028 | } else if (isEventSupported('focusin')) { | 12812 | } else if (isEventSupported('focusin')) { |
13029 | // IE has `focusin` and `focusout` events which bubble. | 12813 | // IE has `focusin` and `focusout` events which bubble. |
13030 | // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html | 12814 | // @see http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html |
13031 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topFocus, 'focusin', mountAt); | 12815 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topFocus', 'focusin', mountAt); |
13032 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topBlur, 'focusout', mountAt); | 12816 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent('topBlur', 'focusout', mountAt); |
13033 | } | 12817 | } |
13034 | 12818 | ||
13035 | // to make sure blur and focus event listeners are only attached once | 12819 | // to make sure blur and focus event listeners are only attached once |
13036 | isListening[topLevelTypes.topBlur] = true; | 12820 | isListening.topBlur = true; |
13037 | isListening[topLevelTypes.topFocus] = true; | 12821 | isListening.topFocus = true; |
13038 | } else if (topEventMapping.hasOwnProperty(dependency)) { | 12822 | } else if (topEventMapping.hasOwnProperty(dependency)) { |
13039 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt); | 12823 | ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency, topEventMapping[dependency], mountAt); |
13040 | } | 12824 | } |
@@ -13092,7 +12876,7 @@ | |||
13092 | module.exports = ReactBrowserEventEmitter; | 12876 | module.exports = ReactBrowserEventEmitter; |
13093 | 12877 | ||
13094 | /***/ }, | 12878 | /***/ }, |
13095 | /* 110 */ | 12879 | /* 108 */ |
13096 | /***/ function(module, exports, __webpack_require__) { | 12880 | /***/ function(module, exports, __webpack_require__) { |
13097 | 12881 | ||
13098 | /** | 12882 | /** |
@@ -13103,12 +12887,11 @@ | |||
13103 | * LICENSE file in the root directory of this source tree. An additional grant | 12887 | * LICENSE file in the root directory of this source tree. An additional grant |
13104 | * of patent rights can be found in the PATENTS file in the same directory. | 12888 | * of patent rights can be found in the PATENTS file in the same directory. |
13105 | * | 12889 | * |
13106 | * @providesModule ReactEventEmitterMixin | ||
13107 | */ | 12890 | */ |
13108 | 12891 | ||
13109 | 'use strict'; | 12892 | 'use strict'; |
13110 | 12893 | ||
13111 | var EventPluginHub = __webpack_require__(45); | 12894 | var EventPluginHub = __webpack_require__(44); |
13112 | 12895 | ||
13113 | function runEventQueueInBatch(events) { | 12896 | function runEventQueueInBatch(events) { |
13114 | EventPluginHub.enqueueEvents(events); | 12897 | EventPluginHub.enqueueEvents(events); |
@@ -13130,7 +12913,7 @@ | |||
13130 | module.exports = ReactEventEmitterMixin; | 12913 | module.exports = ReactEventEmitterMixin; |
13131 | 12914 | ||
13132 | /***/ }, | 12915 | /***/ }, |
13133 | /* 111 */ | 12916 | /* 109 */ |
13134 | /***/ function(module, exports, __webpack_require__) { | 12917 | /***/ function(module, exports, __webpack_require__) { |
13135 | 12918 | ||
13136 | /** | 12919 | /** |
@@ -13141,12 +12924,11 @@ | |||
13141 | * LICENSE file in the root directory of this source tree. An additional grant | 12924 | * LICENSE file in the root directory of this source tree. An additional grant |
13142 | * of patent rights can be found in the PATENTS file in the same directory. | 12925 | * of patent rights can be found in the PATENTS file in the same directory. |
13143 | * | 12926 | * |
13144 | * @providesModule getVendorPrefixedEventName | ||
13145 | */ | 12927 | */ |
13146 | 12928 | ||
13147 | 'use strict'; | 12929 | 'use strict'; |
13148 | 12930 | ||
13149 | var ExecutionEnvironment = __webpack_require__(51); | 12931 | var ExecutionEnvironment = __webpack_require__(50); |
13150 | 12932 | ||
13151 | /** | 12933 | /** |
13152 | * Generate a mapping of standard vendor prefixes using the defined style property and event name. | 12934 | * Generate a mapping of standard vendor prefixes using the defined style property and event name. |
@@ -13236,91 +13018,7 @@ | |||
13236 | module.exports = getVendorPrefixedEventName; | 13018 | module.exports = getVendorPrefixedEventName; |
13237 | 13019 | ||
13238 | /***/ }, | 13020 | /***/ }, |
13239 | /* 112 */ | 13021 | /* 110 */ |
13240 | /***/ function(module, exports, __webpack_require__) { | ||
13241 | |||
13242 | /** | ||
13243 | * Copyright 2013-present, Facebook, Inc. | ||
13244 | * All rights reserved. | ||
13245 | * | ||
13246 | * This source code is licensed under the BSD-style license found in the | ||
13247 | * LICENSE file in the root directory of this source tree. An additional grant | ||
13248 | * of patent rights can be found in the PATENTS file in the same directory. | ||
13249 | * | ||
13250 | * @providesModule ReactDOMButton | ||
13251 | */ | ||
13252 | |||
13253 | 'use strict'; | ||
13254 | |||
13255 | var DisabledInputUtils = __webpack_require__(113); | ||
13256 | |||
13257 | /** | ||
13258 | * Implements a <button> host component that does not receive mouse events | ||
13259 | * when `disabled` is set. | ||
13260 | */ | ||
13261 | var ReactDOMButton = { | ||
13262 | getHostProps: DisabledInputUtils.getHostProps | ||
13263 | }; | ||
13264 | |||
13265 | module.exports = ReactDOMButton; | ||
13266 | |||
13267 | /***/ }, | ||
13268 | /* 113 */ | ||
13269 | /***/ function(module, exports) { | ||
13270 | |||
13271 | /** | ||
13272 | * Copyright 2013-present, Facebook, Inc. | ||
13273 | * All rights reserved. | ||
13274 | * | ||
13275 | * This source code is licensed under the BSD-style license found in the | ||
13276 | * LICENSE file in the root directory of this source tree. An additional grant | ||
13277 | * of patent rights can be found in the PATENTS file in the same directory. | ||
13278 | * | ||
13279 | * @providesModule DisabledInputUtils | ||
13280 | */ | ||
13281 | |||
13282 | 'use strict'; | ||
13283 | |||
13284 | var disableableMouseListenerNames = { | ||
13285 | onClick: true, | ||
13286 | onDoubleClick: true, | ||
13287 | onMouseDown: true, | ||
13288 | onMouseMove: true, | ||
13289 | onMouseUp: true, | ||
13290 | |||
13291 | onClickCapture: true, | ||
13292 | onDoubleClickCapture: true, | ||
13293 | onMouseDownCapture: true, | ||
13294 | onMouseMoveCapture: true, | ||
13295 | onMouseUpCapture: true | ||
13296 | }; | ||
13297 | |||
13298 | /** | ||
13299 | * Implements a host component that does not receive mouse events | ||
13300 | * when `disabled` is set. | ||
13301 | */ | ||
13302 | var DisabledInputUtils = { | ||
13303 | getHostProps: function (inst, props) { | ||
13304 | if (!props.disabled) { | ||
13305 | return props; | ||
13306 | } | ||
13307 | |||
13308 | // Copy the props, except the mouse listeners | ||
13309 | var hostProps = {}; | ||
13310 | for (var key in props) { | ||
13311 | if (!disableableMouseListenerNames[key] && props.hasOwnProperty(key)) { | ||
13312 | hostProps[key] = props[key]; | ||
13313 | } | ||
13314 | } | ||
13315 | |||
13316 | return hostProps; | ||
13317 | } | ||
13318 | }; | ||
13319 | |||
13320 | module.exports = DisabledInputUtils; | ||
13321 | |||
13322 | /***/ }, | ||
13323 | /* 114 */ | ||
13324 | /***/ function(module, exports, __webpack_require__) { | 13022 | /***/ function(module, exports, __webpack_require__) { |
13325 | 13023 | ||
13326 | /* WEBPACK VAR INJECTION */(function(process) {/** | 13024 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -13331,18 +13029,16 @@ | |||
13331 | * LICENSE file in the root directory of this source tree. An additional grant | 13029 | * LICENSE file in the root directory of this source tree. An additional grant |
13332 | * of patent rights can be found in the PATENTS file in the same directory. | 13030 | * of patent rights can be found in the PATENTS file in the same directory. |
13333 | * | 13031 | * |
13334 | * @providesModule ReactDOMInput | ||
13335 | */ | 13032 | */ |
13336 | 13033 | ||
13337 | 'use strict'; | 13034 | 'use strict'; |
13338 | 13035 | ||
13339 | var _prodInvariant = __webpack_require__(9), | 13036 | var _prodInvariant = __webpack_require__(37), |
13340 | _assign = __webpack_require__(6); | 13037 | _assign = __webpack_require__(6); |
13341 | 13038 | ||
13342 | var DisabledInputUtils = __webpack_require__(113); | 13039 | var DOMPropertyOperations = __webpack_require__(105); |
13343 | var DOMPropertyOperations = __webpack_require__(107); | 13040 | var LinkedValueUtils = __webpack_require__(111); |
13344 | var LinkedValueUtils = __webpack_require__(115); | 13041 | var ReactDOMComponentTree = __webpack_require__(36); |
13345 | var ReactDOMComponentTree = __webpack_require__(38); | ||
13346 | var ReactUpdates = __webpack_require__(58); | 13042 | var ReactUpdates = __webpack_require__(58); |
13347 | 13043 | ||
13348 | var invariant = __webpack_require__(10); | 13044 | var invariant = __webpack_require__(10); |
@@ -13399,7 +13095,7 @@ | |||
13399 | // in corner cases such as min or max deriving from value, e.g. Issue #7170) | 13095 | // in corner cases such as min or max deriving from value, e.g. Issue #7170) |
13400 | min: undefined, | 13096 | min: undefined, |
13401 | max: undefined | 13097 | max: undefined |
13402 | }, DisabledInputUtils.getHostProps(inst, props), { | 13098 | }, props, { |
13403 | defaultChecked: undefined, | 13099 | defaultChecked: undefined, |
13404 | defaultValue: undefined, | 13100 | defaultValue: undefined, |
13405 | value: value != null ? value : inst._wrapperState.initialValue, | 13101 | value: value != null ? value : inst._wrapperState.initialValue, |
@@ -13484,7 +13180,17 @@ | |||
13484 | } | 13180 | } |
13485 | } else { | 13181 | } else { |
13486 | if (props.value == null && props.defaultValue != null) { | 13182 | if (props.value == null && props.defaultValue != null) { |
13487 | node.defaultValue = '' + props.defaultValue; | 13183 | // In Chrome, assigning defaultValue to certain input types triggers input validation. |
13184 | // For number inputs, the display value loses trailing decimal points. For email inputs, | ||
13185 | // Chrome raises "The specified value <x> is not a valid email address". | ||
13186 | // | ||
13187 | // Here we check to see if the defaultValue has actually changed, avoiding these problems | ||
13188 | // when the user is inputting text | ||
13189 | // | ||
13190 | // https://github.com/facebook/react/issues/7253 | ||
13191 | if (node.defaultValue !== '' + props.defaultValue) { | ||
13192 | node.defaultValue = '' + props.defaultValue; | ||
13193 | } | ||
13488 | } | 13194 | } |
13489 | if (props.checked == null && props.defaultChecked != null) { | 13195 | if (props.checked == null && props.defaultChecked != null) { |
13490 | node.defaultChecked = !!props.defaultChecked; | 13196 | node.defaultChecked = !!props.defaultChecked; |
@@ -13595,7 +13301,7 @@ | |||
13595 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 13301 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
13596 | 13302 | ||
13597 | /***/ }, | 13303 | /***/ }, |
13598 | /* 115 */ | 13304 | /* 111 */ |
13599 | /***/ function(module, exports, __webpack_require__) { | 13305 | /***/ function(module, exports, __webpack_require__) { |
13600 | 13306 | ||
13601 | /* WEBPACK VAR INJECTION */(function(process) {/** | 13307 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -13606,16 +13312,14 @@ | |||
13606 | * LICENSE file in the root directory of this source tree. An additional grant | 13312 | * LICENSE file in the root directory of this source tree. An additional grant |
13607 | * of patent rights can be found in the PATENTS file in the same directory. | 13313 | * of patent rights can be found in the PATENTS file in the same directory. |
13608 | * | 13314 | * |
13609 | * @providesModule LinkedValueUtils | ||
13610 | */ | 13315 | */ |
13611 | 13316 | ||
13612 | 'use strict'; | 13317 | 'use strict'; |
13613 | 13318 | ||
13614 | var _prodInvariant = __webpack_require__(9); | 13319 | var _prodInvariant = __webpack_require__(37); |
13615 | 13320 | ||
13616 | var ReactPropTypes = __webpack_require__(33); | 13321 | var React = __webpack_require__(4); |
13617 | var ReactPropTypeLocations = __webpack_require__(24); | 13322 | var ReactPropTypesSecret = __webpack_require__(112); |
13618 | var ReactPropTypesSecret = __webpack_require__(32); | ||
13619 | 13323 | ||
13620 | var invariant = __webpack_require__(10); | 13324 | var invariant = __webpack_require__(10); |
13621 | var warning = __webpack_require__(13); | 13325 | var warning = __webpack_require__(13); |
@@ -13656,7 +13360,7 @@ | |||
13656 | } | 13360 | } |
13657 | return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); | 13361 | return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); |
13658 | }, | 13362 | }, |
13659 | onChange: ReactPropTypes.func | 13363 | onChange: React.PropTypes.func |
13660 | }; | 13364 | }; |
13661 | 13365 | ||
13662 | var loggedTypeFailures = {}; | 13366 | var loggedTypeFailures = {}; |
@@ -13678,7 +13382,7 @@ | |||
13678 | checkPropTypes: function (tagName, props, owner) { | 13382 | checkPropTypes: function (tagName, props, owner) { |
13679 | for (var propName in propTypes) { | 13383 | for (var propName in propTypes) { |
13680 | if (propTypes.hasOwnProperty(propName)) { | 13384 | if (propTypes.hasOwnProperty(propName)) { |
13681 | var error = propTypes[propName](props, propName, tagName, ReactPropTypeLocations.prop, null, ReactPropTypesSecret); | 13385 | var error = propTypes[propName](props, propName, tagName, 'prop', null, ReactPropTypesSecret); |
13682 | } | 13386 | } |
13683 | if (error instanceof Error && !(error.message in loggedTypeFailures)) { | 13387 | if (error instanceof Error && !(error.message in loggedTypeFailures)) { |
13684 | // Only monitor this failure once because there tends to be a lot of the | 13388 | // Only monitor this failure once because there tends to be a lot of the |
@@ -13737,7 +13441,9 @@ | |||
13737 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 13441 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
13738 | 13442 | ||
13739 | /***/ }, | 13443 | /***/ }, |
13740 | /* 116 */ | 13444 | /* 112 */ |
13445 | 30, | ||
13446 | /* 113 */ | ||
13741 | /***/ function(module, exports, __webpack_require__) { | 13447 | /***/ function(module, exports, __webpack_require__) { |
13742 | 13448 | ||
13743 | /* WEBPACK VAR INJECTION */(function(process) {/** | 13449 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -13748,16 +13454,15 @@ | |||
13748 | * LICENSE file in the root directory of this source tree. An additional grant | 13454 | * LICENSE file in the root directory of this source tree. An additional grant |
13749 | * of patent rights can be found in the PATENTS file in the same directory. | 13455 | * of patent rights can be found in the PATENTS file in the same directory. |
13750 | * | 13456 | * |
13751 | * @providesModule ReactDOMOption | ||
13752 | */ | 13457 | */ |
13753 | 13458 | ||
13754 | 'use strict'; | 13459 | 'use strict'; |
13755 | 13460 | ||
13756 | var _assign = __webpack_require__(6); | 13461 | var _assign = __webpack_require__(6); |
13757 | 13462 | ||
13758 | var ReactChildren = __webpack_require__(7); | 13463 | var React = __webpack_require__(4); |
13759 | var ReactDOMComponentTree = __webpack_require__(38); | 13464 | var ReactDOMComponentTree = __webpack_require__(36); |
13760 | var ReactDOMSelect = __webpack_require__(117); | 13465 | var ReactDOMSelect = __webpack_require__(114); |
13761 | 13466 | ||
13762 | var warning = __webpack_require__(13); | 13467 | var warning = __webpack_require__(13); |
13763 | var didWarnInvalidOptionChildren = false; | 13468 | var didWarnInvalidOptionChildren = false; |
@@ -13767,7 +13472,7 @@ | |||
13767 | 13472 | ||
13768 | // Flatten children and warn if they aren't strings or numbers; | 13473 | // Flatten children and warn if they aren't strings or numbers; |
13769 | // invalid types are ignored. | 13474 | // invalid types are ignored. |
13770 | ReactChildren.forEach(children, function (child) { | 13475 | React.Children.forEach(children, function (child) { |
13771 | if (child == null) { | 13476 | if (child == null) { |
13772 | return; | 13477 | return; |
13773 | } | 13478 | } |
@@ -13866,7 +13571,7 @@ | |||
13866 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 13571 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
13867 | 13572 | ||
13868 | /***/ }, | 13573 | /***/ }, |
13869 | /* 117 */ | 13574 | /* 114 */ |
13870 | /***/ function(module, exports, __webpack_require__) { | 13575 | /***/ function(module, exports, __webpack_require__) { |
13871 | 13576 | ||
13872 | /* WEBPACK VAR INJECTION */(function(process) {/** | 13577 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -13877,16 +13582,14 @@ | |||
13877 | * LICENSE file in the root directory of this source tree. An additional grant | 13582 | * LICENSE file in the root directory of this source tree. An additional grant |
13878 | * of patent rights can be found in the PATENTS file in the same directory. | 13583 | * of patent rights can be found in the PATENTS file in the same directory. |
13879 | * | 13584 | * |
13880 | * @providesModule ReactDOMSelect | ||
13881 | */ | 13585 | */ |
13882 | 13586 | ||
13883 | 'use strict'; | 13587 | 'use strict'; |
13884 | 13588 | ||
13885 | var _assign = __webpack_require__(6); | 13589 | var _assign = __webpack_require__(6); |
13886 | 13590 | ||
13887 | var DisabledInputUtils = __webpack_require__(113); | 13591 | var LinkedValueUtils = __webpack_require__(111); |
13888 | var LinkedValueUtils = __webpack_require__(115); | 13592 | var ReactDOMComponentTree = __webpack_require__(36); |
13889 | var ReactDOMComponentTree = __webpack_require__(38); | ||
13890 | var ReactUpdates = __webpack_require__(58); | 13593 | var ReactUpdates = __webpack_require__(58); |
13891 | 13594 | ||
13892 | var warning = __webpack_require__(13); | 13595 | var warning = __webpack_require__(13); |
@@ -14000,7 +13703,7 @@ | |||
14000 | */ | 13703 | */ |
14001 | var ReactDOMSelect = { | 13704 | var ReactDOMSelect = { |
14002 | getHostProps: function (inst, props) { | 13705 | getHostProps: function (inst, props) { |
14003 | return _assign({}, DisabledInputUtils.getHostProps(inst, props), { | 13706 | return _assign({}, props, { |
14004 | onChange: inst._wrapperState.onChange, | 13707 | onChange: inst._wrapperState.onChange, |
14005 | value: undefined | 13708 | value: undefined |
14006 | }); | 13709 | }); |
@@ -14073,7 +13776,7 @@ | |||
14073 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 13776 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
14074 | 13777 | ||
14075 | /***/ }, | 13778 | /***/ }, |
14076 | /* 118 */ | 13779 | /* 115 */ |
14077 | /***/ function(module, exports, __webpack_require__) { | 13780 | /***/ function(module, exports, __webpack_require__) { |
14078 | 13781 | ||
14079 | /* WEBPACK VAR INJECTION */(function(process) {/** | 13782 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -14084,17 +13787,15 @@ | |||
14084 | * LICENSE file in the root directory of this source tree. An additional grant | 13787 | * LICENSE file in the root directory of this source tree. An additional grant |
14085 | * of patent rights can be found in the PATENTS file in the same directory. | 13788 | * of patent rights can be found in the PATENTS file in the same directory. |
14086 | * | 13789 | * |
14087 | * @providesModule ReactDOMTextarea | ||
14088 | */ | 13790 | */ |
14089 | 13791 | ||
14090 | 'use strict'; | 13792 | 'use strict'; |
14091 | 13793 | ||
14092 | var _prodInvariant = __webpack_require__(9), | 13794 | var _prodInvariant = __webpack_require__(37), |
14093 | _assign = __webpack_require__(6); | 13795 | _assign = __webpack_require__(6); |
14094 | 13796 | ||
14095 | var DisabledInputUtils = __webpack_require__(113); | 13797 | var LinkedValueUtils = __webpack_require__(111); |
14096 | var LinkedValueUtils = __webpack_require__(115); | 13798 | var ReactDOMComponentTree = __webpack_require__(36); |
14097 | var ReactDOMComponentTree = __webpack_require__(38); | ||
14098 | var ReactUpdates = __webpack_require__(58); | 13799 | var ReactUpdates = __webpack_require__(58); |
14099 | 13800 | ||
14100 | var invariant = __webpack_require__(10); | 13801 | var invariant = __webpack_require__(10); |
@@ -14134,7 +13835,7 @@ | |||
14134 | // to only set the value if/when the value differs from the node value (which would | 13835 | // to only set the value if/when the value differs from the node value (which would |
14135 | // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution. | 13836 | // completely solve this IE9 bug), but Sebastian+Ben seemed to like this solution. |
14136 | // The value can be a boolean or object so that's why it's forced to be a string. | 13837 | // The value can be a boolean or object so that's why it's forced to be a string. |
14137 | var hostProps = _assign({}, DisabledInputUtils.getHostProps(inst, props), { | 13838 | var hostProps = _assign({}, props, { |
14138 | value: undefined, | 13839 | value: undefined, |
14139 | defaultValue: undefined, | 13840 | defaultValue: undefined, |
14140 | children: '' + inst._wrapperState.initialValue, | 13841 | children: '' + inst._wrapperState.initialValue, |
@@ -14217,9 +13918,15 @@ | |||
14217 | // This is in postMount because we need access to the DOM node, which is not | 13918 | // This is in postMount because we need access to the DOM node, which is not |
14218 | // available until after the component has mounted. | 13919 | // available until after the component has mounted. |
14219 | var node = ReactDOMComponentTree.getNodeFromInstance(inst); | 13920 | var node = ReactDOMComponentTree.getNodeFromInstance(inst); |
13921 | var textContent = node.textContent; | ||
14220 | 13922 | ||
14221 | // Warning: node.value may be the empty string at this point (IE11) if placeholder is set. | 13923 | // Only set node.value if textContent is equal to the expected |
14222 | node.value = node.textContent; // Detach value from defaultValue | 13924 | // initial value. In IE10/IE11 there is a bug where the placeholder attribute |
13925 | // will populate textContent as well. | ||
13926 | // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/ | ||
13927 | if (textContent === inst._wrapperState.initialValue) { | ||
13928 | node.value = textContent; | ||
13929 | } | ||
14223 | } | 13930 | } |
14224 | }; | 13931 | }; |
14225 | 13932 | ||
@@ -14234,7 +13941,7 @@ | |||
14234 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 13941 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
14235 | 13942 | ||
14236 | /***/ }, | 13943 | /***/ }, |
14237 | /* 119 */ | 13944 | /* 116 */ |
14238 | /***/ function(module, exports, __webpack_require__) { | 13945 | /***/ function(module, exports, __webpack_require__) { |
14239 | 13946 | ||
14240 | /* WEBPACK VAR INJECTION */(function(process) {/** | 13947 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -14245,24 +13952,22 @@ | |||
14245 | * LICENSE file in the root directory of this source tree. An additional grant | 13952 | * LICENSE file in the root directory of this source tree. An additional grant |
14246 | * of patent rights can be found in the PATENTS file in the same directory. | 13953 | * of patent rights can be found in the PATENTS file in the same directory. |
14247 | * | 13954 | * |
14248 | * @providesModule ReactMultiChild | ||
14249 | */ | 13955 | */ |
14250 | 13956 | ||
14251 | 'use strict'; | 13957 | 'use strict'; |
14252 | 13958 | ||
14253 | var _prodInvariant = __webpack_require__(9); | 13959 | var _prodInvariant = __webpack_require__(37); |
14254 | 13960 | ||
14255 | var ReactComponentEnvironment = __webpack_require__(120); | 13961 | var ReactComponentEnvironment = __webpack_require__(117); |
14256 | var ReactInstanceMap = __webpack_require__(121); | 13962 | var ReactInstanceMap = __webpack_require__(118); |
14257 | var ReactInstrumentation = __webpack_require__(64); | 13963 | var ReactInstrumentation = __webpack_require__(64); |
14258 | var ReactMultiChildUpdateTypes = __webpack_require__(94); | ||
14259 | 13964 | ||
14260 | var ReactCurrentOwner = __webpack_require__(12); | 13965 | var ReactCurrentOwner = __webpack_require__(12); |
14261 | var ReactReconciler = __webpack_require__(61); | 13966 | var ReactReconciler = __webpack_require__(61); |
14262 | var ReactChildReconciler = __webpack_require__(122); | 13967 | var ReactChildReconciler = __webpack_require__(119); |
14263 | 13968 | ||
14264 | var emptyFunction = __webpack_require__(14); | 13969 | var emptyFunction = __webpack_require__(14); |
14265 | var flattenChildren = __webpack_require__(130); | 13970 | var flattenChildren = __webpack_require__(134); |
14266 | var invariant = __webpack_require__(10); | 13971 | var invariant = __webpack_require__(10); |
14267 | 13972 | ||
14268 | /** | 13973 | /** |
@@ -14275,7 +13980,7 @@ | |||
14275 | function makeInsertMarkup(markup, afterNode, toIndex) { | 13980 | function makeInsertMarkup(markup, afterNode, toIndex) { |
14276 | // NOTE: Null values reduce hidden classes. | 13981 | // NOTE: Null values reduce hidden classes. |
14277 | return { | 13982 | return { |
14278 | type: ReactMultiChildUpdateTypes.INSERT_MARKUP, | 13983 | type: 'INSERT_MARKUP', |
14279 | content: markup, | 13984 | content: markup, |
14280 | fromIndex: null, | 13985 | fromIndex: null, |
14281 | fromNode: null, | 13986 | fromNode: null, |
@@ -14294,7 +13999,7 @@ | |||
14294 | function makeMove(child, afterNode, toIndex) { | 13999 | function makeMove(child, afterNode, toIndex) { |
14295 | // NOTE: Null values reduce hidden classes. | 14000 | // NOTE: Null values reduce hidden classes. |
14296 | return { | 14001 | return { |
14297 | type: ReactMultiChildUpdateTypes.MOVE_EXISTING, | 14002 | type: 'MOVE_EXISTING', |
14298 | content: null, | 14003 | content: null, |
14299 | fromIndex: child._mountIndex, | 14004 | fromIndex: child._mountIndex, |
14300 | fromNode: ReactReconciler.getHostNode(child), | 14005 | fromNode: ReactReconciler.getHostNode(child), |
@@ -14312,7 +14017,7 @@ | |||
14312 | function makeRemove(child, node) { | 14017 | function makeRemove(child, node) { |
14313 | // NOTE: Null values reduce hidden classes. | 14018 | // NOTE: Null values reduce hidden classes. |
14314 | return { | 14019 | return { |
14315 | type: ReactMultiChildUpdateTypes.REMOVE_NODE, | 14020 | type: 'REMOVE_NODE', |
14316 | content: null, | 14021 | content: null, |
14317 | fromIndex: child._mountIndex, | 14022 | fromIndex: child._mountIndex, |
14318 | fromNode: node, | 14023 | fromNode: node, |
@@ -14330,7 +14035,7 @@ | |||
14330 | function makeSetMarkup(markup) { | 14035 | function makeSetMarkup(markup) { |
14331 | // NOTE: Null values reduce hidden classes. | 14036 | // NOTE: Null values reduce hidden classes. |
14332 | return { | 14037 | return { |
14333 | type: ReactMultiChildUpdateTypes.SET_MARKUP, | 14038 | type: 'SET_MARKUP', |
14334 | content: markup, | 14039 | content: markup, |
14335 | fromIndex: null, | 14040 | fromIndex: null, |
14336 | fromNode: null, | 14041 | fromNode: null, |
@@ -14348,7 +14053,7 @@ | |||
14348 | function makeTextContent(textContent) { | 14053 | function makeTextContent(textContent) { |
14349 | // NOTE: Null values reduce hidden classes. | 14054 | // NOTE: Null values reduce hidden classes. |
14350 | return { | 14055 | return { |
14351 | type: ReactMultiChildUpdateTypes.TEXT_CONTENT, | 14056 | type: 'TEXT_CONTENT', |
14352 | content: textContent, | 14057 | content: textContent, |
14353 | fromIndex: null, | 14058 | fromIndex: null, |
14354 | fromNode: null, | 14059 | fromNode: null, |
@@ -14691,7 +14396,7 @@ | |||
14691 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 14396 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
14692 | 14397 | ||
14693 | /***/ }, | 14398 | /***/ }, |
14694 | /* 120 */ | 14399 | /* 117 */ |
14695 | /***/ function(module, exports, __webpack_require__) { | 14400 | /***/ function(module, exports, __webpack_require__) { |
14696 | 14401 | ||
14697 | /* WEBPACK VAR INJECTION */(function(process) {/** | 14402 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -14702,12 +14407,12 @@ | |||
14702 | * LICENSE file in the root directory of this source tree. An additional grant | 14407 | * LICENSE file in the root directory of this source tree. An additional grant |
14703 | * of patent rights can be found in the PATENTS file in the same directory. | 14408 | * of patent rights can be found in the PATENTS file in the same directory. |
14704 | * | 14409 | * |
14705 | * @providesModule ReactComponentEnvironment | 14410 | * |
14706 | */ | 14411 | */ |
14707 | 14412 | ||
14708 | 'use strict'; | 14413 | 'use strict'; |
14709 | 14414 | ||
14710 | var _prodInvariant = __webpack_require__(9); | 14415 | var _prodInvariant = __webpack_require__(37); |
14711 | 14416 | ||
14712 | var invariant = __webpack_require__(10); | 14417 | var invariant = __webpack_require__(10); |
14713 | 14418 | ||
@@ -14742,7 +14447,7 @@ | |||
14742 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 14447 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
14743 | 14448 | ||
14744 | /***/ }, | 14449 | /***/ }, |
14745 | /* 121 */ | 14450 | /* 118 */ |
14746 | /***/ function(module, exports) { | 14451 | /***/ function(module, exports) { |
14747 | 14452 | ||
14748 | /** | 14453 | /** |
@@ -14753,7 +14458,6 @@ | |||
14753 | * LICENSE file in the root directory of this source tree. An additional grant | 14458 | * LICENSE file in the root directory of this source tree. An additional grant |
14754 | * of patent rights can be found in the PATENTS file in the same directory. | 14459 | * of patent rights can be found in the PATENTS file in the same directory. |
14755 | * | 14460 | * |
14756 | * @providesModule ReactInstanceMap | ||
14757 | */ | 14461 | */ |
14758 | 14462 | ||
14759 | 'use strict'; | 14463 | 'use strict'; |
@@ -14795,7 +14499,7 @@ | |||
14795 | module.exports = ReactInstanceMap; | 14499 | module.exports = ReactInstanceMap; |
14796 | 14500 | ||
14797 | /***/ }, | 14501 | /***/ }, |
14798 | /* 122 */ | 14502 | /* 119 */ |
14799 | /***/ function(module, exports, __webpack_require__) { | 14503 | /***/ function(module, exports, __webpack_require__) { |
14800 | 14504 | ||
14801 | /* WEBPACK VAR INJECTION */(function(process) {/** | 14505 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -14806,17 +14510,16 @@ | |||
14806 | * LICENSE file in the root directory of this source tree. An additional grant | 14510 | * LICENSE file in the root directory of this source tree. An additional grant |
14807 | * of patent rights can be found in the PATENTS file in the same directory. | 14511 | * of patent rights can be found in the PATENTS file in the same directory. |
14808 | * | 14512 | * |
14809 | * @providesModule ReactChildReconciler | ||
14810 | */ | 14513 | */ |
14811 | 14514 | ||
14812 | 'use strict'; | 14515 | 'use strict'; |
14813 | 14516 | ||
14814 | var ReactReconciler = __webpack_require__(61); | 14517 | var ReactReconciler = __webpack_require__(61); |
14815 | 14518 | ||
14816 | var instantiateReactComponent = __webpack_require__(123); | 14519 | var instantiateReactComponent = __webpack_require__(120); |
14817 | var KeyEscapeUtils = __webpack_require__(18); | 14520 | var KeyEscapeUtils = __webpack_require__(130); |
14818 | var shouldUpdateReactComponent = __webpack_require__(127); | 14521 | var shouldUpdateReactComponent = __webpack_require__(126); |
14819 | var traverseAllChildren = __webpack_require__(16); | 14522 | var traverseAllChildren = __webpack_require__(131); |
14820 | var warning = __webpack_require__(13); | 14523 | var warning = __webpack_require__(13); |
14821 | 14524 | ||
14822 | var ReactComponentTreeHook; | 14525 | var ReactComponentTreeHook; |
@@ -14827,7 +14530,7 @@ | |||
14827 | // https://github.com/facebook/react/issues/7240 | 14530 | // https://github.com/facebook/react/issues/7240 |
14828 | // Remove the inline requires when we don't need them anymore: | 14531 | // Remove the inline requires when we don't need them anymore: |
14829 | // https://github.com/facebook/react/pull/7178 | 14532 | // https://github.com/facebook/react/pull/7178 |
14830 | ReactComponentTreeHook = __webpack_require__(30); | 14533 | ReactComponentTreeHook = __webpack_require__(28); |
14831 | } | 14534 | } |
14832 | 14535 | ||
14833 | function instantiateChild(childInstances, child, name, selfDebugID) { | 14536 | function instantiateChild(childInstances, child, name, selfDebugID) { |
@@ -14835,7 +14538,7 @@ | |||
14835 | var keyUnique = childInstances[name] === undefined; | 14538 | var keyUnique = childInstances[name] === undefined; |
14836 | if (process.env.NODE_ENV !== 'production') { | 14539 | if (process.env.NODE_ENV !== 'production') { |
14837 | if (!ReactComponentTreeHook) { | 14540 | if (!ReactComponentTreeHook) { |
14838 | ReactComponentTreeHook = __webpack_require__(30); | 14541 | ReactComponentTreeHook = __webpack_require__(28); |
14839 | } | 14542 | } |
14840 | if (!keyUnique) { | 14543 | if (!keyUnique) { |
14841 | process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; | 14544 | process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; |
@@ -14955,7 +14658,7 @@ | |||
14955 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 14658 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
14956 | 14659 | ||
14957 | /***/ }, | 14660 | /***/ }, |
14958 | /* 123 */ | 14661 | /* 120 */ |
14959 | /***/ function(module, exports, __webpack_require__) { | 14662 | /***/ function(module, exports, __webpack_require__) { |
14960 | 14663 | ||
14961 | /* WEBPACK VAR INJECTION */(function(process) {/** | 14664 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -14966,18 +14669,18 @@ | |||
14966 | * LICENSE file in the root directory of this source tree. An additional grant | 14669 | * LICENSE file in the root directory of this source tree. An additional grant |
14967 | * of patent rights can be found in the PATENTS file in the same directory. | 14670 | * of patent rights can be found in the PATENTS file in the same directory. |
14968 | * | 14671 | * |
14969 | * @providesModule instantiateReactComponent | ||
14970 | */ | 14672 | */ |
14971 | 14673 | ||
14972 | 'use strict'; | 14674 | 'use strict'; |
14973 | 14675 | ||
14974 | var _prodInvariant = __webpack_require__(9), | 14676 | var _prodInvariant = __webpack_require__(37), |
14975 | _assign = __webpack_require__(6); | 14677 | _assign = __webpack_require__(6); |
14976 | 14678 | ||
14977 | var ReactCompositeComponent = __webpack_require__(124); | 14679 | var ReactCompositeComponent = __webpack_require__(121); |
14978 | var ReactEmptyComponent = __webpack_require__(128); | 14680 | var ReactEmptyComponent = __webpack_require__(127); |
14979 | var ReactHostComponent = __webpack_require__(129); | 14681 | var ReactHostComponent = __webpack_require__(128); |
14980 | 14682 | ||
14683 | var getNextDebugID = __webpack_require__(129); | ||
14981 | var invariant = __webpack_require__(10); | 14684 | var invariant = __webpack_require__(10); |
14982 | var warning = __webpack_require__(13); | 14685 | var warning = __webpack_require__(13); |
14983 | 14686 | ||
@@ -14985,7 +14688,7 @@ | |||
14985 | var ReactCompositeComponentWrapper = function (element) { | 14688 | var ReactCompositeComponentWrapper = function (element) { |
14986 | this.construct(element); | 14689 | this.construct(element); |
14987 | }; | 14690 | }; |
14988 | _assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent.Mixin, { | 14691 | _assign(ReactCompositeComponentWrapper.prototype, ReactCompositeComponent, { |
14989 | _instantiateReactComponent: instantiateReactComponent | 14692 | _instantiateReactComponent: instantiateReactComponent |
14990 | }); | 14693 | }); |
14991 | 14694 | ||
@@ -15010,8 +14713,6 @@ | |||
15010 | return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function'; | 14713 | return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function'; |
15011 | } | 14714 | } |
15012 | 14715 | ||
15013 | var nextDebugID = 1; | ||
15014 | |||
15015 | /** | 14716 | /** |
15016 | * Given a ReactNode, create an instance that will actually be mounted. | 14717 | * Given a ReactNode, create an instance that will actually be mounted. |
15017 | * | 14718 | * |
@@ -15027,7 +14728,17 @@ | |||
15027 | instance = ReactEmptyComponent.create(instantiateReactComponent); | 14728 | instance = ReactEmptyComponent.create(instantiateReactComponent); |
15028 | } else if (typeof node === 'object') { | 14729 | } else if (typeof node === 'object') { |
15029 | var element = node; | 14730 | var element = node; |
15030 | !(element && (typeof element.type === 'function' || typeof element.type === 'string')) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s', element.type == null ? element.type : typeof element.type, getDeclarationErrorAddendum(element._owner)) : _prodInvariant('130', element.type == null ? element.type : typeof element.type, getDeclarationErrorAddendum(element._owner)) : void 0; | 14731 | var type = element.type; |
14732 | if (typeof type !== 'function' && typeof type !== 'string') { | ||
14733 | var info = ''; | ||
14734 | if (process.env.NODE_ENV !== 'production') { | ||
14735 | if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { | ||
14736 | info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.'; | ||
14737 | } | ||
14738 | } | ||
14739 | info += getDeclarationErrorAddendum(element._owner); | ||
14740 | true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Element 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) : _prodInvariant('130', type == null ? type : typeof type, info) : void 0; | ||
14741 | } | ||
15031 | 14742 | ||
15032 | // Special case string values | 14743 | // Special case string values |
15033 | if (typeof element.type === 'string') { | 14744 | if (typeof element.type === 'string') { |
@@ -15062,7 +14773,7 @@ | |||
15062 | instance._mountImage = null; | 14773 | instance._mountImage = null; |
15063 | 14774 | ||
15064 | if (process.env.NODE_ENV !== 'production') { | 14775 | if (process.env.NODE_ENV !== 'production') { |
15065 | instance._debugID = shouldHaveDebugID ? nextDebugID++ : 0; | 14776 | instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0; |
15066 | } | 14777 | } |
15067 | 14778 | ||
15068 | // Internal instances should fully constructed at this point, so they should | 14779 | // Internal instances should fully constructed at this point, so they should |
@@ -15080,7 +14791,7 @@ | |||
15080 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 14791 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
15081 | 14792 | ||
15082 | /***/ }, | 14793 | /***/ }, |
15083 | /* 124 */ | 14794 | /* 121 */ |
15084 | /***/ function(module, exports, __webpack_require__) { | 14795 | /***/ function(module, exports, __webpack_require__) { |
15085 | 14796 | ||
15086 | /* WEBPACK VAR INJECTION */(function(process) {/** | 14797 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -15091,29 +14802,30 @@ | |||
15091 | * LICENSE file in the root directory of this source tree. An additional grant | 14802 | * LICENSE file in the root directory of this source tree. An additional grant |
15092 | * of patent rights can be found in the PATENTS file in the same directory. | 14803 | * of patent rights can be found in the PATENTS file in the same directory. |
15093 | * | 14804 | * |
15094 | * @providesModule ReactCompositeComponent | ||
15095 | */ | 14805 | */ |
15096 | 14806 | ||
15097 | 'use strict'; | 14807 | 'use strict'; |
15098 | 14808 | ||
15099 | var _prodInvariant = __webpack_require__(9), | 14809 | var _prodInvariant = __webpack_require__(37), |
15100 | _assign = __webpack_require__(6); | 14810 | _assign = __webpack_require__(6); |
15101 | 14811 | ||
15102 | var ReactComponentEnvironment = __webpack_require__(120); | 14812 | var React = __webpack_require__(4); |
14813 | var ReactComponentEnvironment = __webpack_require__(117); | ||
15103 | var ReactCurrentOwner = __webpack_require__(12); | 14814 | var ReactCurrentOwner = __webpack_require__(12); |
15104 | var ReactElement = __webpack_require__(11); | 14815 | var ReactErrorUtils = __webpack_require__(47); |
15105 | var ReactErrorUtils = __webpack_require__(48); | 14816 | var ReactInstanceMap = __webpack_require__(118); |
15106 | var ReactInstanceMap = __webpack_require__(121); | ||
15107 | var ReactInstrumentation = __webpack_require__(64); | 14817 | var ReactInstrumentation = __webpack_require__(64); |
15108 | var ReactNodeTypes = __webpack_require__(125); | 14818 | var ReactNodeTypes = __webpack_require__(122); |
15109 | var ReactPropTypeLocations = __webpack_require__(24); | ||
15110 | var ReactReconciler = __webpack_require__(61); | 14819 | var ReactReconciler = __webpack_require__(61); |
15111 | 14820 | ||
15112 | var checkReactTypeSpec = __webpack_require__(31); | 14821 | if (process.env.NODE_ENV !== 'production') { |
15113 | var emptyObject = __webpack_require__(21); | 14822 | var checkReactTypeSpec = __webpack_require__(123); |
14823 | } | ||
14824 | |||
14825 | var emptyObject = __webpack_require__(22); | ||
15114 | var invariant = __webpack_require__(10); | 14826 | var invariant = __webpack_require__(10); |
15115 | var shallowEqual = __webpack_require__(126); | 14827 | var shallowEqual = __webpack_require__(125); |
15116 | var shouldUpdateReactComponent = __webpack_require__(127); | 14828 | var shouldUpdateReactComponent = __webpack_require__(126); |
15117 | var warning = __webpack_require__(13); | 14829 | var warning = __webpack_require__(13); |
15118 | 14830 | ||
15119 | var CompositeTypes = { | 14831 | var CompositeTypes = { |
@@ -15132,7 +14844,7 @@ | |||
15132 | 14844 | ||
15133 | function warnIfInvalidElement(Component, element) { | 14845 | function warnIfInvalidElement(Component, element) { |
15134 | if (process.env.NODE_ENV !== 'production') { | 14846 | if (process.env.NODE_ENV !== 'production') { |
15135 | process.env.NODE_ENV !== 'production' ? warning(element === null || element === false || ReactElement.isValidElement(element), '%s(...): A valid React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0; | 14847 | process.env.NODE_ENV !== 'production' ? warning(element === null || element === false || React.isValidElement(element), '%s(...): A valid React element (or null) must be returned. You may have ' + 'returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : void 0; |
15136 | process.env.NODE_ENV !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0; | 14848 | process.env.NODE_ENV !== 'production' ? warning(!Component.childContextTypes, '%s(...): childContextTypes cannot be defined on a functional component.', Component.displayName || Component.name || 'Component') : void 0; |
15137 | } | 14849 | } |
15138 | } | 14850 | } |
@@ -15200,7 +14912,7 @@ | |||
15200 | /** | 14912 | /** |
15201 | * @lends {ReactCompositeComponent.prototype} | 14913 | * @lends {ReactCompositeComponent.prototype} |
15202 | */ | 14914 | */ |
15203 | var ReactCompositeComponentMixin = { | 14915 | var ReactCompositeComponent = { |
15204 | 14916 | ||
15205 | /** | 14917 | /** |
15206 | * Base constructor for all composite component. | 14918 | * Base constructor for all composite component. |
@@ -15276,7 +14988,7 @@ | |||
15276 | if (!doConstruct && (inst == null || inst.render == null)) { | 14988 | if (!doConstruct && (inst == null || inst.render == null)) { |
15277 | renderedElement = inst; | 14989 | renderedElement = inst; |
15278 | warnIfInvalidElement(Component, renderedElement); | 14990 | warnIfInvalidElement(Component, renderedElement); |
15279 | !(inst === null || inst === false || ReactElement.isValidElement(inst)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0; | 14991 | !(inst === null || inst === false || React.isValidElement(inst)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', Component.displayName || Component.name || 'Component') : _prodInvariant('105', Component.displayName || Component.name || 'Component') : void 0; |
15280 | inst = new StatelessComponent(Component); | 14992 | inst = new StatelessComponent(Component); |
15281 | this._compositeType = CompositeTypes.StatelessFunctional; | 14993 | this._compositeType = CompositeTypes.StatelessFunctional; |
15282 | } else { | 14994 | } else { |
@@ -15316,7 +15028,7 @@ | |||
15316 | // Since plain JS classes are defined without any special initialization | 15028 | // Since plain JS classes are defined without any special initialization |
15317 | // logic, we can not catch common errors early. Therefore, we have to | 15029 | // logic, we can not catch common errors early. Therefore, we have to |
15318 | // catch them here, at initialization time, instead. | 15030 | // catch them here, at initialization time, instead. |
15319 | process.env.NODE_ENV !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0; | 15031 | process.env.NODE_ENV !== 'production' ? warning(!inst.getInitialState || inst.getInitialState.isReactClassApproved || inst.state, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', this.getName() || 'a component') : void 0; |
15320 | process.env.NODE_ENV !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : void 0; | 15032 | process.env.NODE_ENV !== 'production' ? warning(!inst.getDefaultProps || inst.getDefaultProps.isReactClassApproved, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', this.getName() || 'a component') : void 0; |
15321 | process.env.NODE_ENV !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0; | 15033 | process.env.NODE_ENV !== 'production' ? warning(!inst.propTypes, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', this.getName() || 'a component') : void 0; |
15322 | process.env.NODE_ENV !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0; | 15034 | process.env.NODE_ENV !== 'production' ? warning(!inst.contextTypes, 'contextTypes was defined as an instance property on %s. Use a ' + 'static property to define contextTypes instead.', this.getName() || 'a component') : void 0; |
@@ -15566,7 +15278,7 @@ | |||
15566 | if (process.env.NODE_ENV !== 'production') { | 15278 | if (process.env.NODE_ENV !== 'production') { |
15567 | var Component = this._currentElement.type; | 15279 | var Component = this._currentElement.type; |
15568 | if (Component.contextTypes) { | 15280 | if (Component.contextTypes) { |
15569 | this._checkContextTypes(Component.contextTypes, maskedContext, ReactPropTypeLocations.context); | 15281 | this._checkContextTypes(Component.contextTypes, maskedContext, 'context'); |
15570 | } | 15282 | } |
15571 | } | 15283 | } |
15572 | return maskedContext; | 15284 | return maskedContext; |
@@ -15598,7 +15310,7 @@ | |||
15598 | if (childContext) { | 15310 | if (childContext) { |
15599 | !(typeof Component.childContextTypes === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0; | 15311 | !(typeof Component.childContextTypes === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', this.getName() || 'ReactCompositeComponent') : _prodInvariant('107', this.getName() || 'ReactCompositeComponent') : void 0; |
15600 | if (process.env.NODE_ENV !== 'production') { | 15312 | if (process.env.NODE_ENV !== 'production') { |
15601 | this._checkContextTypes(Component.childContextTypes, childContext, ReactPropTypeLocations.childContext); | 15313 | this._checkContextTypes(Component.childContextTypes, childContext, 'childContext'); |
15602 | } | 15314 | } |
15603 | for (var name in childContext) { | 15315 | for (var name in childContext) { |
15604 | !(name in Component.childContextTypes) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0; | 15316 | !(name in Component.childContextTypes) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', this.getName() || 'ReactCompositeComponent', name) : _prodInvariant('108', this.getName() || 'ReactCompositeComponent', name) : void 0; |
@@ -15617,7 +15329,9 @@ | |||
15617 | * @private | 15329 | * @private |
15618 | */ | 15330 | */ |
15619 | _checkContextTypes: function (typeSpecs, values, location) { | 15331 | _checkContextTypes: function (typeSpecs, values, location) { |
15620 | checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID); | 15332 | if (process.env.NODE_ENV !== 'production') { |
15333 | checkReactTypeSpec(typeSpecs, values, location, this.getName(), null, this._debugID); | ||
15334 | } | ||
15621 | }, | 15335 | }, |
15622 | 15336 | ||
15623 | receiveComponent: function (nextElement, transaction, nextContext) { | 15337 | receiveComponent: function (nextElement, transaction, nextContext) { |
@@ -15871,48 +15585,48 @@ | |||
15871 | */ | 15585 | */ |
15872 | _renderValidatedComponentWithoutOwnerOrContext: function () { | 15586 | _renderValidatedComponentWithoutOwnerOrContext: function () { |
15873 | var inst = this._instance; | 15587 | var inst = this._instance; |
15874 | var renderedComponent; | 15588 | var renderedElement; |
15875 | 15589 | ||
15876 | if (process.env.NODE_ENV !== 'production') { | 15590 | if (process.env.NODE_ENV !== 'production') { |
15877 | renderedComponent = measureLifeCyclePerf(function () { | 15591 | renderedElement = measureLifeCyclePerf(function () { |
15878 | return inst.render(); | 15592 | return inst.render(); |
15879 | }, this._debugID, 'render'); | 15593 | }, this._debugID, 'render'); |
15880 | } else { | 15594 | } else { |
15881 | renderedComponent = inst.render(); | 15595 | renderedElement = inst.render(); |
15882 | } | 15596 | } |
15883 | 15597 | ||
15884 | if (process.env.NODE_ENV !== 'production') { | 15598 | if (process.env.NODE_ENV !== 'production') { |
15885 | // We allow auto-mocks to proceed as if they're returning null. | 15599 | // We allow auto-mocks to proceed as if they're returning null. |
15886 | if (renderedComponent === undefined && inst.render._isMockFunction) { | 15600 | if (renderedElement === undefined && inst.render._isMockFunction) { |
15887 | // This is probably bad practice. Consider warning here and | 15601 | // This is probably bad practice. Consider warning here and |
15888 | // deprecating this convenience. | 15602 | // deprecating this convenience. |
15889 | renderedComponent = null; | 15603 | renderedElement = null; |
15890 | } | 15604 | } |
15891 | } | 15605 | } |
15892 | 15606 | ||
15893 | return renderedComponent; | 15607 | return renderedElement; |
15894 | }, | 15608 | }, |
15895 | 15609 | ||
15896 | /** | 15610 | /** |
15897 | * @private | 15611 | * @private |
15898 | */ | 15612 | */ |
15899 | _renderValidatedComponent: function () { | 15613 | _renderValidatedComponent: function () { |
15900 | var renderedComponent; | 15614 | var renderedElement; |
15901 | if (process.env.NODE_ENV !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) { | 15615 | if (process.env.NODE_ENV !== 'production' || this._compositeType !== CompositeTypes.StatelessFunctional) { |
15902 | ReactCurrentOwner.current = this; | 15616 | ReactCurrentOwner.current = this; |
15903 | try { | 15617 | try { |
15904 | renderedComponent = this._renderValidatedComponentWithoutOwnerOrContext(); | 15618 | renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); |
15905 | } finally { | 15619 | } finally { |
15906 | ReactCurrentOwner.current = null; | 15620 | ReactCurrentOwner.current = null; |
15907 | } | 15621 | } |
15908 | } else { | 15622 | } else { |
15909 | renderedComponent = this._renderValidatedComponentWithoutOwnerOrContext(); | 15623 | renderedElement = this._renderValidatedComponentWithoutOwnerOrContext(); |
15910 | } | 15624 | } |
15911 | !( | 15625 | !( |
15912 | // TODO: An `isValidNode` function would probably be more appropriate | 15626 | // TODO: An `isValidNode` function would probably be more appropriate |
15913 | renderedComponent === null || renderedComponent === false || ReactElement.isValidElement(renderedComponent)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0; | 15627 | renderedElement === null || renderedElement === false || React.isValidElement(renderedElement)) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.', this.getName() || 'ReactCompositeComponent') : _prodInvariant('109', this.getName() || 'ReactCompositeComponent') : void 0; |
15914 | 15628 | ||
15915 | return renderedComponent; | 15629 | return renderedElement; |
15916 | }, | 15630 | }, |
15917 | 15631 | ||
15918 | /** | 15632 | /** |
@@ -15980,17 +15694,11 @@ | |||
15980 | 15694 | ||
15981 | }; | 15695 | }; |
15982 | 15696 | ||
15983 | var ReactCompositeComponent = { | ||
15984 | |||
15985 | Mixin: ReactCompositeComponentMixin | ||
15986 | |||
15987 | }; | ||
15988 | |||
15989 | module.exports = ReactCompositeComponent; | 15697 | module.exports = ReactCompositeComponent; |
15990 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 15698 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
15991 | 15699 | ||
15992 | /***/ }, | 15700 | /***/ }, |
15993 | /* 125 */ | 15701 | /* 122 */ |
15994 | /***/ function(module, exports, __webpack_require__) { | 15702 | /***/ function(module, exports, __webpack_require__) { |
15995 | 15703 | ||
15996 | /* WEBPACK VAR INJECTION */(function(process) {/** | 15704 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16001,15 +15709,14 @@ | |||
16001 | * LICENSE file in the root directory of this source tree. An additional grant | 15709 | * LICENSE file in the root directory of this source tree. An additional grant |
16002 | * of patent rights can be found in the PATENTS file in the same directory. | 15710 | * of patent rights can be found in the PATENTS file in the same directory. |
16003 | * | 15711 | * |
16004 | * @providesModule ReactNodeTypes | ||
16005 | * | 15712 | * |
16006 | */ | 15713 | */ |
16007 | 15714 | ||
16008 | 'use strict'; | 15715 | 'use strict'; |
16009 | 15716 | ||
16010 | var _prodInvariant = __webpack_require__(9); | 15717 | var _prodInvariant = __webpack_require__(37); |
16011 | 15718 | ||
16012 | var ReactElement = __webpack_require__(11); | 15719 | var React = __webpack_require__(4); |
16013 | 15720 | ||
16014 | var invariant = __webpack_require__(10); | 15721 | var invariant = __webpack_require__(10); |
16015 | 15722 | ||
@@ -16021,7 +15728,7 @@ | |||
16021 | getType: function (node) { | 15728 | getType: function (node) { |
16022 | if (node === null || node === false) { | 15729 | if (node === null || node === false) { |
16023 | return ReactNodeTypes.EMPTY; | 15730 | return ReactNodeTypes.EMPTY; |
16024 | } else if (ReactElement.isValidElement(node)) { | 15731 | } else if (React.isValidElement(node)) { |
16025 | if (typeof node.type === 'function') { | 15732 | if (typeof node.type === 'function') { |
16026 | return ReactNodeTypes.COMPOSITE; | 15733 | return ReactNodeTypes.COMPOSITE; |
16027 | } else { | 15734 | } else { |
@@ -16036,7 +15743,101 @@ | |||
16036 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 15743 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
16037 | 15744 | ||
16038 | /***/ }, | 15745 | /***/ }, |
16039 | /* 126 */ | 15746 | /* 123 */ |
15747 | /***/ function(module, exports, __webpack_require__) { | ||
15748 | |||
15749 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
15750 | * Copyright 2013-present, Facebook, Inc. | ||
15751 | * All rights reserved. | ||
15752 | * | ||
15753 | * This source code is licensed under the BSD-style license found in the | ||
15754 | * LICENSE file in the root directory of this source tree. An additional grant | ||
15755 | * of patent rights can be found in the PATENTS file in the same directory. | ||
15756 | * | ||
15757 | */ | ||
15758 | |||
15759 | 'use strict'; | ||
15760 | |||
15761 | var _prodInvariant = __webpack_require__(37); | ||
15762 | |||
15763 | var ReactPropTypeLocationNames = __webpack_require__(124); | ||
15764 | var ReactPropTypesSecret = __webpack_require__(112); | ||
15765 | |||
15766 | var invariant = __webpack_require__(10); | ||
15767 | var warning = __webpack_require__(13); | ||
15768 | |||
15769 | var ReactComponentTreeHook; | ||
15770 | |||
15771 | if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'test') { | ||
15772 | // Temporary hack. | ||
15773 | // Inline requires don't work well with Jest: | ||
15774 | // https://github.com/facebook/react/issues/7240 | ||
15775 | // Remove the inline requires when we don't need them anymore: | ||
15776 | // https://github.com/facebook/react/pull/7178 | ||
15777 | ReactComponentTreeHook = __webpack_require__(28); | ||
15778 | } | ||
15779 | |||
15780 | var loggedTypeFailures = {}; | ||
15781 | |||
15782 | /** | ||
15783 | * Assert that the values match with the type specs. | ||
15784 | * Error messages are memorized and will only be shown once. | ||
15785 | * | ||
15786 | * @param {object} typeSpecs Map of name to a ReactPropType | ||
15787 | * @param {object} values Runtime values that need to be type-checked | ||
15788 | * @param {string} location e.g. "prop", "context", "child context" | ||
15789 | * @param {string} componentName Name of the component for error messages. | ||
15790 | * @param {?object} element The React element that is being type-checked | ||
15791 | * @param {?number} debugID The React component instance that is being type-checked | ||
15792 | * @private | ||
15793 | */ | ||
15794 | function checkReactTypeSpec(typeSpecs, values, location, componentName, element, debugID) { | ||
15795 | for (var typeSpecName in typeSpecs) { | ||
15796 | if (typeSpecs.hasOwnProperty(typeSpecName)) { | ||
15797 | var error; | ||
15798 | // Prop type validation may throw. In case they do, we don't want to | ||
15799 | // fail the render phase where it didn't fail before. So we log it. | ||
15800 | // After these have been cleaned up, we'll let them throw. | ||
15801 | try { | ||
15802 | // This is intentionally an invariant that gets caught. It's the same | ||
15803 | // behavior as without this statement except with a better message. | ||
15804 | !(typeof typeSpecs[typeSpecName] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : _prodInvariant('84', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName) : void 0; | ||
15805 | error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | ||
15806 | } catch (ex) { | ||
15807 | error = ex; | ||
15808 | } | ||
15809 | process.env.NODE_ENV !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', ReactPropTypeLocationNames[location], typeSpecName, typeof error) : void 0; | ||
15810 | if (error instanceof Error && !(error.message in loggedTypeFailures)) { | ||
15811 | // Only monitor this failure once because there tends to be a lot of the | ||
15812 | // same error. | ||
15813 | loggedTypeFailures[error.message] = true; | ||
15814 | |||
15815 | var componentStackInfo = ''; | ||
15816 | |||
15817 | if (process.env.NODE_ENV !== 'production') { | ||
15818 | if (!ReactComponentTreeHook) { | ||
15819 | ReactComponentTreeHook = __webpack_require__(28); | ||
15820 | } | ||
15821 | if (debugID !== null) { | ||
15822 | componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID); | ||
15823 | } else if (element !== null) { | ||
15824 | componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element); | ||
15825 | } | ||
15826 | } | ||
15827 | |||
15828 | process.env.NODE_ENV !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0; | ||
15829 | } | ||
15830 | } | ||
15831 | } | ||
15832 | } | ||
15833 | |||
15834 | module.exports = checkReactTypeSpec; | ||
15835 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
15836 | |||
15837 | /***/ }, | ||
15838 | /* 124 */ | ||
15839 | 25, | ||
15840 | /* 125 */ | ||
16040 | /***/ function(module, exports) { | 15841 | /***/ function(module, exports) { |
16041 | 15842 | ||
16042 | /** | 15843 | /** |
@@ -16108,7 +15909,7 @@ | |||
16108 | module.exports = shallowEqual; | 15909 | module.exports = shallowEqual; |
16109 | 15910 | ||
16110 | /***/ }, | 15911 | /***/ }, |
16111 | /* 127 */ | 15912 | /* 126 */ |
16112 | /***/ function(module, exports) { | 15913 | /***/ function(module, exports) { |
16113 | 15914 | ||
16114 | /** | 15915 | /** |
@@ -16119,7 +15920,6 @@ | |||
16119 | * LICENSE file in the root directory of this source tree. An additional grant | 15920 | * LICENSE file in the root directory of this source tree. An additional grant |
16120 | * of patent rights can be found in the PATENTS file in the same directory. | 15921 | * of patent rights can be found in the PATENTS file in the same directory. |
16121 | * | 15922 | * |
16122 | * @providesModule shouldUpdateReactComponent | ||
16123 | */ | 15923 | */ |
16124 | 15924 | ||
16125 | 'use strict'; | 15925 | 'use strict'; |
@@ -16155,7 +15955,7 @@ | |||
16155 | module.exports = shouldUpdateReactComponent; | 15955 | module.exports = shouldUpdateReactComponent; |
16156 | 15956 | ||
16157 | /***/ }, | 15957 | /***/ }, |
16158 | /* 128 */ | 15958 | /* 127 */ |
16159 | /***/ function(module, exports) { | 15959 | /***/ function(module, exports) { |
16160 | 15960 | ||
16161 | /** | 15961 | /** |
@@ -16166,7 +15966,6 @@ | |||
16166 | * LICENSE file in the root directory of this source tree. An additional grant | 15966 | * LICENSE file in the root directory of this source tree. An additional grant |
16167 | * of patent rights can be found in the PATENTS file in the same directory. | 15967 | * of patent rights can be found in the PATENTS file in the same directory. |
16168 | * | 15968 | * |
16169 | * @providesModule ReactEmptyComponent | ||
16170 | */ | 15969 | */ |
16171 | 15970 | ||
16172 | 'use strict'; | 15971 | 'use strict'; |
@@ -16190,7 +15989,7 @@ | |||
16190 | module.exports = ReactEmptyComponent; | 15989 | module.exports = ReactEmptyComponent; |
16191 | 15990 | ||
16192 | /***/ }, | 15991 | /***/ }, |
16193 | /* 129 */ | 15992 | /* 128 */ |
16194 | /***/ function(module, exports, __webpack_require__) { | 15993 | /***/ function(module, exports, __webpack_require__) { |
16195 | 15994 | ||
16196 | /* WEBPACK VAR INJECTION */(function(process) {/** | 15995 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16201,19 +16000,15 @@ | |||
16201 | * LICENSE file in the root directory of this source tree. An additional grant | 16000 | * LICENSE file in the root directory of this source tree. An additional grant |
16202 | * of patent rights can be found in the PATENTS file in the same directory. | 16001 | * of patent rights can be found in the PATENTS file in the same directory. |
16203 | * | 16002 | * |
16204 | * @providesModule ReactHostComponent | ||
16205 | */ | 16003 | */ |
16206 | 16004 | ||
16207 | 'use strict'; | 16005 | 'use strict'; |
16208 | 16006 | ||
16209 | var _prodInvariant = __webpack_require__(9), | 16007 | var _prodInvariant = __webpack_require__(37); |
16210 | _assign = __webpack_require__(6); | ||
16211 | 16008 | ||
16212 | var invariant = __webpack_require__(10); | 16009 | var invariant = __webpack_require__(10); |
16213 | 16010 | ||
16214 | var genericComponentClass = null; | 16011 | var genericComponentClass = null; |
16215 | // This registry keeps track of wrapper classes around host tags. | ||
16216 | var tagToComponentClass = {}; | ||
16217 | var textComponentClass = null; | 16012 | var textComponentClass = null; |
16218 | 16013 | ||
16219 | var ReactHostComponentInjection = { | 16014 | var ReactHostComponentInjection = { |
@@ -16226,11 +16021,6 @@ | |||
16226 | // rendered as props. | 16021 | // rendered as props. |
16227 | injectTextComponentClass: function (componentClass) { | 16022 | injectTextComponentClass: function (componentClass) { |
16228 | textComponentClass = componentClass; | 16023 | textComponentClass = componentClass; |
16229 | }, | ||
16230 | // This accepts a keyed object with classes as values. Each key represents a | ||
16231 | // tag. That particular tag will use this class instead of the generic one. | ||
16232 | injectComponentClasses: function (componentClasses) { | ||
16233 | _assign(tagToComponentClass, componentClasses); | ||
16234 | } | 16024 | } |
16235 | }; | 16025 | }; |
16236 | 16026 | ||
@@ -16272,7 +16062,219 @@ | |||
16272 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 16062 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
16273 | 16063 | ||
16274 | /***/ }, | 16064 | /***/ }, |
16065 | /* 129 */ | ||
16066 | /***/ function(module, exports) { | ||
16067 | |||
16068 | /** | ||
16069 | * Copyright 2013-present, Facebook, Inc. | ||
16070 | * All rights reserved. | ||
16071 | * | ||
16072 | * This source code is licensed under the BSD-style license found in the | ||
16073 | * LICENSE file in the root directory of this source tree. An additional grant | ||
16074 | * of patent rights can be found in the PATENTS file in the same directory. | ||
16075 | * | ||
16076 | * | ||
16077 | */ | ||
16078 | |||
16079 | 'use strict'; | ||
16080 | |||
16081 | var nextDebugID = 1; | ||
16082 | |||
16083 | function getNextDebugID() { | ||
16084 | return nextDebugID++; | ||
16085 | } | ||
16086 | |||
16087 | module.exports = getNextDebugID; | ||
16088 | |||
16089 | /***/ }, | ||
16275 | /* 130 */ | 16090 | /* 130 */ |
16091 | 19, | ||
16092 | /* 131 */ | ||
16093 | /***/ function(module, exports, __webpack_require__) { | ||
16094 | |||
16095 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
16096 | * Copyright 2013-present, Facebook, Inc. | ||
16097 | * All rights reserved. | ||
16098 | * | ||
16099 | * This source code is licensed under the BSD-style license found in the | ||
16100 | * LICENSE file in the root directory of this source tree. An additional grant | ||
16101 | * of patent rights can be found in the PATENTS file in the same directory. | ||
16102 | * | ||
16103 | */ | ||
16104 | |||
16105 | 'use strict'; | ||
16106 | |||
16107 | var _prodInvariant = __webpack_require__(37); | ||
16108 | |||
16109 | var ReactCurrentOwner = __webpack_require__(12); | ||
16110 | var REACT_ELEMENT_TYPE = __webpack_require__(132); | ||
16111 | |||
16112 | var getIteratorFn = __webpack_require__(133); | ||
16113 | var invariant = __webpack_require__(10); | ||
16114 | var KeyEscapeUtils = __webpack_require__(130); | ||
16115 | var warning = __webpack_require__(13); | ||
16116 | |||
16117 | var SEPARATOR = '.'; | ||
16118 | var SUBSEPARATOR = ':'; | ||
16119 | |||
16120 | /** | ||
16121 | * This is inlined from ReactElement since this file is shared between | ||
16122 | * isomorphic and renderers. We could extract this to a | ||
16123 | * | ||
16124 | */ | ||
16125 | |||
16126 | /** | ||
16127 | * TODO: Test that a single child and an array with one item have the same key | ||
16128 | * pattern. | ||
16129 | */ | ||
16130 | |||
16131 | var didWarnAboutMaps = false; | ||
16132 | |||
16133 | /** | ||
16134 | * Generate a key string that identifies a component within a set. | ||
16135 | * | ||
16136 | * @param {*} component A component that could contain a manual key. | ||
16137 | * @param {number} index Index that is used if a manual key is not provided. | ||
16138 | * @return {string} | ||
16139 | */ | ||
16140 | function getComponentKey(component, index) { | ||
16141 | // Do some typechecking here since we call this blindly. We want to ensure | ||
16142 | // that we don't block potential future ES APIs. | ||
16143 | if (component && typeof component === 'object' && component.key != null) { | ||
16144 | // Explicit key | ||
16145 | return KeyEscapeUtils.escape(component.key); | ||
16146 | } | ||
16147 | // Implicit key determined by the index in the set | ||
16148 | return index.toString(36); | ||
16149 | } | ||
16150 | |||
16151 | /** | ||
16152 | * @param {?*} children Children tree container. | ||
16153 | * @param {!string} nameSoFar Name of the key path so far. | ||
16154 | * @param {!function} callback Callback to invoke with each child found. | ||
16155 | * @param {?*} traverseContext Used to pass information throughout the traversal | ||
16156 | * process. | ||
16157 | * @return {!number} The number of children in this subtree. | ||
16158 | */ | ||
16159 | function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { | ||
16160 | var type = typeof children; | ||
16161 | |||
16162 | if (type === 'undefined' || type === 'boolean') { | ||
16163 | // All of the above are perceived as null. | ||
16164 | children = null; | ||
16165 | } | ||
16166 | |||
16167 | if (children === null || type === 'string' || type === 'number' || | ||
16168 | // The following is inlined from ReactElement. This means we can optimize | ||
16169 | // some checks. React Fiber also inlines this logic for similar purposes. | ||
16170 | type === 'object' && children.$$typeof === REACT_ELEMENT_TYPE) { | ||
16171 | callback(traverseContext, children, | ||
16172 | // If it's the only child, treat the name as if it was wrapped in an array | ||
16173 | // so that it's consistent if the number of children grows. | ||
16174 | nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar); | ||
16175 | return 1; | ||
16176 | } | ||
16177 | |||
16178 | var child; | ||
16179 | var nextName; | ||
16180 | var subtreeCount = 0; // Count of children found in the current subtree. | ||
16181 | var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR; | ||
16182 | |||
16183 | if (Array.isArray(children)) { | ||
16184 | for (var i = 0; i < children.length; i++) { | ||
16185 | child = children[i]; | ||
16186 | nextName = nextNamePrefix + getComponentKey(child, i); | ||
16187 | subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); | ||
16188 | } | ||
16189 | } else { | ||
16190 | var iteratorFn = getIteratorFn(children); | ||
16191 | if (iteratorFn) { | ||
16192 | var iterator = iteratorFn.call(children); | ||
16193 | var step; | ||
16194 | if (iteratorFn !== children.entries) { | ||
16195 | var ii = 0; | ||
16196 | while (!(step = iterator.next()).done) { | ||
16197 | child = step.value; | ||
16198 | nextName = nextNamePrefix + getComponentKey(child, ii++); | ||
16199 | subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); | ||
16200 | } | ||
16201 | } else { | ||
16202 | if (process.env.NODE_ENV !== 'production') { | ||
16203 | var mapsAsChildrenAddendum = ''; | ||
16204 | if (ReactCurrentOwner.current) { | ||
16205 | var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName(); | ||
16206 | if (mapsAsChildrenOwnerName) { | ||
16207 | mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.'; | ||
16208 | } | ||
16209 | } | ||
16210 | process.env.NODE_ENV !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0; | ||
16211 | didWarnAboutMaps = true; | ||
16212 | } | ||
16213 | // Iterator will provide entry [k,v] tuples rather than values. | ||
16214 | while (!(step = iterator.next()).done) { | ||
16215 | var entry = step.value; | ||
16216 | if (entry) { | ||
16217 | child = entry[1]; | ||
16218 | nextName = nextNamePrefix + KeyEscapeUtils.escape(entry[0]) + SUBSEPARATOR + getComponentKey(child, 0); | ||
16219 | subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); | ||
16220 | } | ||
16221 | } | ||
16222 | } | ||
16223 | } else if (type === 'object') { | ||
16224 | var addendum = ''; | ||
16225 | if (process.env.NODE_ENV !== 'production') { | ||
16226 | addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.'; | ||
16227 | if (children._isReactElement) { | ||
16228 | addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.'; | ||
16229 | } | ||
16230 | if (ReactCurrentOwner.current) { | ||
16231 | var name = ReactCurrentOwner.current.getName(); | ||
16232 | if (name) { | ||
16233 | addendum += ' Check the render method of `' + name + '`.'; | ||
16234 | } | ||
16235 | } | ||
16236 | } | ||
16237 | var childrenString = String(children); | ||
16238 | true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0; | ||
16239 | } | ||
16240 | } | ||
16241 | |||
16242 | return subtreeCount; | ||
16243 | } | ||
16244 | |||
16245 | /** | ||
16246 | * Traverses children that are typically specified as `props.children`, but | ||
16247 | * might also be specified through attributes: | ||
16248 | * | ||
16249 | * - `traverseAllChildren(this.props.children, ...)` | ||
16250 | * - `traverseAllChildren(this.props.leftPanelChildren, ...)` | ||
16251 | * | ||
16252 | * The `traverseContext` is an optional argument that is passed through the | ||
16253 | * entire traversal. It can be used to store accumulations or anything else that | ||
16254 | * the callback might find relevant. | ||
16255 | * | ||
16256 | * @param {?*} children Children tree object. | ||
16257 | * @param {!function} callback To invoke upon traversing each child. | ||
16258 | * @param {?*} traverseContext Context for traversal. | ||
16259 | * @return {!number} The number of children in this subtree. | ||
16260 | */ | ||
16261 | function traverseAllChildren(children, callback, traverseContext) { | ||
16262 | if (children == null) { | ||
16263 | return 0; | ||
16264 | } | ||
16265 | |||
16266 | return traverseAllChildrenImpl(children, '', callback, traverseContext); | ||
16267 | } | ||
16268 | |||
16269 | module.exports = traverseAllChildren; | ||
16270 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
16271 | |||
16272 | /***/ }, | ||
16273 | /* 132 */ | ||
16274 | 16, | ||
16275 | /* 133 */ | ||
16276 | 18, | ||
16277 | /* 134 */ | ||
16276 | /***/ function(module, exports, __webpack_require__) { | 16278 | /***/ function(module, exports, __webpack_require__) { |
16277 | 16279 | ||
16278 | /* WEBPACK VAR INJECTION */(function(process) {/** | 16280 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16283,14 +16285,13 @@ | |||
16283 | * LICENSE file in the root directory of this source tree. An additional grant | 16285 | * LICENSE file in the root directory of this source tree. An additional grant |
16284 | * of patent rights can be found in the PATENTS file in the same directory. | 16286 | * of patent rights can be found in the PATENTS file in the same directory. |
16285 | * | 16287 | * |
16286 | * @providesModule flattenChildren | ||
16287 | * | 16288 | * |
16288 | */ | 16289 | */ |
16289 | 16290 | ||
16290 | 'use strict'; | 16291 | 'use strict'; |
16291 | 16292 | ||
16292 | var KeyEscapeUtils = __webpack_require__(18); | 16293 | var KeyEscapeUtils = __webpack_require__(130); |
16293 | var traverseAllChildren = __webpack_require__(16); | 16294 | var traverseAllChildren = __webpack_require__(131); |
16294 | var warning = __webpack_require__(13); | 16295 | var warning = __webpack_require__(13); |
16295 | 16296 | ||
16296 | var ReactComponentTreeHook; | 16297 | var ReactComponentTreeHook; |
@@ -16301,7 +16302,7 @@ | |||
16301 | // https://github.com/facebook/react/issues/7240 | 16302 | // https://github.com/facebook/react/issues/7240 |
16302 | // Remove the inline requires when we don't need them anymore: | 16303 | // Remove the inline requires when we don't need them anymore: |
16303 | // https://github.com/facebook/react/pull/7178 | 16304 | // https://github.com/facebook/react/pull/7178 |
16304 | ReactComponentTreeHook = __webpack_require__(30); | 16305 | ReactComponentTreeHook = __webpack_require__(28); |
16305 | } | 16306 | } |
16306 | 16307 | ||
16307 | /** | 16308 | /** |
@@ -16317,7 +16318,7 @@ | |||
16317 | var keyUnique = result[name] === undefined; | 16318 | var keyUnique = result[name] === undefined; |
16318 | if (process.env.NODE_ENV !== 'production') { | 16319 | if (process.env.NODE_ENV !== 'production') { |
16319 | if (!ReactComponentTreeHook) { | 16320 | if (!ReactComponentTreeHook) { |
16320 | ReactComponentTreeHook = __webpack_require__(30); | 16321 | ReactComponentTreeHook = __webpack_require__(28); |
16321 | } | 16322 | } |
16322 | if (!keyUnique) { | 16323 | if (!keyUnique) { |
16323 | process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; | 16324 | process.env.NODE_ENV !== 'production' ? warning(false, 'flattenChildren(...): Encountered two children with the same key, ' + '`%s`. Child keys must be unique; when two children share a key, only ' + 'the first child will be used.%s', KeyEscapeUtils.unescape(name), ReactComponentTreeHook.getStackAddendumByID(selfDebugID)) : void 0; |
@@ -16354,7 +16355,7 @@ | |||
16354 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 16355 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
16355 | 16356 | ||
16356 | /***/ }, | 16357 | /***/ }, |
16357 | /* 131 */ | 16358 | /* 135 */ |
16358 | /***/ function(module, exports, __webpack_require__) { | 16359 | /***/ function(module, exports, __webpack_require__) { |
16359 | 16360 | ||
16360 | /* WEBPACK VAR INJECTION */(function(process) {/** | 16361 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16365,17 +16366,16 @@ | |||
16365 | * LICENSE file in the root directory of this source tree. An additional grant | 16366 | * LICENSE file in the root directory of this source tree. An additional grant |
16366 | * of patent rights can be found in the PATENTS file in the same directory. | 16367 | * of patent rights can be found in the PATENTS file in the same directory. |
16367 | * | 16368 | * |
16368 | * @providesModule ReactServerRenderingTransaction | ||
16369 | */ | 16369 | */ |
16370 | 16370 | ||
16371 | 'use strict'; | 16371 | 'use strict'; |
16372 | 16372 | ||
16373 | var _assign = __webpack_require__(6); | 16373 | var _assign = __webpack_require__(6); |
16374 | 16374 | ||
16375 | var PooledClass = __webpack_require__(8); | 16375 | var PooledClass = __webpack_require__(52); |
16376 | var Transaction = __webpack_require__(71); | 16376 | var Transaction = __webpack_require__(70); |
16377 | var ReactInstrumentation = __webpack_require__(64); | 16377 | var ReactInstrumentation = __webpack_require__(64); |
16378 | var ReactServerUpdateQueue = __webpack_require__(132); | 16378 | var ReactServerUpdateQueue = __webpack_require__(136); |
16379 | 16379 | ||
16380 | /** | 16380 | /** |
16381 | * Executed within the scope of the `Transaction` instance. Consider these as | 16381 | * Executed within the scope of the `Transaction` instance. Consider these as |
@@ -16442,7 +16442,7 @@ | |||
16442 | rollback: function () {} | 16442 | rollback: function () {} |
16443 | }; | 16443 | }; |
16444 | 16444 | ||
16445 | _assign(ReactServerRenderingTransaction.prototype, Transaction.Mixin, Mixin); | 16445 | _assign(ReactServerRenderingTransaction.prototype, Transaction, Mixin); |
16446 | 16446 | ||
16447 | PooledClass.addPoolingTo(ReactServerRenderingTransaction); | 16447 | PooledClass.addPoolingTo(ReactServerRenderingTransaction); |
16448 | 16448 | ||
@@ -16450,7 +16450,7 @@ | |||
16450 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 16450 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
16451 | 16451 | ||
16452 | /***/ }, | 16452 | /***/ }, |
16453 | /* 132 */ | 16453 | /* 136 */ |
16454 | /***/ function(module, exports, __webpack_require__) { | 16454 | /***/ function(module, exports, __webpack_require__) { |
16455 | 16455 | ||
16456 | /* WEBPACK VAR INJECTION */(function(process) {/** | 16456 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16461,7 +16461,6 @@ | |||
16461 | * LICENSE file in the root directory of this source tree. An additional grant | 16461 | * LICENSE file in the root directory of this source tree. An additional grant |
16462 | * of patent rights can be found in the PATENTS file in the same directory. | 16462 | * of patent rights can be found in the PATENTS file in the same directory. |
16463 | * | 16463 | * |
16464 | * @providesModule ReactServerUpdateQueue | ||
16465 | * | 16464 | * |
16466 | */ | 16465 | */ |
16467 | 16466 | ||
@@ -16469,8 +16468,8 @@ | |||
16469 | 16468 | ||
16470 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | 16469 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
16471 | 16470 | ||
16472 | var ReactUpdateQueue = __webpack_require__(133); | 16471 | var ReactUpdateQueue = __webpack_require__(137); |
16473 | var Transaction = __webpack_require__(71); | 16472 | |
16474 | var warning = __webpack_require__(13); | 16473 | var warning = __webpack_require__(13); |
16475 | 16474 | ||
16476 | function warnNoop(publicInstance, callerName) { | 16475 | function warnNoop(publicInstance, callerName) { |
@@ -16489,8 +16488,6 @@ | |||
16489 | */ | 16488 | */ |
16490 | 16489 | ||
16491 | var ReactServerUpdateQueue = function () { | 16490 | var ReactServerUpdateQueue = function () { |
16492 | /* :: transaction: Transaction; */ | ||
16493 | |||
16494 | function ReactServerUpdateQueue(transaction) { | 16491 | function ReactServerUpdateQueue(transaction) { |
16495 | _classCallCheck(this, ReactServerUpdateQueue); | 16492 | _classCallCheck(this, ReactServerUpdateQueue); |
16496 | 16493 | ||
@@ -16597,7 +16594,7 @@ | |||
16597 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 16594 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
16598 | 16595 | ||
16599 | /***/ }, | 16596 | /***/ }, |
16600 | /* 133 */ | 16597 | /* 137 */ |
16601 | /***/ function(module, exports, __webpack_require__) { | 16598 | /***/ function(module, exports, __webpack_require__) { |
16602 | 16599 | ||
16603 | /* WEBPACK VAR INJECTION */(function(process) {/** | 16600 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16608,15 +16605,14 @@ | |||
16608 | * LICENSE file in the root directory of this source tree. An additional grant | 16605 | * LICENSE file in the root directory of this source tree. An additional grant |
16609 | * of patent rights can be found in the PATENTS file in the same directory. | 16606 | * of patent rights can be found in the PATENTS file in the same directory. |
16610 | * | 16607 | * |
16611 | * @providesModule ReactUpdateQueue | ||
16612 | */ | 16608 | */ |
16613 | 16609 | ||
16614 | 'use strict'; | 16610 | 'use strict'; |
16615 | 16611 | ||
16616 | var _prodInvariant = __webpack_require__(9); | 16612 | var _prodInvariant = __webpack_require__(37); |
16617 | 16613 | ||
16618 | var ReactCurrentOwner = __webpack_require__(12); | 16614 | var ReactCurrentOwner = __webpack_require__(12); |
16619 | var ReactInstanceMap = __webpack_require__(121); | 16615 | var ReactInstanceMap = __webpack_require__(118); |
16620 | var ReactInstrumentation = __webpack_require__(64); | 16616 | var ReactInstrumentation = __webpack_require__(64); |
16621 | var ReactUpdates = __webpack_require__(58); | 16617 | var ReactUpdates = __webpack_require__(58); |
16622 | 16618 | ||
@@ -16829,7 +16825,7 @@ | |||
16829 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 16825 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
16830 | 16826 | ||
16831 | /***/ }, | 16827 | /***/ }, |
16832 | /* 134 */ | 16828 | /* 138 */ |
16833 | /***/ function(module, exports, __webpack_require__) { | 16829 | /***/ function(module, exports, __webpack_require__) { |
16834 | 16830 | ||
16835 | /* WEBPACK VAR INJECTION */(function(process) {/** | 16831 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -16840,7 +16836,6 @@ | |||
16840 | * LICENSE file in the root directory of this source tree. An additional grant | 16836 | * LICENSE file in the root directory of this source tree. An additional grant |
16841 | * of patent rights can be found in the PATENTS file in the same directory. | 16837 | * of patent rights can be found in the PATENTS file in the same directory. |
16842 | * | 16838 | * |
16843 | * @providesModule validateDOMNesting | ||
16844 | */ | 16839 | */ |
16845 | 16840 | ||
16846 | 'use strict'; | 16841 | 'use strict'; |
@@ -17217,7 +17212,7 @@ | |||
17217 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 17212 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
17218 | 17213 | ||
17219 | /***/ }, | 17214 | /***/ }, |
17220 | /* 135 */ | 17215 | /* 139 */ |
17221 | /***/ function(module, exports, __webpack_require__) { | 17216 | /***/ function(module, exports, __webpack_require__) { |
17222 | 17217 | ||
17223 | /** | 17218 | /** |
@@ -17228,15 +17223,14 @@ | |||
17228 | * LICENSE file in the root directory of this source tree. An additional grant | 17223 | * LICENSE file in the root directory of this source tree. An additional grant |
17229 | * of patent rights can be found in the PATENTS file in the same directory. | 17224 | * of patent rights can be found in the PATENTS file in the same directory. |
17230 | * | 17225 | * |
17231 | * @providesModule ReactDOMEmptyComponent | ||
17232 | */ | 17226 | */ |
17233 | 17227 | ||
17234 | 'use strict'; | 17228 | 'use strict'; |
17235 | 17229 | ||
17236 | var _assign = __webpack_require__(6); | 17230 | var _assign = __webpack_require__(6); |
17237 | 17231 | ||
17238 | var DOMLazyTree = __webpack_require__(84); | 17232 | var DOMLazyTree = __webpack_require__(83); |
17239 | var ReactDOMComponentTree = __webpack_require__(38); | 17233 | var ReactDOMComponentTree = __webpack_require__(36); |
17240 | 17234 | ||
17241 | var ReactDOMEmptyComponent = function (instantiate) { | 17235 | var ReactDOMEmptyComponent = function (instantiate) { |
17242 | // ReactCompositeComponent uses this: | 17236 | // ReactCompositeComponent uses this: |
@@ -17282,7 +17276,7 @@ | |||
17282 | module.exports = ReactDOMEmptyComponent; | 17276 | module.exports = ReactDOMEmptyComponent; |
17283 | 17277 | ||
17284 | /***/ }, | 17278 | /***/ }, |
17285 | /* 136 */ | 17279 | /* 140 */ |
17286 | /***/ function(module, exports, __webpack_require__) { | 17280 | /***/ function(module, exports, __webpack_require__) { |
17287 | 17281 | ||
17288 | /* WEBPACK VAR INJECTION */(function(process) {/** | 17282 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -17293,12 +17287,11 @@ | |||
17293 | * LICENSE file in the root directory of this source tree. An additional grant | 17287 | * LICENSE file in the root directory of this source tree. An additional grant |
17294 | * of patent rights can be found in the PATENTS file in the same directory. | 17288 | * of patent rights can be found in the PATENTS file in the same directory. |
17295 | * | 17289 | * |
17296 | * @providesModule ReactDOMTreeTraversal | ||
17297 | */ | 17290 | */ |
17298 | 17291 | ||
17299 | 'use strict'; | 17292 | 'use strict'; |
17300 | 17293 | ||
17301 | var _prodInvariant = __webpack_require__(9); | 17294 | var _prodInvariant = __webpack_require__(37); |
17302 | 17295 | ||
17303 | var invariant = __webpack_require__(10); | 17296 | var invariant = __webpack_require__(10); |
17304 | 17297 | ||
@@ -17379,10 +17372,10 @@ | |||
17379 | } | 17372 | } |
17380 | var i; | 17373 | var i; |
17381 | for (i = path.length; i-- > 0;) { | 17374 | for (i = path.length; i-- > 0;) { |
17382 | fn(path[i], false, arg); | 17375 | fn(path[i], 'captured', arg); |
17383 | } | 17376 | } |
17384 | for (i = 0; i < path.length; i++) { | 17377 | for (i = 0; i < path.length; i++) { |
17385 | fn(path[i], true, arg); | 17378 | fn(path[i], 'bubbled', arg); |
17386 | } | 17379 | } |
17387 | } | 17380 | } |
17388 | 17381 | ||
@@ -17407,10 +17400,10 @@ | |||
17407 | } | 17400 | } |
17408 | var i; | 17401 | var i; |
17409 | for (i = 0; i < pathFrom.length; i++) { | 17402 | for (i = 0; i < pathFrom.length; i++) { |
17410 | fn(pathFrom[i], true, argFrom); | 17403 | fn(pathFrom[i], 'bubbled', argFrom); |
17411 | } | 17404 | } |
17412 | for (i = pathTo.length; i-- > 0;) { | 17405 | for (i = pathTo.length; i-- > 0;) { |
17413 | fn(pathTo[i], false, argTo); | 17406 | fn(pathTo[i], 'captured', argTo); |
17414 | } | 17407 | } |
17415 | } | 17408 | } |
17416 | 17409 | ||
@@ -17424,7 +17417,7 @@ | |||
17424 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 17417 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
17425 | 17418 | ||
17426 | /***/ }, | 17419 | /***/ }, |
17427 | /* 137 */ | 17420 | /* 141 */ |
17428 | /***/ function(module, exports, __webpack_require__) { | 17421 | /***/ function(module, exports, __webpack_require__) { |
17429 | 17422 | ||
17430 | /* WEBPACK VAR INJECTION */(function(process) {/** | 17423 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -17435,21 +17428,20 @@ | |||
17435 | * LICENSE file in the root directory of this source tree. An additional grant | 17428 | * LICENSE file in the root directory of this source tree. An additional grant |
17436 | * of patent rights can be found in the PATENTS file in the same directory. | 17429 | * of patent rights can be found in the PATENTS file in the same directory. |
17437 | * | 17430 | * |
17438 | * @providesModule ReactDOMTextComponent | ||
17439 | */ | 17431 | */ |
17440 | 17432 | ||
17441 | 'use strict'; | 17433 | 'use strict'; |
17442 | 17434 | ||
17443 | var _prodInvariant = __webpack_require__(9), | 17435 | var _prodInvariant = __webpack_require__(37), |
17444 | _assign = __webpack_require__(6); | 17436 | _assign = __webpack_require__(6); |
17445 | 17437 | ||
17446 | var DOMChildrenOperations = __webpack_require__(83); | 17438 | var DOMChildrenOperations = __webpack_require__(82); |
17447 | var DOMLazyTree = __webpack_require__(84); | 17439 | var DOMLazyTree = __webpack_require__(83); |
17448 | var ReactDOMComponentTree = __webpack_require__(38); | 17440 | var ReactDOMComponentTree = __webpack_require__(36); |
17449 | 17441 | ||
17450 | var escapeTextContentForBrowser = __webpack_require__(89); | 17442 | var escapeTextContentForBrowser = __webpack_require__(88); |
17451 | var invariant = __webpack_require__(10); | 17443 | var invariant = __webpack_require__(10); |
17452 | var validateDOMNesting = __webpack_require__(134); | 17444 | var validateDOMNesting = __webpack_require__(138); |
17453 | 17445 | ||
17454 | /** | 17446 | /** |
17455 | * Text nodes violate a couple assumptions that React makes about components: | 17447 | * Text nodes violate a couple assumptions that React makes about components: |
@@ -17594,7 +17586,7 @@ | |||
17594 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 17586 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
17595 | 17587 | ||
17596 | /***/ }, | 17588 | /***/ }, |
17597 | /* 138 */ | 17589 | /* 142 */ |
17598 | /***/ function(module, exports, __webpack_require__) { | 17590 | /***/ function(module, exports, __webpack_require__) { |
17599 | 17591 | ||
17600 | /** | 17592 | /** |
@@ -17605,7 +17597,6 @@ | |||
17605 | * LICENSE file in the root directory of this source tree. An additional grant | 17597 | * LICENSE file in the root directory of this source tree. An additional grant |
17606 | * of patent rights can be found in the PATENTS file in the same directory. | 17598 | * of patent rights can be found in the PATENTS file in the same directory. |
17607 | * | 17599 | * |
17608 | * @providesModule ReactDefaultBatchingStrategy | ||
17609 | */ | 17600 | */ |
17610 | 17601 | ||
17611 | 'use strict'; | 17602 | 'use strict'; |
@@ -17613,7 +17604,7 @@ | |||
17613 | var _assign = __webpack_require__(6); | 17604 | var _assign = __webpack_require__(6); |
17614 | 17605 | ||
17615 | var ReactUpdates = __webpack_require__(58); | 17606 | var ReactUpdates = __webpack_require__(58); |
17616 | var Transaction = __webpack_require__(71); | 17607 | var Transaction = __webpack_require__(70); |
17617 | 17608 | ||
17618 | var emptyFunction = __webpack_require__(14); | 17609 | var emptyFunction = __webpack_require__(14); |
17619 | 17610 | ||
@@ -17635,7 +17626,7 @@ | |||
17635 | this.reinitializeTransaction(); | 17626 | this.reinitializeTransaction(); |
17636 | } | 17627 | } |
17637 | 17628 | ||
17638 | _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction.Mixin, { | 17629 | _assign(ReactDefaultBatchingStrategyTransaction.prototype, Transaction, { |
17639 | getTransactionWrappers: function () { | 17630 | getTransactionWrappers: function () { |
17640 | return TRANSACTION_WRAPPERS; | 17631 | return TRANSACTION_WRAPPERS; |
17641 | } | 17632 | } |
@@ -17657,9 +17648,9 @@ | |||
17657 | 17648 | ||
17658 | // The code is written this way to avoid extra allocations | 17649 | // The code is written this way to avoid extra allocations |
17659 | if (alreadyBatchingUpdates) { | 17650 | if (alreadyBatchingUpdates) { |
17660 | callback(a, b, c, d, e); | 17651 | return callback(a, b, c, d, e); |
17661 | } else { | 17652 | } else { |
17662 | transaction.perform(callback, null, a, b, c, d, e); | 17653 | return transaction.perform(callback, null, a, b, c, d, e); |
17663 | } | 17654 | } |
17664 | } | 17655 | } |
17665 | }; | 17656 | }; |
@@ -17667,7 +17658,7 @@ | |||
17667 | module.exports = ReactDefaultBatchingStrategy; | 17658 | module.exports = ReactDefaultBatchingStrategy; |
17668 | 17659 | ||
17669 | /***/ }, | 17660 | /***/ }, |
17670 | /* 139 */ | 17661 | /* 143 */ |
17671 | /***/ function(module, exports, __webpack_require__) { | 17662 | /***/ function(module, exports, __webpack_require__) { |
17672 | 17663 | ||
17673 | /** | 17664 | /** |
@@ -17678,21 +17669,20 @@ | |||
17678 | * LICENSE file in the root directory of this source tree. An additional grant | 17669 | * LICENSE file in the root directory of this source tree. An additional grant |
17679 | * of patent rights can be found in the PATENTS file in the same directory. | 17670 | * of patent rights can be found in the PATENTS file in the same directory. |
17680 | * | 17671 | * |
17681 | * @providesModule ReactEventListener | ||
17682 | */ | 17672 | */ |
17683 | 17673 | ||
17684 | 'use strict'; | 17674 | 'use strict'; |
17685 | 17675 | ||
17686 | var _assign = __webpack_require__(6); | 17676 | var _assign = __webpack_require__(6); |
17687 | 17677 | ||
17688 | var EventListener = __webpack_require__(140); | 17678 | var EventListener = __webpack_require__(144); |
17689 | var ExecutionEnvironment = __webpack_require__(51); | 17679 | var ExecutionEnvironment = __webpack_require__(50); |
17690 | var PooledClass = __webpack_require__(8); | 17680 | var PooledClass = __webpack_require__(52); |
17691 | var ReactDOMComponentTree = __webpack_require__(38); | 17681 | var ReactDOMComponentTree = __webpack_require__(36); |
17692 | var ReactUpdates = __webpack_require__(58); | 17682 | var ReactUpdates = __webpack_require__(58); |
17693 | 17683 | ||
17694 | var getEventTarget = __webpack_require__(72); | 17684 | var getEventTarget = __webpack_require__(71); |
17695 | var getUnboundedScrollPosition = __webpack_require__(141); | 17685 | var getUnboundedScrollPosition = __webpack_require__(145); |
17696 | 17686 | ||
17697 | /** | 17687 | /** |
17698 | * Find the deepest React component completely containing the root of the | 17688 | * Find the deepest React component completely containing the root of the |
@@ -17774,13 +17764,12 @@ | |||
17774 | * | 17764 | * |
17775 | * @param {string} topLevelType Record from `EventConstants`. | 17765 | * @param {string} topLevelType Record from `EventConstants`. |
17776 | * @param {string} handlerBaseName Event name (e.g. "click"). | 17766 | * @param {string} handlerBaseName Event name (e.g. "click"). |
17777 | * @param {object} handle Element on which to attach listener. | 17767 | * @param {object} element Element on which to attach listener. |
17778 | * @return {?object} An object with a remove function which will forcefully | 17768 | * @return {?object} An object with a remove function which will forcefully |
17779 | * remove the listener. | 17769 | * remove the listener. |
17780 | * @internal | 17770 | * @internal |
17781 | */ | 17771 | */ |
17782 | trapBubbledEvent: function (topLevelType, handlerBaseName, handle) { | 17772 | trapBubbledEvent: function (topLevelType, handlerBaseName, element) { |
17783 | var element = handle; | ||
17784 | if (!element) { | 17773 | if (!element) { |
17785 | return null; | 17774 | return null; |
17786 | } | 17775 | } |
@@ -17792,13 +17781,12 @@ | |||
17792 | * | 17781 | * |
17793 | * @param {string} topLevelType Record from `EventConstants`. | 17782 | * @param {string} topLevelType Record from `EventConstants`. |
17794 | * @param {string} handlerBaseName Event name (e.g. "click"). | 17783 | * @param {string} handlerBaseName Event name (e.g. "click"). |
17795 | * @param {object} handle Element on which to attach listener. | 17784 | * @param {object} element Element on which to attach listener. |
17796 | * @return {?object} An object with a remove function which will forcefully | 17785 | * @return {?object} An object with a remove function which will forcefully |
17797 | * remove the listener. | 17786 | * remove the listener. |
17798 | * @internal | 17787 | * @internal |
17799 | */ | 17788 | */ |
17800 | trapCapturedEvent: function (topLevelType, handlerBaseName, handle) { | 17789 | trapCapturedEvent: function (topLevelType, handlerBaseName, element) { |
17801 | var element = handle; | ||
17802 | if (!element) { | 17790 | if (!element) { |
17803 | return null; | 17791 | return null; |
17804 | } | 17792 | } |
@@ -17829,7 +17817,7 @@ | |||
17829 | module.exports = ReactEventListener; | 17817 | module.exports = ReactEventListener; |
17830 | 17818 | ||
17831 | /***/ }, | 17819 | /***/ }, |
17832 | /* 140 */ | 17820 | /* 144 */ |
17833 | /***/ function(module, exports, __webpack_require__) { | 17821 | /***/ function(module, exports, __webpack_require__) { |
17834 | 17822 | ||
17835 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; | 17823 | /* WEBPACK VAR INJECTION */(function(process) {'use strict'; |
@@ -17918,7 +17906,7 @@ | |||
17918 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 17906 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
17919 | 17907 | ||
17920 | /***/ }, | 17908 | /***/ }, |
17921 | /* 141 */ | 17909 | /* 145 */ |
17922 | /***/ function(module, exports) { | 17910 | /***/ function(module, exports) { |
17923 | 17911 | ||
17924 | /** | 17912 | /** |
@@ -17961,7 +17949,7 @@ | |||
17961 | module.exports = getUnboundedScrollPosition; | 17949 | module.exports = getUnboundedScrollPosition; |
17962 | 17950 | ||
17963 | /***/ }, | 17951 | /***/ }, |
17964 | /* 142 */ | 17952 | /* 146 */ |
17965 | /***/ function(module, exports, __webpack_require__) { | 17953 | /***/ function(module, exports, __webpack_require__) { |
17966 | 17954 | ||
17967 | /** | 17955 | /** |
@@ -17972,24 +17960,21 @@ | |||
17972 | * LICENSE file in the root directory of this source tree. An additional grant | 17960 | * LICENSE file in the root directory of this source tree. An additional grant |
17973 | * of patent rights can be found in the PATENTS file in the same directory. | 17961 | * of patent rights can be found in the PATENTS file in the same directory. |
17974 | * | 17962 | * |
17975 | * @providesModule ReactInjection | ||
17976 | */ | 17963 | */ |
17977 | 17964 | ||
17978 | 'use strict'; | 17965 | 'use strict'; |
17979 | 17966 | ||
17980 | var DOMProperty = __webpack_require__(39); | 17967 | var DOMProperty = __webpack_require__(38); |
17981 | var EventPluginHub = __webpack_require__(45); | 17968 | var EventPluginHub = __webpack_require__(44); |
17982 | var EventPluginUtils = __webpack_require__(47); | 17969 | var EventPluginUtils = __webpack_require__(46); |
17983 | var ReactComponentEnvironment = __webpack_require__(120); | 17970 | var ReactComponentEnvironment = __webpack_require__(117); |
17984 | var ReactClass = __webpack_require__(23); | 17971 | var ReactEmptyComponent = __webpack_require__(127); |
17985 | var ReactEmptyComponent = __webpack_require__(128); | 17972 | var ReactBrowserEventEmitter = __webpack_require__(107); |
17986 | var ReactBrowserEventEmitter = __webpack_require__(109); | 17973 | var ReactHostComponent = __webpack_require__(128); |
17987 | var ReactHostComponent = __webpack_require__(129); | ||
17988 | var ReactUpdates = __webpack_require__(58); | 17974 | var ReactUpdates = __webpack_require__(58); |
17989 | 17975 | ||
17990 | var ReactInjection = { | 17976 | var ReactInjection = { |
17991 | Component: ReactComponentEnvironment.injection, | 17977 | Component: ReactComponentEnvironment.injection, |
17992 | Class: ReactClass.injection, | ||
17993 | DOMProperty: DOMProperty.injection, | 17978 | DOMProperty: DOMProperty.injection, |
17994 | EmptyComponent: ReactEmptyComponent.injection, | 17979 | EmptyComponent: ReactEmptyComponent.injection, |
17995 | EventPluginHub: EventPluginHub.injection, | 17980 | EventPluginHub: EventPluginHub.injection, |
@@ -18002,7 +17987,7 @@ | |||
18002 | module.exports = ReactInjection; | 17987 | module.exports = ReactInjection; |
18003 | 17988 | ||
18004 | /***/ }, | 17989 | /***/ }, |
18005 | /* 143 */ | 17990 | /* 147 */ |
18006 | /***/ function(module, exports, __webpack_require__) { | 17991 | /***/ function(module, exports, __webpack_require__) { |
18007 | 17992 | ||
18008 | /* WEBPACK VAR INJECTION */(function(process) {/** | 17993 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -18013,7 +17998,6 @@ | |||
18013 | * LICENSE file in the root directory of this source tree. An additional grant | 17998 | * LICENSE file in the root directory of this source tree. An additional grant |
18014 | * of patent rights can be found in the PATENTS file in the same directory. | 17999 | * of patent rights can be found in the PATENTS file in the same directory. |
18015 | * | 18000 | * |
18016 | * @providesModule ReactReconcileTransaction | ||
18017 | */ | 18001 | */ |
18018 | 18002 | ||
18019 | 'use strict'; | 18003 | 'use strict'; |
@@ -18021,12 +18005,12 @@ | |||
18021 | var _assign = __webpack_require__(6); | 18005 | var _assign = __webpack_require__(6); |
18022 | 18006 | ||
18023 | var CallbackQueue = __webpack_require__(59); | 18007 | var CallbackQueue = __webpack_require__(59); |
18024 | var PooledClass = __webpack_require__(8); | 18008 | var PooledClass = __webpack_require__(52); |
18025 | var ReactBrowserEventEmitter = __webpack_require__(109); | 18009 | var ReactBrowserEventEmitter = __webpack_require__(107); |
18026 | var ReactInputSelection = __webpack_require__(144); | 18010 | var ReactInputSelection = __webpack_require__(148); |
18027 | var ReactInstrumentation = __webpack_require__(64); | 18011 | var ReactInstrumentation = __webpack_require__(64); |
18028 | var Transaction = __webpack_require__(71); | 18012 | var Transaction = __webpack_require__(70); |
18029 | var ReactUpdateQueue = __webpack_require__(133); | 18013 | var ReactUpdateQueue = __webpack_require__(137); |
18030 | 18014 | ||
18031 | /** | 18015 | /** |
18032 | * Ensures that, when possible, the selection range (currently selected text | 18016 | * Ensures that, when possible, the selection range (currently selected text |
@@ -18178,7 +18162,7 @@ | |||
18178 | } | 18162 | } |
18179 | }; | 18163 | }; |
18180 | 18164 | ||
18181 | _assign(ReactReconcileTransaction.prototype, Transaction.Mixin, Mixin); | 18165 | _assign(ReactReconcileTransaction.prototype, Transaction, Mixin); |
18182 | 18166 | ||
18183 | PooledClass.addPoolingTo(ReactReconcileTransaction); | 18167 | PooledClass.addPoolingTo(ReactReconcileTransaction); |
18184 | 18168 | ||
@@ -18186,7 +18170,7 @@ | |||
18186 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 18170 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
18187 | 18171 | ||
18188 | /***/ }, | 18172 | /***/ }, |
18189 | /* 144 */ | 18173 | /* 148 */ |
18190 | /***/ function(module, exports, __webpack_require__) { | 18174 | /***/ function(module, exports, __webpack_require__) { |
18191 | 18175 | ||
18192 | /** | 18176 | /** |
@@ -18197,16 +18181,15 @@ | |||
18197 | * LICENSE file in the root directory of this source tree. An additional grant | 18181 | * LICENSE file in the root directory of this source tree. An additional grant |
18198 | * of patent rights can be found in the PATENTS file in the same directory. | 18182 | * of patent rights can be found in the PATENTS file in the same directory. |
18199 | * | 18183 | * |
18200 | * @providesModule ReactInputSelection | ||
18201 | */ | 18184 | */ |
18202 | 18185 | ||
18203 | 'use strict'; | 18186 | 'use strict'; |
18204 | 18187 | ||
18205 | var ReactDOMSelection = __webpack_require__(145); | 18188 | var ReactDOMSelection = __webpack_require__(149); |
18206 | 18189 | ||
18207 | var containsNode = __webpack_require__(147); | 18190 | var containsNode = __webpack_require__(151); |
18208 | var focusNode = __webpack_require__(98); | 18191 | var focusNode = __webpack_require__(96); |
18209 | var getActiveElement = __webpack_require__(150); | 18192 | var getActiveElement = __webpack_require__(154); |
18210 | 18193 | ||
18211 | function isInDocument(node) { | 18194 | function isInDocument(node) { |
18212 | return containsNode(document.documentElement, node); | 18195 | return containsNode(document.documentElement, node); |
@@ -18315,7 +18298,7 @@ | |||
18315 | module.exports = ReactInputSelection; | 18298 | module.exports = ReactInputSelection; |
18316 | 18299 | ||
18317 | /***/ }, | 18300 | /***/ }, |
18318 | /* 145 */ | 18301 | /* 149 */ |
18319 | /***/ function(module, exports, __webpack_require__) { | 18302 | /***/ function(module, exports, __webpack_require__) { |
18320 | 18303 | ||
18321 | /** | 18304 | /** |
@@ -18326,14 +18309,13 @@ | |||
18326 | * LICENSE file in the root directory of this source tree. An additional grant | 18309 | * LICENSE file in the root directory of this source tree. An additional grant |
18327 | * of patent rights can be found in the PATENTS file in the same directory. | 18310 | * of patent rights can be found in the PATENTS file in the same directory. |
18328 | * | 18311 | * |
18329 | * @providesModule ReactDOMSelection | ||
18330 | */ | 18312 | */ |
18331 | 18313 | ||
18332 | 'use strict'; | 18314 | 'use strict'; |
18333 | 18315 | ||
18334 | var ExecutionEnvironment = __webpack_require__(51); | 18316 | var ExecutionEnvironment = __webpack_require__(50); |
18335 | 18317 | ||
18336 | var getNodeForCharacterOffset = __webpack_require__(146); | 18318 | var getNodeForCharacterOffset = __webpack_require__(150); |
18337 | var getTextContentAccessor = __webpack_require__(53); | 18319 | var getTextContentAccessor = __webpack_require__(53); |
18338 | 18320 | ||
18339 | /** | 18321 | /** |
@@ -18532,7 +18514,7 @@ | |||
18532 | module.exports = ReactDOMSelection; | 18514 | module.exports = ReactDOMSelection; |
18533 | 18515 | ||
18534 | /***/ }, | 18516 | /***/ }, |
18535 | /* 146 */ | 18517 | /* 150 */ |
18536 | /***/ function(module, exports) { | 18518 | /***/ function(module, exports) { |
18537 | 18519 | ||
18538 | /** | 18520 | /** |
@@ -18543,7 +18525,6 @@ | |||
18543 | * LICENSE file in the root directory of this source tree. An additional grant | 18525 | * LICENSE file in the root directory of this source tree. An additional grant |
18544 | * of patent rights can be found in the PATENTS file in the same directory. | 18526 | * of patent rights can be found in the PATENTS file in the same directory. |
18545 | * | 18527 | * |
18546 | * @providesModule getNodeForCharacterOffset | ||
18547 | */ | 18528 | */ |
18548 | 18529 | ||
18549 | 'use strict'; | 18530 | 'use strict'; |
@@ -18611,7 +18592,7 @@ | |||
18611 | module.exports = getNodeForCharacterOffset; | 18592 | module.exports = getNodeForCharacterOffset; |
18612 | 18593 | ||
18613 | /***/ }, | 18594 | /***/ }, |
18614 | /* 147 */ | 18595 | /* 151 */ |
18615 | /***/ function(module, exports, __webpack_require__) { | 18596 | /***/ function(module, exports, __webpack_require__) { |
18616 | 18597 | ||
18617 | 'use strict'; | 18598 | 'use strict'; |
@@ -18627,7 +18608,7 @@ | |||
18627 | * | 18608 | * |
18628 | */ | 18609 | */ |
18629 | 18610 | ||
18630 | var isTextNode = __webpack_require__(148); | 18611 | var isTextNode = __webpack_require__(152); |
18631 | 18612 | ||
18632 | /*eslint-disable no-bitwise */ | 18613 | /*eslint-disable no-bitwise */ |
18633 | 18614 | ||
@@ -18655,7 +18636,7 @@ | |||
18655 | module.exports = containsNode; | 18636 | module.exports = containsNode; |
18656 | 18637 | ||
18657 | /***/ }, | 18638 | /***/ }, |
18658 | /* 148 */ | 18639 | /* 152 */ |
18659 | /***/ function(module, exports, __webpack_require__) { | 18640 | /***/ function(module, exports, __webpack_require__) { |
18660 | 18641 | ||
18661 | 'use strict'; | 18642 | 'use strict'; |
@@ -18671,7 +18652,7 @@ | |||
18671 | * @typechecks | 18652 | * @typechecks |
18672 | */ | 18653 | */ |
18673 | 18654 | ||
18674 | var isNode = __webpack_require__(149); | 18655 | var isNode = __webpack_require__(153); |
18675 | 18656 | ||
18676 | /** | 18657 | /** |
18677 | * @param {*} object The object to check. | 18658 | * @param {*} object The object to check. |
@@ -18684,7 +18665,7 @@ | |||
18684 | module.exports = isTextNode; | 18665 | module.exports = isTextNode; |
18685 | 18666 | ||
18686 | /***/ }, | 18667 | /***/ }, |
18687 | /* 149 */ | 18668 | /* 153 */ |
18688 | /***/ function(module, exports) { | 18669 | /***/ function(module, exports) { |
18689 | 18670 | ||
18690 | 'use strict'; | 18671 | 'use strict'; |
@@ -18711,7 +18692,7 @@ | |||
18711 | module.exports = isNode; | 18692 | module.exports = isNode; |
18712 | 18693 | ||
18713 | /***/ }, | 18694 | /***/ }, |
18714 | /* 150 */ | 18695 | /* 154 */ |
18715 | /***/ function(module, exports) { | 18696 | /***/ function(module, exports) { |
18716 | 18697 | ||
18717 | 'use strict'; | 18698 | 'use strict'; |
@@ -18750,7 +18731,7 @@ | |||
18750 | module.exports = getActiveElement; | 18731 | module.exports = getActiveElement; |
18751 | 18732 | ||
18752 | /***/ }, | 18733 | /***/ }, |
18753 | /* 151 */ | 18734 | /* 155 */ |
18754 | /***/ function(module, exports) { | 18735 | /***/ function(module, exports) { |
18755 | 18736 | ||
18756 | /** | 18737 | /** |
@@ -18761,7 +18742,6 @@ | |||
18761 | * LICENSE file in the root directory of this source tree. An additional grant | 18742 | * LICENSE file in the root directory of this source tree. An additional grant |
18762 | * of patent rights can be found in the PATENTS file in the same directory. | 18743 | * of patent rights can be found in the PATENTS file in the same directory. |
18763 | * | 18744 | * |
18764 | * @providesModule SVGDOMPropertyConfig | ||
18765 | */ | 18745 | */ |
18766 | 18746 | ||
18767 | 'use strict'; | 18747 | 'use strict'; |
@@ -19057,7 +19037,7 @@ | |||
19057 | module.exports = SVGDOMPropertyConfig; | 19037 | module.exports = SVGDOMPropertyConfig; |
19058 | 19038 | ||
19059 | /***/ }, | 19039 | /***/ }, |
19060 | /* 152 */ | 19040 | /* 156 */ |
19061 | /***/ function(module, exports, __webpack_require__) { | 19041 | /***/ function(module, exports, __webpack_require__) { |
19062 | 19042 | ||
19063 | /** | 19043 | /** |
@@ -19068,34 +19048,29 @@ | |||
19068 | * LICENSE file in the root directory of this source tree. An additional grant | 19048 | * LICENSE file in the root directory of this source tree. An additional grant |
19069 | * of patent rights can be found in the PATENTS file in the same directory. | 19049 | * of patent rights can be found in the PATENTS file in the same directory. |
19070 | * | 19050 | * |
19071 | * @providesModule SelectEventPlugin | ||
19072 | */ | 19051 | */ |
19073 | 19052 | ||
19074 | 'use strict'; | 19053 | 'use strict'; |
19075 | 19054 | ||
19076 | var EventConstants = __webpack_require__(43); | 19055 | var EventPropagators = __webpack_require__(43); |
19077 | var EventPropagators = __webpack_require__(44); | 19056 | var ExecutionEnvironment = __webpack_require__(50); |
19078 | var ExecutionEnvironment = __webpack_require__(51); | 19057 | var ReactDOMComponentTree = __webpack_require__(36); |
19079 | var ReactDOMComponentTree = __webpack_require__(38); | 19058 | var ReactInputSelection = __webpack_require__(148); |
19080 | var ReactInputSelection = __webpack_require__(144); | ||
19081 | var SyntheticEvent = __webpack_require__(55); | 19059 | var SyntheticEvent = __webpack_require__(55); |
19082 | 19060 | ||
19083 | var getActiveElement = __webpack_require__(150); | 19061 | var getActiveElement = __webpack_require__(154); |
19084 | var isTextInputElement = __webpack_require__(74); | 19062 | var isTextInputElement = __webpack_require__(73); |
19085 | var keyOf = __webpack_require__(27); | 19063 | var shallowEqual = __webpack_require__(125); |
19086 | var shallowEqual = __webpack_require__(126); | ||
19087 | |||
19088 | var topLevelTypes = EventConstants.topLevelTypes; | ||
19089 | 19064 | ||
19090 | var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11; | 19065 | var skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && 'documentMode' in document && document.documentMode <= 11; |
19091 | 19066 | ||
19092 | var eventTypes = { | 19067 | var eventTypes = { |
19093 | select: { | 19068 | select: { |
19094 | phasedRegistrationNames: { | 19069 | phasedRegistrationNames: { |
19095 | bubbled: keyOf({ onSelect: null }), | 19070 | bubbled: 'onSelect', |
19096 | captured: keyOf({ onSelectCapture: null }) | 19071 | captured: 'onSelectCapture' |
19097 | }, | 19072 | }, |
19098 | dependencies: [topLevelTypes.topBlur, topLevelTypes.topContextMenu, topLevelTypes.topFocus, topLevelTypes.topKeyDown, topLevelTypes.topKeyUp, topLevelTypes.topMouseDown, topLevelTypes.topMouseUp, topLevelTypes.topSelectionChange] | 19073 | dependencies: ['topBlur', 'topContextMenu', 'topFocus', 'topKeyDown', 'topKeyUp', 'topMouseDown', 'topMouseUp', 'topSelectionChange'] |
19099 | } | 19074 | } |
19100 | }; | 19075 | }; |
19101 | 19076 | ||
@@ -19107,7 +19082,6 @@ | |||
19107 | // Track whether a listener exists for this plugin. If none exist, we do | 19082 | // Track whether a listener exists for this plugin. If none exist, we do |
19108 | // not extract events. See #3639. | 19083 | // not extract events. See #3639. |
19109 | var hasListener = false; | 19084 | var hasListener = false; |
19110 | var ON_SELECT_KEY = keyOf({ onSelect: null }); | ||
19111 | 19085 | ||
19112 | /** | 19086 | /** |
19113 | * Get an object which is a unique representation of the current selection. | 19087 | * Get an object which is a unique representation of the current selection. |
@@ -19203,14 +19177,14 @@ | |||
19203 | 19177 | ||
19204 | switch (topLevelType) { | 19178 | switch (topLevelType) { |
19205 | // Track the input node that has focus. | 19179 | // Track the input node that has focus. |
19206 | case topLevelTypes.topFocus: | 19180 | case 'topFocus': |
19207 | if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { | 19181 | if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') { |
19208 | activeElement = targetNode; | 19182 | activeElement = targetNode; |
19209 | activeElementInst = targetInst; | 19183 | activeElementInst = targetInst; |
19210 | lastSelection = null; | 19184 | lastSelection = null; |
19211 | } | 19185 | } |
19212 | break; | 19186 | break; |
19213 | case topLevelTypes.topBlur: | 19187 | case 'topBlur': |
19214 | activeElement = null; | 19188 | activeElement = null; |
19215 | activeElementInst = null; | 19189 | activeElementInst = null; |
19216 | lastSelection = null; | 19190 | lastSelection = null; |
@@ -19218,11 +19192,11 @@ | |||
19218 | 19192 | ||
19219 | // Don't fire the event while the user is dragging. This matches the | 19193 | // Don't fire the event while the user is dragging. This matches the |
19220 | // semantics of the native select event. | 19194 | // semantics of the native select event. |
19221 | case topLevelTypes.topMouseDown: | 19195 | case 'topMouseDown': |
19222 | mouseDown = true; | 19196 | mouseDown = true; |
19223 | break; | 19197 | break; |
19224 | case topLevelTypes.topContextMenu: | 19198 | case 'topContextMenu': |
19225 | case topLevelTypes.topMouseUp: | 19199 | case 'topMouseUp': |
19226 | mouseDown = false; | 19200 | mouseDown = false; |
19227 | return constructSelectEvent(nativeEvent, nativeEventTarget); | 19201 | return constructSelectEvent(nativeEvent, nativeEventTarget); |
19228 | 19202 | ||
@@ -19235,13 +19209,13 @@ | |||
19235 | // keyup, but we check on keydown as well in the case of holding down a | 19209 | // keyup, but we check on keydown as well in the case of holding down a |
19236 | // key, when multiple keydown events are fired but only one keyup is. | 19210 | // key, when multiple keydown events are fired but only one keyup is. |
19237 | // This is also our approach for IE handling, for the reason above. | 19211 | // This is also our approach for IE handling, for the reason above. |
19238 | case topLevelTypes.topSelectionChange: | 19212 | case 'topSelectionChange': |
19239 | if (skipSelectionChangeEvent) { | 19213 | if (skipSelectionChangeEvent) { |
19240 | break; | 19214 | break; |
19241 | } | 19215 | } |
19242 | // falls through | 19216 | // falls through |
19243 | case topLevelTypes.topKeyDown: | 19217 | case 'topKeyDown': |
19244 | case topLevelTypes.topKeyUp: | 19218 | case 'topKeyUp': |
19245 | return constructSelectEvent(nativeEvent, nativeEventTarget); | 19219 | return constructSelectEvent(nativeEvent, nativeEventTarget); |
19246 | } | 19220 | } |
19247 | 19221 | ||
@@ -19249,7 +19223,7 @@ | |||
19249 | }, | 19223 | }, |
19250 | 19224 | ||
19251 | didPutListener: function (inst, registrationName, listener) { | 19225 | didPutListener: function (inst, registrationName, listener) { |
19252 | if (registrationName === ON_SELECT_KEY) { | 19226 | if (registrationName === 'onSelect') { |
19253 | hasListener = true; | 19227 | hasListener = true; |
19254 | } | 19228 | } |
19255 | } | 19229 | } |
@@ -19258,7 +19232,7 @@ | |||
19258 | module.exports = SelectEventPlugin; | 19232 | module.exports = SelectEventPlugin; |
19259 | 19233 | ||
19260 | /***/ }, | 19234 | /***/ }, |
19261 | /* 153 */ | 19235 | /* 157 */ |
19262 | /***/ function(module, exports, __webpack_require__) { | 19236 | /***/ function(module, exports, __webpack_require__) { |
19263 | 19237 | ||
19264 | /* WEBPACK VAR INJECTION */(function(process) {/** | 19238 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -19269,483 +19243,68 @@ | |||
19269 | * LICENSE file in the root directory of this source tree. An additional grant | 19243 | * LICENSE file in the root directory of this source tree. An additional grant |
19270 | * of patent rights can be found in the PATENTS file in the same directory. | 19244 | * of patent rights can be found in the PATENTS file in the same directory. |
19271 | * | 19245 | * |
19272 | * @providesModule SimpleEventPlugin | 19246 | * |
19273 | */ | 19247 | */ |
19274 | 19248 | ||
19275 | 'use strict'; | 19249 | 'use strict'; |
19276 | 19250 | ||
19277 | var _prodInvariant = __webpack_require__(9); | 19251 | var _prodInvariant = __webpack_require__(37); |
19278 | 19252 | ||
19279 | var EventConstants = __webpack_require__(43); | 19253 | var EventListener = __webpack_require__(144); |
19280 | var EventListener = __webpack_require__(140); | 19254 | var EventPropagators = __webpack_require__(43); |
19281 | var EventPropagators = __webpack_require__(44); | 19255 | var ReactDOMComponentTree = __webpack_require__(36); |
19282 | var ReactDOMComponentTree = __webpack_require__(38); | 19256 | var SyntheticAnimationEvent = __webpack_require__(158); |
19283 | var SyntheticAnimationEvent = __webpack_require__(154); | 19257 | var SyntheticClipboardEvent = __webpack_require__(159); |
19284 | var SyntheticClipboardEvent = __webpack_require__(155); | ||
19285 | var SyntheticEvent = __webpack_require__(55); | 19258 | var SyntheticEvent = __webpack_require__(55); |
19286 | var SyntheticFocusEvent = __webpack_require__(156); | 19259 | var SyntheticFocusEvent = __webpack_require__(160); |
19287 | var SyntheticKeyboardEvent = __webpack_require__(157); | 19260 | var SyntheticKeyboardEvent = __webpack_require__(161); |
19288 | var SyntheticMouseEvent = __webpack_require__(77); | 19261 | var SyntheticMouseEvent = __webpack_require__(76); |
19289 | var SyntheticDragEvent = __webpack_require__(160); | 19262 | var SyntheticDragEvent = __webpack_require__(164); |
19290 | var SyntheticTouchEvent = __webpack_require__(161); | 19263 | var SyntheticTouchEvent = __webpack_require__(165); |
19291 | var SyntheticTransitionEvent = __webpack_require__(162); | 19264 | var SyntheticTransitionEvent = __webpack_require__(166); |
19292 | var SyntheticUIEvent = __webpack_require__(78); | 19265 | var SyntheticUIEvent = __webpack_require__(77); |
19293 | var SyntheticWheelEvent = __webpack_require__(163); | 19266 | var SyntheticWheelEvent = __webpack_require__(167); |
19294 | 19267 | ||
19295 | var emptyFunction = __webpack_require__(14); | 19268 | var emptyFunction = __webpack_require__(14); |
19296 | var getEventCharCode = __webpack_require__(158); | 19269 | var getEventCharCode = __webpack_require__(162); |
19297 | var invariant = __webpack_require__(10); | 19270 | var invariant = __webpack_require__(10); |
19298 | var keyOf = __webpack_require__(27); | ||
19299 | 19271 | ||
19300 | var topLevelTypes = EventConstants.topLevelTypes; | 19272 | /** |
19301 | 19273 | * Turns | |
19302 | var eventTypes = { | 19274 | * ['abort', ...] |
19303 | abort: { | 19275 | * into |
19304 | phasedRegistrationNames: { | 19276 | * eventTypes = { |
19305 | bubbled: keyOf({ onAbort: true }), | 19277 | * 'abort': { |
19306 | captured: keyOf({ onAbortCapture: true }) | 19278 | * phasedRegistrationNames: { |
19307 | } | 19279 | * bubbled: 'onAbort', |
19308 | }, | 19280 | * captured: 'onAbortCapture', |
19309 | animationEnd: { | 19281 | * }, |
19310 | phasedRegistrationNames: { | 19282 | * dependencies: ['topAbort'], |
19311 | bubbled: keyOf({ onAnimationEnd: true }), | 19283 | * }, |
19312 | captured: keyOf({ onAnimationEndCapture: true }) | 19284 | * ... |
19313 | } | 19285 | * }; |
19314 | }, | 19286 | * topLevelEventsToDispatchConfig = { |
19315 | animationIteration: { | 19287 | * 'topAbort': { sameConfig } |
19316 | phasedRegistrationNames: { | 19288 | * }; |
19317 | bubbled: keyOf({ onAnimationIteration: true }), | 19289 | */ |
19318 | captured: keyOf({ onAnimationIterationCapture: true }) | 19290 | var eventTypes = {}; |
19319 | } | 19291 | var topLevelEventsToDispatchConfig = {}; |
19320 | }, | 19292 | ['abort', 'animationEnd', 'animationIteration', 'animationStart', 'blur', 'canPlay', 'canPlayThrough', 'click', 'contextMenu', 'copy', 'cut', 'doubleClick', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'focus', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'progress', 'rateChange', 'reset', 'scroll', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchMove', 'touchStart', 'transitionEnd', 'volumeChange', 'waiting', 'wheel'].forEach(function (event) { |
19321 | animationStart: { | 19293 | var capitalizedEvent = event[0].toUpperCase() + event.slice(1); |
19322 | phasedRegistrationNames: { | 19294 | var onEvent = 'on' + capitalizedEvent; |
19323 | bubbled: keyOf({ onAnimationStart: true }), | 19295 | var topEvent = 'top' + capitalizedEvent; |
19324 | captured: keyOf({ onAnimationStartCapture: true }) | 19296 | |
19325 | } | 19297 | var type = { |
19326 | }, | ||
19327 | blur: { | ||
19328 | phasedRegistrationNames: { | ||
19329 | bubbled: keyOf({ onBlur: true }), | ||
19330 | captured: keyOf({ onBlurCapture: true }) | ||
19331 | } | ||
19332 | }, | ||
19333 | canPlay: { | ||
19334 | phasedRegistrationNames: { | ||
19335 | bubbled: keyOf({ onCanPlay: true }), | ||
19336 | captured: keyOf({ onCanPlayCapture: true }) | ||
19337 | } | ||
19338 | }, | ||
19339 | canPlayThrough: { | ||
19340 | phasedRegistrationNames: { | ||
19341 | bubbled: keyOf({ onCanPlayThrough: true }), | ||
19342 | captured: keyOf({ onCanPlayThroughCapture: true }) | ||
19343 | } | ||
19344 | }, | ||
19345 | click: { | ||
19346 | phasedRegistrationNames: { | ||
19347 | bubbled: keyOf({ onClick: true }), | ||
19348 | captured: keyOf({ onClickCapture: true }) | ||
19349 | } | ||
19350 | }, | ||
19351 | contextMenu: { | ||
19352 | phasedRegistrationNames: { | ||
19353 | bubbled: keyOf({ onContextMenu: true }), | ||
19354 | captured: keyOf({ onContextMenuCapture: true }) | ||
19355 | } | ||
19356 | }, | ||
19357 | copy: { | ||
19358 | phasedRegistrationNames: { | ||
19359 | bubbled: keyOf({ onCopy: true }), | ||
19360 | captured: keyOf({ onCopyCapture: true }) | ||
19361 | } | ||
19362 | }, | ||
19363 | cut: { | ||
19364 | phasedRegistrationNames: { | ||
19365 | bubbled: keyOf({ onCut: true }), | ||
19366 | captured: keyOf({ onCutCapture: true }) | ||
19367 | } | ||
19368 | }, | ||
19369 | doubleClick: { | ||
19370 | phasedRegistrationNames: { | ||
19371 | bubbled: keyOf({ onDoubleClick: true }), | ||
19372 | captured: keyOf({ onDoubleClickCapture: true }) | ||
19373 | } | ||
19374 | }, | ||
19375 | drag: { | ||
19376 | phasedRegistrationNames: { | ||
19377 | bubbled: keyOf({ onDrag: true }), | ||
19378 | captured: keyOf({ onDragCapture: true }) | ||
19379 | } | ||
19380 | }, | ||
19381 | dragEnd: { | ||
19382 | phasedRegistrationNames: { | ||
19383 | bubbled: keyOf({ onDragEnd: true }), | ||
19384 | captured: keyOf({ onDragEndCapture: true }) | ||
19385 | } | ||
19386 | }, | ||
19387 | dragEnter: { | ||
19388 | phasedRegistrationNames: { | ||
19389 | bubbled: keyOf({ onDragEnter: true }), | ||
19390 | captured: keyOf({ onDragEnterCapture: true }) | ||
19391 | } | ||
19392 | }, | ||
19393 | dragExit: { | ||
19394 | phasedRegistrationNames: { | ||
19395 | bubbled: keyOf({ onDragExit: true }), | ||
19396 | captured: keyOf({ onDragExitCapture: true }) | ||
19397 | } | ||
19398 | }, | ||
19399 | dragLeave: { | ||
19400 | phasedRegistrationNames: { | ||
19401 | bubbled: keyOf({ onDragLeave: true }), | ||
19402 | captured: keyOf({ onDragLeaveCapture: true }) | ||
19403 | } | ||
19404 | }, | ||
19405 | dragOver: { | ||
19406 | phasedRegistrationNames: { | ||
19407 | bubbled: keyOf({ onDragOver: true }), | ||
19408 | captured: keyOf({ onDragOverCapture: true }) | ||
19409 | } | ||
19410 | }, | ||
19411 | dragStart: { | ||
19412 | phasedRegistrationNames: { | ||
19413 | bubbled: keyOf({ onDragStart: true }), | ||
19414 | captured: keyOf({ onDragStartCapture: true }) | ||
19415 | } | ||
19416 | }, | ||
19417 | drop: { | ||
19418 | phasedRegistrationNames: { | ||
19419 | bubbled: keyOf({ onDrop: true }), | ||
19420 | captured: keyOf({ onDropCapture: true }) | ||
19421 | } | ||
19422 | }, | ||
19423 | durationChange: { | ||
19424 | phasedRegistrationNames: { | ||
19425 | bubbled: keyOf({ onDurationChange: true }), | ||
19426 | captured: keyOf({ onDurationChangeCapture: true }) | ||
19427 | } | ||
19428 | }, | ||
19429 | emptied: { | ||
19430 | phasedRegistrationNames: { | ||
19431 | bubbled: keyOf({ onEmptied: true }), | ||
19432 | captured: keyOf({ onEmptiedCapture: true }) | ||
19433 | } | ||
19434 | }, | ||
19435 | encrypted: { | ||
19436 | phasedRegistrationNames: { | ||
19437 | bubbled: keyOf({ onEncrypted: true }), | ||
19438 | captured: keyOf({ onEncryptedCapture: true }) | ||
19439 | } | ||
19440 | }, | ||
19441 | ended: { | ||
19442 | phasedRegistrationNames: { | ||
19443 | bubbled: keyOf({ onEnded: true }), | ||
19444 | captured: keyOf({ onEndedCapture: true }) | ||
19445 | } | ||
19446 | }, | ||
19447 | error: { | ||
19448 | phasedRegistrationNames: { | ||
19449 | bubbled: keyOf({ onError: true }), | ||
19450 | captured: keyOf({ onErrorCapture: true }) | ||
19451 | } | ||
19452 | }, | ||
19453 | focus: { | ||
19454 | phasedRegistrationNames: { | ||
19455 | bubbled: keyOf({ onFocus: true }), | ||
19456 | captured: keyOf({ onFocusCapture: true }) | ||
19457 | } | ||
19458 | }, | ||
19459 | input: { | ||
19460 | phasedRegistrationNames: { | ||
19461 | bubbled: keyOf({ onInput: true }), | ||
19462 | captured: keyOf({ onInputCapture: true }) | ||
19463 | } | ||
19464 | }, | ||
19465 | invalid: { | ||
19466 | phasedRegistrationNames: { | ||
19467 | bubbled: keyOf({ onInvalid: true }), | ||
19468 | captured: keyOf({ onInvalidCapture: true }) | ||
19469 | } | ||
19470 | }, | ||
19471 | keyDown: { | ||
19472 | phasedRegistrationNames: { | ||
19473 | bubbled: keyOf({ onKeyDown: true }), | ||
19474 | captured: keyOf({ onKeyDownCapture: true }) | ||
19475 | } | ||
19476 | }, | ||
19477 | keyPress: { | ||
19478 | phasedRegistrationNames: { | ||
19479 | bubbled: keyOf({ onKeyPress: true }), | ||
19480 | captured: keyOf({ onKeyPressCapture: true }) | ||
19481 | } | ||
19482 | }, | ||
19483 | keyUp: { | ||
19484 | phasedRegistrationNames: { | ||
19485 | bubbled: keyOf({ onKeyUp: true }), | ||
19486 | captured: keyOf({ onKeyUpCapture: true }) | ||
19487 | } | ||
19488 | }, | ||
19489 | load: { | ||
19490 | phasedRegistrationNames: { | ||
19491 | bubbled: keyOf({ onLoad: true }), | ||
19492 | captured: keyOf({ onLoadCapture: true }) | ||
19493 | } | ||
19494 | }, | ||
19495 | loadedData: { | ||
19496 | phasedRegistrationNames: { | ||
19497 | bubbled: keyOf({ onLoadedData: true }), | ||
19498 | captured: keyOf({ onLoadedDataCapture: true }) | ||
19499 | } | ||
19500 | }, | ||
19501 | loadedMetadata: { | ||
19502 | phasedRegistrationNames: { | ||
19503 | bubbled: keyOf({ onLoadedMetadata: true }), | ||
19504 | captured: keyOf({ onLoadedMetadataCapture: true }) | ||
19505 | } | ||
19506 | }, | ||
19507 | loadStart: { | ||
19508 | phasedRegistrationNames: { | ||
19509 | bubbled: keyOf({ onLoadStart: true }), | ||
19510 | captured: keyOf({ onLoadStartCapture: true }) | ||
19511 | } | ||
19512 | }, | ||
19513 | // Note: We do not allow listening to mouseOver events. Instead, use the | ||
19514 | // onMouseEnter/onMouseLeave created by `EnterLeaveEventPlugin`. | ||
19515 | mouseDown: { | ||
19516 | phasedRegistrationNames: { | ||
19517 | bubbled: keyOf({ onMouseDown: true }), | ||
19518 | captured: keyOf({ onMouseDownCapture: true }) | ||
19519 | } | ||
19520 | }, | ||
19521 | mouseMove: { | ||
19522 | phasedRegistrationNames: { | ||
19523 | bubbled: keyOf({ onMouseMove: true }), | ||
19524 | captured: keyOf({ onMouseMoveCapture: true }) | ||
19525 | } | ||
19526 | }, | ||
19527 | mouseOut: { | ||
19528 | phasedRegistrationNames: { | ||
19529 | bubbled: keyOf({ onMouseOut: true }), | ||
19530 | captured: keyOf({ onMouseOutCapture: true }) | ||
19531 | } | ||
19532 | }, | ||
19533 | mouseOver: { | ||
19534 | phasedRegistrationNames: { | ||
19535 | bubbled: keyOf({ onMouseOver: true }), | ||
19536 | captured: keyOf({ onMouseOverCapture: true }) | ||
19537 | } | ||
19538 | }, | ||
19539 | mouseUp: { | ||
19540 | phasedRegistrationNames: { | ||
19541 | bubbled: keyOf({ onMouseUp: true }), | ||
19542 | captured: keyOf({ onMouseUpCapture: true }) | ||
19543 | } | ||
19544 | }, | ||
19545 | paste: { | ||
19546 | phasedRegistrationNames: { | ||
19547 | bubbled: keyOf({ onPaste: true }), | ||
19548 | captured: keyOf({ onPasteCapture: true }) | ||
19549 | } | ||
19550 | }, | ||
19551 | pause: { | ||
19552 | phasedRegistrationNames: { | ||
19553 | bubbled: keyOf({ onPause: true }), | ||
19554 | captured: keyOf({ onPauseCapture: true }) | ||
19555 | } | ||
19556 | }, | ||
19557 | play: { | ||
19558 | phasedRegistrationNames: { | ||
19559 | bubbled: keyOf({ onPlay: true }), | ||
19560 | captured: keyOf({ onPlayCapture: true }) | ||
19561 | } | ||
19562 | }, | ||
19563 | playing: { | ||
19564 | phasedRegistrationNames: { | ||
19565 | bubbled: keyOf({ onPlaying: true }), | ||
19566 | captured: keyOf({ onPlayingCapture: true }) | ||
19567 | } | ||
19568 | }, | ||
19569 | progress: { | ||
19570 | phasedRegistrationNames: { | ||
19571 | bubbled: keyOf({ onProgress: true }), | ||
19572 | captured: keyOf({ onProgressCapture: true }) | ||
19573 | } | ||
19574 | }, | ||
19575 | rateChange: { | ||
19576 | phasedRegistrationNames: { | ||
19577 | bubbled: keyOf({ onRateChange: true }), | ||
19578 | captured: keyOf({ onRateChangeCapture: true }) | ||
19579 | } | ||
19580 | }, | ||
19581 | reset: { | ||
19582 | phasedRegistrationNames: { | ||
19583 | bubbled: keyOf({ onReset: true }), | ||
19584 | captured: keyOf({ onResetCapture: true }) | ||
19585 | } | ||
19586 | }, | ||
19587 | scroll: { | ||
19588 | phasedRegistrationNames: { | ||
19589 | bubbled: keyOf({ onScroll: true }), | ||
19590 | captured: keyOf({ onScrollCapture: true }) | ||
19591 | } | ||
19592 | }, | ||
19593 | seeked: { | ||
19594 | phasedRegistrationNames: { | ||
19595 | bubbled: keyOf({ onSeeked: true }), | ||
19596 | captured: keyOf({ onSeekedCapture: true }) | ||
19597 | } | ||
19598 | }, | ||
19599 | seeking: { | ||
19600 | phasedRegistrationNames: { | ||
19601 | bubbled: keyOf({ onSeeking: true }), | ||
19602 | captured: keyOf({ onSeekingCapture: true }) | ||
19603 | } | ||
19604 | }, | ||
19605 | stalled: { | ||
19606 | phasedRegistrationNames: { | ||
19607 | bubbled: keyOf({ onStalled: true }), | ||
19608 | captured: keyOf({ onStalledCapture: true }) | ||
19609 | } | ||
19610 | }, | ||
19611 | submit: { | ||
19612 | phasedRegistrationNames: { | ||
19613 | bubbled: keyOf({ onSubmit: true }), | ||
19614 | captured: keyOf({ onSubmitCapture: true }) | ||
19615 | } | ||
19616 | }, | ||
19617 | suspend: { | ||
19618 | phasedRegistrationNames: { | ||
19619 | bubbled: keyOf({ onSuspend: true }), | ||
19620 | captured: keyOf({ onSuspendCapture: true }) | ||
19621 | } | ||
19622 | }, | ||
19623 | timeUpdate: { | ||
19624 | phasedRegistrationNames: { | ||
19625 | bubbled: keyOf({ onTimeUpdate: true }), | ||
19626 | captured: keyOf({ onTimeUpdateCapture: true }) | ||
19627 | } | ||
19628 | }, | ||
19629 | touchCancel: { | ||
19630 | phasedRegistrationNames: { | ||
19631 | bubbled: keyOf({ onTouchCancel: true }), | ||
19632 | captured: keyOf({ onTouchCancelCapture: true }) | ||
19633 | } | ||
19634 | }, | ||
19635 | touchEnd: { | ||
19636 | phasedRegistrationNames: { | ||
19637 | bubbled: keyOf({ onTouchEnd: true }), | ||
19638 | captured: keyOf({ onTouchEndCapture: true }) | ||
19639 | } | ||
19640 | }, | ||
19641 | touchMove: { | ||
19642 | phasedRegistrationNames: { | ||
19643 | bubbled: keyOf({ onTouchMove: true }), | ||
19644 | captured: keyOf({ onTouchMoveCapture: true }) | ||
19645 | } | ||
19646 | }, | ||
19647 | touchStart: { | ||
19648 | phasedRegistrationNames: { | ||
19649 | bubbled: keyOf({ onTouchStart: true }), | ||
19650 | captured: keyOf({ onTouchStartCapture: true }) | ||
19651 | } | ||
19652 | }, | ||
19653 | transitionEnd: { | ||
19654 | phasedRegistrationNames: { | ||
19655 | bubbled: keyOf({ onTransitionEnd: true }), | ||
19656 | captured: keyOf({ onTransitionEndCapture: true }) | ||
19657 | } | ||
19658 | }, | ||
19659 | volumeChange: { | ||
19660 | phasedRegistrationNames: { | ||
19661 | bubbled: keyOf({ onVolumeChange: true }), | ||
19662 | captured: keyOf({ onVolumeChangeCapture: true }) | ||
19663 | } | ||
19664 | }, | ||
19665 | waiting: { | ||
19666 | phasedRegistrationNames: { | ||
19667 | bubbled: keyOf({ onWaiting: true }), | ||
19668 | captured: keyOf({ onWaitingCapture: true }) | ||
19669 | } | ||
19670 | }, | ||
19671 | wheel: { | ||
19672 | phasedRegistrationNames: { | 19298 | phasedRegistrationNames: { |
19673 | bubbled: keyOf({ onWheel: true }), | 19299 | bubbled: onEvent, |
19674 | captured: keyOf({ onWheelCapture: true }) | 19300 | captured: onEvent + 'Capture' |
19675 | } | 19301 | }, |
19676 | } | 19302 | dependencies: [topEvent] |
19677 | }; | 19303 | }; |
19678 | 19304 | eventTypes[event] = type; | |
19679 | var topLevelEventsToDispatchConfig = { | 19305 | topLevelEventsToDispatchConfig[topEvent] = type; |
19680 | topAbort: eventTypes.abort, | 19306 | }); |
19681 | topAnimationEnd: eventTypes.animationEnd, | ||
19682 | topAnimationIteration: eventTypes.animationIteration, | ||
19683 | topAnimationStart: eventTypes.animationStart, | ||
19684 | topBlur: eventTypes.blur, | ||
19685 | topCanPlay: eventTypes.canPlay, | ||
19686 | topCanPlayThrough: eventTypes.canPlayThrough, | ||
19687 | topClick: eventTypes.click, | ||
19688 | topContextMenu: eventTypes.contextMenu, | ||
19689 | topCopy: eventTypes.copy, | ||
19690 | topCut: eventTypes.cut, | ||
19691 | topDoubleClick: eventTypes.doubleClick, | ||
19692 | topDrag: eventTypes.drag, | ||
19693 | topDragEnd: eventTypes.dragEnd, | ||
19694 | topDragEnter: eventTypes.dragEnter, | ||
19695 | topDragExit: eventTypes.dragExit, | ||
19696 | topDragLeave: eventTypes.dragLeave, | ||
19697 | topDragOver: eventTypes.dragOver, | ||
19698 | topDragStart: eventTypes.dragStart, | ||
19699 | topDrop: eventTypes.drop, | ||
19700 | topDurationChange: eventTypes.durationChange, | ||
19701 | topEmptied: eventTypes.emptied, | ||
19702 | topEncrypted: eventTypes.encrypted, | ||
19703 | topEnded: eventTypes.ended, | ||
19704 | topError: eventTypes.error, | ||
19705 | topFocus: eventTypes.focus, | ||
19706 | topInput: eventTypes.input, | ||
19707 | topInvalid: eventTypes.invalid, | ||
19708 | topKeyDown: eventTypes.keyDown, | ||
19709 | topKeyPress: eventTypes.keyPress, | ||
19710 | topKeyUp: eventTypes.keyUp, | ||
19711 | topLoad: eventTypes.load, | ||
19712 | topLoadedData: eventTypes.loadedData, | ||
19713 | topLoadedMetadata: eventTypes.loadedMetadata, | ||
19714 | topLoadStart: eventTypes.loadStart, | ||
19715 | topMouseDown: eventTypes.mouseDown, | ||
19716 | topMouseMove: eventTypes.mouseMove, | ||
19717 | topMouseOut: eventTypes.mouseOut, | ||
19718 | topMouseOver: eventTypes.mouseOver, | ||
19719 | topMouseUp: eventTypes.mouseUp, | ||
19720 | topPaste: eventTypes.paste, | ||
19721 | topPause: eventTypes.pause, | ||
19722 | topPlay: eventTypes.play, | ||
19723 | topPlaying: eventTypes.playing, | ||
19724 | topProgress: eventTypes.progress, | ||
19725 | topRateChange: eventTypes.rateChange, | ||
19726 | topReset: eventTypes.reset, | ||
19727 | topScroll: eventTypes.scroll, | ||
19728 | topSeeked: eventTypes.seeked, | ||
19729 | topSeeking: eventTypes.seeking, | ||
19730 | topStalled: eventTypes.stalled, | ||
19731 | topSubmit: eventTypes.submit, | ||
19732 | topSuspend: eventTypes.suspend, | ||
19733 | topTimeUpdate: eventTypes.timeUpdate, | ||
19734 | topTouchCancel: eventTypes.touchCancel, | ||
19735 | topTouchEnd: eventTypes.touchEnd, | ||
19736 | topTouchMove: eventTypes.touchMove, | ||
19737 | topTouchStart: eventTypes.touchStart, | ||
19738 | topTransitionEnd: eventTypes.transitionEnd, | ||
19739 | topVolumeChange: eventTypes.volumeChange, | ||
19740 | topWaiting: eventTypes.waiting, | ||
19741 | topWheel: eventTypes.wheel | ||
19742 | }; | ||
19743 | |||
19744 | for (var type in topLevelEventsToDispatchConfig) { | ||
19745 | topLevelEventsToDispatchConfig[type].dependencies = [type]; | ||
19746 | } | ||
19747 | 19307 | ||
19748 | var ON_CLICK_KEY = keyOf({ onClick: null }); | ||
19749 | var onClickListeners = {}; | 19308 | var onClickListeners = {}; |
19750 | 19309 | ||
19751 | function getDictionaryKey(inst) { | 19310 | function getDictionaryKey(inst) { |
@@ -19754,6 +19313,10 @@ | |||
19754 | return '.' + inst._rootNodeID; | 19313 | return '.' + inst._rootNodeID; |
19755 | } | 19314 | } |
19756 | 19315 | ||
19316 | function isInteractive(tag) { | ||
19317 | return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; | ||
19318 | } | ||
19319 | |||
19757 | var SimpleEventPlugin = { | 19320 | var SimpleEventPlugin = { |
19758 | 19321 | ||
19759 | eventTypes: eventTypes, | 19322 | eventTypes: eventTypes, |
@@ -19765,39 +19328,39 @@ | |||
19765 | } | 19328 | } |
19766 | var EventConstructor; | 19329 | var EventConstructor; |
19767 | switch (topLevelType) { | 19330 | switch (topLevelType) { |
19768 | case topLevelTypes.topAbort: | 19331 | case 'topAbort': |
19769 | case topLevelTypes.topCanPlay: | 19332 | case 'topCanPlay': |
19770 | case topLevelTypes.topCanPlayThrough: | 19333 | case 'topCanPlayThrough': |
19771 | case topLevelTypes.topDurationChange: | 19334 | case 'topDurationChange': |
19772 | case topLevelTypes.topEmptied: | 19335 | case 'topEmptied': |
19773 | case topLevelTypes.topEncrypted: | 19336 | case 'topEncrypted': |
19774 | case topLevelTypes.topEnded: | 19337 | case 'topEnded': |
19775 | case topLevelTypes.topError: | 19338 | case 'topError': |
19776 | case topLevelTypes.topInput: | 19339 | case 'topInput': |
19777 | case topLevelTypes.topInvalid: | 19340 | case 'topInvalid': |
19778 | case topLevelTypes.topLoad: | 19341 | case 'topLoad': |
19779 | case topLevelTypes.topLoadedData: | 19342 | case 'topLoadedData': |
19780 | case topLevelTypes.topLoadedMetadata: | 19343 | case 'topLoadedMetadata': |
19781 | case topLevelTypes.topLoadStart: | 19344 | case 'topLoadStart': |
19782 | case topLevelTypes.topPause: | 19345 | case 'topPause': |
19783 | case topLevelTypes.topPlay: | 19346 | case 'topPlay': |
19784 | case topLevelTypes.topPlaying: | 19347 | case 'topPlaying': |
19785 | case topLevelTypes.topProgress: | 19348 | case 'topProgress': |
19786 | case topLevelTypes.topRateChange: | 19349 | case 'topRateChange': |
19787 | case topLevelTypes.topReset: | 19350 | case 'topReset': |
19788 | case topLevelTypes.topSeeked: | 19351 | case 'topSeeked': |
19789 | case topLevelTypes.topSeeking: | 19352 | case 'topSeeking': |
19790 | case topLevelTypes.topStalled: | 19353 | case 'topStalled': |
19791 | case topLevelTypes.topSubmit: | 19354 | case 'topSubmit': |
19792 | case topLevelTypes.topSuspend: | 19355 | case 'topSuspend': |
19793 | case topLevelTypes.topTimeUpdate: | 19356 | case 'topTimeUpdate': |
19794 | case topLevelTypes.topVolumeChange: | 19357 | case 'topVolumeChange': |
19795 | case topLevelTypes.topWaiting: | 19358 | case 'topWaiting': |
19796 | // HTML Events | 19359 | // HTML Events |
19797 | // @see http://www.w3.org/TR/html5/index.html#events-0 | 19360 | // @see http://www.w3.org/TR/html5/index.html#events-0 |
19798 | EventConstructor = SyntheticEvent; | 19361 | EventConstructor = SyntheticEvent; |
19799 | break; | 19362 | break; |
19800 | case topLevelTypes.topKeyPress: | 19363 | case 'topKeyPress': |
19801 | // Firefox creates a keypress event for function keys too. This removes | 19364 | // Firefox creates a keypress event for function keys too. This removes |
19802 | // the unwanted keypress events. Enter is however both printable and | 19365 | // the unwanted keypress events. Enter is however both printable and |
19803 | // non-printable. One would expect Tab to be as well (but it isn't). | 19366 | // non-printable. One would expect Tab to be as well (but it isn't). |
@@ -19805,63 +19368,65 @@ | |||
19805 | return null; | 19368 | return null; |
19806 | } | 19369 | } |
19807 | /* falls through */ | 19370 | /* falls through */ |
19808 | case topLevelTypes.topKeyDown: | 19371 | case 'topKeyDown': |
19809 | case topLevelTypes.topKeyUp: | 19372 | case 'topKeyUp': |
19810 | EventConstructor = SyntheticKeyboardEvent; | 19373 | EventConstructor = SyntheticKeyboardEvent; |
19811 | break; | 19374 | break; |
19812 | case topLevelTypes.topBlur: | 19375 | case 'topBlur': |
19813 | case topLevelTypes.topFocus: | 19376 | case 'topFocus': |
19814 | EventConstructor = SyntheticFocusEvent; | 19377 | EventConstructor = SyntheticFocusEvent; |
19815 | break; | 19378 | break; |
19816 | case topLevelTypes.topClick: | 19379 | case 'topClick': |
19817 | // Firefox creates a click event on right mouse clicks. This removes the | 19380 | // Firefox creates a click event on right mouse clicks. This removes the |
19818 | // unwanted click events. | 19381 | // unwanted click events. |
19819 | if (nativeEvent.button === 2) { | 19382 | if (nativeEvent.button === 2) { |
19820 | return null; | 19383 | return null; |
19821 | } | 19384 | } |
19822 | /* falls through */ | 19385 | /* falls through */ |
19823 | case topLevelTypes.topContextMenu: | 19386 | case 'topDoubleClick': |
19824 | case topLevelTypes.topDoubleClick: | 19387 | case 'topMouseDown': |
19825 | case topLevelTypes.topMouseDown: | 19388 | case 'topMouseMove': |
19826 | case topLevelTypes.topMouseMove: | 19389 | case 'topMouseUp': |
19827 | case topLevelTypes.topMouseOut: | 19390 | // TODO: Disabled elements should not respond to mouse events |
19828 | case topLevelTypes.topMouseOver: | 19391 | /* falls through */ |
19829 | case topLevelTypes.topMouseUp: | 19392 | case 'topMouseOut': |
19393 | case 'topMouseOver': | ||
19394 | case 'topContextMenu': | ||
19830 | EventConstructor = SyntheticMouseEvent; | 19395 | EventConstructor = SyntheticMouseEvent; |
19831 | break; | 19396 | break; |
19832 | case topLevelTypes.topDrag: | 19397 | case 'topDrag': |
19833 | case topLevelTypes.topDragEnd: | 19398 | case 'topDragEnd': |
19834 | case topLevelTypes.topDragEnter: | 19399 | case 'topDragEnter': |
19835 | case topLevelTypes.topDragExit: | 19400 | case 'topDragExit': |
19836 | case topLevelTypes.topDragLeave: | 19401 | case 'topDragLeave': |
19837 | case topLevelTypes.topDragOver: | 19402 | case 'topDragOver': |
19838 | case topLevelTypes.topDragStart: | 19403 | case 'topDragStart': |
19839 | case topLevelTypes.topDrop: | 19404 | case 'topDrop': |
19840 | EventConstructor = SyntheticDragEvent; | 19405 | EventConstructor = SyntheticDragEvent; |
19841 | break; | 19406 | break; |
19842 | case topLevelTypes.topTouchCancel: | 19407 | case 'topTouchCancel': |
19843 | case topLevelTypes.topTouchEnd: | 19408 | case 'topTouchEnd': |
19844 | case topLevelTypes.topTouchMove: | 19409 | case 'topTouchMove': |
19845 | case topLevelTypes.topTouchStart: | 19410 | case 'topTouchStart': |
19846 | EventConstructor = SyntheticTouchEvent; | 19411 | EventConstructor = SyntheticTouchEvent; |
19847 | break; | 19412 | break; |
19848 | case topLevelTypes.topAnimationEnd: | 19413 | case 'topAnimationEnd': |
19849 | case topLevelTypes.topAnimationIteration: | 19414 | case 'topAnimationIteration': |
19850 | case topLevelTypes.topAnimationStart: | 19415 | case 'topAnimationStart': |
19851 | EventConstructor = SyntheticAnimationEvent; | 19416 | EventConstructor = SyntheticAnimationEvent; |
19852 | break; | 19417 | break; |
19853 | case topLevelTypes.topTransitionEnd: | 19418 | case 'topTransitionEnd': |
19854 | EventConstructor = SyntheticTransitionEvent; | 19419 | EventConstructor = SyntheticTransitionEvent; |
19855 | break; | 19420 | break; |
19856 | case topLevelTypes.topScroll: | 19421 | case 'topScroll': |
19857 | EventConstructor = SyntheticUIEvent; | 19422 | EventConstructor = SyntheticUIEvent; |
19858 | break; | 19423 | break; |
19859 | case topLevelTypes.topWheel: | 19424 | case 'topWheel': |
19860 | EventConstructor = SyntheticWheelEvent; | 19425 | EventConstructor = SyntheticWheelEvent; |
19861 | break; | 19426 | break; |
19862 | case topLevelTypes.topCopy: | 19427 | case 'topCopy': |
19863 | case topLevelTypes.topCut: | 19428 | case 'topCut': |
19864 | case topLevelTypes.topPaste: | 19429 | case 'topPaste': |
19865 | EventConstructor = SyntheticClipboardEvent; | 19430 | EventConstructor = SyntheticClipboardEvent; |
19866 | break; | 19431 | break; |
19867 | } | 19432 | } |
@@ -19876,7 +19441,8 @@ | |||
19876 | // non-interactive elements, which means delegated click listeners do not | 19441 | // non-interactive elements, which means delegated click listeners do not |
19877 | // fire. The workaround for this bug involves attaching an empty click | 19442 | // fire. The workaround for this bug involves attaching an empty click |
19878 | // listener on the target node. | 19443 | // listener on the target node. |
19879 | if (registrationName === ON_CLICK_KEY) { | 19444 | // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html |
19445 | if (registrationName === 'onClick' && !isInteractive(inst._tag)) { | ||
19880 | var key = getDictionaryKey(inst); | 19446 | var key = getDictionaryKey(inst); |
19881 | var node = ReactDOMComponentTree.getNodeFromInstance(inst); | 19447 | var node = ReactDOMComponentTree.getNodeFromInstance(inst); |
19882 | if (!onClickListeners[key]) { | 19448 | if (!onClickListeners[key]) { |
@@ -19886,7 +19452,7 @@ | |||
19886 | }, | 19452 | }, |
19887 | 19453 | ||
19888 | willDeleteListener: function (inst, registrationName) { | 19454 | willDeleteListener: function (inst, registrationName) { |
19889 | if (registrationName === ON_CLICK_KEY) { | 19455 | if (registrationName === 'onClick' && !isInteractive(inst._tag)) { |
19890 | var key = getDictionaryKey(inst); | 19456 | var key = getDictionaryKey(inst); |
19891 | onClickListeners[key].remove(); | 19457 | onClickListeners[key].remove(); |
19892 | delete onClickListeners[key]; | 19458 | delete onClickListeners[key]; |
@@ -19899,7 +19465,7 @@ | |||
19899 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 19465 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
19900 | 19466 | ||
19901 | /***/ }, | 19467 | /***/ }, |
19902 | /* 154 */ | 19468 | /* 158 */ |
19903 | /***/ function(module, exports, __webpack_require__) { | 19469 | /***/ function(module, exports, __webpack_require__) { |
19904 | 19470 | ||
19905 | /** | 19471 | /** |
@@ -19910,7 +19476,6 @@ | |||
19910 | * LICENSE file in the root directory of this source tree. An additional grant | 19476 | * LICENSE file in the root directory of this source tree. An additional grant |
19911 | * of patent rights can be found in the PATENTS file in the same directory. | 19477 | * of patent rights can be found in the PATENTS file in the same directory. |
19912 | * | 19478 | * |
19913 | * @providesModule SyntheticAnimationEvent | ||
19914 | */ | 19479 | */ |
19915 | 19480 | ||
19916 | 'use strict'; | 19481 | 'use strict'; |
@@ -19943,7 +19508,7 @@ | |||
19943 | module.exports = SyntheticAnimationEvent; | 19508 | module.exports = SyntheticAnimationEvent; |
19944 | 19509 | ||
19945 | /***/ }, | 19510 | /***/ }, |
19946 | /* 155 */ | 19511 | /* 159 */ |
19947 | /***/ function(module, exports, __webpack_require__) { | 19512 | /***/ function(module, exports, __webpack_require__) { |
19948 | 19513 | ||
19949 | /** | 19514 | /** |
@@ -19954,7 +19519,6 @@ | |||
19954 | * LICENSE file in the root directory of this source tree. An additional grant | 19519 | * LICENSE file in the root directory of this source tree. An additional grant |
19955 | * of patent rights can be found in the PATENTS file in the same directory. | 19520 | * of patent rights can be found in the PATENTS file in the same directory. |
19956 | * | 19521 | * |
19957 | * @providesModule SyntheticClipboardEvent | ||
19958 | */ | 19522 | */ |
19959 | 19523 | ||
19960 | 'use strict'; | 19524 | 'use strict'; |
@@ -19986,7 +19550,7 @@ | |||
19986 | module.exports = SyntheticClipboardEvent; | 19550 | module.exports = SyntheticClipboardEvent; |
19987 | 19551 | ||
19988 | /***/ }, | 19552 | /***/ }, |
19989 | /* 156 */ | 19553 | /* 160 */ |
19990 | /***/ function(module, exports, __webpack_require__) { | 19554 | /***/ function(module, exports, __webpack_require__) { |
19991 | 19555 | ||
19992 | /** | 19556 | /** |
@@ -19997,12 +19561,11 @@ | |||
19997 | * LICENSE file in the root directory of this source tree. An additional grant | 19561 | * LICENSE file in the root directory of this source tree. An additional grant |
19998 | * of patent rights can be found in the PATENTS file in the same directory. | 19562 | * of patent rights can be found in the PATENTS file in the same directory. |
19999 | * | 19563 | * |
20000 | * @providesModule SyntheticFocusEvent | ||
20001 | */ | 19564 | */ |
20002 | 19565 | ||
20003 | 'use strict'; | 19566 | 'use strict'; |
20004 | 19567 | ||
20005 | var SyntheticUIEvent = __webpack_require__(78); | 19568 | var SyntheticUIEvent = __webpack_require__(77); |
20006 | 19569 | ||
20007 | /** | 19570 | /** |
20008 | * @interface FocusEvent | 19571 | * @interface FocusEvent |
@@ -20027,7 +19590,7 @@ | |||
20027 | module.exports = SyntheticFocusEvent; | 19590 | module.exports = SyntheticFocusEvent; |
20028 | 19591 | ||
20029 | /***/ }, | 19592 | /***/ }, |
20030 | /* 157 */ | 19593 | /* 161 */ |
20031 | /***/ function(module, exports, __webpack_require__) { | 19594 | /***/ function(module, exports, __webpack_require__) { |
20032 | 19595 | ||
20033 | /** | 19596 | /** |
@@ -20038,16 +19601,15 @@ | |||
20038 | * LICENSE file in the root directory of this source tree. An additional grant | 19601 | * LICENSE file in the root directory of this source tree. An additional grant |
20039 | * of patent rights can be found in the PATENTS file in the same directory. | 19602 | * of patent rights can be found in the PATENTS file in the same directory. |
20040 | * | 19603 | * |
20041 | * @providesModule SyntheticKeyboardEvent | ||
20042 | */ | 19604 | */ |
20043 | 19605 | ||
20044 | 'use strict'; | 19606 | 'use strict'; |
20045 | 19607 | ||
20046 | var SyntheticUIEvent = __webpack_require__(78); | 19608 | var SyntheticUIEvent = __webpack_require__(77); |
20047 | 19609 | ||
20048 | var getEventCharCode = __webpack_require__(158); | 19610 | var getEventCharCode = __webpack_require__(162); |
20049 | var getEventKey = __webpack_require__(159); | 19611 | var getEventKey = __webpack_require__(163); |
20050 | var getEventModifierState = __webpack_require__(80); | 19612 | var getEventModifierState = __webpack_require__(79); |
20051 | 19613 | ||
20052 | /** | 19614 | /** |
20053 | * @interface KeyboardEvent | 19615 | * @interface KeyboardEvent |
@@ -20116,7 +19678,7 @@ | |||
20116 | module.exports = SyntheticKeyboardEvent; | 19678 | module.exports = SyntheticKeyboardEvent; |
20117 | 19679 | ||
20118 | /***/ }, | 19680 | /***/ }, |
20119 | /* 158 */ | 19681 | /* 162 */ |
20120 | /***/ function(module, exports) { | 19682 | /***/ function(module, exports) { |
20121 | 19683 | ||
20122 | /** | 19684 | /** |
@@ -20127,7 +19689,6 @@ | |||
20127 | * LICENSE file in the root directory of this source tree. An additional grant | 19689 | * LICENSE file in the root directory of this source tree. An additional grant |
20128 | * of patent rights can be found in the PATENTS file in the same directory. | 19690 | * of patent rights can be found in the PATENTS file in the same directory. |
20129 | * | 19691 | * |
20130 | * @providesModule getEventCharCode | ||
20131 | */ | 19692 | */ |
20132 | 19693 | ||
20133 | 'use strict'; | 19694 | 'use strict'; |
@@ -20171,7 +19732,7 @@ | |||
20171 | module.exports = getEventCharCode; | 19732 | module.exports = getEventCharCode; |
20172 | 19733 | ||
20173 | /***/ }, | 19734 | /***/ }, |
20174 | /* 159 */ | 19735 | /* 163 */ |
20175 | /***/ function(module, exports, __webpack_require__) { | 19736 | /***/ function(module, exports, __webpack_require__) { |
20176 | 19737 | ||
20177 | /** | 19738 | /** |
@@ -20182,12 +19743,11 @@ | |||
20182 | * LICENSE file in the root directory of this source tree. An additional grant | 19743 | * LICENSE file in the root directory of this source tree. An additional grant |
20183 | * of patent rights can be found in the PATENTS file in the same directory. | 19744 | * of patent rights can be found in the PATENTS file in the same directory. |
20184 | * | 19745 | * |
20185 | * @providesModule getEventKey | ||
20186 | */ | 19746 | */ |
20187 | 19747 | ||
20188 | 'use strict'; | 19748 | 'use strict'; |
20189 | 19749 | ||
20190 | var getEventCharCode = __webpack_require__(158); | 19750 | var getEventCharCode = __webpack_require__(162); |
20191 | 19751 | ||
20192 | /** | 19752 | /** |
20193 | * Normalization of deprecated HTML5 `key` values | 19753 | * Normalization of deprecated HTML5 `key` values |
@@ -20278,7 +19838,7 @@ | |||
20278 | module.exports = getEventKey; | 19838 | module.exports = getEventKey; |
20279 | 19839 | ||
20280 | /***/ }, | 19840 | /***/ }, |
20281 | /* 160 */ | 19841 | /* 164 */ |
20282 | /***/ function(module, exports, __webpack_require__) { | 19842 | /***/ function(module, exports, __webpack_require__) { |
20283 | 19843 | ||
20284 | /** | 19844 | /** |
@@ -20289,12 +19849,11 @@ | |||
20289 | * LICENSE file in the root directory of this source tree. An additional grant | 19849 | * LICENSE file in the root directory of this source tree. An additional grant |
20290 | * of patent rights can be found in the PATENTS file in the same directory. | 19850 | * of patent rights can be found in the PATENTS file in the same directory. |
20291 | * | 19851 | * |
20292 | * @providesModule SyntheticDragEvent | ||
20293 | */ | 19852 | */ |
20294 | 19853 | ||
20295 | 'use strict'; | 19854 | 'use strict'; |
20296 | 19855 | ||
20297 | var SyntheticMouseEvent = __webpack_require__(77); | 19856 | var SyntheticMouseEvent = __webpack_require__(76); |
20298 | 19857 | ||
20299 | /** | 19858 | /** |
20300 | * @interface DragEvent | 19859 | * @interface DragEvent |
@@ -20319,7 +19878,7 @@ | |||
20319 | module.exports = SyntheticDragEvent; | 19878 | module.exports = SyntheticDragEvent; |
20320 | 19879 | ||
20321 | /***/ }, | 19880 | /***/ }, |
20322 | /* 161 */ | 19881 | /* 165 */ |
20323 | /***/ function(module, exports, __webpack_require__) { | 19882 | /***/ function(module, exports, __webpack_require__) { |
20324 | 19883 | ||
20325 | /** | 19884 | /** |
@@ -20330,14 +19889,13 @@ | |||
20330 | * LICENSE file in the root directory of this source tree. An additional grant | 19889 | * LICENSE file in the root directory of this source tree. An additional grant |
20331 | * of patent rights can be found in the PATENTS file in the same directory. | 19890 | * of patent rights can be found in the PATENTS file in the same directory. |
20332 | * | 19891 | * |
20333 | * @providesModule SyntheticTouchEvent | ||
20334 | */ | 19892 | */ |
20335 | 19893 | ||
20336 | 'use strict'; | 19894 | 'use strict'; |
20337 | 19895 | ||
20338 | var SyntheticUIEvent = __webpack_require__(78); | 19896 | var SyntheticUIEvent = __webpack_require__(77); |
20339 | 19897 | ||
20340 | var getEventModifierState = __webpack_require__(80); | 19898 | var getEventModifierState = __webpack_require__(79); |
20341 | 19899 | ||
20342 | /** | 19900 | /** |
20343 | * @interface TouchEvent | 19901 | * @interface TouchEvent |
@@ -20369,7 +19927,7 @@ | |||
20369 | module.exports = SyntheticTouchEvent; | 19927 | module.exports = SyntheticTouchEvent; |
20370 | 19928 | ||
20371 | /***/ }, | 19929 | /***/ }, |
20372 | /* 162 */ | 19930 | /* 166 */ |
20373 | /***/ function(module, exports, __webpack_require__) { | 19931 | /***/ function(module, exports, __webpack_require__) { |
20374 | 19932 | ||
20375 | /** | 19933 | /** |
@@ -20380,7 +19938,6 @@ | |||
20380 | * LICENSE file in the root directory of this source tree. An additional grant | 19938 | * LICENSE file in the root directory of this source tree. An additional grant |
20381 | * of patent rights can be found in the PATENTS file in the same directory. | 19939 | * of patent rights can be found in the PATENTS file in the same directory. |
20382 | * | 19940 | * |
20383 | * @providesModule SyntheticTransitionEvent | ||
20384 | */ | 19941 | */ |
20385 | 19942 | ||
20386 | 'use strict'; | 19943 | 'use strict'; |
@@ -20413,7 +19970,7 @@ | |||
20413 | module.exports = SyntheticTransitionEvent; | 19970 | module.exports = SyntheticTransitionEvent; |
20414 | 19971 | ||
20415 | /***/ }, | 19972 | /***/ }, |
20416 | /* 163 */ | 19973 | /* 167 */ |
20417 | /***/ function(module, exports, __webpack_require__) { | 19974 | /***/ function(module, exports, __webpack_require__) { |
20418 | 19975 | ||
20419 | /** | 19976 | /** |
@@ -20424,12 +19981,11 @@ | |||
20424 | * LICENSE file in the root directory of this source tree. An additional grant | 19981 | * LICENSE file in the root directory of this source tree. An additional grant |
20425 | * of patent rights can be found in the PATENTS file in the same directory. | 19982 | * of patent rights can be found in the PATENTS file in the same directory. |
20426 | * | 19983 | * |
20427 | * @providesModule SyntheticWheelEvent | ||
20428 | */ | 19984 | */ |
20429 | 19985 | ||
20430 | 'use strict'; | 19986 | 'use strict'; |
20431 | 19987 | ||
20432 | var SyntheticMouseEvent = __webpack_require__(77); | 19988 | var SyntheticMouseEvent = __webpack_require__(76); |
20433 | 19989 | ||
20434 | /** | 19990 | /** |
20435 | * @interface WheelEvent | 19991 | * @interface WheelEvent |
@@ -20472,7 +20028,7 @@ | |||
20472 | module.exports = SyntheticWheelEvent; | 20028 | module.exports = SyntheticWheelEvent; |
20473 | 20029 | ||
20474 | /***/ }, | 20030 | /***/ }, |
20475 | /* 164 */ | 20031 | /* 168 */ |
20476 | /***/ function(module, exports, __webpack_require__) { | 20032 | /***/ function(module, exports, __webpack_require__) { |
20477 | 20033 | ||
20478 | /* WEBPACK VAR INJECTION */(function(process) {/** | 20034 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -20483,34 +20039,33 @@ | |||
20483 | * LICENSE file in the root directory of this source tree. An additional grant | 20039 | * LICENSE file in the root directory of this source tree. An additional grant |
20484 | * of patent rights can be found in the PATENTS file in the same directory. | 20040 | * of patent rights can be found in the PATENTS file in the same directory. |
20485 | * | 20041 | * |
20486 | * @providesModule ReactMount | ||
20487 | */ | 20042 | */ |
20488 | 20043 | ||
20489 | 'use strict'; | 20044 | 'use strict'; |
20490 | 20045 | ||
20491 | var _prodInvariant = __webpack_require__(9); | 20046 | var _prodInvariant = __webpack_require__(37); |
20492 | 20047 | ||
20493 | var DOMLazyTree = __webpack_require__(84); | 20048 | var DOMLazyTree = __webpack_require__(83); |
20494 | var DOMProperty = __webpack_require__(39); | 20049 | var DOMProperty = __webpack_require__(38); |
20495 | var ReactBrowserEventEmitter = __webpack_require__(109); | 20050 | var React = __webpack_require__(4); |
20051 | var ReactBrowserEventEmitter = __webpack_require__(107); | ||
20496 | var ReactCurrentOwner = __webpack_require__(12); | 20052 | var ReactCurrentOwner = __webpack_require__(12); |
20497 | var ReactDOMComponentTree = __webpack_require__(38); | 20053 | var ReactDOMComponentTree = __webpack_require__(36); |
20498 | var ReactDOMContainerInfo = __webpack_require__(165); | 20054 | var ReactDOMContainerInfo = __webpack_require__(169); |
20499 | var ReactDOMFeatureFlags = __webpack_require__(166); | 20055 | var ReactDOMFeatureFlags = __webpack_require__(170); |
20500 | var ReactElement = __webpack_require__(11); | ||
20501 | var ReactFeatureFlags = __webpack_require__(60); | 20056 | var ReactFeatureFlags = __webpack_require__(60); |
20502 | var ReactInstanceMap = __webpack_require__(121); | 20057 | var ReactInstanceMap = __webpack_require__(118); |
20503 | var ReactInstrumentation = __webpack_require__(64); | 20058 | var ReactInstrumentation = __webpack_require__(64); |
20504 | var ReactMarkupChecksum = __webpack_require__(167); | 20059 | var ReactMarkupChecksum = __webpack_require__(171); |
20505 | var ReactReconciler = __webpack_require__(61); | 20060 | var ReactReconciler = __webpack_require__(61); |
20506 | var ReactUpdateQueue = __webpack_require__(133); | 20061 | var ReactUpdateQueue = __webpack_require__(137); |
20507 | var ReactUpdates = __webpack_require__(58); | 20062 | var ReactUpdates = __webpack_require__(58); |
20508 | 20063 | ||
20509 | var emptyObject = __webpack_require__(21); | 20064 | var emptyObject = __webpack_require__(22); |
20510 | var instantiateReactComponent = __webpack_require__(123); | 20065 | var instantiateReactComponent = __webpack_require__(120); |
20511 | var invariant = __webpack_require__(10); | 20066 | var invariant = __webpack_require__(10); |
20512 | var setInnerHTML = __webpack_require__(86); | 20067 | var setInnerHTML = __webpack_require__(85); |
20513 | var shouldUpdateReactComponent = __webpack_require__(127); | 20068 | var shouldUpdateReactComponent = __webpack_require__(126); |
20514 | var warning = __webpack_require__(13); | 20069 | var warning = __webpack_require__(13); |
20515 | 20070 | ||
20516 | var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; | 20071 | var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; |
@@ -20573,7 +20128,7 @@ | |||
20573 | function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) { | 20128 | function mountComponentIntoNode(wrapperInstance, container, transaction, shouldReuseMarkup, context) { |
20574 | var markerName; | 20129 | var markerName; |
20575 | if (ReactFeatureFlags.logTopLevelRenders) { | 20130 | if (ReactFeatureFlags.logTopLevelRenders) { |
20576 | var wrappedElement = wrapperInstance._currentElement.props; | 20131 | var wrappedElement = wrapperInstance._currentElement.props.child; |
20577 | var type = wrappedElement.type; | 20132 | var type = wrappedElement.type; |
20578 | markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name); | 20133 | markerName = 'React mount: ' + (typeof type === 'string' ? type : type.displayName || type.name); |
20579 | console.time(markerName); | 20134 | console.time(markerName); |
@@ -20711,9 +20266,9 @@ | |||
20711 | TopLevelWrapper.displayName = 'TopLevelWrapper'; | 20266 | TopLevelWrapper.displayName = 'TopLevelWrapper'; |
20712 | } | 20267 | } |
20713 | TopLevelWrapper.prototype.render = function () { | 20268 | TopLevelWrapper.prototype.render = function () { |
20714 | // this.props is actually a ReactElement | 20269 | return this.props.child; |
20715 | return this.props; | ||
20716 | }; | 20270 | }; |
20271 | TopLevelWrapper.isReactTopLevelWrapper = true; | ||
20717 | 20272 | ||
20718 | /** | 20273 | /** |
20719 | * Mounting is the process of initializing a React component by creating its | 20274 | * Mounting is the process of initializing a React component by creating its |
@@ -20823,13 +20378,13 @@ | |||
20823 | 20378 | ||
20824 | _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) { | 20379 | _renderSubtreeIntoContainer: function (parentComponent, nextElement, container, callback) { |
20825 | ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render'); | 20380 | ReactUpdateQueue.validateCallback(callback, 'ReactDOM.render'); |
20826 | !ReactElement.isValidElement(nextElement) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : | 20381 | !React.isValidElement(nextElement) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactDOM.render(): Invalid component element.%s', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : |
20827 | // Check if it quacks like an element | 20382 | // Check if it quacks like an element |
20828 | nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0; | 20383 | nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : _prodInvariant('39', typeof nextElement === 'string' ? ' Instead of passing a string like \'div\', pass ' + 'React.createElement(\'div\') or <div />.' : typeof nextElement === 'function' ? ' Instead of passing a class like Foo, pass ' + 'React.createElement(Foo) or <Foo />.' : nextElement != null && nextElement.props !== undefined ? ' This may be caused by unintentionally loading two independent ' + 'copies of React.' : '') : void 0; |
20829 | 20384 | ||
20830 | process.env.NODE_ENV !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0; | 20385 | process.env.NODE_ENV !== 'production' ? warning(!container || !container.tagName || container.tagName.toUpperCase() !== 'BODY', 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0; |
20831 | 20386 | ||
20832 | var nextWrappedElement = ReactElement(TopLevelWrapper, null, null, null, null, null, nextElement); | 20387 | var nextWrappedElement = React.createElement(TopLevelWrapper, { child: nextElement }); |
20833 | 20388 | ||
20834 | var nextContext; | 20389 | var nextContext; |
20835 | if (parentComponent) { | 20390 | if (parentComponent) { |
@@ -20843,7 +20398,7 @@ | |||
20843 | 20398 | ||
20844 | if (prevComponent) { | 20399 | if (prevComponent) { |
20845 | var prevWrappedElement = prevComponent._currentElement; | 20400 | var prevWrappedElement = prevComponent._currentElement; |
20846 | var prevElement = prevWrappedElement.props; | 20401 | var prevElement = prevWrappedElement.props.child; |
20847 | if (shouldUpdateReactComponent(prevElement, nextElement)) { | 20402 | if (shouldUpdateReactComponent(prevElement, nextElement)) { |
20848 | var publicInst = prevComponent._renderedComponent.getPublicInstance(); | 20403 | var publicInst = prevComponent._renderedComponent.getPublicInstance(); |
20849 | var updatedCallback = callback && function () { | 20404 | var updatedCallback = callback && function () { |
@@ -21002,7 +20557,11 @@ | |||
21002 | if (process.env.NODE_ENV !== 'production') { | 20557 | if (process.env.NODE_ENV !== 'production') { |
21003 | var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild); | 20558 | var hostNode = ReactDOMComponentTree.getInstanceFromNode(container.firstChild); |
21004 | if (hostNode._debugID !== 0) { | 20559 | if (hostNode._debugID !== 0) { |
21005 | ReactInstrumentation.debugTool.onHostOperation(hostNode._debugID, 'mount', markup.toString()); | 20560 | ReactInstrumentation.debugTool.onHostOperation({ |
20561 | instanceID: hostNode._debugID, | ||
20562 | type: 'mount', | ||
20563 | payload: markup.toString() | ||
20564 | }); | ||
21006 | } | 20565 | } |
21007 | } | 20566 | } |
21008 | } | 20567 | } |
@@ -21012,7 +20571,7 @@ | |||
21012 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 20571 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
21013 | 20572 | ||
21014 | /***/ }, | 20573 | /***/ }, |
21015 | /* 165 */ | 20574 | /* 169 */ |
21016 | /***/ function(module, exports, __webpack_require__) { | 20575 | /***/ function(module, exports, __webpack_require__) { |
21017 | 20576 | ||
21018 | /* WEBPACK VAR INJECTION */(function(process) {/** | 20577 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -21023,12 +20582,11 @@ | |||
21023 | * LICENSE file in the root directory of this source tree. An additional grant | 20582 | * LICENSE file in the root directory of this source tree. An additional grant |
21024 | * of patent rights can be found in the PATENTS file in the same directory. | 20583 | * of patent rights can be found in the PATENTS file in the same directory. |
21025 | * | 20584 | * |
21026 | * @providesModule ReactDOMContainerInfo | ||
21027 | */ | 20585 | */ |
21028 | 20586 | ||
21029 | 'use strict'; | 20587 | 'use strict'; |
21030 | 20588 | ||
21031 | var validateDOMNesting = __webpack_require__(134); | 20589 | var validateDOMNesting = __webpack_require__(138); |
21032 | 20590 | ||
21033 | var DOC_NODE_TYPE = 9; | 20591 | var DOC_NODE_TYPE = 9; |
21034 | 20592 | ||
@@ -21051,7 +20609,7 @@ | |||
21051 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 20609 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
21052 | 20610 | ||
21053 | /***/ }, | 20611 | /***/ }, |
21054 | /* 166 */ | 20612 | /* 170 */ |
21055 | /***/ function(module, exports) { | 20613 | /***/ function(module, exports) { |
21056 | 20614 | ||
21057 | /** | 20615 | /** |
@@ -21062,19 +20620,19 @@ | |||
21062 | * LICENSE file in the root directory of this source tree. An additional grant | 20620 | * LICENSE file in the root directory of this source tree. An additional grant |
21063 | * of patent rights can be found in the PATENTS file in the same directory. | 20621 | * of patent rights can be found in the PATENTS file in the same directory. |
21064 | * | 20622 | * |
21065 | * @providesModule ReactDOMFeatureFlags | ||
21066 | */ | 20623 | */ |
21067 | 20624 | ||
21068 | 'use strict'; | 20625 | 'use strict'; |
21069 | 20626 | ||
21070 | var ReactDOMFeatureFlags = { | 20627 | var ReactDOMFeatureFlags = { |
21071 | useCreateElement: true | 20628 | useCreateElement: true, |
20629 | useFiber: false | ||
21072 | }; | 20630 | }; |
21073 | 20631 | ||
21074 | module.exports = ReactDOMFeatureFlags; | 20632 | module.exports = ReactDOMFeatureFlags; |
21075 | 20633 | ||
21076 | /***/ }, | 20634 | /***/ }, |
21077 | /* 167 */ | 20635 | /* 171 */ |
21078 | /***/ function(module, exports, __webpack_require__) { | 20636 | /***/ function(module, exports, __webpack_require__) { |
21079 | 20637 | ||
21080 | /** | 20638 | /** |
@@ -21085,12 +20643,11 @@ | |||
21085 | * LICENSE file in the root directory of this source tree. An additional grant | 20643 | * LICENSE file in the root directory of this source tree. An additional grant |
21086 | * of patent rights can be found in the PATENTS file in the same directory. | 20644 | * of patent rights can be found in the PATENTS file in the same directory. |
21087 | * | 20645 | * |
21088 | * @providesModule ReactMarkupChecksum | ||
21089 | */ | 20646 | */ |
21090 | 20647 | ||
21091 | 'use strict'; | 20648 | 'use strict'; |
21092 | 20649 | ||
21093 | var adler32 = __webpack_require__(168); | 20650 | var adler32 = __webpack_require__(172); |
21094 | 20651 | ||
21095 | var TAG_END = /\/?>/; | 20652 | var TAG_END = /\/?>/; |
21096 | var COMMENT_START = /^<\!\-\-/; | 20653 | var COMMENT_START = /^<\!\-\-/; |
@@ -21129,7 +20686,7 @@ | |||
21129 | module.exports = ReactMarkupChecksum; | 20686 | module.exports = ReactMarkupChecksum; |
21130 | 20687 | ||
21131 | /***/ }, | 20688 | /***/ }, |
21132 | /* 168 */ | 20689 | /* 172 */ |
21133 | /***/ function(module, exports) { | 20690 | /***/ function(module, exports) { |
21134 | 20691 | ||
21135 | /** | 20692 | /** |
@@ -21140,7 +20697,6 @@ | |||
21140 | * LICENSE file in the root directory of this source tree. An additional grant | 20697 | * LICENSE file in the root directory of this source tree. An additional grant |
21141 | * of patent rights can be found in the PATENTS file in the same directory. | 20698 | * of patent rights can be found in the PATENTS file in the same directory. |
21142 | * | 20699 | * |
21143 | * @providesModule adler32 | ||
21144 | * | 20700 | * |
21145 | */ | 20701 | */ |
21146 | 20702 | ||
@@ -21178,7 +20734,9 @@ | |||
21178 | module.exports = adler32; | 20734 | module.exports = adler32; |
21179 | 20735 | ||
21180 | /***/ }, | 20736 | /***/ }, |
21181 | /* 169 */ | 20737 | /* 173 */ |
20738 | 32, | ||
20739 | /* 174 */ | ||
21182 | /***/ function(module, exports, __webpack_require__) { | 20740 | /***/ function(module, exports, __webpack_require__) { |
21183 | 20741 | ||
21184 | /* WEBPACK VAR INJECTION */(function(process) {/** | 20742 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -21189,18 +20747,17 @@ | |||
21189 | * LICENSE file in the root directory of this source tree. An additional grant | 20747 | * LICENSE file in the root directory of this source tree. An additional grant |
21190 | * of patent rights can be found in the PATENTS file in the same directory. | 20748 | * of patent rights can be found in the PATENTS file in the same directory. |
21191 | * | 20749 | * |
21192 | * @providesModule findDOMNode | ||
21193 | */ | 20750 | */ |
21194 | 20751 | ||
21195 | 'use strict'; | 20752 | 'use strict'; |
21196 | 20753 | ||
21197 | var _prodInvariant = __webpack_require__(9); | 20754 | var _prodInvariant = __webpack_require__(37); |
21198 | 20755 | ||
21199 | var ReactCurrentOwner = __webpack_require__(12); | 20756 | var ReactCurrentOwner = __webpack_require__(12); |
21200 | var ReactDOMComponentTree = __webpack_require__(38); | 20757 | var ReactDOMComponentTree = __webpack_require__(36); |
21201 | var ReactInstanceMap = __webpack_require__(121); | 20758 | var ReactInstanceMap = __webpack_require__(118); |
21202 | 20759 | ||
21203 | var getHostComponentFromComposite = __webpack_require__(170); | 20760 | var getHostComponentFromComposite = __webpack_require__(175); |
21204 | var invariant = __webpack_require__(10); | 20761 | var invariant = __webpack_require__(10); |
21205 | var warning = __webpack_require__(13); | 20762 | var warning = __webpack_require__(13); |
21206 | 20763 | ||
@@ -21244,7 +20801,7 @@ | |||
21244 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 20801 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
21245 | 20802 | ||
21246 | /***/ }, | 20803 | /***/ }, |
21247 | /* 170 */ | 20804 | /* 175 */ |
21248 | /***/ function(module, exports, __webpack_require__) { | 20805 | /***/ function(module, exports, __webpack_require__) { |
21249 | 20806 | ||
21250 | /** | 20807 | /** |
@@ -21255,12 +20812,11 @@ | |||
21255 | * LICENSE file in the root directory of this source tree. An additional grant | 20812 | * LICENSE file in the root directory of this source tree. An additional grant |
21256 | * of patent rights can be found in the PATENTS file in the same directory. | 20813 | * of patent rights can be found in the PATENTS file in the same directory. |
21257 | * | 20814 | * |
21258 | * @providesModule getHostComponentFromComposite | ||
21259 | */ | 20815 | */ |
21260 | 20816 | ||
21261 | 'use strict'; | 20817 | 'use strict'; |
21262 | 20818 | ||
21263 | var ReactNodeTypes = __webpack_require__(125); | 20819 | var ReactNodeTypes = __webpack_require__(122); |
21264 | 20820 | ||
21265 | function getHostComponentFromComposite(inst) { | 20821 | function getHostComponentFromComposite(inst) { |
21266 | var type; | 20822 | var type; |
@@ -21279,7 +20835,7 @@ | |||
21279 | module.exports = getHostComponentFromComposite; | 20835 | module.exports = getHostComponentFromComposite; |
21280 | 20836 | ||
21281 | /***/ }, | 20837 | /***/ }, |
21282 | /* 171 */ | 20838 | /* 176 */ |
21283 | /***/ function(module, exports, __webpack_require__) { | 20839 | /***/ function(module, exports, __webpack_require__) { |
21284 | 20840 | ||
21285 | /** | 20841 | /** |
@@ -21290,17 +20846,16 @@ | |||
21290 | * LICENSE file in the root directory of this source tree. An additional grant | 20846 | * LICENSE file in the root directory of this source tree. An additional grant |
21291 | * of patent rights can be found in the PATENTS file in the same directory. | 20847 | * of patent rights can be found in the PATENTS file in the same directory. |
21292 | * | 20848 | * |
21293 | * @providesModule renderSubtreeIntoContainer | 20849 | */ |
21294 | */ | ||
21295 | 20850 | ||
21296 | 'use strict'; | 20851 | 'use strict'; |
21297 | 20852 | ||
21298 | var ReactMount = __webpack_require__(164); | 20853 | var ReactMount = __webpack_require__(168); |
21299 | 20854 | ||
21300 | module.exports = ReactMount.renderSubtreeIntoContainer; | 20855 | module.exports = ReactMount.renderSubtreeIntoContainer; |
21301 | 20856 | ||
21302 | /***/ }, | 20857 | /***/ }, |
21303 | /* 172 */ | 20858 | /* 177 */ |
21304 | /***/ function(module, exports, __webpack_require__) { | 20859 | /***/ function(module, exports, __webpack_require__) { |
21305 | 20860 | ||
21306 | /* WEBPACK VAR INJECTION */(function(process) {/** | 20861 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -21311,14 +20866,13 @@ | |||
21311 | * LICENSE file in the root directory of this source tree. An additional grant | 20866 | * LICENSE file in the root directory of this source tree. An additional grant |
21312 | * of patent rights can be found in the PATENTS file in the same directory. | 20867 | * of patent rights can be found in the PATENTS file in the same directory. |
21313 | * | 20868 | * |
21314 | * @providesModule ReactDOMUnknownPropertyHook | ||
21315 | */ | 20869 | */ |
21316 | 20870 | ||
21317 | 'use strict'; | 20871 | 'use strict'; |
21318 | 20872 | ||
21319 | var DOMProperty = __webpack_require__(39); | 20873 | var DOMProperty = __webpack_require__(38); |
21320 | var EventPluginRegistry = __webpack_require__(46); | 20874 | var EventPluginRegistry = __webpack_require__(45); |
21321 | var ReactComponentTreeHook = __webpack_require__(30); | 20875 | var ReactComponentTreeHook = __webpack_require__(28); |
21322 | 20876 | ||
21323 | var warning = __webpack_require__(13); | 20877 | var warning = __webpack_require__(13); |
21324 | 20878 | ||
@@ -21418,7 +20972,7 @@ | |||
21418 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 20972 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
21419 | 20973 | ||
21420 | /***/ }, | 20974 | /***/ }, |
21421 | /* 173 */ | 20975 | /* 178 */ |
21422 | /***/ function(module, exports, __webpack_require__) { | 20976 | /***/ function(module, exports, __webpack_require__) { |
21423 | 20977 | ||
21424 | /* WEBPACK VAR INJECTION */(function(process) {/** | 20978 | /* WEBPACK VAR INJECTION */(function(process) {/** |
@@ -21429,12 +20983,11 @@ | |||
21429 | * LICENSE file in the root directory of this source tree. An additional grant | 20983 | * LICENSE file in the root directory of this source tree. An additional grant |
21430 | * of patent rights can be found in the PATENTS file in the same directory. | 20984 | * of patent rights can be found in the PATENTS file in the same directory. |
21431 | * | 20985 | * |
21432 | * @providesModule ReactDOMNullInputValuePropHook | ||
21433 | */ | 20986 | */ |
21434 | 20987 | ||
21435 | 'use strict'; | 20988 | 'use strict'; |
21436 | 20989 | ||
21437 | var ReactComponentTreeHook = __webpack_require__(30); | 20990 | var ReactComponentTreeHook = __webpack_require__(28); |
21438 | 20991 | ||
21439 | var warning = __webpack_require__(13); | 20992 | var warning = __webpack_require__(13); |
21440 | 20993 | ||
@@ -21467,11 +21020,109 @@ | |||
21467 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | 21020 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) |
21468 | 21021 | ||
21469 | /***/ }, | 21022 | /***/ }, |
21470 | /* 174 */ | 21023 | /* 179 */ |
21024 | /***/ function(module, exports, __webpack_require__) { | ||
21025 | |||
21026 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
21027 | * Copyright 2013-present, Facebook, Inc. | ||
21028 | * All rights reserved. | ||
21029 | * | ||
21030 | * This source code is licensed under the BSD-style license found in the | ||
21031 | * LICENSE file in the root directory of this source tree. An additional grant | ||
21032 | * of patent rights can be found in the PATENTS file in the same directory. | ||
21033 | * | ||
21034 | */ | ||
21035 | |||
21036 | 'use strict'; | ||
21037 | |||
21038 | var DOMProperty = __webpack_require__(38); | ||
21039 | var ReactComponentTreeHook = __webpack_require__(28); | ||
21040 | |||
21041 | var warning = __webpack_require__(13); | ||
21042 | |||
21043 | var warnedProperties = {}; | ||
21044 | var rARIA = new RegExp('^(aria)-[' + DOMProperty.ATTRIBUTE_NAME_CHAR + ']*$'); | ||
21045 | |||
21046 | function validateProperty(tagName, name, debugID) { | ||
21047 | if (warnedProperties.hasOwnProperty(name) && warnedProperties[name]) { | ||
21048 | return true; | ||
21049 | } | ||
21050 | |||
21051 | if (rARIA.test(name)) { | ||
21052 | var lowerCasedName = name.toLowerCase(); | ||
21053 | var standardName = DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null; | ||
21054 | |||
21055 | // If this is an aria-* attribute, but is not listed in the known DOM | ||
21056 | // DOM properties, then it is an invalid aria-* attribute. | ||
21057 | if (standardName == null) { | ||
21058 | warnedProperties[name] = true; | ||
21059 | return false; | ||
21060 | } | ||
21061 | // aria-* attributes should be lowercase; suggest the lowercase version. | ||
21062 | if (name !== standardName) { | ||
21063 | process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown ARIA attribute %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; | ||
21064 | warnedProperties[name] = true; | ||
21065 | return true; | ||
21066 | } | ||
21067 | } | ||
21068 | |||
21069 | return true; | ||
21070 | } | ||
21071 | |||
21072 | function warnInvalidARIAProps(debugID, element) { | ||
21073 | var invalidProps = []; | ||
21074 | |||
21075 | for (var key in element.props) { | ||
21076 | var isValid = validateProperty(element.type, key, debugID); | ||
21077 | if (!isValid) { | ||
21078 | invalidProps.push(key); | ||
21079 | } | ||
21080 | } | ||
21081 | |||
21082 | var unknownPropString = invalidProps.map(function (prop) { | ||
21083 | return '`' + prop + '`'; | ||
21084 | }).join(', '); | ||
21085 | |||
21086 | if (invalidProps.length === 1) { | ||
21087 | process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; | ||
21088 | } else if (invalidProps.length > 1) { | ||
21089 | process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0; | ||
21090 | } | ||
21091 | } | ||
21092 | |||
21093 | function handleElement(debugID, element) { | ||
21094 | if (element == null || typeof element.type !== 'string') { | ||
21095 | return; | ||
21096 | } | ||
21097 | if (element.type.indexOf('-') >= 0 || element.props.is) { | ||
21098 | return; | ||
21099 | } | ||
21100 | |||
21101 | warnInvalidARIAProps(debugID, element); | ||
21102 | } | ||
21103 | |||
21104 | var ReactDOMInvalidARIAHook = { | ||
21105 | onBeforeMountComponent: function (debugID, element) { | ||
21106 | if (process.env.NODE_ENV !== 'production') { | ||
21107 | handleElement(debugID, element); | ||
21108 | } | ||
21109 | }, | ||
21110 | onBeforeUpdateComponent: function (debugID, element) { | ||
21111 | if (process.env.NODE_ENV !== 'production') { | ||
21112 | handleElement(debugID, element); | ||
21113 | } | ||
21114 | } | ||
21115 | }; | ||
21116 | |||
21117 | module.exports = ReactDOMInvalidARIAHook; | ||
21118 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
21119 | |||
21120 | /***/ }, | ||
21121 | /* 180 */ | ||
21471 | /***/ function(module, exports) { | 21122 | /***/ function(module, exports) { |
21472 | 21123 | ||
21473 | //! moment.js | 21124 | //! moment.js |
21474 | //! version : 2.16.0 | 21125 | //! version : 2.17.1 |
21475 | //! authors : Tim Wood, Iskren Chernev, Moment.js contributors | 21126 | //! authors : Tim Wood, Iskren Chernev, Moment.js contributors |
21476 | //! license : MIT | 21127 | //! license : MIT |
21477 | //! momentjs.com | 21128 | //! momentjs.com |
@@ -21514,7 +21165,7 @@ | |||
21514 | } | 21165 | } |
21515 | 21166 | ||
21516 | function isNumber(input) { | 21167 | function isNumber(input) { |
21517 | return typeof value === 'number' || Object.prototype.toString.call(input) === '[object Number]'; | 21168 | return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]'; |
21518 | } | 21169 | } |
21519 | 21170 | ||
21520 | function isDate(input) { | 21171 | function isDate(input) { |
@@ -21706,6 +21357,9 @@ | |||
21706 | function Moment(config) { | 21357 | function Moment(config) { |
21707 | copyConfig(this, config); | 21358 | copyConfig(this, config); |
21708 | this._d = new Date(config._d != null ? config._d.getTime() : NaN); | 21359 | this._d = new Date(config._d != null ? config._d.getTime() : NaN); |
21360 | if (!this.isValid()) { | ||
21361 | this._d = new Date(NaN); | ||
21362 | } | ||
21709 | // Prevent infinite loop in case updateOffset creates new moment | 21363 | // Prevent infinite loop in case updateOffset creates new moment |
21710 | // objects. | 21364 | // objects. |
21711 | if (updateInProgress === false) { | 21365 | if (updateInProgress === false) { |
@@ -25733,7 +25387,7 @@ | |||
25733 | // Side effect imports | 25387 | // Side effect imports |
25734 | 25388 | ||
25735 | 25389 | ||
25736 | hooks.version = '2.16.0'; | 25390 | hooks.version = '2.17.1'; |
25737 | 25391 | ||
25738 | setHookCallback(createLocal); | 25392 | setHookCallback(createLocal); |
25739 | 25393 | ||
@@ -25771,7 +25425,7 @@ | |||
25771 | 25425 | ||
25772 | 25426 | ||
25773 | /***/ }, | 25427 | /***/ }, |
25774 | /* 175 */ | 25428 | /* 181 */ |
25775 | /***/ function(module, exports, __webpack_require__) { | 25429 | /***/ function(module, exports, __webpack_require__) { |
25776 | 25430 | ||
25777 | 'use strict'; | 25431 | 'use strict'; |
@@ -25780,7 +25434,7 @@ | |||
25780 | value: true | 25434 | value: true |
25781 | }); | 25435 | }); |
25782 | 25436 | ||
25783 | var _src = __webpack_require__(176); | 25437 | var _src = __webpack_require__(182); |
25784 | 25438 | ||
25785 | var _src2 = _interopRequireDefault(_src); | 25439 | var _src2 = _interopRequireDefault(_src); |
25786 | 25440 | ||
@@ -25790,7 +25444,7 @@ | |||
25790 | module.exports = exports['default']; | 25444 | module.exports = exports['default']; |
25791 | 25445 | ||
25792 | /***/ }, | 25446 | /***/ }, |
25793 | /* 176 */ | 25447 | /* 182 */ |
25794 | /***/ function(module, exports, __webpack_require__) { | 25448 | /***/ function(module, exports, __webpack_require__) { |
25795 | 25449 | ||
25796 | 'use strict'; | 25450 | 'use strict'; |
@@ -25799,7 +25453,7 @@ | |||
25799 | value: true | 25453 | value: true |
25800 | }); | 25454 | }); |
25801 | 25455 | ||
25802 | var _TimePicker = __webpack_require__(177); | 25456 | var _TimePicker = __webpack_require__(183); |
25803 | 25457 | ||
25804 | var _TimePicker2 = _interopRequireDefault(_TimePicker); | 25458 | var _TimePicker2 = _interopRequireDefault(_TimePicker); |
25805 | 25459 | ||
@@ -25809,7 +25463,7 @@ | |||
25809 | module.exports = exports['default']; | 25463 | module.exports = exports['default']; |
25810 | 25464 | ||
25811 | /***/ }, | 25465 | /***/ }, |
25812 | /* 177 */ | 25466 | /* 183 */ |
25813 | /***/ function(module, exports, __webpack_require__) { | 25467 | /***/ function(module, exports, __webpack_require__) { |
25814 | 25468 | ||
25815 | 'use strict'; | 25469 | 'use strict'; |
@@ -25822,19 +25476,19 @@ | |||
25822 | 25476 | ||
25823 | var _react2 = _interopRequireDefault(_react); | 25477 | var _react2 = _interopRequireDefault(_react); |
25824 | 25478 | ||
25825 | var _rcTrigger = __webpack_require__(178); | 25479 | var _rcTrigger = __webpack_require__(184); |
25826 | 25480 | ||
25827 | var _rcTrigger2 = _interopRequireDefault(_rcTrigger); | 25481 | var _rcTrigger2 = _interopRequireDefault(_rcTrigger); |
25828 | 25482 | ||
25829 | var _Panel = __webpack_require__(250); | 25483 | var _Panel = __webpack_require__(256); |
25830 | 25484 | ||
25831 | var _Panel2 = _interopRequireDefault(_Panel); | 25485 | var _Panel2 = _interopRequireDefault(_Panel); |
25832 | 25486 | ||
25833 | var _placements = __webpack_require__(259); | 25487 | var _placements = __webpack_require__(265); |
25834 | 25488 | ||
25835 | var _placements2 = _interopRequireDefault(_placements); | 25489 | var _placements2 = _interopRequireDefault(_placements); |
25836 | 25490 | ||
25837 | var _moment = __webpack_require__(174); | 25491 | var _moment = __webpack_require__(180); |
25838 | 25492 | ||
25839 | var _moment2 = _interopRequireDefault(_moment); | 25493 | var _moment2 = _interopRequireDefault(_moment); |
25840 | 25494 | ||
@@ -25877,7 +25531,9 @@ | |||
25877 | onChange: _react.PropTypes.func, | 25531 | onChange: _react.PropTypes.func, |
25878 | onOpen: _react.PropTypes.func, | 25532 | onOpen: _react.PropTypes.func, |
25879 | onClose: _react.PropTypes.func, | 25533 | onClose: _react.PropTypes.func, |
25880 | addon: _react.PropTypes.func | 25534 | addon: _react.PropTypes.func, |
25535 | name: _react.PropTypes.string, | ||
25536 | autoComplete: _react.PropTypes.string | ||
25881 | }, | 25537 | }, |
25882 | 25538 | ||
25883 | getDefaultProps: function getDefaultProps() { | 25539 | getDefaultProps: function getDefaultProps() { |
@@ -25905,6 +25561,7 @@ | |||
25905 | }; | 25561 | }; |
25906 | }, | 25562 | }, |
25907 | getInitialState: function getInitialState() { | 25563 | getInitialState: function getInitialState() { |
25564 | this.saveInputRef = refFn.bind(this, 'picker'); | ||
25908 | this.savePanelRef = refFn.bind(this, 'panelInstance'); | 25565 | this.savePanelRef = refFn.bind(this, 'panelInstance'); |
25909 | var _props = this.props, | 25566 | var _props = this.props, |
25910 | defaultOpen = _props.defaultOpen, | 25567 | defaultOpen = _props.defaultOpen, |
@@ -25944,7 +25601,7 @@ | |||
25944 | }, | 25601 | }, |
25945 | onEsc: function onEsc() { | 25602 | onEsc: function onEsc() { |
25946 | this.setOpen(false); | 25603 | this.setOpen(false); |
25947 | this.refs.picker.focus(); | 25604 | this.focus(); |
25948 | }, | 25605 | }, |
25949 | onKeyDown: function onKeyDown(e) { | 25606 | onKeyDown: function onKeyDown(e) { |
25950 | if (e.keyCode === 40) { | 25607 | if (e.keyCode === 40) { |
@@ -26011,25 +25668,25 @@ | |||
26011 | addon: addon | 25668 | addon: addon |
26012 | }); | 25669 | }); |
26013 | }, | 25670 | }, |
26014 | setOpen: function setOpen(open, callback) { | 25671 | setOpen: function setOpen(open) { |
26015 | var _props4 = this.props, | 25672 | var _props4 = this.props, |
26016 | onOpen = _props4.onOpen, | 25673 | onOpen = _props4.onOpen, |
26017 | onClose = _props4.onClose; | 25674 | onClose = _props4.onClose; |
26018 | 25675 | ||
26019 | if (this.state.open !== open) { | 25676 | if (this.state.open !== open) { |
26020 | this.setState({ | 25677 | if (!('open' in this.props)) { |
26021 | open: open | 25678 | this.setState({ open: open }); |
26022 | }, callback); | 25679 | } |
26023 | var event = { | ||
26024 | open: open | ||
26025 | }; | ||
26026 | if (open) { | 25680 | if (open) { |
26027 | onOpen(event); | 25681 | onOpen({ open: open }); |
26028 | } else { | 25682 | } else { |
26029 | onClose(event); | 25683 | onClose({ open: open }); |
26030 | } | 25684 | } |
26031 | } | 25685 | } |
26032 | }, | 25686 | }, |
25687 | focus: function focus() { | ||
25688 | this.picker.focus(); | ||
25689 | }, | ||
26033 | render: function render() { | 25690 | render: function render() { |
26034 | var _props5 = this.props, | 25691 | var _props5 = this.props, |
26035 | prefixCls = _props5.prefixCls, | 25692 | prefixCls = _props5.prefixCls, |
@@ -26041,14 +25698,17 @@ | |||
26041 | style = _props5.style, | 25698 | style = _props5.style, |
26042 | className = _props5.className, | 25699 | className = _props5.className, |
26043 | showHour = _props5.showHour, | 25700 | showHour = _props5.showHour, |
25701 | showMinute = _props5.showMinute, | ||
26044 | showSecond = _props5.showSecond, | 25702 | showSecond = _props5.showSecond, |
26045 | getPopupContainer = _props5.getPopupContainer; | 25703 | getPopupContainer = _props5.getPopupContainer, |
25704 | name = _props5.name, | ||
25705 | autoComplete = _props5.autoComplete; | ||
26046 | var _state = this.state, | 25706 | var _state = this.state, |
26047 | open = _state.open, | 25707 | open = _state.open, |
26048 | value = _state.value; | 25708 | value = _state.value; |
26049 | 25709 | ||
26050 | var popupClassName = void 0; | 25710 | var popupClassName = void 0; |
26051 | if (!showHour || !showSecond) { | 25711 | if (!showHour || !showMinute || !showSecond) { |
26052 | popupClassName = prefixCls + '-panel-narrow'; | 25712 | popupClassName = prefixCls + '-panel-narrow'; |
26053 | } | 25713 | } |
26054 | return _react2.default.createElement( | 25714 | return _react2.default.createElement( |
@@ -26072,10 +25732,14 @@ | |||
26072 | { className: prefixCls + ' ' + className, style: style }, | 25732 | { className: prefixCls + ' ' + className, style: style }, |
26073 | _react2.default.createElement('input', { | 25733 | _react2.default.createElement('input', { |
26074 | className: prefixCls + '-input', | 25734 | className: prefixCls + '-input', |
26075 | ref: 'picker', type: 'text', placeholder: placeholder, | 25735 | ref: this.saveInputRef, |
25736 | type: 'text', | ||
25737 | placeholder: placeholder, | ||
25738 | name: name, | ||
26076 | readOnly: true, | 25739 | readOnly: true, |
26077 | onKeyDown: this.onKeyDown, | 25740 | onKeyDown: this.onKeyDown, |
26078 | disabled: disabled, value: value && value.format(this.getFormat()) || '' | 25741 | disabled: disabled, value: value && value.format(this.getFormat()) || '', |
25742 | autoComplete: autoComplete | ||
26079 | }), | 25743 | }), |
26080 | _react2.default.createElement('span', { className: prefixCls + '-icon' }) | 25744 | _react2.default.createElement('span', { className: prefixCls + '-icon' }) |
26081 | ) | 25745 | ) |
@@ -26087,15 +25751,15 @@ | |||
26087 | module.exports = exports['default']; | 25751 | module.exports = exports['default']; |
26088 | 25752 | ||
26089 | /***/ }, | 25753 | /***/ }, |
26090 | /* 178 */ | 25754 | /* 184 */ |
26091 | /***/ function(module, exports, __webpack_require__) { | 25755 | /***/ function(module, exports, __webpack_require__) { |
26092 | 25756 | ||
26093 | 'use strict'; | 25757 | 'use strict'; |
26094 | 25758 | ||
26095 | module.exports = __webpack_require__(179); | 25759 | module.exports = __webpack_require__(185); |
26096 | 25760 | ||
26097 | /***/ }, | 25761 | /***/ }, |
26098 | /* 179 */ | 25762 | /* 185 */ |
26099 | /***/ function(module, exports, __webpack_require__) { | 25763 | /***/ function(module, exports, __webpack_require__) { |
26100 | 25764 | ||
26101 | 'use strict'; | 25765 | 'use strict'; |
@@ -26104,7 +25768,7 @@ | |||
26104 | value: true | 25768 | value: true |
26105 | }); | 25769 | }); |
26106 | 25770 | ||
26107 | var _extends2 = __webpack_require__(180); | 25771 | var _extends2 = __webpack_require__(186); |
26108 | 25772 | ||
26109 | var _extends3 = _interopRequireDefault(_extends2); | 25773 | var _extends3 = _interopRequireDefault(_extends2); |
26110 | 25774 | ||
@@ -26112,25 +25776,25 @@ | |||
26112 | 25776 | ||
26113 | var _react2 = _interopRequireDefault(_react); | 25777 | var _react2 = _interopRequireDefault(_react); |
26114 | 25778 | ||
26115 | var _reactDom = __webpack_require__(36); | 25779 | var _reactDom = __webpack_require__(34); |
26116 | 25780 | ||
26117 | var _reactDom2 = _interopRequireDefault(_reactDom); | 25781 | var _reactDom2 = _interopRequireDefault(_reactDom); |
26118 | 25782 | ||
26119 | var _contains = __webpack_require__(218); | 25783 | var _contains = __webpack_require__(224); |
26120 | 25784 | ||
26121 | var _contains2 = _interopRequireDefault(_contains); | 25785 | var _contains2 = _interopRequireDefault(_contains); |
26122 | 25786 | ||
26123 | var _addEventListener = __webpack_require__(219); | 25787 | var _addEventListener = __webpack_require__(225); |
26124 | 25788 | ||
26125 | var _addEventListener2 = _interopRequireDefault(_addEventListener); | 25789 | var _addEventListener2 = _interopRequireDefault(_addEventListener); |
26126 | 25790 | ||
26127 | var _Popup = __webpack_require__(223); | 25791 | var _Popup = __webpack_require__(229); |
26128 | 25792 | ||
26129 | var _Popup2 = _interopRequireDefault(_Popup); | 25793 | var _Popup2 = _interopRequireDefault(_Popup); |
26130 | 25794 | ||
26131 | var _utils = __webpack_require__(248); | 25795 | var _utils = __webpack_require__(254); |
26132 | 25796 | ||
26133 | var _getContainerRenderMixin = __webpack_require__(249); | 25797 | var _getContainerRenderMixin = __webpack_require__(255); |
26134 | 25798 | ||
26135 | var _getContainerRenderMixin2 = _interopRequireDefault(_getContainerRenderMixin); | 25799 | var _getContainerRenderMixin2 = _interopRequireDefault(_getContainerRenderMixin); |
26136 | 25800 | ||
@@ -26190,41 +25854,6 @@ | |||
26190 | var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body; | 25854 | var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body; |
26191 | mountNode.appendChild(popupContainer); | 25855 | mountNode.appendChild(popupContainer); |
26192 | return popupContainer; | 25856 | return popupContainer; |
26193 | }, | ||
26194 | getComponent: function getComponent(instance) { | ||
26195 | var props = instance.props; | ||
26196 | var state = instance.state; | ||
26197 | |||
26198 | var mouseProps = {}; | ||
26199 | if (instance.isMouseEnterToShow()) { | ||
26200 | mouseProps.onMouseEnter = instance.onPopupMouseEnter; | ||
26201 | } | ||
26202 | if (instance.isMouseLeaveToHide()) { | ||
26203 | mouseProps.onMouseLeave = instance.onPopupMouseLeave; | ||
26204 | } | ||
26205 | return _react2["default"].createElement( | ||
26206 | _Popup2["default"], | ||
26207 | (0, _extends3["default"])({ | ||
26208 | prefixCls: props.prefixCls, | ||
26209 | destroyPopupOnHide: props.destroyPopupOnHide, | ||
26210 | visible: state.popupVisible, | ||
26211 | className: props.popupClassName, | ||
26212 | action: props.action, | ||
26213 | align: instance.getPopupAlign(), | ||
26214 | onAlign: props.onPopupAlign, | ||
26215 | animation: props.popupAnimation, | ||
26216 | getClassNameFromAlign: instance.getPopupClassNameFromAlign | ||
26217 | }, mouseProps, { | ||
26218 | getRootDomNode: instance.getRootDomNode, | ||
26219 | style: props.popupStyle, | ||
26220 | mask: props.mask, | ||
26221 | zIndex: props.zIndex, | ||
26222 | transitionName: props.popupTransitionName, | ||
26223 | maskAnimation: props.maskAnimation, | ||
26224 | maskTransitionName: props.maskTransitionName | ||
26225 | }), | ||
26226 | typeof props.popup === 'function' ? props.popup() : props.popup | ||
26227 | ); | ||
26228 | } | 25857 | } |
26229 | })], | 25858 | })], |
26230 | 25859 | ||
@@ -26411,9 +26040,9 @@ | |||
26411 | getPopupClassNameFromAlign: function getPopupClassNameFromAlign(align) { | 26040 | getPopupClassNameFromAlign: function getPopupClassNameFromAlign(align) { |
26412 | var className = []; | 26041 | var className = []; |
26413 | var props = this.props; | 26042 | var props = this.props; |
26414 | var popupPlacement = props.popupPlacement; | 26043 | var popupPlacement = props.popupPlacement, |
26415 | var builtinPlacements = props.builtinPlacements; | 26044 | builtinPlacements = props.builtinPlacements, |
26416 | var prefixCls = props.prefixCls; | 26045 | prefixCls = props.prefixCls; |
26417 | 26046 | ||
26418 | if (popupPlacement && builtinPlacements) { | 26047 | if (popupPlacement && builtinPlacements) { |
26419 | className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, prefixCls, align)); | 26048 | className.push((0, _utils.getPopupClassNameFromAlign)(builtinPlacements, prefixCls, align)); |
@@ -26425,15 +26054,50 @@ | |||
26425 | }, | 26054 | }, |
26426 | getPopupAlign: function getPopupAlign() { | 26055 | getPopupAlign: function getPopupAlign() { |
26427 | var props = this.props; | 26056 | var props = this.props; |
26428 | var popupPlacement = props.popupPlacement; | 26057 | var popupPlacement = props.popupPlacement, |
26429 | var popupAlign = props.popupAlign; | 26058 | popupAlign = props.popupAlign, |
26430 | var builtinPlacements = props.builtinPlacements; | 26059 | builtinPlacements = props.builtinPlacements; |
26431 | 26060 | ||
26432 | if (popupPlacement && builtinPlacements) { | 26061 | if (popupPlacement && builtinPlacements) { |
26433 | return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign); | 26062 | return (0, _utils.getAlignFromPlacement)(builtinPlacements, popupPlacement, popupAlign); |
26434 | } | 26063 | } |
26435 | return popupAlign; | 26064 | return popupAlign; |
26436 | }, | 26065 | }, |
26066 | getComponent: function getComponent() { | ||
26067 | var props = this.props, | ||
26068 | state = this.state; | ||
26069 | |||
26070 | var mouseProps = {}; | ||
26071 | if (this.isMouseEnterToShow()) { | ||
26072 | mouseProps.onMouseEnter = this.onPopupMouseEnter; | ||
26073 | } | ||
26074 | if (this.isMouseLeaveToHide()) { | ||
26075 | mouseProps.onMouseLeave = this.onPopupMouseLeave; | ||
26076 | } | ||
26077 | return _react2["default"].createElement( | ||
26078 | _Popup2["default"], | ||
26079 | (0, _extends3["default"])({ | ||
26080 | prefixCls: props.prefixCls, | ||
26081 | destroyPopupOnHide: props.destroyPopupOnHide, | ||
26082 | visible: state.popupVisible, | ||
26083 | className: props.popupClassName, | ||
26084 | action: props.action, | ||
26085 | align: this.getPopupAlign(), | ||
26086 | onAlign: props.onPopupAlign, | ||
26087 | animation: props.popupAnimation, | ||
26088 | getClassNameFromAlign: this.getPopupClassNameFromAlign | ||
26089 | }, mouseProps, { | ||
26090 | getRootDomNode: this.getRootDomNode, | ||
26091 | style: props.popupStyle, | ||
26092 | mask: props.mask, | ||
26093 | zIndex: props.zIndex, | ||
26094 | transitionName: props.popupTransitionName, | ||
26095 | maskAnimation: props.maskAnimation, | ||
26096 | maskTransitionName: props.maskTransitionName | ||
26097 | }), | ||
26098 | typeof props.popup === 'function' ? props.popup() : props.popup | ||
26099 | ); | ||
26100 | }, | ||
26437 | setPopupVisible: function setPopupVisible(popupVisible) { | 26101 | setPopupVisible: function setPopupVisible(popupVisible) { |
26438 | this.clearDelayTimer(); | 26102 | this.clearDelayTimer(); |
26439 | if (this.state.popupVisible !== popupVisible) { | 26103 | if (this.state.popupVisible !== popupVisible) { |
@@ -26474,44 +26138,44 @@ | |||
26474 | return childPros[event] || props[event]; | 26138 | return childPros[event] || props[event]; |
26475 | }, | 26139 | }, |
26476 | isClickToShow: function isClickToShow() { | 26140 | isClickToShow: function isClickToShow() { |
26477 | var _props = this.props; | 26141 | var _props = this.props, |
26478 | var action = _props.action; | 26142 | action = _props.action, |
26479 | var showAction = _props.showAction; | 26143 | showAction = _props.showAction; |
26480 | 26144 | ||
26481 | return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; | 26145 | return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1; |
26482 | }, | 26146 | }, |
26483 | isClickToHide: function isClickToHide() { | 26147 | isClickToHide: function isClickToHide() { |
26484 | var _props2 = this.props; | 26148 | var _props2 = this.props, |
26485 | var action = _props2.action; | 26149 | action = _props2.action, |
26486 | var hideAction = _props2.hideAction; | 26150 | hideAction = _props2.hideAction; |
26487 | 26151 | ||
26488 | return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; | 26152 | return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1; |
26489 | }, | 26153 | }, |
26490 | isMouseEnterToShow: function isMouseEnterToShow() { | 26154 | isMouseEnterToShow: function isMouseEnterToShow() { |
26491 | var _props3 = this.props; | 26155 | var _props3 = this.props, |
26492 | var action = _props3.action; | 26156 | action = _props3.action, |
26493 | var showAction = _props3.showAction; | 26157 | showAction = _props3.showAction; |
26494 | 26158 | ||
26495 | return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; | 26159 | return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1; |
26496 | }, | 26160 | }, |
26497 | isMouseLeaveToHide: function isMouseLeaveToHide() { | 26161 | isMouseLeaveToHide: function isMouseLeaveToHide() { |
26498 | var _props4 = this.props; | 26162 | var _props4 = this.props, |
26499 | var action = _props4.action; | 26163 | action = _props4.action, |
26500 | var hideAction = _props4.hideAction; | 26164 | hideAction = _props4.hideAction; |
26501 | 26165 | ||
26502 | return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; | 26166 | return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1; |
26503 | }, | 26167 | }, |
26504 | isFocusToShow: function isFocusToShow() { | 26168 | isFocusToShow: function isFocusToShow() { |
26505 | var _props5 = this.props; | 26169 | var _props5 = this.props, |
26506 | var action = _props5.action; | 26170 | action = _props5.action, |
26507 | var showAction = _props5.showAction; | 26171 | showAction = _props5.showAction; |
26508 | 26172 | ||
26509 | return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; | 26173 | return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1; |
26510 | }, | 26174 | }, |
26511 | isBlurToHide: function isBlurToHide() { | 26175 | isBlurToHide: function isBlurToHide() { |
26512 | var _props6 = this.props; | 26176 | var _props6 = this.props, |
26513 | var action = _props6.action; | 26177 | action = _props6.action, |
26514 | var hideAction = _props6.hideAction; | 26178 | hideAction = _props6.hideAction; |
26515 | 26179 | ||
26516 | return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; | 26180 | return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1; |
26517 | }, | 26181 | }, |
@@ -26574,14 +26238,14 @@ | |||
26574 | module.exports = exports['default']; | 26238 | module.exports = exports['default']; |
26575 | 26239 | ||
26576 | /***/ }, | 26240 | /***/ }, |
26577 | /* 180 */ | 26241 | /* 186 */ |
26578 | /***/ function(module, exports, __webpack_require__) { | 26242 | /***/ function(module, exports, __webpack_require__) { |
26579 | 26243 | ||
26580 | "use strict"; | 26244 | "use strict"; |
26581 | 26245 | ||
26582 | exports.__esModule = true; | 26246 | exports.__esModule = true; |
26583 | 26247 | ||
26584 | var _assign = __webpack_require__(181); | 26248 | var _assign = __webpack_require__(187); |
26585 | 26249 | ||
26586 | var _assign2 = _interopRequireDefault(_assign); | 26250 | var _assign2 = _interopRequireDefault(_assign); |
26587 | 26251 | ||
@@ -26602,35 +26266,35 @@ | |||
26602 | }; | 26266 | }; |
26603 | 26267 | ||
26604 | /***/ }, | 26268 | /***/ }, |
26605 | /* 181 */ | 26269 | /* 187 */ |
26606 | /***/ function(module, exports, __webpack_require__) { | 26270 | /***/ function(module, exports, __webpack_require__) { |
26607 | 26271 | ||
26608 | module.exports = { "default": __webpack_require__(182), __esModule: true }; | 26272 | module.exports = { "default": __webpack_require__(188), __esModule: true }; |
26609 | 26273 | ||
26610 | /***/ }, | 26274 | /***/ }, |
26611 | /* 182 */ | 26275 | /* 188 */ |
26612 | /***/ function(module, exports, __webpack_require__) { | 26276 | /***/ function(module, exports, __webpack_require__) { |
26613 | 26277 | ||
26614 | __webpack_require__(183); | 26278 | __webpack_require__(189); |
26615 | module.exports = __webpack_require__(186).Object.assign; | 26279 | module.exports = __webpack_require__(192).Object.assign; |
26616 | 26280 | ||
26617 | /***/ }, | 26281 | /***/ }, |
26618 | /* 183 */ | 26282 | /* 189 */ |
26619 | /***/ function(module, exports, __webpack_require__) { | 26283 | /***/ function(module, exports, __webpack_require__) { |
26620 | 26284 | ||
26621 | // 19.1.3.1 Object.assign(target, source) | 26285 | // 19.1.3.1 Object.assign(target, source) |
26622 | var $export = __webpack_require__(184); | 26286 | var $export = __webpack_require__(190); |
26623 | 26287 | ||
26624 | $export($export.S + $export.F, 'Object', {assign: __webpack_require__(199)}); | 26288 | $export($export.S + $export.F, 'Object', {assign: __webpack_require__(205)}); |
26625 | 26289 | ||
26626 | /***/ }, | 26290 | /***/ }, |
26627 | /* 184 */ | 26291 | /* 190 */ |
26628 | /***/ function(module, exports, __webpack_require__) { | 26292 | /***/ function(module, exports, __webpack_require__) { |
26629 | 26293 | ||
26630 | var global = __webpack_require__(185) | 26294 | var global = __webpack_require__(191) |
26631 | , core = __webpack_require__(186) | 26295 | , core = __webpack_require__(192) |
26632 | , ctx = __webpack_require__(187) | 26296 | , ctx = __webpack_require__(193) |
26633 | , hide = __webpack_require__(189) | 26297 | , hide = __webpack_require__(195) |
26634 | , PROTOTYPE = 'prototype'; | 26298 | , PROTOTYPE = 'prototype'; |
26635 | 26299 | ||
26636 | var $export = function(type, name, source){ | 26300 | var $export = function(type, name, source){ |
@@ -26690,7 +26354,7 @@ | |||
26690 | module.exports = $export; | 26354 | module.exports = $export; |
26691 | 26355 | ||
26692 | /***/ }, | 26356 | /***/ }, |
26693 | /* 185 */ | 26357 | /* 191 */ |
26694 | /***/ function(module, exports) { | 26358 | /***/ function(module, exports) { |
26695 | 26359 | ||
26696 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | 26360 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 |
@@ -26699,18 +26363,18 @@ | |||
26699 | if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef | 26363 | if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef |
26700 | 26364 | ||
26701 | /***/ }, | 26365 | /***/ }, |
26702 | /* 186 */ | 26366 | /* 192 */ |
26703 | /***/ function(module, exports) { | 26367 | /***/ function(module, exports) { |
26704 | 26368 | ||
26705 | var core = module.exports = {version: '2.4.0'}; | 26369 | var core = module.exports = {version: '2.4.0'}; |
26706 | if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef | 26370 | if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef |
26707 | 26371 | ||
26708 | /***/ }, | 26372 | /***/ }, |
26709 | /* 187 */ | 26373 | /* 193 */ |
26710 | /***/ function(module, exports, __webpack_require__) { | 26374 | /***/ function(module, exports, __webpack_require__) { |
26711 | 26375 | ||
26712 | // optional / simple context binding | 26376 | // optional / simple context binding |
26713 | var aFunction = __webpack_require__(188); | 26377 | var aFunction = __webpack_require__(194); |
26714 | module.exports = function(fn, that, length){ | 26378 | module.exports = function(fn, that, length){ |
26715 | aFunction(fn); | 26379 | aFunction(fn); |
26716 | if(that === undefined)return fn; | 26380 | if(that === undefined)return fn; |
@@ -26731,7 +26395,7 @@ | |||
26731 | }; | 26395 | }; |
26732 | 26396 | ||
26733 | /***/ }, | 26397 | /***/ }, |
26734 | /* 188 */ | 26398 | /* 194 */ |
26735 | /***/ function(module, exports) { | 26399 | /***/ function(module, exports) { |
26736 | 26400 | ||
26737 | module.exports = function(it){ | 26401 | module.exports = function(it){ |
@@ -26740,12 +26404,12 @@ | |||
26740 | }; | 26404 | }; |
26741 | 26405 | ||
26742 | /***/ }, | 26406 | /***/ }, |
26743 | /* 189 */ | 26407 | /* 195 */ |
26744 | /***/ function(module, exports, __webpack_require__) { | 26408 | /***/ function(module, exports, __webpack_require__) { |
26745 | 26409 | ||
26746 | var dP = __webpack_require__(190) | 26410 | var dP = __webpack_require__(196) |
26747 | , createDesc = __webpack_require__(198); | 26411 | , createDesc = __webpack_require__(204); |
26748 | module.exports = __webpack_require__(194) ? function(object, key, value){ | 26412 | module.exports = __webpack_require__(200) ? function(object, key, value){ |
26749 | return dP.f(object, key, createDesc(1, value)); | 26413 | return dP.f(object, key, createDesc(1, value)); |
26750 | } : function(object, key, value){ | 26414 | } : function(object, key, value){ |
26751 | object[key] = value; | 26415 | object[key] = value; |
@@ -26753,15 +26417,15 @@ | |||
26753 | }; | 26417 | }; |
26754 | 26418 | ||
26755 | /***/ }, | 26419 | /***/ }, |
26756 | /* 190 */ | 26420 | /* 196 */ |
26757 | /***/ function(module, exports, __webpack_require__) { | 26421 | /***/ function(module, exports, __webpack_require__) { |
26758 | 26422 | ||
26759 | var anObject = __webpack_require__(191) | 26423 | var anObject = __webpack_require__(197) |
26760 | , IE8_DOM_DEFINE = __webpack_require__(193) | 26424 | , IE8_DOM_DEFINE = __webpack_require__(199) |
26761 | , toPrimitive = __webpack_require__(197) | 26425 | , toPrimitive = __webpack_require__(203) |
26762 | , dP = Object.defineProperty; | 26426 | , dP = Object.defineProperty; |
26763 | 26427 | ||
26764 | exports.f = __webpack_require__(194) ? Object.defineProperty : function defineProperty(O, P, Attributes){ | 26428 | exports.f = __webpack_require__(200) ? Object.defineProperty : function defineProperty(O, P, Attributes){ |
26765 | anObject(O); | 26429 | anObject(O); |
26766 | P = toPrimitive(P, true); | 26430 | P = toPrimitive(P, true); |
26767 | anObject(Attributes); | 26431 | anObject(Attributes); |
@@ -26774,17 +26438,17 @@ | |||
26774 | }; | 26438 | }; |
26775 | 26439 | ||
26776 | /***/ }, | 26440 | /***/ }, |
26777 | /* 191 */ | 26441 | /* 197 */ |
26778 | /***/ function(module, exports, __webpack_require__) { | 26442 | /***/ function(module, exports, __webpack_require__) { |
26779 | 26443 | ||
26780 | var isObject = __webpack_require__(192); | 26444 | var isObject = __webpack_require__(198); |
26781 | module.exports = function(it){ | 26445 | module.exports = function(it){ |
26782 | if(!isObject(it))throw TypeError(it + ' is not an object!'); | 26446 | if(!isObject(it))throw TypeError(it + ' is not an object!'); |
26783 | return it; | 26447 | return it; |
26784 | }; | 26448 | }; |
26785 | 26449 | ||
26786 | /***/ }, | 26450 | /***/ }, |
26787 | /* 192 */ | 26451 | /* 198 */ |
26788 | /***/ function(module, exports) { | 26452 | /***/ function(module, exports) { |
26789 | 26453 | ||
26790 | module.exports = function(it){ | 26454 | module.exports = function(it){ |
@@ -26792,24 +26456,24 @@ | |||
26792 | }; | 26456 | }; |
26793 | 26457 | ||
26794 | /***/ }, | 26458 | /***/ }, |
26795 | /* 193 */ | 26459 | /* 199 */ |
26796 | /***/ function(module, exports, __webpack_require__) { | 26460 | /***/ function(module, exports, __webpack_require__) { |
26797 | 26461 | ||
26798 | module.exports = !__webpack_require__(194) && !__webpack_require__(195)(function(){ | 26462 | module.exports = !__webpack_require__(200) && !__webpack_require__(201)(function(){ |
26799 | return Object.defineProperty(__webpack_require__(196)('div'), 'a', {get: function(){ return 7; }}).a != 7; | 26463 | return Object.defineProperty(__webpack_require__(202)('div'), 'a', {get: function(){ return 7; }}).a != 7; |
26800 | }); | 26464 | }); |
26801 | 26465 | ||
26802 | /***/ }, | 26466 | /***/ }, |
26803 | /* 194 */ | 26467 | /* 200 */ |
26804 | /***/ function(module, exports, __webpack_require__) { | 26468 | /***/ function(module, exports, __webpack_require__) { |
26805 | 26469 | ||
26806 | // Thank's IE8 for his funny defineProperty | 26470 | // Thank's IE8 for his funny defineProperty |
26807 | module.exports = !__webpack_require__(195)(function(){ | 26471 | module.exports = !__webpack_require__(201)(function(){ |
26808 | return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; | 26472 | return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; |
26809 | }); | 26473 | }); |
26810 | 26474 | ||
26811 | /***/ }, | 26475 | /***/ }, |
26812 | /* 195 */ | 26476 | /* 201 */ |
26813 | /***/ function(module, exports) { | 26477 | /***/ function(module, exports) { |
26814 | 26478 | ||
26815 | module.exports = function(exec){ | 26479 | module.exports = function(exec){ |
@@ -26821,11 +26485,11 @@ | |||
26821 | }; | 26485 | }; |
26822 | 26486 | ||
26823 | /***/ }, | 26487 | /***/ }, |
26824 | /* 196 */ | 26488 | /* 202 */ |
26825 | /***/ function(module, exports, __webpack_require__) { | 26489 | /***/ function(module, exports, __webpack_require__) { |
26826 | 26490 | ||
26827 | var isObject = __webpack_require__(192) | 26491 | var isObject = __webpack_require__(198) |
26828 | , document = __webpack_require__(185).document | 26492 | , document = __webpack_require__(191).document |
26829 | // in old IE typeof document.createElement is 'object' | 26493 | // in old IE typeof document.createElement is 'object' |
26830 | , is = isObject(document) && isObject(document.createElement); | 26494 | , is = isObject(document) && isObject(document.createElement); |
26831 | module.exports = function(it){ | 26495 | module.exports = function(it){ |
@@ -26833,11 +26497,11 @@ | |||
26833 | }; | 26497 | }; |
26834 | 26498 | ||
26835 | /***/ }, | 26499 | /***/ }, |
26836 | /* 197 */ | 26500 | /* 203 */ |
26837 | /***/ function(module, exports, __webpack_require__) { | 26501 | /***/ function(module, exports, __webpack_require__) { |
26838 | 26502 | ||
26839 | // 7.1.1 ToPrimitive(input [, PreferredType]) | 26503 | // 7.1.1 ToPrimitive(input [, PreferredType]) |
26840 | var isObject = __webpack_require__(192); | 26504 | var isObject = __webpack_require__(198); |
26841 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case | 26505 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case |
26842 | // and the second argument - flag - preferred type is a string | 26506 | // and the second argument - flag - preferred type is a string |
26843 | module.exports = function(it, S){ | 26507 | module.exports = function(it, S){ |
@@ -26850,7 +26514,7 @@ | |||
26850 | }; | 26514 | }; |
26851 | 26515 | ||
26852 | /***/ }, | 26516 | /***/ }, |
26853 | /* 198 */ | 26517 | /* 204 */ |
26854 | /***/ function(module, exports) { | 26518 | /***/ function(module, exports) { |
26855 | 26519 | ||
26856 | module.exports = function(bitmap, value){ | 26520 | module.exports = function(bitmap, value){ |
@@ -26863,20 +26527,20 @@ | |||
26863 | }; | 26527 | }; |
26864 | 26528 | ||
26865 | /***/ }, | 26529 | /***/ }, |
26866 | /* 199 */ | 26530 | /* 205 */ |
26867 | /***/ function(module, exports, __webpack_require__) { | 26531 | /***/ function(module, exports, __webpack_require__) { |
26868 | 26532 | ||
26869 | 'use strict'; | 26533 | 'use strict'; |
26870 | // 19.1.2.1 Object.assign(target, source, ...) | 26534 | // 19.1.2.1 Object.assign(target, source, ...) |
26871 | var getKeys = __webpack_require__(200) | 26535 | var getKeys = __webpack_require__(206) |
26872 | , gOPS = __webpack_require__(215) | 26536 | , gOPS = __webpack_require__(221) |
26873 | , pIE = __webpack_require__(216) | 26537 | , pIE = __webpack_require__(222) |
26874 | , toObject = __webpack_require__(217) | 26538 | , toObject = __webpack_require__(223) |
26875 | , IObject = __webpack_require__(204) | 26539 | , IObject = __webpack_require__(210) |
26876 | , $assign = Object.assign; | 26540 | , $assign = Object.assign; |
26877 | 26541 | ||
26878 | // should work with symbols and should have deterministic property order (V8 bug) | 26542 | // should work with symbols and should have deterministic property order (V8 bug) |
26879 | module.exports = !$assign || __webpack_require__(195)(function(){ | 26543 | module.exports = !$assign || __webpack_require__(201)(function(){ |
26880 | var A = {} | 26544 | var A = {} |
26881 | , B = {} | 26545 | , B = {} |
26882 | , S = Symbol() | 26546 | , S = Symbol() |
@@ -26901,25 +26565,25 @@ | |||
26901 | } : $assign; | 26565 | } : $assign; |
26902 | 26566 | ||
26903 | /***/ }, | 26567 | /***/ }, |
26904 | /* 200 */ | 26568 | /* 206 */ |
26905 | /***/ function(module, exports, __webpack_require__) { | 26569 | /***/ function(module, exports, __webpack_require__) { |
26906 | 26570 | ||
26907 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) | 26571 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) |
26908 | var $keys = __webpack_require__(201) | 26572 | var $keys = __webpack_require__(207) |
26909 | , enumBugKeys = __webpack_require__(214); | 26573 | , enumBugKeys = __webpack_require__(220); |
26910 | 26574 | ||
26911 | module.exports = Object.keys || function keys(O){ | 26575 | module.exports = Object.keys || function keys(O){ |
26912 | return $keys(O, enumBugKeys); | 26576 | return $keys(O, enumBugKeys); |
26913 | }; | 26577 | }; |
26914 | 26578 | ||
26915 | /***/ }, | 26579 | /***/ }, |
26916 | /* 201 */ | 26580 | /* 207 */ |
26917 | /***/ function(module, exports, __webpack_require__) { | 26581 | /***/ function(module, exports, __webpack_require__) { |
26918 | 26582 | ||
26919 | var has = __webpack_require__(202) | 26583 | var has = __webpack_require__(208) |
26920 | , toIObject = __webpack_require__(203) | 26584 | , toIObject = __webpack_require__(209) |
26921 | , arrayIndexOf = __webpack_require__(207)(false) | 26585 | , arrayIndexOf = __webpack_require__(213)(false) |
26922 | , IE_PROTO = __webpack_require__(211)('IE_PROTO'); | 26586 | , IE_PROTO = __webpack_require__(217)('IE_PROTO'); |
26923 | 26587 | ||
26924 | module.exports = function(object, names){ | 26588 | module.exports = function(object, names){ |
26925 | var O = toIObject(object) | 26589 | var O = toIObject(object) |
@@ -26935,7 +26599,7 @@ | |||
26935 | }; | 26599 | }; |
26936 | 26600 | ||
26937 | /***/ }, | 26601 | /***/ }, |
26938 | /* 202 */ | 26602 | /* 208 */ |
26939 | /***/ function(module, exports) { | 26603 | /***/ function(module, exports) { |
26940 | 26604 | ||
26941 | var hasOwnProperty = {}.hasOwnProperty; | 26605 | var hasOwnProperty = {}.hasOwnProperty; |
@@ -26944,28 +26608,28 @@ | |||
26944 | }; | 26608 | }; |
26945 | 26609 | ||
26946 | /***/ }, | 26610 | /***/ }, |
26947 | /* 203 */ | 26611 | /* 209 */ |
26948 | /***/ function(module, exports, __webpack_require__) { | 26612 | /***/ function(module, exports, __webpack_require__) { |
26949 | 26613 | ||
26950 | // to indexed object, toObject with fallback for non-array-like ES3 strings | 26614 | // to indexed object, toObject with fallback for non-array-like ES3 strings |
26951 | var IObject = __webpack_require__(204) | 26615 | var IObject = __webpack_require__(210) |
26952 | , defined = __webpack_require__(206); | 26616 | , defined = __webpack_require__(212); |
26953 | module.exports = function(it){ | 26617 | module.exports = function(it){ |
26954 | return IObject(defined(it)); | 26618 | return IObject(defined(it)); |
26955 | }; | 26619 | }; |
26956 | 26620 | ||
26957 | /***/ }, | 26621 | /***/ }, |
26958 | /* 204 */ | 26622 | /* 210 */ |
26959 | /***/ function(module, exports, __webpack_require__) { | 26623 | /***/ function(module, exports, __webpack_require__) { |
26960 | 26624 | ||
26961 | // fallback for non-array-like ES3 and non-enumerable old V8 strings | 26625 | // fallback for non-array-like ES3 and non-enumerable old V8 strings |
26962 | var cof = __webpack_require__(205); | 26626 | var cof = __webpack_require__(211); |
26963 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ | 26627 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ |
26964 | return cof(it) == 'String' ? it.split('') : Object(it); | 26628 | return cof(it) == 'String' ? it.split('') : Object(it); |
26965 | }; | 26629 | }; |
26966 | 26630 | ||
26967 | /***/ }, | 26631 | /***/ }, |
26968 | /* 205 */ | 26632 | /* 211 */ |
26969 | /***/ function(module, exports) { | 26633 | /***/ function(module, exports) { |
26970 | 26634 | ||
26971 | var toString = {}.toString; | 26635 | var toString = {}.toString; |
@@ -26975,7 +26639,7 @@ | |||
26975 | }; | 26639 | }; |
26976 | 26640 | ||
26977 | /***/ }, | 26641 | /***/ }, |
26978 | /* 206 */ | 26642 | /* 212 */ |
26979 | /***/ function(module, exports) { | 26643 | /***/ function(module, exports) { |
26980 | 26644 | ||
26981 | // 7.2.1 RequireObjectCoercible(argument) | 26645 | // 7.2.1 RequireObjectCoercible(argument) |
@@ -26985,14 +26649,14 @@ | |||
26985 | }; | 26649 | }; |
26986 | 26650 | ||
26987 | /***/ }, | 26651 | /***/ }, |
26988 | /* 207 */ | 26652 | /* 213 */ |
26989 | /***/ function(module, exports, __webpack_require__) { | 26653 | /***/ function(module, exports, __webpack_require__) { |
26990 | 26654 | ||
26991 | // false -> Array#indexOf | 26655 | // false -> Array#indexOf |
26992 | // true -> Array#includes | 26656 | // true -> Array#includes |
26993 | var toIObject = __webpack_require__(203) | 26657 | var toIObject = __webpack_require__(209) |
26994 | , toLength = __webpack_require__(208) | 26658 | , toLength = __webpack_require__(214) |
26995 | , toIndex = __webpack_require__(210); | 26659 | , toIndex = __webpack_require__(216); |
26996 | module.exports = function(IS_INCLUDES){ | 26660 | module.exports = function(IS_INCLUDES){ |
26997 | return function($this, el, fromIndex){ | 26661 | return function($this, el, fromIndex){ |
26998 | var O = toIObject($this) | 26662 | var O = toIObject($this) |
@@ -27011,18 +26675,18 @@ | |||
27011 | }; | 26675 | }; |
27012 | 26676 | ||
27013 | /***/ }, | 26677 | /***/ }, |
27014 | /* 208 */ | 26678 | /* 214 */ |
27015 | /***/ function(module, exports, __webpack_require__) { | 26679 | /***/ function(module, exports, __webpack_require__) { |
27016 | 26680 | ||
27017 | // 7.1.15 ToLength | 26681 | // 7.1.15 ToLength |
27018 | var toInteger = __webpack_require__(209) | 26682 | var toInteger = __webpack_require__(215) |
27019 | , min = Math.min; | 26683 | , min = Math.min; |
27020 | module.exports = function(it){ | 26684 | module.exports = function(it){ |
27021 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | 26685 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 |
27022 | }; | 26686 | }; |
27023 | 26687 | ||
27024 | /***/ }, | 26688 | /***/ }, |
27025 | /* 209 */ | 26689 | /* 215 */ |
27026 | /***/ function(module, exports) { | 26690 | /***/ function(module, exports) { |
27027 | 26691 | ||
27028 | // 7.1.4 ToInteger | 26692 | // 7.1.4 ToInteger |
@@ -27033,10 +26697,10 @@ | |||
27033 | }; | 26697 | }; |
27034 | 26698 | ||
27035 | /***/ }, | 26699 | /***/ }, |
27036 | /* 210 */ | 26700 | /* 216 */ |
27037 | /***/ function(module, exports, __webpack_require__) { | 26701 | /***/ function(module, exports, __webpack_require__) { |
27038 | 26702 | ||
27039 | var toInteger = __webpack_require__(209) | 26703 | var toInteger = __webpack_require__(215) |
27040 | , max = Math.max | 26704 | , max = Math.max |
27041 | , min = Math.min; | 26705 | , min = Math.min; |
27042 | module.exports = function(index, length){ | 26706 | module.exports = function(index, length){ |
@@ -27045,20 +26709,20 @@ | |||
27045 | }; | 26709 | }; |
27046 | 26710 | ||
27047 | /***/ }, | 26711 | /***/ }, |
27048 | /* 211 */ | 26712 | /* 217 */ |
27049 | /***/ function(module, exports, __webpack_require__) { | 26713 | /***/ function(module, exports, __webpack_require__) { |
27050 | 26714 | ||
27051 | var shared = __webpack_require__(212)('keys') | 26715 | var shared = __webpack_require__(218)('keys') |
27052 | , uid = __webpack_require__(213); | 26716 | , uid = __webpack_require__(219); |
27053 | module.exports = function(key){ | 26717 | module.exports = function(key){ |
27054 | return shared[key] || (shared[key] = uid(key)); | 26718 | return shared[key] || (shared[key] = uid(key)); |
27055 | }; | 26719 | }; |
27056 | 26720 | ||
27057 | /***/ }, | 26721 | /***/ }, |
27058 | /* 212 */ | 26722 | /* 218 */ |
27059 | /***/ function(module, exports, __webpack_require__) { | 26723 | /***/ function(module, exports, __webpack_require__) { |
27060 | 26724 | ||
27061 | var global = __webpack_require__(185) | 26725 | var global = __webpack_require__(191) |
27062 | , SHARED = '__core-js_shared__' | 26726 | , SHARED = '__core-js_shared__' |
27063 | , store = global[SHARED] || (global[SHARED] = {}); | 26727 | , store = global[SHARED] || (global[SHARED] = {}); |
27064 | module.exports = function(key){ | 26728 | module.exports = function(key){ |
@@ -27066,7 +26730,7 @@ | |||
27066 | }; | 26730 | }; |
27067 | 26731 | ||
27068 | /***/ }, | 26732 | /***/ }, |
27069 | /* 213 */ | 26733 | /* 219 */ |
27070 | /***/ function(module, exports) { | 26734 | /***/ function(module, exports) { |
27071 | 26735 | ||
27072 | var id = 0 | 26736 | var id = 0 |
@@ -27076,7 +26740,7 @@ | |||
27076 | }; | 26740 | }; |
27077 | 26741 | ||
27078 | /***/ }, | 26742 | /***/ }, |
27079 | /* 214 */ | 26743 | /* 220 */ |
27080 | /***/ function(module, exports) { | 26744 | /***/ function(module, exports) { |
27081 | 26745 | ||
27082 | // IE 8- don't enum bug keys | 26746 | // IE 8- don't enum bug keys |
@@ -27085,34 +26749,38 @@ | |||
27085 | ).split(','); | 26749 | ).split(','); |
27086 | 26750 | ||
27087 | /***/ }, | 26751 | /***/ }, |
27088 | /* 215 */ | 26752 | /* 221 */ |
27089 | /***/ function(module, exports) { | 26753 | /***/ function(module, exports) { |
27090 | 26754 | ||
27091 | exports.f = Object.getOwnPropertySymbols; | 26755 | exports.f = Object.getOwnPropertySymbols; |
27092 | 26756 | ||
27093 | /***/ }, | 26757 | /***/ }, |
27094 | /* 216 */ | 26758 | /* 222 */ |
27095 | /***/ function(module, exports) { | 26759 | /***/ function(module, exports) { |
27096 | 26760 | ||
27097 | exports.f = {}.propertyIsEnumerable; | 26761 | exports.f = {}.propertyIsEnumerable; |
27098 | 26762 | ||
27099 | /***/ }, | 26763 | /***/ }, |
27100 | /* 217 */ | 26764 | /* 223 */ |
27101 | /***/ function(module, exports, __webpack_require__) { | 26765 | /***/ function(module, exports, __webpack_require__) { |
27102 | 26766 | ||
27103 | // 7.1.13 ToObject(argument) | 26767 | // 7.1.13 ToObject(argument) |
27104 | var defined = __webpack_require__(206); | 26768 | var defined = __webpack_require__(212); |
27105 | module.exports = function(it){ | 26769 | module.exports = function(it){ |
27106 | return Object(defined(it)); | 26770 | return Object(defined(it)); |
27107 | }; | 26771 | }; |
27108 | 26772 | ||
27109 | /***/ }, | 26773 | /***/ }, |
27110 | /* 218 */ | 26774 | /* 224 */ |
27111 | /***/ function(module, exports) { | 26775 | /***/ function(module, exports) { |
27112 | 26776 | ||
27113 | "use strict"; | 26777 | "use strict"; |
27114 | 26778 | ||
27115 | module.exports = function contains(root, n) { | 26779 | Object.defineProperty(exports, "__esModule", { |
26780 | value: true | ||
26781 | }); | ||
26782 | exports["default"] = contains; | ||
26783 | function contains(root, n) { | ||
27116 | var node = n; | 26784 | var node = n; |
27117 | while (node) { | 26785 | while (node) { |
27118 | if (node === root) { | 26786 | if (node === root) { |
@@ -27122,10 +26790,11 @@ | |||
27122 | } | 26790 | } |
27123 | 26791 | ||
27124 | return false; | 26792 | return false; |
27125 | }; | 26793 | } |
26794 | module.exports = exports['default']; | ||
27126 | 26795 | ||
27127 | /***/ }, | 26796 | /***/ }, |
27128 | /* 219 */ | 26797 | /* 225 */ |
27129 | /***/ function(module, exports, __webpack_require__) { | 26798 | /***/ function(module, exports, __webpack_require__) { |
27130 | 26799 | ||
27131 | 'use strict'; | 26800 | 'use strict'; |
@@ -27135,11 +26804,11 @@ | |||
27135 | }); | 26804 | }); |
27136 | exports["default"] = addEventListenerWrap; | 26805 | exports["default"] = addEventListenerWrap; |
27137 | 26806 | ||
27138 | var _addDomEventListener = __webpack_require__(220); | 26807 | var _addDomEventListener = __webpack_require__(226); |
27139 | 26808 | ||
27140 | var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); | 26809 | var _addDomEventListener2 = _interopRequireDefault(_addDomEventListener); |
27141 | 26810 | ||
27142 | var _reactDom = __webpack_require__(36); | 26811 | var _reactDom = __webpack_require__(34); |
27143 | 26812 | ||
27144 | var _reactDom2 = _interopRequireDefault(_reactDom); | 26813 | var _reactDom2 = _interopRequireDefault(_reactDom); |
27145 | 26814 | ||
@@ -27155,25 +26824,25 @@ | |||
27155 | module.exports = exports['default']; | 26824 | module.exports = exports['default']; |
27156 | 26825 | ||
27157 | /***/ }, | 26826 | /***/ }, |
27158 | /* 220 */ | 26827 | /* 226 */ |
27159 | /***/ function(module, exports, __webpack_require__) { | 26828 | /***/ function(module, exports, __webpack_require__) { |
27160 | 26829 | ||
27161 | 'use strict'; | 26830 | 'use strict'; |
27162 | 26831 | ||
27163 | Object.defineProperty(exports, '__esModule', { | 26832 | Object.defineProperty(exports, "__esModule", { |
27164 | value: true | 26833 | value: true |
27165 | }); | 26834 | }); |
27166 | exports['default'] = addEventListener; | 26835 | exports["default"] = addEventListener; |
27167 | 26836 | ||
27168 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | 26837 | var _EventObject = __webpack_require__(227); |
27169 | |||
27170 | var _EventObject = __webpack_require__(221); | ||
27171 | 26838 | ||
27172 | var _EventObject2 = _interopRequireDefault(_EventObject); | 26839 | var _EventObject2 = _interopRequireDefault(_EventObject); |
27173 | 26840 | ||
26841 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
26842 | |||
27174 | function addEventListener(target, eventType, callback) { | 26843 | function addEventListener(target, eventType, callback) { |
27175 | function wrapCallback(e) { | 26844 | function wrapCallback(e) { |
27176 | var ne = new _EventObject2['default'](e); | 26845 | var ne = new _EventObject2["default"](e); |
27177 | callback.call(target, ne); | 26846 | callback.call(target, ne); |
27178 | } | 26847 | } |
27179 | 26848 | ||
@@ -27193,28 +26862,19 @@ | |||
27193 | }; | 26862 | }; |
27194 | } | 26863 | } |
27195 | } | 26864 | } |
27196 | |||
27197 | module.exports = exports['default']; | 26865 | module.exports = exports['default']; |
27198 | 26866 | ||
27199 | /***/ }, | 26867 | /***/ }, |
27200 | /* 221 */ | 26868 | /* 227 */ |
27201 | /***/ function(module, exports, __webpack_require__) { | 26869 | /***/ function(module, exports, __webpack_require__) { |
27202 | 26870 | ||
27203 | /** | ||
27204 | * @ignore | ||
27205 | * event object for dom | ||
27206 | * @author yiminghe@gmail.com | ||
27207 | */ | ||
27208 | |||
27209 | 'use strict'; | 26871 | 'use strict'; |
27210 | 26872 | ||
27211 | Object.defineProperty(exports, '__esModule', { | 26873 | Object.defineProperty(exports, "__esModule", { |
27212 | value: true | 26874 | value: true |
27213 | }); | 26875 | }); |
27214 | 26876 | ||
27215 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | 26877 | var _EventBaseObject = __webpack_require__(228); |
27216 | |||
27217 | var _EventBaseObject = __webpack_require__(222); | ||
27218 | 26878 | ||
27219 | var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject); | 26879 | var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject); |
27220 | 26880 | ||
@@ -27222,6 +26882,14 @@ | |||
27222 | 26882 | ||
27223 | var _objectAssign2 = _interopRequireDefault(_objectAssign); | 26883 | var _objectAssign2 = _interopRequireDefault(_objectAssign); |
27224 | 26884 | ||
26885 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
26886 | |||
26887 | /** | ||
26888 | * @ignore | ||
26889 | * event object for dom | ||
26890 | * @author yiminghe@gmail.com | ||
26891 | */ | ||
26892 | |||
27225 | var TRUE = true; | 26893 | var TRUE = true; |
27226 | var FALSE = false; | 26894 | var FALSE = false; |
27227 | var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type']; | 26895 | var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type']; |
@@ -27256,9 +26924,9 @@ | |||
27256 | reg: /^(mousewheel|DOMMouseScroll)$/, | 26924 | reg: /^(mousewheel|DOMMouseScroll)$/, |
27257 | props: [], | 26925 | props: [], |
27258 | fix: function fix(event, nativeEvent) { | 26926 | fix: function fix(event, nativeEvent) { |
27259 | var deltaX = undefined; | 26927 | var deltaX = void 0; |
27260 | var deltaY = undefined; | 26928 | var deltaY = void 0; |
27261 | var delta = undefined; | 26929 | var delta = void 0; |
27262 | var wheelDelta = nativeEvent.wheelDelta; | 26930 | var wheelDelta = nativeEvent.wheelDelta; |
27263 | var axis = nativeEvent.axis; | 26931 | var axis = nativeEvent.axis; |
27264 | var wheelDeltaY = nativeEvent.wheelDeltaY; | 26932 | var wheelDeltaY = nativeEvent.wheelDeltaY; |
@@ -27331,9 +26999,9 @@ | |||
27331 | reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i, | 26999 | reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i, |
27332 | props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'], | 27000 | props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'], |
27333 | fix: function fix(event, nativeEvent) { | 27001 | fix: function fix(event, nativeEvent) { |
27334 | var eventDoc = undefined; | 27002 | var eventDoc = void 0; |
27335 | var doc = undefined; | 27003 | var doc = void 0; |
27336 | var body = undefined; | 27004 | var body = void 0; |
27337 | var target = event.target; | 27005 | var target = event.target; |
27338 | var button = nativeEvent.button; | 27006 | var button = nativeEvent.button; |
27339 | 27007 | ||
@@ -27382,7 +27050,7 @@ | |||
27382 | 27050 | ||
27383 | var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean'; | 27051 | var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean'; |
27384 | 27052 | ||
27385 | _EventBaseObject2['default'].call(this); | 27053 | _EventBaseObject2["default"].call(this); |
27386 | 27054 | ||
27387 | this.nativeEvent = nativeEvent; | 27055 | this.nativeEvent = nativeEvent; |
27388 | 27056 | ||
@@ -27400,9 +27068,9 @@ | |||
27400 | this.isDefaultPrevented = isDefaultPrevented; | 27068 | this.isDefaultPrevented = isDefaultPrevented; |
27401 | 27069 | ||
27402 | var fixFns = []; | 27070 | var fixFns = []; |
27403 | var fixFn = undefined; | 27071 | var fixFn = void 0; |
27404 | var l = undefined; | 27072 | var l = void 0; |
27405 | var prop = undefined; | 27073 | var prop = void 0; |
27406 | var props = commonProps.concat(); | 27074 | var props = commonProps.concat(); |
27407 | 27075 | ||
27408 | eventNormalizers.forEach(function (normalizer) { | 27076 | eventNormalizers.forEach(function (normalizer) { |
@@ -27442,9 +27110,9 @@ | |||
27442 | this.timeStamp = nativeEvent.timeStamp || Date.now(); | 27110 | this.timeStamp = nativeEvent.timeStamp || Date.now(); |
27443 | } | 27111 | } |
27444 | 27112 | ||
27445 | var EventBaseObjectProto = _EventBaseObject2['default'].prototype; | 27113 | var EventBaseObjectProto = _EventBaseObject2["default"].prototype; |
27446 | 27114 | ||
27447 | (0, _objectAssign2['default'])(DomEventObject.prototype, EventBaseObjectProto, { | 27115 | (0, _objectAssign2["default"])(DomEventObject.prototype, EventBaseObjectProto, { |
27448 | constructor: DomEventObject, | 27116 | constructor: DomEventObject, |
27449 | 27117 | ||
27450 | preventDefault: function preventDefault() { | 27118 | preventDefault: function preventDefault() { |
@@ -27460,7 +27128,6 @@ | |||
27460 | 27128 | ||
27461 | EventBaseObjectProto.preventDefault.call(this); | 27129 | EventBaseObjectProto.preventDefault.call(this); |
27462 | }, | 27130 | }, |
27463 | |||
27464 | stopPropagation: function stopPropagation() { | 27131 | stopPropagation: function stopPropagation() { |
27465 | var e = this.nativeEvent; | 27132 | var e = this.nativeEvent; |
27466 | 27133 | ||
@@ -27476,24 +27143,24 @@ | |||
27476 | } | 27143 | } |
27477 | }); | 27144 | }); |
27478 | 27145 | ||
27479 | exports['default'] = DomEventObject; | 27146 | exports["default"] = DomEventObject; |
27480 | module.exports = exports['default']; | 27147 | module.exports = exports['default']; |
27481 | 27148 | ||
27482 | /***/ }, | 27149 | /***/ }, |
27483 | /* 222 */ | 27150 | /* 228 */ |
27484 | /***/ function(module, exports) { | 27151 | /***/ function(module, exports) { |
27485 | 27152 | ||
27153 | "use strict"; | ||
27154 | |||
27155 | Object.defineProperty(exports, "__esModule", { | ||
27156 | value: true | ||
27157 | }); | ||
27486 | /** | 27158 | /** |
27487 | * @ignore | 27159 | * @ignore |
27488 | * base event object for custom and dom event. | 27160 | * base event object for custom and dom event. |
27489 | * @author yiminghe@gmail.com | 27161 | * @author yiminghe@gmail.com |
27490 | */ | 27162 | */ |
27491 | 27163 | ||
27492 | "use strict"; | ||
27493 | |||
27494 | Object.defineProperty(exports, "__esModule", { | ||
27495 | value: true | ||
27496 | }); | ||
27497 | function returnFalse() { | 27164 | function returnFalse() { |
27498 | return false; | 27165 | return false; |
27499 | } | 27166 | } |
@@ -27522,18 +27189,15 @@ | |||
27522 | preventDefault: function preventDefault() { | 27189 | preventDefault: function preventDefault() { |
27523 | this.isDefaultPrevented = returnTrue; | 27190 | this.isDefaultPrevented = returnTrue; |
27524 | }, | 27191 | }, |
27525 | |||
27526 | stopPropagation: function stopPropagation() { | 27192 | stopPropagation: function stopPropagation() { |
27527 | this.isPropagationStopped = returnTrue; | 27193 | this.isPropagationStopped = returnTrue; |
27528 | }, | 27194 | }, |
27529 | |||
27530 | stopImmediatePropagation: function stopImmediatePropagation() { | 27195 | stopImmediatePropagation: function stopImmediatePropagation() { |
27531 | this.isImmediatePropagationStopped = returnTrue; | 27196 | this.isImmediatePropagationStopped = returnTrue; |
27532 | // fixed 1.2 | 27197 | // fixed 1.2 |
27533 | // call stopPropagation implicitly | 27198 | // call stopPropagation implicitly |
27534 | this.stopPropagation(); | 27199 | this.stopPropagation(); |
27535 | }, | 27200 | }, |
27536 | |||
27537 | halt: function halt(immediate) { | 27201 | halt: function halt(immediate) { |
27538 | if (immediate) { | 27202 | if (immediate) { |
27539 | this.stopImmediatePropagation(); | 27203 | this.stopImmediatePropagation(); |
@@ -27545,10 +27209,10 @@ | |||
27545 | }; | 27209 | }; |
27546 | 27210 | ||
27547 | exports["default"] = EventBaseObject; | 27211 | exports["default"] = EventBaseObject; |
27548 | module.exports = exports["default"]; | 27212 | module.exports = exports['default']; |
27549 | 27213 | ||
27550 | /***/ }, | 27214 | /***/ }, |
27551 | /* 223 */ | 27215 | /* 229 */ |
27552 | /***/ function(module, exports, __webpack_require__) { | 27216 | /***/ function(module, exports, __webpack_require__) { |
27553 | 27217 | ||
27554 | 'use strict'; | 27218 | 'use strict'; |
@@ -27557,7 +27221,7 @@ | |||
27557 | value: true | 27221 | value: true |
27558 | }); | 27222 | }); |
27559 | 27223 | ||
27560 | var _extends2 = __webpack_require__(180); | 27224 | var _extends2 = __webpack_require__(186); |
27561 | 27225 | ||
27562 | var _extends3 = _interopRequireDefault(_extends2); | 27226 | var _extends3 = _interopRequireDefault(_extends2); |
27563 | 27227 | ||
@@ -27565,23 +27229,23 @@ | |||
27565 | 27229 | ||
27566 | var _react2 = _interopRequireDefault(_react); | 27230 | var _react2 = _interopRequireDefault(_react); |
27567 | 27231 | ||
27568 | var _reactDom = __webpack_require__(36); | 27232 | var _reactDom = __webpack_require__(34); |
27569 | 27233 | ||
27570 | var _reactDom2 = _interopRequireDefault(_reactDom); | 27234 | var _reactDom2 = _interopRequireDefault(_reactDom); |
27571 | 27235 | ||
27572 | var _rcAlign = __webpack_require__(224); | 27236 | var _rcAlign = __webpack_require__(230); |
27573 | 27237 | ||
27574 | var _rcAlign2 = _interopRequireDefault(_rcAlign); | 27238 | var _rcAlign2 = _interopRequireDefault(_rcAlign); |
27575 | 27239 | ||
27576 | var _rcAnimate = __webpack_require__(236); | 27240 | var _rcAnimate = __webpack_require__(242); |
27577 | 27241 | ||
27578 | var _rcAnimate2 = _interopRequireDefault(_rcAnimate); | 27242 | var _rcAnimate2 = _interopRequireDefault(_rcAnimate); |
27579 | 27243 | ||
27580 | var _PopupInner = __webpack_require__(245); | 27244 | var _PopupInner = __webpack_require__(251); |
27581 | 27245 | ||
27582 | var _PopupInner2 = _interopRequireDefault(_PopupInner); | 27246 | var _PopupInner2 = _interopRequireDefault(_PopupInner); |
27583 | 27247 | ||
27584 | var _LazyRenderBox = __webpack_require__(246); | 27248 | var _LazyRenderBox = __webpack_require__(252); |
27585 | 27249 | ||
27586 | var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); | 27250 | var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); |
27587 | 27251 | ||
@@ -27645,11 +27309,11 @@ | |||
27645 | }, | 27309 | }, |
27646 | getPopupElement: function getPopupElement() { | 27310 | getPopupElement: function getPopupElement() { |
27647 | var props = this.props; | 27311 | var props = this.props; |
27648 | var align = props.align; | 27312 | var align = props.align, |
27649 | var style = props.style; | 27313 | style = props.style, |
27650 | var visible = props.visible; | 27314 | visible = props.visible, |
27651 | var prefixCls = props.prefixCls; | 27315 | prefixCls = props.prefixCls, |
27652 | var destroyPopupOnHide = props.destroyPopupOnHide; | 27316 | destroyPopupOnHide = props.destroyPopupOnHide; |
27653 | 27317 | ||
27654 | var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align)); | 27318 | var className = this.getClassName(this.currentAlignClassName || props.getClassNameFromAlign(align)); |
27655 | var hiddenClassName = prefixCls + '-hidden'; | 27319 | var hiddenClassName = prefixCls + '-hidden'; |
@@ -27779,7 +27443,7 @@ | |||
27779 | module.exports = exports['default']; | 27443 | module.exports = exports['default']; |
27780 | 27444 | ||
27781 | /***/ }, | 27445 | /***/ }, |
27782 | /* 224 */ | 27446 | /* 230 */ |
27783 | /***/ function(module, exports, __webpack_require__) { | 27447 | /***/ function(module, exports, __webpack_require__) { |
27784 | 27448 | ||
27785 | 'use strict'; | 27449 | 'use strict'; |
@@ -27788,7 +27452,7 @@ | |||
27788 | value: true | 27452 | value: true |
27789 | }); | 27453 | }); |
27790 | 27454 | ||
27791 | var _Align = __webpack_require__(225); | 27455 | var _Align = __webpack_require__(231); |
27792 | 27456 | ||
27793 | var _Align2 = _interopRequireDefault(_Align); | 27457 | var _Align2 = _interopRequireDefault(_Align); |
27794 | 27458 | ||
@@ -27799,7 +27463,7 @@ | |||
27799 | module.exports = exports['default']; | 27463 | module.exports = exports['default']; |
27800 | 27464 | ||
27801 | /***/ }, | 27465 | /***/ }, |
27802 | /* 225 */ | 27466 | /* 231 */ |
27803 | /***/ function(module, exports, __webpack_require__) { | 27467 | /***/ function(module, exports, __webpack_require__) { |
27804 | 27468 | ||
27805 | 'use strict'; | 27469 | 'use strict'; |
@@ -27812,19 +27476,19 @@ | |||
27812 | 27476 | ||
27813 | var _react2 = _interopRequireDefault(_react); | 27477 | var _react2 = _interopRequireDefault(_react); |
27814 | 27478 | ||
27815 | var _reactDom = __webpack_require__(36); | 27479 | var _reactDom = __webpack_require__(34); |
27816 | 27480 | ||
27817 | var _reactDom2 = _interopRequireDefault(_reactDom); | 27481 | var _reactDom2 = _interopRequireDefault(_reactDom); |
27818 | 27482 | ||
27819 | var _domAlign = __webpack_require__(226); | 27483 | var _domAlign = __webpack_require__(232); |
27820 | 27484 | ||
27821 | var _domAlign2 = _interopRequireDefault(_domAlign); | 27485 | var _domAlign2 = _interopRequireDefault(_domAlign); |
27822 | 27486 | ||
27823 | var _addEventListener = __webpack_require__(219); | 27487 | var _addEventListener = __webpack_require__(225); |
27824 | 27488 | ||
27825 | var _addEventListener2 = _interopRequireDefault(_addEventListener); | 27489 | var _addEventListener2 = _interopRequireDefault(_addEventListener); |
27826 | 27490 | ||
27827 | var _isWindow = __webpack_require__(235); | 27491 | var _isWindow = __webpack_require__(241); |
27828 | 27492 | ||
27829 | var _isWindow2 = _interopRequireDefault(_isWindow); | 27493 | var _isWindow2 = _interopRequireDefault(_isWindow); |
27830 | 27494 | ||
@@ -27936,9 +27600,9 @@ | |||
27936 | } | 27600 | } |
27937 | }, | 27601 | }, |
27938 | render: function render() { | 27602 | render: function render() { |
27939 | var _props = this.props; | 27603 | var _props = this.props, |
27940 | var childrenProps = _props.childrenProps; | 27604 | childrenProps = _props.childrenProps, |
27941 | var children = _props.children; | 27605 | children = _props.children; |
27942 | 27606 | ||
27943 | var child = _react2["default"].Children.only(children); | 27607 | var child = _react2["default"].Children.only(children); |
27944 | if (childrenProps) { | 27608 | if (childrenProps) { |
@@ -27958,7 +27622,7 @@ | |||
27958 | module.exports = exports['default']; | 27622 | module.exports = exports['default']; |
27959 | 27623 | ||
27960 | /***/ }, | 27624 | /***/ }, |
27961 | /* 226 */ | 27625 | /* 232 */ |
27962 | /***/ function(module, exports, __webpack_require__) { | 27626 | /***/ function(module, exports, __webpack_require__) { |
27963 | 27627 | ||
27964 | 'use strict'; | 27628 | 'use strict'; |
@@ -27967,27 +27631,27 @@ | |||
27967 | value: true | 27631 | value: true |
27968 | }); | 27632 | }); |
27969 | 27633 | ||
27970 | var _utils = __webpack_require__(227); | 27634 | var _utils = __webpack_require__(233); |
27971 | 27635 | ||
27972 | var _utils2 = _interopRequireDefault(_utils); | 27636 | var _utils2 = _interopRequireDefault(_utils); |
27973 | 27637 | ||
27974 | var _getOffsetParent = __webpack_require__(229); | 27638 | var _getOffsetParent = __webpack_require__(235); |
27975 | 27639 | ||
27976 | var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); | 27640 | var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); |
27977 | 27641 | ||
27978 | var _getVisibleRectForElement = __webpack_require__(230); | 27642 | var _getVisibleRectForElement = __webpack_require__(236); |
27979 | 27643 | ||
27980 | var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement); | 27644 | var _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement); |
27981 | 27645 | ||
27982 | var _adjustForViewport = __webpack_require__(231); | 27646 | var _adjustForViewport = __webpack_require__(237); |
27983 | 27647 | ||
27984 | var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport); | 27648 | var _adjustForViewport2 = _interopRequireDefault(_adjustForViewport); |
27985 | 27649 | ||
27986 | var _getRegion = __webpack_require__(232); | 27650 | var _getRegion = __webpack_require__(238); |
27987 | 27651 | ||
27988 | var _getRegion2 = _interopRequireDefault(_getRegion); | 27652 | var _getRegion2 = _interopRequireDefault(_getRegion); |
27989 | 27653 | ||
27990 | var _getElFuturePos = __webpack_require__(233); | 27654 | var _getElFuturePos = __webpack_require__(239); |
27991 | 27655 | ||
27992 | var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos); | 27656 | var _getElFuturePos2 = _interopRequireDefault(_getElFuturePos); |
27993 | 27657 | ||
@@ -28181,7 +27845,7 @@ | |||
28181 | module.exports = exports['default']; | 27845 | module.exports = exports['default']; |
28182 | 27846 | ||
28183 | /***/ }, | 27847 | /***/ }, |
28184 | /* 227 */ | 27848 | /* 233 */ |
28185 | /***/ function(module, exports, __webpack_require__) { | 27849 | /***/ function(module, exports, __webpack_require__) { |
28186 | 27850 | ||
28187 | 'use strict'; | 27851 | 'use strict'; |
@@ -28190,9 +27854,9 @@ | |||
28190 | value: true | 27854 | value: true |
28191 | }); | 27855 | }); |
28192 | 27856 | ||
28193 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | 27857 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; |
28194 | 27858 | ||
28195 | var _propertyUtils = __webpack_require__(228); | 27859 | var _propertyUtils = __webpack_require__(234); |
28196 | 27860 | ||
28197 | var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; | 27861 | var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source; |
28198 | 27862 | ||
@@ -28744,7 +28408,7 @@ | |||
28744 | module.exports = exports['default']; | 28408 | module.exports = exports['default']; |
28745 | 28409 | ||
28746 | /***/ }, | 28410 | /***/ }, |
28747 | /* 228 */ | 28411 | /* 234 */ |
28748 | /***/ function(module, exports) { | 28412 | /***/ function(module, exports) { |
28749 | 28413 | ||
28750 | 'use strict'; | 28414 | 'use strict'; |
@@ -28859,7 +28523,7 @@ | |||
28859 | } | 28523 | } |
28860 | 28524 | ||
28861 | /***/ }, | 28525 | /***/ }, |
28862 | /* 229 */ | 28526 | /* 235 */ |
28863 | /***/ function(module, exports, __webpack_require__) { | 28527 | /***/ function(module, exports, __webpack_require__) { |
28864 | 28528 | ||
28865 | 'use strict'; | 28529 | 'use strict'; |
@@ -28868,7 +28532,7 @@ | |||
28868 | value: true | 28532 | value: true |
28869 | }); | 28533 | }); |
28870 | 28534 | ||
28871 | var _utils = __webpack_require__(227); | 28535 | var _utils = __webpack_require__(233); |
28872 | 28536 | ||
28873 | var _utils2 = _interopRequireDefault(_utils); | 28537 | var _utils2 = _interopRequireDefault(_utils); |
28874 | 28538 | ||
@@ -28917,7 +28581,7 @@ | |||
28917 | module.exports = exports['default']; | 28581 | module.exports = exports['default']; |
28918 | 28582 | ||
28919 | /***/ }, | 28583 | /***/ }, |
28920 | /* 230 */ | 28584 | /* 236 */ |
28921 | /***/ function(module, exports, __webpack_require__) { | 28585 | /***/ function(module, exports, __webpack_require__) { |
28922 | 28586 | ||
28923 | 'use strict'; | 28587 | 'use strict'; |
@@ -28926,11 +28590,11 @@ | |||
28926 | value: true | 28590 | value: true |
28927 | }); | 28591 | }); |
28928 | 28592 | ||
28929 | var _utils = __webpack_require__(227); | 28593 | var _utils = __webpack_require__(233); |
28930 | 28594 | ||
28931 | var _utils2 = _interopRequireDefault(_utils); | 28595 | var _utils2 = _interopRequireDefault(_utils); |
28932 | 28596 | ||
28933 | var _getOffsetParent = __webpack_require__(229); | 28597 | var _getOffsetParent = __webpack_require__(235); |
28934 | 28598 | ||
28935 | var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); | 28599 | var _getOffsetParent2 = _interopRequireDefault(_getOffsetParent); |
28936 | 28600 | ||
@@ -28998,7 +28662,7 @@ | |||
28998 | module.exports = exports['default']; | 28662 | module.exports = exports['default']; |
28999 | 28663 | ||
29000 | /***/ }, | 28664 | /***/ }, |
29001 | /* 231 */ | 28665 | /* 237 */ |
29002 | /***/ function(module, exports, __webpack_require__) { | 28666 | /***/ function(module, exports, __webpack_require__) { |
29003 | 28667 | ||
29004 | 'use strict'; | 28668 | 'use strict'; |
@@ -29007,7 +28671,7 @@ | |||
29007 | value: true | 28671 | value: true |
29008 | }); | 28672 | }); |
29009 | 28673 | ||
29010 | var _utils = __webpack_require__(227); | 28674 | var _utils = __webpack_require__(233); |
29011 | 28675 | ||
29012 | var _utils2 = _interopRequireDefault(_utils); | 28676 | var _utils2 = _interopRequireDefault(_utils); |
29013 | 28677 | ||
@@ -29058,7 +28722,7 @@ | |||
29058 | module.exports = exports['default']; | 28722 | module.exports = exports['default']; |
29059 | 28723 | ||
29060 | /***/ }, | 28724 | /***/ }, |
29061 | /* 232 */ | 28725 | /* 238 */ |
29062 | /***/ function(module, exports, __webpack_require__) { | 28726 | /***/ function(module, exports, __webpack_require__) { |
29063 | 28727 | ||
29064 | 'use strict'; | 28728 | 'use strict'; |
@@ -29067,7 +28731,7 @@ | |||
29067 | value: true | 28731 | value: true |
29068 | }); | 28732 | }); |
29069 | 28733 | ||
29070 | var _utils = __webpack_require__(227); | 28734 | var _utils = __webpack_require__(233); |
29071 | 28735 | ||
29072 | var _utils2 = _interopRequireDefault(_utils); | 28736 | var _utils2 = _interopRequireDefault(_utils); |
29073 | 28737 | ||
@@ -29099,7 +28763,7 @@ | |||
29099 | module.exports = exports['default']; | 28763 | module.exports = exports['default']; |
29100 | 28764 | ||
29101 | /***/ }, | 28765 | /***/ }, |
29102 | /* 233 */ | 28766 | /* 239 */ |
29103 | /***/ function(module, exports, __webpack_require__) { | 28767 | /***/ function(module, exports, __webpack_require__) { |
29104 | 28768 | ||
29105 | 'use strict'; | 28769 | 'use strict'; |
@@ -29108,7 +28772,7 @@ | |||
29108 | value: true | 28772 | value: true |
29109 | }); | 28773 | }); |
29110 | 28774 | ||
29111 | var _getAlignOffset = __webpack_require__(234); | 28775 | var _getAlignOffset = __webpack_require__(240); |
29112 | 28776 | ||
29113 | var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset); | 28777 | var _getAlignOffset2 = _interopRequireDefault(_getAlignOffset); |
29114 | 28778 | ||
@@ -29140,7 +28804,7 @@ | |||
29140 | module.exports = exports['default']; | 28804 | module.exports = exports['default']; |
29141 | 28805 | ||
29142 | /***/ }, | 28806 | /***/ }, |
29143 | /* 234 */ | 28807 | /* 240 */ |
29144 | /***/ function(module, exports) { | 28808 | /***/ function(module, exports) { |
29145 | 28809 | ||
29146 | 'use strict'; | 28810 | 'use strict'; |
@@ -29185,7 +28849,7 @@ | |||
29185 | module.exports = exports['default']; | 28849 | module.exports = exports['default']; |
29186 | 28850 | ||
29187 | /***/ }, | 28851 | /***/ }, |
29188 | /* 235 */ | 28852 | /* 241 */ |
29189 | /***/ function(module, exports) { | 28853 | /***/ function(module, exports) { |
29190 | 28854 | ||
29191 | "use strict"; | 28855 | "use strict"; |
@@ -29202,16 +28866,16 @@ | |||
29202 | module.exports = exports['default']; | 28866 | module.exports = exports['default']; |
29203 | 28867 | ||
29204 | /***/ }, | 28868 | /***/ }, |
29205 | /* 236 */ | 28869 | /* 242 */ |
29206 | /***/ function(module, exports, __webpack_require__) { | 28870 | /***/ function(module, exports, __webpack_require__) { |
29207 | 28871 | ||
29208 | 'use strict'; | 28872 | 'use strict'; |
29209 | 28873 | ||
29210 | // export this package's api | 28874 | // export this package's api |
29211 | module.exports = __webpack_require__(237); | 28875 | module.exports = __webpack_require__(243); |
29212 | 28876 | ||
29213 | /***/ }, | 28877 | /***/ }, |
29214 | /* 237 */ | 28878 | /* 243 */ |
29215 | /***/ function(module, exports, __webpack_require__) { | 28879 | /***/ function(module, exports, __webpack_require__) { |
29216 | 28880 | ||
29217 | 'use strict'; | 28881 | 'use strict'; |
@@ -29224,13 +28888,13 @@ | |||
29224 | 28888 | ||
29225 | var _react2 = _interopRequireDefault(_react); | 28889 | var _react2 = _interopRequireDefault(_react); |
29226 | 28890 | ||
29227 | var _ChildrenUtils = __webpack_require__(238); | 28891 | var _ChildrenUtils = __webpack_require__(244); |
29228 | 28892 | ||
29229 | var _AnimateChild = __webpack_require__(239); | 28893 | var _AnimateChild = __webpack_require__(245); |
29230 | 28894 | ||
29231 | var _AnimateChild2 = _interopRequireDefault(_AnimateChild); | 28895 | var _AnimateChild2 = _interopRequireDefault(_AnimateChild); |
29232 | 28896 | ||
29233 | var _util = __webpack_require__(244); | 28897 | var _util = __webpack_require__(250); |
29234 | 28898 | ||
29235 | var _util2 = _interopRequireDefault(_util); | 28899 | var _util2 = _interopRequireDefault(_util); |
29236 | 28900 | ||
@@ -29543,7 +29207,7 @@ | |||
29543 | module.exports = exports['default']; | 29207 | module.exports = exports['default']; |
29544 | 29208 | ||
29545 | /***/ }, | 29209 | /***/ }, |
29546 | /* 238 */ | 29210 | /* 244 */ |
29547 | /***/ function(module, exports, __webpack_require__) { | 29211 | /***/ function(module, exports, __webpack_require__) { |
29548 | 29212 | ||
29549 | 'use strict'; | 29213 | 'use strict'; |
@@ -29665,7 +29329,7 @@ | |||
29665 | } | 29329 | } |
29666 | 29330 | ||
29667 | /***/ }, | 29331 | /***/ }, |
29668 | /* 239 */ | 29332 | /* 245 */ |
29669 | /***/ function(module, exports, __webpack_require__) { | 29333 | /***/ function(module, exports, __webpack_require__) { |
29670 | 29334 | ||
29671 | 'use strict'; | 29335 | 'use strict'; |
@@ -29680,15 +29344,15 @@ | |||
29680 | 29344 | ||
29681 | var _react2 = _interopRequireDefault(_react); | 29345 | var _react2 = _interopRequireDefault(_react); |
29682 | 29346 | ||
29683 | var _reactDom = __webpack_require__(36); | 29347 | var _reactDom = __webpack_require__(34); |
29684 | 29348 | ||
29685 | var _reactDom2 = _interopRequireDefault(_reactDom); | 29349 | var _reactDom2 = _interopRequireDefault(_reactDom); |
29686 | 29350 | ||
29687 | var _cssAnimation = __webpack_require__(240); | 29351 | var _cssAnimation = __webpack_require__(246); |
29688 | 29352 | ||
29689 | var _cssAnimation2 = _interopRequireDefault(_cssAnimation); | 29353 | var _cssAnimation2 = _interopRequireDefault(_cssAnimation); |
29690 | 29354 | ||
29691 | var _util = __webpack_require__(244); | 29355 | var _util = __webpack_require__(250); |
29692 | 29356 | ||
29693 | var _util2 = _interopRequireDefault(_util); | 29357 | var _util2 = _interopRequireDefault(_util); |
29694 | 29358 | ||
@@ -29776,7 +29440,7 @@ | |||
29776 | module.exports = exports['default']; | 29440 | module.exports = exports['default']; |
29777 | 29441 | ||
29778 | /***/ }, | 29442 | /***/ }, |
29779 | /* 240 */ | 29443 | /* 246 */ |
29780 | /***/ function(module, exports, __webpack_require__) { | 29444 | /***/ function(module, exports, __webpack_require__) { |
29781 | 29445 | ||
29782 | 'use strict'; | 29446 | 'use strict'; |
@@ -29785,13 +29449,13 @@ | |||
29785 | value: true | 29449 | value: true |
29786 | }); | 29450 | }); |
29787 | 29451 | ||
29788 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | 29452 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; |
29789 | 29453 | ||
29790 | var _Event = __webpack_require__(241); | 29454 | var _Event = __webpack_require__(247); |
29791 | 29455 | ||
29792 | var _Event2 = _interopRequireDefault(_Event); | 29456 | var _Event2 = _interopRequireDefault(_Event); |
29793 | 29457 | ||
29794 | var _componentClasses = __webpack_require__(242); | 29458 | var _componentClasses = __webpack_require__(248); |
29795 | 29459 | ||
29796 | var _componentClasses2 = _interopRequireDefault(_componentClasses); | 29460 | var _componentClasses2 = _interopRequireDefault(_componentClasses); |
29797 | 29461 | ||
@@ -29806,8 +29470,8 @@ | |||
29806 | var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', '']; | 29470 | var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', '']; |
29807 | 29471 | ||
29808 | function getStyleProperty(node, name) { | 29472 | function getStyleProperty(node, name) { |
29809 | var style = window.getComputedStyle(node); | 29473 | // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle |
29810 | 29474 | var style = window.getComputedStyle(node, null); | |
29811 | var ret = ''; | 29475 | var ret = ''; |
29812 | for (var i = 0; i < prefixes.length; i++) { | 29476 | for (var i = 0; i < prefixes.length; i++) { |
29813 | ret = style.getPropertyValue(prefixes[i] + name); | 29477 | ret = style.getPropertyValue(prefixes[i] + name); |
@@ -29971,7 +29635,7 @@ | |||
29971 | module.exports = exports['default']; | 29635 | module.exports = exports['default']; |
29972 | 29636 | ||
29973 | /***/ }, | 29637 | /***/ }, |
29974 | /* 241 */ | 29638 | /* 247 */ |
29975 | /***/ function(module, exports) { | 29639 | /***/ function(module, exports) { |
29976 | 29640 | ||
29977 | 'use strict'; | 29641 | 'use strict'; |
@@ -30064,7 +29728,7 @@ | |||
30064 | module.exports = exports['default']; | 29728 | module.exports = exports['default']; |
30065 | 29729 | ||
30066 | /***/ }, | 29730 | /***/ }, |
30067 | /* 242 */ | 29731 | /* 248 */ |
30068 | /***/ function(module, exports, __webpack_require__) { | 29732 | /***/ function(module, exports, __webpack_require__) { |
30069 | 29733 | ||
30070 | /** | 29734 | /** |
@@ -30072,9 +29736,9 @@ | |||
30072 | */ | 29736 | */ |
30073 | 29737 | ||
30074 | try { | 29738 | try { |
30075 | var index = __webpack_require__(243); | 29739 | var index = __webpack_require__(249); |
30076 | } catch (err) { | 29740 | } catch (err) { |
30077 | var index = __webpack_require__(243); | 29741 | var index = __webpack_require__(249); |
30078 | } | 29742 | } |
30079 | 29743 | ||
30080 | /** | 29744 | /** |
@@ -30261,7 +29925,7 @@ | |||
30261 | 29925 | ||
30262 | 29926 | ||
30263 | /***/ }, | 29927 | /***/ }, |
30264 | /* 243 */ | 29928 | /* 249 */ |
30265 | /***/ function(module, exports) { | 29929 | /***/ function(module, exports) { |
30266 | 29930 | ||
30267 | module.exports = function(arr, obj){ | 29931 | module.exports = function(arr, obj){ |
@@ -30273,7 +29937,7 @@ | |||
30273 | }; | 29937 | }; |
30274 | 29938 | ||
30275 | /***/ }, | 29939 | /***/ }, |
30276 | /* 244 */ | 29940 | /* 250 */ |
30277 | /***/ function(module, exports) { | 29941 | /***/ function(module, exports) { |
30278 | 29942 | ||
30279 | "use strict"; | 29943 | "use strict"; |
@@ -30305,7 +29969,7 @@ | |||
30305 | module.exports = exports['default']; | 29969 | module.exports = exports['default']; |
30306 | 29970 | ||
30307 | /***/ }, | 29971 | /***/ }, |
30308 | /* 245 */ | 29972 | /* 251 */ |
30309 | /***/ function(module, exports, __webpack_require__) { | 29973 | /***/ function(module, exports, __webpack_require__) { |
30310 | 29974 | ||
30311 | 'use strict'; | 29975 | 'use strict'; |
@@ -30318,7 +29982,7 @@ | |||
30318 | 29982 | ||
30319 | var _react2 = _interopRequireDefault(_react); | 29983 | var _react2 = _interopRequireDefault(_react); |
30320 | 29984 | ||
30321 | var _LazyRenderBox = __webpack_require__(246); | 29985 | var _LazyRenderBox = __webpack_require__(252); |
30322 | 29986 | ||
30323 | var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); | 29987 | var _LazyRenderBox2 = _interopRequireDefault(_LazyRenderBox); |
30324 | 29988 | ||
@@ -30362,7 +30026,7 @@ | |||
30362 | module.exports = exports['default']; | 30026 | module.exports = exports['default']; |
30363 | 30027 | ||
30364 | /***/ }, | 30028 | /***/ }, |
30365 | /* 246 */ | 30029 | /* 252 */ |
30366 | /***/ function(module, exports, __webpack_require__) { | 30030 | /***/ function(module, exports, __webpack_require__) { |
30367 | 30031 | ||
30368 | 'use strict'; | 30032 | 'use strict'; |
@@ -30371,7 +30035,7 @@ | |||
30371 | value: true | 30035 | value: true |
30372 | }); | 30036 | }); |
30373 | 30037 | ||
30374 | var _objectWithoutProperties2 = __webpack_require__(247); | 30038 | var _objectWithoutProperties2 = __webpack_require__(253); |
30375 | 30039 | ||
30376 | var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); | 30040 | var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); |
30377 | 30041 | ||
@@ -30394,10 +30058,10 @@ | |||
30394 | return nextProps.hiddenClassName || nextProps.visible; | 30058 | return nextProps.hiddenClassName || nextProps.visible; |
30395 | }, | 30059 | }, |
30396 | render: function render() { | 30060 | render: function render() { |
30397 | var _props = this.props; | 30061 | var _props = this.props, |
30398 | var hiddenClassName = _props.hiddenClassName; | 30062 | hiddenClassName = _props.hiddenClassName, |
30399 | var visible = _props.visible; | 30063 | visible = _props.visible, |
30400 | var props = (0, _objectWithoutProperties3["default"])(_props, ['hiddenClassName', 'visible']); | 30064 | props = (0, _objectWithoutProperties3["default"])(_props, ['hiddenClassName', 'visible']); |
30401 | 30065 | ||
30402 | 30066 | ||
30403 | if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) { | 30067 | if (hiddenClassName || _react2["default"].Children.count(props.children) > 1) { |
@@ -30415,7 +30079,7 @@ | |||
30415 | module.exports = exports['default']; | 30079 | module.exports = exports['default']; |
30416 | 30080 | ||
30417 | /***/ }, | 30081 | /***/ }, |
30418 | /* 247 */ | 30082 | /* 253 */ |
30419 | /***/ function(module, exports) { | 30083 | /***/ function(module, exports) { |
30420 | 30084 | ||
30421 | "use strict"; | 30085 | "use strict"; |
@@ -30435,7 +30099,7 @@ | |||
30435 | }; | 30099 | }; |
30436 | 30100 | ||
30437 | /***/ }, | 30101 | /***/ }, |
30438 | /* 248 */ | 30102 | /* 254 */ |
30439 | /***/ function(module, exports, __webpack_require__) { | 30103 | /***/ function(module, exports, __webpack_require__) { |
30440 | 30104 | ||
30441 | 'use strict'; | 30105 | 'use strict'; |
@@ -30444,7 +30108,7 @@ | |||
30444 | value: true | 30108 | value: true |
30445 | }); | 30109 | }); |
30446 | 30110 | ||
30447 | var _extends2 = __webpack_require__(180); | 30111 | var _extends2 = __webpack_require__(186); |
30448 | 30112 | ||
30449 | var _extends3 = _interopRequireDefault(_extends2); | 30113 | var _extends3 = _interopRequireDefault(_extends2); |
30450 | 30114 | ||
@@ -30475,7 +30139,7 @@ | |||
30475 | } | 30139 | } |
30476 | 30140 | ||
30477 | /***/ }, | 30141 | /***/ }, |
30478 | /* 249 */ | 30142 | /* 255 */ |
30479 | /***/ function(module, exports, __webpack_require__) { | 30143 | /***/ function(module, exports, __webpack_require__) { |
30480 | 30144 | ||
30481 | 'use strict'; | 30145 | 'use strict'; |
@@ -30488,7 +30152,7 @@ | |||
30488 | 30152 | ||
30489 | exports["default"] = getContainerRenderMixin; | 30153 | exports["default"] = getContainerRenderMixin; |
30490 | 30154 | ||
30491 | var _reactDom = __webpack_require__(36); | 30155 | var _reactDom = __webpack_require__(34); |
30492 | 30156 | ||
30493 | var _reactDom2 = _interopRequireDefault(_reactDom); | 30157 | var _reactDom2 = _interopRequireDefault(_reactDom); |
30494 | 30158 | ||
@@ -30501,14 +30165,14 @@ | |||
30501 | } | 30165 | } |
30502 | 30166 | ||
30503 | function getContainerRenderMixin(config) { | 30167 | function getContainerRenderMixin(config) { |
30504 | var _config$autoMount = config.autoMount; | 30168 | var _config$autoMount = config.autoMount, |
30505 | var autoMount = _config$autoMount === undefined ? true : _config$autoMount; | 30169 | autoMount = _config$autoMount === undefined ? true : _config$autoMount, |
30506 | var _config$autoDestroy = config.autoDestroy; | 30170 | _config$autoDestroy = config.autoDestroy, |
30507 | var autoDestroy = _config$autoDestroy === undefined ? true : _config$autoDestroy; | 30171 | autoDestroy = _config$autoDestroy === undefined ? true : _config$autoDestroy, |
30508 | var isVisible = config.isVisible; | 30172 | isVisible = config.isVisible, |
30509 | var getComponent = config.getComponent; | 30173 | getComponent = config.getComponent, |
30510 | var _config$getContainer = config.getContainer; | 30174 | _config$getContainer = config.getContainer, |
30511 | var getContainer = _config$getContainer === undefined ? defaultGetContainer : _config$getContainer; | 30175 | getContainer = _config$getContainer === undefined ? defaultGetContainer : _config$getContainer; |
30512 | 30176 | ||
30513 | 30177 | ||
30514 | var mixin = void 0; | 30178 | var mixin = void 0; |
@@ -30518,7 +30182,13 @@ | |||
30518 | if (!instance._container) { | 30182 | if (!instance._container) { |
30519 | instance._container = getContainer(instance); | 30183 | instance._container = getContainer(instance); |
30520 | } | 30184 | } |
30521 | _reactDom2["default"].unstable_renderSubtreeIntoContainer(instance, getComponent(instance, componentArg), instance._container, function callback() { | 30185 | var component = void 0; |
30186 | if (instance.getComponent) { | ||
30187 | component = instance.getComponent(componentArg); | ||
30188 | } else { | ||
30189 | component = getComponent(instance, componentArg); | ||
30190 | } | ||
30191 | _reactDom2["default"].unstable_renderSubtreeIntoContainer(instance, component, instance._container, function callback() { | ||
30522 | instance._component = this; | 30192 | instance._component = this; |
30523 | if (ready) { | 30193 | if (ready) { |
30524 | ready.call(this); | 30194 | ready.call(this); |
@@ -30574,7 +30244,7 @@ | |||
30574 | module.exports = exports['default']; | 30244 | module.exports = exports['default']; |
30575 | 30245 | ||
30576 | /***/ }, | 30246 | /***/ }, |
30577 | /* 250 */ | 30247 | /* 256 */ |
30578 | /***/ function(module, exports, __webpack_require__) { | 30248 | /***/ function(module, exports, __webpack_require__) { |
30579 | 30249 | ||
30580 | 'use strict'; | 30250 | 'use strict'; |
@@ -30583,7 +30253,7 @@ | |||
30583 | value: true | 30253 | value: true |
30584 | }); | 30254 | }); |
30585 | 30255 | ||
30586 | var _defineProperty2 = __webpack_require__(251); | 30256 | var _defineProperty2 = __webpack_require__(257); |
30587 | 30257 | ||
30588 | var _defineProperty3 = _interopRequireDefault(_defineProperty2); | 30258 | var _defineProperty3 = _interopRequireDefault(_defineProperty2); |
30589 | 30259 | ||
@@ -30591,19 +30261,19 @@ | |||
30591 | 30261 | ||
30592 | var _react2 = _interopRequireDefault(_react); | 30262 | var _react2 = _interopRequireDefault(_react); |
30593 | 30263 | ||
30594 | var _Header = __webpack_require__(255); | 30264 | var _Header = __webpack_require__(261); |
30595 | 30265 | ||
30596 | var _Header2 = _interopRequireDefault(_Header); | 30266 | var _Header2 = _interopRequireDefault(_Header); |
30597 | 30267 | ||
30598 | var _Combobox = __webpack_require__(256); | 30268 | var _Combobox = __webpack_require__(262); |
30599 | 30269 | ||
30600 | var _Combobox2 = _interopRequireDefault(_Combobox); | 30270 | var _Combobox2 = _interopRequireDefault(_Combobox); |
30601 | 30271 | ||
30602 | var _moment = __webpack_require__(174); | 30272 | var _moment = __webpack_require__(180); |
30603 | 30273 | ||
30604 | var _moment2 = _interopRequireDefault(_moment); | 30274 | var _moment2 = _interopRequireDefault(_moment); |
30605 | 30275 | ||
30606 | var _classnames = __webpack_require__(258); | 30276 | var _classnames = __webpack_require__(264); |
30607 | 30277 | ||
30608 | var _classnames2 = _interopRequireDefault(_classnames); | 30278 | var _classnames2 = _interopRequireDefault(_classnames); |
30609 | 30279 | ||
@@ -30764,14 +30434,14 @@ | |||
30764 | module.exports = exports['default']; | 30434 | module.exports = exports['default']; |
30765 | 30435 | ||
30766 | /***/ }, | 30436 | /***/ }, |
30767 | /* 251 */ | 30437 | /* 257 */ |
30768 | /***/ function(module, exports, __webpack_require__) { | 30438 | /***/ function(module, exports, __webpack_require__) { |
30769 | 30439 | ||
30770 | "use strict"; | 30440 | "use strict"; |
30771 | 30441 | ||
30772 | exports.__esModule = true; | 30442 | exports.__esModule = true; |
30773 | 30443 | ||
30774 | var _defineProperty = __webpack_require__(252); | 30444 | var _defineProperty = __webpack_require__(258); |
30775 | 30445 | ||
30776 | var _defineProperty2 = _interopRequireDefault(_defineProperty); | 30446 | var _defineProperty2 = _interopRequireDefault(_defineProperty); |
30777 | 30447 | ||
@@ -30793,31 +30463,31 @@ | |||
30793 | }; | 30463 | }; |
30794 | 30464 | ||
30795 | /***/ }, | 30465 | /***/ }, |
30796 | /* 252 */ | 30466 | /* 258 */ |
30797 | /***/ function(module, exports, __webpack_require__) { | 30467 | /***/ function(module, exports, __webpack_require__) { |
30798 | 30468 | ||
30799 | module.exports = { "default": __webpack_require__(253), __esModule: true }; | 30469 | module.exports = { "default": __webpack_require__(259), __esModule: true }; |
30800 | 30470 | ||
30801 | /***/ }, | 30471 | /***/ }, |
30802 | /* 253 */ | 30472 | /* 259 */ |
30803 | /***/ function(module, exports, __webpack_require__) { | 30473 | /***/ function(module, exports, __webpack_require__) { |
30804 | 30474 | ||
30805 | __webpack_require__(254); | 30475 | __webpack_require__(260); |
30806 | var $Object = __webpack_require__(186).Object; | 30476 | var $Object = __webpack_require__(192).Object; |
30807 | module.exports = function defineProperty(it, key, desc){ | 30477 | module.exports = function defineProperty(it, key, desc){ |
30808 | return $Object.defineProperty(it, key, desc); | 30478 | return $Object.defineProperty(it, key, desc); |
30809 | }; | 30479 | }; |
30810 | 30480 | ||
30811 | /***/ }, | 30481 | /***/ }, |
30812 | /* 254 */ | 30482 | /* 260 */ |
30813 | /***/ function(module, exports, __webpack_require__) { | 30483 | /***/ function(module, exports, __webpack_require__) { |
30814 | 30484 | ||
30815 | var $export = __webpack_require__(184); | 30485 | var $export = __webpack_require__(190); |
30816 | // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | 30486 | // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) |
30817 | $export($export.S + $export.F * !__webpack_require__(194), 'Object', {defineProperty: __webpack_require__(190).f}); | 30487 | $export($export.S + $export.F * !__webpack_require__(200), 'Object', {defineProperty: __webpack_require__(196).f}); |
30818 | 30488 | ||
30819 | /***/ }, | 30489 | /***/ }, |
30820 | /* 255 */ | 30490 | /* 261 */ |
30821 | /***/ function(module, exports, __webpack_require__) { | 30491 | /***/ function(module, exports, __webpack_require__) { |
30822 | 30492 | ||
30823 | 'use strict'; | 30493 | 'use strict'; |
@@ -30830,7 +30500,7 @@ | |||
30830 | 30500 | ||
30831 | var _react2 = _interopRequireDefault(_react); | 30501 | var _react2 = _interopRequireDefault(_react); |
30832 | 30502 | ||
30833 | var _moment = __webpack_require__(174); | 30503 | var _moment = __webpack_require__(180); |
30834 | 30504 | ||
30835 | var _moment2 = _interopRequireDefault(_moment); | 30505 | var _moment2 = _interopRequireDefault(_moment); |
30836 | 30506 | ||
@@ -31013,7 +30683,7 @@ | |||
31013 | module.exports = exports['default']; | 30683 | module.exports = exports['default']; |
31014 | 30684 | ||
31015 | /***/ }, | 30685 | /***/ }, |
31016 | /* 256 */ | 30686 | /* 262 */ |
31017 | /***/ function(module, exports, __webpack_require__) { | 30687 | /***/ function(module, exports, __webpack_require__) { |
31018 | 30688 | ||
31019 | 'use strict'; | 30689 | 'use strict'; |
@@ -31026,7 +30696,7 @@ | |||
31026 | 30696 | ||
31027 | var _react2 = _interopRequireDefault(_react); | 30697 | var _react2 = _interopRequireDefault(_react); |
31028 | 30698 | ||
31029 | var _Select = __webpack_require__(257); | 30699 | var _Select = __webpack_require__(263); |
31030 | 30700 | ||
31031 | var _Select2 = _interopRequireDefault(_Select); | 30701 | var _Select2 = _interopRequireDefault(_Select); |
31032 | 30702 | ||
@@ -31181,7 +30851,7 @@ | |||
31181 | module.exports = exports['default']; | 30851 | module.exports = exports['default']; |
31182 | 30852 | ||
31183 | /***/ }, | 30853 | /***/ }, |
31184 | /* 257 */ | 30854 | /* 263 */ |
31185 | /***/ function(module, exports, __webpack_require__) { | 30855 | /***/ function(module, exports, __webpack_require__) { |
31186 | 30856 | ||
31187 | 'use strict'; | 30857 | 'use strict'; |
@@ -31190,7 +30860,7 @@ | |||
31190 | value: true | 30860 | value: true |
31191 | }); | 30861 | }); |
31192 | 30862 | ||
31193 | var _defineProperty2 = __webpack_require__(251); | 30863 | var _defineProperty2 = __webpack_require__(257); |
31194 | 30864 | ||
31195 | var _defineProperty3 = _interopRequireDefault(_defineProperty2); | 30865 | var _defineProperty3 = _interopRequireDefault(_defineProperty2); |
31196 | 30866 | ||
@@ -31198,11 +30868,11 @@ | |||
31198 | 30868 | ||
31199 | var _react2 = _interopRequireDefault(_react); | 30869 | var _react2 = _interopRequireDefault(_react); |
31200 | 30870 | ||
31201 | var _reactDom = __webpack_require__(36); | 30871 | var _reactDom = __webpack_require__(34); |
31202 | 30872 | ||
31203 | var _reactDom2 = _interopRequireDefault(_reactDom); | 30873 | var _reactDom2 = _interopRequireDefault(_reactDom); |
31204 | 30874 | ||
31205 | var _classnames2 = __webpack_require__(258); | 30875 | var _classnames2 = __webpack_require__(264); |
31206 | 30876 | ||
31207 | var _classnames3 = _interopRequireDefault(_classnames2); | 30877 | var _classnames3 = _interopRequireDefault(_classnames2); |
31208 | 30878 | ||
@@ -31326,7 +30996,7 @@ | |||
31326 | module.exports = exports['default']; | 30996 | module.exports = exports['default']; |
31327 | 30997 | ||
31328 | /***/ }, | 30998 | /***/ }, |
31329 | /* 258 */ | 30999 | /* 264 */ |
31330 | /***/ function(module, exports, __webpack_require__) { | 31000 | /***/ function(module, exports, __webpack_require__) { |
31331 | 31001 | ||
31332 | var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! | 31002 | var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! |
@@ -31380,7 +31050,7 @@ | |||
31380 | 31050 | ||
31381 | 31051 | ||
31382 | /***/ }, | 31052 | /***/ }, |
31383 | /* 259 */ | 31053 | /* 265 */ |
31384 | /***/ function(module, exports) { | 31054 | /***/ function(module, exports) { |
31385 | 31055 | ||
31386 | 'use strict'; | 31056 | 'use strict'; |
@@ -31425,6 +31095,128 @@ | |||
31425 | exports.default = placements; | 31095 | exports.default = placements; |
31426 | module.exports = exports['default']; | 31096 | module.exports = exports['default']; |
31427 | 31097 | ||
31098 | /***/ }, | ||
31099 | /* 266 */, | ||
31100 | /* 267 */, | ||
31101 | /* 268 */, | ||
31102 | /* 269 */, | ||
31103 | /* 270 */, | ||
31104 | /* 271 */ | ||
31105 | /***/ function(module, exports, __webpack_require__, __webpack_module_template_argument_0__) { | ||
31106 | |||
31107 | /* WEBPACK VAR INJECTION */(function(process) {/** | ||
31108 | * Copyright 2013-present, Facebook, Inc. | ||
31109 | * All rights reserved. | ||
31110 | * | ||
31111 | * This source code is licensed under the BSD-style license found in the | ||
31112 | * LICENSE file in the root directory of this source tree. An additional grant | ||
31113 | * of patent rights can be found in the PATENTS file in the same directory. | ||
31114 | * | ||
31115 | * | ||
31116 | */ | ||
31117 | |||
31118 | 'use strict'; | ||
31119 | |||
31120 | var _prodInvariant = __webpack_require__(__webpack_module_template_argument_0__); | ||
31121 | |||
31122 | var invariant = __webpack_require__(10); | ||
31123 | |||
31124 | /** | ||
31125 | * Static poolers. Several custom versions for each potential number of | ||
31126 | * arguments. A completely generic pooler is easy to implement, but would | ||
31127 | * require accessing the `arguments` object. In each of these, `this` refers to | ||
31128 | * the Class itself, not an instance. If any others are needed, simply add them | ||
31129 | * here, or in their own files. | ||
31130 | */ | ||
31131 | var oneArgumentPooler = function (copyFieldsFrom) { | ||
31132 | var Klass = this; | ||
31133 | if (Klass.instancePool.length) { | ||
31134 | var instance = Klass.instancePool.pop(); | ||
31135 | Klass.call(instance, copyFieldsFrom); | ||
31136 | return instance; | ||
31137 | } else { | ||
31138 | return new Klass(copyFieldsFrom); | ||
31139 | } | ||
31140 | }; | ||
31141 | |||
31142 | var twoArgumentPooler = function (a1, a2) { | ||
31143 | var Klass = this; | ||
31144 | if (Klass.instancePool.length) { | ||
31145 | var instance = Klass.instancePool.pop(); | ||
31146 | Klass.call(instance, a1, a2); | ||
31147 | return instance; | ||
31148 | } else { | ||
31149 | return new Klass(a1, a2); | ||
31150 | } | ||
31151 | }; | ||
31152 | |||
31153 | var threeArgumentPooler = function (a1, a2, a3) { | ||
31154 | var Klass = this; | ||
31155 | if (Klass.instancePool.length) { | ||
31156 | var instance = Klass.instancePool.pop(); | ||
31157 | Klass.call(instance, a1, a2, a3); | ||
31158 | return instance; | ||
31159 | } else { | ||
31160 | return new Klass(a1, a2, a3); | ||
31161 | } | ||
31162 | }; | ||
31163 | |||
31164 | var fourArgumentPooler = function (a1, a2, a3, a4) { | ||
31165 | var Klass = this; | ||
31166 | if (Klass.instancePool.length) { | ||
31167 | var instance = Klass.instancePool.pop(); | ||
31168 | Klass.call(instance, a1, a2, a3, a4); | ||
31169 | return instance; | ||
31170 | } else { | ||
31171 | return new Klass(a1, a2, a3, a4); | ||
31172 | } | ||
31173 | }; | ||
31174 | |||
31175 | var standardReleaser = function (instance) { | ||
31176 | var Klass = this; | ||
31177 | !(instance instanceof Klass) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0; | ||
31178 | instance.destructor(); | ||
31179 | if (Klass.instancePool.length < Klass.poolSize) { | ||
31180 | Klass.instancePool.push(instance); | ||
31181 | } | ||
31182 | }; | ||
31183 | |||
31184 | var DEFAULT_POOL_SIZE = 10; | ||
31185 | var DEFAULT_POOLER = oneArgumentPooler; | ||
31186 | |||
31187 | /** | ||
31188 | * Augments `CopyConstructor` to be a poolable class, augmenting only the class | ||
31189 | * itself (statically) not adding any prototypical fields. Any CopyConstructor | ||
31190 | * you give this may have a `poolSize` property, and will look for a | ||
31191 | * prototypical `destructor` on instances. | ||
31192 | * | ||
31193 | * @param {Function} CopyConstructor Constructor that can be used to reset. | ||
31194 | * @param {Function} pooler Customizable pooler. | ||
31195 | */ | ||
31196 | var addPoolingTo = function (CopyConstructor, pooler) { | ||
31197 | // Casting as any so that flow ignores the actual implementation and trusts | ||
31198 | // it to match the type we declared | ||
31199 | var NewKlass = CopyConstructor; | ||
31200 | NewKlass.instancePool = []; | ||
31201 | NewKlass.getPooled = pooler || DEFAULT_POOLER; | ||
31202 | if (!NewKlass.poolSize) { | ||
31203 | NewKlass.poolSize = DEFAULT_POOL_SIZE; | ||
31204 | } | ||
31205 | NewKlass.release = standardReleaser; | ||
31206 | return NewKlass; | ||
31207 | }; | ||
31208 | |||
31209 | var PooledClass = { | ||
31210 | addPoolingTo: addPoolingTo, | ||
31211 | oneArgumentPooler: oneArgumentPooler, | ||
31212 | twoArgumentPooler: twoArgumentPooler, | ||
31213 | threeArgumentPooler: threeArgumentPooler, | ||
31214 | fourArgumentPooler: fourArgumentPooler | ||
31215 | }; | ||
31216 | |||
31217 | module.exports = PooledClass; | ||
31218 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(5))) | ||
31219 | |||
31428 | /***/ } | 31220 | /***/ } |
31429 | /******/ ]); | 31221 | /******/ ]))); |
31430 | //# sourceMappingURL=common.js.map \ No newline at end of file | 31222 | //# sourceMappingURL=common.js.map \ No newline at end of file |