UNPKG

@atlaskit/editor-plugin-card

Version:

Card plugin for @atlaskit/editor-core

26 lines (25 loc) 1.18 kB
import React from 'react'; import type { IntlShape } from 'react-intl'; import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics'; import type { CardAppearance } from '@atlaskit/editor-common/provider-factory'; 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 LinkToolbarAppearanceProps { allowBlockCards?: boolean; allowEmbeds?: boolean; areAnyNewToolbarFlagsEnabled: boolean; currentAppearance?: CardAppearance; editorAnalyticsApi: EditorAnalyticsAPI | undefined; editorState: EditorState; editorView?: EditorView; intl: IntlShape; isDatasourceView?: boolean; showUpgradeDiscoverability?: boolean; url?: string; } export declare class LinkToolbarAppearance extends React.Component<LinkToolbarAppearanceProps, Object> { renderDropdown: (view?: EditorView, cardContext?: CardContext) => React.JSX.Element | null; render(): React.JSX.Element; } export declare const getUnavailableMessage: (state: EditorState, intl: IntlShape) => string;