Gathering detailed insights and metrics for react-sweetalert2-redux
Gathering detailed insights and metrics for react-sweetalert2-redux
Gathering detailed insights and metrics for react-sweetalert2-redux
Gathering detailed insights and metrics for react-sweetalert2-redux
This is an implementation of react-sweetalert2 with redux and redux-thunk
npm install react-sweetalert2-redux
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
2 Stars
5 Commits
1 Forks
2 Watchers
3 Branches
2 Contributors
Updated on Jul 12, 2020
Latest Version
0.1.4
Package Id
react-sweetalert2-redux@0.1.4
Unpacked Size
34.04 kB
Size
9.43 kB
File Count
17
NPM Version
6.5.0
Node Version
10.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
$ npm install react-sweetalert2-redux
1import React from 'react'; 2import ReactDOM from 'react-dom'; 3import { Provider } from 'react-redux'; 4import { createStore, combineReducers, applyMiddleware } from 'redux'; 5import thunk from 'redux-thunk'; 6 7import ReduxSweetAlert2, { reducer } from 'react-sweetalert2-redux'; 8 9const rootReducers = combineReducers({ 10 sweetalert2: reducer 11}); 12 13const store = createStore( 14 rootReducers, 15 applyMiddleware(thunk) 16); 17 18const App = () => ( 19 <Provider store={store}> 20 <ReduxSweetAlert2 /> 21 </Provider> 22); 23 24ReactDOM.render(<App/>, document.getElementById('root'));
1{ 2 show: bool.isRequired, 3 title?: string, 4 titleText?: string, 5 html?: string, 6 text?: string, 7 type?: enum(['warning', 'error', 'success', 'info', 'input']), 8 footer?: string, 9 backdrop?: boolean, 10 toast?: boolean, 11 target?: string, 12 input?: enum(['text', 'email', 'password', 'number', 'tel', 'range', 'textarea', 'select', 'radio', 'checkbox', 'file', 'url']), 13 width?: number, 14 padding?: number, 15 background?: string, 16 position?: enum(['center', 'top', 'top-start', 'top-end', 'center-start', 'center-end', 'bottom', 'bottom-start', 'bottom-end']), 17 grow?: enum(['row', 'column', 'fullscreen', false]), 18 customClass?: string, 19 timer?: number, 20 animation?: boolean, 21 heightAuto?: boolean, 22 allowOutsideClick?: boolean, 23 allowEscapeKey?: boolean, 24 allowEnterKey?: boolean, 25 stopKeydownPropagation?: boolean, 26 keydownListenerCapture?: boolean, 27 showConfirmButton?: boolean, 28 showCancelButton?: boolean, 29 confirmButtonText?: string, 30 cancelButtonText?: string, 31 confirmButtonColor?: string, 32 cancelButtonColor?: string, 33 confirmButtonClass?: string, 34 cancelButtonClass?: string, 35 confirmButtonAriaLabel?: string, 36 cancelButtonAriaLabel?: string, 37 buttonsStyling?: boolean, 38 reverseButtons?: boolean, 39 focusConfirm?: boolean, 40 focusCancel?: boolean, 41 showCloseButton?: boolean, 42 closeButtonAriaLabel?: string, 43 showLoaderOnConfirm?: boolean, 44 preConfirm?: Function, 45 imageUrl?: string, 46 imageWidth?: number, 47 imageHeight?: number, 48 imageAlt?: string, 49 imageClass?: string, 50 inputPlaceholder?: string, 51 inputValue?: string, 52 inputOptions?: Object, 53 inputAutoTrim?: boolean, 54 inputAttributes?: Object, 55 inputValidator?: Function, 56 validationMesage?: string, 57 inputClass?: string, 58 progressSteps?: [], 59 currentProgressStep?: string, 60 progressStepsDistance?: string, 61 onBeforeOpen?: Function, 62 onOpen?: Function, 63 onClose?: Function, 64 onAfterClose?: Function, 65 useRejections?: boolean, 66 expectRejections?: boolean, 67 onConfirm?: Function, 68 showLoading?: boolean 69}
1openAlert(payload: Payload);
1closeAlert();
1import React from 'react'; 2import ReactDOM from 'react-dom'; 3import { connect } from 'react-redux'; 4import { createStore, combineReducers, applyMiddleware } from 'redux'; 5import ReduxSweetAlert2, { openAlert } from 'react-sweetalert2-redux'; 6 7class App extends Component { 8 render(){ 9 return ( 10 <div> 11 <button onClick={() => { 12 this.props.openAlert({ 13 title: 'Hello World' 14 }); 15 }}> 16 Open Alert 17 </button> 18 <ReduxSweetAlert2 /> 19 </div> 20 ); 21 } 22} 23 24export default connect(null, { openAlert })(App);
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More