@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
53 lines (52 loc) • 1.55 kB
TypeScript
import type { IntlShape } from 'react-intl';
import type { NewCoreIconProps } from '@atlaskit/icon';
import type { Command } from '../types';
import type { ButtonOptionProps } from './LinkToolbarButtonGroup';
import type { OptionConfig } from './types';
export declare const appearancePropsMap: {
block: {
icon: {
(props: NewCoreIconProps): JSX.Element;
displayName: string;
};
title: {
defaultMessage: string;
description: string;
id: string;
};
};
embed: {
icon: {
(props: NewCoreIconProps): JSX.Element;
displayName: string;
};
title: {
defaultMessage: string;
description: string;
id: string;
};
};
inline: {
icon: {
(props: NewCoreIconProps): JSX.Element;
displayName: string;
};
title: {
defaultMessage: string;
description: string;
id: string;
};
};
url: {
icon: {
(props: NewCoreIconProps): JSX.Element;
displayName: string;
};
title: {
defaultMessage: string;
description: string;
id: string;
};
};
};
export declare const getButtonGroupOption: (intl: IntlShape, areAnyNewToolbarFlagsEnabled: boolean, dispatchCommand: (command: Command) => void, { disabled, onClick, selected, appearance, testId, tooltip }: OptionConfig) => ButtonOptionProps;