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 */
22( function webpackUniversalModuleDefinition ( root , factory ) {
33 if ( typeof exports === 'object' && typeof module === 'object' )
44 module . exports = factory ( require ( "react" ) , require ( "react-dom" ) , require ( "sortablejs" ) ) ;
88 exports [ "ReactSortable" ] = factory ( require ( "react" ) , require ( "react-dom" ) , require ( "sortablejs" ) ) ;
99 else
1010 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__ ) {
1212return /******/ ( function ( modules ) { // webpackBootstrap
1313/******/ // The module cache
1414/******/ var installedModules = { } ;
@@ -74,7 +74,7 @@ return /******/ (function(modules) { // webpackBootstrap
7474/******/ __webpack_require__ . p = "" ;
7575/******/
7676/******/ // Load entry module and return exports
77- /******/ return __webpack_require__ ( __webpack_require__ . s = 9 ) ;
77+ /******/ return __webpack_require__ ( __webpack_require__ . s = 6 ) ;
7878/******/ } )
7979/************************************************************************/
8080/******/ ( [
@@ -467,90 +467,42 @@ module.exports = ReactPropTypesSecret;
467467/* 5 */
468468/***/ ( function ( module , exports , __webpack_require__ ) {
469469
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-
525470"use strict" ;
526471
527472
473+ Object . defineProperty ( exports , "__esModule" , {
474+ value : true
475+ } ) ;
476+
528477var _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 ; } ;
529478
530479var _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 ; } ;
531480
532481var _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 ; } ; } ( ) ;
533482
534- var _class , _temp2 ;
483+ var _class , _temp2 ; /* eslint consistent-return: 0 */
484+
535485
536- var _propTypes = __webpack_require__ ( 5 ) ;
486+ var _propTypes = __webpack_require__ ( 10 ) ;
537487
538488var _propTypes2 = _interopRequireDefault ( _propTypes ) ;
539489
540- var _react = __webpack_require__ ( 6 ) ;
490+ var _react = __webpack_require__ ( 11 ) ;
541491
542492var _react2 = _interopRequireDefault ( _react ) ;
543493
544- var _reactDom = __webpack_require__ ( 7 ) ;
494+ var _reactDom = __webpack_require__ ( 12 ) ;
545495
546496var _reactDom2 = _interopRequireDefault ( _reactDom ) ;
547497
548- var _sortablejs = __webpack_require__ ( 8 ) ;
498+ var _sortablejs = __webpack_require__ ( 13 ) ;
549499
550500var _sortablejs2 = _interopRequireDefault ( _sortablejs ) ;
551501
552502function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
553503
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+
554506function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( "Cannot call a class as a function" ) ; } }
555507
556508function _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 = {
562514 activeComponent : null
563515} ;
564516
565- module . exports = ( _temp2 = _class = function ( _Component ) {
566- _inherits ( _class , _Component ) ;
517+ var Sortable = ( _temp2 = _class = function ( _Component ) {
518+ _inherits ( Sortable , _Component ) ;
567519
568- function _class ( ) {
520+ function Sortable ( ) {
569521 var _ref ;
570522
571523 var _temp , _this , _ret ;
572524
573- _classCallCheck ( this , _class ) ;
525+ _classCallCheck ( this , Sortable ) ;
574526
575527 for ( var _len = arguments . length , args = Array ( _len ) , _key = 0 ; _key < _len ; _key ++ ) {
576528 args [ _key ] = arguments [ _key ] ;
577529 }
578530
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 ) ;
580532 }
581533
582- _createClass ( _class , [ {
534+ _createClass ( Sortable , [ {
583535 key : 'componentDidMount' ,
584536 value : function componentDidMount ( ) {
585537 var _this2 = this ;
@@ -649,16 +601,17 @@ module.exports = (_temp2 = _class = function (_Component) {
649601 key : 'render' ,
650602 value : function render ( ) {
651603 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 ;
656609
657- return _react2 . default . DOM [ tag ] ( { className : className , style : style } , children ) ;
610+ return _react2 . default . createElement ( Component , props ) ;
658611 }
659612 } ] ) ;
660613
661- return _class ;
614+ return Sortable ;
662615} ( _react . Component ) , _class . propTypes = {
663616 options : _propTypes2 . default . object ,
664617 onChange : _propTypes2 . default . func ,
@@ -669,9 +622,25 @@ module.exports = (_temp2 = _class = function (_Component) {
669622 tag : 'div' ,
670623 style : { }
671624} , _temp2 ) ;
625+ exports . default = Sortable ;
672626
673627/***/ } ) ,
674- /* 10 */
628+ /* 6 */
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 */
675644/***/ ( function ( module , exports , __webpack_require__ ) {
676645
677646"use strict" ;
@@ -740,7 +709,7 @@ module.exports = checkPropTypes;
740709/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
741710
742711/***/ } ) ,
743- /* 11 */
712+ /* 8 */
744713/***/ ( function ( module , exports , __webpack_require__ ) {
745714
746715"use strict" ;
@@ -801,7 +770,7 @@ module.exports = function() {
801770
802771
803772/***/ } ) ,
804- /* 12 */
773+ /* 9 */
805774/***/ ( function ( module , exports , __webpack_require__ ) {
806775
807776"use strict" ;
@@ -821,7 +790,7 @@ var invariant = __webpack_require__(2);
821790var warning = __webpack_require__ ( 3 ) ;
822791
823792var ReactPropTypesSecret = __webpack_require__ ( 4 ) ;
824- var checkPropTypes = __webpack_require__ ( 10 ) ;
793+ var checkPropTypes = __webpack_require__ ( 7 ) ;
825794
826795module . exports = function ( isValidElement , throwOnDirectAccess ) {
827796 /* global Symbol */
@@ -1286,6 +1255,61 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
12861255
12871256/* WEBPACK VAR INJECTION */ } . call ( exports , __webpack_require__ ( 0 ) ) )
12881257
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+
12891313/***/ } )
12901314/******/ ] ) ;
12911315} ) ;
0 commit comments