Skip to content

Commit

Permalink
export all shortcut utilities from manager-api
Browse files Browse the repository at this point in the history
  • Loading branch information
winkerVSbecks committed Nov 26, 2022
1 parent 392f600 commit 036ddc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 2 additions & 8 deletions code/lib/manager-api/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +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 {
controlOrMetaKey,
eventToShortcut,
shortcutMatchesShortcut,
shortcutToHumanString,
} from './lib/shortcut';

export * from './lib/shortcut';

const { ActiveTabs } = layout;

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

export { controlOrMetaKey, eventToShortcut, shortcutToHumanString, shortcutMatchesShortcut };

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

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

0 comments on commit 036ddc3

Please sign in to comment.