@atlaskit/editor-plugin-floating-toolbar
Version:
Floating toolbar plugin for @atlaskit/editor-core
21 lines (20 loc) • 887 B
TypeScript
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { EmojiId } from '@atlaskit/emoji';
import type { FloatingToolbarPlugin } from '../floatingToolbarPluginType';
type EmojiPickerButtonReturnType = (props: {
className?: string;
editorView?: EditorView;
idx?: number;
isSelected?: boolean;
mountPoint?: HTMLElement;
onChange?: (emoji: EmojiId) => void;
pluginInjectionApi?: ExtractInjectionAPI<FloatingToolbarPlugin>;
popupsBoundariesElement?: HTMLElement;
providerFactory?: ProviderFactory;
setDisableParentScroll?: (disable: boolean) => void;
title?: string;
}) => JSX.Element;
export declare const EmojiPickerButton: EmojiPickerButtonReturnType;
export {};