@@ -52,15 +52,25 @@ return /******/ (function(modules) { // webpackBootstrap
5252/************************************************************************/
5353/******/ ( [
5454/* 0 */
55- /***/ function ( module , exports , __webpack_require__ ) {
55+ /***/ ( function ( module , exports , __webpack_require__ ) {
5656
5757 'use strict' ;
5858
59- module . exports = __webpack_require__ ( 1 ) ;
59+ Object . defineProperty ( exports , "__esModule" , {
60+ value : true
61+ } ) ;
62+
63+ var _Modal = __webpack_require__ ( 1 ) ;
64+
65+ var _Modal2 = _interopRequireDefault ( _Modal ) ;
66+
67+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
6068
61- /***/ } ,
69+ exports . default = _Modal2 . default ;
70+
71+ /***/ } ) ,
6272/* 1 */
63- /***/ function ( module , exports , __webpack_require__ ) {
73+ /***/ ( function ( module , exports , __webpack_require__ ) {
6474
6575 'use strict' ;
6676
@@ -312,21 +322,21 @@ return /******/ (function(modules) { // webpackBootstrap
312322 } ;
313323 exports . default = Modal ;
314324
315- /***/ } ,
325+ /***/ } ) ,
316326/* 2 */
317- /***/ function ( module , exports ) {
327+ /***/ ( function ( module , exports ) {
318328
319329 module . exports = __WEBPACK_EXTERNAL_MODULE_2__ ;
320330
321- /***/ } ,
331+ /***/ } ) ,
322332/* 3 */
323- /***/ function ( module , exports ) {
333+ /***/ ( function ( module , exports ) {
324334
325335 module . exports = __WEBPACK_EXTERNAL_MODULE_3__ ;
326336
327- /***/ } ,
337+ /***/ } ) ,
328338/* 4 */
329- /***/ function ( module , exports , __webpack_require__ ) {
339+ /***/ ( function ( module , exports , __webpack_require__ ) {
330340
331341 /**
332342 * Copyright 2013-present, Facebook, Inc.
@@ -360,9 +370,9 @@ return /******/ (function(modules) { // webpackBootstrap
360370 }
361371
362372
363- /***/ } ,
373+ /***/ } ) ,
364374/* 5 */
365- /***/ function ( module , exports , __webpack_require__ ) {
375+ /***/ ( function ( module , exports , __webpack_require__ ) {
366376
367377 /**
368378 * Copyright 2013-present, Facebook, Inc.
@@ -514,6 +524,7 @@ return /******/ (function(modules) { // webpackBootstrap
514524 function createChainableTypeChecker ( validate ) {
515525 if ( ( undefined ) !== 'production' ) {
516526 var manualPropTypeCallCache = { } ;
527+ var manualPropTypeWarningCount = 0 ;
517528 }
518529 function checkType ( isRequired , props , propName , componentName , location , propFullName , secret ) {
519530 componentName = componentName || ANONYMOUS ;
@@ -531,7 +542,11 @@ return /******/ (function(modules) { // webpackBootstrap
531542 } else if ( ( undefined ) !== 'production' && typeof console !== 'undefined' ) {
532543 // Old behavior for people using React.PropTypes
533544 var cacheKey = componentName + ':' + propName ;
534- if ( ! manualPropTypeCallCache [ cacheKey ] ) {
545+ if (
546+ ! manualPropTypeCallCache [ cacheKey ] &&
547+ // Avoid spamming the console because they are often not actionable except for lib authors
548+ manualPropTypeWarningCount < 3
549+ ) {
535550 warning (
536551 false ,
537552 'You are manually calling a React.PropTypes validation ' +
@@ -543,6 +558,7 @@ return /******/ (function(modules) { // webpackBootstrap
543558 componentName
544559 ) ;
545560 manualPropTypeCallCache [ cacheKey ] = true ;
561+ manualPropTypeWarningCount ++ ;
546562 }
547563 }
548564 }
@@ -680,6 +696,20 @@ return /******/ (function(modules) { // webpackBootstrap
680696 return emptyFunction . thatReturnsNull ;
681697 }
682698
699+ for ( var i = 0 ; i < arrayOfTypeCheckers . length ; i ++ ) {
700+ var checker = arrayOfTypeCheckers [ i ] ;
701+ if ( typeof checker !== 'function' ) {
702+ warning (
703+ false ,
704+ 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
705+ 'received %s at index %s.' ,
706+ getPostfixForTypeWarning ( checker ) ,
707+ i
708+ ) ;
709+ return emptyFunction . thatReturnsNull ;
710+ }
711+ }
712+
683713 function validate ( props , propName , componentName , location , propFullName ) {
684714 for ( var i = 0 ; i < arrayOfTypeCheckers . length ; i ++ ) {
685715 var checker = arrayOfTypeCheckers [ i ] ;
@@ -812,6 +842,9 @@ return /******/ (function(modules) { // webpackBootstrap
812842 // This handles more types than `getPropType`. Only used for error messages.
813843 // See `createPrimitiveTypeChecker`.
814844 function getPreciseType ( propValue ) {
845+ if ( typeof propValue === 'undefined' || propValue === null ) {
846+ return '' + propValue ;
847+ }
815848 var propType = getPropType ( propValue ) ;
816849 if ( propType === 'object' ) {
817850 if ( propValue instanceof Date ) {
@@ -823,6 +856,23 @@ return /******/ (function(modules) { // webpackBootstrap
823856 return propType ;
824857 }
825858
859+ // Returns a string that is postfixed to a warning about an invalid type.
860+ // For example, "undefined" or "of type array"
861+ function getPostfixForTypeWarning ( value ) {
862+ var type = getPreciseType ( value ) ;
863+ switch ( type ) {
864+ case 'array' :
865+ case 'object' :
866+ return 'an ' + type ;
867+ case 'boolean' :
868+ case 'date' :
869+ case 'regexp' :
870+ return 'a ' + type ;
871+ default :
872+ return type ;
873+ }
874+ }
875+
826876 // Returns class name of the object, if any.
827877 function getClassName ( propValue ) {
828878 if ( ! propValue . constructor || ! propValue . constructor . name ) {
@@ -838,9 +888,9 @@ return /******/ (function(modules) { // webpackBootstrap
838888 } ;
839889
840890
841- /***/ } ,
891+ /***/ } ) ,
842892/* 6 */
843- /***/ function ( module , exports ) {
893+ /***/ ( function ( module , exports ) {
844894
845895 "use strict" ;
846896
@@ -881,9 +931,9 @@ return /******/ (function(modules) { // webpackBootstrap
881931
882932 module . exports = emptyFunction ;
883933
884- /***/ } ,
934+ /***/ } ) ,
885935/* 7 */
886- /***/ function ( module , exports , __webpack_require__ ) {
936+ /***/ ( function ( module , exports , __webpack_require__ ) {
887937
888938 /**
889939 * Copyright (c) 2013-present, Facebook, Inc.
@@ -941,9 +991,9 @@ return /******/ (function(modules) { // webpackBootstrap
941991
942992 module . exports = invariant ;
943993
944- /***/ } ,
994+ /***/ } ) ,
945995/* 8 */
946- /***/ function ( module , exports , __webpack_require__ ) {
996+ /***/ ( function ( module , exports , __webpack_require__ ) {
947997
948998 /**
949999 * Copyright 2014-2015, Facebook, Inc.
@@ -1012,9 +1062,9 @@ return /******/ (function(modules) { // webpackBootstrap
10121062
10131063 module . exports = warning ;
10141064
1015- /***/ } ,
1065+ /***/ } ) ,
10161066/* 9 */
1017- /***/ function ( module , exports ) {
1067+ /***/ ( function ( module , exports ) {
10181068
10191069 /**
10201070 * Copyright 2013-present, Facebook, Inc.
@@ -1032,9 +1082,9 @@ return /******/ (function(modules) { // webpackBootstrap
10321082 module . exports = ReactPropTypesSecret ;
10331083
10341084
1035- /***/ } ,
1085+ /***/ } ) ,
10361086/* 10 */
1037- /***/ function ( module , exports , __webpack_require__ ) {
1087+ /***/ ( function ( module , exports , __webpack_require__ ) {
10381088
10391089 /**
10401090 * Copyright 2013-present, Facebook, Inc.
@@ -1099,9 +1149,9 @@ return /******/ (function(modules) { // webpackBootstrap
10991149 module . exports = checkPropTypes ;
11001150
11011151
1102- /***/ } ,
1152+ /***/ } ) ,
11031153/* 11 */
1104- /***/ function ( module , exports , __webpack_require__ ) {
1154+ /***/ ( function ( module , exports , __webpack_require__ ) {
11051155
11061156 /**
11071157 * Copyright 2013-present, Facebook, Inc.
@@ -1116,11 +1166,14 @@ return /******/ (function(modules) { // webpackBootstrap
11161166
11171167 var emptyFunction = __webpack_require__ ( 6 ) ;
11181168 var invariant = __webpack_require__ ( 7 ) ;
1169+ var ReactPropTypesSecret = __webpack_require__ ( 9 ) ;
11191170
11201171 module . exports = function ( ) {
1121- // Important!
1122- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1123- function shim ( ) {
1172+ function shim ( props , propName , componentName , location , propFullName , secret ) {
1173+ if ( secret === ReactPropTypesSecret ) {
1174+ // It is still safe when called from React.
1175+ return ;
1176+ }
11241177 invariant (
11251178 false ,
11261179 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
@@ -1132,6 +1185,8 @@ return /******/ (function(modules) { // webpackBootstrap
11321185 function getShim ( ) {
11331186 return shim ;
11341187 } ;
1188+ // Important!
1189+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
11351190 var ReactPropTypes = {
11361191 array : shim ,
11371192 bool : shim ,
@@ -1159,9 +1214,9 @@ return /******/ (function(modules) { // webpackBootstrap
11591214 } ;
11601215
11611216
1162- /***/ } ,
1217+ /***/ } ) ,
11631218/* 12 */
1164- /***/ function ( module , exports , __webpack_require__ ) {
1219+ /***/ ( function ( module , exports , __webpack_require__ ) {
11651220
11661221 var __WEBPACK_AMD_DEFINE_RESULT__ ; /*!
11671222 Copyright (c) 2015 Jed Watson.
@@ -1204,9 +1259,9 @@ return /******/ (function(modules) { // webpackBootstrap
12041259 } ( ) ) ;
12051260
12061261
1207- /***/ } ,
1262+ /***/ } ) ,
12081263/* 13 */
1209- /***/ function ( module , exports ) {
1264+ /***/ ( function ( module , exports ) {
12101265
12111266 module . exports = function ( opts ) {
12121267 return new ElementClass ( opts )
@@ -1269,9 +1324,9 @@ return /******/ (function(modules) { // webpackBootstrap
12691324 }
12701325
12711326
1272- /***/ } ,
1327+ /***/ } ) ,
12731328/* 14 */
1274- /***/ function ( module , exports , __webpack_require__ ) {
1329+ /***/ ( function ( module , exports , __webpack_require__ ) {
12751330
12761331 'use strict' ;
12771332
@@ -1558,9 +1613,9 @@ return /******/ (function(modules) { // webpackBootstrap
15581613 } ;
15591614 exports . default = ModalPortal ;
15601615
1561- /***/ } ,
1616+ /***/ } ) ,
15621617/* 15 */
1563- /***/ function ( module , exports , __webpack_require__ ) {
1618+ /***/ ( function ( module , exports , __webpack_require__ ) {
15641619
15651620 'use strict' ;
15661621
@@ -1650,9 +1705,9 @@ return /******/ (function(modules) { // webpackBootstrap
16501705 }
16511706 }
16521707
1653- /***/ } ,
1708+ /***/ } ) ,
16541709/* 16 */
1655- /***/ function ( module , exports ) {
1710+ /***/ ( function ( module , exports ) {
16561711
16571712 'use strict' ;
16581713
@@ -1705,9 +1760,9 @@ return /******/ (function(modules) { // webpackBootstrap
17051760 return [ ] . slice . call ( element . querySelectorAll ( '*' ) , 0 ) . filter ( tabbable ) ;
17061761 }
17071762
1708- /***/ } ,
1763+ /***/ } ) ,
17091764/* 17 */
1710- /***/ function ( module , exports , __webpack_require__ ) {
1765+ /***/ ( function ( module , exports , __webpack_require__ ) {
17111766
17121767 'use strict' ;
17131768
@@ -1738,9 +1793,9 @@ return /******/ (function(modules) { // webpackBootstrap
17381793 target . focus ( ) ;
17391794 }
17401795
1741- /***/ } ,
1796+ /***/ } ) ,
17421797/* 18 */
1743- /***/ function ( module , exports ) {
1798+ /***/ ( function ( module , exports ) {
17441799
17451800 'use strict' ;
17461801
@@ -1790,9 +1845,9 @@ return /******/ (function(modules) { // webpackBootstrap
17901845 globalElement = document . body ;
17911846 }
17921847
1793- /***/ } ,
1848+ /***/ } ) ,
17941849/* 19 */
1795- /***/ function ( module , exports ) {
1850+ /***/ ( function ( module , exports ) {
17961851
17971852 "use strict" ;
17981853
@@ -1822,7 +1877,7 @@ return /******/ (function(modules) { // webpackBootstrap
18221877 return modals . length ;
18231878 }
18241879
1825- /***/ }
1880+ /***/ } )
18261881/******/ ] )
18271882} ) ;
18281883;
0 commit comments