@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
26 lines (25 loc) • 926 B
TypeScript
import React from 'react';
import type { IntlShape } from 'react-intl';
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { ExtensionAPI, ExtensionProvider } from '../extensions';
export interface DropdownMenuOptions {
dispatchCommand: Function;
hide: Function;
intl: IntlShape;
showSelected: boolean;
}
type OverflowExtensionPlaceholderProps = {
areAnyNewToolbarFlagsEnabled: boolean;
disabled?: (key: string) => boolean;
dropdownOptions?: DropdownMenuOptions;
editorView: EditorView;
extension: ExtensionProps;
node: PMNode;
};
export type ExtensionProps = {
extensionApi?: ExtensionAPI;
extensionProvider?: Promise<ExtensionProvider>;
};
export declare const DropdownMenuExtensionItems: (props: OverflowExtensionPlaceholderProps) => React.JSX.Element | null;
export {};