mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
Merge pull request #19972 from storybookjs/export-controlOrMetaKey
API: Export the controlOrMetaKey fn from manager-api
This commit is contained in:
commit
6127de5e2a
@ -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 */
|
||||
|
@ -202,9 +202,16 @@ export default {
|
||||
'Provider',
|
||||
'addons',
|
||||
'combineParameters',
|
||||
'controlOrMetaKey',
|
||||
'controlOrMetaSymbol',
|
||||
'eventMatchesShortcut',
|
||||
'eventToShortcut',
|
||||
'isMacLike',
|
||||
'isShortcutTaken',
|
||||
'keyToSymbol',
|
||||
'merge',
|
||||
'mockChannel',
|
||||
'optionOrAltSymbol',
|
||||
'shortcutMatchesShortcut',
|
||||
'shortcutToHumanString',
|
||||
'types',
|
||||
|
Loading…
x
Reference in New Issue
Block a user