storybook-addon-a11y
Advanced tools
Comparing version 0.0.3 to 0.0.4
import * as storybook from '@kadira/storybook'; | ||
storybook.configure(() => require('./stories'), module); | ||
const req = require.context('./components/', true, /stories\.js$/) | ||
const loadStories = () => | ||
req.keys().forEach(req); | ||
storybook.configure(loadStories, module) |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.checkA11y = undefined; | ||
exports.shared = exports.checkA11y = undefined; | ||
@@ -17,2 +17,8 @@ var _storybookAddons = require('@kadira/storybook-addons'); | ||
var _shared = require('./shared'); | ||
var shared = _interopRequireWildcard(_shared); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -27,2 +33,3 @@ | ||
exports.checkA11y = checkA11y; | ||
exports.checkA11y = checkA11y; | ||
exports.shared = shared; |
@@ -7,4 +7,8 @@ 'use strict'; | ||
// addons, panels and events get unique names using a prefix | ||
var ADDON_ID = exports.ADDON_ID = 'jbovenschen/storybook-addon-a11y'; | ||
var PANEL_ID = exports.PANEL_ID = ADDON_ID + '/addon-panel'; | ||
var EVENT_ID = exports.EVENT_ID = ADDON_ID + '/addon-event'; | ||
var ADDON_ID = 'jbovenschen/storybook-addon-a11y'; | ||
var PANEL_ID = ADDON_ID + '/addon-panel'; | ||
var EVENT_ID = ADDON_ID + '/addon-event'; | ||
exports.ADDON_ID = ADDON_ID; | ||
exports.PANEL_ID = PANEL_ID; | ||
exports.EVENT_ID = EVENT_ID; |
{ | ||
"name": "storybook-addon-a11y", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "a11y addon for storybook", | ||
"main": "preview.js", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
@@ -29,2 +29,3 @@ "prepublish": "node .scripts/npm-prepublish.js", | ||
"babel-preset-react-app": "^0.2.1", | ||
"faker": "^3.1.0", | ||
"jest": "^15.1.1", | ||
@@ -31,0 +32,0 @@ "lodash": "^4.16.2", |
import addons from '@kadira/storybook-addons'; | ||
import A11yManager from './A11yManager'; | ||
import * as shared from './shared' | ||
@@ -11,2 +13,5 @@ const manager = new A11yManager(); | ||
export { checkA11y }; | ||
export { | ||
checkA11y, | ||
shared, | ||
}; |
// addons, panels and events get unique names using a prefix | ||
export const ADDON_ID = 'jbovenschen/storybook-addon-a11y'; | ||
export const PANEL_ID = `${ADDON_ID}/addon-panel`; | ||
export const EVENT_ID = `${ADDON_ID}/addon-event`; | ||
const ADDON_ID = 'jbovenschen/storybook-addon-a11y'; | ||
const PANEL_ID = `${ADDON_ID}/addon-panel`; | ||
const EVENT_ID = `${ADDON_ID}/addon-event`; | ||
export { | ||
ADDON_ID, | ||
PANEL_ID, | ||
EVENT_ID, | ||
} |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
@storybook/addon-a11y |
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
397512
51
1523
12
1