8
8
exports [ "ReactSortable" ] = factory ( require ( "react" ) , require ( "react-dom" ) , require ( "sortablejs" ) ) ;
9
9
else
10
10
root [ "ReactSortable" ] = factory ( root [ "React" ] , root [ "ReactDOM" ] , root [ "Sortable" ] ) ;
11
- } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_11__ , __WEBPACK_EXTERNAL_MODULE_12__ , __WEBPACK_EXTERNAL_MODULE_13__ ) {
11
+ } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_12__ , __WEBPACK_EXTERNAL_MODULE_13__ , __WEBPACK_EXTERNAL_MODULE_14__ ) {
12
12
return /******/ ( function ( modules ) { // webpackBootstrap
13
13
/******/ // The module cache
14
14
/******/ var installedModules = { } ;
@@ -276,11 +276,9 @@ process.umask = function() { return 0; };
276
276
277
277
/**
278
278
* Copyright (c) 2013-present, Facebook, Inc.
279
- * All rights reserved.
280
279
*
281
- * This source code is licensed under the BSD-style license found in the
282
- * LICENSE file in the root directory of this source tree. An additional grant
283
- * of patent rights can be found in the PATENTS file in the same directory.
280
+ * This source code is licensed under the MIT license found in the
281
+ * LICENSE file in the root directory of this source tree.
284
282
*
285
283
*
286
284
*/
@@ -318,11 +316,9 @@ module.exports = emptyFunction;
318
316
"use strict" ;
319
317
/* WEBPACK VAR INJECTION */ ( function ( process ) { /**
320
318
* Copyright (c) 2013-present, Facebook, Inc.
321
- * All rights reserved.
322
319
*
323
- * This source code is licensed under the BSD-style license found in the
324
- * LICENSE file in the root directory of this source tree. An additional grant
325
- * of patent rights can be found in the PATENTS file in the same directory.
320
+ * This source code is licensed under the MIT license found in the
321
+ * LICENSE file in the root directory of this source tree.
326
322
*
327
323
*/
328
324
@@ -379,12 +375,10 @@ module.exports = invariant;
379
375
380
376
"use strict" ;
381
377
/**
382
- * Copyright 2013-present, Facebook, Inc.
383
- * All rights reserved.
378
+ * Copyright (c) 2013-present, Facebook, Inc.
384
379
*
385
- * This source code is licensed under the BSD-style license found in the
386
- * LICENSE file in the root directory of this source tree. An additional grant
387
- * of patent rights can be found in the PATENTS file in the same directory.
380
+ * This source code is licensed under the MIT license found in the
381
+ * LICENSE file in the root directory of this source tree.
388
382
*/
389
383
390
384
@@ -400,12 +394,10 @@ module.exports = ReactPropTypesSecret;
400
394
401
395
"use strict" ;
402
396
/* WEBPACK VAR INJECTION */ ( function ( process ) { /**
403
- * Copyright 2014-2015, Facebook, Inc.
404
- * All rights reserved.
397
+ * Copyright (c) 2014-present, Facebook, Inc.
405
398
*
406
- * This source code is licensed under the BSD-style license found in the
407
- * LICENSE file in the root directory of this source tree. An additional grant
408
- * of patent rights can be found in the PATENTS file in the same directory.
399
+ * This source code is licensed under the MIT license found in the
400
+ * LICENSE file in the root directory of this source tree.
409
401
*
410
402
*/
411
403
@@ -485,19 +477,19 @@ var _createClass = function () { function defineProperties(target, props) { for
485
477
var _class , _temp2 ; /* eslint consistent-return: 0 */
486
478
487
479
488
- var _propTypes = __webpack_require__ ( 10 ) ;
480
+ var _propTypes = __webpack_require__ ( 11 ) ;
489
481
490
482
var _propTypes2 = _interopRequireDefault ( _propTypes ) ;
491
483
492
- var _react = __webpack_require__ ( 11 ) ;
484
+ var _react = __webpack_require__ ( 12 ) ;
493
485
494
486
var _react2 = _interopRequireDefault ( _react ) ;
495
487
496
- var _reactDom = __webpack_require__ ( 12 ) ;
488
+ var _reactDom = __webpack_require__ ( 13 ) ;
497
489
498
490
var _reactDom2 = _interopRequireDefault ( _reactDom ) ;
499
491
500
- var _sortablejs = __webpack_require__ ( 13 ) ;
492
+ var _sortablejs = __webpack_require__ ( 14 ) ;
501
493
502
494
var _sortablejs2 = _interopRequireDefault ( _sortablejs ) ;
503
495
@@ -645,14 +637,109 @@ module.exports = _Sortable2.default;
645
637
/* 7 */
646
638
/***/ ( function ( module , exports , __webpack_require__ ) {
647
639
640
+ "use strict" ;
641
+ /*
642
+ object-assign
643
+ (c) Sindre Sorhus
644
+ @license MIT
645
+ */
646
+
647
+
648
+ /* eslint-disable no-unused-vars */
649
+ var getOwnPropertySymbols = Object . getOwnPropertySymbols ;
650
+ var hasOwnProperty = Object . prototype . hasOwnProperty ;
651
+ var propIsEnumerable = Object . prototype . propertyIsEnumerable ;
652
+
653
+ function toObject ( val ) {
654
+ if ( val === null || val === undefined ) {
655
+ throw new TypeError ( 'Object.assign cannot be called with null or undefined' ) ;
656
+ }
657
+
658
+ return Object ( val ) ;
659
+ }
660
+
661
+ function shouldUseNative ( ) {
662
+ try {
663
+ if ( ! Object . assign ) {
664
+ return false ;
665
+ }
666
+
667
+ // Detect buggy property enumeration order in older V8 versions.
668
+
669
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
670
+ var test1 = new String ( 'abc' ) ; // eslint-disable-line no-new-wrappers
671
+ test1 [ 5 ] = 'de' ;
672
+ if ( Object . getOwnPropertyNames ( test1 ) [ 0 ] === '5' ) {
673
+ return false ;
674
+ }
675
+
676
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
677
+ var test2 = { } ;
678
+ for ( var i = 0 ; i < 10 ; i ++ ) {
679
+ test2 [ '_' + String . fromCharCode ( i ) ] = i ;
680
+ }
681
+ var order2 = Object . getOwnPropertyNames ( test2 ) . map ( function ( n ) {
682
+ return test2 [ n ] ;
683
+ } ) ;
684
+ if ( order2 . join ( '' ) !== '0123456789' ) {
685
+ return false ;
686
+ }
687
+
688
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
689
+ var test3 = { } ;
690
+ 'abcdefghijklmnopqrst' . split ( '' ) . forEach ( function ( letter ) {
691
+ test3 [ letter ] = letter ;
692
+ } ) ;
693
+ if ( Object . keys ( Object . assign ( { } , test3 ) ) . join ( '' ) !==
694
+ 'abcdefghijklmnopqrst' ) {
695
+ return false ;
696
+ }
697
+
698
+ return true ;
699
+ } catch ( err ) {
700
+ // We don't expect any of the above to throw, but better to be safe.
701
+ return false ;
702
+ }
703
+ }
704
+
705
+ module . exports = shouldUseNative ( ) ? Object . assign : function ( target , source ) {
706
+ var from ;
707
+ var to = toObject ( target ) ;
708
+ var symbols ;
709
+
710
+ for ( var s = 1 ; s < arguments . length ; s ++ ) {
711
+ from = Object ( arguments [ s ] ) ;
712
+
713
+ for ( var key in from ) {
714
+ if ( hasOwnProperty . call ( from , key ) ) {
715
+ to [ key ] = from [ key ] ;
716
+ }
717
+ }
718
+
719
+ if ( getOwnPropertySymbols ) {
720
+ symbols = getOwnPropertySymbols ( from ) ;
721
+ for ( var i = 0 ; i < symbols . length ; i ++ ) {
722
+ if ( propIsEnumerable . call ( from , symbols [ i ] ) ) {
723
+ to [ symbols [ i ] ] = from [ symbols [ i ] ] ;
724
+ }
725
+ }
726
+ }
727
+ }
728
+
729
+ return to ;
730
+ } ;
731
+
732
+
733
+ /***/ } ) ,
734
+ /* 8 */
735
+ /***/ ( function ( module , exports , __webpack_require__ ) {
736
+
648
737
"use strict" ;
649
738
/* WEBPACK VAR INJECTION */ ( function ( process ) { /**
650
- * Copyright 2013-present, Facebook, Inc.
651
- * All rights reserved.
739
+ * Copyright (c) 2013-present, Facebook, Inc.
652
740
*
653
- * This source code is licensed under the BSD-style license found in the
654
- * LICENSE file in the root directory of this source tree. An additional grant
655
- * of patent rights can be found in the PATENTS file in the same directory.
741
+ * This source code is licensed under the MIT license found in the
742
+ * LICENSE file in the root directory of this source tree.
656
743
*/
657
744
658
745
@@ -686,7 +773,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
686
773
try {
687
774
// This is intentionally an invariant that gets caught. It's the same
688
775
// behavior as without this statement except with a better message.
689
- invariant ( typeof typeSpecs [ typeSpecName ] === 'function' , '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes. ' , componentName || 'React class' , location , typeSpecName ) ;
776
+ invariant ( typeof typeSpecs [ typeSpecName ] === 'function' , '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`. ' , componentName || 'React class' , location , typeSpecName , typeof typeSpecs [ typeSpecName ] ) ;
690
777
error = typeSpecs [ typeSpecName ] ( values , typeSpecName , componentName , location , null , ReactPropTypesSecret ) ;
691
778
} catch ( ex ) {
692
779
error = ex ;
@@ -711,17 +798,15 @@ module.exports = checkPropTypes;
711
798
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
712
799
713
800
/***/ } ) ,
714
- /* 8 */
801
+ /* 9 */
715
802
/***/ ( function ( module , exports , __webpack_require__ ) {
716
803
717
804
"use strict" ;
718
805
/**
719
- * Copyright 2013-present, Facebook, Inc.
720
- * All rights reserved.
806
+ * Copyright (c) 2013-present, Facebook, Inc.
721
807
*
722
- * This source code is licensed under the BSD-style license found in the
723
- * LICENSE file in the root directory of this source tree. An additional grant
724
- * of patent rights can be found in the PATENTS file in the same directory.
808
+ * This source code is licensed under the MIT license found in the
809
+ * LICENSE file in the root directory of this source tree.
725
810
*/
726
811
727
812
@@ -766,7 +851,8 @@ module.exports = function() {
766
851
objectOf : getShim ,
767
852
oneOf : getShim ,
768
853
oneOfType : getShim ,
769
- shape : getShim
854
+ shape : getShim ,
855
+ exact : getShim
770
856
} ;
771
857
772
858
ReactPropTypes . checkPropTypes = emptyFunction ;
@@ -777,27 +863,26 @@ module.exports = function() {
777
863
778
864
779
865
/***/ } ) ,
780
- /* 9 */
866
+ /* 10 */
781
867
/***/ ( function ( module , exports , __webpack_require__ ) {
782
868
783
869
"use strict" ;
784
870
/* WEBPACK VAR INJECTION */ ( function ( process ) { /**
785
- * Copyright 2013-present, Facebook, Inc.
786
- * All rights reserved.
871
+ * Copyright (c) 2013-present, Facebook, Inc.
787
872
*
788
- * This source code is licensed under the BSD-style license found in the
789
- * LICENSE file in the root directory of this source tree. An additional grant
790
- * of patent rights can be found in the PATENTS file in the same directory.
873
+ * This source code is licensed under the MIT license found in the
874
+ * LICENSE file in the root directory of this source tree.
791
875
*/
792
876
793
877
794
878
795
879
var emptyFunction = __webpack_require__ ( 1 ) ;
796
880
var invariant = __webpack_require__ ( 2 ) ;
797
881
var warning = __webpack_require__ ( 4 ) ;
882
+ var assign = __webpack_require__ ( 7 ) ;
798
883
799
884
var ReactPropTypesSecret = __webpack_require__ ( 3 ) ;
800
- var checkPropTypes = __webpack_require__ ( 7 ) ;
885
+ var checkPropTypes = __webpack_require__ ( 8 ) ;
801
886
802
887
module . exports = function ( isValidElement , throwOnDirectAccess ) {
803
888
/* global Symbol */
@@ -893,7 +978,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
893
978
objectOf : createObjectOfTypeChecker ,
894
979
oneOf : createEnumTypeChecker ,
895
980
oneOfType : createUnionTypeChecker ,
896
- shape : createShapeTypeChecker
981
+ shape : createShapeTypeChecker ,
982
+ exact : createStrictShapeTypeChecker ,
897
983
} ;
898
984
899
985
/**
@@ -1108,7 +1194,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
1108
1194
if ( typeof checker !== 'function' ) {
1109
1195
warning (
1110
1196
false ,
1111
- 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' +
1197
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1112
1198
'received %s at index %s.' ,
1113
1199
getPostfixForTypeWarning ( checker ) ,
1114
1200
i
@@ -1162,6 +1248,36 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
1162
1248
return createChainableTypeChecker ( validate ) ;
1163
1249
}
1164
1250
1251
+ function createStrictShapeTypeChecker ( shapeTypes ) {
1252
+ function validate ( props , propName , componentName , location , propFullName ) {
1253
+ var propValue = props [ propName ] ;
1254
+ var propType = getPropType ( propValue ) ;
1255
+ if ( propType !== 'object' ) {
1256
+ return new PropTypeError ( 'Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ( 'supplied to `' + componentName + '`, expected `object`.' ) ) ;
1257
+ }
1258
+ // We need to check all keys in case some are required but missing from
1259
+ // props.
1260
+ var allKeys = assign ( { } , props [ propName ] , shapeTypes ) ;
1261
+ for ( var key in allKeys ) {
1262
+ var checker = shapeTypes [ key ] ;
1263
+ if ( ! checker ) {
1264
+ return new PropTypeError (
1265
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1266
+ '\nBad object: ' + JSON . stringify ( props [ propName ] , null , ' ' ) +
1267
+ '\nValid keys: ' + JSON . stringify ( Object . keys ( shapeTypes ) , null , ' ' )
1268
+ ) ;
1269
+ }
1270
+ var error = checker ( propValue , key , componentName , location , propFullName + '.' + key , ReactPropTypesSecret ) ;
1271
+ if ( error ) {
1272
+ return error ;
1273
+ }
1274
+ }
1275
+ return null ;
1276
+ }
1277
+
1278
+ return createChainableTypeChecker ( validate ) ;
1279
+ }
1280
+
1165
1281
function isNode ( propValue ) {
1166
1282
switch ( typeof propValue ) {
1167
1283
case 'number' :
@@ -1297,16 +1413,14 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
1297
1413
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
1298
1414
1299
1415
/***/ } ) ,
1300
- /* 10 */
1416
+ /* 11 */
1301
1417
/***/ ( function ( module , exports , __webpack_require__ ) {
1302
1418
1303
1419
/* WEBPACK VAR INJECTION */ ( function ( process ) { /**
1304
- * Copyright 2013-present, Facebook, Inc.
1305
- * All rights reserved.
1420
+ * Copyright (c) 2013-present, Facebook, Inc.
1306
1421
*
1307
- * This source code is licensed under the BSD-style license found in the
1308
- * LICENSE file in the root directory of this source tree. An additional grant
1309
- * of patent rights can be found in the PATENTS file in the same directory.
1422
+ * This source code is licensed under the MIT license found in the
1423
+ * LICENSE file in the root directory of this source tree.
1310
1424
*/
1311
1425
1312
1426
if ( process . env . NODE_ENV !== 'production' ) {
@@ -1324,21 +1438,15 @@ if (process.env.NODE_ENV !== 'production') {
1324
1438
// By explicitly using `prop-types` you are opting into new development behavior.
1325
1439
// http://fb.me/prop-types-in-prod
1326
1440
var throwOnDirectAccess = true ;
1327
- module . exports = __webpack_require__ ( 9 ) ( isValidElement , throwOnDirectAccess ) ;
1441
+ module . exports = __webpack_require__ ( 10 ) ( isValidElement , throwOnDirectAccess ) ;
1328
1442
} else {
1329
1443
// By explicitly using `prop-types` you are opting into new production behavior.
1330
1444
// http://fb.me/prop-types-in-prod
1331
- module . exports = __webpack_require__ ( 8 ) ( ) ;
1445
+ module . exports = __webpack_require__ ( 9 ) ( ) ;
1332
1446
}
1333
1447
1334
1448
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
1335
1449
1336
- /***/ } ) ,
1337
- /* 11 */
1338
- /***/ ( function ( module , exports ) {
1339
-
1340
- module . exports = __WEBPACK_EXTERNAL_MODULE_11__ ;
1341
-
1342
1450
/***/ } ) ,
1343
1451
/* 12 */
1344
1452
/***/ ( function ( module , exports ) {
@@ -1351,6 +1459,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_12__;
1351
1459
1352
1460
module . exports = __WEBPACK_EXTERNAL_MODULE_13__ ;
1353
1461
1462
+ /***/ } ) ,
1463
+ /* 14 */
1464
+ /***/ ( function ( module , exports ) {
1465
+
1466
+ module . exports = __WEBPACK_EXTERNAL_MODULE_14__ ;
1467
+
1354
1468
/***/ } )
1355
1469
/******/ ] ) ;
1356
1470
} ) ;
0 commit comments