@atlaskit/editor-plugin-card
Version:
Card plugin for @atlaskit/editor-core
24 lines (23 loc) • 1.36 kB
TypeScript
import type { IntlShape } from 'react-intl';
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
import type { CardOptions } from '@atlaskit/editor-common/card/cardOptions';
import type { Command } from '@atlaskit/editor-common/types/command';
import type { FloatingToolbarCustom, FloatingToolbarItem } from '@atlaskit/editor-common/types/floating-toolbar';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { CardPlugin } from '../cardPluginType';
export interface HyperlinkToolbarAppearanceProps {
cardOptions?: CardOptions;
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
editorPluginApi: ExtractInjectionAPI<CardPlugin> | undefined;
editorState: EditorState;
editorView?: EditorView;
intl: IntlShape;
url: string;
}
export declare const getCustomHyperlinkAppearanceDropdown: ({ url, intl, editorAnalyticsApi, editorPluginApi, settingsConfig, cardOptions, allowDatasource, isDatasourceView, }: Omit<HyperlinkToolbarAppearanceProps, 'editorState'> & {
allowDatasource?: boolean;
isDatasourceView?: boolean;
settingsConfig: FloatingToolbarItem<Command>;
}) => FloatingToolbarCustom<Command>;