@storybook/addon-a11y
Advanced tools
Comparing version 4.0.0-alpha.1 to 4.0.0-alpha.2
@@ -53,3 +53,3 @@ 'use strict'; | ||
return _react2.default.createElement( | ||
_react.Fragment, | ||
'div', | ||
null, | ||
@@ -56,0 +56,0 @@ items.length ? _react2.default.createElement( |
@@ -39,2 +39,4 @@ 'use strict'; | ||
var _clientLogger = require('@storybook/client-logger'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -84,5 +86,5 @@ | ||
_axeCore2.default.configure(axeOptions); | ||
_axeCore2.default.a11yCheck(wrapper, {}, function (results) { | ||
channel.emit('addon:a11y:check', results); | ||
}); | ||
_axeCore2.default.run(wrapper).then(function (results) { | ||
return channel.emit('addon:a11y:check', results); | ||
}, _clientLogger.logger.error); | ||
} | ||
@@ -89,0 +91,0 @@ } |
{ | ||
"name": "@storybook/addon-a11y", | ||
"version": "4.0.0-alpha.1", | ||
"version": "4.0.0-alpha.2", | ||
"description": "a11y addon for storybook", | ||
@@ -28,4 +28,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@storybook/components": "4.0.0-alpha.1", | ||
"axe-core": "^2.6.1", | ||
"@storybook/addons": "4.0.0-alpha.2", | ||
"@storybook/client-logger": "4.0.0-alpha.2", | ||
"@storybook/components": "4.0.0-alpha.2", | ||
"axe-core": "^3.0.1", | ||
"babel-runtime": "^6.26.0", | ||
@@ -37,7 +39,6 @@ "glamor": "^2.20.40", | ||
"devDependencies": { | ||
"@storybook/react": "4.0.0-alpha.1", | ||
"@storybook/react": "4.0.0-alpha.2", | ||
"faker": "^4.1.0" | ||
}, | ||
"peerDependencies": { | ||
"@storybook/addons": "^3.3.0", | ||
"react": "*", | ||
@@ -44,0 +45,0 @@ "react-dom": "*" |
@@ -1,2 +0,2 @@ | ||
import React, { Fragment } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -27,3 +27,3 @@ import addons from '@storybook/addons'; | ||
const Report = ({ items, empty, passes }) => ( | ||
<Fragment> | ||
<div> | ||
{items.length ? ( | ||
@@ -37,3 +37,3 @@ <div style={styles.container}> | ||
<RerunButton onClick={onRerunClick}>Re-run tests</RerunButton> | ||
</Fragment> | ||
</div> | ||
); | ||
@@ -40,0 +40,0 @@ |
@@ -5,2 +5,3 @@ import { Component } from 'react'; | ||
import axe from 'axe-core'; | ||
import { logger } from '@storybook/client-logger'; | ||
@@ -45,5 +46,3 @@ class WrapStory extends Component { | ||
axe.configure(axeOptions); | ||
axe.a11yCheck(wrapper, {}, results => { | ||
channel.emit('addon:a11y:check', results); | ||
}); | ||
axe.run(wrapper).then(results => channel.emit('addon:a11y:check', results), logger.error); | ||
} | ||
@@ -50,0 +49,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
401331
10
+ Added@storybook/addons@4.0.0-alpha.2(transitive)
+ Added@storybook/channels@4.0.0-alpha.2(transitive)
+ Added@storybook/client-logger@4.0.0-alpha.2(transitive)
+ Added@storybook/components@4.0.0-alpha.2(transitive)
+ Addedaxe-core@3.5.6(transitive)
+ Addeddom-walk@0.1.2(transitive)
+ Addedglobal@4.4.0(transitive)
+ Addedmin-document@2.19.0(transitive)
+ Addedprocess@0.11.10(transitive)
- Removed@storybook/addons@3.4.12(transitive)
- Removed@storybook/components@4.0.0-alpha.1(transitive)
- Removedaxe-core@2.6.1(transitive)
Updatedaxe-core@^3.0.1