react-stepzilla
Advanced tools
Comparing version 4.8.0 to 5.0.0
{ | ||
"name": "react-stepzilla", | ||
"version": "4.8.0", | ||
"version": "5.0.0", | ||
"description": "A react multi-step, wizard component for managing data collection via forms and sub components", | ||
@@ -43,3 +43,4 @@ "main": "./dist/main.js", | ||
"del": "^2.2.2", | ||
"enzyme": "^2.7.0", | ||
"enzyme": "^3.8.0", | ||
"enzyme-adapter-react-16": "^1.8.0", | ||
"eslint": "^3.19.0", | ||
@@ -65,7 +66,8 @@ "eslint-config-airbnb": "^13.0.0", | ||
"prop-types": "^15.5.8", | ||
"react": "^15.5.4", | ||
"react-dom": "^15.5.4", | ||
"react": "^16.4.1", | ||
"react-dom": "^16.4.1", | ||
"react-i18next": "^8.1.0", | ||
"react-addons-test-utils": "^15.5.1", | ||
"react-redux": "^6.0.0", | ||
"react-validation-mixin": "^5.4.0", | ||
"redux": "^4.0.1", | ||
"sinon": "^1.17.7", | ||
@@ -79,7 +81,6 @@ "sinon-chai": "^2.8.0", | ||
"peerDependencies": { | ||
"react": "^15.5.4", | ||
"react-dom": "^15.5.4" | ||
"react": "^16.4.1", | ||
"react-dom": "^16.4.1" | ||
}, | ||
"dependencies": { | ||
} | ||
"dependencies": {} | ||
} |
@@ -6,7 +6,6 @@ # react stepzilla [![npm version](https://badge.fury.io/js/react-stepzilla.svg)](https://badge.fury.io/js/react-stepzilla) | ||
``` | ||
v5.0.0: ported to react and react-dom 16.4.1. Redux demo implementation (finally!) | ||
v4.8.0: multiple examples. includes a cool demo of i18n - Internationalization and localization (tnx @tomtoxx) | ||
v4.7.2: optimised react, react-dom dependency loading (peerDependencies) | ||
v4.5.0: ported to react and react-dom 15.5.4 | ||
v4.3.0: now supporting higer order component based validation via react-validation-mixin! | ||
v4.2.0: now supporting pure, dumb components! | ||
``` | ||
@@ -167,8 +166,8 @@ | ||
Current coverage sitting at v4.7.2: | ||
Current coverage sitting at v5.0.0: | ||
``` | ||
Statements : 87.43% ( 160/183 ), 11 ignored | ||
Branches : 76.07% ( 124/163 ), 23 ignored | ||
Functions : 84.78% ( 39/46 ), 3 ignored | ||
Lines : 83.33% ( 105/126 ) | ||
Statements : 86.39% ( 146/169 ), 4 ignored | ||
Branches : 73.1% ( 106/145 ), 13 ignored | ||
Functions : 83.33% ( 35/42 ), 1 ignored | ||
Lines : 82.93% ( 102/123 ) | ||
``` | ||
@@ -175,0 +174,0 @@ |
@@ -24,1 +24,15 @@ 'use strict'; | ||
// E: i18n - Internationalization and localization example | ||
// S: Redux example | ||
import ExampleRedux from './redux/Example'; | ||
import { createStore} from 'redux' | ||
import { Provider } from 'react-redux'; | ||
import reducer from './redux/reducer'; | ||
const store = createStore(reducer); | ||
ReactDOM.render( | ||
<Provider store={store}> | ||
<ExampleRedux /> | ||
</Provider>, document.getElementById('rootRedux')); | ||
// E: Redux example |
import React from 'react'; | ||
import StepZilla from '../src/main'; | ||
import sinon from 'sinon' | ||
const shallow = enzyme.shallow; | ||
import { shallow } from 'enzyme'; | ||
@@ -110,3 +110,3 @@ const makeFakeSteps = (num, makePure) => { | ||
// simulate the click, and mock the event with target to 1 (i.e. jump to step 1 from 0) | ||
enzymeWrapper.find('.progtrckr-doing .progtrckr-doing').simulate('click', { | ||
enzymeWrapper.find('.progtrckr').childAt(0).simulate('click', { | ||
target: { | ||
@@ -297,3 +297,3 @@ value: 1 | ||
// simulate the click, and mock the event with target to 1 (i.e. jump to step 1 from 0) | ||
enzymeWrapper.find('.progtrckr-doing .progtrckr-doing').simulate('click', { | ||
enzymeWrapper.find('.progtrckr').childAt(0).simulate('click', { | ||
target: { | ||
@@ -300,0 +300,0 @@ value: 1 |
@@ -0,6 +1,12 @@ | ||
// init enzyme 3 | ||
import Enzyme from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
Enzyme.configure({ adapter: new Adapter() }); | ||
global.enzyme = Enzyme; | ||
global.sinon = require('sinon'); | ||
global.chai = require('chai'); | ||
global.expect = chai.expect; | ||
global.enzyme = require('enzyme'); | ||
chai.use(require('sinon-chai')); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2430052
43
55411
43
188