Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storybook-addon-a11y

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-addon-a11y - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.storybook/components/Button/component.js

9

.storybook/config.js
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;

10

dist/shared/index.js

@@ -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,
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc