Skip to content

Commit

Permalink
Merge pull request #19972 from storybookjs/export-controlOrMetaKey
Browse files Browse the repository at this point in the history
API: Export the controlOrMetaKey fn from manager-api
  • Loading branch information
yannbf authored Nov 28, 2022
2 parents 11fcfbe + 036ddc3 commit 6127de5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/lib/manager-api/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ import * as url from './modules/url';
import * as version from './modules/versions';
// eslint-disable-next-line import/no-cycle
import * as globals from './modules/globals';
import { eventToShortcut, shortcutMatchesShortcut, shortcutToHumanString } from './lib/shortcut';

export * from './lib/shortcut';

const { ActiveTabs } = layout;

Expand Down Expand Up @@ -482,8 +483,6 @@ export function useArgTypes(): API_ArgTypes {
return (current?.type === 'story' && current.argTypes) || {};
}

export { eventToShortcut, shortcutToHumanString, shortcutMatchesShortcut };

export { addons } from './lib/addons';

/* deprecated */
Expand Down
7 changes: 7 additions & 0 deletions code/ui/manager/src/globals/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,16 @@ export default {
'Provider',
'addons',
'combineParameters',
'controlOrMetaKey',
'controlOrMetaSymbol',
'eventMatchesShortcut',
'eventToShortcut',
'isMacLike',
'isShortcutTaken',
'keyToSymbol',
'merge',
'mockChannel',
'optionOrAltSymbol',
'shortcutMatchesShortcut',
'shortcutToHumanString',
'types',
Expand Down

0 comments on commit 6127de5

Please sign in to comment.