@atlaskit/editor-plugin-card
Version:
Card plugin for @atlaskit/editor-core
19 lines (18 loc) • 900 B
TypeScript
import { jsx } from '@emotion/react';
import type { IntlShape } from 'react-intl-next';
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { CardContext } from '@atlaskit/link-provider';
export interface DatasourceAppearanceButtonProps {
areAnyNewToolbarFlagsEnabled: boolean;
cardContext?: CardContext;
editorAnalyticsApi?: EditorAnalyticsAPI;
editorState: EditorState;
editorView?: EditorView;
inputMethod: string;
intl: IntlShape;
selected?: boolean;
url: string;
}
export declare const DatasourceAppearanceButton: ({ intl, editorAnalyticsApi, url, editorView, editorState, selected, inputMethod, areAnyNewToolbarFlagsEnabled, }: DatasourceAppearanceButtonProps) => jsx.JSX.Element;