Skip to content

Commit

Permalink
Export shared variables in entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaco Bovenschen authored and ndelangen committed Nov 11, 2017
1 parent 0d67ae2 commit fae8834
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion addons/a11y/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import addons from '@kadira/storybook-addons';

import A11yManager from './A11yManager';
import * as shared from './shared'

const manager = new A11yManager();

Expand All @@ -8,4 +10,7 @@ function checkA11y(storyFn, context) {
return manager.wrapStory(channel, storyFn, context);
}

export { checkA11y };
export {
checkA11y,
shared,
};
12 changes: 9 additions & 3 deletions addons/a11y/src/shared/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// 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,
}

0 comments on commit fae8834

Please sign in to comment.