Merge pull request #19972 from storybookjs/export-controlOrMetaKey

API: Export the controlOrMetaKey fn from manager-api
This commit is contained in:
Yann Braga 2022-11-28 08:48:51 +01:00 committed by GitHub
commit 6127de5e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -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;
@ -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 */

View File

@ -202,9 +202,16 @@ export default {
'Provider',
'addons',
'combineParameters',
'controlOrMetaKey',
'controlOrMetaSymbol',
'eventMatchesShortcut',
'eventToShortcut',
'isMacLike',
'isShortcutTaken',
'keyToSymbol',
'merge',
'mockChannel',
'optionOrAltSymbol',
'shortcutMatchesShortcut',
'shortcutToHumanString',
'types',