1
- /*! react-sortablejs v1.3.3 | (c) 2017 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-sortable */
1
+ /*! react-sortablejs v1.3.4 | (c) 2017 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-sortable */
2
2
( function webpackUniversalModuleDefinition ( root , factory ) {
3
3
if ( typeof exports === 'object' && typeof module === 'object' )
4
4
module . exports = factory ( require ( "react" ) , require ( "react-dom" ) , require ( "sortablejs" ) ) ;
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_6__ , __WEBPACK_EXTERNAL_MODULE_7__ , __WEBPACK_EXTERNAL_MODULE_8__ ) {
11
+ } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_11__ , __WEBPACK_EXTERNAL_MODULE_12__ , __WEBPACK_EXTERNAL_MODULE_13__ ) {
12
12
return /******/ ( function ( modules ) { // webpackBootstrap
13
13
/******/ // The module cache
14
14
/******/ var installedModules = { } ;
@@ -74,7 +74,7 @@ return /******/ (function(modules) { // webpackBootstrap
74
74
/******/ __webpack_require__ . p = "" ;
75
75
/******/
76
76
/******/ // Load entry module and return exports
77
- /******/ return __webpack_require__ ( __webpack_require__ . s = 9 ) ;
77
+ /******/ return __webpack_require__ ( __webpack_require__ . s = 6 ) ;
78
78
/******/ } )
79
79
/************************************************************************/
80
80
/******/ ( [
@@ -467,90 +467,42 @@ module.exports = ReactPropTypesSecret;
467
467
/* 5 */
468
468
/***/ ( function ( module , exports , __webpack_require__ ) {
469
469
470
- /* WEBPACK VAR INJECTION */ ( function ( process ) { /**
471
- * Copyright 2013-present, Facebook, Inc.
472
- * All rights reserved.
473
- *
474
- * This source code is licensed under the BSD-style license found in the
475
- * LICENSE file in the root directory of this source tree. An additional grant
476
- * of patent rights can be found in the PATENTS file in the same directory.
477
- */
478
-
479
- if ( process . env . NODE_ENV !== 'production' ) {
480
- var REACT_ELEMENT_TYPE = ( typeof Symbol === 'function' &&
481
- Symbol . for &&
482
- Symbol . for ( 'react.element' ) ) ||
483
- 0xeac7 ;
484
-
485
- var isValidElement = function ( object ) {
486
- return typeof object === 'object' &&
487
- object !== null &&
488
- object . $$typeof === REACT_ELEMENT_TYPE ;
489
- } ;
490
-
491
- // By explicitly using `prop-types` you are opting into new development behavior.
492
- // http://fb.me/prop-types-in-prod
493
- var throwOnDirectAccess = true ;
494
- module . exports = __webpack_require__ ( 12 ) ( isValidElement , throwOnDirectAccess ) ;
495
- } else {
496
- // By explicitly using `prop-types` you are opting into new production behavior.
497
- // http://fb.me/prop-types-in-prod
498
- module . exports = __webpack_require__ ( 11 ) ( ) ;
499
- }
500
-
501
- /* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
502
-
503
- /***/ } ) ,
504
- /* 6 */
505
- /***/ ( function ( module , exports ) {
506
-
507
- module . exports = __WEBPACK_EXTERNAL_MODULE_6__ ;
508
-
509
- /***/ } ) ,
510
- /* 7 */
511
- /***/ ( function ( module , exports ) {
512
-
513
- module . exports = __WEBPACK_EXTERNAL_MODULE_7__ ;
514
-
515
- /***/ } ) ,
516
- /* 8 */
517
- /***/ ( function ( module , exports ) {
518
-
519
- module . exports = __WEBPACK_EXTERNAL_MODULE_8__ ;
520
-
521
- /***/ } ) ,
522
- /* 9 */
523
- /***/ ( function ( module , exports , __webpack_require__ ) {
524
-
525
470
"use strict" ;
526
471
527
472
473
+ Object . defineProperty ( exports , "__esModule" , {
474
+ value : true
475
+ } ) ;
476
+
528
477
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 ; } ;
529
478
530
479
var _extends = Object . assign || function ( target ) { for ( var i = 1 ; i < arguments . length ; i ++ ) { var source = arguments [ i ] ; for ( var key in source ) { if ( Object . prototype . hasOwnProperty . call ( source , key ) ) { target [ key ] = source [ key ] ; } } } return target ; } ;
531
480
532
481
var _createClass = function ( ) { function defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( "value" in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } } return function ( Constructor , protoProps , staticProps ) { if ( protoProps ) defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) defineProperties ( Constructor , staticProps ) ; return Constructor ; } ; } ( ) ;
533
482
534
- var _class , _temp2 ;
483
+ var _class , _temp2 ; /* eslint consistent-return: 0 */
484
+
535
485
536
- var _propTypes = __webpack_require__ ( 5 ) ;
486
+ var _propTypes = __webpack_require__ ( 10 ) ;
537
487
538
488
var _propTypes2 = _interopRequireDefault ( _propTypes ) ;
539
489
540
- var _react = __webpack_require__ ( 6 ) ;
490
+ var _react = __webpack_require__ ( 11 ) ;
541
491
542
492
var _react2 = _interopRequireDefault ( _react ) ;
543
493
544
- var _reactDom = __webpack_require__ ( 7 ) ;
494
+ var _reactDom = __webpack_require__ ( 12 ) ;
545
495
546
496
var _reactDom2 = _interopRequireDefault ( _reactDom ) ;
547
497
548
- var _sortablejs = __webpack_require__ ( 8 ) ;
498
+ var _sortablejs = __webpack_require__ ( 13 ) ;
549
499
550
500
var _sortablejs2 = _interopRequireDefault ( _sortablejs ) ;
551
501
552
502
function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
553
503
504
+ function _objectWithoutProperties ( obj , keys ) { var target = { } ; for ( var i in obj ) { if ( keys . indexOf ( i ) >= 0 ) continue ; if ( ! Object . prototype . hasOwnProperty . call ( obj , i ) ) continue ; target [ i ] = obj [ i ] ; } return target ; }
505
+
554
506
function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( "Cannot call a class as a function" ) ; } }
555
507
556
508
function _possibleConstructorReturn ( self , call ) { if ( ! self ) { throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ; } return call && ( typeof call === "object" || typeof call === "function" ) ? call : self ; }
@@ -562,24 +514,24 @@ var store = {
562
514
activeComponent : null
563
515
} ;
564
516
565
- module . exports = ( _temp2 = _class = function ( _Component ) {
566
- _inherits ( _class , _Component ) ;
517
+ var Sortable = ( _temp2 = _class = function ( _Component ) {
518
+ _inherits ( Sortable , _Component ) ;
567
519
568
- function _class ( ) {
520
+ function Sortable ( ) {
569
521
var _ref ;
570
522
571
523
var _temp , _this , _ret ;
572
524
573
- _classCallCheck ( this , _class ) ;
525
+ _classCallCheck ( this , Sortable ) ;
574
526
575
527
for ( var _len = arguments . length , args = Array ( _len ) , _key = 0 ; _key < _len ; _key ++ ) {
576
528
args [ _key ] = arguments [ _key ] ;
577
529
}
578
530
579
- return _ret = ( _temp = ( _this = _possibleConstructorReturn ( this , ( _ref = _class . __proto__ || Object . getPrototypeOf ( _class ) ) . call . apply ( _ref , [ this ] . concat ( args ) ) ) , _this ) , _this . sortable = null , _temp ) , _possibleConstructorReturn ( _this , _ret ) ;
531
+ return _ret = ( _temp = ( _this = _possibleConstructorReturn ( this , ( _ref = Sortable . __proto__ || Object . getPrototypeOf ( Sortable ) ) . call . apply ( _ref , [ this ] . concat ( args ) ) ) , _this ) , _this . sortable = null , _temp ) , _possibleConstructorReturn ( _this , _ret ) ;
580
532
}
581
533
582
- _createClass ( _class , [ {
534
+ _createClass ( Sortable , [ {
583
535
key : 'componentDidMount' ,
584
536
value : function componentDidMount ( ) {
585
537
var _this2 = this ;
@@ -649,16 +601,17 @@ module.exports = (_temp2 = _class = function (_Component) {
649
601
key : 'render' ,
650
602
value : function render ( ) {
651
603
var _props = this . props ,
652
- children = _props . children ,
653
- className = _props . className ,
654
- tag = _props . tag ,
655
- style = _props . style ;
604
+ Component = _props . tag ,
605
+ props = _objectWithoutProperties ( _props , [ 'tag' ] ) ;
606
+
607
+ delete props . options ;
608
+ delete props . onChange ;
656
609
657
- return _react2 . default . DOM [ tag ] ( { className : className , style : style } , children ) ;
610
+ return _react2 . default . createElement ( Component , props ) ;
658
611
}
659
612
} ] ) ;
660
613
661
- return _class ;
614
+ return Sortable ;
662
615
} ( _react . Component ) , _class . propTypes = {
663
616
options : _propTypes2 . default . object ,
664
617
onChange : _propTypes2 . default . func ,
@@ -669,9 +622,25 @@ module.exports = (_temp2 = _class = function (_Component) {
669
622
tag : 'div' ,
670
623
style : { }
671
624
} , _temp2 ) ;
625
+ exports . default = Sortable ;
672
626
673
627
/***/ } ) ,
674
- /* 10 */
628
+ /* 6 */
F438
629
+ /***/ ( function ( module , exports , __webpack_require__ ) {
630
+
631
+ "use strict" ;
632
+
633
+
634
+ var _Sortable = __webpack_require__ ( 5 ) ;
635
+
636
+ var _Sortable2 = _interopRequireDefault ( _Sortable ) ;
637
+
638
+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
639
+
640
+ module . exports = _Sortable2 . default ;
641
+
642
+ /***/ } ) ,
643
+ /* 7 */
675
644
/***/ ( function ( module , exports , __webpack_require__ ) {
676
645
677
646
"use strict" ;
@@ -740,7 +709,7 @@ module.exports = checkPropTypes;
740
709
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
741
710
742
711
/***/ } ) ,
743
- /* 11 */
712
+ /* 8 */
744
713
/***/ ( function ( module , exports , __webpack_require__ ) {
745
714
746
715
"use strict" ;
@@ -801,7 +770,7 @@ module.exports = function() {
801
770
802
771
803
772
/***/ } ) ,
804
- /* 12 */
773
+ /* 9 */
805
774
/***/ ( function ( module , exports , __webpack_require__ ) {
806
775
807
776
"use strict" ;
@@ -821,7 +790,7 @@ var invariant = __webpack_require__(2);
821
790
var warning = __webpack_require__ ( 3 ) ;
822
791
823
792
var ReactPropTypesSecret = __webpack_require__ ( 4 ) ;
824
- var checkPropTypes = __webpack_require__ ( 10 ) ;
793
+ var checkPropTypes = __webpack_require__ ( 7 ) ;
825
794
826
795
module . exports = function ( isValidElement , throwOnDirectAccess ) {
827
796
/* global Symbol */
@@ -1286,6 +1255,61 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
1286
1255
1287
1256
/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
1288
1257
1258
+ /***/ } ) ,
1259
+ /* 10 */
1260
+ /***/ ( function ( module , exports , __webpack_require__ ) {
1261
+
1262
+ /* WEBPACK VAR INJECTION */ ( function ( process ) { /**
1263
+ * Copyright 2013-present, Facebook, Inc.
1264
+ * All rights reserved.
1265
+ *
1266
+ * This source code is licensed under the BSD-style license found in the
1267
+ * LICENSE file in the root directory of this source tree. An additional grant
1268
+ * of patent rights can be found in the PATENTS file in the same directory.
1269
+ */
1270
+
1271
+ if ( process . env . NODE_ENV !== 'production' ) {
1272
+ var REACT_ELEMENT_TYPE = ( typeof Symbol === 'function' &&
1273
+ Symbol . for &&
1274
+ Symbol . for ( 'react.element' ) ) ||
1275
+ 0xeac7 ;
1276
+
1277
+ var isValidElement = function ( object ) {
1278
+ return typeof object === 'object' &&
1279
+ object !== null &&
1280
+ object . $$typeof === REACT_ELEMENT_TYPE ;
1281
+ } ;
1282
+
1283
+ // By explicitly using `prop-types` you are opting into new development behavior.
1284
+ // http://fb.me/prop-types-in-prod
1285
+ var throwOnDirectAccess = true ;
1286
+ module . exports = __webpack_require__ ( 9 ) ( isValidElement , throwOnDirectAccess ) ;
1287
+ } else {
1288
+ // By explicitly using `prop-types` you are opting into new production behavior.
1289
+ // http://fb.me/prop-types-in-prod
1290
+ module . exports = __webpack_require__ ( 8 ) ( ) ;
1291
+ }
1292
+
1293
+ /* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
1294
+
1295
+ /***/ } ) ,
1296
+ /* 11 */
1297
+ /***/ ( function ( module , exports ) {
1298
+
1299
+ module . exports = __WEBPACK_EXTERNAL_MODULE_11__ ;
1300
+
1301
+ /***/ } ) ,
1302
+ /* 12 */
1303
+ /***/ ( function ( module , exports ) {
1304
+
1305
+ module . exports = __WEBPACK_EXTERNAL_MODULE_12__ ;
1306
+
1307
+ /***/ } ) ,
1308
+ /* 13 */
1309
+ /***/ ( function ( module , exports ) {
1310
+
1311
+ module . exports = __WEBPACK_EXTERNAL_MODULE_13__ ;
1312
+
1289
1313
/***/ } )
1290
1314
/******/ ] ) ;
1291
1315
} ) ;
0 commit comments