@@ -1033,44 +1033,10 @@ var RNS_REMOVE_ALL_NOTIFICATIONS = exports.RNS_REMOVE_ALL_NOTIFICATIONS = 'RNS_R
1033
1033
1034
1034
} , { } ] , 12 :[ function ( require , module , exports ) {
1035
1035
( function ( global ) {
1036
- Object . defineProperty ( exports , "__esModule" , {
1037
- value : true
1038
- } ) ;
1039
- exports . reducer = undefined ;
1040
-
1041
1036
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 ; } ;
1042
1037
1043
1038
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 ; } ; } ( ) ;
1044
1039
1045
- var _actions = require ( './actions' ) ;
1046
-
1047
- Object . keys ( _actions ) . forEach ( function ( key ) {
1048
- if ( key === "default" || key === "__esModule" ) return ;
1049
- Object . defineProperty ( exports , key , {
1050
- enumerable : true ,
1051
- get : function ( ) {
1052
- function get ( ) {
1053
- return _actions [ key ] ;
1054
- }
1055
-
1056
- return get ;
1057
- } ( )
1058
- } ) ;
1059
- } ) ;
1060
-
1061
- var _reducer = require ( './reducer' ) ;
1062
-
1063
- Object . defineProperty ( exports , 'reducer' , {
1064
- enumerable : true ,
1065
- get : function ( ) {
1066
- function get ( ) {
1067
- return _interopRequireDefault ( _reducer ) [ 'default' ] ;
1068
- }
1069
-
1070
- return get ;
1071
- } ( )
1072
- } ) ;
1073
-
1074
1040
var _react = ( typeof window !== "undefined" ? window [ 'React' ] : typeof global !== "undefined" ? global [ 'React' ] : null ) ;
1075
1041
1076
1042
var _react2 = _interopRequireDefault ( _react ) ;
@@ -1079,8 +1045,14 @@ var _propTypes = require('prop-types');
1079
1045
1080
1046
var _propTypes2 = _interopRequireDefault ( _propTypes ) ;
1081
1047
1048
+ var _actions = require ( './actions' ) ;
1049
+
1082
1050
var actions = _interopRequireWildcard ( _actions ) ;
1083
1051
1052
+ var _reducer = require ( './reducer' ) ;
1053
+
1054
+ var _reducer2 = _interopRequireDefault ( _reducer ) ;
1055
+
1084
1056
var _reactNotificationSystem = require ( 'react-notification-system' ) ;
1085
1057
1086
1058
var _reactNotificationSystem2 = _interopRequireDefault ( _reactNotificationSystem ) ;
@@ -1193,8 +1165,14 @@ Notifications.contextTypes = {
1193
1165
store : _propTypes2 [ 'default' ] . object
1194
1166
} ;
1195
1167
1196
- // Export actions and reducer
1197
- exports [ 'default' ] = Notifications ;
1168
+ // Tie actions to Notifications component instance
1169
+ Object . keys ( actions ) . forEach ( function ( key ) {
1170
+ Notifications [ key ] = actions [ key ] ;
1171
+ } ) ;
1172
+
1173
+ Notifications . reducer = _reducer2 [ 'default' ] ;
1174
+
1175
+ module . exports = Notifications ;
1198
1176
1199
1177
} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
1200
1178
} , { "./actions" :10 , "./reducer" :13 , "prop-types" :8 , "react-notification-system" :undefined } ] , 13 :[ function ( require , module , exports ) {
0 commit comments